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

 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 GT,Wr2,YX8,dk,ix,dRR,pyu,ID,oD,A0R,iuT,EtR,Hy,c0T,wy2,SQ,gtR,r0t,Cx8,otu,Fr8,SXX,jDt,XyQ,KrT,e8X,dU,DRy,iR,QDr,EF,y02,vQ,PQ,ntt,Nkr,jR,f7,Lrv,W4Q,BUk,eR,YFQ,dTx,xM,pQR,AMx,i7D,Qd,zDy,yd,TUQ,wQk,suD,Tq,PRT,Z7Q,rMv,k6X,l9R,Eb,JMt,pO,gMx,tRT,b7R,f90,O7v,ri,uH8,K40,eDT,mTD,xTk,QuR,yMr,NUQ,$TT,MRu,RDR,Bik,pnx,iOv,AKk,u9,EYv,Vf0,m0,gYy,rKk,sjr,kq8,P9Q,xY,DTt,Qr,yr,qf,liy,Nf,oY8,C9x,IiT,Mf,h1x,HOk,F08,Sbv,jjx,bOD,fix,OOu,XnD,LO,u6r,mfr,Dfr,yKD,Yh,nYD,L00,AZ,ai8,Bou,$f0,zmk,YKR,dZv,cZr,imk,VNy,ghy,tNR,
PQk,Zm2,CQD,IRv,Hmr,bm2,fRt,Omt,KFk,mZT,nhQ,FM,$Z8,UZD,MNR,Km,uQ,xh,$h,MZ,R3,dku,iNx,EAD,c6y,VFr,J6k,cG,gAR,Vc,J6,gj,t6,sRQ,P7X,ZNQ,r6X,kdQ,C78,I10,oAu,h6x,FDT,rj,Z1,S0X,bNQ,jRy,ONQ,f1r,XGQ,KDv,upt,SF,b7,jF,fN,Xp,mk2,KN,Dky,Nju,eF,$kT,LDy,Ukk,xA,MFx,a1Q,R6x,D1,zkQ,qk,ddr,pck,Nk,i3y,AvR,EH2,T32,vHT,cv2,U0,wcD,Vw8,Mk,Jvy,gHu,aR,RR,Wc,Bc,tw8,Pft,s8k,zF,rv2,kFX,ler,YH,Av,EY,TF,vc,cc,Cfv,IeX,hkt,H3D,FPy,SYX,b38,j8t,feT,O38,Xc8,KPX,uiR,eku,g3,mdX,xd2,Ze,Ddr,kH,lf,Q8x,nHx,N3D,$dt,UdD,Mw2,ae2,zf0,GP8,Ykr,
d5X,pCT,AI8,ipk,cIR,o8,wC0,VkX,JIT,gxu,tkv,s0k,Zpu,j0x,fGr,OpR,ucD,ef0,Xi,m5R,Q0r,nxR,NHD,$5k,LbX,U5y,Mk8,aGv,RfD,B4Q,zoQ,yIk,GtR,YdX,dwu,p5X,Ayy,iRy,E$8,T4t,v$2,JyR,w5r,swR,g$r,taD,ryD,ktQ,lIT,PEu,IIT,ZRx,hoT,R8,HRk,WC,zP,F62,bRX,jwR,X52,n$8,uAu,K62,mwk,DwQ,eov,aIy,L68,Ror,Wd0,BYR,z_u,GWT,d6k,YwR,pRu,AW2,ixk,Er0,vrr,wR8,VD8,JWR,tD8,grD,Fdy,pp,Sw2,jJy,f5x,OxT,XRr,Kdt,e_X,m6X,x6X,wH,VJ,D6x,$62,tI,sk,a5k,WHr,TOX,lA,wSQ,VEt,sXX,g8Q,tEx,HC,POu,Z4x,k4t,loR,COR,IoT,o8x,ht0,H4u,SAv,b4u,fo0,jXD,KHr,uA,xx,
ett,mn2,xnR,dX8,pV8,ADD,Ebt,vb0,T2k,W5,zt,rDy,pR,h3R,Hgy,Ay,SEX,FgT,mXT,xXD,DXt,yDu,$Xv,UXy,Ml2,a_R,R3T,B7T,Gi8,Ycv,v5,pT2,EEy,T7T,vE2,cXD,VyQ,iGR,dly,wTx,w4,tyt,rXD,Ppv,Jy,lDx,ID2,oE0,h5R,HGu,P5,FEy,bGD,Scu,jg2,OGx,k$,xl8,N7r,UlD,LEk,R5R,ow,z28,FA,bE,Sa,p_k,Bqk,Aj8,Od,vF8,uE,ea,Vju,tjQ,PYQ,Zl0,rjR,m6,kpR,x$,lET,IE8,oFy,h2r,HlD,SjQ,qw,bly,jsy,Nw,aw,X_r,KzD,uQ2,e2x,DAv,Qsr,qj2,nFr,R2X,W10,UA2,zlk,G52,dOR,ik,TW,vR,E60,T82,wY,v6r,czx,wMr,VtR,g6Q,ttX,sd0,PyD,JzD,Zty,gY,k5y,Cyy,tW,l2R,I2y,rzX,o6X,Z5,HtQ,
F1X,btr,jdx,OtR,f2R,XM0,elR,K1Q,xO0,N8y,L1T,Mtv,Wjy,Rl0,a2t,BVQ,Gyu,djk,Y2r,ArT,Fq,Eq2,TV2,vqu,cr2,t48,PHR,sPt,Zix,rry,fx,kyQ,l4R,I4r,hYy,S2T,jPD,biQ,z4,f4t,oqv,xjR,QPr,yr2,q2D,AC,nq8,$jy,M4r,W8k,RYX,YgR,dMu,p38,Aqv,EO2,VL8,Tc0,cqx,w3R,Jqy,gOD,s_t,tLx,ZA2,Pdy,Zo,rqy,lnu,CdR,HAu,HS,Fs,F8Q,Sgt,SE,OAR,OA,Xs,K4,ejX,uO,DMk,x8,Q_v,yqv,qgX,nO8,yW,Nc8,$MT,L8t,MLT,RjQ,zSt,YlX,WV,d_8,pgD,A8Q,isy,E_Q,TDv,v_v,c8r,GU,J8R,g_2,tWX,sEy,Pax,Zsk,r8u,kRr,lar,CaQ,Iat,o_2,hSv,vV,m_0,x_D,cV,w2,Vs,D_X,QEX,y8X,ql2,n_R,NDr,
$_8,RSD,Wsr,B5r,zRt,GSX,sE,Z_,r2,kb,Ie,oe,hD,dJQ,FG,AHr,Sl,io8,EwT,b2,T5R,vw8,cHR,rH0,l8u,Hor,jNR,bo2,kSR,f8D,KsT,MJR,QND,zqX,qRk,BaR,GsQ,u2,dHR,mg,AVT,i8Q,Tax,vBt,cVk,VKk,Qs,gBk,tK8,sBx,Pgx,Z8v,rVX,ksR,JVX,IrT,oBk,hq2,qX,frD,O88,jB0,KRD,uFt,mHv,xH8,eqv,$Hu,UH8,arx,WT2,BT,p2R,dEt,vGQ,w2t,VXt,JYT,gGk,tXQ,sK0,vT,hIx,FTu,INr,CFy,HyQ,Zyr,byy,QKx,Oyy,X2k,KTR,RI8,BuR,aNy,AgD,MXr,PF2,pAu,fNt,DEx,WCv,Svy,kG2,rYk,lNx,oGX,UEX,HT,rgQ,lpt,Cjt,IpD,o2R,XA8,D$k,Qn2,ey,qM8,$$t,apx,McD,Wuy,Bh2,GmR,dFR,Y_k,pk2,Rg,
AER,iky,Th0,El0,W_,gl2,JET,VgR,ZkT,tg2,rEr,Pe8,zp,kmR,olX,CeQ,IKt,HkD,bk0,j6x,XkT,KuR,uB0,mFk,dq,DFx,q_t,Q6r,nlv,UF2,Mg8,WQv,zp0,Tp,v_,phu,At8,c_,wq,iQt,VH,Jj,Ent,gq,TnR,tj,vn8,cty,P_,whQ,VTD,JtR,gny,tTX,Pr0,skX,rtQ,CrT,l02,I0Q,onk,ZQu,hpr,Sor,FQT,kHk,bQR,jk2,Cl,f08,Xhr,OQD,KQt,uUR,mg2,epy,xgy,FQ,QkT,yt2,DgD,nnv,Nn0,$gD,a0X,Bb2,p8X,TbR,Sj,w8D,Vmu,bY,JsR,XQ,ej,rsX,fl,DE,kCx,lJt,IJQ,oTR,HVx,SLR,bVR,jO0,fJQ,KwX,Dix,miv,X8t,QOx,ysx,nl,xi8,qLX,Ll,nTX,NbT,$ix,Lwy,RZ2,UiX,aJX,GID,Y8t,Eiy,ifD,coy,sft,PLk,
rok,lFR,CLR,oix,hCx,Hfx,S8R,bfx,jfX,Xqt,mD2,xDy,Kk0,Qfv,q8D,you,DDy,niu,$Dv,LkD,UDt,M7u,aFT,Az,iy,vM,w8,zWv,GEt,dIx,iak,VK,Jz,EX2,g8,cG8,wok,V1Q,sh,PKt,lkt,Ikt,oX2,hWT,Hax,Fa8,jrt,Z2,fkX,Kat,r8,unQ,xIy,DIv,Qr2,mIT,Lax,akk,UIy,RWk,zAt,Y5y,prQ,TdR,Ec8,Vrr,od,J4k,gcu,hz,trD,HM,sAv,P_0,Z_D,k2X,r4t,lUk,C_v,IUX,ocQ,fUT,XrD,uWk,KLy,S5t,H_Q,meQ,DeT,Ndr,$eQ,MrR,Guy,dr8,jt,p1R,iwr,EL2,vLr,J1y,s1k,r1k,kux,lqu,CNx,F7R,IqR,fqX,Owk,X1R,u5u,Kt,eQR,xru,Dry,Q1X,y12,qTr,nL0,NRv,L70,UrX,x6,M0v,aqt,WNQ,QK,RQQ,zdQ,p40,
nt,Afr,ihD,Eyt,cfD,w4k,TI2,JfT,Pzr,Zhu,rfx,ad,kfX,oy2,hdv,zy,SW2,HhX,FNx,f3X,Ohk,X4y,mzT,Qx8,Dzv,xzk,yfu,nyX,NIR,a3X,$zt,RdT,B1t,Wfr,A7x,T1y,c7k,V3R,s9D,IMt,uH,hxX,br8,fMv,XO,ni,mpR,y70,Q9T,n0x,N1T,Lfx,$px,Upy,M3x,Nj,Fs2,xpX,q4k,DpT,y0,WG0,BET,zgt,GaQ,YzR,dm2,ptt,ALD,YO,i62,ENx,TEt,vNu,cLR,id,wtT,gNk,sZx,PJ8,oNR,H6u,FGx,Sz8,jZR,fL8,Zn,XtQ,KGu,u3x,egv,mmQ,xmt,QZ2,qz2,NEk,$mv,Wx2,aLr,BPr,YpX,dGu,hq,pOR,AwQ,iS0,v30,wOy,cwy,JwR,tdR,bd,Piv,ZST,sH2,rwD,k3k,CiT,o3T,I6y,hNu,l6D,HSD,Fxv,SpR,bSr,jH0,f62,OSX,
XOT,KxQ,mGy,eNu,xGR,QH2,DGr,jL,ywr,NPt,MdR,qpD,Wtk,BWR,z7Q,G1r,pz2,wzk,V8r,gUk,t82,nA,r5x,I$X,HIr,NM,jqy,Ft2,Srr,bIQ,f$k,e7T,MM,m1Q,x1Q,D1u,y5u,qrX,nUX,NW2,LtX,U1R,d80,B0R,Grv,Aur,p7t,iLx,Ez0,vzx,w7k,nzT,$8x,Lm8,Mxr,APt,TND,cPT,wNt,VS2,JP8,g1v,sYQ,PU0,kz0,lVX,CUt,IVX,o1R,hvk,Hj0,FhR,jYv,Kht,TR,vg,cg,uw8,evu,J8,xKv,UKx,zMt,WO8,spQ,PhR,ZWr,QY8,Lhu,n1y,kB2,lH2,Chv,IH0,aV8,oIx,HWu,S7R,fHT,OWu,Hg,ba,jW,D7R,x7u,nIQ,Net,za0,Yn8,pDR,ABT,TJT,cBR,vPR,JBu,tZ8,Cq2,kok,Pq2,lbr,ZnR,Ibu,F50,RE,eaQ,XDR,xV0,DVR,yBR,
qn0,Bf,nPQ,L5r,UVD,MZv,Rar,abr,Yw,d22,TS,Aeu,iYy,cf,ERr,Tsu,vRX,ceT,wHD,VhQ,Jev,gRT,th8,sWT,PMR,ZYD,rer,kXy,lS0,w5,CMx,ISt,oRu,h4R,HYx,FJX,Si2,bYk,jWr,fSv,OYR,XHX,JH,u7u,m2R,D2y,qix,$20,LJ8,U2R,aS8,WnX,Bvu,zbk,lP,ATy,dUk,idu,EDR,Tvx,wl8,VMx,JTx,tM2,X4,Pnv,fo,rTR,kJR,Ko,lY2,CnR,IY0,oDT,eJ,SGv,jav,uyR,Knu,mUX,xUR,$w,DU0,Qax,qGQ,Nvv,$U8,UUT,MMk,nDR,aYx,GQT,AUt,iMx,Lo,EQ8,TG2,JU8,vQD,wmk,VV2,rUx,tV8,kQX,C4X,oQt,hLy,HMu,FWy,SDr,bMk,fP8,OMR,Xmu,KWQ,uf8,mhX,Dhx,qDr,LWt,aP0,WAT,GYv,zs,Ye0,doT,pZX,AnR,iDr,
T$T,v4x,cnt,wZD,Vq8,Jnr,g4R,tqu,s4u,PSt,ZD8,kYR,rnX,ITu,hnQ,da,HD2,bDD,Sev,ODx,XZx,KAR,en0,Dot,qeR,ynk,xor,$ou,N$X,Rn0,LAy,Ts,Mq8,pBx,zET,GnX,Yf0,dQy,AAr,Ejy,iqu,vJ,cJ,gjv,vjX,JAX,VBR,cAQ,wBx,PCt,rAT,lCQ,knk,hEr,ojX,FUR,bqQ,jh8,SfR,fCX,XBX,Oqx,u1k,xQX,Zr,DQ8,QhX,njv,MBX,G$R,kB,dL0,Euu,wU8,clR,TQ8,vu8,hV,tpT,VpD,JlD,s$t,ZJR,P$D,lck,C$X,out,hBr,HJy,FSt,SJy,j$x,fcu,xB,XUr,KSv,xLu,DLT,n8,Q$t,qJt,Wlu,MH,LSv,RBT,ULt,MpD,Y1Q,GVR,i0T,d3R,Ep8,TZR,RB,ccy,w6u,V52,vpR,GG,JcT,B2,PDR,opQ,hGX,H00,Flx,S18,b0x,X68,
fXt,O00,j2y,u_u,x3T,yct,q1Q,NZ0,U3u,$3x,Llt,M5R,RGQ,W$R,BtR,zw8,GvQ,Yu2,pLR,v2,ick,vZ8,Tt0,wLQ,ciQ,V2x,Jiy,c2,t22,F$x,hwX,jVv,fut,mSR,xSQ,DSR,QV2,yiu,quR,$SD,L$t,US2,auQ,RwR,WMy,Cy,YBR,G7Q,zyv,Blv,pIt,Eau,AND,vat,cNT,wIv,VeX,JNx,gat,tey,scR,lft,P8X,ZZk,rNx,C8T,IfQ,oau,k7k,H2,FMX,bZX,SBt,SX,ffQ,OZR,XIy,jc0,KMX,u9Q,eyR,muD,xuR,QcT,yNQ,qB0,naR,LMX,$u2,Wiy,Nl2,bF,BBu,Uu2,Ry0,Y9r,dvR,p9x,AO8,izr,EoR,TBx,voR,cOX,w9R,VIR,go2,tIu,svt,ZzR,kOR,CwQ,oox,bzu,FiR,S9T,Hz0,hcT,jv8,fdT,NE,KiR,uk2,ecR,mvR,xvQ,Dv0,
Qv0,$vv,q9v,yOy,nok,dsR,Gxu,NB2,zsv,cQ2,wX8,ViT,JQv,g7x,PBr,rQQ,lBk,IBR,o72,hsX,b$D,SIy,jGy,O$R,Vi,uoy,esR,msy,xs2,gu,tg,yQv,qIX,Nf0,Usr,zX2,pW8,Abr,iFQ,EfX,TFk,vfu,wWR,Jbx,Vor,gfy,sI8,PVX,ZFu,rbR,k8R,lAu,lj,CVy,bFR,jIR,HFy,hXX,Sq8,F2y,uLt,eXy,mCR,xCx,DC2,QIr,nfx,ybX,qqy,W3y,Bpu,zOX,d9u,ppr,GLu,YyR,VHx,ggv,sUr,Z1R,kLD,CtR,H1D,F3T,Syk,fgy,jUQ,b1T,O10,Xp2,ueD,eOk,m9x,x9R,D9X,QUy,qyR,ng2,NpR,$9R,L3x,U9r,ROv,WKX,zF0,Y3D,Gjv,dY8,K2,peQ,A2k,iKQ,EJ8,weQ,c2Q,V$R,J2X,gJv,t$T,ZKy,kj8,lxR,CW0,Ixt,oJQ,hFR,HK0,
FKD,S3v,bKy,fx2,jtR,OKu,XeR,KKu,ug8,eFQ,mYX,xYT,DYk,q$,y2T,q3y,NgX,$YR,LKQ,UY2,M$y,axR,Wvk,BMy,GMu,dW8,AdQ,veR,Ee0,i52,TMD,cdx,war,V6k,t6D,sC2,PTx,Z5D,kM8,lQ2,CTX,oeu,IQv,hHr,H5x,Fvx,jC2,fQ2,O5u,Xar,Kvx,u0u,xWR,DWT,Yl,$Wv,Lv8,M6Q,WY2,RH0,BAQ,zh0,dh,AE,Ytk,dcu,Tm,vk,E5Q,piy,A$R,c$u,wit,VsD,J$Q,PlT,r$x,k90,lzT,Clv,IzT,hhT,HPT,FYD,St8,bPr,jo0,fzD,VQ,OPt,Xi0,gh,KYx,uv8,ehR,mck,xcT,Dcv,Pk,ZK,Qo8,y$R,rh,qtT,n5R,NAt,$cx,Uc0,MsD,Rh8,YQR,GwQ,zKT,dN2,pvR,ckR,Esy,TTk,iXr,vsR,le,JkD,gsr,tGu,sLT,P3v,rkR,lj2,os0,
SQ8,HXt,Ck,hKk,Xv8,u8T,I6,eK8,mNk,xNu,QL0,ykk,qQR,nsT,$NR,LBQ,UN2,aj8,RKX,By0,zJT,Amu,psk,Emx,TyX,vm0,cmT,tC2,slt,Ps8,ZBR,lWu,om8,jg,fk,hJu,HBX,FIv,SxR,bBx,fW8,OB8,XsR,KIv,eJ2,m08,x0D,O_,D0k,QlX,nm2,Nyv,XB,Kk,U0y,$0T,RJD,MCT,WX2,zux,xl,GAr,Y$D,AR8,EVT,DK,vVt,cRT,wxy,V_t,JRv,gV2,t_2,sSX,kAk,ltT,oVt,Cbu,ItR,huX,bek,HeQ,S$2,jSy,fty,OeR,uK0,eut,mxR,Dxr,QSx,LXk,$x2,B62,YaQ,MF,dau,bxr,pwD,ASx,ECx,cSt,wwr,Zb2,rS2,kbu,lZ0,CGT,IZT,hzR,Hbr,Sa8,jM2,F_Q,bby,Obv,fZT,K_t,maQ,udy,xa0,Dak,QMQ,yS2,qaQ,nCX,$ak,N6X,
aZx,BKD,RzX,ziD,GDT,YP8,dn,dB2,pF0,At,iED,A_k,EvD,TKX,c_y,wFy,J_t,gvX,tuv,szr,r_R,l7k,ovu,I7t,hik,HER,bEv,DBR,XFu,y_k,qPR,NKx,$B0,a7u,RiQ,WZ8,Br2,zU2,Gg8,dPx,pED,AxQ,EWy,iUu,cx8,wE8,Vb2,JxT,gWu,tby,sQ8,ZUk,lyt,CZ2,IyX,oWt,hUR,HU0,bUQ,SUD,XET,KZX,uDx,eUQ,mPt,DPv,xPt,yx2,LZT,RU0,ayy,Wqx,BxQ,zVR,YOx,ht,pjy,br,iH0,Txu,vkX,gk8,s5Q,rh8,lhk,CIy,okt,hVD,HHT,SOt,j5R,fhy,Xjx,eVQ,uzx,Kqk,xn,xbR,mb8,DbR,Q5k,yh0,qOR,nkk,Nxx,$by,Ubr,MA8,aht,RVr,Wo2,Bz0,zex,GKu,YCX,pKk,ApR,JpQ,gdu,tnk,P6r,Zv2,rpu,C6Q,$n,SCQ,bvR,
j7R,flR,OvR,LQ,Uo,B5,Mg,Rk,Q7t,ypT,Nzk,Lor,$4R,B8,U4x,Mn2,alx;_.zT=function(W,B){if(Error.captureStackTrace)Error.captureStackTrace(this,_.zT);else{var z=Error().stack;z&&(this.stack=z)}W&&(this.message=String(W));B!==void 0&&(this.cause=B)};
GT=function(){throw Error("E");};
Wr2=function(W,B){B=String.fromCharCode.apply(null,B);return W==null?B:W+B};
YX8=function(W){var B=!1;B=B===void 0?!1:B;if(BkX){if(B&&(z8t?!W.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(W)))throw Error("F");W=(GTr||(GTr=new TextEncoder)).encode(W)}else{for(var z=0,G=new Uint8Array(3*W.length),Y=0;Y<W.length;Y++){var d=W.charCodeAt(Y);if(d<128)G[z++]=d;else{if(d<2048)G[z++]=d>>6|192;else{if(d>=55296&&d<=57343){if(d<=56319&&Y<W.length){var E=W.charCodeAt(++Y);if(E>=56320&&E<=57343){d=(d-55296)*1024+E-56320+65536;G[z++]=d>>18|
240;G[z++]=d>>12&63|128;G[z++]=d>>6&63|128;G[z++]=d&63|128;continue}else Y--}if(B)throw Error("F");d=65533}G[z++]=d>>12|224;G[z++]=d>>6&63|128}G[z++]=d&63|128}}W=z===G.length?G:G.subarray(0,z)}return W};
dk=function(W){_.Yt.setTimeout(function(){throw W;},0)};
_.A0=function(W,B){return W.lastIndexOf(B,0)==0};
ix=function(W,B){var z=W.length-B.length;return z>=0&&W.indexOf(B,z)==z};
_.TT=function(W){return/^[\s\xa0]*$/.test(W)};
_.cy=function(W,B){return W.indexOf(B)!=-1};
_.wk=function(W,B){return _.cy(W.toLowerCase(),B.toLowerCase())};
_.t0=function(W,B){var z=0;W=J0(String(W)).split(".");B=J0(String(B)).split(".");for(var G=Math.max(W.length,B.length),Y=0;z==0&&Y<G;Y++){var d=W[Y]||"",E=B[Y]||"";do{d=/(\d*)(\D*)(.*)/.exec(d)||["","","",""];E=/(\d*)(\D*)(.*)/.exec(E)||["","","",""];if(d[0].length==0&&E[0].length==0)break;z=dRR(d[1].length==0?0:parseInt(d[1],10),E[1].length==0?0:parseInt(E[1],10))||dRR(d[2].length==0,E[2].length==0)||dRR(d[2],E[2]);d=d[3];E=E[3]}while(z==0)}return z};
dRR=function(W,B){return W<B?-1:W>B?1:0};
_.Py=function(){var W=_.Yt.navigator;return W&&(W=W.userAgent)?W:""};
pyu=function(W){if(!rk||!kt)return!1;for(var B=0;B<kt.brands.length;B++){var z=kt.brands[B].brand;if(z&&_.cy(z,W))return!0}return!1};
ID=function(W){return _.cy(_.Py(),W)};
oD=function(){return rk?!!kt&&kt.brands.length>0:!1};
A0R=function(){return oD()?!1:ID("Opera")};
iuT=function(){return oD()?!1:ID("Trident")||ID("MSIE")};
EtR=function(){return oD()?pyu("Microsoft Edge"):ID("Edg/")};
Hy=function(){return ID("Firefox")||ID("FxiOS")};
_.TkX=function(){return ID("Safari")&&!(_.F2()||(oD()?0:ID("Coast"))||A0R()||(oD()?0:ID("Edge"))||EtR()||(oD()?pyu("Opera"):ID("OPR"))||Hy()||ID("Silk")||ID("Android"))};
_.F2=function(){return oD()?pyu("Chromium"):(ID("Chrome")||ID("CriOS"))&&!(oD()?0:ID("Edge"))||ID("Silk")};
_.vtD=function(){return ID("Android")&&!(_.F2()||Hy()||A0R()||ID("Silk"))};
c0T=function(W){var B={};W.forEach(function(z){B[z[0]]=z[1]});
return function(z){return B[z.find(function(G){return G in B})]||""}};
wy2=function(W){var B=_.Py();if(W==="Internet Explorer"){if(iuT())if((W=/rv: *([\d\.]*)/.exec(B))&&W[1])B=W[1];else{W="";var z=/MSIE +([\d\.]+)/.exec(B);if(z&&z[1])if(B=/Trident\/(\d.\d)/.exec(B),z[1]=="7.0")if(B&&B[1])switch(B[1]){case "4.0":W="8.0";break;case "5.0":W="9.0";break;case "6.0":W="10.0";break;case "7.0":W="11.0"}else W="7.0";else W=z[1];B=W}else B="";return B}var G=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");z=[];for(var Y;Y=G.exec(B);)z.push([Y[1],Y[2],Y[3]||void 0]);
B=c0T(z);switch(W){case "Opera":if(A0R())return B(["Version","Opera"]);if(oD()?pyu("Opera"):ID("OPR"))return B(["OPR"]);break;case "Microsoft Edge":if(oD()?0:ID("Edge"))return B(["Edge"]);if(EtR())return B(["Edg"]);break;case "Chromium":if(_.F2())return B(["Chrome","CriOS","HeadlessChrome"])}return W==="Firefox"&&Hy()||W==="Safari"&&_.TkX()||W==="Android Browser"&&_.vtD()||W==="Silk"&&ID("Silk")?(B=z[2])&&B[1]||"":""};
_.VQy=function(W){if(oD()&&W!=="Silk"){var B=kt.brands.find(function(z){return z.brand===W});
if(!B||!B.version)return NaN;B=B.version.split(".")}else{B=wy2(W);if(B==="")return NaN;B=B.split(".")}return B.length===0?NaN:Number(B[0])};
SQ=function(){return rk?!!kt&&!!kt.platform:!1};
_.J0D=function(){return SQ()?kt.platform==="Android":ID("Android")};
gtR=function(){return ID("iPhone")&&!ID("iPod")&&!ID("iPad")};
_.bx=function(){return gtR()||ID("iPad")||ID("iPod")};
_.tQ0=function(){return SQ()?kt.platform==="macOS":ID("Macintosh")};
_.sD0=function(){return SQ()?kt.platform==="Windows":ID("Windows")};
_.Pxr=function(){return SQ()?kt.platform==="Chrome OS":ID("CrOS")};
_.fu=function(W){return W[W.length-1]};
_.OX=function(W,B,z){B=_.Zuu(W,B,z);return B<0?null:typeof W==="string"?W.charAt(B):W[B]};
_.Zuu=function(W,B,z){for(var G=W.length,Y=typeof W==="string"?W.split(""):W,d=0;d<G;d++)if(d in Y&&B.call(z,Y[d],d,W))return d;return-1};
r0t=function(W){for(var B=_.Ku,z=typeof W==="string"?W.split(""):W,G=W.length-1;G>=0;G--)if(G in z&&B.call(void 0,z[G],G,W))return G;return-1};
_.xt=function(W,B){return _.mr(W,B)>=0};
_.kTT=function(W,B){_.xt(W,B)||W.push(B)};
_.Dv=function(W,B){B=_.mr(W,B);var z;(z=B>=0)&&_.lvX(W,B);return z};
_.lvX=function(W,B){Array.prototype.splice.call(W,B,1)};
_.QR=function(W){var B=W.length;if(B>0){for(var z=Array(B),G=0;G<B;G++)z[G]=W[G];return z}return[]};
_.qR=function(W,B){for(var z=1;z<arguments.length;z++){var G=arguments[z];if(_.yR(G)){var Y=W.length||0,d=G.length||0;W.length=Y+d;for(var E=0;E<d;E++)W[Y+E]=G[E]}else W.push(G)}};
_.Iv2=function(W,B,z,G){Array.prototype.splice.apply(W,Cx8(arguments,1))};
Cx8=function(W,B,z){return arguments.length<=2?Array.prototype.slice.call(W,B):Array.prototype.slice.call(W,B,z)};
otu=function(W,B){B=B||W;for(var z=0,G=0,Y={};G<W.length;){var d=W[G++],E=_.$t(d)?"o"+_.Lu(d):(typeof d).charAt(0)+d;Object.prototype.hasOwnProperty.call(Y,E)||(Y[E]=!0,B[z++]=d)}B.length=z};
_.HuT=function(W,B,z){z=z||_.h88;for(var G=0,Y=W.length,d;G<Y;){var E=G+(Y-G>>>1);var v=z(B,W[E]);v>0?G=E+1:(Y=E,d=!v)}return d?G:-G-1};
_.UX=function(W,B,z){if(!_.yR(W)||!_.yR(B)||W.length!=B.length)return!1;var G=W.length;z=z||Fr8;for(var Y=0;Y<G;Y++)if(!z(W[Y],B[Y]))return!1;return!0};
_.h88=function(W,B){return W>B?1:W<B?-1:0};
Fr8=function(W,B){return W===B};
SXX=function(W,B,z){B=Array.prototype.splice.call(W,B,1);Array.prototype.splice.call(W,z,0,B[0])};
jDt=function(W){return buR[W]||""};
XyQ=function(W){if(!fv0)return _.aD(W);W=Ouk.test(W)?W.replace(Ouk,jDt):W;W=atob(W);for(var B=new Uint8Array(W.length),z=0;z<W.length;z++)B[z]=W.charCodeAt(z);return B};
KrT=function(W,B){W.__closure__error__context__984382||(W.__closure__error__context__984382={});W.__closure__error__context__984382.severity=B};
_.z6=function(W){W=Error(W);KrT(W,"warning");return W};
e8X=function(W,B){if(W!=null){var z;var G=(z=u2y)!=null?z:u2y={};z=G[W]||0;z>=B||(G[W]=z+1,W=Error(),KrT(W,"incident"),dk(W))}};
dU=function(W,B,z){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(z===void 0?0:z)&&Symbol.for&&W?Symbol.for(W):W!=null?Symbol(W):Symbol():B};
DRy=function(W,B){p7||_.AM in W||mRk(W,xRr);W[_.AM]|=B};
iR=function(W,B){p7||_.AM in W||mRk(W,xRr);W[_.AM]=B};
QDr=function(W){if(4&W)return 512&W?512:1024&W?1024:0};
EF=function(W){DRy(W,34);return W};
y02=function(W){DRy(W,32);return W};
vQ=function(){return typeof BigInt==="function"};
PQ=function(W,B){return B===void 0?W.copyOnWrite!==cQ&&!!(2&(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.AM]|0)):!!(2&B)&&W.copyOnWrite!==cQ};
_.HQ=function(W,B){if(W!=null)if(typeof W==="string")W=W?new Iu(W,ou):_.hM();else if(W.constructor!==Iu)if(qXr&&W!=null&&W instanceof Uint8Array)W=W.length?new Iu(new Uint8Array(W),ou):_.hM();else{if(!B)throw Error();W=void 0}return W};
ntt=function(W,B){if(typeof B!=="number"||B<0||B>=W.length)throw Error();};
Nkr=function(W,B,z){var G=B&128?0:-1,Y=W.length,d;if(d=!!Y)d=W[Y-1],d=d!=null&&typeof d==="object"&&d.constructor===Object;var E=Y+(d?-1:0);for(B=B&128?1:0;B<E;B++)z(B-G,W[B]);if(d){W=W[Y-1];for(var v in W)!isNaN(v)&&z(+v,W[v])}};
jR=function(W){return W&128?SR:void 0};
f7=function(W){W.isGuard_doNotManuallySetPrettyPlease=!0;return W};
Lrv=function(){var W=$R0;return f7(function(B){for(var z in W)if(B===W[z]&&!/^[0-9]+$/.test(z))return!0;return!1})};
_.OF=function(W){var B=W;if(URy(B)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(B))throw Error(String(B));}else if(MQX(B)&&!Number.isSafeInteger(B))throw Error(String(B));return avy?BigInt(W):W=R8D(W)?W?"1":"0":URy(W)?W.trim()||"0":String(W)};
W4Q=function(W,B){if(W.length>B.length)return!1;if(W.length<B.length||W===B)return!0;for(var z=0;z<W.length;z++){var G=W[z],Y=B[z];if(G>Y)return!1;if(G<Y)return!0}};
BUk=function(W){var B=W>>>0;K7=B;uR=(W-B)/4294967296>>>0};
eR=function(W){if(W<0){BUk(-W);var B=_.A(zDy(K7,uR));W=B.next().value;B=B.next().value;K7=W>>>0;uR=B>>>0}else BUk(W)};
YFQ=function(W){var B=G6t||(G6t=new DataView(new ArrayBuffer(8)));B.setFloat32(0,+W,!0);uR=0;K7=B.getUint32(0,!0)};
dTx=function(W,B){var z=B*4294967296+(W>>>0);return Number.isSafeInteger(z)?z:_.m4(W,B)};
xM=function(W,B){var z=B&2147483648;z&&(W=~W+1>>>0,B=~B>>>0,W==0&&(B=B+1>>>0));W=dTx(W,B);return typeof W==="number"?z?-W:W:z?"-"+W:W};
pQR=function(W){var B=K7,z=uR,G=z>>31;z=(z<<1|B>>>31)^G;W(B<<1^G,z)};
AMx=function(W,B){var z=-(W&1);W=(W>>>1|B<<31)^z;return xM(W,B>>>1^z)};
_.m4=function(W,B){B>>>=0;W>>>=0;if(B<=2097151)var z=""+(4294967296*B+W);else vQ()?z=""+(BigInt(B)<<BigInt(32)|BigInt(W)):(z=(W>>>24|B<<8)&16777215,B=B>>16&65535,W=(W&16777215)+z*6777216+B*6710656,z+=B*8147497,B*=2,W>=1E7&&(z+=W/1E7>>>0,W%=1E7),z>=1E7&&(B+=z/1E7>>>0,z%=1E7),z=B+i7D(z)+i7D(W));return z};
i7D=function(W){W=String(W);return"0000000".slice(W.length)+W};
_.EM8=function(W,B){B&2147483648?vQ()?W=""+(BigInt(B|0)<<BigInt(32)|BigInt(W>>>0)):(B=_.A(zDy(W,B)),W=B.next().value,B=B.next().value,W="-"+_.m4(W,B)):W=_.m4(W,B);return W};
Qd=function(W){if(W.length<16)eR(Number(W));else if(vQ())W=BigInt(W),K7=Number(W&BigInt(4294967295))>>>0,uR=Number(W>>BigInt(32)&BigInt(4294967295));else{var B=+(W[0]==="-");uR=K7=0;for(var z=W.length,G=B,Y=(z-B)%6+B;Y<=z;G=Y,Y+=6)G=Number(W.slice(G,Y)),uR*=1E6,K7=K7*1E6+G,K7>=4294967296&&(uR+=Math.trunc(K7/4294967296),uR>>>=0,K7>>>=0);B&&(B=_.A(zDy(K7,uR)),W=B.next().value,B=B.next().value,K7=W,uR=B)}};
zDy=function(W,B){B=~B;W?W=~W+1:B+=1;return[W,B]};
yd=function(W){return Array.prototype.slice.call(W)};
_.qT=function(W,B){throw Error(B===void 0?"unexpected value "+W+"!":B);};
_.n7=function(W){if(W!=null&&typeof W!=="number")throw Error("L`"+typeof W+"`"+W);return W};
_.NT=function(W){if(W==null||typeof W==="number")return W;if(W==="NaN"||W==="Infinity"||W==="-Infinity")return Number(W)};
TUQ=function(W){if(W!=null&&typeof W!=="boolean")throw Error("M`"+_.MT(W)+"`"+W);return W};
_.vMr=function(W){if(W==null||typeof W==="boolean")return W;if(typeof W==="number")return!!W};
_.Ru=function(W){switch(typeof W){case "bigint":return!0;case "number":return au(W);case "string":return cMv.test(W);default:return!1}};
_.Wn=function(W){if(!au(W))throw _.z6("enum");return W|0};
_.zq=function(W){return W==null?W:au(W)?W|0:void 0};
wQk=function(W){if(typeof W!=="number")throw _.z6("int32");if(!au(W))throw _.z6("int32");return W|0};
_.YY=function(W){return W==null?W:wQk(W)};
_.di=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return au(W)?W|0:void 0};
_.VRR=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return au(W)?W>>>0:void 0};
suD=function(W){var B=0;B=B===void 0?0:B;if(!_.Ru(W))throw _.z6("int64");var z=typeof W;switch(B){case 512:switch(z){case "string":return pO(W);case "bigint":return String(i9(64,W));default:return JMt(W)}case 1024:switch(z){case "string":return gMx(W);case "bigint":return _.OF(i9(64,W));default:return tRT(W)}case 0:switch(z){case "string":return pO(W);case "bigint":return _.OF(i9(64,W));default:return Eb(W)}default:return _.qT(B,"Unknown format requested type for int64")}};
Tq=function(W){return W==null?W:suD(W)};
PRT=function(W){if(W[0]==="-")return!1;var B=W.length;return B<20?!0:B===20&&Number(W.substring(0,6))<184467};
Z7Q=function(W){var B=W.length;return W[0]==="-"?B<20?!0:B===20&&Number(W.substring(0,7))>-922337:B<19?!0:B===19&&Number(W.substring(0,6))<922337};
rMv=function(W){if(W<0){eR(W);var B=_.m4(K7,uR);W=Number(B);return vn(W)?W:B}B=String(W);if(PRT(B))return B;eR(W);return dTx(K7,uR)};
k6X=function(W){if(Z7Q(W))return W;Qd(W);return _.EM8(K7,uR)};
l9R=function(W){if(PRT(W))return W;Qd(W);return _.m4(K7,uR)};
Eb=function(W){W=JK(W);vn(W)||(eR(W),W=xM(K7,uR));return W};
_.CR0=function(W){W=JK(W);return W>=0&&vn(W)?W:rMv(W)};
JMt=function(W){W=JK(W);if(vn(W))W=String(W);else{var B=String(W);Z7Q(B)?W=B:(eR(W),W=_.EM8(K7,uR))}return W};
_.I9t=function(W){W=JK(W);if(W>=0&&vn(W))W=String(W);else{var B=String(W);PRT(B)?W=B:(eR(W),W=_.m4(K7,uR))}return W};
pO=function(W){var B=JK(Number(W));if(vn(B))return String(B);B=W.indexOf(".");B!==-1&&(W=W.substring(0,B));return k6X(W)};
gMx=function(W){var B=JK(Number(W));if(vn(B))return _.OF(B);B=W.indexOf(".");B!==-1&&(W=W.substring(0,B));return vQ()?_.OF(i9(64,BigInt(W))):_.OF(k6X(W))};
tRT=function(W){return vn(W)?_.OF(Eb(W)):_.OF(JMt(W))};
_.oM2=function(W){return vn(W)?_.OF(_.CR0(W)):_.OF(_.I9t(W))};
_.hDv=function(W){var B=JK(Number(W));if(vn(B)&&B>=0)return String(B);B=W.indexOf(".");B!==-1&&(W=W.substring(0,B));return l9R(W)};
_.H7R=function(W){var B=JK(Number(W));if(vn(B)&&B>=0)return _.OF(B);B=W.indexOf(".");B!==-1&&(W=W.substring(0,B));return vQ()?_.OF((0,_.gi)(64,BigInt(W))):_.OF(l9R(W))};
_.SFv=function(W){if(W==null)return W;if(typeof W==="bigint")return F4T(W)?W=Number(W):(W=i9(64,W),W=F4T(W)?Number(W):String(W)),W;if(_.Ru(W))return typeof W==="number"?Eb(W):pO(W)};
b7R=function(W,B){B=B===void 0?!1:B;var z=typeof W;if(W==null)return W;if(z==="bigint")return String(i9(64,W));if(_.Ru(W))return z==="string"?pO(W):B?JMt(W):Eb(W)};
_.jur=function(W){var B=typeof W;if(W==null)return W;if(B==="bigint")return _.OF(i9(64,W));if(_.Ru(W))return B==="string"?gMx(W):tRT(W)};
f90=function(W){if(W==null)return W;var B=typeof W;if(B==="bigint")return String(i9(64,W));if(_.Ru(W)){if(B==="string")return pO(W);if(B==="number")return Eb(W)}};
O7v=function(W){if(W==null)return W;var B=typeof W;if(B==="bigint")return String((0,_.gi)(64,W));if(_.Ru(W)){if(B==="string")return _.hDv(W);if(B==="number")return _.CR0(W)}};
_.sb=function(W){if(typeof W!=="string")throw Error();return W};
ri=function(W){if(W!=null&&typeof W!=="string")throw Error();return W};
_.l9=function(W){return W==null||typeof W==="string"?W:void 0};
uH8=function(W,B,z,G){if(W!=null&&W[CO]===hK)return W;if(!Array.isArray(W))return z?G&2?B[XQx]||(B[XQx]=K40(B)):new B:void 0;z=W[_.AM]|0;G=z|G&32|G&2;G!==z&&iR(W,G);return new B(W)};
K40=function(W){W=new W;EF(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return W};
eDT=function(W,B,z){W=B?wQk(W):_.di(W);return W==null?z?0:void 0:W|0};
mTD=function(W){return W};
xTk=function(W){return W};
QuR=function(W,B,z,G,Y,d){W=uH8(W,G,z,d);Y&&(W=DTt(W));return W};
yMr=function(W){return[W,this.get(W)]};
NUQ=function(){return qFR||(qFR=new Hn(EF([]),void 0,void 0,void 0,nMX))};
$TT=function(W){var B=b9(fO);return B?W[B]:void 0};
MRu=function(W,B){var z=z===void 0?!1:z;if(b9(L4y)&&b9(fO)&&void 0===L4y){var G=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=G[fO];if(!Y)return;if(Y=Y.reviveUnknownFields)try{Y(G,B,UTX);return}catch(d){dk(d)}}z&&(W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(z=b9(fO))&&z in W&&(W=W[z])&&delete W[B])};
RDR=function(W,B){var z=b9(fO),G;p7&&z&&((G=W[z])==null?void 0:G[B])!=null&&e8X(a9k,3)};
Bik=function(W,B){B<100||e8X(W0v,1)};
pnx=function(W,B,z,G){var Y=G!==void 0;G=!!G;var d=b9(fO),E;!Y&&p7&&d&&(E=W[d])&&z1u(E,Bik);d=[];var v=W.length;E=4294967295;var c=!1,J=!!(B&64),g=J?B&128?0:-1:void 0;if(!(B&1)){var t=v&&W[v-1];t!=null&&typeof t==="object"&&t.constructor===Object?(v--,E=v):t=void 0;if(J&&!(B&128)&&!Y){c=!0;var P;E=((P=Gq8)!=null?P:mTD)(E-g,g,W,t,void 0)+g}}B=void 0;for(P=0;P<v;P++){var Z=W[P];if(Z!=null&&(Z=z(Z,G))!=null)if(J&&P>=E){var l=P-g,b=void 0;((b=B)!=null?b:B={})[l]=Z}else d[P]=Z}if(t)for(var O in t)v=t[O],
v!=null&&(v=z(v,G))!=null&&(P=+O,Z=void 0,J&&!Number.isNaN(P)&&(Z=P+g)<E?d[Z]=v:(P=void 0,((P=B)!=null?P:B={})[O]=v));B&&(c?d.push(B):d[E]=B);Y&&b9(fO)&&(W=$TT(W))&&W instanceof Ybt&&(d[fO]=dft(W));return d};
iOv=function(W){W[0]=AKk(W[0]);W[1]=AKk(W[1]);return W};
AKk=function(W){switch(typeof W){case "number":return Number.isFinite(W)?W:""+W;case "bigint":return F4T(W)?Number(W):""+W;case "boolean":return W?1:0;case "object":if(Array.isArray(W)){var B=W[_.AM]|0;return W.length===0&&B&1?void 0:pnx(W,B,AKk)}if(W!=null&&W[CO]===hK)return EYv(W);if(W instanceof Iu){B=W.JSC$8820_value_;if(B==null)W="";else if(typeof B==="string")W=B;else{if(fv0){for(var z="",G=0,Y=B.length-10240;G<Y;)z+=String.fromCharCode.apply(null,B.subarray(G,G+=10240));z+=String.fromCharCode.apply(null,
G?B.subarray(G):B);B=btoa(z)}else B=_.Ob(B);W=W.JSC$8820_value_=B}return W}if(W instanceof Hn)return W=W.size!==0?Array.from(KO.prototype.entries.call(W),iOv):void 0,W;return}return W};
u9=function(W,B){if(B){Gq8=B==null||B===mTD||B[Tit]!==vYR?mTD:B;try{return EYv(W)}finally{Gq8=void 0}}return EYv(W)};
EYv=function(W){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return pnx(W,W[_.AM]|0,AKk)};
Vf0=function(W){switch(typeof W){case "boolean":return cK8||(cK8=[0,void 0,!0]);case "number":return W>0?void 0:W===0?wnt||(wnt=[0,void 0]):[-W,void 0];case "string":return[0,W];case "object":return W}};
m0=function(W,B,z){return W=_.ef(W,B[0],B[1],z?1:2)};
_.ef=function(W,B,z,G){G=G===void 0?0:G;if(W==null){var Y=32;z?(W=[z],Y|=128):W=[];B&&(Y=Y&-8380417|(B&1023)<<13)}else{if(!Array.isArray(W))throw Error("O");Y=W[_.AM]|0;if(JKR&&1&Y)throw Error("P");2048&Y&&!(2&Y)&&gYy();if(Y&256)throw Error("Q");if(Y&64)return G!==0||Y&2048||iR(W,Y|2048),W;if(z&&(Y|=128,z!==W[0]))throw Error("R");a:{z=W;Y|=64;var d=z.length;if(d){var E=d-1,v=z[E];if(v!=null&&typeof v==="object"&&v.constructor===Object){B=Y&128?0:-1;E-=B;if(E>=1024)throw Error("T");for(var c in v)d=
+c,d<E&&(z[d+B]=v[c],delete v[c]);Y=Y&-8380417|(E&1023)<<13;break a}}if(B){c=Math.max(B,d-(Y&128?0:-1));if(c>1024)throw Error("U");Y=Y&-8380417|(c&1023)<<13}}}Y|=64;G===0&&(Y|=2048);iR(W,Y);return W};
gYy=function(){if(JKR)throw Error("S");e8X(tfR,5)};
rKk=function(W,B){if(typeof W!=="object")return W;if(Array.isArray(W)){var z=W[_.AM]|0;return W.length===0&&z&1?void 0:sjr(W,z,B)}if(W!=null&&W[CO]===hK)return P9Q(W);if(W instanceof Hn){B=W.arrayState;if(B&2)return W;if(!W.size)return;z=EF(ZOv(W));if(W.valueCtor)for(W=0;W<z.length;W++){var G=z[W],Y=G[1];Y==null||typeof Y!=="object"?Y=void 0:Y!=null&&Y[CO]===hK?Y=P9Q(Y):Array.isArray(Y)?Y=sjr(Y,Y[_.AM]|0,!!(B&32)):Y=void 0;G[1]=Y}return z}if(W instanceof Iu)return W};
sjr=function(W,B,z){if(B&2)return W;!z||4096&B||16&B?W=xY(W,B,!1,z&&!(B&16)):(DRy(W,34),B&4&&Object.freeze(W));return W};
kq8=function(W,B,z){W=new W.constructor(B);z&&(W.copyOnWrite=cQ);W.noLegacyNull=cQ;return W};
P9Q=function(W){var B=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=B[_.AM]|0;return PQ(W,z)?W:liy(W,B,z)?kq8(W,B):xY(B,z)};
xY=function(W,B,z,G){G!=null||(G=!!(34&B));W=pnx(W,B,rKk,G);G=32;z&&(G|=2);B=B&8380609|G;iR(W,B);return W};
DTt=function(W){var B=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=B[_.AM]|0;return PQ(W,z)?liy(W,B,z)?kq8(W,B,!0):new W.constructor(xY(B,z,!1)):W};
Qr=function(W){if(W.copyOnWrite!==cQ)return!1;var B=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;B=xY(B,B[_.AM]|0);DRy(B,2048);W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=B;W.copyOnWrite=void 0;W.noLegacyNull=void 0;return!0};
yr=function(W){if(!Qr(W)&&PQ(W,W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.AM]|0))throw Error();};
qf=function(W,B){B===void 0&&(B=W[_.AM]|0);B&32&&!(B&4096)&&iR(W,B|4096)};
liy=function(W,B,z){return z&2?!0:z&32&&!(z&4096)?(iR(B,z|2),W.copyOnWrite=cQ,!0):!1};
Nf=function(W,B,z,G,Y){var d=z+(Y?0:-1),E=W.length-1;if(E>=1+(Y?0:-1)&&d>=E){var v=W[E];if(v!=null&&typeof v==="object"&&v.constructor===Object)return v[z]=G,B}if(d<=E)return W[d]=G,B;if(G!==void 0){var c;E=((c=B)!=null?c:B=W[_.AM]|0)>>13&1023||536870912;z>=E?G!=null&&(d={},W[E+(Y?0:-1)]=(d[z]=G,d)):W[d]=G}return B};
_.Ub=function(W,B,z,G,Y){var d=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=d[_.AM]|0;G=PQ(W,E)?1:G;Y=!!Y||G===3;G===2&&Qr(W)&&(d=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=d[_.AM]|0);W=C9x(d,B);var v=W===$Y?7:W[_.AM]|0,c=IiT(v,E);var J=4&c?!1:!0;if(J){4&c&&(W=yd(W),v=0,c=LO(c,E),E=Nf(d,E,B,W));for(var g=0,t=0;g<W.length;g++){var P=z(W[g]);P!=null&&(W[t++]=P)}t<g&&(W.length=t);z=(c|4)&-513;c=z&=-1025;c&=-4097}c!==v&&(iR(W,c),2&c&&Object.freeze(W));return W=oY8(W,c,d,
E,B,G,J,Y)};
oY8=function(W,B,z,G,Y,d,E,v){var c=B;d===1||(d!==4?0:2&B||!(16&B)&&32&G)?Mf(B)||(B|=!W.length||E&&!(4096&B)||32&G&&!(4096&B||16&B)?2:256,B!==c&&iR(W,B),Object.freeze(W)):(d===2&&Mf(B)&&(W=yd(W),c=0,B=LO(B,G),G=Nf(z,G,Y,W)),Mf(B)||(v||(B|=16),B!==c&&iR(W,B)));2&B||!(4096&B||16&B)||qf(z,G);return W};
C9x=function(W,B,z){W=aj(W,B,z);return Array.isArray(W)?W:$Y};
IiT=function(W,B){2&B&&(W|=2);return W|1};
Mf=function(W){return!!(2&W)&&!!(4&W)||!!(256&W)};
h1x=function(W){return _.HQ(W,!0)};
HOk=function(W){W=yd(W);for(var B=0;B<W.length;B++){var z=W[B]=yd(W[B]);Array.isArray(z[1])&&(z[1]=EF(z[1]))}return W};
F08=function(W,B){var z=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=z[_.AM]|0;a:{var Y=G;G=PQ(W,G);!G&&Qr(W)&&(z=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=z[_.AM]|0);var d=aj(z,B);W=!1;if(d==null){if(G){B=NUQ();break a}d=[]}else if(d.constructor===Hn)if(d.arrayState&2&&!G)d=ZOv(d);else{B=d;break a}else Array.isArray(d)?W=!!((d[_.AM]|0)&2):d=[];if(G){if(!d.length){B=NUQ();break a}W||(W=!0,EF(d))}else W&&(W=!1,d=HOk(d));!W&&Y&32&&y02(d);G=new Hn(d,void 0,eDT,eDT);Y=Nf(z,
Y,B,G);W||qf(z,Y);B=G}return B};
_.Rj=function(W,B,z,G){yr(W);var Y=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=Y[_.AM]|0;if(z==null)return Nf(Y,d,B),W;var E=z===$Y?7:z[_.AM]|0,v=E,c=Mf(E),J=c||Object.isFrozen(z);c||(E=0);J||(z=yd(z),v=0,E=LO(E,d),J=!1);E|=5;var g;c=(g=QDr(E))!=null?g:0;for(g=0;g<z.length;g++){var t=z[g],P=G(t,c);Object.is(t,P)||(J&&(z=yd(z),v=0,E=LO(E,d),J=!1),z[g]=P)}E!==v&&(J&&(z=yd(z),E=LO(E,d)),iR(z,E));Nf(Y,d,B,z);return W};
_.Wb=function(W,B,z,G,Y){yr(W);var d=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Nf(d,d[_.AM]|0,B,(G==="0"?Number(z)===0:z===G)?void 0:z,Y);return W};
_.Bb=function(W,B,z){if(B&2)throw Error();var G=jR(B),Y=C9x(W,z,G),d=Y===$Y?7:Y[_.AM]|0,E=IiT(d,B);if(2&E||Mf(E)||16&E)Y=yd(Y),d=0,E=LO(E,B),Nf(W,B,z,Y,G);E&=-13;E!==d&&iR(Y,E);return Y};
Sbv=function(W){if(p7){var B;return(B=W[z_])!=null?B:W[z_]=new Map}if(z_ in W)return W[z_];B=new Map;Object.defineProperty(W,z_,{value:B});return B};
jjx=function(W,B,z,G,Y){var d=Sbv(W),E=bOD(d,W,B,z,Y);E!==G&&(E&&(B=Nf(W,B,E,void 0,Y)),d.set(z,G));return B};
bOD=function(W,B,z,G,Y){var d=W.get(G);if(d!=null)return d;for(var E=d=0;E<G.length;E++){var v=G[E];aj(B,v,Y)!=null&&(d!==0&&(z=Nf(B,z,d,void 0,Y)),d=v)}W.set(G,d);return d};
fix=function(W,B,z,G,Y){var d=!1;G=aj(W,G,Y,function(E){var v=uH8(E,z,!1,B);d=v!==E&&v!=null;return v});
if(G!=null)return d&&!PQ(G)&&qf(W,B),G};
OOu=function(W,B,z,G,Y,d,E,v){var c=PQ(W,z);d=c?1:d;E=!!E||d===3;c=v&&!c;(d===2||c)&&Qr(W)&&(B=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=B[_.AM]|0);W=C9x(B,Y);var J=W===$Y?7:W[_.AM]|0,g=IiT(J,z);if(v=!(4&g)){var t=W,P=z,Z=!!(2&g);Z&&(P|=2);for(var l=!Z,b=!0,O=0,K=0;O<t.length;O++){var e=uH8(t[O],G,!1,P);if(e instanceof G){if(!Z){var a=PQ(e);l&&(l=!a);b&&(b=a)}t[K++]=e}}K<O&&(t.length=K);g|=4;g=b?g&-4097:g|4096;g=l?g|8:g&-9}g!==J&&(iR(W,g),2&g&&Object.freeze(W));if(c&&!(8&g||!W.length&&
(d===1||(d!==4?0:2&g||!(16&g)&&32&z)))){Mf(g)&&(W=yd(W),g=LO(g,z),z=Nf(B,z,Y,W));G=W;c=g;for(J=0;J<G.length;J++)t=G[J],g=DTt(t),t!==g&&(G[J]=g);c|=8;g=c=G.length?c|4096:c&-4097;iR(W,g)}return W=oY8(W,g,B,z,Y,d,v,E)};
XnD=function(W){W==null&&(W=void 0);return W};
LO=function(W,B){return W=(2&B?W|2:W&-3)&-273};
_.K0k=function(W,B,z,G,Y){yr(W);B=_.Ub(W,B,Y,2,!0);var d;Y=(d=QDr(B===$Y?7:B[_.AM]|0))!=null?d:0;B.push(z(G,Y));return W};
u6r=function(W,B,z,G,Y,d,E){yr(W);var v=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;W=OOu(W,v,v[_.AM]|0,z,B,2,!0);if(d&&E)Y!=null||(Y=W.length-1),ntt(W,Y),W.splice(Y,d),W.length||(W[_.AM]&=-4097);else{if(d){if(typeof Y!=="number"||Y<0||Y>W.length)throw Error();}else G=G!=null?G:new z;Y!=void 0?W.splice(Y,d,G):W.push(G);Y=z=W===$Y?7:W[_.AM]|0;(G=PQ(G))?(z&=-9,W.length===1&&(z&=-4097)):z|=4096;z!==Y&&iR(W,z);G||qf(v)}};
mfr=function(W,B){if(typeof W==="string")return new G_(XyQ(W),B);if(Array.isArray(W))return new G_(new Uint8Array(W),B);if(W.constructor===Uint8Array)return new G_(W,!1);if(W.constructor===ArrayBuffer)return W=new Uint8Array(W),new G_(W,!1);if(W.constructor===Iu)return B=e1D(W)||new Uint8Array(0),new G_(B,!0,W);if(W instanceof Uint8Array)return W=W.constructor===Uint8Array?W:new Uint8Array(W.buffer,W.byteOffset,W.byteLength),new G_(W,!1);throw Error();};
Dfr=function(W){switch(typeof W){case "string":xfr(W)}};
yKD=function(W){switch(typeof W){case "string":Qjy(W)}};
Yh=function(){var W=function(){throw Error();};
Object.setPrototypeOf(W,W.prototype);return W};
nYD=function(W,B){var z=z===void 0?qbD:z;return new pm(W,B,z)};
L00=function(W,B,z,G,Y){Nir(W,z,$f0(B,G),Y)};
AZ=function(W,B,z,G){var Y=G[W];if(Y)return Y;Y={};Y.binaryFields=G;Y.messageMetadata=Vf0(G[0]);var d=G[1],E=1;d&&d.constructor===Object&&(Y.extensions=d,d=G[++E],typeof d==="function"&&(Y.isMessageSet=!0,Ufy!=null||(Ufy=d),MfR!=null||(MfR=G[E+1]),d=G[E+=2]));for(var v={};d&&ai8(d);){for(var c=0;c<d.length;c++)v[d[c]]=d;d=G[++E]}for(c=1;d!==void 0;){typeof d==="number"&&(c+=d,d=G[++E]);var J=void 0;if(d instanceof pm)var g=d;else g=R1y,E--;d=void 0;if((d=g)==null?0:d.$$isMsg){d=G[++E];J=G;var t=E;
typeof d==="function"&&(d=d(),J[t]=d);J=d}d=G[++E];t=c+1;typeof d==="number"&&d<0&&(t-=d,d=G[++E]);for(;c<t;c++){var P=v[c];J?z(Y,c,g,J,P):B(Y,c,g,P)}}return G[W]=Y};
ai8=function(W){return Array.isArray(W)&&!!W.length&&typeof W[0]==="number"&&W[0]>0};
Bou=function(W){return Array.isArray(W)?W[0]instanceof pm?W:[WFr,W]:[W,void 0]};
$f0=function(W,B){if(W instanceof _.iQ)return W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(W))return m0(W,B,!1)};
zmk=function(W,B,z,G){var Y=z.$$binaryReaderFn;W[B]=G?function(d,E,v){return Y(d,E,v,G)}:Y};
YKR=function(W,B,z,G,Y){var d=z.$$binaryReaderFn,E,v;W[B]=function(c,J,g){return d(c,J,g,v||(v=AZ(G_k,zmk,YKR,G).messageMetadata),E||(E=dZv(G)),Y)}};
dZv=function(W){var B=W[pb8];if(B!=null)return B;var z=AZ(G_k,zmk,YKR,W);B=z.isMessageSet?function(G,Y){return Ufy(G,Y,z)}:function(G,Y){for(;AZy(Y)&&Y.nextWireType_!=4;){var d=Y.nextField_,E=z[d];
if(E==null){var v=z.extensions;v&&(v=v[d])&&(v=imk(v),v!=null&&(E=z[d]=v))}if(E==null||!E(Y,G,d)){v=Y;E=v.fieldCursor_;Eh8(v);if(v.discardUnknownFields)var c=void 0;else{var J=v.decoder_.cursor_-E;v.decoder_.cursor_=E;c=To0(v.decoder_,J)}J=v=E=void 0;var g=G;c&&((E=(v=(J=g[fO])!=null?J:g[fO]=new Ybt)[d])!=null?E:v[d]=[]).push(c)}}if(G=$TT(G))G.reviveUnknownFields=z.binaryFields[vhT];return!0};
W[pb8]=B;W[vhT]=cZr.bind(W);return B};
cZr=function(W,B,z,G){var Y=this[G_k],d=this[pb8],E=m0(void 0,Y.messageMetadata,!1),v=$TT(W);if(v){var c=!1,J=Y.extensions;if(J){Y=function(l,b,O){if(O.length!==0)if(J[b])for(l=_.A(O),b=l.next();!b.done;b=l.next()){b=wbr(b.value);try{c=!0,d(E,b)}finally{b.free()}}else G==null||G(W,b,O)};
if(B==null)z1u(v,Y);else if(v!=null){var g=v[B];g&&Y(v,B,g)}if(c){var t=W[_.AM]|0;if(t&2&&t&2048&&(z==null||!z.reviveIntoImmutable))throw Error();var P=jR(t),Z=function(l,b){if(aj(W,l,P)!=null)switch(z==null?void 0:z.resolutionBehavior){case 1:return;default:throw Error();}b!=null&&(t=Nf(W,t,l,b,P));delete v[l]};
B==null?Nkr(E,E[_.AM]|0,function(l,b){Z(l,b)}):Z(B,aj(E,B,P))}}}};
imk=function(W){W=Bou(W);var B=W[0].$$binaryReaderFn;if(W=W[1]){var z=dZv(W),G=AZ(G_k,zmk,YKR,W).messageMetadata;return function(Y,d,E){return B(Y,d,E,G,z)}}return B};
VNy=function(W,B,z){W[B]=z.$$binaryWriterFn};
ghy=function(W,B,z,G){var Y,d,E=z.$$binaryWriterFn;W[B]=function(v,c,J){return E(v,c,J,d||(d=AZ(JZk,VNy,ghy,G).messageMetadata),Y||(Y=tNR(G)))}};
tNR=function(W){var B=W[s3u];if(!B){var z=AZ(JZk,VNy,ghy,W);B=function(G,Y){return PQk(G,Y,z)};
W[s3u]=B}return B};
PQk=function(W,B,z){Nkr(W,W[_.AM]|0,function(G,Y){if(Y!=null){var d=Zm2(z,G);d?d(B,Y,G):G<500||e8X(rZ2,3)}});
(W=$TT(W))&&z1u(W,function(G,Y,d){EK(B,B.encoder_.end());for(G=0;G<d.length;G++)EK(B,e1D(d[G])||new Uint8Array(0))})};
Zm2=function(W,B){var z=W[B];if(z)return z;if(z=W.extensions)if(z=z[B]){z=Bou(z);var G=z[0].$$binaryWriterFn;if(z=z[1]){var Y=tNR(z),d=AZ(JZk,VNy,ghy,z).messageMetadata;z=W.isMessageSet?MfR(d,Y):function(E,v,c){return G(E,v,c,d,Y)}}else z=G;
return W[B]=z}};
_.k_0=function(W,B,z){if(Array.isArray(B)){var G=B[_.AM]|0;if(G&4)return B;for(var Y=0,d=0;Y<B.length;Y++){var E=W(B[Y]);E!=null&&(B[d++]=E)}d<Y&&(B.length=d);z&&(iR(B,(G|5)&-1537),G&2&&Object.freeze(B));return B}};
_.vb=function(W,B,z){return new pm(W,B,z)};
_.lRD=function(W,B,z){return new pm(W,B,z)};
_.cb=function(W,B,z){Nf(W,W[_.AM]|0,B,z,jR(W[_.AM]|0))};
CQD=function(W,B,z){B=_.NT(B);B!=null&&(_.wo(W,z,1),W=W.encoder_,z=G6t||(G6t=new DataView(new ArrayBuffer(8))),z.setFloat64(0,+B,!0),K7=z.getUint32(0,!0),uR=z.getUint32(4,!0),_.VN(W,K7),_.VN(W,uR))};
IRv=function(W,B,z){B=_.NT(B);B!=null&&(_.wo(W,z,5),W=W.encoder_,YFQ(B),_.VN(W,K7))};
_.go=function(W,B,z){B=f90(B);if(B!=null&&(Dfr(B),B!=null))switch(_.wo(W,z,0),typeof B){case "number":W=W.encoder_;eR(B);JZ(W,K7,uR);break;case "bigint":z=BigInt.asUintN(64,B);z=new ohT(Number(z&BigInt(4294967295)),Number(z>>BigInt(32)));JZ(W.encoder_,z.JSC$8863_lo,z.JSC$8863_hi);break;default:z=xfr(B),JZ(W.encoder_,z.JSC$8863_lo,z.JSC$8863_hi)}};
Hmr=function(W,B,z){B=_.di(B);B!=null&&B!=null&&(_.wo(W,z,0),_.hmr(W.encoder_,B))};
_.SKD=function(W,B,z){FFR(W,z,O7v(B))};
bm2=function(W,B,z){B=_.vMr(B);B!=null&&(_.wo(W,z,0),W.encoder_.JSC$8865_buffer_.push(B?1:0))};
fRt=function(W,B,z){B=_.l9(B);B!=null&&j3k(W,z,YX8(B))};
Omt=function(W,B,z,G,Y){Nir(W,z,$f0(B,G),Y)};
_.Xb2=function(W,B,z){B=B==null||typeof B=="string"||B instanceof Iu?B:void 0;B!=null&&j3k(W,z,mfr(B,!0).buffer)};
KFk=function(W,B,z){B=_.VRR(B);B!=null&&B!=null&&(_.wo(W,z,0),tZ(W.encoder_,B))};
_.uMy=function(W,B,z){B=_.di(B);B!=null&&(B=parseInt(B,10),_.wo(W,z,0),_.hmr(W.encoder_,B))};
_.sK=function(W,B){return function(z,G){var Y={treatNewDataAsImmutable:!0};G&&Object.assign(Y,G);z=wbr(z,void 0,void 0,Y);try{var d=new W,E=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;dZv(B)(E,z);var v=d}finally{z.free()}return v}};
_.Pb=function(W){return function(B){return emr(B,W)}};
mZT=function(W){return function(){return emr(this,W)}};
_.xZR=function(W){return f7(function(B){return B instanceof W&&!PQ(B)})};
_.ro=function(W){return function(B){return DZD(W,B)}};
nhQ=function(W,B){return Q3v({child:W,origin:B||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:yZ2,getPayloadCase:function(z){return z.getPayloadCase()},
createInitMessage:function(z){var G=new I3,Y=new qKX;z=_.o3(Y,1,z);return _.hZ(G,5,Hb,z)}})};
FM=function(W){return{valueOf:W}.valueOf()};
$Z8=function(){var W=null;if(!NoD)return W;try{var B=function(z){return z};
W=NoD.createPolicy("goog#html",{createHTML:B,createScript:B,createScriptURL:B})}catch(z){}return W};
UZD=function(){LFR===void 0&&(LFR=$Z8());return LFR};
_.bQ=function(W){var B=UZD();W=B?B.createScriptURL(W):W;return new SN(W)};
_.jN=function(W){if(W instanceof SN)return W.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.OK=function(W){return Object.isFrozen(W)&&Object.isFrozen(W.raw)};
MNR=function(W){return W.toString().indexOf("`")===-1};
Km=function(W){return new _.XM(aRr,W)};
uQ=function(W){return W instanceof _.XM};
_.mF=function(W){if(uQ(W))return W.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
xh=function(W){return new RmR(function(B){return B.substr(0,W.length+1).toLowerCase()===W+":"})};
_.DR=function(W,B){B=B===void 0?WDD:B;if(uQ(W))return W;for(var z=0;z<B.length;++z){var G=B[z];if(G instanceof RmR&&G.isValid(W))return Km(W)}};
_.yN=function(W,B){B=B===void 0?WDD:B;return _.DR(W,B)||QN};
_.qZ=function(W){var B=window;if(typeof MediaSource!=="undefined"&&W instanceof MediaSource||typeof B.ManagedMediaSource!=="undefined"&&W instanceof B.ManagedMediaSource)return Km(URL.createObjectURL(W));B=W.type;B.toLowerCase()==="application/octet-stream"?B=!0:(B=B.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),B=(B==null?void 0:B.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(B[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(B[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(B[1])||/^font\/[\w-]+$/i.test(B[1])));if(!B)throw Error("Z");return Km(URL.createObjectURL(W))};
_.BjQ=function(W){for(var B=_.nm.apply(1,arguments),z=[W[0]],G=0;G<B.length;G++)z.push(String(B[G])),z.push(W[G+1]);return Km(z.join(""))};
_.Gdy=function(W){if(!z6X){a:{var B=document.createElement("a");try{B.href=W}catch(z){W=void 0;break a}W=B.protocol;W=W===":"||W===""?"https:":W}return W}try{B=new URL(W)}catch(z){return"https:"}return B.protocol};
_.NZ=function(W){W instanceof _.XM?W=_.mF(W):W=Y0Q.test(W)?W:void 0;return W};
$h=function(W,B){B=_.NZ(B);B!==void 0&&(W.href=B)};
MZ=function(W){var B=UZD();W=B?B.createHTML(W):W;return new UK(W)};
R3=function(W){if(W instanceof UK)return W.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.WG=function(W,B){W.src=_.jN(B).toString()};
dku=function(W,B){W.setAttribute("sandbox","");for(var z=0;z<B.length;z++)W.sandbox.supports&&!W.sandbox.supports(B[z])||W.sandbox.add(B[z])};
_.A6R=function(W,B,z){W.removeAttribute("srcdoc");switch(B){case 0:if(z instanceof SN)throw new pGv("TrustedResourceUrl",0);dku(W,[]);B=_.NZ(z);B!==void 0&&(W.src=B);break;case 1:if(!(z instanceof SN))throw new pGv(typeof z,1);dku(W,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.WG(W,z);break;case 2:if(z instanceof SN)throw new pGv("TrustedResourceUrl",2);dku(W,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
B=_.NZ(z);B!==void 0&&(W.src=B);break;default:_.qT(B)}};
_.BG=function(W,B,z,G){B=_.NZ(B);return B!==void 0?W.open(B,z,G):null};
_.zd=function(W){W=W===void 0?document:W;var B,z;W=(z=(B=W).querySelector)==null?void 0:z.call(B,"script[nonce]");return W==null?"":W.nonce||W.getAttribute("nonce")||""};
_.YA=function(W){var B=UZD();W=B?B.createScript(W):W;return new _.Gd(W)};
iNx=function(W){if(W instanceof _.Gd)return W.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
EAD=function(W){var B=_.zd(W.ownerDocument);B&&W.setAttribute("nonce",B)};
_.dj=function(W,B){W.textContent=iNx(B);EAD(W)};
_.pN=function(W,B){W.src=_.jN(B);EAD(W)};
_.A6=function(W,B){if(W.nodeType===1&&/^(script|style)$/i.test(W.tagName))throw Error("Z");W.innerHTML=R3(B)};
_.i7=function(W,B,z,G){if(W.length===0)throw Error("Z");W=W.map(function(d){if(d instanceof TjD)d=d.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return d});
var Y=z.toLowerCase();if(W.every(function(d){return Y.indexOf(d)!==0}))throw Error("aa`"+z);
B.setAttribute(z,G)};
_.E0=function(W,B,z){if(B instanceof SN)W.href=_.jN(B).toString(),W.rel=z;else{if(vAR.indexOf(z)===-1)throw Error("ba`"+z);B=_.NZ(B);B!==void 0&&(W.href=B,W.rel=z)}};
c6y=function(W){if(W instanceof vG)return W.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.wGv=function(W,B){B=_.NZ(B);B!==void 0&&(W.href=B)};
VFr=function(W){return _.bQ(W)};
J6k=function(W,B){W&&(B=W.indexOf(B),0<=B&&W.splice(B,1))};
cG=function(W){return typeof W==="function"};
gAR=function(W){return W instanceof wj||W&&"closed"in W&&cG(W.remove)&&cG(W.add)&&cG(W.unsubscribe)};
Vc=function(){};
J6=function(W){tFx(function(){throw W;})};
gj=function(W){return W};
t6=function(){return sRQ(_.nm.apply(0,arguments))};
sRQ=function(W){return W.length===0?gj:W.length===1?W[0]:function(B){return W.reduce(function(z,G){return G(z)},B)}};
P7X=function(W){var B;return(B=W!=null?W:void 0)!=null?B:Promise};
ZNQ=function(W,B){return new s0(function(z){var G=0;return B.schedule(function(){G===W.length?z.complete():(z.next(W[G++]),z.closed||this.schedule())})})};
r6X=function(W,B){if(!W)throw Error("ca");return new s0(function(z){var G=new wj;G.add(B.schedule(function(){var Y=W[Symbol.asyncIterator]();G.add(B.schedule(function(){var d=this;Y.next().then(function(E){E.done?z.complete():(z.next(E.value),d.schedule())})}))}));
return G})};
kdQ=function(W,B,z){B=B.schedule(function(){try{z.call(this)}catch(G){W.error(G)}},0);
W.add(B)};
C78=function(W,B){return new s0(function(z){var G;z.add(B.schedule(function(){G=W[l1t]();kdQ(z,B,function(){var Y=G.next(),d=Y.value;Y.done?z.complete():(z.next(d),this.schedule())})}));
return function(){var Y;return cG((Y=G)==null?void 0:Y.return)&&G.return()}})};
I10=function(W,B){return new s0(function(z){var G=new wj;G.add(B.schedule(function(){var Y=W[PG]();G.add(Y.subscribe({next:function(d){G.add(B.schedule(function(){return z.next(d)}))},
error:function(d){G.add(B.schedule(function(){return z.error(d)}))},
complete:function(){G.add(B.schedule(function(){return z.complete()}))}}))}));
return G})};
oAu=function(W,B){return new s0(function(z){return B.schedule(function(){return W.then(function(G){z.add(B.schedule(function(){z.next(G);z.add(B.schedule(function(){return z.complete()}))}))},function(G){z.add(B.schedule(function(){return z.error(G)}))})})})};
h6x=function(W){return new TypeError("da`"+(W!==null&&typeof W==="object"?"an invalid object":"'"+W+"'"))};
FDT=function(W,B){if(W!=null){if(cG(W[PG]))return I10(W,B);if(HNy(W))return ZNQ(W,B);if(cG(W==null?void 0:W.then))return oAu(W,B);if(Symbol.asyncIterator&&cG(W==null?void 0:W[Symbol.asyncIterator]))return r6X(W,B);if(cG(W==null?void 0:W[l1t]))return C78(W,B)}throw h6x(W);};
rj=function(W,B){return B?FDT(W,B):Z1(W)};
Z1=function(W){if(W instanceof s0)return W;if(W!=null){if(cG(W[PG]))return S0X(W);if(HNy(W))return bNQ(W);if(cG(W==null?void 0:W.then))return jRy(W);if(Symbol.asyncIterator&&cG(W==null?void 0:W[Symbol.asyncIterator]))return f1r(W);if(cG(W==null?void 0:W[l1t]))return ONQ(W)}throw h6x(W);};
S0X=function(W){return new s0(function(B){var z=W[PG]();if(cG(z.subscribe))return z.subscribe(B);throw new TypeError("ea");})};
bNQ=function(W){return new s0(function(B){for(var z=0;z<W.length&&!B.closed;z++)B.next(W[z]);B.complete()})};
jRy=function(W){return new s0(function(B){W.then(function(z){B.closed||(B.next(z),B.complete())},function(z){return B.error(z)}).then(null,J6)})};
ONQ=function(W){return new s0(function(B){for(var z=W[l1t]();!B.closed;){var G=z.next(),Y=G.value;G.done?B.complete():B.next(Y)}return function(){return cG(z==null?void 0:z.return)&&z.return()}})};
f1r=function(W){return new s0(function(B){XGQ(W,B).catch(function(z){return B.error(z)})})};
XGQ=function(W,B){var z,G,Y,d,E,v;return _.T(function(c){switch(c.nextAddress){case 1:_.kA(c,2,3),d=_.l7(W);case 5:return c.yield(d.next(),8);case 8:G=c.yieldResult;if(G.done){c.jumpTo(3);break}E=G.value;B.next(E);c.jumpTo(5);break;case 3:_.CN(c);_.IR(c,9);if(!G||G.done||!(Y=d.return)){c.jumpTo(9);break}return c.yield(Y.call(d),9);case 9:_.CN(c,0,0,1);if(z)throw z.error;_.oR(c,10,1);break;case 10:_.oR(c,4);break;case 2:v=_.h6(c);z={error:v};c.jumpTo(3);break;case 4:B.complete(),_.HG(c)}})};
KDv=function(W,B){return B?ZNQ(W,B):bNQ(W)};
upt=function(W){return cG(W[W.length-1])?W.pop():void 0};
SF=function(W){var B=W[W.length-1];return B&&cG(B.schedule)?W.pop():void 0};
b7=function(){var W=_.nm.apply(0,arguments),B=SF(W);return B?ZNQ(W,B):KDv(W)};
jF=function(W){var B=cG(W)?W:function(){return W};
return new s0(function(z){return z.error(B())})};
fN=function(W){return function(B){if(cG(B==null?void 0:B.lift))return B.lift(function(z){try{return W(z,this)}catch(G){this.error(G)}});
throw new TypeError("fa");}};
Xp=function(){return fN(function(W,B){var z=null;W._refCount++;var G=new O0(B,void 0,void 0,void 0,function(){if(!W||W._refCount<=0||0<--W._refCount)z=null;else{var Y=W._connection,d=z;z=null;!Y||d&&Y!==d||Y.unsubscribe();B.unsubscribe()}});
W.subscribe(G);G.closed||(z=W.connect())})};
mk2=function(){var W=e6R;var B=B===void 0?0:B;return fN(function(z,G){G.add(W.schedule(function(){return z.subscribe(G)},B))})};
KN=function(W){return fN(function(B,z){var G=0;B.subscribe(new O0(z,function(Y){z.next(W.call(void 0,Y,G++))}))})};
Dky=function(W){return KN(function(B){return xku(B)?W.apply(null,_.u7(B)):W(B)})};
Nju=function(W){if(W.length===1){var B=W[0];if(QR8(B))return{args:B,keys:null};if(B&&typeof B==="object"&&y6y(B)===q0T)return W=nAx(B),{args:W.map(function(z){return B[z]}),
keys:W}}return{args:W,keys:null}};
eF=function(){var W=_.nm.apply(0,arguments),B=SF(W),z=upt(W);W=Nju(W);var G=W.args,Y=W.keys;if(G.length===0)return rj([],B);B=new s0($kT(G,B,Y?function(d){for(var E={},v=0;v<d.length;v++)E[Y[v]]=d[v];return E}:gj));
return z?B.pipe(Dky(z)):B};
$kT=function(W,B,z){z=z===void 0?gj:z;return function(G){LDy(B,function(){for(var Y=W.length,d=Array(Y),E=Y,v=W.map(function(){return!1}),c=!0,J={i$jscomp$217:0};J.i$jscomp$217<Y;J={i$jscomp$217:J.i$jscomp$217},J.i$jscomp$217++)LDy(B,function(g){return function(){rj(W[g.i$jscomp$217],B).subscribe(new mD(G,function(t){d[g.i$jscomp$217]=t;
c&&(v[g.i$jscomp$217]=!0,c=!v.every(gj));c||G.next(z(d.slice()))},function(){return--E===0}))}}(J),G)},G)}};
LDy=function(W,B,z){W?z.add(W.schedule(B)):B()};
Ukk=function(W,B,z,G){var Y=[],d=0,E=0,v=!1,c=function(J){d++;Z1(z(J,E++)).subscribe(new O0(B,function(g){B.next(g)},void 0,function(){d--;
for(var g={};Y.length&&d<G;g={bufferedValue:void 0})g.bufferedValue=Y.shift(),c(g.bufferedValue);!v||Y.length||d||B.complete()}))};
W.subscribe(new O0(B,function(J){return d<G?c(J):Y.push(J)},void 0,function(){v=!0;
!v||Y.length||d||B.complete()}));
return function(){Y=null}};
xA=function(W,B){var z=z===void 0?Infinity:z;if(cG(B))return xA(function(G,Y){return KN(function(d,E){return B(G,d,Y,E)})(Z1(W(G,Y)))},z);
typeof B==="number"&&(z=B);return fN(function(G,Y){return Ukk(G,Y,W,z)})};
MFx=function(W){W=W===void 0?Infinity:W;return xA(gj,W)};
a1Q=function(){var W=_.nm.apply(0,arguments);return MFx(1)(KDv(W,SF(W)))};
R6x=function(W){return new s0(function(B){Z1(W()).subscribe(B)})};
D1=function(W,B,z){if(cG(z)){var G=z;z=void 0}if(G)return D1(W,B,z).pipe(Dky(G));G=_.A(cG(W.addEventListener)&&cG(W.removeEventListener)?WPD.map(function(E){return function(v){return W[E](B,v,z)}}):cG(W.addListener)&&cG(W.removeListener)?B3x.map(zkQ(W,B)):cG(W.on)&&cG(W.off)?GFD.map(zkQ(W,B)):[]);
var Y=G.next().value,d=G.next().value;return!Y&&HNy(W)?xA(function(E){return D1(E,B,z)})(KDv(W)):new s0(function(E){if(!Y)throw new TypeError("ga");
var v=function(){var c=_.nm.apply(0,arguments);return E.next(1<c.length?c:c[0])};
Y(v);return function(){return d(v)}})};
zkQ=function(W,B){return function(z){return function(G){return W[z](B,G)}}};
qk=function(){var W=_.nm.apply(0,arguments),B=SF(W);var z=typeof W[W.length-1]==="number"?W.pop():Infinity;return W.length?W.length===1?Z1(W[0]):MFx(z)(KDv(W,B)):yc};
ddr=function(W){return W.length===1&&YYk(W[0])?W[0]:W};
pck=function(){var W=ddr(_.nm.apply(0,arguments));return fN(function(B,z){var G=[B].concat(_.u7(W)),Y=function(){if(!z.closed)if(G.length>0){try{var d=Z1(G.shift())}catch(v){Y();return}var E=new O0(z,void 0,Vc,Vc);z.add(d.subscribe(E));E.add(Y)}else z.complete()};
Y()})};
Nk=function(W){return fN(function(B,z){var G=0;B.subscribe(new O0(z,function(Y){return W.call(void 0,Y,G++)&&z.next(Y)}))})};
i3y=function(){var W=_.nm.apply(0,arguments);W=ddr(W);return W.length===1?Z1(W[0]):new s0(AvR(W))};
AvR=function(W){return function(B){for(var z=[],G={i$jscomp$220:0};z&&!B.closed&&G.i$jscomp$220<W.length;G={i$jscomp$220:G.i$jscomp$220},G.i$jscomp$220++)z.push(Z1(W[G.i$jscomp$220]).subscribe(new O0(B,function(Y){return function(d){if(z){for(var E=0;E<z.length;E++)E!==Y.i$jscomp$220&&z[E].unsubscribe();z=null}B.next(d)}}(G))))}};
EH2=function(){var W=_.nm.apply(0,arguments),B=upt(W),z=ddr(W);return z.length?new s0(function(G){var Y=z.map(function(){return[]}),d=z.map(function(){return!1});
G.add(function(){Y=d=null});
for(var E={sourceIndex$jscomp$1:0};!G.closed&&E.sourceIndex$jscomp$1<z.length;E={sourceIndex$jscomp$1:E.sourceIndex$jscomp$1},E.sourceIndex$jscomp$1++)Z1(z[E.sourceIndex$jscomp$1]).subscribe(new O0(G,function(v){return function(c){Y[v.sourceIndex$jscomp$1].push(c);Y.every(function(J){return J.length})&&(c=Y.map(function(J){return J.shift()}),G.next(B?B.apply(null,_.u7(c)):c),Y.some(function(J,g){return!J.length&&d[g]})&&G.complete())}}(E),void 0,function(v){return function(){d[v.sourceIndex$jscomp$1]=
!0;
!Y[v.sourceIndex$jscomp$1].length&&G.complete()}}(E)));
return function(){Y=d=null}}):yc};
T32=function(W){var B,z,G;return!!W&&typeof W.active==="boolean"&&typeof((B=W.clock)==null?void 0:B.now)==="function"&&((z=W.clock)==null?void 0:z.timeline)!==void 0&&!((G=W.lastMeasurement)==null||!G.timestamp)&&typeof W.equivalentTo==="function"&&typeof W.extrapolateToNow==="function"&&typeof W.extrapolateToTime==="function"&&typeof W.map==="function"&&typeof W.joinWith==="function"};
vHT=function(W){function B(z){return typeof z==="boolean"||typeof z==="string"||typeof z==="number"||z===void 0||z===null}
return B(W)?!0:Array.isArray(W)?W.every(B):typeof W==="object"?Object.keys(W).every(function(z){return typeof z==="string"})&&Object.values(W).every(function(z){return Array.isArray(z)?z.every(B):B(z)}):!1};
cv2=function(W){if(vHT(W))return W;if(T32(W))return{lastMeasurement:{value:cv2(W.lastMeasurement.value),timestamp:$A(W.lastMeasurement.timestamp,new LN(0,W.lastMeasurement.timestamp.timeline))},active:W.active};try{return JSON.parse(JSON.stringify(W))}catch(B){}return String(W)};
U0=function(W,B){return function(z){return new s0(function(G){return z.subscribe(function(Y){W.timeExecution(B,function(){G.next(Y)})()},function(Y){W.timeExecution(B,function(){G.error(Y)})()},function(){W.timeExecution(B,function(){G.complete()})()})})}};
wcD=function(W,B){var z=!1;return new s0(function(G){var Y=W.setTimeout(function(){z=!0;G.next(!0);G.complete()},B);
return function(){z||W.clearTimeout(Y)}})};
Vw8=function(W){W=W.global;if(W.fetchLater)return W.fetchLater.bind(W)};
Mk=function(W){return fN(function(B,z){var G=null,Y=!1,d;G=B.subscribe(new O0(z,void 0,function(E){d=Z1(W(E,Mk(W)(B)));G?(G.unsubscribe(),G=null,d.subscribe(z)):Y=!0}));
Y&&(G.unsubscribe(),G=null,d.subscribe(z))})};
Jvy=function(W,B,z){return function(G,Y){var d=z,E=B,v=0;G.subscribe(new O0(Y,function(c){var J=v++;E=d?W(E,c,J):(d=!0,c);Y.next(E)},void 0,void 0))}};
gHu=function(W){W=W===void 0?null:W;return fN(function(B,z){var G=!1;B.subscribe(new O0(z,function(Y){G=!0;z.next(Y)},void 0,function(){G||z.next(W);
z.complete()}))})};
aR=function(){return fN(function(W,B){W.subscribe(new O0(B,Vc))})};
RR=function(W){return fN(function(B,z){B.subscribe(new O0(z,function(){return z.next(W)}))})};
Wc=function(W){return W<=0?function(){return yc}:fN(function(B,z){var G=0;
B.subscribe(new O0(z,function(Y){++G<=W&&(z.next(Y),W<=G&&z.complete())}))})};
Bc=function(W){var B=B===void 0?gj:B;var z;W=(z=W)!=null?z:tw8;return fN(function(G,Y){var d,E=!0;G.subscribe(new O0(Y,function(v){var c=B(v);if(E||!W(d,c))E=!1,d=c,Y.next(v)}))})};
tw8=function(W,B){return W===B};
Pft=function(W){W=W===void 0?s8k:W;return fN(function(B,z){var G=!1;B.subscribe(new O0(z,function(Y){G=!0;z.next(Y)},void 0,function(){return G?z.complete():z.error(W())}))})};
s8k=function(){return new Z30};
zF=function(){var W=_.nm.apply(0,arguments);return function(B){return a1Q(B,b7.apply(null,_.u7(W)))}};
rv2=function(W){return fN(function(B,z){var G=0;B.subscribe(new O0(z,function(Y){W.call(void 0,Y,G++,B)||(z.next(!1),z.complete())},void 0,function(){z.next(!0);
z.complete()}))})};
kFX=function(){return fN(function(W,B){var z=[];W.subscribe(new O0(B,function(G){z.push(G);1<z.length&&z.shift()},void 0,function(){for(var G=_.A(z),Y=G.next();!Y.done;Y=G.next())B.next(Y.value);
B.complete()},function(){z=null}))})};
ler=function(W,B){var z=arguments.length>=2;return function(G){return G.pipe(W?Nk(function(Y,d){return W(Y,d,G)}):gj,kFX(),z?gHu(B):Pft(function(){return new Z30}))}};
YH=function(W){var B=cG(W)?W:function(){return W};
return cG()?fN(function(z,G){var Y=B();(void 0)(Y).subscribe(G).add(z.subscribe(Y))}):function(z){var G=new GF(z,B);
cG(z==null?void 0:z.lift)&&(G.lift=z.lift);G.source=z;G.subjectFactory=B;return G}};
Av=function(W){var B=new p3(W,void 0,void 0);return function(z){return YH(function(){return B})(z)}};
EY=function(W,B){return fN(Jvy(W,B,arguments.length>=2))};
TF=function(){var W=_.nm.apply(0,arguments),B=SF(W);return fN(function(z,G){(B?a1Q(W,z,B):a1Q(W,z)).subscribe(G)})};
vc=function(W){return fN(function(B,z){var G=null,Y=0,d=!1;B.subscribe(new O0(z,function(E){var v;(v=G)==null||v.unsubscribe();v=Y++;Z1(W(E,v)).subscribe(G=new O0(z,function(c){return z.next(c)},void 0,function(){G=null;
d&&!G&&z.complete()}))},void 0,function(){(d=!0,!G)&&z.complete()}))})};
cc=function(W,B){B=B===void 0?!1:B;return fN(function(z,G){var Y=0;z.subscribe(new O0(G,function(d){var E=W(d,Y++);(E||B)&&G.next(d);!E&&G.complete()}))})};
Cfv=function(W,B,z){var G=cG(W)||B||z?{next:W,error:B,complete:z}:W;return G?fN(function(Y,d){Y.subscribe(new O0(d,function(E){var v;(v=G.next)==null||v.call(G,E);d.next(E)},function(E){var v;
(v=G.error)==null||v.call(G,E);d.error(E)},function(){var E;
(E=G.complete)==null||E.call(G);d.complete()}))}):gj};
IeX=function(){var W=_.nm.apply(0,arguments),B=upt(W);return fN(function(z,G){for(var Y=W.length,d=Array(Y),E=W.map(function(){return!1}),v=!1,c={i$jscomp$230:0};c.i$jscomp$230<Y;c={i$jscomp$230:c.i$jscomp$230},c.i$jscomp$230++)Z1(W[c.i$jscomp$230]).subscribe(new O0(G,function(J){return function(g){d[J.i$jscomp$230]=g;
v||E[J.i$jscomp$230]||(E[J.i$jscomp$230]=!0,(v=E.every(gj))&&(E=null))}}(c),void 0,Vc));
z.subscribe(new O0(G,function(J){v&&(J=[J].concat(_.u7(d)),G.next(B?B.apply(null,_.u7(J)):J))}))})};
hkt=function(W){try{return!!W&&W.location.href!=null&&oHy(W,"foo")}catch(B){return!1}};
H3D=function(W){var B=[],z=0,G;for(G in W)B[z++]=G;return B};
FPy=function(W,B){for(var z in W)if(W[z]==B)return!0;return!1};
SYX=function(W,B,z){for(var G in W)if(B.call(z,W[G],G,W))return G};
b38=function(W){if(!W||typeof W!=="object")return W;if(typeof W.clone==="function")return W.clone();if(typeof Map!=="undefined"&&W instanceof Map)return new Map(W);if(typeof Set!=="undefined"&&W instanceof Set)return new Set(W);if(W instanceof Date)return new Date(W.getTime());var B=Array.isArray(W)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(W)||W instanceof DataView?{}:new W.constructor(W.length),z;for(z in W)B[z]=b38(W[z]);return B};
j8t=function(W){var B=arguments.length;if(B==1&&Array.isArray(arguments[0]))return j8t.apply(null,arguments[0]);if(B%2)throw Error("ka");for(var z={},G=0;G<B;G+=2)z[arguments[G]]=arguments[G+1];return z};
feT=function(W){var B=arguments.length;if(B==1&&Array.isArray(arguments[0]))return feT.apply(null,arguments[0]);for(var z={},G=0;G<B;G++)z[arguments[G]]=!0;return z};
_.w3=function(W){return new TjD(W[0].toLowerCase())};
O38=function(W){for(var B=_.nm.apply(1,arguments),z=W[0],G=0;G<W.length-1;G++)z+=String(B[G]),z+=W[G+1];B=document.implementation.createHTMLDocument("");G=B.createElement("style");B.head.appendChild(G);B=G.sheet;B.insertRule(z,0);if(B.cssRules.length===1&&(z=B.cssRules[0],z instanceof CSSStyleRule))return new vG(z.cssText.replace(/</g,"\\3C "))};
Xc8=function(W){try{return new URL(W,window.document.baseURI)}catch(B){return new URL("about:invalid")}};
KPX=function(W,B){var z=B.createRange();z.selectNode(B.body);W=MZ(W);return z.createContextualFragment(R3(W))};
uiR=function(W){W=W.nodeName;return typeof W==="string"?W:"FORM"};
eku=function(W){W=W.nodeType;return W===1||typeof W!=="number"};
g3=function(W,B,z){W.setAttribute(B,z)};
mdX=function(W){return W.parts.map(function(B){var z=B.descriptor;return""+B.url+(z?" "+z:"")}).join(" , ")};
_.sY=function(W){var B=_.nm.apply(1,arguments);if(B.length===0)return _.bQ(W[0]);for(var z=W[0],G=0;G<B.length;G++)z+=encodeURIComponent(B[G])+W[G+1];return _.bQ(z)};
_.Pc=function(W,B){W=_.jN(W).toString();var z=W.split(/[?#]/),G=/[?]/.test(W)?"?"+z[1]:"";return xd2(z[0],G,/[#]/.test(W)?"#"+(G?z[2]:z[1]):"",B)};
xd2=function(W,B,z,G){function Y(E,v){E!=null&&(Array.isArray(E)?E.forEach(function(c){return Y(c,v)}):(B+=d+encodeURIComponent(v)+"="+encodeURIComponent(E),d="&"))}
var d=B.length?"&":"?";G.constructor===Object&&(G=Object.entries(G));Array.isArray(G)?G.forEach(function(E){return Y(E[1],E[0])}):G.forEach(Y);
return _.bQ(W+B+z)};
Ze=function(W,B,z,G){this.top=W;this.right=B;this.bottom=z;this.left=G};
Ddr=function(W){W=W.global;if(W.PendingGetBeacon)return W.PendingGetBeacon};
kH=function(W){return function(B){return B.pipe(Q8x(W,YH(new r3)))}};
lf=function(W){return function(B){return B.pipe(Q8x(W,Av(1)))}};
Q8x=function(W,B){function z(G){return new s0(function(Y){return G.subscribe(function(d){C3(W,function(){return void Y.next(d)},3)},function(d){C3(W,function(){return void Y.error(d)},3)},function(){C3(W,function(){return void Y.complete()},3)})})}
return t6(z,mk2(),B,Xp(),z)};
nHx=function(W){var B=yvr(W);return B===null?new I8(null):B.pipe(KN(function(z){z=z.serialize();if(qYr)z=_.Yt.btoa(z);else{for(var G=[],Y=0,d=0;d<z.length;d++){var E=z.charCodeAt(d);E>255&&(G[Y++]=E&255,E>>=8);G[Y++]=E}z=_.Ob(G)}return z}),Wc(1),lf(W.queue))};
N3D=function(W){var B=B===void 0?{}:B;if(typeof Event==="function")return new Event(W,B);if(typeof document!=="undefined"){var z=document.createEvent("CustomEvent");z.initCustomEvent(W,B.bubbles||!1,B.cancelable||!1,B.detail);return z}throw Error();};
$dt=function(W){return typeof W==="string"?document.getElementById(W):W};
UdD=function(W){var B=!1;B=B===void 0?!1:B;if(W.tagName==="IMG"){if(W.complete&&(!W.naturalWidth||!W.naturalHeight))return!0;var z;if(B&&((z=W.style)==null?void 0:z.display)==="none")return!0}var G,Y;return LPy.test((G=W.getAttribute("width"))!=null?G:"")&&LPy.test((Y=W.getAttribute("height"))!=null?Y:"")};
Mw2=function(W,B){if(W.tagName==="IMG")return W.naturalWidth&&W.naturalHeight?!0:!1;try{if(W.readyState)var z=W.readyState;else{var G,Y;z=(G=W.contentWindow)==null?void 0:(Y=G.document)==null?void 0:Y.readyState}return z==="complete"}catch(d){return B===void 0?!1:B}};
ae2=function(W){W||(W=function(B,z,G){B.addEventListener(z,G)});
return W};
zf0=function(W,B){var z=Rky();z=z===void 0?new Wb8:z;if(W=$dt(W)){var G=ae2(G);for(var Y=!1,d=function(O){Y||(Y=!0,B(O))},E,v=2,c=0;c<BH2.length;++c)if(BH2[c]===W.tagName){v=3;
E=[W];break}E||(E=W.querySelectorAll(BH2.join(",")));var J=0,g=0,t=!0,P=W=!1;c={};for(var Z=0;Z<E.length;c={isImg:void 0},Z++){var l=E[Z];if(!UdD(l))if(c.isImg=l.tagName==="IMG",Mw2(l,z.crossDomainLoadedDefault))W=!0,c.isImg&&(t=!0);else{J++;var b=function(O){return function(K){J--;!J&&t&&d(v);O.isImg&&(K=K&&K.type==="error",g--,K||(t=!0),!g&&P&&t&&d(v))}}(c);
G(l,"load",b);c.isImg&&(g++,G(l,"error",b))}}g===0&&(t=!0);E=null;E=_.Yt.document.readyState==="complete";if(J===0&&!W&&E)v=5;else if(J||!W){G(_.Yt,"load",function(){!z.pendingImagesBlockLoad||!g&&t?d(4):P=!0});
return}d(v)}};
GP8=function(W,B,z){if(W)for(var G=0;W!=null&&G<500&&!z(W);++G)W=B(W)};
Ykr=function(W,B){GP8(W,function(z){try{return z===z.parent?null:z.parent}catch(G){}return null},B)};
d5X=function(W,B){if(W.tagName=="IFRAME")B(W);else{W=W.querySelectorAll("IFRAME");for(var z=0;z<W.length&&!B(W[z]);++z);}};
pCT=function(W){return(W=W.ownerDocument)&&(W.parentWindow||W.defaultView)||null};
AI8=function(W,B,z){try{var G=JSON.parse(z.data)}catch(E){}if(typeof G==="object"&&G&&G.type==="creativeLoad"){var Y=pCT(W);if(z.source&&Y){var d;Ykr(z.source,function(E){try{if(E.parent===Y)return d=E,!0}catch(v){}});
d&&d5X(W,function(E){if(E.contentWindow===d)return B(G),!0})}}};
ipk=function(W){return typeof W==="string"?document.getElementById(W):W};
cIR=function(){var W={};return W[0]=_.sY(Ex0,"current"),W[1]=_.sY(THv),W[2]=_.sY(vxx),W};
o8=function(W,B){return W.left===B.left&&W.top===B.top&&W.width===B.width&&W.height===B.height};
wC0=function(W,B){return{left:Math.max(W.left,B.left),top:Math.max(W.top,B.top),width:Math.max(0,Math.min(W.left+W.width,B.left+B.width)-Math.max(W.left,B.left)),height:Math.max(0,Math.min(W.top+W.height,B.top+B.height)-Math.max(W.top,B.top))}};
VkX=function(W,B){return{left:Math.round(W.left+B.x),top:Math.round(W.top+B.y),width:W.width,height:W.height}};
JIT=function(W,B,z){if(W&&B!==null&&B!=B.top){if(!B.top)return new _.hv(-12245933,-12245933);B=B.top}try{return(z===void 0?0:z)?(new _.hv(B.innerWidth,B.innerHeight)).round():_.Fi(B).round()}catch(G){return new _.hv(-12245933,-12245933)}};
gxu=function(W,B,z){try{if(W){if(!B.top)return new Ze(-12245933,-12245933,-12245933,-12245933);B=B.top}var G=JIT(W,B,z),Y=G.height,d=G.width;if(d===-12245933)return new Ze(d,d,d,d);var E=Sw(bf(B.document)),v=E.x,c=E.y;return new Ze(c,v+d,c+Y,v)}catch(J){return new Ze(-12245933,-12245933,-12245933,-12245933)}};
tkv=function(W){var B;return(B=W.google_tag_data)!=null?B:W.google_tag_data={}};
s0k=function(W){var B,z;return typeof((B=W.navigator)==null?void 0:(z=B.userAgentData)==null?void 0:z.getHighEntropyValues)==="function"};
Zpu=function(W){if(!s0k(W))return null;var B=tkv(W);if(B.uach_promise)return B.uach_promise;W=W.navigator.userAgentData.getHighEntropyValues(PA8).then(function(z){B.uach!=null||(B.uach=z);return z});
return B.uach_promise=W};
j0x=function(W){var B;return rIv(kPk(lGX(CAT(IGX(ox2(hfD(Hp0(FbT(new Sku,W.architecture||""),W.bitness||""),W.mobile||!1),W.model||""),W.platform||""),W.platformVersion||""),W.uaFullVersion||""),((B=W.fullVersionList)==null?void 0:B.map(function(z){var G=new bp8;G=_.f3(G,1,z.brand);return _.f3(G,2,z.version)}))||[]),W.wow64||!1)};
fGr=function(W){var B,z;return(z=(B=Zpu(W))==null?void 0:B.then(function(G){return j0x(G)}))!=null?z:null};
OpR=function(W,B){return new s0(function(z){var G=!1,Y=Array(B.length);Y.fill(void 0);var d=new Set,E=new Set,v=function(t,P){W.running?(Y[P]=t,d.add(P),G||(G=!0,C3(W,function(){G=!1;z.next(_.QR(Y))},1))):z.error(new OY(P))},c=function(t,P){E.add(P);
d.add(P);C3(W,function(){z.error(t)},1)},J=function(t){E.add(t);
C3(W,function(){E.size===B.length&&z.complete()},1)},g=B.map(function(t,P){return t.subscribe(function(Z){return void v(Z,P)},function(Z){return void c(Z,P)},function(){return void J(P)})});
return function(){g.forEach(function(t){return void t.unsubscribe()})}})};
ucD=function(W,B,z){function G(){if(B.debugChannel){var O=B.debugChannel,K=O.next;var e={creativeId:B.debugNames.getName(z),requiredSignals:Y,signals:Object.assign({},d),hasPrematurelyCompleted:E,errorMessage:v,erroredSignalKey:c};e={specMajor:2,specMinor:0,specPatch:0,timestamp:$A(B.timeProvider.now(),new LN(0,B.timeProvider.timeline)),instanceId:B.debugNames.getName(B.symbol),creativeState:e};K.call(O,e)}}
for(var Y=Object.keys(W),d={},E=!1,v=null,c=null,J={},g=new Set,t=[],P=[],Z=_.A(Y),l=Z.next(),b={};!l.done;b={key$jscomp$396:void 0},l=Z.next())b.key$jscomp$396=l.value,l=W[b.key$jscomp$396],l instanceof I8?(J[b.key$jscomp$396]=l.value,g.add(b.key$jscomp$396),B.debugChannel&&(d[String(b.key$jscomp$396)]=cv2(l.value))):(l=l.pipe(Bc(function(O,K){return T32(O)||T32(K)?!1:O===K}),KN(function(O){return function(K){B.debugChannel&&(d[String(O.key$jscomp$396)]=cv2(K),G());
var e={};return e[O.key$jscomp$396]=K,e}}(b)),Mk(function(O){return function(K){if(K instanceof OY)throw new XCr(String(O.key$jscomp$396));
throw K;}}(b)),Cfv(function(O){return function(){g.add(O.key$jscomp$396)}}(b),function(O){return function(K){c=String(O.key$jscomp$396);
v=String(K);G()}}(b),function(O){return function(){g.has(O.key$jscomp$396)||(E=!0,G())}}(b))),P.push(b.key$jscomp$396),t.push(l));
(W=Object.keys(d).length>0)&&G();Z=OpR(B.queue,t).pipe(Mk(function(O){if(O instanceof OY)throw new KbX(String(P[O.inputObservableIndex]));throw O;}),KN(function(O){return Object.freeze(Object.assign.apply(Object,[{},
J].concat(_.u7(O))))}));
return(t=t.length>0)&&W?qk(b7(Object.freeze(J)),Z):t?Z:b7(Object.freeze(J))};
ef0=function(W,B,z,G,Y){return W.performanceMonitor.timeExecution.bind(W.performanceMonitor)(733,function(){var d={};try{return B.pipe(Mk(function(E){G(Object.assign({},d,{error:E}));return yc}),xA(function(E){try{var v=z(W,E)}catch(J){return G(Object.assign({},d,{error:J instanceof Error?J:String(J)})),yc}var c={};
return ucD(v,W,E.symbol).pipe(Cfv(function(J){c=J}),Av(1),Xp()).pipe(Y,Mk(function(J){G(Object.assign({},c,{error:J}));
return yc}),zF(void 0),KN(function(){return!0}))})).pipe(EY(function(E){return E+1},0),Mk(function(E){G(Object.assign({},d,{error:E}));
return yc}))}catch(E){return G(Object.assign({},d,{error:E})),yc}})()};
Xi=function(W){var B=new Map;if(typeof W!=="object"||W===null)return B;Object.values(W).forEach(function(z){z&&typeof z.extrapolateToNow==="function"&&(B.has(z.clock.timeline)||B.set(z.clock.timeline,z.clock.now()))});
return B};
m5R=function(W,B){return typeof W==="string"?encodeURIComponent(W):typeof W==="number"?String(W):Array.isArray(W)?W.map(function(z){return m5R(z,B)}).join(","):W instanceof LN?W.toString():W&&typeof W.extrapolateToNow==="function"?m5R(W.extrapolateUsingTimestampMap(B).value,B):W===!0?"1":W===!1?"0":W===void 0||W===null?null:W instanceof x5k?D5Q(W):[W.top,
W.left,W.top+W.height,W.left+W.width].join()};
Q0r=function(W,B){W=Object.entries(W).map(function(z){var G=_.A(z);z=G.next().value;G=G.next().value;G=m5R(G,B);return G===null?"":z+"="+G}).filter(function(z){return z!==""});
return W.length?W.join("&"):""};
nxR=function(W,B){var z=yIk,G=qkk;B=B===void 0?.01:B;return function(Y){B>0&&Math.random()<=B&&(W.global.HTMLFencedFrameElement&&W.global.fence&&typeof W.global.fence.reportEvent==="function"&&W.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),Y=Object.assign({},Y,{errorMessage:Y.error instanceof Error&&Y.error.message?Y.error.message:String(Y.error),errorStack:Y.error instanceof Error&&Y.error.stack?String(Y.error.stack):null,errorName:Y.error instanceof
Error&&Y.error.name?String(Y.error.name):null,errorContext:String(W.performanceMonitor.timedFunctionContext),errorEscapedQueryId:Y.escapedQueryId}),z(Object.assign({},Y,{payloadMapper:function(){return function(d){try{return G(Object.assign({},d))}catch(E){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Xi(Y)).forEach(function(d){W.beaconFactory.makeBeacon(d).sendNow()}))}};
NHD=function(){var W=_.nm.apply(0,arguments);return function(B){var z=B.pipe(Av(1),Xp());B=W.map(function(G){return z.pipe(G,zF(!0))});
return eF(B).pipe(Wc(1),aR())}};
$5k=function(){var W=_.nm.apply(0,arguments);return function(B){var z=B.pipe(Av(1),Xp());B=W.map(function(G){return z.pipe(G,zF(!0))});
return qk.apply(null,_.u7(B)).pipe(Wc(1),aR())}};
LbX=function(W,B){return function(z){var G=z.pipe(Av(1),Xp());z=G.pipe(W,zF(!0));G=G.pipe(t6(B,Av(),Xp()),zF(!0));z=eF([z,G]);return i3y(z,G).pipe(Wc(1),aR())}};
U5y=function(W,B,z){z(!0)};
Mk8=function(W,B){return t6(vc(function(z){var G=W(z),Y=B(z),d={};return G&&Y&&d?new s0(function(E){Y(G,d,function(v){E.next(Object.assign({},z,{canEmit:v}));E.complete()});
return function(){}}):K3}),Nk(function(z){return z.canEmit}))};
aGv=function(W){var B={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(z){return z.pipe(vc(function(G){return new s0(function(Y){function d(){v.disconnect();c.unsubscribe()}
var E=W.MutationObserver;if(E&&G.ref!==void 0){var v=new E(function(J){Y.next(J)});
v.observe(G.ref,B);var c=G.JSC$9361_released.subscribe(d);return d}})}))}};
RfD=function(W){if(W.measurementDeferralState===3)return null;if(W.timeOnScreenReason!==void 0){var B=W.creativeFound===!1?"n":null;if(B!==null)return B}return W.geometricMeasurementErrors instanceof uf?"msf":W.contextValidationErrors instanceof ew?"c":W.contextVisibilityKnown===!1?"pv":W.geometricMeasurementErrors||W.contextValidationErrors?"x":null};
B4Q=function(W,B){return W.replace(W6u,function(z,G){try{var Y=_.mP.get(B,G);if(Y==null||Y.toString()==null)return z;Y=Y.toString();if(Y==""||!_.TT(Y==null?"":String(Y)))return encodeURIComponent(Y).replace(/%2C/g,",")}catch(d){}return z})};
zoQ=function(W,B){var z=Object.assign({},W),G=W.userAgentClientHints;z=(delete z.userAgentClientHints,z);z=W.payloadMapper(z);var Y=Q0r(z,B);return _.xH(W.urlPrefixes,function(d){var E="";typeof G==="string"&&(E="&"+Q0r({uach:G},B));var v={};return B4Q(d,(v.VIEWABILITY=Y,v))+E})};
yIk=function(W,B){var z=W.payloadMapper(W),G=Q0r(z,B);return G?_.xH(W.urlPrefixes,function(Y){Y=Y.indexOf("?")>=0?Y:Y+"?";Y="?&".indexOf(Y.slice(-1))>=0?Y:Y+"&";return Y+G}):W.urlPrefixes};
GtR=function(){return t6(Nk(function(W){return W!==void 0}),KN(function(W){return W}))};
YdX=function(W){return t6(KN(function(){return!0}),TF(!1),lf(W))};
dwu=function(W){return W.length<=0?yc:eF(W.map(function(B){var z=0;return B.pipe(KN(function(G){return{index:z++,value:G}}))})).pipe(Nk(function(B){return B.every(function(z){return z.index===B[0].index})}),KN(function(B){return B.map(function(z){return z.value})}))};
p5X=function(W,B){W.currentState&&(W.previousState=W.currentState);W.currentState=B;W.previousState&&W.previousState.value?(B=Math.max(0,$A(B.timestamp,W.previousState.timestamp)),W.totalTime+=B,W.consecutiveTime+=B):W.consecutiveTime=0;return W};
Ayy=function(){return t6(EY(p5X,{totalTime:0,consecutiveTime:0}),KN(function(W){return W.totalTime}))};
iRy=function(){return t6(EY(p5X,{totalTime:0,consecutiveTime:0}),KN(function(W){return W.consecutiveTime}))};
E$8=function(W,B){return function(z){return dwu(B.map(function(G){return z.pipe(W(G))}))}};
T4t=function(){var W;return t6(Cfv(function(B){return void(W=B.timestamp)}),iRy(),KN(function(B){return{timestamp:W,
value:Math.round(B)}}))};
v$2=function(W,B){return o8(W.topWindowViewportExternalGeometry,B.topWindowViewportExternalGeometry)&&o8(W.elementGeometry,B.elementGeometry)&&o8(W.exposedViewportLocalGeometry,B.exposedViewportLocalGeometry)&&o8(W.intersectionGeometry,B.intersectionGeometry)&&W.elementGeometrySourceName===B.elementGeometrySourceName&&W.measurementRequests===B.measurementRequests&&W.viewportGeometrySourceName===B.viewportGeometrySourceName&&W.viewportLocalAppOffset.x===B.viewportLocalAppOffset.x&&W.viewportLocalAppOffset.y===
B.viewportLocalAppOffset.y};
JyR=function(W,B){return function(z){return function(G){var Y=G.pipe(YH(new r3),Xp());G=z.element.pipe(Bc());Y=Y.pipe(KN(function(d){return d.value}));
return eF([G,Y,B]).pipe(KN(function(d){var E=_.A(d);d=E.next().value;var v=E.next().value;E=E.next().value;if(d.ref===void 0)var c={top:0,left:0,width:0,height:0};else{c=d.ref.getBoundingClientRect();var J=d.ref,g=W.global,t=new _.De(0,0),P=QY(_.yY(J));if(oHy(P,"parent")){do{if(P==g)var Z=_.qd(J);else Z=cyy(J),Z=new _.De(Z.left,Z.top);t.x+=Z.x;t.y+=Z.y}while(P&&P!=g&&P!=P.parent&&(J=P.frameElement)&&(P=P.parent))}c={top:t.y,left:t.x,width:c.width,height:c.height}}c=VkX(c,v.viewportLocalAppOffset);
g=wC0(c,v.exposedViewportLocalGeometry);t=W.timeProvider.now();P=Object;J=P.assign;if(E!==2||W.inCrossDomainIframe||g.width<=0||g.height<=0)var l=!1;else try{var b=W.document.elementFromPoint(g.left+g.width/2,g.top+g.height/2);l=b?!w5r(b,d):!1}catch(O){l=!1}return{timestamp:t,value:J.call(P,{},v,{elementGeometrySourceName:"geo",intersectionGeometry:l?Vax.intersectionGeometry:g,elementGeometry:c})}}),kH(W.queue))}}};
w5r=function(W,B,z){z=z===void 0?0:z;return W.ref===void 0||B.ref===void 0?!1:W.ref===B.ref||_.n3(B.ref,function(G){return G===W.ref})?!0:B.ref.ownerDocument&&B.ref.ownerDocument.defaultView&&B.ref.ownerDocument.defaultView===B.ref.ownerDocument.defaultView.top?!1:z<10&&B.ref.ownerDocument&&B.ref.ownerDocument.defaultView&&B.ref.ownerDocument.defaultView.frameElement?w5r(W,new Nd(B.ref.ownerDocument.defaultView.frameElement),z+1):!0};
swR=function(W){return function(B){return B.pipe(W.ResizeObserver?g$r(W):taD(W),Av(1),Xp())}};
g$r=function(W){return function(B){return B.pipe(vc(function(z){var G=W.ResizeObserver;if(!G||z.ref===void 0)return b7(Vax.elementGeometry);var Y=(new s0(function(d){function E(){z.ref!==void 0&&v.unobserve(z.ref);v.disconnect();c.unsubscribe()}
if(z.ref===void 0)return d.complete(),function(){};
var v=new G(function(J){J.forEach(function(g){d.next(g)})});
v.observe(z.ref);var c=z.JSC$9361_released.subscribe(E);return E})).pipe(U0(W.performanceMonitor,736),KN(function(d){return d.contentRect}));
return qk(b7(z.ref.getBoundingClientRect()),Y)}),Bc(o8))}};
taD=function(W){return function(B){var z=B.pipe(aGv(W)),G=W.onResize;z=qk(B.pipe(KN(function(){return N3D("resize")})),z,G);
return eF(B,z).pipe(U0(W.performanceMonitor,737),KN(function(Y){Y=_.A(Y).next().value;return Y.ref===void 0?void 0:Y.ref.getBoundingClientRect()}),GtR(),Bc(o8))}};
ryD=function(W,B){var z=PEu(W,B).pipe(Av(1),Xp());return function(G){return function(Y){Y=Y.pipe(vc(function(d){return d.element}),Bc());
return eF([z,Y]).pipe(vc(function(d){var E=_.A(d);d=E.next().value;E=E.next().value;return ZRx(W,d.intersectionObserver,swR(W),d.observations,G,d.flushRecords,E)}),kH(W.queue))}}};
ktQ=function(W){return KN(function(B){return B.value.viewportGeometrySourceName!=="nio"?B:Object.assign({},B,{value:Object.assign({},B.value,{exposedViewportLocalGeometry:$H(W,!0),topWindowViewportExternalGeometry:$H(W,!0)})})})};
lIT=function(W,B){return b7(B).pipe(W,KN(function(){return B}))};
PEu=function(W,B){return W.timeProvider.timeline!==CE8?jF(new uf(2)):W.MutationObserver?typeof IntersectionObserver==="undefined"?jF(new uf(0)):(new s0(function(z){var G=new r3,Y=new L3(G.next.bind(G),{threshold:[].concat(_.u7(B))});z.next({observations:G.pipe(U0(W.performanceMonitor,735)),intersectionObserver:Y,flushRecords:function(d){d=Y.takeRecords(d);d.length>0&&G.next(d)}})})).pipe(Wc(1),Av(1),Xp()):jF(new uf(1))};
IIT=function(W){return FDT(W.sort(function(B,z){return B.time-z.time}),e6R)};
ZRx=function(W,B,z,G,Y,d,E){return new s0(function(v){function c(){l||(l=!0,E.ref!==void 0&&B.unobserve(Y,E.ref),g.unsubscribe(),Z.unsubscribe(),P.unsubscribe(),b.unsubscribe())}
if(E.ref!==void 0){o$Q(B,Y);B.observe(Y,E.ref);var J=new Md({timestamp:W.timeProvider.now(),value:Object.assign({},Vax,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),g=G.pipe(xA(function(O){return IIT(O)}),Nk(function(O){return O.target===E.ref}),KN(function(O){return{timestamp:new LN(O.time,CE8),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:O.rootBounds||a8,topWindowViewportExternalGeometry:O.rootBounds||$H(W,!0),measurementRequests:t,elementGeometrySourceName:"nio",intersectionGeometry:O.intersectionRect,elementGeometry:O.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:O.isIntersecting,isV2Visible:O.isVisible}}}),YH(J),Xp()).subscribe(v),t=new r3,P=t.subscribe(function(){d(Y);
v.next({timestamp:W.timeProvider.now(),value:J.value.value});E.ref!==void 0&&(B.unobserve(Y,E.ref),B.observe(Y,E.ref))}),Z=lIT(z,E).subscribe(function(){t.next()}),l=!1,b=E.JSC$9361_released.subscribe(function(){return c()});
return c}})};
hoT=function(W,B){var z=W.getOnBackgrounded().pipe(KN(function(){return"b"}));
return i3y(B,z).pipe(Wc(1),lf(W.queue))};
R8=function(W){return function(B){var z;return B.pipe(Cfv(function(G){return void(z=G.timestamp)}),KN(function(G){return G.value}),W,KN(function(G){return{timestamp:z,
value:G}}))}};
HRk=function(W){return W.intersectionGeometry.width*W.intersectionGeometry.height/(W.elementGeometry.width*W.elementGeometry.height)};
WC=function(W,B,z){z=z===void 0?function(G,Y){return G===Y}:z;
return W.timestamp.equals(B.timestamp)&&z(W.value,B.value)};
zP=function(W,B){return B.pipe(KN(function(z){return new BC(W.timeProvider,{timestamp:W.timeProvider.now(),value:z})}))};
F62=function(W){return function(B){return B.pipe(IeX(W),KN(function(z){var G=_.A(z);z=G.next().value;G=G.next().value;var Y=z.value;return{timestamp:z.timestamp,value:Y>=1?!0:Y<=0?!1:Y>=G}}))}};
bRX=function(){return t6(Nk(function(W,B){return B>0}),Sdk,TF(-1),Bc())};
jwR=function(W,B,z){return W?eF([B,z]).pipe(Nk(function(G){var Y=_.A(G);G=Y.next().value;Y=Y.next().value;return G.timestamp.equals(Y.timestamp)}),KN(function(G){var Y=_.A(G);
G=Y.next().value;Y=Y.next().value;return G.value>Y.value?G:Y})):B};
X52=function(W){return function(B){var z=B.pipe(fIu),G=B.pipe(ORQ);return W instanceof s0?W.pipe(vc(function(Y){return jwR(Y,z,G)})):jwR(W.value,z,G)}};
n$8=function(W,B,z,G){var Y=G.geometryIsOccluded,d=G.exposureThreshold,E=G.wasLargeAdAtRender,v=G.allowLargeAdThreshold,c=G.largeAdExposureThreshold,J=G.mayUseViewportShareExposure,g=G.hasMeasurementStarted;G=G.useIntersectionObserverV2;B=K62(W,z,B);z=uAu(W,z);G=eov(B,G);var t=mwk(W,Y,J,B),P=t.pipe(KN(function(n){return n.value}),Bc(),lf(W),EY(function(n,L){return Math.max(n,L)},0)),Z=t.pipe(KN(function(n){return n.value}),bRX(),lf(W)),l=B.pipe(xwt,KN(function(n){return n.value}),Wc(2),Bc(),lf(W));
E=DwQ(W,B,E,v);var b=E.pipe(TF(!1),Bc(),KN(function(n){return n?c:d}));
v=t.pipe(F62(b),Bc(),lf(W));var O=eF([v,B]).pipe(Nk(function(n){var L=_.A(n);n=L.next().value;L=L.next().value;return n.timestamp.equals(L.timestamp)}),KN(function(n){var L=_.A(n);
n=L.next().value;L=L.next().value;return{visible:n.value,geometry:L.value.elementGeometry}}),EY(function(n,L){return!L.visible&&n.visible?n:L},{visible:!1,
geometry:a8}),KN(function(n){return n.geometry}),TF(a8),lf(W),Bc(o8));
J=J instanceof s0?J.pipe(Bc(),RR()):K3;b=eF([J,b]).pipe(RR());var K=B.pipe(Nk(function(n){return n.value.viewportGeometrySourceName!=="ns"&&n.value.elementGeometrySourceName!=="ns"}),EY(function(n){return n+1},0),TF(0),lf(W)),e=z.pipe(RR(!0),TF(!1),lf(W));
e=eF([g,e]).pipe(KN(function(n){var L=_.A(n);n=L.next().value;L=L.next().value;return n&&!L}),lf(W));
var a=B.pipe(QwR,Bc()),q=a.pipe(KN(function(n){return n.value}),EY(function(n,L){return Math.max(n,L)},0),Bc(),lf(W));
W=a.pipe(KN(function(n){return n.value}),bRX(),lf(W));
return{shouldResetExposureSignals:J,shouldResetViewabilitySignals:b,geometrySignals:{readyGeometryWithDefault:B,measurementStrategy:B.pipe(yyx),creativePosition:O.pipe(Bc(o8)),visible:v.pipe(Bc(WC)),timestampedExposure:t.pipe(Bc(WC)),maximumExposure:P,minimumExposure:Z,browserSize:B.pipe(qdD,Bc(_.UX)),timestampedScreenShare:a,maxScreenShare:q,minScreenShare:W,geometricMeasurementErrors:z,measurementRequests:B.pipe(KN(function(n){return n.value.measurementRequests})),
isLargeAd:E,geometryIsOccluded:Y,hasMeasurementStarted:g,geometryMeasurable:e,validMeasurementCount:K,loadTimeExposure:l,v2VisibilityBitVector:G}}};
uAu=function(W,B){return B.pipe(Nk(function(){return!1}),KN(function(z){return z}),Mk(function(z){return GP(new I8(z),W)}))};
K62=function(W,B,z){return B.pipe(pck(K3),lf(W)).pipe(Bc(function(G,Y){return WC(G,Y,v$2)}),TF({timestamp:z.now(),
value:Vax}),lf(W))};
mwk=function(W,B,z,G){z=G.pipe(X52(z),R8(KN(function(Y){return Math.round(Y*100)/100})),lf(W));
return B instanceof I8?z:eF([z,B]).pipe(KN(function(Y){var d=_.A(Y);Y=d.next().value;d=d.next().value;return{timestamp:d.timestamp.maximum(Y.timestamp),value:d.value?0:Y.value}}),Bc(WC),lf(W))};
DwQ=function(W,B,z,G){B=[B.pipe(KN(function(Y){return Y.value.elementGeometry.width*Y.value.elementGeometry.height>=242500}))];
z instanceof s0&&B.push(z.pipe(KN(function(Y){return!!Y})));
z=eF(B);return G?z.pipe(KN(function(Y){return Y.some(function(d){return d})}),TF(!1),Bc(),lf(W)):GP(new I8(!1),W)};
eov=function(W,B){W=eF([W,B]).pipe(KN(function(Y){var d=_.A(Y);Y=d.next().value;if(d.next().value&&Y.value.isIntersecting)return Y.value.isV2Visible}),Bc());
var z=W.pipe(KN(function(Y){return Y===void 0?!0:Y}),EY(function(Y,d){return Y||!d},!1)),G=W.pipe(EY(function(Y,d){return d===void 0?Y:d?!1:Y!=null?Y:!0},void 0),KN(function(Y){return!!Y}));
return eF([B,EH2(W,z,G)]).pipe(KN(function(Y){var d=_.A(Y);Y=d.next().value;var E=_.A(d.next().value);d=E.next().value;var v=E.next().value;E=E.next().value;var c=0;if(!Y)return 0;if(d===void 0)return 16;d&&(c|=1);d||(c|=2);v&&(c|=4);E&&(c|=8);return c}))};
aIy=function(W,B,z,G,Y){var d=N42.timeThresholdMs;var E=E===void 0?new $wR(B,G):E;return(new s0(function(v){var c=z.pipe(TF(void 0),vc(function(){return L68(Y)})).pipe(KN(function(J){var g=J.value;
J=J.timestamp;var t=g.visible;g=g.consecutiveViewTime;var P=g>=d;P||!t?UwT(E):(J=Math.max(0,$A(B.now(),J)),MaX(E,Math.max(0,d-g-J)));return P}),EY(function(J,g){return g||J},!1),Bc()).subscribe(v);
return function(){E.dispose();c.unsubscribe()}})).pipe(cc(function(v){return!v},!0),lf(W))};
L68=function(W){return dwu([W,W.pipe(T4t())]).pipe(KN(function(B){var z=_.A(B);B=z.next().value;z=z.next().value;return{timestamp:B.timestamp,value:{visible:B.value,consecutiveViewTime:z.value}}}),Bc(function(B,z){return WC(B,z,function(G,Y){return G.consecutiveViewTime===Y.consecutiveViewTime&&G.visible===Y.visible})}))};
Ror=function(){return t6(iRy(),EY(function(W,B){return Math.max(W,B)},0),KN(function(W){return Math.round(W)}))};
Wd0=function(W){return t6(F62(b7(W)),Ror())};
BYR=function(W,B){return B instanceof s0?B.pipe(vc(function(z){return(z=z?15:null)?jF(new uf(z)):W})):(B=B.value?15:null)?jF(new uf(B)):W};
z_u=function(W){var B=new uf(13);if(W.length<1)return{chain:yc,capturedErrors:yc};var z=new r3,G=W[0];return{chain:W.slice(1).reduce(function(Y,d){return Y.pipe(Mk(function(E){z.next(E);return d}))},G).pipe(Mk(function(Y){z.next(Y);
return jF(B)}),YH(new r3),Xp()),
capturedErrors:z}};
GWT=function(W,B){var z=W.pipe(YH(new r3),Xp());return vc(function(G){return z.pipe(B(G))})};
d6k=function(W,B){if(W.inCrossDomainIframe)return jF(new uf(6));var z=new r3;return qk(b7({}),B,z).pipe(KN(function(){return{timestamp:W.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:YwR(W),topWindowViewportExternalGeometry:$H(W,!0),measurementRequests:z,viewportLocalAppOffset:{x:0,y:0}}}}),kH(W.queue))};
YwR=function(W){var B=$H(W,!1);if(!W.inIframe||!hkt(W.global.parent)||W.global.parent===W.global)return B;var z=new Yx(W.global.parent,W.debugChannel);z.beaconFactory=W.beaconFactory;z=YwR(z);W=W.global.frameElement.getBoundingClientRect();return wC0(VkX(wC0(z,W),{x:B.left-W.left,y:B.top-W.top}),B)};
pRu=function(W){if(W.prerendering)return 3;var B;return(B={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[W.visibilityState||W.webkitVisibilityState||W.mozVisibilityState||""])!=null?B:0};
AW2=function(W){return W.document.JSC$9372_onVisibilityChange.pipe(KN(function(B){return B==="visible"}),Bc(),lf(W.queue))};
ixk=function(W,B,z){var G;return B.pipe(Bc(),vc(function(Y){return z.pipe(KN(function(){if(!G){G=!0;try{Y.next()}finally{G=!1}}return!0}))}),TF(!1),lf(W.queue))};
Er0=function(W){return t6(R8(KN(function(B){return B>=1?!0:B<=0?!1:B>=W})),Ayy(),KN(function(B){return Math.round(B)}))};
vrr=function(W,B,z,G,Y){var d=TY0;if(d.length>1)for(var E=0;E<d.length-1;E++)if(d[E]<d[E+1])throw Error();E=Y.pipe(TF(void 0),vc(function(){return z.pipe(T4t())}),Bc(),lf(W));
Y=Y.pipe(TF(void 0),vc(function(){return z.pipe(Ror())}),Bc(),lf(W));
return{totalMeasurementTime:G.pipe(TF(void 0),vc(function(){return B.pipe(KN(function(v){return{timestamp:v.timestamp,value:!0}}),Ayy())}),Bc(),lf(W)),
totalUnviewedTime:G.pipe(TF(void 0),vc(function(){return B.pipe(KN(function(v){return{timestamp:v.timestamp,value:v.value===0}}),Ayy())}),Bc(),lf(W)),
maxTimeOnScreen:G.pipe(TF(void 0),vc(function(){return B.pipe(E$8(Wd0,d))}),Bc(_.UX),lf(W)),
timeOnScreen:G.pipe(TF(void 0),vc(function(){return B.pipe(E$8(Er0,d),KN(function(v){return v.map(function(c,J){return J>0?c-v[J-1]:c})}))}),Bc(_.UX),lf(W)),
maxConsecutiveViewTime:Y,consecutiveViewTime:E.pipe(Bc(WC),lf(W))}};
wR8=function(W){var B=!0;B=B===void 0?!1:B;return t6(vc(function(z){return cWR(W.document,z,B)}),lf(W.queue))};
VD8=function(W,B,z){var G=z.pipe(KN(function(Y){return{value:Y,timestamp:W.timeProvider.now()}}),Bc(WC));
return B instanceof s0?B.pipe(Bc(),vc(function(Y){return Y?GP(new I8({value:!1,timestamp:W.timeProvider.now()}),W.queue):G})):B.value===!1?G:new I8(!1)};
JWR=function(W,B,z,G,Y,d,E){var v=N42;B=B instanceof s0?B.pipe(TF(!1),Bc()):B;var c=!W.isMobile();z=VD8(W,z,G);W=E.measurableCreative.pipe(YdX(W.queue));return Object.assign({},v,{geometryIsOccluded:z,wasLargeAdAtRender:Y,allowLargeAdThreshold:c,mayUseViewportShareExposure:B,hasMeasurementStarted:W,useIntersectionObserverV2:d})};
tD8=function(W,B,z,G,Y,d){var E=1;d=d===void 0?!0:d;E=E===void 0?.01:E;var v=v===void 0?W.timeProvider.intervalObservable(100).pipe(lf(W.queue)):v;return W.performanceMonitor.timeExecution(916,function(){return grD(W,B.pipe(kH(W.queue)),z.pipe(kH(W.queue)),G,Y,d,E,v)})()};
grD=function(W,B,z,G,Y,d,E,v){var c=AW2(W).pipe(KN(function(g){return!g})),J=new sJ2(W,[new PkD(W,TY0),
new ZxR(W,v)]);v=NHD(rWr,kWv);return ef0(W,B,function(g,t){var P=GP(new I8(t.element),g.queue).pipe(wR8(g),lf(g.queue)),Z={loadedElement:P,shouldMeasure:P.pipe(RR(!0)),measurableCreative:P.pipe(KN(function(n){var L=L===void 0?Symbol():L;return Object.freeze({symbol:L,element:GP(new I8(n),g.queue)})})),
creativeSearchResult:GP(new I8("mue"),g.queue)},l=new I8(!1),b=new I8(!1),O=new I8(17),K=new I8(!1),e=new I8(!1),a=GP(dH,g.queue);l=J.buildGeometrySource(Z,{inApp:l,useV2:!1,requestSource:GP(O,g.queue)}).geometrySource;Z=JWR(g,K,b,c,e,a,Z);b=n$8(g.queue,g.timeProvider,l,Z);Z=b.geometrySignals;K=b.shouldResetViewabilitySignals;b=vrr(g.queue,Z.timestampedExposure,Z.visible,b.shouldResetExposureSignals,K);K=aIy(g.queue,g.timeProvider,K,Z.measurementRequests,Z.visible);e=z.pipe(Nk(function(n){return n===
t.element.ref}),KN(function(){return"ur"}));
a=wcD(g.timeProvider,Y).pipe(RR("t"));e=hoT(g,qk(e,a));a=ixk(g,Z.measurementRequests,e.pipe(Nk(function(n){return n!==null})));
l=e.pipe(Nk(function(n){return n!==null}),KN(function(){return pRu(g.global.document)===1}));
var q=l5Q(g.document);return Object.assign({},{beaconFactory:new I8(g.beaconFactory),context:new I8(g),inferredPingId:new I8("lidar2"),timeOnScreenPingId:new I8("lidartos"),binaryContext:new I8(17),binaryVersion:new I8(G),requestSource:O,contextValidationErrors:new I8(g.validate()?null:new ew),contextVisibilityKnown:new I8(q),payloadMapper:new I8(qkk),endOfSessionReason:e,timeOnScreenReason:e,requestMeasurementOnEndOfSession:a,hasImpressionFired:Ckx,crossDomainIframeState:new I8(g.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:dH,inFetchLaterBeaconExperiment:dH,isTurtlex:dH,turtlexReportEventData:new I8(""),reportFencedFrameEvent:K3,isViewableAttributionEnabled:dH,inViewableAttributionExperiment:new I8(0),fetchBeaconFactory:K3,supportsPendingBeacon:dH,supportsFetchLater:dH,emit:new I8(U5y),beginToRenderEvent:new I8(Symbol()),activeViewUnmeasurableEvent:new I8(Symbol()),activeViewViewableEvent:new I8(Symbol()),creativeFound:Ckx,immediateUrlPrefixes:new I8(t.immediateUrls),timeOnScreenUrlPrefixes:new I8(t.timeOnScreenUrls),
cpmavUrls:K3,viewableRelayUrls:K3,measurementDeferralState:new I8(2),urlSerializer:new I8(zoQ),viewUrlSerializer:new I8(I5t),isCreativeLoaded:P.pipe(YdX(g.queue)),pageVisible:c.pipe(KN(function(n){return!n})),
eosPageVisible:l,timestampedExposureHistory:Z.timestampedExposure.pipe(EY(function(n,L){n.push(L);return n},[]))},Z,{viewable:zP(g,K),
maxTimeOnScreen:zP(g,b.maxTimeOnScreen),timeOnScreen:zP(g,b.timeOnScreen),maxConsecutiveViewTime:zP(g,b.maxConsecutiveViewTime),consecutiveViewTime:b.consecutiveViewTime.pipe(KN(function(n){return new BC(g.timeProvider,n)})),
totalMeasurementTime:zP(g,b.totalMeasurementTime),totalUnviewedTime:zP(g,b.totalUnviewedTime),userAgentClientHints:nHx(g),clientOrderPingCounter:new I8(new x5k)})},nxR(W,E),$5k(d?LbX(v,ork):LbX(v,h_x),Hxk))};
Fdy=function(W){var B=_.nm.apply(1,arguments).filter(Boolean).join("&");if(!B)return W;var z=W.match(/[?&]adurl=/);return z?W.slice(0,z.index+1)+B+"&"+W.slice(z.index+1):W+(W.indexOf("?")<0?"?":"&")+B};
pp=function(W,B){return B?"&"+W+"="+encodeURIComponent(B):""};
Sw2=function(){try{var W,B;return!!((W=window)==null?0:(B=W.top)==null?0:B.location.href)&&!1}catch(z){return!0}};
_.AI=function(W){W&&typeof W.dispose=="function"&&W.dispose()};
_.iA=function(W){for(var B=0,z=arguments.length;B<z;++B){var G=arguments[B];_.yR(G)?_.iA.apply(null,G):_.AI(G)}};
jJy=function(){var W=bxr();W=W===void 0?"bevasrsg":W;return new Promise(function(B){var z=window===window.top?window:Sw2()?window:window.top,G=z[W],Y;((Y=G)==null?0:Y.bevasrs)?B(new Ek(G.bevasrs)):(G||(G={},G=(G.nqfbel=[],G),z[W]=G),G.nqfbel.push(function(d){B(new Ek(d))}))})};
f5x=function(W){var B={c:W.ym,e:W.bEW,mc:W.s1k,me:W.txB};W.un&&(B.co={c:W.un.vzX,a:W.un.pLB,s:W.un.gvI});return B};
OxT=function(W){var B,z,G={ym:W.c,bEW:W.e,s1k:(B=W.mc)!=null?B:!1,txB:(z=W.me)!=null?z:!1};W.co&&(G.un={vzX:W.co.c,pLB:W.co.a,gvI:W.co.s});return G};
XRr=function(W){return function(){var B;return _.T(function(z){if(z.nextAddress==1)return z.yield(W(),2);B=z.yieldResult;return z.return({f:function(){return B.ctb()},
c:function(G){return B.blb(G)},
m:function(G){return B.hw(OxT(G))},
mws:function(G){return B.nbX(OxT(G))}})})}};
Kdt=function(W,B){var z=bxr();z=z===void 0?"bevasrsg":z;B={s:function(d){var E;return W.snapshot(Object.assign({},d.c&&{ym:d.c},d.s&&{f7X:d.s},{iI2:(E=d.p)!=null?E:!0}))},
e:function(d){var E;return void((E=W.otC)==null?void 0:E.call(W,d))},
c:function(d,E){return W.bjq(d,E)},
p:W.aAZ,l:function(){return W.cxH()},
wpc:B?XRr(B):void 0};var G=window===window.top?window:Sw2()?window:window.top,Y=G[z];if(Y){Y.bevasrs=B;if(Y.nqfbel!==void 0)for(z=_.A(Y.nqfbel),G=z.next();!G.done;G=z.next())G=G.value,G(B);Y.nqfbel=void 0}else Y={},Y=(Y.bevasrs=B,Y.nqfbel=void 0,Y),G[z]=Y};
e_X=function(W){var B=B===void 0?51:B;var z=[];_.TP(W,uqu,6,_.vC()).forEach(function(G){_.cC(G,2)<=B&&z.push(_.cC(G,1))});
return z};
m6X=function(W){var B=B===void 0?51:B;var z=[];_.TP(W,uqu,6,_.vC()).forEach(function(G){_.cC(G,2)>B&&z.push(_.cC(G,1))});
return z};
x6X=function(W){W.then(function(){},function(){})};
wH=function(W){return{fieldType:1,fieldName:W}};
VJ=function(W){return{fieldType:2,fieldName:W}};
_.JI=function(W){return{fieldType:3,fieldName:W}};
D6x=function(){function W(){Y[0]=1732584193;Y[1]=4023233417;Y[2]=2562383102;Y[3]=271733878;Y[4]=3285377520;g=J=0}
function B(t){for(var P=E,Z=0;Z<64;Z+=4)P[Z/4]=t[Z]<<24|t[Z+1]<<16|t[Z+2]<<8|t[Z+3];for(Z=16;Z<80;Z++)t=P[Z-3]^P[Z-8]^P[Z-14]^P[Z-16],P[Z]=(t<<1|t>>>31)&4294967295;t=Y[0];var l=Y[1],b=Y[2],O=Y[3],K=Y[4];for(Z=0;Z<80;Z++){if(Z<40)if(Z<20){var e=O^l&(b^O);var a=1518500249}else e=l^b^O,a=1859775393;else Z<60?(e=l&b|O&(l|b),a=2400959708):(e=l^b^O,a=3395469782);e=((t<<5|t>>>27)&4294967295)+e+K+a+P[Z]&4294967295;K=O;O=b;b=(l<<30|l>>>2)&4294967295;l=t;t=e}Y[0]=Y[0]+t&4294967295;Y[1]=Y[1]+l&4294967295;Y[2]=
Y[2]+b&4294967295;Y[3]=Y[3]+O&4294967295;Y[4]=Y[4]+K&4294967295}
function z(t,P){if(typeof t==="string"){t=unescape(encodeURIComponent(t));for(var Z=[],l=0,b=t.length;l<b;++l)Z.push(t.charCodeAt(l));t=Z}P||(P=t.length);Z=0;if(J==0)for(;Z+64<P;)B(t.slice(Z,Z+64)),Z+=64,g+=64;for(;Z<P;)if(d[J++]=t[Z++],g++,J==64)for(J=0,B(d);Z+64<P;)B(t.slice(Z,Z+64)),Z+=64,g+=64}
function G(){var t=[],P=g*8;J<56?z(v,56-J):z(v,64-(J-56));for(var Z=63;Z>=56;Z--)d[Z]=P&255,P>>>=8;B(d);for(Z=P=0;Z<5;Z++)for(var l=24;l>=0;l-=8)t[P++]=Y[Z]>>l&255;return t}
for(var Y=[],d=[],E=[],v=[128],c=1;c<64;++c)v[c]=0;var J,g;W();return{reset:W,update:z,digest:G,digestString:function(){for(var t=G(),P="",Z=0;Z<t.length;Z++)P+="0123456789ABCDEF".charAt(Math.floor(t[Z]/16))+"0123456789ABCDEF".charAt(t[Z]%16);return P}}};
$62=function(W,B){B=B===void 0?QJX:B;if(!yW8){var z;W=(z=W.navigator)==null?void 0:z.userAgentData;if(!W||typeof W.getHighEntropyValues!=="function"||W.brands&&typeof W.brands.map!=="function")return Promise.reject(Error("ua"));qwu((W.brands||[]).map(function(Y){var d=new nrD;d=_.f3(d,1,Y.brand);return _.f3(d,2,Y.version)}));
typeof W.mobile==="boolean"&&_.gH(NYt,2,W.mobile);yW8=W.getHighEntropyValues(B)}var G=new Set(B);return yW8.then(function(Y){var d=NYt.clone();G.has("platform")&&_.f3(d,3,Y.platform);G.has("platformVersion")&&_.f3(d,4,Y.platformVersion);G.has("architecture")&&_.f3(d,5,Y.architecture);G.has("model")&&_.f3(d,6,Y.model);G.has("uaFullVersion")&&_.f3(d,7,Y.uaFullVersion);return d.serialize()}).catch(function(){return NYt.serialize()})};
tI=function(W,B,z,G){this.initialValue_=W;this.maxValue_=B;this.currBaseValue_=this.currValue_=W;this.randomFactor_=z||0;this.backoffFactor_=G||2};
sk=function(W){this.src=W;this.listeners={};this.typeCount_=0};
a5k=function(){for(var W;W=Ldx.remove();){try{W.fn.call(W.scope)}catch(B){dk(B)}U6D.put(W)}MDR=!1};
_.R_8=function(W){switch(W){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}};
WHr=function(W){switch(W){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""}};
_.BOk=function(){};
TOX=function(W,B,z,G){W=ztx(G4r(YAv(new _.ZG(1828,"0"),W),new dnr)).disableWithCredentials();B.length&&pSr(W,ACQ(new i4Q,B));G!==void 0&&(W.destinationUrl=G);var Y=new E8T(1828,"","",!1,"",W.build());_.rH(Y,W);var d=new kx({flush:function(E){try{Y.flush(E)}catch(v){z(v)}}});
d.addOnDisposeCallback(function(){setTimeout(function(){try{d.snapshotAndFlush()}finally{Y.dispose()}})});
d.invocationLimit=1E5;d.flushInterval=3E4;d.JSC$9788_flushTimer.setInterval(3E4);return d};
lA=function(){var W,B,z;return(z=(W=globalThis.performance)==null?void 0:(B=W.now)==null?void 0:B.call(W))!=null?z:Date.now()};
wSQ=function(W,B){if(W.disable)return new v8y;B=B?e_X(B):[];W={dz:W.dz,qus:W.odU,qYF:W.tym,destinationUrl:W.destinationUrl,gIb:W.gIb,ebq:W.ebq};B=B===void 0?[]:B;return new cCr(W,B)};
VEt=function(W){if(!W)return null;W=_.Cp(W,2);return W===null||W===void 0?null:MZ(W)};
_.JC2=function(W){if(!W)return null;W=_.Cp(W,4);return W===null||W===void 0?null:_.bQ(W)};
sXX=function(W,B){return B?g8Q(B):W?tEx(W):Promise.resolve()};
g8Q=function(W){return new Promise(function(B,z){var G=_.I0("SCRIPT"),Y=_.JC2(W);_.pN(G,Y);G.onload=function(){_.o0(G);B()};
G.onerror=function(){_.o0(G);z(Error("Fa"))};
(hI("HEAD")[0]||document.documentElement).appendChild(G)})};
tEx=function(W){return new Promise(function(B){var z=_.I0("SCRIPT");if(W){var G=_.Cp(W,6);G=G===null||G===void 0?null:_.YA(G)}else G=null;_.dj(z,G);(hI("HEAD")[0]||document.documentElement).appendChild(z);_.o0(z);B()})};
HC=function(W,B,z){var G,Y=new Promise(function(d){G=setTimeout(d,B)});
return Promise.race([W.finally(function(){return void clearTimeout(G)}),
Y.then(z)])};
POu=function(W,B){try{return globalThis.sessionStorage.setItem(W,B),!0}catch(z){return!1}};
Z4x=function(W,B,z,G){B=B===void 0?0:B;z=z===void 0?W.length:z;var Y=0;for(G&&(Y=Z4x(G));B<z;B++)G=typeof W==="string"?W.charCodeAt(B):W[B],Y=rCr(31,Y)+G|0;return Y};
k4t=function(W,B){return[Z4x(W,0,W.length>>1,B),Z4x(W,W.length>>1)]};
loR=function(W){var B=_.A(k4t(W,Fc));W=B.next().value;B=B.next().value;return W.toString(16)+B.toString(16)};
COR=function(W,B){var z=k4t(B);W=new Uint32Array(W.buffer);B=W[0];var G=_.A(z);z=G.next().value;G=G.next().value;for(var Y=1;Y<W.length;Y+=2){for(var d=B,E=Y,v=z,c=G,J=0;J<22;J++)E=E>>>8|E<<24,E+=d|0,E^=v+38293,d=d<<3|d>>>29,d^=E,c=c>>>8|c<<24,c+=v|0,c^=J+38293,v=v<<3|v>>>29,v^=c;d=[d,E];W[Y]^=d[0];Y+1<W.length&&(W[Y+1]^=d[1])}};
IoT=function(W,B,z,G,Y){var d=(4-(Fc.length+z.length)%4)%4,E=new Uint8Array(4+d+Fc.length+4+z.length),v=new DataView(E.buffer),c=0;v.setUint32(c,Math.random()*4294967295);c=c+4+d;E.set(Fc,c);c+=Fc.length;v.setUint32(c,Y);E.set(z,c+4);COR(E,G);return W.insert(B,function(J){return void globalThis.sessionStorage.removeItem(J)})?POu(B,_.Ob(E))?"s":"t":"i"};
o8x=function(W,B){var z=globalThis.sessionStorage.getItem(W);if(!z)return["m"];try{var G=_.aD(z);COR(G,B)}catch(Y){return globalThis.sessionStorage.removeItem(W),["c"]}for(B=4;B<7&&G[B]===0;)B++;for(z=0;z<Fc.length;z++)if(G[B++]!==Fc[z])return globalThis.sessionStorage.removeItem(W),["d"];z=(new DataView(G.buffer)).getUint32(B);return Math.floor(Date.now()/1E3)>=z?(globalThis.sessionStorage.removeItem(W),["e"]):["a",new Uint8Array(G.buffer,B+4)]};
ht0=function(W){return globalThis.TextEncoder?(new TextEncoder).encode(W):_.Sk(W)};
H4u=function(W){var B=W,z;return function(){if(B){var G=B;B=void 0;z=G.apply(this,arguments)}return z}};
SAv=function(W){return f7(function(B){if(B instanceof W)return!0;var z,G,Y=B==null?void 0:(z=B.ownerDocument)==null?void 0:(G=z.defaultView)==null?void 0:G[W.name];return FHX(Y)&&B instanceof Y})};
_.fp=function(W,B,z){_.bA.call(this);this.JSC$10001_listener_=W;this.JSC$10001_interval_=B||0;this.handler_=z;this.callback_=(0,_.jk)(this.JSC$10003_doAction_,this)};
_.Ok=function(W){W=b4u(W);return _.bQ(W)};
b4u=function(W){return W===null?"null":W===void 0?"undefined":W};
fo0=function(W){if(W&&W.focus)if(W!==document.activeElement)W.focus();else return jXD(function(){return _.T(function(B){document.activeElement&&document.activeElement.blur();return B.return(jXD(function(){W.focus()}))})})};
_.O4D=function(W){var B=B===void 0?5:B;setTimeout(function(){var z;return _.T(function(G){G.nextAddress==1&&(z=document.activeElement);if(G.nextAddress!=5)return(document.activeElement===z||document.activeElement===document.body)&&B>=0&&W?G.yield(fo0(W),5):G.jumpTo(0);if(document.activeElement===W)return G.return();W=W.parentElement;--B;return G.jumpTo(2)})},15)};
jXD=function(W){return new Promise(function(B){requestAnimationFrame(function(){B(W())})})};
KHr=function(W){if(_.Xc)W(_.Xc);else{var B;((B=XS2)!=null?B:XS2=[]).push(W)}};
uA=function(){!_.Xc&&_.Kp&&_.usr(_.Kp());return _.Xc};
_.usr=function(W){_.Xc=W;var B;(B=XS2)==null||B.forEach(KHr);XS2=void 0};
_.ek=function(W){_.Xc&&_.Xc.beforeLoadModuleCode(W)};
_.mb=function(){_.Xc&&_.Xc.JSC$11057_setLoaded()};
xx=function(W){return F4T(W)?Number(W):String(W)};
ett=function(W){this.action=W;this.wfv=!1};
mn2=function(W,B){ett.call(this,"set-drive-options");this.appId=W;this.appOrigin=B};
xnR=function(W){ett.call(this,"visibility");this.visible=W};
dX8=function(W,B,z){QJ.call(this,W,B,z)};
pV8=function(W){yJ.call(this,W)};
ADD=function(W){W=W&&W.getWindow()||window;return W.gadgets&&W.gadgets.rpc};
Ebt=function(W,B){var z=B&&B.getWindow()||window;if(ADD(B))W();else if(igu)igu.push(W);else var G=igu=[W],Y=z.setInterval(function(){if(ADD(B)){z.clearInterval(Y);for(var d=0;d<G.length;d++)G[d]();igu=null}},100)};
vb0=function(W,B){var z=new q5(W);_.rH(B,z);var G={passive:!1};B.listen(z,"mousewheel",function(Y){return void T2k(W,Y)},G).listen(W,"scroll",function(Y){return void T2k(W,Y)},G)};
T2k=function(W,B){var z;a:{for(z=B.target;z;){if(z.nodeType==1){var G=_.np(z,"overflowY");if(G=="auto"||G=="scroll")break a}z=z.parentNode}z=null}if(!z||!_.N5(W,z)||z.scrollHeight==z.clientHeight||B.deltaY>0&&Math.abs(z.scrollTop-(z.scrollHeight-z.clientHeight))<=1||B.deltaY<0&&z.scrollTop==0)B.preventDefault(),B.stopPropagation()};
W5=function(W,B,z,G,Y,d,E,v,c){v=v===void 0?!1:v;c=c===void 0?!1:c;QJ.call(this,void 0,void 0,void 0);QJ.call(this,d?d+" picker modal-dialog":"picker modal-dialog",!0,z);_.$x(W,"protocol");this.iframeManager_=new cDX;this.targetId_=Lp();this.rpcToken_=Lp();W=_.Uk(W);_.M5(W,"hostId");z=_.M5(W,"parent");this.useGapi_=!c&&!0||(z==null?void 0:z.includes("onepick.corp.google.com"));v&&_.a0(W,"fv2","true");this.setUrl(W.toString());this.preferredDialogWidth_=G;this.preferredDialogHeight_=Y;G!==void 0||
Y!==void 0?G=!0:(G=_.M5(_.Uk(W.toString()),"hostId"),wVy||(wVy=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),G=!wVy.has(G));this.autoSizeDialog_=G;this.JSC$10191_gadgetsDomHelper_=E||this.JSC$10142_dom_;B&&(E=this.JSC$10191_gadgetsDomHelper_,B=_.M5(_.Uk(this.JSC$10193_url_),"grugl")=="true"?VlQ:JDQ,ADD(E)||(E=E||bf(document),G=E.createElement("SCRIPT"),_.pN(G,B),G.type="text/javascript",E.JSC$9327_document_.body.appendChild(G)));
W=W.toString();B=null;E=W.indexOf("/picker?");E>-1?B=W.substring(0,E+8-1):ix(W,"/picker")&&(B=W);B&&this.setRelayUrl(B+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(W=this.buttons_,W.JSC$10176_element_=this.buttonEl_,W.render()):_.A6(this.buttonEl_,gbQ),_.R0(this.buttonEl_,!!this.buttons_))};
_.Zg8=function(W){var B=B===void 0?tlv:B;var z=_.Lu(W),G=function(d){d=_.A(d);d.next();d=B5(d);return B(z,d)},Y=function(d){var E=_.A(d);
d=E.next().value;E=B5(E);return W.apply(d,E)};
return function(){var d=_.nm.apply(0,arguments),E=this||_.Yt,v=sev.get(E);v||(v={},sev.set(E,v));return P2u(v,[this].concat(_.u7(d)),Y,G)}};
zt=function(W){var B={};W=W.replace(/\r/g,"").split("\n");for(var z=0;z<W.length;z++){var G=W[z],Y=G.indexOf(":");Y<0||(B[G.substring(0,Y)]=G.substring(Y+2,G.length))}return B};
rDy=function(W,B,z){z=z===void 0?function(){}:z;
return W?B():z()};
_.l_y=function(W){var B;return((B=kU0.documentOverride)!=null?B:W).__wizdispatcher};
_.Y$=function(W){var B=Gt;Gt=W;return B};
_.I_X=function(W){return W===C2v||(W==null?void 0:W.name)==="\u0275NotFound"};
_.d4=function(W,B){var z;if((z=W)==null?0:z.isDisposed)throw Error("jb`"+String(W.debugName));for(;W!==void 0;){z=W;if(z.retrieve)return z.retrieve(B,{optional:!0});W=W.parent}return C2v};
pR=function(W){return{"\u0275prov":{providedIn:"root",token:Symbol(W),factory:void 0,value:void 0}}};
_.obx=function(W){var B=Gt;if(!B){switch(W===void 0?3:W){case 0:W=Error("ib");break;case 1:W=Error("kb");break;case 2:W=Error("lb");break;default:W=Error("mb")}throw W;}return B};
h3R=function(W){var B=_.Y$(W);W={};return W[Symbol.dispose]=function(){_.Y$(B)},W};
Hgy=function(W,B){W.disposables||(W.disposables=[]);W.disposables.push(B)};
Ay=function(W){var B=Gt;B&&!B.isDisposed&&(Hgy(B,W),W.parent=B)};
SEX=function(W){if(W.disposables){for(var B=_.A(W.disposables),z=B.next();!z.done;z=B.next())z=z.value,typeof z==="function"?z():FgT(z);W.disposables.length=0}};
FgT=function(W){if(!W.isDisposed){W.isDisposed=!0;var B;(B=W[Symbol.dispose])==null||B.call(W);delete W.parent;SEX(W)}};
mXT=function(W){var B={retrieve:function(z){switch(z.\u0275prov.token){case bgR.\u0275prov.token:var G=W.asyncDeps;break;case _.jex.\u0275prov.token:G=W.rootElement;break;case f_x.\u0275prov.token:G=W.modelRootElement;break;case Ogt.\u0275prov.token:G=W.appContext;break;case XVv.\u0275prov.token:G=W.rendererData;break;case Kgx.\u0275prov.token:G=W.injectingConstructor;break;case uGT.\u0275prov.token:G=W.dispatcher}if(G)z=G;else a:{for(G=B.parent;G;){var Y=G;if(Y.retrieve){z=Y.retrieve(z);break a}G=
G.parent}G=z.\u0275prov.token;Y=e3k[G];Y!==void 0?z=Y:(Y=z.\u0275prov.providedIn,z.\u0275prov.factory?(z=z.\u0275prov.factory(),G&&Y==="root"&&(e3k[G]=z)):z=C2v)}return z}};
Ay(B);return B};
xXD=function(){var W=_.obx(1),B=_.d4(W,Ogt);_.I_X(B)&&(W=_.d4(W,uGT),_.I_X(W)||W.getOptionalAppContext())};
DXt=function(W){if(typeof document!=="undefined"&&document&&document.getElementById&&(W=document.getElementById(W))){var B=W.tagName.toUpperCase();if(B=="SCRIPT"||B=="LINK")return W}return null};
yDu=function(W,B){if((W=W===void 0?"":W)&&B)throw Error("sb");var z="";var G=_.Yt._F_jsUrl;(W=B||DXt(W))&&(z=W.src?W.src:W.getAttribute("href"));if(G&&z){if(G!=z)throw Error("tb`"+G+"`"+z);z=G}else z=G||z;if(!QeR(z))throw Error("ub");return z};
$Xv=function(){if(!qEx){qEx=!0;try{var W=yDu(_.Yt._F_jsUrl?"":"base-js")}catch(G){return}var B=nbx(N2r(W)),z=Object.keys(B);z.length!==0&&KHr(function(G){for(var Y=_.A(z),d=Y.next();!d.done;d=Y.next()){d=d.value;for(var E=_.A(Object.keys(B[d])),v=E.next();!v.done;v=E.next())G.addExtraEdge(d,v.value)}})}};
UXy=function(){var W=Object.assign({},LgX);Object.getOwnPropertyNames(LgX).forEach(function(B){iE[B]!==void 0&&(W[B]=iE[B])});
return W};
Ml2=function(W,B){if(iE.enablePerformanceTiming){var z,G;(G=(z=performance).mark)==null||G.call(z,W+"Start__"+B)}};
a_R=function(W,B){if(iE.enablePerformanceTiming){var z,G;(G=(z=performance).measure)==null||G.call(z,W+"__"+B,W+"Start__"+B)}};
R3T=function(W,B,z){var G;return W&&B?W+"__"+B:(G=W!=null?W:B)!=null?G:z};
B7T=function(W,B){var z=Object.create(WER);z.debugName=B;!Gt||Ay(z);B=_.Y$(z);try{W(z)}finally{_.Y$(B)}return function(){return void FgT(z)}};
Gi8=function(W){return Ed(W)&&z5t in W};
Ycv=function(W,B){return Object.is(W,B)};
v5=function(W){var B=Tt;Tt=W;return B};
pT2=function(W){if(c5)throw Error("Z");if(Tt!==null){var B=Tt.producersTail;if(B===void 0||B.producer!==W){var z=void 0,G=Tt.recomputing;if(G&&(z=B!==void 0?B.nextProducer:Tt.producers,z!==void 0&&z.producer===W)){Tt.producersTail=z;z.lastReadVersion=W.version;return}var Y=W.consumersTail,d;if(!(d=Y===void 0||Y.consumer!==Tt)){if(G){a:{d=Tt;G=d.producersTail;if(G!==void 0){d=d.producers;do{if(d===Y){G=!0;break a}if(d===G)break;d=d.nextProducer}while(d!==void 0)}G=!1}G=!G}d=G}d&&(G=w4(Tt),z={producer:W,
consumer:Tt,nextProducer:z,prevConsumer:Y,lastReadVersion:W.version,nextConsumer:void 0},Tt.producersTail=z,B!==void 0?B.nextProducer=z:Tt.producers=z,G&&dly(W,z))}}};
EEy=function(W){if(!w4(W)||W.dirty)if(W.dirty||W.lastCleanEpoch!==AXx)(W.producerMustRecompute(W)||iGR(W))&&W.producerRecomputeValue(W),W.dirty=!1,W.lastCleanEpoch=AXx};
T7T=function(W){if(W.consumers!==void 0){var B=c5;c5=!0;try{for(var z=W.consumers;z!==void 0;z=z.nextConsumer){var G=z.consumer;G.dirty||(W=void 0,G.dirty=!0,T7T(G),(W=G.consumerMarkedDirty)==null||W.call(G,G))}}finally{c5=B}}};
vE2=function(){var W;return((W=Tt)==null?void 0:W.consumerAllowSignalWrites)!==!1};
cXD=function(W){W&&(W.producersTail=void 0,W.recomputing=!0);return v5(W)};
VyQ=function(W,B){v5(B);if(W){W.recomputing=!1;B=W.producersTail;var z=B!==void 0?B.nextProducer:W.producers;if(z!==void 0){if(w4(W)){do z=wTx(z);while(z!==void 0)}B!==void 0?B.nextProducer=void 0:W.producers=void 0}}};
iGR=function(W){for(W=W.producers;W!==void 0;W=W.nextProducer){var B=W.producer,z=W.lastReadVersion;if(z!==B.version)return!0;EEy(B);if(z!==B.version)return!0}return!1};
dly=function(W,B){var z=W.consumersTail,G=w4(W);z!==void 0?(B.nextConsumer=z.nextConsumer,z.nextConsumer=B):(B.nextConsumer=void 0,W.consumers=B);B.prevConsumer=z;W.consumersTail=B;if(!G)for(W=W.producers;W!==void 0;W=W.nextProducer)dly(W.producer,W)};
wTx=function(W){var B=W.producer,z=W.nextProducer,G=W.nextConsumer,Y=W.prevConsumer;W.nextConsumer=void 0;W.prevConsumer=void 0;G!==void 0?G.prevConsumer=Y:B.consumersTail=Y;if(Y!==void 0)Y.nextConsumer=G;else if(B.consumers=G,!w4(B))for(W=B.producers;W!==void 0;)W=wTx(W);return z};
w4=function(W){return W.consumerIsAlwaysLive||W.consumers!==void 0};
tyt=function(W){var B=Object.create(JXr);B.computation=W;W=function(){EEy(B);pT2(B);if(B.value===VB)throw B.error;return B.value};
W[gEX]=B;return W};
rXD=function(W,B){var z=Object.create(sgX);z.value=W;B!==void 0&&(z.equal=B);W=function(){pT2(z);return z.value};
W[gEX]=z;return[W,function(G){return Ppv(z,G)},
function(G){vE2()||ZGy(z);Ppv(z,G(z.value))}]};
Ppv=function(W,B){vE2()||ZGy(W);if(!W.equal(W.value,B)){W.value=B;W.version++;AXx++;T7T(W);var z;(z=kiX)==null||z(W)}};
Jy=function(W){var B=v5(null);try{return W()}finally{v5(B)}};
_.g4=function(W,B,z){z=z===void 0?"":z;W=rXD(W,B==null?void 0:B.equals);var G=W[0],Y=G[gEX];Y.debugName=R3T(B==null?void 0:B.debugName,z,"[signal]");if(!iE.enablePerformanceTiming)return W;var d=W[1],E=W[2];return[G,function(v){lDx(function(){return void d(v)},Y)},
function(v){lDx(function(){return void E(v)},Y)}]};
lDx=function(W,B){Ml2("signalSet",B.debugName);try{W()}finally{a_R("signalSet",B.debugName)}};
ID2=function(W,B){var z=_.A(_.g4(W,void 0,"cPpJzc"));W=z.next().value;z=z.next().value;W[Cp8]=z;W[ty]=B;return W};
oE0=function(W){return!!W&&typeof W==="object"&&Object.getPrototypeOf(W)===Object.prototype};
h5R=function(W){return typeof W==="function"&&Cp8 in W&&typeof W[Cp8]==="function"};
HGu=function(W,B){Object.defineProperty(W,ty,{get:function(){return B}})};
P5=function(W,B){if(sd(W)){var z=W.map(function(d){return P5(d,B)});
HGu(z,B);return z}if(oE0(W)){z={};W=_.A(Object.entries(W));for(var G=W.next();!G.done;G=W.next()){var Y=_.A(G.value);G=Y.next().value;Y=Y.next().value;z[G]=P5(Y,B)}HGu(z,B);return z}return ID2(W,B)};
FEy=function(W){if(sd(W))return W.map(function(Y){return FEy(Y)});
if(oE0(W)){var B={};W=_.A(Object.entries(W));for(var z=W.next();!z.done;z=W.next()){var G=_.A(z.value);z=G.next().value;G=G.next().value;B[z]=FEy(G)}return B}return h5R(W)?W():W};
bGD=function(){var W={height:0,width:0};if(!oE0(W))throw Error("Jb");var B=Symbol("Kb");return[P5(W,B),function(z,G){if(z[ty]===B)if(typeof G==="function"){var Y=[].concat(_.u7(FEy(z)));G=G(Y)||Y;Scu(z,[].concat(_.u7(G)))}else Scu(z,G);else throw Error("Lb");}]};
Scu=function(W,B){if(h5R(W))W[Cp8](B);else if(sd(W)&&sd(B))B=P5(B,W[ty]),W.length=0,W.push.apply(W,_.u7(B));else if((oE0(W)||sd(W))&&(sd(B)||typeof B==="object"&&B!==null)){B=_.A(Object.entries(B));for(var z=B.next();!z.done;z=B.next()){var G=_.A(z.value);z=G.next().value;G=G.next().value;var Y=W,d=Y[z];Object.hasOwn(W,z)?Scu(d,G):Y[z]=P5(G,W[ty])}}else throw Error("Mb");};
jg2=function(W){return Object.create(Object.assign({},ZI,W))};
OGx=function(){var W;return(W=fDX)!=null?W:fDX=jg2({consumerAllowSignalWrites:!0})};
_.r4=function(W,B,z){z=z===void 0?"":z;W=tyt(W);var G=W[gEX];G.debugName=R3T(B==null?void 0:B.debugName,z,"[computed]");(B==null?void 0:B.equals)!=null&&(G.equal=B.equals);return W};
k$=function(W){var B=v5(XTt);try{W()}finally{v5(B)}};
xl8=function(W){switch(W.onInitType){case KE2:uCr.schedule(W);break;case e5D:mlR.schedule(W);break;default:_.qT(W.onInitType)}};
N7r=function(W){if(!W.isDisposed)switch(W.effectType){case lE:DlQ.schedule(W);break;case QgR:yX8.schedule(W);break;case qcQ:nEX.schedule(W);break;default:_.qT(W.effectType)}};
UlD=function(){if(CR>0)iE.flushRenderEffectsDuringRender&&DlQ.flush();else{for(var W=_.A($lR),B=W.next();!B.done;B=W.next())B.value.flush();LEk()}};
LEk=function(){_.T(function(W){if(W.nextAddress==1)return W.yield(Promise.resolve(),2);for(var B=_.A(Myx),z=B.next();!z.done;z=B.next())z.value.flush();_.HG(W)})};
R5R=function(W){Iw=!0;try{for(var B=_.A(W),z=B.next();!z.done;z=B.next()){for(var G=z.value,Y=[G],d=G;d.parent!==void 0;)d=d.parent,aDQ(d)&&W.has(d)&&Y.push(d);for(;Y.length>0;){var E=Y.pop();W.delete(E);E.run()}}}finally{Iw=!1}};
ow=function(W){CR--;if(W){W=_.A(WzT);for(var B=W.next();!B.done;B=W.next())B.value.clear()}else CR>0||Iw&&!iE.flushRenderEffectsDuringRender||UlD()};
z28=function(W,B,z){var G=Bqk(W);hy={name:z?G+" ("+z+")":G,isReactive:W.componentType!==H5,parent:hy};W=B();hy=hy.parent;return W};
FA=function(){var W=hy;return W?W.isReactive:!1};
bE=function(W,B,z){var G=hy;B&&(hy=B);try{return z==null?W():W.call(z)}catch(d){W=d;Sa(W,hy);if(W!==GpT){Yjy=hy;B=[];for(z=Gt;z;){var Y=void 0;B.push((Y=z.debugName)!=null?Y:"[context]");Y=void 0;z=(Y=z.parent)!=null?Y:null}dA2=B.reverse()}GpT=W;throw W;}finally{hy=G}};
Sa=function(W,B){try{var z=p_k(B);if(z&&!W.componentStack&&(W.componentStack=z,iE.enableComponentStacksInErrorMessages)){var G=W.message+"\n\nComponent stack: "+z;W.stack&&(W.stack=W.stack.replace(W.message,G));W.message=G}}catch(Y){}};
p_k=function(W){if(Ed(W)&&W.name!==void 0&&W.isReactive!==void 0&&W.parent!==void 0||W===null){for(var B=0,z="";B<20&&W;)z+=W.name+" > ",W=W.parent,B++;W=z.slice(0,-3)}else if(iE.enableContextBasedComponentStacks){a:{for(W=W===void 0?Gt:W;W;){if(Gi8(W))break a;B=void 0;W=(B=W.parent)!=null?B:null}W=null}W=W.getComponentStack().slice(0,20).join(" > ")}else W="";return W};
Bqk=function(W){return W.debugName||W.name||"[component]"};
Aj8=function(W,B,z){B=Object.create(B);W&&(B.effectFn=W);z&&(B.debugName=z);Ay(B);B.componentStack=hy;return B};
_.ja=function(W,B){W=Aj8(W,il0,B);N7r(W)};
_.fR=function(W){var B=Gt;if(B){var z=hy;Hgy(B,function(){var G=v5(OGx());try{bE(function(){return void W()},z)}catch(Y){throw iE.enableContextBasedComponentStacks&&Sa(Y),Y;
}finally{v5(G)}})}};
Od=function(W,B){var z={};(B===void 0||B)&&Ay(z);B=_.Y$(z);try{W(z)}finally{_.Y$(B)}return function(){return void FgT(z)}};
_.XA=function(W){return typeof W==="function"?W():(W==null?0:W[EFT])?W.get():W};
_.KR=function(W,B){W=Aj8(W,Tqy,B);N7r(W)};
vF8=function(W){if(Gt)throw Error("nb");Od(W,!1)};
uE=function(W,B){W=_.Y$(W);try{return Jy(B)}finally{_.Y$(W)}};
ea=function(W,B){var z=p_k(Yjy),G,Y;var d=(Y=(G=dA2)==null?void 0:G.slice())!=null?Y:[];B={componentStack:z,contextTrace:d,errorSeverity:3,featureFlags:UXy(),tagName:B};return[W,B]};
Vju=function(W,B,z){if(Object.hasOwnProperty.call(cjx,W)&&(W=cjx[W],Object.hasOwnProperty.call(W,B)&&(W=W[B],W instanceof Array))){for(var G=null,Y=!1,d=0,E=W.length;d<E;++d){var v=W[d],c=v.contingentAttribute;if(!c)return v.contract;G===null&&(G={});c=Object.hasOwnProperty.call(G,c)?G[c]:G[c]=z(c);if(c===v.requiredValue)return v.contract;c==null&&(Y=!0)}if(Y)return null}B=w_8[B];return typeof B==="number"?B:null};
tjQ=function(W,B,z){var G=null;(W=Jjt[W])&&(G=W[B]);return typeof G!=="number"&&((W=Jjt["*"])&&(G=W[B]),typeof G!=="number")?!1:!0===gFv[G][String(z).toLowerCase()]};
PYQ=function(W,B){B=Vju(W.toLowerCase(),B,function(){var G;(G=iE.handleError)==null||G.call.apply(G,[iE].concat(_.u7(ea(Error("Tb"),W.toLowerCase()))))});
if(B===null)return null;var z;return(z=ssD[B])!=null?z:null};
Zl0=function(W,B,z){if(z===null||z===void 0)return z;B=B.toLowerCase();W=PYQ(W,B);return W===null?z:W(B,z)};
rjR=function(){};
m6=function(W,B){for(;W.length>B;)W.pop()};
kpR=function(W){W=Array(W);m6(W,0);return W};
x$=function(W,B,z){if(z==null)W.removeAttribute(B);else{var G;(G=B.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":B.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?W.setAttributeNS(G,B,z):W.setAttribute(B,z)}};
lET=function(W,B,z){W[B]=z};
IE8=function(W,B,z){W=W.style;if(typeof z==="string")W.cssText=z;else{W.cssText="";for(var G in z)if(CY0.call(z,G)){B=W;var Y=G,d=z[G];Y.indexOf("-")>=0?B.setProperty(Y,d):B[Y]=d}}};
oFy=function(W,B,z){var G=typeof z;G==="object"||G==="function"?W[B]=z:x$(W,B,z)};
h2r=function(){var W=new rjR;W[DI.default]=oFy;W.style=IE8;return W};
HlD=function(W,B,z,G){(G[B]||G[DI.default])(W,B,z)};
SjQ=function(W,B,z){B=new Fzk(B,z);return W.__incrementalDOMData=B};
qw=function(W,B){if(W.__incrementalDOMData)return W.__incrementalDOMData;var z=W.nodeType===1?W.localName:W.nodeName,G=W.nodeType===1?W.getAttribute("key"):null;B=SjQ(W,z,W.nodeType===1?G||B:null);if(W.nodeType===1&&(W=W.attributes,z=W.length)){G=B._attrsArr||(B._attrsArr=kpR(z*2));for(var Y=0,d=0;Y<z;Y+=1,d+=2){var E=W[Y],v=E.value;G[d]=E.name;G[d+1]=v}}return B};
bly=function(W,B,z,G,Y){return B==z&&G==Y};
jsy=function(W){for(var B=nR,z=Nw();z!==W;){var G=z.nextSibling;B.removeChild(z);Ud.deleted.push(z);z=G}};
Nw=function(){return Mw?Mw.nextSibling:nR.firstChild};
aw=function(){Mw=Nw()};
X_r=function(W,B,z){aw();var G;a:{if(G=Mw){do{var Y=G,d=W,E=B,v=qw(Y,E);if(fEr(Y,d,v.nameOrCtor,E,v.key))break a}while(B&&(G=G.nextSibling))}G=null}G||(W==="#text"?(z=Rw.createTextNode(""),SjQ(z,"#text",null),W=z):(G=Rw,Y=nR,typeof W==="function"?G=new W:G=(Y=W==="svg"?"http://www.w3.org/2000/svg":W==="math"?"http://www.w3.org/1998/Math/MathML":Y==null||qw(Y).nameOrCtor==="foreignObject"?null:Y.namespaceURI)?G.createElementNS(Y,W):G.createElement(W),SjQ(G,W,B),W=G,z&&W.setAttribute("nonce",z)),Ud.created.push(W),
G=W);z=G;if(z!==Mw){if(Ol8.indexOf(z)>=0)for(W=nR,B=z.nextSibling,G=Mw;G!==null&&G!==z;)Y=G.nextSibling,W.insertBefore(G,B),G=Y;else nR.insertBefore(z,Mw);Mw=z}};
KzD=function(W,B,z){X_r(W,B,z);nR=Mw;Mw=null;return nR};
uQ2=function(){jsy(null);Mw=nR;nR=nR.parentNode};
e2x=function(){Mw=nR.lastChild};
DAv=function(W,B){B=B===void 0?{}:B;var z=B.matches===void 0?bly:B.matches;return function(G,Y,d){var E=Ud,v=Rw,c=Ol8,J=WR,g=BR,t=Mw,P=nR,Z=fEr;Rw=G.ownerDocument;Ud=new mAr(G);fEr=z;WR=[];BR=[];Mw=null;var l=nR=G.parentNode,b,O=xA0.call(G);if((b=O.nodeType===11||O.nodeType===9?O.activeElement:null)&&G.contains(b)){for(O=[];b!==l;)O.push(b),b=b.parentNode||(l?b.host:null);l=O}else l=[];Ol8=l;try{return W(G,Y,d)}finally{G=Ud,zW&&G.deleted.length>0&&zW(G.deleted),Rw=v,Ud=E,fEr=Z,WR=J,BR=g,Mw=t,nR=P,
Ol8=c}}};
Qsr=function(W,B,z,G){GW.push(HlD);GW.push(W);GW.push(B);GW.push(z);GW.push(G)};
qj2=function(W,B,z){var G=BR;B=B._attrsArr||(B._attrsArr=kpR(G.length));for(var Y=!B.length||!1,d=0;d<G.length;d+=2){var E=G[d];if(Y)B[d]=E;else if(B[d]!==E)break;var v=G[d+1];if(Y||B[d+1]!==v)B[d+1]=v,Qsr(W,E,v,z)}if(d<G.length||d<B.length){for(d=Y=d;d<B.length;d+=2)Yr[B[d]]=B[d+1];for(d=Y;d<G.length;d+=2)Y=G[d],E=G[d+1],Yr[Y]!==E&&Qsr(W,Y,E,z),B[d]=Y,B[d+1]=E,delete Yr[Y];m6(B,G.length);for(var c in Yr)Qsr(W,c,void 0,z),delete Yr[c]}W=yjR;yjR=z=GW.length;for(c=W;c<z;c+=5)(0,GW[c])(GW[c+1],GW[c+
2],GW[c+3],GW[c+4]);yjR=W;m6(GW,W);m6(G,0)};
nFr=function(W){X_r("#text",null);var B=Mw;var z=qw(B);if(z.text!==W){z=z.text=W;for(var G=1;G<arguments.length;G+=1)z=(0,arguments[G])(z);B.data!==z&&(B.data=z)}};
R2X=function(W,B,z){if(z===!1&&NqD.has(B))x$(W,B,null);else if(B!=="idomKey"&&B!=="skip"&&B!=="skipchildren"&&B!=="children"&&B!=="el")if(B.startsWith("on")){if(B[2]!==":")throw Error("Sb`"+B);if(z===void 0||z===null){var G;(G=iE.handleError)==null||G.call.apply(G,[iE].concat(_.u7(ea(Error("Xb`"+B),W.tagName))));W[B]=void 0}else{var Y=B.slice(3);G=FA();if(Y==="jsaction"){z=Array.isArray(z)?z:[z];z=_.A(z);for(var d=z.next();!d.done;d=z.next()){d=d.value;if(typeof d!=="object"||d===null||typeof d.selfReg!==
"function")throw Error("$b`"+B);d.selfReg(0,W,G?_.fR:function(){})}}else{if(typeof z!=="object"||z===null)throw Error("Yb`"+B+"`"+typeof z);
if(typeof z.getFn!=="function")throw Error("Zb`"+B+"`"+Object.keys(z));if(z.selfReg)z.selfReg(0,W,Y,G?_.fR:function(){});
else if(G&&W["on"+Y]===void 0){var E=z.getFn(0);W.addEventListener(Y,E);_.fR(function(){return void W.removeEventListener(Y,E)})}else if(G||!$Au.includes(Y))W["on"+Y]=z.getFn(0)}}}else{if(B.startsWith("data-")&&typeof z==="string")try{z=LzR(z)}catch(v){z="zSoyz"}typeof z!=="function"||W._disposeEffects!=null?((G=B.startsWith("prop:"))&&(B=B.slice(5)),iE.enableAttributeSanitization&&(G&&UA2(W.tagName)||(z=Zl0(W.tagName,B,z))),B==="style"?("function"==typeof _.dY&&z instanceof _.dY&&(z=z.toString()),
Mjy(W,B,z)):G?W[B]=z:aEX(W,B,z)):(W._signalProps||(W._signalProps=[]),W._signalValues||(W._signalValues=[]),W._signalProps.push(B))}};
W10=function(W,B,z){z=(z===void 0?{}:z).isReactive;if(B==null?0:B.el){var G=B.el,Y;(Y=G.onRender)==null||Y.call(G,W);W._disposeRef||(W._disposeRef=function(){var d;(d=G.onUnmount)==null||d.call(G);delete W._disposeRef},z&&_.fR(function(){var d;
(d=W._disposeRef)==null||d.call(W)}))}};
UA2=function(W){return W.length>0&&W.includes("-")&&!B8R.includes(W.toLowerCase())};
zlk=function(W){return Ed(W)&&px in W};
G52=function(W){return zlk(W)?W[px].flattened:W};
dOR=function(W,B){var z=_.nm.apply(2,arguments),G;B=(G=B)!=null?G:{};G={};return G.type=W,G.props=B,G.children=z,G[YhR]=!0,G};
_.AW=function(W){return W.children};
ik=function(W){var B=pMx!==dOR;pMx=W?Azr:dOR;return B};
_.Ew=function(W){return _.$t(W)?"nodeType"in W:!1};
TW=function(){return document.createTextNode("")};
vR=function(W){W=document.createTextNode(String(W));W._isSignalTextNode=!0;return W};
E60=function(W){return W!=null&&W.contentKind===cR||W instanceof UK||itx(W)};
T82=function(W){var B=document.createElement("div");if(itx(W)&&VEt(W))_.A6(B,VEt(W));else if(W instanceof UK)_.A6(B,W);else if(W!=null&&W.contentKind===cR){if(W.contentKind!==cR)throw Error("Wb");W=MZ(W.toString());_.A6(B,W)}W=_.A(B.childNodes);for(var z=W.next();!z.done;z=W.next())z.value._isSafeOrSanitizedHtmlNode=!0;return B};
wY=function(W){W=typeof W;return W==="string"||W==="number"||W==="boolean"};
v6r=function(W){return W instanceof SN||uQ(W)||W instanceof vG||"function"==typeof _.dY&&W instanceof _.dY};
czx=function(W,B){var z=W.parentElement;if(!z)return B;z.replaceChild(B,W);return B};
wMr=function(W,B){var z=W[0].parentElement;if(z)if(W[0].previousSibling||W[W.length-1].nextSibling){z.insertBefore(B,W[0]);for(var G=W.length-1;G>=0;G--)z.removeChild(W[G])}else z.textContent="",z.appendChild(B);return B};
VtR=function(W,B){if(W[0].parentElement)for(var z=W[0].parentElement,G=B.length,Y=W.length,d=G,E=0,v=0,c=W[Y-1].nextSibling,J=null;E<Y||v<d;)if(W[E]===B[v])E++,v++;else{for(;W[Y-1]===B[d-1];)Y--,d--;if(Y===E)for(var g=d<G?v?B[v-1].nextSibling:B[d-v]:c;v<d;){var t=B[v++];z.insertBefore(t,g)}else if(d===v)for(;E<Y;)g=W[E],J&&J.has(g)||z.removeChild(g),E++;else if(W[E]===B[d-1]&&B[v]===W[Y-1])g=W[--Y].nextSibling,z.insertBefore(B[v++],W[E++].nextSibling),z.insertBefore(B[--d],g),W[Y]=B[d];else{if(!J)for(J=
new Map,g=v;g<d;)J.set(B[g],g++);g=J.get(W[E]);if(g==null)z.removeChild(W[E]),E++;else if(v<g&&g<d){t=E;for(var P=1,Z=void 0;++t<Y&&t<d&&(Z=J.get(W[t]))!=null&&Z===g+P;)P++;if(P>g-v)for(t=W[E];v<g;)z.insertBefore(B[v++],t);else z.replaceChild(B[v++],W[E++])}else E++}}return B};
g6Q=function(W){if(Array.isArray(W)){if(W.length>1)throw Error("jc`"+W.length+"`"+W.map(JzD).join(", "));W=W[0]}if(W==null)return null;if(!(W instanceof _.Gd)){var B,z;if((B=window)==null?0:(z=B.trustedTypes)==null?0:z.isScript(W))throw Error("ic");if(String(W).trim().length===0)return null;throw Error("kc`"+JzD(W));}return W};
ttX=function(W,B){B=g6Q(B);B!==null&&_.dj(W,B)};
sd0=function(W){if(Array.isArray(W)){if(W.length>1)throw Error("lc`"+W.length+"`"+W.map(JzD).join(", "));W=W[0]}if(W==null)return null;if(!(W instanceof vG)){if(String(W).trim().length===0)return null;throw Error("mc`"+JzD(W));}return W};
PyD=function(W,B){B=sd0(B);B!==null&&(W.textContent=c6y(B))};
JzD=function(W){return"("+typeof W+") "+(W!=null&&typeof W==="object"?W.constructor.name:typeof W)+" "+W};
Zty=function(){};
gY=function(W,B){B=B===void 0?{}:B;var z=rzX();iE.legacyTriggerSoyRendererEvents&&xXD();_.KR(function(){Vf.setUp();B.isControlFlowComponent&&CR++;var G=z[0],Y=z[px].flattened,d=ik(!0);try{var E=W(),v=k5y(G,E,z);Array.isArray(v)||(z[px].flattened=[v]);var c=z[px].flattened;if(Y&&(!Array.isArray(Y)||Y.length!==0)){var J=Array.isArray(Y)?Y[0]:Y,g=J[JW],t=J._disposeEffects;J._disposeEffects=void 0;J=Array.isArray(c)?c[0]:c;J[JW]=g;J[JW]&&(J[JW].numNodes=J===c?1:c.length);J._disposeEffects=t}z[0]=v;B.isControlFlowComponent&&
ow(!1)}catch(P){throw B.isControlFlowComponent&&ow(!0),P;}finally{ik(d),Vf.tearDown()}},B.debugName);
return z};
k5y=function(W,B,z){for(;typeof B==="function";)B=B();if(B!=null&&B[YhR]){var G,Y,d;(d=iE.handleError)==null||d.call.apply(d,[iE].concat(_.u7(ea(Error("nc`"+((G=B.type)==null?void 0:G.TAG_NAME)),(Y=B.type)==null?void 0:Y.TAG_NAME))))}if(W==null)return B==null?TW():wY(B)?vR(B):v6r(B)?vR(B.toString()):_.Ew(B)?B:B.length===0?TW():l2R(B,z);if(_.Ew(W)){if(B==null)return czx(W,TW());if(wY(B))return Cyy(W,B);if(v6r(B))return Cyy(W,B.toString());if(_.Ew(B))return czx(W,B);if(B.length===0)return czx(W,TW());
B=l2R(B,z);VtR([W],z[px].flattened);return B}W=tW(W);if(B==null)return wMr(W,TW());if(wY(B))return wMr(W,vR(B));if(v6r(B))return wMr(W,vR(B.toString()));if(_.Ew(B))return VtR(W,[B])[0];if(B.length===0)return wMr(W,TW());B=l2R(B,z);VtR(W,z[px].flattened);return B};
Cyy=function(W,B){W.nodeType===Node.TEXT_NODE?W.textContent!==String(B)&&(W.textContent=String(B)):W=czx(W,vR(B));return W};
tW=function(W,B,z){return I2y(W,B!=null?B:[],z===void 0?!1:z)};
l2R=function(W,B){var z=tW(W,void 0,!0);if(z.length===0)return TW();B[px].flattened=z;return W};
I2y=function(W,B,z,G,Y){B=B===void 0?[]:B;z=z===void 0?!1:z;Y=Y===void 0?-1:Y;if(W==null)return B;if(W instanceof PR){var d=W.render();return I2y(d,B,z,G,Y)}if(_.Ew(B)&&B.nodeType===Node.ELEMENT_NODE)switch(B.tagName){case "SCRIPT":ttX(B,W);return;case "STYLE":PyD(B,W);return}wY(W)&&(W=vR(W),G&&z&&(G[Y]=W));if(E60(W)){z=T82(W);z=Array.from(z.childNodes);z=_.A(z);for(d=z.next();!d.done;d=z.next())o6X(B,d.value);return B}v6r(W)&&(W=vR(W.toString()),G&&z&&(G[Y]=W));if(_.Ew(W))return o6X(B,W);if(Array.isArray(W)){for(d=
0;d<W.length;d++)I2y(W[d],B,z,W,d);return B}if(typeof W==="function"){d=gY(function(){var v=W();return v!=null&&!wY(v)&&E60(v)?(v=T82(v),Array.from(v.childNodes)):v},{debugName:"qmF2ne",
debugFn:W})[0];if(Array.isArray(d)){z=_.A(d);for(d=z.next();!d.done;d=z.next())o6X(B,d.value);return B}G&&z&&(G[Y]=d);return o6X(B,d)}if(W!=null&&W[YhR]){G=W;Y=ik(!0);var E=pMx;try{d=E.apply(null,[G.type,G.props].concat(_.u7(G.children)))}finally{ik(Y)}return I2y(d,B,z)}(E=iE.handleError)==null||E.call.apply(E,[iE].concat(_.u7(ea(Error("oc")))));return B};
rzX=function(W){var B={};B=Object.assign([],(B[px]={flattened:[]},B));if(!W)return B;B[0]=l2R(W,B);return B};
o6X=function(W,B){Array.isArray(W)?W.push(B):W.appendChild(B);return W};
Z5=function(W){if(!iE.enableLazyTsx)return W;if(Array.isArray(W)){for(var B=0;B<W.length;B++)W[B]=Z5(W[B]);return W}return W instanceof PR?(W=W.render(),Z5(W)):W};
HtQ=function(W,B){var z,G,Y=Bqk(W),d=function(Z){G=Z;Z=ik(!0);var l=v5(rY);Ml2("render",Y);try{z=Z5(W(B))}finally{a_R("render",Y),v5(l),ik(Z)}};
d=iE.enableContextPerComponent?B7T(d,Y):Od(d,iE.alwaysTrackContexts||!!Gt);Gi8(G);if(!B.renderedFromIdom){var E=_.Y$(G);try{return hl0(W,B,z),z}finally{_.Y$(E)}}!zlk(z)&&Array.isArray(z)&&(z=rzX(z));var v=G52(z);E=Array.isArray(v)?v[0]:v;var c=!1;if(E){var J,g=(J=B==null?void 0:B.idomKey)!=null?J:W;J=v!==E;E._disposeEffects=d;var t=E[JW]||{},P=zlk(z)?z:t.sourceDynamicRange;Object.assign(t,{key:g,numNodes:J?v.length:1,context:G,higherOrder:!!E[JW],sourceDynamicRange:P});E[JW]=t}else c=!0;(function(){var Z=
_.Y$(G);try{hl0(W,B,v)}finally{_.Y$(Z)}})();
c&&d();return z};
F1X=function(W){var B={},z;for(z in W)B={prev$jscomp$24:void 0,next$jscomp$33:void 0},B.prev$jscomp$24=kr[z],B.next$jscomp$33=W[z],kr[z]=function(G){return function(){var Y=_.nm.apply(0,arguments);G.prev$jscomp$24.apply(null,_.u7(Y));G.next$jscomp$33.apply(null,_.u7(Y))}}(B)};
btr=function(){if(FA())throw Error("pc");return ShQ};
jdx=function(W,B){if(!W.__unmounted&&B){W.__unmounted=!0;try{W.didUnmount()}catch(Y){var z,G;(G=iE.handleError)==null||G.call.apply(G,[iE].concat(_.u7(ea(Y,(z=W.__type)==null?void 0:z.TAG_NAME))))}kr.didUnmount(W);W.el=null;B.__instance&&delete B.__instance}};
OtR=function(W,B,z){W._signalProps!=null&&W._disposeEffects==null&&((z===void 0?0:z)?W._disposeEffects=Od(function(){return void f2R(W,B)},iE.alwaysTrackContexts||!!Gt):f2R(W,B))};
f2R=function(W,B){_.KR(function(){for(var z=W._signalProps,G=W._signalValues,Y=0;Y<z.length;Y++){var d=z[Y],E=B[d]();G[Y]!==E&&(G[Y]=E,R2X(W,d,E))}},"e3YVbb")};
XM0=function(W,B,z){var G,Y=[];W._disposeEffects=Od(function(){_.KR(function(){var d=z();if(d===null||d===void 0)d="";if(wY(d)||d===null)G!=null||(G=document.createTextNode("")),G.parentNode!==W&&(G._isSignalTextNode=!0,W.insertBefore(G,B)),G.textContent=String(d);else if(E60(d)){for(var E=Y.length>0?Y[Y.length-1].nextSibling:B,v=_.A(Y),c=v.next();!c.done;c=v.next())W.removeChild(c.value);d=T82(d);Y=Array.from(d.childNodes);d=_.A(Y);for(v=d.next();!v.done;v=d.next())W.insertBefore(v.value,E)}else throw c=
(v=(E=hy)==null?void 0:E.name)!=null?v:"unknown",Error("ec`"+c+"`"+typeof d);},"VvDgC")},iE.alwaysTrackContexts||!!Gt)};
elR=function(W,B){var z=_.nm.apply(2,arguments);B!=null||(B={});return!iE.enableLazyTsx||hy!=null&&!FA()?K1Q(W,B,z):new uRk(W,B,z)};
K1Q=function(W,B,z){if(W===_.AW)return z;if(typeof W==="function")return hy&&!FA()&&(B.renderedFromIdom=!0),z28(W,function(){var d=mOu(W,B,z);if(d)return d;z.length>0&&(B.children=z.length===1?z[0]:z);if(W.componentType===H5){var E;B7T(function(){var v=B;if(W.componentType!==H5)E=!1;else{v||(v={});var c=new lk(v,W),J=v5(rY);try{var g=c.render(v)}finally{v5(J)}g instanceof HTMLElement?(g.__instance=c,c.el=g,c.__type=W,W.TAG_NAME=g.tagName.toLowerCase(),kr.didPatch(c),E=g):E=g}},W.name);
if(E)return E}return HtQ(W,B)},B.debugInstance);
var G=xO0(W,B),Y;for(Y in B)R2X(G,Y,B[Y]);OtR(G,B);tW(z,G);W10(G,B,{isReactive:!0});DOR(G,B);return G};
xO0=function(W,B){W=(Qdr.has(W.toLowerCase())?0:yzT.has(W.startsWith("svg:")?W.replace("svg:",""):W))?document.createElementNS("http://www.w3.org/2000/svg",W.startsWith("svg:")?W.replace("svg:",""):W):qhr(W,B)||document.createElement(W);W[n62]=!0;return W};
N8y=function(W){if(W){var B;(B=W._disposeRef)==null||B.call(W);var z;(z=W._disposeEffects)==null||z.call(W);W.__instance&&W.__instance instanceof Cx&&(B=W.__instance,jdx(B,W),B instanceof lk&&B.disposeEffects());for(B=0;B<W.childNodes.length;B++)N8y(W.childNodes[B])}};
L1T=function(W){$Oy.push(W)===1&&requestAnimationFrame(function(){setTimeout(function(){var B=[].concat(_.u7($Oy));$Oy=[];B=_.A(B);for(var z=B.next();!z.done;z=B.next()){z=z.value;try{for(var G=0;G<z.length;G++)N8y(z[G])}catch(Y){G=z=void 0,(G=(z=iE).handleError)==null||G.call.apply(G,[z].concat(_.u7(ea(Y))))}}})})};
_.w=function(W,B){return pMx.apply(null,[W,B].concat(_.u7(_.nm.apply(2,arguments))))};
_.V=function(W){var B=W.cond;if(B===void 0)return W.else&&W.else();var z=_.r4(function(){return!!B()},void 0,"JHVi8"),G=function(){var Y=B();
if(!Y){var d;(d=iE.handleError)==null||d.call.apply(d,[iE].concat(_.u7(ea(UO0.nonNullableCondIsNull()))))}return Y};
return gY(function(){var Y=z(),d;Od(function(){var E=v5(rY);try{d=Z5(Y?W.then(G):W.else&&W.else())}finally{v5(E)}},!0);
return d},{debugName:W.debugInstance,
debugFn:W.then,isControlFlowComponent:!0})};
Mtv=function(W){return _.V(W)};
_.IJ=function(W){return W.keyBy==="INDEX"?a2t(W):Rl0(W)};
Wjy=function(W){W=_.A(W);for(var B=W.next();!B.done;B=W.next()){var z=void 0;(z=B.value)==null||z()}};
Rl0=function(W){var B=W.keyBy===void 0||W.keyBy==="REFERENCE",z=B?function(g){return g}:W.keyBy,G=[],Y=[],d=[],E=[],v=[],c=[],J=!0;
_.fR(function(){Wjy(E)});
return gY(function(){var g=W.each(),t=g.length;if(t===0){if(G.length===0&&!J)return d;Wjy(E);G=g;Y=[];for(g=0;g<G.length;g++)Y.push(z(G[g]));d=[];E=[];v=[];c=[];W.fallback&&(E[0]=BVQ(function(){d[0]=Z5(W.fallback())}));
J=!1;return d}for(var P=new zY0,Z=G.length-1;Z>=0;Z--)P.push(Y[Z],Z);Z=Array(t);for(var l=Array(t),b=Array(t),O=Array(t),K=Array(B?0:t),e={i$jscomp$450:0};e.i$jscomp$450<t;e={i$jscomp$450:e.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$564:void 0},e.i$jscomp$450++){e.item$jscomp$104=g[e.i$jscomp$450];e.key$jscomp$564=z(e.item$jscomp$104);var a=P.pop(e.key$jscomp$564);a!=null?(b[e.i$jscomp$450]=d[a],l[e.i$jscomp$450]=Y[a],Z[e.i$jscomp$450]=E[a],O[e.i$jscomp$450]=v[a],B||(K[e.i$jscomp$450]=c[a]),k$(function(q){return function(){O[q.i$jscomp$450](q.i$jscomp$450);
if(!B)K[q.i$jscomp$450](q.item$jscomp$104)}}(e)),delete E[a]):Z[e.i$jscomp$450]=BVQ(function(q){return function(){var n=_.A(_.g4(q.i$jscomp$450,void 0,"Fqk1zd")),L=n.next().value;
n=n.next().value;O[q.i$jscomp$450]=n;l[q.i$jscomp$450]=q.key$jscomp$564;if(B)b[q.i$jscomp$450]=Z5(W.children(q.item$jscomp$104,L));else{var By=_.A(_.g4(q.item$jscomp$104,void 0,"GBj5de"));n=By.next().value;By=By.next().value;K[q.i$jscomp$450]=By;b[q.i$jscomp$450]=Z5(W.children(n,L))}}}(e))}Wjy(E);
G=g;Y=l;d=b;E=Z;v=O;c=K;J=!1;return b},{debugName:W.debugInstance,
debugFn:W.each,isControlFlowComponent:!0})};
a2t=function(W){var B=[],z=[],G=[],Y=[],d=!1;_.fR(function(){for(var E=_.A(Y),v=E.next();!v.done;v=E.next())v=v.value,v()});
return gY(function(){var E=W.each();d&&E.length>0&&(Y.pop()(),B.pop(),d=!1);for(var v=Array(E.length),c={i$jscomp$451:0};c.i$jscomp$451<E.length;c={i$jscomp$451:c.i$jscomp$451},c.i$jscomp$451++)if(c.i$jscomp$451<B.length)B[c.i$jscomp$451]!==E[c.i$jscomp$451]&&(k$(function(g){return function(){return void z[g.i$jscomp$451](E[g.i$jscomp$451])}}(c)),B[c.i$jscomp$451]=E[c.i$jscomp$451]),v[c.i$jscomp$451]=G[c.i$jscomp$451];
else{var J=BVQ(function(g){return function(){B[g.i$jscomp$451]=E[g.i$jscomp$451];var t=_.A(_.g4(E[g.i$jscomp$451],void 0,"JMMLmd")),P=t.next().value;t=t.next().value;z[g.i$jscomp$451]=t;v[g.i$jscomp$451]=Z5(W.children(P,g.i$jscomp$451))}}(c));
Y[c.i$jscomp$451]=J}for(;B.length>E.length;)B.pop(),Y.pop()(),z.pop();E.length===0&&!d&&W.fallback&&(c=BVQ(function(){v[0]=Z5(W.fallback())}),Y[0]=c,d=!0);
return G=v},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
BVQ=function(W){var B=Gt;return Od(function(z){var G=v5(rY);try{z.parent=B,W(z)}finally{v5(G)}},!1)};
_.oJ=function(W){return W};
_.hW=function(W){return{isDefault:!0,children:W.children}};
_.HR=function(W){var B=Gyu(W),z=_.r4(function(){return Y2r(B)},void 0,"F1PF4");
return gY(function(){var G=z(),Y;Od(function(){var d=v5(rY);try{Y=Z5(G())}finally{v5(d)}});
return Y},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
Gyu=function(W){W=W.children;return Array.isArray(W)?W:[W]};
djk=function(W){var B=W.props;W=W.getChildren()[0];return B.when?{when:B.when,children:W}:{isDefault:!0,children:W}};
Y2r=function(W){var B=function(){return null};
W=_.A(W);for(var z=W.next();!z.done;z=W.next())if(z=z.value,z!=null&&z[YhR]&&(z=z.type===_.hW?{isDefault:!0,children:z.children[0]}:{when:z.props.when,children:z.children[0]}),z instanceof PR&&(z=djk(z)),z.isDefault)B=z.children;else if(z.when())return z.children;return B};
ArT=function(W){var B=null,z,G={get value(){var d,E;(E=(d=Y).validateGetValue)==null||E.call(d);return Y.__value},set value(d){var E,v;(v=(E=Y).validateSetValue)==null||v.call(E,d);Y.__value=d;Y.__hasBeenSet=!0}},Y=(G.__value=null,G.__hasBeenSet=!1,G.__hasErrored=!1,G.onRender=function(d){if(z&&d!==z){z._disposeRef=void 0;var E;(E=B)==null||E()}z=d;B=W(d)||null},G.onUnmount=function(){var d;
(d=B)==null||d();B=Y.value=null},G[_.p0T]=!0,G);
return Y};
Fq=function(W){return typeof W==="symbol"};
Eq2=function(W){var B=btr();if(B==null)throw _.iix.PRIMITIVE_INVALID_HOOK_CALL();var z=B.hookCounter++;B.hooks||(B.hooks=[]);var G=B.hooks;G[z]||(G[z]={key:W,host:B});if(W!==G[z].key){if(B.__type){var Y;W=(Y=B.__type)==null?void 0:Y.name}else W=B instanceof lk?Bqk(B.functionComponent):"<"+B.el.tagName.toLowerCase()+">";throw _.iix.OUT_OF_ORDER_HOOK_CALL(W);}return G[z]};
TV2=function(W,B){return!W||W.length!==(B==null?void 0:B.length)||W.some(function(z,G){return z!==B[G]})};
vqu=function(W,B){var z=Eq2("onChange"),G=btr();TV2(z.deps,B)&&(z.deps=B,z.pendingEffect=W,G.__syncEffects||(G.__syncEffects=[]),G.__syncEffects.push(z))};
_.SD=function(W,B,z){z!=null||(z={});z=z.appContext;var G=!!iE.legacyTriggerSoyRendererEvents;Vf.setUp();try{var Y=cr2(W,B,z);G&&(B=z,B==null&&(B=_.l_y(document).getAppContext()),B.get(w0T).JSC$29067_getEventTarget().dispatchEvent(new V4R(JrX,W,cR)));Vf.log(W);return Y}finally{Vf.tearDown()}};
cr2=function(W,B,z){var G=function(){var d=v5(rY);try{return Od(function(){var E=_.l_y(_.yY(W)),v;var c=mXT({rootElement:{value:W},appContext:z||(E==null?void 0:(v=E.getOptionalAppContext)==null?void 0:v.call(E)),dispatcher:E});E=_.Y$(c);c=ik(!0);CR++;try{tW(B(),W),ow(!1)}catch(J){throw ow(!0),J;}finally{ik(c),_.Y$(E)}},!1)}catch(E){throw iE.enableContextBasedComponentStacks&&Sa(E),E;
}finally{v5(d)}},Y=bE(function(){return G()});
W[gqy]=!0;return function(){W.textContent="";Y();W[gqy]=!1}};
_.bk=function(W){if(aDQ(Tt)){var B;(B=iE.handleError)==null||B.call.apply(B,[iE].concat(_.u7(ea(Error("dc")))))}var z=Gt,G=hy;xl8({onInitType:e5D,run:function(){if(z&&!z.isDisposed){var Y=_.Y$(z);try{bE(function(){return void W()},G)}catch(d){throw iE.enableContextBasedComponentStacks&&Sa(d),d;
}finally{_.Y$(Y)}}}})};
t48=function(W,B){vqu(function(){return Jy(W)},B)};
_.jD=function(W){FA()?_.bk(function(){Jy(W)}):vqu(function(){return Jy(W)},[])};
PHR=function(W){var B=[].concat(_.u7(W));W.length=0;W=_.A(B);for(B=W.next();!B.done;B=W.next()){B=B.value;sPt(B);var z=B.pendingEffect;B.pendingEffect=null;if(z=z==null?void 0:z())B.pendingCleanup=z}};
sPt=function(W){var B=W.pendingCleanup;W.pendingCleanup=null;B==null||B()};
Zix=function(W,B){if(FA())return W();var z=Eq2("useMemoInternal");TV2(z.deps,B)&&(z.deps=B,z.value=W());return z.value};
rry=function(W,B){return Zix(W,B)};
fx=function(W){return Zix(W,[])};
kyQ=function(W){return fx(function(){return{value:W}})};
_.Ow=function(W,B){if(!W)return null;W=Object.keys(W);W=_.A(W);for(var z=W.next();!z.done;z=W.next()){z=z.value;var G=z.toLowerCase();if(G.indexOf(B,G.length-B.length)>-1)return z}return null};
_.uk=function(){var W=arguments,B=_.Xq;W.length>1?B[W[0]]=W[1]:W.length===1&&Object.assign(B,W[0])};
_.eD=function(W,B){return W in _.Xq?_.Xq[W]:B};
_.md=function(W,B){return!!_.eD(W,B)};
l4R=function(W){var B=_.Xq.EXPERIMENT_FLAGS;return B?B[W]:void 0};
I4r=function(W){CH2.forEach(function(B){return B(W)})};
_.D5=function(W){return W&&window.yterr?function(){try{return W.apply(this,arguments)}catch(B){_.xr(B)}}:W};
_.xr=function(W){var B=_.q6("yt.logging.errors.log");B?B(W,"ERROR",void 0,void 0,void 0,void 0,void 0):(B=_.eD("ERRORS",[]),B.push([W,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.uk("ERRORS",B));I4r(W)};
_.nx=function(W,B,z,G,Y){var d=_.q6("yt.logging.errors.log");d?d(W,"WARNING",B,z,G,void 0,Y):(d=_.eD("ERRORS",[]),d.push([W,"WARNING",B,z,G,void 0,Y]),_.uk("ERRORS",d))};
hYy=function(W,B){B=W.split(B);for(var z={},G=0,Y=B.length;G<Y;G++){var d=B[G].split("=");if(d.length===1&&d[0]||d.length===2)try{var E=oqv(d[0]||""),v=oqv(d[1]||"");if(E in z){var c=z[E];Array.isArray(c)?_.qR(c,v):z[E]=[c,v]}else z[E]=v}catch(P){var J=P,g=d[0],t=String(hYy);J.args=[{key:g,value:d[1],query:W,method:HiX===t?"unchanged":t}];FjR.hasOwnProperty(g)||_.nx(J)}}return z};
S2T=function(W){var B=[];_.mP.forEach(W,function(z,G){var Y=_.N6(G);z=Array.isArray(z)?z:[z];_.$r(z,function(d){d==""?B.push(Y):B.push(Y+"="+_.N6(d))})});
return B.join("&")};
_.Lx=function(W){W.charAt(0)==="?"&&(W=W.substring(1));return hYy(W,"&")};
_.Uw=function(W){return W.indexOf("?")!==-1?(W=(W||"").split("#")[0],W=W.split("?",2),_.Lx(W.length>1?W[1]:W[0])):{}};
_.M6=function(W,B){return biQ(W,B||{},!0)};
jPD=function(W,B){return biQ(W,B||{},!1)};
biQ=function(W,B,z){var G=W.split("#",2);W=G[0];G=G.length>1?"#"+G[1]:"";var Y=W.split("?",2);W=Y[0];Y=_.Lx(Y[1]||"");for(var d in B)if(z||!_.mP.containsKey(Y,d))Y[d]=B[d];return _.aJ(W,Y)+G};
z4=function(W){if(!B)var B=window.location.href;var z=_.RJ(W)[1]||null,G=_.WS(W);return z&&G?BS(W,B):G?_.WS(B)===G&&(Number(_.RJ(B)[4]||null)||null)===(Number(_.RJ(W)[4]||null)||null):!0};
_.Oix=function(W){W=f4t(W);return W===null?!1:W[0]==="com"&&W[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
f4t=function(W){W=_.WS(W);return W!==null?W.split(".").reverse():null};
oqv=function(W){return W&&W.match(X0u)?W:G4(W)};
_.Y8=function(W){return new KjR(W)};
_.dO=function(){uOt||(uOt=new eYR);return uOt};
xjR=function(){var W=mju;return function(){var B=_.dO();B.resolve(_.Y8(W))||B.addProvider({provide:W,useClass:W});return B.resolve(W)}};
QPr=function(W){var B=_.p4,z,G;_.T(function(Y){z=_.dO();return(G=z.resolve(_.Y8(B)))?(W(G),Y.return(Promise.resolve(G))):Y.return(z.resolve(new Djt(B)).then(function(d){W(d);return d}))})};
_.r=function(W){W=AC(W);return typeof W==="string"&&W==="false"?!1:!!W};
_.iO=function(W,B){W=AC(W);return W===void 0&&B!==void 0?B:Number(W||0)};
yr2=function(W){W=AC(W);return Array.isArray(W)?_.xH(W,function(B){return Number(B||0)}):[Number(W||0)]};
_.EA=function(W){W=AC(W);return W!==void 0?String(W):""};
_.T4=function(W){W=AC(W);return Array.isArray(W)?_.xH(W,function(B){return String(B||"")}):[String(W||"")]};
q2D=function(){return _.eD("EXPERIMENTS_TOKEN","")};
AC=function(W){return _.eD("EXPERIMENT_FLAGS",{})[W]};
nq8=function(){for(var W=[],B=_.eD("EXPERIMENTS_FORCED_FLAGS",{}),z=_.A(Object.keys(B)),G=z.next();!G.done;G=z.next())G=G.value,W.push({key:G,value:String(B[G])});z=_.eD("EXPERIMENT_FLAGS",{});G=_.A(Object.keys(z));for(var Y=G.next();!Y.done;Y=G.next())Y=Y.value,Y.startsWith("force_")&&B[Y]===void 0&&W.push({key:Y,value:String(z[Y])});return W};
$jy=function(){if(!NVv)return null;var W=NVv();return"open"in W?W:null};
_.LjQ=function(W){switch(_.vS(W)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.vS=function(W){return W&&"status"in W?W.status:-1};
_.cS=function(W,B){typeof W==="function"&&(W=_.D5(W));return window.setTimeout(W,B)};
_.VW=function(W,B){typeof W==="function"&&(W=_.D5(W));return window.setInterval(W,B)};
_.JC=function(W){window.clearTimeout(W)};
M4r=function(W){W=_.Uw(W);for(var B=_.A(UjX),z=B.next();!z.done;z=B.next())if(W[z.value]!==void 0)return!0;return!1};
W8k=function(W,B,z,G,Y,d,E,v,c){z=z===void 0?"GET":z;G=G===void 0?"":G;v=v===void 0?!1:v;var J=$jy();if(!J)return null;var g=function(){(J&&"readyState"in J?J.readyState:0)===4&&B&&_.D5(B)(J)};
"onloadend"in J?J.addEventListener("loadend",g,!1):J.onreadystatechange=g;_.r("debug_forward_web_query_parameters")&&(W=a4R(W,window.location.search));J.open(z,W,!0);d&&(J.responseType=d);E&&(J.withCredentials=!0);z=z==="POST"&&(window.FormData===void 0||!(G instanceof FormData));if(Y=RYX(W,Y))for(var t in Y)J.setRequestHeader(t,Y[t]),"content-type"===t.toLowerCase()&&(z=!1);z&&J.setRequestHeader("Content-Type","application/x-www-form-urlencoded");c&&"onprogress"in J&&(J.onprogress=function(){c(J.responseText)});
if(v&&"setAttributionReporting"in XMLHttpRequest.prototype){W={eventSourceEligible:!0,triggerEligible:!1};try{J.setAttributionReporting(W)}catch(P){_.nx(P)}}J.send(G);return J};
RYX=function(W,B){B=B===void 0?{}:B;var z=z4(W),G=_.eD("INNERTUBE_CLIENT_NAME"),Y=_.r("web_ajax_ignore_global_headers_if_set"),d;for(d in Bcv){var E=_.eD(Bcv[d]),v=d==="X-Goog-AuthUser"||d==="X-Goog-PageId";d!=="X-Goog-Visitor-Id"||E||(E=_.eD("VISITOR_DATA"));var c;if(!(c=!E)){if(!(c=z||(_.WS(W)?!1:!0))){c=W;var J;if(J=_.r("add_auth_headers_to_remarketing_google_dot_com_ping")&&d==="Authorization"&&(G==="TVHTML5"||G==="TVHTML5_UNPLUGGED"||G==="TVHTML5_SIMPLY"))J=f4t(c),J=J===null?!1:J[1]==="google"?
!0:J[2]==="google"?J[0]==="au"&&J[1]==="com"?!0:J[0]==="uk"&&J[1]==="co"?!0:!1:!1;J&&(c=_.gO(c)||"",c=c.split("/"),c="/"+(c.length>1?c[1]:""),J=c==="/pagead");c=J?!0:!1}c=!c}c||Y&&B[d]!==void 0||G==="TVHTML5_UNPLUGGED"&&v||(B[d]=E)}"X-Goog-EOM-Visitor-Id"in B&&"X-Goog-Visitor-Id"in B&&delete B["X-Goog-Visitor-Id"];if(z||!_.WS(W))B["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(z||!_.WS(W)){try{var g=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){}g&&(B["X-YouTube-Time-Zone"]=
g)}document.location.hostname.endsWith("youtubeeducation.com")||!z&&_.WS(W)||(B["X-YouTube-Ad-Signals"]=S2T(zjv()));return B};
_.Glu=function(W,B){var z=_.WS(W);_.r("debug_handle_relative_url_for_query_forward_killswitch")||!z&&z4(W)&&(z=document.location.hostname);var G=_.gO(W);G=(z=z&&(z.endsWith("youtube.com")||z.endsWith("youtube-nocookie.com")))&&G&&G.startsWith("/api/");if(!z||G)return W;var Y=_.Lx(B),d={};_.$r(UjX,function(E){Y[E]&&(d[E]=Y[E])});
return jPD(W,d)};
YgR=function(W,B){B.method="POST";B.postParams||(B.postParams={});return _.tC(W,B)};
dMu=function(W,B){var z=_.eD("XSRF_FIELD_NAME"),G;B.headers&&(G=B.headers["Content-Type"]);return!B.excludeXsrf&&(!_.WS(W)||B.withCredentials||_.WS(W)===document.location.hostname)&&B.method==="POST"&&(!G||G==="application/x-www-form-urlencoded")&&!(B.postParams&&B.postParams[z])};
_.tC=function(W,B){var z=B.format||"JSON";W=p38(W,B);var G=Aqv(W,B),Y=!1,d=iAX(W,function(c){if(!Y){Y=!0;v&&_.JC(v);var J=_.LjQ(c),g=null,t=400<=c.status&&c.status<500,P=500<=c.status&&c.status<600;if(J||t||P)g=EO2(W,z,c,B.convertToSafeHtml);J&&(J=Tc0(z,c,g));g=g||{};t=B.context||_.Yt;J?B.onSuccess&&B.onSuccess.call(t,c,g):B.onError&&B.onError.call(t,c,g);B.onFinish&&B.onFinish.call(t,c,g)}},B.method,G,B.headers,B.responseType,B.withCredentials,!1,B.onProgress);
G=B.timeout||0;if(B.onTimeout&&G>0){var E=B.onTimeout;var v=_.cS(function(){Y||(Y=!0,d.abort(),_.JC(v),E.call(B.context||_.Yt,d))},G)}return d};
p38=function(W,B){B.includeDomain&&(W=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+W);var z=_.eD("XSRF_FIELD_NAME");if(B=B.urlParams)B[z]&&delete B[z],W=_.M6(W,B);return W};
Aqv=function(W,B){var z=_.eD("XSRF_FIELD_NAME"),G=_.eD("XSRF_TOKEN"),Y=B.postBody||"",d=B.postParams;dMu(W,B)&&(d||(d={}),d[z]=G);(_.r("ajax_parse_query_data_only_when_filled")&&d&&Object.keys(d).length>0||d)&&typeof Y==="string"&&(Y=_.Lx(Y),_.mP.extend(Y,d),Y=B.postBodyFormat&&B.postBodyFormat==="JSON"?JSON.stringify(Y):_.sA(Y));d=Y||d&&!_.mP.isEmpty(d);!vOt&&d&&B.method!=="POST"&&(vOt=!0,_.xr(Error("Kc")));return Y};
EO2=function(W,B,z,G){var Y=null;switch(B){case "JSON":try{var d=z.responseText}catch(E){throw G=Error("Lc"),G.params=W,_.nx(G),E;}W=z.getResponseHeader("Content-Type")||"";d&&W.indexOf("json")>=0&&(d.substring(0,5)===")]}'\n"&&(d=d.substring(5)),Y=JSON.parse(d));break;case "XML":if(W=(W=z.responseXML)?cqx(W):null)Y={},_.$r(W.getElementsByTagName("*"),function(E){Y[E.tagName]=w3R(E)})}G&&VL8(Y);
return Y};
VL8=function(W){if(_.$t(W))for(var B in W)B==="html_content"||ix(B,"_html")?W[B]=MZ(W[B]):VL8(W[B])};
Tc0=function(W,B,z){if(B&&B.status===204)return!0;switch(W){case "JSON":return!!z;case "XML":return Number(z&&z.return_code)===0;case "RAW":return!0;default:return!!z}};
cqx=function(W){return W?(W=("responseXML"in W?W.responseXML:W).getElementsByTagName("root"))&&W.length>0?W[0]:null:null};
w3R=function(W){var B="";_.$r(W.childNodes,function(z){B+=z.nodeValue});
return B};
Jqy=function(W){if(W.name==="JavaException")return!0;W=W.stack;return W.includes("chrome://")||W.includes("-extension://")||W.includes("webkit-masked-url://")};
gOD=function(W){if(!W.stack)return!0;var B=!W.stack.includes("\n");return B&&W.stack.includes("ErrorType: ")||B&&W.stack.includes("Anonymous function (Unknown script")||W.stack.toLowerCase()==="not available"||W.fileName==="user-script"||W.fileName.startsWith("user-script:")?!0:!1};
_.PS=function(W){_.bA.call(this);this.JSC$10522_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!W};
s_t=function(W,B){var z=W.length,G=0,Y=function(){return W.charCodeAt(G++)};
do{var d=tLx(Y);if(d===Infinity)break;var E=d>>3;switch(d&7){case 0:d=tLx(Y);if(E===B)return d;break;case 1:if(E===B)return;G+=8;break;case 2:d=tLx(Y);if(E===B)return W.substr(G,d);G+=d;break;case 5:if(E===B)return;G+=4;break;default:return}}while(G<z)};
tLx=function(W){var B=W(),z=B&127;if(B<128)return z;B=W();z|=(B&127)<<7;if(B<128)return z;B=W();z|=(B&127)<<14;if(B<128)return z;B=W();return B<128?z|(B&127)<<21:Infinity};
ZA2=function(W,B,z,G){if(W)if(Array.isArray(W)){var Y=G;for(G=0;G<W.length&&!(W[G]&&(Y+=Pdy(G,W[G],B,z),Y>500));G++);G=Y}else if(typeof W==="object")for(Y in W){if(W[Y]){var d=Y;var E=W[Y],v=B,c=z;d=typeof E!=="string"||d!=="clickTrackingParams"&&d!=="trackingParams"?0:(E=s_t(atob(E.replace(/-/g,"+").replace(/_/g,"/")),2))?Pdy(d+".ve",E,v,c):0;G+=d;G+=Pdy(Y,W[Y],B,z);if(G>500)break}}else z[B]=Zo(W),G+=z[B].length;else z[B]=Zo(W),G+=z[B].length;return G};
Pdy=function(W,B,z,G){z+="."+W;W=Zo(B);G[z]=W;return z.length+W.length};
Zo=function(W){try{return(typeof W==="string"?W:String(JSON.stringify(W))).substr(0,500)}catch(B){return"unable to serialize "+typeof W+" ("+B.message+")"}};
rqy=function(W){switch(W){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}};
_.k8=function(W,B,z,G,Y){_.rO.set(W,B,{maxAge:z,path:"/",domain:G===void 0?"youtube.com":G,secure:Y===void 0?!1:Y})};
_.klT=function(W,B,z){_.rO.remove(W,B===void 0?"/":B,z===void 0?"youtube.com":z)};
_.lO=function(){if(_.r("embeds_web_enable_cookie_detection_fix")){if(!_.Yt.navigator.cookieEnabled)return!1}else if(!_.rO.isEnabled())return!1;if(!_.rO.isEmpty())return!0;_.r("embeds_web_enable_cookie_detection_fix")?_.rO.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.rO.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.rO.get("TESTCOOKIESENABLED")!=="1")return!1;_.rO.remove("TESTCOOKIESENABLED");return!0};
lnu=function(){var W=_.Yt.navigator;return W?W.connection:void 0};
CdR=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(W){}};
_.oOx=function(){var W=lnu();if(W){var B=InD[W.type||"unknown"]||"CONN_UNKNOWN";W=InD[W.effectiveType||"unknown"]||"CONN_UNKNOWN";B==="CONN_CELLULAR_UNKNOWN"&&W!=="CONN_UNKNOWN"&&(B=W);if(B!=="CONN_UNKNOWN")return B;if(W!=="CONN_UNKNOWN")return W}};
HAu=function(){var W=lnu();if(W!=null&&W.effectiveType)return hju.hasOwnProperty(W.effectiveType)?hju[W.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.IX=function(){try{return _.C4(),!0}catch(W){return!1}};
_.C4=function(W){if(_.eD("DATASYNC_ID")!==void 0)return _.eD("DATASYNC_ID");throw new _.oX("Datasync ID not set",W===void 0?"unknown":W);};
_.hC=function(W){this.mechanism=W};
HS=function(W){this.mechanism=W};
Fs=function(W){this.storage_=W;this.cachedIsStorageAvailable_=null};
F8Q=function(){var W=null;try{W=_.Yt.localStorage||null}catch(B){}Fs.call(this,W)};
Sgt=function(){var W=null;try{W=_.Yt.sessionStorage||null}catch(B){}Fs.call(this,W)};
SE=function(W,B){this.mechanism_=W;this.JSC$10624_prefix_=B+"::"};
_.bAD=function(W){var B=new F8Q;return B.isAvailable()?W?new SE(B,W):B:null};
_.j_Q=function(W){var B=new Sgt;return B.isAvailable()?W?new SE(B,W):B:null};
OAR=function(){var W;return(W=fnR())==null?void 0:W.get("LAST_RESULT_ENTRY_KEY",!0)};
_.f4=function(W){X3r||(_.bO?_.bO.logError(W):(_.jE.push({type:"ERROR",payload:W}),_.jE.length>10&&_.jE.shift()))};
OA=function(W,B){X3r||(_.bO?_.bO.logEvent(W,B):(_.jE.push({type:"EVENT",eventType:W,payload:B}),_.jE.length>10&&_.jE.shift()))};
Xs=function(W){if(W.indexOf(":")>=0)throw Error("Sc");};
K4=function(W){return W.substr(0,W.indexOf(":"))||W};
ejX=function(){return(K8X||uNT)&&uO("applewebkit")&&!uO("version")&&(!uO("safari")||uO("gsa/"))};
uO=function(W){var B=_.Py();return B?B.toLowerCase().indexOf(W)>=0:!1};
DMk=function(W,B,z,G){B=K4(B);var Y=W instanceof Error?W:Error("Tc`"+W);if(Y instanceof eE)return Y;W={objectStoreNames:z,dbName:B,dbVersion:G};if(Y.name==="QuotaExceededError")return new eE("QUOTA_EXCEEDED",W);if(_.mH&&Y.name==="UnknownError")return new eE("QUOTA_MAYBE_EXCEEDED",W);if(Y instanceof mM0)return new eE("MISSING_INDEX",Object.assign({},W,{objectStore:Y.objectStore,index:Y.index}));if(Y.name==="InvalidStateError"&&xMQ.some(function(d){return Y.message.includes(d)}))return new eE("EXECUTE_TRANSACTION_ON_CLOSED_DB",
W);
if(Y.name==="AbortError")return new eE("UNKNOWN_ABORT",W,Y.message);Y.args=[Object.assign({},W,{name:"IdbError",originalName:Y.name})];Y.level="WARNING";return Y};
x8=function(W,B,z){var G=OAR();return new eE("IDB_NOT_SUPPORTED",{context:{caller:W,publicName:B,version:z,hasSucceededOnce:G==null?void 0:G.hasSucceededOnce}})};
Q_v=function(W){if(!W)throw Error();throw W;};
yqv=function(W){return W};
qgX=function(W,B,z){var G=function(){try{W.removeEventListener("success",Y),W.removeEventListener("error",d)}catch(E){}},Y=function(){B(W.result);
G()},d=function(){z(W.error);
G()};
W.addEventListener("success",Y);W.addEventListener("error",d)};
nO8=function(W){return new Promise(function(B,z){qgX(W,B,z)})};
yW=function(W){return new Do(new QW(function(B,z){qgX(W,B,z)}))};
Nc8=function(W,B){return new Do(new QW(function(z,G){var Y=function(){var d=W?B(W):null;d?d.then(function(E){W=E;Y()},G):z()};
Y()}))};
$MT=function(W,B,z){return new Promise(function(G,Y){var d=B!==void 0?self.indexedDB.open(W,B):self.indexedDB.open(W);var E=z.blocked,v=z.blocking,c=z.terminated,J=z.upgrade,g=z.closed,t,P=function(){t||(t=new qn(d.result,{closed:g}));return t};
d.addEventListener("upgradeneeded",function(Z){try{if(Z.newVersion===null)throw Error("Yc");if(d.transaction===null)throw Error("Zc");Z.dataLoss&&Z.dataLoss!=="none"&&OA("IDB_DATA_CORRUPTED",{reason:Z.dataLossMessage||"unknown reason",dbName:K4(W)});var l=P(),b=new n4(d.transaction);J&&J(l,function(O){return Z.oldVersion<O&&Z.newVersion>=O},b);
b.done.catch(function(O){Y(O)})}catch(O){Y(O)}});
d.addEventListener("success",function(){var Z=d.result;v&&Z.addEventListener("versionchange",function(){v(P())});
Z.addEventListener("close",function(){OA("IDB_UNEXPECTEDLY_CLOSED",{dbName:K4(W),dbVersion:Z.version});c&&c()});
G(P())});
d.addEventListener("error",function(){Y(d.error)});
E&&d.addEventListener("blocked",function(){E()})})};
L8t=function(W,B,z){z=z===void 0?{}:z;return $MT(W,B,z)};
_.$8=function(W,B){B=B===void 0?{}:B;var z,G,Y,d;return _.T(function(E){if(E.nextAddress==1)return _.kA(E,2),z=self.indexedDB.deleteDatabase(W),G=B,(Y=G.blocked)&&z.addEventListener("blocked",function(){Y()}),E.yield(nO8(z),4);
if(E.nextAddress!=2)return _.Nn(E,0);d=_.h6(E);throw DMk(d,W,"",-1);})};
MLT=function(W,B){var z;return _.T(function(G){if(G.nextAddress==1)return G.yield(_.L4(UMX,B),2);z=G.yieldResult;return G.return(_.UA(z,["databases"],{enableRetries:!0,mode:"readwrite"},function(Y){var d=Y.objectStore("databases");return d.get(W.actualName).then(function(E){if(E?W.actualName!==E.actualName||W.publicName!==E.publicName||W.userIdentifier!==E.userIdentifier:1)return d.put(W).then(function(){})})}))})};
_.Mn=function(W,B){var z;return _.T(function(G){if(G.nextAddress==1)return W?G.yield(_.L4(UMX,B),2):G.return();z=G.yieldResult;return G.return(z.delete("databases",W))})};
_.anR=function(W,B){var z,G;return _.T(function(Y){return Y.nextAddress==1?(z=[],Y.yield(_.L4(UMX,B),2)):Y.nextAddress!=3?(G=Y.yieldResult,Y.yield(_.UA(G,["databases"],{enableRetries:!0,mode:"readonly"},function(d){z.length=0;return aX(d.objectStore("databases"),{},function(E){W(E.getValue())&&z.push(E.getValue());return E.continue()})}),3)):Y.return(z)})};
RjQ=function(W,B){return _.anR(function(z){return z.publicName===W&&z.userIdentifier!==void 0},B)};
zSt=function(){var W,B,z,G;return _.T(function(Y){switch(Y.nextAddress){case 1:W=OAR();if((B=W)==null?0:B.hasSucceededOnce)return Y.return(!0);var d;if(d=W9y)d=/WebKit\/([0-9]+)/.exec(_.Py()),d=!!(d&&parseInt(d[1],10)>=600);d&&(d=/WebKit\/([0-9]+)/.exec(_.Py()),d=!(d&&parseInt(d[1],10)>=602));if(d||RX)return Y.return(!1);try{if(z=self,!(z.indexedDB&&z.IDBIndex&&z.IDBKeyRange&&z.IDBObjectStore))return Y.return(!1)}catch(E){return Y.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Y.return(!1);
_.kA(Y,2);G={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return Y.yield(MLT(G,BDR),4);case 4:return Y.yield(_.Mn("yt-idb-test-do-not-use",BDR),5);case 5:return Y.return(!0);case 2:return _.h6(Y),Y.return(!1)}})};
YlX=function(){if(GRD!==void 0)return GRD;X3r=!0;return GRD=zSt().then(function(W){X3r=!1;var B;if((B=fnR())!=null&&B.expiringStorage_){var z;B={hasSucceededOnce:((z=OAR())==null?void 0:z.hasSucceededOnce)||W};var G;(G=fnR())==null||G.set("LAST_RESULT_ENTRY_KEY",B,2592E3,!0)}return W})};
WV=function(){return _.q6("ytglobal.idbToken_")||void 0};
_.zU=function(){var W=WV();return W?Promise.resolve(W):YlX().then(function(B){(B=B?BDR:void 0)&&_.BV("ytglobal.idbToken_",B);return B})};
d_8=function(W){if(!_.IX())throw W=new eE("AUTH_INVALID",{dbName:W}),_.f4(W),W;var B=_.C4();return{actualName:W+":"+B,publicName:W,userIdentifier:B}};
pgD=function(W,B,z,G){var Y,d,E,v,c,J;return _.T(function(g){switch(g.nextAddress){case 1:return d=(Y=Error().stack)!=null?Y:"",g.yield(_.zU(),2);case 2:E=g.yieldResult;if(!E)throw v=x8("openDbImpl",W,B),_.r("ytidb_async_stack_killswitch")||(v.stack=v.stack+"\n"+d.substring(d.indexOf("\n")+1)),_.f4(v),v;Xs(W);c=z?{actualName:W,publicName:W,userIdentifier:void 0}:d_8(W);_.kA(g,3);return g.yield(MLT(c,E),5);case 5:return g.yield(L8t(c.actualName,B,G),6);case 6:return g.return(g.yieldResult);case 3:return J=
_.h6(g),_.kA(g,7),g.yield(_.Mn(c.actualName,E),9);case 9:_.Nn(g,8);break;case 7:_.h6(g);case 8:throw J;}})};
A8Q=function(W,B,z){z=z===void 0?{}:z;return pgD(W,B,!1,z)};
isy=function(W,B,z){z=z===void 0?{}:z;return pgD(W,B,!0,z)};
E_Q=function(W,B){B=B===void 0?{}:B;var z,G;return _.T(function(Y){if(Y.nextAddress==1)return Y.yield(_.zU(),2);if(Y.nextAddress!=3){z=Y.yieldResult;if(!z)return Y.return();Xs(W);G=d_8(W);return Y.yield(_.$8(G.actualName,B),3)}return Y.yield(_.Mn(G.actualName,z),0)})};
TDv=function(W,B,z){W=W.map(function(G){return _.T(function(Y){return Y.nextAddress==1?Y.yield(_.$8(G.actualName,B),2):Y.yield(_.Mn(G.actualName,z),0)})});
return Promise.all(W).then(function(){})};
v_v=function(W){var B=B===void 0?{}:B;var z,G;return _.T(function(Y){if(Y.nextAddress==1)return Y.yield(_.zU(),2);if(Y.nextAddress!=3){z=Y.yieldResult;if(!z)return Y.return();Xs(W);return Y.yield(RjQ(W,z),3)}G=Y.yieldResult;return Y.yield(TDv(G,B,z),0)})};
c8r=function(W,B){B=B===void 0?{}:B;var z;return _.T(function(G){if(G.nextAddress==1)return G.yield(_.zU(),2);if(G.nextAddress!=3){z=G.yieldResult;if(!z)return G.return();Xs(W);return G.yield(_.$8(W,B),3)}return G.yield(_.Mn(W,z),0)})};
GU=function(W,B){return wg8(W,B)};
J8R=function(W){return _.L4(VWx(),W)};
g_2=function(W,B,z,G){var Y,d,E;return _.T(function(v){switch(v.nextAddress){case 1:return Y={config:W,hashData:B,timestamp:G!==void 0?G:(0,_.Yb)()},v.yield(J8R(z),2);case 2:return d=v.yieldResult,v.yield(d.clear("hotConfigStore"),3);case 3:return v.yield(d.put("hotConfigStore",Y),4);case 4:return E=v.yieldResult,v.return(E)}})};
tWX=function(W,B,z,G,Y){var d,E,v;return _.T(function(c){switch(c.nextAddress){case 1:return d={config:W,hashData:B,configData:z,timestamp:Y!==void 0?Y:(0,_.Yb)()},c.yield(J8R(G),2);case 2:return E=c.yieldResult,c.yield(E.clear("coldConfigStore"),3);case 3:return c.yield(E.put("coldConfigStore",d),4);case 4:return v=c.yieldResult,c.return(v)}})};
sEy=function(W){var B,z;return _.T(function(G){return G.nextAddress==1?G.yield(J8R(W),2):G.nextAddress!=3?(B=G.yieldResult,z=void 0,G.yield(_.UA(B,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(Y){return _.d2(Y.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(d){z=d.getValue()})}),3)):G.return(z)})};
Pax=function(W){var B,z;return _.T(function(G){return G.nextAddress==1?G.yield(J8R(W),2):G.nextAddress!=3?(B=G.yieldResult,z=void 0,G.yield(_.UA(B,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(Y){return _.d2(Y.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(d){z=d.getValue()})}),3)):G.return(z)})};
Zsk=function(){return _.T(function(W){return W.yield(v_v("ytGcfConfig"),0)})};
r8u=function(){return"INNERTUBE_API_KEY"in _.Xq&&"INNERTUBE_API_VERSION"in _.Xq};
_.pg=function(){return{innertubeApiKey:_.eD("INNERTUBE_API_KEY"),innertubeApiVersion:_.eD("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.eD("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.eD("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.eD("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.eD("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.eD("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.eD("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.eD("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.md("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.md("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.eD("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.Hs2=function(W){var B={client:{hl:W.innertubeContextHostLanguage,gl:W.innertubeContextGeoLocation,clientName:W.innertubeContextClientName,clientVersion:W.innertubeContextClientVersion,configInfo:W.innertubeContextClientConfigInfo}};navigator.userAgent&&(B.client.userAgent=String(navigator.userAgent));var z=_.Yt.devicePixelRatio;z&&z!=1&&(B.client.screenDensityFloat=String(z));z=q2D();z!==""&&(B.client.experimentsToken=z);z=nq8();z.length>0&&(B.request={internalExperimentFlags:z});kRr(W,void 0,B);
lar(void 0,B);CaQ(void 0,B);Iat(W,void 0,B);o_2(void 0,B);_.r("start_client_gcf")&&hSv(void 0,B);_.eD("DELEGATED_SESSION_ID")&&!_.r("pageid_as_header_web")&&(B.user={onBehalfOfUser:_.eD("DELEGATED_SESSION_ID")});!_.r("fill_delegate_context_in_gel_killswitch")&&(W=_.eD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(B.user=Object.assign({},B.user,{serializedDelegationContext:W}));W=_.eD("INNERTUBE_CONTEXT");var G;if(_.r("enable_persistent_device_token")&&(W==null?0:(G=W.client)==null?0:G.rolloutToken)){var Y;
B.client.rolloutToken=W==null?void 0:(Y=W.client)==null?void 0:Y.rolloutToken}G=Object;Y=G.assign;W=B.client;z={};for(var d=_.A(Object.entries(_.Lx(_.eD("DEVICE","")))),E=d.next();!E.done;E=d.next()){var v=_.A(E.value);E=v.next().value;v=v.next().value;E==="cbrand"?z.deviceMake=v:E==="cmodel"?z.deviceModel=v:E==="cbr"?z.browserName=v:E==="cbrver"?z.browserVersion=v:E==="cos"?z.osName=v:E==="cosver"?z.osVersion=v:E==="cplatform"&&(z.platform=v)}B.client=Y.call(G,W,z);return B};
kRr=function(W,B,z){W=W.innertubeContextClientName;if(W==="WEB"||W==="MWEB"||W===1||W===2)if(B){z=_.AD(B,F9Q,96)||new F9Q;var G=Sl8();G=Object.keys(bsu).indexOf(G);G=G===-1?null:G;G!==null&&_.i2(z,3,G);_.o3(B,96,z)}else z&&(z.client.mainAppWebInfo=(G=z.client.mainAppWebInfo)!=null?G:{},z.client.mainAppWebInfo.webDisplayMode=Sl8())};
lar=function(W,B){var z=_.q6("yt.embedded_player.embed_url");z&&(W?(B=_.AD(W,jEu,7)||new jEu,_.f3(B,4,z),_.o3(W,7,B)):B&&(B.thirdParty={embedUrl:z}))};
CaQ=function(W,B){var z;if(_.r("web_log_memory_total_kbytes")&&((z=_.Yt.navigator)==null?0:z.deviceMemory)){var G;z=(G=_.Yt.navigator)==null?void 0:G.deviceMemory;W?_.EE(W,95,Tq(z*1E6)):B&&(B.client.memoryTotalKbytes=""+z*1E6)}};
Iat=function(W,B,z){if(W.appInstallData)if(B){var G;z=(G=_.AD(B,TU,62))!=null?G:new TU;_.f3(z,6,W.appInstallData);_.o3(B,62,z)}else z&&(z.client.configInfo=z.client.configInfo||{},z.client.configInfo.appInstallData=W.appInstallData)};
o_2=function(W,B){var z=_.oOx();z&&(W?_.i2(W,61,fa0[z]):B&&(B.client.connectionType=z));_.r("web_log_effective_connection_type")&&(z=HAu())&&(W?_.i2(W,94,Os0[z]):B&&(B.client.effectiveConnectionType=z))};
_.utt=function(W,B,z){z=z===void 0?{}:z;var G={};_.eD("EOM_VISITOR_DATA")?G={"X-Goog-EOM-Visitor-Id":_.eD("EOM_VISITOR_DATA")}:G={"X-Goog-Visitor-Id":z.visitorData||_.eD("VISITOR_DATA","")};if(B&&B.includes("www.youtube-nocookie.com"))return G;B=z.authorization||_.eD("AUTHORIZATION");B||(W?B="Bearer "+_.q6("gapi.auth.getToken")().access_token:(Xg2.instance||(Xg2.instance=new Xg2),W=K9k(),_.r("pageid_as_header_web")||delete W["X-Goog-PageId"],G=Object.assign({},G,W)));B&&(G.Authorization=B);return G};
hSv=function(W,B){var z=eSR();if(z){var G=z.coldConfigData,Y=z.coldHashData;z=z.hotHashData;if(W){var d;B=(d=_.AD(W,TU,62))!=null?d:new TU;G=_.f3(B,1,G);_.f3(G,3,Y).setHotHashData(z);_.o3(W,62,B)}else B&&(B.client.configInfo=B.client.configInfo||{},G&&(B.client.configInfo.coldConfigData=G),Y&&(B.client.configInfo.coldHashData=Y),z&&(B.client.configInfo.hotHashData=z))}};
vV=function(W){for(var B=W.length;--B>=0;)W[B]=0};
m_0=function(W,B,z,G,Y){this.static_tree=W;this.extra_bits=B;this.extra_base=z;this.elems=G;this.max_length=Y;this.has_stree=W&&W.length};
x_D=function(W,B){this.dyn_tree=W;this.max_code=0;this.stat_desc=B};
cV=function(W,B){W.pending_buf[W.pending++]=B&255;W.pending_buf[W.pending++]=B>>>8&255};
w2=function(W,B,z){W.bi_valid>16-z?(W.bi_buf|=B<<W.bi_valid&65535,cV(W,W.bi_buf),W.bi_buf=B>>16-W.bi_valid,W.bi_valid+=z-16):(W.bi_buf|=B<<W.bi_valid&65535,W.bi_valid+=z)};
Vs=function(W,B,z){w2(W,z[B*2],z[B*2+1])};
D_X=function(W,B){var z=0;do z|=W&1,W>>>=1,z<<=1;while(--B>0);return z>>>1};
QEX=function(W,B,z){var G=Array(16),Y=0,d;for(d=1;d<=15;d++)G[d]=Y=Y+z[d-1]<<1;for(z=0;z<=B;z++)Y=W[z*2+1],Y!==0&&(W[z*2]=D_X(G[Y]++,Y))};
y8X=function(W){var B;for(B=0;B<286;B++)W.dyn_ltree[B*2]=0;for(B=0;B<30;B++)W.dyn_dtree[B*2]=0;for(B=0;B<19;B++)W.bl_tree[B*2]=0;W.dyn_ltree[512]=1;W.opt_len=W.static_len=0;W.last_lit=W.matches=0};
ql2=function(W){W.bi_valid>8?cV(W,W.bi_buf):W.bi_valid>0&&(W.pending_buf[W.pending++]=W.bi_buf);W.bi_buf=0;W.bi_valid=0};
n_R=function(W,B,z){ql2(W);cV(W,z);cV(W,~z);JD.arraySet(W.pending_buf,W.window,B,z,W.pending);W.pending+=z};
NDr=function(W,B,z,G){var Y=B*2,d=z*2;return W[Y]<W[d]||W[Y]===W[d]&&G[B]<=G[z]};
$_8=function(W,B,z){for(var G=W.heap[z],Y=z<<1;Y<=W.heap_len;){Y<W.heap_len&&NDr(B,W.heap[Y+1],W.heap[Y],W.depth)&&Y++;if(NDr(B,G,W.heap[Y],W.depth))break;W.heap[z]=W.heap[Y];z=Y;Y<<=1}W.heap[z]=G};
RSD=function(W,B,z){var G=0;if(W.last_lit!==0){do{var Y=W.pending_buf[W.d_buf+G*2]<<8|W.pending_buf[W.d_buf+G*2+1];var d=W.pending_buf[W.l_buf+G];G++;if(Y===0)Vs(W,d,B);else{var E=g2[d];Vs(W,E+256+1,B);var v=L9x[E];v!==0&&(d-=U_x[E],w2(W,d,v));Y--;E=Y<256?tD[Y]:tD[256+(Y>>>7)];Vs(W,E,z);v=MWX[E];v!==0&&(Y-=aax[E],w2(W,Y,v))}}while(G<W.last_lit)}Vs(W,256,B)};
Wsr=function(W,B){var z=B.dyn_tree,G=B.stat_desc.static_tree,Y=B.stat_desc.has_stree,d=B.stat_desc.elems,E,v=-1;W.heap_len=0;W.heap_max=573;for(E=0;E<d;E++)z[E*2]!==0?(W.heap[++W.heap_len]=v=E,W.depth[E]=0):z[E*2+1]=0;for(;W.heap_len<2;){var c=W.heap[++W.heap_len]=v<2?++v:0;z[c*2]=1;W.depth[c]=0;W.opt_len--;Y&&(W.static_len-=G[c*2+1])}B.max_code=v;for(E=W.heap_len>>1;E>=1;E--)$_8(W,z,E);c=d;do E=W.heap[1],W.heap[1]=W.heap[W.heap_len--],$_8(W,z,1),G=W.heap[1],W.heap[--W.heap_max]=E,W.heap[--W.heap_max]=
G,z[c*2]=z[E*2]+z[G*2],W.depth[c]=(W.depth[E]>=W.depth[G]?W.depth[E]:W.depth[G])+1,z[E*2+1]=z[G*2+1]=c,W.heap[1]=c++,$_8(W,z,1);while(W.heap_len>=2);W.heap[--W.heap_max]=W.heap[1];E=B.dyn_tree;c=B.max_code;G=B.stat_desc.static_tree;Y=B.stat_desc.has_stree;d=B.stat_desc.extra_bits;var J=B.stat_desc.extra_base,g=B.stat_desc.max_length,t,P=0;for(t=0;t<=15;t++)W.bl_count[t]=0;E[W.heap[W.heap_max]*2+1]=0;for(B=W.heap_max+1;B<573;B++){var Z=W.heap[B];t=E[E[Z*2+1]*2+1]+1;t>g&&(t=g,P++);E[Z*2+1]=t;if(!(Z>
c)){W.bl_count[t]++;var l=0;Z>=J&&(l=d[Z-J]);var b=E[Z*2];W.opt_len+=b*(t+l);Y&&(W.static_len+=b*(G[Z*2+1]+l))}}if(P!==0){do{for(t=g-1;W.bl_count[t]===0;)t--;W.bl_count[t]--;W.bl_count[t+1]+=2;W.bl_count[g]--;P-=2}while(P>0);for(t=g;t!==0;t--)for(Z=W.bl_count[t];Z!==0;)G=W.heap[--B],G>c||(E[G*2+1]!==t&&(W.opt_len+=(t-E[G*2+1])*E[G*2],E[G*2+1]=t),Z--)}QEX(z,v,W.bl_count)};
B5r=function(W,B,z){var G,Y=-1,d=B[1],E=0,v=7,c=4;d===0&&(v=138,c=3);B[(z+1)*2+1]=65535;for(G=0;G<=z;G++){var J=d;d=B[(G+1)*2+1];++E<v&&J===d||(E<c?W.bl_tree[J*2]+=E:J!==0?(J!==Y&&W.bl_tree[J*2]++,W.bl_tree[32]++):E<=10?W.bl_tree[34]++:W.bl_tree[36]++,E=0,Y=J,d===0?(v=138,c=3):J===d?(v=6,c=3):(v=7,c=4))}};
zRt=function(W,B,z){var G,Y=-1,d=B[1],E=0,v=7,c=4;d===0&&(v=138,c=3);for(G=0;G<=z;G++){var J=d;d=B[(G+1)*2+1];if(!(++E<v&&J===d)){if(E<c){do Vs(W,J,W.bl_tree);while(--E!==0)}else J!==0?(J!==Y&&(Vs(W,J,W.bl_tree),E--),Vs(W,16,W.bl_tree),w2(W,E-3,2)):E<=10?(Vs(W,17,W.bl_tree),w2(W,E-3,3)):(Vs(W,18,W.bl_tree),w2(W,E-11,7));E=0;Y=J;d===0?(v=138,c=3):J===d?(v=6,c=3):(v=7,c=4)}}};
GSX=function(W){var B=4093624447,z;for(z=0;z<=31;z++,B>>>=1)if(B&1&&W.dyn_ltree[z*2]!==0)return 0;if(W.dyn_ltree[18]!==0||W.dyn_ltree[20]!==0||W.dyn_ltree[26]!==0)return 1;for(z=32;z<256;z++)if(W.dyn_ltree[z*2]!==0)return 1;return 0};
sE=function(W,B,z){W.pending_buf[W.d_buf+W.last_lit*2]=B>>>8&255;W.pending_buf[W.d_buf+W.last_lit*2+1]=B&255;W.pending_buf[W.l_buf+W.last_lit]=z&255;W.last_lit++;B===0?W.dyn_ltree[z*2]++:(W.matches++,B--,W.dyn_ltree[(g2[z]+256+1)*2]++,W.dyn_dtree[(B<256?tD[B]:tD[256+(B>>>7)])*2]++);return W.last_lit===W.lit_bufsize-1};
Z_=function(W,B){W.msg=PV[B];return B};
r2=function(W){for(var B=W.length;--B>=0;)W[B]=0};
kb=function(W){var B=W.state,z=B.pending;z>W.avail_out&&(z=W.avail_out);z!==0&&(JD.arraySet(W.output,B.pending_buf,B.pending_out,z,W.next_out),W.next_out+=z,B.pending_out+=z,W.total_out+=z,W.avail_out-=z,B.pending-=z,B.pending===0&&(B.pending_out=0))};
Ie=function(W,B){var z=W.block_start>=0?W.block_start:-1,G=W.strstart-W.block_start,Y=0;if(W.level>0){W.strm.data_type===2&&(W.strm.data_type=GSX(W));Wsr(W,W.l_desc);Wsr(W,W.d_desc);B5r(W,W.dyn_ltree,W.l_desc.max_code);B5r(W,W.dyn_dtree,W.d_desc.max_code);Wsr(W,W.bl_desc);for(Y=18;Y>=3&&W.bl_tree[YRX[Y]*2+1]===0;Y--);W.opt_len+=3*(Y+1)+5+5+4;var d=W.opt_len+3+7>>>3;var E=W.static_len+3+7>>>3;E<=d&&(d=E)}else d=E=G+5;if(G+4<=d&&z!==-1)w2(W,B?1:0,3),n_R(W,z,G);else if(W.strategy===4||E===d)w2(W,2+(B?
1:0),3),RSD(W,l2,Cg);else{w2(W,4+(B?1:0),3);z=W.l_desc.max_code+1;G=W.d_desc.max_code+1;Y+=1;w2(W,z-257,5);w2(W,G-1,5);w2(W,Y-4,4);for(d=0;d<Y;d++)w2(W,W.bl_tree[YRX[d]*2+1],3);zRt(W,W.dyn_ltree,z-1);zRt(W,W.dyn_dtree,G-1);RSD(W,W.dyn_ltree,W.dyn_dtree)}y8X(W);B&&ql2(W);W.block_start=W.strstart;kb(W.strm)};
oe=function(W,B){W.pending_buf[W.pending++]=B};
hD=function(W,B){W.pending_buf[W.pending++]=B>>>8&255;W.pending_buf[W.pending++]=B&255};
dJQ=function(W,B){var z=W.max_chain_length,G=W.strstart,Y=W.prev_length,d=W.nice_match,E=W.strstart>W.w_size-262?W.strstart-(W.w_size-262):0,v=W.window,c=W.w_mask,J=W.prev,g=W.strstart+258,t=v[G+Y-1],P=v[G+Y];W.prev_length>=W.good_match&&(z>>=2);d>W.lookahead&&(d=W.lookahead);do{var Z=B;if(v[Z+Y]===P&&v[Z+Y-1]===t&&v[Z]===v[G]&&v[++Z]===v[G+1]){G+=2;for(Z++;v[++G]===v[++Z]&&v[++G]===v[++Z]&&v[++G]===v[++Z]&&v[++G]===v[++Z]&&v[++G]===v[++Z]&&v[++G]===v[++Z]&&v[++G]===v[++Z]&&v[++G]===v[++Z]&&G<g;);
Z=258-(g-G);G=g-258;if(Z>Y){W.match_start=B;Y=Z;if(Z>=d)break;t=v[G+Y-1];P=v[G+Y]}}}while((B=J[B&c])>E&&--z!==0);return Y<=W.lookahead?Y:W.lookahead};
FG=function(W){var B=W.w_size,z;do{var G=W.window_size-W.lookahead-W.strstart;if(W.strstart>=B+(B-262)){JD.arraySet(W.window,W.window,B,B,0);W.match_start-=B;W.strstart-=B;W.block_start-=B;var Y=z=W.hash_size;do{var d=W.head[--Y];W.head[Y]=d>=B?d-B:0}while(--z);Y=z=B;do d=W.prev[--Y],W.prev[Y]=d>=B?d-B:0;while(--z);G+=B}if(W.strm.avail_in===0)break;Y=W.strm;z=W.window;d=W.strstart+W.lookahead;var E=Y.avail_in;E>G&&(E=G);E===0?z=0:(Y.avail_in-=E,JD.arraySet(z,Y.input,Y.next_in,E,d),Y.state.wrap===
1?Y.adler=pfD(Y.adler,z,E,d):Y.state.wrap===2&&(Y.adler=HV(Y.adler,z,E,d)),Y.next_in+=E,Y.total_in+=E,z=E);W.lookahead+=z;if(W.lookahead+W.insert>=3)for(G=W.strstart-W.insert,W.ins_h=W.window[G],W.ins_h=(W.ins_h<<W.hash_shift^W.window[G+1])&W.hash_mask;W.insert&&!(W.ins_h=(W.ins_h<<W.hash_shift^W.window[G+3-1])&W.hash_mask,W.prev[G&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=G,G++,W.insert--,W.lookahead+W.insert<3););}while(W.lookahead<262&&W.strm.avail_in!==0)};
AHr=function(W,B){for(var z;;){if(W.lookahead<262){FG(W);if(W.lookahead<262&&B===0)return 1;if(W.lookahead===0)break}z=0;W.lookahead>=3&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,z=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);z!==0&&W.strstart-z<=W.w_size-262&&(W.match_length=dJQ(W,z));if(W.match_length>=3)if(z=sE(W,W.strstart-W.match_start,W.match_length-3),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=3){W.match_length--;
do W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart;while(--W.match_length!==0);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else z=sE(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(z&&(Ie(W,!1),W.strm.avail_out===0))return 1}W.insert=W.strstart<2?W.strstart:2;return B===4?(Ie(W,
!0),W.strm.avail_out===0?3:4):W.last_lit&&(Ie(W,!1),W.strm.avail_out===0)?1:2};
Sl=function(W,B){for(var z,G;;){if(W.lookahead<262){FG(W);if(W.lookahead<262&&B===0)return 1;if(W.lookahead===0)break}z=0;W.lookahead>=3&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,z=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);W.prev_length=W.match_length;W.prev_match=W.match_start;W.match_length=2;z!==0&&W.prev_length<W.max_lazy_match&&W.strstart-z<=W.w_size-262&&(W.match_length=dJQ(W,z),W.match_length<=5&&(W.strategy===1||W.match_length===3&&
W.strstart-W.match_start>4096)&&(W.match_length=2));if(W.prev_length>=3&&W.match_length<=W.prev_length){G=W.strstart+W.lookahead-3;z=sE(W,W.strstart-1-W.prev_match,W.prev_length-3);W.lookahead-=W.prev_length-1;W.prev_length-=2;do++W.strstart<=G&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);while(--W.prev_length!==0);W.match_available=0;W.match_length=2;W.strstart++;if(z&&(Ie(W,!1),W.strm.avail_out===0))return 1}else if(W.match_available){if((z=
sE(W,0,W.window[W.strstart-1]))&&Ie(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return 1}else W.match_available=1,W.strstart++,W.lookahead--}W.match_available&&(sE(W,0,W.window[W.strstart-1]),W.match_available=0);W.insert=W.strstart<2?W.strstart:2;return B===4?(Ie(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(Ie(W,!1),W.strm.avail_out===0)?1:2};
io8=function(W,B){for(var z,G,Y,d=W.window;;){if(W.lookahead<=258){FG(W);if(W.lookahead<=258&&B===0)return 1;if(W.lookahead===0)break}W.match_length=0;if(W.lookahead>=3&&W.strstart>0&&(G=W.strstart-1,z=d[G],z===d[++G]&&z===d[++G]&&z===d[++G])){for(Y=W.strstart+258;z===d[++G]&&z===d[++G]&&z===d[++G]&&z===d[++G]&&z===d[++G]&&z===d[++G]&&z===d[++G]&&z===d[++G]&&G<Y;);W.match_length=258-(Y-G);W.match_length>W.lookahead&&(W.match_length=W.lookahead)}W.match_length>=3?(z=sE(W,1,W.match_length-3),W.lookahead-=
W.match_length,W.strstart+=W.match_length,W.match_length=0):(z=sE(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++);if(z&&(Ie(W,!1),W.strm.avail_out===0))return 1}W.insert=0;return B===4?(Ie(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(Ie(W,!1),W.strm.avail_out===0)?1:2};
EwT=function(W,B){for(var z;;){if(W.lookahead===0&&(FG(W),W.lookahead===0)){if(B===0)return 1;break}W.match_length=0;z=sE(W,0,W.window[W.strstart]);W.lookahead--;W.strstart++;if(z&&(Ie(W,!1),W.strm.avail_out===0))return 1}W.insert=0;return B===4?(Ie(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(Ie(W,!1),W.strm.avail_out===0)?1:2};
b2=function(W,B,z,G,Y){this.good_length=W;this.max_lazy=B;this.nice_length=z;this.max_chain=G;this.func=Y};
T5R=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 JD.Buf16(1146);this.dyn_dtree=new JD.Buf16(122);this.bl_tree=new JD.Buf16(78);r2(this.dyn_ltree);r2(this.dyn_dtree);r2(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new JD.Buf16(16);this.heap=new JD.Buf16(573);r2(this.heap);this.heap_max=this.heap_len=0;this.depth=new JD.Buf16(573);r2(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};
vw8=function(W,B){if(!W||!W.state||B>5||B<0)return W?Z_(W,-2):-2;var z=W.state;if(!W.output||!W.input&&W.avail_in!==0||z.status===666&&B!==4)return Z_(W,W.avail_out===0?-5:-2);z.strm=W;var G=z.last_flush;z.last_flush=B;if(z.status===42)if(z.wrap===2)W.adler=0,oe(z,31),oe(z,139),oe(z,8),z.gzhead?(oe(z,(z.gzhead.text?1:0)+(z.gzhead.hcrc?2:0)+(z.gzhead.extra?4:0)+(z.gzhead.name?8:0)+(z.gzhead.comment?16:0)),oe(z,z.gzhead.time&255),oe(z,z.gzhead.time>>8&255),oe(z,z.gzhead.time>>16&255),oe(z,z.gzhead.time>>
24&255),oe(z,z.level===9?2:z.strategy>=2||z.level<2?4:0),oe(z,z.gzhead.os&255),z.gzhead.extra&&z.gzhead.extra.length&&(oe(z,z.gzhead.extra.length&255),oe(z,z.gzhead.extra.length>>8&255)),z.gzhead.hcrc&&(W.adler=HV(W.adler,z.pending_buf,z.pending,0)),z.gzindex=0,z.status=69):(oe(z,0),oe(z,0),oe(z,0),oe(z,0),oe(z,0),oe(z,z.level===9?2:z.strategy>=2||z.level<2?4:0),oe(z,3),z.status=113);else{var Y=8+(z.w_bits-8<<4)<<8;Y|=(z.strategy>=2||z.level<2?0:z.level<6?1:z.level===6?2:3)<<6;z.strstart!==0&&(Y|=
32);z.status=113;hD(z,Y+(31-Y%31));z.strstart!==0&&(hD(z,W.adler>>>16),hD(z,W.adler&65535));W.adler=1}if(z.status===69)if(z.gzhead.extra){for(Y=z.pending;z.gzindex<(z.gzhead.extra.length&65535)&&(z.pending!==z.pending_buf_size||(z.gzhead.hcrc&&z.pending>Y&&(W.adler=HV(W.adler,z.pending_buf,z.pending-Y,Y)),kb(W),Y=z.pending,z.pending!==z.pending_buf_size));)oe(z,z.gzhead.extra[z.gzindex]&255),z.gzindex++;z.gzhead.hcrc&&z.pending>Y&&(W.adler=HV(W.adler,z.pending_buf,z.pending-Y,Y));z.gzindex===z.gzhead.extra.length&&
(z.gzindex=0,z.status=73)}else z.status=73;if(z.status===73)if(z.gzhead.name){Y=z.pending;do{if(z.pending===z.pending_buf_size&&(z.gzhead.hcrc&&z.pending>Y&&(W.adler=HV(W.adler,z.pending_buf,z.pending-Y,Y)),kb(W),Y=z.pending,z.pending===z.pending_buf_size)){var d=1;break}d=z.gzindex<z.gzhead.name.length?z.gzhead.name.charCodeAt(z.gzindex++)&255:0;oe(z,d)}while(d!==0);z.gzhead.hcrc&&z.pending>Y&&(W.adler=HV(W.adler,z.pending_buf,z.pending-Y,Y));d===0&&(z.gzindex=0,z.status=91)}else z.status=91;if(z.status===
91)if(z.gzhead.comment){Y=z.pending;do{if(z.pending===z.pending_buf_size&&(z.gzhead.hcrc&&z.pending>Y&&(W.adler=HV(W.adler,z.pending_buf,z.pending-Y,Y)),kb(W),Y=z.pending,z.pending===z.pending_buf_size)){d=1;break}d=z.gzindex<z.gzhead.comment.length?z.gzhead.comment.charCodeAt(z.gzindex++)&255:0;oe(z,d)}while(d!==0);z.gzhead.hcrc&&z.pending>Y&&(W.adler=HV(W.adler,z.pending_buf,z.pending-Y,Y));d===0&&(z.status=103)}else z.status=103;z.status===103&&(z.gzhead.hcrc?(z.pending+2>z.pending_buf_size&&kb(W),
z.pending+2<=z.pending_buf_size&&(oe(z,W.adler&255),oe(z,W.adler>>8&255),W.adler=0,z.status=113)):z.status=113);if(z.pending!==0){if(kb(W),W.avail_out===0)return z.last_flush=-1,0}else if(W.avail_in===0&&(B<<1)-(B>4?9:0)<=(G<<1)-(G>4?9:0)&&B!==4)return Z_(W,-5);if(z.status===666&&W.avail_in!==0)return Z_(W,-5);if(W.avail_in!==0||z.lookahead!==0||B!==0&&z.status!==666){G=z.strategy===2?EwT(z,B):z.strategy===3?io8(z,B):jl[z.level].func(z,B);if(G===3||G===4)z.status=666;if(G===1||G===3)return W.avail_out===
0&&(z.last_flush=-1),0;if(G===2&&(B===1?(w2(z,2,3),Vs(z,256,l2),z.bi_valid===16?(cV(z,z.bi_buf),z.bi_buf=0,z.bi_valid=0):z.bi_valid>=8&&(z.pending_buf[z.pending++]=z.bi_buf&255,z.bi_buf>>=8,z.bi_valid-=8)):B!==5&&(w2(z,0,3),n_R(z,0,0),B===3&&(r2(z.head),z.lookahead===0&&(z.strstart=0,z.block_start=0,z.insert=0))),kb(W),W.avail_out===0))return z.last_flush=-1,0}if(B!==4)return 0;if(z.wrap<=0)return 1;z.wrap===2?(oe(z,W.adler&255),oe(z,W.adler>>8&255),oe(z,W.adler>>16&255),oe(z,W.adler>>24&255),oe(z,
W.total_in&255),oe(z,W.total_in>>8&255),oe(z,W.total_in>>16&255),oe(z,W.total_in>>24&255)):(hD(z,W.adler>>>16),hD(z,W.adler&65535));kb(W);z.wrap>0&&(z.wrap=-z.wrap);return z.pending!==0?0:1};
cHR=function(W){if(!(this instanceof cHR))return new cHR(W);W=this.options=JD.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},W||{});W.raw&&W.windowBits>0?W.windowBits=-W.windowBits:W.gzip&&W.windowBits>0&&W.windowBits<16&&(W.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new wft;this.strm.avail_out=0;var B=this.strm;var z=W.level,G=W.method,Y=W.windowBits,d=W.memLevel,E=W.strategy;if(B){var v=1;z===-1&&(z=6);Y<0?(v=0,Y=-Y):Y>15&&
(v=2,Y-=16);if(d<1||d>9||G!==8||Y<8||Y>15||z<0||z>9||E<0||E>4)B=Z_(B,-2);else{Y===8&&(Y=9);var c=new T5R;B.state=c;c.strm=B;c.wrap=v;c.gzhead=null;c.w_bits=Y;c.w_size=1<<c.w_bits;c.w_mask=c.w_size-1;c.hash_bits=d+7;c.hash_size=1<<c.hash_bits;c.hash_mask=c.hash_size-1;c.hash_shift=~~((c.hash_bits+3-1)/3);c.window=new JD.Buf8(c.w_size*2);c.head=new JD.Buf16(c.hash_size);c.prev=new JD.Buf16(c.w_size);c.lit_bufsize=1<<d+6;c.pending_buf_size=c.lit_bufsize*4;c.pending_buf=new JD.Buf8(c.pending_buf_size);
c.d_buf=c.lit_bufsize;c.l_buf=3*c.lit_bufsize;c.level=z;c.strategy=E;c.method=G;if(B&&B.state){B.total_in=B.total_out=0;B.data_type=2;z=B.state;z.pending=0;z.pending_out=0;z.wrap<0&&(z.wrap=-z.wrap);z.status=z.wrap?42:113;B.adler=z.wrap===2?0:1;z.last_flush=0;if(!VJR){G=Array(16);for(d=E=0;d<28;d++)for(U_x[d]=E,Y=0;Y<1<<L9x[d];Y++)g2[E++]=d;g2[E-1]=d;for(d=E=0;d<16;d++)for(aax[d]=E,Y=0;Y<1<<MWX[d];Y++)tD[E++]=d;for(E>>=7;d<30;d++)for(aax[d]=E<<7,Y=0;Y<1<<MWX[d]-7;Y++)tD[256+E++]=d;for(Y=0;Y<=15;Y++)G[Y]=
0;for(Y=0;Y<=143;)l2[Y*2+1]=8,Y++,G[8]++;for(;Y<=255;)l2[Y*2+1]=9,Y++,G[9]++;for(;Y<=279;)l2[Y*2+1]=7,Y++,G[7]++;for(;Y<=287;)l2[Y*2+1]=8,Y++,G[8]++;QEX(l2,287,G);for(Y=0;Y<30;Y++)Cg[Y*2+1]=5,Cg[Y*2]=D_X(Y,5);JHk=new m_0(l2,L9x,257,286,15);gwQ=new m_0(Cg,MWX,0,30,15);tJr=new m_0([],sNy,0,19,7);VJR=!0}z.l_desc=new x_D(z.dyn_ltree,JHk);z.d_desc=new x_D(z.dyn_dtree,gwQ);z.bl_desc=new x_D(z.bl_tree,tJr);z.bi_buf=0;z.bi_valid=0;y8X(z);z=0}else z=Z_(B,-2);z===0&&(B=B.state,B.window_size=2*B.w_size,r2(B.head),
B.max_lazy_match=jl[B.level].max_lazy,B.good_match=jl[B.level].good_length,B.nice_match=jl[B.level].nice_length,B.max_chain_length=jl[B.level].max_chain,B.strstart=0,B.block_start=0,B.lookahead=0,B.insert=0,B.match_length=B.prev_length=2,B.match_available=0,B.ins_h=0);B=z}}else B=-2;if(B!==0)throw Error(PV[B]);W.header&&(B=this.strm)&&B.state&&B.state.wrap===2&&(B.state.gzhead=W.header);if(W.dictionary){var J;typeof W.dictionary==="string"?J=PPv(W.dictionary):Zo2.call(W.dictionary)==="[object ArrayBuffer]"?
J=new Uint8Array(W.dictionary):J=W.dictionary;W=this.strm;d=J;E=d.length;if(W&&W.state)if(J=W.state,B=J.wrap,B===2||B===1&&J.status!==42||J.lookahead)B=-2;else{B===1&&(W.adler=pfD(W.adler,d,E,0));J.wrap=0;E>=J.w_size&&(B===0&&(r2(J.head),J.strstart=0,J.block_start=0,J.insert=0),z=new JD.Buf8(J.w_size),JD.arraySet(z,d,E-J.w_size,J.w_size,0),d=z,E=J.w_size);z=W.avail_in;G=W.next_in;Y=W.input;W.avail_in=E;W.next_in=0;W.input=d;for(FG(J);J.lookahead>=3;){d=J.strstart;E=J.lookahead-2;do J.ins_h=(J.ins_h<<
J.hash_shift^J.window[d+3-1])&J.hash_mask,J.prev[d&J.w_mask]=J.head[J.ins_h],J.head[J.ins_h]=d,d++;while(--E);J.strstart=d;J.lookahead=2;FG(J)}J.strstart+=J.lookahead;J.block_start=J.strstart;J.insert=J.lookahead;J.lookahead=0;J.match_length=J.prev_length=2;J.match_available=0;W.next_in=G;W.input=Y;W.avail_in=z;J.wrap=B;B=0}else B=-2;if(B!==0)throw Error(PV[B]);this._dict_set=!0}};
rH0=function(W,B){B=B||{};B.gzip=!0;B=new cHR(B);B.push(W,!0);if(B.err)throw B.msg||PV[B.err];return B.result};
l8u=function(W,B){var z=kSR();z&&z.publish.call(z,W.toString(),W,B)};
Hor=function(W,B,z){var G=kSR();if(!G)return 0;var Y=G.subscribe(W.toString(),function(d,E){var v=_.q6("ytPubsub2Pubsub2SkipSubKey");v&&v==Y||(v=function(){if(CPX[Y])try{if(E&&W instanceof I8R&&W!=d)try{var c=W.dataClass,J=E;if(!J.args||!J.version)throw Error("ad");try{if(!c.version_){var g=new c;c.version_=g.version}var t=c.version_}catch(P){}if(!t||J.version!=t)throw Error("bd");try{E=Reflect.construct(c,_.QR(J.args))}catch(P){throw P.message="yt.pubsub2.Data.deserialize(): "+P.message,P;}}catch(P){throw P.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+W.toString()+": "+P.message,P;}B.call(z||window,E)}catch(P){_.xr(P)}},owR[W.toString()]?_.q6("yt.scheduler.instance")?_.fg.addLowPriorityJob(v):_.cS(v,0):v())});
CPX[Y]=!0;hRR[W.toString()]||(hRR[W.toString()]=[]);hRR[W.toString()].push(Y);return Y};
jNR=function(){var W=Fs2,B=Hor(SRu,function(z){W.apply(void 0,arguments);bo2(B)});
return B};
bo2=function(W){var B=kSR();B&&(typeof W==="number"&&(W=[W]),_.$r(W,function(z){B.unsubscribeByKey(z);delete CPX[z]}))};
kSR=function(){return _.q6("ytPubsub2Pubsub2Instance")};
f8D=function(W,B,z){z=z===void 0?{sampleRate:.1}:z;Math.random()<Math.min(.02,z.sampleRate/100)&&l8u("meta_logging_csi_event",{timerName:W,timelineData:B})};
_.OoD=function(W){return W?(W=W.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.YA(W):null:null};
_.OE=function(W){return W?(W=W.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.bQ(W):null:null};
KsT=function(){Xfr||(Xfr=_.OE(_.eD("WORKER_SERIALIZATION_URL")));return Xfr||void 0};
_.eRy=function(){var W=KsT();u4T||W===void 0||(u4T=new Worker(_.jN(W),void 0));return u4T};
_.mJT=function(){return typeof Worker==="function"&&KsT()?!0:!1};
_.yHk=function(){if(_.mJT()&&!xJT){var W=function(z){z=z.data;if(z.op==="gzippedGelBatch"){var G=DJX.get(z.key);G&&(QND(z.gzippedBatch,G.latencyPayload,G.url,G.options,G.sendFn),DJX.delete(z.key))}},B=_.eRy();
B&&(B.addEventListener("message",W),B.onerror=function(){DJX.clear()},xJT=!0)}};
MJR=function(W,B,z,G,Y){Y=Y===void 0?!1:Y;var d={startTime:(0,_.Yb)(),ticks:{},infos:{}};if(XG)try{var E=qRk(B);if(E!=null&&(E>nwk||E<N5D))G(W,z);else{if(_.r("gzip_gel_with_worker")&&(_.r("initial_gzip_use_main_thread")&&!$J0||!_.r("initial_gzip_use_main_thread"))){xJT||_.yHk();var v=_.eRy();if(v&&!Y){DJX.set(Ls2,{latencyPayload:d,url:W,options:z,sendFn:G});v.postMessage({op:"gelBatchToGzip",serializedBatch:B,key:Ls2});Ls2++;return}}var c=rH0(UJR(B));QND(c,d,W,z,G)}}catch(J){_.nx(J),G(W,z)}else G(W,
z)};
QND=function(W,B,z,G,Y){$J0=!1;var d=(0,_.Yb)();B.ticks.gelc=d;Kg++;_.r("disable_compression_due_to_performance_degredation")&&d-B.startTime>=a8t&&(RRk++,_.r("abandon_compression_after_N_slow_zips")?Kg===_.iO("compression_disable_point")&&RRk>WRx&&(XG=!1):XG=!1);BaR(B);G.headers||(G.headers={});G.headers["Content-Encoding"]="gzip";G.postBody=W;G.postParams=void 0;Y(z,G)};
zqX=function(W){var B=B===void 0?!1:B;var z=z===void 0?!1:z;var G=(0,_.Yb)(),Y={startTime:G,ticks:{},infos:{}},d=B?_.q6("yt.logging.gzipForFetch",!1):!0;if(XG&&d){if(!W.body)return W;try{var E=z?W.body:typeof W.body==="string"?W.body:JSON.stringify(W.body);d=E;if(!z&&typeof E==="string"){var v=qRk(E);if(v!=null&&(v>nwk||v<N5D))return W;z=B?{level:1}:void 0;d=rH0(UJR(E),z);var c=(0,_.Yb)();Y.ticks.gelc=c;if(B){Kg++;if((_.r("disable_compression_due_to_performance_degredation")||_.r("disable_compression_due_to_performance_degradation_lr"))&&
c-G>=a8t)if(RRk++,_.r("abandon_compression_after_N_slow_zips")||_.r("abandon_compression_after_N_slow_zips_lr")){B=RRk/Kg;var J=WRx/_.iO("compression_disable_point");Kg>0&&Kg%_.iO("compression_disable_point")===0&&B>=J&&(XG=!1)}else XG=!1;BaR(Y)}}W.headers=Object.assign({},{"Content-Encoding":"gzip"},W.headers||{});W.body=d;return W}catch(g){return _.nx(g),W}}else return W};
qRk=function(W){try{return(new Blob(W.split(""))).size}catch(B){return _.nx(B),null}};
BaR=function(W){_.r("gel_compression_csi_killswitch")||!_.r("log_gel_compression_latency")&&!_.r("log_gel_compression_latency_lr")||f8D("gel_compression",W,{sampleRate:.1})};
GsQ=function(){this.blockSize=-1};
u2=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var W=1;W<this.blockSize;++W)this.pad_[W]=0;this.total_=this.inbuf_=0;this.reset()};
dHR=function(W){W=Object.assign({},W);delete W.Authorization;var B=_.YVr();if(B){var z=new u2;z.update(_.eD("INNERTUBE_API_KEY"));z.update(B);W.hash=_.Ob(z.digest(),3)}return W};
mg=function(){pJT||(pJT=new _.el("yt.innertube"));return pJT};
AVT=function(W,B,z,G){if(G)return null;G=mg().get("nextId",!0)||1;var Y=mg().get("requests",!0)||{};Y[G]={method:W,request:B,authState:dHR(z),requestTime:Math.round((0,_.Yb)())};mg().set("nextId",G+1,86400,!0);mg().set("requests",Y,86400,!0);return G};
i8Q=function(W){var B=mg().get("requests",!0)||{};delete B[W];mg().set("requests",B,86400,!0)};
Tax=function(W){var B=mg().get("requests",!0);if(B){for(var z in B){var G=B[z];if(!(Math.round((0,_.Yb)())-G.requestTime<6E4)){var Y=G.authState,d=dHR(_.utt(!1));_.mP.equals(Y,d)&&(Y=G.request,"requestTimeMs"in Y&&(Y.requestTimeMs=Math.round((0,_.Yb)())),EBD(W,G.method,Y,{}));delete B[z]}}mg().set("requests",B,86400,!0)}};
vBt=function(W){var B;return(W=W==null?void 0:(B=W.error)==null?void 0:B.code)&&W>=400&&W<=599?!1:!0};
cVk=function(W){var B;W=W==null?void 0:(B=W.error)==null?void 0:B.code;return!(W!==400&&W!==415)};
VKk=function(){if(wJx)return wJx();var W={};wJx=GU("LogsDatabaseV2",{objectStores:(W.LogsRequestsStore={addedAtVersion:2},W),shared:!1,upgrade:function(B,z,G){z(2)&&xb(B,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});z(3);z(5)&&(G=G.objectStore("LogsRequestsStore"),G.JSC$10683_wrapped.indexNames.contains("newRequest")&&G.JSC$10683_wrapped.deleteIndex("newRequest"),D_(G,"newRequestV2",["status","interface","timestamp"]));z(7)&&B.JSC$10668_wrapped.objectStoreNames.contains("sapisid")&&B.JSC$10668_wrapped.deleteObjectStore("sapisid");
z(9)&&B.JSC$10668_wrapped.objectStoreNames.contains("SWHealthLog")&&B.JSC$10668_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return wJx()};
Qs=function(W){return _.L4(VKk(),W)};
gBk=function(W,B){var z,G,Y,d;return _.T(function(E){if(E.nextAddress==1)return z={startTime:(0,_.Yb)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},E.yield(Qs(B),2);if(E.nextAddress!=3)return G=E.yieldResult,Y=Object.assign({},W,{options:JSON.parse(JSON.stringify(W.options)),interface:_.eD("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),E.yield(G.put("LogsRequestsStore",Y),3);d=E.yieldResult;z.ticks.tc=(0,_.Yb)();JVX(z);return E.return(d)})};
tK8=function(W,B){var z,G,Y,d,E,v,c,J,g;return _.T(function(t){if(t.nextAddress==1)return z={startTime:(0,_.Yb)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},t.yield(Qs(B),2);if(t.nextAddress!=3)return G=t.yieldResult,Y=_.eD("INNERTUBE_CONTEXT_CLIENT_NAME",0),d=[W,Y,0],E=[W,Y,(0,_.Yb)()],v=IDBKeyRange.bound(d,E),c="prev",_.r("use_fifo_for_networkless")&&(c="next"),J=void 0,g=W==="NEW"?"readwrite":"readonly",_.r("use_readonly_for_get_most_recent_by_status_killswitch")&&(g="readwrite"),
t.yield(_.UA(G,["LogsRequestsStore"],{mode:g,enableRetries:!0},function(P){return _.d2(P.objectStore("LogsRequestsStore").index("newRequestV2"),{query:v,direction:c},function(Z){Z.getValue()&&(J=Z.getValue(),W==="NEW"&&(J.status="QUEUED",Z.update(J)))})}),3);
z.ticks.tc=(0,_.Yb)();JVX(z);return t.return(J)})};
sBx=function(W,B){var z;return _.T(function(G){if(G.nextAddress==1)return G.yield(Qs(B),2);z=G.yieldResult;return G.return(_.UA(z,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Y){var d=Y.objectStore("LogsRequestsStore");return d.get(W).then(function(E){if(E)return E.status="QUEUED",d.put(E).then(function(){return E})})}))})};
Pgx=function(W,B,z,G){z=z===void 0?!0:z;var Y;return _.T(function(d){if(d.nextAddress==1)return d.yield(Qs(B),2);Y=d.yieldResult;return d.return(_.UA(Y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(E){var v=E.objectStore("LogsRequestsStore");return v.get(W).then(function(c){return c?(c.status="NEW",z&&(c.sendCount+=1),G!==void 0&&(c.options.compress=G),v.put(c).then(function(){return c})):Do.resolve(void 0)})}))})};
Z8v=function(W,B){var z;return _.T(function(G){if(G.nextAddress==1)return G.yield(Qs(B),2);z=G.yieldResult;return G.return(z.delete("LogsRequestsStore",W))})};
rVX=function(W){var B,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(Qs(W),2);B=G.yieldResult;z=(0,_.Yb)()-2592E6;return G.yield(_.UA(B,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Y){return aX(Y.objectStore("LogsRequestsStore"),{},function(d){if(d.getValue().timestamp<=z)return d.delete().then(function(){return d.continue()})})}),0)})};
ksR=function(){_.T(function(W){return W.yield(v_v("LogsDatabaseV2"),0)})};
JVX=function(W){_.r("nwl_csi_killswitch")||f8D("networkless_performance",W,{sampleRate:1})};
_.Cgu=function(W){return _.L4(lrt(),W)};
IrT=function(W){var B,z;_.T(function(G){if(G.nextAddress==1)return G.yield(_.Cgu(W),2);B=G.yieldResult;z=(0,_.Yb)()-2592E6;return G.yield(_.UA(B,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Y){return aX(Y.objectStore("SWHealthLog"),{},function(d){if(d.getValue().timestamp<=z)return d.delete().then(function(){return d.continue()})})}),0)})};
oBk=function(W){var B;return _.T(function(z){if(z.nextAddress==1)return z.yield(_.Cgu(W),2);B=z.yieldResult;return z.yield(B.clear("SWHealthLog"),0)})};
_.ys=function(W,B,z,G,Y,d,E){Y=Y===void 0?"":Y;d=d===void 0?!1:d;E=E===void 0?!1:E;if(W)if(z&&!uO("cobalt"))_.nx(new _.oX("Legacy referrer-scrubbed ping detected")),W&&hq2(W,void 0,{scrubReferrer:!0});else if(Y)W8k(W,B,"POST",Y,G);else if(_.eD("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||G||E)W8k(W,B,"GET","",G,void 0,d,E);else{b:{try{c:{var v=new H8k({url:W});if(v.urlParamValues_.dsh==="1")var c=null;else{var J=v.urlParamValues_.ae;if(J==="1"){var g=v.urlParamValues_.adurl;if(g)try{c={version:3,directUrl:decodeURIComponent(g),
asyncUrl:Fdy(v.JSC$9477_url_,"act=1","ri=1",FRR(v))};break c}catch(l){}}c=J==="2"?{version:4,directUrl:Fdy(v.JSC$9477_url_,"dct=1","suid="+v.suid_,""),asyncUrl:Fdy(v.JSC$9477_url_,"act=1","ri=1","suid="+v.suid_)}:null}}if(c){var t=_.gO(W);var P=!(!t||!t.endsWith("/aclk")||_.$x(W,"ri")!=="1");break b}}catch(l){}P=!1}if(P){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(W,"")){var Z=!0;break b}}catch(l){}Z=!1}Z?(B&&B(),z=!0):z=!1}else z=!1;z||hq2(W,B)}};
hq2=function(W,B,z){z=z===void 0?{}:z;var G=new Image,Y=""+SVv++;b8T[Y]=G;G.onload=G.onerror=function(){B&&b8T[Y]&&B();delete b8T[Y]};
z.scrubReferrer&&(G.referrerPolicy="no-referrer");G.src=W};
qX=function(W,B){jB0(W,B==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
frD=function(W){var B;return((B=document.featurePolicy)==null?0:B.allowedFeatures().includes("attribution-reporting"))?W+"&nis=6":W+"&nis=5"};
O88=function(W){if(!W)return!1;try{var B;if(((B=_.Lx(W))==null?void 0:B.asm)==="4")return!0}catch(z){_.xr(z)}return!1};
jB0=function(W,B){B?(W=frD(W),_.ys(W,void 0,void 0,void 0,"",!0,!0)):_.ys(W)};
KRD=function(){XJ0||(XJ0=new _.el("yt.offline"));return XJ0};
uFt=function(W){if(_.r("offline_error_handling")){var B=KRD().get("errors",!0)||{};B[W.message]={name:W.name,stack:W.stack};W.level&&(B[W.message].level=W.level);KRD().set("errors",B,2592E3,!0)}};
mHv=function(W,B,z,G){G=G===void 0?!1:G;B=_.r("web_fp_via_jspb")?Object.assign({},B):B;_.r("use_cfr_monitor")&&eqv(W,B);if(_.r("use_request_time_ms_header"))B.headers&&z4(W)&&(B.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Yb)())));else{var Y;if((Y=B.postParams)==null?0:Y.requestTimeMs)B.postParams.requestTimeMs=Math.round((0,_.Yb)())}z&&Object.keys(B).length===0?_.ys(W):B.compress?B.postBody?(typeof B.postBody!=="string"&&(B.postBody=JSON.stringify(B.postBody)),MJR(W,B.postBody,
B,_.tC,G)):MJR(W,JSON.stringify(B.postParams),B,YgR,G):_.tC(W,B)};
xH8=function(W,B){_.r("use_event_time_ms_header")&&z4(W)&&(B.headers||(B.headers={}),B.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Yb)())));return B};
_.QBk=function(){DHu||(DHu=new _.ng({logOfflineErrors:!0,enablePolling:!0}));return DHu};
eqv=function(W,B){var z=B.onError?B.onError:function(){};
B.onError=function(Y,d){NX().requestComplete(W,!1);z(Y,d)};
var G=B.onSuccess?B.onSuccess:function(){};
B.onSuccess=function(Y,d){NX().requestComplete(W,!0);G(Y,d)}};
_.yVu=function(){return _.WS(document.location.toString())!=="www.youtube-nocookie.com"};
_.NaT=function(){return _.q6("ytNetworklessLoggingInitializationOptions")?_.qVy.isNwlInitialized:_.nBD};
$Hu=function(W,B){if(_.r("polymer_on_demand_shady_dom")){var z;var G=(z=W.__shady_native_firstElementChild)!=null?z:W.firstElementChild}else G=W.firstElementChild;for(;G;){if(W=B(G)?G:$Hu(G,B))return W;G=G.nextElementSibling}return null};
UH8=function(){var W=document;if("visibilityState"in W)return W.visibilityState;var B=LRt+"VisibilityState";if(B in W)return W[B]};
_.MKR=function(W,B){var z;$b(W,function(G){z=B[G];return!!z});
return z};
_.UE=function(W){var B=arx(W);B?B.focus(void 0):_.Lg(W)};
arx=function(W){return(W=$Hu(W,function(B){return _.MX(B)?Rqt(B)&&!!B.offsetParent:!1}))?W:null};
_.Lg=function(W,B){W.hasAttribute("tabindex")||W.setAttribute("tabindex","-1");W.focus(B)};
WT2=function(W,B,z,G){G=G===void 0?{}:G;W.addEventListener&&(B!="mouseenter"||"onmouseenter"in document?B!="mouseleave"||"onmouseenter"in document?B=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(B="MozMousePixelScroll"):B="mouseout":B="mouseover");return _.mP.findKey(ae,function(Y){var d=typeof Y[4]==="boolean"&&Y[4]==!!G,E=_.$t(Y[4])&&_.$t(G)&&_.mP.equals(Y[4],G);return!!Y.length&&Y[0]==W&&Y[1]==B&&Y[2]==z&&(d||E)})};
_.WT=function(W,B,z,G){G=G===void 0?{}:G;if(!W||!W.addEventListener&&!W.attachEvent)return"";var Y=WT2(W,B,z,G);if(Y)return Y;Y=++BSv.count+"";var d=!(B!="mouseenter"&&B!="mouseleave"||!W.addEventListener||"onmouseenter"in document);var E=d?function(v){v=new Re(v);if(!_.n3(v.relatedTarget,function(c){return c==W},!0))return v.currentTarget=W,v.type=B,z.call(W,v)}:function(v){v=new Re(v);
v.currentTarget=W;return z.call(W,v)};
E=_.D5(E);W.addEventListener?(B=="mouseenter"&&d?B="mouseover":B=="mouseleave"&&d?B="mouseout":B=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(B="MozMousePixelScroll"),zIR()||typeof G==="boolean"?W.addEventListener(B,E,G):W.addEventListener(B,E,!!G.capture)):W.attachEvent("on"+B,E);ae[Y]=[W,B,z,E,G];return Y};
_.Yvu=function(W,B,z){var G=G===void 0?{}:G;var Y=_.WT(W,B,function(){_.GGx(Y);z.apply(W,arguments)},G)};
_.GGx=function(W){W&&(typeof W=="string"&&(W=[W]),_.$r(W,function(B){if(B in ae){var z=ae[B],G=z[0],Y=z[1],d=z[3];z=z[4];G.removeEventListener?zIR()||typeof z==="boolean"?G.removeEventListener(Y,d,z):G.removeEventListener(Y,d,!!z.capture):G.detachEvent&&G.detachEvent("on"+Y,d);delete ae[B]}}))};
BT=function(W){this.callback_=W;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(W=0;W<4;W++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.WT(window,"mousemove",(0,_.jk)(this.onMouseMove_,this));this.timerId_=_.VW((0,_.jk)(this.checkPosition_,this),25)};
p2R=function(){var W={};var B=W.preferMobileEvents===void 0?!1:W.preferMobileEvents;W=W.enableScrollEventListener===void 0?!0:W.enableScrollEventListener;if(_.q6("_lact",window)==null){var z=parseInt(_.eD("LACT"),10);z=isFinite(z)?Date.now()-Math.max(z,0):-1;_.BV("_lact",z,window);_.BV("_fact",z,window);z==-1&&_.zi();_.WT(document,"keydown",_.zi);_.WT(document,"keyup",_.zi);_.WT(document,"mousedown",_.zi);_.WT(document,"mouseup",_.zi);B?_.WT(window,"touchmove",function(){dEt("touchmove",200)},{passive:!0}):
(_.WT(window,"resize",function(){dEt("resize",200)}),W&&_.WT(window,"scroll",function(){dEt("scroll",200)}));
new BT(function(){dEt("mouse",100)});
_.WT(document,"touchstart",_.zi,{passive:!0});_.WT(document,"touchend",_.zi,{passive:!0})}};
dEt=function(W,B){AYx[W]||(AYx[W]=!0,_.fg.addLowPriorityJob(function(){_.zi();AYx[W]=!1},B))};
_.zi=function(){_.q6("_lact",window)==null&&p2R();var W=Date.now();_.BV("_lact",W,window);_.q6("_fact",window)==-1&&_.BV("_fact",W,window);(W=_.q6("ytglobal.ytUtilActivityCallback_"))&&W()};
_.Gi=function(){var W=_.q6("_lact",window);return W==null?-1:Math.max(Date.now()-W,0)};
_.ip=function(W,B,z){var G=_.YE();if(G&&B){var Y=G.subscribe(W,function(){var d=arguments,E=function(){d7[Y]&&B.apply&&typeof B.apply=="function"&&B.apply(z||window,d)};
try{_.iyR[W]?E():_.cS(E,0)}catch(v){_.xr(v)}},z);
d7[Y]=!0;AX[W]||(AX[W]=[]);AX[W].push(Y);return Y}return 0};
_.EGD=function(W){var B=_.YE();B&&(typeof W==="number"?W=[W]:typeof W==="string"&&(W=[parseInt(W,10)]),_.$r(W,function(z){B.unsubscribeByKey(z);delete d7[z]}))};
_.TSX=function(W,B){var z=_.YE();z&&z.publish.apply(z,arguments)};
_.cYR=function(W){var B=_.YE();if(B)if(B.clear(W),W)vGQ(W);else for(var z in AX)vGQ(z)};
_.YE=function(){return _.Yt.ytPubsubPubsubInstance};
vGQ=function(W){AX[W]&&(W=AX[W],_.$r(W,function(B){d7[B]&&delete d7[B]}),W.length=0)};
w2t=function(){var W,B;return"h5vcc"in Ec&&((W=Ec.h5vcc.traceEvent)==null?0:W.traceBegin)&&((B=Ec.h5vcc.traceEvent)==null?0:B.traceEnd)?1:"performance"in Ec&&Ec.performance.mark&&Ec.performance.measure?2:0};
VXt=function(W){var B=w2t();switch(B){case 1:Ec.h5vcc.traceEvent.traceBegin("YTLR",W);break;case 2:Ec.performance.mark(W+"-start");break;case 0:break;default:_.qT(B,"unknown trace type")}};
JYT=function(W){var B=w2t();switch(B){case 1:Ec.h5vcc.traceEvent.traceEnd("YTLR",W);break;case 2:B=W+"-start";var z=W+"-end";Ec.performance.mark(z);Ec.performance.measure(W,B,z);break;case 0:break;default:_.qT(B,"unknown trace type")}};
gGk=function(W){var B,z;(z=(B=window).onerror)==null||z.call(B,W.message,"",0,0,W)};
tXQ=function(W){if(_.r("web_lifecycle_error_handling_killswitch"))return W();try{return W()}catch(B){gGk(B)}};
sK0=function(W){return[W.auth===void 0?"undefined":W.auth,W.isJspb===void 0?"undefined":W.isJspb,W.cttAuthInfo===void 0?"undefined":W.cttAuthInfo,W.tier===void 0?"undefined":W.tier].join("/")};
_.k=function(W,B){if(W)return W[B.name]};
vT=function(){var W=_.q6("yt.logging.ims");W||(W=new Ti,_.BV("yt.logging.ims",W));return W};
hIx=function(W,B){if(W.endpoint==="log_event"){PF2(W);var z=Zyr(W),G=rYk(W.payload)||"",Y=kG2(G),d=200;if(Y){if(Y.enabled===!1&&!_.r("web_payload_policy_disabled_killswitch"))return;d=lNx(Y.tier);if(d===400){CFy(W,B);return}}cT[z]=!0;z={cttAuthInfo:z,isJspb:!1,tier:d};vT().storePayload(z,W.payload);INr(B,!1,z,oGX(G))}};
FTu=function(W,B,z){if(B.endpoint==="log_event"){PF2(void 0,B);var G=Zyr(B,!0),Y=kG2(W),d=200;if(Y){if(Y.enabled===!1&&!_.r("web_payload_policy_disabled_killswitch"))return;d=lNx(Y.tier);if(d===400){HyQ(W,B,z);return}}cT[G]=!0;G={cttAuthInfo:G,isJspb:!0,tier:d};vT().storePayload(G,u9(B.payload));INr(z,!0,G,oGX(W))}};
INr=function(W,B,z,G){B=B===void 0?!1:B;G=G===void 0?!1:G;W&&(w7=new W);W=_.iO("tvhtml5_logging_max_batch_ads_fork")||_.iO("tvhtml5_logging_max_batch")||_.iO("web_logging_max_batch")||100;var Y=(0,_.Yb)(),d=Svy(B,z.tier),E=d.lastDebounceQueueFromLogTimeMs;G&&(d.useVideoStatsEndPoint=!0);G=0;z&&(G=vT().getSequenceCount(z));var v=function(){byy({writeThenSend:!0},B,z.tier)};
G>=1E3?v():G>=W?jKv||(jKv=fNt(function(){v();jKv=void 0},0)):Y-E>=10&&(Oyy(B,z.tier),d.lastDebounceQueueFromLogTimeMs=Y)};
CFy=function(W,B){if(W.endpoint==="log_event"){_.r("more_accurate_gel_parser")&&vT().storePayload({isJspb:!1},W.payload);PF2(W);var z=Zyr(W),G=new Map;G.set(z,[W.payload]);var Y=rYk(W.payload)||"";B&&(w7=new B);return new _.Vx(function(d,E){w7&&w7.isReady()?X2k(G,w7,d,E,{bypassNetworkless:!0},!0,oGX(Y)):d()})}};
HyQ=function(W,B,z){if(B.endpoint==="log_event"){PF2(void 0,B);var G=Zyr(B,!0),Y=new Map;Y.set(G,[u9(B.payload)]);z&&(w7=new z);return new _.Vx(function(d){w7&&w7.isReady()?KTR(Y,w7,d,{bypassNetworkless:!0},!0,oGX(W)):d()})}};
Zyr=function(W,B){var z="";if(W.dangerousLogToVisitorSession)z="visitorOnlyApprovedKey";else if(W.cttAuthInfo){if(B===void 0?0:B){B=W.cttAuthInfo.token;z=W.cttAuthInfo;var G=new umu;z.videoId?G.setVideoId(z.videoId):z.playlistId&&JX(G,2,eIu,ri(z.playlistId));mEX[B]=G}else B=W.cttAuthInfo,z={},B.videoId?z.videoId=B.videoId:B.playlistId&&(z.playlistId=B.playlistId),xEX[W.cttAuthInfo.token]=z;z=W.cttAuthInfo.token}return z};
byy=function(W,B,z){W=W===void 0?{}:W;B=B===void 0?!1:B;new _.Vx(function(G,Y){var d=Svy(B,z),E=d.useVideoStatsEndPoint;d.useVideoStatsEndPoint=!1;DEx(d.queueTimer);DEx(d.queueMaxTimer);d.queueMaxTimer=0;w7&&w7.isReady()?z===void 0&&_.r("enable_web_tiered_gel")?QKx(G,Y,W,B,300,E):QKx(G,Y,W,B,z,E):(Oyy(B,z),G())})};
QKx=function(W,B,z,G,Y,d){var E=w7;z=z===void 0?{}:z;G=G===void 0?!1:G;Y=Y===void 0?200:Y;d=d===void 0?!1:d;var v=new Map,c=new Map,J={isJspb:G,cttAuthInfo:void 0,tier:Y},g={isJspb:G,cttAuthInfo:void 0};if(G){B=_.A(Object.keys(cT));for(Y=B.next();!Y.done;Y=B.next())Y=Y.value,c=_.r("enable_web_tiered_gel")?vT().smartExtractMatchingEntries({keys:[J,g],sizeLimit:1E3}):vT().extractMatchingEntries({isJspb:!0,cttAuthInfo:Y}),c.length>0&&v.set(Y,c),(_.r("web_fp_via_jspb_and_json")&&z.writeThenSend||!_.r("web_fp_via_jspb_and_json"))&&
delete cT[Y];KTR(v,E,W,z,!1,d)}else{v=_.A(Object.keys(cT));for(J=v.next();!J.done;J=v.next())J=J.value,g=_.r("enable_web_tiered_gel")?vT().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:J,tier:Y},{isJspb:!1,cttAuthInfo:J}],sizeLimit:1E3}):vT().extractMatchingEntries({isJspb:!1,cttAuthInfo:J}),g.length>0&&c.set(J,g),(_.r("web_fp_via_jspb_and_json")&&z.writeThenSend||!_.r("web_fp_via_jspb_and_json"))&&delete cT[J];X2k(c,E,W,B,z,!1,d)}};
Oyy=function(W,B){W=W===void 0?!1:W;B=B===void 0?200:B;var z=function(){byy({writeThenSend:!0},W,B)},G=Svy(W,B),Y=G===yYv||G===qvD?5E3:nGr;
_.r("web_gel_timeout_cap")&&!G.queueMaxTimer&&(Y=fNt(function(){z()},Y),G.queueMaxTimer=Y);
DEx(G.queueTimer);Y=_.eD("LOGGING_BATCH_TIMEOUT",_.iO("web_gel_debounce_ms",1E4));_.r("shorten_initial_gel_batch_timeout")&&NS8&&(Y=$Eu);Y=fNt(function(){_.iO("gel_min_batch_size")>0?vT().getSequenceCount({cttAuthInfo:void 0,isJspb:W,tier:B})>=LTT&&z():z()},Y);
G.queueTimer=Y};
X2k=function(W,B,z,G,Y,d,E){Y=Y===void 0?{}:Y;var v=Math.round((0,_.Yb)()),c=W.size,J=UEX(E);W=_.A(W);var g=W.next();for(E={};!g.done;E={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},g=W.next()){var t=_.A(g.value);g=t.next().value;t=t.next().value;E.batchRequest=_.mP.unsafeClone({context:_.Hs2(B.config_||_.pg())});if(!_.yR(t)&&!_.r("throw_err_when_logevent_malformed_killswitch")){G();break}E.batchRequest.events=t;
(t=xEX[g])&&MXr(E.batchRequest,g,t);delete xEX[g];E.dangerousLogToVisitorSession=g==="visitorOnlyApprovedKey";aNy(E.batchRequest,v,E.dangerousLogToVisitorSession);RI8(Y);E.onSuccess$jscomp$3=function(P){_.r("start_client_gcf")&&_.fg.addLowPriorityJob(function(){return _.T(function(Z){return Z.yield(WCv(P),0)})});
c--;c||z()};
E.networkFailures=0;E.onError$jscomp$5=function(P){return function(){P.networkFailures++;if(Y.bypassNetworkless&&P.networkFailures===1)try{EBD(B,J,P.batchRequest,BuR({writeThenSend:!0},P.dangerousLogToVisitorSession,P.onSuccess$jscomp$3,P.onError$jscomp$5,d)),NS8=!1}catch(Z){_.xr(Z),G()}c--;c||z()}}(E);
try{EBD(B,J,E.batchRequest,BuR(Y,E.dangerousLogToVisitorSession,E.onSuccess$jscomp$3,E.onError$jscomp$5,d)),NS8=!1}catch(P){_.xr(P),G()}}};
KTR=function(W,B,z,G,Y,d){G=G===void 0?{}:G;var E=Math.round((0,_.Yb)()),v={value:W.size},c=new Map([].concat(_.u7(W)));c=_.A(c);for(var J=c.next();!J.done;J=c.next()){var g=_.A(J.value).next().value,t=W.get(g);J=new z$r;var P=B.config_||_.pg(),Z=new g7,l=new GN2;_.f3(l,1,P.innertubeContextHostLanguage);_.f3(l,2,P.innertubeContextGeoLocation);_.i2(l,16,P.innertubeContextClientNameFieldNumber);_.f3(l,17,P.innertubeContextClientVersion);if(P.innertubeContextClientConfigInfo){var b=P.innertubeContextClientConfigInfo,
O=new TU;b.coldConfigData&&_.f3(O,1,b.coldConfigData);b.appInstallData&&_.f3(O,6,b.appInstallData);b.coldHashData&&_.f3(O,3,b.coldHashData);b.hotHashData&&O.setHotHashData(b.hotHashData);_.o3(l,62,O)}(b=_.Yt.devicePixelRatio)&&b!=1&&_.EE(l,65,_.n7(b));b=q2D();b!==""&&_.f3(l,54,b);b=nq8();if(b.length>0){O=new YMx;for(var K=0;K<b.length;K++){var e=new tX;e.setKey(b[K].key);JX(e,2,d$r,ri(b[K].value));sc(O,15,tX,e)}_.o3(Z,5,O)}kRr(P,l);lar(Z);CaQ(l);Iat(P,l);o_2(l);_.r("start_client_gcf")&&hSv(l);_.eD("DELEGATED_SESSION_ID")&&
!_.r("pageid_as_header_web")&&(P=new PT,_.f3(P,3,_.eD("DELEGATED_SESSION_ID")));!_.r("fill_delegate_context_in_gel_killswitch")&&(b=_.eD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(O=_.AD(Z,PT,3)||new PT,P=Z,b=_.f3(O,18,b),_.o3(P,3,b));P=l;b=_.A(Object.entries(_.Lx(_.eD("DEVICE",""))));for(O=b.next();!O.done;O=b.next())K=_.A(O.value),O=K.next().value,K=K.next().value,O==="cbrand"?_.f3(P,12,K):O==="cmodel"?_.f3(P,13,K):O==="cbr"?_.f3(P,87,K):O==="cbrver"?_.f3(P,88,K):O==="cos"?_.f3(P,18,
K):O==="cosver"?_.f3(P,19,K):O==="cplatform"&&_.i2(P,42,rqy(K));Z.setClient(l);_.o3(J,1,Z);if(l=mEX[g])a:{if(_.Cp(l,ZD(l,eIu,1)))Z=1;else if(l.getPlaylistId())Z=2;else break a;_.o3(J,4,l);l=J.getContext()||new g7;P=_.AD(l,PT,3)||new PT;b=new r7;b.setToken(g);_.i2(b,1,Z);sc(P,12,r7,b);_.o3(l,3,P)}delete mEX[g];g=g==="visitorOnlyApprovedKey";pAu()||_.kE(J,2,E);!g&&(Z=_.eD("EVENT_ID"))&&(l=AgD(),P=new i22,_.f3(P,1,Z),_.kE(P,2,l),_.o3(J,5,P));RI8(G);if(_.r("jspb_serialize_with_worker")&&(Z=_.eRy())&&
G.writeThenSend){_.E2Q.set(Tuv,{client:B,resolve:z,networklessOptions:G,isIsolated:Y,useVSSEndpoint:d,dangerousLogToVisitorSession:g,requestsOutstanding:v});Z.postMessage({op:"gelBatchToSerialize",batchRequest:u9(J),clientEvents:t,key:Tuv});Tuv++;break}if(t){Z=[];for(l=0;l<t.length;l++)try{Z.push(new lp(t[l]))}catch(a){_.xr(new _.oX("Transport failed to deserialize "+String(t[l])))}t=Z}else t=[];t=_.A(t);for(Z=t.next();!Z.done;Z=t.next())sc(J,3,lp,Z.value);t={startTime:(0,_.Yb)(),ticks:{},infos:{}};
J=J.serialize();t.ticks.geljspc=(0,_.Yb)();_.r("log_jspb_serialize_latency")&&f8D("gel_jspb_serialize",t,{sampleRate:.1});_.v2D(J,B,z,G,Y,d,g,v)}};
_.v2D=function(W,B,z,G,Y,d,E,v){G=G===void 0?{}:G;v=v===void 0?{value:0}:v;d=UEX(d);G=BuR(G,E,function(c){_.r("start_client_gcf")&&_.fg.addLowPriorityJob(function(){return _.T(function(J){return J.yield(WCv(c),0)})});
v.value--;v.value||z()},function(){v.value--;
v.value||z()},Y);
G.headers["Content-Type"]="application/json+protobuf";G.postBodyFormat="JSPB";G.postBody=W;EBD(B,d,"",G);NS8=!1};
RI8=function(W){_.r("always_send_and_write")&&(W.writeThenSend=!1)};
BuR=function(W,B,z,G,Y){W={retry:!0,onSuccess:z,onError:G,networklessOptions:W,dangerousLogToVisitorSession:B,bypassMonitoring:!!Y,headers:{},postBodyFormat:"",postBody:"",compress:_.r("compress_gel")||_.r("compress_gel_lr")};pAu()&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Yb)())));return W};
aNy=function(W,B,z){pAu()||(W.requestTimeMs=String(B));_.r("unsplit_gel_payloads_in_logs")&&(W.unsplitGelPayloadsInLogs=!0);!z&&(B=_.eD("EVENT_ID"))&&(z=AgD(),W.serializedClientEventId={serializedEventId:B,clientCounter:String(z)})};
AgD=function(){var W=_.eD("BATCH_CLIENT_COUNTER")||0;W||(W=Math.floor(Math.random()*65535/2));W++;W>65535&&(W=1);_.uk("BATCH_CLIENT_COUNTER",W);return W};
MXr=function(W,B,z){if(z.videoId)var G="VIDEO";else if(z.playlistId)G="PLAYLIST";else return;W.credentialTransferTokenTargetId=z;W.context=W.context||{};W.context.user=W.context.user||{};W.context.user.credentialTransferTokens=[{token:B,scope:G}]};
PF2=function(W,B){var z=_.EA("il_payload_scraping")==="enable_il_payload_scraping";if(!_.q6("yt.logging.transport.enableScrapingForTest"))if(z)cg2=[],_.BV("yt.logging.transport.enableScrapingForTest",!0),_.BV("yt.logging.transport.scrapedPayloadsForTesting",cg2),_.BV("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.BV("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.BV("yt.logging.transport.scrapeClientEvent",!0);else return;z=_.q6("yt.logging.transport.scrapedPayloadsForTesting");var G=_.q6("yt.logging.transport.payloadToScrape");B&&(B=_.q6("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(B.payload)())&&z.push(B);B=_.q6("yt.logging.transport.scrapeClientEvent");if(G&&G.length>=1)for(var Y=0;Y<G.length;Y++)if(W&&W.payload[G[Y]])if(B)z.push(W.payload);else{var d=void 0;z.push(((d=W)==null?void 0:d.payload)[G[Y]])}_.BV("yt.logging.transport.scrapedPayloadsForTesting",
z)};
pAu=function(){return _.r("use_request_time_ms_header")||_.r("lr_use_request_time_ms_header")};
fNt=function(W,B){return _.r("transport_use_scheduler")===!1?_.cS(W,B):_.r("logging_avoid_blocking_during_navigation")||_.r("lr_logging_avoid_blocking_during_navigation")?_.CG(_.fg,function(){if(_.wAR().currentState==="none")W();else{var z={};_.wAR().install((z.none={callback:W},z))}},B):_.CG(_.fg,W,B)};
DEx=function(W){_.r("transport_use_scheduler")?_.fg.cancelJob(W):_.JC(W)};
WCv=function(W){var B,z,G,Y,d,E,v,c,J,g;return _.T(function(t){return t.nextAddress==1?(G=(B=W)==null?void 0:(z=B.responseContext)==null?void 0:z.globalConfigGroup,Y=_.k(G,Vcv),E=(d=G)==null?void 0:d.hotHashData,v=_.k(G,JgX),J=(c=G)==null?void 0:c.coldHashData,(g=_.dO().resolve(_.Y8(Ig)))?E?Y?t.yield(g2R(g,E,Y),2):t.yield(g2R(g,E),2):t.jumpTo(2):t.return()):J?v?t.yield(tc0(g,J,v),0):t.yield(tc0(g,J),0):t.jumpTo(0)})};
Svy=function(W,B){B=B===void 0?200:B;return W?B===300?yYv:snD:B===300?qvD:PjQ};
kG2=function(W){if(_.r("enable_web_tiered_gel")){W=Z2X[W||""];var B,z,G,Y=_.dO().resolve(_.Y8(Ig))==null?void 0:(B=og())==null?void 0:(z=B.loggingHotConfig)==null?void 0:(G=z.eventLoggingConfig)==null?void 0:G.payloadPolicies;if(Y)for(B=0;B<Y.length;B++)if(Y[B].payloadNumber===W)return Y[B]}};
rYk=function(W){W=Object.keys(W);W=_.A(W);for(var B=W.next();!B.done;B=W.next())if(B=B.value,Z2X[B])return B};
lNx=function(W){switch(W){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}};
oGX=function(W){return W==="gelDebuggingEvent"};
UEX=function(W){return(W===void 0?0:W)&&_.r("vss_through_gel_video_stats")?"video_stats":"log_event"};
HT=function(W,B,z,G){G=G===void 0?{}:G;var Y={},d=Math.round(G.timestamp||(0,_.Yb)());Y.eventTimeMs=d<Number.MAX_SAFE_INTEGER?d:0;Y[W]=B;W=_.Gi();Y.context={lastActivityMs:String(G.timestamp||!isFinite(W)?-1:W)};G.sequenceGroup&&!_.r("web_gel_sequence_info_killswitch")&&(W=Y.context,B=G.sequenceGroup,B={index:rgQ(B),groupKey:B},W.sequence=B,G.endOfSequence&&delete hX[G.sequenceGroup]);_.r("web_tag_automated_log_events")&&(Y.context.automatedLogEventSource=G.automatedLogEventSource);(G.sendIsolatedPayload?
CFy:hIx)({endpoint:"log_event",payload:Y,cttAuthInfo:G.cttAuthInfo,dangerousLogToVisitorSession:G.dangerousLogToVisitorSession},z)};
rgQ=function(W){hX[W]=W in hX?hX[W]+1:0;return hX[W]};
_.Sy=function(W,B,z){z=z===void 0?{}:z;var G=FC;_.md("ytLoggingEventsDefaultDisabled",!1)&&FC===FC&&(G=null);HT(W,B,G,z)};
_.bp=function(){if(_.r("web_fp_via_jspb")){var W=!0;W=W===void 0?!1:W;var B=kNR;kNR=[];if(B){B=_.A(B);for(var z=B.next();!z.done;z=B.next())z=z.value,W?HT(z.payloadName,z.payload,FC,z.options):_.Sy(z.payloadName,z.payload,z.options)}byy(void 0,!0);if(!_.r("web_fp_via_jspb_and_json"))return}byy(void 0,!1)};
lpt=function(W,B){var z;if((z=B)==null?0:z.componentStack)return B;if(W=W.componentStack)B||(B={}),B.componentStack=W;return B};
Cjt=function(){_.$r(_.eD("ERRORS")||[],function(W){_.jy.apply(null,W)});
_.uk("ERRORS",[])};
_.fG=function(W){_.jy(W)};
_.Oc=function(W){_.jy(W,"WARNING")};
IpD=function(W){W instanceof Error?_.jy(W):(W=_.$t(W)?JSON.stringify(W):String(W),W=new _.oX(W),W.name="RejectedPromiseError",_.Oc(W))};
o2R=function(W,B,z,G,Y,d){B=B===void 0?"Unknown file":B;z=z===void 0?0:z;var E=!1,v=l4R("log_window_onerror_fraction");if(v&&Math.random()<v)E=!0;else{v=document.getElementsByTagName("script");for(var c=0,J=v.length;c<J;c++)if(v[c].src.indexOf("/debug-")>0){E=!0;break}}E&&(E=!1,Y?E=!0:(typeof W==="string"?v=W:ErrorEvent&&W instanceof ErrorEvent?(E=!0,v=W.message,B=W.filename,z=W.lineno,G=W.colno):(v="Unknown error",B="Unknown file",z=0),Y=new _.oX(v),Y.name="UnhandledWindowError",Y.message=v,Y.fileName=
B,Y.lineNumber=z,isNaN(G)?delete Y.columnNumber:Y.columnNumber=G),_.r("wiz_enable_component_stack_propagation_killswitch")||(d=lpt(Y,d)),d&&_.XC(Y,d),E?_.jy(Y):_.Oc(Y))};
_.jy=function(W,B,z,G,Y,d,E,v){d=d===void 0?{}:d;d.name=z||_.eD("INNERTUBE_CONTEXT_CLIENT_NAME",1);d.version=G||_.eD("INNERTUBE_CONTEXT_CLIENT_VERSION");z=d;B=B===void 0?"ERROR":B;E=E===void 0?!1:E;B=B===void 0?"ERROR":B;E=E===void 0?!1:E;if(W&&(W.hasOwnProperty("level")&&W.level&&(B=W.level),_.r("console_log_js_exceptions")&&(G=[],G.push("Name: "+W.name),G.push("Message: "+W.message),W.hasOwnProperty("params")&&G.push("Error Params: "+JSON.stringify(W.params)),W.hasOwnProperty("args")&&G.push("Error args: "+
JSON.stringify(W.args)),G.push("File name: "+W.fileName),G.push("Stacktrace: "+W.stack),G=G.join("\n"),window.console.log(G,W)),!(h$r>=5))){G=[];Y=_.A(H2k);for(d=Y.next();!d.done;d=Y.next()){d=d.value;try{d()&&G.push(d())}catch(O){}}G=[].concat(_.u7(FCR),_.u7(G));var c=SMr(W);Y=c.message||"Unknown Error";d=c.name||"UnknownError";var J=c.stack||W.stacktrace||"Not available";if(J.startsWith(d+": "+Y)){var g=J.split("\n");g.shift();J=g.join("\n")}g=c.lineNumber||"Not available";c=c.fileName||"Not available";
var t=0;if(W.hasOwnProperty("args")&&W.args&&W.args.length)for(var P=0;P<W.args.length&&!(t=ZA2(W.args[P],"params."+P,z,t),t>=500);P++);else if(W.hasOwnProperty("params")&&W.params){var Z=W.params;if(typeof W.params==="object")for(P in Z){if(Z[P]){var l="params."+P,b=Zo(Z[P]);z[l]=b;t+=l.length+b.length;if(t>500)break}}else z.params=Zo(Z)}if(G.length)for(P=0;P<G.length&&!(t=ZA2(G[P],"params.context."+P,z,t),t>=500);P++);navigator.vendor&&!z.hasOwnProperty("vendor")&&(z["device.vendor"]=navigator.vendor);
P={message:Y,name:d,lineNumber:g,fileName:c,stack:J,params:z,sampleWeight:1};z=Number(W.columnNumber);isNaN(z)||(P.lineNumber=P.lineNumber+":"+z);if(W.level==="IGNORED")W=0;else a:{W=b20();z=_.A(W.messageWeights);for(G=z.next();!G.done;G=z.next())if(G=G.value,P.message&&P.message.match(G.messageRegExp)){W=G.weight;break a}W=_.A(W.callbackWeights);for(z=W.next();!z.done;z=W.next())if(z=z.value,z.callback(P)){W=z.weight;break a}W=1}P.sampleWeight=W;W=_.A(jnk);for(z=W.next();!z.done;z=W.next())if(z=
z.value,z.patternsForType[P.name])for(Y=_.A(z.patternsForType[P.name]),G=Y.next();!G.done;G=Y.next())if(d=G.value,G=P.message.match(d.regexp)){P.params["params.error.original"]=G[0];Y=d.groups;d={};for(g=0;g<Y.length;g++)d[Y[g]]=G[g+1],P.params["params.error."+Y[g]]=G[g+1];P.message=z.messageFn(d);break}P.params||(P.params={});W=b20();P.params["params.errorServiceSignature"]="msg="+W.messageWeights.length+"&cb="+W.callbackWeights.length;P.params["params.serviceWorker"]="false";_.Yt.document&&_.Yt.document.querySelectorAll&&
(P.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new KG(fp0,"sample")).constructor!==KG&&(P.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(P);if(P.sampleWeight!==0&&!O2u.has(P.message)){if(E&&_.r("web_enable_error_204"))XA8(B===void 0?"ERROR":B,P);else{B=B===void 0?"ERROR":B;B==="ERROR"?(KCv.publish("handleError",P),_.r("record_app_crashed_web")&&uEX===0&&P.sampleWeight===1&&(uEX++,E={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.r("report_client_error_with_app_crash_ks")||(E.systemHealth={crashData:{clientError:{logMessage:{message:P.message}}}}),_.Sy("appCrashed",E)),e$x++):B==="WARNING"&&KCv.publish("handleWarning",P);if(_.r("kevlar_gel_error_routing")){E=B;v=v===void 0?{}:v;b:{W=_.A(m$r);for(z=W.next();!z.done;z=W.next())if(uO(z.value.toLowerCase())){W=!0;break b}W=!1}if(W)v=void 0;else{z={stackTrace:P.stack};P.fileName&&(z.filename=P.fileName);W=P.lineNumber&&P.lineNumber.split?P.lineNumber.split(":"):[];W.length!==
0&&(W.length!==1||isNaN(Number(W[0]))?W.length!==2||isNaN(Number(W[0]))||isNaN(Number(W[1]))||(z.lineNumber=Number(W[0]),z.columnNumber=Number(W[1])):z.lineNumber=Number(W[0]));W={level:"ERROR_LEVEL_UNKNOWN",message:P.message,errorClassName:P.name,sampleWeight:P.sampleWeight};E==="ERROR"?W.level="ERROR_LEVEL_ERROR":E==="WARNING"&&(W.level="ERROR_LEVEL_WARNNING");z={isObfuscated:!0,browserStackInfo:z};v.pageUrl=window.location.href;v.kvPairs=[];_.eD("FEXP_EXPERIMENTS")&&(v.experimentIds=_.eD("FEXP_EXPERIMENTS"));
G=_.eD("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!l4R("web_disable_gel_stp_ecatcher_killswitch")&&G)for(Y=_.A(Object.keys(G)),d=Y.next();!d.done;d=Y.next())d=d.value,v.kvPairs.push({key:d,value:String(G[d])});if(G=P.params)for(Y=_.A(Object.keys(G)),d=Y.next();!d.done;d=Y.next())d=d.value,v.kvPairs.push({key:"client."+d,value:String(G[d])});G=_.eD("SERVER_NAME");Y=_.eD("SERVER_VERSION");G&&Y&&(v.kvPairs.push({key:"server.name",value:G}),v.kvPairs.push({key:"server.version",value:Y}));v={errorMetadata:v,
stackTrace:z,logMessage:W}}v&&(_.Sy("clientError",v),(E==="ERROR"||_.r("errors_flush_gel_always_killswitch"))&&_.bp())}_.r("suppress_error_204_logging")||XA8(B,P)}try{O2u.add(P.message)}catch(O){}h$r++}}};
XA8=function(W,B){var z=B.params||{};W={urlParams:{a:"logerror",t:"jserror",type:B.name,msg:B.message.substr(0,250),line:B.lineNumber,level:W,"client.name":z.name},postParams:{url:_.eD("PAGE_NAME",window.location.href),file:B.fileName},method:"POST"};z.version&&(W["client.version"]=z.version);if(W.postParams){B.stack&&(W.postParams.stack=B.stack);B=_.A(Object.keys(z));for(var G=B.next();!G.done;G=B.next())G=G.value,W.postParams["client."+G]=z[G];if(z=_.eD("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(B=
_.A(Object.keys(z)),G=B.next();!G.done;G=B.next())G=G.value,W.postParams[G]=z[G];(z=_.eD("LAVA_VERSION"))&&(W.postParams["lava.version"]=z);z=_.eD("SERVER_NAME");B=_.eD("SERVER_VERSION");z&&B&&(W.postParams["server.name"]=z,W.postParams["server.version"]=B)}_.tC(_.eD("ECATCHER_REPORT_HOST","")+"/error_204",W)};
_.x$y=function(W,B){B=B===void 0?"ERROR":B;var z=z===void 0?{}:z;var G=_.q6("ytbin.polymer.shared.lib.tampering.info");G&&(G=G())&&(z["params.tamperingInfo"]=G.sort().join(","));_.jy(W,B,void 0,void 0,!0,z)};
_.XC=function(W){var B=_.nm.apply(1,arguments);W.args||(W.args=[]);Array.isArray(W.args)&&W.args.push.apply(W.args,_.u7(B))};
D$k=function(W){W.level="IGNORED"};
Qn2=function(W,B){FCR.push(W);B();FCR.pop()};
ey=function(W,B){for(var z in B)B.hasOwnProperty(z)&&(W=_.up(W,z,B[z]));return W};
_.ygX=function(W,B,z){z=z===void 0?!1:z;if(!W)return null;if(W.adInfoDialogEndpoint||W.backstageImageUploadEndpoint||W.confirmDialogEndpoint||W.clientActionEndpoint||W.createBackstagePostDialogEndpoint||W.createCommentReplyDialogEndpoint||W.flowEndpoint||W.guideBuilderEndpoint||W.liveChatDialogEndpoint||W.modalEndpoint||W.openPopupAction||W.shareEndpoint||W.shareEntityEndpoint||W.showLiveChatItemEndpoint||W.subscriptionManagerEndpoint||W.unlimitedCreateFamilyEndpoint||W.unlimitedFamilyFlowEndpoint||
W.updateCommentDialogEndpoint||W.updateCommentReplyDialogEndpoint||W.userFeedbackEndpoint||W.videoEditorEndpoint||W.ypcCancelSurveyEndpoint)return B=_.iO("polymer_report_client_url_requested_rate"),!z&&Math.random()<B&&_.Oc(new _.oX("urlForEndpoint used on client endpoint",W)),null;var G=_.iO("polymer_report_missing_web_navigation_endpoint_rate");if(W.liveChatEndpoint||W.liveChatReplayEndpoint)G=0;if(!W.commandMetadata&&!W.clickTrackingParams&&Math.random()<G){var Y={},d;for(d in W)Y[d]="1";_.Oc(new _.oX("Missing navigation data",
Y))}Y="";if(W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url)Y=W.commandMetadata.webCommandMetadata.url;else if(W.searchEndpoint)Math.random()<G&&_.Oc(new _.oX("Should not manually handle search",W)),Y="/results?search_query="+encodeURIComponent(W.searchEndpoint.query).replace(/%20/g,"+"),W.searchEndpoint.params&&(Y+="&sp="+W.searchEndpoint.params);else if(W.watchEndpoint)Math.random()<G&&_.Oc(new _.oX("Should not manually handle watch",W)),Y="/watch?v="+
W.watchEndpoint.videoId,W.watchEndpoint.playlistId&&(Y+="&list="+W.watchEndpoint.playlistId),W.watchEndpoint.index&&(Y+="&index="+W.watchEndpoint.index),W.watchEndpoint.startTimeSeconds&&(Y+="&t="+W.watchEndpoint.startTimeSeconds);else if(W.browseEndpoint)G=W.browseEndpoint.browseId,(d=W.browseEndpoint.canonicalBaseUrl)?Y=d:G&&(Y=G.substr(0,2),Y=Y==="FE"?G==="FEwhat_to_watch"?"/":G==="FEmy_videos"?"/my_videos":"/feed/"+G.substr(2):Y==="VL"?"/playlist?list="+G.substr(2):"/channel/"+G),Y&&W.browseEndpoint.query&&
(Y=ey(Y+"/search",{query:W.browseEndpoint.query})),Y&&W.browseEndpoint.params&&(Y=ey(Y,{params:W.browseEndpoint.params}));else{if(W.urlEndpoint)return W.urlEndpoint.url;W.signInEndpoint?(Y="https://accounts.google.com/ServiceLogin",G={},_.mP.extend(G,B||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),B=G):W.uploadEndpoint?Y="//www.youtube.com/upload":W.liveChatEndpoint?(Y=W.liveChatEndpoint,G=_.mP.clone(Y),_.$t(Y.continuation)&&(d=Object.keys(Y.continuation)[0],
G.continuation=Y.continuation[d].continuation),Y=ey("/youtubei/v1/live_chat/get_live_chat",G)):W.liveChatReplayEndpoint?(Y=_.mP.clone(W.liveChatReplayEndpoint),Y.currentPlayerState&&(_.mP.extend(Y,Y.currentPlayerState),delete Y.currentPlayerState),Y=ey("/youtubei/v1/live_chat/get_live_chat_replay",Y)):W.liveChatItemContextMenuEndpoint?Y=ey("/youtubei/v1/live_chat/get_item_context_menu",W.liveChatItemContextMenuEndpoint):W.liveChatPurchaseMessageEndpoint?Y=ey("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
W.liveChatPurchaseMessageEndpoint):W.openSuperStickerBuyFlowCommand?Y=ey("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",W.openSuperStickerBuyFlowCommand):W.videoEditEndpoint?Y=ey("/edit",{video_id:W.videoEditEndpoint.videoId}):W.liveDashboardEndpoint?Y=W.liveDashboardEndpoint.videoId?ey("/live_dashboard",{v:W.liveDashboardEndpoint.videoId}):"/live_dashboard":W.signalNavigationEndpoint&&W.signalNavigationEndpoint.signal&&W.signalNavigationEndpoint.signal==="WEBCAM"?Y="/webcam":W.getPdgBuyFlowCommand&&
(Y=ey(W.getPdgBuyFlowCommand.buyflowApiPath,{params:W.getPdgBuyFlowCommand.params}))}return Y||z?ey(Y,B||{}):(_.Oc(new _.oX("Error: Can't construct url for endpoint","keys:"+Object.keys(W).sort().join(","),W)),null)};
qM8=function(W){if(W){if(W.browseEndpoint)return!!W.browseEndpoint.nofollow;if(W.watchEndpoint)return!!W.watchEndpoint.nofollow;if(W.urlEndpoint)return!!W.urlEndpoint.nofollow}return!1};
_.NuD=function(W,B){var z=B+W,G=n2X.get(z);if(G)return G;W=B+"-"+W.replace(/([A-Z])/g,"-$1").toLowerCase();n2X.set(z,W);return W};
$$t=function(W){var B=_.Ow(W,"action")||_.Ow(W,"command")||_.Ow(W,"endpoint");if(!B)return null;B=_.NuD(B,"yt");_.k(W,_.mE)&&(B+="-"+_.k(W,_.mE).signal.toLowerCase().replace(/_/g,"-"));return B};
apx=function(W){try{var B=Object.keys(W)}catch(Y){return[]}for(var z=0;z<B.length;z++){var G=B[z];if(LCX.test(G)||U$Q.test(G))return McD(W[G])}return[]};
McD=function(W){return W.command?[W.command]:W.onExecutionAction?[W.onExecutionAction]:W.onResponseReceivedCommand?[W.onResponseReceivedCommand]:W.updateFlowCommand?[W.updateFlowCommand]:W.clientActions?W.clientActions:W.action?[W.action]:W.actions||W.commands||W.onResponseReceivedActions||W.onResponseReceivedCommands||W.onResponseReceivedEndpoints||[]};
Wuy=function(W,B){B=B===void 0?!1:B;var z=_.dO().resolve(_.Y8(xE));z||(z=new R$D,_.dO().addProvider({provide:xE,useValue:z}));return z&&W&&!_.mP.isEmpty(W)?z.getUrl(W,B):""};
Bh2=function(W,B,z){z=z===void 0?"":z;if(B){W.data=B;var G=Wuy(B);G?($h(W,G),qM8(B)||!z4(G)?W.rel="nofollow":W.removeAttribute("rel"),_.k(B,_.DD)&&_.k(B,_.DD).target==="TARGET_NEW_WINDOW"?W.target="_blank":z?W.target=z:W.removeAttribute("target")):(W.removeAttribute("href"),W.removeAttribute("rel"),W.removeAttribute("target"))}};
_.$E=function(W,B){var z=Gt;if(FA())zr2(W,function(){var d=_.nm.apply(0,arguments);uE(z,function(){B.apply(null,_.u7(d))})});
else{var G=_.Qx.getInstance(),Y=kyQ(B);vqu(function(){Y.value=B});
_.jD(function(){var d={},E=_.yx(G,(d[W]=function(){var v=_.nm.apply(0,arguments);uE(z,function(){Y.value.apply(Y,_.u7(v))})},d));
return function(){var v={};_.Nl(G,(v[W]="",v),E)}})}};
_.LG=function(W,B){return GmR(W,!1,B)};
_.ag=function(W,B){return GmR(W,!0,B)};
GmR=function(W,B,z){return FA()?Y_k(W,B,z):dFR(W,B,z)};
dFR=function(W,B,z){return fx(function(){return Y_k(W,B,z)})};
Y_k=function(W,B,z){var G=ArT(function(Y){G.value=Y;var d=function(){var E=v5(null);try{return z==null?void 0:z(Y)}finally{v5(E)}}();
return function(){d==null||d()}});
G.__expectedTagName=W;G.__optional=B;G.isIdom=!FA();return G};
pk2=function(W){var B=Gt,z=hy;return{getFn:function(){return function(G){B.isDisposed||bE(function(){return Jy(function(){return W(G)})},z)!==!0&&G.stopPropagation()}}}};
Rg=function(W){if(typeof W.children==="function")return W.children(),null;W=_.A(W.children);for(var B=W.next();!B.done;B=W.next())B=B.value,B();return null};
AER=function(W){var B;return((B=W.prototype)==null?void 0:B.render)===void 0};
iky=function(W){return W.items.map(W.children)};
Th0=function(W,B,z){z=z===void 0?!1:z;bE(function(){return El0(W,B,z)})};
El0=function(W,B,z){var G=null;CR++;z=(z===void 0?0:z)?vlk:cEk;try{G=z(W,function(){W_(B)}),ow(!1)}catch(Y){throw ow(!0),Y;
}return G===null?W:G};
W_=function(W){if(W!==void 0&&W!==null)if(W instanceof PR)for(var B=nR;Nw()!=null&&n62 in Nw()&&B.contains(Nw());)aw();else if(Array.isArray(W))for(B=_.A(W),W=B.next();!W.done;W=B.next())W_(W.value);else if(W instanceof SN||W instanceof vG||"function"==typeof _.dY&&W instanceof _.dY)nFr(W.toString());else if(_.Ew(W)){if(Nw()!==W){var z,G;B=(G=(z=hy)==null?void 0:z.name)!=null?G:"unknown";throw Error("hc`"+W.tagName+"`"+B);}aw()}else if(W!=null&&W.contentKind===cR||W instanceof UK||itx(W))for(B=T82(W),
B=Array.from(B.childNodes),B=_.A(B),W=B.next();!W.done;W=B.next())nR.appendChild(W.value),aw();else if(uQ(W)&&(W=W.toString()),z=typeof W,z==="boolean"||z==="number"||z==="string")nFr(W);else if(typeof W==="function"){B=nR;var Y=Nw();Y&&(Y._isSignalTextNode||Y._isSafeOrSanitizedHtmlNode)||XM0(B,Y,W);aw()}else if(W.type===iky)W_(W.type(Object.assign({},W.props,{children:W.children[0]})));else{kr.beforeVisit(W);if(typeof W.type==="string"){a:{W.__open||KzD(W.type,W.props.idomKey);Y=nR;for(B in W.props)if(W.props[B]!==
wku){var d=W.props[B];z=BR;z.push(B);z.push(d)}B=iE.attributes;B=B===void 0?B_:B;d=nR;z=qw(d);qj2(d,z,B);OtR(Y,W.props,!0);if((W.props.skip||W.props.skipchildren)&&nR.hasChildNodes())e2x();else{if(W.type==="style"&&sd0(W.children)===null){e2x();B=void 0;break a}W_(W.children)}uQ2();W.__open&&(W.__open=!1);W10(Y,W.props);B=Y}return B}if(W.type===_.AW)W_(W.children);else if(!VgR(W)){B=W;try{JET(B)}catch(E){W=E,(d=iE.handleError)==null||d.call.apply(d,[iE].concat(_.u7(ea(W,(Y=B.type)==null?void 0:Y.TAG_NAME))))}B.__open&&
(uQ2(),B.__open=!1)}}};
gl2=function(W,B){var z;AER(W)?z=new lk(B,W):z=new W(B);z.__type=W;z.__updateContext={nextState:z.state,isForced:!1};return z};
JET=function(W){var B=W.type,z=B.TAG_NAME;if(B===Rg)W.props.children=W.children,B(W.props);else{W.children.length>0&&(W.props.children=W.children);var G;(G=W.props).idomKey||(G.idomKey=B);if(z){var Y=KzD(z,W.props.idomKey);W.__open=!0;var d=Y.__instance}d||(d=gl2(B,W.props),d.props=null,Y&&(Y.__instance=d,d.el=Y));var E;z=((E=d.__updateContext)!=null?E:{nextState:d.state,isForced:!1}).nextState;d.__updateContext=void 0;B.getDerivedStateFromProps&&(z=B.getDerivedStateFromProps(W.props,z));d.props=
W.props;d.state=z;E=function(){var v=d;kr.beforeRender(v);var c=v.render(v.props);kr.afterRender(v,c);c?(v.props.idomKey&&(c.props.idomKey=v.props.idomKey),v=c):v=void 0;if(c=v)if(c.__open=W.__open,v=W_(c),W.__open=c.__open,!B.TAG_NAME)if(v)B.TAG_NAME=v.tagName.toLowerCase(),v.__instance=d,d.el=v;else{var J;if((J=d.hooks)==null?0:J.length){var g;(g=iE.handleError)==null||g.call.apply(g,[iE].concat(_.u7(ea(Error("od")))))}}d.didPatch();kr.didPatch(d)};
(z=d.functionComponent)?z28(z,E,d.props.debugInstance):E()}};
VgR=function(W){var B=W.type;if(!AER(B)||B===Rg||B.componentType===H5)return!1;W.props.children=W.children.length>1?W.children:W.children[0];var z,G=(z=W.props.idomKey)!=null?z:W.type,Y;if(Nw()&&((Y=Nw()[JW])==null?void 0:Y.key)===G){var d=Nw(),E=d[JW];if(!E)throw Error("gc`"+d.tagName);var v;(v=E.updateSignalsFromIdomProps)==null||v.call(E,W.props);tg2(E);return!0}if(s6t.has(B.name))throw v=B.name,B=(E=(d=hy)==null?void 0:d.name)!=null?E:"unknown",Error("fc`"+v+"`"+B);mOu(W.type,W.props,W.children);
W.props.renderedFromIdom=!0;(v=z28(W.type,function(){return HtQ(W.type,W.props)},W.props.debugInstance))&&Pe8(v);
return!0};
ZkT=function(W){for(var B=0;B<tW(W).length;B++)aw()};
tg2=function(W){var B=rEr();if(B)ZkT(B);else for(var z=0;z<W.numNodes;z++)(B=rEr())?ZkT(B):aw()};
rEr=function(){var W;return(W=Nw()[JW])==null?void 0:W.sourceDynamicRange};
Pe8=function(W){W=G52(W);W=Array.isArray(W)?W:[W];W=_.A(W);for(var B=W.next();!B.done;B=W.next())nR.insertBefore(B.value,Nw()),aw()};
zp=function(W,B){var z=Gt,G=function(Y){uE(z,function(){B(Y)})};
window.addEventListener(W,G,void 0);_.fR(function(){window.removeEventListener(W,G,void 0)})};
_.YF=function(W){var B=Gt;return function(z){var G,Y=(G=W.observer)!=null?G:_.dO().resolve(Gp);G=kmR(z);var d=[];W.showOption&&d.push(Y.observe(z,function(){uE(B,function(){W.visibilityCallback(!0,z)})},W.showOption));
W.hideOption&&d.push(Y.observe(z,function(){uE(B,function(){W.visibilityCallback(!1,z)})},W.hideOption));
W.prescanOption&&W.prescanCallback&&d.push(Y.observe(z,function(){uE(B,function(){W.prescanCallback()})},W.prescanOption));
var E;G.visibilityMonitorKeys=((E=G.visibilityMonitorKeys)!=null?E:[]).concat(d)}};
kmR=function(W){var B;return(B=W.polymerController)!=null?B:W};
olX=function(W,B){var z=lKk;return _.w(_.AW,null,rDy(iE.enableLazyTsx,function(){return _.w(CeQ,{id:z,value:W,children:B})},function(){var G=IKt(z,W);
Ay(G);G=_.Y$(G);try{return B()}finally{_.Y$(G)}}))};
CeQ=function(W){var B=W.children;W=IKt(W.id,W.value);Ay(W);W=_.Y$(W);try{return _.w(_.AW,null,Z5(B()))}finally{_.Y$(W)}};
IKt=function(W,B){return Object.assign(Object.create(hrt),{id:W,contextValue:B})};
HkD=function(W){var B,z=Gt;_.KR(function(){var G=_.Y$(z),Y=ik(!B);try{if(B)Th0(B,W.children(),!0);else if(B=Z5(W.children()),!(B instanceof Element))throw Error("pd");}finally{ik(Y),_.Y$(G)}});
return B};
_.Fu8=function(W,B){var z;B=Od(function(){var G=ik(!0);CR++;try{z=tW(W()),ow(!1)}catch(Y){throw ow(!0),Y;}finally{ik(G)}},B===void 0?!1:B);
return[z,B]};
bk0=function(W){var B=new S_y;B.abort(W);return B.signal};
j6x=function(){if(this.aborted){var W;throw(W=this.reason)!=null?W:new DOMException("signal is aborted without reason","AbortError");}};
XkT=function(W){var B=new S_y;W=_.A(W);for(var z=W.next();!z.done;z=W.next())if(z=z.value,z.aborted){B.abort(z.reason);break}else fKR.set(B.signal,B),OkQ.add(z,B.signal);return B.signal};
KuR=function(){for(var W=_.A(OkQ.get(this)),B=W.next();!B.done;B=W.next())fKR.get(B.value).abort(this.reason)};
uB0=function(W){var B=new S_y;setTimeout(function(){B.abort(new DOMException("signal timed out","TimeoutError"))},W);
return B.signal};
mFk=function(W){W=W.buf.charCodeAt(W.pos++);return erv[W]};
dq=function(W){var B=0,z=0;do{var G=mFk(W);B|=(G&31)<<z;z+=5}while(G&32);return B<0?B+4294967296:B};
DFx=function(){var W=!0;W=W===void 0?!1:W;var B=B===void 0?!1:B;var z=z===void 0?{}:z;var G=z.cssRowKey||"",Y=z.combinedSignature||"";!G&&window&&window._F_cssRowKey&&(G=window._F_cssRowKey,!Y&&window._F_combinedSignature&&(Y=window._F_combinedSignature));if(G&&typeof window._F_installCss!=="function")throw Error("zd");var d=z.loaderClass||_.pl,E=DXt("base-js");W=new d(VFr(yDu("",E)),G,Y,W,B);B=z.useCors||E&&E.hasAttribute("crossorigin");E=z.corsMode||E&&E.getAttribute("crossorigin");B&&(W.useCors_=
B);E&&(W.corsMode_=E);z.urlMaxLength&&(W.urlMaxLength=z.urlMaxLength);z.fetchPriority&&(W.fetchPriority=z.fetchPriority);var v=uA();v.JSC$10054_loader_=W;v.setBatchModeEnabled(!0);_.xFx=function(c){return Promise.resolve(v.load(c))}};
q_t=function(W,B,z){Q6r(W,B);W[B][yEt].unshift(z)};
Q6r=function(W,B){if(!W[B]||!W[B][yEt]){var z=W[B],G=z?[z]:[];W[B]=function(){for(var Y=_.A(G),d=Y.next();!d.done;d=Y.next())d.value.apply(this,arguments)};
W[B][yEt]=G}};
nlv=function(W){if(!W)return[];var B=[];W=_.A(W);for(var z=W.next();!z.done;z=W.next())z=z.value,Array.isArray(z)?B.push.apply(B,_.u7(nlv(z))):B.push(z);return B};
_.iY=function(W,B){if(W&&Nhv.test(W)||W==="//")return W;if($Ft===void 0){$Ft=!1;try{var z=new URL("b","http://a");z.pathname="c%20d";$Ft=z.href==="http://a/c%20d"}catch(G){}}B||(B=document.baseURI||window.location.href);if($Ft)try{return(new URL(W,B)).href}catch(G){return W}Aj||(Aj=document.implementation.createHTMLDocument("temp"),Aj.base=Aj.createElement("base"),Aj.head.appendChild(Aj.base),Aj.anchor=Aj.createElement("a"),Aj.body.appendChild(Aj.anchor));Aj.base.href=B;Aj.anchor.href=W;return Aj.anchor.href||
W};
UF2=function(W,B){return W.replace(Luv,function(z,G,Y,d){return G+"'"+_.iY(Y.replace(/["']/g,""),B)+"'"+d})};
Mg8=function(W){return W.substring(0,W.lastIndexOf("/")+1)};
WQv=function(){aKQ=!1;for(var W=Ej.length,B=0;B<W;B++){var z=Ej[B];if(z)try{z()}catch(G){setTimeout(function(){throw G;})}}Ej.splice(0,W);
Rr0+=W};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(W){console.log("["+W.is+"]: registered")};
zp0=function(W){Bnt.push(W)};
Tp=function(W){return GHu[W]||(GHu[W]=W.indexOf("-")<0?W:W.replace(YoD,function(B){return B[1].toUpperCase()}))};
v_=function(W){return GHu[W]||(GHu[W]=W.replace(dgX,"-$1").toLowerCase())};
phu=function(W,B){var z=B.parentInfo&&phu(W,B.parentInfo);if(z)for(W=z.firstChild,z=0;W;W=W.nextSibling){if(B.parentIndex===z++)return W}else return W};
At8=function(W,B){W=W._methodHost||W;return function(z){if(W[B])W[B](z,z.detail);else console.warn("listener method `"+B+"` not defined")}};
c_=function(W){return W.indexOf(".")>=0};
wq=function(W){var B=W.indexOf(".");return B===-1?W:W.slice(0,B)};
iQt=function(W,B){return W.indexOf(B+".")===0};
VH=function(W,B){return B.indexOf(W+".")===0};
Jj=function(W,B,z){return B+z.slice(W.length)};
Ent=function(W,B){return W===B||iQt(W,B)||VH(W,B)};
gq=function(W){if(Array.isArray(W)){for(var B=[],z=0;z<W.length;z++)for(var G=W[z].toString().split("."),Y=0;Y<G.length;Y++)B.push(G[Y]);return B.join(".")}return W};
TnR=function(W){return Array.isArray(W)?gq(W).split("."):W.toString().split(".")};
tj=function(W,B,z){B=TnR(B);for(var G=0;G<B.length;G++){if(!W)return;W=W[B[G]]}z&&(z.path=B.join("."));return W};
vn8=function(W,B,z){var G=TnR(B),Y=G[G.length-1];if(G.length>1){for(B=0;B<G.length-1;B++)if(W=W[G[B]],!W)return;W[Y]=z}else W[B]=z;return G.join(".")};
cty=function(W,B,z){var G=W[B];if(!G)G=W[B]={};else if(!W.hasOwnProperty(B)&&(G=W[B]=Object.create(W[B]),z))for(var Y in G)for(W=G[Y],B=G[Y]=Array(W.length),z=0;z<W.length;z++)B[z]=W[z];return G};
P_=function(W,B,z,G,Y,d){if(B){var E=!1,v=sj++,c;for(c in z){var J=Y?wq(c):c;if(J=B[J])for(var g=0,t=J.length,P=void 0;g<t&&(P=J[g]);g++)P.info&&P.info.lastRun===v||Y&&!whQ(c,P.trigger)||(P.info&&(P.info.lastRun=v),P.fn(W,c,z,G,P.info,Y,d),E=!0)}return E}return!1};
whQ=function(W,B){if(B){var z=B.name;return z==W||!(!B.structured||!iQt(z,W))||!(!B.wildcard||!VH(z,W))}return!0};
VTD=function(W,B,z,G,Y){B=typeof Y.method==="string"?W[Y.method]:Y.method;z=Y.property;B?B.call(W,W.__data[z],G[z]):Y.dynamicFn||console.warn("observer method `"+Y.method+"` not defined")};
JtR=function(W,B,z,G){z={value:z,queueProperty:!0};G&&(z.path=G);(0,_.ZE)(W).dispatchEvent(new CustomEvent(B,{detail:z}))};
gny=function(W,B,z,G,Y,d){d=(G=(d?wq(B):B)!=B?B:null)?tj(W,G):W.__data[B];G&&d===void 0&&(d=z[B]);JtR(W,Y.eventName,d,G)};
tTX=function(W,B,z,G,Y){z=W.__data[B];rq&&(z=rq(z,Y.attrName,"attribute",W));W._propertyToAttribute(B,Y.attrName,z)};
Pr0=function(W){var B=W.constructor.__orderedComputedDeps;if(!B){B=new Map;for(var z=W.__computeEffects,G=skX(W),Y=G.counts,d=G.ready,E=G.total;G=d.shift();)B.set(G,B.size),(G=z[G])&&G.forEach(function(v){v=v.info.methodInfo;--E;--Y[v]===0&&d.push(v)});
E!==0&&console.warn("Computed graph for "+W.localName+" incomplete; circular?");W.constructor.__orderedComputedDeps=B}return B};
skX=function(W){var B=W.__computeInfo,z={};W=W.__computeEffects;var G=[],Y=0,d;for(d in B){var E=B[d];Y+=z[d]=E.args.filter(function(c){return!c.literal}).length+(E.dynamicFn?1:0)}for(var v in W)B[v]||G.push(v);
return{counts:z,ready:G,total:Y}};
rtQ=function(W,B,z,G,Y){B=ZQu(W,B,z,G,Y);if(B===kF)return!1;Y=Y.methodInfo;if(W.__dataHasAccessor&&W.__dataHasAccessor[Y])return W._setPendingProperty(Y,B,!0);W[Y]=B;return!1};
CrT=function(W,B,z,G,Y,d,E){z.bindings=z.bindings||[];G={kind:G,target:Y,parts:d,literal:E,isCompound:d.length!==1};z.bindings.push(G);G.target&&G.kind!="attribute"&&G.kind!="text"&&!G.isCompound&&G.parts[0].mode==="{"&&(z=G.parts[0],d=z.negate,G.listenerEvent=z.event||v_(Y)+"-changed",G.listenerNegate=d);Y=B.nodeInfoList.length;for(z=0;z<G.parts.length;z++){var v=G.parts[z];v.compoundIndex=z;d=W;E=B;var c=G,J=v,g=Y;if(!J.literal)if(c.kind==="attribute"&&c.target[0]==="-")console.warn("Cannot set attribute "+
c.target+' because "-" is not a valid attribute starting character');else for(v=J.dependencies,c={index:g,binding:c,part:J,evaluator:d},J=0;J<v.length;J++)g=v[J],typeof g=="string"&&(g=kHk(g),g.wildcard=!0),d._addTemplatePropertyEffect(E,g.rootProperty,{fn:l02,info:c,trigger:g})}};
l02=function(W,B,z,G,Y,d,E){E=E[Y.index];var v=Y.binding,c=Y.part;d&&c.source&&B.length>c.source.length&&v.kind=="property"&&!v.isCompound&&E.__isPropertyEffectsClient&&E.__dataHasAccessor&&E.__dataHasAccessor[v.target]?(z=z[B],B=Jj(c.source,v.target,B),E._setPendingPropertyOrPath(B,z,!1,!0)&&W._enqueueClient(E)):(B=Y.evaluator._evaluateBinding(W,c,B,z,G,d),B!==kF&&(v.isCompound&&(z=E.__dataCompoundStorage[v.target],z[c.compoundIndex]=B,B=z.join("")),v.kind==="attribute"||v.target!=="textContent"&&
(v.target!=="value"||E.localName!=="input"&&E.localName!=="textarea")||(B=B==void 0?"":B),c=B,rq&&(c=rq(c,v.target,v.kind,E)),v.kind=="attribute"?W._valueToNodeAttribute(E,c,v.target):(v=v.target,E.__isPropertyEffectsClient&&E.__dataHasAccessor&&E.__dataHasAccessor[v]?E.__readOnly&&E.__readOnly[v]||E._setPendingProperty(v,c)&&W._enqueueClient(E):W._setUnmanagedPropertyToNode(E,v,c))))};
I0Q=function(W,B,z){if(z.listenerEvent){var G=z.parts[0];W.addEventListener(z.listenerEvent,function(Y){var d=z.target,E=G.source,v=G.negate,c=Y.detail,J=c&&c.path;J?(E=Jj(d,E,J),Y=c&&c.value):Y=Y.currentTarget[d];B.__readOnly&&B.__readOnly[E]||!B._setPendingPropertyOrPath(E,v?!Y:Y,!0,!!J)||c&&c.queueProperty||B._invalidateProperties()})}};
onk=function(W,B,z,G,Y,d){d=B.static||d&&(typeof d!=="object"||d[B.methodName]);Y={methodName:B.methodName,args:B.args,methodInfo:Y,dynamicFn:d};for(var E=0,v=void 0;E<B.args.length&&(v=B.args[E]);E++)v.literal||W._addPropertyEffect(v.rootProperty,z,{fn:G,info:Y,trigger:v});d&&W._addPropertyEffect(B.methodName,z,{fn:G,info:Y});return Y};
ZQu=function(W,B,z,G,Y){G=W._methodHost||W;var d=G[Y.methodName];if(d)return W=W._marshalArgs(Y.args,B,z),W===kF?kF:d.apply(G,W);Y.dynamicFn||console.warn("method `"+Y.methodName+"` not defined")};
hpr=function(W){for(var B="",z=0;z<W.length;z++)B+=W[z].literal||"";return B};
Sor=function(W){if(W=W.match(/([^\s]+?)\(([\s\S]*)\)/)){var B={methodName:W[1],static:!0,args:HQX};return W[2].trim()?FQT(W[2].replace(/\\,/g,"&comma;").split(","),B):B}return null};
FQT=function(W,B){B.args=W.map(function(z){z=kHk(z);z.literal||(B.static=!1);return z},this);
return B};
kHk=function(W){W=W.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var B={name:W,value:"",literal:!1},z=W[0];z==="-"&&(z=W[1]);z>="0"&&z<="9"&&(z="#");switch(z){case "'":case '"':B.value=W.slice(1,-1);B.literal=!0;break;case "#":B.value=Number(W),B.literal=!0}B.literal||(B.rootProperty=wq(W),B.structured=c_(W),B.structured&&(B.wildcard=W.slice(-2)==".*",B.wildcard&&(B.name=W.slice(0,-2))));return B};
bQR=function(W,B,z){W=tj(W,z);W===void 0&&(W=B[z]);return W};
jk2=function(W,B,z,G){G={indexSplices:G};lY&&!W._overrideLegacyUndefined&&(B.splices=G);W.notifyPath(z+".splices",G);W.notifyPath(z+".length",B.length);lY&&!W._overrideLegacyUndefined&&(G.indexSplices=[])};
Cl=function(W,B,z,G,Y,d){jk2(W,B,z,[{index:G,addedCount:Y,removed:d,object:B,type:"splice"}])};
f08=function(W){W=UF2((W.body?W.body:W).textContent,W.baseURI);var B=document.createElement("style");B.textContent=W;return B};
Xhr=function(W){W=W.trim().split(/\s+/);for(var B=[],z=0;z<W.length;z++)B.push.apply(B,_.u7(OQD(W[z])));return B};
OQD=function(W){var B=Is.import(W);if(!B)return console.warn("Could not find style data in module named",W),[];if(B._styles===void 0){W=[];W.push.apply(W,_.u7(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(B)));var z=B.querySelector("template");z&&W.push.apply(W,_.u7(KQt(z,B.assetpath)));B._styles=W}return B._styles};
KQt=function(W,B){if(!W._styles){for(var z=[],G=W.content.querySelectorAll("style"),Y=0;Y<G.length;Y++){var d=G[Y],E=d.getAttribute("include");E&&z.push.apply(z,_.u7(Xhr(E).filter(function(v,c,J){return J.indexOf(v)===c})));
B&&(d.textContent=UF2(d.textContent,B));z.push(d)}W._styles=z}return W._styles};
uUR=function(W){return(W=Is.import(W))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(W){var B=[];W=W.querySelectorAll("link[rel=import][type~=css]");for(var z=0;z<W.length;z++){var G=W[z];if(G.import){var Y=G.import;if((G=G.hasAttribute("shady-unscoped"))&&!Y._unscopedStyle){var d=f08(Y);d.setAttribute("shady-unscoped","");Y._unscopedStyle=d}else Y._style||(Y._style=f08(Y));B.push(G?Y._unscopedStyle:Y._style)}}return B};
mg2=function(W){W=W.trim().split(/\s+/);for(var B="",z=0;z<W.length;z++)B+=epy(W[z]);return B};
epy=function(W){var B=Is.import(W);if(B&&B._cssText===void 0){var z=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(B),G=B.querySelector("template");G&&(z+=xgy(G,B.assetpath));B._cssText=z||null}B||console.warn("Could not find style data in module named",W);return B&&B._cssText||""};
xgy=function(W,B){var z="";W=KQt(W,B);for(B=0;B<W.length;B++){var G=W[B];G.parentNode&&G.parentNode.removeChild(G);z+=G.textContent}return z};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(W){var B="";W=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W);for(var z=0;z<W.length;z++)B+=W[z].textContent;return B};
FQ=function(W,B){return{index:W,removed:[],addedCount:B}};
QkT=function(W,B,z,G){var Y=0,d=0,E=0,v=0,c=Math.min(B-Y,G-d);if(Y==0&&d==0)a:{for(E=0;E<c;E++)if(W[E]!==z[E])break a;E=c}if(B==W.length&&G==z.length){v=W.length;for(var J=z.length,g=0;g<c-E&&DgD(W[--v],z[--J]);)g++;v=g}Y+=E;d+=E;B-=v;G-=v;if(B-Y==0&&G-d==0)return[];if(Y==B){for(B=FQ(Y,0);d<G;)B.removed.push(z[d++]);return[B]}if(d==G)return[FQ(Y,B-Y)];c=Y;E=d;G=G-E+1;v=B-c+1;B=Array(G);for(J=0;J<G;J++)B[J]=Array(v),B[J][0]=J;for(J=0;J<v;J++)B[0][J]=J;for(J=1;J<G;J++)for(g=1;g<v;g++)if(W[c+g-1]===
z[E+J-1])B[J][g]=B[J-1][g-1];else{var t=B[J-1][g]+1,P=B[J][g-1]+1;B[J][g]=t<P?t:P}c=B.length-1;E=B[0].length-1;G=B[c][E];for(W=[];c>0||E>0;)c==0?(W.push(2),E--):E==0?(W.push(3),c--):(v=B[c-1][E-1],J=B[c-1][E],g=B[c][E-1],t=J<g?J<v?J:v:g<v?g:v,t==v?(v==G?W.push(0):(W.push(1),G=v),c--,E--):t==J?(W.push(3),c--,G=J):(W.push(2),E--,G=g));W.reverse();B=void 0;c=[];for(E=0;E<W.length;E++)switch(W[E]){case 0:B&&(c.push(B),B=void 0);Y++;d++;break;case 1:B||(B=FQ(Y,0));B.addedCount++;Y++;B.removed.push(z[d]);
d++;break;case 2:B||(B=FQ(Y,0));B.addedCount++;Y++;break;case 3:B||(B=FQ(Y,0)),B.removed.push(z[d]),d++}B&&c.push(B);return c};
yt2=function(W,B){return QkT(W,W.length,B,B.length)};
DgD=function(W,B){return W===B};
nnv=function(W){if(W instanceof qot)return W.value;throw Error("Hd`"+W);};
Nn0=function(W,B){for(var z in B)z===null?W.style.removeProperty(z):W.style.setProperty(z,B[z])};
$gD=function(W,B){return(W=window.getComputedStyle(W).getPropertyValue(B))?W.trim():""};
a0X=function(W){requestAnimationFrame(function(){LQt?LQt(W):(Ugt||(Ugt=new Promise(function(B){MTx=B}),document.readyState==="complete"?MTx():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&MTx()})),Ugt.then(function(){W&&W()}))})};
Bb2=function(W){RpQ=W&&W.shimcssproperties?!1:Wwv||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
p8X=function(W){if(!(zZR.indexOf(W)>-1)&&W!=="touchend"&&GCt&&YLR&&diQ)return{passive:!0}};
TbR=function(W){for(var B=AsQ?["click"]:zZR,z=0,G;z<B.length;z++)G=B[z],W?(iVt.length=0,document.addEventListener(G,ETR,!0)):document.removeEventListener(G,ETR,!0)};
Sj=function(W){var B=W.type;return zZR.indexOf(B)>-1?B==="mousemove"?(B=W.buttons===void 0?1:W.buttons,W instanceof window.MouseEvent&&!vTy&&(B=csk[W.which]||0),!!(B&1)):(W.button===void 0?0:W.button)===0:!1};
w8D=function(W){if(W.type==="click"){if(W.detail===0)return!0;var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);if(!B.nodeType||B.nodeType!==Node.ELEMENT_NODE)return!0;B=B.getBoundingClientRect();var z=W.pageX;W=W.pageY;return!(z>=B.left&&z<=B.right&&W>=B.top&&W<=B.bottom)}return!1};
Vmu=function(W,B,z){W.movefn=B;W.upfn=z;document.addEventListener("mousemove",B);document.addEventListener("mouseup",z)};
bY=function(W){document.removeEventListener("mousemove",W.movefn);document.removeEventListener("mouseup",W.upfn);W.movefn=null;W.upfn=null};
JsR=function(W,B){for(var z=document.elementFromPoint(W,B),G=z;G&&G.shadowRoot&&!window.ShadyDOM;){var Y=G;G=G.shadowRoot.elementFromPoint(W,B);if(Y===G)break;G&&(z=G)}return z};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var B=gTD(W);return B.length>0?B[0]:W.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var B=W.type,z=W.currentTarget.__polymerGestures;if(z&&(z=z[B])){if(!W.__polymerGesturesHandled&&(W.__polymerGesturesHandled={},B.slice(0,5)==="touch")){var G=W.changedTouches[0];B==="touchstart"&&W.touches.length===1&&(tm8=G.identifier);if(tm8!==G.identifier)return;GCt||(B==="touchstart"||B==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)}G=
W.__polymerGesturesHandled;if(!G.skip){for(var Y=0,d;Y<jj.length;Y++)d=jj[Y],z[d.name]&&!G[d.name]&&d.flow&&d.flow.start.indexOf(W.type)>-1&&d.reset&&d.reset();for(Y=0;Y<jj.length;Y++)d=jj[Y],z[d.name]&&!G[d.name]&&(G[d.name]=!0,d[B](W))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var B=W.changedTouches[0],z=W.type;if(z==="touchstart")sO8=B.clientX,P0u=B.clientY,ZV0=!1;else if(z==="touchmove"&&!ZV0){ZV0=!0;z="auto";for(var G=gTD(W),Y=0,d;Y<G.length;Y++)if(d=G[Y],d.__polymerGesturesTouchAction){z=d.__polymerGesturesTouchAction;break}G=!1;Y=Math.abs(sO8-B.clientX);B=Math.abs(P0u-B.clientY);W.cancelable&&(z==="none"?G=!0:z==="pan-x"?G=B>Y:z==="pan-y"&&(G=Y>B));G?W.preventDefault():
fl("track")}};
XQ=function(W,B,z){return Oj[B]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,B,z),!0):!1};
ej=function(W,B,z){return Oj[B]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,B,z),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,B,z){var G=Oj[B],Y=G.deps,d=G.name,E=W.__polymerGestures;E||(W.__polymerGestures=E={});for(var v=0,c,J;v<Y.length;v++)c=Y[v],AsQ&&zZR.indexOf(c)>-1&&c!=="click"||((J=E[c])||(E[c]=J={_count:0}),J._count===0&&W.addEventListener(c,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,p8X(c)),J[d]=(J[d]||0)+1,J._count=(J._count||0)+1);W.addEventListener(B,z);G.touchAction&&_.mz(W,G.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,B,z){var G=Oj[B],Y=G.deps;G=G.name;var d=W.__polymerGestures;if(d)for(var E=0,v,c;E<Y.length;E++)v=Y[E],(c=d[v])&&c[G]&&(c[G]=(c[G]||1)-1,c._count=(c._count||1)-1,c._count===0&&W.removeEventListener(v,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,p8X(v)));W.removeEventListener(B,z)};
rsX=function(W){jj.push(W);for(var B=0;B<W.emits.length;B++)Oj[W.emits[B]]=W};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){for(var B=0,z;B<jj.length;B++){z=jj[B];for(var G=0,Y;G<z.emits.length;G++)if(Y=z.emits[G],Y===W)return z}return null};
_.mz=function(W,B){GCt&&W instanceof HTMLElement&&xF.run(function(){W.style.touchAction=B});
W.__polymerGesturesTouchAction=B};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,B,z){B=new Event(B,{bubbles:!0,cancelable:!0,composed:!0});B.detail=z;(0,_.ZE)(W).dispatchEvent(B);B.defaultPrevented&&(W=z.preventer||z.sourceEvent)&&W.preventDefault&&W.preventDefault()};
fl=function(W){W=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W.info&&(W.info.prevent=!0)};
DE=function(W,B,z,G){B&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B,W,{x:z.clientX,y:z.clientY,sourceEvent:z,preventer:G,prevent:function(Y){return fl(Y)}})};
kCx=function(W,B,z){if(W.prevent)return!1;if(W.started)return!0;z=Math.abs(W.y-z);return Math.abs(W.x-B)>=5||z>=5};
lJt=function(W,B,z){if(B){var G=W.moves[W.moves.length-2],Y=W.moves[W.moves.length-1],d=Y.x-W.x,E=Y.y-W.y,v=0;if(G){var c=Y.x-G.x;v=Y.y-G.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B,"track",{state:W.state,x:z.clientX,y:z.clientY,dx:d,dy:E,ddx:c,ddy:v,sourceEvent:z,hover:function(){return JsR(z.clientX,z.clientY)}})}};
IJQ=function(W,B,z){var G=Math.abs(B.clientX-W.x),Y=Math.abs(B.clientY-W.y),d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z||B);!d||C0x[d.localName]&&d.hasAttribute("disabled")||!(isNaN(G)||isNaN(Y)||G<=25&&Y<=25||w8D(B))||W.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d,"tap",{x:B.clientX,y:B.clientY,sourceEvent:B,preventer:z})};
oTR=function(W,B,z,G,Y){var d;Y&&(d=typeof z==="object"&&z!==null)&&(G=W.__dataTemp[B]);G=G!==z&&(G===G||z===z);d&&G&&(W.__dataTemp[B]=z);return G};
HVx=function(){if(QH&&!yH){if(!hZk){hZk=!0;var W=document.createElement("style");W.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(W)}return!0}return!1};
SLR=function(){return FwQ};
bVR=function(W,B){FwQ=W;Object.setPrototypeOf(W,B.prototype);new B;FwQ=null};
jO0=function(W,B){for(var z=0;z<B.length;z++){var G=B[z];if(!!W!=!!G.__hideTemplateChildren__)if(G.nodeType===Node.TEXT_NODE)W?(G.__polymerTextContent__=G.textContent,G.textContent=""):G.textContent=G.__polymerTextContent__;else if(G.localName==="slot")if(W)G.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.ZE)((0,_.ZE)(G).parentNode).replaceChild(G.__polymerReplaced__,G);else{var Y=G.__polymerReplaced__;Y&&(0,_.ZE)((0,_.ZE)(Y).parentNode).replaceChild(G,Y)}else G.style&&(W?(G.__polymerDisplay__=
G.style.display,G.style.display="none"):G.style.display=G.__polymerDisplay__);G.__hideTemplateChildren__=W;G._showHideChildren&&G._showHideChildren(W)}};
fJQ=function(W){return(W=W.__dataHost)&&W._methodHost||W};
KwX=function(W,B,z){var G=z.mutableData?OVx:qA;nl.mixin&&(G=nl.mixin(G));var Y=function(){return G.apply(this,arguments)||this};
_.C(Y,G);Y.prototype.__templatizeOptions=z;Y.prototype._bindTemplate(W);X8t(Y,W,B,z);return Y};
Dix=function(W,B,z,G){var Y=z.forwardHostProp;if(Y&&B.hasHostProps){var d=W.localName=="template",E=B.templatizeTemplateClass;if(!E){if(d){var v=z.mutableData?uPk:eZu;E=function(){return v.apply(this,arguments)||this};
_.C(E,v);E=B.templatizeTemplateClass=E}else{var c=W.constructor;E=function(){return c.apply(this,arguments)||this};
_.C(E,c);E=B.templatizeTemplateClass=E}var J=B.hostProps,g;for(g in J)E.prototype._addPropertyEffect("_host_"+g,E.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:miv(Y)}),E.prototype._createNotifyingProperty("_host_"+g);NA&&G&&xi8(B,z,G)}W.__dataProto&&Object.assign(W.__data,W.__dataProto);if(d)bVR(W,E),W.__dataTemp={},W.__dataPending=null,W.__dataOld=null,W._enableProperties();else{Object.setPrototypeOf(W,E.prototype);B=B.hostProps;for(var t in B)t="_host_"+t,t in W&&(B=W[t],delete W[t],W.__data[t]=
B)}}};
miv=function(W){return function(B,z,G){W.call(B.__templatizeOwner,z.substring(6),G[z])}};
X8t=function(W,B,z,G){var Y=z.hostProps||{},d;for(d in G.instanceProps){delete Y[d];var E=G.notifyInstanceProp;E&&W.prototype._addPropertyEffect(d,W.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:QOx(E)})}if(G.forwardHostProp&&B.__dataHost)for(var v in Y)z.hasHostProps||(z.hasHostProps=!0),W.prototype._addPropertyEffect(v,W.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ysx()})};
QOx=function(W){return function(B,z,G){W.call(B.__templatizeOwner,B,z,G[z])}};
ysx=function(){return function(W,B,z){W.__dataHost._setPendingPropertyOrPath("_host_"+B,z[B],!0,!0)}};
nl=function(W,B,z){if($F&&!fJQ(W))throw Error("Nd");z=z||{};if(W.__templatizeOwner)throw Error("Od");W.__templatizeOwner=B;var G=(B?B.constructor:qA)._parseTemplate(W),Y=G.templatizeInstanceClass;Y||(Y=KwX(W,G,z),G.templatizeInstanceClass=Y);var d=fJQ(W);Dix(W,G,z,d);z=function(){return Y.apply(this,arguments)||this};
_.C(z,Y);z.prototype._methodHost=d;z.prototype.__dataHost=W;z.prototype.__templatizeOwner=B;z.prototype.__hostProps=G.hostProps;return z};
xi8=function(W,B,z){z=z.constructor._properties;W=W.propertyEffects;B=B.instanceProps;for(var G in W)if(!(z[G]||B&&B[G]))for(var Y=W[G],d=0;d<Y.length;d++){var E=Y[d].info.part;if(!E.signature||!E.signature.static){console.warn("Property '"+G+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
qLX=function(W,B){for(var z;B;)if(z=B.__dataHost?B:B.__templatizeInstance)if(z.__dataHost!=W)B=z.__dataHost;else return z;else B=(0,_.ZE)(B).parentNode;return null};
Ll=function(W){return W.localName==="slot"};
nTX=function(){for(var W=Uj.prototype,B="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),z={},G=0;G<B.length;z={method$jscomp$33:void 0},G++)z.method$jscomp$33=B[G],W[z.method$jscomp$33]=function(Y){return function(){return this.node[Y.method$jscomp$33].apply(this.node,arguments)}}(z)};
NbT=function(W,B){for(var z={},G=0;G<B.length;z={name$jscomp$449:void 0},G++)z.name$jscomp$449=B[G],Object.defineProperty(W,z.name$jscomp$449,{get:function(Y){return function(){return this.node[Y.name$jscomp$449]}}(z),
configurable:!0})};
$ix=function(){for(var W=Uj.prototype,B=["textContent","innerHTML","className"],z={},G=0;G<B.length;z={name$jscomp$450:void 0},G++)z.name$jscomp$450=B[G],Object.defineProperty(W,z.name$jscomp$450,{get:function(Y){return function(){return this.node[Y.name$jscomp$450]}}(z),
set:function(Y){return function(d){this.node[Y.name$jscomp$450]=d}}(z),
configurable:!0})};
Lwy=function(){MA=document.documentElement.getAttribute("dir");MA=document.documentElement.getAttribute("dir");for(var W=0;W<as.length;W++){var B=as[W];B.__autoDirOptOut||B.setAttribute("dir",MA)}};
RZ2=function(){Rs=!0;requestAnimationFrame(function(){Rs=!1;UiX(MmD);setTimeout(function(){for(var W=0,B=WM.length;W<B;W++)aJX(WM.shift())})})};
UiX=function(W){for(;W.length;)aJX(W.shift())};
aJX=function(W){var B=W[0],z=W[1];W=W[2];try{z.apply(B,W)}catch(G){setTimeout(function(){throw G;})}};
_.Wku=function(W,B,z){Rs||RZ2();MmD.push([W,B,z])};
_.BM=function(W,B,z){Rs||RZ2();WM.push([W,B,z])};
GID=function(W,B){B=B===void 0?!1:B;if(!BwD||!zCX||!BwD.handlesDynamicScoping)return null;var z=zCX.ScopingShim;if(!z)return null;var G=z.scopeForNode(W),Y=(0,_.ZE)(W).getRootNode(),d=function(E){if((0,_.ZE)(E).getRootNode()===Y){var v=Array.from(BwD.nativeMethods.querySelectorAll.call(E,"*"));v.push(E);for(E=0;E<v.length;E++){var c=v[E];if((0,_.ZE)(c).getRootNode()===Y){var J=z.currentScopeForNode(c);J!==G&&(J!==""&&z.unscopeNode(c,J),z.scopeNode(c,G))}}}};
d(W);return B?(B=new MutationObserver(function(E){for(var v=0;v<E.length;v++)for(var c=E[v],J=0;J<c.addedNodes.length;J++){var g=c.addedNodes[J];g.nodeType===Node.ELEMENT_NODE&&d(g)}}),B.observe(W,{childList:!0,
subtree:!0}),B):null};
Y8t=function(){document.body.removeAttribute("unresolved")};
Eiy=function(W){var B=W=W.replace(dDT,"").replace(pqu,""),z=new Aou;z.start=0;z.end=B.length;for(var G=z,Y=0,d=B.length;Y<d;Y++)if(B[Y]==="{"){G.rules||(G.rules=[]);var E=G,v=E.rules[E.rules.length-1]||null;G=new Aou;G.start=Y+1;G.parent=E;G.previous=v;E.rules.push(G)}else B[Y]==="}"&&(G.end=Y+1,G=G.parent||z);return ifD(z,W)};
ifD=function(W,B){var z=B.substring(W.start,W.end-1);W.parsedCssText=W.cssText=z.trim();W.parent&&(z=B.substring(W.previous?W.previous.end:W.parent.start,W.start-1),z=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(z),z=z.replace(TwR," "),z=z.substring(z.lastIndexOf(";")+1),z=W.parsedSelector=W.selector=z.trim(),W.atRule=z.indexOf("@")===0,W.atRule?z.indexOf("@media")===0?W.type=4:z.match(vik)&&(W.type=7,W.keyframesName=W.selector.split(TwR).pop()):z.indexOf("--")===
0?W.type=1E3:W.type=1);if(z=W.rules)for(var G=0,Y=z.length,d=void 0;G<Y&&(d=z[G]);G++)ifD(d,B);return W};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(W){return W.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var B=arguments[1],z=6-B.length;z--;)B="0"+B;return"\\"+B})};
coy=function(W,B,z){z=z===void 0?"":z;var G="";if(W.cssText||W.rules){var Y=W.rules;if(Y&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Y))for(var d=0,E=Y.length,v=void 0;d<E&&(v=Y[d]);d++)G=coy(v,B,G);else B?B=W.cssText:(B=W.cssText,B=B.replace(wqx,"").replace(V7r,""),B=B.replace(Jov,"").replace(giu,"")),(G=B.trim())&&(G="  "+G+"\n")}G&&(W.selector&&(z+=W.selector+" {\n"),z+=G,W.selector&&(z+="}\n\n"));return z};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(W){W=W[0];return!!W&&!!W.selector&&W.selector.indexOf("--")===0};
sft=function(W){if(W=t7r[W])W._applyShimCurrentVersion=W._applyShimCurrentVersion||0,W._applyShimValidatingVersion=W._applyShimValidatingVersion||0,W._applyShimNextVersion=(W._applyShimNextVersion||0)+1};
PLk=function(W){return W._applyShimCurrentVersion===W._applyShimNextVersion};
rok=function(W){W._applyShimValidatingVersion=W._applyShimNextVersion;W._validating||(W._validating=!0,ZfX.then(function(){W._applyShimCurrentVersion=W._applyShimNextVersion;W._validating=!1}))};
lFR=function(W){if(!W)return"";typeof W==="string"&&(W=Eiy(W));return coy(W,kIu)};
CLR=function(W){!W.__cssRules&&W.textContent&&(W.__cssRules=Eiy(W.textContent));return W.__cssRules||null};
oix=function(W,B,z,G){if(W){var Y=!1,d=W.type;if(G&&d===4){var E=W.selector.match(IFX);E&&(window.matchMedia(E[1]).matches||(Y=!0))}d===1?B(W):z&&d===7?z(W):d===1E3&&(Y=!0);if((W=W.rules)&&!Y)for(Y=0,d=W.length,E=void 0;Y<d&&(E=W[Y]);Y++)oix(E,B,z,G)}};
hCx=function(W,B){var z=W.indexOf("var(");if(z===-1)return B(W,"","","");a:{var G=0;var Y=z+3;for(var d=W.length;Y<d;Y++)if(W[Y]==="(")G++;else if(W[Y]===")"&&--G===0)break a;Y=-1}G=W.substring(z+4,Y);z=W.substring(0,z);W=hCx(W.substring(Y+1),B);d=G.indexOf(",");if(d===-1)return B(z,G.trim(),"",W);Y=G.substring(0,d).trim();G=G.substring(d+1).trim();return B(z,Y,G,W)};
Hfx=function(W){if(z5!==void 0)return z5;if(W.__cssBuild===void 0){var B=W.getAttribute("css-build");if(B)W.__cssBuild=B;else{a:{B=W.localName==="template"?W.content.firstChild:W.firstChild;if(B instanceof Comment&&(B=B.textContent.trim().split(":"),B[0]==="css-build")){B=B[1];break a}B=""}if(B!==""){var z=W.localName==="template"?W.content.firstChild:W.firstChild;z.parentNode.removeChild(z)}W.__cssBuild=B}}return W.__cssBuild||""};
S8R=function(W,B,z,G){for(var Y=B._noAccessors,d=Object.getOwnPropertyNames(B),E=0;E<d.length;E++){var v=d[E];if(!(v in G))if(Y)W[v]=B[v];else{var c=Object.getOwnPropertyDescriptor(B,v);c&&(c.configurable=!0,Object.defineProperty(W,v,c))}}for(var J in FkR)B[J]&&(z[J]=z[J]||[],z[J].push(B[J]))};
bfx=function(W,B,z){B=B||[];for(var G=W.length-1;G>=0;G--){var Y=W[G];Y?Array.isArray(Y)?bfx(Y,B):B.indexOf(Y)<0&&(!z||z.indexOf(Y)<0)&&B.unshift(Y):console.warn("behavior is null, check for missing or 404 import")}return B};
jfX=function(W,B){for(var z in B){var G=W[z],Y=B[z];W[z]=!("value"in Y)&&G&&"value"in G?Object.assign({value:G.value},Y):Y}};
Xqt=function(W,B,z){var G={},Y=function(){return B.apply(this,arguments)||this};
_.C(Y,B);Y._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(E)for(var c=0,J;c<E.length;c++)J=E[c],J.properties&&this.createProperties(J.properties),J.observers&&this.createObservers(J.observers,J.properties);W.properties&&this.createProperties(W.properties);W.observers&&this.createObservers(W.observers,W.properties);this._prepareTemplate()}else B._finalizeClass.call(this)};
Y.prototype.created=function(){B.prototype.created.call(this);var c=G.created;if(c)for(var J=0;J<c.length;J++)c[J].call(this)};
Y.prototype._registered=function(){var c=Y.prototype;if(!c.hasOwnProperty("__hasRegisterFinished")){c.__hasRegisterFinished=!0;B.prototype._registered.call(this);QH&&v(c);c=Object.getPrototypeOf(this);var J=G.beforeRegister;if(J)for(var g=0;g<J.length;g++)J[g].call(c);if(J=G.registered)for(g=0;g<J.length;g++)J[g].call(c)}};
Y.prototype._applyListeners=function(){B.prototype._applyListeners.call(this);var c=G.listeners;if(c)for(var J=0;J<c.length;J++){var g=c[J];if(g)for(var t in g)this._addMethodEventListenerToNode(this,t,g[t])}};
Y.prototype._ensureAttributes=function(){var c=G.hostAttributes;if(c)for(var J=c.length-1;J>=0;J--){var g=c[J],t;for(t in g)this._ensureAttribute(t,g[t])}B.prototype._ensureAttributes.call(this)};
Y.prototype.ready=function(){B.prototype.ready.call(this);var c=G.ready;if(c)for(var J=0;J<c.length;J++)c[J].call(this)};
Y.prototype.attached=function(){B.prototype.attached.call(this);var c=G.attached;if(c)for(var J=0;J<c.length;J++)c[J].call(this)};
Y.prototype.detached=function(){B.prototype.detached.call(this);var c=G.detached;if(c)for(var J=0;J<c.length;J++)c[J].call(this)};
Y.prototype.attributeChanged=function(c,J,g){B.prototype.attributeChanged.call(this);var t=G.attributeChanged;if(t)for(var P=0;P<t.length;P++)t[P].call(this,c,J,g)};
_.G5.Object.defineProperties(Y,{properties:{configurable:!0,enumerable:!0,get:function(){var c={};if(E)for(var J=0;J<E.length;J++)jfX(c,E[J].properties);jfX(c,W.properties);return c}},
observers:{configurable:!0,enumerable:!0,get:function(){var c=[];if(E)for(var J=0,g;J<E.length;J++)g=E[J],g.observers&&(c=c.concat(g.observers));W.observers&&(c=c.concat(W.observers));return c}}});
if(z){Array.isArray(z)||(z=[z]);var d=B.prototype.behaviors;var E=bfx(z,null,d);Y.prototype.behaviors=d?d.concat(z):E}var v=function(c){if(E)for(var J=E,g=0;g<J.length;g++)S8R(c,J[g],G,fFR);S8R(c,W,G,Ofu)};
QH||v(Y.prototype);Y.generatedFrom=W;return Y};
mD2=function(W){var B=typeof W!=="string"?W:{is:W,notifyObserversOnUndefined:!0};B.fastInit===void 0&&(B.fastInit=!0);return function(z){if(!B.disableInheritanceCheck&&Object.getPrototypeOf(z.prototype).constructor!==_.Y6)throw Error("Sd");var G=z.prototype;G.is=B.is;q_t(G,"created",function(){this.hostElement=this;this.polymerController=this});
Kk0(G,z,B.fastInit);B.notifyObserversOnUndefined&&(G._overrideLegacyUndefined=!0);if(uVk)for(var Y=_.A(Object.getOwnPropertyNames(G)),d=Y.next();!d.done;d=Y.next()){d=d.value;var E=Object.getOwnPropertyDescriptor(G,d);E.enumerable===!1&&(E.enumerable=!0,Object.defineProperty(G,d,E))}if("template"in z)var v=function(){return z.template};
else B.template!==void 0&&(v=B.template);if(v!==void 0){var c;Object.defineProperty(G,"_template",{get:function(){c===void 0&&(c=v());return c},
set:function(J){c=J},
configurable:!0,enumerable:!0})}Polymer(G);z[eCQ]=G}};
xDy=function(W){W=W===void 0?{}:W;W.fastInit===void 0&&(W.fastInit=!0);return function(B){if(!W.disableInheritanceCheck&&Object.getPrototypeOf(B.prototype).constructor!==d8)throw Error("Td");Kk0(B.prototype,B,W.fastInit)}};
Kk0=function(W,B,z){z=z===void 0?!1:z;DDy(B);z?q_t(W,"created",function(){this.disableEnforceFastDefaultValuesCheck||Qfv(B,this)}):q_t(W,"ready",function(){for(var G={},Y=_.A(nlv(this.behaviors)),d=Y.next();!d.done;d=Y.next())d=d.value,d.properties&&Object.assign(G,you(this,d.properties));
Object.assign(G,you(this,this.properties));Qfv(B,this);Y=_.A(Object.keys(G));for(d=Y.next();!d.done;d=Y.next())d=d.value,this[d]=G[d]})};
Qfv=function(W,B){if(uVk){W=new W;for(var z=_.A(Object.getOwnPropertyNames(W)),G=z.next();!G.done;G=z.next())G=G.value,B[G]=W[G];for(z=B;z&&z!==Object.prototype;z=Object.getPrototypeOf(z)){G=_.A(Object.getOwnPropertyNames(z));for(var Y=G.next();!Y.done;Y=G.next())Y=Y.value,W.hasOwnProperty(Y)||Object.defineProperty(W,Y,q8D(B,Y))}}else W.apply(B)};
q8D=function(W,B){return{get:function(){var z=W[B];return z instanceof Function?z.bind(W):z},
set:function(z){W[B]=z}}};
you=function(W,B){if(!B)return{};for(var z={},G=_.A(Object.keys(B)),Y=G.next();!Y.done;Y=G.next())if(Y=Y.value,!B[Y].readOnly){var d=W[Y];d!==void 0&&(z[Y]=d)}return z};
DDy=function(W){var B=new W;W=W.prototype.properties||{};for(var z=_.A(Object.keys(W)),G=z.next();!G.done;G=z.next())if(G=G.value,B.hasOwnProperty(G)){var Y=W[G];typeof Y==="function"&&(W[G]=Y={type:Y});B[G]!=null&&Y.type===Object&&(Y.type=niu(B[G].constructor))}};
niu=function(W){for(var B=_.A(NwR),z=B.next();!z.done;z=B.next())if(z=z.value,W===z)return z;return Object};
$Dv=function(W){return function(B,z){B.behaviors=B.behaviors||[];B.behaviors.push(W||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",B,z).prototype:void 0));Object.defineProperty(B,z,{get:function(){return this},
enumerable:!0,configurable:!0})}};
LkD=function(W){W=W===void 0?{}:W;return function(B,z){B.properties=B.properties||{};W.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?W.type=niu(Reflect.getMetadata("design:type",B,z)):W.type=String);var G=W,Y=B.properties[z];B.properties[z]=Y?Object.assign({},Y,G):G}};
UDt=function(W){return function(B,z){B.listeners=B.listeners||{};B.listeners[W]=z}};
M7u=function(){var W=_.nm.apply(0,arguments);if(W.length===0)throw Error("Ud");return function(B,z){B.observers=B.observers||[];B.observers.push(z+"("+W.join(",")+")")}};
aFT=function(){var W=_.nm.apply(0,arguments);return function(B,z,G){var Y=Object.getOwnPropertyDescriptor(B,z).get,d="__compute__"+z;Object.defineProperty(B,d,{value:Y,enumerable:!0});B.properties=B.properties||{};Y=B.properties[z];Y||(Y={},B.properties[z]=Y);Y.computed=d+"("+W.join(",")+")";G.get=void 0}};
_.pt=function(W,B,z){_.bA.call(this);this.JSC$11316_id_=null;this.usingListeners_=!1;this.JSC$11316_listener_=W;this.handler_=z;this.JSC$11316_win_=B||window;this.callback_=(0,_.jk)(this.JSC$11318_doAction_,this)};
Az=function(W){this.range_=W};
iy=function(W){this.range_=W};
vM=function(W,B,z){_.bA.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=W;this.scrollTimer_=new _.Eh(50);this.JSC$11395_eventHandler_=new _.T5(this);this.scrollDelta_=new _.De;this.containerIsActuallyContent_=W.tagName==="BODY"||W.tagName==="HTML";this.containerBounds_=RCQ(W);this.containerIsActuallyContent_&&(W=_.Fi(),this.containerBounds_.height=W.height,this.containerBounds_.width=W.width);this.margin_=B||0;if(B){if(B=this.containerBounds_.clone(),W=this.margin_){var G=
Math.min(W,B.height*.25);B.top+=G;B.height-=2*G;W=Math.min(W,B.width*.25);B.left+=W;B.width-=2*W}}else B=this.containerBounds_;this.scrollBounds_=B;z||this.JSC$11395_eventHandler_.listen(_.yY(this.containerNode_),"mousemove",this.JSC$11397_onMouseMove);this.JSC$11395_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11397_onTick_)};
_.cM=function(W){this.mechanism=W};
w8=function(W,B){this.JSC$11493_key_=W;this.JSC$11493_value_=B};
zWv=function(W){if(W>=55296&&W<=57343||W>1114111)return"\ufffd";W in WaX&&(W=WaX[W]);var B="";W>65535&&(W-=65536,B+=String.fromCharCode(W>>>10&1023|55296),W=56320|W&1023);return B+=String.fromCharCode(W)};
GEt=function(W,B){return W<B?1:-1};
dIx=function(){return function(W){return W.charAt(1)==="#"?W.charAt(2)==="X"||W.charAt(2)==="x"?zWv(parseInt(W.substr(3),16)):zWv(parseInt(W.substr(2),10)):YZv[W.slice(1,-1)]}};
iak=function(W){return W.slice(1,W.length-1).trim().replace(poR,function(B){return AG2[B]||" "})};
VK=function(W){return W===32||W===9};
Jz=function(W,B){return B<W.length?W.charCodeAt(B):-1};
EX2=function(W){for(;W;){if(W._lastLineBlank)return!0;var B=W.type;if(B==="list"||B==="item")W=W._lastChild;else break}return!1};
g8=function(W){if(TLX.test(W)){var B=1,z=0,G=0;for(W[z]=="|"&&z++;z<W.length;){switch(W[z]){case "|":G=1;break;case " ":break;case "\t":break;default:G&&(G=0,B++)}z++}return vXR.test(W)?-B:B}return 0};
cG8=function(W){return W=="table"||W=="row"||W=="cell"};
wok=function(){return new tz("document",[[1,1],[0,0]])};
V1Q=function(){};
sh=function(){var W={safe:!1};W=W||{};W.softbreak=W.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=W};
PKt=function(W,B){var z="";if(W)if(W=W.toLowerCase(),W===" "||JGx.test(W))z="space";else if(gXQ.test(W))z="esc";else if(W.length==1){if(!B||t1Q.test(W))z=W}else z=srt.test(W)?W.replace("arrow",""):W=="multiply"?"*":W;return z};
lkt=function(W,B){var z=W.hasModifiers;if(B.key)z=PKt(B.key,z);else if(B.detail&&B.detail.key)z=PKt(B.detail.key,z);else{z=B.keyIdentifier;var G="";z&&(z in Zak?G=Zak[z]:rGt.test(z)?(z=parseInt(z.replace("U+","0x"),16),G=String.fromCharCode(z).toLowerCase()):G=z.toLowerCase());(z=G)||(z=B.keyCode,G="",Number(z)&&(z>=65&&z<=90?G=String.fromCharCode(32+z):z>=112&&z<=123?G="f"+(z-112+1):z>=48&&z<=57?G=String(z-48):z>=96&&z<=105?G=String(z-96):G=kE0[z]),z=G);z=z||""}return z===W.key&&(!W.hasModifiers||
!!B.shiftKey===!!W.shiftKey&&!!B.ctrlKey===!!W.ctrlKey&&!!B.altKey===!!W.altKey&&!!B.metaKey===!!W.metaKey)};
Ikt=function(W){return W.length===1?{combo:W,key:W,event:"keydown"}:W.split("+").reduce(function(B,z){var G=z.split(":");z=G[0];G=G[1];z in CKQ?(B[CKQ[z]]=!0,B.hasModifiers=!0):(B.key=z,B.event=G||"keydown");return B},{combo:W.split(":").shift()})};
oX2=function(W){return W.trim().split(" ").map(function(B){return Ikt(B)})};
hWT=function(W,B){if(W&&W.fn){var z=W.fn;W.fn=function(){try{z.apply(this,arguments)}catch(G){if(G instanceof PM)console.warn("Argument '"+G.arg+"'"+(B?" for method '"+B+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw G;}}}return W};
Hax=function(){var W=_.nm.apply(0,arguments);return W.length===0?function(B){return B}:W.length===1?W[0]:W.reduce(function(B,z){return function(){return B(z.apply(null,_.u7(_.nm.apply(0,arguments))))}})};
Fa8=function(){var W=_.nm.apply(0,arguments);return function(B){return function(z,G){z=B(z,G);var Y=function(){throw Error("Ee");},d={getState:z.getState,
dispatch:function(E){return Y.apply(null,[E].concat(_.u7(_.nm.apply(1,arguments))))}};
G=W.map(function(E){return E(d)});
Y=Hax.apply(null,_.u7(G))(z.dispatch);return Object.assign({},z,{dispatch:Y})}}};
jrt=function(W){Object.keys(W).forEach(function(B){var z=W[B];if(typeof z(void 0,{type:SZX})==="undefined")throw Error("Fe`"+B);if(typeof z(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+bar()})==="undefined")throw Error("Ge`"+B+"`"+SZX);})};
Z2=function(W){for(var B=Object.keys(W),z={},G=0;G<B.length;G++){var Y=B[G];typeof W[Y]==="function"&&(z[Y]=W[Y])}var d=Object.keys(z);try{jrt(z)}catch(v){var E=v}return function(v,c){v=v===void 0?{}:v;if(E)throw E;for(var J=!1,g={},t=0;t<d.length;t++){var P=d[t],Z=v[P],l=(0,z[P])(Z,c);if(typeof l==="undefined")throw v=c&&c.type,Error("He`"+(v?'"'+String(v)+'"':"(unknown type)")+"`"+P);g[P]=l;J=J||l!==Z}return(J=J||d.length!==Object.keys(v).length)?g:v}};
fkX=function(W,B,z){function G(){if(g)throw Error("Ie");return v}
function Y(Z){if(typeof Z!=="function")throw Error("Je`"+typeof Z);if(g)throw Error("Ke");var l=!0;J===c&&(J=c.slice());J.push(Z);return function(){if(l){if(g)throw Error("Le");l=!1;J===c&&(J=c.slice());var b=J.indexOf(Z);J.splice(b,1);c=null}}}
function d(Z){if(typeof Z!=="object"||Z===null)var l=!1;else{for(l=Z;Object.getPrototypeOf(l)!==null;)l=Object.getPrototypeOf(l);l=Object.getPrototypeOf(Z)===l}if(!l)throw Error("Me`"+typeof Z);if(typeof Z.type==="undefined")throw Error("Ne");if(g)throw Error("Oe");try{g=!0,v=E(v,Z)}finally{g=!1}l=c=J;for(var b=0;b<l.length;b++)(0,l[b])();return Z}
if(typeof B==="function"&&typeof z==="function"||typeof z==="function"&&typeof arguments[3]==="function")throw Error("Pe");typeof B==="function"&&typeof z==="undefined"&&(z=B,B=void 0);if(typeof z!=="undefined"){if(typeof z!=="function")throw Error("Qe`"+typeof z);return z(fkX)(W,B)}if(typeof W!=="function")throw Error("Re`"+typeof W);var E=W,v=B,c=[],J=c,g=!1;d({type:SZX});var t={},P=(t.dispatch=d,t.subscribe=Y,t.getState=G,t.replaceReducer=function(Z){if(typeof Z!=="function")throw Error("Se`"+
typeof Z);E=Z;d({type:Oau});return P},t[XoT]=function(){var Z={};
return Z.subscribe=function(l){function b(){l.next&&l.next(G())}
if(typeof l!=="object"||l===null)throw new TypeError("Te`"+typeof l);b();return{unsubscribe:Y(b)}},Z[XoT]=function(){return this},Z},t);
return P};
Kat=function(W){function B(){Y&&(Y=!1,W());d&&G()}
function z(){requestAnimationFrame(B)}
function G(){var v=Date.now();if(Y){if(v-E<2)return;d=!0}else Y=!0,d=!1,setTimeout(z,20);E=v}
var Y=!1,d=!1,E=0;return G};
r8=function(W){return typeof W==="number"?W:parseFloat(W)||0};
unQ=function(W){return _.nm.apply(1,arguments).reduce(function(B,z){return B+r8(W["border-"+z+"-width"])},0)};
_.I=function(W,B){B=R3(MZ(B));W.innerHTML=B};
xIy=function(W){var B=eWX;B||(B=mIT(),B=eWX=_.mP.transpose(B));B=B[W];return typeof B==="string"?B:_.k6(W)};
DIv=function(W){W=String(W).toLowerCase();var B=mIT()[W];return typeof B==="string"?B:_.ly(W)};
Qr2=function(W){W=W.toLowerCase();W=mIT()[W];return typeof W==="string"?W:null};
mIT=function(){if(!yGD){for(var W=Object.assign({},qZu),B=_.A(nXD),z=B.next();!z.done;z=B.next())z=z.value,W[z.toLowerCase()]=z;yGD=W}return yGD};
Lax=function(W,B){var z=window.customElements;return z&&z.get(W)||NLu[W]===!0?2:B.name==="HTMLUnknownElement"?1:B.name==="HTMLElement"&&$I8.test(W)?3:0};
akk=function(W,B){switch(B){case "innerHTML":return UIy(W)===1?2:null;case "textContent":return W=UIy(W),W===1||W===6?1:null;default:var z,G;return(G=(z=M1T[W.localName])==null?void 0:z[B])!=null?G:null}};
UIy=function(W){var B=W.localName,z=Lax(B,W.constructor);switch(z){case 0:case 1:return RWk(B,W);case 3:case 2:return 1;default:_.qT(z,"got an unknown element classification")}};
RWk=function(W,B){var z=Object.hasOwnProperty.call(WLk,W)?WLk[W]:null;return z!==null?z:Object.hasOwnProperty.call(Bdu,W)&&B instanceof SVGElement?Bdu[W]:null};
zAt=function(W,B){return B};
Y5y=function(W){return(W=W.split(G2v,2))?{url:W[0],metadata:W[1]}:null};
prQ=function(W){var B=String(W.url).replace(dex,encodeURIComponent);if(W=W.metadata){dex.lastIndex=0;if(dex.test(W))return null;B+=" "+W}return B};
TdR=function(W){function B(J){var g=J.localName;if(!J.getAttribute("is")&&Lax(g,J.constructor)===2){var t;return(t=c)!=null?t:c=document.createElement("polyresinuncustomized")}(J=v[g])||(J=v[g]=document.createElement(g));return J}
var z=W.reportHandler||void 0,G=W.safeTypesBridge||A4x,Y=/^$/;if(W=W.allowedIdentifierPrefixes){W=_.A(W);for(var d=W.next();!d.done;d=W.next())Y=new RegExp(Y.source+"|^"+_.i_T(d.value))}z&&z(!1,"initResin",null);var E=Ec8(Y,G,z),v={},c=null;return function(J,g,t){var P=J.nodeType;if(P!==Node.ELEMENT_NODE){if(P===Node.TEXT_NODE){g=J.parentElement;t=!g;if(g&&g.nodeType===Node.ELEMENT_NODE){P=g.localName;var Z=Lax(P,g.constructor);switch(Z){case 0:case 1:g=RWk(P,g);t=g===1||g===6;break;case 3:case 2:t=
!0;break;default:_.qT(Z,"got an unknown element classification")}}if(t)return function(K){return""+G(K,"STRING",K)}}return function(K){if(!K&&K!==document.all)return K;
z&&z(!0,"Failed to sanitize "+(J.parentElement&&J.parentElement.nodeName)+" #text node to value "+K,J.parentElement);return Ct}}var l=J.localName;
P=B(J);var b=null;switch(t){case "attribute":if(DIv(g)in P)break;return function(K){return K};
case "property":if(g in P){b=akk(P,g);break}if((Z=Qr2(g))&&Z in P)break;return function(K){return K};
default:_.qT(t,"got an unknown resin type, expected either 'property' or 'attribute'")}var O=t==="attribute"?g.toLowerCase():xIy(g);b||(b=Vju(l,O,function(K){var e=J.getAttribute(K);return!e||/[\[\{]/.test(K)?null:e}));
return function(K){var e=Id,a=null;if(!K&&K!==document.all)return K;if(b!=null){var q=E[b],n=q.safeType;a=q.safeReplacement;n&&(e=G(K,n,Id));e===Id&&(q.filterString?(e=String(G(K,"STRING",K)),e=q.filterString(l,O,e)):q.filterRaw&&(e=q.filterRaw(l,O,K,J)),e===a&&(e=Id))}e===Id&&(e=a||Ct,z&&z(!0,"Failed to sanitize attribute of <"+l+">: <"+l+" "+O+'="'+K+'">',J));return e}}};
Ec8=function(W,B,z){return[,{filterRaw:function(G,Y,d){return d},
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:vcr,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:vcr,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Ct,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:c4Q,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(G,Y,d){d=
String(d).toLowerCase();return tjQ(G,Y,d)?d:Ct},
safeReplacement:Ct,safeType:void 0},,{filterRaw:void 0,filterString:function(G,Y,d){return W.test(d)?d:Ct},
safeReplacement:Ct,safeType:"CONSTANT"},{filterRaw:function(G,Y,d,E){if(typeof d==="string")var v=(v=d.match(wrr))?v.map(Y5y).filter(Boolean):[];else if(Array.isArray(d))v=d;else return vcr;var c=v;v=[];var J=[],g={};if(Array.isArray(c))for(var t=0,P=c.length;t<P;++t){var Z=c[t],l=Z&&Z.url;if(l){var b=B(l,"URL",g);if(b){var O=b!==g;(O?v:J).push({url:O?b:l,metadata:Z.metadata})}}}else J.push(c);c=J.length?JSON.stringify(J):null;J=Id;if(v.length){if(!Array.isArray(v))throw Error();J=v.map(prQ).filter(Boolean).join(" , ")||
Id}c&&z&&z(!0,"Failed to sanitize attribute value of <"+G+">: <"+G+" "+Y+'="'+d+'">: '+c,E);return J===Id?vcr:J},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Vrr=function(W){var B=TdR(W);return function(z,G,Y,d){return d||d===document.all?B(z,G,Y)(d):d}};
od=function(W,B){function z(){function Y(v,c,J){for(c=Reflect.getMetadata("parameters",v)||[];c.length<=J;)c.push(null);c[J]=c[J]||[];c[J].push(E);Reflect.defineMetadata(c,v);return v}
var d=_.nm.apply(0,arguments);if(this instanceof z)return G.apply(this,d),this;var E=new (Function.prototype.bind.apply(z,[null].concat(_.u7(d))));Y.annotation=E;return Y}
var G=J4k(B);z.prototype.toString=function(){return"@"+W};
return z.annotationCls=z};
J4k=function(W){return function(){var B=_.nm.apply(0,arguments),z=this;W.forEach(function(G,Y){Y=B[Y];if(Array.isArray(G))z[G[0]]=Y&&Y!==void 0?Y:G[1];else for(var d in G)z[d]=Y&&Y[d]!==void 0?Y[d]:G[d]})}};
gcu=function(W){return W!==void 0&&W!==null};
hz=function(W){if(typeof W==="string")return W;if(W===void 0||W===null)return""+W;if(W.overriddenName)return W.overriddenName;if(W.name)return W.name;W=W.toString();var B=W.indexOf("\n");return B===-1?W:W.substring(0,B)};
trD=function(W){W.__forward_ref__=trD;W.toString=function(){return hz(this())};
return W};
HM=function(W){return typeof W==="function"&&W.hasOwnProperty("__forward_ref__")&&W.__forward_ref__===trD?W():W};
sAv=function(W){return W?W.map(function(B){return new (Function.prototype.bind.apply(B.type.annotationCls,[null].concat(_.u7(B.args?B.args:[]))))}):[]};
P_0=function(W){for(var B=[],z=0;z<W.length;++z){if(B.indexOf(W[z])>-1){B.push(W[z]);break}B.push(W[z])}return B};
Z_D=function(W){return W.length>1?" ("+P_0(W.slice().reverse()).map(function(B){return hz(B.token)}).join(" -> ")+")":""};
k2X=function(W,B,z,G){if(G){var Y=Error("$e``"+(G instanceof Error?G.message:G));Y.ngOriginalError=G}else Y=Error();Y.addKey=r4t;Y.keys=[B];Y.injectors=[W];Y.constructResolvingMessage=z;Y.message=Y.constructResolvingMessage();Y.ngOriginalError=G;return Y};
r4t=function(W,B){this.injectors.push(W);this.keys.push(B);this.message=this.constructResolvingMessage()};
lUk=function(W,B){return k2X(W,B,function(){return"No provider for "+hz(this.keys[0].token)+"!"+Z_D(this.keys)})};
C_v=function(W,B){return k2X(W,B,function(){return"Cannot instantiate cyclic dependency!"+Z_D(this.keys)})};
IUX=function(W,B,z){return k2X(W,z,function(){var G=hz(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+G+"!"+Z_D(this.keys)+"."},B)};
ocQ=function(W,B){for(var z=[],G=0,Y=B.length;G<Y;G++){var d=B[G];d&&d.length!=0?z.push(d.map(hz).join(" ")):z.push("?")}return Error("df`"+hz(W)+"`"+z.join(", ")+"`"+hz(W))};
fUT=function(W){var B=void 0,z=void 0;if(W&&W.useClass!==void 0){B=W.useClass;var G=HM(W.useClass);var Y=hAR.factory(G);G=H_Q(G)}else W&&W.useExisting!==void 0?(Y=function(d){return d},G=[FLQ(FR.get(HM(W.useExisting)))]):W&&W.useFactory!==void 0?(Y=W.useFactory,G=S5t(W.useFactory,W.deps)):(z=W.useValue,Y=function(){return W.useValue},G=b_D);
return new jAr(Y,G,B,z)};
XrD=function(W){return new O_k(FR.get(HM(W.provide)),[fUT(W)],W.multi)};
uWk=function(W){W=KLy(W,[]).map(XrD);for(var B=new Map,z=0;z<W.length;z++){var G=W[z],Y=B.get(G.key.id);if(Y){if(G.multiProvider!==Y.multiProvider)throw Error("ff`"+Y+"`"+G);if(G.multiProvider)for(var d=0;d<G.resolvedFactories.length;d++)Y.resolvedFactories.push(G.resolvedFactories[d]);else B.set(G.key.id,G)}else Y=void 0,G.multiProvider?Y=new O_k(G.key,G.resolvedFactories.slice(),G.multiProvider):Y=G,B.set(G.key.id,Y)}return Array.from(B.values())};
KLy=function(W,B){W.forEach(function(z){if(z instanceof eAy)B.push({provide:z,useClass:z});else if(z&&typeof z=="object"&&z.provide!==void 0)B.push(z);else if(z instanceof Array)KLy(z,B);else throw Error("cf`"+z);});
return B};
S5t=function(W,B){if(B){var z=B.map(function(G){return[G]});
return B.map(function(G){return meQ(W,G,z)})}return H_Q(W)};
H_Q=function(W){var B=hAR.parameters(W);if(!B)return[];if(B.some(function(z){return z==null}))throw ocQ(W,B);
return B.map(function(z){return meQ(W,z,B)})};
meQ=function(W,B,z){var G=null,Y=!1;if(!Array.isArray(B))return B instanceof xek?DeT(B.token,Y,null):DeT(B,Y,null);for(var d=null,E=0;E<B.length;++E){var v=B[E];if(v instanceof eAy)G=v;else if(v instanceof xek)G=v.token;else if(v instanceof QAQ)Y=!0;else if(v instanceof y4t||v instanceof q5v)d=v}G=HM(G);if(G!=null)return DeT(G,Y,d);throw ocQ(W,z);};
DeT=function(W,B,z){return new ncR(FR.get(HM(W)),B,z)};
Ndr=function(W,B){for(var z=Array(W.providers.length),G=0;G<W.providers.length;++G){var Y=G;if(G<0||G>=W.providers.length)throw Error("ef`"+G);z[Y]=B(W.providers[G])}return z};
$eQ=function(W){return typeof W==="function"&&hAR.parameters(W).every(function(B){return!!B})};
MrR=function(W){var B=LLt;UeR.get(W)||UeR.set(W,new B);return UeR.get(W)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(W)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(W)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W,B){var z,G;if(W.contains(B))return!0;W=_.St(W).querySelectorAll("content,slot");for(z=0;z<W.length;++z){var Y=_.St(W[z]).getDistributedNodes();for(G=0;G<Y.length;++G)if(Y[G].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Y[G],B))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){W.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W)&&W.preventDefault();W.targetTouches&&(W=W.targetTouches[0],aU8=W.pageX,RAr=W.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 W=0,B=by.length;W<B;W++)document.addEventListener(by[W],_._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 W=0,B=by.length;W<B;W++)document.removeEventListener(by[W],_._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(W){var B=_.St(W).rootTarget;W.type!=="touchmove"&&W7Q!==B&&(W7Q=B,BRR=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.St(W).path));if(!BRR.length)return!0;if(W.type==="touchstart")return!1;W=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(BRR,W.deltaX,W.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){for(var B=[],z=W.indexOf(zQr),G=0;G<=z;G++)if(W[G].nodeType===Node.ELEMENT_NODE){var Y=W[G],d=Y.style;d.overflow!=="scroll"&&d.overflow!=="auto"&&(d=window.getComputedStyle(Y));d.overflow!=="scroll"&&d.overflow!=="auto"||B.push(Y)}return B};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W,B,z){if(B||z)for(var G=Math.abs(z)>=Math.abs(B),Y=0;Y<W.length;Y++){var d=W[Y];if(G?z<0?d.scrollTop>0:d.scrollTop<d.scrollHeight-d.clientHeight:B<0?d.scrollLeft>0:d.scrollLeft<d.scrollWidth-d.clientWidth)return d}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){var B={deltaX:W.deltaX,deltaY:W.deltaY};"deltaX"in W||("wheelDeltaX"in W&&"wheelDeltaY"in W?(B.deltaX=-W.wheelDeltaX,B.deltaY=-W.wheelDeltaY):"wheelDelta"in W?(B.deltaX=0,B.deltaY=-W.wheelDelta):"axis"in W?(B.deltaX=W.axis===1?W.detail:0,B.deltaY=W.axis===2?W.detail:0):W.targetTouches&&(W=W.targetTouches[0],B.deltaX=aU8-W.pageX,B.deltaY=RAr-W.pageY));return B};
Guy=function(W){this.element=W;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
dr8=function(W){this.element=W;this.color=window.getComputedStyle(W).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");_.St(this.waveContainer).appendChild(this.wave);YTQ(this)};
jt=function(W,B){for(var z in W)if(z.toLowerCase()===B.toLowerCase())return W[z]};
p1R=function(W,B){for(var z in W)if(z.toLowerCase()===B.toLowerCase()){delete W[z];break}};
iwr=function(W){W=_.mP.clone(W);for(var B=0;B<A1v.length;++B){var z=A1v[B],G=jt(W,z);G&&(W["X-Goog-Upload-Header-"+z]=G,p1R(W,z))}return W};
EL2=function(W){W=_.mP.clone(W);p1R(W,"X-Goog-Upload-Status")};
vLr=function(W){return TRu.some(function(B){return B.test(W)})};
J1y=function(W,B){var z;var G=(z=W.formContent)==null?void 0:z.locale;z=G==null?void 0:G.split("-")[0];G=G&&c1D.includes(G)?G:z&&c1D.includes(z)?z:void 0;G=(G!=null?G:"en").replaceAll("-","_").toLowerCase();var Y;W=((Y=W.initializationData)==null?0:Y.useNightlyRelease)?"nightly":"live";var d;return(B==null?0:(d=B.getEnableAlohaBinarySplit)==null?0:d.call(B))?_.sY(w1r,W):_.sY(V0Q,W,G)};
s1k=function(W,B,z,G){if(gLy&&t0r===B)return gLy;t0r=B;var Y=J1y(W,G);return gLy=B.feedbackV2GlobalObject?Promise.resolve(B.feedbackV2GlobalObject):new Promise(function(d,E){var v=_.I0("SCRIPT");_.pN(v,Y);v.onload=function(){B.feedbackV2GlobalObject?d(B.feedbackV2GlobalObject):E(Error("jf"))};
v.onerror=function(){E(Error("kf`"+Y.toString()))};
z.body.appendChild(v)})};
r1k=function(W,B,z,G){if(PNQ&&ZwT===B)return PNQ;ZwT=B;var Y=J1y(W,G);return PNQ=B.feedbackV2GlobalObject?Promise.resolve(B.feedbackV2GlobalObject):new Promise(function(d,E){var v=_.I0("SCRIPT");_.pN(v,Y);v.onload=function(){B.feedbackV2GlobalObject?d(B.feedbackV2GlobalObject):E(Error("jf"))};
v.onerror=function(){E(Error("kf`"+Y.toString()))};
z.body.appendChild(v)})};
kux=function(W,B,z,G,Y){Y=Y===void 0?!0:Y;var d,E,v,c,J;return _.T(function(g){switch(g.nextAddress){case 1:return d=Date.now(),g.yield(s1k(W,z,G,B),2);case 2:E=g.yieldResult;if(!(Y||((c=W.initializationData)==null?0:c.useNightlyRelease)||((J=W.initializationData)==null?0:J.isLocalServer))){v=E.initializeFeedbackClient(W,d,B);g.jumpTo(3);break}return g.yield(E.initializeFeedbackClientAsync(W,d,B),4);case 4:v=g.yieldResult;case 3:return v.initiateAloha(),g.return(v)}})};
lqu=function(W,B,z,G){var Y,d,E;return _.T(function(v){if(v.nextAddress==1)return Y=Date.now(),v.yield(r1k(W,z,G.document,B),2);if(v.nextAddress!=3)return d=v.yieldResult,v.yield(d.initializeFeedbackClientAsync(W,Y,B,G),3);E=v.yieldResult;E.initiateAloha();return v.return(E)})};
CNx=function(W,B,z){var G=!0;G=G===void 0?!0:G;var Y,d,E,v,c,J,g,t,P,Z;return _.T(function(l){Y=z||_.Yt;if((d=B)==null?0:(v=(E=d).getEnableAlohaBinarySplit)==null?0:v.call(E)){c=Y;if(c.isFormOpened)throw J=Error("lf"),J.name="DuplicateFormError",J;c.isFormOpened=!0;W.callbacks=W.callbacks||{};g=W.callbacks.onClose||function(){};
W.callbacks.onClose=function(b){c.isFormOpened=!1;g(b)};
try{return l.return(lqu(W,B,c,Y))}catch(b){throw c.isFormOpened=!1,b;}}else{t=Y;if(t.isFormOpened)throw P=Error("lf"),P.name="DuplicateFormError",P;t.isFormOpened=!0;W.callbacks=W.callbacks||{};Z=W.callbacks.onClose||function(){};
W.callbacks.onClose=function(b){t.isFormOpened=!1;Z(b)};
try{return l.return(kux(W,B,t,Y.document,G))}catch(b){throw t.isFormOpened=!1,b;}}_.HG(l)})};
F7R=function(W,B){return _.T(function(z){return z.return(new Promise(function(G,Y){Number.isInteger(Number(W))&&Number(W)>0?(Y=IqR(B!=null?B:"")+"/aloha_form_properties?productId="+W,oLD(Y,function(d){d=d.target;var E=null;try{var v=JSON,c=v.stringify;if(d.JSC$9797_xhr_){var J=d.JSC$9797_xhr_.responseText;J.indexOf(")]}'\n")==0&&(J=J.substring(5));var g=(0,_.ft)(J)}else g=void 0;E=DZD(hQx,c.call(v,g))}catch(t){c=new hQx,g=HwT(),g=_.Oh(g,13,!1),g=_.Oh(g,14,!0),g=_.Oh(g,15,!0),g=_.Oh(g,20,!1),E=_.o3(c,
1,g)}G(E)},"GET","",{},2E3,!0)):Y(Error("mf`"+W))}))})};
IqR=function(W){return vLr(W)?W:"https://www.google.com/tools/feedback"};
fqX=function(W){W=W.match(new RegExp(STk,"gi"))||[];W=_.A(W);for(var B=W.next();!B.done;B=W.next()){B=B.value;a:{var z=_.A(bwD);for(var G=z.next();!G.done;G=z.next())if(G.value.test(B)){z=!1;break a}z=!0}if(!z)a:{z=_.A(j10);for(G=z.next();!G.done;G=z.next())if(G.value.test(B)){z=!0;break a}z=!1}if(z)return!0}return!1};
Owk=function(W,B){var z={},G=Object.keys(W);G=_.A(G);for(var Y=G.next();!Y.done;Y=G.next())Y=Y.value,z[Y]=B(Y,W[Y]);return z};
X1R=function(W){switch(W){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"}};
u5u=function(W){if(window.crypto&&window.crypto.getRandomValues)try{var B=Array(W),z=new Uint8Array(W);window.crypto.getRandomValues(z);for(var G=0;G<B.length;G++)B[G]=z[G];return B}catch(d){}B=Array(W);for(z=0;z<W;z++){G=Date.now();for(var Y=0;Y<G%23;Y++)B[z]=Math.random();B[z]=Math.floor(Math.random()*256)}if(K7R)for(z=1,G=0;G<K7R.length;G++)B[z%W]^=B[(z-1)%W]/4^K7R.charCodeAt(G),z++;return B};
Kt=function(W){W=u5u(W);for(var B=[],z=0;z<W.length;z++)B.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(W[z]&63));return B.join("")};
eQR=function(){var W=_.Yt.ytLoggingDocDocumentNonce_;W||(W=Kt(16),_.BV("ytLoggingDocDocumentNonce_",W));return W};
xru=function(W){W&&_.Sy("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:mrR,clientScreenNonce:W})};
Dry=function(W){return _.eD("client-screen-nonce-store",{})[W===void 0?0:W]};
Q1X=function(W,B){B=B===void 0?0:B;var z=_.eD("client-screen-nonce-store");z||(z={},_.uk("client-screen-nonce-store",z));z[B]=W};
y12=function(W){W=W===void 0?0:W;return W===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+W};
qTr=function(W){return _.eD(y12(W===void 0?0:W))};
_.et=function(W){return(W=qTr(W===void 0?0:W))?new uy({veType:W,youtubeData:void 0,jspbYoutubeData:void 0}):null};
nL0=function(){var W=_.eD("csn-to-ctt-auth-info");W||(W={},_.uk("csn-to-ctt-auth-info",W));return W};
NRv=function(){return Object.values(_.eD("client-screen-nonce-store",{})).filter(function(W){return W!==void 0})};
_.m1=function(W){W=Dry(W===void 0?0:W);if(!W&&!_.md("USE_CSN_FALLBACK",!0))return null;W||(W="UNDEFINED_CSN");return W?W:null};
L70=function(W){for(var B=_.A(Object.values($r8)),z=B.next();!z.done;z=B.next())if(_.m1(z.value)===W)return!0;return!1};
UrX=function(W,B,z){var G=nL0();(z=_.m1(z))&&delete G[z];B&&(G[W]=B)};
x6=function(W){return nL0()[W]};
_.D2=function(W,B,z,G){z=z===void 0?0:z;if(W!==Dry(z)||B!==_.eD(y12(z)))if(UrX(W,G,z),Q1X(W,z),_.uk(y12(z),B),B=function(){setTimeout(function(){xru(W)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(B)}catch(Y){B()}else B()};
M0v=function(W,B){B=B===void 0?"":B;var z=[],G;for(G in W)if(W.hasOwnProperty(G)){var Y=B!==""?B+"."+G:G;typeof W[G]==="object"?z.push.apply(z,_.u7(M0v(W[G],Y))):z.push([Y,W[G]])}z.sort();return z};
_.yK=function(W){var B=_.nm.apply(1,arguments);if(!QK(W)||B.some(function(G){return!QK(G)}))throw Error("nf");
B=_.A(B);for(var z=B.next();!z.done;z=B.next())aqt(W,z.value)};
aqt=function(W,B){for(var z in B)if(QK(B[z])){if(z in W&&!QK(W[z]))throw Error("of");z in W||(W[z]={});aqt(W[z],B[z])}else if(RQQ(B[z])){if(z in W&&!RQQ(W[z]))throw Error("pf");z in W||(W[z]=[]);WNQ(W[z],B[z])}else W[z]=B[z];return W};
WNQ=function(W,B){B=_.A(B);for(var z=B.next();!z.done;z=B.next())z=z.value,QK(z)?W.push(aqt({},z)):RQQ(z)?W.push(WNQ([],z)):W.push(z);return W};
QK=function(W){return typeof W==="object"&&!Array.isArray(W)};
RQQ=function(W){return typeof W==="object"&&Array.isArray(W)};
zdQ=function(W){for(var B=_.A(Object.entries(BIR)),z=B.next();!z.done;z=B.next())if(z=_.A(z.value),z.next(),z=z.next().value,z==="SLI_STATUS_"+W)return z;return"SLI_STATUS_UNKNOWN"};
_.qO=function(W,B,z,G){return GfQ(W,B,function(){return new _.YWD(W,B,z,G)})};
_.dz0=function(){return _.qO("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
p40=function(){return _.qO("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
nt=function(){return _.qO("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
Afr=function(){return _.qO("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
ihD=function(){return _.qO("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
Eyt=function(){return _.qO("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
cfD=function(W){W&&(W.dataset?W.dataset[TI2()]="true":_.i7([_.w3(vy8)],W,"data-loaded","true".toString()))};
w4k=function(W){return W?W.dataset?W.dataset[TI2()]:W.getAttribute("data-loaded"):null};
TI2=function(){return VYx.loaded||(VYx.loaded="loaded".replace(/\-([a-z])/g,function(W,B){return B.toUpperCase()}))};
_.NO=function(W,B,z){JfT(W,B,z===void 0?null:z)};
_.tY0=function(W,B){W&&B&&(W=""+_.Lu(B),(W=gyv[W])&&_.EGD(W))};
JfT=function(W,B,z){z=z===void 0?null:z;var G=_.sxk(typeof W==="string"?W:W.toString()),Y=document.getElementById(G),d=Y&&w4k(Y),E=Y&&!d;d?B&&B():(B&&(d=_.ip(G,B),B=""+_.Lu(B),gyv[B]=d),E||(Y=Pzr(W,G,function(){w4k(Y)||(cfD(Y),_.TSX(G),_.cS(function(){_.cYR(G)},0))},z)))};
Pzr=function(W,B,z,G){G=G===void 0?null:G;var Y=_.I0("SCRIPT");Y.id=B;Y.onload=function(){z&&setTimeout(z,0)};
Y.onreadystatechange=function(){switch(Y.readyState){case "loaded":case "complete":Y.onload()}};
G&&Y.setAttribute("nonce",G);_.pN(Y,typeof W==="string"?_.Ok(W):W);W=document.getElementsByTagName("head")[0]||document.body;W.insertBefore(Y,W.firstChild);return Y};
_.sxk=function(W){var B=document.createElement("a");$h(B,W);return"js-"+$6(B.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
Zhu=function(W){var B=_.eD("INNERTUBE_HOST_OVERRIDE");B&&(W=String(B)+String(_.Lt(W)));return W};
rfx=function(W){var B={};_.r("json_condensed_response")&&(B.prettyPrint="false");return W=jPD(W,B)};
_.Uh=function(W){return z4(W)?"same-origin":"include"};
_.MO=function(W){return z4(W)?"same-origin":"cors"};
ad=function(W,B,z){z=z===void 0?{}:z;W={method:B===void 0?"POST":B,mode:_.MO(W),credentials:_.Uh(W)};B={};for(var G=_.A(Object.keys(z)),Y=G.next();!Y.done;Y=G.next())Y=Y.value,z[Y]&&(B[Y]=z[Y]);Object.keys(B).length>0&&(W.headers=B);return W};
_.Rd=function(W,B){B=B===void 0?{}:B;return"service:"+W+"/"+Object.keys(B).sort().map(function(z){return z+":"+B[z]}).join("/")};
kfX=function(W){var B,z,G,Y;W=(B=_.k(W,_.W0))==null?void 0:(z=B.watchEndpointSupportedOnesieConfig)==null?void 0:(G=z.html5PlaybackOnesieConfig)==null?void 0:(Y=G.commonConfig)==null?void 0:Y.url;if(!W)return[];B=new _.B0(W);return B.JSC$10032_domain_?["https://"+B.JSC$10032_domain_+"/generate_204"]:[]};
_.I3k=function(){return l3t()||ejX()||Czy&&uO("version/")?!0:_.eD("EOM_VISITOR_DATA")?!1:!0};
oy2=function(W){var B=W.docid||W.video_id||W.videoId||W.id;if(B)return B;B=W.raw_player_response;B||(W=W.player_response)&&(B=JSON.parse(W));return B&&B.videoDetails&&B.videoDetails.videoId||null};
hdv=function(W){return W.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
zy=function(W){return!isNaN(Number(W))&&!_.TT(W)};
_.Yq=function(W,B,z,G){G=G===void 0?!0:G;var Y=_.eD("VALID_SESSION_TEMPDATA_DOMAINS",[]),d=_.WS(window.location.href);d&&Y.push(d);d=_.WS(W);if(_.xt(Y,d)||!d&&_.A0(W,"/"))if(Y=document.createElement("a"),$h(Y,W),W=Y.href)if(W=_.Lt(W),W=_.Gy(W))G&&!B.csn&&(B.itct||B.ved)&&(B=Object.assign({csn:_.m1()},B)),z?(z=parseInt(z,10),isFinite(z)&&z>0&&HhX(W,B,z)):HhX(W,B)};
SW2=function(W){var B=_.eD("VALID_SESSION_TEMPDATA_DOMAINS",[]),z=_.WS(window.location.href);z&&B.push(z);z=_.WS(W);if(!(_.xt(B,z)||!z&&_.A0(W,"/")))return null;W=_.Lt(W);(W=_.Gy(W))?(W=FNx(W),W=(W=_.rO.get(W,void 0)||null)?_.Lx(W):{}):W=null;return W};
HhX=function(W,B,z){W=FNx(W);B=B?_.sA(B):"";z=z||5;_.I3k()&&_.k8(W,B,z)};
FNx=function(W){for(var B=_.A(bhv),z=B.next();!z.done;z=B.next())W=_.dV(W,z.value);return"ST-"+$6(W).toString(36)};
_.jxr=function(W){if(W.requestFullscreen)W=W.requestFullscreen(void 0);else if(W.webkitRequestFullscreen)W=W.webkitRequestFullscreen();else if(W.mozRequestFullScreen)W=W.mozRequestFullScreen();else if(W.msRequestFullscreen)W=W.msRequestFullscreen();else if(W.webkitEnterFullscreen)W=W.webkitEnterFullscreen();else return Promise.reject(Error("yf"));return W instanceof Promise?W:Promise.resolve()};
_.Ar=function(W){var B;_.MKR(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.pi()==W&&(B=document):B=W;if(B&&(W=_.MKR(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],B))){W.call(B)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.pi=function(){var W=W===void 0?!1:W;var B=_.MKR(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(W)for(;B&&B.shadowRoot;)B=B.shadowRoot.fullscreenElement;return B?B:null};
_.iH=function(W,B){B=B===void 0?!0:B;W.addEventListener("wheel",f3X);W.overscrollConfig={cooldown:B}};
_.E2=function(W){W.overscrollConfig=void 0;W.removeEventListener("wheel",f3X)};
f3X=function(W){var B=W.deltaY,z=W.target,G=null;if(window.Polymer&&window.Polymer.Element){if(z=W.path||W.composedPath&&W.composedPath()){z=_.A(z);for(var Y=z.next();!Y.done&&(Y=Y.value,!Ohk(Y,B));Y=z.next())if(Y.overscrollConfig){G=Y;break}}}else for(;z&&!Ohk(z,B);){if(z.overscrollConfig){G=z;break}z=z.parentElement}G&&(B=G.overscrollConfig,B.cooldown?(G=W.deltaY,z=B.lastDeltaY||0,B.lastDeltaY=G,Y=B.lastStopped||0,z&&Y&&z>0==G>0?Math.abs(z)>=Math.abs(G)?(G=Y+1200,z=!1):(G=Y+600,z=!0):(G=Date.now()+
600,z=!0),G>Date.now()&&(W.preventDefault(),z&&(B.lastStopped=Date.now()))):W.preventDefault())};
Ohk=function(W,B){return B<0&&W.scrollTop>0||B>0&&W.scrollTop<W.scrollHeight-W.clientHeight-1?(W=getComputedStyle(W).overflowY,W=="auto"||W=="scroll"):!1};
_.v0=function(W,B,z,G){G||(G={bubbles:!0,cancelable:!1,composed:!0});z!==null&&z!==void 0&&(G.detail=z);var Y=new CustomEvent(B,G);_.r("untrack_fire_custom_event_killswitch")?W.dispatchEvent(Y):Jy(function(){return void W.dispatchEvent(Y)});
return Y};
X4y=function(W){var B=window,z=function(G){B.removeEventListener("yt-navigate-start",z);return W.call(B,G)};
B.addEventListener("yt-navigate-start",z,void 0)};
_.c0=function(W,B,z,G){B=new KNu(B,!(G===void 0||!G),z);_.v0(W,"yt-action",B);return B.returnValue};
_.wV=function(W,B,z){return _.c0(W,B,z,!0)};
_.Jr=function(W,B,z,G){B&&B.length&&B.forEach(function(Y){var d=$$t(Y);d&&(_.r("handle_service_request_actions")&&Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.sendPost?_.V0(z?z:W,[Y]):_.wV(W,d,[Y,z,G]))})};
_.V0=function(W,B){var z=[W];B&&z.push.apply(z,B);B=_.c0(W,"yt-service-request",z);return B.length>0&&(B=B[0],_.v0(W,"yt-service-request-sent",B),B&&B.ajaxPromise)?(B.ajaxPromise.then(function(G){_.v0(W,"yt-service-request-completed",G)},function(G){_.v0(W,"yt-service-request-error",{error:G,
params:z})},W),B.ajaxPromise):_.gV()};
_.s2=function(W,B){if(_.r("handle_service_request_actions"))_.Jr(B,W,B);else{W=_.A(W);for(var z=W.next();!z.done;z=W.next()){z=z.value;var G=void 0;((G=_.k(z,_.tr))==null?0:G.commands)?_.s2(_.k(z,_.tr).commands,B):(G=void 0,((G=_.k(z,_.P0))==null?0:G.actions)?_.s2(_.k(z,_.P0).actions,B):(G=void 0,((G=_.k(z.commandMetadata,_.Z4))==null?0:G.sendPost)?_.V0(B,[z]):_.Jr(B,[z],B)))}}};
_.edr=function(W,B,z){B=B===void 0?{}:B;typeof B==="function"&&(B={callback:B});z||B._c&&B._c.jsl&&B._c.jsl.h||_.mP.extend(B,{_c:{jsl:{h:_.eD("GAPI_HINT_PARAMS")}}});(B.gapiHintOverride||_.eD("GAPI_HINT_OVERRIDE"))&&(z=_.Uw(document.location.href).gapi_jsh)&&_.mP.extend(B,{_c:{jsl:{h:z}}});uuT(W,B)};
_.kq=function(W,B,z){B=B===void 0?{}:B;W=(W=W in rV?rV[W]:z)||"";z={};for(var G in B){z={key$jscomp$838:z.key$jscomp$838};z.key$jscomp$838=G;var Y=function(d){return function(){return String(B[d.key$jscomp$838])}}(z);
W=W.replace(new RegExp("\\$\\{"+z.key$jscomp$838+"\\}","gi"),Y);W=W.replace(new RegExp("\\$"+z.key$jscomp$838,"gi"),Y)}return W};
_.lH=function(W,B){return mzT(W in rV?rV[W]:{},B)};
mzT=function(W,B){var z=_.eD("I18N_PLURAL_RULES");z||(z=function(G){return G==1?"one":"other"});
return(W=W["case"+B]||W[z(B)])?W.replace("#",B.toString()):B+""};
Qx8=function(W){var B=xzk(W),z=document.getElementById(B),G=z&&w4k(z);G||z&&!G||(z=Dzv(W,B,function(){if(!w4k(z)){cfD(z);_.TSX(B);var Y=_.Ci(_.cYR,B);_.cS(Y,0)}}))};
Dzv=function(W,B,z){var G=document.createElement("link");G.id=B;G.onload=function(){z&&setTimeout(z,0)};
W=_.Ok(W);_.E0(G,W,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(G);return G};
xzk=function(W){var B=_.I0("A");$h(B,Km(W));return"css-"+$6(B.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.qWQ=function(W){var B=yfu();W!==B&&(B=_.IP(),!_.r("web_autonav_allow_off_by_default")&&W||_.oP(0,141,!0),_.oP(0,140,!W),B.save())};
yfu=function(){var W=_.IP();return _.r("web_autonav_allow_off_by_default")&&!W.getFlag(141)&&_.eD("AUTONAV_OFF_BY_DEFAULT")?!1:!W.getFlag(140)};
nyX=function(W,B){var z,G;W=((z=W.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(G=z.videoAuthorizationToken)==null?void 0:G.credentialTransferTokens)||[];for(z=0;z<W.length;++z)if(W[z].scope===B)return W[z].token||void 0};
NIR=function(W){for(var B=0,z=0;z<W.length;z++)B=B*31+W.charCodeAt(z),z<W.length-1&&(B%=0x800000000000);return B%1E5};
_.hr=function(W){return _.q6("ytcsi."+(W||"")+"data_")||$zt(W)};
_.LND=function(W){W=_.hr(W);W.metadata||(W.metadata={});return W.metadata};
_.Uzx=function(W){W=_.hr(W);W.tick||(W.tick={});return W.tick};
_.H0=function(W){W=_.hr(W);if(W.gel){var B=W.gel;B.gelInfos||(B.gelInfos={});B.gelTicks||(B.gelTicks={})}else W.gel={gelTicks:{},gelInfos:{}};return W.gel};
_.MY8=function(W){W=_.H0(W);W.gelInfos||(W.gelInfos={});return W.gelInfos};
a3X=function(W){var B=_.hr(W).nonce;B||(B=Kt(16),_.hr(W).nonce=B);return B};
$zt=function(W){var B={tick:{},info:{}};_.BV("ytcsi."+(W||"")+"data_",B);return B};
RdT=function(){var W=_.q6("ytcsi.debug");W||(W=[],_.BV("ytcsi.debug",W),_.BV("ytcsi.reference",{}));return W};
_.FO=function(W){W=W||"";var B=Wfr();if(B[W])return B[W];var z=RdT(),G={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};z.push(G);return B[W]=G};
B1t=function(W){W=W||"";var B=Wfr();B[W]&&delete B[W];var z=RdT(),G={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};z.push(G);B[W]=G};
Wfr=function(){var W=_.q6("ytcsi.reference");if(W)return W;RdT();return _.q6("ytcsi.reference")};
_.GkR=function(W){return zxr[W]||"LATENCY_ACTION_UNKNOWN"};
A7x=function(W,B,z){z=z===void 0?{}:z;var G=!1;_.md("ytLoggingEventsDefaultDisabled",!1)&&(G=!0);G=G?null:FC;z=z===void 0?{}:z;var Y=Math.round(z.timestamp||(0,_.Yb)());_.kE(B,1,Y<Number.MAX_SAFE_INTEGER?Y:0);Y=new Y4D;if(z.lact)_.kE(Y,1,isFinite(z.lact)?z.lact:-1);else if(z.timestamp)_.kE(Y,1,-1);else{var d=_.Gi();_.kE(Y,1,isFinite(d)?d:-1)}if(z.sequenceGroup&&!_.r("web_gel_sequence_info_killswitch")){d=z.sequenceGroup;var E=rgQ(d),v=new dpR;_.kE(v,2,E);_.f3(v,1,d);_.o3(Y,3,v);z.endOfSequence&&delete pdX[z.sequenceGroup]}_.o3(B,
33,Y);(z.sendIsolatedPayload?HyQ:FTu)(W,{endpoint:"log_event",payload:B,cttAuthInfo:z.cttAuthInfo,dangerousLogToVisitorSession:z.dangerousLogToVisitorSession},G)};
_.bH=function(){return(_.r("csi_use_time_origin")||_.r("csi_use_time_origin_tvhtml5"))&&_.S4.timeOrigin?Math.floor(_.S4.timeOrigin):_.S4.timing.navigationStart};
_.irQ=function(W,B){_.j4("_start",W,B)};
_.fi=function(W,B){if(!_.r("web_csi_action_sampling_enabled")||!_.hr(B).actionDisabled){var z=_.FO(B||"");_.yK(z.info,W);W.loadType&&(z=W.loadType,_.LND(B).loadType=z);_.yK(_.MY8(B),W);z=a3X(B);B=_.hr(B).cttAuthInfo;E02().info(W,z,B)}};
T1y=function(){var W,B,z,G;return((G=_.dO().resolve(_.Y8(Ig))==null?void 0:(W=og())==null?void 0:(B=W.loggingHotConfig)==null?void 0:(z=B.csiConfig)==null?void 0:z.debugTicks)!=null?G:[]).map(function(Y){return Object.values(Y)[0]})};
_.j4=function(W,B,z){if(!_.r("web_csi_action_sampling_enabled")||!_.hr(z).actionDisabled){var G=a3X(z),Y;if(Y=_.r("web_csi_debug_sample_enabled")&&G){(_.dO().resolve(_.Y8(Ig))==null?0:og())&&!v0v&&(v0v=!0,_.j4("gcfl",(0,_.Yb)(),z));var d,E,v;Y=(_.dO().resolve(_.Y8(Ig))==null?void 0:(d=og())==null?void 0:(E=d.loggingHotConfig)==null?void 0:(v=E.csiConfig)==null?void 0:v.debugSampleWeight)||0;if(d=Y!==0)b:{d=T1y();if(d.length>0)for(E=0;E<d.length;E++)if(W===d[E]){d=!0;break b}d=!1}d?(Y=NIR(G)%Y!==0,
_.hr(z).debugTicksExcludedLogged||(d={},d.debugTicksExcluded=Y,_.fi(d,z)),_.hr(z).debugTicksExcludedLogged=!0):Y=!1}if(!Y){W[0]!=="_"&&c7k(W,z,B);Y=_.FO(z||"");Y.tick[W]=B||(0,_.Yb)();if(Y.callback&&Y.callback[W])for(Y=_.A(Y.callback[W]),d=Y.next();!d.done;d=Y.next())d=d.value,d();Y=_.H0(z);Y.gelTicks&&(Y.gelTicks[W]=!0);d=_.Uzx(z);Y=B||(0,_.Yb)();_.r("log_repeated_ytcsi_ticks")?W in d||(d[W]=Y):d[W]=Y;d=_.hr(z).cttAuthInfo;W==="_start"?E02().baseline(G,B,d):E02().tick(W,G,B,d);_.wdv(z);return Y}}};
c7k=function(W,B,z){if(_.S4.mark)if(W.startsWith("mark_")||(W="mark_"+W),B&&(W+=" ("+B+")"),z===void 0||_.r("web_csi_disable_alt_time_performance_mark"))_.S4.mark(W);else{z=_.r("csi_use_performance_navigation_timing")?z-_.S4.timeOrigin:z-(_.S4.timeOrigin||_.S4.timing.navigationStart);try{_.S4.mark(W,{startTime:z})}catch(G){}}};
V3R=function(){var W,B=(W=_.S4.getEntriesByType)==null?void 0:W.call(_.S4,"mark");B&&B.forEach(function(z){if(z.name.startsWith("mark_")){var G;(G=_.S4.clearMarks)==null||G.call(_.S4,z.name)}})};
_.J7R=function(){switch(UH8()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.g02=function(W){var B={},z=function(d,E,v){E=E.match("_rid")?E.split("_rid")[0]:E;typeof v==="number"&&(v=JSON.stringify(v));d.requestIds?d.requestIds.push({endpoint:E,id:v}):d.requestIds=[{endpoint:E,id:v}]};
W=_.A(Object.entries(W));for(var G=W.next();!G.done;G=W.next()){var Y=_.A(G.value);G=Y.next().value;Y=Y.next().value;switch(G){case "GetBrowse_rid":z(B,G,Y);break;case "GetGuide_rid":z(B,G,Y);break;case "GetHome_rid":z(B,G,Y);break;case "GetPlayer_rid":z(B,G,Y);break;case "GetSearch_rid":z(B,G,Y);break;case "GetSettings_rid":z(B,G,Y);break;case "GetTrending_rid":z(B,G,Y);break;case "GetWatchNext_rid":z(B,G,Y);break;case "yt_red":B.isRedSubscriber=!!Y;break;case "yt_ad":B.isMonetized=!!Y}}return B};
s9D=function(W,B,z,G,Y,d){if(!_.r("web_csi_action_sampling_enabled")||!_.hr(d).actionDisabled){var E=_.H0(d);if(E.gelSpans)E.gelSpans[W]=!0;else{var v={};E.gelSpans=(v[W]=!0,v)}t3D++;W={spanName:W,spanLengthUsec:String(Math.round(B*1E3)),spanNonce:t3D};G&&(W.spanInfo=G);Y&&(W.parentSpanNonce=Y);z&&(W.spanStartTimeUsec=String(Math.round(z*1E3)));_.FO(d||"").span[String(W.spanName)]=W;z=_.H0(d);z.gelSpans||(z.gelSpans={});_.yK(z.gelSpans,W);z=a3X(d);d=_.hr(d).cttAuthInfo;E02().span(W,z,d);return W.spanNonce}};
_.Po2=function(W){var B=_.O2("aft",W);if(B)return B;B=_.eD((W||"")+"TIMING_AFT_KEYS",["ol"]);for(var z=B.length,G=0;G<z;G++){var Y=_.O2(B[G],W);if(Y)return Y}return NaN};
_.Zrr=function(W,B){_.BV("ytglobal.timing"+(B||"")+"ready_",W)};
_.O2=function(W,B){if(W=_.Uzx(B)[W])return typeof W==="number"?W:W[W.length-1]};
_.wdv=function(W){var B=_.O2("_start",W),z=_.Po2(W),G=!r72;B&&z&&G&&(l8u(kkX,new lMQ(Math.round(z-B),W)),r72=!0)};
IMt=function(W){$zt(W);Co0();V3R();W||(_.eD("TIMING_ACTION")&&_.uk("PREVIOUS_ACTION",_.eD("TIMING_ACTION")),_.uk("TIMING_ACTION",""))};
_.o00=function(W){W=W===void 0?{}:W;_.D5(function(){XO();B1t();IMt();_.Zrr(!1);W.cttAuthInfo&&(_.hr().cttAuthInfo=W.cttAuthInfo);_.uk("TIMING_AFT_KEYS",[]);W.isHot?_.Ki({loadType:"hot"}):_.Ki({loadType:"warm"});_.uk("TIMING_ACTION","");delete _.eD("TIMING_INFO",{}).yt_lt;_.D5(_.irQ)(W.startTime,void 0)})()};
_.e4=function(W,B,z,G){B=B===void 0?{}:B;_.D5(function(){var Y=z?z:W;uH(Y);var d=B.sampleRate;if(!_.r("web_csi_action_sampling_enabled")||d===void 0||d<=1)d=!1;else{var E=a3X(Y);d=NIR(E)%d!==0}d&&(_.hr(Y).actionDisabled=!0);_.FO(Y||"").info.actionType=W;B.cttAuthInfo&&(_.hr(Y).cttAuthInfo=B.cttAuthInfo);_.uk(Y+"TIMING_ACTION",W);_.D5(_.irQ)(B.startTime,Y);d={actionType:G||_.GkR(W)};B.logPreviousAction&&(d.previousAction=_.GkR(_.eD("TIMING_ACTION")));(E=_.m1())&&E!=="UNDEFINED_CSN"&&(d.clientScreenNonce=
E);_.Ki(d,Y);_.Zrr(!0,Y)})()};
uH=function(W){_.D5(function(){XO(W);B1t(W);IMt(W)})()};
hxX=function(){_.D5(function(){var W=[],B;for(B in _.q6("ytcsi.".slice(0,-1)))B.endsWith("data_")&&W.push(B.slice(0,-5));W=_.A(W);for(B=W.next();!B.done;B=W.next())uH(B.value);XO()})()};
_.FfD=function(W){return _.D5(function(){return _.HrR("_start",W)})()};
_.Ki=function(W,B,z){_.D5(_.fi)(W,B,z===void 0?!1:z)};
_.mj=function(W,B,z){return _.D5(_.j4)(W,B,z)};
_.HrR=function(W,B){return _.D5(function(){var z=_.Uzx(B);return W in z})()};
br8=function(W){if(!_.r("universal_csi_network_ticks"))return"";W=_.gO(W)||"";for(var B=Object.keys(S4D),z=0;z<B.length;z++){var G=B[z];if(W.includes(G))return G}return""};
fMv=function(W){if(!_.r("universal_csi_network_ticks"))return function(){};
var B=S4D[W];return B?(_.xq(B),function(){var z=_.r("universal_csi_network_ticks")?(z=j9D[W])?_.xq(z):!1:!1;return z}):function(){}};
_.xq=function(W,B,z){return _.D5(function(){if(_.HrR(W,z))return!1;_.mj(W,B,z);return!0})()};
_.D4=function(W,B,z){_.D5(function(){if(!_.FfD(z)||_.HrR(W,z))return!1;_.mj(W,B,z);return!0})()};
_.Q0=function(W){return _.D5(_.O2)(W,void 0)};
XO=function(W){_.FfD(W)&&_.mj("aa",void 0,W)};
_.exx=function(W,B,z,G,Y,d,E,v,c){var J=Orx();v=new uy({veType:B,youtubeData:d,jspbYoutubeData:v});d=y0({},J);Y&&(d.cttAuthInfo=Y);Y={csn:J,pageVe:v.getAsJson()};_.r("expectation_logging")&&c&&c.screenCreatedLoggingExpectations&&(Y.screenCreatedLoggingExpectations=c.screenCreatedLoggingExpectations);z&&z.visualElement?(Y.implicitGesture={parentCsn:z.clientScreenNonce,gesturedVe:z.visualElement.getAsJson()},E&&(Y.implicitGesture.gestureType=E)):z&&_.Oc(new _.oX("newScreen() parent element does not have a VE - rootVe",
B));G&&(Y.cloneCsn=G);W?HT("screenCreated",Y,W,d):_.Sy("screenCreated",Y,d);l8u(SRu,new Xdt(J));qj.clear();Kf8.clear();uJk.clear();return J};
ni=function(W,B,z,G,Y,d){d=d===void 0?{}:d;mpR(W,B,z,[G],Y===void 0?!1:Y,d)};
mpR=function(W,B,z,G,Y,d){Y=Y===void 0?!1:Y;d=d===void 0?{}:d;Object.assign(d,y0({cttAuthInfo:x6(B)||void 0},B));for(var E=_.A(G),v=E.next();!v.done;v=E.next()){v=v.value;var c=v.getAsJson();(_.mP.isEmpty(c)||!c.trackingParams&&!c.veType)&&_.Oc(Error("zf"));if(_.r("no_client_ve_attach_unless_shown")){var J=xpX(v,B);if(c.veType&&!Kf8.has(J)&&!uJk.has(J)&&!Y){if(!_.r("il_attach_cache_limit")||qj.size<1E3){qj.set(J,[W,B,z,v]);return}_.r("il_attach_cache_limit")&&qj.size>1E3&&_.Oc(new _.oX("IL Attach cache exceeded limit"))}v=
xpX(z,B);qj.has(v)?DpT(z,B):uJk.set(v,!0)}}G=G.filter(function(g){g.csn!==B?(g.csn=B,g=!0):g=!1;return g});
z={csn:B,parentVe:z.getAsJson(),childVes:_.xH(G,function(g){return g.getAsJson()})};
B==="UNDEFINED_CSN"?Nj("visualElementAttached",d,z):W?HT("visualElementAttached",z,W,d):_.Sy("visualElementAttached",z,d)};
y70=function(W,B,z,G,Y){Q9T(W,B,z,Y)};
Q9T=function(W,B,z,G){q4k(z,B);var Y=y0({cttAuthInfo:x6(B)||void 0},B);z={csn:B,ve:z.getAsJson(),eventType:1};G&&(z.clientData=G);B==="UNDEFINED_CSN"?Nj("visualElementShown",Y,z):W?HT("visualElementShown",z,W,Y):_.Sy("visualElementShown",z,Y)};
n0x=function(W,B,z,G){q4k(z,B);var Y=y0({cttAuthInfo:x6(B)||void 0},B);z={csn:B,ve:z.getAsJson(),eventType:4};G&&(z.clientData=G);B==="UNDEFINED_CSN"?Nj("visualElementShown",Y,z):W?HT("visualElementShown",z,W,Y):_.Sy("visualElementShown",z,Y)};
N1T=function(W,B,z,G,Y){var d=(G=G===void 0?!1:G)?16:8;G=y0({cttAuthInfo:x6(B)||void 0,endOfSequence:G},B);z={csn:B,ve:z.getAsJson(),eventType:d};Y&&(z.clientData=Y);B==="UNDEFINED_CSN"?Nj("visualElementHidden",G,z):W?HT("visualElementHidden",z,W,G):_.Sy("visualElementHidden",z,G)};
Lfx=function(W,B,z,G,Y){$px(W,B,z,void 0,G,Y)};
$px=function(W,B,z,G,Y){q4k(z,B);G=G||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var d=y0({cttAuthInfo:x6(B)||void 0},B);z={csn:B,ve:z.getAsJson(),gestureType:G};Y&&(z.clientData=Y);B==="UNDEFINED_CSN"?Nj("visualElementGestured",d,z):W?HT("visualElementGestured",z,W,d):_.Sy("visualElementGestured",z,d)};
Upy=function(W,B,z,G){var Y=y0({cttAuthInfo:x6(B)||void 0},B);z={csn:B,ve:z.getAsJson(),clientData:G};B==="UNDEFINED_CSN"?Nj("visualElementStateChanged",Y,z):W?HT("visualElementStateChanged",z,W,Y):_.Sy("visualElementStateChanged",z,Y)};
M3x=function(){var W=u5u(16);for(var B=[],z=0;z<W.length;z++)B.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(W[z]&63));return B.join("")};
Nj=function(W,B,z){aMQ.push({payloadName:W,payload:z,jspbPayload:void 0,options:B});RxR||(RxR=jNR())};
Fs2=function(W){if(aMQ){for(var B=_.A(aMQ),z=B.next();!z.done;z=B.next())z=z.value,z.payload&&(z.payload.csn=W.csn,_.Sy(z.payloadName,z.payload,z.options));aMQ.length=0}RxR=0};
xpX=function(W,B){return""+W.getAsJson().veType+W.getAsJson().veCounter+B};
q4k=function(W,B){if(_.r("no_client_ve_attach_unless_shown")){var z=xpX(W,B);Kf8.set(z,!0);DpT(W,B)}};
DpT=function(W,B){W=xpX(W,B);qj.has(W)&&(B=qj.get(W)||[],ni(B[0],B[1],B[2],B[3],!0),qj.delete(W))};
y0=function(W,B){_.r("log_sequence_info_on_gel_web")&&(W.sequenceGroup=B);return W};
_.$q=function(W,B,z){_.D5(ni)(void 0,W,B,z)};
_.Li=function(W,B,z){_.D5(mpR)(void 0,W,B,z)};
_.U2=function(W,B){_.D5(y70)(void 0,W,B,void 0,void 0,void 0)};
_.Mj=function(W,B,z){_.D5(function(){_.$r(B,function(G){n0x(void 0,W,G,z)})})()};
_.aP=function(W,B,z,G){_.D5(function(){_.$r(B,function(Y){N1T(void 0,W,Y,z,G)})})()};
_.RP=function(W,B,z){_.D5(Lfx)(void 0,W,B,z,void 0)};
_.W3=function(W,B,z,G){_.D5($px)(void 0,W,B,z,G,void 0)};
_.B3=function(W,B,z){_.D5(Upy)(void 0,W,B,z,void 0)};
WG0=function(W,B){zl.set(W,B)};
BET=function(W){return Gl.initialized?Gl.enabledSpans?Gl.enabledSpans[W]:!0:!1};
zgt=function(W,B){if(W){B=B===void 0?1:B;if(W){W.endTime=(0,_.Yb)();B&&(W.status=B);B=_.A(Gl.processors);for(var z=B.next();!z.done;z=B.next()){var G=void 0,Y=void 0;(Y=(G=z.value).onSpanEnd)==null||Y.call(G,W)}}W!==Gl.stack[Gl.stack.length-1]&&_.Oc(Error("Cf`"+W.name));Gl.stack.pop()}};
GaQ=function(W,B,z){if(BET(W)){var G=Gl.nextSpanId++,Y=Gl.stack[Gl.stack.length-1];W={id:G,parentId:Y==null?void 0:Y.id,name:W,attributes:B,traceId:Y?Y.traceId:G,sessionId:Gl.sessionId,startTime:(0,_.Yb)(),status:0};Y&&(Y.children||(Y.children=[]),Y.children.push(W));Y=_.A(Gl.processors);for(B=Y.next();!B.done;B=Y.next()){var d=G=void 0;(d=(G=B.value).onSpanStart)==null||d.call(G,W)}}else W=void 0;W?Gl.stack.push(W):W=void 0;if(!W)return z();try{var E=z(W);zgt(W);return E}catch(v){throw zgt(W,2),
v;}};
YzR=function(){};
dm2=function(W,B){var z=Object.keys(W);W=new _.oX("[Command Handler] "+B,{filteredCommandNames:z,originalCommand:W});_.jy(W)};
ptt=function(W,B){dm2(W,B+" was called but not set")};
ALD=function(W){return function(){return new W}};
YO=function(W){return function(){return _.dO().resolve(W)}};
i62=function(W,B){var z=_.k(W,_.mE);if(z&&(z=B[z.signal]))return z();W=_.A(Object.keys(W));for(z=W.next();!z.done;z=W.next())if(z=z.value,B[z]&&(z=B[z]))return z()};
_.dc=function(W,B,z,G){return{browseEndpoint:{browseId:W},commandMetadata:{webCommandMetadata:{url:B,rootVe:z,webPageType:G===void 0?"WEB_PAGE_TYPE_BROWSE":G}}}};
ENx=function(W,B,z){var G=B=B===void 0?0:B;z=z===void 0?0:z;var Y=z-G;return _.pA(W,"PPSV",void 0,void 0,(Y>600?0:Y<60||z<=0||G/z>.9)?0:B)};
_.pA=function(W,B,z,G,Y){var d="/watch?v="+W;W={videoId:W};B&&(W.playlistId=B,d+="&list="+B);G&&(d+="&pp="+G);Y&&(W.startTimeSeconds=Y,d+="&t="+Y+"s");B={watchEndpoint:W,commandMetadata:{webCommandMetadata:{url:d,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};z&&(B.clickTrackingParams=z);G&&(_.k(B,_.W0).playerParams=G);return B};
TEt=function(W){return{browseEndpoint:{browseId:"VL"+W},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+W,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
vNu=function(W){if(W){var B;if(W){var z=(B=_.k(W.commandMetadata,_.Z4))==null?void 0:B.url;B=!(!z||z==="/service_ajax")}else B=!1;if(B)return W;var G;if(W=(G=_.k(W,_.tr))==null?void 0:G.commands)for(G=_.A(W),W=G.next();!W.done;W=G.next())if(W=vNu(W.value))return W}};
_.Aq=function(W){return{runs:[{text:W}]}};
cLR=function(W,B){return W&&B?{runs:[{text:W,navigationEndpoint:B}]}:void 0};
id=function(W){return W?_.Aq(W):void 0};
_.Eg=function(W){return W?{simpleText:W}:void 0};
_.Tl=function(W){var B=W.type;W=W.payload;B={type:B};W!==void 0&&(B.payload=W);return B};
wtT=function(W,B,z){for(var G=Object.assign({},W),Y=_.A(Object.keys(B)),d=Y.next();!d.done;d=Y.next()){d=d.value;var E=W[d],v=B[d];if(v===void 0)delete G[d];else if(E===void 0)G[d]=v;else if(Array.isArray(v)&&Array.isArray(E))G[d]=z?[].concat(_.u7(E),_.u7(v)):v;else if(!Array.isArray(v)&&_.$t(v)&&!Array.isArray(E)&&_.$t(E))G[d]=wtT(E,v,z);else if(typeof v===typeof E)G[d]=v;else return B=new _.oX("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:d,originalValue:E,updateValue:v}),
_.jy(B),W}return G};
gNk=function(W){if(!W.length)return"";try{if(V90)return V90.decode(W);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(W)}catch(E){}for(var B=0,z=[],G=W.length;B<G;){for(var Y=0;Y<1024&&B<G;){var d=W[B++];if(d<128)JLX[Y++]=d;else{if(d<224)d=(d&31)<<6|W[B++]&63;else if(d<240)d=(d&15)<<12|(W[B++]&63)<<6|W[B++]&63;else{if(Y+1===1024){--B;break}d=(d&7)<<18|(W[B++]&63)<<12|(W[B++]&63)<<6|W[B++]&63;d-=65536;JLX[Y++]=55296|d>>10;d=56320|d&1023}JLX[Y++]=d}}d=String.fromCharCode.apply(String,
JLX);Y<1024&&(d=d.substring(0,Y));z.push(d)}return z.join("")};
sZx=function(W,B){var z;if((z=t92)==null?0:z.encodeInto)return B=t92.encodeInto(W,B),B.read<W.length?W.length*4:B.written;for(var G=z=0;G<W.length;G++){var Y=W.charCodeAt(G);Y<128?B[z++]=Y:(Y<2048?B[z++]=Y>>6|192:((Y&64512)===55296&&G+1<W.length&&(W.charCodeAt(G+1)&64512)===56320?(Y=65536+((Y&1023)<<10)+(W.charCodeAt(++G)&1023),B[z++]=Y>>18|240,B[z++]=Y>>12&63|128):B[z++]=Y>>12|224,B[z++]=Y>>6&63|128),B[z++]=Y&63|128)}return z};
PJ8=function(W,B,z){if(B&&z&&z.buffer===B.exports.memory.buffer){var G=B.realloc(z.byteOffset,W);if(G)return new Uint8Array(B.exports.memory.buffer,G,W)}W=B?new Uint8Array(B.exports.memory.buffer,B.malloc(W),W):new Uint8Array(W);z&&W.set(z);return W};
_.c3=function(W){W=new Z6R(new rLX([_.aD(decodeURIComponent(W))]));if(ka0(W,2)){var B=v3(W);var z=W.pos;var G=W.arrayView;z=z===void 0?0:z;var Y=B===void 0?-1:B;z=z===void 0?0:z;Y=Y===void 0?-1:Y;if(G.totalLength&&Y){Y<0&&(Y=G.totalLength-z);G.focus(z);if(!(z-G.arrayPos+Y<=G.arrays[G.arrayIdx].length)){var d=G.arrayIdx,E=G.arrayPos;G.focus(z+Y-1);E=new Uint8Array(G.arrayPos+G.arrays[G.arrayIdx].length-E);for(var v=0,c=d;c<=G.arrayIdx;c++)E.set(G.arrays[c],v),v+=G.arrays[c].length;G.arrays.splice(d,
G.arrayIdx-d+1,E);G.arrayIdx=0;G.arrayPos=0;G.focus(z)}d=G.arrays[G.arrayIdx];G=new DataView(d.buffer,d.byteOffset+z-G.arrayPos,Y)}else G=new DataView(new ArrayBuffer(0));G=new Uint8Array(G.buffer,G.byteOffset,G.byteLength);W.pos+=B;B=G}else B=void 0;B=B?gNk(B):void 0;W=ka0(W,4)?v3(W):void 0;G=lL2[W];if(typeof G==="undefined")throw W=new _.oX("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:W}),_.jy(W),W;return{entityTypeFieldNumber:W,entityType:G,entityId:B}};
_.sg=function(W,B,z){z=z===void 0?0:z;var G=new CJ0;if(t92)W=t92.encode(W);else{var Y=new Uint8Array(Math.ceil(W.length*1.2)),d=sZx(W,Y);Y.length<d&&(Y=new Uint8Array(d),d=sZx(W,Y));Y.length>d&&(Y=Y.subarray(0,d));W=Y}W!==void 0&&(wc(G,18),Y=W.length,wc(G,Y),tq(G,Y),G.buf.set(W,G.pos),G.pos+=Y);W=ILR[B];if(typeof W==="undefined")throw z=new _.oX("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:B}),_.jy(z),z;W!==void 0&&(wc(G,32),wc(G,W));wc(G,40);wc(G,1);B=new Uint8Array(G.buf.buffer,
G.buf.byteOffset,G.pos);return encodeURIComponent(_.Ob(B,z))};
oNR=function(W){W=W.key||W.id;if(!W)throw Error("Ef");return W};
H6u=function(W,B){W=W===void 0?{}:W;return hgr(W,B)};
FGx=function(W,B,z,G){if(G===void 0)return G=Object.assign({},W[B]||{}),z=(delete G[z],G),G={},Object.assign({},W,(G[B]=z,G));var Y={},d={};return Object.assign({},W,(d[B]=Object.assign({},W[B],(Y[z]=G,Y)),d))};
Sz8=function(W,B,z,G,Y){var d=W[B];if(d==null||!d[z])return W;G=wtT(d[z],G,Y==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Y={};d={};return Object.assign({},W,(d[B]=Object.assign({},W[B],(Y[z]=G,Y)),d))};
_.P3=function(W,B,z){return W[B]?W[B][z]||null:null};
jZR=function(){if(b6y)return b6y();var W={};b6y=GU("PersistentEntityStoreDb",{objectStores:(W.EntityStore={addedAtVersion:1},W.EntityAssociationStore={addedAtVersion:2},W),shared:!1,upgrade:function(B,z){z(1)&&D_(xb(B,"EntityStore",{keyPath:"key"}),"entityType","entityType");z(2)&&(B=xb(B,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),D_(B,"byParentEntityKey","parentEntityKey"),D_(B,"byChildEntityKey","childEntityKey"))},
version:3});return b6y()};
fL8=function(W){return _.L4(jZR(),W)};
Zn=function(W){return window.Int32Array?new Int32Array(W):Array(W)};
XtQ=function(W){return _.L4(O6x(),W)};
KGu=function(W){return new rc("WRONG_DATA_TYPE",{encoderVersion:W})};
u3x=function(W){return W instanceof Error?new rc("UNKNOWN_ENCODE_ERROR",{originalMessage:W.message}):new rc("UNKNOWN_ENCODE_ERROR")};
egv=function(W){return W instanceof Error?new rc("UNKNOWN_DECODE_ERROR",{originalMessage:W.message}):new rc("UNKNOWN_DECODE_ERROR")};
mmQ=function(W,B){W=W instanceof rc?W:B(W);_.jy(W);throw W;};
xmt=function(W){W=(new TextEncoder).encode(W).subarray(0,16);var B=new Uint8Array(16);B.set(W);return B};
QZ2=function(W){var B=DmD[W];if(B)return B;_.Oc(new _.oX("Entity model not found.",{entityType:W}))};
_.kO=function(){yLv||(yLv=qz2());return yLv};
qz2=function(){var W,B,z;return _.T(function(G){if(G.nextAddress==1)return _.kA(G,2),G.yield(_.zU(),4);if(G.nextAddress!=2){W=G.yieldResult;if(!W||!_.IX()||typeof _.Yt.BroadcastChannel==="undefined")return G.return();B=new nNt;return G.return(new ld(W,B))}z=_.h6(G);z instanceof Error&&_.jy(z);return G.return()})};
_.CA=function(W,B){var z;return _.T(function(G){if(G.nextAddress==1){z=W.mutations;if(!z||z.length<=0)return G.return();B&&B.dispatch(_.Tl({type:"ENTITY_LOADED",payload:z}));return G.yield(NEk(z),2)}z.length=0;_.HG(G)})};
NEk=function(W){var B;return _.T(function(z){return z.nextAddress==1?z.yield(_.kO(),2):(B=z.yieldResult)?z.yield(_.I_(B,"readwrite",function(G){for(var Y={},d=_.A(W),E=d.next(),v={};!E.done;v={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},E=d.next())v.mutation$jscomp$4=E.value,v.mutation$jscomp$4.entityKey&&$mv(v.mutation$jscomp$4)&&(v.mutationEntityType$jscomp$3=(0,_.mP.getAnyKey)(v.mutation$jscomp$4.payload),E=void 0,v.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(E=function(c){return function(){return _.LGv(G,
c.mutation$jscomp$4.payload[c.mutationEntityType$jscomp$3],c.mutationEntityType$jscomp$3)}}(v)),v.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(E=function(c){return function(){return Umx(G,c.mutation$jscomp$4.entityKey)}}(v)),v.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(E=function(c){return function(){return M9T(G,c.mutation$jscomp$4.entityKey,c.mutation$jscomp$4.payload[c.mutationEntityType$jscomp$3],c.mutationEntityType$jscomp$3)}}(v)),E&&(Y[v.mutation$jscomp$4.entityKey]=
Y[v.mutation$jscomp$4.entityKey]?Y[v.mutation$jscomp$4.entityKey].then(E):E()));
return Do.all(Object.values(Y))}),0):z.return()})};
$mv=function(W){var B;W=(B=W.options)==null?void 0:B.persistenceOption;return W==="ENTITY_PERSISTENCE_OPTION_PERSIST"||W==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
Wx2=function(W,B){var z,G;_.T(function(Y){if(Y.nextAddress==1)return Y.yield(_.kO(),2);if(Y.nextAddress!=3)return(z=Y.yieldResult)?Y.yield(_.I_(z,"readonly",function(d){var E={},v=Object.keys(B).map(function(c){var J=B[c]?[].concat(_.u7(B[c])):[];return aLr(d,c,J,E)});
return Do.all(v).then(function(){return E})}),3):Y.return();
G=Y.yieldResult;Object.keys(G).length>0&&W.dispatch(RgQ(G));_.HG(Y)})};
aLr=function(W,B,z,G){return o_(W,B,z).then(function(Y){G[B]=BPr(z,Y)})};
BPr=function(W,B){if(B.length!==W.length)throw Error("Hf");return B.reduce(function(z,G,Y){z[W[Y]]=G;return z},{})};
YpX=function(W){var B=W.filter(function(Y){var d;return(Y==null?void 0:(d=Y.transferEntity)==null?void 0:d.transferState)==="TRANSFER_STATE_COMPLETE"}).length,z=W.filter(function(Y){var d;
return(Y==null?void 0:(d=Y.transferEntity)==null?void 0:d.transferState)==="TRANSFER_STATE_FAILED"}).length,G=W.filter(function(Y){var d;
return(Y==null?void 0:(d=Y.transferEntity)==null?void 0:d.transferState)&&zNT.includes(Y.transferEntity.transferState)});
if(!(B||G!=null&&G.length))return 0;B=_.G3D(G)+B;W=W.length-z;return W===0?0:Math.round(B*100/W)/100};
_.G3D=function(W){var B=[];B=B.concat.apply(B,_.u7(W.filter(function(d){return d.streamEntity}).map(function(d){var E=Object.assign({},d.streamEntity),v,c=(v=d.transferEntity)==null?void 0:v.transferState;
E.streamsProgress=E.streamsProgress||[];E.streamsProgress=E.streamsProgress.map(function(J){var g=Object.assign({},J);g.numBytesDownloaded=c==="TRANSFER_STATE_COMPLETE"?J.numTotalBytes:J.numBytesDownloaded;return g});
return E}).map(function(d){return d.streamsProgress})));
var z=W=0;B=_.A(B);for(var G=B.next();!G.done;G=B.next()){var Y=G.value;G=Number(Y.numBytesDownloaded);Y=Number(Y.numTotalBytes);z+=isNaN(G)?0:G;W+=isNaN(Y)?0:Y}return W===0?0:Math.round(z*100/W)/100};
dGu=function(W){if(!W||!W.expirationTimestamp||!W.action)return!1;var B=(0,_.Yb)()/1E3;return Number(W.expirationTimestamp)>=B};
hq=function(W){return W&&W.expirationTimestamp&&W.action?dGu(W)&&W.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.H3=function(W){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(W||"TRANSFER_STATE_UNKNOWN")};
pOR=function(W){var B=new CJ0;if(W!==void 0){var z=Math.ceil(Math.log2(W.length*4+2)/7);z=z===void 0?2:z;wc(B,10);B.submessagePosStack.push(B.pos);B.submessagePosStack.push(z);B.pos+=z;tq(B,W.length*1.2);z=sZx(W,B.buf.subarray(B.pos));B.pos+z>B.buf.length&&(tq(B,z),z=sZx(W,B.buf.subarray(B.pos)));B.pos+=z;W=B.submessagePosStack.pop();z=B.submessagePosStack.pop();for(var G=B.pos-z-W;W--;){var Y=W?128:0;B.view.setUint8(z++,G&127|Y);G>>=7}}B=new Uint8Array(B.buf.buffer,B.buf.byteOffset,B.pos);return(new TextDecoder("utf-8")).decode(B)};
_.FN=function(W){var B=0;W=_.A(W);for(var z=W.next(),G={};!z.done;G={transferState$jscomp$3:void 0},z=W.next()){var Y=z.value,d=void 0;z=(d=Y.streamEntity)!=null?d:{};d=void 0;G.transferState$jscomp$3=(d=Y.transferEntity)==null?void 0:d.transferState;d=Y=void 0;((Y=z)==null?0:(d=Y.streamsProgress)==null?0:d.length)&&z.streamsProgress.forEach(function(E){return function(v){v=Number(E.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?v.numTotalBytes:v.numBytesDownloaded);isFinite(v)&&(B+=v)}}(G))}return B};
AwQ=function(W){return W.some(function(B){var z;if(!(B==null?0:(z=B.transferEntity)==null?0:z.transferState)){var G;return!(B==null?0:(G=B.policyEntity)==null?0:G.action)||B.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return zNT.includes(B.transferEntity.transferState)})};
iS0=function(W,B){if(!B)return!1;if(_.r("of_pb_en_po_ks"))return!0;var z;W=(z=_.P3(W,"offlineVideoPolicy",_.sg(B,"offlineVideoPolicy")))!=null?z:void 0;return!!W&&hq(W)};
_.TPQ=function(W){var B=["TRANSFER_STATE_COMPLETE"];B=B===void 0?E3u:B;return W.filter(function(z){var G,Y;return B.includes((Y=(G=z.transferEntity)==null?void 0:G.transferState)!=null?Y:"TRANSFER_STATE_UNKNOWN")})};
v30=function(W,B){if(B){var z,G=(z=_.P3(W,"playbackData",_.sg(B,"playbackData")))!=null?z:null,Y;z=(Y=_.P3(W,"transfer",_.sg(B,"transfer")))!=null?Y:null;var d;Y=(d=_.P3(W,"offlineVideoStreams",_.sg(B,"offlineVideoStreams")))!=null?d:null;var E;W=(E=_.P3(W,"offlineVideoPolicy",_.sg(B,"offlineVideoPolicy")))!=null?E:null;if(G||z||Y||W)return{playbackDataEntity:G,transferEntity:z,streamEntity:Y,policyEntity:W}}};
_.SL=function(W){var B=W.playbackData;if(!B)return[];var z=[];B=_.A(Object.keys(B));for(var G=B.next();!G.done;G=B.next()){var Y=G.value;if(!cwy(W,_.c3(Y).entityId)&&(G=v30(W,_.c3(Y).entityId))){var d=void 0,E=void 0;Y=(E=Number((d=_.P3(W,"playbackData",Y))==null?void 0:d.streamDownloadTimestampSeconds))!=null?E:(0,_.Yb)();z.push({entity:G,streamDownloadTimestamp:Y})}}return z.sort(function(v,c){var J=v.streamDownloadTimestamp,g=c.streamDownloadTimestamp;return g===J?v.entity.streamEntity&&!c.entity.streamEntity?
1:-1:g-J}).map(function(v){return v.entity})};
wOy=function(W){return _.TPQ(_.SL(W))};
_.Vdu=function(W){return _.SL(W).filter(function(B){var z;if(((z=B.policyEntity)==null?0:z.action)&&B.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var G;if((G=B.transferEntity)==null?0:G.transferState){var Y;return zNT.includes((Y=B.transferEntity)==null?void 0:Y.transferState)}return!0})};
cwy=function(W,B){var z;return((z=_.P3(W,"downloadStatusEntity",_.sg(B,"downloadStatusEntity")))==null?void 0:z.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
JwR=function(W){var B;if(W==null?0:(B=W.playbackDataEntity)==null?0:B.key)return _.c3(W.playbackDataEntity.key).entityId;var z;if(W==null?0:(z=W.transferEntity)==null?0:z.key)return _.c3(W.transferEntity.key).entityId;var G;if(W==null?0:(G=W.streamEntity)==null?0:G.key)return _.c3(W.streamEntity.key).entityId;var Y;if(W==null?0:(Y=W.policyEntity)==null?0:Y.key)return _.c3(W.policyEntity.key).entityId};
tdR=function(W){var B=new Set,z;W=(z=W.mainDownloadsListEntity)==null?void 0:z[g3Q];var G;if(!(W==null?0:(G=W.downloads)==null?0:G.length))return B;var Y;W==null||(Y=W.downloads)==null||Y.forEach(function(d){(d==null?0:d.videoItem)&&B.add(d.videoItem)});
return B};
bd=function(W,B){if(B){var z=_.P3(W,"mainVideoEntity",_.sg(B,"mainVideoEntity")),G=_.P3(W,"downloadStatusEntity",_.sg(B,"downloadStatusEntity")),Y=_.P3(W,"ytMainChannelEntity",_.sg(B,"ytMainChannelEntity")),d={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};W=v30(W,B);G=(G==null?void 0:G.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.r("woffle_render_failed_download_state_ks")&&(G==null?void 0:G.downloadState)==="DOWNLOAD_STATE_FAILED";!W&&G&&(W=d);if(W&&z&&
Y)return Object.assign({},{videoEntity:z,channelEntity:Y},W)}};
Piv=function(W,B){return sH2(W,B)==="TRANSFER_STATE_COMPLETE"&&iS0(W,B)};
ZST=function(W,B){if(!B)return!1;var z;W=(z=_.P3(W,"playbackData",_.sg(B,"playbackData")))!=null?z:void 0;return!!W&&!!W.playerResponseJson};
sH2=function(W,B){if(!B)return"TRANSFER_STATE_UNKNOWN";var z=_.P3(W,"transfer",_.sg(B,"transfer"));if(z){var G;return(G=z.transferState)!=null?G:"TRANSFER_STATE_UNKNOWN"}z=_.P3(W,"offlineOrchestrationActionWrapperEntity",_.sg(B,"offlineOrchestrationActionWrapperEntity"));W=_.P3(W,"mainVideoEntity",_.sg(B,"mainVideoEntity"));return z||W?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
rwD=function(W,B){if(!B)return"TRANSFER_STATE_UNKNOWN";if(W=_.P3(W,"transfer",_.sg(B,"transfer"))){var z;return(z=W.transferState)!=null?z:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
k3k=function(W,B){return B&&(W=_.P3(W,"videoPlaybackPositionEntity",_.sg(B,"videoPlaybackPositionEntity")),W==null?0:W.lastPlaybackPositionSeconds)?Number(W.lastPlaybackPositionSeconds):0};
CiT=function(W,B){return l6D(W).some(function(z){var G;return(z==null?void 0:(G=z.mainPlaylistEntity)==null?void 0:G.playlistId)===B})};
o3T=function(W,B,z){var G=I6y(W,B);if(!G.length)return[];B=[];G=_.A(G);for(var Y=G.next();!Y.done;Y=G.next()){Y=Y.value;var d=bd(W,Y);z&&sH2(W,Y)!=="TRANSFER_STATE_COMPLETE"||d&&B.push(d)}return B};
I6y=function(W,B){if(!B)return[];var z=_.sg(B,"mainPlaylistEntity"),G;B=(G=W.mainPlaylistEntity)==null?void 0:G[z];G=[];if(B==null||!B.videos)return G;B=_.A(B.videos);for(z=B.next();!z.done;z=B.next()){z=z.value;var Y=void 0,d=void 0,E=void 0,v=(Y=W)==null?void 0:(d=Y.mainPlaylistVideoEntity)==null?void 0:(E=d[z])==null?void 0:E.video;v&&(z=_.c3(v).entityId)&&G.push(z)}return G};
hNu=function(W,B){if(B){var z=_.P3(W,"mainPlaylistEntity",_.sg(B,"mainPlaylistEntity")),G=_.P3(W,"mainPlaylistDownloadStateEntity",_.sg(B,"mainPlaylistDownloadStateEntity"));W=_.P3(W,"ytMainChannelEntity",_.sg(B,"ytMainChannelEntity"));if(G&&z)return Object.assign({},{mainPlaylistEntity:z,mainPlaylistDownloadStateEntity:G},!!W&&{channelEntity:W})}};
l6D=function(W){return HSD(W).sort(function(B,z){return z.addedTimestampMillis-B.addedTimestampMillis}).map(function(B){return B.downloadedPlaylistEntities})};
HSD=function(W){var B=W.mainPlaylistDownloadStateEntity,z=[];if(!B)return z;for(var G=_.A(Object.keys(B)),Y=G.next();!Y.done;Y=G.next()){var d=Y.value;Y=hNu(W,_.c3(d).entityId);var E=void 0;d=Number((E=B[d])==null?void 0:E.addedTimestampMillis);E=isNaN(d)?(0,_.Yb)():d;Y!==void 0&&z.push({downloadedPlaylistEntities:Y,addedTimestampMillis:E})}return z};
Fxv=function(W){var B,z=(B=W.mainPlaylistVideoEntity)!=null?B:{};return new Set(l6D(W).reduce(function(G,Y){G=G===void 0?[]:G;var d,E;Y==null||(d=Y.mainPlaylistEntity)==null||(E=d.videos)==null||E.forEach(function(v){var c;(v=(c=z[v])==null?void 0:c.video)&&G.push(v)});
return G},[]))};
SpR=function(W){return"downloadedMusicPlaylistEntities"in W};
bSr=function(W){return"mainPlaylistEntity"in W&&"mainPlaylistDownloadStateEntity"in W};
jH0=function(W){return"videoEntity"in W&&"channelEntity"in W};
f62=function(W){var B=W.musicPlaylistDownloadMetadataEntity,z=[];if(!B)return z;for(var G=_.A(Object.keys(B)),Y=G.next();!Y.done;Y=G.next()){Y=Y.value;a:{var d=W,E=_.c3(Y).entityId;if(E){var v=_.P3(d,"musicPlaylist",_.sg(E,"musicPlaylist"));d=_.P3(d,"musicPlaylistDownloadMetadataEntity",_.sg(E,"musicPlaylistDownloadMetadataEntity"));if(v&&d){v={musicPlaylistEntity:v,musicPlaylistDownloadStateEntity:d};break a}}v=void 0}d=void 0;Y=Number((d=B[Y])==null?void 0:d.addedTimestampMillis);Y=isNaN(Y)?(0,_.Yb)():
Y;v!==void 0&&z.push({downloadedMusicPlaylistEntities:v,addedTimestampMillis:Y})}return z};
OSX=function(W){var B=new Set;W=_.A(W);for(var z=W.next();!z.done;z=W.next())if(z=z.value,"musicPlaylistEntity"in z&&"musicPlaylistDownloadStateEntity"in z){z=_.A(z.musicPlaylistEntity.tracks);for(var G=z.next();!G.done;G=z.next())B.add(G.value)}return B};
XOT=function(W,B){if(B){var z=_.P3(W,"musicTrack",_.sg(B,"musicTrack")),G=_.P3(W,"musicArtist",_.sg(B,"musicArtist"))||{};if((W=v30(W,B))&&z&&G)return Object.assign({},{musicTrackEntity:z,musicArtistEntity:G},W)}};
KxQ=function(W){var B=W.musicTrackDownloadMetadataEntity,z=[];if(!B)return[];B=_.A(Object.keys(B));for(var G=B.next();!G.done;G=B.next()){var Y=G.value;G=XOT(W,_.c3(Y).entityId);var d=void 0;Y=Number((d=_.P3(W,"musicTrackDownloadMetadataEntity",Y))==null?void 0:d.addedTimestampMillis);d=isNaN(Y)?(0,_.Yb)():Y;G!==void 0&&z.push({downloadedMusicEntities:G,addedTimestampMillis:d})}return z};
mGy=function(W,B){if(!B)return[];if(Object.values(uh2).includes(B))return eNu(W,B);B=_.sg(B,"musicPlaylist");var z;W=(z=W.musicPlaylist)==null?void 0:z[B];z=[];if(W==null||!W.tracks)return z;W=_.A(W.tracks);for(B=W.next();!B.done;B=W.next())(B=_.c3(B.value).entityId)&&z.push(B);return z};
eNu=function(W,B){var z=new Set,G=f62(W).map(function(d){return d.downloadedMusicPlaylistEntities});
G=OSX(G);G=_.A(G);for(var Y=G.next();!Y.done;Y=G.next())(Y=_.c3(Y.value).entityId)&&z.add(Y);return xGR(W).downloadedMusicEntities.filter(function(d){var E;if((E=d.musicTrackEntity)!=null&&E.videoId){d=d.musicTrackEntity;if(E=B==="PPOM"?!0:!z.has(d.videoId))b:switch(d=d.musicVideoType,B){case "PPSE":E=d==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:E=d!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}d=E}else d=!1;return d}).map(function(d){var E;
return(E=d.musicTrackEntity)==null?void 0:E.videoId})};
xGR=function(W){var B=KxQ(W).sort(function(z,G){return G.addedTimestampMillis-z.addedTimestampMillis}).map(function(z){return"downloadedMusicEntities"in z?z.downloadedMusicEntities:SpR(z)?z.downloadedMusicPlaylistEntities:{}});
W=f62(W).sort(function(z,G){return G.addedTimestampMillis-z.addedTimestampMillis}).map(function(z){return"downloadedMusicEntities"in z?z.downloadedMusicEntities:SpR(z)?z.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:B,downloadedMusicPlaylistEntities:W}};
QH2=function(W,B){B=_.eD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?mGy(W,B):I6y(W,B);if(!B.length)return"TRANSFER_STATE_UNKNOWN";B=B.map(function(z){return rwD(W,z)});
return DGr(B)};
DGr=function(W){var B=new Set(W);if(B.has("TRANSFER_STATE_FAILED")&&B.size===1)return"TRANSFER_STATE_FAILED";B.delete("TRANSFER_STATE_FAILED");if(B.has("TRANSFER_STATE_UNKNOWN")&&B.size===1)return"TRANSFER_STATE_PRE_TRANSFER";B.delete("TRANSFER_STATE_UNKNOWN");if(B.has("TRANSFER_STATE_PRE_TRANSFER")&&B.size===1||B.size===0)return"TRANSFER_STATE_PRE_TRANSFER";W=B.has("TRANSFER_STATE_TRANSFERRING");B=B.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return W||B?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
jL=function(W){var B=W.mainVideoDownloadStateEntity,z=[];if(!B)return[];B=_.A(Object.keys(B));for(var G=B.next();!G.done;G=B.next()){var Y=G.value;if(!cwy(W,_.c3(Y).entityId)){G=bd(W,_.c3(Y).entityId);var d=void 0,E=void 0;Y=(E=Number((d=_.P3(W,"mainVideoDownloadStateEntity",Y))==null?void 0:d.addedTimestampMillis))!=null?E:(0,_.Yb)();G!==void 0&&z.push({downloadedVideoEntities:G,addedTimestampMillis:Y})}}return z};
ywr=function(W){return jL(W).sort(function(B,z){return z.addedTimestampMillis-B.addedTimestampMillis}).map(function(B){return B.downloadedVideoEntities})};
_.n3t=function(W){var B=Fxv(W),z=_.fA(W),G=tdR(W),Y=jL(W).filter(function(E){var v,c;if((E==null?void 0:(v=E.downloadedVideoEntities)==null?void 0:(c=v.transferEntity)==null?void 0:c.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var J,g;E=E==null?void 0:(J=E.downloadedVideoEntities)==null?void 0:(g=J.videoEntity)==null?void 0:g.key;return _.r("kevlar_use_library_entity")?E&&(G.has(E)||z[E]):E&&!B.has(E)}),d=HSD(W).filter(function(E){return QH2(W,E.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.u7(Y),_.u7(d)).sort(function(E,v){return v.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return qpD(E)})};
NPt=function(W,B){if(B&&iS0(W,B)){var z,G,Y=(G=(z=_.P3(W,"playbackData",_.sg(B,"playbackData")))!=null?z:void 0)==null?void 0:G.playerResponseJson;if(Y){try{var d=JSON.parse(Y);var E=_.P3(W,"transfer",_.sg(B,"transfer")),v=k3k(W,B);v&&(d=Object.assign({},d,{playerConfig:Object.assign({},d.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+v*1E3}}})}));d.cotn=E==null?void 0:E.cotn}catch(c){}return d}}};
_.LxR=function(W){var B,z,G;W=(G=(z=((B=W.downloadsPageViewConfigurationEntity)!=null?B:{})[_.Og])==null?void 0:z.smartDownloadsOptInBannerVisibility)!=null?G:{};var Y;return(Y=_.k(W,$Gv))!=null?Y:{}};
_.fA=function(W){var B,z,G;W=(G=(z=((B=W.mainDownloadsListEntity)!=null?B:{})[_.UGD])==null?void 0:z.downloads)!=null?G:[];B={};z=_.A(W);for(G=z.next();!G.done;G=z.next())W=void 0,B[(W=G.value.videoItem)!=null?W:""]=!0;return B};
MdR=function(W){var B=_.fA(W);if(Object.keys(B).length===0)return!1;var z=W.mainVideoEntity;if(!z)return!0;z=_.A(Object.keys(z));for(var G=z.next();!G.done;G=z.next()){G=G.value;var Y=_.c3(G).entityId;if(B[G]&&!cwy(W,Y))return!1}return!0};
_.XN=function(W){var B=_.fA(W);return jL(W).sort(function(z,G){return z.addedTimestampMillis-G.addedTimestampMillis}).map(function(z){return z.downloadedVideoEntities}).filter(function(z){var G;
return(z=z==null?void 0:(G=z.videoEntity)==null?void 0:G.key)&&!!B[z]})};
_.RNT=function(W){var B,z,G;W=(G=(z=((B=W.downloadsPageViewConfigurationEntity)!=null?B:{})[_.Og])==null?void 0:z.downloadsUpsellBannerVisibility)!=null?G:{};var Y;return(Y=_.k(W,a6X))!=null?Y:{}};
qpD=function(W){return"downloadedVideoEntities"in W?W.downloadedVideoEntities:"downloadedPlaylistEntities"in W?W.downloadedPlaylistEntities:{}};
Wtk=function(W){var B=_.fA(W),z=Fxv(W),G=jL(W).filter(function(Y){var d,E;return(Y=Y==null?void 0:(d=Y.downloadedVideoEntities)==null?void 0:(E=d.videoEntity)==null?void 0:E.key)&&!B[Y]&&!z.has(Y)});
W=HSD(W);return[].concat(_.u7(G),_.u7(W)).sort(function(Y,d){return d.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return qpD(Y)})};
_.KA=function(W){if(!_.r("kevlar_use_library_entity"))return Wtk(W);var B=jL(W).filter(function(G){var Y,d;if(Y=G=G==null?void 0:(Y=G.downloadedVideoEntities)==null?void 0:(d=Y.videoEntity)==null?void 0:d.key){var E,v,c;Y=((v=(E=W.mainDownloadsListEntity)==null?void 0:E[g3Q])==null?0:(c=v.downloads)==null?0:c.length)?tdR(W).has(G):!1}return Y}),z=HSD(W);
return[].concat(_.u7(B),_.u7(z)).sort(function(G,Y){return Y.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return qpD(G)})};
BWR=function(W){var B=_.fA(W),z=Fxv(W);return ywr(W).filter(function(G){var Y;return(G=G==null?void 0:(Y=G.videoEntity)==null?void 0:Y.key)&&!B[G]&&!z.has(G)})};
z7Q=function(W){if(!_.r("kevlar_use_library_entity"))return BWR(W);var B=_.fA(W),z=tdR(W);return ywr(W).filter(function(G){var Y;return(G=G==null?void 0:(Y=G.videoEntity)==null?void 0:Y.key)&&!B[G]&&z.has(G)})};
G1r=function(W,B){B=_.sg(B,"settingEntity");var z,G,Y;return!!((Y=(G=((z=W.settingEntity)!=null?z:{})[B])==null?void 0:G.settingOptionValue)!=null?Y:{}).boolValue};
_.ud=function(W){var B=_.XN(W);if(AwQ(B))return 0;var z=[];B=_.A(B);for(var G=B.next();!G.done;G=B.next()){G=G.value;var Y=void 0,d=void 0;if((Y=G)==null?0:(d=Y.videoEntity)==null?0:d.key)Y=_.c3(G.videoEntity.key).entityId,G=W,Y=_.sg(Y,"mainVideoDownloadStateEntity"),G=_.P3(G,"mainVideoDownloadStateEntity",Y),(G=Number(G==null?void 0:G.addedTimestampMillis))&&z.push(G)}return Math.max.apply(Math,_.u7(z))};
_.eL=function(W){return W.ui.richGridMiniMode};
_.m8=function(W){return W.ui.richGridItemsPerRow};
_.Yrk=function(W){return W.ui.richGridSlimItemsPerRow};
_.d1t=function(W){return W.ui.guideIsExpanded};
_.xO=function(W){return W.ui.miniplayerIsActive};
pz2=function(W){return W.ui.singleOptionSurveyIsActive};
_.Dn=function(W){var B;return((B=W.ui)==null?void 0:B.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.A5x=function(W){return _.Dn(W)==="WEB_PAGE_TYPE_WATCH"};
_.iIu=function(W){return _.Dn(W)==="WEB_PAGE_TYPE_SHORTS"};
_.EUr=function(W){return W.ui.inlinePreviewIsActive};
_.TWt=function(W){return W.ui.inlinePreviewIsEnabled};
_.vUv=function(W){return W.ui.miniplayerPlaybackState};
_.Qg=function(W){return W.ui.isOnline};
_.c5y=function(W){return W.ui.frostedGlassMode};
_.yg=function(W,B){return sH2(W.entities,B)};
_.qM=function(W,B){return QH2(W.entities,B)};
wzk=function(W,B){var z;if(B){var G;W=(G=_.P3(W.entities,"offlineVideoPolicy",_.sg(B,"offlineVideoPolicy")))==null?void 0:G.action}else W=void 0;return(z=W)!=null?z:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
V8r=function(W,B){var z;B?(W=_.P3(W.entities,"offlineVideoPolicy",_.sg(B,"offlineVideoPolicy")),W=Number(W==null?void 0:W.expirationTimestamp)):W=void 0;return(z=W)!=null?z:0};
_.J5T=function(W){return _.SL(W.entities).length};
gUk=function(W,B){return bd(W.entities,B)};
t82=function(W,B){return hNu(W.entities,B)};
nA=function(W,B){return(W=bd(W.entities,B))?_.G3D([W]):0};
_.sqQ=function(W,B){var z=_.eD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(z){var G=W.entities;var Y=mGy(G,B);if(Y.length){var d=[];Y=_.A(Y);for(var E=Y.next();!E.done;E=Y.next())(E=XOT(G,E.value))&&d.push(E);G=d}else G=[]}else G=o3T(W.entities,B);var v;if(z){var c=W.entities;B?(B=_.sg(B,"musicPlaylist"),c=(v=c.musicPlaylist)==null?void 0:v[B],v=c!=null&&c.tracks?c.tracks.length:0):v=0}else v=W.entities,B?(B=_.sg(B,"mainPlaylistEntity"),v=(c=v.mainPlaylistEntity)==null?void 0:c[B],v=v!=null&&v.videos?
v.videos.length:0):v=0;return G.length!==v?0:G?YpX(G):0};
_.P1x=function(W){return W.download.isLeaderTab};
_.ZIy=function(W,B,z){if(!B&&z){var G=W.entities;if(z){var Y=pOR(z),d,E;B=(E=(d=_.P3(G,"offlineabilityEntity",_.sg(Y,"offlineabilityEntity")))==null?void 0:d.addToOfflineButtonState)!=null?E:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else B="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else d=W.entities,B?(E=pOR(B),B=(Y=(G=_.P3(d,"offlineabilityEntity",_.sg(E,"offlineabilityEntity")))==null?void 0:G.addToOfflineButtonState)!=null?Y:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):B="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return B};
r5x=function(W,B){W=W.entities;if(B){B=pOR(B);var z,G;B=(G=(z=_.P3(W,"offlineabilityEntity",_.sg(B,"offlineabilityEntity")))==null?void 0:z.addToOfflineButtonState)!=null?G:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else B="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return B};
_.k10=function(W){var B=W.entities;W=_.Qg(W);var z=G1r(B,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.r("kevlar_modern_downloads_page")&&z)var G=!1;else{var Y,d;B=(d=(Y=((G=B.downloadsPageViewConfigurationEntity)!=null?G:{})[_.Og])==null?void 0:Y.smartDownloadsOptInBannerVisibility)!=null?d:{};G=W?!!B.visibleWithConnection:!!B.visibleWithoutConnection}return G};
_.l$Q=function(W){return G1r(W.entities,"SMART_DOWNLOADS_ENABLED")};
_.C1y=function(W){return MdR(W.entities)};
I$X=function(W){return _.XN(W.entities).every(function(B){var z;return(B==null?void 0:(z=B.transferEntity)==null?void 0:z.transferState)&&!zNT.includes(B.transferEntity.transferState)})};
_.oUR=function(W){var B,z,G,Y=(G=(z=((B=W.entities.downloadsPageViewConfigurationEntity)!=null?B:{})[_.Og])==null?void 0:z.downloadsUpsellBannerVisibility)!=null?G:{};return _.Qg(W)?!!Y.visibleWithConnection:!!Y.visibleWithoutConnection};
_.h7t=function(W,B){return cwy(W.entities,B)};
HIr=function(W,B){if(B){var z,G;W=(G=(z=_.P3(W.entities,"downloadStatusEntity",_.sg(B,"downloadStatusEntity")))==null?void 0:z.downloadState)!=null?G:"DOWNLOAD_STATE_UNKNOWN"}else W="DOWNLOAD_STATE_UNKNOWN";return W};
NM=function(W,B){return k3k(W.entities,B)};
jqy=function(W){W=Ft2(W);var B=W.hours===void 0?0:W.hours,z=W.minutes===void 0?0:W.minutes,G=W.seconds===void 0?0:W.seconds,Y=B>0;W=[];Y&&(B=Srr(B),W.push(B));B=Y;B=B===void 0?!1:B;z=(["af","be","lt"].includes($O)||B)&&z<10?bIQ().format(z):(new Intl.NumberFormat("en-u-nu-latn")).format(z);W.push(z);z=bIQ().format(G);W.push(z);z=":";"da fi id si sr sr-Latn".split(" ").includes($O)&&(z=".");return W.join(z)};
_.OIR=function(W){W=Ft2(W);var B=W.hours===void 0?0:W.hours,z=W.minutes===void 0?0:W.minutes,G=W.seconds===void 0?0:W.seconds;W=[];if(B>0){var Y=f$k().format({hours:B});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes($O)||B>9999)Y=Y.replace(B.toString(),Srr(B)),$O==="km"&&(Y=Y.replace(".",","));W.push(Y)}z>0&&W.push(f$k().format({minutes:z}));G>0&&W.push(f$k().format({seconds:G}));B="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");z=$O=="am"?"{0}\u1363 ":$O=="fa"?"{0}\u060c\u200f ":
$O=="my"?"{0} - ":$O=="ne"?"{0},":$O=="th"?"{0} ":$O=="ur"?"{0}\u060c ":$O=="ar"||$O=="ar-XB"?"{0} \u0648":$O=="ja"||$O=="zh-CN"||$O=="zh-HK"||$O=="zh-TW"?"{0}\u3001":"{0}, ";G=$O=="am"?"\u1363 ":$O=="fa"?"\u060c\u200f ":$O=="my"?" - ":$O=="th"?" ":$O=="ur"?"\u060c ":$O=="ar"||$O=="ar-XB"?" \u0648":$O=="ja"||$O=="zh-CN"||$O=="zh-HK"||$O=="zh-TW"?"\u3001":", ";Y=$O=="am"?" \u12a5\u1293 {0}":$O=="as"?" \u0986\u09f0\u09c1 {0}":$O=="az"?" v\u0259 {0}":$O=="bn"?" \u098f\u09ac\u0982 {0}":$O=="cs"?" a\u00a0{0}":
$O=="de"?" und {0}":$O=="el"?" \u03ba\u03b1\u03b9 {0}":$O=="eu"?" eta {0}":$O=="fa"?"\u060c \u0648 {0}":$O=="fil"?", at {0}":$O=="gu"?" \u0a85\u0aa8\u0ac7 {0}":$O=="hi"?", \u0914\u0930 {0}":$O=="hu"?" \u00e9s {0}":$O=="hy"?" \u0587 {0}":$O=="id"?", dan {0}":$O=="iw"?" \u05d5-{0}":$O=="ja"?"\u3001{0}":$O=="ka"?" \u10d3\u10d0 {0}":$O=="km"?" \u1793\u17b7\u1784 {0}":$O=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":$O=="ko"?" \ubc0f {0}":$O=="ky"?" \u0436\u0430\u043d\u0430 {0}":$O=="lt"?" ir {0}":$O==
"lv"?" un {0}":$O=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":$O=="mr"?" \u0906\u0923\u093f {0}":$O=="ms"?" dan {0}":$O=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":$O=="ne"?" \u0930 {0}":$O=="or"?", \u0b13 {0}":$O=="pa"?" \u0a05\u0a24\u0a47 {0}":$O=="ro"?" \u0219i {0}":$O=="si"?", \u0dc3\u0dc4 {0}":$O=="sk"?" a {0}":$O=="sl"?" in {0}":$O=="sq"?" dhe {0}":$O=="sv"?" och {0}":$O=="sw"?" na {0}":$O=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":$O=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
$O=="th"?" \u0e41\u0e25\u0e30{0}":$O=="tr"?" ve {0}":$O=="ur"?"\u060c \u0627\u0648\u0631 {0}":$O=="uz"?" va {0}":$O=="vi"?" v\u00e0 {0}":$O=="zh-HK"?"\u53ca{0}":$O=="zu"?", ne-{0}":$O=="af"||$O=="nl"?" en {0}":$O=="ar"||$O=="ar-XB"?" \u0648{0}":$O=="be"||$O=="uk"?" \u0456 {0}":$O=="en-GB"||$O=="en-IN"?" and {0}":$O=="en"||$O=="en-XA"?", and {0}":$O=="et"||$O=="fi"?" ja {0}":$O=="fr"||$O=="fr-CA"?" et {0}":$O=="zh-CN"||$O=="zh-TW"?"\u548c{0}":$O=="da"||$O=="is"||$O=="no"?" og {0}":$O=="es"||$O=="es-419"||
$O=="es-US"?" y {0}":$O=="kk"||$O=="lo"||$O=="mn"?", {0}":$O=="bg"||$O=="mk"||$O=="ru"||$O=="sr"?" \u0438 {0}":$O=="gl"||$O=="it"||$O=="pt-BR"||$O=="pt-PT"?" e {0}":" i {0}";var d=$O=="am"?"{0} \u12a5\u1293 {1}":$O=="as"?"{0} \u0986\u09f0\u09c1 {1}":$O=="az"?"{0} v\u0259 {1}":$O=="bn"?"{0} \u098f\u09ac\u0982 {1}":$O=="de"?"{0} und {1}":$O=="el"?"{0} \u03ba\u03b1\u03b9 {1}":$O=="eu"?"{0} eta {1}":$O=="fa"?"{0} \u0648 {1}":$O=="fil"?"{0} at {1}":$O=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":$O=="hi"?"{0} \u0914\u0930 {1}":
$O=="hu"?"{0} \u00e9s {1}":$O=="hy"?"{0} \u0587 {1}":$O=="iw"?"{0} \u05d5-{1}":$O=="ja"?"{0}\u3001{1}":$O=="ka"?"{0} \u10d3\u10d0 {1}":$O=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":$O=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":$O=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":$O=="ko"?"{0} \ubc0f {1}":$O=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":$O=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":$O=="lt"?"{0} ir {1}":$O=="lv"?"{0} un {1}":$O=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":$O=="mn"?"{0}, {1}":$O==
"mr"?"{0} \u0906\u0923\u093f {1}":$O=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":$O=="ne"?"{0} \u0930 {1}":$O=="or"?"{0} \u0b13 {1}":$O=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":$O=="ro"?"{0} \u0219i {1}":$O=="si"?"{0} \u0dc3\u0dc4 {1}":$O=="sl"?"{0} in {1}":$O=="sq"?"{0} dhe {1}":$O=="sv"?"{0} och {1}":$O=="sw"?"{0} na {1}":$O=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":$O=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":$O=="th"?"{0}\u0e41\u0e25\u0e30{1}":$O=="tr"?"{0} ve {1}":$O=="ur"?
"{0} \u0627\u0648\u0631 {1}":$O=="uz"?"{0} va {1}":$O=="vi"?"{0} v\u00e0 {1}":$O=="zh-HK"?"{0}\u53ca{1}":$O=="zu"?"{0} ne-{1}":$O=="af"||$O=="nl"?"{0} en {1}":$O=="ar"||$O=="ar-XB"?"{0} \u0648{1}":$O=="be"||$O=="uk"?"{0} \u0456 {1}":$O=="cs"||$O=="sk"?"{0} a\u00a0{1}":$O=="et"||$O=="fi"?"{0} ja {1}":$O=="fr"||$O=="fr-CA"?"{0} et {1}":$O=="id"||$O=="ms"?"{0} dan {1}":$O=="zh-CN"||$O=="zh-TW"?"{0}\u548c{1}":$O=="da"||$O=="is"||$O=="no"?"{0} og {1}":$O=="es"||$O=="es-419"||$O=="es-US"?"{0} y {1}":$O==
"bg"||$O=="mk"||$O=="ru"||$O=="sr"?"{0} \u0438 {1}":$O=="en"||$O=="en-GB"||$O=="en-IN"||$O=="en-XA"?"{0} and {1}":$O=="gl"||$O=="it"||$O=="pt-BR"||$O=="pt-PT"?"{0} e {1}":"{0} i {1}";$O==="sq"?(Y=Y.replace("dhe","e"),d=d.replace("dhe","e")):$O==="th"?(G=G.replace("{0}"," {0}"),d=d.replace("{0}","{0} "),d=d.replace("{1}"," {1}")):$O==="ne"?G=",":$O==="zh-CN"?G="":B.includes($O)&&(G=" ");return W.length<2?W.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($O)?
W.length===2?d.replace("{0}",W[0]).replace("{1}",W[1]):z.replace("{0}",W[0])+W.slice(1,-1).join(G)+Y.replace("{0}",W[W.length-1]):W.join(G)};
Ft2=function(W){var B=W.hours||0,z=W.minutes||0,G=W.seconds||0;B=G+z*60+B*3600+(W.days||0)*86400+(W.weeks||0)*604800+(W.months||0)*2629800+(W.years||0)*31557600;if(B<=0)return{hours:0,minutes:0,seconds:0};W=B;B=Math.floor(W/3600);W%=3600;z=Math.floor(W/60);G=Math.floor(W%60);return{hours:B,minutes:z,seconds:G}};
Srr=function(W){W=(new Intl.NumberFormat("en-u-nu-latn")).format(W);var B=["fr"],z="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($O)?W.replace(",","\u00a0"):B.includes($O)?W.replace(",","\u202f"):z.includes($O)?W.replace(",","."):W};
bIQ=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
f$k=function(){Xz2||(LA=Ktx,Xz2=new uI2);return Xz2};
e7T=function(W){try{return(new _.Ug(5)).format(W)}catch(B){}};
MM=function(W){return{thumbnailOverlayDownloadingRenderer:{state:W}}};
m1Q=function(W){if(W=e7T(W))return{thumbnailOverlaySidePanelRenderer:{text:_.Aq(W),icon:{iconType:"PLAYLISTS"}}}};
x1Q=function(){var W=_.kq("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Aq(W),icon:{iconType:"PLAY_ALL"}}}};
D1u=function(W){W=_.a_(W,2);return $O!=="ru"&&$O!=="es_419"&&$O!=="es-419"&&$O!=="es"&&$O!=="es_US"&&$O!=="es-US"&&$O!=="fr"&&$O!=="pl"&&$O!=="it"&&$O!=="nl"&&$O!=="uk"&&$O!=="fr_CA"&&$O!=="fr-CA"||W===""?W:W[0].toLocaleUpperCase()+W.substring(1)};
y5u=function(W){return function(B){var z=W(),G=_.a_(B,z.dateFormat);B=_.a_(B,z.timeFormat);var Y=Qq8.DATETIMEFORMATS[z.joinerStyle];Y=Y.replace(/'(?!')/g,"");Y=Y.replace("{0}",B);Y=Y.replace("{1}",G);return z.capitalize(Y)}};
qrX=function(W){return W?typeof W.seconds==="string"&&(W.nanos===void 0||typeof W.nanos==="number"):!1};
nUX=function(W){return new Date(Number(W.seconds)*1E3+(W.nanos||0)*1E-6)};
_.a_=function(W,B){if(typeof W.getTime==="function")W={date:W};else if(qrX(W))W={date:nUX(W)};else if(typeof qrX(W.timestamp)&&typeof W.i18nInternalSecondsEastOfUtc==="number")W={date:nUX(W.timestamp),timeZone:R_(-W.i18nInternalSecondsEastOfUtc/60)};else throw Error("If`"+JSON.stringify(W));var z=W;W=z.date;z=z.timeZone;B=NW2(B).format(W,z);$O==="zh-TW"&&(W=z?Number(NW2("H").format(W,z)):W.getHours(),B=W<5?B.replace("\u4e0a\u5348","\u51cc\u6668"):W<8?B.replace("\u4e0a\u5348","\u65e9\u4e0a"):W<12?
B.replace("\u4e0a\u5348","\u4e0a\u5348"):W<13?B.replace("\u4e0b\u5348","\u4e2d\u5348"):W<19?B.replace("\u4e0b\u5348","\u4e0b\u5348"):B.replace("\u4e0b\u5348","\u665a\u4e0a"));return B};
NW2=function(W){if($1D.has(W))return $1D.get(W);var B=LtX(W);B=U1R(B);M8X!==!0&&(M8X=!0);a$R=!0;a$R=!1;B=new Wg(B,Qq8);$1D.set(W,B);return B};
LtX=function(W){return(new Wg(W,Qq8)).patternParts_.map(function(B){return B.type===0?"'"+B.text+"'":B.text}).join("")};
U1R=function(W){return $O==="en"||$O==="es_US"||$O==="es-US"?W:W.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(B,z,G){return"H".repeat(z.length)+G})};
d80=function(W,B){R7Q||(LA=Ktx,R7Q=new Wmr);var z=R7Q;a:if(W=B0R(W),B=B0R(B||new Date),W>B)z=W.getTime()-B.getTime()>6048E5?_.a_(W,1):zPQ(W);else{for(var G=0;Grv(W,12*(G+1))<B;)++G;if(G>0)z=z.format(-G,0);else{for(G=0;Grv(W,G+1)<B;)++G;if(G>0)z=z.format(-G,2);else{W=B.getTime()-W.getTime();B=_.A(Y6t);for(G=B.next();!G.done;G=B.next()){G=G.value;var Y=G.unit,d=Math.floor(W/G.unitDuration);if(d>=(G.threshold===void 0?1:G.threshold)){z=z.format(-d,Y);break a}}z=z.format(-0,7)}}}return z};
B0R=function(W){if(typeof W.getTime==="function")return W;if(qrX(W))return nUX(W);throw Error("Jf`"+JSON.stringify(W));};
Grv=function(W,B){for(var z=0,G;;++z)if(G=new Date(W.getFullYear(),W.getMonth()+B,W.getDate()-z,W.getHours(),W.getMinutes(),W.getSeconds()),G.getMonth()===(W.getMonth()+B)%12)return G};
_.Bg=function(W){return{runs:[{text:W}]}};
_.zR=function(W){if(W&&W.simpleText)return W.simpleText;var B="";if(W&&W.runs)for(var z=0;z<W.runs.length;z++)W.runs[z].text&&(B+=W.runs[z].text);return B};
Aur=function(W,B,z,G){return W.videoEntity&&!W.policyEntity&&z!=="DOWNLOAD_STATE_FAILED"?[MM("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:hq(W.policyEntity)&&B!=="TRANSFER_STATE_FAILED"&&B!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?B==="TRANSFER_STATE_PAUSED_BY_USER"?[MM("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.H3(B)?[MM("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:W.videoEntity.lengthSeconds?p7t(W.videoEntity.lengthSeconds,G):[]:
[MM("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
p7t=function(W,B){var z=[{thumbnailOverlayTimeStatusRenderer:{text:_.Aq(jqy({seconds:W})),style:"DEFAULT"}}];B&&(W=B<=0||W<=0?0:B>=W?100:Math.ceil(B*100/W),W>0&&z.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:W}}));return z};
iLx=function(W,B,z,G,Y){if(B==="TRANSFER_STATE_UNKNOWN"||!W)return{};if(_.H3(B)||B==="TRANSFER_STATE_PRE_TRANSFER")var d=[MM("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var E,v;if(B==="TRANSFER_STATE_COMPLETE"&&((E=W.mainPlaylistEntity)==null?0:(v=E.videos)==null?0:v.length)){if(_.r("web_modern_collections_v2")){var c;var J=(d=W.mainPlaylistEntity)==null?void 0:(c=d.videos)==null?void 0:c.length;d=(d=e7T(J))?{thumbnailOverlayBottomPanelRenderer:{text:_.Aq(d),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var g;d=m1Q((J=W.mainPlaylistEntity)==null?void 0:(g=J.videos)==null?void 0:g.length)}var t;d=[x1Q(),Object.assign({},(t=d)!=null?t:{})]}else d=[]}t=d;a:if(B==="TRANSFER_STATE_PRE_TRANSFER")z=id(_.kq("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(B==="TRANSFER_STATE_TRANSFER_IN_QUEUE")z=id(_.kq("WAITING_TO_DOWNLOAD"));else if(_.H3(B))z=Math.floor(z*100).toString(),z=id(_.kq("DOWNLOADING_PERCENT",{percent:z},"Downloading... "+z+"%"));else{if(G&&(_.r("playlist_is_offline_selector_killswitch")&&
(Y=_.dO().resolve(_.ng).isNetworkAvailable()),Y)){z=cLR(_.kq("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),TEt(G));break a}z=void 0}B=B==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.kq("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},t.length?{thumbnailOverlays:t}:{},z?{viewPlaylistText:z}:{viewPlaylistText:_.Bg("")},B.length?{badges:B}:{})};
Ez0=function(W,B,z,G,Y,d){if(B==="TRANSFER_STATE_UNKNOWN"||!W)return{};if(G==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var E=Aur(W,B,G);if(W.videoEntity&&!W.policyEntity&&G!=="DOWNLOAD_STATE_FAILED"){var v=_.kq("WAITING_TO_DOWNLOAD");if(v)return{shortViewCountText:_.Bg(v),publishedTimeText:void 0,thumbnailOverlays:E}}if(!hq(W.policyEntity)){d=W.policyEntity&&!dGu(W.policyEntity)?_.kq("DOWNLOAD_EXPIRED",{},"Download expired"):
_.kq("TRANSFER_FAILED",{},"Download failed");var c;if((c=W.policyEntity)==null?0:c.shortMessageForDisabledAction)d=W.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:id(d),publishedTimeText:void 0,thumbnailOverlays:E}}if(B==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Bg(_.kq("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:E};if(B==="TRANSFER_STATE_FAILED"||B==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Bg(_.kq("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:E};if(B==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(c=_.kq("WAITING_TO_DOWNLOAD"),G==="DOWNLOAD_STATE_PAUSED"&&(c=_.kq("DOWNLOAD_PAUSED",{},"Download paused")),c))return{shortViewCountText:_.Bg(c),publishedTimeText:void 0,thumbnailOverlays:E};if(_.H3(B))return W=Math.floor(z*100).toString(),{shortViewCountText:_.Bg(_.kq("DOWNLOADING_PERCENT",{percent:W},"Downloading... "+W+"%")),publishedTimeText:void 0,thumbnailOverlays:E};B=void 0;W.videoEntity.publishedTimestampMillis&&
(B=new Date,Y&&(B=new Date(Y)),B=id(d80(new Date(Number(W.videoEntity.publishedTimestampMillis)),B)));Y=[];_.r("kevlar_woffle_badge_killswitch")||(Y=[{metadataBadgeRenderer:{label:_.kq("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var J;W=id((J=W.videoEntity.localizedStrings)==null?void 0:J.viewCount);return Object.assign({},d?{shortViewCountText:void 0}:{shortViewCountText:W},d?{}:{publishedTimeText:B},{badges:Y,thumbnailOverlays:E})};
vzx=function(W,B){W=W===void 0?_.T0Q:W;switch(B.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:B.payload.playlistId,inviteLinkURL:B.payload.inviteLinkUrl};default:return W}};
w7k=function(W,B){W=W===void 0?_.cux:W;switch(B.type){case "SET_CURRENT_FORM_ID":return B=B.payload.formId,W.currentFormId===B?W:{currentFormId:B,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var z=B.payload;B=z.groupId;z=z.command;if(W.currentFormId){var G=Object.assign({},W.commandsMap);G[B]=z;W=Object.assign({},W,{commandsMap:G})}return W;case "RESET_COMMAND_MAP":return Object.assign({},W,{commandsMap:{}});default:return W}};
nzT=function(W,B){W=W===void 0?_.q6x:W;switch(B.type){case "UPDATE_CANVAS_MODE":return Object.assign({},W,{currentMode:B.payload.currentMode});default:return W}};
$8x=function(W,B){W=W===void 0?_.N0r:W;switch(B.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},W,{guideIsExpanded:B.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},W,{scrollAtTop:B.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},W,{guideIsVisibleButNotPersistent:B.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},W,{miniplayerIsActive:B.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},W,{singleOptionSurveyIsActive:B.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},W,{slimlineSurveyRatingSelectedIndex:B.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},W,{richGridMiniMode:B.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},W,{richGridItemsPerRow:B.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},W,{richGridSlimItemsPerRow:B.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},W,{richGridContainerWidth:B.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},W,{richGridStyle:B.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},W,{currentPageType:B.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},W,{inlinePreviewIsActive:B.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},W,{inlinePreviewIsEnabled:B.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},W,{darkModeIsEnabled:B.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
W,{miniplayerPlaybackState:B.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},W,{tabGesturesIsActive:B.payload});case "SET_ONLINE_STATUS":return Object.assign({},W,{isOnline:B.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},W,{chipBarIsSticky:B.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},W,{frostedGlassMode:B.payload});default:return W}};
Lm8=function(){return _.r("kevlar_disable_theater_mode_persistence")?!1:_.md("START_IN_THEATER_MODE")};
Mxr=function(W,B){W=W===void 0?_.U8y:W;switch(B.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},W,{transcription:B.payload});case "SET_OVERLAY_STATE":return Object.assign({},W,{overlay:B.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return W}};
APt=function(){return Z2(Object.assign({},{continuation:asy,download:RP0,canvas:nzT,reportChannelAbuse:Why,share:BNT,talkToRecs:zvt,ui:$8x,voiceSearch:Mxr,watch:Gz2,ypc:Ys8,shorts:dKT,radioButtonGroup:w7k,collabInviteLink:vzx},pNu))};
TND=function(){return _.r("web_player_entities_middleware")?new GR(APt(),[ijD,E1R]):new GR(APt(),[ijD])};
_.Y_=function(){v1r||(v1r=TND());return v1r};
cPT=function(W,B,z){if(W.length)return{titleText:_.Aq(B!=null?B:_.kq("DOWNLOADS",void 0,"Downloads")),contents:W.map(function(G){var Y=G.videoEntity;G={videoId:Y.videoId,title:id(Y.title),shortBylineText:id(G.channelEntity.title),thumbnail:Y.thumbnail};var d=Y.videoId?NM(_.Y_().getState(),Y.videoId):0;Y.videoId&&z?G.navigationEndpoint=_.pA(Y.videoId,z,void 0,void 0,d):Y.videoId&&(G.navigationEndpoint=ENx(Y.videoId,d,Y.lengthSeconds));Y.lengthSeconds&&(G.thumbnailOverlays=p7t(Y.lengthSeconds,d));return{playlistPanelVideoRenderer:G}}),
totalVideos:W.length}};
wNt=function(W){return(W=(0,_.mP.getValueByKeys)(W,"playlistId"))?{playlistId:W}:null};
VS2=function(){return{}};
JP8=function(W,B){return new _.Vx(function(z,G){W.then(function(Y){if(Y){if(Y=B(Y))return z(Y);G()}},G)})};
g1v=function(W){var B,z,G,Y=(B=W.contents)==null?void 0:(z=B.twoColumnWatchNextResults)==null?void 0:(G=z.autoplay)==null?void 0:G.autoplay,d,E,v;B=(d=W.contents)==null?void 0:(E=d.twoColumnWatchNextResults)==null?void 0:(v=E.playlist)==null?void 0:v.playlist;return Y&&B&&B.playlistId?{rawResponse:W,autoplayRenderer:Y,playlistPanelRenderer:B,playlistId:B.playlistId}:null};
sYQ=function(W){var B=B===void 0?"UNKNOWN_INTERFACE":B;if(W.length===1)return W[0];var z=tSt[B];if(z){z=new RegExp(z);for(var G=_.A(W),Y=G.next();!Y.done;Y=G.next())if(Y=Y.value,z.exec(Y))return Y}var d=[];Object.entries(tSt).forEach(function(E){var v=_.A(E);E=v.next().value;v=v.next().value;B!==E&&d.push(v)});
z=new RegExp(d.join("|"));W.sort(function(E,v){return E.length-v.length});
G=_.A(W);for(Y=G.next();!Y.done;Y=G.next())if(Y=Y.value,!z.exec(Y))return Y;return W[0]};
_.dD=function(W){return"/youtubei/v1/"+sYQ(W)};
_.ps=function(W){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:W}}}}};
_.ia=function(W){return _.ps(_.Bg(W))};
PU0=function(W,B){var z={mode:"NORMAL"};W&&(z.autoplayVideo=W.navigationEndpoint,z.nextButtonVideo=W.navigationEndpoint);B&&(z.previousButtonVideo=B.navigationEndpoint);return z};
kz0=function(W,B,z){if(!z||!z.sets)return{sets:[PU0(W,B)]};var G=z.sets.find(function(E){return E.mode==="NORMAL"}),Y=(0,_.mP.unsafeClone)(z);
if(!G)return Y.sets.push(PU0(W,B)),Y;if(!W)return z;G=_.mP.getValueByKeys.apply(null,[G].concat(_.u7(Zj2)));var d=_.mP.getValueByKeys.apply(null,[W].concat(_.u7(rP2)));if(G===d)return z;Y.sets=Y.sets.filter(function(E){return E.mode!=="NORMAL"});
Y.sets.push(PU0(W,B));return Y};
lVX=function(W){return!!W.playlistPanelVideoRenderer&&!W.playlistPanelVideoRenderer.unplayableText};
CUt=function(W){return!!W.playlistPanelVideoRenderer&&!!W.playlistPanelVideoRenderer.title};
IVX=function(W,B){if(B.contents&&!(W>=B.contents.length)&&(W=B.contents.slice(W).find(lVX)))return W.playlistPanelVideoRenderer};
o1R=function(W,B){if(B.contents)return(B=B.contents.find(function(z){return!!z.playlistPanelVideoRenderer&&z.playlistPanelVideoRenderer.videoId===W}))?B.playlistPanelVideoRenderer:void 0};
hvk=function(W,B){return B.contents?B.contents.findIndex(function(z){return!!z.playlistPanelVideoRenderer&&z.playlistPanelVideoRenderer.videoId===W}):-1};
Hj0=function(W,B){return B.contents?B.contents.findIndex(function(z){return!!z.playlistPanelVideoRenderer&&z.playlistPanelVideoRenderer.playlistSetVideoId===W}):-1};
FhR=function(W,B){W.contents&&B!==-1&&W.contents.splice(B,1).length===1&&W.totalVideos!==void 0&&(--W.totalVideos,delete W.videoCountText)};
_.Ssy=function(W){var B=[];if(!W||!W.contents)return B;W=_.A(W.contents);for(var z=W.next();!z.done;z=W.next())z=z.value,z.playlistPanelVideoRenderer&&z.playlistPanelVideoRenderer.videoId&&B.push(z.playlistPanelVideoRenderer.videoId);return B};
_.bjk=function(W){if(W&&W.contents)return(W=W.contents.find(function(B){return!!B.playlistPanelVideoRenderer&&!!B.playlistPanelVideoRenderer.selected})||W.contents[W.currentIndex])?W.playlistPanelVideoRenderer:void 0};
jYv=function(W,B,z,G,Y,d,E){Y=Y===void 0?!1:Y;d=d===void 0?!1:d;E=E===void 0?!1:E;if(W.contents&&W.contents.length!==0){G&&(W.contents=W.contents.filter(G));G=W.contents.length;for(var v=0;v<G;v++){var c=W.contents[v].playlistPanelVideoRenderer;c&&(v===B?(d&&delete c.menu,c.indexText=_.Bg("\u25b6")):Y||W.isInfinite||c.indexText===void 0?delete c.indexText:c.indexText=_.Bg((v+1+z).toString()))}W.currentIndex=B+z;E&&(delete W.videoCountText,W.totalVideos=G)}};
_.El=function(W){W=fV8(W);if(W){var B=W.length;var z=-7%B;z<0&&(z=B+z);W=W.slice(B-z)+W.slice(0,B-z)}else W="";z="";for(B=0;B<W.length&&W[B]!==Oj0;B++)z+=W[B];return z};
_.XN0=function(W,B){var z=document.body;B=B===void 0?function(v){return v}:B;
var G,Y=null;W=_.A(W);for(G=W.next();!G.done;G=W.next()){var d=G.value;G="div";d[2]&&(G=B(d[2]));G=document.createElement(G);Y||(Y=G);var E=d[0];d=d[1];E&&(G.id=B(E));if(d)for(d=_.A(d),E=d.next();!E.done;E=d.next())G.classList.add(B(E.value));z.appendChild(G);z=G}return[Y,z]};
Kht=function(W,B){for(var z="",G=0;G<B;G++)z+=W.charAt(Math.floor(Math.random()*W.length));return z};
TR=function(W){return Kht("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",W)};
vg=function(W){return Kht("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",W)};
cg=function(W){return Kht("0123456789",W)};
uw8=function(){var W=performance.now(),B=new Date;var z="2."+B.getFullYear()+String(B.getMonth()+1).padStart(2,"0")+String(B.getDate()).padStart(2,"0");for(var G,Y=Math.floor(Math.random()*11)+15,d=[],E=0;E<Y;E++)d.push(Math.floor(Math.random()*26476865)+24547720);G=d.join(",");var v=TR(10),c=TR(100),J=TR(102),g=TR(106),t=TR(108),P=TR(11),Z=TR(1140),l=TR(123),b=TR(14),O=TR(16),K=TR(1900),e=TR(23),a=TR(26),q=TR(34),n=TR(397),L=TR(44),By=TR(5),gk=TR(72),vy=TR(74),lx=TR(75),Zv=TR(88),VR=TR(91),ux="rr1---sn-q4flrnez rr4---sn-5hne6nzd rr1---sn-aigzrnld rr3---sn-5hnekn7l rr2---sn-5hne6nsz rr1---sn-q4flrnl7 rr5---sn-q4flrnld rr5---sn-4g5ednd7 rr5---sn-5hneknee rr5---sn-q4fl6nz6 rr5---sn-t0a7ln7d rr1---sn-q4fl6n66 rr1---sn-q4fl6ndl rr2---sn-q4fl6nsy rr1---sn-hgn7rn7y rr5---sn-q4fzenee rr5---sn-q4flrnsl rr1---sn-ntqe6n76 rr4---sn-q4fl6n6z rr3---sn-q4fl6ndl".split(" ");
var X2=ux[Math.floor(Math.random()*ux.length)];var WQ=(new Date("2010-01-01")).getTime();var XH=(new Date(WQ+Math.random()*((new Date).getTime()-WQ))).toISOString().split("T")[0];for(var wU,RD=[],sF=0;sF<4;sF++)RD.push(Math.floor(Math.random()*100));wU=RD.join(".");var Vd=Number(cg(5)),bR=Number(cg(6)),Sf=Number(cg(7)),UF=Number(cg(9)),pu=cg(1),BQ=cg(10),Z9=cg(16),cn=cg(19),rU=cg(2),Gq=cg(20),Td=cg(21),Bn=cg(3),T6=cg(4),$M=cg(5),Pn=cg(6),FH=cg(7),C7=cg(8),tK=cg(9);var a3=Kht("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var wi=[vg(5),vg(5),vg(5)].join("%2C"),jw=[cg(3),cg(5),cg(5)].join("%2C"),hj=vg(0),D9=vg(1),kY=vg(10),nO=vg(108),lQ=vg(11),ql=vg(12),Qc=vg(13),H_=vg(14),QB=vg(15),d3=vg(16),A8=vg(17),h0=vg(18),eQ=vg(19),nu=vg(2),gU=vg(20),Vr=vg(22),fm=vg(23),Ij=vg(24),lR=vg(266),kM=vg(3),X6=vg(30),ZR=vg(34),tM=vg(35),Hc=vg(36),Kx=vg(4),eN=vg(40),yB=vg(43),nG=vg(47),G2=vg(5),VY=vg(6),HH=vg(7),Cc=vg(75),NR=vg(8),Zi=vg(80),oj=vg(9),AK="https://www."+vg(12)+".com",Jv={},UY={},DG={},W2={},on={},bs={},jC={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:G}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:z},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+vg(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:z},{key:"client.name",value:"WEB"},{key:"client.fexp",value:G}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Td+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+vg(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:eN,ypcGetOfflineUpsellEndpoint:{params:Zi}},trackingParams:tM+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&cnr="+rU+"&ratebypass=yes&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&c=WEB&txp="+FH+"&n="+O+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:bR,width:640,height:360,lastModified:Z9,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:FH,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+jw+"&mn="+
wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&cnr="+rU+"&ratebypass=yes&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&c=WEB&txp="+FH+"&n="+O+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+nO+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:bR,width:1280,
height:720,lastModified:Z9,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:FH,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+jw+"&mn="+wi+"&ms="+
wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&gir="+kM+"&clen="+tK+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Sf,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:tK,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Sf,approxDurationMs:FH},{itag:248,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+jw+"&mn="+wi+"&ms="+wi+"&mv="+
D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fwebm&ns="+Ij+"&gir="+kM+"&clen="+tK+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:Sf,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:tK,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Sf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FH},{itag:399,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+
jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&gir="+kM+"&clen="+tK+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Sf,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:tK,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Sf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FH},{itag:136,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+
jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&gir="+kM+"&clen="+tK+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Sf,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:tK,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:bR,approxDurationMs:FH},{itag:247,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+jw+"&mn="+
wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fwebm&ns="+Ij+"&gir="+kM+"&clen="+tK+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:Sf,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:tK,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:bR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FH},{itag:398,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+
jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&gir="+kM+"&clen="+tK+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Sf,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:tK,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:bR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FH},{itag:135,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+
jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:bR,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:bR,approxDurationMs:FH},{itag:244,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+jw+"&mn="+
wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fwebm&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+nO+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:bR,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:bR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FH},{itag:397,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+
jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:bR,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:bR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FH},{itag:134,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+
jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:bR,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:bR,highReplication:!0,approxDurationMs:FH},{itag:243,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+
jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fwebm&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:bR,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:bR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FH},{itag:396,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+
jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:bR,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:bR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FH},{itag:133,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+
jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:bR,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:bR,approxDurationMs:FH},{itag:242,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+jw+"&mn="+
wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fwebm&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:bR,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:bR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FH},{itag:395,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+
jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:bR,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:bR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FH},{itag:160,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+
jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:bR,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Vd,approxDurationMs:FH},{itag:278,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+jw+"&mn="+
wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fwebm&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:bR,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Vd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FH},{itag:394,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&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="+
jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Vd,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Vd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FH},{itag:140,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=audio%2Fmp4&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:bR,
initRange:{start:"0",end:"631"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:bR,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:FH,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+
rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=audio%2Fwebm&ns="+Ij+"&gir="+kM+"&clen="+FH+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/webm; codecs="opus"',bitrate:Vd,initRange:{start:"0",end:"265"},indexRange:{start:Bn,
end:T6},lastModified:Z9,contentLength:FH,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Vd,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:FH,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=audio%2Fwebm&ns="+
Ij+"&gir="+kM+"&clen="+FH+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/webm; codecs="opus"',bitrate:Vd,initRange:{start:"0",end:"265"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:FH,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Vd,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:FH,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+X2+".googlevideo.com/videoplayback?expire="+BQ+"&ei="+e+"&ip="+wU+"&id=o-AF"+yB+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+jw+"&mn="+wi+"&ms="+wi+"&mv="+D9+"&mvi="+pu+"&pl="+rU+"&initcwndbps="+FH+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=audio%2Fwebm&ns="+Ij+"&gir="+kM+"&clen="+C7+"&dur="+C7+"&lmt="+Z9+"&mt="+BQ+"&fvip=3&keepalive="+kM+"&c=WEB&txp="+
FH+"&n="+d3+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/webm; codecs="opus"',bitrate:bR,initRange:{start:"0",end:"265"},indexRange:{start:Bn,end:T6},lastModified:Z9,contentLength:C7,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:bR,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:FH,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="+tK+"&docid="+P+"&ei="+e+"&feature="+v+"&fexp="+hj+"&ns="+nu+"&plid="+O+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+D9+"&el="+kY+"&len="+T6+"&of="+Vr+
"&uga="+rU+"&vm="+lR},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+tK+"&docid="+P+"&ei="+e+"&feature="+v+"&fexp="+hj+"&ns="+nu+"&plid="+O+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+D9+"&el="+kY+"&len="+T6+"&of="+Vr+"&uga="+rU+"&vm="+lR},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+tK+"&docid="+P+"&ei="+e+"&feature="+v+"&fexp="+hj+"&ns="+nu+"&plid="+O+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
D9+"&el="+kY+"&len="+T6+"&of="+Vr+"&uga="+rU+"&vm="+lR},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+e+"&m="+Zv+"&oid="+Vr+"&plid="+O+"&pltype="+HH+"&ptchn="+Vr+"&ptk="+b+"&video_id="+P},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+tK+"&docid="+P+"&ei="+e+"&event="+H_+"&feature="+v+"&fexp="+hj+"&ns="+nu+"&plid="+O+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+D9},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?docid="+P+"&ei="+e+"&feature="+
v+"&len="+T6+"&ns="+nu+"&plid="+O+"&ver="+pu,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+P+"&caps="+kM+"&opi="+tK+"&xoaf="+pu+"&hl="+nu+"&ip="+wU+"&ipbits="+pu+"&expire="+BQ+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+wU+"&key="+kM+"&lang="+By,name:{simpleText:Qc},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+P+"&caps="+kM+"&opi="+tK+"&xoaf="+pu+"&hl="+nu+"&ip="+wU+"&ipbits="+pu+"&expire="+BQ+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+wU+"&key="+kM+"&kind="+kM+"&lang="+nu,name:{simpleText:gU},vssId:"a.it",languageCode:"it",kind:"asr",isTranslatable:!0,trackName:""}],audioTracks:[{captionTrackIndices:[0,1],defaultCaptionTrackIndex:0,visibility:"UNKNOWN",hasDefaultTrack:!0,captionsInitialState:"CAPTIONS_INITIAL_STATE_OFF_RECOMMENDED"}],
translationLanguages:[{languageCode:"af",languageName:{simpleText:"Afrikaans"}},{languageCode:"ak",languageName:{simpleText:"Akan"}},{languageCode:"sq",languageName:{simpleText:"Albanian"}},{languageCode:"am",languageName:{simpleText:"Amharic"}},{languageCode:"ar",languageName:{simpleText:"Arabic"}},{languageCode:"hy",languageName:{simpleText:"Armenian"}},{languageCode:"as",languageName:{simpleText:"Assamese"}},{languageCode:"ay",languageName:{simpleText:"Aymara"}},{languageCode:"az",languageName:{simpleText:"Azerbaijani"}},
{languageCode:"bn",languageName:{simpleText:"Bangla"}},{languageCode:"eu",languageName:{simpleText:"Basque"}},{languageCode:"be",languageName:{simpleText:"Belarusian"}},{languageCode:"bho",languageName:{simpleText:"Bhojpuri"}},{languageCode:"bs",languageName:{simpleText:"Bosnian"}},{languageCode:"bg",languageName:{simpleText:"Bulgarian"}},{languageCode:"my",languageName:{simpleText:"Burmese"}},{languageCode:"ca",languageName:{simpleText:"Catalan"}},{languageCode:"ceb",languageName:{simpleText:"Cebuano"}},
{languageCode:"zh-Hans",languageName:{simpleText:"Chinese (Simplified)"}},{languageCode:"zh-Hant",languageName:{simpleText:"Chinese (Traditional)"}},{languageCode:"co",languageName:{simpleText:"Corsican"}},{languageCode:"hr",languageName:{simpleText:"Croatian"}},{languageCode:"cs",languageName:{simpleText:"Czech"}},{languageCode:"da",languageName:{simpleText:"Danish"}},{languageCode:"dv",languageName:{simpleText:"Divehi"}},{languageCode:"nl",languageName:{simpleText:"Dutch"}},{languageCode:"en",languageName:{simpleText:"English"}},
{languageCode:"eo",languageName:{simpleText:"Esperanto"}},{languageCode:"et",languageName:{simpleText:"Estonian"}},{languageCode:"ee",languageName:{simpleText:"Ewe"}},{languageCode:"fil",languageName:{simpleText:"Filipino"}},{languageCode:"fi",languageName:{simpleText:"Finnish"}},{languageCode:"fr",languageName:{simpleText:"French"}},{languageCode:"gl",languageName:{simpleText:"Galician"}},{languageCode:"lg",languageName:{simpleText:"Ganda"}},{languageCode:"ka",languageName:{simpleText:"Georgian"}},
{languageCode:"de",languageName:{simpleText:"German"}},{languageCode:"el",languageName:{simpleText:"Greek"}},{languageCode:"gn",languageName:{simpleText:"Guarani"}},{languageCode:"gu",languageName:{simpleText:"Gujarati"}},{languageCode:"ht",languageName:{simpleText:"Haitian Creole"}},{languageCode:"ha",languageName:{simpleText:"Hausa"}},{languageCode:"haw",languageName:{simpleText:"Hawaiian"}},{languageCode:"iw",languageName:{simpleText:"Hebrew"}},{languageCode:"hi",languageName:{simpleText:"Hindi"}},
{languageCode:"hmn",languageName:{simpleText:"Hmong"}},{languageCode:"hu",languageName:{simpleText:"Hungarian"}},{languageCode:"is",languageName:{simpleText:"Icelandic"}},{languageCode:"ig",languageName:{simpleText:"Igbo"}},{languageCode:"id",languageName:{simpleText:"Indonesian"}},{languageCode:"ga",languageName:{simpleText:"Irish"}},{languageCode:"it",languageName:{simpleText:"Italian"}},{languageCode:"ja",languageName:{simpleText:"Japanese"}},{languageCode:"jv",languageName:{simpleText:"Javanese"}},
{languageCode:"kn",languageName:{simpleText:"Kannada"}},{languageCode:"kk",languageName:{simpleText:"Kazakh"}},{languageCode:"km",languageName:{simpleText:"Khmer"}},{languageCode:"rw",languageName:{simpleText:"Kinyarwanda"}},{languageCode:"ko",languageName:{simpleText:"Korean"}},{languageCode:"kri",languageName:{simpleText:"Krio"}},{languageCode:"ku",languageName:{simpleText:"Kurdish"}},{languageCode:"ky",languageName:{simpleText:"Kyrgyz"}},{languageCode:"lo",languageName:{simpleText:"Lao"}},{languageCode:"la",
languageName:{simpleText:"Latin"}},{languageCode:"lv",languageName:{simpleText:"Latvian"}},{languageCode:"ln",languageName:{simpleText:"Lingala"}},{languageCode:"lt",languageName:{simpleText:"Lithuanian"}},{languageCode:"lb",languageName:{simpleText:"Luxembourgish"}},{languageCode:"mk",languageName:{simpleText:"Macedonian"}},{languageCode:"mg",languageName:{simpleText:"Malagasy"}},{languageCode:"ms",languageName:{simpleText:"Malay"}},{languageCode:"ml",languageName:{simpleText:"Malayalam"}},{languageCode:"mt",
languageName:{simpleText:"Maltese"}},{languageCode:"mi",languageName:{simpleText:"Maori"}},{languageCode:"mr",languageName:{simpleText:"Marathi"}},{languageCode:"mn",languageName:{simpleText:"Mongolian"}},{languageCode:"ne",languageName:{simpleText:"Nepali"}},{languageCode:"nso",languageName:{simpleText:"Northern Sotho"}},{languageCode:"no",languageName:{simpleText:"Norwegian"}},{languageCode:"ny",languageName:{simpleText:"Nyanja"}},{languageCode:"or",languageName:{simpleText:"Odia"}},{languageCode:"om",
languageName:{simpleText:"Oromo"}},{languageCode:"ps",languageName:{simpleText:"Pashto"}},{languageCode:"fa",languageName:{simpleText:"Persian"}},{languageCode:"pl",languageName:{simpleText:"Polish"}},{languageCode:"pt",languageName:{simpleText:"Portuguese"}},{languageCode:"pa",languageName:{simpleText:"Punjabi"}},{languageCode:"qu",languageName:{simpleText:"Quechua"}},{languageCode:"ro",languageName:{simpleText:"Romanian"}},{languageCode:"ru",languageName:{simpleText:"Russian"}},{languageCode:"sm",
languageName:{simpleText:"Samoan"}},{languageCode:"sa",languageName:{simpleText:"Sanskrit"}},{languageCode:"gd",languageName:{simpleText:"Scottish Gaelic"}},{languageCode:"sr",languageName:{simpleText:"Serbian"}},{languageCode:"sn",languageName:{simpleText:"Shona"}},{languageCode:"sd",languageName:{simpleText:"Sindhi"}},{languageCode:"si",languageName:{simpleText:"Sinhala"}},{languageCode:"sk",languageName:{simpleText:"Slovak"}},{languageCode:"sl",languageName:{simpleText:"Slovenian"}},{languageCode:"so",
languageName:{simpleText:"Somali"}},{languageCode:"st",languageName:{simpleText:"Southern Sotho"}},{languageCode:"es",languageName:{simpleText:"Spanish"}},{languageCode:"su",languageName:{simpleText:"Sundanese"}},{languageCode:"sw",languageName:{simpleText:"Swahili"}},{languageCode:"sv",languageName:{simpleText:"Swedish"}},{languageCode:"tg",languageName:{simpleText:"Tajik"}},{languageCode:"ta",languageName:{simpleText:"Tamil"}},{languageCode:"tt",languageName:{simpleText:"Tatar"}},{languageCode:"te",
languageName:{simpleText:"Telugu"}},{languageCode:"th",languageName:{simpleText:"Thai"}},{languageCode:"ti",languageName:{simpleText:"Tigrinya"}},{languageCode:"ts",languageName:{simpleText:"Tsonga"}},{languageCode:"tr",languageName:{simpleText:"Turkish"}},{languageCode:"tk",languageName:{simpleText:"Turkmen"}},{languageCode:"uk",languageName:{simpleText:"Ukrainian"}},{languageCode:"ur",languageName:{simpleText:"Urdu"}},{languageCode:"ug",languageName:{simpleText:"Uyghur"}},{languageCode:"uz",languageName:{simpleText:"Uzbek"}},
{languageCode:"vi",languageName:{simpleText:"Vietnamese"}},{languageCode:"cy",languageName:{simpleText:"Welsh"}},{languageCode:"fy",languageName:{simpleText:"Western Frisian"}},{languageCode:"xh",languageName:{simpleText:"Xhosa"}},{languageCode:"yi",languageName:{simpleText:"Yiddish"}},{languageCode:"yo",languageName:{simpleText:"Yoruba"}},{languageCode:"zu",languageName:{simpleText:"Zulu"}}],defaultAudioTrackIndex:0}},videoDetails:{videoId:lQ,title:QB,lengthSeconds:"1155",keywords:[kY,d3,NR,Qc],
channelId:Ij,isOwnerViewing:!1,shortDescription:kY,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+Hc+"G&rs="+ZR,width:168,height:94},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+Hc+"G&rs="+ZR,width:196,height:110},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+Hc+"G&rs="+q,width:246,height:138},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+Hc+"G&rs="+q,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
P+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:FH,author:Qc,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:FH,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+Vr+"/featured_channel.jpg?v="+NR,width:40,height:40}]},trackingParams:tM+"=",navigationEndpoint:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{url:"/channel/"+Ij,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Ij}},channelName:Qc,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:ql}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Ij,showPreferences:!1,subscribedButtonText:{runs:[{text:kY}]},unsubscribedButtonText:{runs:[{text:NR}]},trackingParams:tM+"=",unsubscribeButtonText:{runs:[{text:d3}]},serviceEndpoints:[{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[Ij],params:NR}},{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:eN,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:tM+"=",dialogMessages:[{runs:[{text:eQ},{text:G2},{text:QB}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:G2}]},serviceEndpoint:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Ij],params:NR}},accessibility:{label:VY},trackingParams:tM+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:h0}]},accessibility:{label:gU},trackingParams:tM+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:NR}},unsubscribeAccessibility:{accessibilityData:{label:G2}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:C7},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Ij],params:NR}},unsubscribeCommand:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Ij],params:NR}},addToWatchLaterCommand:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:lQ,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:lQ}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+P+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Hc+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
P+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+lQ,width:1280,height:720},title:{simpleText:kY},description:{simpleText:lQ},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+ql,externalChannelId:Ij,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:FH,category:"Travel & Events",publishDate:XH,ownerChannelName:Qc,uploadDate:XH}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:QB},trackingParams:tM+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:eN,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:tM+"="}}],headerText:{simpleText:kY},icon:{infoCardIconRenderer:{trackingParams:tM+"="}},closeButton:{infoCardIconRenderer:{trackingParams:tM+"="}},trackingParams:tM+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:tM+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+lQ+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:a3,interpreterSafeUrl:(Jv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+X6+".js",Jv),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:h0},{text:VY,bold:!0}]},endpoint:{clickTrackingParams:eN,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:tM+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:QB}]},actionButton:{buttonRenderer:{text:{runs:[{text:QB}]},navigationEndpoint:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+P,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
P,target:"TARGET_NEW_WINDOW"}},trackingParams:tM+"="}},trackingParams:tM+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+gk+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+gk+"=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:FH,endMs:FH,title:{accessibility:{accessibilityData:{label:HH}},simpleText:VY},metadata:{simpleText:Kx},callToAction:{simpleText:QB},dismiss:{simpleText:gU},endpoint:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{url:"/channel/"+Ij,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Ij}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:oj}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Ij,showPreferences:!1,
subscribedButtonText:{runs:[{text:gU}]},unsubscribedButtonText:{runs:[{text:gU}]},trackingParams:tM+"=",unsubscribeButtonText:{runs:[{text:Qc}]},serviceEndpoints:[{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Ij],params:NR}},{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:eN,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:tM+
"=",dialogMessages:[{runs:[{text:NR},{text:oj},{text:d3}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Kx}]},serviceEndpoint:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Ij],params:NR}},accessibility:{label:oj},trackingParams:tM+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:h0}]},
accessibility:{label:h0},trackingParams:tM+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:d3}},unsubscribeAccessibility:{accessibilityData:{label:lQ}}}},trackingParams:tM+"=",isSubscribe:!0,id:Gq}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+Hc+"G&rs="+q,width:168,height:94},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+Hc+"G&rs="+ZR,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+Hc+"G&rs="+q,width:246,height:138},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+Hc+"G&rs="+q,width:336,height:188},{url:"https://i.ytimg.com/vi/"+P+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:FH,endMs:FH,title:{accessibility:{accessibilityData:{label:A8}},simpleText:Qc},metadata:{simpleText:Qc},endpoint:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
lQ,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:lQ,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+X2+".googlevideo.com/videoplayback?source=youtube&oeis="+pu+"&c=WEB&oad="+T6+"&ovd="+T6+"&oaad="+$M+"&oavd="+$M+"&ocs="+Bn+"&oewis="+pu+"&oputc="+pu+"&ofpcc="+pu+"&siu="+pu+"&msp="+pu+"&odepv="+pu+
"&id=o-AF"+yB+"&ip="+wU+"&initcwndbps="+FH+"&mt="+BQ+"&oweuc="+hj}}}}},trackingParams:tM+"=",id:Gq,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:kY}},simpleText:kY},style:"DEFAULT"}}]}}],startMs:FH,trackingParams:tM+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:pu,offsetEndMilliseconds:$M},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tK+";dc_trk_cid="+tK+";dc_dbm_token="+t+";ord="+BQ+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";dc_rui="+pu+";dc_exteid="+Gq+";dc_av="+Bn+";dc_sk="+pu+";dc_ctype="+rU+";dc_ref=http://www.youtube.com/video/"+lQ+";dc_pubid="+pu+";dc_btype=23?gclid="+VR+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+pu+"&ns="+pu+"&event="+pu+"&device="+pu+"&content_v="+P+"&el="+kY+"&ei="+e+"&devicever="+z+"&bti="+FH+"&format="+Pn+"&break_type="+pu+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+pu+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+wU+"&slot_pos="+pu+"&slot_len="+pu+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+jw+"&ad_len="+$M+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
lQ+"&aqi="+e+"&ad_rmp="+pu+"&sli="+pu}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+
";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Pn+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+FH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&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"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&ctype="+Bn+"&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"+
Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_engaged_view&ctype="+Bn+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Pn+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
tK+";dc_trk_cid="+tK+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+tK+";dc_rui="+pu+";dc_exteid="+cn+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+rU+";dc_pubid="+pu+";dc_btype=3?gclid="+VR+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+J+"&sig="+fm+"&ad_cpn=[AD_CPN]&id="+VY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+VY+"&dc_pubid="+pu+"&dc_exteid="+Gq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+J+"&sig="+fm+"&ad_cpn=[AD_CPN]&id="+VY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+pu},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+VY+"&avm="+pu+"&dc_pubid="+pu+"&dc_exteid="+
Gq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&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="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
J+"&sig="+fm+"&ad_cpn=[AD_CPN]&id="+VY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+pu},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+VY+"&dc_pubid="+pu+"&dc_exteid="+Gq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Pn+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Pn+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:eN,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+
Bn+"&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/"+P+"/mqdefault.jpg",width:320,height:180}]},trackingParams:tM+"="},trackingParams:tM+
"=",templatedCountdown:{templatedAdText:{text:VY,isTemplated:!0,trackingParams:tM+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:VY,isTemplated:!1,trackingParams:tM+"="},trackingParams:tM+"="}},trackingParams:tM+"=",skipOffsetMilliseconds:5E3}},trackingParams:tM+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Qc},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:tM+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:h0,isTemplated:!1,trackingParams:tM+"="},trackingParams:tM+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:d3,isTemplated:!0,trackingParams:tM+"="}},trackingParams:tM+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:eN,openPopupAction:{popup:{aboutThisAdRenderer:{url:(UY.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+K+"&hl="+nu+"&origin=www.youtube.com&ata_theme="+Kx,UY),trackingParams:tM+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:tM+"="}},hoverText:{runs:[{text:oj}]},trackingParams:tM+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+nG+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:tM+"="},headline:{text:eQ,isTemplated:!1,trackingParams:tM+"="},description:{text:A8,
trackingParams:tM+"="},actionButton:{buttonRenderer:{text:{simpleText:gU},navigationEndpoint:{clickTrackingParams:eN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tK+";dc_trk_cid="+tK+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+tK+";dc_rui="+pu+";dc_exteid="+Gq+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+rU+";dc_pubid="+pu+";dc_btype=3?gclid="+VR+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:tM+"="}},startMs:pu,trackingParams:tM+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Qc},elementId:A8}},elementId:oj,trackingParams:tM+"=",legacyInfoCardVastExtension:eQ,sodarExtensionData:{siub:H_,bgub:gU,scs:oj,bgp:kY},externalVideoId:lQ,adLayoutLoggingData:{serializedAdServingDataEntry:oj},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+nG+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:tM+"="},
headline:{text:kY,isTemplated:!1,trackingParams:tM+"="},description:{text:Kx,isTemplated:!1,trackingParams:tM+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:gU},navigationEndpoint:{clickTrackingParams:eN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tK+";dc_trk_cid="+tK+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+tK+";dc_rui="+pu+";dc_exteid="+
Gq+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+rU+";dc_pubid="+pu+";dc_btype=3?gclid="+VR+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+
pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tM+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:tM+"="}},navigationEndpoint:{clickTrackingParams:eN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tK+";dc_trk_cid="+
tK+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+tK+";dc_rui="+pu+";dc_exteid="+Gq+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+rU+";dc_pubid="+pu+";dc_btype=3?gclid="+VR+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+
l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:tM+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:tM+"="},abandonCommands:{commands:[{clickTrackingParams:eN,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&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="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+
pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:eN,commandExecutorCommand:{commands:[{clickTrackingParams:eN,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:eQ,isTemplated:!1,trackingParams:tM+
"="},trackingParams:tM+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:VY},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+FH+";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="+tK+";dc_trk_cid="+tK+";ord="+BQ+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";dc_rui="+pu+";dc_exteid="+Gq+";dc_av="+Bn+";dc_sk="+pu+";dc_ctype="+rU+";dc_ref=http://www.youtube.com/video/"+lQ+";dc_pubid="+pu+";dc_btype=23?gclid="+VR+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+pu+"&ns="+pu+"&event="+pu+"&device="+pu+"&content_v="+P+"&el="+kY+"&ei="+e+"&devicever="+z+"&bti="+FH+"&format="+Pn+"&break_type="+pu+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+pu+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+wU+"&slot_pos="+pu+"&slot_len="+pu+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
jw+"&ad_len="+$M+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+lQ+"&aqi="+e+"&ad_rmp="+pu+"&sli="+pu}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Pn+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+
a+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+FH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&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"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&ctype="+Bn+"&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"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_engaged_view&ctype="+Bn+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Pn+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+J+"&sig="+fm+"&ad_cpn=[AD_CPN]&id="+
VY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+VY+"&dc_pubid="+pu+"&dc_exteid="+Gq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+J+
"&sig="+fm+"&ad_cpn=[AD_CPN]&id="+VY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+pu},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+VY+"&avm="+pu+"&dc_pubid="+pu+"&dc_exteid="+Gq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&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="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+J+"&sig="+fm+"&ad_cpn=[AD_CPN]&id="+VY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+pu},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+VY+"&dc_pubid="+pu+"&dc_exteid="+Gq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Pn+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Pn+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+
Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&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/"+P+"/mqdefault.jpg",width:320,height:180}]},trackingParams:tM+"="},trackingParams:tM+"=",templatedCountdown:{templatedAdText:{text:h0,isTemplated:!0,trackingParams:tM+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:lQ,isTemplated:!1,trackingParams:tM+"="},trackingParams:tM+"="}},
trackingParams:tM+"=",skipOffsetMilliseconds:5E3}},trackingParams:tM+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:kY},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tM+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:NR,isTemplated:!1,trackingParams:tM+"="},trackingParams:tM+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:oj,
isTemplated:!0,trackingParams:tM+"="}},trackingParams:tM+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:eN,openPopupAction:{popup:{aboutThisAdRenderer:{url:(DG.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+K+"&hl="+nu+"&origin=www.youtube.com&ata_theme="+Kx,DG),trackingParams:tM+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:tM+"="}},hoverText:{runs:[{text:G2}]},trackingParams:tM+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vy+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:tM+"="},headline:{text:kY,isTemplated:!1,trackingParams:tM+"="},description:{text:VY,trackingParams:tM+"="},actionButton:{buttonRenderer:{text:{simpleText:d3},navigationEndpoint:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:tM+"="}},startMs:pu,trackingParams:tM+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:NR},elementId:Qc}},elementId:kY,trackingParams:tM+"=",legacyInfoCardVastExtension:NR,sodarExtensionData:{siub:NR,bgub:Qc,scs:lQ,bgp:h0},externalVideoId:lQ,adLayoutLoggingData:{serializedAdServingDataEntry:h0},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vy+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:tM+"="},headline:{text:Qc,
isTemplated:!1,trackingParams:tM+"="},description:{text:VY,isTemplated:!1,trackingParams:tM+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:gU},navigationEndpoint:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tM+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:tM+"="}},navigationEndpoint:{clickTrackingParams:eN,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+
pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tM+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:tM+"="},abandonCommands:{commands:[{clickTrackingParams:eN,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&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="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+rU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:eN,commandExecutorCommand:{commands:[{clickTrackingParams:eN,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:d3,isTemplated:!1,trackingParams:tM+"="},trackingParams:tM+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:gU},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+Gq+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+
FH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:oj}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:NR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$M,offsetEndMilliseconds:Pn},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+e+"&m_pos="+rU+"&token=ALHj"+n+"&index="+pu+"&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="+z+"&m_pos_ms="+$M}},adSlotLoggingData:{serializedSlotAdServingDataEntry:kY}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Pn,offsetEndMilliseconds:Pn},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+e+"&m_pos="+Bn+"&token=ALHj"+n+"&index="+pu+"&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="+
z+"&m_pos_ms="+Pn}},adSlotLoggingData:{serializedSlotAdServingDataEntry:A8}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Pn,offsetEndMilliseconds:Pn},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+e+"&m_pos="+Bn+"&token=ALHj"+n+"&index="+pu+"&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="+
z+"&m_pos_ms="+Pn}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Kx}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Pn,offsetEndMilliseconds:Pn},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+e+"&m_pos="+Bn+"&token=ALHj"+n+"&index="+pu+"&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="+
z+"&m_pos_ms="+Pn}},adSlotLoggingData:{serializedSlotAdServingDataEntry:QB}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Pn,offsetEndMilliseconds:rU},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+e+"&m_pos="+Bn+"&token=ALHj"+n+"&index="+pu+"&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="+
z+"&m_pos_ms="+Pn}},adSlotLoggingData:{serializedSlotAdServingDataEntry:gU}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:rU,offsetEndMilliseconds:rU},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+e+"&m_pos="+rU+"&token=ALHj"+n+"&index="+pu+"&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="+
z+"&m_pos_ms="+rU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:h0}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:gU,isTemplated:!1,trackingParams:tM+"="},description:{text:A8,isTemplated:!1,trackingParams:tM+"="},actionButton:{buttonRenderer:{text:{simpleText:eQ},navigationEndpoint:{clickTrackingParams:eN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
tK+";dc_trk_cid="+tK+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+tK+";dc_rui="+pu+";dc_exteid="+Gq+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+rU+";dc_pubid="+pu+";dc_btype=3?gclid="+VR+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tM+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+nG+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:tM+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+lx+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:tM+"="},navigationEndpoint:{clickTrackingParams:eN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tK+";dc_trk_cid="+tK+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+tK+
";dc_rui="+pu+";dc_exteid="+Gq+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+rU+";dc_pubid="+pu+";dc_btype=3?gclid="+VR+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tM+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:eN,openPopupAction:{popup:{aboutThisAdRenderer:{url:(W2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+K+"&hl="+nu+"&origin=www.youtube.com&ata_theme="+Kx,W2),trackingParams:tM+"="}},popupType:"DIALOG"}},trackingParams:tM+"="}},hoverText:{runs:[{text:NR}]},trackingParams:tM+"="}},adVideoId:lQ,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Kx},associatedCompositePlayerBytesLayoutId:d3}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:G2}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:oj,isTemplated:!1,trackingParams:tM+"="},description:{text:QB,isTemplated:!1,trackingParams:tM+"="},actionButton:{buttonRenderer:{text:{simpleText:H_},navigationEndpoint:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+
l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:tM+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vy+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:tM+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Cc+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:tM+"="},navigationEndpoint:{clickTrackingParams:eN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+
pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tM+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:eN,openPopupAction:{popup:{aboutThisAdRenderer:{url:(on.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+K+"&hl="+nu+"&origin=www.youtube.com&ata_theme="+Kx,on),trackingParams:tM+"="}},popupType:"DIALOG"}},trackingParams:tM+"="}},
hoverText:{runs:[{text:kY}]},trackingParams:tM+"="}},adVideoId:lQ,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+lQ+"&cid="+a+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:h0},associatedCompositePlayerBytesLayoutId:d3}},adSlotLoggingData:{serializedSlotAdServingDataEntry:QB}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:QB,
isTemplated:!1,trackingParams:tM+"="},description:{text:Kx,isTemplated:!1,trackingParams:tM+"="},actionButton:{buttonRenderer:{text:{simpleText:eQ},navigationEndpoint:{clickTrackingParams:eN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tK+";dc_trk_cid="+tK+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+tK+";dc_rui="+pu+";dc_exteid="+Gq+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+
rU+";dc_pubid="+pu+";dc_btype=3?gclid="+VR+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+
q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tM+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+nG+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:tM+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+lx+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:tM+
"="},navigationEndpoint:{clickTrackingParams:eN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tK+";dc_trk_cid="+tK+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+tK+";dc_rui="+pu+";dc_exteid="+Gq+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+rU+";dc_pubid="+pu+";dc_btype=3?gclid="+VR+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Z+"____________"+l+"AxAA&ase=2&num="+pu+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+q+"&adurl="+AK+"&label=video_click_to_advertiser_site&ctype="+Bn+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:tM+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:eN,openPopupAction:{popup:{aboutThisAdRenderer:{url:(bs.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+K+"&hl="+nu+"&origin=www.youtube.com&ata_theme="+Kx,bs),trackingParams:tM+"="}},popupType:"DIALOG"}},trackingParams:tM+
"="}},hoverText:{runs:[{text:H_}]},trackingParams:tM+"="}},adVideoId:lQ,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Z+"____________"+l+"AxAA&sigh="+P+"&cid="+a+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:QB},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:d3}},adSlotLoggingData:{serializedSlotAdServingDataEntry:kY}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:X6,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:X6,command:{innertubeCommand:{clickTrackingParams:eN,ypcGetOfflineUpsellEndpoint:{params:Zi}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:tM+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:BQ,nanos:UF}}}},BLy=JSON.stringify(jC),fB=performance.now()-W;return{objectRepresentation:jC,jsonRepresentation:BLy,generationTime:fB}};
evu=function(W,B){if(W===B)return!0;if(!W||!B||typeof W!==typeof B)return!1;if(W instanceof Array&&B instanceof Array){if(W.length!==B.length)return!1;for(var z=0;z<W.length;z++)if(!evu(W[z],B[z]))return!1;return!0}if(typeof W==="object"&&typeof B==="object"&&W&&B){for(z in W)if(!(z in B&&evu(W[z],B[z])))return!1;for(var G in B)if(!(G in W))return!1;return!0}return!1};
_.VL=function(){if(!wD){wD=new kx(new mK8);var W=_.iO("client_streamz_web_flush_count",-1);W!==-1&&(wD.invocationLimit=W)}return wD};
J8=function(W,B,z,G){if(W===B)return!0;if(Array.isArray(W)&&Array.isArray(B)){if(W.length!==B.length)return!1;for(var Y=0;Y<W.length;Y++)if(!J8(W[Y],B[Y],z,G))return!1;return!0}if(W instanceof Set||B instanceof Set){if(W instanceof Set&&B instanceof Set){if(W.size!==B.size)return!1;G=_.A(W.values());for(Y=G.next();!Y.done;Y=G.next())if(!B.has(Y.value))return!1;return!0}return!1}if(W instanceof Function){if(G)return!0;W.name===""&&_.jy(Error("Nf"),"ERROR");return!1}if(W instanceof Date&&B instanceof
Date)return W.getTime()===B.getTime();if(W instanceof Object&&B instanceof Object){if(xKv(W)&&xKv(B))try{return W.equals(B)}catch(E){_.jy(Error("Of`"+E),"ERROR")}Y=Object.getOwnPropertyNames(W).filter(function(E){return z?W[E]!==void 0:!0});
var d=Object.getOwnPropertyNames(B).filter(function(E){return z?B[E]!==void 0:!0});
if(Y.length!==d.length)return!1;Y=_.A(Y);for(d=Y.next();!d.done;d=Y.next())if(d=d.value,!J8(W[d],B[d],z,G))return!1;return!0}return!1};
xKv=function(W){W=Object.getPrototypeOf(W).equals;return W instanceof Function&&W.length===1};
_.yPR=function(){return _.T(function(W){if(W.nextAddress==1)return DKR!==2?W.jumpTo(2):W.yield(QY8(),3);W.nextAddress!=2&&(DKR=W.yieldResult);return W.return(DKR)})};
_.NNX=function(){return _.T(function(W){if(W.nextAddress==1)return _.r("ab_pl_man")?qsQ!==2?W.jumpTo(2):W.yield(n1y(),3):W.return(1);W.nextAddress!=2&&(qsQ=W.yieldResult);return W.return(qsQ)})};
UKx=function(){return _.T(function(W){if(W.nextAddress==1)return _.r("ab_fk_sk_cl")?$Kt!==2?W.jumpTo(2):W.yield(Lhu(),3):W.return(1);W.nextAddress!=2&&($Kt=W.yieldResult);return W.return($Kt)})};
_.Rvy=function(){return _.T(function(W){if(W.nextAddress==1)return _.r("ab_det_apb_b")?MS8!==2?W.jumpTo(2):W.yield(aV8(),3):W.return(1);W.nextAddress!=2&&(MS8=W.yieldResult);return W.return(MS8)})};
zMt=function(){var W;return _.T(function(B){if(B.nextAddress==1)return B.yield(Promise.all([_.yPR(),_.Rvy(),_.NNX(),UKx()]),2);if(B.nextAddress!=3)return WO8()?B.return(!0):B.yield(_.Ber(),3);W=B.yieldResult;return B.return(W===0)})};
WO8=function(){var W=!1,B=function(z,G){GBT.increment(G,z);z===0&&(W=!0)};
B(_.Y7R(),"j.s_");B(DKR,"f.i_");B(MS8,"a.b_");B(qsQ,"p.m_");B($Kt,"i.f_");d7x===2&&(d7x=_.p$Q(Aat));B(d7x,"e.h_");_.r("ks_det_gpbl")||B(_.iWr(),"p.i_");_.r("ks_get_o_pp")||B(_.EIX(),"g.o_");_.r("ab_deg_unex_thr")||B(_.TeT(),"a.o_");B(vIT,"s.t_");_.r("ab_det_sc_inj_enf")&&B(_.cau(),"s.i_");B(w$T,"d.p_");B(_.Vvu(_.gD),"o.p_");B(_.Ja0()===0?0:_.gIt(),"o.a_");return _.r("debug_sk_em_precheck")?!0:W};
spQ=function(){var W=[].concat(_.u7(tv0));try{var B=uw8();W.push({jsonRepresentation:B.jsonRepresentation,objectRepresentation:B.objectRepresentation})}catch(z){W=[].concat(_.u7(tv0))}return W};
PhR=function(){var W=["adPlacements","adSlots"];try{return W.filter(function(){return!0}).length!==W.length?0:1}catch(B){return 0}};
_.EIX=function(){if(PhR()===0)return 0;var W=uw8(),B=W.objectRepresentation,z=(0,_.mP.unsafeClone)(B),G=[];if(B&&typeof B==="object")for(var Y in B)G.push(Y);else return 4;W=W.objectRepresentation.adPlacements;if(!(W&&W.length>0))return 4;try{if(!evu(G,Object.getOwnPropertyNames(B)))return 0}catch(d){return 0}return evu(z,B)?1:0};
_.Vvu=function(W){if(!W||!W.length||typeof W==="string")return 0;for(var B=Object.getOwnPropertyNames(Object.prototype),z=0;z<W.length;z++)for(var G=_.El(W[z]),Y=_.A(B),d=Y.next();!d.done;d=Y.next())if(G===d.value)return 0;return 1};
ZWr=function(W){var B=_.El(W[1]);if(W[0]===null)return B;W=W[0];for(var z={},G=0;G<W.length;G++){var Y=_.El(W[G]);if(G===0)z[Y]=B;else{var d={};d[Y]=z;z=d}}return z};
_.Ja0=function(){for(var W=_.t8,B=0;B<W.length;B++){var z=ZWr(W[B]),G=[];G.push(z);if(G.length===0)return 0}return 1};
_.gIt=function(){for(var W=_.t8,B={},z=0;z<W.length;B={aUH:void 0},z++){var G=[ZWr(W[z])];B.aUH=[];G.forEach(function(Y){return function(d){Y.aUH[Y.aUH.length]=d}}(B));
if(B.aUH.length===0)return 0}return 1};
_.Y7R=function(){for(var W=_.A(spQ()),B=W.next();!B.done;B=W.next()){var z=B.value;B=z.jsonRepresentation;z=z.objectRepresentation;try{var G=JSON.parse(B);if(!J8(G,z,!1,!1))return 0}catch(Y){return 0}}return 1};
_.cau=function(){try{var W=_.T4("ab_det_sc_inj_val");W.length===1&&W[0]===""&&(W=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var B=document.querySelectorAll("script"),z=_.A(B),G=z.next();!G.done;G=z.next())for(var Y=G.value,d=_.A(W),E=d.next();!E.done;E=d.next()){var v=E.value;B=void 0;if((B=Y.textContent)==null?0:B.includes(v))return 0}}catch(c){return 4}return 1};
_.Ber=function(){var W,B,z,G,Y,d,E;return _.T(function(v){switch(v.nextAddress){case 1:_.kA(v,2),W=_.A(tv0),B=W.next();case 4:if(B.done)return v.return(1);G=z=B.value;Y=G.jsonRepresentation;d=G.objectRepresentation;return v.yield((new Response(Y,{status:200})).json(),7);case 7:E=v.yieldResult;if(!J8(E,d,!1,!1))return v.return(0);B=W.next();v.jumpTo(4);break;case 2:return _.h6(v),v.return(4)}})};
_.TeT=function(){try{btoa("abc")}catch(W){return 0}return 1};
QY8=function(){var W,B,z,G,Y,d,E,v,c,J,g;return _.T(function(t){switch(t.nextAddress){case 1:_.kA(t,2),W=_.A(spQ()),B=W.next();case 4:if(B.done)return t.return(1);G=z=B.value;Y=G.jsonRepresentation;d=G.objectRepresentation;E=btoa(Y);v="data:application/json;base64,"+E;c=new Request(v);Object.defineProperty(c,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(c,"method",{get:function(){return"POST"}});
Object.defineProperty(c,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(c,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(c,"body",{get:function(){return new ReadableStream}});
return t.yield(fetch(c),7);case 7:return J=t.yieldResult,t.yield(J.json(),8);case 8:g=t.yieldResult;if(!J8(g,d,!1,!1))return t.return(0);B=W.next();t.jumpTo(4);break;case 2:return _.h6(t),t.return(4)}})};
_.p$Q=function(W){if(!W||!W.length||typeof W==="string")return 0;for(var B=function(Y){return _.El(Y)},z=2,G=0;G<W.length&&(z=_.raQ(_.XN0(W[G],B)),z!==0);G++);
return z};
_.raQ=function(W){var B=_.A(W);W=B.next().value;B=B.next().value;try{var z=document.createElement("div");document.body.appendChild(z);var G=getComputedStyle(z).display;document.body.removeChild(z);if(G==="none")return 4;var Y=getComputedStyle(B).display==="none"?0:1;document.body.removeChild(W);return Y}catch(d){return 4}};
Lhu=function(){var W,B,z;return _.T(function(G){W=new _.sl;B=document.createElement("button");B.classList.add("ytp-ad-skip-button");B.style.opacity="0";B.style.height="0px";B.style.width="0px";B.style.padding="0px";B.style.border="none";z=function(){B.parentElement&&B.parentElement.removeChild(B)};
B.onclick=function(){W.resolve(0);z()};
document.body.appendChild(B);setTimeout(function(){z();W.resolve(1)},50);
return G.return(W.promise)})};
n1y=function(){var W,B,z,G,Y,d,E;return _.T(function(v){W=new _.sl;B=document.createElement("ytd-player");try{document.body.prepend(B)}catch(c){return v.return(4)}z=function(){B.parentElement&&B.parentElement.removeChild(B)};
B.getElementsByTagName("div").length>0?G=B.getElementsByTagName("div")[0]:(G=document.createElement("div"),B.appendChild(G));Y=document.createElement("div");G.appendChild(Y);d=document.createElement("video");E=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"});d.src=_.mF(_.qZ(E));d.ontimeupdate=function(){z();W.resolve(0)};
Y.appendChild(d);d.classList.add("html5-main-video");setTimeout(function(){Y.classList.add("ad-interrupting")},200);
setTimeout(function(){z();W.resolve(1)},5E3);
return v.return(W.promise)})};
kB2=function(W){var B=uw8().objectRepresentation.playbackTracking;if(B){var z=[],G;z.push(B==null?void 0:(G=B.videostatsPlaybackUrl)==null?void 0:G.baseUrl);var Y;z.push(B==null?void 0:(Y=B.videostatsDelayplayUrl)==null?void 0:Y.baseUrl);var d;z.push(B==null?void 0:(d=B.videostatsWatchtimeUrl)==null?void 0:d.baseUrl);var E;z.push(B==null?void 0:(E=B.ptrackingUrl)==null?void 0:E.baseUrl);var v;z.push(B==null?void 0:(v=B.qoeUrl)==null?void 0:v.baseUrl);var c;z.push(B==null?void 0:(c=B.atrUrl)==null?
void 0:c.baseUrl);B=_.A(z);for(z=B.next();!z.done;z=B.next())if((z=z.value)&&W.test(z))return z.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
lH2=function(W,B){var z,G;return _.T(function(Y){switch(Y.nextAddress){case 1:z=[],G=0;case 2:if(!(G<3)){Y.jumpTo(4);break}return Y.yield(fetch(W,{cache:"no-store",method:B}).then(function(d){z.push(d.status)}).catch(function(){z.push(-1)}),3);
case 3:G++;Y.jumpTo(2);break;case 4:return Y.return(z)}})};
Chv=function(W){return W.domainLookupStart===0&&W.domainLookupEnd===0&&W.connectStart===0&&W.connectEnd===0};
IH0=function(W,B,z){z=z===void 0?"GET":z;var G,Y,d,E,v,c,J,g,t,P;return _.T(function(Z){if(Z.nextAddress==1)return Z.yield(Promise.all([lH2(W,z),lH2(B,z)]),2);G=Z.yieldResult;Y=_.A(G);d=Y.next().value;E=Y.next().value;v=d;c=E;if(Math.min.apply(Math,_.u7(c))!==Math.max.apply(Math,_.u7(c))||Math.min.apply(Math,_.u7(v))!==Math.max.apply(Math,_.u7(v)))return Z.return(2);if(Math.min.apply(Math,_.u7(c))===Math.min.apply(Math,_.u7(v)))return Z.return(1);g=(J=performance.getEntriesByName(W))==null?void 0:
J[0];P=(t=performance.getEntriesByName(B))==null?void 0:t[0];return g&&P?Chv(P)?Z.return(1):Chv(g)?Z.return(0):Z.return(1):Z.return(2)})};
aV8=function(){var W;return _.T(function(B){var z=[];var G;var Y,d,E;(Y=G=(Y=uw8().objectRepresentation.streamingData)==null?void 0:(d=Y.formats)==null?void 0:(E=d[0])==null?void 0:E.url)&&Y&&!G.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(Y=Y.replace("initcwndbps","ctier=L&initcwndbps"),Y=Y.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),G={testUrl:Y,baseUrl:G,method:"GET"}):G=void 0;G&&z.push(G);_.r("ab_net_tp_e")&&z.push({testUrl:_.Yt.location.origin+"/ad_companion",baseUrl:_.Yt.location.origin+
"/generate_204",method:"OPTIONS"});_.r("ab_fix_creator_view_cnt")&&(z.length=0,(G=kB2(/api\/stats\/atr/))&&z.push({testUrl:_.Yt.location.origin+G,baseUrl:_.Yt.location.origin+"/generate_204",method:"OPTIONS"}));_.r("ad_net_pb_pbp")&&(G=kB2(/api\/stats\/qoe/))&&z.push({testUrl:_.Yt.location.origin+G,baseUrl:_.Yt.location.origin+"/feed/download",method:"GET"});z=z.length!==0?z[Math.floor(Math.random()*z.length)]:void 0;return(W=z)?B.return(IH0(W.testUrl,W.baseUrl,W.method)):B.return(4)})};
_.iWr=function(){if(_.Yt.wVb===void 0||_.Yt.wVb===null||typeof _.Yt.wVb!=="function")return 2;try{return _.Yt.wVb()===!0?0:1}catch(W){return 0}};
oIx=function(W){switch(W){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.qT(W,"unknown result type")}};
_.hMR=function(W,B){var z=Number(_.eD("CATSTAT",0));if(B.kGY===void 0)return z;B=B.kGY;W=oIx(W);return z&~(3<<B)|W<<B};
HWu=function(W){var B,z;if((W=(B=W.auxiliaryUi)==null?void 0:(z=B.messageRenderers)==null?void 0:z.bkaEnforcementMessageViewModel)&&W.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return W};
S7R=function(){for(var W=_.A(Object.values(_.FOu)),B=W.next();!B.done;B=W.next())B=B.value,B.isAsync&&B.kGY&&_.uk("CATSTAT",_.hMR(2,B))};
_.k_=function(W,B){W=_.Pg("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",W);(B===void 0?0:B)?_.bWy(W,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Za(_.rD(),W,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
fHT=function(){if(!jp0){if(Polymer.Base){var W=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{W.apply(this,arguments)}catch(t){_.xr(t)}};
var B=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{B.apply(this,arguments)}catch(t){_.xr(t)}};
var z=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{z.apply(this,arguments)}catch(t){_.xr(t)}};
var G=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{G.apply(this,arguments)}catch(t){_.xr(t)}};
var Y=Polymer.Base._listen,d=new WeakMap;Polymer.Base._listen=function(t,P,Z){var l=function(){try{Z.apply(this,arguments)}catch(b){_.xr(b)}};
d.set(Z,l);Y.call(this,t,P,l)};
var E=Polymer.Base._unlisten;Polymer.Base._unlisten=function(t,P,Z){E.call(this,t,P,d.get(Z))}}if(Polymer.Async){var v=Polymer.Async,c=v._atEndOfMicrotask;
v._atEndOfMicrotask=function(){try{c.apply(v,arguments)}catch(t){_.xr(t)}}}if(Polymer.RenderStatus){var J=Polymer.RenderStatus,g=J.afterNextRender;
J.afterNextRender=function(t,P,Z){g.call(J,t,function(){try{P.apply(this,arguments)}catch(l){_.xr(l)}},Z)}}jp0=!0}};
_.la=function(W){var B=W?_.gO(W):"";if(B){if(B.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(B.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(B.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(B.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(B.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.r("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(B.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";B=B.toLowerCase();if(B==="/")return"home";if(B==="/channel_memberships")return"channel-memberships-shopfront";if(B.indexOf("/feed/trending")===0)return"trending";if(B.indexOf("/feed/explore")===0)return"explore";if(B.indexOf("/live")===0)return"live";if(B.indexOf("/results")===0)return"search";if(B.indexOf("/sports")===0)return"sports";if(B.indexOf("/fashion")===0||B.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(B))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(B))return _.r("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(B.indexOf("/channel/")===0||B.indexOf("/user/")===0||B.indexOf("/gaming")===0||B.indexOf("/post/")===0)return"channel";if(OWu(W))return"show";if(B==="/playlist"||B.indexOf("/playlist/")===0||B==="/view_play_list"||B.indexOf("/view_play_list/")===0||B.indexOf("/show/")===0)return"playlist";if(B==="/feed/history"||B.indexOf("/feed/history/")===0)return"history";if(B===
"/new")return"labs";if(B==="/feed/subscriptions")return"subscriptions";if(B.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(B==="/history_controls")return"standalone";if(B.indexOf("/account")===0||B==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(B.indexOf("/paid_memberships")===0||B.indexOf("/refund")===0||B.indexOf("/purchases")===0||B.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(B.indexOf("/product")===0)return"yts-products";if(B.indexOf("/premium")===
0||B.indexOf("/musicpremium")===0)return B.indexOf("/premium/offers")===0||B.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(B==="/cart/checkout"||B==="/cart")return"ypc-checkout";if(B.indexOf("/feed/downloads")===0||B.indexOf("/redeem")===0||B.indexOf("/reporthistory")===0)return"browse";if(B.indexOf("/hashtag")===0)return"hashtag-landing-page";if(B.indexOf("/handle")===0)return"handle";if(B.indexOf("/source")===0)return"audio-pivot";if(B.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(B.indexOf("/playables")===0)return"playables";if(B.indexOf("/create/live/join")===0)return"open-in-app";if(B.indexOf("/shorts")===0)return"shorts";if(B.indexOf("/feed/channels")===0)return"subscriptions-channels";(B=W?_.gO(W):"")&&B.indexOf("/watch")===0&&_.r("web_watch_enable_learning_journey")?(W=_.Uw(W),W=!!W.list&&W.list.indexOf("LJPP")===0):W=!1;if(W)return"learning_journey_watch"}};
_.Cs=function(W){var B,z;(W=(z=_.k(W==null?void 0:W.commandMetadata,_.Z4))==null?void 0:z.url)&&(B=_.la(W));return B};
OWu=function(W){var B=W?_.gO(W):"";if(!B)return!1;B=B.toLowerCase();return B.indexOf("/show/")===0||B.indexOf("/playlist")===0&&(W=_.Uw(W),W.list&&W.list.indexOf("EL")===0)?!0:!1};
Hg=function(W){var B="unknown",z;var G=((z=_.k(W==null?void 0:W.commandMetadata,_.Z4))==null?void 0:z.webPageType)||"";G?(z=G.toLowerCase(),z.startsWith("web_page_type_")&&(z=z.slice(14))):z=G;z&&X$t[z.toUpperCase()]?B=X$t[z.toUpperCase()]:_.k(W,_.oE)||_.k(W,KOy)?B="browse":_.k(W,_.h8)?B="search":_.k(W,_.W0)&&(B="watch");B==="watch"&&_.Cs(W||null)==="learning_journey_watch"&&(B="learning_journey_watch");B==="unknown"&&_.Oc(Error("Qf`"+JSON.stringify({clickTrackingParams:W==null?void 0:W.clickTrackingParams,
commandMetadata:W==null?void 0:W.commandMetadata,allEndpointKeys:Object.keys(W||[])})));return B};
_.Ft=function(W){if(!_.urR||W)_.urR=_.Fi();return _.urR};
_.eMk=function(W){return!!_.k(W,_.W0)||!!_.k(W,_.SW)&&_.r("kevlar_enable_shorts_prefetch")};
_.m7D=function(W,B){W=_.k(W,_.W0)||_.k(W,_.SW);return"v"+W.videoId+(W.playlistId?"-pl"+W.playlistId:"")+(B?"-an1":"")+(W.params?"-pr"+W.params:"")};
ba=function(W){return function(){return new W}};
jW=function(W){var B=_.dO();return function(){return B.resolve(W)}};
D7R=function(W){var B=_.iO("web_pbj_log_warning_rate",0);B=B>0&&Math.random()<B;if(!_.k(W,_.SW))return B&&_.Oc(Error("Tf")),!1;var z;return _.r("shorts_controller_retrieve_seedless_sequence_v2")&&((z=_.k(W,_.SW))==null?void 0:z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:x7u(W)?!0:(B&&_.Oc(Error("Uf")),!1)};
x7u=function(W){var B=(_.k(W,_.W0)||_.k(W,_.SW)).videoId;if(!B||!QpQ.test(B))return!1;var z;return(W=(z=_.k(W.commandMetadata,_.Z4))==null?void 0:z.url)&&(W.includes(B)||W.startsWith("/clip"))?!0:!1};
_.q7T=function(){var W=_.IP();return W.getFlag(192)?W.getFlag(190):!(_.r("web_watch_cinematics_disabled_by_default")||_.r("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&yaR())};
_.Ol=function(W,B,z){var G={};G.currentUrl=B;G.vis=W.vis!==void 0?W.vis:0;G.splay=!1;B=_.IP();G.autoCaptionsDefaultOn=B.getFlag(66);B.getFlag(141)?B.getFlag(140)?G.autonavState="STATE_OFF":G.autonavState="STATE_ON":G.autonavState="STATE_NONE";G.html5Preference="HTML5_PREF_WANTS";isNaN(_.eD("STS"))||(G.signatureTimestamp=_.eD("STS"));W.autonav&&(G.autoplay=!0,G.autonav=!0);W.mutedAutoplay&&(G.autoplay=!0,G.mutedAutoplay=!0);W.inlinePlayback&&(G.autoplay=!0,G.autonav=!1,G.isInlineUnmutedPlayback=!!W.inlineUnmuted);
G.referer=z;G.lactMilliseconds=W.lact!==void 0?W.lact.toString():"-1";_.r("enable_unknown_lact_fix_on_html5")&&G.lactMilliseconds==="-1"&&_.Oc(new _.oX("Unknown LACT is set in playbackContext.",{"lact in tempData":W.lact||"undefined",autonav:W.autonav||"undefined"}));W={};B.getFlag(194)&&(W.hasShownAmbientMode=!0);B.getFlag(192)&&(W.hasToggledOffAmbientMode=!0);_.q7T()&&(W.watchAmbientModeEnabled=!0);G.watchAmbientModeContext=W;return G};
nIQ=function(W){var B={},z=W.pbis||0;z&&(B.playbackBeginsInSeconds=z);W.prefetch_reason&&W.prefetch_reason==="hc_pbis"&&(B.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return B};
_.Ks=function(W){W=W===void 0?!1:W;var B=_.IP(),z="USER_INTERFACE_THEME_LIGHT";B.getFlag(165)?z="USER_INTERFACE_THEME_DARK":B.getFlag(174)?z="USER_INTERFACE_THEME_LIGHT":_.Xt()&&(z="USER_INTERFACE_THEME_DARK");return W?z:Net()||z};
_.$7R=function(){return!_.r("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Xt=function(){return _.$7R()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.ua=function(){var W=_.IP();return _.$7R()&&!W.getFlag(165)&&!W.getFlag(174)};
Net=function(){var W=W===void 0?window.location.href:W;if(_.r("kevlar_disable_theme_param"))return null;var B=_.gO(W);if(_.LOQ(B))return"USER_INTERFACE_THEME_DARK";try{var z=_.Uw(W).theme;return U7r.get(z)||null}catch(G){}return null};
_.LOQ=function(W){return _.r("enable_dark_theme_only_on_shorts")?!(W==null||!W.startsWith("/shorts/")):!1};
_.RMT=function(W,B,z,G,Y){B=B===void 0?!1:B;z=z===void 0?!1:z;var d=_.eD("INNERTUBE_CONTEXT");if(!d)return _.jy(Error("Xf")),{};d=(0,_.mP.unsafeClone)(d);_.r("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var E=d.client;E.clientName==="MWEB"&&E.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(E.clientFormFactor=_.eD("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");E.screenWidthPoints=window.innerWidth;E.screenHeightPoints=window.innerHeight;E.screenPixelDensity=
Math.round(window.devicePixelRatio||1);E.screenDensityFloat=window.devicePixelRatio||1;E.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());E.userInterfaceTheme=_.Ks();if(!B){var v=_.oOx();v&&(E.connectionType=v);_.r("web_log_effective_connection_type")&&(v=HAu())&&(d.client.effectiveConnectionType=v)}var c;if(_.r("web_log_memory_total_kbytes")&&((c=_.Yt.navigator)==null?0:c.deviceMemory)){var J;c=(J=_.Yt.navigator)==null?void 0:J.deviceMemory;d.client.memoryTotalKbytes=""+c*1E6}B&&G&&!_.r("web_it_context_set_original_url_ks")&&
(E.originalUrl=Mvr(_.Yt.location.href,G).toString());_.r("web_gcf_hashes_innertube")&&(v=eSR())&&(J=v.coldConfigData,c=v.coldHashData,v=v.hotHashData,d.client.configInfo=d.client.configInfo||{},J&&(d.client.configInfo.coldConfigData=J),c&&(d.client.configInfo.coldHashData=c),v&&(d.client.configInfo.hotHashData=v));J=_.Uw(_.Yt.location.href);!_.r("web_populate_internal_geo_killswitch")&&J.internalcountrycode&&(E.internalGeo=J.internalcountrycode);!_.r("web_populate_client_screen_killswitch")&&Y&&(E.clientScreen=
Y);E.clientName==="MWEB"||E.clientName==="WEB"?(E.mainAppWebInfo||(E.mainAppWebInfo={}),E.mainAppWebInfo.graftUrl=G||_.Yt.location.href,_.r("kevlar_woffle")&&_.eW.instance&&(G=_.eW.instance,E.mainAppWebInfo.pwaInstallabilityStatus=!G.appInstalledEventFired&&G.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),E.mainAppWebInfo.webDisplayMode=Sl8(),E.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):E.clientName==="TVHTML5"&&
(!_.r("web_lr_app_quality_killswitch")&&(G=_.eD("LIVING_ROOM_APP_QUALITY"))&&(E.tvAppInfo=Object.assign(E.tvAppInfo||{},{appQuality:G})),G=_.eD("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(E.tvAppInfo=Object.assign(E.tvAppInfo||{},{certificationScope:G}));!_.r("web_populate_time_zone_itc_killswitch")&&(G=CdR())&&(E.timeZone=G);(G=q2D())?E.experimentsToken=G:delete E.experimentsToken;E=nq8();G=_.aHQ();G=(0,_.mP.getValues)(G.tokenJars);d.request=Object.assign({},d.request,{internalExperimentFlags:E,consistencyTokenJars:G});
!_.r("web_prequest_context_killswitch")&&(E=_.eD("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=E);G=_.IP();E=G.getFlag(58);G=G.get("gsml","");d.user=Object.assign({},d.user);E&&(d.user.enableSafetyMode=E);G&&(d.user.lockedSafetyMode=!0);_.r("warm_op_csn_cleanup")?z&&(B=_.m1())&&(d.clientScreenNonce=B):!B&&(B=_.m1())&&(d.clientScreenNonce=B);W&&(d.clickTracking={clickTrackingParams:W});if(W=_.q6("yt.mdx.remote.remoteClient_"))d.remoteClient=W;_.m9.getInstance().setLocationOnInnerTubeContext(d);
try{var g=zjv(),t=g.bid;delete g.bid;d.adSignalsInfo={params:[],bid:t};for(var P=_.A(Object.entries(g)),Z=P.next();!Z.done;Z=P.next()){var l=_.A(Z.value),b=l.next().value,O=l.next().value;g=b;t=O;W=void 0;(W=d.adSignalsInfo.params)==null||W.push({key:g,value:""+t})}var K,e;if(((K=d.client)==null?void 0:K.clientName)==="TVHTML5"||((e=d.client)==null?void 0:e.clientName)==="TVHTML5_UNPLUGGED"){var a=_.eD("INNERTUBE_CONTEXT");a.adSignalsInfo&&(d.adSignalsInfo.advertisingId=a.adSignalsInfo.advertisingId,
d.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",d.adSignalsInfo.limitAdTracking=a.adSignalsInfo.limitAdTracking)}}catch(q){_.jy(q)}return d};
_.Da=function(W,B,z){var G=z&&z>0?z:0;z=G?Date.now()+G*1E3:0;if((G=G?_.x_.getLocalStorage():_.x_.getSessionStorage())&&window.JSON){typeof B!=="string"&&(B=JSON.stringify(B,void 0));try{G.set(W,B,z)}catch(Y){G.remove(W)}}};
_.QL=function(W){var B=_.x_.getSessionStorage(),z=_.x_.getLocalStorage();if(!B&&!z||!window.JSON)return null;try{var G=B.get(W)}catch(Y){}if(typeof G!=="string")try{G=z.get(W)}catch(Y){}if(typeof G!=="string")return null;try{G=JSON.parse(G,void 0)}catch(Y){}return G};
_.yL=function(W){try{var B=_.x_.getSessionStorage(),z=_.x_.getLocalStorage();B&&B.remove(W);z&&z.remove(W)}catch(G){}};
_.W5v=function(W){var B=new q_(_.eD("ONE_PICK_URL",""));B.urlParamMap_.set("hostId",W);(W=_.eD("GAPI_LOCALE"))&&B.urlParamMap_.set("hl",W);(W=_.eD("SESSION_INDEX"))&&B.urlParamMap_.set("authuser",W);(W=_.eD("DELEGATED_SESSION_ID"))&&B.urlParamMap_.set("groupId",W);return B};
za0=function(){var W=_.dO(),B=W.resolve(_.ns);W=W.resolve(_.N_);return new BJu(B,W)};
Yn8=function(W){if(window.IntersectionObserver)return new Go8(W,400);throw new TypeError("dg");};
pDR=function(){var W=Hammer.TouchAction,B=W.prototype.preventDefaults;W.prototype.preventDefaults=function(z){var G=this.actions.indexOf("pan-down")>-1;if(!G)return B.call(this,z);if(!dVr){var Y=z.srcEvent;z=z.direction;var d;if((d=this.manager)==null?0:d.session.prevented)Y.preventDefault();else if(G&&z&Hammer.DIRECTION_DOWN)return this.preventSrc(Y)}}};
ABT=function(W){if(!W||W.size===0)return Hammer.DIRECTION_ALL;if(W.size===2){if(W.has("up")&&W.has("down"))return Hammer.DIRECTION_VERTICAL;if(W.has("right")&&W.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(W.size===1){if(W.has("up"))return Hammer.DIRECTION_UP;if(W.has("down"))return Hammer.DIRECTION_DOWN;if(W.has("right"))return Hammer.DIRECTION_RIGHT;if(W.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.EPD=function(){return inX?Promise.resolve(inX):new Promise(function(W,B){var z=self.indexedDB.open("swpushnotificationsdb");z.onerror=B;z.onsuccess=function(){var G=z.result;if(G.objectStoreNames.contains("swpushnotificationsstore"))inX=G,W(inX);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.EPD()};
z.onupgradeneeded=TJT})};
TJT=function(W){W=W.target.result;W.objectStoreNames.contains("swpushnotificationsstore")&&W.deleteObjectStore("swpushnotificationsstore");W.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
cBR=function(W){var B=vPR(),z;return _.T(function(G){switch(G.nextAddress){case 1:return _.kA(G,2),G.yield(W.match(B,{cacheName:"yt-appshell-assets"}),4);case 4:z=G.yieldResult;_.Nn(G,3);break;case 2:_.h6(G);case 3:return G.return(z)}})};
vPR=function(){var W=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?wDR.registration.scope:VZ0;W.endsWith("/")&&(W=W.slice(0,-1));return W+"/app_shell_home"};
JBu=function(W){W.map(function(B){return B.source}).join("|")};
_.gPx=function(W){return _.T(function(B){return B.return(cBR(W))})};
tZ8=function(){var W=window.caches,B;return _.T(function(z){if(z.nextAddress==1)return z.yield(_.gPx(W),2);B=z.yieldResult;return z.return(!!B)})};
Cq2=function(){_.T(function(W){if(W.nextAddress==1){if(sF8)return W.jumpTo(0);sF8=!0;if(_.r("enable_system_health_primes_monitoring"))return _.VW(Pq2,3E4),ZnR(),W.return();if(!(Math.random()<_.iO("web_system_health_fraction")))return W.jumpTo(0);rBk={heightPixels:screen.height,widthPixels:screen.width};$_&&!isNaN($_.jsHeapSizeLimit)&&(rBk.memoryTotalKbytes=String(Math.round($_.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(rBk.devicePixelRatio=window.devicePixelRatio);return W.yield(kok(),4)}_.VW(Pq2,
3E4);return W.yield(lbr(),0)})};
kok=function(){return _.T(function(W){if(W.nextAddress==1)return Ls.intersectionObserverPresent="IntersectionObserver"in window,Ls.serviceWorkerPresent="serviceWorker"in navigator,Ls.webSharePresent="share"in navigator,Ls.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Ls.cacheStoragePresent="caches"in window,Ls.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Ls.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Ls.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Ul&&Ul.webkitTemporaryStorage&&"queryUsageAndQuota"in Ul.webkitTemporaryStorage,Ls.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",W.yield(YlX(),2);Ls.indexedDbPresent=W.yieldResult;Ls.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Ls.broadcastChannelPresent="BroadcastChannel"in window;Ls.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Ls.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Ls.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.HG(W)})};
Pq2=function(){var W=9E4+Math.random()*2E3;_.Gi()>W||(_.r("enable_system_health_primes_monitoring")?ZnR():lbr())};
lbr=function(){var W;return _.T(function(B){if(B.nextAddress==1)return B.yield(Ibu(),2);W=B.yieldResult;_.Sy("systemHealthCaptured",W);_.HG(B)})};
ZnR=function(){var W={metric:{}},B=oPR();B.networkEvents.length&&(W.metric.networkEvents=haX(B));_.Sy("systemHealthCaptured",W)};
Ibu=function(){var W,B,z,G,Y,d,E,v,c,J;return _.T(function(g){switch(g.nextAddress){case 1:W={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)};B=window.screen;_.r("enable_is_extended_monitoring")&&B&&"isExtended"in B&&(W.isExtended=!!B.isExtended);z={metric:{staticContext:rBk,dynamicContext:W,webMetric:Hnk,webApiSupport:Ls}};
if(G=_.m1())z.csn=G;$_&&(z.metric.webMetric.currentHeapKbytes=Math.round($_.usedJSHeapSize/1E3));window.matchMedia&&(z.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,z.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,z.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Ul&&typeof Ul.getBattery==="function")){g.jumpTo(2);break}return g.yield(Ul.getBattery(),3);case 3:if(Y=
g.yieldResult)z.metric.dynamicContext.chargingStatus=Y.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(z.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Ls.storageEstimatePresent)return g.yield(navigator.storage.estimate(),8);if(!Ls.webkitTemporaryStoragePresent){g.jumpTo(5);break}return g.yield(F50(),7);case 7:d=g.yieldResult;g.jumpTo(5);break;case 8:d=g.yieldResult;case 5:return z.metric.dynamicContext.deviceStorageQuotaMbytes=((E=d)==null?0:E.quota)?String(Math.round(d.quota/
1048576/10)*10):"-1",z.metric.dynamicContext.deviceStorageUsageMbytes=((v=d)==null?0:v.usage)?String(Math.round(d.usage/1048576/10)*10):"-1",c=z.metric.dynamicContext,g.yield(tZ8(),9);case 9:return c.hasAppShell=g.yieldResult,J=oPR(),J.networkEvents.length&&(z.metric.networkEvents=haX(J)),g.return(z)}})};
F50=function(){return new Promise(function(W){var B;Ls.webkitTemporaryStoragePresent&&(B=Ul.webkitTemporaryStorage)!=null&&B.queryUsageAndQuota?Ul.webkitTemporaryStorage.queryUsageAndQuota(function(z,G){W({usage:z,quota:G})}):W(void 0)})};
_.M_=function(W){W&=16777215;W=[(W&16711680)>>16,(W&65280)>>8,W&255];return SnR(W[0],W[1],W[2])};
_.aE=function(W){W=[(W&16711680)>>>16,(W&65280)>>>8,W&255,(W&4278190080)>>>24];var B=_.bnt(W,function(z){return z==(z&255)});
W[3]=(W[3]/255).toFixed(3);if(!B)throw Error("eg`"+W.join(","));return"rgba("+W.join(",")+")"};
_.jF8=function(W){return[(W&16711680)>>>16,(W&65280)>>>8,W&255]};
_.fbX=function(W){W=W.map(function(B){B/=255;return B<=.03928?B/12.92:Math.pow((B+.05)/1.05,2.4)});
return W[0]*.2126+W[1]*.7152+W[2]*.0722};
RE=function(W,B){W=_.jF8(W);return"rgba("+W[0]+", "+W[1]+", "+W[2]+", "+B+")"};
_.Onu=function(){try{return!!self.localStorage}catch(W){return!1}};
eaQ=function(){if(XDR())_.Oc(Error("fg"));else{var W=document.createElement("iframe");W.style.display="none";var B=B===void 0?window.location.href:B;var z=_.OE(_.eD("PERSIST_IDENTITY_IFRAME_URL"));B=z?z:(new URL(B)).host.indexOf("studio")===0?_.sY(K5Q,"persist_identity"):_.sY(uZT,"persist_identity");_.A6R(W,1,B);W.id="persist_identity";var G;(G=document.body)==null||G.appendChild(W)}};
XDR=function(){var W=mVr;W||(W=document.querySelector("#persist_identity"));return W};
xV0=function(){var W=!1;try{W=!!window.sessionStorage.getItem("session_logininfo")}catch(B){W=!0}return(_.eD("INNERTUBE_CLIENT_NAME")==="WEB"||_.eD("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&W};
DVR=function(W,B){if(!xV0())return!1;B||(B=_.eD("LOGIN_INFO"));return B?(W.session_logininfo=B,!0):!1};
yBR=function(W,B){W=W===void 0?!1:W;if((B===void 0||!B)&&QFX!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.md("LOG_STICKINESS",!1)){B=_.m1();var z=_.et(),G={identityStickinessData:{initialState:QFX}};B&&z&&_.B3(B,z,G)}if(B=XDR())if(z=B.src?(new URL(B.src)).origin:"*",W){var Y;(Y=B.contentWindow)==null||Y.postMessage({action:"clear"},z)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(W=window.sessionStorage.getItem("session_logininfo"))){var d;(d=B.contentWindow)==null||d.postMessage({loginInfo:W},z)}};
_.Wf=function(W){W=W===void 0?!0:W;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.uk("LOGIN_INFO",""),W&&window.sessionStorage.setItem("from_switch_account","1"),yBR(!0,W)}catch(B){}};
qn0=function(W){W&&(W.startsWith("https://accounts.google.com/AddSession")?_.Wf():W.startsWith("https://accounts.google.com/ServiceLogin")?_.Wf():W.startsWith("https://myaccount.google.com")&&_.Uk(W).getPath().endsWith("/youtubeoptions")&&_.Wf())};
Bf=function(W,B){qn0(W);if(_.md("LOGGED_IN",!0)&&xV0()){var z=SW2(W);z==null&&(z={});DVR(z,B)&&_.Yq(W,z)}};
nPQ=function(){function W(B){for(B=B.target;B&&B.nodeName!=="A";)if(B=B.parentNode,!(B&&B instanceof HTMLElement))return;if(B&&!B.hasAttribute("download")&&B.getAttribute("rel")!=="external"&&B.href)return B.href}
document.addEventListener("mousedown",function(B){B.button!==0&&(B=W(B))&&Bf(B)});
document.addEventListener("click",function(B){(B=W(B))&&Bf(B)})};
L5r=function(){var W=new NJ0;try{if(_.md("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(v){W.increment(5,!1);return}if(_.eD("LOGIN_INFO")){var B=$V8?$V8:window.location;_.eD("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&eaQ();var z=SW2(B.href);z==null&&(z={});var G=z.session_logininfo,Y=Number(window.sessionStorage.getItem("stickiness_reload")),d=G===_.eD("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
Y>=2||d)Y>=2?W.increment(2,d):d?W.increment(7,d):window.sessionStorage.getItem("session_logininfo")||(W.increment(3,d),QFX="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.eD("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.eD("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))W.increment(4,d),window.sessionStorage.removeItem("stickiness_reload");
else if(Y<2){window.sessionStorage.setItem("stickiness_reload",String(Y+1));var E=B.href;E=_.dV(E,"sttick");Bf(E,window.sessionStorage.getItem("session_logininfo"));E=_.M6(E,{sttick:Y});W.increment(Y,d);_.wGv(B,E)}}else W.increment(6,!1)}else _.Wf(!1)}catch(v){}};
_.zS=function(W,B,z,G,Y){B=B===void 0?{}:B;z=z===void 0?"":z;G=G===void 0?window:G;W=_.aJ(W,B);Bf(W);z=_.yN(W+z,Y);_.wGv(G.location,z)};
UVD=function(W){if(W.urlEndpoint){if(W=_.Uw(W.urlEndpoint.url),W.adurl)return G4(W.adurl)}else if(W.watchEndpoint)return"//www.youtube.com/watch?v="+W.watchEndpoint.videoId;return null};
MZv=function(W){if(!W||!W.reportingPings)return null;var B={};W.reportingPings.forEach(function(z){z.pingType in B?B[z.pingType].push(z.url):B[z.pingType]=[z.url]});
return{adpings:S2T(B)}};
_.GS=function(){return{isShellLoad:_.md("IS_SHELL_LOAD",!1)}};
Rar=function(){navigator.serviceWorker.getRegistrations().then(function(W){W.forEach(abr)})};
abr=function(W){W&&_.WJr(Bsu,W.scope)};
_.WJr=function(W,B){B={scope:B||_.EA("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.jN(W),B)};
Yw=function(W,B,z,G){if(B&&B.serializedYpcCujLoggingParams){if(z){var Y={};Y.transactionErrorType=z;G&&(Y.errorMessage=G);B.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:Y}}}z={};z.ypcCujContext=B;W=_.Pg("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",W,z);_.Za(_.rD(),W,"FLOW_TYPE_YPC_ACQUISITION")}};
_.z4X=function(W,B,z,G){var Y={};Y.serializedTransactionFlowLoggingParams=B;z&&(Y.errorType=z);G&&(Y.errorMessage=G);_.Sy(W,Y);_.bp()};
_.GXQ=function(W){W&&_.z4X("transactionFlowStarted",W)};
_.YiR=function(W){W&&_.z4X("transactionFlowCancelled",W)};
_.d5=function(W,B,z){B&&_.z4X("transactionFlowFailed",B,W,z)};
d22=function(W){var B=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");B&&(B.inert=W)};
_.po=function(){this.megabloxUrl_=null};
_.AH=function(W){try{var B=pHk==null?void 0:pHk.composedPath(W)}catch(z){B=W.composedPath?W.composedPath():[]}return B&&B.length>0?B:W.composedPath?W.composedPath():[]};
_.iP=function(W){return _.AH(W)[0]};
_.ER=function(W){if(!(W instanceof Element))return null;W=W.classList?Array.from(W.classList):void 0;if(!W)return null;var B=W.indexOf("style-scope");return B>-1&&B+1<W.length?W[B+1]:null};
TS=function(W){if(!(W instanceof HTMLElement))return null;var B=W&&(W.$$||W.polymerController)?W.tagName.toLowerCase():null;return B?B:_.ER(W)};
Aeu=function(W,B){return W.replace(/[^a-z]*[^\s]+/g,function(z){return z+".style-scope."+B})};
iYy=function(W,B){return B?W.split(",").map(function(z){return Aeu(z.trim(),B)}).join(", "):W};
_.vf=function(W){var B,z,G,Y;return(Y=(G=(z=(B=W.root)!=null?B:W.shadowRoot)!=null?z:W.__shady_native_shadowRoot)!=null?G:W.__shady_shadowRoot)!=null?Y:W};
cf=function(W){return W instanceof ShadowRoot?ShadowRoot:W instanceof DocumentFragment?DocumentFragment:W instanceof Document?Document:HTMLElement};
ERr=function(W){var B,z,G;return(G=(z=(B=W.parentElement)!=null?B:W.__shady_native_parentElement)!=null?z:W.__shady_parentElement)!=null?G:null};
Tsu=function(W){var B,z,G;return(G=(z=(B=W.parentNode)!=null?B:W.__shady_native_parentNode)!=null?z:W.__shady_parentNode)!=null?G:null};
vRX=function(W){var B,z,G;return(G=(z=(B=W.__shady_parentNode)!=null?B:W.__shady_native_parentNode)!=null?z:W.parentNode)!=null?G:null};
ceT=function(W){var B,z;return(z=(B=Tsu(W))!=null?B:W.host)!=null?z:null};
wHD=function(W){var B,z,G;return(G=(z=(B=W.nextSibling)!=null?B:W.__shady_native_nextSibling)!=null?z:W.__shady_nextSibling)!=null?G:null};
VhQ=function(W){var B,z,G;return(G=(z=(B=W.previousSibling)!=null?B:W.__shady_native_previousSibling)!=null?z:W.__shady_previousSibling)!=null?G:null};
Jev=function(W){var B,z,G;return(G=(z=(B=W.nextElementSibling)!=null?B:W.__shady_native_nextElementSibling)!=null?z:W.__shady_nextElementSibling)!=null?G:null};
gRT=function(W){var B,z,G;return(G=(z=(B=W.previousElementSibling)!=null?B:W.__shady_native_previousElementSibling)!=null?z:W.__shady_previousElementSibling)!=null?G:null};
th8=function(W){var B,z,G;return new Set([].concat(_.u7((B=W.children)!=null?B:[]),_.u7((z=W.__shady_native_children)!=null?z:[]),_.u7((G=W.__shady_children)!=null?G:[])))};
sWT=function(W){var B,z,G;return new Set([].concat(_.u7((B=W.childNodes)!=null?B:[]),_.u7((z=W.__shady_native_childNodes)!=null?z:[]),_.u7((G=W.__shady_childNodes)!=null?G:[])))};
PMR=function(W){if(!W)return null;var B=_.ER(W);if(!B){var z;return(z=Node.prototype.getRootNode)==null?void 0:z.call(W)}B=B.toUpperCase();for(W=ERr(W);W&&W.tagName!==B;)W=ERr(W);return W?_.vf(W):null};
ZYD=function(W){for(;W&&!(W instanceof HTMLElement);)W=ceT(W);return W};
rer=function(W){var B=ZYD(W);return W===B?_.ER(W):B?TS(B):null};
kXy=function(W){return(W=ZYD(W))?TS(W):null};
lS0=function(W){if(W instanceof Comment)return!1;if(W instanceof Text){var B,z;if(((z=(B=W.textContent)==null?void 0:B.trim())!=null?z:"")==="")return!1}return!0};
w5=function(W,B,z){var G=B(W);for(z=z===void 0?kXy(W):z;G&&(rer(G)!==z||!lS0(G));)W=G,G=B(W);return G};
CMx=function(W,B,z){if(!B)return null;W=kXy(W);return rer(B)===W&&lS0(B)?B:w5(B,z,W)};
ISt=function(W){return w5(W,vRX,_.ER(W))};
oRu=function(W){return w5(W,Jev)};
h4R=function(W){return w5(W,wHD)};
HYx=function(W){return w5(W,gRT)};
FJX=function(W){return w5(W,VhQ)};
Si2=function(W){return CMx(W,W.firstChild||W.__shady_native_firstChild||W.__shady_firstChild||null,wHD)};
bYk=function(W){var B,z,G;var Y=(G=(z=(B=W.firstElementChild)!=null?B:W.__shady_native_firstElementChild)!=null?z:W.__shady_firstElementChild)!=null?G:null;return CMx(W,Y,Jev)};
jWr=function(W){var B,z,G;var Y=(G=(z=(B=W.lastChild)!=null?B:W.__shady_native_lastChild)!=null?z:W.__shady_lastChild)!=null?G:null;return CMx(W,Y,VhQ)};
fSv=function(W){var B,z,G;var Y=(G=(z=(B=W.lastElementChild)!=null?B:W.__shady_native_lastElementChild)!=null?z:W.__shady_lastElementChild)!=null?G:null;return CMx(W,Y,gRT)};
OYR=function(W){var B=kXy(W);return Array.from(sWT(W)).filter(function(z){return rer(z)===B})};
XHX=function(W){var B=TS(W);return Array.from(th8(W)).filter(function(z){return _.ER(z)===B})};
_.VU=function(W,B,z){if(W instanceof HTMLElement&&_.ER(W)===z){var G=Array.from(W.classList).indexOf("style-scope");if(G===-1)W.classList.add("style-scope"),W.classList.add(B);else if(!(G+1>=W.classList.length)){G=W.classList[G+1];var Y,d;W==null||(Y=W.classList)==null||(d=Y.replace)==null||d.call(Y,G,B)}}if(W instanceof HTMLElement||W instanceof DocumentFragment)for(Y=_.A(th8(W)),d=Y.next();!d.done;d=Y.next())_.VU(d.value,B,z);return W};
JH=function(W,B){if(W instanceof HTMLElement&&_.ER(W)===B){var z=Array.from(W.classList).indexOf("style-scope");z===-1||z+1>=W.classList.length||W.classList.remove("style-scope",W.classList[z+1])}if(W instanceof HTMLElement||W instanceof DocumentFragment){z=_.A(W.children);for(var G=z.next();!G.done;G=z.next())JH(G.value,B)}return W};
_.KJx=function(W,B){return cf(W).prototype.appendChild.call(W,B)};
u7u=function(W,B){if(W===B)return!0;W=sWT(W);return Array.from(W).some(function(z){return u7u(z,B)})};
_.tH=function(W,B){if(W instanceof g5)return W;(B==null?0:B.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(W,"ownerDocument")&&Object.defineProperty(W,"ownerDocument",{get:function(){return window.document}});
return new g5(W)};
m2R=function(){var W=g5.prototype,B=[].concat(_.u7(e4X?[]:["getRootNode"]),["setAttribute","removeAttribute"]);B=_.A(B);for(var z=B.next(),G={};!z.done;G={method$jscomp$51:void 0},z=B.next())G.method$jscomp$51=z.value,W[G.method$jscomp$51]=function(Y){return function(){return this.host[Y.method$jscomp$51].apply(this.host,arguments)}}(G)};
D2y=function(){var W=g5.prototype,B=[].concat(_.u7(e4X?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.u7(x2X?[]:["querySelector","querySelectorAll"]));B=_.A(B);for(var z=B.next(),G={};!z.done;G={method$jscomp$52:void 0},z=B.next())G.method$jscomp$52=z.value,W[G.method$jscomp$52]=function(Y){return function(){return this.root[Y.method$jscomp$52].apply(this.root,arguments)}}(G)};
qix=function(){var W=g5.prototype,B=[].concat(_.u7(QW8?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.u7(ye0?[]:["parentNode"]));B=_.A(B);for(var z=B.next(),G={};!z.done;G={prop$jscomp$63:void 0},z=B.next())G.prop$jscomp$63=z.value,Object.defineProperty(W,G.prop$jscomp$63,{get:function(Y){return function(){return this.host[Y.prop$jscomp$63]}}(G),
configurable:!0})};
$20=function(){var W=g5.prototype,B=["activeElement"].concat(_.u7(QW8?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.u7(nRu?[]:["children"]),_.u7(NsT?[]:["lastChild"]));B=_.A(B);for(var z=B.next(),G={};!z.done;G={prop$jscomp$64:void 0},z=B.next())G.prop$jscomp$64=z.value,Object.defineProperty(W,G.prop$jscomp$64,{get:function(Y){return function(){return this.root[Y.prop$jscomp$64]}}(G),
configurable:!0})};
LJ8=function(){for(var W=g5.prototype,B=_.A(["innerHTML","textContent"]),z=B.next(),G={};!z.done;G={prop$jscomp$65:void 0},z=B.next())G.prop$jscomp$65=z.value,Object.defineProperty(W,G.prop$jscomp$65,{get:function(Y){return function(){return this.root[Y.prop$jscomp$65]}}(G),
set:function(Y){return function(d){this.root[Y.prop$jscomp$65]=d}}(G),
configurable:!0})};
U2R=function(W){var B=g5.prototype;W=_.A(Object.entries(W));for(var z=W.next(),G={};!z.done;G={fn$jscomp$402:void 0},z=W.next()){var Y=_.A(z.value);z=Y.next().value;Y=Y.next().value;G.fn$jscomp$402=Y;B[z]=function(d){return function(){return d.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.u7(arguments)))}}(G)}};
aS8=function(){for(var W=g5.prototype,B=_.A(Object.entries(MhD)),z=B.next(),G={};!z.done;G={fn$jscomp$403:void 0},z=B.next()){var Y=_.A(z.value);z=Y.next().value;Y=Y.next().value;G.fn$jscomp$403=Y;Object.defineProperty(W,z,{get:function(d){return function(){return d.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.u7(arguments)))}}(G),
configurable:!0})}};
_.sR=function(W){return W instanceof R4R||W instanceof Document?W:new R4R(W)};
WnX=function(){for(var W=R4R.prototype,B=_.A("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),z=B.next(),G={};!z.done;G={method$jscomp$53:void 0},z=B.next())G.method$jscomp$53=z.value,W[G.method$jscomp$53]=function(Y){return function(){return HTMLElement.prototype[Y.method$jscomp$53].call.apply(HTMLElement.prototype[Y.method$jscomp$53],[this.node].concat(_.u7(arguments)))}}(G)};
Bvu=function(){for(var W=R4R.prototype,B=_.A("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),z=B.next(),G={};!z.done;G={prop$jscomp$66:void 0},z=B.next())G.prop$jscomp$66=z.value,Object.defineProperty(W,G.prop$jscomp$66,{get:function(Y){return function(){var d;return(d=this.node["__shady_native_"+Y.prop$jscomp$66])!=null?d:this.node[Y.prop$jscomp$66]}}(G),
configurable:!0})};
_.Pf=function(W,B,z){z===void 0&&(z=!W.classList.contains(B));z?W.classList.add(B):W.classList.remove(B)};
_.Z8=function(W,B,z){z===void 0&&(z=!W.hasAttribute(B));if(B==="class")throw Error("kg");z?_.sR(W).setAttribute(B,""):_.sR(W).removeAttribute(B)};
zbk=function(W){return(W.localName!=="slot"?[]:(0,_.r5)(W).assignedNodes({flatten:!0})).filter(function(B){return B.nodeType===Node.ELEMENT_NODE})};
_.GJR=function(W){return(W=_.tH(W).querySelector("slot"))&&W.localName==="slot"?zbk(W):[]};
_.kw=function(W,B){window.ShadyCSS&&window.ShadyCSS.styleSubtree(W,B)};
lP=function(W,B){var z=B.bind(W);return function(G){z(G,G.detail)}};
_.Co=function(W,B){var z=YGt.get(W);z||(z=new WeakMap,YGt.set(W,z));if(z.has(B))return z.get(B);if(_.r("web_fi_listen_disable_bound_fn_helper")){var G=B.bind(W);W=function(Y){G(Y,Y==null?void 0:Y.detail)}}else W=lP(W,B);
z.set(B,W);return W};
ATy=function(W,B){dUk(W);W.created[plR].push(B)};
dUk=function(W){if(!W.created||!W.created[plR]){var B=W.created,z=B?[B]:[];W.created=function(){for(var G=_.A(z),Y=G.next();!Y.done;Y=G.next())Y.value.apply(this)};
W.created[plR]=z}};
idu=function(W){return function(){var B=_.nm.apply(0,arguments);return function(z,G,Y){W.apply(null,_.u7(B))(z,G,Y)}}};
EDR=function(){return function(){var W=_.nm.apply(0,arguments);return function(B,z,G){$Dv.apply(null,_.u7(W))(B,z,G)}}};
_.h=function(W){return EDR()(W)};
_.H=function(){return idu(aFT).apply(null,_.u7(_.nm.apply(0,arguments)))};
_.IN=function(W){return _.r("pbcm_fi_listen_decorators")?Tvx(W):idu(UDt)(W)};
Tvx=function(W){return function(B,z){ATy(B,function(){var G=this[z],Y=_.r("web_fi_listen_disable_bound_fn_helper")?function(d){G(d,d.detail)}.bind(this):lP(this,G);
vDv.has(W)?XQ(this.hostElement,W,Y):this.hostElement.addEventListener(W,Y)})}};
_.oN=function(){return idu(M7u).apply(null,_.u7(_.nm.apply(0,arguments)))};
_.F=function(W){W=W===void 0?{}:W;return idu(LkD)(W)};
_.hH=function(W){if(W.hostElement&&W!==W.hostElement){var B=_.St(W.hostElement);B=W.renderIdom?B:B.shadowRoot}B||(W=W.root,B=W instanceof Node?_.St(W):null);return B};
_.Hf=function(W){return cTt?wl8(W):function(B,z){Object.defineProperty(B,z,{get:function(){var G;return(G=_.hH(this))==null?void 0:G.querySelector(W)},
enumerable:!0,configurable:!0})}};
wl8=function(W){return function(B,z){Object.defineProperty(B,z,{get:function(){var G,Y=(G=_.tH(this.hostElement))==null?void 0:G.querySelector(W);if(Y)return Y;var d;return(d=_.hH(this))==null?void 0:d.querySelector(W)},
enumerable:!0,configurable:!0})}};
_.F4=function(W){return cTt?VMx(W):function(B,z){Object.defineProperty(B,z,{get:function(){var G;return(G=_.hH(this))==null?void 0:G.querySelectorAll(W)},
enumerable:!0,configurable:!0})}};
VMx=function(W){return function(B,z){Object.defineProperty(B,z,{get:function(){var G,Y=(G=_.tH(this.hostElement))==null?void 0:G.querySelectorAll(W);if(Y==null?0:Y.length)return Y;var d;return(d=_.hH(this))==null?void 0:d.querySelectorAll(W)},
enumerable:!0,configurable:!0})}};
JTx=function(W){return function(B){if(![_.Y6,_.S].includes(Object.getPrototypeOf(B.prototype).constructor))throw Error("lg");mD2(Object.assign({},typeof W!=="string"?W:{is:W,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(B)}};
_.bP=function(){var W=W===void 0?{}:W;return function(B){if(![d8,_.SJ].includes(Object.getPrototypeOf(B.prototype).constructor))throw Error("mg");xDy(Object.assign({},W,{disableInheritanceCheck:!0}))(B)}};
tM2=function(W,B){gDx[W]!=null||(gDx[W]=new Set);gDx[W].add(B)};
_.jJ=function(){var W=_.oN.apply(null,_.u7(_.nm.apply(0,arguments)));return function(B,z){tM2(B.is,z);W(B,z)}};
X4=function(W,B,z){if(fo(W)&&!sa0.has(B)){B=B.replace(/^JSC\$[\d]+_/,"");B=B.replace(/\.\d+(\.|$)/g,function(d,E){return".#"+E});
OR[W]!=null||(OR[W]={});var G,Y;(G=OR[W])[Y=B]!=null||(G[Y]=new Set);OR[W][B].has(z)||(OR[W][B].add(z),_.Sy("polymerPropertyAccessEvent",{componentName:W,propertyName:B,accessType:z}))}};
Pnv=function(){return _.r("polymer_property_access_logging_debug")||_.r("polymer_enable_property_access_logging")};
fo=function(W){if(_.r("polymer_property_access_logging_debug"))return!0;if(!_.r("polymer_enable_property_access_logging"))return!1;Zdk||(Zdk=Date.now());return($6(W)+Zdk)%100<_.iO("polymer_property_access_logging_percent")};
rTR=function(W,B){return fo(B)&&W.hostElement.loggingStatus?new Proxy(W,{get:function(z,G,Y){if(z.hostElement.loggingStatus.bypassProxyController)return z[G];z.hostElement.loggingStatus.isExternalGet=!0;var d=z[G];z.hostElement.loggingStatus.isExternalGet=!1;if(d instanceof Function)return function(){var E=_.nm.apply(0,arguments);try{return z.hostElement.loggingStatus.currentExternalCall=G,X4(B,G,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),d.apply(this===Y?z:this,E)}finally{z.hostElement.loggingStatus.currentExternalCall=
void 0}};
X4(B,G,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return d},
set:function(z,G,Y){if(z.hostElement.loggingStatus.bypassProxyController)return z[G]=Y,!0;z.hostElement.loggingStatus.isRendererStamper?X4(B,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):z.hostElement.loggingStatus.isDeclarativeExternal||X4(B,G,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{z.hostElement.loggingStatus.currentExternalSet=G,z[G]=Y}finally{z.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):W};
kJR=function(W,B){W&&W.loggingStatus&&!W.loggingStatus.isDeclarativeExternal&&!W.loggingStatus.isExternalGet&&W.loggingStatus.currentExternalSet!==B&&X4(W.tagName.toLowerCase(),B,"PROPERTY_ACCESS_GET_INTERNAL")};
Ko=function(W,B,z){W&&(z||W.loggingStatus&&!W.loggingStatus.isInitializing&&!W.loggingStatus.isDefiningPropertyAccessor&&W.loggingStatus.currentExternalSet!==B)&&X4(W.tagName.toLowerCase(),B,"PROPERTY_ACCESS_SET_INTERNAL")};
lY2=function(){return{_definePropertyAccessor:function(W,B){var z=this,G=z.hostElement.loggingStatus;G&&(G.isDefiningPropertyAccessor=!0);var Y=z[W];Y!==void 0&&(z.__data?z._setPendingProperty(W,Y):(z.__dataProto!=null||(z.__dataProto={}),z.__dataProto[W]=Y));G&&(G.isDefiningPropertyAccessor=!1);Object.defineProperty(this,W,{get:function(){kJR(z.hostElement,W);return this.__data[W]},
set:function(d){B||this._setPendingProperty(W,d,!0)&&this._invalidateProperties()}})},
created:function(){var W=this._setPendingProperty.bind(this);this._setPendingProperty=function(B,z,G){Ko(this.hostElement,B);return W.apply(this,[B,z,G])}}}};
CnR=function(W){Pnv()&&_.h(uP.prototype)(W.prototype,"__templateBindingLoggingBehavior")};
IY0=function(W,B){if(B.resolvedFactories.length!==W.resolvedFactories.length)return!0;B=_.A(B.resolvedFactories.entries());for(var z=B.next();!z.done;z=B.next()){var G=_.A(z.value);z=G.next().value;G=G.next().value;if(G.providerClass){if(G.providerClass!==W.resolvedFactories[z].providerClass)return!0}else if(G.providerValue){if(G.providerValue!==W.resolvedFactories[z].providerValue)return!0}else if(G.factory!==W.resolvedFactories[z].factory)return!0}return!1};
oDT=function(W,B){W=_.A(W);for(var z=W.next();!z.done;z=W.next())if(z=z.value,z.constructor===Array)oDT(z,B);else{var G=B;G.has(z)||(z.inject&&G.add(z),z.behaviors&&oDT(z.behaviors,G))}};
eJ=function(W,B){var z=W[B];W[B]=function(){var G=_.nm.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(z)return z.apply(this,G)}};
SGv=function(){_.D8.Class=function(z,G){z=hbR(z,G);eJ(z.prototype,"created");return z};
eJ(QU.prototype,"_initializeProperties");eJ(_.yU.prototype,"_initializeProperties");if(Hdx)eJ(Fny,"created");else{var W=function(){eJ(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))W();else{var B=customElements.define;customElements.define=function(z,G,Y){B.call(customElements,z,G,Y);z==="tp-yt-iron-list"&&(W(),customElements.define=B)}}}};
jav=function(W,B){W.prototype.behaviors=W.prototype.behaviors||[];W.prototype.behaviors.unshift(bdR.InjectBehavior);W.prototype.provide=B};
_.NJ=function(W){return function(B){if(!W.disableElementRegistration){W.noInjection||jav(B,W.providers);var z=B.prototype;z.__templateHelpers||$Dv(qJ.prototype)(z,"__templateHelpers");z=W.is;fY2||(fY2=Date.now());($6(z)+fY2)%100<_.iO("polymer_log_prop_change_observer_percent")&&$Dv(no.prototype)(B.prototype,"__propertyObserverObserver");B.prototype.behaviors=B.prototype.behaviors||[];B.prototype.behaviors.unshift(_.Odv.YtHostElementBehavior);CnR(B);JTx({is:W.is,notifyObserversOnUndefined:W.notifyObserversOnUndefined!==
!1,fastInit:W.fastInit,template:W.template,disableEnforceFastDefaultValuesCheck:!0})(B)}}};
_.u=function(W){return _.NJ({is:W.is,template:W.template,disableElementRegistration:W.disableElementRegistration,cssBuildOptOut:W.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
uyR=function(W,B){if(XlX){W=new W;for(var z=_.A(Object.getOwnPropertyNames(W)),G=z.next();!G.done;G=z.next())G=G.value,B[G]=W[G];for(z=B;z&&z!==Object.prototype;z=Object.getPrototypeOf(z)){G=_.A(Object.getOwnPropertyNames(z));for(var Y=G.next();!Y.done;Y=G.next())Y=Y.value,W.hasOwnProperty(Y)||Object.defineProperty(W,Y,Knu(B,Y))}}else W.apply(B)};
Knu=function(W,B){return{get:function(){var z=W[B];return z instanceof Function?z.bind(W):z},
set:function(z){W[B]=z}}};
mUX=function(W,B){for(var z=W._noAccessors,G=_.A(Object.getOwnPropertyNames(W)),Y=G.next();!Y.done;Y=G.next())if(Y=Y.value,!ebk.has(Y))if(z)B[Y]=W[Y];else{var d=Object.getOwnPropertyDescriptor(W,Y);d&&(d.configurable=!0,Object.defineProperty(B,Y,d))}};
xUR=function(W,B,z){return function(G){if(z){var Y=z();G.model=Y}if(W[B])W[B](G,G.detail)}};
$w=function(W){var B=[];if(typeof W==="string")W.length>0&&B.push.apply(B,_.u7(W.split(".")));else{W=_.A(W);for(var z=W.next();!z.done;z=W.next())z=z.value,typeof z==="string"?B.push.apply(B,_.u7(z.split("."))):B.push(z)}return B};
DU0=function(W,B){if(B[B.length-1]!=="*"&&B[B.length-1]!=="splices"){for(var z=0;z<B.length;z++){if(!W)return;W=W[B[z]]}return W}};
Qax=function(W,B){if(W.length>B.length)return!1;for(var z=0;z<W.length;z++)if(W[z]!==B[z])return!1;return!0};
qGQ=function(W,B,z){if(B.type==="compute"){var G=B.getter.bind(z);var Y=B.args}else G=function(){return z[B.method.methodName].apply(z,_.u7(_.nm.apply(0,arguments)))},Y=B.method.args;
yTt(W,B.propertyKey,G,Y,B.value)};
Nvv=function(W,B){if(B.readOnly){var z=Object.getOwnPropertyDescriptor(W.model,B.propertyKey);Object.defineProperty(W.model,B.propertyKey,{get:z.get,set:function(){}});
W.model[nDR(B.propertyKey)]=z.set}};
$U8=function(W,B,z){if(z){var G=B.propertyKey,Y=B.selector;B=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.u7(B.selectorArgs.map(function(d){return{type:"path",path:d}})));
yTt(W,G,function(d){var E=_.nm.apply(1,arguments);return Y.apply(null,[z.getState()].concat(_.u7(E)))},B)}};
UUT=function(W,B,z){var G=_.k6(B.propertyKey)+"-changed";LnR(W,function(Y){var d={value:Y.value,queueProperty:!0};Y.path.split(".").length>1&&(d.path=Y.path);z.dispatchEvent(new CustomEvent(G,{detail:d}))},[{type:"wildcard",
path:B.propertyKey}])};
MMk=function(W,B,z){LnR(W,function(){z[B.method.methodName].apply(z,_.u7(_.nm.apply(0,arguments)))},B.method.args)};
nDR=function(W){return"_set"+(W.charAt(0).toUpperCase()+W.slice(1))};
aYx=function(){var W,B=Od(function(z){W=z},!1);
return[W,B]};
GQT=function(W){W=W.trim().replace(Rbx,",").replace(WWk,"$1");var B=W[0];B==="-"&&(B=W[1]);if(B>="0"&&B<="9")return{type:"literal",value:Number(W)};if(B==="'"||B==='"')return{type:"literal",value:W.slice(1,-1)};if(B=W.match(BG8)){B=B[1];var z=zLy[B];if(z)return{type:z,path:W.slice(0,-(B.length+1))}}return{type:"path",path:W}};
AUt=function(W){var B=W.match(YDy);if(B)return W={methodName:B[1],args:dhy},B[2].trim()&&(B=B[2].replace(pm2,"&comma;").split(","),W.args=B.map(GQT)),W};
iMx=function(W,B,z,G){G=G===void 0?!1:G;B=_.k6(B);var Y=rq;Y&&(z=Y(z,B,"attribute",W));Lo(W,z,B,G)};
Lo=function(W,B,z,G){B=EQ8(B,G===void 0?!1:G);B===void 0?W.removeAttribute(z):W.setAttribute(z,B)};
EQ8=function(W,B){switch(typeof W){case "object":case "function":if(W instanceof Date)return W.toString();if(W){if((B===void 0?0:B)&&!_.r("polymer_reflect_objects_as_boolean_killswitch"))return W?"":void 0;B=window.trustedTypes?window.trustedTypes.isHTML(W)||window.trustedTypes.isScript(W)||window.trustedTypes.isScriptURL(W):void 0;if(B)return W;try{return JSON.stringify(W)}catch(z){_.Oc(Error("Ig`"+W))}}break;case "boolean":return W?"":void 0;default:return W!==null&&W!==void 0?W.toString():void 0}};
TG2=function(W){if(W===void 0)throw Error("Jg");return W};
JU8=function(W,B,z,G){var Y=vQD(G);if(Y.length){G=z;var d="property";cUT.test(z)?d="attribute":z[z.length-1]==="$"&&(z=z.slice(0,-1),d="attribute");var E=wmk(Y);E&&d==="attribute"&&(z==="class"&&W.hasAttribute("class")&&(E+=" "+W.getAttribute(z)),Lo(W,E,z));d==="attribute"&&G==="disable-upgrade$"&&W.setAttribute("disable-upgrade","");W.localName==="input"&&G==="value"&&W.setAttribute("value","");W.removeAttribute(G);d==="property"&&(z=_.ly(z));B=TG2(B);VV2(B,d,z,Y);return!0}return z.slice(0,3)===
"on-"?(W.removeAttribute(z),(d=B).events!=null||(d.events=[]),B.events.push({name:z.slice(3),value:G}),!0):z==="id"?(B.id=G,!0):!1};
vQD=function(W){for(var B=[],z=0,G;(G=gQX.exec(W))!==null;){G.index>z&&B.push({type:"literal",value:W.slice(z,G.index)});var Y=G[1][0];z=!!G[2];G=G[3].trim();if(Y==="{")throw Error("Kg");(Y=AUt(G))?B.push({type:"method",negate:z,signature:Y}):B.push({type:"path",negate:z,path:G});z=gQX.lastIndex}z&&z<W.length&&(W=W.substring(z))&&B.push({type:"literal",value:W});return B};
wmk=function(W){for(var B="",z=0;z<W.length;z++){var G=W[z];G.type==="literal"&&(B+=G.value)}return B};
VV2=function(W,B,z,G){W.bindings!=null||(W.bindings=[]);W.bindings.push({kind:B,target:z,parts:G})};
rUx=function(W,B,z){var G=!1;if(W.localName==="template"){G=z;var Y=B.stripWhitespace;Y=tV8(W,Y===void 0?!1:Y);var d=W.content.ownerDocument.createDocumentFragment();Y.content=d;d.appendChild(W.content);G&&(G.templateInfo=Y);G=!0}else W.localName==="slot"&&(B.hasInsertionPoint=!0);if(W.firstChild&&(Y=z,W.localName!=="script"&&W.localName!=="style")){d=0;for(var E=W.firstChild;E;){var v=E;if(v.localName==="template"){var c=v.getAttribute("is");if((E=c==="dom-if")||c==="dom-repeat"){v.removeAttribute("is");
c=v.ownerDocument.createElement("ps-"+c);v.parentNode.replaceChild(c,v);c.appendChild(v);var J=Array.from(v.attributes);J=_.A(J);for(var g=J.next();!g.done;g=J.next())g=g.value,E?sbk.has(g.name)&&Lo(c,g.value,g.name):P48.has(g.name)?Lo(c,g.value,g.name):ZMR.has(g.name),v.removeAttribute(g.name);E=c}else E=v}if(E.nodeType===Node.TEXT_NODE){v=void 0;c=W;for(J=E;((v=J.nextSibling)==null?void 0:v.nodeType)===Node.TEXT_NODE;)g=void 0,(g=J).textContent!=null||(g.textContent=""),J.nextSibling.textContent&&
(J.textContent+=J.nextSibling.textContent),c.removeChild(J.nextSibling);if(B.stripWhitespace&&E.textContent&&!E.textContent.trim()){W.removeChild(E);E=E.nextSibling;continue}}rUx(E,B,{parentIndex:d,parentInfo:Y});E.parentNode&&d++;E=E.nextSibling}}var t;if((t=W.hasAttributes)==null?0:t.call(W)){t=z=TG2(z);Y=!1;d=Array.from(W.attributes);d=_.A(d);for(v=d.next();!v.done;v=d.next())v=v.value,Y=JU8(W,t,v.name,v.value)||Y;G=Y||G}W.nodeType===Node.TEXT_NODE&&(t=vQD(W.textContent),t.length&&(W.textContent=
wmk(t)||" ",z=TG2(z),VV2(z,"text","textContent",t),G=!0));z&&G&&(z.infoIndex=B.nodeInfoList.push(z)-1)};
tV8=function(W,B){B={nodeInfoList:[],stripWhitespace:(B===void 0?!1:B)||W.hasAttribute("strip-whitespace")};rUx(W.content,B);return B};
kQX=function(W){Object.assign(W,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
C4X=function(W,B,z){B.signalCache!=null||(B.signalCache={});var G=B.signalCache[z];if(!G){var Y=z.split(".");G=!lPD(W,Y[0]);if(Y.length>1&&G){var d=W.getPathMutationSignal(Y);G=function(){var E=uE(W.owner,function(){return W.getWithPath([Y[0]])}),v,c=(v=d())==null?void 0:v.value;
return{rootWasDefined:E!==void 0,value:c}}}else G=function(){var E=W.getWithPath(Y);
return{rootWasDefined:E!==void 0,value:E}};
B.signalCache[z]=G}return G()};
oQt=function(W,B,z,G,Y){B=B.parts.map(function(E,v){if(E.type==="literal"){z.partWasDefined!=null||(z.partWasDefined=[]);var c;(c=z.partWasDefined)[v]||(c[v]=E.value!==void 0);return E.value}var J;if(E.type==="method"){var g,t=(g=(J=z.partWasDefined)==null?void 0:J[v])!=null?g:!1;t||(t=E.signature.args.every(function(l){return l.type==="literal"}));
var P=!1,Z=!0;J=E.signature.args.map(function(l){if(l.type==="literal")return l.value;if(l.type!=="path")throw Error("Lg`"+l.type);var b=C4X(W,z,l.path);l=b.value;b=b.rootWasDefined;P||(P=b);Z&&(Z=b);return l});
t||(t=Y===1?Z:P);z.partWasDefined!=null||(z.partWasDefined={});z.partWasDefined[v]=t;if(!t)return;J=(v=C4X(W,z,E.signature.methodName).value)&&typeof v==="function"?v.apply(G,J):void 0}else g=C4X(W,z,E.path),J=g.value,z.partWasDefined!=null||(z.partWasDefined={}),(t=z.partWasDefined)[v]||(t[v]=J!==void 0||g.rootWasDefined);E.negate&&(J=!J);return J});
if(B.length===1){var d;return((d=z.partWasDefined)==null?0:d[0])?B[0]:IPt}return B.join("")};
hLy=function(W){return typeof W==="object"&&!!W&&"notifyPath"in W&&"canNotifyPath"in W};
HMu=function(W){return typeof W==="object"&&!!W&&"notifyPath"in W};
FWy=function(W){return"polymerController"in W};
SDr=function(W,B){B=""+$w(B)[0];if(hLy(W))return W.canNotifyPath(B);if(FWy(W)&&hLy(W.polymerController))return W.polymerController.canNotifyPath(B);if(HMu(W)){var z;return!((z=W.properties)==null||!z[B])}if(FWy(W)&&HMu(W.polymerController)){var G;return!((G=W.polymerController.properties)==null||!G[B])}return!1};
bMk=function(W,B,z){hLy(W)||HMu(W)?W.notifyPath(B,z):FWy(W)&&(hLy(W.polymerController)||HMu(W.polymerController))&&W.polymerController.notifyPath(B,z)};
fP8=function(W,B,z){if(z!==IPt){W.kind==="attribute"||W.target!=="textContent"&&(W.target!=="value"||B.localName!=="input"&&B.localName!=="textarea")||(z=z===void 0?"":z);var G,Y=(G=jbt.Polymer)==null?void 0:G.sanitizeDOMValue;Y&&(z=Y(z,W.target,W.kind,B));if(W.kind==="attribute"){W=W.target;if(W==="class"||W==="name"||W==="slot")B=(0,_.r5)(B);Lo(B,z,W)}else if(W=W.target,z!==B[W]||typeof z==="object")B.loggingStatus&&(B.loggingStatus.isDeclarativeExternal=!0,X4(B.localName,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
B[W]=z,B.loggingStatus&&(B.loggingStatus.isDeclarativeExternal=!1)}};
OMR=function(W,B,z,G){var Y=B.parts[0];if(B.parts.length!==1||Y.type!=="path"||!SDr(z,B.target))return!1;var d=_.A(Y.path.split(".")),E=d.next().value,v=B5(d);if(lPD(W,E))return!1;G.signalCache!=null||(G.signalCache={});d=G.signalCache[Y.path];var c;d=(c=d)==null?void 0:c().value;if((d==null?void 0:d.path)!==void 0){G=$w(d.path);var J=$w(Y.path);G=[B.target].concat(_.u7(G.slice(J.length-1)));bMk(z,G,Y.negate?!d.value:d.value);return!0}var g=UR(W,E);var t=g.getChangeRecordSignal(v),P=!1;d=function(){if(!P){var l=
uE(W.owner,function(){return g.getWithPath([])});
P||(P=l!==void 0)}return{value:t(),rootWasDefined:P}};
G.signalCache[Y.path]=d;G.partWasDefined!=null||(G.partWasDefined={});d=d();(J=G.partWasDefined)[0]||(J[0]=d.rootWasDefined);var Z=uE(W.owner,function(){return g.getWithPath(v)});
G.partWasDefined[0]&&uE(W.owner,function(){return void fP8(B,z,Y.negate?!Z:Z)});
return!0};
Xmu=function(W,B,z,G,Y,d){if(!OMR(W,B,z,G)){var E=oQt(W,B,G,Y,d);uE(W.owner,function(){return void fP8(B,z,E)})}};
KWQ=function(W,B,z,G,Y,d){z=_.A(z);for(var E=z.next(),v={};!E.done;v={infoIndex:void 0},E=z.next()){E=E.value;var c=E.bindings;v.infoIndex=E.infoIndex;E=E.parentInfo;if(c){c=_.A(c);for(var J=c.next(),g={};!J.done;g={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},J=c.next()){g.b$jscomp$253=J.value;if(v.infoIndex===void 0)throw Error("Mg");g.bindingCtx$jscomp$4={};W.effect(function(t,P){return function(){Y&&!Y()||Xmu(W,t.b$jscomp$253,B[P.infoIndex],t.bindingCtx$jscomp$4,G,d)}}(g,v))}}E&&KWQ(W,B,[E],
G,Y,d)}};
uf8=function(W,B){W=(B.parentInfo?uf8(W,B.parentInfo):W).firstChild;for(var z=0;W;W=W.nextSibling)if(B.parentIndex===z++)return W;throw Error("Ng");};
mhX=function(W,B,z,G){W=document.importNode(W.content,!0);W.__noInsertionPoint=!(G==null?0:G.hasInsertionPoint);for(var Y=Array(B.length),d={},E=0;E<B.length;E++){var v=B[E],c=uf8(W,v);Y[E]=c;v.id&&(d[v.id]=c);if(v.templateInfo){var J=c.parentElement;J&&(J.templateInfo=v.templateInfo,J.parentSignalProxy=z,J.eventListenerHost=G.eventListenerHost,J.stampingEnabled=G.enabledSignal)}J=void 0;if((J=v.events)==null?0:J.length)for(J=0;J<v.events.length;J++){var g=v.events[J];eL2(G.eventListenerHost,c,g.name,
g.value,G.getModel)}}KWQ(z,Y,B,G.thisCtx,G.enabledSignal,G.methodInvocationRequirement);return{root:W,nodes:Y,nodesById:d}};
Dhx=function(W,B){W=W();var z;(z=xhT.ShadyCSS)==null||z.prepareTemplate(W,B);B=tV8(W);return{template:W,nodeInfoList:B.nodeInfoList,hasInsertionPoint:B.hasInsertionPoint}};
qDr=function(){QbX=!1;for(var W=MJ.length,B=0;B<W;B++){var z=MJ[B];if(z)try{z()}catch(G){Promise.resolve().then(function(){throw G;})}}MJ.splice(0,W);
yUT+=W};
LWt=function(W){QbX||(QbX=!0,nQX.textContent=(NGX++).toString());MJ.push(W);return $h2++};
_.WJ=function(W,B,z){aN++;W=B?new UhR(aN,W,B,z):new MV2(aN,W);RN.set(aN,W);return aN};
aP0=function(W){(W=RN.get(W))&&W.cancel()};
WAT=function(W,B){W=RLu.get(W);return W?(B=W.get(B))?B:null:null};
_.BJ=function(W,B,z,G){var Y=WAT(W,B);if(!Y){Y=new B$x;var d=RLu.get(W);d||(d=new Map,RLu.set(W,d));d.set(B,Y)}W=z.bind(W);Y.run(W,G,void 0)};
_.znu=function(W,B){var z;(z=WAT(W,B))==null||z.cancel()};
GYv=function(W){var B;(B=WAT(W,"doRender"))==null||B.flush()};
zs=function(W){var B;return(B=W.hostElement)!=null?B:W};
Ye0=function(W){var B=W.indexOf(".");return B===-1?W:W.slice(0,B)};
doT=function(W,B,z,G,Y,d){d=(Y=(G=d?Ye0(B):B)?B:null)?W.get(Y):W.__data[B];Y&&d===void 0&&(d=z[B]);_.v0(W.hostElement,hdv(G)+"-changed",{value:d,queueProperty:!0,path:Y!=null?Y:void 0},{bubbles:!1,composed:!1})};
pZX=function(W,B){W.__isReflecting=!0;iMx(W.hostElement,B,W.__data[B]);W.__isReflecting=!1};
AnR=function(W){if(W._onIronRequestResizeNotifications){var B=W._onIronRequestResizeNotifications.bind(W);W._onIronRequestResizeNotifications=function(z){_.iP(z)!==W.hostElement&&B(z)}}W._ariaActiveAttributeChanged&&(W._ariaActiveAttributeChanged=W._ariaActiveAttributeChanged.bind(W.hostElement));
W._activeChanged&&(W._activeChanged=function(z){W.toggles?Lo(W.hostElement,z?"true":"false",W.ariaActiveAttribute):W.hostElement.removeAttribute(W.ariaActiveAttribute);W._changedButtonState()});
W._asyncClick&&(W._asyncClick=function(){_.WJ(function(){W.hostElement.click()},1)});
!W.keyEventTarget||W.keyEventTarget instanceof EventTarget||(W.keyEventTarget=zs(W.keyEventTarget));W._disabledChanged&&(W._disabledChanged=W._disabledChanged.bind(W.hostElement));W._observeItems&&(W._observeItems=function(z){var G=zs(z);return _.St(G).observeNodes(function(Y){W._updateItems();W._updateSelected();_.v0(G,"iron-items-changed",Y,{bubbles:!1,cancelable:!1})})});
W._updateItems&&W._updateItems===_.Gs._updateItems&&(W._updateItems=function(){var z=_.St(W.hostElement).queryDistributedElements(W.selectable||"*");z=Array.prototype.filter.call(z,W._bindFilterItem);W._setItems(z)});
W._computeKeyboardClass&&(W._computeKeyboardClass=function(z){_.Pf(W.hostElement,"keyboard-focus",z)});
W.ensureRipple&&(W.ensureRipple=function(z){if(W.hasRipple&&!W.hasRipple()){if(!W._createRipple)return;W._ripple=W._createRipple();W._ripple.noink=W.noink;var G=W._rippleContainer||W.hostElement;G&&_.tH(G).appendChild(W._ripple)}var Y;if(z&&((Y=W._ripple)==null?0:Y.uiDownAction)){G=_.tH(W._rippleContainer||W.hostElement);var d;Y=(d=z.composedPath())==null?void 0:d[0];G.contains(Y)&&W._ripple.uiDownAction(z)}});
W._updateMultiselectable&&(W._updateMultiselectable=function(z){z?W.hostElement.setAttribute("aria-multiselectable","true"):W.hostElement.removeAttribute("aria-multiselectable")})};
iDr=function(W,B,z){z=_.A(z);for(var G=z.next();!G.done;G=z.next())uyR(G.value.constructor,W);uyR(B.constructor,W)};
T$T=function(W,B){W=_.A(W);for(var z=W.next();!z.done;z=W.next())if(z=z.value,z.type==="signal"){var G=z.propertyKey;if(B.hasOwnProperty(G)&&B[G]!=null&&z.attributeType===Object){a:{G=B[G].constructor;for(var Y=_.A(E4T),d=Y.next();!d.done;d=Y.next())if(d=d.value,G===d){G=d;break a}G=Object}z.attributeType=G}}};
v4x=function(){};
cnt=function(W){var B;return(B=W.hostElement)!=null?B:W};
wZD=function(){throw Error("Rg");};
Vq8=function(W,B){W.constructor.prototype.useSignals=!0;var z=new W.constructor;iDr(z,W,B.behaviors);T$T(B.reactiveSchemas,z);z={};for(var G=_.A(B.reactiveSchemas),Y=G.next();!Y.done;Y=G.next())Y=Y.value,Y.type==="signal"&&(z[Y.propertyKey]=Y.attributeType);var d={copyPropertiesToProto:wZD,didRegister:!1,typesForSignals:z},E=["disable-upgrade"].concat(_.u7(B.observedAttributes)),v=function(c){YB.call(this,W,B,d,c)};
_.C(v,YB);_.G5.Object.defineProperties(v,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return E}}});
d.copyPropertiesToProto=function(){for(var c=0;c<B.behaviors.length;c++)mUX(B.behaviors[c],v.prototype);mUX(W,v.prototype)};
B.legacyOptimizations||d.copyPropertiesToProto();v.prototype.is=W.is;return v};
Jnr=function(W,B){if(Object.getPrototypeOf(B.prototype).constructor!==_.S)throw Error("Sg");B.prototype.is=W.is;return Vq8(B.prototype,W)};
g4R=function(W){return W.type==="compute"||W.type==="computeWithMethod"};
tqu=function(W){for(var B=W.reactiveSchemas.filter(g4R),z=new Map,G=new Map,Y=new Map,d=_.A(B),E=d.next();!E.done;E=d.next())E=E.value,z.set(E.propertyKey,E),G.set(E.propertyKey,[]),Y.set(E.propertyKey,0);d=0;B=_.A(B);for(E=B.next();!E.done;E=B.next()){E=E.value;for(var v=_.A(E.type==="computeWithMethod"?E.method.args:E.args),c=v.next();!c.done;c=v.next())c=c.value,c.type!=="literal"&&(c=c.path.split(".")[0],G.has(c)&&(G.get(c).push(E.propertyKey),Y.set(E.propertyKey,Y.get(E.propertyKey)+1),d++))}E=
[].concat(_.u7(G.keys())).filter(function(J){return Y.get(J)===0});
for(B=[];E.length;)for(v=E.shift(),B.push(z.get(v)),v=_.A(G.get(v)),c=v.next();!c.done;c=v.next())c=c.value,Y.set(c,Y.get(c)-1),d--,Y.get(c)===0&&E.push(c);z=W.reactiveSchemas.filter(function(J){return!g4R(J)});
W.reactiveSchemas=[].concat(_.u7(z),_.u7(B))};
s4u=function(W,B){if(B.properties)for(var z=_.A(Object.entries(B.properties)),G=z.next();!G.done;G=z.next()){var Y=_.A(G.value);G=Y.next().value;Y=Y.next().value;W.properties[G]=typeof Y==="function"?{type:Y}:Y}B.observers&&W.observers.push.apply(W.observers,_.u7(B.observers));B.disabledPolySiReactions&&W.disabledPolySiReactions.push.apply(W.disabledPolySiReactions,_.u7(B.disabledPolySiReactions))};
PSt=function(W,B){for(var z=B.length-1;z>=0;z--){var G=B[z];Array.isArray(G)?PSt(W,G):W.indexOf(G)<0&&W.unshift(G)}};
ZD8=function(W,B){W.reactiveSchemas=W.reactiveSchemas.filter(function(z){return z.type==="observe"&&B.includes(z.method.methodName)||g4R(z)&&B.includes(z.propertyKey)?!1:!0})};
kYR=function(W,B){var z=B.prototype,G,Y,d={is:W.is,reactiveSchemas:[],observedAttributes:[],behaviors:[bdR.InjectBehavior,qJ.prototype],disableElementRegistration:W.disableElementRegistration,provide:(G=W.providers)!=null?G:[],reactivityMode:W.reactivityMode,signalProperties:(Y=z.signalProperties)!=null?Y:[]};"template"in B?d.templateGetter=function(){return B.template}:W.getTemplate&&(d.templateGetter=W.getTemplate);
z.behaviors&&PSt(d.behaviors,z.behaviors);rnX(d,B);return d};
rnX=function(W,B){for(var z=B.prototype,G={properties:{},observers:[],disabledPolySiReactions:[]},Y=_.A(W.behaviors),d=Y.next();!d.done;d=Y.next())s4u(G,d.value);s4u(G,z);if(W.signalProperties)for(z=_.A(W.signalProperties),Y=z.next();!Y.done;Y=z.next())delete G.properties[Y.value];z=_.A(Object.entries(G.properties));for(Y=z.next();!Y.done;Y=z.next()){d=_.A(Y.value);Y=d.next().value;d=d.next().value;var E=void 0;if((E=W.signalProperties)==null||!E.includes(Y)){E=void 0;var v=W,c=d.type;if(!c)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{c=Reflect.getMetadata("design:type",B,Y);for(var J=_.A(lTR),g=J.next();!g.done;g=J.next())if(g=g.value,c===g){c=g;break a}c=Object}else c=String;d.computed||d.selector||(v.reactiveSchemas.push({type:"signal",propertyKey:Y,value:d.value,attributeType:c,readOnly:d.readOnly}),v.observedAttributes.push(_.k6(Y)));d.reflectToAttribute&&v.reactiveSchemas.push({type:"reflect",propertyKey:Y});if(d.computed){c=AUt(d.computed);if(!c)throw Error("Tg");v.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:Y,method:c,value:d.value})}d.observer&&v.reactiveSchemas.push({type:"observe",method:{methodName:d.observer,args:[{type:"path",path:Y}]}});d.notify&&v.reactiveSchemas.push({type:"notify",propertyKey:Y});d.selector&&v.reactiveSchemas.push({type:"redux",propertyKey:Y,selector:d.selector,selectorArgs:(E=d.selectorArgs)!=null?E:[]})}}CSR&&tqu(W);B=_.A(G.observers);for(Y=B.next();!Y.done;Y=B.next())z=W,Y=Y.value,(d=AUt(Y))?z.reactiveSchemas.push({type:"observe",method:d}):console.log('Warning: unable to parse observe declaration: "'+
Y+'"');ZD8(W,G.disabledPolySiReactions)};
ITu=function(W,B){for(var z=0;z<B.length;z++){var G=B[z],Y=void 0;(Y=G).showHideApi!=null||(Y.showHideApi={});Y=void 0;!!W!==!((Y=G.showHideApi)==null||!Y.hideTemplateChildren)&&(G.nodeType===Node.TEXT_NODE?W?(G.showHideApi.polymerTextContent=G.textContent,G.textContent=""):(Y=void 0,G.textContent=(Y=G.showHideApi.polymerTextContent)!=null?Y:null):G instanceof Element&&G.localName==="slot"?W?(G.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.r5)((0,_.r5)(G).parentNode).replaceChild(G.showHideApi.polymerReplaced,
G)):(Y=G.showHideApi.polymerReplaced)&&(0,_.r5)((0,_.r5)(Y).parentNode).replaceChild(G,Y):G instanceof HTMLElement&&G.style&&(W?(G.showHideApi.polymerDisplay=G.style.display,G.style.display="none"):G.style.display=G.showHideApi.polymerDisplay));G.showHideApi.hideTemplateChildren=W;G.showHideChildren&&G.showHideChildren(W)}};
hnQ=function(){if(!o4r){var W=document.createElement("style");W.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(W);o4r=!0}};
da=function(){return _.r("disable_hidden_dom_if_using_stamper")};
HD2=function(W,B){var z=_.p8().getState();return B?W.apply(null,[z].concat(_.u7(B))):W(z)};
bDD=function(){if(FAX)return FAX;var W=_.A(_.g4(0,void 0,"MB1Hb")),B=W.next().value;W.next();var z=W.next().value;_.p8().subscribe(function(){Sev(z)});
return FAX=B};
Sev=function(W){j4y||(j4y=!0,Promise.resolve().then(function(){W(function(B){return B+1});
j4y=!1}))};
_.p8=function(){return fTu.getAppStore()};
ODx=function(W,B){return fTu.getSelectFn()(W,B)};
_.AV=function(W){fTu.getDispatchFn()(W)};
XZx=function(W,B){var z={},G;for(G in W)z[G]=B(W[G],G);return z};
_.ig=function(W,B){return function(){var z;return(z=_.XA(W))!=null?z:B}};
_.EV=function(W,B){var z=Object.assign({},W),G;for(G in B)B.hasOwnProperty(G)&&(z[G]=_.ig(W[G],B[G]));return z};
KAR=function(W,B,z){W instanceof Element&&(z.debugName||(z.debugName="<"+W.tagName.toLowerCase()+(W.tagName.includes("-")?">":"."+W.className+">")),_.r("ytwiz_enable_debug_component_props")&&(W.debugProps||(W.debugProps=XZx(B,function(G){return function(){return G()}}))))};
en0=function(W){var B;return uXT.value.traceAllComponents||((B=Gl.stack[Gl.stack.length-1])==null?void 0:B.name)!=="ytComponent"?GaQ("ytComponent",{},W):W()};
_.m=function(W,B){var z=function(G){return en0(function(Y){var d=moD={};var E;if(((E=z)==null?0:E.idomCompat)&&G.renderedFromIdom){var v;E=typeof z.idomCompat==="object"?(v=z)==null?void 0:v.idomCompat.callbacks:{};E=_.A(xor(G,E,z.debugName));v=E.next().value;E.next();E=E.next().value;var c=Dot(W,v);d.privateValue=c;moD=void 0;KAR(c,v,z);d={debugName:z.debugName};Y&&d&&Object.assign(Y.attributes,d);Y=G52(c);Y=Array.isArray(Y)?Y[0]:Y;Y[JW]||(Y[JW]={});Y[JW].updateSignalsFromIdomProps=E;Q4k(v,c);return c}E=
XZx(G,ynk);v=Dot(W,E);d.privateValue=v;moD=void 0;KAR(v,E,z);d={debugName:z.debugName};Y&&d&&Object.assign(Y.attributes,d);Q4k(E,v);return v})};
z.debugName=B===void 0?"":B;return z};
Dot=function(W,B){W=W(B);return Z5(W)};
qeR=function(W,B){W[B]||(W=new _.oX("IDOM interop setter undefined. Key:",B),_.jy(W))};
ynk=function(W,B){return B==="children"||B==="ref"||typeof W==="function"||W===void 0?W:function(){return _.XA(W)}};
xor=function(W,B,z){var G={},Y={},d={},E={},v;for(v in W){E={key$jscomp$947:E.key$jscomp$947};E.key$jscomp$947=v;var c=W[E.key$jscomp$947];if(E.key$jscomp$947==="children"||E.key$jscomp$947==="ref")G[E.key$jscomp$947]=c;else if(typeof c==="function")E.key$jscomp$947 in B||c.length>0?(d[E.key$jscomp$947]=c,G[E.key$jscomp$947]=function(g){return function(){return d[g.key$jscomp$947].apply(d,_.u7(_.nm.apply(0,arguments)))}}(E)):G[E.key$jscomp$947]=c;
else if(!(W[E.key$jscomp$947]===void 0&&E.key$jscomp$947 in B)){var J=_.A(_.g4(W[E.key$jscomp$947],{debugName:E.key$jscomp$947+":cwis:"+z},"rvrjQe"));c=J.next().value;J=J.next().value;G[E.key$jscomp$947]=c;Y[E.key$jscomp$947]=J}}return[G,Y,function(g){var t={},P;for(P in g)t={key$jscomp$948:t.key$jscomp$948,val$jscomp$123:void 0},t.key$jscomp$948=P,t.val$jscomp$123=g[t.key$jscomp$948],t.key$jscomp$948!=="children"&&t.key$jscomp$948!=="ref"&&(typeof t.val$jscomp$123==="function"?t.key$jscomp$948 in
B?d[t.key$jscomp$948]=t.val$jscomp$123:t.val$jscomp$123.length>0&&(d[t.key$jscomp$948]=t.val$jscomp$123,_.Oc(new _.oX("Callback detected that was not set in the idomCompat callbacks map. Key:",t.key$jscomp$948))):t.key$jscomp$948 in B&&t.val$jscomp$123===void 0||(qeR(Y,t.key$jscomp$948),k$(function(Z){return function(){Y[Z.key$jscomp$948](Z.val$jscomp$123)}}(t))))}]};
$ou=function(W,B,z){var G=Xqt(W.prototype,n4u,W.prototype.behaviors);G.prototype.is=B;G.prototype.localName=B;z&&N$X(G,z);return function(Y){Y&&(G.prototype.hostElement=Y);var d=new G;d.root=d;d.hostElement=Y;return d}};
N$X=function(W,B){var z;Object.defineProperty(W.prototype,"_template",{get:function(){z===void 0&&(z=B());return z},
set:function(G){z=G},
configurable:!0,enumerable:!0})};
Rn0=function(W,B,z,G){function Y(){if(!Z){for(var l=new Set,b=_.A(g),O=b.next();!O.done;O=b.next()){O=O.value;for(var K=_.A(Object.getOwnPropertyNames(O)),e=K.next();!e.done;e=K.next()){e=e.value;var a=void 0,q=(a=Object.getOwnPropertyDescriptor(O,e))==null?void 0:a.value;q&&q instanceof Function&&!Ts(e)&&(!v[e]||_.r("polymer_forward_method_killswitch"))&&l.add(e)}}b=_.A(Object.entries(Object.getOwnPropertyDescriptors(W.prototype)));for(O=b.next();!O.done;O=b.next())K=_.A(O.value),O=K.next().value,
K=K.next().value,K.value instanceof Function&&!Ts(O)&&l.add(O);Z=l}return Z}
LAy(W,B,G==null?void 0:G.providers);Kk0(W.prototype,W,!0);var d=$ou(W,B,z),E,v=(E=W.prototype.properties)!=null?E:{},c,J,g=(J=(c=W.prototype.behaviors)==null?void 0:c.flat(Infinity))!=null?J:[];z=_.A(g);for(E=z.next();!E.done;E=z.next())v=Object.assign({},E.value.properties,v);var t=[].concat(_.u7(UoR),_.u7(Object.keys(v).map(function(l){return _.k6(l)}))),P=!1,Z;
return{ctor:function(l,b){var O=d(l),K,e;l=[].concat(_.u7((K=G==null?void 0:G.allowedProps)!=null?K:[]),_.u7((e=G==null?void 0:G.allowedPropsFromBehaviors)!=null?e:[]));O.allowedProps=l.length>0?l:void 0;K={};e=_.A(t);for(l=e.next();!l.done;l=e.next())l=l.value,K[l]=_.ly(l);O.__dataAttributes=K;var a=O.ready.bind(O);O.ready=function(){b.beforeReady();a();if(fo(B)&&!P){var q=O.__templateInfo;if(q==null?0:q.hostProps){q=_.A(Object.keys(q.hostProps));for(var n=q.next();!n.done;n=q.next())X4(B,n.value,
"PROPERTY_ACCESS_GET_INTERNAL")}P=!0}};
O._overrideLegacyUndefined=!0;return O},
props:v,observedAttributes:t,getInitialMethods:Y,getPropsToForwardBeforeRegister:function(){for(var l=[],b=new Set,O=_.A(Object.keys(v)),K=O.next();!K.done;K=O.next())K=K.value,l.push([K,v[K].readOnly]),b.add(K);O=Y();K=_.A(Object.keys(Object.getOwnPropertyDescriptors(W.prototype)));for(var e=K.next();!e.done;e=K.next())e=e.value,!Mq8(e)||O.has(e)||b.has(e)||(l.push([e,!1]),b.add(e));b=_.A(aTt);for(O=b.next();!O.done;O=b.next())l.push([O.value,!0]);return l},
getPropsToForwardBeforeReady:function(l){for(var b=[],O=_.A(Object.entries(l)),K=O.next();!K.done;K=O.next()){var e=_.A(K.value);K=e.next().value;e=e.next().value;if(Mq8(K)&&!(e instanceof Function)&&(b.push([K,!1]),fo(B))){var a=e=void 0;(a=(e=l)._createPropertyAccessor)==null||a.call(e,K)}}return b},
shouldForwardProp:Mq8,shouldLog:fo}};
LAy=function(W,B,z){jav(W,z);W.prototype.behaviors.unshift(WUy);if(Pnv()){if(fo(B)){var G;(G=W.prototype).behaviors!=null||(G.behaviors=[]);W.prototype.behaviors.unshift(lY2())}CnR(W)}_.h(qJ.prototype)(W.prototype,"__templateHelpers")};
Ts=function(W){return BXu.has(W)||W.startsWith("__compute__")};
Mq8=function(W){return!Ts(W)&&!W.startsWith("_")&&!W.endsWith("_")};
pBx=function(W,B){function z(){var P=c();P=_.A(P);for(var Z=P.next();!Z.done;Z=P.next()){var l=_.A(Z.value);Z=l.next().value;l=l.next().value;zET(t.prototype,Z,l)}G=!0}
var G=!1,Y=W.ctor,d=W.getInitialMethods,E=W.observedAttributes,v=W.getPropsToForwardBeforeReady,c=W.getPropsToForwardBeforeRegister,J=W.shouldForwardProp,g=W.shouldLog,t=function(){var P=HTMLElement.call(this)||this;P.didForwardDynamicProps=!1;P.loggingStatus={};G||z();P.inst=Y(P,{beforeReady:function(){P.didForwardDynamicProps||(P.forwardDynamicProps(),P.didForwardDynamicProps=!0)}});
P.controllerProxy=rTR(P.inst,B);P.forwardMethods();return P};
_.C(t,HTMLElement);t.prototype.forwardMethods=function(){for(var P=this,Z=_.A(this.inst.getExtraMethodsToForward()),l=Z.next(),b={};!l.done;b={method$jscomp$63:void 0},l=Z.next()){var O=_.A(l.value);l=O.next().value;O=O.next().value;b.method$jscomp$63=O;this[l]=function(K){return function(){return K.method$jscomp$63.call.apply(K.method$jscomp$63,[P.inst].concat(_.u7(_.nm.apply(0,arguments))))}}(b)}Z=_.A(d());
for(b=Z.next();!b.done;b=Z.next())b=b.value,J(b)&&GnX(this,b),g(B)&&!Ts(b)&&Yf0(this.inst,b)};
t.prototype.forwardDynamicProps=function(){var P=v(this.inst);P=_.A(P);for(var Z=P.next();!Z.done;Z=P.next()){var l=_.A(Z.value);Z=l.next().value;l=l.next().value;zET(this,Z,l);g(B)&&!Ts(Z)&&dQy(this.inst,Z)}};
t.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
t.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
t.prototype.attributeChangedCallback=function(P,Z,l){this.inst.attributeChangedCallbackWrapper(P,Z,l)};
_.G5.Object.defineProperties(t.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return B}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.G5.Object.defineProperties(t,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return E}}});
customElements.define(B,t)};
zET=function(W,B,z){W.hasOwnProperty(B)||Object.defineProperty(W,B,{get:function(){var G,Y=((G=W.is)!=null?G:W.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||X4(Y,B,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,G=this.polymerController[B],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,G},
set:function(G){if(!z){var Y,d=((Y=W.is)!=null?Y:W.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||X4(d,B,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=B,this.loggingStatus.bypassProxyController=!0,this.polymerController[B]!==G&&(Y={},this.polymerController.setProperties((Y[B]=G,Y)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
GnX=function(W,B,z){var G=W.polymerController;W[B]=function(){var Y=_.nm.apply(0,arguments);W.loggingStatus.currentExternalCall=B;W.loggingStatus.bypassProxyController=!0;var d,E=((d=W.is)!=null?d:W.tagName).toLowerCase();X4(E,B,"PROPERTY_ACCESS_CALL_EXTERNAL");var v;d=(v=z!=null?z:G[B])==null?void 0:v.call.apply(v,[G].concat(_.u7(Y)));W.loggingStatus.currentExternalCall=void 0;W.loggingStatus.bypassProxyController=!1;return d}};
Yf0=function(W,B){var z=W.hostElement,G=W[B];W[B]=function(){var Y=_.nm.apply(0,arguments);if(z.loggingStatus.currentExternalCall!==B){var d,E=((d=z.is)!=null?d:z.tagName).toLowerCase();X4(E,B,"PROPERTY_ACCESS_CALL_INTERNAL")}return G==null?void 0:G.apply(W,Y)}};
dQy=function(W,B){var z=Object.getOwnPropertyDescriptor(W,B);z&&!z.get&&Object.defineProperty(W,B,{get:function(){kJR(W.hostElement,B);return z.value},
set:function(G){Ko(W.hostElement,B);z.value=G}})};
AAr=function(W){return _.r("poly_si_dom_repeat_detached_fix_killswitch")||W.tagName!=="PS-DOM-REPEAT"?W.tagName==="DOM-REPEAT":!0};
Ejy=function(W,B){var z=iqu(W);W instanceof Element&&z.unshift(W);W=_.A(z.filter(AAr));for(var G=W.next();!G.done;G=W.next()){var Y=void 0;G=_.A((Y=G.value.__instances)!=null?Y:[]);for(Y=G.next();!Y.done;Y=G.next())if(Y=Y.value,Y.root){Y=Array.from(Y.root.children);Y=_.A(Y);for(var d=Y.next();!d.done;d=Y.next())z.push.apply(z,_.u7(Ejy(d.value,B)))}}return z.filter(function(E){return E.usePatchedLifecycles&&E.lifecycleIsConnected===B})};
iqu=function(W){var B=null;W instanceof Element?B=Element.prototype.querySelectorAll:W instanceof DocumentFragment&&(B=DocumentFragment.prototype.querySelectorAll);return B?Array.from(B.call(W,"*")):[]};
vJ=function(W){Jy(function(){for(var B=_.A(Ejy(W,!1)),z=B.next();!z.done;z=B.next()){z=z.value;z.lifecycleIsConnected=!0;try{var G=void 0,Y=void 0,d=void 0,E=void 0;(G=(E=z.polymerController)!=null?E:z)==null||(d=(Y=G).connectedCallback)==null||d.call(Y)}catch(v){_.jy(v)}}})};
cJ=function(W){Jy(function(){for(var B=_.A(Ejy(W,!0)),z=B.next();!z.done;z=B.next()){z=z.value;z.lifecycleIsConnected=!1;try{var G=void 0,Y=void 0,d=void 0,E=void 0;(G=(E=z.polymerController)!=null?E:z)==null||(d=(Y=G).disconnectedCallback)==null||d.call(Y)}catch(v){_.jy(v)}}})};
gjv=function(){if(!TX8){TX8=!0;var W=[Node];wa&&W.push(wa.Wrapper);var B=Node.prototype.insertBefore,z=Node.prototype.removeChild;W=_.A(W);for(var G=W.next(),Y={};!G.done;Y={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},G=W.next())G=G.value,Y.nativeInsertBefore=G.prototype.insertBefore,G.prototype.insertBefore=function(E){return function(v,c){if(v instanceof DocumentFragment){var J=Array.from(v.children);v=E.nativeInsertBefore.call(this,v,c);
if(this.isConnected&&E.nativeInsertBefore===B)for(c=_.A(J),J=c.next();!J.done;J=c.next())vJ(J.value);return v}J=v instanceof Element&&v.isConnected;c=E.nativeInsertBefore.call(this,v,c);J&&cJ(v);this.isConnected&&vJ(v);return c}}(Y),Y.nativeAppendChild=G.prototype.appendChild,G.prototype.appendChild=function(E){return function(v){if(v instanceof DocumentFragment){var c=Array.from(v.children);
v=E.nativeAppendChild.call(this,v);if(this.isConnected){c=_.A(c);for(var J=c.next();!J.done;J=c.next())vJ(J.value)}return v}c=v instanceof Element&&v.isConnected;J=E.nativeAppendChild.call(this,v);c&&cJ(v);this.isConnected&&vJ(v);return J}}(Y),Y.nativeRemoveChild=G.prototype.removeChild,G.prototype.removeChild=function(E){return function(v){var c=v instanceof Element&&v.isConnected,J=E.nativeRemoveChild.call(this,v);
c&&z===E.nativeRemoveChild&&cJ(v);return J}}(Y),Y.nativeReplaceChild=G.prototype.replaceChild,G.prototype.replaceChild=function(E){return function(v,c){if(v instanceof DocumentFragment){var J=Array.from(v.children);
v=E.nativeReplaceChild.call(this,v,c);if(this.isConnected)for(cJ(c),c=_.A(J),J=c.next();!J.done;J=c.next())vJ(J.value);return v}J=v instanceof Element&&v.isConnected;var g=this.isConnected,t=E.nativeReplaceChild.call(this,v,c);g&&cJ(c);J&&cJ(v);g&&vJ(v);return t}}(Y);
W=[Element];wa&&W.push(wa.Wrapper);W=_.A(W);G=W.next();for(Y={};!G.done;Y={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},G=W.next())G=G.value,G.prototype.before=vjX(G.prototype.before),G.prototype.after=vjX(G.prototype.after),Y.nativeReplaceWith=G.prototype.replaceWith,G.prototype.replaceWith=function(E){return function(){var v=_.nm.apply(0,arguments),c=_.A(cAQ(v)),J=c.next().value,
g=c.next().value;c=this.isConnected;E.nativeReplaceWith.apply(this,v);v=_.A(g);for(g=v.next();!g.done;g=v.next())cJ(g.value);if(c)for(cJ(this),J=_.A(J),c=J.next();!c.done;c=J.next())c=c.value,c instanceof Element&&vJ(c)}}(Y),Y.nativeRemove=G.prototype.remove,G.prototype.remove=function(E){return function(){var v=this.isConnected;
E.nativeRemove.call(this);v&&cJ(this)}}(Y),Y.nativeInsertAdjacentElement=G.prototype.insertAdjacentElement,G.prototype.insertAdjacentElement=function(E){return function(v,c){var J=c.isConnected;
v=E.nativeInsertAdjacentElement.call(this,v,c);J&&cJ(c);v.isConnected&&vJ(v);return v}}(Y),Y.nativeSetAttribute=G.prototype.setAttribute,G.prototype.setAttribute=function(E){return function(v,c){var J=wBx(this);
if(!J.usePatchedLifecycles)return E.nativeSetAttribute.call(this,v,c);var g=this.getAttribute(v);E.nativeSetAttribute.call(this,v,c);c=this.getAttribute(v);VBR(J,v,g,c)}}(Y),Y.nativeRemoveAttribute=G.prototype.removeAttribute,G.prototype.removeAttribute=function(E){return function(v){var c=wBx(this);
if(!c.usePatchedLifecycles)return E.nativeRemoveAttribute.call(this,v);var J=this.getAttribute(v);E.nativeRemoveAttribute.call(this,v);J!==null&&VBR(c,v,J,null)}}(Y),Y.nativeToggleAttribute=G.prototype.toggleAttribute,G.prototype.toggleAttribute=function(E){return function(v,c){var J=wBx(this);
if(!this.usePatchedLifecycles)return E.nativeToggleAttribute.call(this,v,c);var g=this.getAttribute(v),t=g!==null;c=E.nativeToggleAttribute.call(this,v,c);c!==t&&VBR(J,v,g,c?"":null);return c}}(Y);
W=[Document,DocumentFragment,Element,ShadowRoot];wa&&W.push(wa.Wrapper);W=_.A(W);for(Y=W.next();!Y.done;Y=W.next())Y=Y.value,Y.prototype.prepend=vjX(Y.prototype.prepend),Y.prototype.append=vjX(Y.prototype.append);(wa==null?void 0:wa.noPatch)===!0&&JAX();document.readyState==="complete"?vJ(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&vJ(document.body)});
var d=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");d&&d.get&&d.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(E){E||cJ(this);d.set.call(this,E);return E}})}};
vjX=function(W){return function(){var B=_.nm.apply(0,arguments),z=_.A(cAQ(B)),G=z.next().value;z=z.next().value;W.apply(this,B);B=_.A(z);for(z=B.next();!z.done;z=B.next())cJ(z.value);if(this.isConnected)for(G=_.A(G),B=G.next();!B.done;B=G.next())B=B.value,B instanceof Element&&vJ(B)}};
JAX=function(){for(var W=_.A(tBk),B=W.next();!B.done;B=W.next()){B=B.value.prototype;for(var z=_.A(shy),G=z.next();!G.done;G=z.next()){G=G.value;var Y=Object.getOwnPropertyDescriptor(B,G);Y&&Object.defineProperty(B,"__shady_native_"+G,Y)}}};
VBR=function(W,B,z,G){var Y,d;if((Y=W.polymerController)==null?0:(d=Y.observedAttributes)==null?0:d.includes(B))if(W=W.polymerController,W.attributeChangedCallbackWrapper)W.attributeChangedCallbackWrapper.call(W,B,z,G);else{var E;(E=W.attributeChangedCallback)==null||E.call(W,B,z,G)}};
cAQ=function(W){var B=[],z=[];W=_.A(W);for(var G=W.next();!G.done;G=W.next())G=G.value,G instanceof Element&&G.isConnected&&z.push(G),G instanceof DocumentFragment?B.push.apply(B,_.u7(Array.from(G.children))):B.push(G);return[B,z]};
wBx=function(W){return!(W instanceof Element)&&W.node instanceof Element?W.node:W};
PCt=function(W,B){var z=B?["children"].concat(_.u7(B)):["children"];B=[];z=_.A(z);for(var G=z.next();!G.done;G=z.next()){var Y=G.value;if(W.hasOwnProperty(Y)){G=W[Y];G=typeof G==="function"?G():G;G=Array.isArray(G)?G:[G];G=Z5(G).flat();if(Y!=="children"){Y=hdv(Y);for(var d=_.A(G),E=d.next();!E.done;E=d.next())E=E.value,E instanceof Element&&E.setAttribute("slot",Y)}B.push(G)}}B.length===0?W=[]:(W=Z5(_.w("div",null,B)),W=Array.from(W.childNodes));return W};
rAT=function(W,B,z){var G={};_.KR(function(){var Y={},d;for(d in B)if(B.hasOwnProperty(d)){var E=void 0,v=void 0;if(!(((E=z.slotProps)==null?0:E.includes(d))||d==="children"||((v=z.callbackProps)==null?0:v.includes(d))||d==="ref")&&(E=_.XA(B[d]),G[d]!==E)){G[d]=E;v=void 0;var c=(v=W.hostElement)!=null?v:W;Zqr.has(d)&&(c[d]=E);Y[d]=E}}k$(function(){if(W.setProperties)W.setProperties(Y);else for(var J=_.A(Object.entries(Y)),g=J.next();!g.done;g=J.next()){var t=_.A(g.value);g=t.next().value;t=t.next().value;
W[g]=t}})})};
lCQ=function(W,B,z,G){var Y=PCt(z,G.slotProps),d=(0,_.r5)(W);Y=_.A(Y);for(var E=Y.next();!E.done;E=Y.next())d.appendChild(E.value);rAT(B,z,G);G=_.A(G.callbackProps||[]);Y=G.next();for(d={};!Y.done;d={kebabEventName:void 0,eventListener:void 0},Y=G.next())E=Y=Y.value,String(Y).substring(0,2)==="on"&&z[E]?(d.kebabEventName=hdv(String(Y).substring(2)),d.eventListener=z[E],W.addEventListener(d.kebabEventName,d.eventListener),_.fR(function(g){return function(){W.removeEventListener(g.kebabEventName,g.eventListener)}}(d))):
B[E]=z[E];
if(z.ref){z=_.A(knk(z.ref));var v=z.next().value,c=z.next().value,J=B.attached.bind(B);B.attached=function(){v(W);J()};
_.fR(function(){c()})}};
knk=function(W){if(typeof W==="function"){var B;return[function(z){B=W(z)},
function(){var z;(z=B)==null||z()}]}if(!W.onRender||!W.onUnmount)throw Error("Xg");
return[W.onRender,W.onUnmount]};
hEr=function(W,B,z,G,Y){G=G===void 0?{}:G;var d=CC8,E=!1;d?(E=!0,CC8=void 0):(IC2=B,d=document.createElement(B),IC2=void 0);var v=d;v.usePatchedLifecycles=!0;v.lifecycleIsConnected=!1;d.loggingStatus={};var c=ojX(W,B,d,G,Y);_.fR(function(){v.lifecycleIsConnected&&(v.lifecycleIsConnected=!1,c.disconnectedCallback())});
E||(d.__noInsertionPoint=!0,lCQ(d,c,z,G));return d};
ojX=function(W,B,z,G,Y){Y=Y===void 0?Rn0:Y;Hq2[B]!=null||(Hq2[B]=Y(W,B,G==null?void 0:G.getTemplate,G));var d=Hq2[B],E=d.ctor;Y=d.getInitialMethods;var v=d.getPropsToForwardBeforeReady;W=d.getPropsToForwardBeforeRegister;G=d.shouldForwardProp;var c=d.observedAttributes,J=d.shouldLog,g=E(z,{beforeReady:function(){var t=g;t._takeAttributes?t._takeAttributes():t.setPropertiesFromInitialAttributeValues&&t.setPropertiesFromInitialAttributeValues();t=_.A(v(z.polymerController));for(var P=t.next();!P.done;P=
t.next()){var Z=_.A(P.value);P=Z.next().value;Z=Z.next().value;zET(z,P,Z);J(B)&&!Ts(P)&&dQy(z.polymerController,P)}z.polymerController=rTR(g,B)}});
z.polymerController=g;z.polymerController.observedAttributes=c;d=_.A(g.getExtraMethodsToForward());for(E=d.next();!E.done;E=d.next())c=_.A(E.value),E=c.next().value,c=c.next().value,GnX(z,E,c);Y=_.A(Y());for(d=Y.next();!d.done;d=Y.next())d=d.value,G(d)&&GnX(z,d),J(B)&&!Ts(d)&&Yf0(g,d);W=_.A(W());for(G=W.next();!G.done;G=W.next())Y=_.A(G.value),G=Y.next().value,Y=Y.next().value,zET(z,G,Y);return g};
FUR=function(W){var B=V2;V2=W;return B};
bqQ=function(W){if(!JV.has(W)&&tV.has(W)&&V2&&SfR(V2)===W){var B;(B=V2)._numRenders!=null||(B._numRenders=0);V2._numRenders++;if(V2._numRenders>1)throw Error("Yg");return V2}};
jh8=function(W){!JV.has(SfR(W))&&tV.has(SfR(W))&&V2!==W&&(W._isInert=!0)};
SfR=function(W){var B;return(B=W==null?void 0:W.tagName.toLowerCase())!=null?B:""};
fCX=function(W,B){if(W.componentType===H5)throw Error("Zg");tV.add(B);var z=function(){var G=HTMLElement.call(this)||this;G.is=B;if(IC2===B)return G.isInert=!0,G;G.createElement();return G};
_.C(z,HTMLElement);z.prototype.createElement=function(){if(!this.isInert){CC8=this;var G=_.A(_.Fu8(function(){return _.w(W,null)})).next().value;
CC8=void 0;kQX(this);return G}};
customElements.define(B,z)};
XBX=function(W,B,z,G,Y){W.prototype.is=B;(G==null?0:G.useSink)?Oqx(W,B,z,G,Y):(z=Rn0(W,B,z,G),pBx(z,B));return W};
Oqx=function(W,B,z,G,Y){gjv();var d=_.m(function(E){return hEr(W,B,E,Object.assign({},G,{getTemplate:z}),Y)},"a");
d.debugName=B+" (CoW wrapped)";fCX(d,B);return d};
u1k=function(W){return!KUD.has(W)};
xQX=function(W,B,z,G){function Y(){if(!t){for(var P=new Set(eER),Z=_.A(d.behaviors),l=Z.next();!l.done;l=Z.next()){l=l.value;for(var b=_.A(Object.getOwnPropertyNames(l)),O=b.next();!O.done;O=b.next()){O=O.value;var K=void 0,e=(K=Object.getOwnPropertyDescriptor(l,O))==null?void 0:K.value;e&&e instanceof Function&&(!J[O]||_.r("polymer_forward_method_killswitch"))&&P.add(O)}}Z=_.A(Object.entries(Object.getOwnPropertyDescriptors(W.prototype)));for(l=Z.next();!l.done;l=Z.next())b=_.A(l.value),l=b.next().value,
b=b.next().value,b.value instanceof Function&&P.add(l);t=P}return t}
var d=kYR({is:B,disableElementRegistration:!1,getTemplate:z,providers:G==null?void 0:G.providers,reactivityMode:G==null?void 0:G.reactivityMode},W);if((G==null?0:G.allowedProps)||(G==null?0:G.allowedPropsFromBehaviors)){var E,v;d.allowedProps=[].concat(_.u7((E=G.allowedProps)!=null?E:[]),_.u7((v=G.allowedPropsFromBehaviors)!=null?v:[]))}var c=Jnr(d,W);B=c.observedAttributes;var J={};z=_.A(d.reactiveSchemas);for(G=z.next();!G.done;G=z.next())if(G=G.value,G.type==="signal")J[G.propertyKey]={readOnly:G.readOnly},
G.readOnly&&(J[nDR(G.propertyKey)]={readOnly:!0});else if(G.type==="compute"||G.type==="computeWithMethod"||G.type==="redux")J[G.propertyKey]={readOnly:!0};var g=d.reactiveSchemas.length,t;return{ctor:function(P,Z){P=new c(P);P.beforeReady=Z.beforeReady;return P},
props:J,observedAttributes:B,getInitialMethods:Y,getPropsToForwardBeforeRegister:function(){for(var P=[],Z=new Set,l=_.A(mQr),b=l.next();!b.done;b=l.next())b=b.value,P.push([b,b!=="observers"&&b!=="properties"]),Z.add(b);l=_.A(Object.keys(J));for(b=l.next();!b.done;b=l.next())b=b.value,P.push([b,J[b].readOnly]),Z.add(b);l=Y();b=_.A(Object.keys(Object.getOwnPropertyDescriptors(W.prototype)));for(var O=b.next();!O.done;O=b.next())O=O.value,!u1k(O)||l.has(O)||Z.has(O)||(P.push([O,!1]),Z.add(O));P.push(["allowedProps",
!0]);return P},
getPropsToForwardBeforeReady:function(P){var Z=[];P=_.A(Object.keys(P));for(var l=P.next();!l.done;l=P.next()){l=l.value;var b=Y();u1k(l)&&!b.has(l)&&Z.push([l,!1])}P=_.A(d.reactiveSchemas.slice(g));for(l=P.next();!l.done;l=P.next())l=l.value,l.type!=="compute"&&l.type!=="computeWithMethod"&&l.type!=="redux"&&l.type!=="signal"||Z.push([l.propertyKey,l.type==="signal"?l.readOnly:!0]);return Z},
shouldForwardProp:u1k,shouldLog:fo}};
_.D=function(W,B,z,G){var Y,d,E=(d=(Y=G)==null?void 0:Y.mode)!=null?d:0;G!=null||(G={});var v;(v=G).reactivityMode!=null||(v.reactivityMode=0);E===1&&_.T4("creator_poly_si_disable_list").includes(B)&&(E=2);return E===1?XBX(W,B,z,Object.assign({},G,{useSink:!0}),xQX):XBX(W,B,z,Object.assign({},G,{useSink:E===2}))};
_.sV=function(){return function(W,B,z,G){var Y,d,E=(d=(Y=G)==null?void 0:Y.mode)!=null?d:2;G!=null||(G={});var v;(v=G).reactivityMode!=null||(v.reactivityMode=0);if(E===0)throw Error("$g`"+E);return Oqx(W,B,z,G,E===1?xQX:void 0)}};
_.PJ=function(W){return _.r("creator_poly_si_killswitch")?!1:_.r("force_all_poly_si_batches")&&(W==="poly_si_all_on_test_check"||W==="creator_poly_si_batch_050"?0:W)||document.documentElement.hasAttribute("use-signals")?!0:!W||_.r(W+"_holdback_enabled")&&_.r("kevlar_polysi_holdback")?!1:_.r(W)};
Zr=function(W){return W?W.icon?W.icon.iconType.toLowerCase():W.customThumbnail?"member":"":""};
DQ8=function(W){if(!W)return"";W=_.A(W);for(var B=W.next();!B.done;B=W.next())if((B=B.value)&&B.liveChatAuthorBadgeRenderer&&(B=Zr(B.liveChatAuthorBadgeRenderer))&&B!=="verified")return B;return""};
QhX=function(W,B){if(!W)return null;var z;return((z=W.find(function(G){return G&&G.liveChatAuthorBadgeRenderer?Zr(G.liveChatAuthorBadgeRenderer)===B:!1}))==null?void 0:z.liveChatAuthorBadgeRenderer)||null};
_.LUk=function(W){var B=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;W=yAv(W);B=yAv(B);var z=qfr(W.hex);B=qfr(B.hex);var G=B[0]/255;var Y=B[1]/255,d=B[2]/255,E=Math.max(G,Y,d),v=Math.min(G,Y,d),c=0,J=0,g=.5*(E+v);E!=v&&(E==G?c=60*(Y-d)/(E-v):E==Y?c=60*(d-G)/(E-v)+120:E==d&&(c=60*(G-Y)/(E-v)+240),J=0<g&&g<=.5?(E-v)/(2*g):(E-v)/(2-2*g));G=[Math.round(c+360)%360,J,g];z=njv(z,B);for(W=NX2(W.hex);z<4.5;){W=G[2]>=.5?W.darker((4.5-z)/2):W.brighter((4.5-z)/2);z=W.toString();
Y=$Qx(z);if(!Y.length)throw Error("Wd`"+z);z=Y;z=njv(z,B)}return W.hex()};
njv=function(W,B){W=_.fbX(W);B=_.fbX(B);return(Math.max(W,B)+.05)/(Math.min(W,B)+.05)};
_.ra=function(W){return"#"+("000000"+(W&16777215).toString(16)).slice(-6)};
_.UQR=function(W){for(var B=0,z=0;z<W.length;z++)B=W.charCodeAt(z)+((B<<5)-B);W="#";for(z=0;z<3;z++)W+=("00"+(B>>z*8&255).toString(16)).slice(-2);return W};
MBX=function(W){W=(W||"").split(":");W.length===1&&W.unshift("yt-icons");W[1]=W[1].toLowerCase();return W};
G$R=function(W,B){var z=(B=B===void 0?!1:B)?aCR:RE0,G=B?WSD:BQX;W.getIconNames().forEach(function(Y){Y=B?Y:Y.substring(Y.indexOf(":")+1);W.name==="yt-icons"?zBu.add(Y):Y.includes("-filled")?z.add(Y):G.add(Y)})};
kB=function(W,B,z,G){z=z===void 0?!1:z;G=G===void 0?!1:G;var Y,d,E;return _.T(function(v){if(v.nextAddress==1)return v.yield(YJT,2);if(G)return v.return(zBu.has(W));Y=z?aCR:RE0;d=z?WSD:BQX;return B?(E=W.includes("-filled")?W:W.concat("-filled"),v.return(Y.has(E))):v.return(d.has(W))})};
_.Aly=function(W){if(dL0(W))return W;var B=W=W.toLowerCase();(W=pUR.get(W))&&(B=W);return B};
_.lg=function(W){if(dL0(W))return W.toString();var B=iJD.get(W);if(B)return B;B=W.toLowerCase();var z="yt-icons",G=B.replace(/_/g,"-");switch(W){case "MY_CHANNEL":B="account_circle";break;case "ADD_TO_LIBRARY":B="add";break;case "ALERT_WARN_RED":B="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":B="person_music";break;case "BLOCK_USER":B="block";break;case "CAPTIONS":B="closed_caption";break;case "CLOSED_CAPTION":z="av";B="closed-caption";break;case "COLLECTION":z="maps";B="layers";break;case "CONTACT":z=
"icons";B="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":z="ytcp-icons";B=G.split("creator-studio-")[1];break;case "DISMISSAL":B="close";break;case "DO_NOT_DISTURB":B="block";break;case "DOGFOOD":z="icons";B="pets";break;case "DRAFT":B="paper_corner_folded";break;
case "EMPTY_LIKE":B="like_outline";break;case "EXIT_APP":B="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":B=G;break;case "GAMES":z="ytg";B="my-games";break;case "GO_TO_PAGE":B="arrow-forward";break;case "GROUP":z="social";break;case "HIDE":B="not_interested";break;case "INPUT_COMPONENT":z="icons";B="settings-input-component";break;case "KIDS_BLOCK":B="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":z="ytg";B="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":z=
"ytg";B="membership-post-purchase";break;case "MULTIVIEW":B="screen_multi_view";break;case "MY_LOCATION":z="maps";B=G;break;case "NOTIFICATIONS_INBOX":B="NOTIFICATIONS";break;case "NEXT":B="chevron_right";break;case "OFFLINE":B="power-settings-new";break;case "PAUSE":z="miniplayer";break;case "PAYMENT":z="icons";break;case "PHONE_DOWNLOAD":B="phone_download";break;case "PREMIUM_STANDALONE":z="yt-logos";B="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":z="yt-logos";B="premium_standalone_cairo";
break;case "QUESTION_ANSWER":B="question_answer";break;case "REDEEM":z="icons";B="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":B="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":B="library_add";break;case "SCHOOL":z="yt-sys-icons";B="creator_academy";break;case "SETTINGS_LIGHT":B="settings_applications";break;case "SETTINGS_MATERIAL":B="settings";break;case "SEARCH_HISTORY":B="watch_history";break;case "SHOPPING_BAG":B="bag";break;case "SOCIAL":case "PEOPLE":z=
"yt-icons";B="people";break;case "STAFF_PICK":z="ytg";B="spotlight";break;case "START_DVR":B="add";break;case "STOP_DVR":z="av";B="stop";break;case "TAB_LIKED":B="like";break;case "TAB_INBOX":B="mail";break;case "TERMS_OF_SERVICE":z="icons";B="description";break;case "TRENDING":B="fire";break;case "UNBLOCK_USER":B="remove";break;case "UNPLUGGED_DARK_THEME":z="image";B="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":B="live";break;case "UNPLUGGED_SPORTS":z="ytu";B="visibility-off";break;
case "VIDEOS":z="av";B="play-circle-filled";break;case "YOUTUBE":z="yt-logos";B="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":z="yt-logos-ext";B="yt-logo-red-updated";break;case "YOUTUBE_LOGO":z="yt-logos-ext";B="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":z="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":z="shorts";B=G;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":z="yt-sys-icons";B="youtube_improve_tv";break;case "OUTLINE_BAG":z=
"yt-sys-icons";B="bag";break;case "QUEUE_PLAY_LAST":z="yt-sys-icons";B="list_queue_last";break;case "SLASH_CIRCLE_LEFT":B="slash_circle_left";break;case "SPEED_1_POINT_2X":B="1_point_2x";break;case "SPEED_1_POINT_5X":B="1_point_5x";break;case "SPEED_1_POINT_8X":B="1_point_8x";break;case "SPEED_POINT_2X":B="point_2x";break;case "SPEED_POINT_5X":B="point_5x";break;case "SPEED_POINT_8X":B="point_8x";break;case "SPEED_1X":B="1x";break;case "SPEED_2X":B="2x";break;case "TAB_BOOKMARK":B="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":z="yt-sys-icons";B="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":z="yt-sys-icons";B="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":z="yt-sys-icons",B="tic_tac_toe"}B=z+":"+B;iJD.set(W,B);return B};
dL0=function(W){var B;_.r("kevlar_use_wil_icons")?B=!!_.dO().resolve(_.C8).resolveIcon({iconName:W.toString()}):B=!1;return B};
_.oB=function(W,B,z,G){z=z===void 0?{}:z;G=G===void 0?!1:G;z===null&&(z={});var Y=_.T4("kevlar_command_handler_command_banlist");Y=_.A(Y);for(var d=Y.next();!d.done;d=Y.next())if(d=W?W.hasOwnProperty(d.value):void 0,d)return!1;Y=_.k(W.commandMetadata,_.Z4);return G&&Y!=null&&Y.url?!1:!B.disableCommandHandlerOverride&&_.IB.instance?(G=_.IB.instance,z.form||(z.form={element:B}),z.form.element||(z.form.element=B),!z.clickedVisualElement&&B.visualElement&&(z.clickedVisualElement=B.visualElement),G.resolveCommand(W,
z),!0):!1};
Euu=function(W,B){W=hV(W);for(var z=_.A(W.visibilityMonitorKeys||[]),G=z.next();!G.done;G=z.next())B.unobserveByKey(G.value);W.visibilityMonitorKeys=void 0};
wU8=function(W,B){if(_.m1()){if(_.r("kevlar_vimio_use_shared_monitor"))TQ8(W,B.data);else if(!TQ8(W,B.data))return;var z=B.data,G=vu8(z);if(_.r("enable_client_ve_spec_logging"))Euu(W,B.observer);else{var Y=hV(W);Y.trackedParams&&Y.trackedParams!==G&&Euu(W,B.observer)}Y=hV(W);!z||Y.data&&Y.data===z||(Y.data=z);clR(W,B);Y.trackedParams=G}};
clR=function(W,B){var z=B.observer;if(!z&&_.r("web_skip_missing_vimio_observer")){var G,Y;_.Oc(new _.oX("VisibilityObserver is not defined.",W.tagName,W.trackedParams,(G=B.data)==null?void 0:G.trackingParams,(Y=B.data)==null?void 0:Y.loggingDirectives))}else{var d=B.layer,E=B.visibilityCallback||function(){},v=B.prescanCallback,c=hV(W);
G=[];B.showOption&&G.push(z.observe(W,function(){B.skipLogging&&B.skipLogging()||_.HJ().reportShown(c,void 0,d);E(!0)},B.showOption));
B.hideOption&&G.push(z.observe(W,function(){_.HJ().reportHidden(c,void 0,d);E(!1)},B.hideOption));
B.prescanOption&&v&&G.push(z.observe(W,function(){v()},B.prescanOption));
c.visibilityMonitorKeys=G}};
TQ8=function(W,B){W=hV(W);if(W.visualElement&&!B)return!0;if(!B)return!1;var z=!1;if(_.r("enable_client_ve_spec_logging")){var G,Y;z=!!((G=B.loggingDirectives)==null?0:(Y=G.clientVeSpec)==null?0:Y.uiType)}G=vu8(B);if(!G&&!z)return!1;_.r("mweb_component_visibility_logging")&&(W.veContainer||(W.veContainer={}),W.veContainer.trackingParams=G);if(W.trackedParams&&W.trackedParams===G)return!1;var d;if(_.r("enable_client_ve_spec_logging")&&((d=W.visualElement)==null?0:d.isClientVe())){var E;d=(E=W.visualElement)==
null?void 0:E.getAsJspb();var v,c,J,g;if(_.cC(d,2)===((v=B.loggingDirectives)==null?void 0:(c=v.clientVeSpec)==null?void 0:c.uiType)&&_.cC(d,3,-1)===((J=B.loggingDirectives)==null?void 0:(g=J.clientVeSpec)==null?void 0:g.elementIndex))return!1}if(_.r("enable_client_ve_spec_logging")){var t,P;!W.visualElement&&((t=B.loggingDirectives)==null?0:(P=t.clientVeSpec)==null?0:P.uiType)&&(v=B.loggingDirectives.clientVeSpec,B=v.uiType,E=v.elementIndex,v=v.clientYoutubeData,W.visualElement=_.FF(_.SK(),{veType:B,
elementIndex:E,clientYouTubeData:v}))}return!0};
vu8=function(W){if(W==null?0:W.rendererContext){var B=_.k(W.rendererContext,_.bg);if(B==null?0:B.loggingDirectives)return B.loggingDirectives.trackingParams}return(W==null?0:W.loggingDirectives)?W.loggingDirectives.trackingParams:W==null?void 0:W.trackingParams};
hV=function(W){var B;return(B=W.polymerController)!=null?B:W};
tpT=function(W){_.HJ();if(_.D5(jK().JSC$12569_elementShouldLogGesture).bind(jK())(W,4)){VpD(W);var B=JlD(W);guD.set(W,B)}};
VpD=function(W){guD.has(W)&&(guD.get(W).cancel("untrack hover element"),guD.delete(W))};
JlD=function(W){var B,z=[],G=!1,Y=new _.Vx(function(d,E){f8(W,"mouseenter",_.D5(function(){var v,c,J;return _.T(function(g){if(g.nextAddress==1)return B=(0,_.Yb)(),v=s$t(W),z.push(v),c=P$D(W,function(){G=!0;E(Error("ah"))}),g.yield(v,2);
if(g.nextAddress!=3)return c&&OV(c),J=ZJR(W),z.push(J),g.yield(J,3);d();_.HG(g)})}))});
Y.then(function(){var d=(0,_.Yb)()-B;d=Math.round(d);if(!(500>d||6E5<=d)){var E=W.getScreenLayer?W.getScreenLayer():void 0;E=_.m1(E)||"";var v=rlt(_.HJ(),W);_.W3(E,W.visualElement?W.visualElement:_.XF(v),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:d}})}tpT(W)},function(){K8&&(K8(),K8=null);
G&&(VpD(W),tpT(W))});
return Y};
s$t=function(W){var B;return(new _.Vx(function(z,G){K8=function(){G(Error("bh"))};
B=_.fg.debounce(_.D5(function(){OV(Y);z()}),1,100);
var Y=_.ug(W,"mousemove",B)})).thenCatch(function(){var z=_.fg.cancelDebouncedJobMap.get(B);
z&&_.fg.cancelJob(z)})};
ZJR=function(W){var B;return(new _.Vx(function(z,G){K8=function(){G(Error("ch"))};
B=f8(W,"mouseleave",_.D5(function(){z()}))})).thenCatch(function(){OV(B)})};
P$D=function(W,B){return f8(W,"mouseleave",_.D5(B))};
lck=function(W){k$T&&_.eK.cancel(k$T);k$T=_.eK.run(function(){_.v0(W,"yt-visibility-refresh");k$T=0})};
C$X=function(W){W=Number(W);return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
out=function(W){if(!W)return!1;if(_.k(W,_.Ic0))return!0;var B;if(W=(B=_.k(W,_.tr))==null?void 0:B.commands)for(B=_.A(W),W=B.next();!W.done;W=B.next())if(_.k(W.value,_.Ic0))return!0;return!1};
hBr=function(W){var B=!0;B=B===void 0?!0:B;if(!W.useSignals&&!W.experimentalPropertiesChanged||_.r("experimental_templating_behavior_nopatch_killswitch")){var z=W._propertiesChanged;W._propertiesChanged=function(G,Y,d){B?W.debounceRender():W.doRender();z&&z.call(W,G,Y,d)}}};
HJy=function(W,B){if(W.useSignals||W.experimentalPropertiesChanged)if(_.r("experimental_templating_behavior_nopatch_killswitch"))W.experimentalPropertiesChanged=function(){};
else return;var z=new Set,G=[W].concat(_.u7(W.behaviors));G=_.A(G);for(var Y=G.next();!Y.done;Y=G.next()){Y=Y.value;for(var d in Y.properties)z.has(d)||(W._addPropertyEffect(d,"function",B),z.add(d))}};
FSt=function(){var W=Polymer.Element,B=W._prepareTemplate;W._prepareTemplate=function(){B.call(this);var z=this.prototype;if(z.experimentalTemplatingInUse&&z.experimentalTemplatingInUse()&&z.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.jy(Error("dh"));else{z=this.template.content.childNodes;for(var G=z.length-1;G>=0;G--){var Y=z[G];Y.nodeName!=="STYLE"&&Y.nodeName!=="LINK"&&Y.nodeName!=="SCRIPT"&&Y.nodeName!=="#comment"&&Y.remove()}}}};
SJy=function(W){var B=!0;B=B===void 0?!0:B;FSt();var z=W.ready;W.ready=function(){this._template=null;z.call(this)};
HJy(W,B?W.debounceRender:W.doRender)};
j$x=function(W,B,z){if(z===null||z===void 0)return z;var G=Vju(W.tagName.toLowerCase(),B,function(){throw Error("Tb");});
if(G===null)return z;G=bJR[G];var Y;if((Y=G.isUnwrappable)==null?0:Y.call(G,z)){if(G.unwrap)return G.unwrap(z);throw Error("gh");}return G.filterString?G.filterString(W.tagName,B,String(z)):z};
fcu=function(W,B,z){var G=B[B.length-1]!=="$",Y=j$x(W,B,z);if(G)if(typeof Y==="function"&&B.startsWith("reactiveon")&&B===B.toLowerCase()){var d=Gt;lET(W,B.slice(8),function(E){uE(d,function(){Y(E)})})}else W[B]=Y;
else z=Y==null?null:String(Y),x$(W,B.slice(0,-1),z)};
xB=function(W){OJt.length===0&&requestAnimationFrame(function(){setTimeout(function(){var B=OJt.slice();OJt.length=0;B=_.A(B);for(var z=B.next();!z.done;z=B.next()){z=z.value;try{z()}catch(G){_.mR(G)}}})});
OJt.push(W)};
XUr=function(W){if(W){var B=W.component;if(B){var z;B==null||(z=B.events)==null||z.publish("DISCONNECTED");var G;B==null||(G=B.onDisconnected)==null||G.call(B)}var Y,d;(Y=W.__spec)==null||(d=Y.didUnmount)==null||d.call(Y);for(B=0;B<W.childNodes.length;B++)XUr(W.childNodes[B])}};
KSv=function(W,B,z){var G=B&&B.key,Y=WR;Y[0]=W;Y[1]=G;Y[2]=void 0;for(var d in B)B.hasOwnProperty(d)&&(W=B[d],G=BR,G.push(d),G.push(W));B=WR;a:{if(d=WR[2])for(W=0;W<d.length;W+=2)if(d[W]==="nonce"){d=d[W+1];break a}d=""}d=KzD(B[0],B[1],d);W=qw(d);G=B[2];if(!W.staticsApplied&&(W.staticsApplied=!0,G&&G.length))if((Y=W._attrsArr)&&Y.length){for(Y=0;Y<G.length;Y+=2)Dr[G[Y]]=Y+1;Y=W._attrsArr||(W._attrsArr=kpR(0));for(var E=0,v=0;v<Y.length;v+=2){var c=Y[v],J=Y[v+1],g=Dr[c];g?G[g]===J&&delete Dr[c]:(Y[E]=
c,Y[E+1]=J,E+=2)}m6(Y,E);for(var t in Dr)HlD(d,t,G[Dr[t]],B_),delete Dr[t]}else for(t=0;t<G.length;t+=2)HlD(d,G[t],G[t+1],B_);qj2(d,W,B_);m6(B,0);z&&z(nR);uQ2()};
_.Q2=function(W,B,z){z===void 0?delete W[B.name]:W[B.name]=z};
_.y2=function(W){var B={androidIncludeFontPadding:!1},z=0,G=[],Y=[],d=[];if(W.simpleText)return B.content=W.simpleText,B;if(W.runs===void 0)return B.content="",B;W=_.A(W.runs);for(var E=W.next();!E.done;E=W.next()){E=E.value;var v=E.text,c=void 0,J=(c=v)==null?void 0:c.length;if(v&&J){G.push(v);if(E.bold||E.italics||E.strikethrough||E.underline||E.textColor!=null&&E.textColor!==0||E.deemphasize){v=Y;c=v.push;var g={startIndex:z,length:J};E.bold&&(g.weightLabel="FONT_WEIGHT_MEDIUM");E.italics&&(g.italic=
!0);E.strikethrough&&(g.strikethrough="LINE_STYLE_SINGLE");E.underline&&(g.underline="LINE_STYLE_SINGLE");E.textColor!=null&&E.textColor!==0?document.documentElement.hasAttribute("dark")?g.fontColor=E.darkModeTextColor||E.textColor:g.fontColor=E.textColor:E.deemphasize&&(document.documentElement.hasAttribute("dark")?g.fontColor=parseInt("ff"+uSu("#aaa").substring(1),16):g.fontColor=parseInt("ff"+uSu("#606060").substring(1),16));c.call(v,g)}E.navigationEndpoint&&(v=d,c=v.push,g={startIndex:z,length:J,
onTap:{innertubeCommand:E.navigationEndpoint}},E.loggingDirectives&&_.Q2(g,eBu,E.loggingDirectives),c.call(v,g));z+=J}}B.content=G.join("");B.styleRuns=Y.length?Y:void 0;B.commandRuns=d.length?d:void 0;return B};
xLu=function(W){if(W==null||!W.runs)return!0;W=_.A(W.runs);for(var B=W.next();!B.done;B=W.next())if(B=B.value,B.bracket||B.errorUnderline||B.deemphasize||_.k(B,qH)||_.k(B,mLt))return!1;return!0};
DLT=function(W,B){return function(z){var G=B.unit;if(G!==z)throw Error("jh`"+W+"`"+G+"`"+z);return B}};
n8=function(W){if(!((W==null?0:W.value)&&(W==null?0:W.unit)))return"";switch(W.unit){case "DIMENSION_UNIT_FRACTION":var B="%";break;default:B="px"}W=W.value;B==="%"&&(W*=100);return""+W+B};
Q$t=function(W){try{return W()}catch(B){_.Oc(B)}};
_.$B=function(W){var B=_.k(W,_.NH);if(B)return B;if((B=_.k(W,yl0))&&B.commands)return qJt(B.commands);if((B=_.k(W,nuv))&&B.commands)return qJt(B.commands);if((W=_.k(W,NQ0))&&W.identifier&&W.command&&($LD||($LD=[]),!$LD.includes(W.identifier)))return $LD.push(W.identifier),_.k(W.command,_.NH)};
qJt=function(W){if(W.length!==0){var B=[];W=_.A(W);for(var z=W.next();!z.done;z=W.next())(z=_.$B(z.value))&&B.push(z);return{commandExecutorCommand:{commands:B}}}};
_.UV=function(W){var B=W.defaultTarget,z=W.elementConfig,G=W.elementsCommand,Y=W.skipOnClick,d=W.forceNewState,E=W.additionalCommandArgs,v=W.innertubeCommand||_.$B(G);if(v){W={};var c=LSv(v);G=c.navigatingCommand;c=c.href;G&&c?(W.href$=c,ULt(W,G,c,B),_.r("web_atagconfig_pointerdown")&&MpD(W,G),d&&(W["force-new-state$"]=!0)):(W.role$="button",W.href$="javascript:void(0);");_.k(v,acD)&&(W["aria-haspopup$"]=!0);Y||(W.onclick=function(J){var g={};if(RBT(J)){var t=(E==null?void 0:E.clickedVisualElement)||
(E==null?void 0:E.getClickedVisualElement)&&E.getClickedVisualElement();t&&(g={clickedVisualElement:t});g=Object.assign({},{form:{element:J.target,event:J,createScreenConfig:g}},E);J.preventDefault();_.L8(v,g)}});
return Object.assign({},z,W)}};
Wlu=function(W){if(W.length){if(W.length===1)return W[0];var B={};_.Q2(B,_.tr,{commands:W});return B}};
MH=function(W){return W&&W.href$!=="javascript:void(0);"};
LSv=function(W){var B,z=((B=_.k(W,_.tr))==null?void 0:B.commands)||[W];W=_.A(z);for(B=W.next();!B.done;B=W.next()){B=B.value;var G=void 0,Y=void 0;z=(Y=_.k((G=B)==null?void 0:G.commandMetadata,_.Z4))==null?void 0:Y.url;_.r("web_remove_web_navigation_endpoint_data")||(G=void 0,z=z||((G=_.k(B,BZ2))==null?void 0:G.url));if(z&&z!=="/service_ajax"){if(G=_.DR(z,zGy))return W=_.mF(G),{navigatingCommand:B,href:W};_.Oc(new _.oX("AttributedString URL could not be sanitized",z))}}return{}};
RBT=function(W){return W.button!==void 0?W.button===0&&!(W.shiftKey||W.altKey||W.metaKey||W.ctrlKey):!(W.shiftKey||W.altKey||W.metaKey||W.ctrlKey)};
ULt=function(W,B,z,G){z=!z4(z);var Y,d,E;if((Y=_.k(B,_.oE))!=null&&Y.nofollow||(d=_.k(B,_.W0))!=null&&d.nofollow||(E=_.k(B,_.DD))!=null&&E.nofollow||z)W.rel$="nofollow";var v;B=((v=_.k(B,_.DD))==null?void 0:v.target)==="TARGET_NEW_WINDOW"?"_blank":G===void 0?"":G;W.target$=B};
MpD=function(W,B){B.clickTrackingParams&&(W.params={itct:B.clickTrackingParams});W.onpointerdown=function(z){GVR(z)};
W._data=B};
Y1Q=function(W){(W.loggingUrls||[]).forEach(function(B){qX(B.baseUrl,B.attributionSrcMode)})};
GVR=function(W){var B=W.currentTarget;W=Q$t(function(){return B.href});
var z=B.params;W&&_.Yq(W,z||{},8,!0)};
_.aB=function(W,B){(W=_.$B(W))&&_.L8(W,B)};
_.L8=function(W,B){QPr(function(z){B?z.resolveCommand(W,B):z.resolveCommand(W)})};
i0T=function(W,B){var z=["yt-core-attributed-string__link"];B!=null&&B.noLinkColor||((B==null?0:B.isOverlay)?z.push("yt-core-attributed-string__link--overlay-call-to-action-color"):z.push("yt-core-attributed-string__link--call-to-action-color"),(B==null?0:B.linkInheritColor)&&z.push("yt-core-attributed-string--link-inherit-color"));z={className:z.join(" "),tabindex$:"0"};var G=W.onTap||W.onLongPress;if(!G)return z;var Y=d3R(W);Y&&(z["aria-label$"]=Y);B=_.UV({elementsCommand:G,elementConfig:z,skipOnClick:!(B==
null||!B.skipOnClick),forceNewState:!0});W.onLongPress&&(G=new p68(function(){var d=_.$B(W.onLongPress);d&&_.dO().resolve(_.p4).resolveCommand(d)}),B&&Acy(G,B));
return B||z};
d3R=function(W){var B,z;return(B=W.onTapOptions)==null?void 0:(z=B.accessibilityInfo)==null?void 0:z.accessibilityLabel};
Ep8=function(W){var B=W;W<=16777215&&(B+=parseInt("ff000000",16));return _.aE(B)};
TZR=function(W){var B=W.isDarkTheme;var z=W.extension;W=W.runColor;var G=void 0;if(z=z==null?void 0:z.colorMap){B=B?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";z=_.A(z);for(var Y=z.next();!Y.done;Y=z.next())if(Y=Y.value,B===Y.key){G=Y.value;break}}G==null&&W&&(G=W);if(G)return Ep8(G)};
RB=function(W){var B=W.config;var z=W.image;var G=W.imageConfig;var Y=W.imageWrapperConfig;var d=W.run;var E=W.tag;var v=W.textLength;var c=W.startIndex===void 0?0:W.startIndex;W=W.length;c===void 0&&(c=0);d={run:d,startIndex:c,endIndex:W!==void 0?c+W:v,tag:E};z&&(d.image=z);G&&(d.imageConfig=G);Y&&(d.imageWrapperConfig=Y);B&&(d.config=B);return d};
ccy=function(W,B){var z=[];z.push("yt-core-attributed-string");(B==null?0:B.className)&&z.push(B==null?void 0:B.className);(B==null?0:B.ellipsisTruncate)?z.push("yt-core-attributed-string--ellipsis-truncate"):(B==null?0:B.noWrap)?z.push("yt-core-attributed-string--white-space-no-wrap"):(B==null?0:B.noPreWrap)||z.push("yt-core-attributed-string--white-space-pre-wrap");(B==null?0:B.linkInheritColor)&&z.push("yt-core-attributed-string--link-inherit-color");W.alignment&&z.push(vpR(W.alignment));W.lineBreakMode&&
z.push("yt-core-attributed-string--word-wrapping");return z.join(" ")};
w6u=function(W,B){if(W.weight)return W.weight;switch(W.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 B?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
V52=function(W){switch(W){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"}};
vpR=function(W){switch(W){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"}};
GG=function(W,B,z){var G=B;W.content&&z&&(z=W.content.indexOf("\n"),z!==-1&&(G=Math.min(B,z)));if(!W.content||W.content.length<=G)B=W;else if(W.attachmentRuns||W.commandRuns||W.decorationRuns||W.styleRuns||W.paragraphStyleRuns){B=B2(W.content,G);z=G;var Y=W.attachmentRuns;if(Y){var d=[];Y=_.A(Y);for(var E=Y.next();!E.done;E=Y.next())E=Object.assign({},E.value),E.startIndex===void 0||E.startIndex>=z||(E.length||(E.length=0),E.length+E.startIndex>z&&(E.length=z-E.startIndex),d.push(E));z=d}else z=void 0;
d=JcT(G,W.commandRuns);Y=G;var v=W.decorationRuns;if(v){E=[];v=_.A(v);for(var c=v.next();!c.done;c=v.next()){c=c.value;var J=_.k(c.textDecorator,zG);if(J&&J.startIndex!==void 0&&!(J.startIndex>=Y)){c=Object.assign({},c,{textDecorator:{highlightTextDecorator:Object.assign({},J)}});J=_.k(c.textDecorator,zG);if(!J.length||J.length+J.startIndex>Y)J.length=Y-J.startIndex;E.push(c)}}Y=E}else Y=void 0;E=JcT(G,W.styleRuns);if(v=W.paragraphStyleRuns)for(W=[],v=_.A(v),c=v.next();!c.done;c=v.next()){var g=c.value;
c=Object.assign({},g);if(!(c.startIndex===void 0||c.startIndex>=G)){if(!c.length||c.length+c.startIndex>G)c.length=G-c.startIndex;J=[];var t=void 0,P=void 0;if((t=g)==null?0:(P=t.listGroup)==null?0:P.listItems)for(g=_.A(g.listGroup.listItems),t=g.next();!t.done;t=g.next())if(t=Object.assign({},t.value),!(t.startIndex===void 0||t.startIndex>=G)){if(!t.length||t.length+t.startIndex>G)t.length=G-t.startIndex;J.push(t)}J.length>0&&(c.listGroup||(c.listGroup={}),c.listGroup=Object.assign({},c.listGroup,
{listItems:J}));W.push(c)}}else W=void 0;B={content:B,attachmentRuns:z,commandRuns:d,decorationRuns:Y,styleRuns:E,paragraphStyleRuns:W}}else B=Object.assign({},W,{content:B2(W.content,G)});return B};
JcT=function(W,B){if(B){var z=[];B=_.A(B);for(var G=B.next();!G.done;G=B.next())if(G=Object.assign({},G.value),!(G.startIndex===void 0||G.startIndex>=W)){if(!G.length||G.length+G.startIndex>W)G.length=W-G.startIndex;z.push(G)}return z}};
B2=function(W,B){var z=B,G;if(G=z>0)G=W.charCodeAt(z-1),G=G>=55296&&G<=56319;G&&(z=W.charCodeAt(z),G=z>=56320&&z<=57343);G&&--B;return W.substring(0,B)};
PDR=function(W,B,z){z=z===void 0?gpX:z;if(W){var G=_.dO().resolve(Gp);G||_.r("mweb_no_observer_killswitch")?wU8(W,{data:B,observer:G,visibilityCallback:z,hideOption:t5R,showOption:s2X,layer:W.layer}):_.Oc(new _.oX("Warning: monitorVisibility called with null observer",W.tagName,B==null?void 0:B.loggingDirectives,B==null?void 0:B.trackingParams))}else _.Oc(new _.oX("Warning: monitorVisibility called with null element",B==null?void 0:B.loggingDirectives,B==null?void 0:B.trackingParams,B==null?void 0:
B.rendererContext))};
opQ=function(W,B){var z=[],G=W.content.length,Y,d=(Y=_.dO().resolve(_.Y8(_.YG)))==null?void 0:Y();if(W.paragraphStyleRuns){Y=_.A(W.paragraphStyleRuns);for(var E=Y.next();!E.done;E=Y.next()){var v=z.push,c=v.apply;var J=void 0;E=E.value;if((J=E.listGroup)!=null&&J.listItems){J=[];b:switch(E.listGroup.listType){case "LIST_TYPE_BULLET":var g="ul";break b;default:g="span"}J.push(RB({run:E,textLength:G,tag:g,config:{className:"yt-core-attributed-string__list-group"},startIndex:E.startIndex,length:E.length}));
g=_.A(E.listGroup.listItems);for(var t=g.next();!t.done;t=g.next()){t=t.value;b:switch(E.listGroup.listType){case "LIST_TYPE_BULLET":var P="li";break b;default:P="span"}J.push(RB({run:E,textLength:G,tag:P,startIndex:t.startIndex,length:t.length}))}E=J}else E=[];c.call(v,z,_.u7(E))}}if(W.styleRuns&&(B==null||!B.noStyleRuns))for(Y=_.A(W.styleRuns),v=Y.next();!v.done;v=Y.next()){E=v=v.value;J=d;c=B;J=TZR({extension:_.k(E.styleRunExtensions,Z0X),isDarkTheme:J===void 0?!1:J,runColor:E.fontColor});t=E;
g=[];J&&g.push("yt-core-attributed-string--link-inherit-color");t.italic&&g.push("yt-core-attributed-string--italicized");t.underline&&t.strikethrough?g.push("yt-core-attributed-string--underline-strikethrough",V52(t.underline)):t.underline?g.push("yt-core-attributed-string--underlined",V52(t.underline)):t.strikethrough&&g.push("yt-core-attributed-string--strikethrough",V52(t.strikethrough));if(t.baselineOffset){a:switch(t.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":t="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":t="yt-core-attributed-string--baseline-offset-superscript";break a;default:t="yt-core-attributed-string--baseline-offset-unknown"}g.push(t)}g=g.join(" ");t={};if(E.weight||E.weightLabel)t.fontWeight=w6u(E,c==null?void 0:c.isHeadline).toString();J&&(t.color=J);z.push(RB({run:v,textLength:G,tag:"span",config:{className:g,style:t},startIndex:v.startIndex,length:v.length}))}if(W.decorationRuns)for(Y=_.A(W.decorationRuns),v=Y.next();!v.done;v=Y.next())v=v.value,
c={},v.textDecorator&&(g=v.textDecorator,E=d===void 0?!1:d,t=[],J=_.k(g,zG),g=_.k(g,rct),J?(g=t,t=g.concat,P=[],(E=TZR({extension:_.k(J.highlightTextDecoratorExtensions,kV2),isDarkTheme:E,runColor:J.backgroundColor}))&&P.push("background-color: "+E+";"),J.backgroundCornerRadius!==void 0&&P.push("border-radius: "+J.backgroundCornerRadius+"px;"),J.leftPadding!==void 0&&P.push("padding-left: "+J.leftPadding+"px;"),J.rightPadding!==void 0&&P.push("padding-right: "+J.rightPadding+"px;"),J.topPadding!==
void 0&&P.push("padding-top: "+J.topPadding+"px;"),J.bottomPadding!==void 0&&P.push("padding-bottom: "+J.bottomPadding+"px;"),t=t.call(g,P)):g&&(J=t,t=J.concat,E=E?"#2ba640":"#107516",E=g.color?Ep8(g.color):E,E=["padding: 2px;","border-top: solid "+E+" 2px;","border-bottom: solid "+E+" 2px;","background: linear-gradient(135deg, "+E+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+E+" 3px, rgba(0, 0, 0, 0) 3px);"],t=t.call(J,E)),E=t.join(" "),c.style$=E,E=v.textDecorator,J=[],g=_.k(E,
rct),_.k(E,zG)?J.push("yt-core-attributed-string--highlight-text-decorator"):g&&J.push("yt-core-attributed-string--bracket-text-decorator"),E=J.join(" "),c.className=E,c.dir="auto"),E=_.k(v.textDecorator,zG),J=_.k(v.textDecorator,rct),g=_.k(v.textDecorator,zG),t=_.k(v.textDecorator,rct),z.push(RB({run:v,textLength:G,tag:"span",config:c,startIndex:(E==null?void 0:E.startIndex)||(J==null?void 0:J.startIndex)||0,length:(g==null?void 0:g.length)||(t==null?void 0:t.length)||0}));if(W.commandRuns&&(B==
null||!B.noEndpoints))for(d=_.A(W.commandRuns),Y=d.next();!Y.done;Y=d.next())Y=Y.value,v=i0T(Y,B),z.push(RB({run:Y,textLength:G,tag:"a",config:v,startIndex:Y.startIndex,length:Y.length}));if(W.attachmentRuns)for(W=_.A(W.attachmentRuns),d=W.next();!d.done;d=W.next()){d=d.value;c=v=void 0;Y={className:"yt-core-attributed-string--inline-block-mod"};if((c=d.element)==null?0:c.properties){c=(v=d.element)==null?void 0:v.properties;v=[];c=_.k(c,lXk);if(c==null?0:c.margin)c=c.margin,c.left&&v.push("margin-left: "+
n8(c.left)+";"),c.right&&v.push("margin-right: "+n8(c.right)+";"),c.top&&v.push("margin-top: "+n8(c.top)+";"),c.bottom&&v.push("margin-bottom: "+n8(c.bottom)+";");v=v.length!==0?v.join(" "):void 0;Y.style$=v}E=void 0;v={alt:"",preserveHeight:!0,preserveWidth:!0};c=["yt-core-attributed-string__image-element"];if(d.alignment){a:switch(d.alignment){case "ALIGNMENT_BASELINE":J="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":J="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:J="yt-core-attributed-string__image-element--image-alignment-bottom"}c.push(J)}if((E=d.element)==null?0:E.properties)E=[],J=_.k(d.element.properties,lXk),(J==null?0:J.height)&&E.push("height: "+n8(J.height)+";"),(J==null?0:J.width)&&E.push("width: "+n8(J.width)+";"),E=E.length!==0?E.join(" "):void 0,v.style$=E,J=void 0,E=((J=_.k(d.element.properties,CDk))==null?void 0:J.label)||"",v.alt=E;v.className=c.join(" ");c=void 0;g=J=void 0;E=((g=d.element)==null?0:g.type)?(J=_.k(d.element.type,
IXv))==null?void 0:J.image:void 0;z.push(RB({run:d,textLength:G,tag:"img",image:E,imageConfig:v,imageWrapperConfig:Y,startIndex:d.startIndex,length:(c=d.length)!=null?c:0}))}if(B==null?0:B.headerRuns)for(B=_.A(B.headerRuns),W=B.next();!W.done;W=B.next())if(W=W.value,W.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(W.headerMapping)){a:{switch(W.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":d=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":d="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":d="yt-core-attributed-string--heading-3";break a}d=void 0}z.push(RB({run:W,textLength:G,tag:"span",config:d?{className:d}:void 0,startIndex:W.startIndex,length:W.length}))}return z};
_.dS=function(W){return(W==null?void 0:W.content)!==void 0};
hGX=function(W){return _.dS(W)?W:_.y2(W)};
H00=function(W){return W.image!==void 0&&W.imageConfig!==void 0};
Flx=function(W,B){if(B==null?0:B.userInput)for(W=_.A(W),B=W.next();!B.done;B=W.next())if(B=B.value,B.tag!=="a"&&B.tag!=="li"){var z=void 0;(z=B).config||(z.config={});B.config.dir=B.tag==="ul"?_.dO().resolve(_.py):"auto"}};
S18=function(W){return function(B){var z=W.run;(z.onTap!==void 0||z.onLongPress!==void 0)&&_.k(z,eBu)&&PDR(B,{loggingDirectives:_.k(z,eBu)})}};
b0x=function(W){return function(B){for(var z in W)(B_[z]||B_[DI["default"]])(B,z,W[z])}};
X68=function(W,B){j2y(B);var z={data:null,start:0,end:W.length,parts:[]};B=_.A(B);for(var G=B.next();!G.done;G=B.next())G=G.value,fXt(z,G.startIndex,G.endIndex,G);O00(W,z);return z};
fXt=function(W,B,z,G){for(var Y=_.A(W.parts),d=Y.next();!d.done;d=Y.next()){d=d.value;if(typeof d==="string")throw Error("lh");if(d.start<=B&&z<=d.end){fXt(d,B,z,G);return}}W.parts.push({data:G,parts:[],start:B,end:z})};
O00=function(W,B){for(var z=B.parts.length;z>=0;z--){var G=B.parts[z],Y=B.parts[z-1],d=z===B.parts.length?B.end:G.start;Y=z===0?B.start:Y.end;d!==Y&&B.parts.splice(z,0,W.slice(Y,d));G&&O00(W,G)}};
j2y=function(W){W.sort(function(B,z){if(B.startIndex<z.startIndex)return-1;if(z.startIndex<B.startIndex)return 1;B=B.endIndex-B.startIndex;z=z.endIndex-z.startIndex;return B>z?-1:z>B?1:0})};
_.Kl0=function(W){var B=W.thumbnails;if(B){W={sources:[]};B=_.A(B);for(var z=B.next();!z.done;z=B.next()){z=z.value;var G={};G.url=z.url;G.width=z.width;G.height=z.height;W.sources.push(G)}return W}};
u_u=function(W,B,z,G){if(!B)return W.length>=1?W[W.length-1]:null;if(G)for(var Y=_.A(W),d=Y.next();!d.done;d=Y.next()){d=d.value;var E=void 0,v=(E=d.url)==null?void 0:E.indexOf(G);if(v!==void 0&&v>=0)return d}G=_.A(W);for(Y=G.next();!Y.done;Y=G.next())if(Y=Y.value,Y.width&&Y.height&&(z&&Y.width>=B||!z&&Y.height>=B))return Y;for(B=W.length-1;B>=0;B--)if(z&&W[B].width||!z&&W[B].height)return W[B];return W[0]};
_.eGx=function(W){var B;return(W=(B=W.sources)==null?void 0:B[0])?W.width/W.height:0};
_.m3X=function(W){if(W.sources){W=_.A(W.sources);for(var B=W.next();!B.done;B=W.next()){B=B.value;var z=void 0;if((z=B.clientResource)==null?0:z.imageName)return B}}};
x3T=function(W){var B;if((B=W.clientResource)!=null&&B.imageColor)return _.aE(W.clientResource.imageColor)};
_.Q20=function(W,B,z,G,Y,d,E){if(!B||B.length===0||B[0].clientResource)return null;if(z&&B[0].url)return B[0].url;G===void 0&&(G=!0);if(G){var v;W=D3v*(Y||(W==null?void 0:(v=W.getBoundingClientRect())==null?void 0:v.width)||0)}else{var c;W=D3v*(d||(W==null?void 0:(c=W.getBoundingClientRect())==null?void 0:c.height)||0)}B=u_u(B,W,G,E);return(B==null?0:B.url)?B.url:(B==null?0:B.imageData)?B.imageData:null};
yct=function(W,B,z){z=z?[z]:[];W.opacity&&z.push("opacity: "+W.opacity+";");B&&W.placeholderColor?(W=_.aE(W.placeholderColor),z.push("background-color: "+W+";")):z.push("background-color: transparent;");return z.join(" ")};
q1Q=function(W,B,z,G,Y){var d=["ytCoreImageHost"];B&&d.push(B);z||d.push("ytCoreImageFillParentHeight");G||d.push("ytCoreImageFillParentWidth");switch(W.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":d.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":d.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":d.push("ytCoreImageContentModeCenter");break;default:d.push("ytCoreImageContentModeScaleToFill")}W.flipForRtlLayout&&d.push("ytCoreImageFlipRtl");
switch(Y){case "TOP_START":var E;d.push(((E=document.body)==null?void 0:E.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return d.join(" ")};
NZ0=function(W){var B;if(W==null?0:(B=W.clientResource)==null?0:B.imageName){var z;W=(z=W.clientResource)==null?void 0:z.imageName;a:{switch(W){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":z="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":z="yt-logos-ext:yt-logo-updated";break a}z=void 0}return z||npt.get(W)||W}};
U3u=function(W){return _.r("mweb_wiz_skip_render")?$3x(W):Llt(W)};
$3x=function(W){return function(B){var z=KzD("wink-root");e2x();uQ2();Th0(z,_.w(W,B))}};
Llt=function(W){var B=B===void 0?!1:B;return function(z){if(!B||!_.r("mweb_skip_keto_to_c3_if_no_data")||z.data!==void 0){var G=ik(!1);try{var Y=z.children;_.r("mweb_render_outside_patch_killswitch")||nR?Y?W_(_.w(W,z,Y)):W_(_.w(W,z)):_.Oc(new _.oX("ketoToC3 called outside of a patch",{tagName:W.TAG_NAME}))}finally{ik(G)}}}};
M5R=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
RGQ=function(W,B){W.onViewportEntered=B;aXD.observe(W)};
W$R=function(){var W={rootMargin:"10%",threshold:.01};_.r("mweb_enable_set_io_root_to_null_safari")?W.root=null:_.r("mweb_enable_set_io_root_to_body_safari")&&(W.root=document.body);return new IntersectionObserver(function(B,z){B.filter(function(G){return G.intersectionRect.height>0}).forEach(function(G){G=G.target;
if(!_.r("mweb_enable_only_update_image_when_connected")||G.isConnected!==!1){var Y;(Y=G.onViewportEntered)==null||Y.call(G);z.unobserve(G)}})},W)};
BtR=function(W,B,z,G,Y){function d(){if(G){var v=G.loadedClass,c=G.notifyOnUnloaded;v&&_.AY(W,v);c&&W.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function E(){var v=z(B,W);v&&W.getAttribute("src")!==v&&(_.r("mweb_enable_only_update_image_when_connected")&&W.isConnected===!1||v===W.src||(W.src=v),d())}
Y=Y===void 0?!0:Y;W.removeAttribute("src");d();B&&(Y?RGQ(W,E):E())};
zw8=function(W,B,z){if(!B)return!1;B=z(B,W);z=W.getAttribute("src");return B&&B===z&&W.complete};
GvQ=function(W,B){for(var z in B)z==="className"?W.className=B[z]:(B_[z]||B_[DI.default])(W,z,B[z])};
Yu2=function(W,B,z,G){U3u(_.iF)({contentMode:B.contentMode,loadedClass:B.loadedClass,isPreloaded:B.isPreloaded,notifyOnLoaded:B.notifyOnLoaded,notifyOnUnloaded:B.notifyOnUnloaded,preferredThumbnail:B.preferredThumbnail,preserveHeight:B.preserveHeight,preserveWidth:B.preserveWidth,objectPosition:B.objectPosition,targetWidth:B.targetWidth,targetHeight:B.targetHeight,shouldShowPlaceholder:B.shouldShowPlaceholder,useWidth:B.useWidth,isToggled:B.isToggled,alt:B.alt,className:B.className,onerror:B.onerror,
onload:B.onload,style$:B.style$,color:B.color,width:B.width,height:B.height,"aria-hidden$":B["aria-hidden$"],draggable:B.draggable,"data-disabled$":B["data-disabled$"],data:W,callback:z,renderLazy:G===void 0?!0:G,hideOn404:!1})};
pLR=function(W,B,z){z=z===void 0?!1:z;var G=W.sources!==void 0?W:_.Kl0(W);if(G){var Y=B.onload;B.onload=function(c){var J=c.target;z&&J.naturalWidth===120||_.Ev(J,"ytCoreImageLoaded");B.notifyOnLoaded&&J.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));Y==null||Y(c)};
B.targetWidth&&B.preserveWidth&&(B.width=B.targetWidth);B.targetHeight&&B.preserveHeight&&(B.height=B.targetHeight);var d=_.m3X(G),E=d&&NZ0(d);if(E)return(W=x3T(d))&&(B.color=W),{type:"icon",iconName:E,config:Object.assign({},B,B.alt?{}:{"aria-hidden$":"true"},{"aria-label$":B.alt,role:"img"})};if(W.sources===void 0){B.alt=W.accessibility&&W.accessibility.accessibilityData&&W.accessibility.accessibilityData.label||B.alt;B.style$=yct(W,B.shouldShowPlaceholder,B.style$);var v;B.isPreloaded=!((v=_.k(W,
dSu))==null||!v.isPreloaded)}B.contentMode&&!G.contentMode&&(G.contentMode=B.contentMode);B.className=q1Q(G,B.className,B.preserveHeight,B.preserveWidth,B.objectPosition);B.loadedClass="ytCoreImageLoaded";return{type:"image",image:G,config:B}}};
_.TG=function(){var W=_.nm.apply(0,arguments);return _.ag(Aik,function(B){var z=W.map(function(G){return G==null?void 0:G(B)});
return function(){return void z.forEach(function(G){return void(G==null?void 0:G())})}})};
v2=function(W,B){var z=B==null?void 0:B.initial;return _.r4(function(){_.XA(!0);return z=W(z)},{equals:B==null?void 0:B.isEqual},"rSlKsc")};
ick=function(W,B){if(W===B)return!0;if(W===void 0||B===void 0)return!1;var z,G,Y,d,E,v,c,J;return W.content===B.content&&((z=W.styleRuns)==null?void 0:z.length)===((G=B.styleRuns)==null?void 0:G.length)&&((Y=W.commandRuns)==null?void 0:Y.length)===((d=B.commandRuns)==null?void 0:d.length)&&((E=W.attachmentRuns)==null?void 0:E.length)===((v=B.attachmentRuns)==null?void 0:v.length)&&((c=W.decorationRuns)==null?void 0:c.length)===((J=B.decorationRuns)==null?void 0:J.length)};
vZ8=function(W,B){if(W){var z=hGX(W);if(z!=null&&z.content)if(_.r("attr_string_reactive"))U3u(EZR)({text:W,config:B});else{var G=!(B==null||!B.ariaLabel)||!(z.commandRuns&&z.commandRuns.length!==0||z.paragraphStyleRuns&&z.paragraphStyleRuns.length!==0);W=G?B==null?void 0:B.ariaLabel:null;G=G?"text":null;KSv("span",{className:ccy(z,B),dir$:(B==null?0:B.userInput)?"auto":void 0,"aria-label$":W,role$:G},function(){if(z.styleRuns||z.commandRuns||z.attachmentRuns||z.decorationRuns||z.paragraphStyleRuns){var Y=
opQ(z,B);Flx(Y,B);Y=X68(z.content,Y);Y=_.A(Y.parts);for(var d=Y.next();!d.done;d=Y.next())Tt0(d.value)}else nFr(z.content)})}}};
Tt0=function(W){typeof W==="string"?nFr(W):H00(W.data)?KSv("span",W.data.imageWrapperConfig,function(){Yu2(W.data.image,W.data.imageConfig)}):KSv(W.data.tag,W.data.config,function(B){S18(W.data)(B);
B=_.A(W.parts);for(var z=B.next();!z.done;z=B.next())Tt0(z.value)})};
wLQ=function(W){return W.parts.map(ciQ)};
ciQ=function(W){if(typeof W==="string")return W;W=H00(W.data)?_.w("span",{el:_.TG(b0x(W.data.imageWrapperConfig))},_.w(_.iF,Object.assign({},{data:W.data.image},W.data.imageConfig))):_.w(W.data.tag,{el:_.TG(S18(W.data),b0x(W.data.config))},W.parts.map(ciQ));return Z5(W)};
V2x=function(W,B){return W===B?!0:W===void 0||B===void 0?!1:W.noStyleRuns===B.noStyleRuns&&W.noLinkColor===B.noLinkColor&&W.noEndpoints===B.noEndpoints&&W.headerRuns===B.headerRuns&&W.isOverlay===B.isOverlay&&W.linkInheritColor===B.linkInheritColor&&W.userInput===B.userInput&&W.isHeadline===B.isHeadline};
Jiy=function(W){return function(){var B,z,G,Y,d,E,v,c,J,g,t,P,Z,l;return{ariaLabel:(B=W.ariaLabel)==null?void 0:B.call(W),className:(z=W.className)==null?void 0:z.call(W),ellipsisTruncate:(G=W.ellipsisTruncate)==null?void 0:G.call(W),isOverlay:(Y=W.isOverlay)==null?void 0:Y.call(W),linkInheritColor:(d=W.linkInheritColor)==null?void 0:d.call(W),noEndpoints:(E=W.noEndpoints)==null?void 0:E.call(W),noStyleRuns:(v=W.noStyleRuns)==null?void 0:v.call(W),noLinkColor:(c=W.noLinkColor)==null?void 0:c.call(W),
noPreWrap:(J=W.noPreWrap)==null?void 0:J.call(W),noWrap:(g=W.noWrap)==null?void 0:g.call(W),skipOnClick:(t=W.skipOnClick)==null?void 0:t.call(W),userInput:(P=W.userInput)==null?void 0:P.call(W),headerRuns:(Z=W.headerRuns)==null?void 0:Z.call(W),isHeadline:(l=W.isHeadline)==null?void 0:l.call(W)}}};
c2=function(W,B){W=new gZk(W,B);_.jy(W);throw W;};
t22=function(W,B,z){var G=FUR(W);W._numRenders=0;try{var Y=_.Fu8(function(){return _.w(B,Object.assign({},z))})}catch(E){var d=function(v){v.args||(v.args=[]);
v.args.push("Error in web component wrapper");v.args.push(W.tagName.toLowerCase());return v};
_.fG(E instanceof Error?d(E):new gZk("Wiz rendering error",W.tagName.toLowerCase()));throw E;}finally{FUR(G)}return Y};
_.Vm=function(W,B,z){function G(g){var t={};g=_.A(g);for(var P=g.next();!P.done;P=g.next()){P=P.value;var Z=void 0,l=void 0,b=void 0,O=_.ly((b=(l=(Z=P).getAttribute)==null?void 0:l.call(Z,"slot"))!=null?b:"children");if(Z=t[O])Z.push(P);else if(O in d||O==="children")t[O]=[P]}g=_.A(Object.keys(t));O=g.next();for(P={};!O.done;P={content$jscomp$57:void 0},O=g.next())O=O.value,O!=="children"&&(P.content$jscomp$57=t[O],t[O]=function(K){return function(){return K.content$jscomp$57}}(P));
return t}
z=z===void 0?{}:z;W.componentType!==H5||c2("Components must be marked reactive to be used from web component wrapper.",B);JV.has(B)&&c2("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",B);var Y,d=(Y=z.props)!=null?Y:{};tV.add(B);var E=sVy();Y=function(){var g=E.apply(this,arguments)||this;g.rawProps={};g.queuingRender=!1;g.dispose=function(){};
g.isWebComponentWrapper=!0;g.isReparenting=!1;g.hasRendered=!1;return g};
_.C(Y,E);Y.prototype.render=function(){this.hasRendered=!0;for(var g=_.A([].concat(_.u7(this.attributes))),t=g.next();!t.done;t=g.next())t=t.value,t.name!=="slot"&&t.name!=="hidden"&&this.removeAttribute(t.name);g=Object.assign({},this.componentProps,this.slotProps);t=_.A(t22(this,W,g));g=t.next().value;t=t.next().value;!(g[0]instanceof Element)||g.length>1?c2("Wrapped Wiz components must return a single root element.",B):(g=g[0].tagName.toLowerCase(),g!==B&&c2("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(g+" !== '"+B),B),this.dispose=t)};
Y.prototype.setUpProps=function(){for(var g=this.rawProps,t=this.attributes,P=_.A(Object.keys(d)),Z=P.next();!Z.done;Z=P.next()){Z=Z.value;var l=void 0;((l=this)==null?0:l[Z])&&this[Z]!==PXX&&g[Z]===void 0&&(g[Z]=this[Z],(l=Object.getOwnPropertyDescriptor(this.constructor.prototype,Z))&&Object.defineProperty(this,Z,l))}P=_.A(t);for(Z=P.next();!Z.done;Z=P.next()){l=Z.value;Z=_.ly(l.name);var b=Z==="class"&&!t.getNamedItem("class-name");if(Z in d||b)l=l.value===""||l.value==="true"?!0:l.value==="false"?
!1:isNaN(Number(l.value))?l.value:Number(l.value),Z!=="class"||g.className?g[Z]=l:g.className=l}t={};for(var O in d)d[O]!==_.wS&&d[O]!==Zck&&(g[O]instanceof Function&&c2("Function props must be configured as STATIC, not SIGNAL.",B),Z=_.A(_.g4(g[O],void 0,"Ri8MSe")),P=Z.next().value,Z=Z.next().value,t[O]=Z,g[O]=P);g=_.A([g,t]);this.componentProps=g.next().value;this.setters=g.next().value;this.slotProps=G(this.childNodes)};
Y.prototype.connectedCallback=function(){riT===B&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in d&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
Y.prototype.disconnectedCallback=function(){if(!this._isInert){var g;a:{if(_.kv8)for(g=this;g;){if(_.luv.has(g)){g=!0;break a}g=g.parentElement}g=!1}if(g)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){g=_.A([].concat(_.u7(this.attributes)));for(var t=g.next();!t.done;t=g.next()){t=t.value;var P=void 0;t.name==="slot"||t.name==="hidden"&&((P=z.unsafeExternallySettableAttributes)==null?0:P.has("hidden"))||this.removeAttribute(t.name)}}this.innerText="";kQX(this)}}};
Y.prototype._setPendingPropertyOrPath=function(){};
Y.prototype.notifyPath=function(){};
_.G5.Object.defineProperties(Y.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var v=_.A(Object.keys(d)),c=v.next(),J={};!c.done;J={prop$jscomp$105:void 0},c=v.next())J.prop$jscomp$105=c.value,c=void 0,((c=z.legacyPolymer)==null?0:c.forwardHostProps)&&Zqr.has(J.prop$jscomp$105)||Object.defineProperty(Y.prototype,J.prop$jscomp$105,{set:function(g){return function(t){var P=this;this._isInert||(this.setters?k$(function(){var Z,l;return void((l=(Z=P.setters)[g.prop$jscomp$105])==null?void 0:l.call(Z,t))}):(this.rawProps[g.prop$jscomp$105]=t,this.queuingRender&&g.prop$jscomp$105===
"data"&&t!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(J),
get:CX2.has(J.prop$jscomp$105)?void 0:function(){return PXX}});
customElements.define(B,Y)};
_.IuD=function(W,B){return(W=_.JY(W,B))?_.mF(_.yN(W)):null};
_.gS=function(W){if(W=_.JY(W,Number.MAX_VALUE,void 0,"width"))return _.yN(W)};
_.JY=function(W,B,z,G){G=G===void 0?"width":G;if(!W||!W.length)return null;if(_.r("kevlar_tuner_should_always_use_device_pixel_ratio")){var Y=window.devicePixelRatio;_.r("kevlar_tuner_should_clamp_device_pixel_ratio")?Y=Math.min(Y,_.iO("kevlar_tuner_clamp_device_pixel_ratio")):_.r("kevlar_tuner_should_use_thumbnail_factor")&&(Y=_.iO("kevlar_tuner_thumbnail_factor"));oZ2=Y}else oZ2||(oZ2=window.devicePixelRatio);Y=oZ2;_.r("kevlar_tuner_should_always_use_device_pixel_ratio")?B*=Y:Y>1&&(B*=Y);if(_.r("kevlar_tuner_min_thumbnail_quality"))return W[0].url||
null;Y=W.length;if(_.r("kevlar_tuner_max_thumbnail_quality"))return W[Y-1].url||null;if(z)for(var d=0;d<Y;d++)if(W[d].url.indexOf(z)>=0)return W[d].url||null;for(z=0;z<Y;z++)if(W[z][G]>=B)return W[z].url||null;for(B=Y-1;B>0;B--)if(W[B][G])return W[B].url||null;return W[0].url||null};
F$x=function(){tY.size?setTimeout(function(){sv(hwX)},0):Hcu=0};
hwX=function(){var W=(0,_.Yb)(),B=null,z=!1;tY.forEach(function(Y){Y.loaded=!0;Y.loadTime=W;Y.pendingPaint=!1;var d=Sux.get(Y);d&&d.resolve(W);B=Y;z||!Y.ftlEligible&&Y.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(z=!0)});
var G;((G=B)==null?0:G.markDirty)&&B.markDirty();tY.clear();Hcu=0;z&&bcr(W)};
jVv=function(W){tY.add(W);W.pendingPaint=!0;Hcu||(Hcu=_.P2(_.fg,F$x))};
fut=function(W){W.loaded=!1;W.loadTime=Infinity;var B=Sux.get(W);B&&(B.reject(Error("rh")),Sux.delete(W));W.pendingPaint&&(tY.delete(W),W.pendingPaint=!1)};
_.OcT=function(W){var B=W.indexOf(":");return B===-1?{originalName:W}:{originalName:W.substring(0,B),datasyncId:W.substring(B+1)}};
_.K$R=function(){return _.T(function(W){if(XLr!==void 0)return W.return(XLr);XLr=new Promise(function(B){var z;return _.T(function(G){switch(G.nextAddress){case 1:return _.kA(G,2),G.yield(_.ZN.open("test-only"),4);case 4:return G.yield(_.ZN.delete("test-only"),5);case 5:_.Nn(G,3);break;case 2:if(z=_.h6(G),z instanceof Error&&z.name==="SecurityError")return B(!1),G.return();case 3:B("caches"in window),_.HG(G)}})});
return W.return(XLr)})};
mSR=function(){return _.T(function(W){if(W.nextAddress==1)return W.yield(_.K$R(),2);if(!W.yieldResult)return W.return(void 0);uaQ||(uaQ=new ewu);return W.return(uaQ)})};
xSQ=function(W){var B,z,G,Y;return _.T(function(d){switch(d.nextAddress){case 1:return d.yield(mSR(),2);case 2:B=d.yieldResult;if(!B)throw Error("th");return d.yield(B.open("yt-player-local-img"),3);case 3:return z=d.yieldResult,d.yield(z.match(W),4);case 4:G=d.yieldResult;if(!G)throw Error("uh");return d.yield(G.blob(),5);case 5:return Y=d.yieldResult,d.return(Y)}})};
DSR=function(W,B){for(var z in W)if(W.hasOwnProperty(z)&&B[z])return z;return null};
QV2=function(W){return"stamp"+W.replace("-","_")+"_"};
yiu=function(W){var B=W.match(/\[\[([\w\.]+)\]\]/);if(B&&B.length>1)return B[1];_.jy(Error("wh`"+W));return null};
quR=function(W){return W===void 0?_.md("REUSE_COMPONENTS",!1):W||!1};
$SD=function(W,B,z){z&&(B.is?(nZ2.has(B)&&(W=nZ2.get(B),z=W.listener,delete B[W.property],z.type==="element"&&B.removeEventListener(z.eventName,z.handler),nZ2.delete(B)),Nt8(B)):B.__proto__==HTMLElement.prototype&&(B=new _.oX("Rendererstamper removed a non custom element","Stamper: "+W+" element: "+(B&&B.nodeName)),_.Oc(B)))};
L$t=function(W,B,z,G){var Y=B.node?B.node:B;_.tH(z).parentNode===Y&&(B.removeChild(z),$SD(W,z,G));if(W=rS.get(z))rS.delete(z),_.fg.cancelJob(W);z.hidden=!1};
US2=function(W,B,z,G){if(B&&B.children&&(z=B.children[z]))if(_.md("DEFERRED_DETACH"))for(;z&&!rS.has(z);){var Y=W,d=B,E=z,v=G;E.hidden=!0;Y=_.CG(_.fg,L$t.bind(null,Y,d,E,v),0);rS.set(E,Y);z=z.nextElementSibling}else for(;(E=B.lastElementChild)&&(B.removeChild(E),$SD(W,E,G),E!=z););};
_.kG=function(){for(var W=_.nm.apply(0,arguments),B=!0,z=_.A(W),G=z.next();!G.done;G=z.next())if(typeof G.value!=="string"){B=!1;break}return B?W.join(" ").trim()||void 0:function(){for(var Y="",d=_.A(W),E=d.next();!E.done;E=d.next())if(E=E.value,typeof E==="function"&&(E=E()),E)if(typeof E==="string")Y+=" "+E;else for(var v in E)if(E.hasOwnProperty(v)){var c=E[v];typeof c==="function"&&(c=c());c&&(Y+=" "+v)}Y=Y.trim()||void 0;return _.XA(Y)}};
auQ=function(W){var B;return(B=M2r[W])!=null?B:"EVENT_SPAN_TYPE_UNKNOWN"};
RwR=function(W){var B=W.nodeName;if(W.id)return B+="#"+W.id;if(W.classList)for(var z=_.A(W.classList),G=z.next();!G.done;G=z.next())B+="."+G.value;W.parentElement&&(B=RwR(W.parentElement)+" > "+B);return B};
WMy=function(W){return function(B){var z=auQ(B.type);return z==="EVENT_SPAN_TYPE_UNKNOWN"?W(B):GaQ("event",{type:z,nodepath:B.target instanceof Element?RwR(B.target):void 0},function(){return W(B)})}};
_.lF=function(W){W&&BET("event")&&(W=WMy(W));return pk2(function(B){var z,G=(z=W)==null?void 0:z(B);return typeof G==="boolean"?G:!0})};
Cy=function(W){return function(){return W()?W():void 0}};
YBR=function(W){var B=_.LG("animated-rolling-character"),z=kyQ(),G=zy(W.character)||zy(W.previousCharacter);vqu(function(){if(W.marginMultiplier){var Y;(Y=z.value)==null||Y.cancel();G?(Y=W.previousCharacter?Number(W.previousCharacter)+10:W.rollUp?0:30,W.shouldAnimate||(Y-=Blv(W,Y))):(Y=W.rollUp?0:2,W.shouldAnimate||(Y-=W.rollUp?-1:1));B.value.style.marginTop="-"+Y*W.marginMultiplier+"px";W.shouldAnimate?z.value=zyv(B.value,W,Y,G):B.value.style.display=W.character?"":"none"}});
return _.w("animated-rolling-character",{el:B,class:"animatedRollingCharacterHost"},rDy(G,function(){for(var Y=[],d=1;d<30;d++)Y.push(_.w("div",null,d%10));return _.w(_.AW,null,_.w("div",null,"\u00a0"),Y,_.w("div",null,"\u00a0"))},function(){return G7Q(W.character)}))};
G7Q=function(W){return _.w(_.AW,null,_.w("div",null,"\u00a0"),_.w(_.AW,null,rDy(!W||_.TT(W),function(){return _.w("div",null,"\u00a0")},function(){return _.w("div",null,W)})),_.w("div",null,"\u00a0"))};
zyv=function(W,B,z,G){z=new Animation(new KeyframeEffect(W,[{transform:"translateY(0px)"},{transform:"translateY("+(G?Blv(B,z):B.rollUp?-1:1)*B.marginMultiplier+"px)"}],dux),document.timeline);B.character?(W.style.display="",z.onfinish=null):z.onfinish=function(){W.style.display="none"};
z.play();return z};
Blv=function(W,B){var z=Number(W.character)+10;if(W.previousCharacter)if(W.character){var G=Number(W.character),Y=Number(W.previousCharacter);W=W.rollUp?Y<G?z:z+10:Y<G?z-10:z}else W=W.rollUp?30:0;else W=W.character==="0"?z:W.rollUp?z-10:z+10;return B-W};
pIt=function(W){return function(B){var z={},G;for(G in B){var Y=void 0,d=void 0;((Y=void 0)==null?0:(d=Y.callbacks)==null?0:d[G])||(z[G]=B[G])}return _.w(HkD,null,function(){for(var E in z)B[E]=_.XA(z[E]);B.disableReactiveLogging=!0;return _.w(W,Object.assign({},B))})}};
Eau=function(W,B,z,G,Y,d,E){z=new Animation(new KeyframeEffect(W,[{transform:"translateY(0px)"},{transform:"translateY("+(d?AND(B,z,G,Y):G?-1:1)*E+"px)"}],iZx),document.timeline);B?(W.style.display="",z.onfinish=null):z.onfinish=function(){W.style.display="none"};
z.play();return z};
AND=function(W,B,z,G){var Y=Number(W)+10;B?W?(W=Number(W),B=Number(B),z=z?B<W?Y:Y+10:B<W?Y-10:Y):z=z?30:0:z=W==="0"?Y:z?Y-10:Y+10;return G-z};
vat=function(W){var B=kyQ(),z=kyQ();t48(function(){B.value=W.numberText;z.value=W.numberValue},[W.numberText]);
var G=W.fontSizeMultiplier?W.heightPx*W.fontSizeMultiplier:W.heightPx,Y=rry(function(){if(W.numberText){var E=W.numberText;var v=W.forceRollUp||!z.value||!W.numberValue||z.value<W.numberValue;var c=!!W.shouldAnimate,J=B.value,g=[],t=0,P=0,Z=(J?J.replace(/\D/g,"").length:0)-(E?E.replace(/\D/g,"").length:0);J=J?J.split(/(\d)/).filter(Boolean):[];for(E=E.split(/(\d)/).filter(Boolean);Z<0;){var l=E[P];g.push({character:l,rollUp:v,marginMultiplier:G,shouldAnimate:c});P++;zy(l)&&Z++}for(;t<Z;)l=J[t],g.push({previousCharacter:l,
rollUp:v,marginMultiplier:G,shouldAnimate:c}),t++,zy(l)||Z++;for(;P<E.length;)Z=E[P],l=J[t],zy(Z)===zy(l)?(P++,t++):zy(Z)?(t++,Z=void 0):zy(l)&&(P++,l=void 0),g.push({character:Z,previousCharacter:l,rollUp:v,marginMultiplier:G,shouldAnimate:c});v=g}else v=[];return v},[W.numberText]),d=W.numberText?["height: "+G+"px;",
"line-height: "+W.heightPx+"px;"].join(" "):"";return _.w("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:d,dir:"ltr","aria-hidden":"true"},Y.map(function(E){return _.w(Tl0,Object.assign({},E))}))};
cNT=function(W){switch(W){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
wIv=function(W,B){if(!W&&!B)return"medium";W=Math.max(W||0,B||0);return W>=256?"large":W>=96?"medium":"small"};
VeX=function(W){switch(W){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
JNx=function(W){return new KeyframeEffect(W,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
gat=function(W){return new KeyframeEffect(W,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.IK=function(W){var B=v2(function(z){z=z?Jy(z[0]):void 0;return _.g4(W(z),void 0,"AwTxXe")},{isEqual:function(z,G){return Jy(z[0])===Jy(G[0])}});
return[function(){return B()[0]()},
function(z){return void B()[1](z)}]};
_.oK=function(W){return function(){var B="",z;for(z in W){for(var G=W[z];typeof G==="function";)G=G();G!==void 0&&G!==null&&(B+="; "+z+": "+G)}return B.length>0?_.XA(B.slice(2)):_.XA()}};
tey=function(W){switch(W){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"}};
scR=function(W,B){if(B)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(W)switch(W){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
lft=function(W,B,z,G,Y,d,E){var v=P8X(W),c=v.disabled,J=v.iconPosition,g=v.style,t=v.focused,P=function(){return!!b()&&J()==="icon-only"},Z=function(){return!!b()&&J()==="icon-only-40"},l=function(){return!!b()&&J()==="icon-with-label"},b=function(){return!!B||!(G==null||!G())};
return{type:function(){return g()==="call-to-action-inverse"?"text":g()==="overlay-dark"&&W().type!=="filled"&&W().type!=="tonal"?"tonal":W().type},
shouldFocus:function(){return(t()||(d==null?void 0:d()))&&!c()},
hasIconLeading:function(){return!!b()&&J()==="leading"},
hasIconTrailing:function(){return!!b()&&J()==="trailing"},
hasIconLeadingTrailing:function(){return!!b()&&!!(z||Y!=null&&Y())&&J()==="leading-trailing"},
hasIconOnly:P,hasIconOnly40:Z,hasIconWithLabel:l,iconButton:function(){return P()||Z()||l()},
visiblyDisabled:function(){return(c()?"disabled":W().state)==="disabled"||c()},
overrideSmallSizeIcon:function(){return!W().ignoreIconSizeOverride&&ZZk(W(),b())},
iconToRender:B?B:function(){return _.w(_.hY,{icon:G,size:function(){return rNx(W(),!0,W().ignoreIconSizeOverride)},
active:function(){return W().toggled},
iconFilter:function(){return k7k(W())},
animateIcon:E})},
secondaryIconToRender:z?z:function(){return _.w(_.hY,{icon:Y,size:function(){return rNx(W(),!0,W().ignoreIconSizeOverride)},
active:function(){return W().toggled},
iconFilter:function(){return k7k(W())}})}}};
P8X=function(W){return{size:function(){return W().size},
style:function(){return W().style},
focused:function(){return W().focused},
disabled:function(){return W().disabled},
onTap:function(B){var z,G;return(G=(z=W()).onTap)==null?void 0:G.call(z,B)},
alignByText:function(){return W().alignByText},
aTagConfig:function(){return W().aTagConfig},
customColors:function(){return W().customColors},
segmentedPosition:function(){return W().segmentedPosition},
toggled:function(){return W().toggled},
toggleable:function(){return W().toggleable},
accessibilityLabel:function(){return W().accessibilityLabel},
onToggle:function(B){var z,G;return(G=(z=W()).onToggle)==null?void 0:G.call(z,B)},
iconPosition:function(){return W().iconPosition},
oneOffCustomTextWrap:function(){return W().oneOffCustomTextWrap},
disableTextEllipsis:function(){return W().disableTextEllipsis},
disableBackdropFilter:function(){return W().disableBackdropFilter},
tooltipText:function(){return W().tooltipText},
ariaHidden:function(){return W().ariaHidden},
tabIndex:function(){return W().tabIndex},
buttonText:function(){return W().buttonText},
formattedButtonText:function(){return W().formattedButtonText},
animatedTextProps:function(){return W().animatedTextProps}}};
ZZk=function(W,B){B=(W.iconPosition==="icon-only"||W.iconPosition==="icon-only-40"||W.iconPosition==="icon-with-label")&&B;return!W.segmentedPosition&&B&&W.size==="S"};
rNx=function(W,B,z){switch(W.size){case "XS":return 16;case "S":return!z&&ZZk(W,B)?24:16;default:return 24}};
C8T=function(W){switch(W){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"}};
IfQ=function(W){switch(W){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"}};
oau=function(W){switch(W){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"}};
k7k=function(W){if(W.style==="overlay-dark"&&W.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
H2=function(W){return W&&W.endsWith("px")?Number(W.slice(0,-2)):0};
FMX=function(W){var B=B===void 0?{}:B;W=_.A(_.IK(W));var z=W.next().value;return[function(G){var Y=_.r4(function(){var v,c,J,g;return{text:(v=z())!=null?v:"",location:(c=B.location)!=null?c:"bottom",offset:(J=B.offset)!=null?J:16,delay:(g=B.delay)!=null?g:1}},void 0,"MgTrkc");
_.ja(function(){var v=Y();Jy(function(){_.fg.addJob(function(){Fm.notify(G,v)},4)})},"WlsgZc");
var d=function(){hy0(G,Y())},E=function(){HZ2()};
G.addEventListener("mouseenter",d);G.addEventListener("focus",d);G.addEventListener("mouseleave",E);G.addEventListener("blur",E);G.addEventListener("tap",E);_.fR(function(){G.removeEventListener("mouseenter",d);G.removeEventListener("mouseleave",E);G.removeEventListener("focus",d);G.removeEventListener("blur",E);G.removeEventListener("tap",E);HZ2()})},
W.next().value]};
bZX=function(W,B){if(!Gt){var z;vF8(function(){return z=olX(W,B)});
return z}W.parent=SBt();return olX(W,B)};
SBt=function(){var W=_.d4(Gt||void 0,lKk);return _.I_X(W)?void 0:W};
SX=function(W,B){_.L8(W,Object.assign({},B,{forceClickLogging:!0}))};
ffQ=function(W,B){var z=_.$B(W==null?void 0:W.onTap),G={};z&&(G.getClickedVisualElement=function(){var Y;return jc0(W,z,B==null?void 0:(Y=B.value)==null?void 0:Y.visualElement)});
G=_.UV({elementsCommand:W.onTap,forceNewState:!0,additionalCommandArgs:G});return MH(G)?G:void 0};
OZR=function(W,B,z,G){SX(W,Object.assign({},{form:{element:B,event:z}},G))};
XIy=function(W,B,z,G,Y){var d=void 0;return function(E){var v=_.$B(z?W==null?void 0:W.onDisabledTap:W==null?void 0:W.onTap);if(v){var c;d=(c=d)!=null?c:B==null?void 0:B.value;if(v)if(_.r("web_button_vm_click_client_ve_killswitch"))OZR(v,d,E);else{var J;c=jc0(W,v,(J=d)==null?void 0:J.visualElement);if(Y){OZR(v,Y,E,{clickedVisualElement:c,form:{element:Y}});return}OZR(v,d,E,{clickedVisualElement:c})}}G&&G(E)}};
jc0=function(W,B,z){B=B==null?void 0:B.clickTrackingParams;var G,Y;W=W==null?void 0:(G=W.loggingDirectives)==null?void 0:(Y=G.clientVeSpec)==null?void 0:Y.uiType;if(z&&W&&!B)return z};
KMX=function(W){switch(W){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"}};
u9Q=function(W){switch(W){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"}};
eyR=function(W){switch(W){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"}};
muD=function(W){switch(W){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"}};
xuR=function(W,B){return _.P3(W.entities,"engagementToolbarStateEntityPayload",B)};
QcT=function(W){(W=_.XF(W))&&_.Du2(W)};
_.Du2=function(W){var B=_.m1();B&&_.U2(B,W)};
yNQ=function(W,B,z){_.c0(W,"yt-open-popup-action",[B,z||W])};
qB0=function(W,B){var z=_.Ow(W,"endpoint"),G=_.Ow(W,"action");return(z=G?G:z)&&B&&(z=B.navigationEndpointPopupMap[z])&&(W=_.q6(z,W),(z=_.Ow(W,"renderer"))&&B.supportedPopups.hasOwnProperty(z))?{openPopupAction:{popupType:B.popupTypeMap[z],popup:W}}:null};
naR=function(W,B,z,G){if(G){var Y;z=z==null?void 0:(Y=z.data)==null?void 0:Y.contents;(Y=z instanceof Array&&z.length?z[0]:z)&&(z=_.Ow(Y,"renderer"))&&G.supportedPopups.hasOwnProperty(z)&&(B.stopPropagation(),yNQ(W,{openPopupAction:{popupType:G.popupTypeMap[z],popup:Y}}))}};
LMX=function(W,B,z,G){G=G===void 0?!1:G;var Y=Nl2(B);if(Y){Y.href&&Bf(Y.href);var d=B.button;d=d!==void 0?d===0&&!bF(B):!bF(B);Y.data&&d&&$u2(W,Y,B,z,G)}};
$u2=function(W,B,z,G,Y){Y=Y===void 0?!1:Y;var d=_.iO("pbj_navigate_limit",-1)===0;Uu2(B);_.dO().resolve(_.Y8(xE));var E=B.data;if(Object.keys(E).length!==0)if(!_.r("unplugged_web_disable_actions_for_cec_endpoint")&&_.k(E,_.tr))_.r("endpoint_behavior_command_executor_fix_killswitch")||(z.preventDefault(),z.stopPropagation()),_.Jr(W,[E],W);else if(G=qB0(E,G))E.loggingUrls&&E.loggingUrls.forEach(function(c){c.baseUrl&&_.ys(c.baseUrl)}),z.preventDefault(),z.stopPropagation(),yNQ(W,G,B);
else{var v=MeQ(0,B.data,z);if(W=B.getForm)W=W(),v.tempData=v.tempData||{},v.tempData=Object.assign({},v.tempData,W);W=_.AH(z);if(G=W.find(function(c){return!!c.visualElement}))v.createScreenConfig=v.createScreenConfig||{},v.createScreenConfig.clickedVisualElement=G.visualElement;
if(!d)if(z.preventDefault(),z.stopPropagation(),_.k(E,_.afu)&&!Y&&_.IB.instance)_.IB.instance.resolveCommand(E,v);else if(_.r("kevlar_command_handler_formatted_string")&&!Y&&_.IB.instance&&Ry0(E))Y=W.find(function(c){return!!c.is})||z.target,z={form:Object.assign({},v,{event:z,
element:Y,originatingNode:B})},_.IB.instance.resolveCommand(E,z);else{E=_.AH(z);z=[];for(Y=0;Y<E.length;Y++)(d=E[Y].is)&&z.push(d);Qn2({parents:z.join(","),text:B.innerText},function(){_.v0(B,"yt-navigate",v)})}}};
Wiy=function(W){if(W=Nl2(W))Uu2(W),qn0(W.href)};
Nl2=function(W){W=_.AH(W);for(var B,z=0;z<W.length;z++)if(B=W[z],B.tagName==="A"&&B.classList.contains("yt-simple-endpoint")){if(!B.data)break;return B}return null};
bF=function(W){return W.shiftKey||W.altKey||W.metaKey||W.ctrlKey};
BBu=function(W,B){var z={itct:B.clickTrackingParams};_.r("kevlar_client_side_screens")&&(!_.k(B,_.SW)||_.r("kevlar_exclude_endpoint_killswitch"))&&(z.endpoint=JSON.stringify(B));_.r("enable_unknown_lact_fix_on_html5")&&_.dO().resolve(_.Y8(_.jX))&&(z.lact=_.Gi());DVR(z);_.Yq(W,z)};
Uu2=function(W){W.href&&Object.keys(W.data).length!==0&&BBu(W.href,W.data)};
Ry0=function(W){for(var B=_.A(zc8),z=B.next();!z.done;z=B.next())if(W[z.value])return!1;return!0};
_.GOT=function(W,B){return _.P3(W.entities,"markersEngagementPanelSyncEntity",B)};
Y9r=function(W,B){return _.P3(W.entities,"fantasyWinProbabilityEntity",B)};
dvR=function(W,B){return _.P3(W.entities,"fantasyTeamEntity",B)};
p9x=function(W,B){return _.P3(W.entities,"fantasyPlayerEntity",B)};
AO8=function(W,B){return _.P3(W.entities,"booleanEntity",B)};
izr=function(W,B){return _.P3(W.entities,"qrCodeEntity",B)};
EoR=function(W){return _.P3(W.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
TBx=function(){if(fy)return fy;if(window.lottie)return fy=Promise.resolve(window.lottie);var W=_.OE(_.eD("LOTTIE_URL"));return W?fy=new Promise(function(B,z){var G=document.createElement("script");G.addEventListener("load",function(){B(lottie)});
G.addEventListener("error",function(Y){var d="Lottie library failed to load.";Y?Y.message&&(d+=" Original description: "+Y.message,_.XC(Y,d)):Y=Error(d);_.Oc(Y);z(Y)});
G.setAttribute("async","");_.pN(G,W);document.head.appendChild(G)}):Promise.reject(Error("xh"))};
voR=function(){return fy?fy:TBx()};
cOX=function(W){if(W)switch(W){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.r("kevlar_use_wil_icons"))return W=(W=EoR(_.Y_().getState()))&&W.animationLightUrl&&W.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:W.animationLightUrl,pathDarkTheme:W.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,W?W:Ov.get("LIKE");break;case "LIKE_DELHI_PLAYER":return Ov.get("LIKE_DELHI_PLAYER")}};
w9R=function(W){var B=cOX(W);if(B)return B;switch(W){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Ov.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Ov.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Ov.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Ov.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Ov.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Ov.get("NOTIFICATION_BELL")}};
VIR=function(W,B){if(!W.closest)return!1;B=!!cOX(B);return _.eD("ID_TOKEN")&&B?!!W.closest("segmented-like-dislike-button-view-model")||!!W.closest("yt-player-quick-action-buttons"):!1};
go2=function(W,B){if(!W||JOX)B=!1;else{var z;if(!(z=VIR(W,B)))if(W.closest)if(z=!_.eD("ID_TOKEN"),W=W.closest("ytd-subscription-notification-toggle-button-renderer-next"),z||!W)z=!1;else{var G;z=((G=W.data)==null?void 0:G.targetId)==="notification-bell"&&B!=="EXPAND_MORE"}else z=!1;B=z}return B};
tIu=function(W){var B,z;return _.T(function(G){switch(G.nextAddress){case 1:return _.kA(G,2),G.yield(fetch(W),4);case 4:return B=G.yieldResult,G.yield(B.json(),5);case 5:return G.return(G.yieldResult);case 2:z=_.h6(G),_.Oc(z),_.HG(G)}})};
svt=function(W,B){var z,G,Y;return _.T(function(d){if(d.nextAddress==1)return(z=B?W.pathDarkTheme:W.path)?d.yield(Promise.all([tIu(z),TBx()]),2):d.return();G=d.yieldResult;Y=G[0];Xm.set(z,Y);_.HG(d)})};
ZzR=function(W,B,z,G){function Y(E,v){if(B.value===v&&!B.cancelled&&W!=null&&W.value){for(;W.value.firstChild;)W.value.removeChild(W.value.firstChild);W.value.classList.add("ytSpecIconShapeHost");E(W.value,G)}}
var d=_.Pwx(_.dO().resolve(_.C8),z);typeof d==="function"?(B.value=null,Y(d,null)):(B.value=d,d.then(function(E){Y(E,d)}))};
kOR=function(W,B){var z=document.createElement("div"),G=_.SD(z,function(){return _.w(_.V,{cond:W,then:function(Y){return _.w(rO2,{data:Y,options:B})}})},"D");
return[z,G]};
_.Ky=function(W,B){if(B){var z={};ldT.forEach(function(G){G=CwQ(B,G,"--yt-lightsource-");Object.assign(z,G)});
Idt.forEach(function(G){G=CwQ(B,G,"--yt-basic-");Object.assign(z,G)});
_.kw(W,z)}};
CwQ=function(W,B,z){var G={};G[z+_.k6(B)]=W&&W[B]?_.aE(W[B]):"";return G};
_.eX=function(W,B,z){uF[W]||(uF[W]={});uF[W][B]=z};
_.mT=function(W){uF[W]||(uF[W]={});return uF[W]};
oox=function(W){if(!W)return{};var B=W.foregroundTitleColor,z=W.backgroundColor;W=W.borderColor;var G="text";W?G="outline":z&&(G="filled");return{type:G,customColors:{color:B?_.aE(B):void 0,backgroundColor:z?_.aE(z):void 0,borderColor:W?_.aE(W):void 0}}};
bzu=function(W){var B=W.renderer;var z=W.element;var G=W.commandController;var Y=W.onTapCallback;var d=W.skipCommandHandling;var E=W.overrides;var v=W.forceIcon;var c=W.forceModernIconButton;var J=W.forceDisabled;var g=W.isSubscribe===void 0?!1:W.isSubscribe;var t=W.isPressed===void 0?!1:W.isPressed;var P=W.useButtonSize===void 0?!1:W.useButtonSize;W=hcT(B);g&&(W.style="mono",W.type="filled");v=!B.icon||!v&&B.text?B.icon?B.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:c?"icon-only":"icon-only-40";v==="icon-only-40"&&(W.type="text");var Z;c=Object;g=c.assign;P=Hz0(B,P);t=!!B.isSelected||!_.r("web_propagate_is_pressed_killswitch")&&!!t;var l=B.isSelected!==void 0;J=J===void 0?B.isDisabled:J;var b=B.text?_.y2(B.text):void 0;var O,K,e,a=((O=B.accessibilityData)==null?void 0:(K=O.accessibilityData)==null?void 0:K.label)||((e=B.accessibility)==null?void 0:e.label);O=a?a:_.zR(B.text);z=FiR(B,z,G,Y,d);G=S9T(B);G!=null&&G.length?(G=_.UV({innertubeCommand:Wlu(G),
forceNewState:!0}),G=MH(G)?G:void 0):G=void 0;return g.call(c,{},W,P,{iconPosition:v},E,{focused:!1,toggled:t,toggleable:l,disabled:J,formattedButtonText:b,accessibilityLabel:O,onTap:z,aTagConfig:G},oox((Z=B.colorData)==null?void 0:Z.basicColorPaletteData),{oneOffCustomTextWrap:B.oneOffCustomTextWrap})};
FiR=function(W,B,z,G,Y){return function(d){var E=S9T(W);G(E,d);if(!Y){E=_.A(E);for(var v=E.next();!v.done;v=E.next())SX(v.value,{form:{element:B,event:d},commandController:z})}}};
S9T=function(W){var B=[];W.command&&B.push(W.command);W.serviceEndpoint&&B.push(W.serviceEndpoint);W.navigationEndpoint&&B.push(W.navigationEndpoint);return B};
Hz0=function(W,B){if(B)switch(W.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(W.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
hcT=function(W){switch(W.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
jv8=function(W,B){return typeof W!=="object"||W===null?!1:Object.keys(B).every(function(z){return z in W})};
_.xG=function(W){return Object.fromEntries(Object.keys(W).map(function(B){return[B,B]}))};
fdT=function(W,B,z){return Owk(z,function(G,Y){return function(d){var E=_.nm.apply(1,arguments);return jv8(d,W)?Y.apply(null,[d[B]].concat(_.u7(E))):Y.apply(null,[d].concat(_.u7(E)))}})};
_.DN=function(W){return function(B,z){return fdT(W,B,z)}};
_.Qm=function(W){return W!=null&&W.watch?W.watch.isTheaterMode:!1};
_.ym=function(W){return W!=null&&W.watch?W.watch.isWatchFullscreen:!1};
_.qE=function(W){W=_.Oz0(W);return _.r("web_watch_enable_single_column_grid_view")?W:!1};
_.Oz0=function(W){return W.watch.isWatchNarrowWidth};
_.X9Q=function(W){return W.watch.openEngagementPanels};
_.ny=function(W){return _.r4(function(){bDD()();return ODx(W)},{debugName:"d8B62c"},"wfRQAb")};
NE=function(W,B){return _.P3(W.entities,"likeStatusEntity",B)};
KiR=function(W,B){return _.P3(W.entities,"likeCountEntity",B)};
_.$G=function(W,B){return _.P3(W.entities,"stringEntity",B)};
uk2=function(W,B){return _.P3(W.entities,"dataFreshnessEntity",B)};
ecR=function(W,B){if(!W)return!1;var z,G=(z=_.k(W,_.P0))==null?void 0:z.signal;if(G&&B.signalEndpointMap)return!!B.signalEndpointMap[G];var Y;if((z=(Y=_.k(W,_.Ly))==null?void 0:Y.request)&&B.continuationEndpointMap)return!!B.continuationEndpointMap[z];for(var d in W)if(B.commandEndpointMap[d])return!0;return!1};
mvR=function(W,B){if(B.streamingEndpointMap)for(var z in W)if(B.streamingEndpointMap[z]&&(W=B.streamingEndpointMap[z]))return W()};
xvQ=function(W,B){var z,G=(z=_.k(W,_.P0))==null?void 0:z.signal;if(G&&B.signalEndpointMap&&(z=B.signalEndpointMap[G]))return z();var Y;if((z=(Y=_.k(W,_.Ly))==null?void 0:Y.request)&&B.continuationEndpointMap&&(Y=B.continuationEndpointMap[z]))return Y();for(var d in W)if(B.commandEndpointMap[d]&&(W=B.commandEndpointMap[d]))return W()};
Dv0=function(W){var B={"Content-Type":"application/json"};_.eD("EOM_VISITOR_DATA")?B["X-Goog-EOM-Visitor-Id"]=_.eD("EOM_VISITOR_DATA"):_.eD("VISITOR_DATA")&&(B["X-Goog-Visitor-Id"]=_.eD("VISITOR_DATA"));B["X-Youtube-Bootstrap-Logged-In"]=_.eD("LOGGED_IN",!1);_.eD("DEBUG_SETTINGS_METADATA")&&(B["X-Debug-Settings-Metadata"]=_.eD("DEBUG_SETTINGS_METADATA"));if(W!=="cors"){var z=_.eD("INNERTUBE_CONTEXT_CLIENT_NAME");z&&(B["X-Youtube-Client-Name"]=z);(z=_.eD("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(B["X-Youtube-Client-Version"]=
z);(z=_.eD("CHROME_CONNECTED_HEADER"))&&(B["X-Youtube-Chrome-Connected"]=z);(z=_.eD("DOMAIN_ADMIN_STATE"))&&(B["X-Youtube-Domain-Admin-State"]=z)}_.md("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(W=_.eD("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(B["X-YouTube-Lava-Device-Context"]=W):W!=="cors"&&_.md("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(W=_.eD("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(B["X-YouTube-Lava-Device-Context"]=W);return B};
Qv0=function(W,B){B.watchNextResponse||B.reelItemWatchResponse?B.watchNextResponse?W.content=B.watchNextResponse:W.content=B.reelItemWatchResponse:B.playerResponse?W.player=B.playerResponse:B.reelWatchSequenceResponse&&(W.reelSequence=B.reelWatchSequenceResponse)};
_.Uv=function(W){if(!W)return null;for(var B=[],z=0;z<W.textSegments.length;z++){var G=W.textSegments[z];G.text?B.push(G):G.emojiId&&B.push({emoji_id:G.emojiId})}return{text_segments:B}};
$vv=function(W,B,z,G,Y,d,E){d=d===void 0?[]:d;var v=new _.ME;v.endpoint=z;if(!z)return _.fG(new _.oX("handle undefined endpoint",B.tagName)),v;var c=apx(z);c.length&&(_.Jr(W,c,B,G),v.actions=c);z.loggingUrls&&z.loggingUrls.forEach(function(g){g.baseUrl&&qX(g.baseUrl,g.attributionSrcMode)});
c=!_.r("web_skip_impression_click_killswitch")&&G&&G.impression;if(z.clickTrackingParams&&!yOy(z)&&!q9v(B)&&!c&&(c=_.SK(),!_.aK(c,B))){var J=B.getScreenLayer&&B.getScreenLayer();J?c.clickCommand(z,null,J):c.clickCommand(z,null)}c=!1;for(J=0;J<d.length;J++)if((0,d[J])(B,z,G)){c=!0;break}!c&&nok(z)&&(v.ajaxPromise=NB2(W,B,z,G,Y,E));return v};
q9v=function(W){var B;return(W=(B=W.data)==null?void 0:B.navigationEndpoint)&&!!W.clickTrackingParams};
yOy=function(W){var B=_.k(W,_.P0);if(B&&(B=B.signal)&&LiQ.indexOf(B)>=0)return!0;for(var z in W)if(Uvt.indexOf(z)>=0)return!0;return!1};
nok=function(W){var B;if(((B=_.k(W,_.P0))==null?void 0:B.signal)==="CLIENT_SIGNAL")return!1;for(var z in W)if(MIx.indexOf(z)>=0)return!1;W=Object.keys(W);return W.length===1&&W[0]==="loggingUrls"?!1:!0};
dsR=function(W,B,z,G,Y,d,E){var v=_.RK.instance;if(v&&_.WA(v,G))var c=_.BA(v,G,Y).then(function(g){return(g==null?0:g.data)?g:{data:g}});
else c=W.requestDataForServiceEndpoint(G,Y),_.k(G,adv)||_.k(G,Rc0)||_.k(G,_.Wev)||_.k(G,Bft)||_.Oc(new _.oX("No RequestBuilder for endpoint",G));var J=_.zN();J.promise.thenCatch(function(){var g=_.Ow(G,"action")||_.Ow(G,"command")||_.Ow(G,"endpoint");g&&(g=G[g],g.hasOwnProperty("onFailureAction")?_.Jr(B,[g.onFailureAction],z):g.hasOwnProperty("onFailureCommand")&&_.Jr(B,g.onFailureCommand,z));c.cancel("Resolver promise rejected")});
c.then(function(g){if(g){var t=g.error;if(t){if(d&&d.onServerError)d.onServerError(G,g);J.reject(new _.oX("Response error",G,t))}else if(g=g.data)if(t=g.error){if(d&&d.onServerError)d.onServerError(G,g);J.reject(new _.oX("Returned error",G,t))}else{zsv(B,z,g,G);Gxu(g);if(t=McD(g))for(var P=_.A(t),Z=P.next();!Z.done;Z=P.next()){Z=Z.value;var l=_.dO().resolve(_.Y8(YIv))||GN;if(!_.RK.instance||!l.some(function(O){return!!_.k(G,O)})||_.r("kevlar_response_processor_allowlist_killswitch")){var b=l=void 0;
((b=_.k((l=Z)==null?void 0:l.commandMetadata,_.Z4))==null?0:b.sendPost)?_.V0(B,[Z]):_.Jr(B,[Z],z)}}(P=_.k(g==null?void 0:g.frameworkUpdates,Y2))&&E&&E(P);if(d&&d.onSuccess)d.onSuccess(G,g);J.resolve(new _.du(g,t))}}else J.reject(new _.oX("Invalid service endpoint provided",G))},function(g){J.reject(g)});
return J.promise};
Gxu=function(W){var B;(W=(B=_.k(W==null?void 0:W.onResponseReceivedCommand,_.pXk))==null?void 0:B.continuationItems)&&(W==null?void 0:W.length)===1&&_.k(W[0],AQ0)&&_.mj("so_r",void 0,"search_overview_answer")};
NB2=function(W,B,z,G,Y,d){var E;return(E=B.getNetworkManager&&B.getNetworkManager()?B.getNetworkManager():_.dO().resolve(_.Y8(_.ns)))?dsR(E,W,B,z,G,Y,d):_.mR("No network manager.")};
zsv=function(W,B,z,G){if(z=z.trackingParams||z.loggingDirectives&&z.loggingDirectives.trackingParams){var Y;(_.k(G,i$r)||_.k(G,E7D)||_.k(G,TfD))&&G.clickTrackingParams?Y=_.XF(G.clickTrackingParams):_.r("web_graft_to_parent_command")&&G.clickTrackingParams&&(Y=_.XF(G.clickTrackingParams));var d;G=(d=B.getScreenLayer)==null?void 0:d.call(B);B=_.SK().graftServerVe(z,Y,G);_.wV(W,"yt-store-grafted-ve-action",[B])}};
_.v7Q=function(W){var B=new Image;return new _.Vx(function(z,G){B.addEventListener("load",function(){z()});
B.addEventListener("error",function(){G()});
B.src=W})};
cQ2=function(W){return!!W};
wX8=function(W){return!!W};
ViT=function(W,B,z){var G=W.rowIndex;G!==void 0&&_.wV(W.hostElement,"yt-section-reactive-dismissal",[G,B,z])};
_.p2=function(W,B,z){W=_.A(W);for(var G=W.next();!G.done;G=W.next()){G=G.value;if(G===B)break;for(var Y=_.A(z),d=Y.next();!d.done;d=Y.next())if(d=d.value,G.tagName===d||!_.r("web_event_button_role_check_killswitch")&&G.role==="button"&&d==="BUTTON")return!0}return!1};
_.Ag=function(W,B,z){W=_.A(W);for(var G=W.next();!G.done;G=W.next()){G=G.value;if(G===B)break;for(var Y=_.A(z),d=Y.next();!d.done;d=Y.next())if(G.id===d.value)return!0}return!1};
_.TN=function(){var W=_.dO().resolve(_.Y8(_.ij));return W?(W=W.getCurrentPage())?_.EM(W):null:null};
_.vA=function(){var W=_.TN();if(!W){var B=_.dO().resolve(_.Y8(_.ij)),z=B?typeof B:"no page manager";B=B?B.getCurrentPage():null;z=new _.oX("Player is missing when requested.",z,B?B.tagName:"no page");_.jy(z)}return W};
_.EM=function(W){return W&&W.getPlayer?W.getPlayer():null};
JQv=function(W,B){W={args:{raw_player_response:W}};B&&(W.args=Object.assign({},W.args,B));return W};
g7x=function(W){if(W.args){if(W.args.raw_player_response)return W.args.raw_player_response;if(W.args.player_response)return JSON.parse(W.args.player_response)}};
_.tir=function(W,B){var z={url:"/watch?v="+W.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};W.playlistId&&(z.url+="&list="+W.playlistId);W.playerParams&&(z.url+="&pp="+W.playerParams);W={watchEndpoint:W,commandMetadata:{webCommandMetadata:z}};B&&(W.clickTrackingParams=B);return W};
PBr=function(){return sG0||!!_.q6("yt.player.Application")};
rQQ=function(){return Z$0||!!document.querySelector("link#player-css")};
lBk=function(){function W(){sG0=!0;kx2.resolve()}
var B,z;return _.T(function(G){kx2||(kx2=new _.sl,PBr()?W():(B=document.createElement("script"),B.addEventListener("load",W),z=_.Ok(_.eD("PLAYER_JS_URL")),_.pN(B,z),document.head.appendChild(B)));return G.return(kx2.promise)})};
IBR=function(){function W(){Z$0=!0;CBr.resolve()}
if(!CBr)if(CBr=new _.sl,rQQ())W();else{var B=document.createElement("link");B.id="player-css";B.addEventListener("load",W);var z=_.Ok(_.eD("PLAYER_CSS_URL"));_.E0(B,z,"stylesheet");document.head.appendChild(B)}return CBr.promise};
o72=function(){return PBr()&&rQQ()?Promise.resolve([]):Promise.all([lBk(),IBR()])};
hsX=function(W,B,z){var G={args:{}};W&&(G.args.raw_player_response=W);B&&(G.args.raw_watch_next_response=B);z&&(G.args=Object.assign({},G.args,z));return G};
b$D=function(W,B,z){var G=!1;G=G===void 0?!0:G;W=typeof W==="string"?_.cA(document,W):W;var Y=H$2+"_"+_.Lu(W),d=Fex[Y];if(d&&G)return SIy(B,z)?d.api.loadVideoByPlayerVars(B.args||null):d.loadNewVideoConfig(B),d.api;d=new wu(W,Y,B,z,void 0);Fex[Y]=d;d.addOnDisposeCallback(function(){delete Fex[d.getId()]});
return d.api};
SIy=function(W,B){return B&&B.serializedExperimentFlags?B.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):W&&W.args&&W.args.fflags?W.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
jGy=function(){var W=new _.sl;W.resolved=!1;var B=W.resolve;W.resolve=function(z){W.resolved=!0;B(z)};
return W};
O$R=function(W){var B={};fBQ().install((B.document_disposed={callback:W},B))};
Vi=function(W,B){if(!W&&Math.random()<=_.iO("kevlar_unified_player_logging_threshold")){W=Error("zh`"+(B?B:"Unspecified error"));if(_.r("kevlar_unified_player_throw_errors"))throw W;_.Oc(W)}};
_.XX2=function(){var W=_.q6("ytDebugData.callbacks");W||(W={},_.BV("ytDebugData.callbacks",W));return W};
uoy=function(W,B){var z=_.XX2();if(_.r("web_dd_iu")||KeD.includes(W))z[W]=B};
esR=function(){return _.T(function(W){return W.return({isLeader:_.P1x(_.Y_().getState()),c:_.eD("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.eD("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
msy=function(){var W;_.T(function(B){if(B.nextAddress==1)return uoy("APP_STATE",esR),B.yield(_.dO().resolve(_.Jg),2);W=B.yieldResult;uoy("PI",function(){return _.T(function(z){return z.return(W.getVideoStats())})});
_.HG(B)})};
xs2=function(W){var B=_.Gy(_.Lt(_.Yt.location.href));W=_.Gy(_.Lt(W));return _.r("kevlar_clear_non_displayable_url_params")?B==gu(W):gu(B)==gu(W)};
gu=function(W){var B=_.DsR(W);W=W.slice(0);var z=["frags"];_.r("kevlar_hide_pp_url_param")&&z.push("pp");_.r("kevlar_hide_time_continue_url_param")&&z.push("time_continue");z=_.A(z);for(var G=z.next();!G.done;G=z.next())G=G.value,W=_.dV(_.Gy(W),G);return _.Gy(W)+(B?"#"+B:"")};
tg=function(W,B){B=Number(B)*1E3;var z=Math.round((0,_.Yb)()),G=z.toString();W={innertubeResponse:W,serverDateTimestampMs:G,lastModifiedTimestampMs:G,expireTimestampMs:(z+B).toString()};if(B=_.eD("INNERTUBE_CONTEXT_CLIENT_NAME"))W.clientName=B;return W};
yQv=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++QGy};
qIX=function(W){return!isNaN(W)&&W>0};
Nf0=function(){_.r("web_adaptive_repeat_ase")&&n7r&&_.Sy("applicationStarted",n7r)};
_.$sD=function(){var W=_.et(),B=_.m1();B&&W&&_.aP(B,[W],!0)};
Usr=function(W){return W&&LeQ.some(function(B){return W.includes(B)})};
zX2=function(W){var B=_.k(W,_.DD);if(!B)return!1;var z=B.url,G=B.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!z)return _.jy(Error("Eh")),!1;if(B.target==="TARGET_NEW_WINDOW"){var Y={};_.r("resolve_url_parent_tracking_params")&&(!_.WS(z)||BS(window.location.href,z))&&(Y={endpoint:W,itct:W.clickTrackingParams});DVR(Y);W=null;try{if(G){a:{var d=z,E=Y;G=G===void 0?!1:G;E&&_.Yq(d,E);var v=_.yN(d),c=_.mF(v);d!=c&&_.nx(Error("gg`"+d));d=c;try{if(G){c=d;c=frD(c);Bf(c);W=_.BG(window,c,"_blank",
"attributionsrc");break a}}catch(P){_.xr(P)}Bf(d);W=_.BG(window,v,"_blank")}MiR(_.dO().resolve(aBr),W,z);return!0}}catch(P){_.jy(P)}_.Yq(z,Y);Y={target:"_blank",noopener:_.r("set_window_noopener_ks")&&!B.allowOpener};B=window;v=uQ(z)?z:_.yN(typeof z.href!="undefined"?z.href:String(z));W=self.crossOriginIsolated!==void 0;d="strict-origin-when-cross-origin";window.Request&&(d=(new Request("/")).referrerPolicy);c=Y.noreferrer;if(W&&c&&d==="unsafe-url")throw Error("ue");d=c&&!W;c=Y.target||z.target;G=
[];E=[];var J=!1;for(t in Y){var g=Y[t];switch(t){case "width":case "height":case "top":case "left":G.push(t+"="+g);break;case "target":break;case "noopener":case "noreferrer":g?E.push(t):(J=!0,E.push(t+"=false"));break;case "attributionsrc":G.push(t+(g?"="+g:""));break;default:G.push(t+"="+(g?1:0))}}var t=c!==void 0&&!["_blank","_self","_top","_parent",""].includes(c);t=Hy()&&t;Rsx&&W&&G.length===0&&E.length>0&&!t&&!J?(E.length===2&&(E=["noreferrer"]),_.BG(B,v,c,E[0]),W=W2X()):(t=G.join(","),_.bx()&&
B.navigator&&B.navigator.standalone&&c&&c!="_self"?(t=_.I0("A"),$h(t,v),t.target=c,d&&(t.rel="noreferrer"),((Y=Y.attributionsrc)||Y==="")&&t.setAttribute("attributionsrc",Y),Y=document.createEvent("MouseEvent"),Y.initMouseEvent("click",!0,!0,B,1),t.dispatchEvent(Y),t=W2X()):d?(t=_.BG(B,"",c,t),B=_.mF(v),t&&(t.opener=null,B===""&&(B="javascript:''"),B='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+sM(B)+'">',B=MZ(B),(Y=t.document)&&Y.write&&(Y.write(R3(B)),
Y.close()))):((t=_.BG(B,v,c,t))&&Y.noopener&&(t.opener=null),t&&Y.noreferrer&&(t.opener=null)),W=t);MiR(_.dO().resolve(aBr),W,z);return!0}t=_.gO(z);t=Usr(t)||z==="https://studio.youtube.com/";B=!(!_.WS(z)||BS(window.location.href,z));Y=z.indexOf("disable_polymer=1")>=0;if(B||Y||t)Bf(z),XO(),_.zS(z,void 0,void 0,window.top,BFu);else return _.Oc(new _.oX("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",W)),!1;return!0};
_.dCD=function(W,B){B=B===void 0?0:B;if(!(_.k(W,G82)||_.k(W,YqR)||_.k(W,_.DD)&&_.k(W,_.DD).url))return!1;var z,G=(z=_.k(W,_.DD))==null?void 0:z.url;z=G?{externalLinkData:{url:G}}:null;return _.SK().clickCommand(W,z,B)};
pW8=function(W,B){return _.P3(W.entities,"subscriptionStateEntity",B)};
Abr=function(W,B){return _.P3(W.entities,"subscriptionNotificationStateEntity",B)};
iFQ=function(W,B){return _.P3(W.entities,"upcomingEventReminderStateEntity",B)};
EfX=function(W,B){return _.P3(W.entities,"engagementToolbarSurfaceEntityPayload",B)};
TFk=function(W,B){return _.P3(W.entities,"triStateButtonStateEntityPayload",B)};
vfu=function(W,B){return _.P3(W.entities,"commerceCartCheckoutButtonEntity",B)};
_.cby=function(W,B){return _.P3(W.entities,"playlistLoopStateEntity",B)};
wWR=function(W,B){return _.P3(W.entities,"commandEntity",B)};
Jbx=function(W,B,z,G,Y){Y=Y===void 0?{}:Y;return function(d){var E,v;var c=((E=W.loggingDirectives)==null?0:(v=E.clientVeSpec)==null?0:v.uiType)?_.PA(W.loggingDirectives.clientVeSpec.uiType):void 0;Y.clickedVisualElement||(Y.clickedVisualElement=c);c=Vor(W,B);z(c,d);c=_.A(c);for(E=c.next();!E.done;E=c.next()){E=E.value;v=G;var J=d,g=Y;g.form?g.form.event=J:g.form={element:v,event:J};SX(E,g)}}};
Vor=function(W,B){var z=[];B?(W.toggledCommand&&z.push(W.toggledCommand),W.toggledServiceEndpoint&&z.push(W.toggledServiceEndpoint)):(W.defaultCommand&&z.push(W.defaultCommand),W.defaultServiceEndpoint&&z.push(W.defaultServiceEndpoint),W.defaultNavigationEndpoint&&z.push(W.defaultNavigationEndpoint));return z};
gfy=function(W,B){var z=W.toggledStyle||W.style,G;switch((G=B?z:W.style)==null?void 0:G.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"}}};
_.Zp=function(){return _.T(function(W){return W.nextAddress==1?W.yield(_.dO().resolve(_.Jg),2):W.return(_.dO().resolve(toy)())})};
_.ru=function(){return _.dO().resolve(toy)()};
_.k2=function(){return fx(function(){return{lottieEl:void 0}})};
sI8=function(W,B){return W.startsWith(B.uniqueId)};
PVX=function(W){var B,z;_.T(function(G){if(G.nextAddress==1)return G.yield(_.Zp(),2);B=G.yieldResult;if((z=B)==null||!z.addEventListener)return lj(),G.return();B.addEventListener("onCueRangeEnter",W);_.HG(G)})};
ZFu=function(W){var B,z;_.T(function(G){if(G.nextAddress==1)return G.yield(_.Zp(),2);B=G.yieldResult;if((z=B)==null||!z.removeEventListener)return lj(),G.return();B.removeEventListener("onCueRangeEnter",W);_.HG(G)})};
rbR=function(W){var B,z,G,Y,d;_.T(function(E){if(E.nextAddress==1)return E.yield(_.Zp(),2);B=E.yieldResult;if((z=B)==null||!z.addCueRange)return lj(),E.return();G=_.A(W.timings);for(Y=G.next();!Y.done;Y=G.next())d=Y.value,B.addCueRange(W.uniqueId+"-"+d,d/1E3,(d+100)/1E3);_.HG(E)})};
k8R=function(W){var B,z,G,Y,d;_.T(function(E){if(E.nextAddress==1)return E.yield(_.Zp(),2);B=E.yieldResult;if((z=B)==null||!z.removeCueRange)return lj(),E.return();G=_.A(W.timings);for(Y=G.next();!Y.done;Y=G.next())d=Y.value,B.removeCueRange(W.uniqueId+"-"+d);_.HG(E)})};
lAu=function(){var W,B,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(_.Zp(),2);W=G.yieldResult;if((B=W)==null||!B.getPlayerState)return lj(),G.return();z=W.getPlayerState();return G.return(z===2)})};
lj=function(){_.Oc(new _.oX("Smartimation player does not exist or is corrupted"))};
CVy=function(){try{var W;return(W=window.CSS)!=null&&W.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(B){return _.Oc(new _.oX("Smartimation CSS.supports threw an error")),!1}};
bFR=function(W,B,z,G,Y){var d=W.playlistId?IA2:ofr;B=B();z=z();Y=!!W.videoId&&Y()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.H3(B))return hXX({data:W,actionType:d,disabled:Y},z);if(W.videoId&&G())return HFy({data:W,actionType:d,disabled:Y});switch(B){case "TRANSFER_STATE_UNKNOWN":return HFy({data:W,actionType:d,disabled:Y});case "TRANSFER_STATE_FAILED":return W.videoId?F2y({data:W,actionType:d,disabled:Y}):Sq8({data:W,actionType:d,disabled:Y});case "TRANSFER_STATE_COMPLETE":return Sq8({data:W,
actionType:d,disabled:Y});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return hXX({data:W,actionType:d,disabled:Y},z);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return W.videoId?F2y({data:W,actionType:d,disabled:Y}):HFy({data:W,actionType:d,disabled:Y});default:return HFy({data:W,actionType:d,disabled:Y})}};
jIR=function(W,B){var z=W.onTapCommand,G=_.$B(z);if(W.videoId&&_.k(G,_.C2))return _.k(G,_.C2).action=B,z;W.playlistId&&_.k(G,_.In)&&(_.k(G,_.In).action=B);return z};
HFy=function(W){var B=W.data;var z=W.actionType;W=W.disabled;return{text:fAu,iconType:"OFFLINE_DOWNLOAD",onTap:jIR(B,z.ACTION_ADD),disabled:W}};
hXX=function(W,B){var z=W.data;var G=W.actionType;W=W.disabled;var Y="OFFLINE_DOWNLOAD";B>=0&&B<=.1?Y="OFFLINE_DOWNLOADING_ZERO":B>.1&&B<=.3?Y="OFFLINE_DOWNLOADING_TWENTY":B>.3&&B<=.5?Y="OFFLINE_DOWNLOADING_FORTY":B>.5&&B<=.7?Y="OFFLINE_DOWNLOADING_SIXTY":B>.7&&B<1?Y="OFFLINE_DOWNLOADING_EIGHTY":B===1&&(Y="OFFLINE_PIN");return{text:OFD,iconType:Y,onTap:jIR(z,G.ACTION_REMOVE_WITH_PROMPT),disabled:W}};
Sq8=function(W){var B=W.data;var z=W.actionType;W=W.disabled;return{text:XWR,iconType:"OFFLINE_PIN",onTap:jIR(B,z.ACTION_REMOVE_WITH_PROMPT),disabled:W}};
F2y=function(W){var B=W.data;var z=W.actionType;W=W.disabled;return{text:K2Q,iconType:"OFFLINE_DOWNLOAD",onTap:jIR(B,z.ACTION_RETRY),disabled:W}};
_.hg=function(W,B){var z=bDD();return _.r4(function(){z();return ODx(W,[_.XA(B)||""])},{debugName:"LUZslf"},"Z105t")};
uLt=function(W){var B=_.hg(_.yg,function(){return W().videoId}),z=_.hg(_.qM,function(){return W().playlistId});
return function(){return W().videoId?B:W().playlistId?z:_.A(_.g4("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
eXy=function(W){var B=_.hg(nA,function(){return W().videoId}),z=_.hg(_.sqQ,function(){return W().playlistId});
return function(){return W().videoId?B:W().playlistId?z:_.A(_.g4(0,void 0,"K4tgOc")).next().value}};
mCR=function(W){var B=_.hg(_.h7t,function(){return W().videoId});
return function(){return W().videoId?B:_.A(_.g4(!1,void 0,"Oaxwcf")).next().value}};
xCx=function(W){var B=_.hg(r5x,function(){return W().videoId});
return function(){return W().videoId?B:_.A(_.g4("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
DC2=function(){return{}};
_.NFQ=function(W,B,z){return{submitForm:function(){var G;return _.T(function(Y){if(Y.nextAddress==1){G=QIr(W());if(!G)return Y.return();if(G.onSubmit)return G.onSubmit(),Y.return();if(!G.submitConfig||!G.formData)return Y.jumpTo(0);G.disableDuringSubmission&&ybX(W(),!0);qqy(B);return Y.yield(nfx(G.submitConfig,G.formData()),3)}qqy(z);G.disableDuringSubmission&&ybX(W(),!1);return Y.return()})},
isValid:function(){var G=QIr(W());if(G){var Y;return!((Y=G.isValid)==null||!Y.call(G))}return!0},
isSubmitting:function(){var G,Y;return!!((G=QIr(W()))==null?0:(Y=G.isSubmitting)==null?0:Y.call(G))}}};
_.HA=function(){if(!$C0){var W=_.A(_.g4(new Map,void 0,"yE61ae"));$C0=W.next().value;L28=W.next().value}return $C0};
_.UCu=function(W){L28(new Map(W))};
QIr=function(W){if(W)return _.HA()().get(W)};
nfx=function(W,B){var z;return _.T(function(G){return B?(z=_.dO().resolve(_.Y8(Mo8)))&&W.submitId?G.yield(z.submitForm(W.submitId,B,aAX,W.params,W.clickTrackingParams),0):G.return():G.return()})};
ybX=function(W,B){if(W){var z=_.HA();z().set(W,Object.assign({},z().get(W),{isSubmitting:function(){return B}}));
_.UCu(z())}};
qqy=function(W){if(W){var B=_.dO().resolve(_.p4);B&&(W=_.$B(W()))&&B.resolveCommand(W)}};
W3y=function(W,B){B=B===void 0?{shouldPersist:!0}:B;return{useUpdatableData:function(z,G){var Y=[],d=_.A(_.IK(function(){var J=z();if(G!=null&&G.length&&Y){var g=Y.length>0;for(var t=!1,P=0;P<G.length;P++){var Z=G[P]();g&&Z!==Y[P]&&(t=!0);Y[P]=Z}g=t}else g=!1;if(g)_.FE.remove(c());else if(g=_.FE.get(c()))return g;return J})),E=d.next().value,v=d.next().value,c=_.r4(function(){return W(z())},void 0,"mX326");
_.ja(function(){if(c()!=null){RXk.set(c(),[E,v]);var J=c();_.fR(function(){RXk.delete(J)})}},"MgKPjb");
return[E,function(J){v(J);B.shouldPersist&&_.FE.set(c(),J)}]},
getData:function(z){var G;return(G=RXk.get(W(z)))==null?void 0:G[0]()},
updateData:function(z,G){z=W(z);var Y=RXk.get(z);if(!Y)return!1;var d=_.A(Y);Y=d.next().value;d=d.next().value;G=G(Y());d(G);B.shouldPersist&&_.FE.set(z,G);return!0}}};
Bpu=function(W){var B=_.A(_.g4(!0,void 0,"bKtO6d")),z=B.next().value;B.next();return function(){var G=Z5(W.children());return _.w(_.V,{cond:z,then:function(){return G},
else:W.fallback})}()};
_.Sc=function(W){var B=zOX(W),z=B.data,G=B.mapping,Y=B.wrapper;B=B.pendingFallback;var d=function(){return GLu(_.XA(z))},E=function(){var v=d(),c=[];
v=_.A(v);for(var J=v.next();!J.done;J=v.next()){var g=void 0;J=J.value;var t=void 0;for(g in J)if(!(!J).hasOwnProperty(g)){t=g;break}(g=t)&&c.push(g)}return c};
return W.data?_.w(Bpu,{fallback:B},function(){return _.w(_.IJ,{each:E},function(v,c){var J=Y?function(t){return Y(function(){return G[v](t,c)},g,c)}:function(t){return G[v](t,c)};
J.debugName||(J.debugName=String(v));if(!G[String(v)])return document.createComment("");J.componentType!==H5&&YyR(String(v));var g=d9u(d,v,c);return _.w(J,{data:g})})}):_.w(_.AW,null)};
zOX=function(W){var B=W.targetId||ppr(W.children);if(!W.data||!B||_.r("mweb_new_replaceables_killswitch"))return Object.assign({},W,{mapping:W.children,wrapper:void 0});var z="stamper-"+A9r++,G=function(){var v;return(v=typeof W.targetId==="function"?W.targetId(z):W.targetId)!=null?v:z};
B=_.A(i10(function(){var v=GLu(W.data());v.targetId=G;return v})).next().value;
var Y=Object.assign({},(_.dO().resolve(_.Y8(EgT))||{}).replaceableMapping,W.children);if(W.replacementWrapper){var d=Y.notificationTextRenderer,E=Y.notificationMultiActionRenderer;d&&(Y.notificationTextRenderer=function(v,c){return W.replacementWrapper(d({data:v.data},c))});
E&&(Y.notificationMultiActionRenderer=function(v,c){return W.replacementWrapper(E({data:v.data},c))})}return Object.assign({},W,{data:B,
mapping:Y,wrapper:function(v,c,J){return bZX({targetId:G,stamperIndex:J},v)}})};
d9u=function(W,B,z){var G;return _.r4(function(){var Y=W()[z()];if(Y)G=Y[B];else return _.Oc(new _.oX("Stamper failed to find "+String(B)+" at index "+z()+" of data array of length "+(W().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),G;return Y[B]},void 0,"wgRPHd")};
ppr=function(W){W=_.A(Object.keys(W));for(var B=W.next();!B.done;B=W.next())if(B=B.value,TpT.includes(B)||vgX.includes(B)||c98.includes(B))return!0;return!1};
GLu=function(W){return W?Array.isArray(W)?W:[W]:[]};
YyR=function(W){if(_.r("web_enable_renderer_logger")){var B;(B=_.dO().resolve(_.Y8(wpv)))!=null&&B.loggingEnabled&&!B.ids.has(W)&&B.ids.add(W)}};
VHx=function(){var W,B;return(B=(W=_.dO().resolve(_.Y8(_.YG)))==null?void 0:W())!=null?B:!1};
ggv=function(W,B){W=W===void 0?J9T:W;switch(B.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},W,{isOpen:B.payload});default:return W}};
sUr=function(W,B){W=W===void 0?tH2:W;switch(B.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},W,{isAllowed:B.payload});default:return W}};
Z1R=function(W,B){W=W===void 0?Ptr:W;switch(B.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},W,{errorMessage:B.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},W,{title:B.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},W,{privacy:B.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},W,{isDisabled:B.payload});default:return W}};
kLD=function(W,B){W=W===void 0?r9r:W;switch(B.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},W,{isOpen:B.payload});default:return W}};
CtR=function(W,B){W=W===void 0?lgT:W;switch(B.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},W,{isFullscreen:B.payload});case "SET_NAVIGATION_BUTTON":var z=B.payload.targetId,G=Object.assign({},W.navigationButtons);G[z]=B.payload.button;return Object.assign({},W,{navigationButtons:G});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},W,{topPanelId:B.payload});case "SET_SECONDARY_HEADER":return z=B.payload.panelId,G=Object.assign({},W.secondaryHeader),G[z]=B.payload.secondaryHeader,
Object.assign({},W,{secondaryHeader:G});default:return W}};
H1D=function(){return Z2(Object.assign({},{voiceSearch:Mxr,engagementPanel:CtR,bottomSheet:ggv,cinematicSetting:sUr,shorts:dKT,drawerLayout:kLD,createPlaylist:Z1R,locationCollection:Igv,reportChannel:ogt,reportForm:hOu},pNu))};
F3T=function(W,B){_.fg.addLowPriorityJob(function(){var z,G,Y;return _.T(function(d){switch(d.nextAddress){case 1:return _.kA(d,2),d.yield(TBx(),4);case 4:return d.yield(fetch(W),5);case 5:return z=d.yieldResult,d.yield(z.json(),6);case 6:G=d.yieldResult;Xm.set(W,G);requestAnimationFrame(function(){B(G)});
_.Nn(d,0);break;case 2:Y=_.h6(d),_.Oc(Y),_.HG(d)}})})};
Syk=function(W){var B={animationConfig:{},listeners:{}},z=function(){W(!0)};
B.listeners.data_failed=z;B.listeners.error=z;B.listeners.data_ready=function(){W(!1)};
return B};
fgy=function(W){var B=W.model;var z=W.subscribed;var G=W.isOverlay;var Y=W.element;var d=W.commandController;var E=W.notificationState;if(z){var v,c;var J=(B==null?void 0:(v=B.buttonStyle)==null?void 0:v.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:B==null?void 0:(c=B.unsubscribeButtonContent)==null?void 0:c.buttonText}else{var g;J=B==null?void 0:(g=B.subscribeButtonContent)==null?void 0:g.buttonText}a:{var t;switch(B==null?void 0:(t=B.buttonStyle)==
null?void 0:t.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":v="S";break a;default:v="M"}}a:if(G)G="overlay";else switch(B.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":G="overlay";break a;default:G="mono"}a:if(z)var P="tonal";else switch((P=B.buttonStyle)==
null?void 0:P.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":P="tonal";break a;default:P="filled"}return{style:G,type:P,state:B.disableSubscribeButton?"disabled":"active",size:v,focused:W.focused,toggled:z,accessibilityLabel:b1T(B,z,E),buttonText:J,iconPosition:B.disableNotificationBell?"none":"leading-trailing",onTap:jUQ(B,z,Y,d),disableTextEllipsis:!!W.disableTextEllipsis}};
jUQ=function(W,B,z,G){return function(Y){if(B){var d;var E=W.disableNotificationBell?_.$B(W==null?void 0:(d=W.unsubscribeButtonContent)==null?void 0:d.onTapCommand):_.$B(W==null?void 0:W.onShowSubscriptionOptions)}else{var v;E=_.$B(W==null?void 0:(v=W.subscribeButtonContent)==null?void 0:v.onTapCommand)}E&&SX(E,{form:{element:z==null?void 0:z.value},commandController:G});Y.stopPropagation()}};
b1T=function(W,B,z){if(B){if(W==null?0:W.disableNotificationBell){var G;return W==null?void 0:(G=W.unsubscribeButtonContent)==null?void 0:G.accessibilityText}switch(z){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var Y;return W==null?void 0:(Y=W.bellAccessibilityData)==null?void 0:Y.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var d;return W==null?void 0:(d=W.bellAccessibilityData)==null?void 0:d.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var E;return W==null?void 0:(E=
W.bellAccessibilityData)==null?void 0:E.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var v;return W==null?void 0:(v=W.bellAccessibilityData)==null?void 0:v.disabledLabel;default:var c;return W==null?void 0:(c=W.unsubscribeButtonContent)==null?void 0:c.accessibilityText}}else{var J;return W==null?void 0:(J=W.subscribeButtonContent)==null?void 0:J.accessibilityText}};
O10=function(W){if(W){switch(W){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":W="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":W="NOTIFICATIONS_OFF";break;default:W="NOTIFICATIONS_NONE"}return W}};
Xp2=function(W,B,z){z.subscribed!==B&&((z=z.key)&&_.AV(_.bj("subscriptionStateEntity",z,{key:z,subscribed:B})),W.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:B})),B||_.c0(W,"yt-unsubscribe-action"))};
ueD=function(W){W=_.k(_.$B(W),_.jc);var B,z,G,Y;return(Y=_.k(W==null?void 0:(B=W.panelLoadingStrategy)==null?void 0:(z=B.inlineContent)==null?void 0:(G=z.sheetViewModel)==null?void 0:G.content,K3Q))==null?void 0:Y.listItems};
eOk=function(W,B){if(W.onShowSubscriptionOptions&&B&&(W=ueD(W.onShowSubscriptionOptions),W!=null&&W.length)){var z=O10(B);W.forEach(function(G){G=_.k(G,_.f2);var Y,d,E,v,c=G==null?void 0:(Y=G.leadingImage)==null?void 0:(d=Y.sources)==null?void 0:(E=d[0])==null?void 0:(v=E.clientResource)==null?void 0:v.imageName;G&&c&&(G.isSelected=c===z)})}};
m9x=function(W,B,z,G){B&&z?W.style.width=z+"px":!B&&G&&(W.style.width=G+"px")};
x9R=function(W,B,z){var G;(G=W.lottieEl)==null||G.goToAndPlay(0);var Y;(Y=B.lottieEl)==null||Y.goToAndPlay(0);_.OM(_.fg,function(){var d;(d=z.lottieEl)==null||d.goToAndPlay(0)},300)};
D9X=function(W){return!(W==null||!W.iconName||(W==null?0:W.title))};
QUy=function(W,B,z,G){z&&_.fg.cancelJob(z);z=_.fg.addLowPriorityJob(function(){G(void 0)},5E3);
G(z);B&&W!==(B.likeStatus==="LIKE")&&B.key&&_.AV(_.bj("likeStatusEntity",B.key,{key:B.key,likeStatus:W?"LIKE":"INDIFFERENT",hadUserInteraction:W}))};
_.y9u=function(W,B){return _.P3(W.entities,"accountLinkStatusEntity",B)};
qyR=function(W,B){return _.P3(W.entities,"hatsSurveyEntity",B)};
ng2=function(W,B){return _.P3(W.entities,"hatsSurveyStateEntity",B)};
NpR=function(W,B){return _.P3(W.entities,"quantityIncrementerEntity",B)};
$9R=function(W){switch(W){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
L3x=function(W){switch(W){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}};
U9r=function(W){switch(W){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.agt=function(W){var B=_.iO("web_generic_client_event_wait_period ",0);B||(B=3E5);var z=MHy.get(W);!_.r("enable_web_client_experiment_event_timeout_killswitch")&&z&&(0,_.Yb)()-z<B||(MHy.set(W,(0,_.Yb)()),_.Sy("genericClientExperimentEvent",{eventType:W}))};
ROv=function(W){switch(W){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
WKX=function(W){if(!W)return"";var B,z=(B=_.dO().resolve(_.Y8(_.YG)))==null?void 0:B(),G;if(!z&&((G=W.vibrantColorPalette)==null?0:G.iconInactiveColor))return RE(W.vibrantColorPalette.iconInactiveColor,"1");var Y;return z&&((Y=W.darkColorPalette)==null?0:Y.iconInactiveColor)?RE(W.darkColorPalette.iconInactiveColor,"1"):W.color?RE(W.color,"1"):W.sampledThumbnailColor?(W=W.sampledThumbnailColor,"rgba("+W.red+","+W.green+","+W.blue+");"):""};
_.XE=function(W,B){if(!W.includes("DATE_PLACEHOLDER"))return W;var z=new Date(0);z.setUTCSeconds(B);return W.replace("DATE_PLACEHOLDER",Bgk(z))};
zF0=function(W,B,z){return function(G){var Y=W.command;Y&&(SX(Y,{form:{element:z}}),B([Y],G))}};
Y3D=function(W,B,z,G,Y){return function(d){var E=Gjv(W,B);E&&SX(E,{form:{element:z},commandController:G});Y&&d.stopPropagation()}};
Gjv=function(W,B){if(W.signInEndpoint&&!_.r("web_subscribe_sign_in_endpoint_killswitch"))return W.signInEndpoint;if(B){if(W.serviceEndpoints)return W.serviceEndpoints[1];if(W.onUnsubscribeEndpoints)return W.onUnsubscribeEndpoints[0]}else{if(W.serviceEndpoints)return W.serviceEndpoints[0];if(W.onSubscribeEndpoints)return W.onSubscribeEndpoints[0]}};
dY8=function(W,B){var z,G,Y,d;B=B&&((z=W.unsubscribeAccessibility)==null?void 0:(G=z.accessibilityData)==null?void 0:G.label)||((Y=W.subscribeAccessibility)==null?void 0:(d=Y.accessibilityData)==null?void 0:d.label);return W.longSubscriberCountText?[B,_.zR(W.longSubscriberCountText)].filter(function(E){return E}).join(" "):B};
K2=function(W,B){return B||(W==null?0:W.isChannelDelegate)?"disabled":"active"};
peQ=function(W,B){var z;switch((z=W.style)==null?void 0:z.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:K2(W)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:K2(W)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:K2(W,!0)};case "OVERLAY":return B?{style:"overlay",type:"tonal",state:K2(W)}:{style:"overlay",type:"filled",state:K2(W)};default:return B?{style:"mono",type:"tonal",state:K2(W)}:{style:"mono",type:"filled",state:K2(W)}}};
_.uj=function(){for(var W=[],B=_.A(_.nm.apply(0,arguments)),z=B.next();!z.done;z=B.next())if(z=z.value)if(typeof z==="string")W.push(z);else{z=_.A(Object.entries(z));for(var G=z.next();!G.done;G=z.next()){var Y=_.A(G.value);G=Y.next().value;(Y=Y.next().value)&&W.push(G)}}return W.join(" ")};
A2k=function(W){switch(W){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
iKQ=function(W){switch(W){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
EJ8=function(W,B){var z=W.map(function(G){return G.toString()});
return _.lF(function(G){if(z.includes(G.key)){B&&G.preventDefault();var Y;(Y=G.currentTarget)==null||Y.click()}})};
_.Tg0=function(){return EJ8(["Enter"])};
_.vJD=function(){return EJ8(["Enter"," "],!0)};
_.ec=function(W){if(W.composedPath)return W.composedPath();if(!W.__composedPath){for(var B=[],z=W.target;z;)B.push(z),z=z.parentNode;B.push(window);W.__composedPath=B}return W.__composedPath};
_.mC=function(W,B,z){W=_.A(W);for(var G=W.next();!G.done;G=W.next()){G=G.value;if(G===B)break;for(var Y=_.A(z),d=Y.next();!d.done;d=Y.next())if(d=d.value,G.tagName===d||G.role==="button"&&d==="BUTTON")return!0}return!1};
weQ=function(W,B){var z,G=(z=B.observer)!=null?z:_.dO().resolve(Gp);if(W){z=c2Q(W);var Y=[];B.showOption&&Y.push(G.observe(W,function(){B.visibilityCallback(!0,W)},B.showOption));
B.hideOption&&Y.push(G.observe(W,function(){B.visibilityCallback(!1,W)},B.hideOption));
B.prescanOption&&B.prescanCallback&&Y.push(G.observe(W,function(){B.prescanCallback()},B.prescanOption));
var d;z.visibilityMonitorKeys=((d=z.visibilityMonitorKeys)!=null?d:[]).concat(Y)}};
c2Q=function(W){var B;return(B=W.polymerController)!=null?B:W};
_.Dp=function(W){return!!_.x2(W)};
_.Qi=function(W,B,z,G,Y){return function(d){var E=SBt();_.ja(function(){if(d){V$R(d,W(),Y);var v=J2X(d,W(),B,z,G,E);_.fR(v)}},"nr377e")}};
V$R=function(W,B,z){var G=gJv(B),Y=t$T(B);B=G&&stx;var d=Y&&PWv;(G||Y)&&weQ(W,{visibilityCallback:function(E){var v=_.dO().resolve(_.p4);E&&G?v.resolveCommand(G,{form:{element:z?W:void 0},disableClickTracking:!0}):!E&&Y&&v.resolveCommand(Y,{form:{element:z?W:void 0},disableClickTracking:!0})},
showOption:B,hideOption:d})};
J2X=function(W,B,z,G,Y,d){var E=new Map;if(B=_.x2(B)){var v;W=(G==null?void 0:(v=G.onTap)==null?void 0:v.value)||W;z=ZKy(B,W,z==null?void 0:z.onTap,Y,d);W.addEventListener("click",z);E.set("click",z)}return function(){for(var c=_.A(E),J=c.next();!J.done;J=c.next()){var g=_.A(J.value);J=g.next().value;g=g.next().value;W.removeEventListener(J,g)}}};
_.x2=function(W){var B;return(W=(B=_.k(W,r2x))==null?void 0:B.onTap)&&_.$B(W)};
gJv=function(W){var B;return(W=(B=_.k(W,r2x))==null?void 0:B.onVisible)&&_.$B(W)};
t$T=function(W){var B;return(W=(B=_.k(W,r2x))==null?void 0:B.onHidden)&&_.$B(W)};
ZKy=function(W,B,z,G,Y){var d=function(v){_.dO().resolve(_.p4).resolveCommand(W,v)},E=function(v){G&&_.mC(_.ec(v),B,G)||d(v.target?{form:{element:v.target,
sourceData:W,mutationContext:Y}}:void 0)};
z&&(E=function(v){z(v,d)});
return E};
kj8=function(W){switch(W){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}};
lxR=function(W){var B=W.numAvatarsInCluster;switch(W.clusterSize){case "small":return B===2?22:18;case "40":return B===2?24:22;default:return B===2?24:20}};
CW0=function(W,B){return function(z){var G=Object.keys(B);_.ja(function(){if(W!=null&&W()){for(var Y=_.A(G),d=Y.next();!d.done;d=Y.next())d=d.value,z.addEventListener(d,B[d]);_.fR(function(){for(var E=_.A(G),v=E.next();!v.done;v=E.next())v=v.value,z.removeEventListener(v,B[v])})}},"bXZGfe")}};
Ixt=function(W){switch(lxR(W)){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""}};
oJQ=function(W){switch(W){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""}};
hFR=function(W){switch(lxR(W)){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""}};
HK0=function(W){switch(W){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""}};
FKD=function(W){switch(W){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}};
S3v=function(W){return W==="medium"||W==="48"||W==="large"||W==="extra-large"||W==="extra-extra-large"||W==="giant"};
bKy=function(W){return!!((W==null?0:W.includes(3))||(W==null?0:W.includes(5)))};
fx2=function(W){var B=W.data;return{size:jtR(B.avatarImageSize),type:B.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:W.onTap,decorations:W.decorations||[],badgeText:W.badgeText,accessibilityText:W.accessibilityText,avatarButtonCustomClassName:W.avatarButtonCustomClassName,clusterLayoutConfig:W.clusterLayoutConfig}};
jtR=function(W){switch(W){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"}};
OKu=function(W){switch(W){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}};
XeR=function(W){switch(W){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
KKu=function(W){var B=W.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",z,G=W.avatars&&W.avatars.length>0?(z=_.k(W.avatars[0],_.yi))==null?void 0:z.avatarImageSize:"AVATAR_SIZE_UNKNOWN";z=OKu(G)||0;if(B){var Y,d=(Y=W.avatarClusterSize)!=null?Y:"AVATAR_SIZE_M";B=OKu(d);var E,v,c=Math.min((v=(E=W.avatars)==null?void 0:E.length)!=null?v:0,4),J;return{avatars:((J=W.avatars)==null?void 0:J.slice(0,4))||[],avatarSizeInPx:z,avatarStackStyle:{width:B+"px",height:B+"px",position:"relative"},avatarStyle:function(t){var P=
lxR({clusterSize:jtR(d),numAvatarsInCluster:c,avatarIndex:t});var Z=OKu(d);c===3&&t===2?(Z=(Z-P)/2,Z=(_.eD("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*Z):Z=void 0;return{position:"absolute",top:c===2&&t===1||c===3&&t===2||c===4&&t>=2?"0":void 0,bottom:c===2&&t===0||c>2&&t<2?"0":void 0,left:c===2&&t===1||c>2&&(t===1||t===3)?"0":void 0,right:c<=3&&t===0||c===4&&(t===0||t===2)?"0":void 0,transform:Z?"translateX("+Z+"px)":void 0,width:P+"px",height:P+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(t){return{clusterSize:jtR(W.avatarClusterSize),numAvatarsInCluster:c,avatarIndex:t}},
avatarButtonCustomClassName:void 0}}var g;return{avatars:((g=W.avatars)==null?void 0:g.slice())||[],avatarSizeInPx:z,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:XeR(G),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
ug8=function(W,B,z){return function(){SX(W,{form:{element:B},commandController:z})}};
eFQ=function(W){switch(W){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
mYX=function(W){switch(W){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
xYT=function(W){if("accessibilityText"in W)return W.accessibilityText||"";if("title"in W){var B,z,G;return((B=W.title)==null?void 0:(z=B.accessibility)==null?void 0:(G=z.accessibilityData)==null?void 0:G.label)||""}if("accessibility"in W){var Y,d;return((Y=W.accessibility)==null?void 0:(d=Y.accessibilityData)==null?void 0:d.label)||""}return""};
DYk=function(W){return"inlinePlayerData"in W};
q$=function(W){return new QtT(W)};
y2T=function(W){return function(B){W&&(W.thumbnailElRef=B.thumbnailElRef,W.thumbnail=B.thumbnail,W.thumbnailOverlays=B.thumbnailOverlays,W.thumbnailSize=B.thumbnailSize)}};
q3y=function(W){switch(W){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
NgX=function(W){var B=_.A(_.g4(!1,void 0,"RIOonf")),z=B.next().value,G=B.next().value;_.jD(function(){var Y=W==null?void 0:W();if(Y){var d=_.dO().resolve(_.Y8(nJ0));if(d){var E={triggeringElement:Y,onDwellTriggeredFn:function(){G(!0)},
onDwellEndFn:function(){G(!1)}};
d.registerElement(E);_.fR(function(){_.n2(d,E)})}}});
return z};
$YR=function(W,B,z){z?z(B):_.aB(B,W.target?{form:{element:W.target}}:void 0)};
_.N$=function(W,B,z){return function(G){_.ja(function(){var Y=new Map,d,E=(d=W())==null?void 0:d.onTap;E&&(d=function(v){a:{var c=v.composedPath();c=_.A(c);for(var J=c.next();!J.done;J=c.next()){J=J.value;if(J===G)break;if(J.className.indexOf("HostIsClickableAdComponent")>=0||J.tagName==="A".toString()||J.tagName==="BUTTON".toString()){c=!0;break a}}c=!1}c||$YR(v,E,B)},(z==null?0:z())||_.r("enable_web_home_top_landscape_image_layout_level_click")?(G.addEventListener("tap",d),Y.set("tap",d)):(G.addEventListener("click",
d),Y.set("click",d)));
_.fR(function(){for(var v=_.A(Y),c=v.next();!c.done;c=v.next()){var J=_.A(c.value);c=J.next().value;J=J.next().value;G.removeEventListener(c,J)}})},"NMyqj")}};
LKQ=function(W,B){var z,G=(z=W.interaction)==null?void 0:z.onTap;if(W=_.UV({elementsCommand:G,forceNewState:!0,skipOnClick:!0}))return W.onclick=function(Y){RBT(Y)&&(Y.preventDefault(),G&&$YR(Y,G,B))},MH(W)?W:void 0};
UY2=function(W){switch(W){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
M$y=function(W){switch(W){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"}};
axR=function(W){switch(W){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"}};
_.RF8=function(W){return _.r("rich_grid_enable_dynamic_offset")&&W?Math.max(Math.round((W-_.iO("rich_grid_dynamic_offset_anchor_width",1300))/100*_.iO("rich_grid_dynamic_offset_offset_per_100",10)),_.iO("rich_grid_dynamic_offset_lower_bound",-60)):0};
Wvk=function(W,B){switch(B){case 4:return 16;case 1:return W<528?16:W<1024?32:48;case 2:return(W>=528?16:8)/2;case 3:return(W<528?16:W<1024?32:48)+(W>=528?16:8)/2;default:return 0}};
BMy=function(W){var B=W.originalContainerWidth;var z=W.sizing;var G=W.standardUnit;if(W.isCompactList&&B<528)return 1;switch(z){case "STANDARD":return G;case "COMPACT":return G+1;case "EXTRA_COMPACT":return _.r("web_responsive_extra_compact_2x")?G*2:_.r("web_responsive_current")?G===1?2:G%2===0?G/2*3:G+2:G<4?G*2:Math.ceil(G*3/2);case "MINI":return G>1?G*2:3;default:return G}};
GMu=function(W){var B=W.containerWidth;var z=W.peek;var G=W.gutter;var Y=W.numItems;W=W.ignoreMaxWidthLimit;B=z?Math.max((B-z-G*Y)/Y,0):Math.max((B-G*(Y-1))/Y,0);return W?B:Math.min(B,zH0)};
_.$2=function(W){var B=W.containerWidth;var z=W.hasPeek;var G=W.sizing;var Y=W.marginSettings;var d=W.isCompactList;var E=W.enableFullBleedForSingleCol;var v=W.standardUnitMinWidth;G=G||"STANDARD";z=!!z;W=B>=528?16:8;var c=z?B>=528?48:24:0;Y=Wvk(B,Y);var J=Math.max(B-Y*2,0);v=_.r("kevlar_disable_min_width_override")?void 0:v;v=Math.min(Math.max(Math.floor((J-c+W)/((v!=null?v:YmD)+_.RF8(B)+W)),1),6);var g=(E=!!E&&v===1)||v===1&&G!=="STANDARD";z=z||g?J:Math.min(J,(zH0+W)*v-W);G=BMy({originalContainerWidth:B,
sizing:G,standardUnit:v,isCompactList:d});return{itemWidth:GMu({containerWidth:z,peek:c,gutter:W,numItems:G,ignoreMaxWidthLimit:g}),gutter:W,maxContainerWidth:z,numItems:G,margin:E?0:Y,contentMargin:Wvk(B,1),typographyBump:GMu({containerWidth:z,peek:c,gutter:W,numItems:v,ignoreMaxWidthLimit:g})>400&&!(d&&B<528),standardUnit:v}};
dW8=function(W){switch(W){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.pa8=function(W){if(W){var B;if((B=W.responsiveContainerConfiguration)==null?0:B.responsiveSize)return dW8(W.responsiveContainerConfiguration.responsiveSize);if(W.layoutSizing)switch(W.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"}}};
AdQ=function(W){if(W.fullbleed)return 1;switch(W.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
veR=function(W,B,z,G,Y,d,E,v){a:if(W===4&&G==="LOCKUP_CONTENT_TYPE_SOURCE")var c=1;else switch(W){case 3:c=1;break a;default:c=0}a:switch(W){case 4:d=!!(d&&d<100);break a;default:d=!1}a:switch(W){case 3:case 4:var J=G==="LOCKUP_CONTENT_TYPE_CHANNEL"||G==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:J=!1}a:switch(W){case 5:var g=!0;break a;case 4:g=!1;break a;default:g=!1}return{isOverlay:g,isCard:i52(G,E),sizing:B!=null?B:"STANDARD",typographyBump:z!=null?z:!1,isTiny:d,isCentered:J,isCollection:Ee0(G),
arrangement:c,addMarginForFullbleed:W===1&&G!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:W===1&&G==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:TMD(G,Y,v),disableRounding:W===5||i52(G,E)||W===1&&G==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:Ee0(G)?2:0,useLegacyTypography:!(v==null||!v.useLegacyTypography),useRichGridLegacyTypography:!(v==null||!v.useRichGridLegacyTypography)&&!_.r("web_enable_typography_bump"),compactMetadata:c===0&&G==="LOCKUP_CONTENT_TYPE_VIDEO"}};
Ee0=function(W){switch(W){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}};
i52=function(W,B){if(B&&W==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(W){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
TMD=function(W,B,z){if(B&&(z==null||!z.alwaysRespectPodcastShowAspectRatio||W!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(W){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}};
cdx=function(W){switch(W){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"}};
war=function(W){switch(W){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
V6k=function(W){switch(W){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}};
_.UM=function(W){if(W){var B;return((B=_.dO().resolve(_.Y8(_.YG)))==null?0:B())?W.darkThemeImage:W.image}};
t6D=function(W,B,z,G,Y,d){if(Y&&d&&B==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:Y,height:d};if(!z)return{};Y=z.size;z=z.allowFullWidth;if(B==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&z)return{fullWidth:!0};if(Y===void 0)return{};switch(W){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:Y,height:Y};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:Y,height:1/JdT*Y};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:Y*
ge2,height:Y};default:return(G==null?0:G.height)&&(G==null?0:G.width)?G.width/G.height>1?{maxWidth:Y*ge2}:{maxWidth:Y}:{maxWidth:Y}}};
sC2=function(W){var B;return W&&((B=_.UM(W.themedImage))!=null?B:W.image)};
PTx=function(W){var B;return W==null?void 0:(B=W.sources)==null?void 0:B[0]};
Z5D=function(W){switch(W){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.rdk=function(W){if(W)return"content-id-"+W};
kM8=function(W){switch(W.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"}}};
lQ2=function(W){var B=_.M$.currentPageSubTypeSelector(_.p8().getState())||"";return W?W+B:""};
CTX=function(W){switch(W){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
oeu=function(W){var B=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],z=_.A(_.g4(void 0,void 0,"JrqNsb")),G=z.next().value,Y=z.next().value,d=_.A(_.g4(void 0,void 0,"rWytse"));z=d.next().value;var E=d.next().value;d=_.A(_.g4(void 0,void 0,"DHRqxe"));var v=d.next().value,c=d.next().value;return{touchFeedbackEvents:{pointerUpEvent:G,pointerDownEvent:z,pointerLeaveEvent:v},touchFeedbackOnPointerUp:_.lF(function(J){IQv(_.ec(J),B)||(Y(J),E(void 0),c(void 0))}),
touchFeedbackOnPointerDown:_.lF(function(J){W==null||W(J);IQv(_.ec(J),B)||(E(J),Y(void 0),c(void 0))}),
touchFeedbackOnPointerLeave:_.lF(function(J){IQv(_.ec(J),B)||(c(J),E(void 0),Y(void 0))})}};
IQv=function(W,B){B=B===void 0?[]:B;B=[].concat(_.u7(B),["BUTTON".toString()]);W=_.A(W);for(var z=W.next();!z.done;z=W.next()){z=z.value;for(var G=_.A(B),Y=G.next();!Y.done;Y=G.next())if(z.tagName===Y.value)return!0}return!1};
hHr=function(W){switch(W){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"}};
H5x=function(W){return W.scrollHeight-W.offsetHeight>1};
Fvx=function(W,B){var z;return GG(W,((z=W.content)==null?void 0:z.length)||0,!B)};
jC2=function(W,B,z,G,Y,d){if(!B||Sm8){var E;return GG(W,((E=W.content)==null?void 0:E.length)||0,!0)}B=G.value;if(!z.value||!B||!W.content)return W;z=0;G=W.content.length;E=0;b5u||(b5u=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var v=b5u;for(Y=Y*d*v;z<=G;)d=Math.floor(z+(G-z)/2),v=GG(W,d)||W,B.firstChild&&(B.firstChild.textContent=v.content),B.scrollHeight>Y?G=d-1:(E=d,z=d+1);return GG(W,E)};
fQ2=function(W,B){var z,G;return(((z=W.content)==null?void 0:z.length)||0)>(((G=B.content)==null?void 0:G.length)||0)};
O5u=function(W,B,z,G,Y,d){var E=_.LG("truncated-text-content"),v=_.LG("truncated-text-content"),c=_.LG("button"),J=_.LG("button"),g=_.LG("button"),t=_.dO().resolve(_.py),P=_.A(_.IK(function(){return Fvx(W(),Y())})),Z=P.next().value,l=P.next().value;
P=_.A(_.IK(function(){return fQ2(W(),Z())}));
var b=P.next().value,O=P.next().value,K=null;_.ja(function(){function e(){if(E.value&&c.value&&g.value){var n=d()?W():jC2(W(),Y(),E,v,B(),z());l(n);requestAnimationFrame(function(){if(E.value&&c.value&&g.value){var L=H5x(E.value)||fQ2(W(),n);O(L);if(!G()){var By=H5x(E.value),gk=z(),vy=E.value,lx=c.value,Zv=g.value,VR=t==="rtl";if(vy&&lx){var ux=lx.offsetLeft;VR&&(ux=vy.offsetWidth-lx.offsetWidth-lx.offsetLeft);if(L){L=lx.offsetWidth;lx=vy.offsetWidth;var X2=By?lx-L-70:ux-70;gk="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
gk+"rem,\n      #000 "+gk+"rem,\n      #000 100%), linear-gradient(\n      to "+((VR?"left":"right")+",\n      #000 0px,\n      #000 "+X2+"px,\n      transparent "+(By?lx-L:X2+70)+"px)");vy.style.setProperty("-webkit-mask-image",gk);vy.style.setProperty("mask-image",gk)}else vy.style.setProperty("-webkit-mask-image",""),vy.style.setProperty("mask-image","");By?VR?(Zv.style.setProperty("left","0"),Zv.style.setProperty("right","unset")):(Zv.style.setProperty("left",""),Zv.style.setProperty("right",
"0")):VR?(Zv.style.setProperty("left","unset"),Zv.style.setProperty("right",ux+"px")):(Zv.style.setProperty("left",ux+"px"),Zv.style.setProperty("right","unset"))}}}})}}
var a,q;(a=K)==null||(q=a.stop)==null||q.call(a);a=new _.an(e,17);e();K=a},"KjwIxd");
_.jD(function(){l(Fvx(W(),Y()));O(fQ2(W(),Z()));var e=function(){b5u=void 0;var q,n;(q=K)==null||(n=q.fire)==null||n.call(q)};
if(window.ResizeObserver){var a=new ResizeObserver(e);a.observe(E.value);_.fR(function(){var q,n;(q=K)==null||(n=q.stop)==null||n.call(q);a.disconnect()})}else window.addEventListener("resize",e),_.fR(function(){var q,n;
(q=K)==null||(n=q.stop)==null||n.call(q);window.removeEventListener("resize",e)})});
return{isTruncated:b,displayText:Z,contentRef:E,hiddenRef:v,placeholderTruncationTextRef:c,hiddenTruncationTextRef:J,truncationTextRef:g}};
Xar=function(W){return{content:W!=null?W:""}};
Kvx=function(W){return _.$B(W.onTap)||_.x2(W.rendererContext)};
u0u=function(W){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:W.overflowMenuA11yLabel,onTap:function(B){B.preventDefault();B.stopPropagation();if(W.overflowMenuOnTap){var z=_.UV({elementsCommand:W.overflowMenuOnTap,forceNewState:!0});if(z==null?0:z.onclick)z.onclick(B)}}}};
_.Rn=function(W,B,z,G,Y){G=G===void 0?{}:G;if(!Y||Math.random()<5E-4){B=B||null;z=z||null;W=W instanceof Error?W:new _.oX(W);if(W.args)for(var d=_.A(W.args),E=d.next();!E.done;E=d.next())E=E.value,E instanceof Object&&(G=Object.assign({},E,G));G.category="H5 Ads Control Flow";B&&(G.slot=B?"slot:  "+B.slotType:"");z&&(G.layout=z?"layout:  "+z.layoutType:"",G.layoutId=z.layoutId);Y&&(G.known_error_aggressively_sampled=!0);W.args=[G];_.Oc(W)}};
_.eH2=function(W,B){_.c0(W,"yt-open-popup-action",[_.ps(B),W])};
_.Wk=function(W,B){_.eH2(W,_.Bg(B))};
xWR=function(W){if(!W)return"";if(mWR[W])return mWR[W];Bk||(Bk=_.I0("A"));Bk.href!==W&&$h(Bk,W);var B=Bk.pathname;mWR[W]=B.startsWith("/")?B:"/"+B;return mWR[W]};
DWT=function(){var W=xWR(window.location.href);if(W==="/")return"home";if(W.startsWith("/results"))return"search";if(W.startsWith("/watch"))return"watch";if(W.startsWith("/shorts"))return"shorts";if(W.startsWith("/hashtag"))return"hashtag";if(W.startsWith("/create_channel"))return"create_channel";if(W.startsWith("/@")||W.startsWith("/user/")||W.startsWith("/channel/"))return"channel";if(W.startsWith("/experiments"))return"experiments";if(W.startsWith("/sponsor_channel"))return"sponsorship";if(W.startsWith("/select_site"))return"settings";
if(W.startsWith("/locate"))return"locate";if(W.startsWith("/redeem"))return"redeem";if(W.startsWith("/musicpremium")||W.startsWith("/premium")||W.startsWith("/red"))return"premium";if(W.startsWith("/paid_memberships"))return"paid_memberships";if(W.startsWith("/oops"))return"oops";if(W.startsWith("/clip"))return"clip";var B;return(zm==null?void 0:(B=zm.response)==null?void 0:B.page)==="404"?"404":W.startsWith("/feed/history")?"history":W.startsWith("/feed/library")?"library":W.startsWith("/feed/subscriptions")?
"subscriptions":W.startsWith("/feed/trending")?"trending":W.startsWith("/feed/news_destination")?"news":W.startsWith("/playlist")?"playlist":W.startsWith("/minor_moment")?"minor_moment":W.startsWith("/playable/")||W.match("^/playables/(?!saved).")?"mini_app":W.startsWith("/playables")?"playables":W.startsWith("/create/live/join")?"open_in_app":W.startsWith("/feed/explore")?"explore":"browse"};
_.ner=function(){var W=zm==null?void 0:zm.response,B=W==null?void 0:W.endpoint;if(!B)return(W==null?void 0:W.page)==="watch"?"watch":DWT();var z;W=(z=_.k(B==null?void 0:B.commandMetadata,_.Z4))==null?void 0:z.webPageType;z=!1;if(W&&!QCR.includes(W))switch(W){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 G;return((G=_.k(B==null?void 0:B.commandMetadata,_.Z4))==null?0:G.url)&&xWR(_.k(B.commandMetadata,_.Z4).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var Y;return(B=(Y=_.k(B,_.oE))==null?void 0:Y.browseId)?ydT[B]||"browse":"browse";default:z=!0}if(_.k(B,_.Gm)||_.k(B,qmR))return"sponsorship";Y=xWR(window.location.href);if(Y.startsWith("/experiments"))return"experiments";if(Y.startsWith("/create_channel"))return"create_channel";
if(_.k(B,_.DD)&&Y.startsWith("/shorts"))return"shorts";if(_.k(B,_.DD)&&Y.startsWith("/watch"))return"watch";z&&(B=new _.oX("Unsupported mWeb page type",{pathname:Y,webPageType:W}),_.jy(B));return"browse"};
Yl=function(W,B,z,G){return W&&B?W!==z||B!==G?(_.Rn(Error("Nh"),void 0,void 0,{"stored-slot":W,"stored-layout":B,"latest-slot":z,"latest-layout":G}),!1):!0:!1};
$Wv=function(W,B,z){return W({targetId:B},function(G){return z.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},G,{contents:[z.continuationItems?_.k(z.continuationItems[0],NMQ):{}]}):z.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},G,{header:z.continuationItems?z.continuationItems[0]:void 0}):Object.assign({},G,{contents:z.continuationItems?z.continuationItems:[]})})};
Lv8=function(W,B,z,G){if(B=B.trackingParams){var Y,d=(Y=z.getScreenLayer)==null?void 0:Y.call(z);z=_.m1(d);Y=_.et(d);if(z&&Y){var E=_.XF(B);_.r("combine_ve_grafts")?W.graftServerVe(B,Y,d):_.$q(z,Y,E);G==null||G(E)}}};
M6Q=function(W){var B;return((B=UW2.get(W))==null?void 0:B.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
WY2=function(W,B){var z={type:B.slotType,controlFlowManagerLayer:aQr.get(B.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};B.slotEntryTrigger&&(z.entryTriggerType=B.slotEntryTrigger.triggerType);B.slotPhysicalPosition!==1&&(z.slotPhysicalPosition=B.slotPhysicalPosition);if(W){z.debugData={slotId:B.slotId};if(W=B.slotEntryTrigger)z.debugData.slotEntryTriggerData=RH0(W);W=B.slotFulfillmentTriggers;z.debugData.fulfillmentTriggerData=[];W=_.A(W);for(var G=W.next();!G.done;G=W.next())z.debugData.fulfillmentTriggerData.push(RH0(G.value));
B=B.slotExpirationTriggers;z.debugData.expirationTriggerData=[];B=_.A(B);for(W=B.next();!W.done;W=B.next())z.debugData.expirationTriggerData.push(RH0(W.value))}return z};
RH0=function(W,B){var z={type:W.triggerType};B!=null&&(z.category=B);W.triggeringSlotId!=null&&(z.triggerSourceData||(z.triggerSourceData={}),z.triggerSourceData.associatedSlotId=W.triggeringSlotId);W.triggeringLayoutId!=null&&(z.triggerSourceData||(z.triggerSourceData={}),z.triggerSourceData.associatedLayoutId=W.triggeringLayoutId);return z};
BAQ=function(W,B,z,G){B={opportunityType:B};W&&(G||z)&&(G=_.xH(G||[],function(Y){return WY2(W,Y)}),B.debugData=Object.assign({},z&&z.length>0?{associatedSlotId:z}:{},G.length>0?{slots:G}:{}));
return B};
zh0=function(W){return dh(W.opportunityAdapterMap).concat(dh(W.triggerAdapterMap)).concat(dh(W.fulfillmentAdapterFactoryMap)).concat(dh(W.slotAdapterFactoryMap)).concat(dh(W.layoutRenderingAdapterFactoryMap))};
dh=function(W){var B=[];W=_.A(W.values());for(var z=W.next();!z.done;z=W.next())z=z.value,z.isAdsControlFlowEventListener&&B.push(z);return B};
AE=function(W){var B=W.slotId,z=W.slotType,G=W.slotPhysicalPosition;return B===void 0?new pk("Cannot construct a slot due to the missing id.",{adSlotMetadata:W}):z===void 0?new pk("Cannot construct a slot due to the missing type.",{adSlotMetadata:W}):G===void 0?new pk("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:W}):{slotId:B,slotType:z,slotPhysicalPosition:G,managerLayer:"external",adSlotLoggingData:W.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new G9X}};
Ytk=function(W){var B=W.layoutId,z=W.layoutType;return B===void 0?new ie("Cannot construct a layout due to the missing id.",{adLayoutMetadata:W}):z===void 0?new ie("Cannot construct a layout due to the missing type.",{adLayoutMetadata:W}):{layoutId:B,layoutType:z,managerLayer:"external",adLayoutLoggingData:W.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new G9X,interactionLoggingAdsClientData:{}}};
dcu=function(W){if(W.querySelector("img")){var B=W.querySelector("img");B.addEventListener("error",function(){xSQ(B.src).then(function(z){(z=_.qZ(z).toString())?B.src=z:B.removeAttribute("src")}).catch(function(){B.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Tm=function(W,B){if(B&&(piy(B.viewableCommand)||piy(B.endOfSessionCommand))){var z=A$R(B==null?void 0:B.viewableCommand);B=A$R(B==null?void 0:B.endOfSessionCommand);if(!E_){var G=_.iO("custom_active_view_tos_timeout_ms");E_=G>0&&G!==36E5?new iPr(E5Q(),G):new iPr(E5Q())}TAv(E_,W);v5R(E_,W,z,B)}};
vk=function(W){E_&&TAv(E_,W)};
E5Q=function(){var W=_.eD("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(W==null?void 0:W.length)===2?W[1]:null};
piy=function(W){W=_.$B(W);return!(W==null||!W.loggingUrls)&&W.loggingUrls.length>0};
A$R=function(W){if(!W)return[];var B=[],z,G;((G=(z=_.$B(W))==null?void 0:z.loggingUrls)!=null?G:[]).forEach(function(Y){Y.baseUrl&&B.push(Y.baseUrl)});
return B};
c$u=function(W){if(_.r("stop_av_measurement_on_detach"))return function(){vk(W)}};
wit=function(W){return function(){_.r("stop_av_measurement_on_detach")&&vk(W)}};
VsD=function(W){if(_.r("stop_av_measurement_on_detach"))return function(){vk(W)}};
J$Q=function(W){return W.shorts.isDesktopSmallWidth};
_.g52=function(W){return W.shorts.isShortsActive};
_.ts8=function(W){return W.shorts.isWatchWhileMode};
_.ck=function(W){return W.shorts.isFullscreen};
_.wh=function(W){return W.shorts.isShortsPipActive};
PlT=function(W){var B,z;if(W=(B=_.k(W.reelsAdCardButtoned,soT))==null?void 0:(z=B.animatedRenderingConfig)==null?void 0:z.easeOutSeconds)return W+"s"};
r$x=function(W,B,z){return _.T(function(G){return G.return(new Promise(function(Y){var d=new Image;d.onload=function(){Y(new ZPR(W,B,z,d.naturalWidth,d.naturalHeight))};
d.src=z.toString()}))})};
k90=function(W,B){return Math.round(W/1E-5)===Math.round(B/1E-5)};
lzT=function(W,B){return Math.round(W/1E-5)===Math.round(B/1E-5)};
Clv=function(W,B){return W.year===B.year&&W.month===B.month&&W.day===B.day};
IzT=function(W,B){return W.year!==B.year?W.year<B.year:W.month!==B.month?W.month<B.month:W.day<B.day};
hhT=function(W){return W.day===o5X(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}};
HPT=function(){var W=new Date,B={year:W.getFullYear(),month:W.getMonth(),day:W.getDate()};return{start:B,end:{year:W.getFullYear()+2,month:W.getMonth(),day:W.getDate()},selectedDate:hhT(B)}};
FYD=function(W){return(new Wg(2)).format(new Date(W.year,W.month,W.day))};
St8=function(W){return{year:W.getFullYear(),month:W.getMonth(),day:W.getDate()}};
bPr=function(W,B){W=(W+(Number(B.utcOffsetSec)+(new Date(W*1E3)).getTimezoneOffset()*60))*1E3;B=St8(new Date(W));return{date:B,secondsSinceMidnight:Math.floor((W-(new Date(B.year,B.month,B.day)).getTime())/1E3)}};
jo0=function(W,B){B=B.months.findIndex(function(z){return z.year===W.year&&z.month===W.month});
return B>=0?B:void 0};
fzD=function(W){if(!W)return!1;try{if(W.host&&W.host.tagName==="YT-FORMATTED-STRING"&&W.host.id==="contenteditable-textarea"||W.nodeType===Node.ELEMENT_NODE&&W.tagName==="YTD-COMMENTBOX")return!0}catch(B){return!1}return fzD(W.parentNode)};
VQ=function(W){return W?!(W.tagName!=="A"||!W.href||!W.classList.contains("yt-simple-endpoint")):!1};
OPt=function(W){return W?W.tagName==="IMG"&&W.classList.contains("emoji"):!1};
Xi0=function(W,B,z){if(!W)return null;var G=VQ(W);if(G&&z)return B=W.pathname.substring(W.pathname.indexOf("/channel/")+9),document.createTextNode("@"+B);if(G&&!z)return document.createTextNode("");if(OPt(W))return z=W.alt,W=W.dataset.emojiId,!W&&B&&(B=_.JE(B,z))&&B.isCustomEmoji&&(W=B.emojiId),W?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+W+">"):document.createTextNode(z);G=W.cloneNode(!1);for(var Y=0;Y<W.childNodes.length;++Y){var d=Xi0(W.childNodes[Y],B,z);d&&G.appendChild(d)}return G};
gh=function(W){return W?VQ(W)?W:gh(W.lastChild):null};
KYx=function(W){return W?VQ(W)?W:KYx(W.firstChild):null};
uv8=function(W){if(!W)return null;for(var B=W.previousSibling;B;)if(B.nodeType===Node.ELEMENT_NODE&&B.nodeName==="BR")B=B.previousSibling;else if(B.nodeType===Node.TEXT_NODE&&/\s+/.test(B.textContent))B=B.previousSibling;else break;(B=gh(B))?W=B:W=(W=W.parentNode)?gh(W.previousElementSibling):null;return W};
ehR=function(W){if(!W)return null;for(var B=W.nextSibling;B;)if(B.nodeType===Node.ELEMENT_NODE&&B.nodeName==="BR")B=B.nextSibling;else if(B.nodeType===Node.TEXT_NODE&&/\s+/.test(B.textContent))B=B.nextSibling;else break;return(B=KYx(B))?B:ehR(W.parentNode)};
mck=function(W){var B=_.tE(),z=B.JSC$11349_getStartNode();if(!fzD(z.parentNode))return null;B=B.JSC$11349_getStartOffset();if(z.nodeType===Node.TEXT_NODE){var G=_.n3(z,VQ);if(G){if(W&&B===0||!W&&B===z.length)return G}else{if(W&&B===z.length)return!z||z.nodeName==="BR"||z.nextElementSibling&&_.s_(z.nextElementSibling,"display")==="block"?null:KYx(z.nextElementSibling);if(!W&&B===0)return z?gh(z.previousElementSibling):null}}if(z.nodeType===Node.ELEMENT_NODE)if(W){if(0<=B&&B<z.childNodes.length)return KYx(z.childNodes[B])}else if(0<
B&&B<=z.childNodes.length)return gh(z.childNodes[B-1]);return null};
xcT=function(W,B,z){if(!W)return null;if(W.nodeType===Node.TEXT_NODE)if(z){var G=uv8(W);if(G&&!/^\s+\S/.test(W.wholeText.substr(0,B)))return G}else if((G=ehR(W))&&!/\S\s+/.test(W.wholeText.substr(B,W.wholeText.length)))return G;return W.nodeType===Node.ELEMENT_NODE?z?uv8(W.childNodes[B]):ehR(W.childNodes[B]):xcT(W.parentNode,B,z)};
Dcv=function(W){if(W.hasChildNodes())switch(W.tagName){case "DIV":case "A":case "SPAN":var B="";for(W=W.firstChild;W;W=W.nextSibling)B+=Dcv(W);return B;default:return""}else switch(W.nodeType){case 3:return W.textContent;default:return""}};
Pk=function(W,B){return W.year===B.year&&W.month===B.month&&W.day===B.day};
ZK=function(W,B){return W.year!==B.year?W.year<B.year:W.month!==B.month?W.month<B.month:W.day<B.day};
Qo8=function(W){return{year:W.getFullYear(),month:W.getMonth(),day:W.getDate()}};
y$R=function(W){var B=D1u;B=B===void 0?D1u:B;B(new Date(W.year,W.month,W.day))};
rh=function(W){return Qo8(new Date(Number(W.seconds)*1E3))};
qtT=function(W){return W.year!==void 0&&W.month!==void 0&&W.day!==void 0};
n5R=function(W){return W.start!==void 0&&W.end!==void 0};
NAt=function(W){return n5R(W)?W.start:W};
$cx=function(W){return n5R(W)?W.end:void 0};
Uc0=function(W,B){for(var z=[],G=new Date(W.start.year,W.start.month);G.getFullYear()<W.end.year||G.getFullYear()===W.end.year&&G.getMonth()<=W.end.month;){var Y=z,d=Y.push,E=G.getFullYear(),v=G.getMonth(),c=W,J=B,g=void 0,t=[],P=Object.freeze({extraCssClass:"invisible"}),Z=new Date(E,v),l=Qo8(Z);Z=Z.getDay();for(var b=Qo8(new Date);l.month===v;){Z!==LYt&&g||(g=Array.from({length:7}).fill(P),t.push(g));var O={date:{year:E,month:v,day:l.day},extraCssClass:"",debugClass:""};O.extraCssClass=J(O.date,
l,b,c).trim();g[(Z-LYt+7)%7]=O;l=l.day===o5X(l.year,l.month)?l.month===11?{year:l.year+1,month:0,day:1}:{year:l.year,month:l.month+1,day:1}:{year:l.year,month:l.month,day:l.day+1};Z=(Z+1)%7}d.call(Y,{weeks:t,monthLabel:kl.SHORTMONTHS[v]+" "+E,year:E,month:v,monthLabelExtraCssClass:t[0][2]===P?"shift-down-label":""});G.setMonth(G.getMonth()+1)}return z};
MsD=function(W,B){B=B.months.findIndex(function(z){return z.year===W.year&&z.month===W.month});
return B>=0?B:void 0};
Rh8=function(W,B){a:{var z=z===void 0?[2,3]:z;z=_.A(z);for(var G=z.next();!G.done;G=z.next()){var Y=new Date;if((new azD(G.value)).parse(B,Y,{validate:!0})){Y.setHours(0,0,0,0);B=Y;break a}}B=null}if(!B)return{isValid:!1,value:void 0};B=Qo8(B);z=W.end;return ZK(B,W.start)||ZK(z,B)?{isValid:!1,value:void 0}:{isValid:!0,value:B}};
YQR=function(W){var B=WBR;B=B===void 0?BTu:B;var z=W.columnsToShow||[],G=zKT(W.columnDimensions,W.columnsToShow,W.leftFloatingColumns,B);return z.map(function(Y,d){var E=W.columns[Y];if(E===void 0)throw Error("Th");var v=G?G[d]:"";var c=W.getCustomTooltip?W.getCustomTooltip(Y,E.headerTooltipParagraphs):E.headerTooltipParagraphs;var J=GwQ(W,Y);return{type:Y,index:d,style:v,classes:J,headerName:E.headerName||"",headerIcon:E.headerIcon,headerTooltipParagraphs:c||[],headerTooltipHelpContext:E.headerTooltipHelpContext,
sortOrders:E.sortOrders||[],selectionState:E.isSelectionCheckbox?W.selectionState:void 0}})};
GwQ=function(W,B){var z=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],G=W.columns[B];if(G===void 0)return"";var Y=z.includes("DEFAULTS")&&G.cssClass?[G.cssClass]:[];if(z.includes("SORTING")){G.sortOrders&&G.sortOrders.length&&Y.push("sortable");if(W.sorting&&W.sorting.columnType===B)a:switch(W.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var d="column-sorted";break a;default:d=""}else d="";d&&Y.push(d)}z.includes("FLOATING")&&(B=W.columnsToShow.indexOf(B),W.leftFloatingColumns&&B<W.leftFloatingColumns&&
Y.push("floating-column"),W.leftFloatingColumns&&B===W.leftFloatingColumns-1&&Y.push("last-floating-column"));z.includes("RIGHT_ALIGN")&&G.rightAlignHeader&&Y.push("right-align");return Y.filter(function(E){return E}).join(" ")};
zKT=function(W,B,z,G){z=z===void 0?0:z;G=G===void 0?BTu:G;if(W){var Y=[],d=0;dN2(W,B,G).forEach(function(E,v){var c="min-width:"+E.minWidth+"px;padding-left:"+E.paddingLeft+"px;padding-right:"+E.paddingRight+"px;flex:"+E.flexGrow+" 0 "+E.minWidth+"px;";E.maxWidth!==Infinity&&(c=[c,"max-width:"+E.maxWidth+"px;"].join(""));d>0&&v<z&&(c=[c,"left:"+d+"px;"].join(""));Y.push(c);d+=E.minWidth+E.paddingLeft+E.paddingRight});
return Y}};
dN2=function(W,B,z){z=z===void 0?BTu:z;return B.map(function(G,Y){G=W&&W[G]||{};var d=Y===0?z.paddingLeftFirstColumn:z.padding;G.paddingLeft!==void 0&&(d=G.paddingLeft);Y=Y===B.length-1?z.paddingRightLastColumn:z.padding;G.paddingRight!==void 0&&(Y=G.paddingRight);return{paddingLeft:d,paddingRight:Y,minWidth:G.minWidth!==void 0?G.minWidth:z.minWidth,maxWidth:G.maxWidth!==void 0?G.maxWidth:z.maxWidth,flexGrow:G.flexGrow!==void 0?G.flexGrow:z.flexGrow}})};
pvR=function(W){var B=W.reduce(function(G,Y){var d=Y.columnId,E={};Y.headerText&&(E.headerName=_.zR(Y.headerText));Y.rightAlignHeader&&(E.rightAlignHeader=Y.rightAlignHeader);var v;if((v=Y.headerIcon)==null?0:v.iconType)E.headerIcon=_.lg(Y.headerIcon.iconType);G[d]=E;return G},{}),z=W.filter(function(G){return!G.hideColumn}).map(function(G){return G.columnId});
W=W.filter(function(G){return!!G.dimensions}).reduce(function(G,Y){G[Y.columnId]=Y.dimensions;
return G},{});
return{columns:B,columnsToShow:z,columnDimensions:W}};
_.Ak8=function(W){return W?W.simpleText?W.simpleText:W.runs?W.runs.map(function(B){return B.text}).join(""):"":""};
ckR=function(W){var B=W.data;var z=W.onTap;var G=W.isSelected;var Y=W.onFocusIn;if(!B)return{};W=iXr(B);G===void 0&&(G=B==null?void 0:B.isSelected);var d;return{text:Esy(B,W),startIcon:(d=B.icon)==null?void 0:d.iconType,state:G?0:2,type:0,onTap:TTk(B,z),accessibilityLabel:vsR(B,W),onFocusIn:function(){return Y==null?void 0:Y()}}};
Esy=function(W,B){if(!B)return W.text?_.Ak8(W.text):void 0};
TTk=function(W,B){return function(z){B==null||B(z,W)}};
iXr=function(W){W=W.style&&W.style.styleType;return!Sm8&&W==="STYLE_EXPLORE_LAUNCHER_CHIP"};
vsR=function(W,B){if(B){var z,G,Y;return(Y=(z=W.accessibilityData)==null?void 0:(G=z.accessibilityData)==null?void 0:G.label)!=null?Y:Esy(W,!1)}};
le=function(W){return{signalAction:{signal:W}}};
JkD=function(){return _.eD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?wv2:_.VG2};
gsr=function(W,B){W=W===void 0?"SOFT_RELOAD_PAGE":W;B=B===void 0?49504:B;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Aq(_.kq("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:B}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:W}}]}}}};
tGu=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Aq(_.kq("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:JkD()}};
sLT=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Aq(_.kq("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:JkD()}};
P3v=function(W,B){var z=_.Aq(_.kq("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),G=_.Aq(_.kq("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),Y={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Aq(_.kq("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};Y.serviceEndpoint=W?W:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[le("SOFT_RELOAD_PAGE")]}};return{title:z,bodyText:G,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:Y},
style:{value:B!=null?B:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
rkR=function(W){W=W===void 0?{}:W;return{title:_.Aq(W.localizedZeroStateTitleText===void 0?"":W.localizedZeroStateTitleText),bodyText:_.Aq(W.localizedZeroStateMessage===void 0?"":W.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Aq(W.localizedZeroStateButtonText===void 0?"":W.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[ZX2]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
lj2=function(W){W=W===void 0?{}:W;return{title:_.Aq(W.localizedOptInBannerTitleText===void 0?"":W.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Aq(W.localizedOptInMessage===void 0?"":W.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Aq(_.kq("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:_.Aq(_.kq("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:[kwX]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
os0=function(W,B){var z=B=B===void 0?{}:B;B=z.offlineTitleText===void 0?"":z.offlineTitleText;var G=z.offlineDescriptionText===void 0?"":z.offlineDescriptionText,Y=z.formattedSupplementalText,d=z.actionButtonText===void 0?"":z.actionButtonText,E=z.titleText===void 0?"":z.titleText;z=z.descriptionText===void 0?"":z.descriptionText;var v={title:d,accessibilityText:d,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};W||(E=B,z=G,v={title:d,accessibilityText:d,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.Aq(E),titleLength:E.length,overrideTitleMaxFontSize:30,subtitle:_.Aq(z),supplementalText:Y,primaryButton:{buttonViewModel:v},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[C3k]},darkTileImage:{thumbnails:[Ij0]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.FBQ=function(W,B,z,G,Y,d,E,v,c,J,g){Y=Y===void 0?!1:Y;d=d===void 0?!1:d;E=E===void 0?0:E;v=v===void 0?-Infinity:v;c=c===void 0?!1:c;J=J===void 0?!1:J;g=g===void 0?!1:g;var t=[],P=_.Aq(_.kq("SMART_DOWNLOADS",void 0,"Smart downloads")),Z=_.Aq(hKk(E,v,W.length));v=E=void 0;J?E={statementBannerRenderer:os0(g,G)}:Y?W.length>0?v=HXt(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.r("kevlar_manual_downloads_above"),P,Z):c?v={alertBannerViewModel:{heading:{content:z.localizedOptInBannerTitleText===
void 0?"":z.localizedOptInBannerTitleText},body:{content:z.localizedPromptMessage===void 0?"":z.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.kq("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.kq("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:_.UGD}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:d&&(v={backgroundPromoRenderer:{bodyText:_.Aq(_.kq("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"}}}):
d&&(v={alertBannerViewModel:{heading:{content:z.localizedOptInBannerTitleText===void 0?"":z.localizedOptInBannerTitleText},body:{content:z.localizedOptInMessage===void 0?"":z.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.kq("TURN_ON",void 0,"Turn on"),accessibilityText:_.kq("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}}}}}});z=_.Aq(_.kq("YOUR_DOWNLOADS",void 0,"Your downloads"));G=void 0;B.length>0?(G=void 0,_.r("kevlar_display_downloads_numbers")&&(G=_.Aq(_.lH("VIDEO_COUNT",B.length))),G=HXt(B,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,z,G)):Y||W.length||
J||(G={backgroundPromoRenderer:{bodyText:_.Aq(_.kq("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}}}});E?t.push({richSectionRenderer:{content:E}}):v&&!_.r("kevlar_manual_downloads_above")&&t.push({richSectionRenderer:{content:v,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
G&&t.push({richSectionRenderer:{content:G,loggingDirectives:{clientVeSpec:{uiType:51721}}}});v&&_.r("kevlar_manual_downloads_above")&&t.push({richSectionRenderer:{content:v,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(B.length>0||Y&&W.length>0&&!J)&&t.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Aq(_.kq("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:t}};
_.bXu=function(W){return SQ8(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.jLR=function(W){return SQ8(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
SQ8=function(W,B){var z=[];W=HXt(W,B,!0);z.push({richSectionRenderer:{content:W}});return{contents:z}};
HXt=function(W,B,z,G,Y){z=z===void 0?!1:z;var d="RESPONSIVE_SIZE_STANDARD";_.r("kevlar_modern_downloads_compact")?d="RESPONSIVE_SIZE_COMPACT":_.r("kevlar_modern_downloads_extra_compact")?d="RESPONSIVE_SIZE_EXTRA_COMPACT":_.r("kevlar_modern_downloads_tiny")&&(d="RESPONSIVE_SIZE_TINY");W={isExpanded:z,contents:Ck(W),entitySelectorType:B,responsiveContainerConfiguration:{responsiveSize:d}};G&&(W.title=G);Y&&(W.subtitle=Y);z||(_.r("kevlar_smart_downloads_show_more_button")?(W.showMoreButton={buttonRenderer:{accessibility:{label:_.kq("SHOW_MORE",
void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Aq(_.kq("SHOW_MORE",void 0,"Show more"))}},W.showLessButton={buttonRenderer:{accessibility:{label:_.kq("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.Aq(_.kq("SHOW_LESS",void 0,"Show less"))}}):(W.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.kq("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}}}},W.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.kq("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}}}},W.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.kq("VIEW_ALL",void 0,"View all"),accessibilityText:_.kq("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:_.dc("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:W}};
Ck=function(W){var B=[];W=_.A(W);for(var z=W.next();!z.done;z=W.next())if(z=z.value,jH0(z)){var G=B,Y=G.push;var d=void 0;if(z==null?0:(d=z.videoEntity)==null?0:d.videoId){d=NM(_.Y_().getState(),z.videoEntity.videoId);var E=_.Y_().getState();var v=_.sg(z.videoEntity.videoId,"mainVideoEntity");E=!!_.fA(E.entities)[v];E={videoId:z.videoEntity.videoId,title:id(z.videoEntity.title),shortBylineText:id(z.channelEntity.title),thumbnail:z.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:E&&_.r("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:ENx(z.videoEntity.videoId,d,z.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.kq("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};z.videoEntity.lengthSeconds&&(E.thumbnailOverlays=p7t(z.videoEntity.lengthSeconds,d));E.isWatched=d>0;_.r("kevlar_modern_downloads_page")&&(E.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:z.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.kq("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},E.badges=void 0);z=E}else z={};Y.call(G,{richItemRenderer:{content:{videoRenderer:z},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(bSr(z)){G=B;Y=G.push;var c=v=d=void 0,J=void 0,g=void 0,t=void 0,P=void 0,Z=void 0,l=void 0,b=void 0,O=void 0,K=void 0;E=z.mainPlaylistEntity.playlistId;var e=z==null?void 0:(K=z.mainPlaylistEntity)==null?void 0:(O=K.thumbnailStyleData)==null?void 0:(b=O[0])==null?void 0:(l=b.value)==null?void 0:(Z=l.collageThumbnail)==
null?void 0:Z.coverThumbnail;if(E&&e){Z=TEt(E);!_.r("enable_offline_playlist_page")&&(z==null?0:(P=z.mainPlaylistEntity)==null?0:P.videos)&&(P=z==null?void 0:(t=z.mainPlaylistEntity)==null?void 0:(g=t.videos)==null?void 0:g[0],g=_.c3(P).entityId,g=JSON.parse(g).videoId,g!==void 0&&(t=NM(_.Y_().getState(),g),Z=_.pA(g,E,void 0,void 0,t)));g=[];if(z==null?0:(J=z.mainPlaylistEntity)==null?0:(c=J.videos)==null?0:c.length)g=[x1Q(),Object.assign({},(v=m1Q(z==null?void 0:z.mainPlaylistEntity.videos.length))!=
null?v:{})];z={playlistId:E,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:e}},navigationEndpoint:Z,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:g,title:id(z.mainPlaylistEntity.title),shortBylineText:id(z==null?void 0:(d=z.channelEntity)==null?void 0:d.title),badges:[{metadataBadgeRenderer:{label:_.kq("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.r("kevlar_modern_downloads_page")&&(z.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:fj2,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:E,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.kq("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},z.badges=void 0)}else z=void 0;Y.call(G,{richItemRenderer:{content:{playlistRenderer:z},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return B};
hKk=function(W,B,z){W=W?OXt(W):"";B!==void 0&&isFinite(B)?B===0?B=_.kq("UPDATING",void 0,"Updating..."):(B=d80(new Date(B),new Date),B=_.kq("UPDATED_TIME",{relative_time:B},"Updated "+B)):B="";var G="";W&&B&&(G=" \u2022 ");if(z&&_.r("kevlar_display_downloads_numbers")){z=_.lH("VIDEO_COUNT",z);if(W||B)G=" \u2022 ";return z+G+W+G+B}return W+G+B};
Xv8=function(W){return l6D(W.entities).length};
_.KB8=function(W,B){var z=dW8(W.responsiveSize),G;W=!((G=W.responsiveMap)==null||!G.some(function(Y){return Y.containerSize==="CONTAINER_SIZE_NARROW"&&Y.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:B,sizing:z,enableFullBleedForSingleCol:!1,isCompactList:z==="COMPACT"&&W}};
u8T=function(W,B){return _.P3(W.entities,"votingEntity",B)};
I6=function(W){if(W){var B;return((B=_.dO().resolve(_.Y8(_.YG)))==null?0:B())?W.darkTheme:W.lightTheme}};
eK8=function(W,B){if(W.simpleText)return Object.assign({},W,{simpleText:B2(W.simpleText,B)});if(!W.runs)return W;for(var z=Object.assign({},W,{runs:[]}),G=0,Y=_.A(W.runs),d=Y.next();!d.done;d=Y.next())if(d=d.value,d.text)if(G+d.text.length<=B)z.runs.push(d),G+=d.text.length;else return z.runs.push(Object.assign({},d,{text:B2(d.text,B-G)})),z;return W};
mNk=function(W,B){return _.P3(W.entities,"chipBarStateEntity",B)};
xNu=function(W,B){return _.P3(W.entities,"chipEntity",B)};
QL0=function(W,B,z,G){return function(){var Y=DNv.has(W.displayType)&&W.selected,d=Y&&W.deselectCommand?W.deselectCommand:W.tapCommand;!d||Y&&G||_.aB(d,{form:{element:B==null?void 0:B.value}});z==null||z()}};
ykk=function(W){switch(W){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
qQR=function(W,B){return{triggeringElement:W,onDwellTriggeredFn:function(){var z={triggeringElement:W,loadVideoPreviewEventData:B},G=document.querySelector(".video-preview");G&&G.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:z}))},
onDwellEndFn:function(){var z=document.querySelector(".video-preview");z&&z.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
nsT=function(W,B){var z=_.dO().resolve(_.Y8(nJ0)),G=function(){var Y=B();return z&&Y?qQR(W.value,Y):null};
_.ja(function(){var Y=G();z&&Y&&Promise.resolve().then(function(){z.registerElement(Y)});
_.fR(function(){z&&Y&&Promise.resolve().then(function(){_.n2(z,Y)})})},"csPUge")};
$NR=function(W){var B=W.dataset.resizeObserverId;if(B)return B;B=""+NTu++;return W.dataset.resizeObserverId=B};
LBQ=function(W,B){var z=$NR(W);o6.has(z)||o6.set(z,new Set);o6.get(z).add(B);hE.has(z)&&B(Object.assign({},{target:W},hE.get(z)))};
UN2=function(W){W=_.A(W);for(var B=W.next();!B.done;B=W.next()){B=B.value;var z=$NR(B.target),G=Object.assign({},{target:B.target},hE.get(z));if(G!=null&&G.contentRect?G.contentRect.width!==B.contentRect.width||G.contentRect.height!==B.contentRect.height:1)for(hE.set(z,{borderBoxSize:B.borderBoxSize,contentBoxSize:B.contentBoxSize,contentRect:B.contentRect,devicePixelContentBoxSize:B.devicePixelContentBoxSize}),z=_.A(o6.get(z)||[]),G=z.next();!G.done;G=z.next())G=G.value,G(B)}};
aj8=function(){return Hk?Hk:Hk=new MGr(UN2)};
RKX=function(W,B){var z=$NR(W);o6.has(z)&&(o6.get(z).delete(B),o6.get(z).size===0&&(o6.delete(z),hE.delete(z),Hk.unobserve(W),delete W.dataset.resizeObserverId));o6.size===0&&Hk&&(Hk.disconnect(),Hk=void 0)};
By0=function(W,B){var z=_.dO().resolve(Gp);return WI8.map(function(G){return z.observe(W,B,G)})};
zJT=function(W){var B=_.dO().resolve(Gp);W.forEach(function(z){B.unobserveByKey(z)})};
_.d0T=function(W,B){var z=Object.assign({},GZx,B);B=_.A(bGD());var G=B.next().value,Y=B.next().value,d=function(E){var v=E.contentRect.height;if((E=E.contentRect.width)||v||z.canHaveZeroSize)G.width()===E&&G.height()===v||Y(G,{height:v,width:E})};
_.jD(function(){var E=W instanceof HTMLElement?W:W.value,v=Yxk(d,z.throttleMs),c=[];z.useVisibilityObserver&&(c=By0(E,function(J,g){requestAnimationFrame(function(){g==="visible"?(LBQ(E,v),aj8().observe(E)):RKX(E,v)})}));
c.length||(LBQ(E,v),aj8().observe(E));_.fR(function(){c.length&&(zJT(c),c.length=0);RKX(E,v)})});
return G};
Amu=function(W,B,z,G,Y){W=B?W.switchOffCommand:W.switchOnCommand;if(G&&Y)psk(W,z,Y);else{var d,E;(d=_.UV({elementsCommand:W}))==null||(E=d.onclick)==null||E.call(d,z)}};
psk=function(W,B,z){W=_.UV({elementsCommand:W,additionalCommandArgs:{commandController:{onSuccess:function(){z(!1)},
onServerError:function(){z(!1)}}}});
if(W==null?0:W.onclick)W.onclick(B),z(!0)};
Emx=function(W){if(W)return _.k(W,iBr)};
TyX=function(W,B){if(!((B==null?0:B.entitySelectorType)&&(B==null?0:B.entityKey)))return{};switch(B.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":var z=_.$G(W,B.entityKey);z=z==null?void 0:z.value;var G=!1;z==="CAPTIONS_UNAVAILABLE"&&(G=!0,z="");return Object.assign({},!!z&&{selectionText:{content:z}},!!z&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:G});case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.r("web_shorts_audio_track_picker")){W=
_.$G(W,B.entityKey);W=W==null?void 0:W.value;B=((z=_.ru())==null?void 0:z.getAudioTrack())||void 0;W=(B==null?void 0:(G=B.getLanguageInfo())==null?void 0:G.getName())||W;var Y;return Object.assign({},{selectionText:{content:W}},W&&!(B==null?0:(Y=B.getLanguageInfo())==null?0:Y.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}return{};default:return{}}};
vm0=function(W){var B=["A".toString(),"BUTTON".toString()];return function(z){var G=function(Y){_.mC(_.ec(Y),z,B)||W(Y)};
z.addEventListener("click",G);return function(){z.removeEventListener("click",G)}}};
cmT=function(W){return function(){return _.k(W(),_.FB)}};
tC2=function(W,B,z){if(B)return[ws0];switch(W){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Sg];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return z?[Sg]:[VCt,Sg];case "TRANSFER_STATE_PAUSED_BY_USER":return[Jmx,Sg];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[gmt,Sg];default:return[ws0]}};
slt=function(W,B,z,G){return tC2(W,B,G).map(function(Y){var d=Y.text,E=Y.iconType,v=Y.videoAction;Y=Y.playlistAction;d=d?{content:d}:void 0;E=E&&{sources:[{clientResource:{imageName:E}}]};var c=(0,_.mP.unsafeClone)(z);if(c){var J=_.k(c,_.C2),g=_.k(c,_.In);J&&v?J.action=v:g&&Y&&(g.action=Y)}return{title:d,leadingImage:E,rendererContext:c&&{commandContext:{onTap:{innertubeCommand:c}}}}})};
Ps8=function(W){W=_.x2(W.rendererContext);var B;return(B=_.k(W,_.In))==null?void 0:B.playlistId};
ZBR=function(W){var B;return(B=W.listItems)==null?void 0:B.some(function(z){var G;return _.Dp((G=_.k(z,_.f2))==null?void 0:G.rendererContext)})};
lWu=function(W){var B;return(B=W.listItems)==null?void 0:B.some(function(z){var G,Y,d=(Y=(G=_.k(z,rm8))==null?void 0:G.defaultListItem)!=null?Y:z;z=_.k(d,_.f2);return!!_.k(z==null?void 0:z.leadingAccessory,kZR)})};
om8=function(W){var B=W.element;var z=W.veType;var G=W.storedVisualElement===void 0?null:W.storedVisualElement;var Y=W.elementIndex===void 0?0:W.elementIndex;W=W.clientYouTubeData;var d=_.m1();d!==CsD&&(IWv.clear(),CsD=d);if(B.visualElement&&IWv.has(B.visualElement))return null;if(G&&IWv.has(G))return B.visualElement=G,null;z=_.FF(_.SK(),{veType:z,elementIndex:Y,clientYouTubeData:W});if(!z)return null;B.visualElement=z;IWv.add(z);return z};
_.be=function(W,B,z,G){z=z===void 0?null:z;G=G===void 0?gpX:G;var Y=Y===void 0?null:Y;xB(function(){if(B){z instanceof Function&&(z=z());var d=om8({element:B,veType:W,storedVisualElement:z,clientYouTubeData:void 0});d&&(PDR(B,Y),G(d))}})};
jg=function(W,B){if(W){switch(B){case 0:W=W.primaryTitleColor;break;case 1:W=W.secondaryTitleColor;break;case 2:W=W.surgeColor;break;case 3:W=W.section2Color;break;case 4:W=W.section3Color;break;default:return}if(W)return _.M_(W)}};
fk=function(W,B){if(W){switch(B){case 0:W=W.primaryTitleColor;break;case 1:W=W.secondaryTitleColor;break;case 2:W=W.surgeColor;break;case 3:W=W.section2Color;break;case 4:W=W.section3Color;break;default:return}if(W)return _.M_(W)}};
hJu=function(W){return W?_.aE(W):""};
HBX=function(W){return(W==null?void 0:W.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
FIv=function(W,B){return _.P3(W.entities,"videoOverviewAsyncDataEntity",B)};
SxR=function(W,B){var z;return"linear-gradient(to bottom, "+((z=B==null?void 0:B.map(function(G){var Y=W?G.darkThemeColor:G.lightThemeColor;return Y?_.aE(Y)+" "+((G==null?void 0:G.startLocation)||0)*100+"%":"transparent"}))==null?void 0:z.join(", "))+")"};
bBx=function(W,B,z,G,Y){if(!((G==null?0:G.height)&&(G==null?0:G.width)))return{size:0};var d=G.width;G=G.height;if(Y)return B==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||B==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&d>G?{size:312/ge2}:B==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(z!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||W!==1&&W!==2||B!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&B!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&B!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(B==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||B==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||G===d)switch(W){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(B==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||G>d)switch(W){case 1:case 3:return{size:240*JdT};default:return{size:360*JdT}}switch(W){case 1:case 2:return{size:1/ge2*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.jlu=function(W){if(!("matchMedia"in window))return _.nx(Error("Uh")),function(){return!1};
var B=window.matchMedia(W);W=_.A(_.g4(B.matches,void 0,"jLJc8e"));var z=W.next().value,G=W.next().value,Y=function(d){G(d.matches)};
B.addEventListener?(B.addEventListener("change",Y),_.fR(function(){B.removeEventListener("change",Y)})):B.addListener&&(B.addListener(Y),_.fR(function(){B.removeListener(Y)}));
return z};
fW8=function(W){return W==="IMAGE_BANNER_STYLE_INSET"||W==="IMAGE_BANNER_STYLE_UNKNOWN"};
OB8=function(){if(!("matchMedia"in window))return _.nx(Error("Uh")),function(){return 0};
var W=fx(function(){return window.matchMedia("(max-width: 527.9px)")}),B=fx(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),z=fx(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),G=fx(function(){return window.matchMedia("(min-width: 1024px)")}),Y=_.A(_.g4(W.matches,void 0,"og9kEc")),d=Y.next().value,E=Y.next().value;
Y=_.A(_.g4(B.matches,void 0,"ybDWCb"));var v=Y.next().value,c=Y.next().value;Y=_.A(_.g4(z.matches,void 0,"o0Gfh"));var J=Y.next().value,g=Y.next().value;Y=_.A(_.g4(G.matches,void 0,"yqUUgd"));var t=Y.next().value,P=Y.next().value,Z=fx(function(){return function(K){E(K.matches)}}),l=fx(function(){return function(K){c(K.matches)}}),b=fx(function(){return function(K){g(K.matches)}}),O=fx(function(){return function(K){P(K.matches)}});
_.jD(function(){W.addEventListener?(W.addEventListener("change",Z),B.addEventListener("change",l),z.addEventListener("change",b),G.addEventListener("change",O)):W.addListener&&(W.addListener(Z),B.addListener(l),z.addListener(b),G.addListener(O));_.fR(function(){W.removeEventListener?(W.removeEventListener("change",Z),B.removeEventListener("change",l),z.removeEventListener("change",b),G.removeEventListener("change",O)):W.removeListener&&(W.removeListener(Z),B.removeListener(l),z.removeListener(b),
G.removeListener(O))})});
return function(){return d()?1:v()?2:J()?3:t()?4:0}};
XsR=function(W){var B=0;W=_.A([W.title,W.metadata,W.actions,W.description,W.attribution]);for(var z=W.next();!z.done;z=W.next())z.value&&B++;return B};
KIv=function(W){return W===1||W===2?1:0};
eJ2=function(W){W=(new ub0).parse(W);return(new sh).render(W).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(B){var z=B.split(":").map(Number),G=0,Y=0;if(z.length===3)z=_.A(z),G=z.next().value,Y=z.next().value,z=z.next().value;else if(z.length===2)z=_.A(z),Y=z.next().value,z=z.next().value;else if(z.length===1)z=_.A(z).next().value;else throw Error("Vh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(G*3600+Y*60+z)+'" role="button">'+B+"</span>"})};
m08=function(W){W=_.A(W.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var B=W.next(),z={};!B.done;z={clickHandler$jscomp$5:void 0},B=W.next()){B=B.value;z.clickHandler$jscomp$5=function(Y){Y=Number(Y.target.getAttribute("data-time"));if(isNaN(Y))throw Error("Wh");var d;(d=_.ru())==null||d.seekTo(Y,!0)};
var G=function(Y){return function(d){d.key!=="Enter"&&d.key!=="Space"||(0,Y.clickHandler$jscomp$5)(d)}}(z);
B.setAttribute("tabindex","0");B.removeEventListener("click",z.clickHandler$jscomp$5);B.removeEventListener("keydown",G);B.addEventListener("click",z.clickHandler$jscomp$5);B.addEventListener("keydown",G)}};
x0D=function(){return _.w("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.w(O_,{percentWidth:100}),_.w(O_,{animationDelay:200}),_.w(O_,{animationDelay:400}),_.w(O_,{animationDelay:600}),_.w(O_,{animationDelay:800,percentWidth:60}),_.w("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.w(O_,{percentWidth:100}),_.w(O_,{animationDelay:200}),_.w(O_,{animationDelay:400}),_.w(O_,{animationDelay:600,percentWidth:50}))};
O_=function(W){return _.w("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(W.percentWidth===void 0?100:W.percentWidth)+"%"},_.w("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(W.animationDelay===void 0?0:W.animationDelay)+"ms"}))};
D0k=function(){var W=_.A(_.g4(function(){return""},void 0,"dXJHWc")),B=W.next().value;
return[function(){return B()()},
W.next().value]};
QlX=function(W,B){W=W?OXt(W):"";B!==void 0&&isFinite(B)?B===0?B=_.kq("UPDATING",void 0,"Updating..."):(B=d80(new Date(B),new Date),B=_.kq("UPDATED_TIME",{relative_time:B},"Updated "+B)):B="";var z="";W&&B&&(z=" \u2022 ");return _.Aq(W+z+B)};
nm2=function(W,B,z,G,Y,d){B=B===void 0?0:B;var E=ymR[B],v=E.title,c=E.iconType,J=E.topButtonRenderer,g=E.sectionClientVE;E=E.videoClientVE;var t;if(B!==1||W.length){z=[];W=_.A(W);for(G=W.next();!G.done;G=W.next()){var P=G.value;if(jH0(P))z.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:P.videoEntity.videoId,title:id(P.videoEntity.title),shortBylineText:id(P.channelEntity.title),thumbnail:P.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:P.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.kq("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:E}}}}}});else if(bSr(P)){G=z;var Z=G.push;var l=void 0,b=void 0,O=void 0,K=void 0,e=void 0,a=void 0,q=void 0,n=void 0,L=P.mainPlaylistEntity.playlistId,By=P==null?void 0:(n=P.mainPlaylistEntity)==null?void 0:(q=n.thumbnailStyleData)==null?void 0:(a=q[0])==null?void 0:(e=a.value)==null?void 0:(K=e.collageThumbnail)==null?void 0:K.coverThumbnail;K=TEt(L);if(!_.r("enable_offline_playlist_page")&&
(P==null?0:(O=P.mainPlaylistEntity)==null?0:O.videos)){b:{O=P==null?void 0:(b=P.mainPlaylistEntity)==null?void 0:b.videos;b=_.Y_().getState().entities;if(O!=null&&O.length&&b)for(O=_.A(O),e=O.next();!e.done;e=O.next())if(e=_.c3(e.value).entityId,(e=JSON.parse(e).videoId)&&rwD(b,e)==="TRANSFER_STATE_COMPLETE"){b=e;break b}b=""}b!==void 0&&(K=NM(_.Y_().getState(),b),K=_.pA(b,L,void 0,void 0,K))}b=cLR(_.kq("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),TEt(L));P=L&&By&&b?{playlistId:L,navigationEndpoint:K,
viewPlaylistText:b,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:By}},title:id(P.mainPlaylistEntity.title),shortBylineText:id(P==null?void 0:(l=P.channelEntity)==null?void 0:l.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:qx2,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:L,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.kq("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:E}}}:
void 0;Z.call(G,{gridPlaylistRenderer:P})}}E={gridRenderer:{items:z}};B===1&&(t=QlX(Y,d))}else if(G){var gk=_.Aq((Z=z==null?void 0:z.localizedPromptMessage)!=null?Z:"");E={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Aq(_.kq("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.UGD}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Aq(_.kq("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};t=QlX(Y,d)}else gk=_.Aq(_.kq("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
E={};return{contents:[{shelfRenderer:{title:v,titleAnnotation:t,icon:{iconType:c},subtitle:gk,content:E,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:J}]}}}}],loggingDirectives:{clientVeSpec:{uiType:g}}}};
Nyv=function(W,B,z,G,Y,d,E,v,c,J,g){z=z===void 0?{}:z;G=G===void 0?{}:G;Y=Y===void 0?!1:Y;d=d===void 0?!1:d;E=E===void 0?!1:E;v=v===void 0?!1:v;c=c===void 0?!1:c;J=J===void 0?0:J;g=g===void 0?-Infinity:g;if(!(B.length||W.length||Y||v))return d?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:rkR(z)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Aq(_.kq("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var t=[];W.length&&t.push(nm2(W,0));v?t.push({contents:[{statementBannerRenderer:os0(c,G)}]}):Y?t.push(nm2(B,1,z,E,J,g)):d&&t.push({contents:[{statementBannerRenderer:lj2(z)}]});(Y&&B.length||W.length)&&t.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Aq(_.kq("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return t.map(function(P){return{itemSectionRenderer:P}})};
XB=function(W,B){if(typeof W!=="object")return null;W=_.A(Object.entries(W));for(var z=W.next();!z.done;z=W.next()){var G=_.A(z.value);z=G.next().value;G=G.next().value;if(z===B)return z;if(G=XB(G,B))return z+"."+G}return null};
Kk=function(W){var B=W.content;return(W=W.styleRuns)&&B?{runs:W.map(function(z){var G={text:B.slice(z.startIndex,z.startIndex+z.length)};z.fontColor&&(G.textColor=z.fontColor);return G})}:{simpleText:B}};
U0y=function(W,B,z,G){var Y=$0T;G&&(W.quantity=G);if(!W.quantity||!W.maxQuantity)return{};G=W.minusButton;var d=W.plusButton,E,v,c,J;return{value:W.quantity,maxValue:W.maxQuantity,onChangeCallback:function(g){Y(W,g)},
minusLabel:(E=_.k(G,LID))==null?void 0:E.label,minimumReachedLabel:(v=_.k(G,LID))==null?void 0:v.limitReachedLabel,plusLabel:(c=_.k(d,LID))==null?void 0:c.label,maximumReachedLabel:(J=_.k(d,LID))==null?void 0:J.limitReachedLabel,disabled:B,onRemoveCommand:z}};
$0T=function(W,B){var z=W.quantityIncrementerEntityKey;if(z){var G={};G.quantity=B;_.AV(_.ue("quantityIncrementerEntity",z,G));W.onChangeCommand&&_.aB(W.onChangeCommand)}};
RJD=function(W,B){(W=MCT(W))&&((_.r("enable_mini_app_command_handler_mweb_fix")?0:B)?aWk.push({command:W,sourceData:{},commandContext:void 0}):_.dO().resolve(_.p4).resolveCommand(W))};
MCT=function(W){return _.k(W,_.NH)};
WX2=function(){var W=window.performance.timeOrigin+window.performance.now(),B=(new _.eg).setSeconds(W/1E9);return _.Wb(B,2,_.YY(W%1E9),0)};
zux=function(W,B){var z;W=(z=_.k(_.k(W,_.NH),B9T))==null?void 0:z.methodName;var G,Y;(z=window.youtubewebview||((G=window.webkit)==null?void 0:(Y=G.messageHandlers)==null?void 0:Y.youtubewebview))&&W&&(G=new mu,W=_.f3(G,1,W),W=_.Ob(W.JSC$12394_serializeBinary()),B=_.Ob(B),z.postMessage(W+","+B))};
xl=function(W,B){var z=_.k(_.k(W,_.NH),B9T);z&&(B&&(z.serializedAdditionalMetadata=_.Ob(B)),RJD(W,!0))};
GAr=function(W){switch(W){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"}};
Y$D=function(){return!!_.eD("ID_TOKEN")};
AR8=function(W){return W instanceof Error&&W.cause instanceof dxR&&W.cause.rpcErrorCode!==void 0?!pxR.includes(W.cause.rpcErrorCode):!0};
EVT=function(){return _.aJ(ieR,{authuser:""+(_.eD("SESSION_INDEX")||0)})};
DK=function(W,B,z,G){z=z===void 0?"MINI_APP_SDK_API_UNSPECIFIED":z;G=G===void 0?"":G;var Y=new _.oX;z={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:G,sdkApi:z};W instanceof Error&&(Y.message=W.message,Y.name=W.name,W.cause instanceof dxR&&W.cause.rpcErrorCode!==void 0&&(z.rpcErrorCode=W.cause.rpcErrorCode));var d;(d=B.onError)==null||d.call(B,{loggingError:Y,metadata:z})};
vVt=function(W,B,z,G){switch(W){case "MINI_APP_SOURCE_GAMESNACKS":return new QQ(B,z,G);default:return new T9X(B,z,G)}};
cRT=function(W){switch(W){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"}};
wxy=function(W){switch(W){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"}};
V_t=function(W){switch(W){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"}};
JRv=function(){return Math.floor(Math.random()*4)+1};
gV2=function(W,B,z,G){W=_.A(Object.entries(W));for(var Y=W.next(),d={};!Y.done;d={message$jscomp$993:void 0},Y=W.next()){var E=_.A(Y.value);Y=E.next().value;E=E.next().value;d.message$jscomp$993=E;B.push(setTimeout(function(v){return function(){G(!1);z(v.message$jscomp$993.text)}}(d),d.message$jscomp$993.delayMs));
Number(Y)>0&&B.push(setTimeout(function(){G(!0)},d.message$jscomp$993.delayMs-400))}};
t_2=function(W,B){var z=z===void 0?gpX:z;_.r("mweb_fix_monitor_visibility_after_render")?W&&xB(function(){PDR(W,B,z)}):xB(function(){PDR(W,B,z)})};
sSX=function(W,B){var z=document.createElement("ytd-engagement-panel-section-list-renderer");z.data=W;if(B==null?0:B.isPersistentPanel)z.isPersistentPanel=!0;return z};
kAk=function(W){PbQ||(PbQ=ZeX(new _.Ug(1,void 0,void 0,rR0),0));var B=PbQ.format(Math.floor(W));B=$O==="be"||$O==="bg"||$O==="es"||$O==="et"||$O==="hu"||$O==="ka"||$O==="lv"||$O==="pl"||$O==="pt-PT"||$O==="sq"?B.replace(new RegExp("^(\\d)"+rR0.GROUP_SEP.replace(".","\\.")+"(\\d+("+rR0.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):B;return W>=1E3&&W<=9999&&B[1]==="."&&($O==="sl"||$O==="it")?B.replace(".",""):B};
ltT=function(W,B){KSv("ytd-button-renderer",{data:W,className:B?B.className:"",overrides:B==null?void 0:B.buttonOverrides},e2x)};
oVt=function(W,B,z,G){if(W)return G=G||W.likeStatus,B?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:G==="LIKE",isDisabled:!W.likesAllowed,defaultIcon:{iconType:z},defaultText:G==="LIKE"?W.likeCountWithUnlikeText:W.likeCountText,toggledText:G==="LIKE"?W.likeCountText:W.likeCountWithLikeText,defaultNavigationEndpoint:Cbu(W,"LIKE"),defaultServiceEndpoint:ItR(W,"LIKE"),toggledServiceEndpoint:ItR(W,"INDIFFERENT"),defaultTooltip:_.zR(W.likeCountTooltipText),toggledTooltip:_.zR(W.likeCountTooltipText),
targetId:W.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:G==="DISLIKE",isDisabled:!W.likesAllowed,defaultIcon:{iconType:z},defaultText:G==="DISLIKE"?W.dislikeCountWithUndislikeText:W.dislikeCountText,toggledText:G==="DISLIKE"?W.dislikeCountText:W.dislikeCountWithDislikeText,defaultNavigationEndpoint:Cbu(W,"DISLIKE"),defaultServiceEndpoint:ItR(W,"DISLIKE"),toggledServiceEndpoint:ItR(W,"INDIFFERENT"),defaultTooltip:_.zR(W.dislikeCountTooltipText),
toggledTooltip:_.zR(W.dislikeCountTooltipText)}};
Cbu=function(W,B){if(B==="LIKE")return W.likeCommand;if(B==="DISLIKE")return W.dislikeNavigationEndpoint};
ItR=function(W,B){var z;return(z=W.serviceEndpoints)==null?void 0:z.find(function(G){var Y;return((Y=_.k(G,_.yQ))==null?void 0:Y.status)===B})};
_.FXt=function(W,B,z){return window.spf&&!_.r("web_disable_spfjs_client")?huX(W,B,z):HeQ(W,B)};
huX=function(W,B,z){var G=null,Y=(new _.Vx(function(d,E){var v={};if(B){v.method=B.method;var c=B.postParams||{};dMu(W,B)&&(c[_.eD("XSRF_FIELD_NAME")]=_.eD("XSRF_TOKEN"));v.postData=_.sA(c);B.type&&(v.type=B.type);c=B.headers}v.headers=RYX(W,c);_.r("debug_forward_web_query_parameters")&&(W=_.Glu(W,window.location.search));v.experimental_headers=v.headers;v.onError=function(J){J.err&&J.xhr&&(J.err.params={url:J.xhr.responseURL,response:J.xhr.responseText.substr(0,64)});E(J.err)};
v.onPartDone=function(J){z&&z.call(null,J.part)};
v.onDone=function(J){var g=S$2(J.response,"xsrf_token");BS(window.location.href,W)&&g&&_.uk("XSRF_TOKEN",g);if(g=S$2(J.response,"service_worker_killswitch"))_.uk("SERVICE_WORKER_KILLSWITCH",g),Rar();d(J.response)};
G=spf.request(W,v)})).then(bek);
Y.thenCatch(function(d){var E=d instanceof _.qF,v=d&&d.hasOwnProperty("params")&&d.params.response?d.params.response:"";d instanceof Error&&(v?E?D$k(d):v===')]}\'\n{"reload":"now"}'?D$k(d):(jSy(d,W,v),fty(d,v)?_.Oc(d):_.jy(d)):D$k(d));G&&G.abort()});
return Y};
bek=function(W){if(W.type==="multipart"){var B=W.timing;W=W.parts.reduce(function(z,G){Object.assign(z,G);return z},{});
W.timing=W.timing||{};Object.assign(W.timing,B);W.type="reduced"}return W};
HeQ=function(W,B){B=B===void 0?{}:B;var z=null,G=new _.Vx(function(Y,d){B.onFinish=function(E){if(E.readyState===XMLHttpRequest.DONE)if(E.status===200){if(E.responseType!=="json"){var v=E.response;v.substring(0,5)===")]}'\n"&&(v=v.substring(5));try{var c=JSON.parse(v)}catch(J){c=J}}else c=E.response;c instanceof Error?d(c):(v=S$2(c,"xsrf_token"),BS(window.location.href,W)&&v&&_.uk("XSRF_TOKEN",v),E=E.responseURL,window.performance&&window.performance.getEntriesByName?(v=window.performance.getEntriesByName(E).pop())?
E={responseStart:(0,_.Yb)()-(v.responseEnd-v.responseStart)}:(Math.random()<.01&&(v=Error("hi"),v.params=E,_.Oc(v)),E={responseStart:-1}):E={responseStart:0},c.timing=c.timing||{},Object.assign(c.timing,E),Y(c))}else d(Error("gi`"+E.status))};
(z=_.tC(W,B))||d(Error("gi`"+z.status))});
G.thenCatch(function(Y){Y instanceof Error&&(jSy(Y,W),fty(Y)&&(Y.level="WARNING"))});
_.r("cancel_pending_navs")&&G.thenCatch(function(){z.abort()});
return G};
S$2=function(W,B){var z=W[B],G=W.parts;W.type==="multipart"&&G&&(z=(W=G.find(function(Y){return B in Y}))&&W[B]);
return z};
jSy=function(W,B,z){var G=W.message||"";B={original:G,url:B};if(z)if(G=G.match(/position:?\s*(\d+)/)){G=G&&Number(G[1])?Number(G[1]):0;var Y=Math.max(G-25,0);B.position=G;B.response=z.substring(Y,G+25)}else B.response=z.substring(0,50);_.XC(W,B);try{W.message="JSON parse error"}catch(d){}};
fty=function(W,B){W=W.message||"";W=!!(W.indexOf("<")>=0||W.indexOf("end of ")>=0||W.indexOf("Unterminated string")>=0||W.indexOf("Unexpected EOF"));if(!W&&B)for(var z=B.length,G=!1,Y=0;Y<z;Y++)if(G&&B[Y]==="\\")Y++;else if(B[Y]==='"')G=!G;else if(B[Y]==="<"&&!G){W=!0;break}return W};
OeR=function(){return document.documentElement.hasAttribute("dark")};
_.Xxu=function(W,B){if(W!=="GFEEDBACK"&&W!=="GUIDED_HELP")_.xr(Error("ii`"+W));else{var z=_.dO().resolve(_.Y8(_.ij));if(z&&(z=z.getCurrentPage())&&z.getServiceTrackingParams&&(z=z.getServiceTrackingParams()))for(var G=0,Y;Y=z[G++];)if(Y.service===W){if(W=Y.params)for(z=0;G=W[z++];)B[G.key]=G.value;break}}};
_.KXy=function(W){var B=_.TN();B&&(B=B.getPlayer())&&(B.pauseVideo(),W.playback_id=B.getVideoData().cpn,W.eid=B.getVideoData().eventId,Object.assign(W,B.getFeedbackProductData()))};
uK0=function(){var W={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.eD("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(W.enableAnonymousFeedback=!0);_.eD("SESSION_INDEX")&&(W.authuser=String(_.eD("SESSION_INDEX")));_.r("enable_pageid_for_feedback")&&_.eD("DELEGATED_SESSION_ID")&&(W.pageId=String(_.eD("DELEGATED_SESSION_ID")));return W};
_.nk=function(W){_.r("enable_ypc_spinners")&&_.c0(W,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},W])};
_.NF=function(W){_.r("enable_ypc_spinners")&&_.c0(W,"yt-close-popup-action",["yt-loading-renderer"])};
eut=function(W){return new Promise(function(B,z){_.L8({verifyCommand:{recaptchaToken:W.recaptchaResponse}},{commandController:{onSuccess:function(G,Y){Y||z("ChallengeService did not return a response.");var d;B({challengeCompleted:(d=Y.verified)!=null?d:!1})},
onServerError:function(G,Y){z(Y)}}})})};
mxR=function(W,B,z,G){B({recaptchaResponse:G}).then(function(Y){Y.challengeCompleted?_.lO()?(z(3),_.dO().resolve(_.p4).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:W}})):z(2):z(4)},function(){z(4)})};
Dxr=function(W,B,z){_.NO(_.sY(xxR,_.eD("HL")),function(){var G;(G=window.grecaptcha)==null||G.ready(function(){var Y=window.grecaptcha;Y?(z(Y.render(W,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:mxR.bind(null,W,eut,B)})),B(1)):B(4)})})};
QSx=function(W,B){return function(){switch(B()){case 0:return W().captchaLoadingMessage;case 1:return W().challengeReason;case 3:return W().captchaSuccessfulMessage;case 2:return W().captchaCookieSetFailureMessage;case 4:return W().captchaFailedMessage;default:return W().challengeReason}}()};
_.$l=function(){if(!yRv){var W=document.querySelector("#player.skeleton");W&&(_.o0(W),yRv=!0)}};
_.nVk=function(){return q$t=WO8()};
LXk=function(){return _.T(function(W){return N9D!==void 0?W.return():W.yield($x2(),0)})};
$x2=function(){return _.T(function(W){if(W.nextAddress==1)return W.yield(zMt(),2);q$t=W.yieldResult;N9D=_.fg.addLowPriorityJob($x2,5E3);_.HG(W)})};
B62=function(W){var B=B===void 0?UxR:B;var z,G,Y=(z=W.responseContext)==null?void 0:(G=z.mainAppWebResponseContext)==null?void 0:G.trackingParam;if(!Y){B.increment("MISSING");var d,E,v,c,J,g;_.Oc(new _.oX("282054944_a",{wha:!!((d=W.responseContext)==null?0:(E=d.mainAppWebResponseContext)==null?0:E.loggedOut),aa7:((v=W.responseContext)==null?void 0:v.mainAppWebResponseContext)===void 0,xSa:W.responseContext===void 0,cp:(c=W.playabilityStatus)==null?void 0:c.contextParams,ixN:(((J=W.streamingData)==
null?void 0:J.formats)||[]).length>0,kHN:(((g=W.streamingData)==null?void 0:g.adaptiveFormats)||[]).length>0,os:!!W.offlineState,cotn:W.cotn}));return 2}z="";try{z=M_X(Y)}catch(Z){return B.increment("C_ERROR"),_.jy(Z),2}try{var t=_.atu(z);var P=Ruu(t)}catch(Z){return B.increment("P_ERROR"),_.jy(Z),2}P=_.TP(P,W_D,1,_.vC());Y=[];P=_.A(P);for(t=P.next();!t.done;t=P.next())G=t.value,t=G.getPath(),z=(0,_.mP.getValueByKeys)(W,t.split(".")),z=String(z===void 0||z===null?"":z),G=G.getValue()||"",d=/[+\-\/_]/g,
z.replace(d,"")!==G.replace(d,"")&&(B.increment("MISMATCH"),_.r("ab_mis_log_err")&&(z=new _.oX("282054944_p",{qPY:t,g:String(z),e:String(G)}),_.jy(z)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(t)||(t.match(/enforcementMessageViewModel/i)?Y.push(3):Y.push(2)));if(Y.length>0)return Math.max.apply(Math,_.u7(Y));B.increment("SUCCESS");return 1};
YaQ=function(W){var B=new Lk;if(W.interpreterJavascript){var z=_.OoD(W.interpreterJavascript);z=iNx(z).toString();var G=new zz0;_.f3(G,6,z);_.o3(B,1,G,SR)}else W.interpreterUrl&&(z=_.OE(W.interpreterUrl),z=_.jN(z).toString(),G=new _.Gb0,_.f3(G,4,z),_.o3(B,2,G,SR));W.interpreterHash&&_.U_(B,3,W.interpreterHash,SR);W.program&&_.U_(B,4,W.program,SR);W.globalName&&_.U_(B,5,W.globalName,SR);W.clientExperimentsStateBlob&&_.U_(B,7,W.clientExperimentsStateBlob,SR);return B};
MF=function(W){var B={};W=_.A(W.split("&"));for(var z=W.next();!z.done;z=W.next())z=z.value.split("="),z.length===2&&(B[z[0]]=z[1]);return B};
dau=function(W){return Number(W.t)||7200};
bxr=function(){if(_.r("bg_st_hr"))return"havuokmhhs-0";var W,B=((W=globalThis.performance)==null?void 0:W.timeOrigin)||0;return"havuokmhhs-"+Math.floor(B)};
pwD=function(){return new Promise(function(W){var B=window;B.ntpevasrs!==void 0?W(new a6(B.ntpevasrs)):(B.ntpqfbel===void 0&&(B.ntpqfbel=[]),B.ntpqfbel.push(function(z){W(new a6(z))}))})};
ASx=function(W){var B=W.poX.bind(W);_.BV("yt.aba.att",B);W=W.yeK.bind(W);_.BV("yt.aba.att2",W)};
ECx=function(W){switch(_.gO(W.input)){case _.dD(ibQ):var B={};return B.encryptedVideoId=W.innerTubeRequest.externalVideoId,B}return{}};
cSt=function(W){switch(_.gO(W.input)){case _.dD(ibQ):if(_.r("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.dD(T6v):if(_.r("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.dD(R6):if(_.r("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&W.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.dD(vCr):var B,z;if(_.r("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((z=_.k((B=W.config)==null?void 0:B.command,i$r))==null?0:z.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.VUr=function(W){var B;if(W.playlistVideoRenderer&&((B=W.playlistVideoRenderer)==null?0:B.engagementBar))return wwr(W.playlistVideoRenderer.engagementBar);if(_.k(W,Wh)){var z;if(W=(z=_.k(W,Wh))==null?void 0:z.engagementBar)return wwr(W)}return""};
wwr=function(W){if(!W)return"";W=_.k(W,_.JSk);if(W==null||!W.actions)return"";W=_.A(W.actions);for(W=W.next();!W.done;W=W.next()){W=_.k(W.value,_.gC0);var B=void 0;if((B=W)==null||!B.itemId)break;return W.itemId}return""};
_.tU2=function(W){var B;if(W.playlistVideoRenderer&&((B=W.playlistVideoRenderer)==null?0:B.videoId))return W.playlistVideoRenderer.videoId;if(_.k(W,Wh)){var z,G;if(W=(z=_.k(W,Wh))==null?void 0:(G=z.playlistItemData)==null?void 0:G.videoId)return W}return""};
_.sMt=function(W){var B;if(W.playlistVideoRenderer&&((B=W.playlistVideoRenderer)==null?0:B.voteCount))return W.playlistVideoRenderer.voteCount;if(_.k(W,Wh)){var z,G;if(W=(z=_.k(W,Wh))==null?void 0:(G=z.playlistItemData)==null?void 0:G.voteCount)return W}return 0};
_.Bh=function(W,B){return _.P3(W.entities,"flowStateEntity",B)};
Zb2=function(W,B,z,G){var Y=void 0;W=_.A(W[B.iconName]||[]);for(var d=W.next();!d.done;d=W.next()){d=d.value;var E=B.iconSize;var v=B.iconStyle;E=!E||E===d[2];var c=PGx[d[0]];G&&G!==d[1]||!E||v&&v!==c?v=!1:Y?(v=PGx[d[0]],v=!!B.iconStyle||v==="youtube_outline",E=Y.version<=d[1],v=(!!B.iconSize||d[2]===24)&&v&&E):v=!0;v&&(Y={name:B.iconName,style:PGx[d[0]],size:d[2],version:d[1],allowMirroring:!!d[3],url:z(B.iconName,d)})}return Y};
rS2=function(W,B,z,G){return W+(""+PGx[z[0]]+((G===void 0?0:G)?"_experimental":"")+"/"+B+"/v"+z[1]+"/")+(z[2]+"px.svg")};
kbu=function(W){return _.eD("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.eD("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":W};
lZ0=function(W,B){return rS2("https://fonts.gstatic.com/s/i/",W,B)};
CGT=function(W,B){return rS2("https://fonts.gstatic.com/s/i/",W,B,!0)};
IZT=function(W,B){return rS2("https://www.gstatic.com/youtube/img/icons/web/",W,B)};
hzR=function(W){var B=W.enabled;var z=W.itemPlaybackModel;var G=W.thumbnailElRef;var Y=W.containerElRef;var d=W.options;var E;_.ja(function(){var v=Y==null?void 0:Y.value;var c,J=(c=G())==null?void 0:c.value;c=z();var g=d();if(B&&c&&v&&J&&(g==null?0:g.thumbnail)){var t={data:c,hostElement:v},P,Z,l=_.r("web_explore_hub_on_hover")||_.r("web_client_explore_hub_on_hover")?[].concat(_.u7((P=g.thumbnailOverlays)!=null?P:[]),_.u7((Z=c.overlays)!=null?Z:[])):g.thumbnailOverlays||[],b,O;v={mediaRenderer:t,
lockupElement:v,thumbnailElement:J,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.$B((b=c.inlinePlayerData)==null?void 0:b.onVisible),navigationEndpoint:_.$B((O=c.inlinePlayerData)==null?void 0:O.onSelect),thumbnail:g.thumbnail,thumbnailOverlays:l,accessibilityText:g.accessibilityText||""},thumbnailSize:g.thumbnailSize,enableRounding:g.enableRounding}}}else v=void 0;if(b=v){var K;(K=E)==null||zH(K);E=q$(b);var e,a;((e=z())==null?0:(a=e.inlinePlayerData)==null?0:a.forceImpAutoplay)&&
oCt(E)}},"B33dEc");
_.fR(function(){var v;(v=E)==null||zH(v)})};
Hbr=function(W){W=atob(W);for(var B=[],z=0;z<W.length;z++)B.push(W.charCodeAt(z));return new Blob([new Uint8Array(B)],{type:"image/png"})};
Sa8=function(W,B,z,G){G=G===void 0?"INSERTION_POSITION_UNSPECIFIED":G;return W({targetId:B},function(Y){var d,E=(d=Y.contents)!=null?d:[];d=z!=null?z:[];var v=F_Q(E);switch(G){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},Y,{contents:[].concat(_.u7(E.slice(0,v)),_.u7(d),_.u7(E.slice(v+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},Y,{contents:[].concat(_.u7(d),_.u7(E))});case "INSERTION_POSITION_LAST":return Object.assign({},Y,{contents:[].concat(_.u7(E),_.u7(d))});
default:return Y}})};
jM2=function(W,B,z,G,Y){Y=Y===void 0?"RELATIVE_INSERTION_POSITION_AFTER":Y;return W({targetId:B},function(d){var E,v=(E=d.contents)!=null?E:[];E=bby(v,z);if(E<0)return d;E=Y==="RELATIVE_INSERTION_POSITION_BEFORE"?E:E+1;return Object.assign({},d,{contents:[].concat(_.u7(v.slice(0,E)),_.u7(G),_.u7(v.slice(E)))})})};
F_Q=function(W){var B=W.findIndex(function(z){return _.k(z,_.GH)});
return B>=0?B:W.length};
bby=function(W,B){return W.findIndex(function(z){a:{z=_.A(Object.values(z));for(var G=z.next();!G.done;G=z.next())if((G=G.value)&&G.targetId){z=G.targetId;break a}z=""}return z===B})};
Obv=function(W,B,z){return W({targetId:B},function(G){var Y,d=(Y=G.contents)!=null?Y:[];return Object.assign({},G,{contents:fZT(d,z)})})};
fZT=function(W,B){return W.filter(function(z){var G=B.includes;a:{z=_.A(Object.values(z));for(var Y=z.next();!Y.done;Y=z.next())if((Y=Y.value)&&Y.targetId){z=Y.targetId;break a}z=""}return!G.call(B,z||"")})};
_.XwQ=function(W,B){return{engagementPanelSectionListRenderer:{panelIdentifier:W,identifier:B,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
K_t=function(W,B){W=W.getAvailableAudioTracks();if(W.length)return W==null?void 0:W.find(function(z){var G;return(z==null?void 0:(G=z.getLanguageInfo())==null?void 0:G.getId())===B})};
_.ezX=function(W){var B,z=(B=W.getOption("captions","tracklist",{includeAsr:!0}))!=null?B:[];return z=udy(z,W)};
maQ=function(W){return W.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
udy=function(W,B){B=maQ(B);if(B==null||!B.length)return W;var z=B.filter(function(E){return E});
B=W.filter(function(E){return E.languageCode.startsWith("en")});
z=_.A(z);for(var G=z.next();!G.done;G=z.next())if(G=G.value,B.length){var Y=B[0],d=Object.assign({},Y);Y.languageCode!==G.languageCode&&(d.displayName=Y.languageName+" >> "+G.languageName,d.translationLanguage=G,W.push(d))}return W};
xa0=function(W,B,z){W=_.ezX(W);if(W.length)return z?W.find(function(G){if(typeof(G==null?void 0:G.translationLanguage)==="object"){var Y;return((Y=G.translationLanguage)==null?void 0:Y.languageCode)===B}return!1}):W==null?void 0:W.find(function(G){return G.languageCode===B})};
Dak=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
QMQ=function(W){var B=W.getAvailableAudioTracks();if(B!=null&&B.length){var z=W.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.u7(B.map(function(G){return{listItemViewModel:{title:{content:G.getLanguageInfo().getName()},isSelected:G.getLanguageInfo().getId()===(z==null?void 0:z.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:G.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
yS2=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
qaQ=function(W){var B=yS2(W);if(B==null?0:B.length)return B;W.loadModule("captions");return yS2(W)};
nCX=function(W){var B=W.getOption("captions","track");if(B)return B;W.loadModule("captions");return W.getOption("captions","track")};
$ak=function(W){var B=qaQ(W);if(B!=null&&B.length){var z=nCX(W),G;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.kq("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(z==null?0:z.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.u7(B.map(function(Y){return{listItemViewModel:{title:{content:Y.displayName},
isSelected:Y.displayName===(z==null?void 0:z.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Y.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.kq("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!z.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!z.translationLanguage&&{selectionText:{content:(z==null?void 0:(G=z.translationLanguage)==null?void 0:G.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[N6X(W)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
N6X=function(W){var B=maQ(W);if(B==null||!B.length)throw Error("Hi");var z=nCX(W);W=B.filter(function(G){return!G.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.u7(W.map(function(G){var Y;return{listItemViewModel:{title:{content:G.languageName},isSelected:G.languageName===(z==null?void 0:(Y=z.translationLanguage)==null?void 0:Y.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:G.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
aZx=function(W){return new Promise(function(B,z){if(W===void 0)_.jy(Error("Li"),"ERROR"),z(Error("Li"));else{z=new _.L_R;var G=_.Ua2();z=z.init();var Y=_.MUR(_.eD("YPC_MB_URL"),!0);Promise.all([z,Y]).then(function(){var d=payments.business.integration.ClientTokenFactory.createClientToken(W,G);B(d)})}})};
BKD=function(W,B,z,G,Y,d,E){var v=_.zN();z=z.replace(/-/g,"+").replace(/_/g,"/");var c=_.IP().get("hl"),J=_.Yn(_.po),g=B==null?void 0:B.element;g&&_.nk(g);RzX(B,!0);_.Wpx(J,z,v.resolve,function(){g&&_.NF(g)},function(t){g&&_.NF(g);
v.reject(t)},c,G?function(t){G&&_.BA(W,G,{backend_analytics:t})}:void 0,v.resolve,Y,d,E);
return v.promise};
RzX=function(W,B){!(W=W==null?void 0:W.element)||W.tagName!=="YT-BUTTON-RENDERER"&&W.tagName!=="YTD-BUTTON-RENDERER"||(W.disabled=B)};
ziD=function(){var W=_.kq("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Aq(W),actionButton:{buttonRenderer:sLT()}}},popupType:"TOAST"}};
GDT=function(){var W=_.kq("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Aq(W),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
YP8=function(W){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:W}]}}};
dn=function(W,B,z,G){var Y;return _.T(function(d){if(d.nextAddress==1)return _.kA(d,2),d.yield(W,4);if(d.nextAddress!=2)return(Y=_.SL(B.getState().entities).length>0)?d.return({title:_.Aq(_.kq("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Aq(_.kq("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:tGu()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
d.return(P3v(z,G));_.h6(d);return d.return(P3v(z,G))})};
dB2=function(W,B){return B?B==="PPSV"||CiT(W,B):!1};
pF0=function(W){W.responseContext||(W.responseContext={});W.responseContext.maxAgeSeconds=0;return W};
At=function(W){var B;return _.T(function(z){return z.nextAddress==1?z.yield(A_k(W,"service:topbar:fallback"),2):(B=z.yieldResult)&&_.pQ(B)?z.return(pF0(_.pQ(B))):z.return()})};
iED=function(W){var B;return _.T(function(z){return z.nextAddress==1?z.yield(A_k(W,"service:downloads_settings:fallback"),2):(B=z.yieldResult)&&_.pQ(B)?z.return(B):z.return()})};
A_k=function(W,B){var z;return _.T(function(G){if(G.nextAddress==1)return W?G.yield(W.get(B),2):G.return();z=G.yieldResult;return!z||!_.pQ(z)||!isNaN(Number(z.data.expireTimestampMs))&&z.isExpired()?G.return():G.return(z)})};
EvD=function(W){var B=_.dO().resolve(ir).getState().entities;return W.playlistId?dB2(B,W.playlistId):!1};
TKX=function(W,B){var z;if(B==null?0:(z=B.requestTemplate)==null?0:z.panelId)W.panelId=B.requestTemplate.panelId;var G;if(B==null?0:(G=B.requestTemplate)==null?0:G.params)W.params=B.requestTemplate.params};
c_y=function(){if(vv0)return vv0();var W=!_.r("idb_response_store_auth_killswitch"),B={};vv0=GU("yt-it-response-store",{objectStores:(B.ResponseStore={addedAtVersion:1},B),shared:!W,upgrade:function(z,G){G(1)&&(z=xb(z,"ResponseStore",{keyPath:["key","clientName"]}),D_(z,"byExpiration","expireTimestampMs"),D_(z,"byInterface","clientName"))},
version:1});return vv0()};
wFy=function(W){return _.L4(c_y(),W)};
J_t=function(W,B){var z;return _.T(function(G){return G.nextAddress==1?G.yield(_.zU(),2):(z=G.yieldResult)?G.return(new VuT(W,B,z)):G.return()})};
gvX=function(W){var B=Object.keys(W)[0];if(B)return W.screenExit&&(B=B+";"+W.screenExit.screen),B};
tuv=function(W){var B=new Map;W=_.A(W);for(var z=W.next();!z.done;z=W.next())z=z.value,z!=null&&(B.has(z.taskType)||B.set(z.taskType,[]),B.get(z.taskType).push(z));return B};
szr=function(W){W=[].concat(_.u7(W)).sort(function(z,G){return z-G});
var B=Math.floor(W.length/2);return W.length%2?W[B]:(W[B-1]+W[B])/2};
r_R=function(W,B){W=W===void 0?o2R:W;B=B===void 0?{}:B;_.BV("yt.logging.errors.log",_.jy);Cjt();Pck(b20(),B);window.onerror=W;ZEv=IpD;window.addEventListener("unhandledrejection",function(z){if(z.reason instanceof Error){var G=z.reason;_.XC(G,{source:"unhandledrejection"});G.name==="AbortError"&&(G.level="WARNING")}IpD(z.reason);z.preventDefault()})};
_.kDR=function(W){var B,z,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a,q,n,L,By,gk,vy,lx,Zv,VR,ux,X2,WQ,XH,wU,RD,sF,Vd,bR,Sf,UF,pu;return _.T(function(BQ){if(BQ.nextAddress==1)return BQ.yield(_.I_(W,{mode:"readonly",enableRetries:!0},function(Z9){return o_(Z9,"playbackData").then(function(cn){var rU=cn.map(function(T6){return T6.transfer}).filter(function(T6){return!!T6}),Gq=cn.map(function(T6){return T6.offlineVideoPolicy}).filter(function(T6){return!!T6}),Td=cn.filter(function(T6){return!!T6.key}).map(function(T6){return _.sg(_.c3(T6.key).entityId,
"downloadStatusEntity")});
rU=o_(Z9,"transfer",rU);Gq=o_(Z9,"offlineVideoPolicy",Gq);Td=o_(Z9,"downloadStatusEntity",Td);var Bn=rU.then(function(T6){T6=T6.reduce(function($M,Pn){(Pn==null?0:Pn.offlineVideoStreams)&&$M.push.apply($M,_.u7(Pn.offlineVideoStreams));return $M},[]).filter(function($M){return!!$M});
return o_(Z9,"offlineVideoStreams",T6)});
return Do.all([rU,Gq,Bn,Td]).then(function(T6){var $M=_.A(T6);T6=$M.next().value;var Pn=$M.next().value;var FH=$M.next().value;$M=$M.next().value;return[cn,T6,Pn,FH,$M]})})}),2);
if(BQ.nextAddress!=3)return B=BQ.yieldResult,BQ.yield(_.I_(W,{mode:"readonly",enableRetries:!0},function(Z9){return o_(Z9,"mainDownloadsListEntity").then(function(cn){var rU,Gq;return(Gq=(rU=cn[0])==null?void 0:rU.downloads)!=null?Gq:[]})}),3);
z=BQ.yieldResult;G=_.A(B);Y=G.next().value;d=G.next().value;E=G.next().value;v=G.next().value;c=G.next().value;J=Y;g=d;t=E;P=v;Z=c;l={};b={};O={};K={};e={};a=[];q=_.A(g);for(n=q.next();!n.done;n=q.next())(L=n.value)&&(l[L.key]=L);By=_.A(t);for(gk=By.next();!gk.done;gk=By.next())(vy=gk.value)&&(b[vy.key]=vy);lx=_.A(Z);for(Zv=lx.next();!Zv.done;Zv=lx.next())(VR=Zv.value)&&(O[VR.key]=VR);ux=_.A(P);for(X2=ux.next();!X2.done;X2=ux.next())(WQ=X2.value)&&(K[WQ.key]=WQ);XH=_.A(z);for(wU=XH.next();!wU.done;wU=
XH.next())RD=wU.value,sF=void 0,e[(sF=RD.videoItem)!=null?sF:""]=!0,RD.videoItem&&(bR=Vd=void 0,Sf=(bR=(Vd=_.c3(RD.videoItem))==null?void 0:Vd.entityId)!=null?bR:"",a.push({externalVideoId:Sf}));UF=J.filter(function(Z9){if(!Z9||!Z9.key||!Z9.offlineVideoPolicy)return!1;Z9=_.c3(Z9.key).entityId;Z9=_.sg(Z9,"downloadStatusEntity");var cn;return!(Z9&&((cn=O[Z9])==null?void 0:cn.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
pu=UF.map(function(Z9){var cn=l[Z9.transfer],rU=[];if(cn==null?0:cn.offlineVideoStreams)for(var Gq=_.A(cn.offlineVideoStreams),Td=Gq.next();!Td.done;Td=Gq.next())(Td=K[Td.value])&&rU.push(Td);Gq=b[Z9.offlineVideoPolicy];Td=e;var Bn=Z9==null?void 0:Z9.playerResponseTimestamp,T6=_.c3(Gq.key).entityId;Z9=_.sg(T6,"mainVideoEntity");if(Gq.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var $M="OFFLINE_VIDEO_STATE_DISABLED";Gq.expirationTimestamp&&Number(Gq.expirationTimestamp)<Date.now()/1E3&&($M="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Gq.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")$M="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(cn==null?void 0:cn.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":$M="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":$M="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":$M="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":$M="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":$M="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":$M="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:$M="OFFLINE_VIDEO_STATE_UNKNOWN"}if($M==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(cn==null?void 0:cn.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":$M="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":$M="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":$M=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}T6={id:T6,videoState:$M};if(cn==null?0:cn.cotn)T6.cotn=cn.cotn;if(cn==null?0:cn.maximumDownloadQuality)T6.selectedVideoQuality=cn==null?void 0:cn.maximumDownloadQuality;if(cn==null?0:cn.lastProgressTimeMs)T6.lastProgressTimeMs=cn.lastProgressTimeMs;Bn&&(T6.playerResponseSavedTimeMs=String(Number(Bn)*1E3));cn=String;Bn=0;rU=_.A(rU);for($M=rU.next();!$M.done;$M=rU.next())if($M=$M.value,$M.streamsProgress){$M=_.A($M.streamsProgress);for(var Pn=$M.next();!Pn.done;Pn=
$M.next()){var FH=void 0;Bn+=Number((FH=Pn.value.numBytesDownloaded)!=null?FH:0)}}T6.downloadedBytes=cn(Bn);T6.selectedOfflineMode=Td[Z9]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Gq.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(T6.offlinePlaybackDisabledReason=Gq.offlinePlaybackDisabledReason);return T6});
return BQ.return({offlineVideos:pu,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:a}}})})};
l7k=function(){var W;return _.T(function(B){return B.nextAddress==1?B.yield(_.kO(),2):(W=B.yieldResult)?B.return(_.kDR(W)):B.return({state:"PES Unavailable"})})};
ovu=function(){var W,B,z,G;return _.T(function(Y){if(Y.nextAddress==1)return Y.yield(_.kO(),2);if(Y.nextAddress!=3)return(W=Y.yieldResult)?Y.yield(Cc2(W),3):Y.return({state:"PES Unavailable"});B=Y.yieldResult;z={};G=B.reduce(function(d,E){d[E.key]=E;return d},z);
return Y.return(I7t(G))})};
I7t=function(W){for(var B={},z=[],G=_.A(Object.keys(W)),Y=G.next();!Y.done;Y=G.next()){var d=Y.value;Y=W[d];var E=void 0;if(((E=Y)==null?void 0:E.entityType)==="mainVideoEntity"){delete W[d];var v=Y.data;Y={};if(v){var c=void 0;E=(c=v.videoId)!=null?c:"vid-"+d;d=W;Y.video=v;delete Y.video.formattedDescription;delete Y.video.thumbnail;v.owner&&(c=d[v.owner],c==null?0:c.data)&&(delete d[c.key],Y.video.owner=c.data,delete Y.video.owner.avatar);if(v=v.downloadState)if(c=d[v],c==null?0:c.data)if(delete d[v],
v=c.data.playbackData)if(c=d[v],c!=null&&c.data){delete d[v];v=c.data;delete v.playerResponseJson;Y.playbackData=v;if(v.transfer&&(c=d[v.transfer],c==null?0:c.data)){delete d[c.key];var J=c.data;Y.transfer=J;c=[];J=_.A(J.offlineVideoStreams||[]);for(var g=J.next();!g.done;g=J.next())if(g=d[g.value])delete d[g.key],c.push(g.data);c&&(Y.streams=c)}(v=v.offlineVideoPolicy)&&(v=d[v])&&v.data&&(delete d[v.key],Y.offlineVideoPolicy=v.data)}B[E]=Y}}else Y&&Y.entityType==="offlineOrchestrationActionWrapperEntity"&&
Y.data&&(delete W[Y.key],E=Y.data,d=void 0,z.push({id:E.rootActionId,type:((d=E.actionProto)==null?void 0:d.actionType)||"",entity:Y}))}B.wrapperEntities=z;Object.keys(W).length>0&&(B.unknownKeys=W);return B};
hik=function(){var W,B,z,G,Y,d,E,v,c;return _.T(function(J){if(J.nextAddress==1)return W=!!(new _.el("")).expiringStorage_,G=!!((B=_.Yt.crypto)==null?0:(z=B.subtle)==null?0:z.importKey),Y=!!_.Yt.BroadcastChannel,d=!!_.Yt.navigator.locks,J.yield(YlX(),2);E=J.yieldResult;v=W&&G&&Y&&d&&E;c={isSupported:v};if(v)return J.return(c);c.missingBrowserFeatures=[];E||c.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");W||c.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
G||c.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");Y||c.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");d||c.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return J.return(c)})};
HER=function(){var W;return!((W=Eo?Eo:null)==null||!W.window)};
_.SP8=function(W){if(_.F2()&&_.VQy("Chromium")>=120){var B=_.Fp2().mediaSession;try{B.setActionHandler("enterpictureinpicture",function(){W()})}catch(z){}}};
bEv=function(W){for(var B=[],z=_.A(document.styleSheets),G=z.next(),Y={};!G.done;Y={node$jscomp$728:void 0},G=z.next())Y.node$jscomp$728=G.value.ownerNode,Y.node$jscomp$728&&(Y.node$jscomp$728 instanceof HTMLStyleElement||Y.node$jscomp$728 instanceof HTMLLinkElement)&&B.push(new Promise(function(d){return function(E){var v=d.node$jscomp$728.cloneNode(!0);v.onload=function(){E()};
v.onerror=function(){_.Oc(Error("nj"));E()};
W.document.head.appendChild(v)}}(Y)));
return Promise.all(B)};
DBR=function(W){var B=[_.w3(jzy),_.w3(f7x),_.w3(OEk)];XFu(window.document.documentElement,W.document.documentElement,[_.w3(Kp0),_.w3(uT0),_.w3(eiu),_.w3(mBT),_.w3(xB2)]);XFu(window.document.body,W.document.body,B)};
XFu=function(W,B,z){W=_.A(W.attributes);for(var G=W.next();!G.done;G=W.next())if(G=G.value)try{_.i7(z,B,G.name,G.value)}catch(Y){}};
y_k=function(W,B){W=new _.TH(W.document.documentElement);W.start(Qzv,B);return W};
qPR=function(W){var B=W.document.documentElement;B.addEventListener("click",function(z){LMX(B,z)});
B.addEventListener("touchstart",function(z){Wiy(z)});
B.addEventListener("mousedown",function(z){Wiy(z)})};
NKx=function(W,B,z,G){G=G===void 0?!1:G;B=new nvt(B||W,z||W);return{x:W.x+((G===void 0?0:G)?B.lengthX*-1:B.lengthX)*.2,y:W.y+((G===void 0?0:G)?B.lengthY*-1:B.lengthY)*.2}};
$B0=function(W){if(!W)return!1;var B=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",z,G,Y,d=(Y=(z=W.errorScreen)==null?void 0:z.playerLegacyDesktopYpcTrailerRenderer)!=null?Y:(G=W.errorScreen)==null?void 0:G.ypcTrailerRenderer;return!!B||!!d};
_.LpR=function(W,B){if(!W)return!1;var z,G=(z=W.errorScreen)==null?void 0:z.playerLegacyDesktopYpcOfferRenderer,Y;B=!!(B==null?0:(Y=B.playerOverlayRenderer)==null?0:Y.gatedActionsOverlayRenderer);return!!$B0(W)||!!G||!!B};
a7u=function(W){return UBT(W,0,"gclid",W.search(MuD))>=0||UBT(W,0,"gad_source",W.search(MuD))>=0};
RiQ=function(W){var B=[],z=0;return{clear:function(){z=B.length=0},
push:function(G){B[z]=G;z=(z+1)%W},
iterate:function(){return function Y(){var d,E,v,c;return _.vh(Y,function(J){switch(J.nextAddress){case 1:_.IR(J,2),d=B.length,E=0;case 4:if(!(E<d)){J.jumpTo(2);break}v=z+E;c=_.ch;return J.yield(B[v%d],7);case 7:c(J.yieldResult);E++;J.jumpTo(4);break;case 2:_.CN(J),_.oR(J,0)}})}()}}};
WZ8=function(W){W.eventsToIgnore||(W.eventsToIgnore=[]);var B=W.eventsToIgnore.map(auQ),z=new Set(B),G=RiQ(W.bufferSize);return{flush:function(){var Y=Array.from(G.iterate());G.clear();Y=Y.map(function(d){return{name:d.name,timestamp:d.startTime,attributes:d.attributes}});
return JSON.stringify(Y)},
onSpanStart:function(Y){Y.name==="event"&&z.has(Y.attributes.type)||G.push(Y)}}};
Br2=function(W){W=WZ8(W);var B=W.flush;Gl.processors.push({onSpanStart:W.onSpanStart});KCv.subscribe("handleError",function(z){try{z.params.breadcrumbs=B()}catch(G){_.jy(G,"WARNING")}})};
zU2=function(){uH("web_tracing_action");_.e4("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
Gg8=function(){uH("web_tracing_action");_.e4("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
dPx=function(W,B,z){if(B===void 0){YUR||(Gg8(),setInterval(Gg8,6E5),YUR=!0);var G="web_tracing_action"}else G=B;var Y,d=((Y=W.endTime)!=null?Y:W.startTime)-W.startTime,E={};Y=W.name;var v=W.startTime;E={webTracing:(E[W.name]=W.attributes,E)};z=_.D5(s9D)(Y,d,v,E,z,G);if(W.children)for(W=_.A(W.children),G=W.next();!G.done;G=W.next())dPx(G.value,B,z)};
pED=function(W){var B=YzR.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(z){z.data&&typeof z.data==="object"&&(z=z.data,z.from==="extension"&&z.app==="yt.telemetry"&&(B("Received message from extension",z),W.onMessage(z)))});
return function(z,G){z={app:"yt.telemetry",from:"app",key:z,payload:G};B("Sending message to extension",z);window.postMessage(z,"*")}};
AxQ=function(){var W=W===void 0?3E3:W;var B=pED({onMessage:function(){}}),z=[];
return{onSpanEnd:function(G){G.parentId==null&&z.push(G)===1&&setTimeout(function(){var Y=[].concat(_.u7(z));z.length=0;B("spansReported",{spans:Y})},W)}}};
EWy=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var W=window.performance.getEntriesByType("navigation");if(W.length>0){var B=W[0];GaQ("pageLoad",{navigationType:iUu(B.type),unloadEventStart:Math.round(B.unloadEventStart),unloadEventEnd:Math.round(B.unloadEventEnd),domInteractive:Math.round(B.domInteractive),domContentLoadedEventStart:Math.round(B.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(B.domContentLoadedEventEnd),
domComplete:Math.round(B.domComplete),loadEventStart:Math.round(B.loadEventStart),loadEventEnd:Math.round(B.loadEventEnd),redirectCount:B.redirectCount},function(){})}}catch(z){}})};
iUu=function(W){switch(W){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
cx8=function(){for(var W=uXT.value,B={},z=_.A(W.enabledSpansArray),G=z.next();!G.done;G=z.next())B[G.value]=!0;if(W.exportToCsi||W.exportBreadcrumbs)z=eQR(),Gl.initialized=!0,Gl.sessionId=z||"",Gl.enabledSpans=B,BET("pageLoad")&&EWy();W.exportBreadcrumbs&&Br2({eventsToIgnore:TrX,bufferSize:W.bufferSize});W.exportToCsi&&Gl.processors.push(vWv);W.exportToDevTools&&(W=AxQ(),Gl.processors.push(W))};
wE8=function(W){return new Promise(function(B){window.setTimeout(B,W)})};
Vb2=function(W){var B={bicf:function(d){W.zJJ=d},
blc:function(){return W.getLatestChallengeResponse()},
bcr:function(d){W.xX7.push(d)}},z=window;
z.ntpevasrs=B;if(z.ntpqfbel!==void 0)for(var G=_.A(z.ntpqfbel),Y=G.next();!Y.done;Y=G.next())Y=Y.value,Y(B);z.ntpqfbel=void 0};
JxT=function(W){return _.T(function(B){if(B.nextAddress==1)return _.kA(B,2),B.yield(W.ctb(),4);if(B.nextAddress!=2)return _.Nn(B,0);_.h6(B);_.HG(B)})};
gWu=function(W){var B,z;(B=W.ytcsi)==null||(z=B.tick)==null||z.call(B,"pot_ist")};
tby=function(W){if(W instanceof Error){var B=_.q6("yt.logging.errors.log");B&&B(W,"WARNING")}};
sQ8=function(W){try{var B=JSON.parse(W);if(B.bgChallenge)return B}catch(z){}};
ZUk=function(){var W=window,B={networkStatusManagerPromise:_.dO().resolve(new Djt(_.ng)),initialChallengeSli:_.r("wpo_att_sli")?new _.YWD("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};W=W===void 0?window:W;var z=W.ytAtR,G;B==null||(G=B.initialChallengeSli)==null||_.wn(G);if(z){if(z=sQ8(z)){var Y;B==null||(Y=B.initialChallengeSli)==null||_.Vb(Y,"SUCCESS");PZ2(z,B)}W.ytAtR=void 0}else W.ytAtRC=function(d){if(d=sQ8(d)){var E;B==null||(E=B.initialChallengeSli)==null||
_.Vb(E,"SUCCESS");PZ2(d,B);W.ytAtRC=void 0}}};
lyt=function(){if(rxt)return rxt;try{var W=_.I0("IFRAME");_.WG(W,_.sY(kgT));W.sandbox.add("allow-same-origin");W.style.display="none";document.body.appendChild(W);return rxt=W}catch(B){W=new _.oX("Failed to create sandbox iframe"),_.jy(W)}};
CZ2=function(W){var B,z;return(z=W==null?void 0:(B=W.contentWindow)==null?void 0:B.fetch)!=null?z:window.fetch};
IyX=function(W){var B,z;return(z=W==null?void 0:(B=W.contentWindow)==null?void 0:B.Request)!=null?z:window.Request};
oWt=function(W){var B,z;return(z=W==null?void 0:(B=W.contentWindow)==null?void 0:B.TextDecoder)!=null?z:window.TextDecoder};
hUR=function(){return function(W,B){_.eD("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[W]=B}};
HU0=function(){return function(W,B){var z={};z[W]=B;W=_.D5(_.g02)(z);Object.keys(W).length>0&&_.Ki(W)}};
bUQ=function(){if(UH8()==="hidden")var W="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else UH8()==="visible"&&(W="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",FZv=null);W&&SUD(W)};
SUD=function(W){if(W==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||W==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(jQT===W)return;jQT=W}var B=9E4+Math.random()*2E3;if(W!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Gi()>B)&&UH8()==="visible"){B=-1;FZv&&(B=Math.round((0,_.Yb)()-FZv));var z=String;var G=_.q6("_fact",window);G=G==null||G==-1?-1:Math.max(Date.now()-G,0);_.Sy("foregroundHeartbeat",{firstActivityMs:z(G),clientDocumentNonce:mrR,index:String(fyQ),lastEventDeltaMs:String(B),trigger:W});
_.BV("_fact",-1,window);fyQ++;FZv=(0,_.Yb)()}};
_.OU2=function(){try{return!!self.sessionStorage}catch(W){return!1}};
XET=function(){var W=navigator;return new Promise(function(B,z){var G;(G=W.webkitTemporaryStorage)!=null&&G.queryUsageAndQuota?W.webkitTemporaryStorage.queryUsageAndQuota(function(Y,d){B({usage:Y,quota:d})},function(Y){z(Y)}):z(Error("xj"))})};
KZX=function(W,B){var z={errorSeverity:B.errorSeverity.toString(),wizFeatureFlags:Object.entries(B.featureFlags).join("\n")};lpt(B,z);B=B.errorSeverity;B===3?_.jy(W,"ERROR",void 0,void 0,void 0,z):B===2&&_.jy(W,"WARNING",void 0,void 0,void 0,z);_.r("cow_if_errors_in_popup")&&B===3&&W.message.indexOf("<If>")!==-1&&window.alert(W.message)};
uDx=function(W,B){var z=zl.get(W)||{layerNode:B};z.layerNode=B;WG0(W,z);W.getScreenLayer=function(){return Jt(z.layerNode)}};
eUQ=function(W){var B;W=W.parentNode;for(var z;W&&((B=zl.get(W))==null||!B.isRenderer)&&!((z=W.polymerController)!=null?z:W).isRenderer_;)W=W.parentNode||W.host;if(B=W)return zl.get(B)};
mPt=function(W){if(W){zl.delete(W);var B=_.dO().resolve(Gp);Euu(W,B)}};
DPv=function(W,B,z){if(z===void 0?0:z){if(z=W.getAttribute("client-ve-type"),B.data&&!B.disableReactiveLogging||z)_.KR(function(){xPt(W,_.XA(B.data))}),_.fR(function(){return void mPt(W)})}else typeof B.data!=="function"&&xPt(W,B.data)};
xPt=function(W,B){QQ0++;yx2(W,B)&&_.fg.addJob(function(){_.gn(_.fg,function(){if(yx2(W,B)&&W.ownerDocument.documentElement===document.documentElement&&W){var z;if(W.getAttribute("layer")){var G=z=Number(W.getAttribute("layer")),Y=zl.get(W);Y?Y.layerNode.layer=G:uDx(W,new qUx(G));(G=eUQ(W))&&(Y=zl.get(W))!=null&&(Y.layerNode.parent=G.layerNode)}else if(z=zl.get(W))z=Jt(z.layerNode);else{z=Jt;G=new qUx;if(Y=eUQ(W))G.parent=Y.layerNode;uDx(W,G);z=z(G)}z!=null||(z=0);G=W.getAttribute("client-ve-type");
Y=Number(G);var d=!1;G=!1;var E=zl.get(W),v;if((v=E)&&!(v=E[nWt]!==B)&&(v=Y)){var c;v=((c=zl.get(W))==null?void 0:c.clientVeType)===void 0}v&&(E[nWt]=B,d=G=E.isRenderer=!0);zl.has(W)&&(zl.get(W).clientVeType=Y);W.visualElement&&(G=!0);if(_.r("wiz_next_ld_fix_client_ve_spec")){var J;c=((J=_.k(B==null?void 0:B.rendererContext,_.bg))==null?void 0:J.loggingDirectives)||(B==null?void 0:B.loggingDirectives)}else c=B==null?void 0:B.loggingDirectives;c&&c.clientVeSpec&&(J=Nr2(_.HJ(),W),J=_.$Pk(_.SK(),c,J||
void 0,z))&&(W.visualElement=J);!W.visualElement&&Y&&d&&(W.veType=Y,J=void 0,_.r("wiz_next_client_ve_parent_fix")&&(J=Nr2(_.HJ(),W)),J=_.FF(_.SK(),W,J,z),W.visualElement=J);G&&(J=_.dO().resolve(Gp),wU8(W,{data:B,observer:J,layer:z,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
yx2=function(W,B){return(B==null?0:B.trackingParams)||(B==null?0:B.loggingDirectives)||_.k(B==null?void 0:B.rendererContext,_.bg)||W.getAttribute("client-ve-type")?!0:!1};
LZT=function(W,B,z){W.componentType!==H5&&z instanceof HTMLElement&&B&&!_.r("cow_logging_in_component_wrapper")&&DPv(z,B,!0)};
RU0=function(){if(!UPy){UPy=!0;var W=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.r("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:KZX,enableComponentStacksInErrorMessages:!1});Object.assign(iE,W);mOu=MbQ;ayy();qhr=bqQ;DOR=jh8}};
ayy=function(){_.r("cow_logging_in_component_wrapper")?(Q4k=function(W,B){B instanceof HTMLElement&&DPv(B,W,!0)},hl0=function(){}):(Q4k=function(){},hl0=LZT)};
Wqx=function(W,B,z){B=B===void 0?{}:B;var G,Y=(G=_.k(W.commandMetadata,_.Z4))==null?void 0:G.url;G=B.form||{};!z||G.element||G.skipDefaultElement||(B.form=B.form||{},B.form.element=z);if(Y&&Y!=="/service_ajax")return{type:0,command:W,form:B.form};if(_.r("kevlar_service_command_check")){if(_.WA(_.dO().resolve(_.N_),W))return Object.assign({},{type:1,command:W},B)}else{var d;if((d=_.k(W.commandMetadata,_.Z4))==null?0:d.apiUrl)return Object.assign({},{type:1,command:W},B)}return{type:2,command:W,form:B.form}};
BxQ=function(W){if(W.form){var B=W.form,z=Object.assign({},B);B=B.element;z=(delete z.element,z);if(B)return[_.V0(B,[W.command,z,W.commandController])]}return[]};
zVR=function(W){if(W.form){var B=W.form,z=Object.assign({},B);B=B.element;z=(delete z.element,z);B&&_.Jr(B,[W.command],B,z)}};
YOx=function(W,B,z){var G=new GhR(W,B),Y=new tt(W,B,z);W={"/youtubei/v1/browse":new so(W,B,z),"/youtubei/v1/player":G,"/youtubei/v1/navigation/resolve_url":new Ph,"/youtubei/v1/next":Y,"/youtubei/v1/guide":new Z0(z),"/youtubei/v1/search":new rn(W,B,z),"/youtubei/v1/reel/reel_item_watch":new kn(W,B,z),"/youtubei/v1/get_watch":new lr(G,Y)};W["/youtubei/v1/account/account_menu"]=new CQ;W["/youtubei/v1/notification/get_notification_menu"]=new Ik;return W};
ht=function(){var W=_.dO().resolve(ok);return Promise.resolve(dbr(W,_.Yt.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
pjy=function(W){return W&&(W=_.Hh(_.DsR(W)))?(new URLSearchParams(W)).get("service"):null};
br=function(W,B){_.P2(_.FU(),function(){_.mj("adl")});
_.dO().resolve(AhR)(B);W=W.root;W.loadData&&W.loadData(B);(B==null?0:B.response)?_.Vb(Afr(),"SUCCESS"):_.Oc(new _.oX("Lifecycle: No response in data",_.md("IS_SHELL_LOAD"),B?B.page:"NO_PAGE",B?B.endpoint:"NO_ENDPOINT"));W.polymerController.$["page-manager"].lazyPrepareCriticalPages((B==null?void 0:B.page)||"",B.endpoint);var z,G;((G=_.k(B==null?void 0:(z=B.endpoint)==null?void 0:z.commandMetadata,_.Z4))==null?0:G.webPageType)&&_.Y_().dispatch(_.ST(_.k(B.endpoint.commandMetadata,_.Z4).webPageType))};
iH0=function(){var W,B;return _.T(function(z){switch(z.nextAddress){case 1:W=window;if(!W.getDataPromise){z.jumpTo(2);break}_.kA(z,3);return z.yield(W.getDataPromise(),5);case 5:return z.return(z.yieldResult);case 3:return _.h6(z),z.yield(ht(),6);case 6:return z.return(z.yieldResult);case 2:if(W.getInitialData)return B=W.getInitialData(),W.getInitialData=void 0,z.return(B);throw Error("zj`"+_.Yt.location.href);}})};
Txu=function(){_.uk("CSI_SERVICE_NAME","youtube");_.Ki({loadType:"cold"});_.r("kevlar_log_lcp")&&Eku(function(W){_.mj("lcp",W.value)})};
vkX=function(){var W=_.$x(document.location.href,"enable");W&&W.indexOf("scraper")>-1&&_.uk("ADD_SCRAPER_ATTRIBUTES",!0)};
gk8=function(W){var B=W.root;W=[ch0,wj8,_.jT];_.r("web_feedback_endpoint_autolog_allowlist_killswitch")&&W.push(_.fQ,VAr);Jhk(function(z,G){return Wqx(z,G,B)},function(z){if(!z.command)return[];
var G;((G=z.form)==null?0:G.element)?z.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},z.form,{endpoint:z.command})})):B.handleNavigate(z);return[]},W);
_.dO().addProvider({provide:_.p4,useValue:_.IB.instance})};
s5Q=function(){var W={},B={},z;for(z in tAD){var G=_.A(_.g4(tAD[z],void 0,"IAtZ7"));W[z]=G.next().value;B[z]=G.next().value}return[W,function(Y){for(var d in Y){var E=void 0;(E=B[d])==null||E(Y[d])}}]};
_.Oo=function(W,B,z){B=B===void 0?!1:B;var G=_.mP.getValueByKeys(W,"contents","twoColumnWatchNextResults","results","results","contents"),Y=_.mP.getValueByKeys(W,"contents","twoColumnWatchNextResults","playlist","playlist")||null;B&&(Y=null);var d=B=null;if(Y)B=_.mP.getValueByKeys(Y,"titleText"),d=_.mP.unsafeClone(_.mP.getValueByKeys(Y,"longBylineText")),G="",d&&(G=_.zR(d)),d=_.Bg(G);else if(G){G=_.A(G);for(var E=G.next();!E.done;E=G.next())E=E.value,E.videoPrimaryInfoRenderer&&(B=_.mP.getValueByKeys.apply(_.mP,
[E].concat(_.u7(PID)))),E.videoSecondaryInfoRenderer&&(d=_.mP.getValueByKeys.apply(_.mP,[E].concat(_.u7(ZHT))))}else _.nx(Error("Ej"));var v;W.currentVideoEndpoint?v=W.currentVideoEndpoint:_.nx(Error("Fj"));var c;z&&(c=_.mP.getValueByKeys(z,"playabilityStatus","miniplayer","miniplayerRenderer"));W={miniplayerTitle:B,miniplayerSubtitle:d,watchEndpoint:v,playlistData:Y};c&&(W.miniplayerRenderer=c);return W};
rh8=function(W){if(W)return _.y2(W)};
_.khr=function(){return{isFullscreen:function(){throw Error("Gj");},
toggleFullscreen:function(){throw Error("Hj");},
exitFullscreen:function(){throw Error("Ij");},
isAutonavEnabled:function(){throw Error("Jj");},
setAutonavEnabled:function(){throw Error("Kj");},
isAutoplaySetExplicitly:function(){throw Error("Lj");}}};
lhk=function(W){return W.videoDuration?W.numTaps>1&&W.tapDirection!==0?_.eT(W.draggedTime/W.videoDuration,0,1):_.eT((W.playedTime||0)/W.videoDuration,0,1):0};
CIy=function(W){return W.videoDuration?W.isDragging||W.numTaps>1&&W.tapDirection!==0?_.eT(W.draggedTime/W.videoDuration,0,1):_.eT((W.playedTime||0)/W.videoDuration,0,1):0};
okt=function(W){var B,z,G;return _.k(W==null?void 0:(B=W.markersMap)==null?void 0:(z=B.find(function(Y){return Y.key==="HEATSEEKER"}))==null?void 0:(G=z.value)==null?void 0:G.heatmap,Ihr)};
hVD=function(W){var B,z;return(z=(B=okt(W))==null?void 0:B.heatMarkersDecorations)!=null?z:[]};
HHT=function(W){if(_.r("mweb_supported_chapters_killswitch"))return!0;var B;return!!(W==null?0:(B=W.markersMap)==null?0:B.find(function(z){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(z.key)}))};
_.Fq8=function(W){var B=Object,z=B.assign,G;W={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(G=W==null?void 0:W.getPlayerState())!=null?G:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return z.call(B,{},{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},W,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
SOt=function(W){return function(B){var z=W(),G,Y=(G=z.playerApi)==null?void 0:G.getPlayerState();B&&B!==z.playerState&&(B===1||B===2)&&z.setState({playerState:Y})}};
j5R=function(W){return function(B){var z=W(),G=z.playerApi;G&&(B==null?void 0:B.type)==="newdata"&&(bH0&&(clearTimeout(bH0),bH0=void 0),_.r("web_shorts_use_progress_state_for_gapless")?(B=G==null?void 0:G.getProgressState(B==null?void 0:B.playertype),B=B.seekableEnd-B.seekableStart):B=G==null?void 0:G.getDuration(B==null?void 0:B.playertype),z.setState({playedTime:0,videoDuration:B}))}};
fhy=function(W){return function(B){var z=W(),G=z.playerApi;if(G){var Y=G.getPresentingPlayerType();_.r("web_shorts_use_progress_state_for_gapless")?(G=G.getProgressState(Y),G=G.seekableEnd-G.seekableStart):G=G.getDuration(Y);z.setState({playedTime:B,videoDuration:G})}}};
Xjx=function(W){_.be(112394,W,function(){return OHX},function(B){OHX=B})};
eVQ=function(W,B){if(!W)return[];var z,G,Y;W=((z=W.markersMap)==null?void 0:(G=z.find(function(d){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(d.key)}))==null?void 0:(Y=G.value)==null?void 0:Y.chapters)||[];
!Kqk(W)||(B==null?0:B.ignoreStub)||(W=[uzx()].concat(_.u7(W)));return W};
uzx=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
Kqk=function(W){if(W.length===0)return!1;var B;return((B=_.k(W[0],mQ))==null?void 0:B.timeRangeStartMillis)!==0};
xn=function(W){return W?W.timeRangeStartMillis||0:0};
xbR=function(W,B){if(W.isDragging&&B)return W=mb8(W,B),W===-1?uzx():eVQ(B)[W]};
mb8=function(W,B){return W.isDragging&&B?eVQ(B,{ignoreStub:!0}).findIndex(function(z,G,Y){z=DbR(W);return Q5k(z,Y,G).scrubberHovering}):-1};
DbR=function(W){return Object.assign({},W,{videoDuration:W.videoDuration*1E3,playedTime:W.playedTime*1E3,draggedTime:W.draggedTime*1E3})};
Q5k=function(W,B,z){var G=xn(_.k(B[z],mQ));B=xn(_.k(B[z+1],mQ))||W.videoDuration;z=W.isDragging;var Y;if(Y=W.isDragging)Y=W.draggedTime,Y=Y!==null&&Y>=G&&Y<B;var d=W.playedTime;return d!==null&&d>=G&&d<B?{videoPosition:"active",isScrubbing:z,scrubberHovering:Y}:W.playedTime<G?{videoPosition:"pending",isScrubbing:z,scrubberHovering:Y}:{videoPosition:"seen",isScrubbing:z,scrubberHovering:Y}};
yh0=function(W,B){return W.videoPosition==="seen"||(B===void 0?0:B)>0};
qOR=function(W,B,z){B=W/B.storyboardInterval;var G=eVQ(z);if(!G.length)return-B*72;z=0;G=_.A(G);for(var Y=G.next();!Y.done;Y=G.next())if(xn(_.k(Y.value,mQ))/1E3<W)z++;else break;return-(B*72)-z*56};
nkk=function(W){return W?W.width/W.columns:0};
Nxx=function(W){return W.isHovering?W.hoveredTime:W.draggedTime};
$by=function(W,B){W=W.draggedTime*1E3;return W>=B.visibleTimeRangeStartMillis&&W<=B.visibleTimeRangeEndMillis};
_.LqD=function(W){if(W===void 0||Number.isNaN(W))return"--:--";var B=Math.abs(Math.floor(W)),z=Math.floor(B/86400),G=Math.floor(B%86400/3600),Y=Math.floor(B%3600/60);B=Math.floor(B%60);var d="";z>0&&(d+=z+":",G<10&&(d+="0"));if(z>0||G>0)d+=G+":",Y<10&&(d+="0");d+=Y+":";B<10&&(d+="0");d+=B;return W>=0?d:"-"+d};
Ubr=function(W,B){return function(){var z=Nxx(W());var G=B();var Y=W().playerApi;if(Y&&Y.getNumberOfStoryboardLevels()!==0){var d=Y.getStoryboardFrameIndex(z,1);d!==-1?G=Y.getStoryboardFrame(d,1):(z=Y.getStoryboardFrameIndex(z,0),Y=Y.getStoryboardFrame(z,0),G&&Y&&(Y.height*=3,Y.width*=3),G=Y)}else G=null;if(!G)return null;B()&&(G.width=90*G.columns,G.height=160*G.rows);return G}};
_.D0=function(W){if(!W||W.getVideoData)return W};
MA8=function(){var W;return{playerApi:(W=_.ru())!=null?W:void 0}};
aht=function(W){var B;_.T(function(z){if(z.nextAddress==1)return z.yield(_.Zp(),2);if(B=z.yieldResult)B.unMute(!0),B.setVolume(W,!0);_.HG(z)})};
RVr=function(W,B){W&&(W.value=""+B,W.style.setProperty("--gradient-percent",B+"%"))};
Wo2=function(W){var B;return(B=W==null?void 0:W.value)!=null?B:0};
Bz0=function(){var W;_.T(function(B){if(B.nextAddress==1)return B.yield(_.Zp(),2);W=B.yieldResult;if(!W)return B.return();W.isMuted()?W.unMute(!0):W.mute(!0);_.HG(B)})};
zex=function(W){var B=_.dO().resolve(_.Qb).getPlayerElement();B&&W&&(W===1?B.pause():B.play())};
GKu=function(W){_.wV(W,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
YCX=function(W){_.wV(W,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
pKk=function(W){return _.SD(W.document.body,function(){return _.w(d42,null)},"Gf")};
ApR=function(){var W=window.performance.getEntriesByType("navigation");return W?W.map(function(B){return B.type}).includes("reload"):!1};
JpQ=function(){yb(yb(yb(yb(yb(yb(yb(_.dO().resolve(_.qg),_.ivv),_.Ed0),_.Tzk),_.vdT),_.cpu),_.wKR),_.VnR)};
gdu=function(W,B){B=B===void 0?!1:B;var z,G,Y,d;return _.T(function(E){if(E.nextAddress==1)return B||!_.r("kevlar_shorts_seedless_retry_initial_load")||(z=window,G=!(!z.getDataPromise&&!z.getInitialData),G)?E.yield(iH0(),2):(setTimeout(gdu.bind(window,W,!0),1E3),E.return());if(E.nextAddress!=3)return Y=E.yieldResult,E.yield(tnk(Y),3);d=E.yieldResult;br(W,d);_.HG(E)})};
tnk=function(W){var B;if((B=W.response)==null||!B.replacementEndpoint)return _.gV(W);B=_.dO().resolve(ok);W=W.response;_.k(W.replacementEndpoint,_.SW)&&W.sequenceContinuation&&(_.k(W.replacementEndpoint,_.SW).sequenceParams=W.sequenceContinuation);return nQ(B,W.replacementEndpoint,{},_.Yt.location.href,"shorts",function(){},function(){return!1})};
P6r=function(W){var B=_.dO().resolve(s7k);W.playerResponse&&B.handleResponse(W.playerResponse);W.response&&B.handleResponse(W.response)};
Zv2=function(W){var B=_.Y_(),z,G=_.k((z=W.response)==null?void 0:z.frameworkUpdates,Y2),Y;z=_.k((Y=W.playerResponse)==null?void 0:Y.frameworkUpdates,Y2);var d;W=_.k((d=W.reelWatchSequenceResponse)==null?void 0:d.frameworkUpdates,Y2);G&&_.CA(G,B);z&&_.CA(z,B);W&&_.CA(W,B)};
rpu=function(W){var B;_.r("enable_redirect_linking_for_desktop_web_client")&&((B=window.location.hash)==null?0:B.includes("redirect_state"))&&W.url&&(W.url=W.url.toString()+window.location.hash)};
C6Q=function(W){var B=_.dO(),z=B.resolve(ok);B=B.resolve(_.kKx);W.endpoint&&(z=llk(z,W.endpoint),z.content&&W.response&&_.Ng(B,W.response,z.content),z.player&&W.playerResponse&&_.Ng(B,W.playerResponse,z.player),z.reelSequence&&W.reelWatchSequenceResponse&&_.Ng(B,W.reelWatchSequenceResponse,z.reelSequence))};
$n=function(W,B){_.r("web_service_params_response_processor")&&P6r(B);Zv2(B);var z;(B==null?0:B.url)&&((z=window.location.hash)==null?0:z.includes("redirect_state"))&&(rpu(B),(z=pjy(B.url))&&_.c0(W.root,"yt-initialize-third-party",[z,B]));C6Q(B);z=_.dO();var G=z.resolve(IlR);B.playerResponse&&z.resolve(ody).handleResponse(B.playerResponse);if(B.playerResponse){z=void 0;if(_.r("ab_v_vid_sig")&&B.endpoint){var Y,d=(Y=_.k(B.endpoint,_.W0))!=null?Y:_.k(B.endpoint,_.SW);d&&(z=d.videoId)}heD(G,B.playerResponse,
z)}B.playerResponse&&HWu(B.playerResponse)&&_.r("web_enable_ab_rsp_cl")?LXk().then(function(){Hvv(G,B.playerResponse);br(W,B)}):br(W,B)};
SCQ=function(W){if(W=W.root.data){var B=_.dO().resolve(Fox);W.endpoint&&(W.response&&B.handleResponse(W.response,void 0,document.querySelector("ytd-app")),W.playerResponse&&B.handleResponse(W.playerResponse),W.reelWatchSequenceResponse&&B.handleResponse(W.reelWatchSequenceResponse))}};
bvR=function(W){var B,z,G,Y,d,E;return _.T(function(v){switch(v.nextAddress){case 1:B=window;if(!B.getDataPromise){v.jumpTo(2);break}_.kA(v,3);return v.yield(B.getDataPromise(),5);case 5:z=v.yieldResult;$n(W,z);_.Nn(v,4);break;case 3:return _.h6(v),v.yield(ht(),6);case 6:G=v.yieldResult,br(W,G);case 4:return v.return();case 2:if(!_.r("sw_nav_preload_pbj")){v.jumpTo(7);break}B.fetchInitialData=function(){var c;return _.T(function(J){if(J.nextAddress==1)return J.yield(ht(),2);c=J.yieldResult;br(W,c);
_.HG(J)})};
if(B.getInitialData){B.loadInitialData=function(c){$n(W,c)};
Y=B.getInitialData();B.getInitialData=void 0;$n(W,Y);v.jumpTo(8);break}B.fetchInitialData=void 0;return v.yield(ht(),9);case 9:d=v.yieldResult,br(W,d);case 8:return v.return();case 7:B.getInitialData?(E=B.getInitialData(),B.getInitialData=void 0,$n(W,E)):B.loadInitialData=function(c){$n(W,c)},_.HG(v)}})};
j7R=function(W){var B=0;return function(){return B<W.length?{done:!1,value:W[B++]}:{done:!0}}};
flR=typeof Object.defineProperties=="function"?Object.defineProperty:function(W,B,z){if(W==Array.prototype||W==Object.prototype)return W;W[B]=z.value;return W};
OvR=function(W){W=["object"==typeof globalThis&&globalThis,W,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var B=0;B<W.length;++B){var z=W[B];if(z&&z.Math==Math)return z}throw Error("a");};
_.G5=OvR(this);LQ=function(W,B){if(B)a:{var z=_.G5;W=W.split(".");for(var G=0;G<W.length-1;G++){var Y=W[G];if(!(Y in z))break a;z=z[Y]}W=W[W.length-1];G=z[W];B=B(G);B!=G&&B!=null&&flR(z,W,{configurable:!0,writable:!0,value:B})}};
LQ("Symbol",function(W){if(W)return W;var B=function(d,E){this.$jscomp$symbol$id_=d;flR(this,"description",{configurable:!0,writable:!0,value:E})};
B.prototype.toString=function(){return this.$jscomp$symbol$id_};
var z="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",G=0,Y=function(d){if(this instanceof Y)throw new TypeError("b");return new B(z+(d||"")+"_"+G++,d)};
return Y});
LQ("Symbol.iterator",function(W){if(W)return W;W=Symbol("c");for(var B="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),z=0;z<B.length;z++){var G=_.G5[B[z]];typeof G==="function"&&typeof G.prototype[W]!="function"&&flR(G.prototype,W,{configurable:!0,writable:!0,value:function(){return XKt(j7R(this))}})}return W});
LQ("Symbol.asyncIterator",function(W){return W?W:Symbol("d")});
var XKt=function(W){W={next:W};W[Symbol.iterator]=function(){return this};
return W},KoQ=typeof Object.create=="function"?Object.create:function(W){var B=function(){};
B.prototype=W;return new B},uxD=function(){function W(){function z(){}
new z;Reflect.construct(z,[],function(){});
return new z instanceof z}
if(typeof Reflect!="undefined"&&Reflect.construct){if(W())return Reflect.construct;var B=Reflect.construct;return function(z,G,Y){z=B(z,G);Y&&Reflect.setPrototypeOf(z,Y.prototype);return z}}return function(z,G,Y){Y===void 0&&(Y=z);
Y=KoQ(Y.prototype||Object.prototype);return Function.prototype.apply.call(z,Y,G)||Y}}(),eeD;
if(typeof Object.setPrototypeOf=="function")eeD=Object.setPrototypeOf;else{var m4y;a:{var x4R={a:!0},D40={};try{D40.__proto__=x4R;m4y=D40.a;break a}catch(W){}m4y=!1}eeD=m4y?function(W,B){W.__proto__=B;if(W.__proto__!==B)throw new TypeError("e`"+W);return W}:null}Uo=eeD;
_.C=function(W,B){W.prototype=KoQ(B.prototype);W.prototype.constructor=W;if(Uo)Uo(W,B);else for(var z in B)if(z!="prototype")if(Object.defineProperties){var G=Object.getOwnPropertyDescriptor(B,z);G&&Object.defineProperty(W,z,G)}else W[z]=B[z];W.superClass_=B.prototype};
_.A=function(W){var B=typeof Symbol!="undefined"&&Symbol.iterator&&W[Symbol.iterator];if(B)return B.call(W);if(typeof W.length=="number")return{next:j7R(W)};throw Error("f`"+String(W));};
B5=function(W){for(var B,z=[];!(B=W.next()).done;)z.push(B.value);return z};
_.u7=function(W){return W instanceof Array?W:B5(_.A(W))};
_.ak=function(W){return Mg(W,W)};
Mg=function(W,B){W.raw=B;Object.freeze&&(Object.freeze(W),Object.freeze(B));return W};
Rk=function(W,B){return Object.prototype.hasOwnProperty.call(W,B)};
Q7t=function(W){if(W==null)throw new TypeError("g");return Object(W)};
ypT=typeof Object.assign=="function"?Object.assign:function(W,B){W=Q7t(W);for(var z=1;z<arguments.length;z++){var G=arguments[z];if(G)for(var Y in G)Rk(G,Y)&&(W[Y]=G[Y])}return W};
LQ("Object.assign",function(W){return W||ypT});
var W8=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},qCk=function(W){if(W.isRunning_)throw new TypeError("i");
W.isRunning_=!0};
W8.prototype.JSC$8723_next_=function(W){this.yieldResult=W};
var nd8=function(W,B){W.abruptCompletion_={exception:B,isException:!0};W.nextAddress=W.catchAddress_||W.finallyAddress_};
W8.prototype.return=function(W){this.abruptCompletion_={return:W};this.nextAddress=this.finallyAddress_};
W8.prototype.yield=function(W,B){this.nextAddress=B;return{value:W}};
W8.prototype.jumpTo=function(W){this.nextAddress=W};
_.HG=function(W){W.nextAddress=0};
_.kA=function(W,B,z){W.catchAddress_=B;z!=void 0&&(W.finallyAddress_=z)};
_.IR=function(W,B){W.catchAddress_=0;W.finallyAddress_=B||0};
_.Nn=function(W,B,z){W.nextAddress=B;W.catchAddress_=z||0};
_.h6=function(W,B){W.catchAddress_=B||0;B=W.abruptCompletion_.exception;W.abruptCompletion_=null;return B};
_.CN=function(W,B,z,G){G?W.finallyContexts_[G]=W.abruptCompletion_:W.finallyContexts_=[W.abruptCompletion_];W.catchAddress_=B||0;W.finallyAddress_=z||0};
_.oR=function(W,B,z){z=W.finallyContexts_.splice(z||0)[0];(z=W.abruptCompletion_=W.abruptCompletion_||z)?z.isException?W.nextAddress=W.catchAddress_||W.finallyAddress_:z.jumpTo!=void 0&&W.finallyAddress_<z.jumpTo?(W.nextAddress=z.jumpTo,W.abruptCompletion_=null):W.nextAddress=W.finallyAddress_:W.nextAddress=B};
Nzk=function(W){this.JSC$8728_context_=new W8;this.program_=W};
Lor=function(W,B){qCk(W.JSC$8728_context_);var z=W.JSC$8728_context_.yieldAllIterator_;if(z)return $4R(W,"return"in z?z["return"]:function(G){return{value:G,done:!0}},B,W.JSC$8728_context_.return);
W.JSC$8728_context_.return(B);return B8(W)};
$4R=function(W,B,z,G){try{var Y=B.call(W.JSC$8728_context_.yieldAllIterator_,z);if(!(Y instanceof Object))throw new TypeError("h`"+Y);if(!Y.done)return W.JSC$8728_context_.isRunning_=!1,Y;var d=Y.value}catch(E){return W.JSC$8728_context_.yieldAllIterator_=null,nd8(W.JSC$8728_context_,E),B8(W)}W.JSC$8728_context_.yieldAllIterator_=null;G.call(W.JSC$8728_context_,d);return B8(W)};
B8=function(W){for(;W.JSC$8728_context_.nextAddress;)try{var B=W.program_(W.JSC$8728_context_);if(B)return W.JSC$8728_context_.isRunning_=!1,{value:B.value,done:!1}}catch(z){W.JSC$8728_context_.yieldResult=void 0,nd8(W.JSC$8728_context_,z)}W.JSC$8728_context_.isRunning_=!1;if(W.JSC$8728_context_.abruptCompletion_){B=W.JSC$8728_context_.abruptCompletion_;W.JSC$8728_context_.abruptCompletion_=null;if(B.isException)throw B.exception;return{value:B.return,done:!0}}return{value:void 0,done:!0}};
U4x=function(W){this.next=function(B){qCk(W.JSC$8728_context_);W.JSC$8728_context_.yieldAllIterator_?B=$4R(W,W.JSC$8728_context_.yieldAllIterator_.next,B,W.JSC$8728_context_.JSC$8723_next_):(W.JSC$8728_context_.JSC$8723_next_(B),B=B8(W));return B};
this.throw=function(B){qCk(W.JSC$8728_context_);W.JSC$8728_context_.yieldAllIterator_?B=$4R(W,W.JSC$8728_context_.yieldAllIterator_["throw"],B,W.JSC$8728_context_.JSC$8723_next_):(nd8(W.JSC$8728_context_,B),B=B8(W));return B};
this.return=function(B){return Lor(W,B)};
this[Symbol.iterator]=function(){return this}};
_.vh=function(W,B){B=new U4x(new Nzk(B));Uo&&W.prototype&&Uo(B,W.prototype);return B};
Mn2=function(W){function B(G){return W.next(G)}
function z(G){return W.throw(G)}
return new Promise(function(G,Y){function d(E){E.done?G(E.value):Promise.resolve(E.value).then(B,z).then(d,Y)}
d(W.next())})};
_.T=function(W){return Mn2(new U4x(new Nzk(W)))};
_.l7=function(W){var B=W[Symbol.asyncIterator];return B!==void 0?B.call(W):new alx(_.A(W))};
alx=function(W){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return W};
this.next=function(B){return Promise.resolve(W.next(B))};
this["throw"]=function(B){return new Promise(function(z,G){var Y=W["throw"];Y!==void 0?z(Y.call(W,B)):(z=W["return"],z!==void 0&&z.call(W),G(new TypeError("j")))})};
W["return"]!==void 0&&(this["return"]=function(B){return Promise.resolve(W["return"](B))})};
_.nm=function(){for(var W=Number(this),B=[],z=W;z<arguments.length;z++)B[z-W]=arguments[z];return B};
_.ch=function(W){return W};
LQ("globalThis",function(W){return W||_.G5});
LQ("Reflect",function(W){return W?W:{}});
LQ("Reflect.construct",function(){return uxD});
LQ("Reflect.setPrototypeOf",function(W){return W?W:Uo?function(B,z){try{return Uo(B,z),!0}catch(G){return!1}}:null});
LQ("Promise",function(W){function B(){this.batch_=null}
function z(E){return E instanceof Y?E:new Y(function(v){v(E)})}
if(W&&(typeof _.G5.PromiseRejectionEvent!=="undefined"||!_.G5.Promise||_.G5.Promise.toString().indexOf("[native code]")===-1))return W;B.prototype.asyncExecute=function(E){if(this.batch_==null){this.batch_=[];var v=this;this.asyncExecuteFunction(function(){v.executeBatch_()})}this.batch_.push(E)};
var G=_.G5.setTimeout;B.prototype.asyncExecuteFunction=function(E){G(E,0)};
B.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var E=this.batch_;this.batch_=[];for(var v=0;v<E.length;++v){var c=E[v];E[v]=null;try{c()}catch(J){this.asyncThrow_(J)}}}this.batch_=null};
B.prototype.asyncThrow_=function(E){this.asyncExecuteFunction(function(){throw E;})};
var Y=function(E){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var v=this.createResolveAndReject_();try{E(v.resolve,v.reject)}catch(c){v.reject(c)}};
Y.prototype.createResolveAndReject_=function(){function E(J){return function(g){c||(c=!0,J.call(v,g))}}
var v=this,c=!1;return{resolve:E(this.resolveTo_),reject:E(this.JSC$8756_reject_)}};
Y.prototype.resolveTo_=function(E){if(E===this)this.JSC$8756_reject_(new TypeError("n"));else if(E instanceof Y)this.settleSameAsPromise_(E);else{a:switch(typeof E){case "object":var v=E!=null;break a;case "function":v=!0;break a;default:v=!1}v?this.resolveToNonPromiseObj_(E):this.fulfill_(E)}};
Y.prototype.resolveToNonPromiseObj_=function(E){var v=void 0;try{v=E.then}catch(c){this.JSC$8756_reject_(c);return}typeof v=="function"?this.settleSameAsThenable_(v,E):this.fulfill_(E)};
Y.prototype.JSC$8756_reject_=function(E){this.settle_(2,E)};
Y.prototype.fulfill_=function(E){this.settle_(1,E)};
Y.prototype.settle_=function(E,v){if(this.state_!=0)throw Error("o`"+E+"`"+v+"`"+this.state_);this.state_=E;this.result_=v;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
Y.prototype.scheduleUnhandledRejectionCheck_=function(){var E=this;G(function(){if(E.notifyUnhandledRejection_()){var v=_.G5.console;typeof v!=="undefined"&&v.error(E.result_)}},1)};
Y.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var E=_.G5.CustomEvent,v=_.G5.Event,c=_.G5.dispatchEvent;if(typeof c==="undefined")return!0;typeof E==="function"?E=new E("unhandledrejection",{cancelable:!0}):typeof v==="function"?E=new v("unhandledrejection",{cancelable:!0}):(E=_.G5.document.createEvent("CustomEvent"),E.initCustomEvent("unhandledrejection",!1,!0,E));E.promise=this;E.reason=this.result_;return c(E)};
Y.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var E=0;E<this.onSettledCallbacks_.length;++E)d.asyncExecute(this.onSettledCallbacks_[E]);this.onSettledCallbacks_=null}};
var d=new B;Y.prototype.settleSameAsPromise_=function(E){var v=this.createResolveAndReject_();E.callWhenSettled_(v.resolve,v.reject)};
Y.prototype.settleSameAsThenable_=function(E,v){var c=this.createResolveAndReject_();try{E.call(v,c.resolve,c.reject)}catch(J){c.reject(J)}};
Y.prototype.then=function(E,v){function c(P,Z){return typeof P=="function"?function(l){try{J(P(l))}catch(b){g(b)}}:Z}
var J,g,t=new Y(function(P,Z){J=P;g=Z});
this.callWhenSettled_(c(E,J),c(v,g));return t};
Y.prototype.catch=function(E){return this.then(void 0,E)};
Y.prototype.callWhenSettled_=function(E,v){function c(){switch(J.state_){case 1:E(J.result_);break;case 2:v(J.result_);break;default:throw Error("p`"+J.state_);}}
var J=this;this.onSettledCallbacks_==null?d.asyncExecute(c):this.onSettledCallbacks_.push(c);this.isRejectionHandled_=!0};
Y.resolve=z;Y.reject=function(E){return new Y(function(v,c){c(E)})};
Y.race=function(E){return new Y(function(v,c){for(var J=_.A(E),g=J.next();!g.done;g=J.next())z(g.value).callWhenSettled_(v,c)})};
Y.all=function(E){var v=_.A(E),c=v.next();return c.done?z([]):new Y(function(J,g){function t(l){return function(b){P[l]=b;Z--;Z==0&&J(P)}}
var P=[],Z=0;do P.push(void 0),Z++,z(c.value).callWhenSettled_(t(P.length-1),g),c=v.next();while(!c.done)})};
return Y});
var zC=function(W,B,z){if(W==null)throw new TypeError("q`"+z);if(B instanceof RegExp)throw new TypeError("r`"+z);return W+""};
LQ("String.prototype.startsWith",function(W){return W?W:function(B,z){var G=zC(this,B,"startsWith"),Y=G.length,d=B.length;z=Math.max(0,Math.min(z|0,G.length));for(var E=0;E<d&&z<Y;)if(G[z++]!=B[E++])return!1;return E>=d}});
LQ("Object.setPrototypeOf",function(W){return W||Uo});
LQ("Symbol.dispose",function(W){return W?W:Symbol("s")});
LQ("SuppressedError",function(W){function B(z,G,Y){if(!(this instanceof B))return new B(z,G,Y);Y=Error(Y);"stack"in Y&&(this.stack=Y.stack);this.message=Y.message;this.error=z;this.suppressed=G}
if(W)return W;_.C(B,Error);B.prototype.name="SuppressedError";return B});
var Re2=function(W,B,z){W instanceof String&&(W=String(W));for(var G=W.length,Y=0;Y<G;Y++){var d=W[Y];if(B.call(z,d,Y,W))return{i:Y,v:d}}return{i:-1,v:void 0}};
LQ("Array.prototype.find",function(W){return W?W:function(B,z){return Re2(this,B,z).v}});
LQ("WeakMap",function(W){function B(){}
function z(c){var J=typeof c;return J==="object"&&c!==null||J==="function"}
function G(c){if(!Rk(c,d)){var J=new B;flR(c,d,{value:J})}}
function Y(c){var J=Object[c];J&&(Object[c]=function(g){if(g instanceof B)return g;Object.isExtensible(g)&&G(g);return J(g)})}
if(function(){if(!W||!Object.seal)return!1;try{var c=Object.seal({}),J=Object.seal({}),g=new W([[c,2],[J,3]]);if(g.get(c)!=2||g.get(J)!=3)return!1;g.delete(c);g.set(J,4);return!g.has(c)&&g.get(J)==4}catch(t){return!1}}())return W;
var d="$jscomp_hidden_"+Math.random();Y("freeze");Y("preventExtensions");Y("seal");var E=0,v=function(c){this.JSC$8763_id_=(E+=Math.random()+1).toString();if(c){c=_.A(c);for(var J;!(J=c.next()).done;)J=J.value,this.set(J[0],J[1])}};
v.prototype.set=function(c,J){if(!z(c))throw Error("t");G(c);if(!Rk(c,d))throw Error("u`"+c);c[d][this.JSC$8763_id_]=J;return this};
v.prototype.get=function(c){return z(c)&&Rk(c,d)?c[d][this.JSC$8763_id_]:void 0};
v.prototype.has=function(c){return z(c)&&Rk(c,d)&&Rk(c[d],this.JSC$8763_id_)};
v.prototype.delete=function(c){return z(c)&&Rk(c,d)&&Rk(c[d],this.JSC$8763_id_)?delete c[d][this.JSC$8763_id_]:!1};
return v});
LQ("Map",function(W){if(function(){if(!W||typeof W!="function"||!W.prototype.entries||typeof Object.seal!="function")return!1;try{var v=Object.seal({x:4}),c=new W(_.A([[v,"s"]]));if(c.get(v)!="s"||c.size!=1||c.get({x:4})||c.set({x:4},"t")!=c||c.size!=2)return!1;var J=c.entries(),g=J.next();if(g.done||g.value[0]!=v||g.value[1]!="s")return!1;g=J.next();return g.done||g.value[0].x!=4||g.value[1]!="t"||!J.next().done?!1:!0}catch(t){return!1}}())return W;
var B=new WeakMap,z=function(v){this[0]={};this[1]=d();this.size=0;if(v){v=_.A(v);for(var c;!(c=v.next()).done;)c=c.value,this.set(c[0],c[1])}};
z.prototype.set=function(v,c){v=v===0?0:v;var J=G(this,v);J.list||(J.list=this[0][J.id]=[]);J.entry?J.entry.value=c:(J.entry={next:this[1],previous:this[1].previous,head:this[1],key:v,value:c},J.list.push(J.entry),this[1].previous.next=J.entry,this[1].previous=J.entry,this.size++);return this};
z.prototype.delete=function(v){v=G(this,v);return v.entry&&v.list?(v.list.splice(v.index,1),v.list.length||delete this[0][v.id],v.entry.previous.next=v.entry.next,v.entry.next.previous=v.entry.previous,v.entry.head=null,this.size--,!0):!1};
z.prototype.clear=function(){this[0]={};this[1]=this[1].previous=d();this.size=0};
z.prototype.has=function(v){return!!G(this,v).entry};
z.prototype.get=function(v){return(v=G(this,v).entry)&&v.value};
z.prototype.entries=function(){return Y(this,function(v){return[v.key,v.value]})};
z.prototype.keys=function(){return Y(this,function(v){return v.key})};
z.prototype.values=function(){return Y(this,function(v){return v.value})};
z.prototype.forEach=function(v,c){for(var J=this.entries(),g;!(g=J.next()).done;)g=g.value,v.call(c,g[1],g[0],this)};
z.prototype[Symbol.iterator]=z.prototype.entries;var G=function(v,c){var J=c&&typeof c;J=="object"||J=="function"?B.has(c)?J=B.get(c):(J=""+ ++E,B.set(c,J)):J="p_"+c;var g=v[0][J];if(g&&Rk(v[0],J))for(v=0;v<g.length;v++){var t=g[v];if(c!==c&&t.key!==t.key||c===t.key)return{id:J,list:g,index:v,entry:t}}return{id:J,list:g,index:-1,entry:void 0}},Y=function(v,c){var J=v[1];
return XKt(function(){if(J){for(;J.head!=v[1];)J=J.previous;for(;J.next!=J.head;)return J=J.next,{done:!1,value:c(J)};J=null}return{done:!0,value:void 0}})},d=function(){var v={};
return v.previous=v.next=v.head=v},E=0;
return z});
LQ("Set",function(W){if(function(){if(!W||typeof W!="function"||!W.prototype.entries||typeof Object.seal!="function")return!1;try{var z=Object.seal({x:4}),G=new W(_.A([z]));if(!G.has(z)||G.size!=1||G.add(z)!=G||G.size!=1||G.add({x:4})!=G||G.size!=2)return!1;var Y=G.entries(),d=Y.next();if(d.done||d.value[0]!=z||d.value[1]!=z)return!1;d=Y.next();return d.done||d.value[0]==z||d.value[0].x!=4||d.value[1]!=d.value[0]?!1:Y.next().done}catch(E){return!1}}())return W;
var B=function(z){this.JSC$8777_map_=new Map;if(z){z=_.A(z);for(var G;!(G=z.next()).done;)this.add(G.value)}this.size=this.JSC$8777_map_.size};
B.prototype.add=function(z){z=z===0?0:z;this.JSC$8777_map_.set(z,z);this.size=this.JSC$8777_map_.size;return this};
B.prototype.delete=function(z){z=this.JSC$8777_map_.delete(z);this.size=this.JSC$8777_map_.size;return z};
B.prototype.clear=function(){this.JSC$8777_map_.clear();this.size=0};
B.prototype.has=function(z){return this.JSC$8777_map_.has(z)};
B.prototype.entries=function(){return this.JSC$8777_map_.entries()};
B.prototype.values=function(){return this.JSC$8777_map_.values()};
B.prototype.keys=B.prototype.values;B.prototype[Symbol.iterator]=B.prototype.values;B.prototype.forEach=function(z,G){var Y=this;this.JSC$8777_map_.forEach(function(d){return z.call(G,d,d,Y)})};
return B});
LQ("Math.log2",function(W){return W?W:function(B){return Math.log(B)/Math.LN2}});
LQ("Object.values",function(W){return W?W:function(B){var z=[],G;for(G in B)Rk(B,G)&&z.push(B[G]);return z}});
LQ("Object.is",function(W){return W?W:function(B,z){return B===z?B!==0||1/B===1/z:B!==B&&z!==z}});
LQ("Array.prototype.includes",function(W){return W?W:function(B,z){var G=this;G instanceof String&&(G=String(G));var Y=G.length;z=z||0;for(z<0&&(z=Math.max(z+Y,0));z<Y;z++){var d=G[z];if(d===B||Object.is(d,B))return!0}return!1}});
LQ("String.prototype.includes",function(W){return W?W:function(B,z){return zC(this,B,"includes").indexOf(B,z||0)!==-1}});
LQ("Array.from",function(W){return W?W:function(B,z,G){z=z!=null?z:function(v){return v};
var Y=[],d=typeof Symbol!="undefined"&&Symbol.iterator&&B[Symbol.iterator];if(typeof d=="function"){B=d.call(B);for(var E=0;!(d=B.next()).done;)Y.push(z.call(G,d.value,E++))}else for(d=B.length,E=0;E<d;E++)Y.push(z.call(G,B[E],E));return Y}});
LQ("Object.entries",function(W){return W?W:function(B){var z=[],G;for(G in B)Rk(B,G)&&z.push([G,B[G]]);return z}});
LQ("Number.isFinite",function(W){return W?W:function(B){return typeof B!=="number"?!1:!isNaN(B)&&B!==Infinity&&B!==-Infinity}});
LQ("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
LQ("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
LQ("Number.isInteger",function(W){return W?W:function(B){return Number.isFinite(B)?B===Math.floor(B):!1}});
LQ("Number.isSafeInteger",function(W){return W?W:function(B){return Number.isInteger(B)&&Math.abs(B)<=Number.MAX_SAFE_INTEGER}});
LQ("String.prototype.endsWith",function(W){return W?W:function(B,z){var G=zC(this,B,"endsWith");z===void 0&&(z=G.length);z=Math.max(0,Math.min(z|0,G.length));for(var Y=B.length;Y>0&&z>0;)if(G[--z]!=B[--Y])return!1;return Y<=0}});
var WVk=function(W,B){W instanceof String&&(W+="");var z=0,G=!1,Y={next:function(){if(!G&&z<W.length){var d=z++;return{value:B(d,W[d]),done:!1}}G=!0;return{done:!0,value:void 0}}};
Y[Symbol.iterator]=function(){return Y};
return Y};
LQ("Array.prototype.entries",function(W){return W?W:function(){return WVk(this,function(B,z){return[B,z]})}});
LQ("Math.trunc",function(W){return W?W:function(B){B=Number(B);if(isNaN(B)||B===Infinity||B===-Infinity||B===0)return B;var z=Math.floor(Math.abs(B));return B<0?-z:z}});
LQ("Number.isNaN",function(W){return W?W:function(B){return typeof B==="number"&&isNaN(B)}});
LQ("Array.prototype.keys",function(W){return W?W:function(){return WVk(this,function(B){return B})}});
LQ("Array.prototype.values",function(W){return W?W:function(){return WVk(this,function(B,z){return z})}});
LQ("Array.prototype.fill",function(W){return W?W:function(B,z,G){var Y=this.length||0;z<0&&(z=Math.max(0,Y+z));if(G==null||G>Y)G=Y;G=Number(G);G<0&&(G=Math.max(0,Y+G));for(z=Number(z||0);z<G;z++)this[z]=B;return this}});
var GC=function(W){return W?W:Array.prototype.fill};
LQ("Int8Array.prototype.fill",GC);LQ("Uint8Array.prototype.fill",GC);LQ("Uint8ClampedArray.prototype.fill",GC);LQ("Int16Array.prototype.fill",GC);LQ("Uint16Array.prototype.fill",GC);LQ("Int32Array.prototype.fill",GC);LQ("Uint32Array.prototype.fill",GC);LQ("Float32Array.prototype.fill",GC);LQ("Float64Array.prototype.fill",GC);
LQ("Object.fromEntries",function(W){return W?W:function(B){var z={};if(!(Symbol.iterator in B))throw new TypeError("v`"+B);B=B[Symbol.iterator].call(B);for(var G=B.next();!G.done;G=B.next()){G=G.value;if(Object(G)!==G)throw new TypeError("w");z[G[0]]=G[1]}return z}});
LQ("String.prototype.replaceAll",function(W){return W?W:function(B,z){if(B instanceof RegExp&&!B.global)throw new TypeError("x");return B instanceof RegExp?this.replace(B,z):this.replace(new RegExp(String(B).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),z)}});
LQ("Object.getOwnPropertySymbols",function(W){return W?W:function(){return[]}});
LQ("String.prototype.repeat",function(W){return W?W:function(B){var z=zC(this,null,"repeat");if(B<0||B>1342177279)throw new RangeError("y");B|=0;for(var G="";B;)if(B&1&&(G+=z),B>>>=1)z+=z;return G}});
LQ("Array.prototype.findIndex",function(W){return W?W:function(B,z){return Re2(this,B,z).i}});
LQ("Array.prototype.flatMap",function(W){return W?W:function(B,z){var G=[];Array.prototype.forEach.call(this,function(Y,d){Y=B.call(z,Y,d,this);Array.isArray(Y)?G.push.apply(G,Y):G.push(Y)});
return G}});
LQ("String.prototype.codePointAt",function(W){return W?W:function(B){var z=zC(this,null,"codePointAt"),G=z.length;B=Number(B)||0;if(B>=0&&B<G){B|=0;var Y=z.charCodeAt(B);if(Y<55296||Y>56319||B+1===G)return Y;B=z.charCodeAt(B+1);return B<56320||B>57343?Y:(Y-55296)*1024+B+9216}}});
LQ("String.fromCodePoint",function(W){return W?W:function(B){for(var z="",G=0;G<arguments.length;G++){var Y=Number(arguments[G]);if(Y<0||Y>1114111||Y!==Math.floor(Y))throw new RangeError("z`"+Y);Y<=65535?z+=String.fromCharCode(Y):(Y-=65536,z+=String.fromCharCode(Y>>>10&1023|55296),z+=String.fromCharCode(Y&1023|56320))}return z}});
LQ("String.prototype.trimLeft",function(W){function B(){return this.replace(/^[\s\xa0]+/,"")}
return W||B});
LQ("String.prototype.trimStart",function(W){return W||String.prototype.trimLeft});
LQ("String.prototype.padStart",function(W){return W?W:function(B,z){var G=zC(this,null,"padStart");B-=G.length;z=z!==void 0?String(z):" ";return(B>0&&z?z.repeat(Math.ceil(B/z.length)).substring(0,B):"")+G}});
LQ("Promise.prototype.finally",function(W){return W?W:function(B){return this.then(function(z){return Promise.resolve(B()).then(function(){return z})},function(z){return Promise.resolve(B()).then(function(){throw z;
})})}});
LQ("Math.imul",function(W){return W?W:function(B,z){B=Number(B);z=Number(z);var G=B&65535,Y=z&65535;return G*Y+((B>>>16&65535)*Y+G*(z>>>16&65535)<<16>>>0)|0}});
LQ("Object.hasOwn",function(W){return W?W:function(B,z){return Object.prototype.hasOwnProperty.call(B,z)}});
LQ("Math.sign",function(W){return W?W:function(B){B=Number(B);return B===0||isNaN(B)?B:B>0?1:-1}});
LQ("Array.prototype.flat",function(W){return W?W:function(B){B=B===void 0?1:B;var z=[];Array.prototype.forEach.call(this,function(G){Array.isArray(G)&&B>0?(G=Array.prototype.flat.call(G,B-1),z.push.apply(z,G)):z.push(G)});
return z}});
LQ("String.raw",function(W){return W?W:function(B,z){B=Q7t(B);for(var G=B.raw,Y=G.length,d="",E=0;E<Y;++E)d+=G[E],E+1<Y&&E+1<arguments.length&&(d+=String(arguments[E+1]));return d}});
LQ("Reflect.ownKeys",function(W){return W?W:function(B){var z=[],G=Object.getOwnPropertyNames(B);B=Object.getOwnPropertySymbols(B);for(var Y=0;Y<G.length;Y++)(G[Y].substring(0,14)=="jscomp_symbol_"?B:z).push(G[Y]);return z.concat(B)}});
LQ("Object.getOwnPropertyDescriptors",function(W){return W?W:function(B){for(var z={},G=Reflect.ownKeys(B),Y=0;Y<G.length;Y++)z[G[Y]]=Object.getOwnPropertyDescriptor(B,G[Y]);return z}});
LQ("WeakSet",function(W){if(function(){if(!W||!Object.seal)return!1;try{var z=Object.seal({}),G=Object.seal({}),Y=new W([z]);if(!Y.has(z)||Y.has(G))return!1;Y.delete(z);Y.add(G);return!Y.has(z)&&Y.has(G)}catch(d){return!1}}())return W;
var B=function(z){this.JSC$8790_map_=new WeakMap;if(z){z=_.A(z);for(var G;!(G=z.next()).done;)this.add(G.value)}};
B.prototype.add=function(z){this.JSC$8790_map_.set(z,!0);return this};
B.prototype.has=function(z){return this.JSC$8790_map_.has(z)};
B.prototype.delete=function(z){return this.JSC$8790_map_.delete(z)};
return B});
LQ("Promise.allSettled",function(W){function B(G){return{status:"fulfilled",value:G}}
function z(G){return{status:"rejected",reason:G}}
return W?W:function(G){var Y=this;G=Array.from(G,function(d){return Y.resolve(d).then(B,z)});
return Y.all(G)}});
LQ("Number.parseInt",function(W){return W||parseInt});
_._DumpException=window._DumpException||function(W){throw W;};
window._DumpException=_._DumpException;var BCv=window.ytcsi;BCv&&typeof BCv.tick==="function"&&BCv.tick("rses_dpj");var zTR,db,pV,As,Get,YHR,dyR,pYy,b9,A3R;zTR=zTR||{};_.Yt=this||self;_.BV=function(W,B,z){W=W.split(".");z=z||_.Yt;for(var G;W.length&&(G=W.shift());)W.length||B===void 0?z[G]&&z[G]!==Object.prototype[G]?z=z[G]:z=z[G]={}:z[G]=B};
db=function(W,B){var z=_.q6("WIZ_global_data.oxN3nb");W=z&&z[W];return W!=null?W:B};
pV=_.Yt._F_toggles_default_kevlar_base||[];As=function(){};
As.get=function(){return null};
_.xFx=null;_.q6=function(W,B){W=W.split(".");B=B||_.Yt;for(var z=0;z<W.length;z++)if(B=B[W[z]],B==null)return null;return B};
_.i0=function(W){W.instance_=void 0;W.getInstance=function(){return W.instance_?W.instance_:W.instance_=new W}};
_.MT=function(W){var B=typeof W;return B!="object"?B:W?Array.isArray(W)?"array":B:"null"};
_.yR=function(W){var B=_.MT(W);return B=="array"||B=="object"&&typeof W.length=="number"};
_.$t=function(W){var B=typeof W;return B=="object"&&W!=null||B=="function"};
_.Lu=function(W){return Object.prototype.hasOwnProperty.call(W,Get)&&W[Get]||(W[Get]=++YHR)};
Get="closure_uid_"+(Math.random()*1E9>>>0);YHR=0;dyR=function(W,B,z){return W.call.apply(W.bind,arguments)};
pYy=function(W,B,z){if(!W)throw Error();if(arguments.length>2){var G=Array.prototype.slice.call(arguments,2);return function(){var Y=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Y,G);return W.apply(B,Y)}}return function(){return W.apply(B,arguments)}};
_.jk=function(W,B,z){_.jk=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?dyR:pYy;return _.jk.apply(null,arguments)};
_.Ci=function(W,B){var z=Array.prototype.slice.call(arguments,1);return function(){var G=z.slice();G.push.apply(G,arguments);return W.apply(this,G)}};
_.EL=function(){return Date.now()};
b9=function(W){return W};
_.TC=function(W,B){function z(){}
z.prototype=B.prototype;W.superClass_=B.prototype;W.prototype=new z;W.prototype.constructor=W;W.base=function(G,Y,d){for(var E=Array(arguments.length-2),v=2;v<arguments.length;v++)E[v-2]=arguments[v];return B.prototype[Y].apply(G,E)}};
A3R=function(W){return W};var iTx,ESR;_.Q=function(W,B,z,G){var Y=arguments.length,d=Y<3?B:G===null?G=Object.getOwnPropertyDescriptor(B,z):G,E;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")d=Reflect.decorate(W,B,z,G);else for(var v=W.length-1;v>=0;v--)if(E=W[v])d=(Y<3?E(d):Y>3?E(B,z,d):E(B,z))||d;Y>3&&d&&Object.defineProperty(B,z,d)};
_.y=function(W,B){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(W,B)};
iTx=function(W,B){if(B!==null&&B!==void 0){if(typeof B!=="object"&&typeof B!=="function")throw new TypeError("A");if(z===void 0){if(!Symbol.dispose)throw new TypeError("C");var z=B[Symbol.dispose]}if(typeof z!=="function")throw new TypeError("D");W.stack.push({value:B,dispose:z,async:!1})}return B};
ESR=function(W){function B(d){W.error=W.hasError?new SuppressedError(d,W.error,"An error was suppressed during disposal."):d;W.hasError=!0}
function z(){for(;G=W.stack.pop();)try{if(!G.async&&Y===1)return Y=0,W.stack.push(G),Promise.resolve().then(z);if(G.dispose){var d=G.dispose.call(G.value);if(G.async)return Y|=2,Promise.resolve(d).then(z,function(E){B(E);return z()})}else Y|=1}catch(E){B(E)}if(Y===1)return W.hasError?Promise.reject(W.error):Promise.resolve();
if(W.hasError)throw W.error;}
var G,Y=0;z()};_.TC(_.zT,Error);_.zT.prototype.name="CustomError";var TCk;var vSu=void 0,c32,wYy=typeof TextDecoder!=="undefined",GTr,z8t=typeof String.prototype.isWellFormed==="function",BkX=typeof TextEncoder!=="undefined";var VOk;_.Sk=function(W){for(var B=[],z=0,G=0;G<W.length;G++){var Y=W.charCodeAt(G);Y<128?B[z++]=Y:(Y<2048?B[z++]=Y>>6|192:((Y&64512)==55296&&G+1<W.length&&(W.charCodeAt(G+1)&64512)==56320?(Y=65536+((Y&1023)<<10)+(W.charCodeAt(++G)&1023),B[z++]=Y>>18|240,B[z++]=Y>>12&63|128):B[z++]=Y>>12|224,B[z++]=Y>>6&63|128),B[z++]=Y&63|128)}return B};
VOk=function(W){for(var B=[],z=0,G=0;z<W.length;){var Y=W[z++];if(Y<128)B[G++]=String.fromCharCode(Y);else if(Y>191&&Y<224){var d=W[z++];B[G++]=String.fromCharCode((Y&31)<<6|d&63)}else if(Y>239&&Y<365){d=W[z++];var E=W[z++],v=W[z++];Y=((Y&7)<<18|(d&63)<<12|(E&63)<<6|v&63)-65536;B[G++]=String.fromCharCode(55296+(Y>>10));B[G++]=String.fromCharCode(56320+(Y&1023))}else d=W[z++],E=W[z++],B[G++]=String.fromCharCode((Y&15)<<12|(d&63)<<6|E&63)}return B.join("")};var J0=String.prototype.trim?function(W){return W.trim()}:function(W){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(W)[1]},J30=/&/g,gSX=/</g,tOy=/>/g,sik=/"/g,Pv8=/'/g,ZTQ=/\x00/g,r3y=/[\x00&<>"']/;var c8=!!(pV[0]>>15&1),kex=!!(pV[0]&1024),lwy=!!(pV[0]>>16&1),Cvx=!!(pV[0]&8),Iwx=!!(pV[0]&2),oS2=!!(pV[0]&4),hTr=!!(pV[0]&16),HTy=!!(pV[0]&128);var FVQ=db(1,!0),rk=c8?lwy:db(610401301,!1),SHR=c8?Cvx:db(772657768,!1),bTX=c8?Iwx:db(513659523,!1),jiQ=c8?kex||!oS2:db(568333945,!0),Rsx=c8?hTr:db(1331761403,!1),JKR=c8?kex||!HTy:db(748402147,FVQ);var kt,fwR=_.Yt.navigator;kt=fwR?fwR.userAgentData||null:null;var $b;_.mr=function(W,B){return Array.prototype.indexOf.call(W,B,void 0)};
_.$r=function(W,B,z){Array.prototype.forEach.call(W,B,z)};
_.wb=function(W,B,z){return Array.prototype.filter.call(W,B,z)};
_.xH=function(W,B,z){return Array.prototype.map.call(W,B,z)};
$b=function(W,B,z){return Array.prototype.some.call(W,B,z)};
_.bnt=function(W,B,z){return Array.prototype.every.call(W,B,z)};var VV=function(W){VV[" "](W);return W};
VV[" "]=function(){};
var oHy=function(W,B){try{return VV(W[B]),!0}catch(z){}return!1},P2u=function(W,B,z,G){G=G?G(B):B;
return Object.prototype.hasOwnProperty.call(W,G)?W[G]:W[G]=z(B)};var OTT,RX,XY2,KVR,eT2,my8,Czy,xyD,Dy0,Qit,Sm8,qHv,nSk,UyT,MOR,awr;_.Fp2=function(){return _.Yt.navigator||null};
OTT=A0R();_.Js=iuT();RX=ID("Edge");XY2=RX||_.Js;_.gb=ID("Gecko")&&!(_.wk(_.Py(),"WebKit")&&!ID("Edge"))&&!(ID("Trident")||ID("MSIE"))&&!ID("Edge");_.ts=_.wk(_.Py(),"WebKit")&&!ID("Edge");KVR=_.ts&&ID("Mobile");_.uYx=_.tQ0();eT2=_.sD0();my8=(SQ()?kt.platform==="Linux":ID("Linux"))||_.Pxr();Czy=_.J0D();xyD=gtR();Dy0=ID("iPad");Qit=ID("iPod");_.y3k=_.bx();Sm8=_.wk(_.Py(),"KaiOS");qHv=function(){var W=_.Yt.document;return W?W.documentMode:void 0};
a:{var NCu="",$yr=function(){var W=_.Py();if(_.gb)return/rv:([^\);]+)(\)|;)/.exec(W);if(RX)return/Edge\/([\d\.]+)/.exec(W);if(_.Js)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(W);if(_.ts)return/WebKit\/(\S+)/.exec(W);if(OTT)return/(?:Version)[ \/]?(\S+)/.exec(W)}();
$yr&&(NCu=$yr?$yr[1]:"");if(_.Js){var LV2=qHv();if(LV2!=null&&LV2>parseFloat(NCu)){nSk=String(LV2);break a}}nSk=NCu}UyT=nSk;MOR={};_.sL=function(W){return P2u(MOR,W,function(){return _.t0(UyT,W)>=0})};
if(_.Yt.document&&_.Js){var RT2=qHv();awr=RT2?RT2:parseInt(UyT,10)||void 0}else awr=void 0;_.WyR=awr;var K8X,uNT,B_D;_.P8=Hy();K8X=gtR()||ID("iPod");uNT=ID("iPad");B_D=_.vtD();_.ZJ=_.F2();_.mH=_.TkX()&&!_.bx();var z92,rb,qYr,fV8,YST,GcD;z92={};rb=null;qYr=_.gb||_.ts||typeof _.Yt.btoa=="function";_.Ob=function(W,B){B===void 0&&(B=0);GcD();B=z92[B];for(var z=Array(Math.floor(W.length/3)),G=B[64]||"",Y=0,d=0;Y<W.length-2;Y+=3){var E=W[Y],v=W[Y+1],c=W[Y+2],J=B[E>>2];E=B[(E&3)<<4|v>>4];v=B[(v&15)<<2|c>>6];c=B[c&63];z[d++]=J+E+v+c}J=0;c=G;switch(W.length-Y){case 2:J=W[Y+1],c=B[(J&15)<<2]||G;case 1:W=W[Y],z[d]=B[W>>2]+B[(W&3)<<4|J>>4]+c+G}return z.join("")};
fV8=function(W){var B="";YST(W,function(z){B+=String.fromCharCode(z)});
return B};
_.atu=function(W){var B=[];YST(W,function(z){B.push(z)});
return B};
_.aD=function(W){var B=W.length,z=B*3/4;z%3?z=Math.floor(z):_.cy("=.",W[B-1])&&(z=_.cy("=.",W[B-2])?z-2:z-1);var G=new Uint8Array(z),Y=0;YST(W,function(d){G[Y++]=d});
return Y!==z?G.subarray(0,Y):G};
YST=function(W,B){function z(c){for(;G<W.length;){var J=W.charAt(G++),g=rb[J];if(g!=null)return g;if(!_.TT(J))throw Error("H`"+J);}return c}
GcD();for(var G=0;;){var Y=z(-1),d=z(0),E=z(64),v=z(64);if(v===64&&Y===-1)break;B(Y<<2|d>>4);E!=64&&(B(d<<4&240|E>>2),v!=64&&B(E<<6&192|v))}};
GcD=function(){if(!rb){rb={};for(var W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),B=["+/=","+/","-_=","-_.","-_"],z=0;z<5;z++){var G=W.concat(B[z].split(""));z92[z]=G;for(var Y=0;Y<G.length;Y++){var d=G[Y];rb[d]===void 0&&(rb[d]=Y)}}}};var qXr=typeof Uint8Array!=="undefined",fv0=!_.Js&&typeof btoa==="function",Ouk=/[-_.]/g,buR={"-":"+",_:"/",".":"="},ou={};var Iu,puR;Iu=function(W,B){if(B!==ou)throw Error("J");this.JSC$8820_value_=W;if(W!=null&&W.length===0)throw Error("I");};
_.hM=function(){return dtv||(dtv=new Iu(null,ou))};
puR=function(W){return new Uint8Array(e1D(W)||0)};
Iu.prototype.isEmpty=function(){return this.JSC$8820_value_==null};
Iu.prototype.sizeBytes=function(){var W=e1D(this);return W?W.length:0};
var e1D=function(W){if(ou!==ou)throw Error("J");var B=W.JSC$8820_value_;B==null||qXr&&B!=null&&B instanceof Uint8Array||(typeof B==="string"?B=XyQ(B):(_.MT(B),B=null));return B==null?B:W.JSC$8820_value_=B},dtv;var u2y=void 0;var p7=typeof Symbol==="function"&&typeof Symbol()==="symbol",AFy=dU("jas",void 0,!0),XQx=dU(void 0,"0di"),z_=dU(void 0,"1oa"),fO=dU(void 0,Symbol()),a9k=dU(void 0,"0ub"),W0v=dU(void 0,"0ubs"),rZ2=dU(void 0,"0ubsb"),tfR=dU(void 0,"0actk"),CO=dU("m_m","messagePrototypeMarker",!0),Tit=dU(void 0,"vps"),L4y=dU();var xRr,mRk,$Y,i9x;xRr={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};mRk=Object.defineProperties;_.AM=p7?AFy:"internalArrayState";i9x=[];iR(i9x,7);$Y=Object.freeze(i9x);var hK={},cQ={},EKD=function(W,B,z){this.iterable=W;this.mapper=B;this.thisArg=z};
EKD.prototype.next=function(){var W=this.iterable.next();W.done||(W.value=this.mapper.call(this.thisArg,W.value));return W};
EKD.prototype[Symbol.iterator]=function(){return this};
var T_D=Object.freeze({}),SR={};_.vKT=f7(function(W){return W!==null&&W!==void 0});var MQX=f7(function(W){return typeof W==="number"}),URy=f7(function(W){return typeof W==="string"}),R8D=f7(function(W){return typeof W==="boolean"}),cFy=f7(function(W){return W!=null&&typeof W==="object"&&typeof W.then==="function"}),FHX=f7(function(W){return typeof W==="function"}),Ed=f7(function(W){return!!W&&(typeof W==="object"||typeof W==="function")});var avy=typeof _.Yt.BigInt==="function"&&typeof _.Yt.BigInt(0)==="bigint";var F4T=f7(function(W){return avy?W>=wux&&W<=Vzr:W[0]==="-"?W4Q(W,JFy):W4Q(W,gKu)}),JFy=Number.MIN_SAFE_INTEGER.toString(),wux=avy?BigInt(Number.MIN_SAFE_INTEGER):void 0,gKu=Number.MAX_SAFE_INTEGER.toString(),Vzr=avy?BigInt(Number.MAX_SAFE_INTEGER):void 0;var tzu=typeof Uint8Array.prototype.slice==="function",K7=0,uR=0,G6t;var i9,vn,au,JK,cMv;i9=typeof BigInt==="function"?BigInt.asIntN:void 0;_.gi=typeof BigInt==="function"?BigInt.asUintN:void 0;vn=Number.isSafeInteger;au=Number.isFinite;JK=Math.trunc;cMv=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var vYR={};var nMX={},syk=function(){try{var W=function(){return uxD(Map,[],this.constructor)};
_.C(W,Map);VV(new W);return!1}catch(B){return!0}}(),kT=function(){this.JSC$8839_map_=new Map};
_.p=kT.prototype;_.p.get=function(W){return this.JSC$8839_map_.get(W)};
_.p.set=function(W,B){this.JSC$8839_map_.set(W,B);this.size=this.JSC$8839_map_.size;return this};
_.p.delete=function(W){W=this.JSC$8839_map_.delete(W);this.size=this.JSC$8839_map_.size;return W};
_.p.clear=function(){this.JSC$8839_map_.clear();this.size=this.JSC$8839_map_.size};
_.p.has=function(W){return this.JSC$8839_map_.has(W)};
_.p.entries=function(){return this.JSC$8839_map_.entries()};
_.p.keys=function(){return this.JSC$8839_map_.keys()};
_.p.values=function(){return this.JSC$8839_map_.values()};
_.p.forEach=function(W,B){return this.JSC$8839_map_.forEach(W,B)};
kT.prototype[Symbol.iterator]=function(){return this.entries()};
var KO=function(){if(syk)return Object.setPrototypeOf(kT.prototype,Map.prototype),Object.defineProperties(kT.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),kT;var W=function(){return uxD(Map,[],this.constructor)};
_.C(W,Map);return W}(),Hn=function(W,B,z,G){z=z===void 0?xTk:z;
G=G===void 0?xTk:G;var Y=KO.call(this)||this;Y.arrayState=W[_.AM]|0;Y.valueCtor=B;Y.keyToApi=z;Y.valueToApi=Y.valueCtor?QuR:G;for(var d=0;d<W.length;d++){var E=W[d],v=z(E[0],!1,!0),c=E[1];B?c===void 0&&(c=null):c=G(E[1],!1,!0,void 0,void 0,Y.arrayState);KO.prototype.set.call(Y,v,c)}return Y};
_.C(Hn,KO);var PmQ=function(W){if(W.arrayState&2)throw Error("N");},ZOv=function(W){return Array.from(KO.prototype.entries.call(W))};
_.p=Hn.prototype;_.p.clear=function(){PmQ(this);KO.prototype.clear.call(this)};
_.p.delete=function(W){PmQ(this);return KO.prototype.delete.call(this,this.keyToApi(W,!0,!1))};
_.p.entries=function(){if(this.valueCtor){var W=KO.prototype.keys.call(this);W=new EKD(W,yMr,this)}else W=KO.prototype.entries.call(this);return W};
_.p.values=function(){if(this.valueCtor){var W=KO.prototype.keys.call(this);W=new EKD(W,Hn.prototype.get,this)}else W=KO.prototype.values.call(this);return W};
_.p.forEach=function(W,B){this.valueCtor?KO.prototype.forEach.call(this,function(z,G,Y){W.call(B,Y.get(G),G,Y)}):KO.prototype.forEach.call(this,W,B)};
_.p.set=function(W,B){PmQ(this);W=this.keyToApi(W,!0,!1);return W==null?this:B==null?(KO.prototype.delete.call(this,W),this):KO.prototype.set.call(this,W,this.valueToApi(B,!0,!0,this.valueCtor,!1,this.arrayState))};
_.p.has=function(W){return KO.prototype.has.call(this,this.keyToApi(W,!1,!1))};
_.p.get=function(W){W=this.keyToApi(W,!1,!1);var B=KO.prototype.get.call(this,W);if(B!==void 0){var z=this.valueCtor;return z?(z=this.valueToApi(B,!1,!0,z,this.callToMutableOnAccess,this.arrayState),z!==B&&KO.prototype.set.call(this,W,z),z):B}};
Hn.prototype[Symbol.iterator]=function(){return this.entries()};
Hn.prototype.toJSON=void 0;var qFR;var Ybt=function(){},z1u=function(W,B){for(var z in W)!isNaN(z)&&B(W,+z,W[z])},dft=function(W){var B=new Ybt;
z1u(W,function(z,G,Y){B[G]=yd(Y)});
B.reviveUnknownFields=W.reviveUnknownFields;return B},UTX={reviveIntoImmutable:!0};var Gq8;var cK8,wnt;var Z9r,aj,JX,ZD,rFu,Sm,sc,kc2,lmQ,OL,CmR,XP,em,mw;Z9r=_.OF(0);_.l0={};_.CV=function(W,B,z,G,Y){B=aj(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B,z,Y);if(B!==null||G&&W.noLegacyNull!==cQ)return B};
aj=function(W,B,z,G){if(B===-1)return null;var Y=B+(z?0:-1),d=W.length-1;if(!(d<1+(z?0:-1))){if(Y>=d){var E=W[d];if(E!=null&&typeof E==="object"&&E.constructor===Object){z=E[B];var v=!0}else if(Y===d)z=E;else return}else z=W[Y];if(G&&z!=null){G=G(z);if(G==null)return G;if(!Object.is(G,z))return v?E[B]=G:W[Y]=G,G}return z}};
_.EE=function(W,B,z,G){yr(W);var Y=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Nf(Y,Y[_.AM]|0,B,z,G);return W};
_.IO=function(W,B,z){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return fix(W,W[_.AM]|0,B,z)!==void 0};
_.oO=function(W,B,z,G){var Y=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return fix(Y,Y[_.AM]|0,B,ZD(W,G,z))!==void 0};
_.vC=function(W){return W===T_D?2:4};
_.hs=function(W,B){W=_.CV(W,B,void 0,void 0,h1x);return W==null?_.hM():W};
JX=function(W,B,z,G){yr(W);var Y=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=Y[_.AM]|0;if(G==null){var E=Sbv(Y);if(bOD(E,Y,d,z)===B)E.set(z,0);else return W}else d=jjx(Y,d,z,B);Nf(Y,d,B,G);return W};
_.H8=function(W,B,z,G){var Y=W[_.AM]|0,d=jR(Y);Y=jjx(W,Y,z,B,d);Nf(W,Y,B,G,d)};
ZD=function(W,B,z){return _.FP(W,B)===z?z:-1};
_.FP=function(W,B){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return bOD(Sbv(W),W,void 0,B,void 0)};
rFu=function(W,B,z){var G=W[_.AM]|0,Y=jR(G),d=aj(W,z,Y);if(d!=null&&d[CO]===hK){if(!PQ(d))return Qr(d),d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var E=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(d)&&(E=d);if(E){var v=E[_.AM]|0;v&2&&(E=xY(E,v))}E=m0(E,B,!0);E!==d&&Nf(W,G,z,E,Y);return E};
_.AD=function(W,B,z,G){var Y=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=Y[_.AM]|0;B=fix(Y,d,B,z,G);if(B==null)return B;d=Y[_.AM]|0;if(!PQ(W,d)){var E=DTt(B);E!==B&&(Qr(W)&&(Y=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=Y[_.AM]|0),B=E,d=Nf(Y,d,z,B,G),qf(Y,d))}return B};
_.TP=function(W,B,z,G){var Y=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return OOu(W,Y,Y[_.AM]|0,B,z,G,!1,!0)};
_.o3=function(W,B,z,G){z=XnD(z);_.EE(W,B,z,G);z&&!PQ(z)&&qf(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return W};
_.hZ=function(W,B,z,G){G=XnD(G);JX(W,B,z,G);G&&!PQ(G)&&qf(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return W};
Sm=function(W,B,z){yr(W);var G=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=G[_.AM]|0;if(z==null)return Nf(G,Y,B),W;for(var d=z===$Y?7:z[_.AM]|0,E=d,v=Mf(d),c=v||Object.isFrozen(z),J=!0,g=!0,t=0;t<z.length;t++){var P=z[t];v||(P=PQ(P),J&&(J=!P),g&&(g=P))}v||(d=J?13:5,d=g?d&-4097:d|4096);c&&d===E||(z=yd(z),E=0,d=LO(d,Y));d!==E&&iR(z,d);Y=Nf(G,Y,B,z);2&d||!(4096&d||16&d)||qf(G,Y);return W};
sc=function(W,B,z,G){u6r(W,B,z,G);return W};
kc2=function(W,B,z){u6r(W,B,b0,void 0,z,1,!0);return W};
_.jm=function(W,B,z){W=_.CV(W,B,void 0,z);B=typeof W;W=W==null?W:B==="bigint"?_.OF((0,_.gi)(64,W)):_.Ru(W)?B==="string"?_.H7R(W):_.oM2(W):void 0;return W};
_.fV=function(W,B){var z=z===void 0?!1:z;var G;return(G=_.vMr(_.CV(W,B)))!=null?G:z};
_.cC=function(W,B,z){z=z===void 0?0:z;var G;return(G=_.di(_.CV(W,B)))!=null?G:z};
lmQ=function(W,B){var z=z===void 0?0:z;W=_.VRR(_.CV(W,B));return W!=null?W:z};
OL=function(W,B,z){z=z===void 0?Z9r:z;var G;return(G=_.jur(_.CV(W,B)))!=null?G:z};
CmR=function(W){var B=B===void 0?Z9r:B;var z;return(z=_.jm(W,23))!=null?z:B};
XP=function(W,B){var z=z===void 0?0:z;var G;return(G=_.CV(W,B,void 0,void 0,_.NT))!=null?G:z};
_.KV=function(W,B,z,G){z=z===void 0?"":z;var Y;return(Y=_.l9(_.CV(W,B,G)))!=null?Y:z};
_.u0=function(W,B){var z=z===void 0?0:z;var G;return(G=_.zq(_.CV(W,B)))!=null?G:z};
em=function(W,B){var z=z===void 0?"0":z;W=b7R(_.CV(W,B),!0);return W!=null?W:z};
mw=function(W,B,z){return _.KV(W,ZD(W,z,B))};
_.xT=function(W,B,z,G){return _.AD(W,B,ZD(W,G,z),void 0)};
_.Cp=function(W,B){return _.l9(_.CV(W,B,void 0,_.l0))};
_.gH=function(W,B,z){return _.EE(W,B,TUQ(z))};
_.Oh=function(W,B,z){return _.Wb(W,B,TUQ(z),!1)};
_.DJ=function(W,B,z){return _.EE(W,B,_.YY(z))};
_.kE=function(W,B,z){return _.EE(W,B,Tq(z))};
_.f3=function(W,B,z){return _.EE(W,B,ri(z))};
_.U_=function(W,B,z,G){return _.Wb(W,B,ri(z),"",G)};
_.i2=function(W,B,z){return _.EE(W,B,z==null?z:_.Wn(z))};
_.QV=function(W,B,z){return _.Wb(W,B,z==null?z:_.Wn(z),0)};var G_=function(W,B,z){this.buffer=W;if(z&&!B)throw Error();this.JSC$8851_isImmutable=B};var ImR=function(W,B,z,G){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8854_start_=0;this.init(W,B,z,G)},yV,h9t,H9D,Fy2,SS2,b9t,To0,oKR;
_.p=ImR.prototype;_.p.init=function(W,B,z,G){var Y=G===void 0?{}:G;G=Y.aliasBytesFields===void 0?!1:Y.aliasBytesFields;Y=Y.treatNewDataAsImmutable===void 0?!1:Y.treatNewDataAsImmutable;this.aliasBytesFields=G;this.treatNewDataAsImmutable=Y;W&&(W=mfr(W,this.treatNewDataAsImmutable),this.bytes_=W.buffer,this.bytesAreImmutable_=W.JSC$8851_isImmutable,this.JSC$8854_start_=B||0,this.end_=z!==void 0?this.JSC$8854_start_+z:this.bytes_.length,this.cursor_=this.JSC$8854_start_)};
_.p.free=function(){this.clear();oKR.length<100&&oKR.push(this)};
_.p.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8854_start_=0;this.aliasBytesFields=!1};
_.p.reset=function(){this.cursor_=this.JSC$8854_start_};
_.p.atEnd=function(){return this.cursor_==this.end_};
_.qi=function(W,B){var z=0,G=0,Y=0,d=W.bytes_,E=W.cursor_;do{var v=d[E++];z|=(v&127)<<Y;Y+=7}while(Y<32&&v&128);if(Y>32)for(G|=(v&127)>>4,Y=3;Y<32&&v&128;Y+=7)v=d[E++],G|=(v&127)<<Y;yV(W,E);if(!(v&128))return B(z>>>0,G>>>0);throw Error();};
yV=function(W,B){W.cursor_=B;if(B>W.end_)throw Error();};
_.nV=function(W){var B=W.bytes_,z=W.cursor_,G=B[z++],Y=G&127;if(G&128&&(G=B[z++],Y|=(G&127)<<7,G&128&&(G=B[z++],Y|=(G&127)<<14,G&128&&(G=B[z++],Y|=(G&127)<<21,G&128&&(G=B[z++],Y|=G<<28,G&128&&B[z++]&128&&B[z++]&128&&B[z++]&128&&B[z++]&128&&B[z++]&128)))))throw Error();yV(W,z);return Y};
_.Ni=function(W){var B=W.bytes_,z=W.cursor_,G=B[z],Y=B[z+1],d=B[z+2];B=B[z+3];yV(W,W.cursor_+4);return(G<<0|Y<<8|d<<16|B<<24)>>>0};
h9t=function(W){var B=_.Ni(W);W=_.Ni(W);return dTx(B,W)};
H9D=function(W){var B=_.Ni(W);W=(B>>31)*2+1;var z=B>>>23&255;B&=8388607;return z==255?B?NaN:W*Infinity:z==0?W*1.401298464324817E-45*B:W*Math.pow(2,z-150)*(B+8388608)};
Fy2=function(W){var B=_.Ni(W),z=_.Ni(W);W=(z>>31)*2+1;var G=z>>>20&2047;B=4294967296*(z&1048575)+B;return G==2047?B?NaN:W*Infinity:G==0?W*4.9E-324*B:W*Math.pow(2,G-1075)*(B+4503599627370496)};
SS2=function(W){for(var B=0,z=W.cursor_,G=z+10,Y=W.bytes_;z<G;){var d=Y[z++];B|=d;if((d&128)===0)return yV(W,z),!!(B&127)}throw Error();};
b9t=function(W,B){if(B<0)throw Error();var z=W.cursor_;B=z+B;if(B>W.end_)throw Error();W.cursor_=B;return z};
To0=function(W,B){if(B==0)return _.hM();var z=b9t(W,B);W.aliasBytesFields&&W.bytesAreImmutable_?z=W.bytes_.subarray(z,z+B):(W=W.bytes_,B=z+B,z=z===B?new Uint8Array(0):tzu?W.slice(z,B):new Uint8Array(W.subarray(z,B)));return z.length==0?_.hM():new Iu(z,ou)};
oKR=[];var fmx=function(W,B,z,G){if(oKR.length){var Y=oKR.pop();Y.init(W,B,z,G);W=Y}else W=new ImR(W,B,z,G);this.decoder_=W;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;jyT(this,G)},jyT=function(W,B){B=B===void 0?{}:B;
W.discardUnknownFields=B.discardUnknownFields===void 0?!1:B.discardUnknownFields},wbr=function(W,B,z,G){if(O9R.length){var Y=O9R.pop();
jyT(Y,G);Y.decoder_.init(W,B,z,G);return Y}return new fmx(W,B,z,G)},AZy,Eh8,$T,XuR,O9R;
fmx.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;O9R.length<100&&O9R.push(this)};
fmx.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
AZy=function(W){if(W.decoder_.atEnd())return!1;W.fieldCursor_=W.decoder_.cursor_;var B=_.nV(W.decoder_)>>>0,z=B>>>3;B&=7;if(!(B>=0&&B<=5))throw Error();if(z<1)throw Error();W.nextField_=z;W.nextWireType_=B;return!0};
Eh8=function(W){switch(W.nextWireType_){case 0:W.nextWireType_!=0?Eh8(W):SS2(W.decoder_);break;case 1:W=W.decoder_;yV(W,W.cursor_+8);break;case 2:if(W.nextWireType_!=2)Eh8(W);else{var B=_.nV(W.decoder_)>>>0;W=W.decoder_;yV(W,W.cursor_+B)}break;case 5:W=W.decoder_;yV(W,W.cursor_+4);break;case 3:B=W.nextField_;do{if(!AZy(W))throw Error();if(W.nextWireType_==4){if(W.nextField_!=B)throw Error();break}Eh8(W)}while(1);break;default:throw Error();}};
$T=function(W,B,z){var G=W.decoder_.end_,Y=_.nV(W.decoder_)>>>0;Y=W.decoder_.cursor_+Y;var d=Y-G;d<=0&&(W.decoder_.end_=Y,z(B,W,void 0,void 0,void 0),d=Y-W.decoder_.cursor_);if(d)throw Error();W.decoder_.cursor_=Y;W.decoder_.end_=G;return B};
XuR=function(W){var B=_.nV(W.decoder_)>>>0;W=W.decoder_;var z=b9t(W,B);W=W.bytes_;if(wYy){var G=W,Y;(Y=c32)||(Y=c32=new TextDecoder("utf-8",{fatal:!0}));B=z+B;G=z===0&&B===G.length?G:G.subarray(z,B);try{var d=Y.decode(G)}catch(J){if(vSu===void 0){try{Y.decode(new Uint8Array([128]))}catch(g){}try{Y.decode(new Uint8Array([97])),vSu=!0}catch(g){vSu=!1}}!vSu&&(c32=void 0);throw J;}}else{d=z;B=d+B;z=[];for(var E=null,v,c;d<B;)v=W[d++],v<128?z.push(v):v<224?d>=B?GT():(c=W[d++],v<194||(c&192)!==128?(d--,
GT()):z.push((v&31)<<6|c&63)):v<240?d>=B-1?GT():(c=W[d++],(c&192)!==128||v===224&&c<160||v===237&&c>=160||((Y=W[d++])&192)!==128?(d--,GT()):z.push((v&15)<<12|(c&63)<<6|Y&63)):v<=244?d>=B-2?GT():(c=W[d++],(c&192)!==128||(v<<28)+(c-144)>>30!==0||((Y=W[d++])&192)!==128||((G=W[d++])&192)!==128?(d--,GT()):(v=(v&7)<<18|(c&63)<<12|(Y&63)<<6|G&63,v-=65536,z.push((v>>10&1023)+55296,(v&1023)+56320))):GT(),z.length>=8192&&(E=Wr2(E,z),z.length=0);d=Wr2(E,z)}return d};
_.Kyk=function(W){var B=_.nV(W.decoder_)>>>0;return To0(W.decoder_,B)};
_.ujx=function(W,B,z){var G=_.nV(W.decoder_)>>>0;for(G=W.decoder_.cursor_+G;W.decoder_.cursor_<G;)z.push(B(W.decoder_))};
O9R=[];var e9u=function(W,B){this.JSC$8861_lo=W>>>0;this.JSC$8861_hi=B>>>0},mtx=function(W){W=BigInt.asUintN(64,W);
return new e9u(Number(W&BigInt(4294967295)),Number(W>>BigInt(32)))},Qjy=function(W){if(!W)return xt8||(xt8=new e9u(0,0));
if(!/^\d+$/.test(W))return null;Qd(W);return new e9u(K7,uR)},xt8,ohT=function(W,B){this.JSC$8863_lo=W>>>0;
this.JSC$8863_hi=B>>>0},xfr=function(W){if(!W)return DtD||(DtD=new ohT(0,0));
if(!/^-?\d+$/.test(W))return null;Qd(W);return new ohT(K7,uR)},DtD;var LV=function(){this.JSC$8865_buffer_=[]},JZ,tZ,QyQ;
LV.prototype.length=function(){return this.JSC$8865_buffer_.length};
LV.prototype.end=function(){var W=this.JSC$8865_buffer_;this.JSC$8865_buffer_=[];return W};
JZ=function(W,B,z){for(;z>0||B>127;)W.JSC$8865_buffer_.push(B&127|128),B=(B>>>7|z<<25)>>>0,z>>>=7;W.JSC$8865_buffer_.push(B)};
tZ=function(W,B){for(;B>127;)W.JSC$8865_buffer_.push(B&127|128),B>>>=7;W.JSC$8865_buffer_.push(B)};
_.hmr=function(W,B){if(B>=0)tZ(W,B);else{for(var z=0;z<9;z++)W.JSC$8865_buffer_.push(B&127|128),B>>=7;W.JSC$8865_buffer_.push(1)}};
QyQ=function(W,B){Qd(B);pQR(function(z,G){JZ(W,z>>>0,G>>>0)})};
LV.prototype.writeUint8=function(W){this.JSC$8865_buffer_.push(W>>>0&255)};
_.VN=function(W,B){W.JSC$8865_buffer_.push(B>>>0&255);W.JSC$8865_buffer_.push(B>>>8&255);W.JSC$8865_buffer_.push(B>>>16&255);W.JSC$8865_buffer_.push(B>>>24&255)};
LV.prototype.writeInt8=function(W){this.JSC$8865_buffer_.push(W>>>0&255)};var yFy,EK,FFR,j3k,Nir;yFy=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new LV};
EK=function(W,B){B.length!==0&&(W.blocks_.push(B),W.totalLength_+=B.length)};
_.qSX=function(W,B){_.wo(W,B,2);B=W.encoder_.end();EK(W,B);B.push(W.totalLength_);return B};
_.nKR=function(W,B){var z=B.pop();for(z=W.totalLength_+W.encoder_.length()-z;z>127;)B.push(z&127|128),z>>>=7,W.totalLength_++;B.push(z);W.totalLength_++};
_.wo=function(W,B,z){tZ(W.encoder_,B*8+z)};
FFR=function(W,B,z){if(z!=null)switch(yKD(z),_.wo(W,B,1),typeof z){case "number":W=W.encoder_;BUk(z);_.VN(W,K7);_.VN(W,uR);break;case "bigint":z=mtx(z);W=W.encoder_;B=z.JSC$8861_hi;_.VN(W,z.JSC$8861_lo);_.VN(W,B);break;default:z=Qjy(z),W=W.encoder_,B=z.JSC$8861_hi,_.VN(W,z.JSC$8861_lo),_.VN(W,B)}};
j3k=function(W,B,z){_.wo(W,B,2);tZ(W.encoder_,z.length);EK(W,W.encoder_.end());EK(W,z)};
Nir=function(W,B,z,G){z!=null&&(B=_.qSX(W,B),G(z,W),_.nKR(W,B))};var qbD,N_2,$t8,Ly0,Ut8,amk,R9u,BmR,z0R;qbD=Yh();N_2=Yh();$t8=Yh();Ly0=Yh();Ut8=Yh();_.Mz0=Yh();_.UL=Yh();amk=Yh();R9u=Yh();_.Wck=Yh();BmR=Yh();z0R=Yh();_.G0R=Yh();_.YNy=Yh();_.iQ=function(W,B,z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W,B,z)};
_.iQ.prototype.toJSON=function(){return u9(this)};
_.iQ.prototype.serialize=function(W){return JSON.stringify(u9(this,W))};
var DZD=function(W,B){if(B==null||B=="")return new W;B=JSON.parse(B);if(!Array.isArray(B))throw Error("V");return new W(y02(B))};
_.iQ.prototype.getExtension=function(W){RDR(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W.fieldIndex);MRu(this,W.fieldIndex);return W.ctor?W.isRepeated?W.getExtensionFn(this,W.ctor,W.fieldIndex,_.vC(),W.JSC$8876_hasMessageId):W.getExtensionFn(this,W.ctor,W.fieldIndex,W.JSC$8876_hasMessageId):W.isRepeated?W.getExtensionFn(this,W.fieldIndex,_.vC(),W.JSC$8876_hasMessageId):W.getExtensionFn(this,W.fieldIndex,W.defaultValue,W.JSC$8876_hasMessageId)};
_.iQ.prototype.clone=function(){var W=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=W[_.AM]|0;return liy(this,W,B)?kq8(this,W,!0):new this.constructor(xY(W,B,!1))};
_.iQ.prototype[CO]=hK;_.iQ.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var pm=function(W,B,z){this.$$binaryReaderFn=W;this.$$binaryWriterFn=B;W=b9(qbD);this.$$isMsg=!!W&&z===W||!1},R1y=nYD(function(W,B,z,G,Y){if(W.nextWireType_!==2)return!1;
$T(W,rFu(B,G,z),Y);return!0},L00),WFr=nYD(function(W,B,z,G,Y){if(W.nextWireType_!==2)return!1;
$T(W,rFu(B,G,z),Y);return!0},L00),JZk=Symbol(),G_k=Symbol(),pb8=Symbol(),s3u=Symbol(),vhT=Symbol(),Ufy,MfR;var emr,dqu,Mi,pPR,AJ0,iCk,E9T,RO,Tmk,Wq,v9t,cJy,wPv,VPQ,JJv,g90,tPQ,P5x,ZCX,rJT,k0R;emr=function(W,B){var z=new yFy;PQk(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z,AZ(JZk,VNy,ghy,B));EK(z,z.encoder_.end());W=new Uint8Array(z.totalLength_);B=z.blocks_;for(var G=B.length,Y=0,d=0;d<G;d++){var E=B[d];W.set(E,Y);Y+=E.length}z.blocks_=[W];return W};
dqu=nYD(function(W,B,z,G,Y){if(W.nextWireType_!==2)return!1;W=$T(W,m0([void 0,void 0],G,!0),Y);G=B[_.AM]|0;Y=jR(G);if(G&2)throw Error();var d=aj(B,z,Y);d instanceof Hn?(d.arrayState&2)!=0?(d=ZOv(d),d.push(W),Nf(B,G,z,d,Y)):(B=d,z=B.keyToApi(W[0],!1,!0),W=W[1],W=B.valueCtor?W===void 0?null:W:B.valueToApi(W,!1,!0,void 0,!1,B.arrayState),KO.prototype.set.call(B,z,W)):Array.isArray(d)?((d[_.AM]|0)&2&&(d=HOk(d),Nf(B,G,z,d,Y)),d.push(W)):Nf(B,G,z,[W],Y);return!0},function(W,B,z,G,Y){if(B instanceof Hn)B.forEach(function(v,
c){Nir(W,z,m0([c,
v],G,!1),Y)});
else if(Array.isArray(B))for(var d=0;d<B.length;d++){var E=B[d];Array.isArray(E)&&Nir(W,z,m0(E,G,!1),Y)}});
Mi=_.vb(function(W,B,z){if(W.nextWireType_!==1)return!1;_.cb(B,z,Fy2(W.decoder_));return!0},CQD,z0R);
pPR=_.vb(function(W,B,z,G){if(W.nextWireType_!==1)return!1;_.H8(B,z,G,Fy2(W.decoder_));return!0},CQD,z0R);
AJ0=_.vb(function(W,B,z){if(W.nextWireType_!==5)return!1;_.cb(B,z,H9D(W.decoder_));return!0},IRv,BmR);
iCk=_.lRD(function(W,B,z){if(W.nextWireType_!==5&&W.nextWireType_!==2)return!1;B=_.Bb(B,B[_.AM]|0,z);W.nextWireType_==2?_.ujx(W,H9D,B):B.push(H9D(W.decoder_));return!0},function(W,B,z){B=_.k_0(_.NT,B,!0);
if(B!=null&&B.length)for(_.wo(W,z,2),tZ(W.encoder_,B.length*4),z=0;z<B.length;z++){var G=W.encoder_;YFQ(B[z]);_.VN(G,K7)}},BmR);
E9T=_.vb(function(W,B,z,G){if(W.nextWireType_!==5)return!1;_.H8(B,z,G,H9D(W.decoder_));return!0},IRv,BmR);
_.aO=_.vb(function(W,B,z){if(W.nextWireType_!==0)return!1;_.cb(B,z,_.qi(W.decoder_,xM));return!0},_.go,_.UL);
RO=_.vb(function(W,B,z){if(W.nextWireType_!==0)return!1;W=_.qi(W.decoder_,xM);_.cb(B,z,W===0?void 0:W);return!0},_.go,_.UL);
Tmk=_.vb(function(W,B,z,G){if(W.nextWireType_!==0)return!1;_.H8(B,z,G,_.qi(W.decoder_,xM));return!0},_.go,_.UL);
Wq=_.vb(function(W,B,z){if(W.nextWireType_!==0)return!1;_.cb(B,z,_.qi(W.decoder_,dTx));return!0},function(W,B,z){B=O7v(B);
if(B!=null&&(yKD(B),B!=null))switch(_.wo(W,z,0),typeof B){case "number":W=W.encoder_;eR(B);JZ(W,K7,uR);break;case "bigint":z=mtx(B);JZ(W.encoder_,z.JSC$8861_lo,z.JSC$8861_hi);break;default:z=Qjy(B),JZ(W.encoder_,z.JSC$8861_lo,z.JSC$8861_hi)}},amk);
_.Bq=_.vb(function(W,B,z){if(W.nextWireType_!==0)return!1;_.cb(B,z,_.nV(W.decoder_));return!0},Hmr,Ly0);
v9t=_.vb(function(W,B,z){if(W.nextWireType_!==0)return!1;W=_.nV(W.decoder_);_.cb(B,z,W===0?void 0:W);return!0},Hmr,Ly0);
cJy=_.vb(function(W,B,z,G){if(W.nextWireType_!==0)return!1;_.H8(B,z,G,_.nV(W.decoder_));return!0},Hmr,Ly0);
wPv=_.vb(function(W,B,z){if(W.nextWireType_!==1)return!1;_.cb(B,z,h9t(W.decoder_));return!0},_.SKD,_.Wck);
VPQ=_.lRD(function(W,B,z){if(W.nextWireType_!==1&&W.nextWireType_!==2)return!1;B=_.Bb(B,B[_.AM]|0,z);W.nextWireType_==2?_.ujx(W,h9t,B):B.push(h9t(W.decoder_));return!0},function(W,B,z){B=_.k_0(O7v,B,!1);
if(B!=null)for(var G=0;G<B.length;G++)FFR(W,z,B[G])},_.Wck);
_.zI=_.vb(function(W,B,z){if(W.nextWireType_!==0)return!1;_.cb(B,z,SS2(W.decoder_));return!0},bm2,N_2);
_.GI=_.vb(function(W,B,z){if(W.nextWireType_!==0)return!1;W=SS2(W.decoder_);_.cb(B,z,W===!1?void 0:W);return!0},bm2,N_2);
JJv=_.vb(function(W,B,z,G){if(W.nextWireType_!==0)return!1;_.H8(B,z,G,SS2(W.decoder_));return!0},bm2,N_2);
_.Yi=_.vb(function(W,B,z){if(W.nextWireType_!==2)return!1;_.cb(B,z,XuR(W));return!0},fRt,$t8);
_.dw=_.vb(function(W,B,z){if(W.nextWireType_!==2)return!1;W=XuR(W);_.cb(B,z,W===""?void 0:W);return!0},fRt,$t8);
_.pf=_.vb(function(W,B,z,G){if(W.nextWireType_!==2)return!1;_.H8(B,z,G,XuR(W));return!0},fRt,$t8);
g90=_.lRD(function(W,B,z){if(W.nextWireType_!==2)return!1;W=XuR(W);_.Bb(B,B[_.AM]|0,z).push(W);return!0},function(W,B,z){B=_.k_0(_.l9,B,!0);
if(B!=null)for(var G=0;G<B.length;G++){var Y=W,d=z,E=B[G];E!=null&&j3k(Y,d,YX8(E))}},$t8);
tPQ=void 0;tPQ=tPQ===void 0?qbD:tPQ;_.Ao=new pm(function(W,B,z,G,Y){if(W.nextWireType_!==2)return!1;G=m0(void 0,G,!0);_.Bb(B,B[_.AM]|0,z).push(G);$T(W,G,Y);return!0},function(W,B,z,G,Y){if(Array.isArray(B))for(var d=0;d<B.length;d++)Omt(W,B[d],z,G,Y)},tPQ);
_.iL=nYD(function(W,B,z,G,Y,d){if(W.nextWireType_!==2)return!1;var E=B[_.AM]|0;jjx(B,E,d,z,jR(E));B=rFu(B,G,z);$T(W,B,Y);return!0},Omt);
_.smx=_.vb(function(W,B,z){if(W.nextWireType_!==2)return!1;_.cb(B,z,_.Kyk(W));return!0},_.Xb2,_.G0R);
P5x=_.vb(function(W,B,z,G){if(W.nextWireType_!==2)return!1;_.H8(B,z,G,_.Kyk(W));return!0},_.Xb2,_.G0R);
ZCX=_.vb(function(W,B,z){if(W.nextWireType_!==0)return!1;_.cb(B,z,_.nV(W.decoder_)>>>0);return!0},KFk,Ut8);
rJT=_.vb(function(W,B,z,G){if(W.nextWireType_!==0)return!1;_.H8(B,z,G,_.nV(W.decoder_)>>>0);return!0},KFk,Ut8);
_.E8=_.vb(function(W,B,z){if(W.nextWireType_!==0)return!1;_.cb(B,z,_.nV(W.decoder_));return!0},_.uMy,_.YNy);
_.TI=_.vb(function(W,B,z){if(W.nextWireType_!==0)return!1;W=_.nV(W.decoder_);_.cb(B,z,W===0?void 0:W);return!0},_.uMy,_.YNy);
k0R=_.vb(function(W,B,z){if(W.nextWireType_!==0)return!1;_.cb(B,z,_.qi(W.decoder_,AMx));return!0},function(W,B,z){B=f90(B);
if(B!=null&&(Dfr(B),B!=null))switch(_.wo(W,z,0),typeof B){case "number":W=W.encoder_;z=B;B=z<0;z=Math.abs(z)*2;BUk(z);z=K7;var G=uR;B&&(z==0?G==0?G=z=4294967295:(G--,z=4294967295):z--);K7=z;uR=G;JZ(W,K7,uR);break;case "bigint":W=W.encoder_;B=B<<BigInt(1)^B>>BigInt(63);K7=Number(BigInt.asUintN(32,B));uR=Number(BigInt.asUintN(32,B>>BigInt(32)));JZ(W,K7,uR);break;default:QyQ(W.encoder_,B)}},R9u);var IOX=function(){var W=lO8,B=C5k;this.fieldIndex=175237375;this.ctor=B;this.isRepeated=0;this.getExtensionFn=_.AD;this.defaultValue=void 0;this.JSC$8876_hasMessageId=W.messageId!=null?SR:void 0};
IOX.prototype.register=function(){VV(this)};var o9R=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(o9R,_.iQ);var h0y=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(h0y,_.iQ);var qKX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(qKX,_.iQ);var HCt=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(HCt,_.iQ);var FcT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(FcT,_.iQ);var SNx=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(SNx,_.iQ);var bCR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(bCR,_.iQ);bCR.prototype.getData=function(){return _.hs(this,2)};var jm2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(jm2,_.iQ);var fOt=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(fOt,_.iQ);fOt.prototype.getStyle=function(){return _.AD(this,o9R,1)};var I3=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(I3,_.iQ);I3.prototype.getPayloadCase=function(){return _.FP(this,Hb)};
I3.prototype.getStyle=function(){return _.xT(this,fOt,6,Hb)};
var OC8=function(){var W=new I3,B=new FcT;return _.hZ(W,7,Hb,B)},XP0=function(){var W=new I3,B=new SNx;
return _.hZ(W,8,Hb,B)},Hb=[1,
2,3,4,5,6,7,8];var Kc2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Kc2,_.iQ);var ulD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(ulD,_.iQ);var e0D=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(e0D,_.iQ);var mqt=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(mqt,_.iQ);var xq0=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(xq0,_.iQ);var DqD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(DqD,_.iQ);var Qm8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Qm8,_.iQ);var yJr=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(yJr,_.iQ);yJr.prototype.getData=function(){return _.hs(this,2)};var qNy=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(qNy,_.iQ);var yZ2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(yZ2,_.iQ);yZ2.prototype.getPayloadCase=function(){return _.FP(this,vq)};
var vq=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var cq=function(W,B){W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=B===void 0?2:B};
_.C(cq,Error);var n9X=Promise;var Nmu=function(W){this.channelPromise=W};
Nmu.prototype.send=function(W,B,z){this.channelPromise.then(function(G){G.send(W,B,z)})};var $qQ=function(W,B){this.data=W;this.channel=B};
$qQ.prototype.reply=function(W,B,z){this.channel.send(W,B,z)};var Lcu=function(W){this.JSC$8942_port_=W};
Lcu.prototype.send=function(W,B,z){z=z===void 0?[]:z;var G=new MessageChannel;Uq0(G.port1,B);this.JSC$8942_port_.postMessage(W,[G.port2].concat(z))};
var MPX=function(W,B){Uq0(W,B);return new Lcu(W)},Uq0=function(W,B){B&&(W.onmessage=function(z){B(new $qQ(z.data,MPX(z.ports[0])))})};var aOv=function(W){this.verifier_=W};
aOv.prototype.verify=function(W){return this.verifier_(W)};
var R0R=function(W){var B=Object.create(null);(typeof W==="string"?[W]:W).forEach(function(z){if(z==="null")throw Error("X");B[z]=!0});
return function(z){return B[z]===!0}};_.WrH=function(){if(!_.Yt.addEventListener||!Object.defineProperty)return!1;var W=!1,B=Object.defineProperty({},"passive",{get:function(){W=!0}});
try{var z=function(){};
_.Yt.addEventListener("test",z,B);_.Yt.removeEventListener("test",z,B)}catch(G){}return W}();var BkF;_.ww=function(W){var B=W.destination;var z=W.iframe;var G=W.origin;var Y=W.channelName===void 0?"ZNWN1d":W.channelName;var d=W.onMessage===void 0?void 0:W.onMessage;W=W.onEstablished===void 0?void 0:W.onEstablished;return BkF({destination:B,getSource:function(){return z.contentWindow},
originVerifier:G instanceof aOv?G:typeof G==="function"?new aOv(G):new aOv(R0R(G)),channelName:Y,onMessage:d,onEstablished:W})};
BkF=function(W){var B=W.destination;var z=W.getSource;var G=W.originVerifier;var Y=W.token===void 0?void 0:W.token;var d=W.channelName;var E=W.onMessage===void 0?void 0:W.onMessage;var v=W.onEstablished===void 0?void 0:W.onEstablished;return new Nmu(new n9X(function(c,J){var g=function(t){t.source&&t.source===z()&&G.verify(t.origin)&&(t.data.n||t.data)===d&&(B.removeEventListener("message",g,!1),Y&&t.data.t!==Y?J(Error("Y`"+d+"`"+Y+"`"+t.data.t)):(c(MPX(t.ports[0],E)),v&&v(t)))};
B.addEventListener("message",g,!1)}))};var z8M=function(W){try{W()}catch(B){dk(B)}};var YXD=function(W){var B=this;var z=W.getMessageType;var G=W.onUnregisteredMessage===void 0?function(){}:W.onUnregisteredMessage;
var Y=W.onBeforeRegisteredMessage===void 0?function(){}:W.onBeforeRegisteredMessage;
W=W.onAfterRegisteredMessage===void 0?function(){}:W.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=z;this.onUnregisteredMessage_=G;this.onBeforeRegisteredMessage_=Y;this.onAfterRegisteredMessage_=W;this.onMessage=function(d){return GT4(B,d)}};
YXD.prototype.register=function(W,B){this.registry_.set(W,B);return this};
var GT4=function(W,B){var z=W.getMessageType_(B.data),G=W.registry_.get(z);G?(z8M(function(){return W.onBeforeRegisteredMessage_(B,z)}),z8M(function(){return G(B)}),z8M(function(){return W.onAfterRegisteredMessage_(B,z)})):z8M(function(){return W.onUnregisteredMessage_(B,z)})};var dRd=function(W){this.JSC$8959_channel_=W},A0d,iu6;
dRd.prototype.send=function(W,B,z){this.JSC$8959_channel_.send(u9(W),B,z)};
_.py7=function(W,B){return function(z){var G=new W(z.data);return B(new $qQ(G,z.channel))}};
A0d=function(W){return function(B){return W(new $qQ(B.data,new dRd(B.channel)))}};
iu6=function(W,B){return A0d(_.py7(W,B))};var Etd=function(W,B,z,G){this.registry=W;this.delegate=B;this.receiveMessageConstructor=z;this.createInitMessage=G;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},Q3v=function(W){var B=new YXD({getMessageType:W.getPayloadCase});
return new Etd(B,new dRd(_.ww({iframe:W.child,destination:window,origin:W.origin,channelName:W.channelName,onMessage:iu6(W.receiveMessageConstructor,B.onMessage)})),W.receiveMessageConstructor,W.createInitMessage)},TkF=function(W,B){W.createInitMessage=B};
Etd.prototype.send=function(W){if(!this.initialised)throw new cq("Attempted to send a message before initialisation.");this.delegate.send(W)};
var vtu=function(W,B){return _.T(function(z){if(!W.initialised)throw new cq("Attempted to send a message before initialisation.");return z.return(new Promise(function(G){W.delegate.send(B,iu6(W.receiveMessageConstructor,G))}))})};
Etd.prototype.init=function(){var W=this;return _.T(function(B){if(W.initialised)throw new cq("Attempted to initialise twice. The SDK can only be initialised once.");if(W.createInitMessage!==void 0){var z=W.delegate,G=z.send,Y=W.createInitMessage;var d=new h0y;var E=[].concat(_.u7(W.features));d=_.Rj(d,1,E,_.Wn);G.call(z,Y.call(W,d))}W.initialised=!0;_.HG(B)})};
var VG=function(W,B){if(W.initialised)throw new cq('Attempted to set up API "'+B+'" after initialisation. All APIs must be set up before initialising the SDK.');W.features.add(B);return W.registry};
_.G5.Object.defineProperties(Etd.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var c06=function(W){this.channel=W;this.registered=!1};
c06.prototype.update=function(W){if(this.channel.isInitialised){if(!this.registered)throw new cq("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var B=new I3;var z=new HCt;z=_.gH(z,1,W);B=_.hZ(B,2,Hb,z);this.channel.send(B)}else this.register();this.JSC$8973_audioEnabled=W};
c06.prototype.register=function(){VG(this.channel,1);this.registered=!0};
c06.prototype.isAudioEnabled=function(){return this.JSC$8973_audioEnabled};var wyH=function(W){this.channel=W};
_.p=wyH.prototype;_.p.onFirstFrameReady=function(W){VG(this.channel,2).register(11,function(B){B=_.xT(B.data,Kc2,11,vq);if(!B)throw new cq("Unexpectedly nonexistent GameFirstFrameReadyEvent");W(_.KV(B,1))})};
_.p.onReady=function(W){VG(this.channel,2).register(4,function(B){B=_.xT(B.data,e0D,4,vq);if(!B)throw new cq("Unexpectedly nonexistent GameReadyEvent");W(_.KV(B,1))})};
_.p.onLevelComplete=function(W){VG(this.channel,2).register(5,function(B){B=_.xT(B.data,mqt,5,vq);if(!B)throw new cq("Unexpectedly nonexistent LevelCompleteEvent");W(_.KV(B,1),_.cC(B,2))})};
_.p.onGameOver=function(W){VG(this.channel,2).register(6,function(B){B=_.xT(B.data,ulD,6,vq);if(!B)throw new cq("Unexpectedly nonexistent GameOverEvent");W(_.KV(B,1))})};
_.p.pause=function(){var W=this;if(!this.channel.isInitialised)return VG(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new cq("Using unregistered Game Feature: pause.");var B=OC8();return new Promise(function(z){return _.T(function(G){if(G.nextAddress==1)return G.yield(vtu(W.channel,B),2);z();_.HG(G)})})};
_.p.resume=function(){var W=this;if(!this.channel.isInitialised)return VG(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new cq("Using unregistered Game Feature: resume.");var B=XP0();return new Promise(function(z){return _.T(function(G){if(G.nextAddress==1)return G.yield(vtu(W.channel,B),2);z();_.HG(G)})})};var VQQ=function(W){this.channel=W};
VQQ.prototype.onReady=function(W){VG(this.channel,5).register(8,function(B){if(!_.xT(B.data,xq0,8,vq))throw new cq("Unexpectedly nonexistent PageReadyEvent");W()})};var J0u=function(W){this.channel=W};
J0u.prototype.onChange=function(W){VG(this.channel,3).register(7,function(B){B=_.xT(B.data,DqD,7,vq);if(!B)throw new cq("Unexpectedly nonexistent ScoreEvent");W(_.KV(B,1),_.cC(B,2))})};var gtd={load:function(){throw new cq("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new cq("Storage used, but storage.onSave() listener not set!");}},tQM=function(W){this.channel=W;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},sDM=function(W){VG(W.channel,4).register(2,gtd.load).register(3,gtd.save);
W.initialSetupDone=!0};
tQM.prototype.onLoad=function(W){this.initialSetupDone||sDM(this);this.loadRegistered||(this.loadRegistered=!0,VG(this.channel,4).register(2,function(B){var z,G,Y;return _.T(function(d){if(d.nextAddress==1){z=_.xT(B.data,Qm8,2,vq);if(!z)throw new cq("Unexpectedly nonexistent StorageLoad");G=_.KV(z,1);return d.yield(W(G),2)}Y=d.yieldResult;var E=B.reply,v=new I3;var c=new bCR;c=_.f3(c,1,G);c=_.EE(c,2,_.HQ(Y,!1));v=_.hZ(v,3,Hb,c);E.call(B,v);_.HG(d)})}))};
tQM.prototype.onSave=function(W){this.initialSetupDone||sDM(this);this.saveRegistered||(this.saveRegistered=!0,VG(this.channel,4).register(3,function(B){var z,G,Y;return _.T(function(d){if(d.nextAddress==1){z=_.xT(B.data,yJr,3,vq);if(!z)throw new cq("Unexpectedly nonexistent StorageSave");G=_.KV(z,1);Y=puR(z.getData());return d.yield(W(G,Y),2)}var E=B.reply,v=new I3;var c=new jm2;c=_.f3(c,1,G);v=_.hZ(v,4,Hb,c);E.call(B,v);_.HG(d)})}))};var Px4=function(W){this.channel=W};
Px4.prototype.update=function(W){if(!this.channel.features.has(6))throw new cq("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var B=new I3,z=new fOt;W=_.o3(z,1,W);B=_.hZ(B,6,Hb,W);this.channel.send(B)};
Px4.prototype.register=function(){VG(this.channel,6)};var Zu7=function(W){this.channel=W;this.userActivityLoggingIntervalMs=0};
Zu7.prototype.onUserActivity=function(W,B){this.userActivityLoggingIntervalMs=B;VG(this.channel,7).register(9,function(z){if(!_.xT(z.data,qNy,9,vq))throw new cq("Unexpectedly nonexistent ClickEvent");W()})};var r0M=function(W){var B=this;this.channel=W;this.init=this.channel.init.bind(this.channel);this.page=new VQQ(this.channel);this.game=new wyH(this.channel);this.audio=new c06(this.channel);this.score=new J0u(this.channel);this.storage=new tQM(this.channel);this.style=new Px4(this.channel);this.userActivity=new Zu7(this.channel);TkF(this.channel,function(z){var G=new qKX;z=_.o3(G,1,z);z=_.DJ(z,3,B.userActivity.userActivityLoggingIntervalMs);G=B.audio.isAudioEnabled();G!==void 0&&_.gH(z,2,G);G=new I3;
return _.hZ(G,5,Hb,z)})};var kT6=function(){this.timedFunctionContext=0};
kT6.prototype.timeExecution=function(W,B){var z=this;return function(){var G=_.nm.apply(0,arguments);z.timedFunctionContext=W;return B.apply(null,_.u7(G))}};var lvF=function(){var W={};this.priorityTasks=(W[3]=[],W[2]=[],W[1]=[],W);this.isFlushing=!1},C3=function(W,B,z){var G=CxD(W,z);
W.priorityTasks[z].push(B);G&&W.priorityTasks[z].length===1&&W.flush()},CxD=function(W,B){return Object.keys(W.priorityTasks).map(function(z){return Number(z)}).filter(function(z){return!isNaN(z)&&z>B}).every(function(z){return W.priorityTasks[z].length===0})};
lvF.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(W){return W.length>0});)IvH(this,3),IvH(this,2),IvH(this,1)}catch(W){throw Object.values(this.priorityTasks).forEach(function(B){return void B.splice(0,B.length)}),W;
}finally{this.isFlushing=!1}}};
var IvH=function(W,B){for(;CxD(W,B)&&W.priorityTasks[B].length>0;)W.priorityTasks[B][0](),W.priorityTasks[B].shift()};
_.G5.Object.defineProperties(lvF.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(W){return W.length>0})}}});var aRr={};var ot7=globalThis.trustedTypes,NoD=ot7,LFR;var SN=function(W){this.privateDoNotAccessOrElseWrappedResourceUrl=W};
SN.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var h8D,Hu6,FrD,SXF,bud,jDM,fvM,OuU;h8D=_.ak([""]);Hu6=Mg(["\x00"],["\\0"]);FrD=Mg(["\n"],["\\n"]);SXF=Mg(["\x00"],["\\u0000"]);bud=_.ak([""]);jDM=Mg(["\x00"],["\\0"]);fvM=Mg(["\n"],["\\n"]);OuU=Mg(["\x00"],["\\u0000"]);_.XyR=MNR(function(W){return W(h8D)})||MNR(function(W){return W(Hu6)})||MNR(function(W){return W(FrD)})||MNR(function(W){return W(SXF)});
_.Kr6=_.OK(bud)&&_.OK(jDM)&&_.OK(fvM)&&_.OK(OuU);var QN;_.XM=function(W,B){this.privateDoNotAccessOrElseWrappedUrl=B};
_.XM.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.u2Q=Km("about:blank");QN=Km("about:invalid#zClosurez");var RmR=function(W){this.isValid=W},e8F=new RmR(function(W){return/^[^:]*([/?#]|$)/.test(W)}),mRU=xh("data"),xR4=xh("http"),DRQ=xh("https"),QD4=xh("ftp"),y0H=xh("mailto"),qX4=xh("intent"),ntM=xh("vnd.youtube"),WDD=[mRU,
xR4,DRQ,y0H,QD4,e8F],z6X=FM(function(){return typeof URL==="function"}),Nk4=["data:",
"http:","https:","mailto:","ftp:"],Y0Q=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var UK=function(W){this.privateDoNotAccessOrElseWrappedHtml=W};
UK.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var gbQ=FM(function(){return new UK(ot7?ot7.emptyHTML:"")});var $RM={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"},pGv=function(W,B){var z=Error.call(this,W+" cannot be used with intent "+$RM[B]);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.type=W;this.intent=B;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.C(pGv,Error);_.Gd=function(W){this.privateDoNotAccessOrElseWrappedScript=W};
_.Gd.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var TjD=function(W){this.privateDoNotAccessOrElseWrappedAttributePrefix=W};
TjD.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var vAR="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var vG=function(W){this.privateDoNotAccessOrElseWrappedStyleSheet=W};
vG.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var SMr=function(W){var B=_.q6("window.location.href");W==null&&(W='Unknown Error of type "null/undefined"');if(typeof W==="string")return{message:W,name:"Unknown error",lineNumber:"Not available",fileName:B,stack:"Not available"};var z=!1;try{var G=W.lineNumber||W.line||"Not available"}catch(E){G="Not available",z=!0}try{var Y=W.fileName||W.filename||W.sourceURL||_.Yt.$googDebugFname||B}catch(E){Y="Not available",z=!0}B=Lr9(W);if(!(!z&&W.lineNumber&&W.fileName&&W.stack&&W.message&&W.name)){z=W.message;
if(z==null){if(W.constructor&&W.constructor instanceof Function){if(W.constructor.name)z=W.constructor.name;else if(z=W.constructor,Jo[z])z=Jo[z];else{z=String(z);if(!Jo[z]){var d=/function\s+([^\(]+)/m.exec(z);Jo[z]=d?d[1]:"[Anonymous]"}z=Jo[z]}z='Unknown Error of type "'+z+'"'}else z="Unknown Error of unknown type";typeof W.toString==="function"&&Object.prototype.toString!==W.toString&&(z+=": "+W.toString())}return{message:z,name:W.name||"UnknownError",lineNumber:G,fileName:Y,stack:B||"Not available"}}return{message:W.message,
name:W.name,lineNumber:W.lineNumber,fileName:W.fileName,stack:B}},Lr9=function(W,B){B||(B={});
B[URQ(W)]=!0;var z=W.stack||"",G=W.cause;G&&!B[URQ(G)]&&(z+="\nCaused by: ",G.stack&&G.stack.indexOf(G.toString())==0||(z+=typeof G==="string"?G:G.message+"\n"),z+=Lr9(G,B));W=W.errors;if(Array.isArray(W)){G=1;var Y;for(Y=0;Y<W.length&&!(G>4);Y++)B[URQ(W[Y])]||(z+="\nInner error "+G++ +": ",W[Y].stack&&W[Y].stack.indexOf(W[Y].toString())==0||(z+=typeof W[Y]==="string"?W[Y]:W[Y].message+"\n"),z+=Lr9(W[Y],B));Y<W.length&&(z+="\n... "+(W.length-Y)+" more inner errors")}return z},URQ=function(W){var B=
"";
typeof W.toString==="function"&&(B=""+W);return B+W.stack},Jo={};var MQF,G4,sM,R8u,W4R,avQ,Lp,$6,zDQ;MQF=function(W,B){for(var z=W.split("%s"),G="",Y=Array.prototype.slice.call(arguments,1);Y.length&&z.length>1;)G+=z.shift()+Y.shift();return G+z.join("%s")};
_.N6=function(W){return encodeURIComponent(String(W))};
G4=function(W){return decodeURIComponent(W.replace(/\+/g," "))};
sM=function(W){r3y.test(W)&&(W.indexOf("&")!=-1&&(W=W.replace(J30,"&amp;")),W.indexOf("<")!=-1&&(W=W.replace(gSX,"&lt;")),W.indexOf(">")!=-1&&(W=W.replace(tOy,"&gt;")),W.indexOf('"')!=-1&&(W=W.replace(sik,"&quot;")),W.indexOf("'")!=-1&&(W=W.replace(Pv8,"&#39;")),W.indexOf("\x00")!=-1&&(W=W.replace(ZTQ,"&#0;")));return W};
R8u=function(W){var B={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var z=_.Yt.document.createElement("div");return W.replace(avQ,function(G,Y){var d=B[G];if(d)return d;Y.charAt(0)=="#"&&(Y=Number("0"+Y.slice(1)),isNaN(Y)||(d=String.fromCharCode(Y)));d||(_.A6(z,MZ(G+" ")),d=z.firstChild.nodeValue.slice(0,-1));return B[G]=d})};
W4R=function(W){return W.replace(/&([^;]+);/g,function(B,z){switch(z){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return z.charAt(0)!="#"||(z=Number("0"+z.slice(1)),isNaN(z))?B:String.fromCharCode(z)}})};
avQ=/&([^;\s<&]+);?/g;_.i_T=function(W){return String(W).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.BUU=String.prototype.repeat?function(W,B){return W.repeat(B)}:function(W,B){return Array(B+1).join(W)};
_.gw=function(W,B){if(!Number.isFinite(W))return String(W);W=String(W);var z=W.indexOf(".");z===-1&&(z=W.length);var G=W[0]==="-"?"-":"";G&&(W=W.substring(1));return G+(0,_.BUU)("0",Math.max(0,B-z))+W};
Lp=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.EL()).toString(36)};
$6=function(W){for(var B=0,z=0;z<W.length;++z)B=31*B+W.charCodeAt(z)>>>0;return B};
_.ly=function(W){return String(W).replace(/\-([a-z])/g,function(B,z){return z.toUpperCase()})};
_.k6=function(W){return String(W).replace(/([A-Z])/g,"-$1").toLowerCase()};
zDQ=function(W){return W.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(B,z,G){return z+G.toUpperCase()})};var G6M=function(){this.names=new Map};
G6M.prototype.getName=function(W){var B=this.names.get(W);if(B)return B;var z;B=(z=W.description)!=null?z:Lp();this.names.set(W,B);return B};var YFR=function(W){var B=Error.call(this,W?W.length+" errors occurred during unsubscription:\n"+W.map(function(z,G){return G+1+") "+z.toString()}).join("\n  "):"");
this.message=B.message;"stack"in B&&(this.stack=B.stack);this.errors=W;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.C(YFR,Error);var wj=function(W){this.initialTeardown=W;this.closed=!1;this._teardowns=this._parentage=null};
_.p=wj.prototype;
_.p.unsubscribe=function(){if(!this.closed){this.closed=!0;var W=this._parentage;if(Array.isArray(W))for(var B=_.A(W),z=B.next();!z.done;z=B.next())z.value.remove(this);else W==null||W.remove(this);B=this.initialTeardown;if(cG(B))try{B()}catch(d){var G=d instanceof YFR?d.errors:[d]}var Y=this._teardowns;if(Y)for(this._teardowns=null,B=_.A(Y),z=B.next();!z.done;z=B.next()){z=z.value;try{cG(z)?z():z.unsubscribe()}catch(d){z=void 0,G=(z=G)!=null?z:[],d instanceof YFR?G=[].concat(_.u7(G),_.u7(d.errors)):
G.push(d)}}if(G)throw new YFR(G);}};
_.p.add=function(W){if(W&&W!==this)if(this.closed)cG(W)?W():W.unsubscribe();else{if(W instanceof wj){if(W.closed||W._hasParent(this))return;W._addParent(this)}var B;(this._teardowns=(B=this._teardowns)!=null?B:[]).push(W)}};
_.p._hasParent=function(W){var B=this._parentage;return B===W||Array.isArray(B)&&B.includes(W)};
_.p._addParent=function(W){var B=this._parentage;this._parentage=Array.isArray(B)?(B.push(W),B):B?[B,W]:W};
_.p._removeParent=function(W){var B=this._parentage;B===W?this._parentage=null:Array.isArray(B)&&J6k(B,W)};
_.p.remove=function(W){var B=this._teardowns;B&&J6k(B,W);W instanceof wj&&W._removeParent(this)};
var dTR=new wj;dTR.closed=!0;wj.JSC$9069_EMPTY=dTR;var tFx=function(){setTimeout.apply(null,_.u7(_.nm.apply(0,arguments)))};var to=function(W){wj.call(this);this.JSC$9074_isStopped=!1;this.destination=W instanceof to?W:new s8(!W||cG(W)?{next:W!=null?W:void 0}:W);gAR(W)&&W.add(this)};
_.C(to,wj);to.JSC$9069_EMPTY=wj.JSC$9069_EMPTY;to.create=function(W,B,z){return new Pq(W,B,z)};
_.p=to.prototype;_.p.next=function(W){this.JSC$9074_isStopped||this._next(W)};
_.p.error=function(W){this.JSC$9074_isStopped||(this.JSC$9074_isStopped=!0,this._error(W))};
_.p.complete=function(){this.JSC$9074_isStopped||(this.JSC$9074_isStopped=!0,this._complete())};
_.p.unsubscribe=function(){this.closed||(this.JSC$9074_isStopped=!0,wj.prototype.unsubscribe.call(this))};
_.p._next=function(W){this.destination.next(W)};
_.p._error=function(W){this.destination.error(W);this.unsubscribe()};
_.p._complete=function(){this.destination.complete();this.unsubscribe()};
var s8=function(W){this.partialObserver=W};
s8.prototype.next=function(W){var B=this.partialObserver;if(B.next)try{B.next(W)}catch(z){J6(z)}};
s8.prototype.error=function(W){var B=this.partialObserver;if(B.error)try{B.error(W)}catch(z){J6(z)}else J6(W)};
s8.prototype.complete=function(){var W=this.partialObserver;if(W.complete)try{W.complete()}catch(B){J6(B)}};
var Pq=function(W,B,z){to.call(this);var G;cG(W)||!W?G={next:W!=null?W:void 0,error:B!=null?B:void 0,complete:z!=null?z:void 0}:G=W;this.destination=new s8(G)};
_.C(Pq,to);Pq.JSC$9069_EMPTY=to.JSC$9069_EMPTY;Pq.create=to.create;var PG=typeof Symbol==="function"&&Symbol.observable||"@@observable";var s0=function(W){W&&(this._subscribe=W)};
_.p=s0.prototype;_.p.lift=function(W){var B=new s0;B.source=this;B.operator=W;return B};
_.p.subscribe=function(W,B,z){W=W&&W instanceof to||W&&cG(W.next)&&cG(W.error)&&cG(W.complete)&&gAR(W)?W:new Pq(W,B,z);B=this.operator;z=this.source;W.add(B?B.call(W,z):z?this._subscribe(W):this._trySubscribe(W));return W};
_.p._trySubscribe=function(W){try{return this._subscribe(W)}catch(B){W.error(B)}};
_.p.forEach=function(W,B){var z=this;B=P7X(B);return new B(function(G,Y){var d=z.subscribe(function(E){try{W(E)}catch(v){Y(v),d==null||d.unsubscribe()}},Y,G)})};
_.p._subscribe=function(W){var B;return(B=this.source)==null?void 0:B.subscribe(W)};
s0.prototype[PG]=function(){return this};
s0.prototype.pipe=function(){var W=_.nm.apply(0,arguments);return W.length?sRQ(W)(this):this};
s0.create=function(W){return new s0(W)};var pQd=function(){var W=Error.call(this,"object unsubscribed");this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.C(pQd,Error);var r3=function(){this.observers=[];this.hasError=this.JSC$9090_isStopped=this.closed=!1;this.thrownError=null};
_.C(r3,s0);_.p=r3.prototype;_.p.lift=function(W){var B=new ZF(this,this);B.operator=W;return B};
_.p._throwIfClosed=function(){if(this.closed)throw new pQd;};
_.p.next=function(W){this._throwIfClosed();if(!this.JSC$9090_isStopped){var B=this.observers.slice();B=_.A(B);for(var z=B.next();!z.done;z=B.next())z.value.next(W)}};
_.p.error=function(W){this._throwIfClosed();if(!this.JSC$9090_isStopped){this.hasError=this.JSC$9090_isStopped=!0;this.thrownError=W;for(var B=this.observers;B.length;)B.shift().error(W)}};
_.p.complete=function(){this._throwIfClosed();if(!this.JSC$9090_isStopped){this.JSC$9090_isStopped=!0;for(var W=this.observers;W.length;)W.shift().complete()}};
_.p.unsubscribe=function(){this.JSC$9090_isStopped=this.closed=!0;this.observers=null};
_.p._trySubscribe=function(W){this._throwIfClosed();return s0.prototype._trySubscribe.call(this,W)};
_.p._subscribe=function(W){this._throwIfClosed();this._checkFinalizedStatuses(W);return this._innerSubscribe(W)};
_.p._innerSubscribe=function(W){var B=this,z=this.JSC$9090_isStopped,G=this.observers;return this.hasError||z?wj.JSC$9069_EMPTY:(G.push(W),new wj(function(){return J6k(B.observers,W)}))};
_.p._checkFinalizedStatuses=function(W){var B=this.thrownError,z=this.JSC$9090_isStopped;this.hasError?W.error(B):z&&W.complete()};
r3.create=function(W,B){return new ZF(W,B)};
var ZF=function(W,B){r3.call(this);this.destination=W;this.source=B};
_.C(ZF,r3);ZF.create=r3.create;ZF.prototype.next=function(W){var B,z;(B=this.destination)==null||(z=B.next)==null||z.call(B,W)};
ZF.prototype.error=function(W){var B,z;(B=this.destination)==null||(z=B.error)==null||z.call(B,W)};
ZF.prototype.complete=function(){var W,B;(W=this.destination)==null||(B=W.complete)==null||B.call(W)};
ZF.prototype._subscribe=function(W){var B,z;return(z=(B=this.source)==null?void 0:B.subscribe(W))!=null?z:wj.JSC$9069_EMPTY};var Md=function(W){r3.call(this);this._value=W};
_.C(Md,r3);Md.create=r3.create;Md.prototype._subscribe=function(W){var B=r3.prototype._subscribe.call(this,W);!B.closed&&W.next(this._value);return B};
Md.prototype.getValue=function(){var W=this.thrownError,B=this._value;if(this.hasError)throw W;this._throwIfClosed();return B};
Md.prototype.next=function(W){r3.prototype.next.call(this,this._value=W)};
_.G5.Object.defineProperties(Md.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var yc=new s0(function(W){return W.complete()});var l1t=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var HNy=function(W){return W&&typeof W.length==="number"&&typeof W!=="function"};var AMR={now:function(){return(AMR.delegate||Date).now()},
delegate:void 0};var p3=function(W,B,z){W=W===void 0?Infinity:W;B=B===void 0?Infinity:B;z=z===void 0?AMR:z;r3.call(this);this.bufferSize=W;this.windowTime=B;this.timestampProvider=z;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=B===Infinity;this.bufferSize=Math.max(1,W);this.windowTime=Math.max(1,B)};
_.C(p3,r3);p3.create=r3.create;p3.prototype.next=function(W){var B=this.buffer,z=this.infiniteTimeWindow,G=this.timestampProvider,Y=this.windowTime;this.JSC$9090_isStopped||(B.push(W),!z&&B.push(G.now()+Y));i7u(this);r3.prototype.next.call(this,W)};
p3.prototype._subscribe=function(W){this._throwIfClosed();i7u(this);for(var B=this._innerSubscribe(W),z=this.infiniteTimeWindow,G=this.buffer.slice(),Y=0;Y<G.length&&!W.closed;Y+=z?1:2)W.next(G[Y]);this._checkFinalizedStatuses(W);return B};
var i7u=function(W){var B=W.bufferSize,z=W.timestampProvider,G=W.buffer;W=W.infiniteTimeWindow;var Y=(W?1:2)*B;B<Infinity&&Y<G.length&&G.splice(0,G.length-Y);if(!W){B=z.now();z=0;for(W=1;W<G.length&&G[W]<=B;W+=2)z=W;z&&G.splice(0,z+1)}};var TUR=function(W,B){B=B===void 0?EMD:B;this.schedulerActionCtor=W;this.now=B};
TUR.prototype.schedule=function(W,B,z){B=B===void 0?0:B;return(new this.schedulerActionCtor(this,W)).schedule(z,B)};
var EMD=AMR.now;var Z30=function(){var W=Error.call(this,"no elements in sequence");this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.C(Z30,Error);var O0=function(W,B,z,G,Y){to.call(this,W);this.onUnsubscribe=Y;B&&(this._next=function(d){try{B(d)}catch(E){this.destination.error(E)}});
z&&(this._error=function(d){try{z(d)}catch(E){this.destination.error(E)}this.unsubscribe()});
G&&(this._complete=function(){try{G()}catch(d){this.destination.error(d)}this.unsubscribe()})};
_.C(O0,to);O0.JSC$9069_EMPTY=to.JSC$9069_EMPTY;O0.create=to.create;O0.prototype.unsubscribe=function(){var W;this.closed||(W=this.onUnsubscribe)!=null&&W.call(this);to.prototype.unsubscribe.call(this)};var GF=function(W,B){this.source=W;this.subjectFactory=B;this._subject=null;this._refCount=0;this._connection=null};
_.C(GF,s0);GF.create=s0.create;GF.prototype._subscribe=function(W){return vM4(this).subscribe(W)};
var vM4=function(W){var B=W._subject;if(!B||B.JSC$9090_isStopped)W._subject=W.subjectFactory();return W._subject};
GF.prototype._teardown=function(){this._refCount=0;var W=this._connection;this._subject=this._connection=null;W==null||W.unsubscribe()};
GF.prototype.connect=function(){var W=this,B=this._connection;if(!B){B=this._connection=new wj;var z=vM4(this);B.add(this.source.subscribe(new O0(z,void 0,function(G){W._teardown();z.error(G)},function(){W._teardown();
z.complete()},function(){return W._teardown()})));
B.closed&&(this._connection=null,B=wj.JSC$9069_EMPTY)}return B};var xku=Array.isArray;var QR8=Array.isArray,cM9=Object,y6y=cM9.getPrototypeOf,q0T=cM9.prototype,nAx=cM9.keys;var mD=function(W,B,z){to.call(this,W);this._next=B;this.shouldComplete=z};
_.C(mD,to);mD.JSC$9069_EMPTY=to.JSC$9069_EMPTY;mD.create=to.create;mD.prototype._complete=function(){this.shouldComplete()?to.prototype._complete.call(this):this.unsubscribe()};var B3x=["addListener","removeListener"],WPD=["addEventListener","removeEventListener"],GFD=["on","off"];var rw=function(){wj.call(this)};
_.C(rw,wj);rw.JSC$9069_EMPTY=wj.JSC$9069_EMPTY;rw.prototype.schedule=function(){return this};var wQU=function(W,B){return setInterval.apply(null,[W,B].concat(_.u7(_.nm.apply(2,arguments))))};var ki=function(W,B){wj.call(this);this.scheduler=W;this.work=B;this.pending=!1};
_.C(ki,rw);ki.JSC$9069_EMPTY=rw.JSC$9069_EMPTY;ki.prototype.schedule=function(W,B){B=B===void 0?0:B;if(this.closed)return this;this.state=W;W=this.id;var z=this.scheduler;W!=null&&(this.id=VRd(this,W,B));this.pending=!0;this.delay=B;this.id=this.id||this.requestAsyncId(z,this.id,B);return this};
ki.prototype.requestAsyncId=function(W,B,z){z=z===void 0?0:z;return wQU(W.flush.bind(W,this),z)};
var VRd=function(W,B,z){z=z===void 0?0:z;if(z!=null&&W.delay===z&&W.pending===!1)return B;clearInterval(B)};
ki.prototype.execute=function(W,B){if(this.closed)return Error("ha");this.pending=!1;if(W=this._execute(W,B))return W;this.pending===!1&&this.id!=null&&(this.id=VRd(this,this.id,null))};
ki.prototype._execute=function(W){var B=!1;try{this.work(W)}catch(G){B=!0;var z=!!G&&G||Error(G)}if(B)return this.unsubscribe(),z};
ki.prototype.unsubscribe=function(){if(!this.closed){var W=this.id,B=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;J6k(B,this);W!=null&&(this.id=VRd(this,W,null));this.delay=null;rw.prototype.unsubscribe.call(this)}};var JMM=function(W,B){B=B===void 0?EMD:B;TUR.call(this,W,B);this.actions=[];this.active=!1;this.scheduled=void 0};
_.C(JMM,TUR);JMM.prototype.flush=function(W){var B=this.actions;if(this.active)B.push(W);else{var z;this.active=!0;do if(z=W.execute(W.state,W.delay))break;while(W=B.shift());this.active=!1;if(z){for(;W=B.shift();)W.unsubscribe();throw z;}}};var K3=new s0(Vc);var YYk=Array.isArray;var lL=function(W,B){ki.call(this,W,B);this.scheduler=W;this.work=B};
_.C(lL,ki);lL.JSC$9069_EMPTY=ki.JSC$9069_EMPTY;lL.prototype.schedule=function(W,B){B=B===void 0?0:B;if(B>0)return ki.prototype.schedule.call(this,W,B);this.delay=B;this.state=W;this.scheduler.flush(this);return this};
lL.prototype.execute=function(W,B){return B>0||this.closed?ki.prototype.execute.call(this,W,B):this._execute(W,B)};
lL.prototype.requestAsyncId=function(W,B,z){z=z===void 0?0:z;return z!=null&&z>0||z==null&&this.delay>0?ki.prototype.requestAsyncId.call(this,W,B,z):W.flush(this)};var gMR=function(){JMM.apply(this,arguments)};
_.C(gMR,JMM);var e6R=new gMR(lL);var tR6=function(){this.performanceMonitor=new kT6;this.queue=new lvF;this.internalSymbol=Symbol();this.debugNames=new G6M};
tR6.prototype.getOnBackgrounded=function(){return K3};
_.G5.Object.defineProperties(tR6.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Cf=function(W,B){B=Error.call(this,B?W+": "+B:String(W));this.message=B.message;"stack"in B&&(this.stack=B.stack);this.code=W;this.__proto__=Cf.prototype;this.name=String(W)};
_.C(Cf,Error);var uf=function(W){Cf.call(this,1E3,'sfr:"'+W+'"');this.measurementStrategyFailureReason=W;this.__proto__=uf.prototype};
_.C(uf,Cf);var ew=function(){Cf.call(this,1003);this.__proto__=ew.prototype};
_.C(ew,Cf);var If=function(){Cf.call(this,1009);this.__proto__=If.prototype};
_.C(If,Cf);var suu=function(){Cf.call(this,1011);this.__proto__=suu.prototype};
_.C(suu,Cf);var PR6=function(){Cf.call(this,1007);this.__proto__=ew.prototype};
_.C(PR6,Cf);var OY=function(W){Cf.call(this,1004,String(W));this.inputObservableIndex=W;this.__proto__=OY.prototype};
_.C(OY,Cf);var XCr=function(W){Cf.call(this,1010,W);this.__proto__=KbX.prototype};
_.C(XCr,Cf);var KbX=function(W){Cf.call(this,1005,W);this.__proto__=KbX.prototype};
_.C(KbX,Cf);var Z7R=function(W){var B=_.nm.apply(1,arguments),z=this;this.orderedFactories=[];this.orderedFactories.push(W);B.forEach(function(G){z.orderedFactories.push(G)})};
Z7R.prototype.isSupported=function(W){return this.orderedFactories.some(function(B){return B.isSupported(W)})};
Z7R.prototype.makeBeacon=function(W,B){for(var z=0;z<this.orderedFactories.length;z++)if(this.orderedFactories[z].isSupported(B))return this.orderedFactories[z].makeBeacon(W,B);throw new If;};var CE8=Symbol("ia"),rM9=Symbol("ja"),LN=function(W,B){this.value=W;this.timeline=B},$A=function(W,B){if(B.timeline!==W.timeline)throw new PR6;
return W.value-B.value};
_.p=LN.prototype;_.p.equals=function(W){return $A(this,W)===0};
_.p.maximum=function(W){if(W.timeline!==this.timeline)throw new PR6;return this.value>=W.value?this:W};
_.p.round=function(){return new LN(Math.round(this.value),this.timeline)};
_.p.add=function(W){return new LN(this.value+W,this.timeline)};
_.p.toString=function(){return String(this.value)};var of=function(W,B){this.context=W;this.JSC$9196_pinger=B};
of.prototype.isSupported=function(W){return this.JSC$9196_pinger.isSupported(W)};
of.prototype.makeBeacon=function(W,B){if(!this.isSupported(B))throw new If;return new ho(this.context,this.JSC$9196_pinger,B!=null?B:void 0,W)};
var ho=function(W,B,z,G){var Y=this;this.JSC$9202_pinger=B;this.properties=z;this.url=G;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var d;this.method=(d=z==null?void 0:z.beaconMethod)!=null?d:"GET";this.backgroundedSubscription=W.getOnBackgrounded().subscribe(function(){Y.sendNow()})};
ho.prototype.deactivate=function(){this.internalIsPending=!1};
ho.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9202_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var W,B;this.JSC$9202_pinger.pingWithHeadersAndBody((W=this.properties)!=null?W:{},this.customHeaders,(B=this.body)!=null?B:"",this.url)}else this.JSC$9202_pinger.ping(this.url);this.internalIsPending=!1}catch(z){}else this.internalIsPending=!1};
ho.prototype.setHeader=function(W,B){this.customHeaders.set(W,B)};
_.G5.Object.defineProperties(ho.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var l9T=function(){for(var W=_.A(_.nm.apply(0,arguments)),B=W.next();!B.done;B=W.next())if(B=B.value,B.available()){this.timeProvider=B;return}this.timeProvider=new k6F};
_.p=l9T.prototype;_.p.available=function(){return this.timeProvider.available()};
_.p.now=function(){return this.timeProvider.now()};
_.p.setTimeout=function(W,B){return this.timeProvider.setTimeout(W,B)};
_.p.clearTimeout=function(W){this.timeProvider.clearTimeout(W)};
_.p.interval=function(W,B){var z=this.intervalObservable(W).subscribe(B);return function(){return void z.unsubscribe()}};
_.p.intervalObservable=function(W){return this.timeProvider.intervalObservable(W)};
_.G5.Object.defineProperties(l9T.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var k6F=function(){this.timeline=Symbol()};
_.p=k6F.prototype;_.p.available=function(){return!1};
_.p.now=function(){return new LN(0,this.timeline)};
_.p.setTimeout=function(){return 0};
_.p.clearTimeout=function(){};
_.p.interval=function(){return function(){}};
_.p.intervalObservable=function(){return K3};var FV=function(W,B){this.intrinsicFunctionNamespace=W;this.performanceMonitor=B};
_.p=FV.prototype;_.p.setTimeout=function(W,B){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,W),B)};
_.p.clearTimeout=function(W){this.intrinsicFunctionNamespace.clearTimeout(W)};
_.p.interval=function(W,B){var z=this.intervalObservable(W).subscribe(B);return function(){return void z.unsubscribe()}};
_.p.intervalObservable=function(W){var B=this;return new s0(function(z){var G=0,Y=B.intrinsicFunctionNamespace.setInterval(function(){z.next(G++)},W);
return function(){B.intrinsicFunctionNamespace.clearInterval(Y)}})};
_.p.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var CRM=function(W,B){FV.call(this,W,B);this.timeline=rM9};
_.C(CRM,FV);CRM.prototype.now=function(){return new LN(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
CRM.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&FV.prototype.available.call(this)};var I9M=function(W,B){FV.call(this,W,B);this.timeline=CE8};
_.C(I9M,FV);I9M.prototype.now=function(){return new LN(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
I9M.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&FV.prototype.available.call(this)};var hD9=function(W){this.context=W;if(oMH===void 0)a:{var B,z,G=(B=W.global)==null?void 0:(z=B.document)==null?void 0:z.createElement("meta");if(G)try{G.httpEquiv="origin-trial";G.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";W.global.document.head.append(G);oMH=G;break a}catch(Y){}oMH=void 0}},
oMH;
hD9.prototype.isSupported=function(W){return Vw8(this.context)!==void 0&&!(W==null||!W.endOfSession)&&!S7(this.context)&&!(W==null?0:W.attributionEnabled)&&!(W==null?0:W.customHeaders)&&!(W==null?0:W.customBody)};
hD9.prototype.makeBeacon=function(W,B){if(!this.isSupported(B))throw new If;return new bL(this.context,W,B)};
var bL=function(W,B,z){this.context=W;this.properties=z;this.JSC$9229_urlWithoutToken=B;var G;this.beaconMethod=(G=z==null?void 0:z.beaconMethod)!=null?G:"GET";W=Vw8(this.context);if(W===void 0)throw Error();this.fetchLater=W;H7d(this,F46(this))},H7d=function(W,B){W.beaconResult&&W.beaconResult.activated||(W.beaconAbort=new AbortController,W.beaconResult=W.fetchLater(B,{method:W.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:W.beaconAbort.signal,activateAfter:96E4}))},F46=function(W){W=W.JSC$9229_urlWithoutToken;
return(W.slice(-1)[0]==="&"?W:W+"&")+"flapi=1"};
bL.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
bL.prototype.sendNow=function(){};
bL.prototype.setHeader=function(){};
_.G5.Object.defineProperties(bL.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9229_urlWithoutToken},
set:function(W){this.JSC$9229_urlWithoutToken=W;W=F46(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);H7d(this,W)}},
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 SF9=function(W){this.context=W};
SF9.prototype.isSupported=function(){return!S7(this.context)&&!!this.context.global.fetch};
SF9.prototype.ping=function(){var W=this;return qk.apply(null,_.u7(_.nm.apply(0,arguments).map(function(B){return rj(W.context.global.fetch(B,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(KN(function(z){return z.status===200}))}))).pipe(rv2(function(B){return B}),ler())};
SF9.prototype.pingWithHeadersAndBody=function(W,B,z){for(var G=_.nm.apply(3,arguments),Y=this,d=new Headers,E=_.A(B.entries()),v=E.next();!v.done;v=E.next()){var c=_.A(v.value);v=c.next().value;c=c.next().value;d.set(v,c)}var J,g=(J=W.keepAlive)!=null?J:!1;qk.apply(null,_.u7(G.map(function(t){return rj(Y.context.global.fetch(t,Object.assign({},{method:String(W.beaconMethod),cache:"no-cache"},g?{keepalive:!0}:{},{mode:"no-cors",headers:d,body:z}))).pipe(KN(function(P){return P.status===200}))}))).pipe(rv2(function(t){return t}),
ler())};var b7T,Yxk;_.j7=function(){};
_.Ku=function(W){return W};
b7T=function(W){var B=B||0;return function(){return W.apply(this,Array.prototype.slice.call(arguments,0,B))}};
_.ff=function(W){var B=!1,z;return function(){B||(z=W(),B=!0);return z}};
_.O8=function(W,B){var z=0;return function(G){_.Yt.clearTimeout(z);var Y=arguments;z=_.Yt.setTimeout(function(){W.apply(void 0,Y)},B)}};
Yxk=function(W,B){var z=0,G=!1,Y=[],d=function(){z=0;G&&(G=!1,E())},E=function(){z=_.Yt.setTimeout(d,B);
var v=Y;Y=[];W.apply(void 0,v)};
return function(v){Y=arguments;z?G=!0:E()}};var f9M=function(){return rk&&kt?kt.mobile:!ju4()&&(ID("iPod")||ID("iPhone")||ID("Android")||ID("IEMobile"))},ju4=function(){return rk&&kt?!kt.mobile&&(ID("iPad")||ID("Android")||ID("Silk")):ID("iPad")||ID("Android")&&!ID("Mobile")||ID("Silk")};var O79;_.mP={};O79="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.mP.add=function(W,B,z){if(W!==null&&B in W)throw Error("la`"+B);W[B]=z};
_.mP.clear=function(W){for(var B in W)delete W[B]};
_.mP.clone=function(W){var B={},z;for(z in W)B[z]=W[z];return B};
_.mP.contains=function(W,B){return FPy(W,B)};
_.mP.containsKey=function(W,B){return W!==null&&B in W};
_.mP.containsValue=FPy;_.mP.create=j8t;_.mP.createImmutableView=function(W){var B=W;Object.isFrozen&&!Object.isFrozen(W)&&(B=Object.create(W),Object.freeze(B));return B};
_.mP.createSet=feT;_.mP.equals=function(W,B){for(var z in W)if(!(z in B)||W[z]!==B[z])return!1;for(var G in B)if(!(G in W))return!1;return!0};
_.mP.every=function(W,B,z){for(var G in W)if(!B.call(z,W[G],G,W))return!1;return!0};
_.mP.extend=function(W,B){for(var z,G,Y=1;Y<arguments.length;Y++){G=arguments[Y];for(z in G)W[z]=G[z];for(var d=0;d<O79.length;d++)z=O79[d],Object.prototype.hasOwnProperty.call(G,z)&&(W[z]=G[z])}};
_.mP.filter=function(W,B,z){var G={},Y;for(Y in W)B.call(z,W[Y],Y,W)&&(G[Y]=W[Y]);return G};
_.mP.findKey=SYX;_.mP.findValue=function(W,B,z){return(B=SYX(W,B,z))&&W[B]};
_.mP.forEach=function(W,B,z){for(var G in W)B.call(z,W[G],G,W)};
_.mP.get=function(W,B,z){return W!==null&&B in W?W[B]:z};
_.mP.getAllPropertyNames=function(W,B,z){if(!W)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return H3D(W);for(var G={};W&&(W!==Object.prototype||B)&&(W!==Function.prototype||z);){for(var Y=Object.getOwnPropertyNames(W),d=0;d<Y.length;d++)G[Y[d]]=!0;W=Object.getPrototypeOf(W)}return H3D(G)};
_.mP.getAnyKey=function(W){for(var B in W)return B};
_.mP.getAnyValue=function(W){for(var B in W)return W[B]};
_.mP.getCount=function(W){var B=0,z;for(z in W)B++;return B};
_.mP.getKeys=H3D;_.mP.getSuperClass=function(W){return(W=Object.getPrototypeOf(W.prototype))&&W.constructor};
_.mP.getValueByKeys=function(W,B){var z=_.yR(B),G=z?B:arguments;for(z=z?0:1;z<G.length;z++){if(W==null)return;W=W[G[z]]}return W};
_.mP.getValues=function(W){var B=[],z=0,G;for(G in W)B[z++]=W[G];return B};
_.mP.isEmpty=function(W){for(var B in W)return!1;return!0};
_.mP.isImmutableView=function(W){return!!Object.isFrozen&&Object.isFrozen(W)};
_.mP.map=function(W,B,z){var G={},Y;for(Y in W)G[Y]=B.call(z,W[Y],Y,W);return G};
_.mP.remove=function(W,B){var z;(z=B in W)&&delete W[B];return z};
_.mP.set=function(W,B,z){W[B]=z};
_.mP.setIfUndefined=function(W,B,z){return B in W?W[B]:W[B]=z};
_.mP.setWithReturnValueIfNotSet=function(W,B,z){if(B in W)return W[B];z=z();return W[B]=z};
_.mP.some=function(W,B,z){for(var G in W)if(B.call(z,W[G],G,W))return!0;return!1};
_.mP.transpose=function(W){var B={},z;for(z in W)B[W[z]]=z;return B};
_.mP.unsafeClone=b38;var XV=function(W,B,z,G,Y){this.allowedElements=W;this.elementPolicies=B;this.allowedGlobalAttributes=z;this.globalAttributePolicies=G;this.globallyAllowedAttributePrefixes=Y},XQR=function(W,B,z){z=W.elementPolicies.get(z);
return(z==null?0:z.has(B))?z.get(B):W.allowedGlobalAttributes.has(B)?{policyAction:1}:(z=W.globalAttributePolicies.get(B))?z:W.globallyAllowedAttributePrefixes&&[].concat(_.u7(W.globallyAllowedAttributePrefixes)).some(function(G){return B.indexOf(G)===0})?{policyAction:1}:{policyAction:0}};var K4M="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(" "),
uHD=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],eD6="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(" "),
mTu=[["dir",{policyAction:3,conditions:FM(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:FM(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:FM(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:FM(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],xTU=new XV(new Set(K4M),new Map(uHD),new Set(eD6),new Map(mTu)),DTM=new XV(new Set(K4M.concat(["BUTTON",
"INPUT"])),new Map(uHD),new Set(FM(function(){return eD6.concat(["class","id","name"])})),new Map(FM(function(){return mTu.concat([["style",
{policyAction:1}]])})));var Qud,yM4,nMF;Qud=function(W,B,z,G,Y){this.JSC$9290_sanitizerTable=W;this.styleElementSanitizer=B;this.styleAttributeSanitizer=z;this.JSC$9290_resourceUrlPolicy=G;this.JSC$9290_navigationUrlPolicy=Y;this.changes=[]};
_.qFT=function(W,B){var z=document.implementation.createHTMLDocument("");W=yM4(W,B,z);z=z.body;z.appendChild(W);z=(new XMLSerializer).serializeToString(z);z=z.slice(z.indexOf(">")+1,z.lastIndexOf("</"));return MZ(z)};
yM4=function(W,B,z){B=KPX(B,z);B=document.createTreeWalker(B,5,function(v){if(v.nodeType===3)v=1;else if(eku(v))if(v=uiR(v),v===null)v=2;else{var c=W.JSC$9290_sanitizerTable;v=v!=="FORM"&&(c.allowedElements.has(v)||c.elementPolicies.has(v))?1:2}else v=2;return v});
for(var G=B.nextNode(),Y=z.createDocumentFragment(),d=Y;G!==null;){var E=void 0;if(G.nodeType===3)W.styleElementSanitizer&&d.nodeName==="STYLE"?(G=W.styleElementSanitizer(G.data),E=W.createTextNode(G)):E=W.createTextNode(G.data);else if(eku(G))E=nMF(W,G,z);else throw Error("Z");d.appendChild(E);if(G=B.firstChild())d=E;else for(;!(G=B.nextSibling())&&(G=B.parentNode());)d=d.parentNode}return Y};
Qud.prototype.createTextNode=function(W){return document.createTextNode(W)};
nMF=function(W,B,z){var G,Y=uiR(B);z=z.createElement(Y);B=B.attributes;for(var d=_.A(B),E=d.next();!E.done;E=d.next()){var v=E.value;E=v.name;v=v.value;var c=XQR(W.JSC$9290_sanitizerTable,E,Y);a:{if(G=c.conditions){G=_.A(G);for(var J=G.next();!J.done;J=G.next()){var g=_.A(J.value);J=g.next().value;g=g.next().value;var t=void 0;if((J=(t=B.getNamedItem(J))==null?void 0:t.value)&&!g.has(J)){G=!1;break a}}}G=!0}if(G)switch(c.policyAction){case 1:g3(z,E,v);break;case 2:throw Error();case 3:g3(z,E,v.toLowerCase());
break;case 4:W.styleAttributeSanitizer?(v=W.styleAttributeSanitizer(v),g3(z,E,v)):g3(z,E,v);break;case 5:W.JSC$9290_resourceUrlPolicy?(c={type:2,attributeName:E,elementName:Y},v=Xc8(v),(v=W.JSC$9290_resourceUrlPolicy(v,c))&&g3(z,E,v.toString())):g3(z,E,v);break;case 6:if(W.JSC$9290_resourceUrlPolicy){c={type:2,attributeName:E,elementName:Y};G=[];v=_.A(v.split(","));for(J=v.next();!J.done;J=v.next())g=_.A(J.value.trim().split(/\s+/,2)),J=g.next().value,g=g.next().value,G.push({url:J,descriptor:g});
v={parts:[]};G=_.A(G);for(J=G.next();!J.done;J=G.next())J=J.value,g=Xc8(J.url),(g=W.JSC$9290_resourceUrlPolicy(g,c))&&v.parts.push({url:g.toString(),descriptor:J.descriptor});g3(z,E,mdX(v))}else g3(z,E,v);break;case 7:c=v;if(W.JSC$9290_navigationUrlPolicy){c={type:2,attributeName:E,elementName:Y};v=Xc8(v);v=W.JSC$9290_navigationUrlPolicy(v,c);if(v===null)break;c=v.toString()}v=c;c=_.Gdy(v);c=c!==void 0&&Nk4.indexOf(c.toLowerCase())!==-1?v:"about:invalid#zClosurez";g3(z,E,c)}}return z};
_.NUR=FM(function(){return new Qud(xTU)});
_.$T6=FM(function(){return new Qud(DTM)});var L4Q=function(){this.calledBuild=!1;this.JSC$9302_sanitizerTable=xTU},UTF=function(){L4Q.apply(this,arguments)};
_.C(UTF,L4Q);UTF.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new Qud(this.JSC$9302_sanitizerTable,void 0,void 0,this.JSC$9302_resourceUrlPolicy,this.JSC$9302_navigationUrlPolicy)};var MR7=/[^#]*/;var RDd=function(W){var B=a9U;if(B)for(var z in B)Object.prototype.hasOwnProperty.call(B,z)&&W(B[z],z,B)},W09=function(){var W=[];
RDd(function(B){W.push(B)});
return W},a9U={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"},BiU=_.ff(function(){return W09()}),GqD=function(){var W=z17("IFRAME"),
B={};
_.$r(BiU(),function(z){W.sandbox&&W.sandbox.supports&&W.sandbox.supports(z)&&(B[z]=!0)});
return B},z17=function(W,B){B=B===void 0?document:B;
return B.createElement(String(W).toLowerCase())};var Kf;_.eT=function(W,B,z){return Math.min(Math.max(W,B),z)};
Kf=function(W,B,z){return W+z*(B-W)};_.De=function(W,B){this.x=W!==void 0?W:0;this.y=B!==void 0?B:0};
_.p=_.De.prototype;_.p.clone=function(){return new _.De(this.x,this.y)};
_.p.equals=function(W){return W instanceof _.De&&(this==W?!0:this&&W?this.x==W.x&&this.y==W.y:!1)};
_.p.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.p.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.p.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.p.translate=function(W,B){W instanceof _.De?(this.x+=W.x,this.y+=W.y):(this.x+=Number(W),typeof B==="number"&&(this.y+=B));return this};
_.p.scale=function(W,B){this.x*=W;this.y*=typeof B==="number"?B:W;return this};_.hv=function(W,B){this.width=W;this.height=B};
_.p=_.hv.prototype;_.p.clone=function(){return new _.hv(this.width,this.height)};
_.p.area=function(){return this.width*this.height};
_.p.aspectRatio=function(){return this.width/this.height};
_.p.isEmpty=function(){return!this.area()};
_.p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.p.scale=function(W,B){this.width*=W;this.height*=typeof B==="number"?B:W;return this};var KG=function(W,B){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=W===fp0&&B||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=YbM};
KG.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var dfM=function(W){return W instanceof KG&&W.constructor===KG&&W.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===YbM?W.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},YbM={},fp0={};
new KG(fp0,"");var bf,hI,e7,pnR,EY9,iO9,QY,vYd,wnM,cKD,QG,VfM,rKU,ZO9,P9R,kqD,liQ,C9R,Ii6,Rqt,oYD,HOU,F0D,h1R,uL;bf=function(W){return W?new uL(_.yY(W)):TCk||(TCk=new uL)};
_.cA=function(W,B){return typeof B==="string"?W.getElementById(B):B};
hI=function(W,B){return(B||document).getElementsByTagName(String(W))};
_.AKU=function(W){return pnR("yt-formatted-string","paper-input-input",W)};
e7=function(W,B,z,G){W=G||W;return(B=B&&B!="*"?String(B).toUpperCase():"")||z?W.querySelectorAll(B+(z?"."+z:"")):W.getElementsByTagName("*")};
pnR=function(W,B,z){var G=document,Y=W&&W!="*"?String(W).toUpperCase():"";return Y||B?(z||G).querySelector(Y+(B?"."+B:"")):e7(G,W,B,z)[0]||null};
EY9=function(W,B){_.mP.forEach(B,function(z,G){G=="style"?W.style.cssText=z:G=="class"?W.className=z:G=="for"?W.htmlFor=z:iO9.hasOwnProperty(G)?W.setAttribute(iO9[G],z):_.A0(G,"aria-")||_.A0(G,"data-")?W.setAttribute(G,z):W[G]=z})};
iO9={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"};_.Fi=function(W){W=(W||window).document;W=W.compatMode=="CSS1Compat"?W.documentElement:W.body;return new _.hv(W.clientWidth,W.clientHeight)};
_.TiM=function(W){var B=_.mk(W);W=W.defaultView;return new _.De(W.pageXOffset||B.scrollLeft,W.pageYOffset||B.scrollTop)};
_.mk=function(W){return W.scrollingElement?W.scrollingElement:_.ts||W.compatMode!="CSS1Compat"?W.body||W.documentElement:W.documentElement};
QY=function(W){return W?W.defaultView:window};
_.xi=function(W,B,z){return vYd(document,arguments)};
vYd=function(W,B){var z=B[1],G=cKD(W,String(B[0]));z&&(typeof z==="string"?G.className=z:Array.isArray(z)?G.className=z.join(" "):EY9(G,z));B.length>2&&wnM(W,G,B,2);return G};
wnM=function(W,B,z,G){function Y(v){v&&B.appendChild(typeof v==="string"?W.createTextNode(v):v)}
for(;G<z.length;G++){var d=z[G];if(!_.yR(d)||_.$t(d)&&d.nodeType>0)Y(d);else{a:{if(d&&typeof d.length=="number"){if(_.$t(d)){var E=typeof d.item=="function"||typeof d.item=="string";break a}if(typeof d==="function"){E=typeof d.item=="function";break a}}E=!1}_.$r(E?_.QR(d):d,Y)}}};
_.I0=function(W){return cKD(document,W)};
cKD=function(W,B){B=String(B);W.contentType==="application/xhtml+xml"&&(B=B.toLowerCase());return W.createElement(B)};
_.DF=function(){return document.createTextNode("\n")};
QG=function(W){if(W.nodeType!=1)return!1;switch(W.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};
VfM=function(W,B){wnM(_.yY(W),W,arguments,1)};
_.yG=function(W){for(var B;B=W.firstChild;)W.removeChild(B)};
_.qD=function(W,B){B.parentNode&&B.parentNode.insertBefore(W,B)};
_.nf=function(W,B){B.parentNode&&B.parentNode.insertBefore(W,B.nextSibling)};
_.o0=function(W){return W&&W.parentNode?W.parentNode.removeChild(W):null};
_.JKd=function(W,B){var z=B.parentNode;z&&z.replaceChild(W,B)};
_.gYQ=function(W){var B,z=W.parentNode;if(z&&z.nodeType!=11)if(W.removeNode)W.removeNode(!1);else{for(;B=W.firstChild;)z.insertBefore(B,W);_.o0(W)}};
_.ND=function(W){return W.children!=void 0?W.children:Array.prototype.filter.call(W.childNodes,function(B){return B.nodeType==1})};
_.sj4=function(W){return W.nextElementSibling!==void 0?W.nextElementSibling:_.tfT(W.nextSibling,!0)};
_.tfT=function(W,B){for(;W&&W.nodeType!=1;)W=B?W.nextSibling:W.previousSibling;return W};
_.MX=function(W){return _.$t(W)&&W.nodeType==1};
_.N5=function(W,B){if(!W||!B)return!1;if(W.contains&&B.nodeType==1)return W==B||W.contains(B);if(typeof W.compareDocumentPosition!="undefined")return W==B||!!(W.compareDocumentPosition(B)&16);for(;B&&W!=B;)B=B.parentNode;return B==W};
rKU=function(W,B){if(W==B)return 0;if(W.compareDocumentPosition)return W.compareDocumentPosition(B)&2?1:-1;if("sourceIndex"in W||W.parentNode&&"sourceIndex"in W.parentNode){var z=W.nodeType==1,G=B.nodeType==1;if(z&&G)return W.sourceIndex-B.sourceIndex;var Y=W.parentNode,d=B.parentNode;return Y==d?P9R(W,B):!z&&_.N5(Y,B)?-1*ZO9(W,B):!G&&_.N5(d,W)?ZO9(B,W):(z?W.sourceIndex:Y.sourceIndex)-(G?B.sourceIndex:d.sourceIndex)}G=_.yY(W);z=G.createRange();z.selectNode(W);z.collapse(!0);W=G.createRange();W.selectNode(B);
W.collapse(!0);return z.compareBoundaryPoints(_.Yt.Range.START_TO_END,W)};
ZO9=function(W,B){var z=W.parentNode;if(z==B)return-1;for(;B.parentNode!=z;)B=B.parentNode;return P9R(B,W)};
P9R=function(W,B){for(;B=B.previousSibling;)if(B==W)return-1;return 1};
kqD=function(W){var B,z=arguments.length;if(!z)return null;if(z==1)return arguments[0];var G=[],Y=Infinity;for(B=0;B<z;B++){for(var d=[],E=arguments[B];E;)d.unshift(E),E=E.parentNode;G.push(d);Y=Math.min(Y,d.length)}d=null;for(B=0;B<Y;B++){E=G[0][B];for(var v=1;v<z;v++)if(E!=G[v][B])return d;d=E}return d};
_.yY=function(W){return W.nodeType==9?W:W.ownerDocument||W.document};
liQ=function(W){return W.contentDocument||W.contentWindow.document};
_.$i=function(W,B){if("textContent"in W)W.textContent=B;else if(W.nodeType==3)W.data=String(B);else if(W.firstChild&&W.firstChild.nodeType==3){for(;W.lastChild!=W.firstChild;)W.removeChild(W.lastChild);W.firstChild.data=String(B)}else _.yG(W),W.appendChild(_.yY(W).createTextNode(String(B)))};
C9R={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};Ii6={IMG:" ",BR:"\n"};Rqt=function(W){var B;W.tagName=="A"&&W.hasAttribute("href")||W.tagName=="INPUT"||W.tagName=="TEXTAREA"||W.tagName=="SELECT"||W.tagName=="BUTTON"?B=!W.disabled&&(!W.hasAttribute("tabindex")||oYD(W)):B=W.hasAttribute("tabindex")&&oYD(W);return B};
oYD=function(W){W=W.tabIndex;return typeof W==="number"&&W>=0&&W<32768};
HOU=function(W){var B=[];h1R(W,B,!0);W=B.join("");W=W.replace(/ \xAD /g," ").replace(/\xAD/g,"");W=W.replace(/\u200B/g,"");W=W.replace(/ +/g," ");W!=" "&&(W=W.replace(/^\s*/,""));return W};
F0D=function(W){var B=[];h1R(W,B,!1);return B.join("")};
h1R=function(W,B,z){if(!(W.nodeName in C9R))if(W.nodeType==3)z?B.push(String(W.nodeValue).replace(/(\r\n|\r|\n)/g,"")):B.push(W.nodeValue);else if(W.nodeName in Ii6)B.push(Ii6[W.nodeName]);else for(W=W.firstChild;W;)h1R(W,B,z),W=W.nextSibling};
_.Sb9=function(W,B,z){if(!B&&!z)return null;var G=B?String(B).toUpperCase():null;return _.n3(W,function(Y){return(!G||Y.nodeName==G)&&(!z||typeof Y.className==="string"&&_.xt(Y.className.split(/\s+/),z))},!0)};
_.n3=function(W,B,z){W&&!z&&(W=W.parentNode);for(z=0;W;){if(B(W))return W;W=W.parentNode;z++}return null};
uL=function(W){this.JSC$9327_document_=W||_.Yt.document||document};
_.p=uL.prototype;_.p.getElement=function(W){return _.cA(this.JSC$9327_document_,W)};
_.p.$=uL.prototype.getElement;_.p.getElementsByTagName=function(W,B){return(B||this.JSC$9327_document_).getElementsByTagName(String(W))};
_.p.getElementsByTagNameAndClass=function(W,B,z){return e7(this.JSC$9327_document_,W,B,z)};
_.p.$$=uL.prototype.getElementsByTagNameAndClass;_.p.setProperties=EY9;_.p.JSC$9329_createDom=function(W,B,z){return vYd(this.JSC$9327_document_,arguments)};
_.p.createElement=function(W){return cKD(this.JSC$9327_document_,W)};
_.p.createTextNode=function(W){return this.JSC$9327_document_.createTextNode(String(W))};
_.p.getWindow=function(){return this.JSC$9327_document_.defaultView};
var Sw=function(W){return _.TiM(W.JSC$9327_document_)};
_.p=uL.prototype;_.p.appendChild=function(W,B){W.appendChild(B)};
_.p.append=VfM;_.p.canHaveChildren=QG;_.p.removeNode=_.o0;_.p.getChildren=_.ND;_.p.contains=_.N5;_.p=Ze.prototype;_.p.getWidth=function(){return this.right-this.left};
_.p.getHeight=function(){return this.bottom-this.top};
_.p.clone=function(){return new Ze(this.top,this.right,this.bottom,this.left)};
_.p.contains=function(W){return this&&W?W instanceof Ze?W.left>=this.left&&W.right<=this.right&&W.top>=this.top&&W.bottom<=this.bottom:W.x>=this.left&&W.x<=this.right&&W.y>=this.top&&W.y<=this.bottom:!1};
_.p.expand=function(W,B,z,G){_.$t(W)?(this.top-=W.top,this.right+=W.right,this.bottom+=W.bottom,this.left-=W.left):(this.top-=W,this.right+=Number(B),this.bottom+=Number(z),this.left-=Number(G));return this};
_.p.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};
_.p.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};
_.p.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};
_.p.translate=function(W,B){W instanceof _.De?(this.left+=W.x,this.right+=W.x,this.top+=W.y,this.bottom+=W.y):(this.left+=W,this.right+=W,typeof B==="number"&&(this.top+=B,this.bottom+=B));return this};
_.p.scale=function(W,B){B=typeof B==="number"?B:W;this.left*=W;this.right*=W;this.top*=B;this.bottom*=B;return this};var Lf=function(W,B,z,G){this.left=W;this.top=B;this.width=z;this.height=G};
_.p=Lf.prototype;_.p.clone=function(){return new Lf(this.left,this.top,this.width,this.height)};
_.p.boundingRect=function(W){var B=Math.max(this.left+this.width,W.left+W.width),z=Math.max(this.top+this.height,W.top+W.height);this.left=Math.min(this.left,W.left);this.top=Math.min(this.top,W.top);this.width=B-this.left;this.height=z-this.top};
_.p.contains=function(W){return W instanceof _.De?W.x>=this.left&&W.x<=this.left+this.width&&W.y>=this.top&&W.y<=this.top+this.height:this.left<=W.left&&this.left+this.width>=W.left+W.width&&this.top<=W.top&&this.top+this.height>=W.top+W.height};
_.p.distance=function(W){var B=W.x<this.left?this.left-W.x:Math.max(W.x-(this.left+this.width),0);W=W.y<this.top?this.top-W.y:Math.max(W.y-(this.top+this.height),0);return Math.sqrt(B*B+W*W)};
_.p.getSize=function(){return new _.hv(this.width,this.height)};
_.p.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};
_.p.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};
_.p.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};
_.p.translate=function(W,B){W instanceof _.De?(this.left+=W.x,this.top+=W.y):(this.left+=W,typeof B==="number"&&(this.top+=B));return this};
_.p.scale=function(W,B){B=typeof B==="number"?B:W;this.left*=W;this.width*=W;this.top*=B;this.height*=B;return this};var jjR,af,cyy,MD,K0U,Xnu,u64,RCQ,e1u,xf4;_.U8=function(W,B,z){if(typeof B==="string")(B=_.bOu(W,B))&&(W.style[B]=z);else for(var G in B){z=W;var Y=B[G],d=_.bOu(z,G);d&&(z.style[d]=Y)}};
jjR={};_.bOu=function(W,B){var z=jjR[B];if(!z){var G=_.ly(B);z=G;W.style[G]===void 0&&(G=(_.ts?"Webkit":_.gb?"Moz":null)+zDQ(G),W.style[G]!==void 0&&(z=G));jjR[B]=z}return z};
_.s_=function(W,B){var z=_.yY(W);return z.defaultView&&z.defaultView.getComputedStyle&&(W=z.defaultView.getComputedStyle(W,null))?W[B]||W.getPropertyValue(B)||"":""};
_.np=function(W,B){return _.s_(W,B)||(W.currentStyle?W.currentStyle[B]:null)||W.style&&W.style[B]};
_.fiR=function(W){return _.np(W,"position")};
af=function(W,B,z){if(B instanceof _.De){var G=B.x;B=B.y}else G=B,B=z;W.style.left=MD(G,!1);W.style.top=MD(B,!1)};
cyy=function(W){try{return W.getBoundingClientRect()}catch(B){return{left:0,top:0,right:0,bottom:0}}};
_.qd=function(W){var B=_.yY(W),z=new _.De(0,0);if(W==(B?_.yY(B):document).documentElement)return z;W=cyy(W);B=Sw(bf(B));z.x=W.left+B.x;z.y=W.top+B.y;return z};
_.OO7=function(W,B,z){if(B instanceof _.hv)z=B.height,B=B.width;else if(z==void 0)throw Error("oa");W.style.width=MD(B,!0);W.style.height=MD(z,!0)};
MD=function(W,B){typeof W=="number"&&(W=(B?Math.round(W):W)+"px");return W};
K0U=function(W){return Xnu(W)};
Xnu=function(W){var B=u64;if(_.np(W,"display")!="none")return B(W);var z=W.style,G=z.display,Y=z.visibility,d=z.position;z.visibility="hidden";z.position="absolute";z.display="inline";W=B(W);z.display=G;z.position=d;z.visibility=Y;return W};
u64=function(W){var B=W.offsetWidth,z=W.offsetHeight,G=_.ts&&!B&&!z;return(B===void 0||G)&&W.getBoundingClientRect?(W=cyy(W),new _.hv(W.right-W.left,W.bottom-W.top)):new _.hv(B,z)};
RCQ=function(W){var B=_.qd(W);W=Xnu(W);return new Lf(B.x,B.y,W.width,W.height)};
e1u=function(W,B){W=W.style;"opacity"in W?W.opacity=B:"MozOpacity"in W?W.MozOpacity=B:"filter"in W&&(W.filter=B===""?"":"alpha(opacity="+Number(B)*100+")")};
_.R0=function(W,B){W.style.display=B?"":"none"};
_.mf4=function(W){return"rtl"==_.np(W,"direction")};
xf4=function(W){var B=_.s_(W,"marginLeft"),z=_.s_(W,"marginRight"),G=_.s_(W,"marginTop");W=_.s_(W,"marginBottom");return new Ze(parseFloat(G),parseFloat(z),parseFloat(W),parseFloat(B))};
_.Df4=function(W){var B=_.s_(W,"borderLeftWidth"),z=_.s_(W,"borderRightWidth"),G=_.s_(W,"borderTopWidth");W=_.s_(W,"borderBottomWidth");return new Ze(parseFloat(G),parseFloat(z),parseFloat(W),parseFloat(B))};var Rf=function(W){this.context=W};
Rf.prototype.isSupported=function(W){return(W==null?0:W.attributionEnabled)||(W==null?void 0:W.beaconMethod)==="POST"||(W==null?0:W.customHeaders)||(W==null?0:W.customBody)||(W==null?0:W.keepAlive)?!1:!S7(this.context)};
Rf.prototype.ping=function(){var W=this;return b7(_.nm.apply(0,arguments).map(function(B){try{var z=W.context.global,G=!1;G=G===void 0?!1:G;z.google_image_requests||(z.google_image_requests=[]);var Y=z17("IMG",z.document);G&&(Y.attributionSrc="");Y.src=B;z.google_image_requests.push(Y);return!0}catch(d){return!1}}).every(function(B){return B}))};
Rf.prototype.pingWithHeadersAndBody=function(W,B,z){this.ping.apply(this,_.u7(_.nm.apply(3,arguments)))};var QjQ=function(W){this.context=W};
QjQ.prototype.isSupported=function(W){return yKu&&!S7(this.context)&&Ddr(this.context)!==void 0&&!(W==null?0:W.attributionEnabled)&&(W==null?void 0:W.beaconMethod)!=="POST"&&!(W==null?0:W.customHeaders)&&!(W==null?0:W.customBody)};
QjQ.prototype.makeBeacon=function(W,B){if(!this.isSupported(B))throw new If;return new Wo(this.context,W)};
var yKu=!1,Wo=function(W,B){this.context=W;this.JSC$9348_urlWithoutToken=B;W=Ddr(this.context);if(W===void 0)throw Error();this.wrappedBeacon=new W(qbu(this),{})},qbu=function(W){W=W.JSC$9348_urlWithoutToken;
return(W.slice(-1)[0]==="&"?W:W+"&")+"pbapi=1"};
Wo.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Wo.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Wo.prototype.setHeader=function(){};
_.G5.Object.defineProperties(Wo.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9348_urlWithoutToken},
set:function(W){this.JSC$9348_urlWithoutToken=W;this.wrappedBeacon.setURL(qbu(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(W){if(W!=="GET")throw new If;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var nYu=function(W){this.context=W};
nYu.prototype.isSupported=function(W){if((W==null?0:W.attributionEnabled)||(W==null?void 0:W.beaconMethod)==="GET"||(W==null?0:W.customHeaders)||(W==null?0:W.customBody)||(W==null?0:W.keepAlive))return!1;var B;return!S7(this.context)&&((B=this.context.global.navigator)==null?void 0:B.sendBeacon)!==void 0};
nYu.prototype.ping=function(){var W=this;return b7(_.nm.apply(0,arguments).map(function(B){var z;return(z=W.context.global.navigator)==null?void 0:z.sendBeacon(B)}).every(function(B){return B}))};
nYu.prototype.pingWithHeadersAndBody=function(W,B,z){this.ping.apply(this,_.u7(_.nm.apply(3,arguments)))};var I8=function(W){this.value=W},GP=function(W,B){return b7(W.value).pipe(lf(B))},dH=new I8(!1),Ckx=new I8(!0);var Nd=function(W){this.value=W;this.releasedSubject=new r3};
Nd.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.G5.Object.defineProperties(Nd.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9361_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var BH2=["FRAME","IMG","IFRAME"],LPy=/^[01](px)?$/,Wb8=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},Rky=function(){var W=new Wb8;
W.crossDomainLoadedDefault=!0;W.pendingImagesBlockLoad=!0;return W};var Ni4=function(W,B){var z=ipk(W);if(z)if(z.onCreativeLoad)z.onCreativeLoad(B);else{var G=B?[B]:[],Y=function(d){for(var E=0;E<G.length;++E)try{G[E](1,d)}catch(v){}G={push:function(v){v(1,d)}}};
z.onCreativeLoad=function(d){G.push(d)};
z.setAttribute("data-creative-load-listener","");z.addEventListener("creativeLoad",function(d){Y(d.detail)});
_.Yt.addEventListener("message",function(d){AI8(z,Y,d)})}};var Bo=function(W,B){var z=this;this.global=W;this.parentContext=B;this.JSC$9372_onVisibilityChange=this.document?qk(b7(!0),D1(this.document,"visibilitychange")).pipe(U0(this.parentContext.performanceMonitor,748),KN(function(){return z.getVisibilityState()}),Bc()):b7("visible");
this.document?D1(this.document,"DOMContentLoaded").pipe(U0(this.parentContext.performanceMonitor,739),Wc(1)):b7(N3D("DOMContentLoaded"))},l5Q=function(W){return W.document!==null&&W.document.visibilityState!==void 0};
Bo.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Bo.prototype.querySelector=function(W){return this.document?this.document.querySelector(W):null};
Bo.prototype.querySelectorAll=function(W){return this.document?_.QR(this.document.querySelectorAll(W)):[]};
Bo.prototype.elementFromPoint=function(W,B){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;W=this.document.elementFromPoint(W,B);return W===null?null:new Nd(W)};
var cWR=function(W,B,z){z=z===void 0?!1:z;if(B.ref===void 0||!W.document)return b7(B).pipe(U0(W.parentContext.performanceMonitor,749));var G=new p3(1),Y=function(){G.next(B)};
z||Ni4(B.ref,Y);zf0(B.ref,Y);return G.pipe(U0(W.parentContext.performanceMonitor,749),Wc(1))};
_.G5.Object.defineProperties(Bo.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return oHy(this.global,"document")?this.global.document||null:null}}});var Ex0=_.ak(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),THv=_.ak(["./reach_worklet.js"]),vxx=_.ak(["./reach_worklet.js"]),$fM=_.ak(["./reach_worklet.html"]),L0M=_.ak(["./reach_worklet.js"]),UfQ=_.ak(["./reach_worklet.js"]);_.sY($fM);_.sY(L0M);_.sY(UfQ);var a8={left:0,top:0,width:0,height:0};var MfT,aiD,R1Q,WF4,BS,zmU,G_U,YKd,UBT,MuD,AZQ,imU;MfT=function(W,B,z,G,Y,d,E){var v="";W&&(v+=W+":");z&&(v+="//",B&&(v+=B+"@"),v+=z,G&&(v+=":"+G));Y&&(v+=Y);d&&(v+="?"+d);E&&(v+="#"+E);return v};
aiD=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.RJ=function(W){return W.match(aiD)};
_.Hh=function(W,B){return W?B?decodeURI(W):decodeURIComponent(W):W};
R1Q=function(W){W=_.RJ(W)[1]||null;!W&&_.Yt.self&&_.Yt.self.location&&(W=_.Yt.self.location.protocol.slice(0,-1));return W?W.toLowerCase():""};
_.WS=function(W){return _.Hh(_.RJ(W)[3]||null,!0)};
_.gO=function(W){return _.Hh(_.RJ(W)[5]||null,!0)};
_.DsR=function(W){var B=W.indexOf("#");return B<0?null:W.slice(B+1)};
WF4=function(W){W=_.RJ(W);return MfT(W[1],W[2],W[3],W[4])};
_.Bo7=function(W){W=_.RJ(W);return MfT(W[1],null,W[3],W[4])};
_.Lt=function(W){W=_.RJ(W);return MfT(null,null,null,null,W[5],W[6],W[7])};
_.Gy=function(W){var B=W.indexOf("#");return B<0?W:W.slice(0,B)};
BS=function(W,B){W=_.RJ(W);B=_.RJ(B);return W[3]==B[3]&&W[1]==B[1]&&W[4]==B[4]};
zmU=function(W,B){if(W){W=W.split("&");for(var z=0;z<W.length;z++){var G=W[z].indexOf("="),Y=null;if(G>=0){var d=W[z].substring(0,G);Y=W[z].substring(G+1)}else d=W[z];B(d,Y?G4(Y):"")}}};
G_U=function(W){var B=W.indexOf("#");B<0&&(B=W.length);var z=W.indexOf("?");if(z<0||z>B){z=B;var G=""}else G=W.substring(z+1,B);return[W.slice(0,z),G,W.slice(B)]};
YKd=function(W,B){return B?W?W+"&"+B:B:W};
_.dZ9=function(W,B){if(!B)return W;W=G_U(W);W[1]=YKd(W[1],B);return W[0]+(W[1]?"?"+W[1]:"")+W[2]};
_.pbD=function(W,B,z){if(Array.isArray(B))for(var G=0;G<B.length;G++)_.pbD(W,String(B[G]),z);else B!=null&&z.push(W+(B===""?"":"="+_.N6(B)))};
_.sA=function(W){var B=[],z;for(z in W)_.pbD(z,W[z],B);return B.join("&")};
_.aJ=function(W,B){B=_.sA(B);return _.dZ9(W,B)};
_.zE=function(W,B,z){z=z!=null?"="+_.N6(z):"";return _.dZ9(W,B+z)};
UBT=function(W,B,z,G){for(var Y=z.length;(B=W.indexOf(z,B))>=0&&B<G;){var d=W.charCodeAt(B-1);if(d==38||d==63)if(d=W.charCodeAt(B+Y),!d||d==61||d==38||d==35)return B;B+=Y+1}return-1};
MuD=/#|$/;_.$x=function(W,B){var z=W.search(MuD),G=UBT(W,0,B,z);if(G<0)return null;var Y=W.indexOf("&",G);if(Y<0||Y>z)Y=z;G+=B.length+1;return G4(W.slice(G,Y!==-1?Y:0))};
AZQ=/[?&]($|#)/;_.dV=function(W,B){for(var z=W.search(MuD),G=0,Y,d=[];(Y=UBT(W,G,B,z))>=0;)d.push(W.substring(G,Y)),G=Math.min(W.indexOf("&",Y)+1||z,z);d.push(W.slice(G));return d.join("").replace(AZQ,"$1")};
_.up=function(W,B,z){return _.zE(_.dV(W,B),B,z)};
imU=function(W){var B=G_U(window.location.href),z=B[1],G=[];z&&z.split("&").forEach(function(Y){var d=Y.indexOf("=");d=d>=0?Y.slice(0,d):Y;W.hasOwnProperty(d)||G.push(Y)});
B[1]=YKd(G.join("&"),_.sA(W));return B[0]+(B[1]?"?"+B[1]:"")+B[2]};var bp8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(bp8,_.iQ);bp8.prototype.getVersion=function(){return _.KV(this,2)};var Sku=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Sku,_.iQ);var CAT=function(W,B){return _.f3(W,2,B)},FbT=function(W,B){return _.f3(W,3,B)};
Sku.prototype.getModel=function(){return _.KV(this,4)};
var ox2=function(W,B){return _.f3(W,4,B)},lGX=function(W,B){return _.f3(W,5,B)},Hp0=function(W,B){return _.f3(W,9,B)},kPk=function(W,B){return Sm(W,10,B)},rIv=function(W,B){return _.gH(W,11,B)},IGX=function(W,B){return _.f3(W,1,B)},hfD=function(W,B){return _.gH(W,7,B)};var PA8="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var Yx=function(W,B,z,G){W=W===void 0?window:W;B=B===void 0?null:B;z=z===void 0?new kT6:z;G=G===void 0?cIR():G;tR6.call(this);var Y=this;this.global=W;this.debugChannel=B;this.performanceMonitor=z;this.onPageHide=R6x(function(){return D1(Y.global,"pagehide")}).pipe(U0(this.performanceMonitor,941));
this.onLoad=R6x(function(){return D1(Y.global,"load")}).pipe(U0(this.performanceMonitor,738),Wc(1));
this.onResize=R6x(function(){return D1(Y.global,"resize")}).pipe(U0(this.performanceMonitor,741));
this.onMessage=R6x(function(){return D1(Y.global,"message")}).pipe(U0(this.performanceMonitor,740));
this.document=new Bo(this.global,this);this.timeProvider=new l9T(new I9M(this.intrinsicFunctionNamespace,this.performanceMonitor),new CRM(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Z7R(new hD9(this),new QjQ(this),new of(this,new SF9(this)),new of(this,new nYu(this)),new of(this,new Rf(this)))};
_.C(Yx,tR6);var S7=function(W){var B=W.global;return!!W.global.HTMLFencedFrameElement&&!!B.fence&&typeof B.fence.reportEvent==="function"};
_.p=Yx.prototype;_.p.reportFencedFrameEvent=function(W){S7(this)&&this.global.fence.reportEvent(W)};
_.p.getOnBackgrounded=function(){return this.onPageHide.pipe(U0(this.performanceMonitor,942),lf(this.queue),KN(function(){}))};
_.p.postMessage=function(W,B,z){z=z===void 0?[]:z;this.global.postMessage(W,B,z)};
_.p.getWidth=function(){return hkt(this.global)?this.global.width:0};
_.p.getHeight=function(){return hkt(this.global)?this.global.height:0};
_.p.isMobile=function(){return ju4()||f9M()};
var $H=function(W,B){try{var z=gxu(B,W.global,W.isMobile());return{left:z.left,top:z.top,width:z.getWidth(),height:z.getHeight()}}catch(G){return a8}};
Yx.prototype.validate=function(){var W=this.beaconFactory.isSupported()||S7(this);return this.global&&this.timeProvider.available()&&W};
var yvr=function(W){return(W=fGr(W.global))?rj(W):null};
_.G5.Object.defineProperties(Yx.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(W){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!hkt(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}}});_.EhD=!_.Js&&!_.TkX();var I5t=function(W){return W};var h_x=function(W){return W.pipe(Nk(function(B){var z=B.endOfSessionReason;var G;return((G=B.viewable)==null?void 0:G.extrapolateToNow().value)||z!=void 0}),Wc(1),aR())};var x5k=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},D5Q=function(W){var B=W.sequenceNumber.toString(10).padStart(2,"0");
B=""+W.startTime+B;W.sequenceNumber<99&&W.sequenceNumber++;return B};var kWv=t6(cc(function(W){return W.endOfSessionReason===void 0}),KN(function(W){return Object.assign({},W,{timestamps:Xi(W)})}),Nk(function(W){var B=W.viewable;
W=W.timestamps;var z;return(z=B==null?void 0:B.extrapolateUsingTimestampMap(W).value)!=null?z:!1}),KN(function(W){var B=W.beaconFactory;
var z=W.timestampedExposureHistory;var G=W.timeOnScreen;var Y=W.binaryContext;W=W.timestamps;if(B===void 0||z===void 0||G===void 0||Y===void 0)return!1;if(G.extrapolateUsingTimestampMap(W).value.every(function(d){return d>=0}))return!0;
z=z.map(function(d){return d.timestamp+":"+d.value}).join(",");
G=Q0r({bin:Y,tos:G},W);B.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+G+("&eh="+z)).sendNow();return!0}),cc(function(W){return!W}),aR());var qkk=function(W){return{id:W.pingId,mcvt:W.maxConsecutiveViewTime,p:W.creativePosition,asp:W.adSpeedPosition,tm:W.totalMeasurementTime,tu:W.totalUnviewedTime,mtos:W.maxTimeOnScreen,tos:W.timeOnScreen,v:W.binaryVersion,bin:W.binaryContext,avms:W.measurementStrategy,bs:W.browserSize,mc:W.maximumExposure,"if":W.crossDomainIframeState,vu:W.delayedImpressionJsState,app:W.inApp,mse:W.mraidError,mtop:W.mraidSituation,itpl:W.injectedTemplateId,adk:W.adKey,exk:W.awbidKey,rs:W.requestSource,la:W.isLargeAd,
cr:W.isContentRecommendationAd,uach:W.userAgentClientHints,vs:W.viewState,r:W.reasonCode,pay:W.hasCpmavUrl,co:W.clientPingOrderCounter,rst:W.adRenderStartTime,rpt:W.adRenderPeriodTime,isd:W.initialScrollDepth,lsd:W.loadedScrollDepth,context:W.errorContext,msg:W.errorMessage,stack:W.errorStack,name:W.errorName,ec:W.hasElementChanged,sfr:W.strategyFailureReasons,met:W.creativeSearchResult,wmsd:W.webMeasurementStartDiagnostic,pv:W.pageVisible,epv:W.eosPageVisible,pbe:W.inStatefulBeaconExperiment,fle:W.inFetchLaterBeaconExperiment,
vae:W.inViewableAttributionExperiment,spb:W.supportsPendingBeacon,sfl:W.supportsFetchLater,ffslot:W.isFencedFrameSlotTurtlex,reach:W.sharedStorageReachMode,io2:W.v2VisibilityBitVector,rxdbg:W.rxDebugger,omida:W.omidAppId,omidp:W.omidPartner,omidpv:W.omidPartnerVersion,omidor:W.omidOcclusionReasons,omidv:W.omidVersion,omids:W.omidSessionType,omidam:W.omidAccessMode,omidct:W.omidCreativeType,omidia:W.omidInApp,omiddc:W.omidDeviceCategory,omidlat:W.omidLastActivity,omiddit:W.omidDeviceIdleTime,qid:W.errorEscapedQueryId}};var ork=function(W){var B=[];return W.pipe(KN(function(z){var G=z.beaconFactory,Y=z.fetchBeaconFactory,d=z.timeOnScreen,E=z.timeOnScreenUrlPrefixes,v=z.payloadMapper,c=z.timeOnScreenPingId,J=z.timeOnScreenReason,g=z.urlSerializer,t=z.viewable,P=z.hasImpressionFired,Z=z.inStatefulBeaconExperiment,l=z.supportsPendingBeacon,b=z.supportsFetchLater,O=z.turtlexReportEventData;if(!z.geometryMeasurable||!P||z.maxTimeOnScreen===void 0||d===void 0||E===void 0||v===void 0||c===void 0||g===void 0||G===void 0)return!1;
if(z.isTurtlex){if(J===void 0)return!1;E=z.reportFencedFrameEvent;if(!E)return!1;E({eventType:"active-view-time-on-screen",eventData:O!=null?O:"",destination:["buyer"]});return!0}if(!(Z||b||J))return!1;O=Xi(z);var K;t=(K=t==null?void 0:t.extrapolateUsingTimestampMap(O).value)!=null?K:!1;K=g(Object.assign({},z,{pingId:c,viewState:t?4:3,reasonCode:J!=null?J:"u",payloadMapper:v,urlPrefixes:E}),O);if(Z){for(;B.length>E.length;)z=void 0,(z=B.shift())==null||z.deactivate();K.forEach(function(a,q){q>=B.length?
B.push(G.makeBeacon(a)):B[q].url=a});
return l&&Y&&J!==void 0?(K.forEach(function(a){Y.makeBeacon(a).sendNow()}),!0):J!==void 0}if(l&&Y&&J!==void 0)return K.forEach(function(a){Y.makeBeacon(a).sendNow()}),!0;
if(b&&Y){for(;B.length>E.length;)l=void 0,(l=B.shift())==null||l.deactivate();var e=g(Object.assign({},z,{pingId:c,viewState:t?4:3,reasonCode:J!=null?J:"u",payloadMapper:v,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),O)[0];K.forEach(function(a,q){q>=B.length?B.push(G.makeBeacon(e,{endOfSession:!0})):B[q].url=e});
return J!==void 0?(K.forEach(function(a){Y.makeBeacon(a).sendNow()}),!0):J!==void 0}return J!==void 0?(K.forEach(function(a){G.makeBeacon(a).sendNow()}),!0):!1}),cc(function(z){return!z}),aR())};var Hxk=t6(Nk(function(W){return W.immediateUrlPrefixes!==void 0&&W.payloadMapper!==void 0&&W.urlSerializer!==void 0&&W.inferredPingId!==void 0&&W.beaconFactory!==void 0}),Nk(function(W){return RfD(W)!==null}),Mk8(function(W){return W.activeViewUnmeasurableEvent},function(W){return W.emit}),KN(function(W){if(W.isTurtlex){var B=W.reportFencedFrameEvent;
if(B){var z;B({eventType:"active-view-unmeasurable",eventData:(z=W.turtlexReportEventData)!=null?z:"",destination:["buyer"]})}}else{z=void 0;var G=RfD(W);if(G==="x"){var Y,d=(Y=W.geometricMeasurementErrors)!=null?Y:W.contextValidationErrors;d&&(B=d.stack,z=d.message)}W.urlSerializer(Object.assign({},W,{urlPrefixes:W.immediateUrlPrefixes,payloadMapper:W.payloadMapper,pingId:W.inferredPingId,viewState:2,reasonCode:G,errorMessage:z,errorStack:B}),Xi(W)).forEach(function(E){W.beaconFactory.makeBeacon(E).sendNow()})}}),
Wc(1),aR());var W6u=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var rWr=t6(Nk(function(W){return W.payloadMapper!==void 0&&W.immediateUrlPrefixes!==void 0&&W.urlSerializer!==void 0&&W.inferredPingId!==void 0&&W.beaconFactory!==void 0}),KN(function(W){return Object.assign({},W,{timestamps:Xi(W)})}),Nk(function(W){var B=W.viewable;
var z=W.hasImpressionFired;W=W.timestamps;var G;return!!z&&((G=B==null?void 0:B.extrapolateUsingTimestampMap(W).value)!=null?G:!1)}),Mk8(function(W){return W.activeViewViewableEvent},function(W){return W.emit}),KN(function(W){var B=W.beaconFactory,z=W.turtlexReportEventData;
if(W.isTurtlex){var G=W.reportFencedFrameEvent;if(!G)return!1;G({eventType:"active-view-viewable",eventData:z!=null?z:"",destination:["buyer"]});return!0}z=W.urlSerializer(Object.assign({},W,{urlPrefixes:W.immediateUrlPrefixes,payloadMapper:W.payloadMapper,pingId:W.inferredPingId,viewState:4,reasonCode:"v"}),W.timestamps);(G=W.cpmavUrls)&&G.length>0&&W.viewUrlSerializer&&W.viewUrlSerializer(G,W).forEach(function(Y){B.makeBeacon(Y).sendNow()});
(G=W.viewableRelayUrls)&&G.length>0&&W.viewUrlSerializer&&W.viewUrlSerializer(G,W).forEach(function(Y){B.makeBeacon(Y).sendNow()});
z.forEach(function(Y){B.makeBeacon(Y,{attributionEnabled:W.isViewableAttributionEnabled}).sendNow()});
return!0}),cc(function(W){return!W}),aR());var qdD=KN(function(W){return[W.value.topWindowViewportExternalGeometry.width,W.value.topWindowViewportExternalGeometry.height]});var L3=function(W,B){this.callback=W;this.options=B;this.intersectionObserverV2=this.intersectionObserverV1=null},o$Q=function(W,B){B?W.intersectionObserverV2||(B=Object.assign({},W.options,{delay:100,
trackVisibility:!0}),W.intersectionObserverV2=new IntersectionObserver(W.callback,B)):W.intersectionObserverV1||(W.intersectionObserverV1=new IntersectionObserver(W.callback,W.options))},ToM=function(W,B){W=B?W.intersectionObserverV2:W.intersectionObserverV1;
if(!W)throw new suu;return W};
L3.prototype.observe=function(W,B){ToM(this,W).observe(B)};
L3.prototype.unobserve=function(W,B){ToM(this,W).unobserve(B)};
L3.prototype.disconnect=function(W){ToM(this,W).disconnect()};
L3.prototype.takeRecords=function(W){return ToM(this,W).takeRecords()};var Vax={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:a8,topWindowViewportExternalGeometry:a8,measurementRequests:new r3,elementGeometrySourceName:"ns",elementGeometry:a8,intersectionGeometry:a8,viewportLocalAppOffset:{x:0,y:0}};var fIu=R8(t6(KN(function(W){var B;return(B=W.exposureOverride)!=null?B:HRk(W)}),KN(function(W){return isFinite(W)?W:0}))),xwt=R8(t6(KN(function(W){var B;
return(B=W.exposureOverride)!=null?B:HRk(W)}),KN(function(W){return isFinite(W)?W:-1})));var GE=function(W,B){this.a=W;this.b=B;if(W.clock.timeline!==B.clock.timeline)throw Error();};
GE.prototype.equivalentTo=function(W){return W instanceof GE?this.a.equivalentTo(W.a)&&this.b.equivalentTo(W.b):!1};
GE.prototype.extrapolateToTime=function(W){var B=this.a.extrapolateToTime(W).value,z=this.b.extrapolateToTime(W).value;return{timestamp:W,value:[B,z]}};
_.G5.Object.defineProperties(GE.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 W=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),B=this.a.lastMeasurement.timestamp.equals(W)?this.a.lastMeasurement.value:this.a.extrapolateToTime(W).value,z=this.b.lastMeasurement.timestamp.equals(W)?this.b.lastMeasurement.value:this.b.extrapolateToTime(W).value;return{timestamp:W,value:[B,z]}}}});var YX=function(W,B){this.input=W;this.mapFunction=B;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
YX.prototype.equivalentTo=function(W){return W instanceof YX?this.input.equivalentTo(W.input)&&this.mapFunction===W.mapFunction:!1};
YX.prototype.extrapolateToTime=function(W){W=this.input.extrapolateToTime(W);return{timestamp:W.timestamp,value:this.mapFunction(W.value)}};
_.G5.Object.defineProperties(YX.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var dL=function(){};
dL.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
dL.prototype.extrapolateUsingTimestampMap=function(W){var B=this.clock.timeline,z,G=(z=W.get(B))!=null?z:this.clock.now();W.set(B,G);return this.extrapolateToTime(G)};
dL.prototype.map=function(W){return new vh6(this,W)};
dL.prototype.joinWith=function(W){return new cZ4(this,W)};
var cZ4=function(){GE.apply(this,arguments);this.map=dL.prototype.map;this.joinWith=dL.prototype.joinWith;this.extrapolateToNow=dL.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=dL.prototype.extrapolateUsingTimestampMap};
_.C(cZ4,GE);var vh6=function(){YX.apply(this,arguments);this.map=dL.prototype.map;this.joinWith=dL.prototype.joinWith;this.extrapolateToNow=dL.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=dL.prototype.extrapolateUsingTimestampMap};
_.C(vh6,YX);var BC=function(W,B){this.lastMeasurement=B;this.extrapolateToNow=dL.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=dL.prototype.extrapolateUsingTimestampMap;this.map=dL.prototype.map;this.joinWith=dL.prototype.joinWith;this.clock=W};
BC.prototype.equivalentTo=function(W){return W.active};
BC.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.G5.Object.defineProperties(BC.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var yyx=KN(function(W){if(W.value.viewportGeometrySourceName==="omid"){if(W.value.elementGeometrySourceName==="nio")return"omio";if(W.value.elementGeometrySourceName==="geo")return"omgeo"}return W.value.elementGeometrySourceName==="geo"||W.value.elementGeometrySourceName==="nio"?W.value.viewportGeometrySourceName:W.value.elementGeometrySourceName});var Sdk=t6(Nk(function(W){return!isNaN(W)}),EY(function(W,B){return isNaN(W)?B:Math.min(W,B)},NaN),Bc());var ORQ=R8(t6(KN(function(W){return W.intersectionGeometry.width*W.intersectionGeometry.height/(W.exposedViewportLocalGeometry.width*W.exposedViewportLocalGeometry.height)}),KN(function(W){return isFinite(W)?Math.min(1,W):0})));var QwR=t6(R8(KN(function(W){W=W.exposureOverride?W.elementGeometry.width*W.elementGeometry.height*W.exposureOverride/(W.topWindowViewportExternalGeometry.width*W.topWindowViewportExternalGeometry.height):W.intersectionGeometry.width*W.intersectionGeometry.height/(W.topWindowViewportExternalGeometry.width*W.topWindowViewportExternalGeometry.height);return isFinite(W)?W:0})));var $wR=function(W,B){var z=this;this.timeProvider=W;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=B.pipe(Bc()).subscribe(function(G){UwT(z);z.measurementRequestObserver=G})},MaX=function(W,B){UwT(W);
W.lastMeasurementRequest=W.timeProvider.setTimeout(function(){var z;return void((z=W.measurementRequestObserver)==null?void 0:z.next())},B)},UwT=function(W){W.lastMeasurementRequest!==null&&W.timeProvider.clearTimeout(W.lastMeasurementRequest);
W.lastMeasurementRequest=null};
$wR.prototype.dispose=function(){UwT(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var wb4=function(){};var sJ2=function(W,B){this.context=W;this.strategies=B};
_.C(sJ2,wb4);sJ2.prototype.buildGeometrySource=function(W,B){var z=this.strategies.map(function(d){return d.buildGeometrySource(W,B)}),G=z_u(z.map(function(d){return d.geometrySource})),Y=G.capturedErrors.pipe(VNQ());
return{geometrySource:G.chain.pipe(lf(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:Y,strategyErrors:G.capturedErrors}].concat(_.u7(z.map(function(d){return d.additionalOutputs}))))}};
var VNQ=function(){return EY(function(W,B){B instanceof uf?W.push(B.measurementStrategyFailureReason):W.push(-1);return W},[])};var ZxR=function(W,B){this.context=W;this.poller=B};
_.C(ZxR,wb4);ZxR.prototype.buildGeometrySource=function(W,B){var z=GWT(d6k(this.context,this.poller),JyR(this.context,B.requestSource));return{geometrySource:BYR(W.measurableCreative.pipe(z),B.inApp),additionalOutputs:{}}};var PkD=function(W,B,z){z=z===void 0?ryD(W,B):z;this.context=W;this.intersectionObserverStrategy=z};
_.C(PkD,wb4);PkD.prototype.buildGeometrySource=function(W,B){var z=this.intersectionObserverStrategy(B.useV2);return{geometrySource:BYR(W.measurableCreative.pipe(z,ktQ(this.context)),B.inApp),additionalOutputs:{}}};var JZU=function(W,B,z){var G=G===void 0?Symbol():G;this.element=W;this.immediateUrls=B;this.timeOnScreenUrls=z;this.symbol=G};var N42=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),TY0=Object.freeze([1,.75,N42.exposureThreshold,N42.largeAdExposureThreshold,0]);var iPr=function(W,B){B=B===void 0?36E5:B;var z=z===void 0?!0:z;this.creatives=new r3;this.elementsToUnregister=new r3;this.elementMap=new Map;var G=new Yx(window,null);G.beaconFactory=new of(G,new Rf(G));tD8(G,this.creatives,this.elementsToUnregister,W,B,z).subscribe()},v5R=function(W,B,z,G){if(!W.elementMap.has(B)){var Y=new Nd(B);
W.elementMap.set(B,Y);W.creatives.next(new JZU(Y,z,G))}},TAv=function(W,B){W.elementsToUnregister.next(B);
var z=W.elementMap.get(B);z!==void 0&&(z.release(),W.elementMap.delete(B))};var H8k=function(W){var B=W.url;W=W.uaDataValues;this.JSC$9477_url_=B;this.uaDataValues_=W;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var z=/[?&]([^&=]+)=([^&]*)/g;W=z.exec(B);)this.urlParamValues_[W[1]]=W[2]},FRR=function(W){W=W.uaDataValues_;
if(!W)return"";var B=pp("uap",W.platform)+pp("uapv",W.platformVersion)+pp("uafv",W.uaFullVersion)+pp("uaa",W.architecture)+pp("uam",W.model)+pp("uab",W.bitness);W.fullVersionList&&(B+="&uafvl="+encodeURIComponent(W.fullVersionList.map(function(z){return encodeURIComponent(z.brand)+";"+encodeURIComponent(z.version)}).join("|")));
W.wow64!=null&&(B+="&uaw="+Number(W.wow64));return B.slice(1)};var ghQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(ghQ,_.iQ);ghQ.prototype.getId=function(){return _.KV(this,1)};var pa=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(pa,_.iQ);pa.prototype.getSeconds=function(){return OL(this,1)};
pa.prototype.setSeconds=function(W){return _.Wb(this,1,Tq(W),"0")};_.eg=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(_.eg,_.iQ);_.eg.prototype.getSeconds=function(){return OL(this,1)};
_.eg.prototype.setSeconds=function(W){return _.Wb(this,1,Tq(W),"0")};
_.tNd=function(W){var B=Number(em(W,1));W=_.cC(W,2);return new Date(B*1E3+W/1E6)};var AG=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(AG,_.iQ);AG.prototype.getUrl=function(){return _.KV(this,1)};
AG.prototype.setUrl=function(W){return _.U_(this,1,W)};
AG.prototype.getHeight=function(){return _.cC(this,2)};
AG.prototype.getWidth=function(){return _.cC(this,3)};var iK=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(iK,_.iQ);iK.prototype.getAspectRatio=function(){return XP(this,1)};
iK.prototype.getDuration=function(){return _.AD(this,pa,2)};var s37=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(s37,_.iQ);var PQU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(PQU,_.iQ);var ZmH=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(ZmH,_.iQ);var rZH=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(rZH,_.iQ);var k_M=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(k_M,_.iQ);var lRu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(lRu,_.iQ);var CQu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(CQu,_.iQ);var IR9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(IR9,_.iQ);var oh6=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(oh6,_.iQ);var EZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(EZ,_.iQ);var TE=[2,4,5,6,7];var hm4=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(hm4,_.iQ);var b0=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(b0,_.iQ);_.p=b0.prototype;_.p.getId=function(){return _.AD(this,ghQ,1)};
_.p.getName=function(){return _.KV(this,2)};
_.p.setDescription=function(W){return _.U_(this,3,W)};
_.p.getUrl=function(){return _.KV(this,8)};
_.p.setUrl=function(W){return _.U_(this,8,W)};
var vo=function(W){return _.TP(W,AG,10,_.vC())};
b0.prototype.getOwner=function(W){var B=_.Ub(this,40,_.l9,3,!0);ntt(B,W);return B[W]};
b0.prototype.getVersion=function(){return OL(this,45)};
var co=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(co,_.iQ);_.wL=[0,RO,v9t];_.Vy=[0,RO,v9t];var Hm4=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Hm4,_.iQ);var JG=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(JG,_.iQ);JG.prototype.getStatus=function(){return _.u0(this,1)};
JG.prototype.removeItem=function(W){return kc2(this,2,W)};var FFT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(FFT,_.iQ);FFT.prototype.getName=function(){return _.KV(this,8)};var gL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(gL,_.iQ);gL.prototype.getCommand=function(){return _.u0(this,1)};
gL.prototype.getSource=function(){return _.AD(this,FFT,2)};
gL.prototype.setVisible=function(W){return _.Oh(this,5,W)};
gL.prototype.removeItem=function(W){return kc2(this,7,W)};var SKu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(SKu,_.iQ);SKu.prototype.getCommand=function(){return _.u0(this,1)};
SKu.prototype.removeItem=function(W){return kc2(this,4,W)};
var bmH=_.ro(SKu);var tG=function(W,B,z){z=z===void 0?Error():z;var G=Error.call(this);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=W;B+=":";z instanceof Error?(this.message=B+z.message,this.stack=z.stack||""):(this.message=B+String(z),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.C(tG,Error);_.bA=function(){this.JSC$9535_disposed_=this.JSC$9535_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.bA.prototype.JSC$9535_disposed_=!1;_.bA.prototype.isDisposed=function(){return this.JSC$9535_disposed_};
_.bA.prototype.dispose=function(){this.JSC$9535_disposed_||(this.JSC$9535_disposed_=!0,this.disposeInternal())};
_.bA.prototype[Symbol.dispose]=function(){this.dispose()};
_.rH=function(W,B){W.addOnDisposeCallback(_.Ci(_.AI,B))};
_.bA.prototype.addOnDisposeCallback=function(W,B){this.JSC$9535_disposed_?B!==void 0?W.call(B):W():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),B&&(W=W.bind(B)),this.onDisposeCallbacks_.push(W))};
_.bA.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var sZ=function(W){_.bA.call(this);this.wpc=W};
_.C(sZ,_.bA);sZ.prototype.ctb=function(){return this.wpc.f()};
sZ.prototype.blb=function(W){return this.wpc.c(W)};
sZ.prototype.hw=function(W){return this.wpc.m(f5x(W))};
sZ.prototype.nbX=function(W){return this.wpc.mws(f5x(W))};
var Ek=function(W){_.bA.call(this);var B=this;this.vm=W;this.j2U="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.m7R=void 0;this.aAZ=this.vm.p;this.rw7=this.otC.bind(this);this.addOnDisposeCallback(function(){return void j3U(B)})};
_.C(Ek,_.bA);var fRM=function(W){var B;return _.T(function(z){if(z.nextAddress==1){if(!W.vm.wpc)throw new tG(30,"NWA");return W.kAq?z.return(W.kAq):z.yield(W.vm.wpc(),2)}B=z.yieldResult;W.kAq=new sZ(B);return z.return(W.kAq)})};
Ek.prototype.snapshot=function(W){return this.vm.s(Object.assign({},W.ym&&{c:W.ym},W.f7X&&{s:W.f7X},W.myY!==void 0&&{p:W.myY}))};
Ek.prototype.otC=function(W){this.vm.e(W)};
Ek.prototype.bjq=function(W,B){return this.vm.c(W,B,!1)};
var j3U=function(W){W.m7R!==void 0&&(W.j2U.forEach(function(B){var z;(z=W.m7R)==null||z.removeEventListener(B,W.rw7)}),W.m7R=void 0)};
Ek.prototype.cxH=function(){return this.vm.l()};var Po=function(){_.bA.apply(this,arguments);this.xqK=1};
_.C(Po,_.bA);Po.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.xqK++;return this};
Po.prototype.dispose=function(){--this.xqK||_.bA.prototype.dispose.call(this)};var OmM=function(W){this.k04=W;W.addNewEventMetric("/client_streamz/bg/frs",_.JI("mk"))};
OmM.prototype.record=function(W,B){this.k04.record("/client_streamz/bg/frs",W,B)};
var XbH=function(W){this.iKn=W;W.addNewEventMetric("/client_streamz/bg/wrl",_.JI("mn"),VJ("ac"),VJ("sc"),_.JI("rk"),_.JI("mk"))};
XbH.prototype.record=function(W,B,z,G,Y,d){this.iKn.record("/client_streamz/bg/wrl",W,B,z,G,Y,d)};
var KFU=function(W){this.nKj=W;W.addNewCounter("/client_streamz/bg/ec",_.JI("en"),_.JI("mk"))};
KFU.prototype.increment=function(W,B){this.nKj.JSC$9788_incrementCounter("/client_streamz/bg/ec",W,B)};
var uMQ=function(W){this.zuq=W;W.addNewEventMetric("/client_streamz/bg/el",_.JI("en"),_.JI("mk"))};
uMQ.prototype.record=function(W,B,z){this.zuq.record("/client_streamz/bg/el",W,B,z)};
var em4=function(W){this.s0F=W;W.addNewCounter("/client_streamz/bg/cec",VJ("ec"),_.JI("mk"))};
em4.prototype.increment=function(W,B){this.s0F.JSC$9788_incrementCounter("/client_streamz/bg/cec",W,B)};
var mZ6=function(W){this.tfj=W;W.addNewCounter("/client_streamz/bg/po/csc",VJ("cs"),_.JI("mk"))};
mZ6.prototype.increment=function(W,B){this.tfj.JSC$9788_incrementCounter("/client_streamz/bg/po/csc",W,B)};
var xZd=function(W){this.lzx=W;W.addNewCounter("/client_streamz/bg/po/ctav",_.JI("av"),_.JI("mk"))};
xZd.prototype.increment=function(W,B){this.lzx.JSC$9788_incrementCounter("/client_streamz/bg/po/ctav",W,B)};
var DZu=function(W){this.c17=W;W.addNewCounter("/client_streamz/bg/po/cwsc",_.JI("su"),_.JI("mk"))};
DZu.prototype.increment=function(W,B){this.c17.JSC$9788_incrementCounter("/client_streamz/bg/po/cwsc",W,B)};var i4Q=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(i4Q,_.iQ);var ACQ=function(W,B){return _.Rj(W,3,B,wQk)};var Q39=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Q39,_.iQ);var yZH=[1,2,3];var qKF=[0,yZH,_.pf,cJy,JJv];var nhR=[0,_.Ao,[0,Mi,_.aO]];var Nou=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Nou,_.iQ);var $ZD=[1,2,3];var LFT=[0,$ZD,Tmk,pPR,_.iL,nhR];var UZu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(UZu,_.iQ);var MNT=[0,_.Ao,qKF,LFT];var aR4=[0,_.Yi];var Rmd=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Rmd,_.iQ);var WDu=[0,_.Yi,-1,_.zI];var BjR=[0,_.Yi,-1,_.Bq,_.zI];var z6F=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(z6F,_.iQ);var GdQ=[1,2,3];var Y0R=[0,GdQ,_.iL,WDu,_.iL,BjR,_.iL,aR4];var dk7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(dk7,_.iQ);dk7.prototype.JSC$9608_serializeBinary=mZT([0,_.Yi,Y0R,g90,_.Ao,MNT,wPv,VPQ]);var pG9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(pG9,_.iQ);var EAu=function(W){var B=new dk7;B=_.f3(B,1,W.JSC$9724_metricName);var z=A6d(W);B=_.Rj(B,3,z,_.sb);z=[];for(var G=[],Y=_.A(W.cellMap.keys()),d=Y.next();!d.done;d=Y.next())G.push(d.value.split(","));for(Y=0;Y<G.length;Y++){d=G[Y];for(var E=W.cellType,v=W.getCells(d)||[],c=[],J=0;J<v.length;J++){var g=v[J],t=g&&g.cellValue;g=new Nou;switch(E){case 3:t=Number(t);Number.isFinite(t)&&JX(g,1,$ZD,Tq(t));break;case 2:JX(g,2,$ZD,_.n7(Number(t)))}c.push(g)}E=c;for(v=0;v<E.length;v++){c=E[v];J=new UZu;c=_.o3(J,
2,c);J=[];g=iNR(W);for(t=0;t<g.length;t++){var P=g[t],Z=d[t],l=new Q39;switch(P){case 3:JX(l,1,yZH,ri(String(Z)));break;case 2:P=Number(Z);Number.isFinite(P)&&JX(l,2,yZH,_.YY(P));break;case 1:JX(l,3,yZH,TUQ(Z==="true"))}J.push(l)}Sm(c,1,J);z.push(c)}}Sm(B,4,z);return B};var Tju=function(W){if(!W)return"";if(/^about:(?:blank|srcdoc)$/.test(W))return window.origin||"";W.indexOf("blob:")===0&&(W=W.substring(5));W=W.split("#")[0].split("?")[0];W=W.toLowerCase();W.indexOf("//")==0&&(W=window.location.protocol+W);/^[\w\-]*:\/\//.test(W)||(W=window.location.href);var B=W.substring(W.indexOf("://")+3),z=B.indexOf("/");z!=-1&&(B=B.substring(0,z));z=W.substring(0,W.indexOf("://"));if(!z)throw Error("qa`"+W);if(z!=="http"&&z!=="https"&&z!=="chrome-extension"&&z!=="moz-extension"&&
z!=="file"&&z!=="android-app"&&z!=="chrome-search"&&z!=="chrome-untrusted"&&z!=="chrome"&&z!=="app"&&z!=="devtools")throw Error("ra`"+z);W="";var G=B.indexOf(":");if(G!=-1){var Y=B.substring(G+1);B=B.substring(0,G);if(z==="http"&&Y!=="80"||z==="https"&&Y!=="443")W=":"+Y}return z+"://"+B+W};var c6Q=function(W,B,z){var G=String(_.Yt.location.href);return G&&W&&B?[B,vAd(Tju(G),W,z||null)].join(" "):null},vAd=function(W,B,z){var G=[],Y=[];
if((Array.isArray(z)?2:1)==1)return Y=[B,W],_.$r(G,function(v){Y.push(v)}),wG9(Y.join(" "));
var d=[],E=[];_.$r(z,function(v){E.push(v.key);d.push(v.value)});
z=Math.floor((new Date).getTime()/1E3);Y=d.length==0?[z,B,W]:[d.join(":"),z,B,W];_.$r(G,function(v){Y.push(v)});
W=wG9(Y.join(" "));W=[z,W];E.length==0||W.push(E.join(""));return W.join("_")},wG9=function(W){var B=D6x();
B.update(W);return B.digestString().toLowerCase()};var Zk=function(W){this.JSC$9619_document_=W||{cookie:""}},VF4;
_.p=Zk.prototype;_.p.isEnabled=function(){if(!_.Yt.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};
_.p.set=function(W,B,z){var G=!1;if(typeof z==="object"){var Y=z.sameSite;G=z.secure||!1;var d=z.domain||void 0;var E=z.path||void 0;var v=z.maxAge}if(/[;=\s]/.test(W))throw Error("sa`"+W);if(/[;\r\n]/.test(B))throw Error("ta`"+B);v===void 0&&(v=-1);z=d?";domain="+d:"";E=E?";path="+E:"";G=G?";secure":"";v=v<0?"":v==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+v*1E3)).toUTCString();this.JSC$9619_document_.cookie=W+"="+B+z+E+v+G+(Y!=null?";samesite="+Y:"")};
_.p.get=function(W,B){for(var z=W+"=",G=(this.JSC$9619_document_.cookie||"").split(";"),Y=0,d;Y<G.length;Y++){d=J0(G[Y]);if(d.lastIndexOf(z,0)==0)return d.slice(z.length);if(d==W)return""}return B};
_.p.remove=function(W,B,z){var G=this.containsKey(W);this.set(W,"",{maxAge:0,path:B,domain:z});return G};
_.p.getKeys=function(){return VF4(this).keys};
_.p.getValues=function(){return VF4(this).values};
_.p.isEmpty=function(){return!this.JSC$9619_document_.cookie};
_.p.getCount=function(){return this.JSC$9619_document_.cookie?(this.JSC$9619_document_.cookie||"").split(";").length:0};
_.p.containsKey=function(W){return this.get(W)!==void 0};
_.p.containsValue=function(W){for(var B=VF4(this).values,z=0;z<B.length;z++)if(B[z]==W)return!0;return!1};
_.p.clear=function(){for(var W=VF4(this).keys,B=W.length-1;B>=0;B--)this.remove(W[B])};
VF4=function(W){W=(W.JSC$9619_document_.cookie||"").split(";");for(var B=[],z=[],G,Y,d=0;d<W.length;d++)Y=J0(W[d]),G=Y.indexOf("="),G==-1?(B.push(""),z.push(Y)):(B.push(Y.substring(0,G)),z.push(Y.substring(G+1)));return{keys:B,values:z}};
_.rO=new Zk(typeof document=="undefined"?null:document);var l3t,J6U;l3t=function(){var W=_.Yt.__SAPISID||_.Yt.__APISID||_.Yt.__3PSAPISID||_.Yt.__1PSAPISID||_.Yt.__OVERRIDE_SID;if(W)return!0;typeof document!=="undefined"&&(W=new Zk(document),W=W.get("SAPISID")||W.get("APISID")||W.get("__Secure-3PAPISID")||W.get("__Secure-1PAPISID"));return!!W};
J6U=function(W,B,z,G){(W=_.Yt[W])||typeof document==="undefined"||(W=(new Zk(document)).get(B));return W?c6Q(W,z,G):null};
_.YVr=function(W){var B=Tju(_.Yt==null?void 0:_.Yt.location.href),z=[];if(l3t()){B=B.indexOf("https:")==0||B.indexOf("chrome-extension:")==0||B.indexOf("chrome-untrusted://new-tab-page")==0||B.indexOf("moz-extension:")==0;var G=B?_.Yt.__SAPISID:_.Yt.__APISID;G||typeof document==="undefined"||(G=new Zk(document),G=G.get(B?"SAPISID":"APISID")||G.get("__Secure-3PAPISID"));(G=G?c6Q(G,B?"SAPISIDHASH":"APISIDHASH",W):null)&&z.push(G);B&&((B=J6U("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",W))&&z.push(B),
(W=J6U("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",W))&&z.push(W))}return z.length==0?null:z.join(" ")};var gAT=function(){this.minSize=1024};
gAT.prototype.compress=function(W){var B,z,G,Y;return _.T(function(d){switch(d.nextAddress){case 1:return B=new CompressionStream("gzip"),z=(new Response(B.readable)).arrayBuffer(),G=B.writable.getWriter(),d.yield(G.write((new TextEncoder).encode(W)),2);case 2:return d.yield(G.close(),3);case 3:return Y=Uint8Array,d.yield(z,4);case 4:return d.return(new Y(d.yieldResult))}})};
gAT.prototype.isSupported=function(W){return W<this.minSize?!1:typeof CompressionStream!=="undefined"};var tFR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(tFR,_.iQ);var rL=function(W,B){this.intervalMs=W;this.callback=B;this.enabled=!1;this.nowFn=function(){return _.EL()};
this.lastTimeMs=this.nowFn()};
rL.prototype.setInterval=function(W){this.intervalMs=W;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
rL.prototype.start=function(){var W=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){W.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
rL.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
rL.prototype.tick=function(){var W=this;if(this.enabled){var B=Math.max(this.nowFn()-this.lastTimeMs,0);B<this.intervalMs*.8?this.timer=setTimeout(function(){W.tick()},this.intervalMs-B):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var sRR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(sRR,_.iQ);var P7F=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(P7F,_.iQ);var ZNR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(ZNR,_.iQ);ZNR.prototype.getTransmissionType=function(){return _.u0(this,1)};var nrD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(nrD,_.iQ);nrD.prototype.getVersion=function(){return _.KV(this,2)};var kX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(kX,_.iQ);var qwu=function(W){Sm(NYt,1,W)};
kX.prototype.getModel=function(){return _.KV(this,6)};
var r6F=_.ro(kX);var kdR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(kdR,_.iQ);var QJX=["platform","platformVersion","architecture","model","uaFullVersion"],NYt=new kX,yW8=null;var lK=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(lK,_.iQ);var l1M=function(W){return _.i2(W,1,1)};var C7D=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W,4)};
_.C(C7D,_.iQ);_.Ca=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W,36)};
_.C(_.Ca,_.iQ);_.Ca.prototype.getExperimentIds=function(){return _.AD(this,tFR,16)};var I1M=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W,19)};
_.C(I1M,_.iQ);I1M.prototype.setLogSource=function(W){return _.i2(this,2,W)};
I1M.prototype.setScheduler=function(W){return _.i2(this,10,W)};var h6R=function(W,B){this.isServiceWorkerScope=B=B===void 0?!1:B;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new I1M;Number.isInteger(W)&&this.logRequest.setLogSource(W);B||(this.locale=document.documentElement.getAttribute("lang"));oA7(this,new lK)};
h6R.prototype.setLogSource=function(W){this.logRequest.setLogSource(W);return this};
var oA7=function(W,B){_.o3(W.logRequest,1,B);_.u0(B,1)||l1M(B);W.isServiceWorkerScope||(B=Ir(W),_.KV(B,5)||_.f3(B,5,W.locale));W.uach&&(B=Ir(W),_.AD(B,kX,9)||_.o3(B,9,W.uach))},HNQ=function(W,B){W.transmissionType=B},FD6=function(W){var B=B===void 0?QJX:B;
var z=W.isServiceWorkerScope?void 0:QY();z?$62(z,B).then(function(G){W.uach=r6F(G!=null?G:"[]");G=Ir(W);_.o3(G,9,W.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Ir=function(W){var B=_.AD(W.logRequest,lK,1);
B||(B=new lK,oA7(W,B));W=B;B=_.AD(W,kdR,11);B||(B=new kdR,_.o3(W,11,B));return B};
h6R.prototype.build=function(W,B,z,G,Y,d){B=B===void 0?0:B;z=z===void 0?0:z;G=G===void 0?null:G;Y=Y===void 0?0:Y;d=d===void 0?0:d;if(!this.isServiceWorkerScope){var E=Ir(this);var v=new ZNR;v=_.i2(v,1,this.transmissionType);v=_.gH(v,2,this.isFinal);z=_.DJ(v,3,z>0?z:void 0);z=_.DJ(z,4,Y>0?Y:void 0);z=_.DJ(z,5,d>0?d:void 0);Y=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;d=Y[_.AM]|0;z=PQ(z,d)?z:liy(z,Y,d)?kq8(z,Y):new z.constructor(xY(Y,d,!0));_.o3(E,10,z)}E=this.logRequest.clone();z=Date.now().toString();
E=_.EE(E,4,Tq(z));W=W.slice();W=Sm(E,3,W);G&&(E=new sRR,G=_.DJ(E,13,G),E=new P7F,G=_.o3(E,2,G),E=new C7D,G=_.o3(E,1,G),G=_.i2(G,2,9),_.o3(W,18,G));B&&_.kE(W,14,B);return W};tI.prototype.currBackoffCount_=0;tI.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
tI.prototype.getValue=function(){return this.currValue_};
var S0F=function(W){W.currBaseValue_=Math.min(W.maxValue_,W.currBaseValue_*W.backoffFactor_);W.currValue_=Math.min(W.maxValue_,W.currBaseValue_+(W.randomFactor_?Math.round(W.randomFactor_*(Math.random()-.5)*2*W.currBaseValue_):0));W.currBackoffCount_++};var lO8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W,8)};
_.C(lO8,_.iQ);var bNR=_.ro(lO8);var C5k=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(C5k,_.iQ);var or;or=new IOX;var hG=function(W){_.bA.call(this);var B=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9697_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$9697_sendBeaconApiEnabled=!1;this.logSource=W.logSource;this.getAuthHeaderValue=
W.getAuthHeaderValue||function(){};
this.logRequestBuilder=new h6R(W.logSource,W.isServiceWorkerScope);this.network=W.network||null;this.productID=W.productID||null;this.bufferSize=1E3;this.clearcutUrl=W.urlOverride||null;this.sessionIndex=W.sessionIndex||null;this.disableAutomaticFlush=W.disableAutomaticFlush||!1;this.withCredentials=!W.disableWithCredentials;this.isServiceWorkerScope=W.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!QY()&&!!QY().navigator&&QY().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(jRQ())).searchParams&&!!(new URL(jRQ())).searchParams.set;var z=l1M(new lK);oA7(this.logRequestBuilder,z);this.flushBackoff=new tI(1E4,3E5,.1);W=f14(this,W.backgroundJobDeferrer);this.JSC$9697_flushTimer=new rL(this.flushBackoff.getValue(),W);this.backupTimer=new rL(6E5,W);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){ONR(B);
var G;(G=B.metalogService)==null||G.flush()}}),document.addEventListener("pagehide",function(){ONR(B);
var G;(G=B.metalogService)==null||G.flush()}))};
_.C(hG,_.bA);var f14=function(W,B){return W.isBrowserSupported?B?function(){B().then(function(){W.flush()})}:function(){W.flush()}:function(){}};
hG.prototype.disposeInternal=function(){ONR(this);this.JSC$9697_flushTimer.stop();this.backupTimer.stop();_.bA.prototype.disposeInternal.call(this)};
var XGR=function(W){W.clearcutUrl||(W.clearcutUrl=jRQ());try{return(new URL(W.clearcutUrl)).toString()}catch(B){return(new URL(W.clearcutUrl,QY().location.origin)).toString()}};
hG.prototype.dispatch=function(W){if(W instanceof _.Ca)this.log(W);else try{var B=new _.Ca,z=W.serialize();var G=_.f3(B,8,z);this.log(G)}catch(Y){Ho(this,4,1)}};
var Ho=function(W,B,z){W.metalogService&&W.metalogService.increment(B,z)};
hG.prototype.log=function(W){Ho(this,2,1);if(this.isBrowserSupported){W=W.clone();var B=this.sequencePosition++;W=_.kE(W,21,B);this.componentId&&_.f3(W,26,this.componentId);B=W;if(b7R(_.CV(B,1))==null){var z=Date.now();z=Number.isFinite(z)?z.toString():"0";_.EE(B,1,Tq(z))}_.SFv(_.CV(B,15))!=null||_.kE(B,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(z=this.experimentIds.clone(),_.o3(B,16,z));Ho(this,1,1);B=this.pendingEvents.length-this.bufferSize+1;B>0&&(this.pendingEvents.splice(0,B),
this.numLogsDroppedSinceLastFlush+=B,Ho(this,3,B));this.pendingEvents.push(W);this.disableAutomaticFlush||this.JSC$9697_flushTimer.enabled||this.JSC$9697_flushTimer.start()}};
hG.prototype.flush=function(W,B){var z=this;if(this.pendingEvents.length===0)W&&W();else if(this.JSC$9697_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,KD9(this);else{var G=Date.now();if(this.noFlushUntilMs>G&&this.startWaitingMs<G)B&&B("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?HNQ(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var Y=this.pendingEvents.length,
d=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),E=this.getAuthHeaderValue();if(E&&this.lastFailedAuth===E)B&&B("stale-auth-token");else{this.pendingEvents=[];this.JSC$9697_flushTimer.enabled&&this.JSC$9697_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;G=d.serialize();var v;this.JSC$9697_compressor&&this.JSC$9697_compressor.isSupported(G.length)&&
(v=this.JSC$9697_compressor.compress(G));var c=upM(this,G,E),J=function(P){z.flushBackoff.reset();z.JSC$9697_flushTimer.setInterval(z.flushBackoff.getValue());if(P){var Z=null;try{var l=JSON.stringify(JSON.parse(P.replace(")]}'\n","")));Z=bNR(l)}catch(b){}Z&&(P=Number(OL(Z,1,_.OF("-1"))),P>0&&(z.startWaitingMs=Date.now(),z.noFlushUntilMs=z.startWaitingMs+P),RDR(Z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,or.fieldIndex),MRu(Z,or.fieldIndex),Z=or.ctor?or.getExtensionFn(Z,or.ctor,or.fieldIndex,
or.JSC$8876_hasMessageId):or.getExtensionFn(Z,or.fieldIndex,null,or.JSC$8876_hasMessageId),Z=Z===null?void 0:Z)&&(Z=_.cC(Z,1,-1),Z!==-1&&(z.flushBackoff=new tI(Z<1?1:Z,3E5,.1),z.JSC$9697_flushTimer.setInterval(z.flushBackoff.getValue())))}W&&W();z.numRetriesSinceLastSuccessfulFlush=0},g=function(P,Z){var l=_.TP(d,_.Ca,3,_.vC());
var b=Number(OL(d,14));S0F(z.flushBackoff);z.JSC$9697_flushTimer.setInterval(z.flushBackoff.getValue());P===401&&E&&(z.lastFailedAuth=E);b&&(z.numLogsDroppedSinceLastFlush+=b);Z===void 0&&(Z=z.isRetryable(P));Z&&(z.pendingEvents=l.concat(z.pendingEvents),z.disableAutomaticFlush||z.JSC$9697_flushTimer.enabled||z.JSC$9697_flushTimer.start());Ho(z,7,1);B&&B("net-send-failed",P);++z.numRetriesSinceLastSuccessfulFlush},t=function(){z.network&&z.network.send(c,J,g)};
v?v.then(function(P){Ho(z,5,Y);c.requestHeaders["Content-Encoding"]="gzip";c.requestHeaders["Content-Type"]="application/binary";c.body=P;c.bodyType=2;t()},function(){Ho(z,6,Y);
t()}):t()}}}};
var upM=function(W,B,z){z=z===void 0?null:z;var G=G===void 0?W.withCredentials:G;var Y={},d=new URL(XGR(W));z&&(Y.Authorization=z);W.sessionIndex&&(Y["X-Goog-AuthUser"]=W.sessionIndex,d.searchParams.set("authuser",W.sessionIndex));W.pageId&&(Object.defineProperty(Y,"X-Goog-PageId",{value:W.pageId}),d.searchParams.set("pageId",W.pageId));return{url:d.toString(),body:B,bodyType:1,requestHeaders:Y,requestType:"POST",withCredentials:G,timeoutMillis:W.timeoutMillis}},ONR=function(W){W.logRequestBuilder.isFinal=
!0;
W.flush();W.logRequestBuilder.isFinal=!1},KD9=function(W){e6T(W,function(B,z){B=new URL(B);
B.searchParams.set("format","json");var G=!1;try{G=QY().navigator.sendBeacon(B.toString(),z.serialize())}catch(Y){}G||(W.isSendBeaconSupported=!1);return G})},e6T=function(W,B){if(W.pendingEvents.length!==0){var z=new URL(XGR(W));
z.searchParams.delete("format");var G=W.getAuthHeaderValue();G&&z.searchParams.set("auth",G);z.searchParams.set("authuser",W.sessionIndex||"0");for(G=0;G<10&&W.pendingEvents.length;++G){var Y=W.pendingEvents.slice(0,32),d=W.logRequestBuilder.build(Y,W.numLogsDroppedSinceLastFlush,W.numRetriesSinceLastSuccessfulFlush,W.productID,W.persistedLogRecoveredCount,W.persistedLogExpiredCount);if(!B(z.toString(),d)){++W.numRetriesSinceLastSuccessfulFlush;break}W.numLogsDroppedSinceLastFlush=0;W.numRetriesSinceLastSuccessfulFlush=
0;W.persistedLogRecoveredCount=0;W.persistedLogExpiredCount=0;W.pendingEvents=W.pendingEvents.slice(Y.length)}W.JSC$9697_flushTimer.enabled&&W.JSC$9697_flushTimer.stop()}};
hG.prototype.isRetryable=function(W){return 500<=W&&W<600||W===401||W===0};
var jRQ=function(){return"https://play.google.com/log?format=json&hasfast=true"};var mkH=function(){this.abortSupported=typeof AbortController!=="undefined"};
mkH.prototype.send=function(W,B,z){var G=this,Y,d,E,v,c,J,g,t,P,Z;return _.T(function(l){switch(l.nextAddress){case 1:return d=(Y=G.abortSupported?new AbortController:void 0)?setTimeout(function(){Y.abort()},W.timeoutMillis):void 0,_.kA(l,2,3),E=Object.assign({},{method:W.requestType,
headers:Object.assign({},W.requestHeaders)},W.body&&{body:W.body},W.withCredentials&&{credentials:"include"},{signal:W.timeoutMillis&&Y?Y.signal:null}),l.yield(fetch(W.url,E),5);case 5:v=l.yieldResult;if(v.status!==200){(c=z)==null||c(v.status);l.jumpTo(3);break}if((J=B)==null){l.jumpTo(7);break}return l.yield(v.text(),8);case 8:J(l.yieldResult);case 7:case 3:_.CN(l);clearTimeout(d);_.oR(l,0);break;case 2:g=_.h6(l);switch((t=g)==null?void 0:t.name){case "AbortError":(P=z)==null||P(408);break;default:(Z=
z)==null||Z(400)}l.jumpTo(3)}})};
mkH.prototype.getTransmissionType=function(){return 4};_.ZG=function(W,B){B=B===void 0?"0":B;_.bA.call(this);this.logSource=W;this.sessionIndex=B;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9715_clearExperimentIds=this.productID=null;this.JSC$9715_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.C(_.ZG,_.bA);var YAv=function(W,B){W.buildLabel=B;return W},G4r=function(W,B){W.network=B;
return W},pSr=function(W,B){W.JSC$9715_clearExperimentIds=B},ztx=function(W){W.JSC$9715_sendBeaconApiEnabled=!0;
return W};
_.ZG.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.ZG.prototype.build=function(){this.network||(this.network=new mkH);var W=new hG({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.YVr,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.rH(this,W);if(this.buildLabel){var B=this.buildLabel,z=
Ir(W.logRequestBuilder);_.f3(z,7,B)}W.JSC$9697_compressor=new gAT;this.componentId&&(W.componentId=this.componentId);this.productID&&(W.productID=this.productID);this.pageId&&(W.pageId=this.pageId);this.JSC$9715_clearExperimentIds&&((z=this.JSC$9715_clearExperimentIds)?(W.experimentIds||(W.experimentIds=new tFR),B=W.experimentIds,z=z.serialize(),_.f3(B,4,z)):W.experimentIds&&_.EE(W.experimentIds,4));this.JSC$9715_sendBeaconApiEnabled&&(W.JSC$9697_sendBeaconApiEnabled=W.isSendBeaconSupported);FD6(W.logRequestBuilder);
this.bufferSize&&(W.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(W);return W};var E8T=function(W,B,z,G,Y,d,E){W=W===void 0?-1:W;B=B===void 0?"":B;z=z===void 0?"":z;G=G===void 0?!1:G;Y=Y===void 0?"":Y;_.bA.call(this);this.logSource=W;this.componentId=B;d?B=d:(W=new _.ZG(W,"0"),W.componentId=B,_.rH(this,W),z!==""&&(W.destinationUrl=z),G&&(W.serviceWorkerScopeEnabled=!0),Y&&YAv(W,Y),E&&G4r(W,E),B=W.build());this.JSC$9719_transport=B};
_.C(E8T,_.bA);E8T.prototype.flush=function(W){W=W||[];if(W.length){for(var B=new pG9,z=[],G=0;G<W.length;G++){var Y=W[G],d=EAu(Y);z.push(d);Y.clear()}Sm(B,1,z);this.JSC$9719_transport.dispatch(B);this.JSC$9719_transport.flush()}};var xk7=function(W){this.cellValue=W};var Fn=function(W,B,z){this.JSC$9724_metricName=W;this.cellType=B;this.fields=z||[];this.cellMap=new Map},iNR=function(W){return W.fields.map(function(B){return B.fieldType})},A6d=function(W){return W.fields.map(function(B){return B.fieldName})};
_.p=Fn.prototype;_.p.addCell=function(W){var B=_.nm.apply(1,arguments),z=this.getCells(B);z?z.push(new xk7(W)):this.JSC$9724_setCell(W,B)};
_.p.JSC$9724_setCell=function(W){var B=this.JSC$9724_getKey(_.nm.apply(1,arguments));this.cellMap.set(B,[new xk7(W)])};
_.p.getCells=function(){var W=this.JSC$9724_getKey(_.nm.apply(0,arguments));return this.cellMap.has(W)?this.cellMap.get(W):void 0};
_.p.getCell=function(){var W=this.getCells(_.nm.apply(0,arguments));return W&&W.length?W[0]:void 0};
_.p.clear=function(){this.cellMap.clear()};
_.p.JSC$9724_getKey=function(){var W=_.nm.apply(0,arguments);return W?W.join(","):"key"};var DkQ=function(W,B){Fn.call(this,W,3,B)};
_.C(DkQ,Fn);DkQ.prototype.JSC$9727_incrementCounterBy=function(W){var B=_.nm.apply(1,arguments),z=0,G=this.getCell(B);G&&(z=G.cellValue);this.JSC$9724_setCell(z+W,B)};var QRD=function(W,B){Fn.call(this,W,2,B)};
_.C(QRD,Fn);QRD.prototype.record=function(W){this.addCell(W,_.nm.apply(1,arguments))};_.S1=function(W){this.id=W};
_.S1.prototype.toString=function(){return this.id};_.bK=function(W,B){this.type=W instanceof _.S1?String(W):W;this.currentTarget=this.target=B;this.defaultPrevented=this.propagationStopped_=!1};
_.bK.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.bK.prototype.preventDefault=function(){this.defaultPrevented=!0};_.j1=function(W,B){_.bK.call(this,W?W.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;W&&this.init(W,B)};
_.TC(_.j1,_.bK);
_.j1.prototype.init=function(W,B){var z=this.type=W.type,G=W.changedTouches&&W.changedTouches.length?W.changedTouches[0]:null;this.target=W.target||W.srcElement;this.currentTarget=B;B=W.relatedTarget;B||(z=="mouseover"?B=W.fromElement:z=="mouseout"&&(B=W.toElement));this.relatedTarget=B;G?(this.clientX=G.clientX!==void 0?G.clientX:G.pageX,this.clientY=G.clientY!==void 0?G.clientY:G.pageY,this.screenX=G.screenX||0,this.screenY=G.screenY||0):(this.offsetX=_.ts||W.offsetX!==void 0?W.offsetX:W.layerX,
this.offsetY=_.ts||W.offsetY!==void 0?W.offsetY:W.layerY,this.clientX=W.clientX!==void 0?W.clientX:W.pageX,this.clientY=W.clientY!==void 0?W.clientY:W.pageY,this.screenX=W.screenX||0,this.screenY=W.screenY||0);this.button=W.button;this.keyCode=W.keyCode||0;this.key=W.key||"";this.charCode=W.charCode||(z=="keypress"?W.keyCode:0);this.ctrlKey=W.ctrlKey;this.altKey=W.altKey;this.shiftKey=W.shiftKey;this.metaKey=W.metaKey;this.pointerId=W.pointerId||0;this.pointerType=W.pointerType;this.state=W.state;
this.timeStamp=W.timeStamp;this.event_=W;W.defaultPrevented&&_.j1.superClass_.preventDefault.call(this)};
_.j1.prototype.stopPropagation=function(){_.j1.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.j1.prototype.preventDefault=function(){_.j1.superClass_.preventDefault.call(this);var W=this.event_;W.preventDefault?W.preventDefault():W.returnValue=!1};var y6Q="closure_listenable_"+(Math.random()*1E6|0),fa=function(W){return!(!W||!W[y6Q])};var q06=0;var nAR=function(W,B,z,G,Y){this.listener=W;this.proxy=null;this.src=B;this.type=z;this.capture=!!G;this.handler=Y;this.key=++q06;this.removed=this.callOnce=!1},Nj7=function(W){W.removed=!0;
W.listener=null;W.proxy=null;W.src=null;W.handler=null};sk.prototype.add=function(W,B,z,G,Y){var d=W.toString();W=this.listeners[d];W||(W=this.listeners[d]=[],this.typeCount_++);var E=$k6(W,B,G,Y);E>-1?(B=W[E],z||(B.callOnce=!1)):(B=new nAR(B,this.src,d,!!G,Y),B.callOnce=z,W.push(B));return B};
sk.prototype.remove=function(W,B,z,G){W=W.toString();if(!(W in this.listeners))return!1;var Y=this.listeners[W];B=$k6(Y,B,z,G);return B>-1?(Nj7(Y[B]),_.lvX(Y,B),Y.length==0&&(delete this.listeners[W],this.typeCount_--),!0):!1};
var LDQ=function(W,B){var z=B.type;if(!(z in W.listeners))return!1;var G=_.Dv(W.listeners[z],B);G&&(Nj7(B),W.listeners[z].length==0&&(delete W.listeners[z],W.typeCount_--));return G};
sk.prototype.removeAll=function(W){W=W&&W.toString();var B=0,z;for(z in this.listeners)if(!W||z==W){for(var G=this.listeners[z],Y=0;Y<G.length;Y++)++B,Nj7(G[Y]);delete this.listeners[z];this.typeCount_--}return B};
sk.prototype.getListener=function(W,B,z,G){W=this.listeners[W.toString()];var Y=-1;W&&(Y=$k6(W,B,z,G));return Y>-1?W[Y]:null};
sk.prototype.hasListener=function(W,B){var z=W!==void 0,G=z?W.toString():"",Y=B!==void 0;return _.mP.some(this.listeners,function(d){for(var E=0;E<d.length;++E)if(!(z&&d[E].type!=G||Y&&d[E].capture!=B))return!0;return!1})};
var $k6=function(W,B,z,G){for(var Y=0;Y<W.length;++Y){var d=W[Y];if(!d.removed&&d.listener==B&&d.capture==!!z&&d.handler==G)return Y}return-1};var UkU,MFR,a1R,WPu,B3R,f8,OV,YYU,zkR,GFu,OZ,dd4,R6R;UkU="closure_lm_"+(Math.random()*1E6|0);MFR={};a1R=0;_.ug=function(W,B,z,G,Y){if(G&&G.once)return f8(W,B,z,G,Y);if(Array.isArray(B)){for(var d=0;d<B.length;d++)_.ug(W,B[d],z,G,Y);return null}z=R6R(z);return fa(W)?W.listen(B,z,_.$t(G)?!!G.capture:!!G,Y):WPu(W,B,z,!1,G,Y)};
WPu=function(W,B,z,G,Y,d){if(!B)throw Error("va");var E=_.$t(Y)?!!Y.capture:!!Y,v=OZ(W);v||(W[UkU]=v=new sk(W));z=v.add(B,z,G,E,d);if(z.proxy)return z;G=B3R();z.proxy=G;G.src=W;G.listener=z;if(W.addEventListener)_.WrH||(Y=E),Y===void 0&&(Y=!1),W.addEventListener(B.toString(),G,Y);else if(W.attachEvent)W.attachEvent(zkR(B.toString()),G);else if(W.addListener&&W.removeListener)W.addListener(G);else throw Error("wa");a1R++;return z};
B3R=function(){var W=GFu,B=function(z){return W.call(B.src,B.listener,z)};
return B};
f8=function(W,B,z,G,Y){if(Array.isArray(B)){for(var d=0;d<B.length;d++)f8(W,B[d],z,G,Y);return null}z=R6R(z);return fa(W)?W.listenOnce(B,z,_.$t(G)?!!G.capture:!!G,Y):WPu(W,B,z,!0,G,Y)};
_.Xn=function(W,B,z,G,Y){if(Array.isArray(B))for(var d=0;d<B.length;d++)_.Xn(W,B[d],z,G,Y);else G=_.$t(G)?!!G.capture:!!G,z=R6R(z),fa(W)?W.unlisten(B,z,G,Y):W&&(W=OZ(W))&&(B=W.getListener(B,z,G,Y))&&OV(B)};
OV=function(W){if(typeof W==="number"||!W||W.removed)return!1;var B=W.src;if(fa(B))return LDQ(B.eventTargetListeners_,W);var z=W.type,G=W.proxy;B.removeEventListener?B.removeEventListener(z,G,W.capture):B.detachEvent?B.detachEvent(zkR(z),G):B.addListener&&B.removeListener&&B.removeListener(G);a1R--;(z=OZ(B))?(LDQ(z,W),z.typeCount_==0&&(z.src=null,B[UkU]=null)):Nj7(W);return!0};
YYU=function(W,B,z,G,Y){z=R6R(z);G=!!G;return fa(W)?W.getListener(B,z,G,Y):W?(W=OZ(W))?W.getListener(B,z,G,Y):null:null};
zkR=function(W){return W in MFR?MFR[W]:MFR[W]="on"+W};
GFu=function(W,B){if(W.removed)W=!0;else{B=new _.j1(B,this);var z=W.listener,G=W.handler||W.src;W.callOnce&&OV(W);W=z.call(G,B)}return W};
OZ=function(W){W=W[UkU];return W instanceof sk?W:null};
dd4="__closure_events_fn_"+(Math.random()*1E9>>>0);R6R=function(W){if(typeof W==="function")return W;W[dd4]||(W[dd4]=function(B){return W.handleEvent(B)});
return W[dd4]};_.Ka=function(){_.bA.call(this);this.eventTargetListeners_=new sk(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.TC(_.Ka,_.bA);_.Ka.prototype[y6Q]=!0;_.p=_.Ka.prototype;_.p.setParentEventTarget=function(W){this.parentEventTarget_=W};
_.p.addEventListener=function(W,B,z,G){_.ug(this,W,B,z,G)};
_.p.removeEventListener=function(W,B,z,G){_.Xn(this,W,B,z,G)};
_.p.dispatchEvent=function(W){var B,z=this.parentEventTarget_;if(z)for(B=[];z;z=z.parentEventTarget_)B.push(z);z=this.actualEventTarget_;var G=W.type||W;if(typeof W==="string")W=new _.bK(W,z);else if(W instanceof _.bK)W.target=W.target||z;else{var Y=W;W=new _.bK(G,z);_.mP.extend(W,Y)}Y=!0;var d;if(B)for(d=B.length-1;!W.propagationStopped_&&d>=0;d--){var E=W.currentTarget=B[d];Y=pcU(E,G,!0,W)&&Y}W.propagationStopped_||(E=W.currentTarget=z,Y=pcU(E,G,!0,W)&&Y,W.propagationStopped_||(Y=pcU(E,G,!1,W)&&
Y));if(B)for(d=0;!W.propagationStopped_&&d<B.length;d++)E=W.currentTarget=B[d],Y=pcU(E,G,!1,W)&&Y;return Y};
_.p.disposeInternal=function(){_.Ka.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.p.listen=function(W,B,z,G){return this.eventTargetListeners_.add(String(W),B,!1,z,G)};
_.p.listenOnce=function(W,B,z,G){return this.eventTargetListeners_.add(String(W),B,!0,z,G)};
_.p.unlisten=function(W,B,z,G){return this.eventTargetListeners_.remove(String(W),B,z,G)};
_.p.removeAllListeners=function(W){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(W):0};
var pcU=function(W,B,z,G){B=W.eventTargetListeners_.listeners[String(B)];if(!B)return!0;B=B.concat();for(var Y=!0,d=0;d<B.length;++d){var E=B[d];if(E&&!E.removed&&E.capture==z){var v=E.listener,c=E.handler||E.src;E.callOnce&&LDQ(W.eventTargetListeners_,E);Y=v.call(c,G)!==!1&&Y}}return Y&&!G.defaultPrevented};
_.Ka.prototype.getListener=function(W,B,z,G){return this.eventTargetListeners_.getListener(String(W),B,z,G)};
_.Ka.prototype.hasListener=function(W,B){return this.eventTargetListeners_.hasListener(W!==void 0?String(W):void 0,B)};var uK=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(W){return W&&AsyncContext.Snapshot.wrap(W)}:function(W){return W};var Avd=function(W,B){this.create_=W;this.reset_=B;this.occupants_=0;this.JSC$9759_head_=null};
Avd.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var W=this.JSC$9759_head_;this.JSC$9759_head_=W.next;W.next=null}else W=this.create_();return W};
Avd.prototype.put=function(W){this.reset_(W);this.occupants_<100&&(this.occupants_++,W.next=this.JSC$9759_head_,this.JSC$9759_head_=W)};var i3Q=function(){this.workTail_=this.workHead_=null};
i3Q.prototype.add=function(W,B){var z=U6D.get();z.set(W,B);this.workTail_?this.workTail_.next=z:this.workHead_=z;this.workTail_=z};
i3Q.prototype.remove=function(){var W=null;this.workHead_&&(W=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),W.next=null);return W};
var U6D=new Avd(function(){return new EHH},function(W){return W.reset()}),EHH=function(){this.next=this.scope=this.fn=null};
EHH.prototype.set=function(W,B){this.fn=W;this.scope=B;this.next=null};
EHH.prototype.reset=function(){this.next=this.scope=this.fn=null};var T3H,MDR,Ldx,vH6;MDR=!1;Ldx=new i3Q;_.e1=function(W,B){T3H||vH6();MDR||(T3H(),MDR=!0);Ldx.add(W,B)};
vH6=function(){var W=Promise.resolve(void 0);T3H=function(){W.then(a5k)}};var cvH=function(W){W.prototype.$goog_Thenable=!0},wcu=function(W){if(!W)return!1;
try{return!!W.$goog_Thenable}catch(B){return!1}};var VwD,JvQ,gH7,s8U,PfM,Z3M,Cf9,hkM,b3D,FPQ,ZEv;_.Vx=function(W,B){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(W!=_.j7)try{var z=this;W.call(B,function(G){z.resolve_(2,G)},function(G){z.resolve_(3,G)})}catch(G){this.resolve_(3,G)}};
VwD=function(){this.next=this.context=this.JSC$9770_onRejected=this.JSC$9770_onFulfilled=this.child=null;this.always=!1};
VwD.prototype.reset=function(){this.context=this.JSC$9770_onRejected=this.JSC$9770_onFulfilled=this.child=null;this.always=!1};
JvQ=new Avd(function(){return new VwD},function(W){W.reset()});
gH7=function(W,B,z){var G=JvQ.get();G.JSC$9770_onFulfilled=W;G.JSC$9770_onRejected=B;G.context=z;return G};
_.gV=function(W){if(W instanceof _.Vx)return W;var B=new _.Vx(_.j7);B.resolve_(2,W);return B};
_.mR=function(W){return new _.Vx(function(B,z){z(W)})};
s8U=function(W,B,z){twD(W,B,z,null)||_.e1(_.Ci(B,W))};
_.ma=function(W){return new _.Vx(function(B,z){var G=W.length,Y=[];if(G)for(var d=function(J,g){G--;Y[J]=g;G==0&&B(Y)},E=function(J){z(J)},v,c=0;c<W.length;c++)v=W[c],s8U(v,_.Ci(d,c),E);
else B(Y)})};
PfM=function(W){return new _.Vx(function(B){var z=W.length,G=[];if(z)for(var Y=function(v,c,J){z--;G[v]=c?{fulfilled:!0,value:J}:{fulfilled:!1,reason:J};z==0&&B(G)},d,E=0;E<W.length;E++)d=W[E],s8U(d,_.Ci(Y,E,!0),_.Ci(Y,E,!1));
else B(G)})};
Z3M=function(W){return new _.Vx(function(B,z){var G=W.length,Y=[];if(G)for(var d=function(J){B(J)},E=function(J,g){G--;
Y[J]=g;G==0&&z(Y)},v,c=0;c<W.length;c++)v=W[c],s8U(v,d,_.Ci(E,c));
else B(void 0)})};
_.zN=function(){var W,B,z=new _.Vx(function(G,Y){W=G;B=Y});
return new rvH(z,W,B)};
_.Vx.prototype.then=function(W,B,z){return kFF(this,uK(typeof W==="function"?W:null),uK(typeof B==="function"?B:null),z)};
cvH(_.Vx);Cf9=function(W,B,z,G){le4(W,gH7(B||_.j7,z||null,G))};
_.xX=function(W,B){B=uK(B);B=gH7(B,B);B.always=!0;le4(W,B);return W};
_.Vx.prototype.finally=function(W){var B=this;W=uK(W);return new _.Vx(function(z,G){Cf9(B,function(Y){W();z(Y)},function(Y){W();
G(Y)})})};
_.Vx.prototype.thenCatch=function(W,B){return kFF(this,null,uK(W),B)};
_.Vx.prototype.catch=_.Vx.prototype.thenCatch;_.Vx.prototype.cancel=function(W){if(this.state_==0){var B=new _.qF(W);_.e1(function(){IeF(this,B)},this)}};
var IeF=function(W,B){if(W.state_==0)if(W.parent_){var z=W.parent_;if(z.callbackEntries_){for(var G=0,Y=null,d=null,E=z.callbackEntries_;E&&(E.always||(G++,E.child==W&&(Y=E),!(Y&&G>1)));E=E.next)Y||(d=E);Y&&(z.state_==0&&G==1?IeF(z,B):(d?(G=d,G.next==z.callbackEntriesTail_&&(z.callbackEntriesTail_=G),G.next=G.next.next):oHQ(z),hkM(z,Y,3,B)))}W.parent_=null}else W.resolve_(3,B)},le4=function(W,B){W.callbackEntries_||W.state_!=2&&W.state_!=3||H3u(W);
W.callbackEntriesTail_?W.callbackEntriesTail_.next=B:W.callbackEntries_=B;W.callbackEntriesTail_=B},kFF=function(W,B,z,G){var Y=gH7(null,null,null);
Y.child=new _.Vx(function(d,E){Y.JSC$9770_onFulfilled=B?function(v){try{var c=B.call(G,v);d(c)}catch(J){E(J)}}:d;
Y.JSC$9770_onRejected=z?function(v){try{var c=z.call(G,v);c===void 0&&v instanceof _.qF?E(v):d(c)}catch(J){E(J)}}:E});
Y.child.parent_=W;le4(W,Y);return Y.child};
_.Vx.prototype.unblockAndFulfill_=function(W){this.state_=0;this.resolve_(2,W)};
_.Vx.prototype.unblockAndReject_=function(W){this.state_=0;this.resolve_(3,W)};
_.Vx.prototype.resolve_=function(W,B){this.state_==0&&(this===B&&(W=3,B=new TypeError("xa")),this.state_=1,twD(B,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=B,this.state_=W,this.parent_=null,H3u(this),W!=3||B instanceof _.qF||FPQ(this,B)))};
var twD=function(W,B,z,G){if(W instanceof _.Vx)return Cf9(W,B,z,G),!0;if(wcu(W))return W.then(B,z,G),!0;if(_.$t(W))try{var Y=W.then;if(typeof Y==="function")return SYF(W,Y,B,z,G),!0}catch(d){return z.call(G,d),!0}return!1},SYF=function(W,B,z,G,Y){var d=!1,E=function(c){d||(d=!0,z.call(Y,c))},v=function(c){d||(d=!0,G.call(Y,c))};
try{B.call(W,E,v)}catch(c){v(c)}},H3u=function(W){W.executing_||(W.executing_=!0,_.e1(W.executeCallbacks_,W))},oHQ=function(W){var B=null;
W.callbackEntries_&&(B=W.callbackEntries_,W.callbackEntries_=B.next,B.next=null);W.callbackEntries_||(W.callbackEntriesTail_=null);return B};
_.Vx.prototype.executeCallbacks_=function(){for(var W;W=oHQ(this);)hkM(this,W,this.state_,this.result_);this.executing_=!1};
hkM=function(W,B,z,G){if(z==3&&B.JSC$9770_onRejected&&!B.always)for(;W&&W.hadUnhandledRejection_;W=W.parent_)W.hadUnhandledRejection_=!1;if(B.child)B.child.parent_=null,b3D(B,z,G);else try{B.always?B.JSC$9770_onFulfilled.call(B.context):b3D(B,z,G)}catch(Y){ZEv.call(null,Y)}JvQ.put(B)};
b3D=function(W,B,z){B==2?W.JSC$9770_onFulfilled.call(W.context,z):W.JSC$9770_onRejected&&W.JSC$9770_onRejected.call(W.context,z)};
FPQ=function(W,B){W.hadUnhandledRejection_=!0;_.e1(function(){W.hadUnhandledRejection_&&ZEv.call(null,B)})};
ZEv=dk;_.qF=function(W){_.zT.call(this,W)};
_.TC(_.qF,_.zT);_.qF.prototype.name="cancel";var rvH=function(W,B,z){this.promise=W;this.resolve=B;this.reject=z};var Dk;_.Eh=function(W,B){_.Ka.call(this);this.JSC$9782_interval_=W||1;this.timerObject_=B||_.Yt;this.boundTick_=(0,_.jk)(this.tick_,this);this.last_=_.EL()};
_.TC(_.Eh,_.Ka);_.p=_.Eh.prototype;_.p.enabled=!1;_.p.JSC$9784_timer_=null;_.p.setInterval=function(W){this.JSC$9782_interval_=W;this.JSC$9784_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9784_timer_&&this.stop()};
_.p.tick_=function(){if(this.enabled){var W=_.EL()-this.last_;W>0&&W<this.JSC$9782_interval_*.8?this.JSC$9784_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9782_interval_-W):(this.JSC$9784_timer_&&(this.timerObject_.clearTimeout(this.JSC$9784_timer_),this.JSC$9784_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.p.start=function(){this.enabled=!0;this.JSC$9784_timer_||(this.JSC$9784_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9782_interval_),this.last_=_.EL())};
_.p.stop=function(){this.enabled=!1;this.JSC$9784_timer_&&(this.timerObject_.clearTimeout(this.JSC$9784_timer_),this.JSC$9784_timer_=null)};
_.p.disposeInternal=function(){_.Eh.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Dk=function(W,B,z){if(typeof W==="function")z&&(W=(0,_.jk)(W,z));else if(W&&typeof W.handleEvent=="function")W=(0,_.jk)(W.handleEvent,W);else throw Error("ya");return Number(B)>2147483647?-1:_.Yt.setTimeout(W,B||0)};
_.j8M=function(W){var B=null;return(new _.Vx(function(z,G){B=Dk(function(){z(void 0)},W);
B==-1&&G(Error("za"))})).thenCatch(function(z){_.Yt.clearTimeout(B);
throw z;})};var kx=function(W){_.bA.call(this);this.streamzLogger=W;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9788_flushTimer=new _.Eh(this.flushInterval);this.JSC$9788_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.rH(this,this.JSC$9788_flushTimer)};
_.C(kx,_.bA);kx.prototype.sendIsolatedPayload=function(W){this.shouldSendIsolatedPayload=W;this.invocationLimit=1};
var fe6=function(W){W.JSC$9788_flushTimer.enabled||W.JSC$9788_flushTimer.start();W.invocationCount++;W.invocationCount>=W.invocationLimit&&W.snapshotAndFlush()};
kx.prototype.snapshotAndFlush=function(){var W=this.metricMap.values();W=[].concat(_.u7(W)).filter(function(B){return B.cellMap.size});
W.length&&this.streamzLogger.flush(W,this.shouldSendIsolatedPayload);O3D(W);this.invocationCount=0;this.JSC$9788_flushTimer.enabled&&this.JSC$9788_flushTimer.stop()};
kx.prototype.addNewCounter=function(W){var B=_.nm.apply(1,arguments);this.metricMap.has(W)||this.metricMap.set(W,new DkQ(W,B))};
kx.prototype.addNewEventMetric=function(W){var B=_.nm.apply(1,arguments);this.metricMap.has(W)||this.metricMap.set(W,new QRD(W,B))};
var XcD=function(W,B){return W.disabledMetrics.has(B)?void 0:W.metricMap.get(B)};
kx.prototype.JSC$9788_incrementCounter=function(W){this.JSC$9788_incrementCounterBy(W,1,_.nm.apply(1,arguments))};
kx.prototype.JSC$9788_incrementCounterBy=function(W,B){var z=_.nm.apply(2,arguments),G=XcD(this,W);G&&G instanceof DkQ&&(G.JSC$9727_incrementCounterBy(B,z),fe6(this))};
kx.prototype.record=function(W,B){var z=_.nm.apply(2,arguments),G=XcD(this,W);G&&G instanceof QRD&&(G.record(B,z),fe6(this))};
var O3D=function(W){for(var B=0;B<W.length;B++)W[B].clear()};_.Qy=function(W,B,z){z=z===void 0?{}:z;B=Error.call(this,B);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.code=W;this.metadata=z;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.C(_.Qy,Error);_.Qy.prototype.toString=function(){var W="RpcError("+(WHr(this.code)||String(this.code))+")";this.message&&(W+=": "+this.message);return W};_.KPF=_.Yt.JSON.parse;_.yy=_.Yt.JSON.stringify;_.ft=_.Yt.JSON.parse;_.uid=function(W){switch(W){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 ek7=function(W){switch(W){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var mdF,xdH=function(){};
_.TC(xdH,_.BOk);xdH.prototype.createInstance=function(){return new XMLHttpRequest};
mdF=new xdH;_.qI=function(W){_.Ka.call(this);this.headers=new Map;this.JSC$9797_xmlHttpFactory_=W||null;this.JSC$9797_active_=!1;this.JSC$9797_xhr_=null;this.JSC$9797_lastUri_="";this.JSC$9797_lastErrorCode_=0;this.JSC$9797_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9797_timeoutId_=null;this.responseType_="";this.JSC$9797_withCredentials_=!1};
_.TC(_.qI,_.Ka);var Dd4=/^https?$/i,Q8R=["POST","PUT"],yv4=[],oLD=function(W,B,z,G,Y,d,E){var v=new _.qI;yv4.push(v);B&&v.listen("complete",B);v.listenOnce("ready",v.cleanupSend_);d&&(v.timeoutInterval_=Math.max(0,d));E&&(v.JSC$9797_withCredentials_=E);v.send(W,z,G,Y)};
_.qI.prototype.cleanupSend_=function(){this.dispose();_.Dv(yv4,this)};
_.qI.prototype.send=function(W,B,z,G){if(this.JSC$9797_xhr_)throw Error("Aa`"+this.JSC$9797_lastUri_+"`"+W);B=B?B.toUpperCase():"GET";this.JSC$9797_lastUri_=W;this.JSC$9797_lastError_="";this.JSC$9797_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9797_active_=!0;this.JSC$9797_xhr_=this.createXhr();this.JSC$9797_xhr_.onreadystatechange=uK((0,_.jk)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9797_xhr_.open(B,String(W),!0),this.inOpen_=!1}catch(E){qY4(this,E);return}W=z||"";z=new Map(this.headers);
if(G)if(Object.getPrototypeOf(G)===Object.prototype)for(var Y in G)z.set(Y,G[Y]);else if(typeof G.keys==="function"&&typeof G.get==="function"){Y=_.A(G.keys());for(var d=Y.next();!d.done;d=Y.next())d=d.value,z.set(d,G.get(d))}else throw Error("Ba`"+String(G));G=Array.from(z.keys()).find(function(E){return"content-type"==E.toLowerCase()});
Y=_.Yt.FormData&&W instanceof _.Yt.FormData;!_.xt(Q8R,B)||G||Y||z.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");B=_.A(z);for(G=B.next();!G.done;G=B.next())z=_.A(G.value),G=z.next().value,z=z.next().value,this.JSC$9797_xhr_.setRequestHeader(G,z);this.responseType_&&(this.JSC$9797_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9797_xhr_&&this.JSC$9797_xhr_.withCredentials!==this.JSC$9797_withCredentials_&&(this.JSC$9797_xhr_.withCredentials=this.JSC$9797_withCredentials_);
try{this.JSC$9797_timeoutId_&&(clearTimeout(this.JSC$9797_timeoutId_),this.JSC$9797_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9797_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9797_xhr_.send(W),this.inSend_=!1}catch(E){qY4(this,E)}};
_.qI.prototype.createXhr=function(){return this.JSC$9797_xmlHttpFactory_?this.JSC$9797_xmlHttpFactory_.createInstance():mdF.createInstance()};
_.qI.prototype.timeout_=function(){typeof zTR!="undefined"&&this.JSC$9797_xhr_&&(this.JSC$9797_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9797_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var qY4=function(W,B){W.JSC$9797_active_=!1;W.JSC$9797_xhr_&&(W.inAbort_=!0,W.JSC$9797_xhr_.abort(),W.inAbort_=!1);W.JSC$9797_lastError_=B;W.JSC$9797_lastErrorCode_=5;nHR(W);N3u(W)},nHR=function(W){W.errorDispatched_||(W.errorDispatched_=!0,W.dispatchEvent("complete"),W.dispatchEvent("error"))};
_.qI.prototype.abort=function(W){this.JSC$9797_xhr_&&this.JSC$9797_active_&&(this.JSC$9797_active_=!1,this.inAbort_=!0,this.JSC$9797_xhr_.abort(),this.inAbort_=!1,this.JSC$9797_lastErrorCode_=W||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),N3u(this))};
_.qI.prototype.disposeInternal=function(){this.JSC$9797_xhr_&&(this.JSC$9797_active_&&(this.JSC$9797_active_=!1,this.inAbort_=!0,this.JSC$9797_xhr_.abort(),this.inAbort_=!1),N3u(this,!0));_.qI.superClass_.disposeInternal.call(this)};
_.qI.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)$dM(this);else this.onReadyStateChangeEntryPoint_()};
_.qI.prototype.onReadyStateChangeEntryPoint_=function(){$dM(this)};
var $dM=function(W){if(W.JSC$9797_active_&&typeof zTR!="undefined")if(W.inSend_&&_.na(W)==4)setTimeout(W.onReadyStateChange_.bind(W),0);else if(W.dispatchEvent("readystatechange"),W.isComplete()){W.JSC$9797_active_=!1;try{if(W.isSuccess())W.dispatchEvent("complete"),W.dispatchEvent("success");else{W.JSC$9797_lastErrorCode_=6;try{var B=_.na(W)>2?W.JSC$9797_xhr_.statusText:""}catch(z){B=""}W.JSC$9797_lastError_=B+" ["+W.getStatus()+"]";nHR(W)}}finally{N3u(W)}}},N3u=function(W,B){if(W.JSC$9797_xhr_){W.JSC$9797_timeoutId_&&
(clearTimeout(W.JSC$9797_timeoutId_),W.JSC$9797_timeoutId_=null);
var z=W.JSC$9797_xhr_;W.JSC$9797_xhr_=null;B||W.dispatchEvent("ready");try{z.onreadystatechange=null}catch(G){}}};
_.qI.prototype.isActive=function(){return!!this.JSC$9797_xhr_};
_.qI.prototype.isComplete=function(){return _.na(this)==4};
_.qI.prototype.isSuccess=function(){var W=this.getStatus(),B;if(!(B=ek7(W))){if(W=W===0)W=R1Q(String(this.JSC$9797_lastUri_)),W=!Dd4.test(W);B=W}return B};
_.na=function(W){return W.JSC$9797_xhr_?W.JSC$9797_xhr_.readyState:0};
_.p=_.qI.prototype;_.p.getStatus=function(){try{return _.na(this)>2?this.JSC$9797_xhr_.status:-1}catch(W){return-1}};
_.p.getResponseText=function(){try{return this.JSC$9797_xhr_?this.JSC$9797_xhr_.responseText:""}catch(W){return""}};
_.p.getResponse=function(){try{if(!this.JSC$9797_xhr_)return null;if("response"in this.JSC$9797_xhr_)return this.JSC$9797_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9797_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9797_xhr_)return this.JSC$9797_xhr_.mozResponseArrayBuffer}return null}catch(W){return null}};
_.p.getAllResponseHeaders=function(){return this.JSC$9797_xhr_&&_.na(this)>=2?this.JSC$9797_xhr_.getAllResponseHeaders()||"":""};
_.p.getLastError=function(){return typeof this.JSC$9797_lastError_==="string"?this.JSC$9797_lastError_:String(this.JSC$9797_lastError_)};var dnr=function(){};
dnr.prototype.send=function(W,B,z){B=B===void 0?function(){}:B;
z=z===void 0?function(){}:z;
oLD(W.url,function(G){G=G.target;G.isSuccess()?B(G.getResponseText()):z(G.getStatus())},W.requestType,W.body,W.requestHeaders,W.timeoutMillis,W.withCredentials)};
dnr.prototype.getTransmissionType=function(){return 1};var LPQ=function(W,B){this.b7j=W;this.event=B;this.startTime=lA()},v8y;
LPQ.prototype.done=function(){this.b7j.ak(this.event,lA()-this.startTime)};
var NI=function(){Po.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.C(NI,Po);_.$X=function(W,B,z){var G=lA();B=B();W.ak(z,lA()-G);return B};
v8y=function(){NI.apply(this,arguments)};
_.C(v8y,NI);_.p=v8y.prototype;_.p.etb=function(){};
_.p.bk=function(){};
_.p.ak=function(){};
_.p.logError=function(){};
_.p.xy=function(){};
_.p.nTZ=function(){};
_.p.kiZ=function(){};
_.p.i9X=function(){};
var Udu=function(W){NI.call(this);var B=this;this.zM=W;this.TEST_ONLY={bRv:function(){return B.zM},
getExperimentIds:function(){return B.zM.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void B.zM.dispose()})};
_.C(Udu,NI);_.p=Udu.prototype;_.p.update=function(W){this.zM.dispose();this.zM=W};
_.p.bk=function(W){this.zM.bk(W)};
_.p.ak=function(W,B){this.zM.ak(W,B)};
_.p.logError=function(W){this.zM.logError(W)};
_.p.xy=function(){this.zM.xy()};
_.p.nTZ=function(W){this.zM.nTZ(W)};
_.p.kiZ=function(W){this.zM.kiZ(W)};
_.p.i9X=function(W){this.zM.i9X(W)};
_.p.etb=function(W){this.zM.etb(W)};
var MwH=function(W,B){_.bA.call(this);var z=this;this.callback=W;this.lvI=B;this.gP5=-B;this.addOnDisposeCallback(function(){return void clearTimeout(z.timer)})};
_.C(MwH,_.bA);var aeH=function(W){if(W.timer===void 0){var B=Math.max(0,W.gP5+W.lvI-lA());W.timer=setTimeout(function(){try{W.callback()}finally{W.gP5=lA(),W.timer=void 0}},B)}},RkQ=function(W,B){NI.call(this);
this.metrics=W;this.dz=B};
_.C(RkQ,NI);_.p=RkQ.prototype;_.p.etb=function(W){this.metrics.qTy.record(W,this.dz)};
_.p.bk=function(W){this.metrics.eventCount.increment(W,this.dz)};
_.p.ak=function(W,B){this.metrics.zsV.record(B,W,this.dz)};
_.p.logError=function(W){this.metrics.errorCount.increment(W,this.dz)};
_.p.nTZ=function(W){this.metrics.pjH.increment(W,this.dz)};
_.p.kiZ=function(W){this.metrics.b1x.increment(W,this.dz)};
_.p.i9X=function(W){this.metrics.v3h.increment(W,this.dz)};
var cCr=function(W,B){B=B===void 0?[]:B;var z={dz:W.dz||"_",qus:W.qus||[],qYF:W.qYF|0,destinationUrl:W.destinationUrl,gIb:W.gIb||function(){},
ebq:W.ebq||function(d,E){return TOX(d,E,z.gIb,z.destinationUrl)}},G=z.ebq("51",z.qus.concat(B));
RkQ.call(this,{qTy:new OmM(G),errorCount:new em4(G),eventCount:new KFU(G),zsV:new uMQ(G),ubh:new XbH(G),pjH:new mZ6(G),b1x:new xZd(G),v3h:new DZu(G)},z.dz);var Y=this;this.TEST_ONLY={getExperimentIds:function(){return Y.options.qus.concat(Y.z1t).sort(function(d,E){return d-E})}};
this.options=z;this.service=G;this.r2q=!W.ebq;this.flushDebouncer=new MwH(function(){return void Y.service.snapshotAndFlush()},z.qYF);
this.addOnDisposeCallback(function(){Y.flushDebouncer.dispose();Y.r2q&&Y.service.dispose()});
(this.z1t=B.slice()).sort(_.h88)};
_.C(cCr,RkQ);cCr.prototype.xy=function(){aeH(this.flushDebouncer)};var zz0=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(zz0,_.iQ);_.Gb0=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(_.Gb0,_.iQ);var Lk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W,0,Lk.messageId)};
_.C(Lk,_.iQ);var WbD=_.xZR(Lk);Lk.messageId="bfkj";var uqu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(uqu,_.iQ);var BHH=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(BHH,_.iQ);var zfM=_.ro(BHH);_.sl=function(){var W=this;this.promise=new Promise(function(B,z){W.resolve=B;W.reject=z})};_.La=function(W){_.bA.call(this);var B=this;this.oNH=Math.floor(Math.random()*200);this.ngY=new BHH;if("challenge"in W&&WbD(W.challenge)){var z=_.KV(W.challenge,4,void 0,SR);var G=_.KV(W.challenge,5,void 0,SR);_.KV(W.challenge,7,void 0,SR)&&(this.ngY=zfM(_.KV(W.challenge,7,void 0,SR)))}else z=W.program,G=W.globalName;this.addOnDisposeCallback(function(){var l,b,O;return _.T(function(K){if(K.nextAddress==1)return K.yield(B.r9r,2);l=K.yieldResult;b=l.xng;(O=b)==null||O();_.HG(K)})});
this.xv=wSQ(W.iCq||{},this.ngY);_.rH(this,this.xv);var Y=new _.sl;this.r9r=Y.promise;this.xv.bk("t");var d=this.xv.share(),E=new LPQ(d,"t"),v=function(l,b,O,K){if(!B.xv.isDisposed()){var e="k";b?e="h":O&&(e="u");e!=="k"?K!==0&&(B.xv.bk(e),B.xv.ak(e,l)):B.oNH<=0?(B.xv.bk(e),B.xv.ak(e,l),B.oNH=Math.floor(Math.random()*200)):B.oNH--}},c=function(l,b,O,K){Promise.resolve().then(function(){E.done();
d.xy();d.dispose();Y.resolve({dp4:l,xng:b,yQA:O,sHe:K})})};
if(!_.Yt[G])throw this.xv.logError(25),Error("Ca");if(!_.Yt[G].a)throw this.xv.logError(26),Error("Da");try{var J=_.Yt[G].a;G=[];for(var g=[],t=e_X(this.ngY),P=0;P<t.length;P++)G.push(t[P]),g.push(1);var Z=m6X(this.ngY);for(t=0;t<Z.length;t++)G.push(Z[t]),g.push(2);this.cXf=_.A(J(z,c,!0,W.n7q,v,[G,g],_.KV(this.ngY,5))).next().value;this.aAZ=Y.promise.then(function(){})}catch(l){throw this.xv.logError(28),l;
}};
_.C(_.La,_.bA);_.La.prototype.snapshot=function(W){if(this.isDisposed())throw Error("Ea");this.xv.bk("n");var B=this.xv.share();return this.r9r.then(function(z){var G=z.dp4;return new Promise(function(Y){var d=new LPQ(B,"n");G(function(E){d.done();B.etb(E.length);B.xy();B.dispose();Y(E)},[W.ym,
W.f7X,W.vVm,W.myY])})})};
_.La.prototype.otC=function(W){this.r9r.then(function(B){var z;(z=B.yQA)==null||z(W)})};
_.La.prototype.bjq=function(W,B){return this.r9r.then(function(z){var G;return(G=z.sHe)==null?void 0:G(W,B,!1)})};
_.La.prototype.cxH=function(){return this.xv.share()};var GPD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(GPD,_.iQ);var itx=_.xZR(GPD);var Yk4=function(){this.promises={};this.kok=null},d5F=function(){Yk4.instance||(Yk4.instance=new Yk4);
return Yk4.instance},AID=function(W,B){return pC6(W,_.AD(B,zz0,1,SR),_.AD(B,_.Gb0,2,SR),_.KV(B,3,void 0,SR))},pC6=function(W,B,z,G){if(!B&&!z)return Promise.resolve();
if(!G)return sXX(B,z);var Y;(Y=W.promises)[G]||(Y[G]=new Promise(function(d,E){sXX(B,z).then(function(){W.kok=G;d()},function(v){delete W.promises[G];
E(v)})}));
return W.promises[G]};var ipU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(ipU,_.iQ);var ExM=function(W,B){return _.U_(W,1,B)},TH9=function(W,B){return _.U_(W,2,B)};var UZ=function(W){_.bA.call(this);var B=this;this.options=W;this.a7C=new _.sl;this.aAZ=this.a7C.promise;this.tZH=new _.sl;this.ktO=1;this.uUX=new _.sl;this.jrb=[];this.ejZ=W.ejZ||function(){};
this.zCZ=new Udu(wSQ(W.iCq||{}));vxR(this,W.xZ,W.laq,W.erA,W.ykN,Object.assign({},cId,W.ytY||{}));this.addOnDisposeCallback(function(){return void wCM(B)})};
_.C(UZ,_.bA);UZ.prototype.snapshot=function(W){var B=this;return _.T(function(z){switch(z.nextAddress){case 1:if(B.isDisposed())throw Error("Ea");if(B.lZ||B.rCF){z.jumpTo(2);break}return z.yield(B.tZH.promise,2);case 2:if(!B.lZ){z.jumpTo(4);break}return z.yield(B.lZ.snapshot(W),5);case 5:return z.return(z.yieldResult);case 4:throw B.rCF;}})};
var VkF=function(W){var B;return _.T(function(z){if(W.isDisposed())throw Error("Ea");(B=W.kD)!=null&&(B.endTimeMs=0,B.resolver(1));return z.yield(W.uUX.promise,0)})},wCM=function(W){W.rCF=Error("Ga");
W.tZH.resolve();x6X(W.a7C.promise);W.a7C.reject(Error("Ga"));W.zCZ.dispose();Promise.all(W.jrb).then(function(){var z;return _.T(function(G){(z=W.lZ)==null||z.dispose();W.lZ=void 0;_.HG(G)})});
W.jrb=[];var B;(B=W.kD)!=null&&(B.endTimeMs=0,B.resolver(1));x6X(W.uUX.promise);W.uUX.reject(Error("Ga"))};
UZ.prototype.otC=function(W){var B,z;(B=this.lZ)==null||(z=B.otC)==null||z.call(B,W)};
UZ.prototype.bjq=function(W,B){var z,G,Y;return(Y=(z=this.lZ)==null?void 0:(G=z.bjq)==null?void 0:G.call(z,W,B))!=null?Y:Promise.resolve()};
var JI6=function(W,B){var z=W.ejZ;W.ejZ=function(){z();B()}},gx7=function(W,B){W.isDisposed()||(W.lZ=B,W.zCZ.update(B.cxH()),W.tZH.resolve(),W.a7C.resolve(void 0),W.ejZ())};
UZ.prototype.handleError=function(W){if(!this.isDisposed()){this.rCF=W;this.tZH.resolve();var B,z;(z=(B=this.options).xHb)==null||z.call(B,W)}};
var tk9=function(W,B){B&&(Promise.all(W.jrb).then(function(){return void B.dispose()}),W.jrb=[])},MI=function(W,B){W.ktO=B;
var z,G;(G=(z=W.options).viN)==null||G.call(z,B)},s0U=function(W){W.isDisposed()||(W.uUX.resolve(),W.uUX=new _.sl)},vxR=function(W,B,z,G,Y,d){G=G===void 0?d5F():G;
Y=Y===void 0?Promise.resolve(void 0):Y;var E,v,c,J,g,t,P,Z,l,b,O,K;_.T(function(e){switch(e.nextAddress){case 1:return e.yield(0,3);case 3:v=null;if(!E){e.jumpTo(6);break}MI(W,7);_.kA(e,7);return e.yield(HC(E.snapshot({}),d.qy4,function(){return Promise.resolve("E:CTO")}),9);
case 9:v=e.yieldResult;_.Nn(e,6);break;case 7:_.h6(e),v="E:UCE";case 6:c=void 0,J=E?d.qje:d.fDI,g=new tI(J,d.es4,d.rsI,d.pke),t=1;case 10:if(!(t<=d.maxAttempts)){e.jumpTo(12);break}if(t===1){e.jumpTo(13);break}MI(W,0);W.kD=new PAD(g.getValue(),d.fje,d.ltx);return e.yield(W.kD.promise,14);case 14:P=e.yieldResult,W.kD=void 0,P===1?(t=1,g.reset()):S0F(g);case 13:_.kA(e,15);Z=void 0;if(z){Z=z;e.jumpTo(17);break}MI(W,5);l=G.kok;return e.yield(HC(Zp7(B,l,v),d.e07,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:Z=e.yieldResult;case 17:return MI(W,3),e.yield(HC(AID(G,Z),d.neq,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return MI(W,8),e.yield(Y,20);case 20:return b=new _.La({challenge:Z,iCq:W.options.iCq,n7q:W.options.n7q}),e.yield(HC(b.aAZ,d.wFH,function(){return Promise.reject(Error("Ja"))}),21);
case 21:c=b;e.jumpTo(12);break;case 15:O=_.h6(e),W.handleError(O),s0U(W);case 11:t++;e.jumpTo(10);break;case 12:if(W.isDisposed()){e.jumpTo(5);break}c&&(z=void 0,tk9(W,E),E=c,gx7(W,c),s0U(W));MI(W,2);W.kD=new PAD(d.gCK,d.fje,d.ltx);return e.yield(W.kD.promise,22);case 22:W.kD=void 0;if(W.isDisposed()){e.jumpTo(5);break}e.jumpTo(3);break;case 5:(K=E)==null||K.dispose(),_.HG(e)}})};
UZ.prototype.cxH=function(){return this.zCZ.share()};
var cId={gCK:432E5,fje:3E5,ltx:10,qy4:1E4,e07:3E4,neq:3E4,wFH:6E4,fDI:1E3,qje:6E4,es4:6E5,rsI:.25,pke:2,maxAttempts:10},PAD=function(W,B,z){var G=this;this.endTimeMs=Date.now()+W;this.promise=new Promise(function(d){G.resolver=d});
var Y=function(){var d=G.endTimeMs-Date.now();d<=z?G.resolver(0):setTimeout(Y,Math.min(d,B))};
Y()};var rI9,rCr=(rI9=Math.imul)!=null?rI9:function(W,B){return W*B|0},Fc=[196,
200,224,18],ar=function(W,B,z){z=z===void 0?[]:z;this.maxItems=W;this.iW=B===void 0?0:B;this.z1=z},kPU=function(W){var B=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!B)return new ar(W);var z=B.split(",");if(z.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new ar(W);B=z.slice(1);B.length===1&&B[0]===""&&(B=[]);z=Number(z[0]);return isNaN(z)||z<0||z>B.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new ar(W)):new ar(W,z,B)};
ar.prototype.serialize=function(){return String(this.iW)+","+this.z1.join()};
ar.prototype.insert=function(W,B){var z=void 0;if(this.z1[this.iW]!==W){var G=this.z1.indexOf(W);G!==-1?(this.z1.splice(G,1),G<this.iW&&this.iW--,this.z1.splice(this.iW,0,W)):(z=this.z1[this.iW],this.z1[this.iW]=W)}this.iW=(this.iW+1)%this.maxItems;W=POu("iU5q-!O9@$",this.serialize());z&&W&&B(z);return W};
var lGF=function(W,B){this.zcH=B;try{var z=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(G){z=!1}z&&(this.index=kPU(W))},CA6=function(W,B,z,G,Y){var d=W.index?_.$X(W.zcH,function(){return IoT(W.index,loR(B),z,G,Y)},"W"):"u";
W.zcH.i9X(d)},IGF=function(W,B,z){var G=_.A(W.index?_.$X(W.zcH,function(){return o8x(loR(B),z)},"R"):["u"]),Y=G.next().value;
G=G.next().value;W.zcH.kiZ(Y);return G};var oxH={toString:function(W){var B=[],z=0;W-=-2147483648;B[z++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(W%52);for(W=Math.floor(W/52);W>0;)B[z++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(W%62),W=Math.floor(W/62);return B.join("")}};var Fb6=function(W){W=hfu(W);for(var B=2654435769,z=2654435769,G=314159265,Y=W.length,d=Y,E=0,v=function(){B-=z;B-=G;B^=G>>>13;z-=G;z-=B;z^=B<<8;G-=B;G-=z;G^=z>>>13;B-=z;B-=G;B^=G>>>12;z-=G;z-=B;z^=B<<16;G-=B;G-=z;G^=z>>>5;B-=z;B-=G;B^=G>>>3;z-=G;z-=B;z^=B<<10;G-=B;G-=z;G^=z>>>15};d>=12;d-=12,E+=12)B+=HpM(W,E),z+=HpM(W,E+4),G+=HpM(W,E+8),v();
G+=Y;switch(d){case 11:G+=W[E+10]<<24;case 10:G+=W[E+9]<<16;case 9:G+=W[E+8]<<8;case 8:z+=W[E+7]<<24;case 7:z+=W[E+6]<<16;case 6:z+=W[E+5]<<8;case 5:z+=W[E+4];case 4:B+=W[E+3]<<24;case 3:B+=W[E+2]<<16;case 2:B+=W[E+1]<<8;case 1:B+=W[E]}v();return oxH.toString(G)},hfu=function(W){for(var B=[],z=0;z<W.length;z++)B.push(W.charCodeAt(z));
return B},HpM=function(W,B){return W[B]+(W[B+1]<<8)+(W[B+2]<<16)+(W[B+3]<<24)};var Rr=function(W){_.bA.call(this);this.wu=W;this.cRJ=new _.sl};
_.C(Rr,_.bA);var Sk7=function(W,B){var z=setTimeout(function(){W.cRJ.resolve()},B);
W.addOnDisposeCallback(function(){return void clearTimeout(z)})};
Rr.prototype.nbX=function(W,B){var z=this.hw(W);B==null||B(z);return _.$X(this.wu,function(){return _.Ob(z,2)},this.pKq)};
var bpD=function(W,B,z,G){return _.$X(W.wu,function(){return z?W.nbX(B,G):W.hw(B,G)},W.zHc)},j0R=function(W,B,z,G){Rr.call(this,W);
this.dxj=B;this.bbU=z;this.zHc="m";this.pKq="x";this.jOK=0;Sk7(this,G)};
_.C(j0R,Rr);j0R.prototype.hw=function(W,B){var z=this;this.wu.bk(this.zHc);++this.jOK>=this.bbU&&this.cRJ.resolve();var G=W();W=_.$X(this.wu,function(){return z.dxj(G)},"C");
if(W===void 0)throw new tG(17,"YNJ:Undefined");if(!(W instanceof Uint8Array))throw new tG(18,"ODM:Invalid");B==null||B(W);return W};
var fG4=function(W,B,z){Rr.call(this,W);this.p5I=B;this.zHc="f";this.pKq="z";Sk7(this,z)};
_.C(fG4,Rr);fG4.prototype.hw=function(){return this.p5I};
var OpT=function(W,B,z){Rr.call(this,W);this.qTq=B;this.zHc="w";this.pKq="z";Sk7(this,z)};
_.C(OpT,Rr);OpT.prototype.hw=function(){var W=this;return _.$X(this.wu,function(){return _.aD(W.qTq)},"d")};
OpT.prototype.nbX=function(){return this.qTq};
var XC4=function(W,B){Rr.call(this,W);this.error=B;this.zHc="e";this.pKq="y"};
_.C(XC4,Rr);var KbF=function(W,B){var z=(B(W.error.message)+":"+B(W.error.stack)).substring(0,2048);B=z.length+1;z=ht0(z);var G=new Uint8Array(4+z.length);G.set([42,B&127|128,B>>7,W.error.code]);G.set(z,4);return G};
XC4.prototype.hw=function(){if(this.rsK)return this.rsK;this.rsK=KbF(this,function(W){return"_"+Fb6(W)});
return KbF(this,function(W){return W})};
var ucu=function(W,B,z){Rr.call(this,W);this.brz=B;this.clientState=z;this.zHc="S";this.pKq="q"};
_.C(ucu,Rr);ucu.prototype.hw=function(){var W=Math.floor(Date.now()/1E3),B=[Math.random()*255,Math.random()*255],z=B.concat([this.brz&255,this.clientState],[W>>24&255,W>>16&255,W>>8&255,W&255]);W=new Uint8Array(2+z.length);W[0]=34;W[1]=z.length;W.set(z,2);z=W.subarray(2);for(var G=B=B.length;G<z.length;++G)z[G]^=z[G%B];this.wu.nTZ(this.clientState);return W};var efM={k6I:3E4,fgH:2E4},Wr=function(W){_.bA.call(this);var B=this;this.pUs=new _.sl;this.dHB=0;this.gB=void 0;this.state=2;this.vm=W.vm;this.xZ=W.xZ;this.ytY=Object.assign({},efM,W.ytY||{});this.w3=W.vm.cxH();var z;this.onError=(z=W.onError)!=null?z:function(){};
this.t2u=W.t2u||!1;if(m5d(W)){var G=this.vm;this.pQB=function(){return VkF(G).catch(function(E){E=B.reportError(new tG(B.r3?20:32,"TRG:Disposed",E));B.gB=E;var v;(v=B.r3)==null||v.dispose();B.r3=void 0;B.pUs.reject(E)})};
JI6(G,function(){return void x5U(B)});
G.ktO===2&&x5U(this)}else this.pQB=W.xib,x5U(this);var Y=this.w3.share();Y.bk("o");var d=new LPQ(Y,"o");this.pUs.promise.then(function(){d.done();Y.xy();Y.dispose()},function(){return void Y.dispose()});
this.addOnDisposeCallback(function(){B.r3?(B.r3.dispose(),B.r3=void 0):B.gB?B.w3.xy():(B.gB=B.reportError(new tG(32,"TNP:Disposed")),B.w3.xy(),B.pUs.reject(B.gB))});
_.rH(this,this.w3)};
_.C(Wr,_.bA);Wr.prototype.ctb=function(){return this.pUs.promise};
var D5R=function(W,B){if(!(B instanceof tG))if(B instanceof _.Qy){var z=Error(B.toString());z.stack=B.stack;B=new tG(11,"EBH:Error",z)}else B=new tG(12,"BSO:Unknown",B);return W.reportError(B)},x5U=function(W){var B,z,G,Y,d,E,v,c,J,g,t,P,Z,l,b;
return _.T(function(O){switch(O.nextAddress){case 1:B=void 0;W.dHB++;z=new _.sl;W.vm instanceof UZ&&W.vm.jrb.push(z.promise);if(!W.t2u){O.jumpTo(2);break}G=new _.sl;setTimeout(function(){return void G.resolve()});
return O.yield(G.promise,2);case 2:return Y=W.w3.share(),_.kA(O,4,5),W.state=5,d={},E=[],O.yield(HC(W.vm.snapshot({ym:d,vVm:E}),W.ytY.fgH,function(){return Promise.reject(new tG(15,"MDA:Timeout"))}),7);
case 7:v=O.yieldResult;if(W.isDisposed())throw new tG(W.r3?20:32,"MDA:Disposed");c=E[0];W.state=6;return O.yield(HC(Q04(W.xZ,v),W.ytY.k6I,function(){return Promise.reject(new tG(10,"BWB:Timeout"))}),8);
case 8:J=O.yieldResult;if(W.isDisposed())throw new tG(W.r3?20:32,"BWB:Disposed");W.state=7;B=_.$X(Y,function(){var e=yIU(W,J,z,c);e.cRJ.promise.then(function(){return void W.pQB()});
return e},"i");
case 5:_.CN(O);Y.dispose();_.oR(O,6);break;case 4:g=_.h6(O);(t=B)==null||t.dispose();if(!W.gB){P=D5R(W,g);z.resolve();var K;if(K=W.vm instanceof UZ&&W.dHB<2)a:if(g instanceof tG)K=g.code!==32&&g.code!==20&&g.code!==10;else{if(g instanceof _.Qy)switch(g.code){case 2:case 13:case 14:case 4:break;default:K=!1;break a}K=!0}if(K)return Z=(1+Math.random()*.25)*(W.r3?6E4:1E3),l=setTimeout(function(){return void W.pQB()},Z),W.addOnDisposeCallback(function(){return void clearTimeout(l)}),O.return();
W.gB=P}Y.logError(W.r3?13:14);W.pUs.reject(W.gB);return O.return();case 6:W.state=8,W.dHB=0,(b=W.r3)==null||b.dispose(),W.r3=B,W.pUs.resolve(),_.HG(O)}})},yIU=function(W,B,z,G){var Y=lmQ(B,2)*1E3;
if(Y<=0)throw new tG(31,"TTM:Invalid");if(_.KV(B,4))return new OpT(W.w3,_.KV(B,4),Y);if(!lmQ(B,3))return new fG4(W.w3,puR(_.hs(B,1)),Y);if(!G)throw new tG(4,"PMD:Undefined");G=G(puR(_.hs(B,1)));if(!(G instanceof Function))throw new tG(16,"APF:Failed");W.e17=Math.floor((Date.now()+Y)/1E3);W=new j0R(W.w3,G,lmQ(B,3),Y);W.addOnDisposeCallback(function(){return void z.resolve()});
return W};
Wr.prototype.hw=function(W){return qkU(this,Object.assign({},W),!1)};
Wr.prototype.nbX=function(W){return qkU(this,Object.assign({},W),!0)};
Wr.prototype.blb=function(W){if(W>150)return!1;try{return this.cache=new lGF(W,this.w3),!0}catch(B){return this.reportError(new tG(22,"GBJ:init",B)),!1}};
Wr.prototype.reportError=function(W){this.w3.logError(W.code);this.onError(W);return W};
var nxT=function(W,B){B=B instanceof tG?B:new tG(5,"TVD:error",B);return W.reportError(B)},qkU=function(W,B,z){try{if(W.isDisposed())throw new tG(21,"BNT:disposed");
if(!W.r3&&W.gB)throw W.gB;var G,Y;return(Y=(G=NHu(W,B,z))!=null?G:$5U(W,B,z))!=null?Y:LbF(W,B,z)}catch(d){if(!B.txB)throw nxT(W,d);return U5Q(W,z,d)}},NHu=function(W,B,z){var G;
return(G=W.r3)==null?void 0:bpD(G,function(){return MkD(W,B)},z,function(Y){var d;
if(W.r3 instanceof j0R&&((d=B.un)==null?0:d.gvI))try{var E;(E=W.cache)==null||CA6(E,MkD(W,B),Y,B.un.vzX,W.e17-120)}catch(v){W.reportError(new tG(24,"ELX:write",v))}})},$5U=function(W,B,z){var G;
if((G=B.un)!=null&&G.pLB)try{var Y,d=(Y=W.cache)==null?void 0:IGF(Y,MkD(W,B),B.un.vzX);return d?z?_.$X(W.w3,function(){return _.Ob(d,2)},"a"):d:void 0}catch(E){W.reportError(new tG(23,"RXO:read",E))}},LbF=function(W,B,z){var G={stack:[],
error:void 0,hasError:!1};try{if(!B.s1k)throw new tG(29,"SDF:notready");return bpD(iTx(G,new ucu(W.w3,0,W.state)),function(){return MkD(W,B)},z)}catch(Y){G.error=Y,G.hasError=!0}finally{ESR(G)}},U5Q=function(W,B,z){var G={stack:[],
error:void 0,hasError:!1};try{var Y=nxT(W,z);return bpD(iTx(G,new XC4(W.w3,Y)),function(){return[]},B)}catch(d){G.error=d,G.hasError=!0}finally{ESR(G)}},MkD=function(W,B){return B.bEW?B.bEW:B.ym?_.$X(W.w3,function(){return B.bEW=ht0(B.ym)},"c"):[]},m5d=function(W){return f7(function(B){if(!Ed(B))return!1;
for(var z=_.A(Object.entries(W)),G=z.next();!G.done;G=z.next()){var Y=_.A(G.value);G=Y.next().value;Y=Y.next().value;if(!(G in B)){if(Y.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!Y(B[G]))return!1}return!0})}({vm:function(W){return f7(function(B){return B instanceof W})}(UZ)},"");var aG9=function(){var W=_.VL();this.JSC$9915_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",wH("cookie_enabled"),wH("cookie_3p_enabled"),_.JI("browser"))};
aG9.prototype.increment=function(W,B,z){this.JSC$9915_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",W,B,z)};
var NJ0=function(){var W=_.VL();this.JSC$9939_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",VJ("tick"),wH("from_st_cookie"))};
NJ0.prototype.increment=function(W,B){this.JSC$9939_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",W,B)};
var Rfu=function(){var W=_.VL();this.JSC$9945_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.JI("status"))};
Rfu.prototype.increment=function(W){this.JSC$9945_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",W)};
var W67=function(){var W=_.VL();this.JSC$9948_streamzService=W;W.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.JI("stage"),wH("is_using_ytd_player"),wH("has_expandable_tiles"))};
W67.prototype.increment=function(W,B,z){this.JSC$9948_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",W,B,z)};
var B4R=function(){var W=_.VL();this.JSC$9951_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/response_signature",_.JI("check_status"))};
B4R.prototype.increment=function(W){this.JSC$9951_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/response_signature",W)};
var zoR=function(){var W=_.VL();this.JSC$9954_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.JI("sig"),VJ("de"))};
zoR.prototype.increment=function(W,B){this.JSC$9954_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/e_sig_log",W,B)};
var GtT=function(){var W=_.VL();this.JSC$9957_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.JI("sig"),VJ("de"))};
GtT.prototype.increment=function(W,B){this.JSC$9957_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/e_sig_en",W,B)};
_.YdF=function(){var W=_.VL();this.JSC$9960_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.JI("action"))};
_.YdF.prototype.increment=function(W){this.JSC$9960_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/enforcement_intent",W)};var Br=window;var dw7=(new Date).getTime();_.mP.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.mP.createSet("action","cite","data","formaction","href","manifest","poster","src");var p5F=function(W){this.servicePromise_=W;W.then((0,_.jk)(function(){},this),function(){},this)},AyQ=function(W,B,z){W.servicePromise_.then(function(G){var Y=G[B];
if(!Y)throw Error("Ka`"+B);return Y.apply(G,z)})},T4M=function(W,B,z){for(var G=Array(arguments.length-2),Y=2;Y<arguments.length;Y++)G[Y-2]=arguments[Y];
Y=iRQ(W,B).then(function(d){return d.apply(null,G)},function(d){d=Error("La`"+B+"`"+W,{cause:d});
delete E$D[B];return _.mR(d)});
return new p5F(Y)},E$D={},iRQ=function(W,B){var z=E$D[B];
if(z)return z;z=(z=_.q6(B))?_.gV(z):(new _.Vx(function(G,Y){var d=(new uL(document)).createElement("SCRIPT");d.async=!0;_.pN(d,_.bQ(dfM(W)));d.onload=d.onreadystatechange=function(){d.readyState&&d.readyState!="loaded"&&d.readyState!="complete"||G()};
d.onerror=function(E){Y(Error("Ma`"+B+"`"+W,{cause:E}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(d)})).then(function(){var G=_.q6(B);
if(!G)throw Error("Na`"+B+"`"+W);return G});
return E$D[B]=z};var v$H={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},w54=function(){var W=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=H4u(function(){return _.T(function(B){if(B.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?B.return(Promise.resolve()):B.yield(cyQ(W),2);W.rsaForList.length>
0&&document.addEventListener("click",W.requestAccessForHelpPanel);_.HG(B)})});
this.requestAccessForHelpPanel=function(){if(!(W.rsaForPromises.length>0)){for(var B=_.A(W.rsaForList),z=B.next();!z.done;z=B.next()){z=z.value;try{W.rsaForPromises.push(document.requestStorageAccessFor(z))}catch(G){}}Promise.all(W.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){W.reset()})}}};
w54.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var cyQ=function(W){var B,z,G,Y;return _.T(function(d){switch(d.nextAddress){case 1:B=_.A(Object.values(v$H)),z=B.next();case 2:if(z.done){d.jumpTo(0);break}G=z.value;_.kA(d,5);return d.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:G}),7);case 7:Y=d.yieldResult;Y.state!=="granted"&&W.rsaForList.push(G);_.Nn(d,3);break;case 5:_.h6(d);d.jumpTo(0);break;case 3:z=B.next(),d.jumpTo(2)}})};(new w54).initialize();var VaR=function(W){this.JSC$9974_loader_=W};
VaR.prototype.startHelp=function(W){AyQ(this.JSC$9974_loader_,"startHelp",arguments)};
VaR.prototype.JSC$9976_loadChatSupport=function(W){AyQ(this.JSC$9974_loader_,"loadChatSupport",arguments)};
var g$4=function(W,B){B=B||{};W=T4M(JyT,"help.service.Lazy.create",W,{apiKey:B.apiKey||B.apiKey,asxUiUri:B.asxUiUri||B.asxUiUri,environment:B.environment||B.environment,flow:B.flow||B.flow,frdProductData:B.frdProductData||B.frdProductData,frdProductDataSerializedJspb:B.frdProductDataSerializedJspb||B.frdProductDataSerializedJspb,helpCenterPath:B.helpCenterPath||B.helpCenterPath,locale:B.locale||B.locale||"en-US".replace(/-/g,"_"),nonce:B.nonce||B.nonce,productData:B.productData||B.productData,receiverUri:B.receiverUri||
B.receiverUri,renderApiUri:B.renderApiUri||B.renderApiUri,theme:B.theme||B.theme,window:B.window||B.window});return new VaR(W)},JyT=new KG(fp0,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var tau=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(tau,_.iQ);var swT=_.ro(tau);var PE7=[0,_.dw,RO,v9t];_.ZRR=new function(W,B,z,G){this.configType=W;this.flagName=z;this.defaultValue=G;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 ktR=function(){this.retriever=_.dO().resolve(ryu)};SAv(Node);SAv(Element);var lI6=SAv(HTMLElement);SAv(SVGElement);var CED,II6,dd,o$R;CED=function(W){return typeof W.className=="string"?W.className:W.getAttribute&&W.getAttribute("class")||""};
II6=function(W){return W.classList?W.classList:CED(W).match(/\S+/g)||[]};
_.z2=function(W,B){typeof W.className=="string"?W.className=B:W.setAttribute&&W.setAttribute("class",B)};
_.Yc=function(W,B){return W.classList?W.classList.contains(B):_.xt(II6(W),B)};
_.Ev=function(W,B){if(W.classList)W.classList.add(B);else if(!_.Yc(W,B)){var z=CED(W);_.z2(W,z+(z.length>0?" "+B:B))}};
dd=function(W,B){if(W.classList)Array.prototype.forEach.call(B,function(Y){_.Ev(W,Y)});
else{var z={};Array.prototype.forEach.call(II6(W),function(Y){z[Y]=!0});
Array.prototype.forEach.call(B,function(Y){z[Y]=!0});
B="";for(var G in z)B+=B.length>0?" "+G:G;_.z2(W,B)}};
_.AY=function(W,B){W.classList?W.classList.remove(B):_.Yc(W,B)&&_.z2(W,Array.prototype.filter.call(II6(W),function(z){return z!=B}).join(" "))};
o$R=function(W,B){W.classList?Array.prototype.forEach.call(B,function(z){_.AY(W,z)}):_.z2(W,Array.prototype.filter.call(II6(W),function(z){return!_.xt(B,z)}).join(" "))};var ho6=function(W){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=W.document},SdU=function(W,B){HRU(W);
var z=document.createElement("div"),G;(G=B.parentNode)==null||G.insertBefore(z,B);z.tabIndex=0;z.id="fc-focus-trap-pre-div";z=document.createElement("div");var Y;(Y=B.parentNode)==null||Y.insertBefore(z,B.nextSibling);z.tabIndex=0;z.id="fc-focus-trap-post-div";var d=F6H(W,B),E=F6H(W,B,!0);d&&E&&(W.focusChangeHandler=function(){var v=W.document.activeElement;if(v)if(_.N5(B,v))W.previouslyFocusedElement=v;else if(v===W.document.activeElement)switch(W.previouslyFocusedElement){case d:E.focus();W.previouslyFocusedElement=
E;break;default:d.focus(),W.previouslyFocusedElement=d}},W.document.addEventListener("focus",W.focusChangeHandler,!0),W.document.addEventListener("focusin",W.focusChangeHandler))},HRU=function(W){W.focusChangeHandler&&(document.removeEventListener("focus",W.focusChangeHandler,!0),document.removeEventListener("focusin",W.focusChangeHandler),W.focusChangeHandler=null);
var B;(B=document.getElementById("fc-focus-trap-pre-div"))==null||B.remove();var z;(z=document.getElementById("fc-focus-trap-post-div"))==null||z.remove()},bRF=function(W,B,z,G,Y){z=z===void 0?!0:z;
var d;Y=(d=Y===void 0?null:Y)!=null?d:F6H(W,B,G===void 0?!1:G);Y!==null&&(Y.focus(),z&&SdU(W,B))};
ho6.prototype.disableButton=function(W,B){B=B===void 0?null:B;W.disabled=!0;B&&_.Ev(W,B)};
var F6H=function(W,B,z){z=z===void 0?!1:z;if(Rqt(B)&&!z)return B;var G=z?[].slice.call(B.children,0).reverse():B.children;G=_.A(G);for(var Y=G.next();!Y.done;Y=G.next())if(Y=Y.value,lI6(Y)&&(Y=F6H(W,Y,z)))return Y;return Rqt(B)&&z?B:null};var jwd=function(W){this.originalBodyOverflow="";this.JSC$10000_domHelper=bf(W)};
jwd.prototype.enableScrolling=function(){this.JSC$10000_domHelper.JSC$9327_document_.body.style.overflow=this.originalBodyOverflow};_.TC(_.fp,_.bA);_.p=_.fp.prototype;_.p.JSC$10003_id_=0;_.p.disposeInternal=function(){_.fp.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10001_listener_;delete this.handler_};
_.p.start=function(W){this.stop();this.JSC$10003_id_=Dk(this.callback_,W!==void 0?W:this.JSC$10001_interval_)};
_.p.stop=function(){this.isActive()&&_.Yt.clearTimeout(this.JSC$10003_id_);this.JSC$10003_id_=0};
_.p.fire=function(){this.stop();this.JSC$10003_doAction_()};
_.p.isActive=function(){return this.JSC$10003_id_!=0};
_.p.JSC$10003_doAction_=function(){this.JSC$10003_id_=0;this.JSC$10001_listener_&&this.JSC$10001_listener_.call(this.handler_)};_.T5=function(W){_.bA.call(this);this.handler_=W;this.JSC$10004_keys_={}};
_.TC(_.T5,_.bA);var fI7=[];_.T5.prototype.listen=function(W,B,z,G){Array.isArray(B)||(B&&(fI7[0]=B.toString()),B=fI7);for(var Y=0;Y<B.length;Y++){var d=_.ug(W,B[Y],z||this.handleEvent,G||!1,this.handler_||this);if(!d)break;this.JSC$10004_keys_[d.key]=d}return this};
_.T5.prototype.listenOnce=function(W,B,z,G){return ORR(this,W,B,z,G)};
var ORR=function(W,B,z,G,Y,d){if(Array.isArray(z))for(var E=0;E<z.length;E++)ORR(W,B,z[E],G,Y,d);else{B=f8(B,z,G||W.handleEvent,Y,d||W.handler_||W);if(!B)return W;W.JSC$10004_keys_[B.key]=B}return W};
_.T5.prototype.unlisten=function(W,B,z,G,Y){if(Array.isArray(B))for(var d=0;d<B.length;d++)this.unlisten(W,B[d],z,G,Y);else if(W=YYU(W,B,z||this.handleEvent,_.$t(G)?!!G.capture:!!G,Y||this.handler_||this))OV(W),delete this.JSC$10004_keys_[W.key];return this};
_.T5.prototype.removeAll=function(){_.mP.forEach(this.JSC$10004_keys_,function(W,B){this.JSC$10004_keys_.hasOwnProperty(B)&&OV(W)},this);
this.JSC$10004_keys_={}};
_.T5.prototype.disposeInternal=function(){_.T5.superClass_.disposeInternal.call(this);this.removeAll()};
_.T5.prototype.handleEvent=function(){throw Error("Oa");};var p_=function(){_.bA.call(this);this.services_={}};
_.TC(p_,_.bA);p_.prototype.connect=function(W){W&&W()};
p_.prototype.isConnected=function(){return!0};
p_.prototype.registerService=function(W,B,z){this.services_[W]={callback:B,objectPayload:!!z}};
p_.prototype.getService=function(W,B){var z=this.services_[W];return z?z:this.defaultService_?{callback:_.Ci(this.defaultService_,W),objectPayload:_.$t(B)}:null};
var X5H=function(W,B){if(B&&typeof W==="string")try{return JSON.parse(W)}catch(z){return null}else if(!B&&typeof W!=="string")return(0,_.yy)(W);return W};
p_.prototype.disposeInternal=function(){p_.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 A4=function(W,B){this.sequence_=[];this.onCancelFunction_=W;this.defaultScope_=B||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};
A4.prototype.cancel=function(W){if(this.fired_)this.result_ instanceof A4&&this.result_.cancel();else{if(this.parent_){var B=this.parent_;delete this.parent_;W?B.cancel(W):(B.branches_--,B.branches_<=0&&B.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new i_(this))}};
A4.prototype.continue_=function(W,B){this.blocked_=!1;K6H(this,W,B)};
var K6H=function(W,B,z){W.fired_=!0;W.result_=z;W.hadError_=!B;uA7(W)},mwU=function(W){if(W.fired_){if(!W.silentlyCanceled_)throw new eo9(W);
W.silentlyCanceled_=!1}};
A4.prototype.callback=function(W){mwU(this);K6H(this,!0,W)};
A4.prototype.errback=function(W){mwU(this);K6H(this,!1,W)};
var xwM=function(W,B,z){E5(W,B,null,z)};
A4.prototype.finally=function(W){var B=this;return DwR(new Promise(function(z,G){E5(B,function(Y){W();z(Y)},function(Y){W();
G(Y)})}))};
var E5=function(W,B,z,G){var Y=W.fired_;Y||(B===z?B=z=uK(B):(B=uK(B),z=uK(z)));W.sequence_.push([B,z,G]);Y&&uA7(W)};
A4.prototype.then=function(W,B,z){var G,Y,d=new _.Vx(function(E,v){Y=E;G=v});
E5(this,Y,function(E){E instanceof i_?d.cancel():G(E);return QwT},this);
return d.then(W,B,z)};
cvH(A4);var yyR=function(W,B){B instanceof A4?xwM(W,(0,_.jk)(B.branch,B)):xwM(W,function(){return B})};
A4.prototype.branch=function(W){var B=new A4;E5(this,B.callback,B.errback,B);W&&(B.parent_=this,this.branches_++);return B};
A4.prototype.isError=function(W){return W instanceof Error};
var qdu=function(W){return $b(W.sequence_,function(B){return typeof B[1]==="function"})},QwT={},uA7=function(W){if(W.unhandledErrorId_&&W.fired_&&qdu(W)){var B=W.unhandledErrorId_,z=n$D[B];
z&&(_.Yt.clearTimeout(z.JSC$10021_id_),delete n$D[B]);W.unhandledErrorId_=0}W.parent_&&(W.parent_.branches_--,delete W.parent_);B=W.result_;for(var G=z=!1;W.sequence_.length&&!W.blocked_;){var Y=W.sequence_.shift(),d=Y[0],E=Y[1];Y=Y[2];if(d=W.hadError_?E:d)try{var v=d.call(Y||W.defaultScope_,B);v===QwT&&(v=void 0);v!==void 0&&(W.hadError_=W.hadError_&&(v==B||W.isError(v)),W.result_=B=v);if(wcu(B)||typeof _.Yt.Promise==="function"&&B instanceof _.Yt.Promise)G=!0,W.blocked_=!0}catch(c){B=c,W.hadError_=
!0,qdu(W)||(z=!0)}}W.result_=B;G&&(v=(0,_.jk)(W.continue_,W,!0),G=(0,_.jk)(W.continue_,W,!1),B instanceof A4?(E5(B,v,G),B.blocking_=!0):B.then(v,G));z&&(B=new N4H(B),n$D[B.JSC$10021_id_]=B,W.unhandledErrorId_=B.JSC$10021_id_)},DwR=function(W){var B=new A4;
W.then(function(z){B.callback(z)},function(z){B.errback(z)});
return B},eo9=function(){_.zT.call(this)};
_.TC(eo9,_.zT);eo9.prototype.message="Deferred has already fired";eo9.prototype.name="AlreadyCalledError";var i_=function(){_.zT.call(this)};
_.TC(i_,_.zT);i_.prototype.message="Deferred was canceled";i_.prototype.name="CanceledError";var N4H=function(W){this.JSC$10021_id_=_.Yt.setTimeout((0,_.jk)(this.throwError,this),0);this.JSC$10021_error_=W};
N4H.prototype.throwError=function(){delete n$D[this.JSC$10021_id_];throw this.JSC$10021_error_;};
var n$D={};var $wd={1:"NativeMessagingTransport"},L6D=["pu","lru","pru","lpu","ppu"],MaF=function(){for(var W=10,B=Uw6,z=B.length,G="";W-- >0;)G+=B.charAt(Math.floor(Math.random()*z));return G},Uw6="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var T2=function(W){_.bA.call(this);this.JSC$10024_domHelper_=W||bf()};
_.TC(T2,_.bA);T2.prototype.transportType=0;T2.prototype.getWindow=function(){return this.JSC$10024_domHelper_.getWindow()};
T2.prototype.getName=function(){return $wd[String(this.transportType)]||""};var vr=function(W,B,z,G,Y){T2.call(this,z);this.JSC$10027_channel_=W;this.protocolVersion_=Y||2;this.peerHostname_=B||"*";this.JSC$10027_eventHandler_=new _.T5(this);this.maybeAttemptToConnectTimer_=new _.Eh(100,this.getWindow());this.oneSidedHandshake_=!!G;this.setupAckReceived_=new A4;this.setupAckSent_=new A4;this.JSC$10027_connected_=new A4;this.endpointId_=MaF();this.peerEndpointId_=null;this.oneSidedHandshake_?aIQ(this.JSC$10027_channel_)==1?yyR(this.JSC$10027_connected_,this.setupAckReceived_):
yyR(this.JSC$10027_connected_,this.setupAckSent_):(yyR(this.JSC$10027_connected_,this.setupAckReceived_),this.protocolVersion_==2&&yyR(this.JSC$10027_connected_,this.setupAckSent_));xwM(this.JSC$10027_connected_,this.notifyConnected_,this);this.JSC$10027_connected_.callback(!0);this.JSC$10027_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.TC(vr,T2);vr.prototype.peerProtocolVersion_=null;vr.prototype.initialized_=!1;vr.prototype.transportType=1;var Ro4={};vr.prototype.sendTimerId_=0;
var z_7=function(W){var B=W.event_.data;if(typeof B!=="string")return!1;var z=B.indexOf("|"),G=B.indexOf(":");if(z==-1||G==-1)return!1;var Y=B.substring(0,z);z=B.substring(z+1,G);B=B.substring(G+1);if(G=cr[Y])return G.xpcDeliver(z,B,W.event_.origin),!0;G=WdM(B)[0];for(var d in cr){var E=cr[d];if(aIQ(E)==1&&!E.isConnected()&&z=="tp"&&(G=="SETUP"||G=="SETUP_NTPV2")&&BYT(E,W.event_.origin))return delete cr[E.name],E.name=Y,cr[Y]=E,E.xpcDeliver(z,B),!0}return!1},GW6=function(W){W.protocolVersion_!=2||
W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=2||W.send("tp","SETUP_NTPV2,"+W.endpointId_);
W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=1||W.send("tp","SETUP")},YwT=function(W,B){if(W.protocolVersion_!=2||W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=2||B!=2){if(W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=1||B!=1)return;
W.send("tp","SETUP_ACK")}else W.send("tp","SETUP_ACK_NTPV2");W.setupAckSent_.fired_||W.setupAckSent_.callback(!0)},d6U=function(W,B){B>W.peerProtocolVersion_&&(W.peerProtocolVersion_=B);
W.peerProtocolVersion_==1&&(W.setupAckSent_.fired_||W.oneSidedHandshake_||W.setupAckSent_.callback(!0),W.peerEndpointId_=null)};
_.p=vr.prototype;_.p.connect=function(){var W=this.getWindow(),B=_.Lu(W),z=Ro4[B];typeof z!=="number"&&(z=0);z==0&&_.ug(W.postMessage?W:W.document,"message",z_7,!1,vr);Ro4[B]=z+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.p.maybeAttemptToConnect_=function(){var W=aIQ(this.JSC$10027_channel_)==0;this.oneSidedHandshake_&&W||this.JSC$10027_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),GW6(this))};
_.p.send=function(W,B){var z=this.JSC$10027_channel_.peerWindowObject_;z&&(this.send=function(G,Y){var d=this,E=this.JSC$10027_channel_.name;this.sendTimerId_=Dk(function(){d.sendTimerId_=0;try{var v=z.postMessage?z:z.document;v.postMessage&&v.postMessage(E+"|"+G+":"+Y,d.peerHostname_)}catch(c){}},0)},this.send(W,B))};
_.p.notifyConnected_=function(){var W=this.JSC$10027_channel_,B=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;W.isConnected()||W.connectionDelay_&&W.connectionDelay_.isActive()||(W.state_=2,_.AI(W.connectionDelay_),B!==void 0?(W.connectionDelay_=new _.fp(W.connectCb_,B),W.connectionDelay_.start()):(W.connectionDelay_=null,W.connectCb_()))};
_.p.disposeInternal=function(){if(this.initialized_){var W=this.getWindow(),B=_.Lu(W),z=Ro4[B];Ro4[B]=z-1;z==1&&_.Xn(W.postMessage?W:W.document,"message",z_7,!1,vr)}this.sendTimerId_&&(_.Yt.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.AI(this.JSC$10027_eventHandler_);delete this.JSC$10027_eventHandler_;_.AI(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10027_connected_.cancel();delete this.JSC$10027_connected_;delete this.send;vr.superClass_.disposeInternal.call(this)};
var WdM=function(W){W=W.split(",");W[1]=W[1]||null;return W};var AWH;_.wd=function(W){if(W.getValues&&typeof W.getValues=="function")return W.getValues();if(typeof Map!=="undefined"&&W instanceof Map||typeof Set!=="undefined"&&W instanceof Set)return Array.from(W.values());if(typeof W==="string")return W.split("");if(_.yR(W)){for(var B=[],z=W.length,G=0;G<z;G++)B.push(W[G]);return B}return _.mP.getValues(W)};
_.pR7=function(W){if(W.getKeys&&typeof W.getKeys=="function")return W.getKeys();if(!W.getValues||typeof W.getValues!="function"){if(typeof Map!=="undefined"&&W instanceof Map)return Array.from(W.keys());if(!(typeof Set!=="undefined"&&W instanceof Set)){if(_.yR(W)||typeof W==="string"){var B=[];W=W.length;for(var z=0;z<W;z++)B.push(z);return B}return _.mP.getKeys(W)}}};
AWH=function(W,B,z){if(W.forEach&&typeof W.forEach=="function")W.forEach(B,z);else if(_.yR(W)||typeof W==="string")Array.prototype.forEach.call(W,B,z);else for(var G=_.pR7(W),Y=_.wd(W),d=Y.length,E=0;E<d;E++)B.call(z,Y[E],G&&G[E],W)};var Mvr,ZU,kc,VDD,ixU,TYM,ErM,wRD,vr4;
_.B0=function(W,B){this.JSC$10032_domain_=this.userInfo_=this.scheme_="";this.JSC$10032_port_=null;this.fragment_=this.JSC$10032_path_="";this.JSC$10032_ignoreCase_=!1;var z;W instanceof _.B0?(this.JSC$10032_ignoreCase_=B!==void 0?B:W.JSC$10032_ignoreCase_,_.VS(this,W.scheme_),this.userInfo_=W.userInfo_,_.J4(this,W.JSC$10032_domain_),_.gd(this,W.JSC$10032_port_),_.t4(this,W.getPath()),_.s5(this,W.JSC$10032_queryData_.clone()),_.Pr(this,W.fragment_)):W&&(z=_.RJ(String(W)))?(this.JSC$10032_ignoreCase_=
!!B,_.VS(this,z[1]||"",!0),this.userInfo_=ZU(z[2]||""),_.J4(this,z[3]||"",!0),_.gd(this,z[4]),_.t4(this,z[5]||"",!0),_.s5(this,z[6]||"",!0),_.Pr(this,z[7]||"",!0)):(this.JSC$10032_ignoreCase_=!!B,this.JSC$10032_queryData_=new _.rd(null,this.JSC$10032_ignoreCase_))};
_.B0.prototype.toString=function(){var W=[],B=this.scheme_;B&&W.push(kc(B,ixU,!0),":");var z=this.JSC$10032_domain_;if(z||B=="file")W.push("//"),(B=this.userInfo_)&&W.push(kc(B,ixU,!0),"@"),W.push(_.N6(z).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),z=this.JSC$10032_port_,z!=null&&W.push(":",String(z));if(z=this.getPath())this.JSC$10032_domain_&&z.charAt(0)!="/"&&W.push("/"),W.push(kc(z,z.charAt(0)=="/"?ErM:TYM,!0));(z=this.JSC$10032_queryData_.toString())&&W.push("?",z);(z=this.fragment_)&&W.push("#",
kc(z,vr4));return W.join("")};
_.B0.prototype.resolve=function(W){var B=this.clone(),z=!!W.scheme_;z?_.VS(B,W.scheme_):z=!!W.userInfo_;z?B.userInfo_=W.userInfo_:z=!!W.JSC$10032_domain_;z?_.J4(B,W.JSC$10032_domain_):z=W.JSC$10032_port_!=null;var G=W.getPath();if(z)_.gd(B,W.JSC$10032_port_);else if(z=!!W.JSC$10032_path_){if(G.charAt(0)!="/")if(this.JSC$10032_domain_&&!this.JSC$10032_path_)G="/"+G;else{var Y=B.getPath().lastIndexOf("/");Y!=-1&&(G=B.getPath().slice(0,Y+1)+G)}Y=G;if(Y==".."||Y==".")G="";else if(_.cy(Y,"./")||_.cy(Y,
"/.")){G=_.A0(Y,"/");Y=Y.split("/");for(var d=[],E=0;E<Y.length;){var v=Y[E++];v=="."?G&&E==Y.length&&d.push(""):v==".."?((d.length>1||d.length==1&&d[0]!="")&&d.pop(),G&&E==Y.length&&d.push("")):(d.push(v),G=!0)}G=d.join("/")}else G=Y}z?_.t4(B,G):z=W.JSC$10032_queryData_.toString()!=="";z?_.s5(B,W.JSC$10032_queryData_.clone()):z=!!W.fragment_;z&&_.Pr(B,W.fragment_);return B};
_.B0.prototype.clone=function(){return new _.B0(this)};
_.VS=function(W,B,z){W.scheme_=z?ZU(B,!0):B;W.scheme_&&(W.scheme_=W.scheme_.replace(/:$/,""));return W};
_.J4=function(W,B,z){W.JSC$10032_domain_=z?ZU(B,!0):B;return W};
_.gd=function(W,B){if(B){B=Number(B);if(isNaN(B)||B<0)throw Error("Pa`"+B);W.JSC$10032_port_=B}else W.JSC$10032_port_=null;return W};
_.B0.prototype.getPath=function(){return this.JSC$10032_path_};
_.t4=function(W,B,z){W.JSC$10032_path_=z?ZU(B,!0):B;return W};
_.s5=function(W,B,z){B instanceof _.rd?(W.JSC$10032_queryData_=B,cWd(W.JSC$10032_queryData_,W.JSC$10032_ignoreCase_)):(z||(B=kc(B,wRD)),W.JSC$10032_queryData_=new _.rd(B,W.JSC$10032_ignoreCase_));return W};
_.a0=function(W,B,z){W.JSC$10032_queryData_.set(B,z);return W};
_.M5=function(W,B){return W.JSC$10032_queryData_.get(B)};
_.Pr=function(W,B,z){W.fragment_=z?ZU(B):B;return W};
_.l_=function(W){_.a0(W,"zx",Lp());return W};
_.Uk=function(W,B){return W instanceof _.B0?W.clone():new _.B0(W,B)};
Mvr=function(W,B){W instanceof _.B0||(W=_.Uk(W));B instanceof _.B0||(B=_.Uk(B));return W.resolve(B)};
ZU=function(W,B){return W?B?decodeURI(W.replace(/%25/g,"%2525")):decodeURIComponent(W):""};
kc=function(W,B,z){return typeof W==="string"?(W=encodeURI(W).replace(B,VDD),z&&(W=W.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),W):null};
VDD=function(W){W=W.charCodeAt(0);return"%"+(W>>4&15).toString(16)+(W&15).toString(16)};
ixU=/[#\/\?@]/g;TYM=/[#\?:]/g;ErM=/[#\?]/g;wRD=/[#\?@]/g;vr4=/#/g;_.rd=function(W,B){this.count_=this.keyMap_=null;this.encodedQuery_=W||null;this.JSC$10033_ignoreCase_=!!B};
_.C_=function(W){W.keyMap_||(W.keyMap_=new Map,W.count_=0,W.encodedQuery_&&zmU(W.encodedQuery_,function(B,z){W.add(G4(B),z)}))};
_.p=_.rd.prototype;_.p.getCount=function(){_.C_(this);return this.count_};
_.p.add=function(W,B){_.C_(this);this.encodedQuery_=null;W=IA(this,W);var z=this.keyMap_.get(W);z||this.keyMap_.set(W,z=[]);z.push(B);this.count_+=1;return this};
_.p.remove=function(W){_.C_(this);W=IA(this,W);return this.keyMap_.has(W)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(W).length,this.keyMap_.delete(W)):!1};
_.p.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.p.isEmpty=function(){_.C_(this);return this.count_==0};
_.p.containsKey=function(W){_.C_(this);W=IA(this,W);return this.keyMap_.has(W)};
_.p.containsValue=function(W){var B=this.getValues();return _.xt(B,W)};
_.p.forEach=function(W,B){_.C_(this);this.keyMap_.forEach(function(z,G){z.forEach(function(Y){W.call(B,Y,G,this)},this)},this)};
_.p.getKeys=function(){_.C_(this);for(var W=Array.from(this.keyMap_.values()),B=Array.from(this.keyMap_.keys()),z=[],G=0;G<B.length;G++)for(var Y=W[G],d=0;d<Y.length;d++)z.push(B[G]);return z};
_.p.getValues=function(W){_.C_(this);var B=[];if(typeof W==="string")this.containsKey(W)&&(B=B.concat(this.keyMap_.get(IA(this,W))));else{W=Array.from(this.keyMap_.values());for(var z=0;z<W.length;z++)B=B.concat(W[z])}return B};
_.p.set=function(W,B){_.C_(this);this.encodedQuery_=null;W=IA(this,W);this.containsKey(W)&&(this.count_-=this.keyMap_.get(W).length);this.keyMap_.set(W,[B]);this.count_+=1;return this};
_.p.get=function(W,B){if(!W)return B;W=this.getValues(W);return W.length>0?String(W[0]):B};
_.JWT=function(W,B,z){W.remove(B);z.length>0&&(W.encodedQuery_=null,W.keyMap_.set(IA(W,B),_.QR(z)),W.count_+=z.length)};
_.rd.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var W=[],B=Array.from(this.keyMap_.keys()),z=0;z<B.length;z++){var G=B[z],Y=_.N6(G);G=this.getValues(G);for(var d=0;d<G.length;d++){var E=Y;G[d]!==""&&(E+="="+_.N6(G[d]));W.push(E)}}return this.encodedQuery_=W.join("&")};
_.rd.prototype.clone=function(){var W=new _.rd;W.encodedQuery_=this.encodedQuery_;this.keyMap_&&(W.keyMap_=new Map(this.keyMap_),W.count_=this.count_);return W};
var IA=function(W,B){B=String(B);W.JSC$10033_ignoreCase_&&(B=B.toLowerCase());return B},cWd=function(W,B){B&&!W.JSC$10033_ignoreCase_&&(_.C_(W),W.encodedQuery_=null,W.keyMap_.forEach(function(z,G){var Y=G.toLowerCase();
G!=Y&&(this.remove(G),_.JWT(this,Y,z))},W));
W.JSC$10033_ignoreCase_=B};
_.rd.prototype.extend=function(W){for(var B=0;B<arguments.length;B++)AWH(arguments[B],function(z,G){this.add(G,z)},this)};var oA=function(W,B){p_.call(this);for(var z=0,G;G=L6D[z];z++)if(G in W&&!/^https?:\/\//.test(W[G]))throw Error("Ra`"+W[G]+"`"+G);this.cfg_=W;this.name=this.cfg_.cn||MaF();this.JSC$10028_domHelper_=B||bf();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.T5(this);W.lpu=W.lpu||WF4(this.JSC$10028_domHelper_.getWindow().location.href)+"/robots.txt";W.ppu=W.ppu||WF4(W.pu||"")+"/robots.txt";cr[this.name]=this;YYU(window,"unload",gru)||f8(window,"unload",gru)};
_.TC(oA,p_);var tDD=RegExp("^%*tp$"),sJH=RegExp("^%+tp$");_.p=oA.prototype;_.p.connectionDelay_=null;_.p.peerWindowDeferred_=null;_.p.transport_=null;_.p.state_=1;_.p.isConnected=function(){return this.state_==2};
_.p.peerWindowObject_=null;_.p.iframeElement_=null;_.p.connect=function(W){this.connectCb_=W||_.j7;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?xwM(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.p.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10028_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var W=this.iframeElement_.contentWindow;W||(W=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=W}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10028_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new vr(this,this.cfg_.ph,this.JSC$10028_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.p.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.AI(this.transport_);this.connectCb_=this.transport_=null;_.AI(this.connectionDelay_);this.connectionDelay_=null};
_.p.send=function(W,B){if(this.isConnected()){try{var z=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(Y){z=!1}if(z){_.$t(B)&&(B=(0,_.yy)(B));z=this.transport_;var G=z.send;tDD.test(W)&&(W="%"+W);W=W.replace(/[%:|]/g,encodeURIComponent);G.call(z,W,B)}else this.close()}};
_.p.xpcDeliver=function(W,B,z){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.jk)(this.xpcDeliver,this,W,B,z));else if(BYT(this,z)&&!this.isDisposed()&&this.state_!=3)if(W&&W!="tp")this.isConnected()&&(W=W.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),W=sJH.test(W)?W.substring(1):W,W=this.getService(W,B))&&(B=X5H(B,W.objectPayload),B!=null&&W.callback(B));else switch(W=this.transport_,z=WdM(B),B=z[1],z[0]){case "SETUP_ACK":d6U(W,1);W.setupAckReceived_.fired_||W.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":W.protocolVersion_==2&&(d6U(W,2),W.setupAckReceived_.fired_||W.setupAckReceived_.callback(!0));break;case "SETUP":d6U(W,1);YwT(W,1);break;case "SETUP_NTPV2":W.protocolVersion_==2&&(z=W.peerProtocolVersion_,d6U(W,2),YwT(W,2),z!=1&&W.peerEndpointId_==null||W.peerEndpointId_==B||GW6(W),W.peerEndpointId_=B)}};
var aIQ=function(W){var B=W.cfg_.role;return typeof B==="number"?B:window.parent==W.peerWindowObject_?1:0},BYT=function(W,B){var z=W.cfg_.ph;
return _.TT(B==null?"":String(B))||_.TT(z==null?"":String(z))||B==W.cfg_.ph};
oA.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete cr[this.name];_.AI(this.peerLoadHandler_);delete this.peerLoadHandler_;oA.superClass_.disposeInternal.call(this)};
var gru=function(){for(var W in cr)_.AI(cr[W])},cr={};var Zxd=function(W,B){this.JSC$10042_win=W;this.allowAdsHttpEndpoint=B;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10042_domHelper=bf(W);this.scrollManager=new jwd(W);this.accessibilityManager=new ho6(W);Pku(this)},Pku=function(W){var B=function(){W.allowAdsPopup&&W.allowAdsPopup.style.setProperty("display","none","important");
W.wallElement.style.setProperty("display","","important");HRU(W.accessibilityManager);bRF(W.accessibilityManager,W.wallElement.querySelector(".fc-dialog-container"),!1,!1,W.wallElement.querySelector(".fc-button-whitelist"));W.scrollManager.enableScrolling()};
W.allowAdsPopup=W.JSC$10042_domHelper.JSC$9329_createDom("DIV",{"class":"fc-whitelist-root"});W.allowAdsPopup.style.setProperty("display","none","important");W.JSC$10042_domHelper.appendChild(W.JSC$10042_domHelper.JSC$9327_document_.body,W.allowAdsPopup);var z=W.JSC$10042_domHelper.JSC$9329_createDom("DIV",{"class":"fc-dialog-overlay"});W.JSC$10042_domHelper.appendChild(W.allowAdsPopup,z);var G=W.JSC$10042_domHelper.JSC$9329_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:B});W.JSC$10042_domHelper.appendChild(W.allowAdsPopup,
G);z=W.JSC$10042_domHelper.JSC$9329_createDom("IFRAME");z.className="fc-whitelist-dialog";z.frameBorder="0";z.id="fc-whitelist-iframe";z.tabIndex="0";_.WG(z,W.allowAdsHttpEndpoint);W.JSC$10042_domHelper.appendChild(G,z);G={};G.pu=_.jN(W.allowAdsHttpEndpoint).toString();G.tp=1;G.cn="fc-whitelist-channel";G.ifrid=z.id;G.osh=!0;W.allowAdsCrossPageChannel=new oA(G);W.allowAdsCrossPageChannel.registerService("close",B);W.allowAdsCrossPageChannel.registerService("refresh",function(){W.JSC$10042_win.location.reload()});
W.allowAdsCrossPageChannel.registerService("resize",function(Y){if(Y){var d=W.allowAdsPopup.querySelector(".fc-whitelist-dialog");Y.width&&d.style.setProperty("width",Y.width,"important");Y.height&&d.style.setProperty("height",Y.height,"important")}},!0);
W.allowAdsCrossPageChannel.connect()};
Zxd.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10042_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var h4=window,Hr=document,rW4=h4.location,kW9=function(){},l5R=/\[native code\]/,FW=function(W,B,z){return W[B]=W[B]||z},CkR=function(W){W=W.sort();
for(var B=[],z=void 0,G=0;G<W.length;G++){var Y=W[G];Y!=z&&B.push(Y);z=Y}return B},Sr=function(){var W;
if((W=Object.create)&&l5R.test(W))W=W(null);else{W={};for(var B in W)W[B]=void 0}return W},jr=FW(h4,"gapi",{});var f_={};f_=FW(h4,"___jsl",Sr());FW(f_,"I",0);FW(f_,"hel",10);var I5M=function(){var W=rW4.href;if(f_.dpo)var B=f_.h;else{B=f_.h;var z=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),G=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(W=W&&(z.exec(W)||G.exec(W)))try{B=decodeURIComponent(W[2])}catch(Y){}}return B},orU=function(W){var B=FW(f_,"PQ",[]);
f_.PQ=[];var z=B.length;if(z===0)W();else for(var G=0,Y=function(){++G===z&&W()},d=0;d<z;d++)B[d](Y)},h_R=function(W){return FW(FW(f_,"H",Sr()),W,Sr())};var O5=function(W){this.JSC$10044_obj_=W};
O5.prototype.value=function(){return this.JSC$10044_obj_};
O5.prototype.getWidth=function(){return this.JSC$10044_obj_.width};
O5.prototype.getHeight=function(){return this.JSC$10044_obj_.height};
O5.prototype.getStyle=function(){return this.JSC$10044_obj_.style};var HxU=function(W){this.JSC$10047_obj_=W||{}};
_.p=HxU.prototype;_.p.value=function(){return this.JSC$10047_obj_};
_.p.setUrl=function(W){this.JSC$10047_obj_.url=W;return this};
_.p.getUrl=function(){return this.JSC$10047_obj_.url};
_.p.getStyle=function(){return this.JSC$10047_obj_.style};
_.p.getId=function(){return this.JSC$10047_obj_.id};
_.p.getContext=function(){return this.JSC$10047_obj_.context};
var FdQ=function(W){W.JSC$10047_obj_.attributes=W.JSC$10047_obj_.attributes||{};return new O5(W.JSC$10047_obj_.attributes)};var SwH=function(){HxU.apply(this,arguments)};
_.C(SwH,HxU);var bx4=FW(f_,"perf",Sr());FW(bx4,"g",Sr());var jJQ=FW(bx4,"i",Sr());FW(bx4,"r",[]);Sr();Sr();var Ox6=function(W,B,z){B&&B.length>0&&(B=f5R(B),z&&z.length>0&&(B+="___"+f5R(z)),B.length>28&&(B=B.substr(0,28)+(B.length-28)),z=B,B=FW(jJQ,"_p",Sr()),FW(B,z,Sr())[W]=(new Date).getTime(),B=bx4.r,typeof B==="function"?B(W,"_p",z):B.push([W,"_p",z]))},f5R=function(W){return W.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var XR4=Sr(),KdM=[],XW=function(W){throw Error("Ua`"+W);};
KdM.push(["jsl",function(W){for(var B in W)if(Object.prototype.hasOwnProperty.call(W,B)){var z=W[B];typeof z=="object"?f_[B]=FW(f_,B,[]).concat(z):FW(f_,B,z)}if(B=W.u)W=FW(f_,"us",[]),W.push(B),(B=/^https:(.*)$/.exec(B))&&W.push("http:"+B[1])}]);
var uq7=/^(\/[a-zA-Z0-9_\-]+)+$/,e_F=[/\/amp\//,/\/amp$/,/^\/amp$/],m6F=/^[a-zA-Z0-9\-_\.,!]+$/,x6F=/^gapi\.loaded_[0-9]+$/,D6R=/^[a-zA-Z0-9,._-]+$/,nru=function(W,B,z,G,Y){var d=W.split(";"),E=d.shift(),v=XR4[E],c=null;v?c=v(d,B,z,G):XW("no hint processor for: "+E);c||XW("failed to generate load url");B=c;z=B.match(QJF);(G=B.match(yWD))&&G.length===1&&qw7.test(B)&&z&&z.length===1||XW("failed sanity: "+W);try{W="?";if(Y&&Y.length>0){otu(Y);var J=Y.join(",");c=c+"?le="+J;W="&"}if(f_.rol){var g=f_.ol;
g&&g.length&&(c=""+c+W+"ol="+g.length)}}catch(t){}return c},LdR=function(W,B,z,G){W=NYM(W);
x6F.test(z)||XW("invalid_callback");B=$6H(B);G=G&&G.length?$6H(G):null;var Y=function(d){return encodeURIComponent(d).replace(/%2C/g,",")};
return[encodeURIComponent(W.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",Y(W.version),"/m=",Y(B),G?"/exm="+Y(G):"","/rt=j/sv=1/d=1/ed=1",W.activeMods?"/am="+Y(W.activeMods):"",W.resourceSig?"/rs="+Y(W.resourceSig):"",W.zcms?"/t="+Y(W.zcms):"","/cb=",Y(z)].join("")},NYM=function(W){W.charAt(0)!=="/"&&XW("relative path");
for(var B=W.substring(1).split("/"),z=[];B.length;){W=B.shift();if(!W.length||W.indexOf(".")==0)XW("empty/relative directory");else if(W.indexOf("=")>0){B.unshift(W);break}z.push(W)}W={};for(var G=0,Y=B.length;G<Y;++G){var d=B[G].split("="),E=decodeURIComponent(d[0]),v=decodeURIComponent(d[1]);d.length==2&&E&&v&&(W[E]=W[E]||v)}B="/"+z.join("/");uq7.test(B)||XW("invalid_prefix");z=0;for(G=e_F.length;z<G;++z)e_F[z].test(B)&&XW("invalid_prefix");z=U6u(W,"k",!0);G=U6u(W,"am");Y=U6u(W,"rs");W=U6u(W,"t");
return{pathPrefix:B,version:z,activeMods:G,resourceSig:Y,zcms:W}},$6H=function(W){for(var B=[],z=0,G=W.length;z<G;++z){var Y=W[z].replace(/\./g,"_").replace(/-/g,"_");
D6R.test(Y)&&B.push(Y)}return B.join(",")},U6u=function(W,B,z){W=W[B];
!W&&z&&XW("missing: "+B);if(W){if(m6F.test(W))return W;XW("invalid: "+B)}return null},qw7=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,yWD=/\/cb=/g,QJF=/\/\//g;
XR4.m=function(W,B,z,G){(W=W[0])||XW("missing_hint");return"https://apis.google.com"+LdR(W,B,z,G)};
var MDd=decodeURI("%73cript"),a5U=/^[-+_0-9\/A-Za-z]+={0,2}$/,R_D=function(W,B){for(var z=[],G=0;G<W.length;++G){var Y=W[G],d;if(d=Y){a:{for(d=0;d<B.length;d++)if(B[d]===Y)break a;d=-1}d=d<0}d&&z.push(Y)}return z},WH4=function(){var W=f_.nonce;
return W!==void 0?W&&W===String(W)&&W.match(a5U)?W:f_.nonce=null:Hr.querySelector?(W=Hr.querySelector("script[nonce]"))?(W=W.nonce||W.getAttribute("nonce")||"",W&&W===String(W)&&W.match(a5U)?f_.nonce=W:f_.nonce=null):null:null},G44=function(W){if(Hr.readyState!="loading")BOU(W);
else{var B=WH4(),z="";B!==null&&(z=' nonce="'+B+'"');W="<"+MDd+' src="'+encodeURI(W)+'"'+z+"></"+MDd+">";Hr.write(ztR?ztR.createHTML(W):W)}},BOU=function(W){var B=Hr.createElement(MDd);
B.setAttribute("src",ztR?ztR.createScriptURL(W):W);W=WH4();W!==null&&B.setAttribute("nonce",W);B.async="true";(W=Hr.getElementsByTagName(MDd)[0])?W.parentNode.insertBefore(B,W):(Hr.head||Hr.body||Hr.documentElement).appendChild(B)},dn4=function(W,B,z){YA9(function(){var G=B===I5M()?FW(jr,"_",Sr()):Sr();
G=FW(h_R(B),"_",G);W(G)},z)},uuT=function(W,B){var z=B||{};
typeof B=="function"&&(z={},z.callback=B);var G=(B=z)&&B._c;if(G)for(var Y=0;Y<KdM.length;Y++){var d=KdM[Y][0],E=KdM[Y][1];E&&Object.prototype.hasOwnProperty.call(G,d)&&E(G[d],W,B)}B=[];W?B=W.split(":"):z.features&&(B=z.features);if(!(W=z.h)&&(W=I5M(),!W))throw Error("Va");pS4(B||[],z,W)},pS4=function(W,B,z){W=CkR(W)||[];
var G=B.callback,Y=B.config,d=B.timeout,E=B.ontimeout,v=B.onerror,c=void 0;typeof v=="function"&&(c=v);var J=null,g=!1;if(d&&!E||!d&&E)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";v=FW(h_R(z),"r",[]).sort();var t=FW(h_R(z),"L",[]).sort(),P=f_.le||[],Z=[].concat(v),l=function(a,q){if(g)return 0;h4.clearTimeout(J);t.push.apply(t,b);var n=((jr||{}).config||{}).update;n?n(Y):Y&&FW(f_,"cu",[]).push(Y);if(q){Ox6("me0",a,Z);try{dn4(q,z,c)}finally{Ox6("me1",a,Z)}}return 1};
d>0&&(J=h4.setTimeout(function(){g=!0;E()},d));
var b=R_D(W,t);if(b.length){b=R_D(W,v);var O=FW(f_,"CP",[]),K=O.length;O[K]=function(a){if(!a)return 0;Ox6("ml1",b,Z);var q=function(L){O[K]=null;l(b,a)&&orU(function(){G&&G();L()})},n=function(){var L=O[K+1];
L&&L()};
K>0&&O[K-1]?O[K]=function(){q(n)}:q(n)};
if(b.length){var e="loaded_"+f_.I++;jr[e]=function(a){O[K](a);jr[e]=null};
W=nru(z,b,"gapi."+e,v,P);v.push.apply(v,b);Ox6("ml0",b,Z);B.sync||h4.___gapisync?G44(W):BOU(W)}else O[K](kW9)}else l(b)&&G&&G()},ACR;
var i4R=null,E86=_.Yt.trustedTypes;if(E86&&E86.createPolicy){try{i4R=E86.createPolicy("goog#gapi",{createHTML:A3R,createScript:A3R,createScriptURL:A3R})}catch(W){_.Yt.console&&_.Yt.console.error(W.message)}ACR=i4R}else ACR=i4R;var ztR=ACR,YA9=function(W,B){if(f_.hee&&f_.hel>0)try{return W()}catch(z){B&&B(z),f_.hel--,uuT("debug_error",function(){try{window.___jsl.hefn(z)}catch(G){throw z;}})}else try{return W()}catch(z){throw B&&B(z),z;
}},TOF=jr.load;
TOF&&FW(f_,"ol",[]).push(TOF);jr.load=function(W,B){return YA9(function(){return uuT(W,B)})};var XS2;var cC4=function(W,B){var z=z||[];this.serviceId_=W;this.moduleId_=B||null;this.dependencies_=[];v8Q(this,z)};
cC4.prototype.toString=function(){return this.serviceId_};
cC4.prototype.getModuleId=function(){return this.moduleId_};
var v8Q=function(W,B){var z=!1;z=z===void 0?!1:z;W.dependencies_=W.dependencies_.concat(B);if(z){if(!W.moduleId_)throw Error("Wa`"+W.serviceId_);B.map(function(G){return G.getModuleId()}).forEach(function(G){KHr(function(Y){Y.addExtraEdge(W.moduleId_,G)})})}};var w0T=new cC4("MpJwZc","MpJwZc");var JrX=new _.S1("a"),V4R=function(W,B,z){_.bK.call(this,W,B);this.node=B;this.kind=z};
_.C(V4R,_.bK);var wSR=function(){this.JSC$10060_keys_={};this.urlPrefix_="";this.JSC$10060_queryData_={}};
wSR.prototype.toString=function(){var W=this.urlPrefix_+VEM(this),B=_.sA(this.JSC$10060_queryData_),z="";B!=""&&(z="?"+B);return W+z};
var JCH=function(W){W=K_(W,"md");return!!W&&W!=="0"},VEM=function(W){var B=[],z=(0,_.jk)(function(G){this.JSC$10060_keys_[G]!==void 0&&B.push(G+"="+this.JSC$10060_keys_[G])},W);
JCH(W)?(z("md"),z("k"),z("ck"),z("am"),z("rs"),z("gssmodulesetproto"),z("slk"),z("dti")):(z("sdch"),z("k"),z("ck"),z("am"),z("rt"),"d"in W.JSC$10060_keys_||u_(W,"d","0"),z("d"),z("exm"),z("excm"),(W.JSC$10060_keys_.excm||W.JSC$10060_keys_.exm)&&B.push("ed=1"),z("im"),z("dg"),z("sm"),K_(W,"br")!="1"&&K_(W,"br")!="0"||z("br"),z("br-d"),K_(W,"rb")=="1"&&z("rb"),K_(W,"zs")!=="0"&&z("zs"),g8R(W)!==""&&z("wt"),z("gssmodulesetproto"),z("ujg"),z("sp"),z("rs"),z("cb"),z("ee"),z("slk"),z("dti"),z("m"));return B.join("/")},
K_=function(W,B){return W.JSC$10060_keys_[B]?W.JSC$10060_keys_[B]:null},u_=function(W,B,z){z?W.JSC$10060_keys_[B]=z:delete W.JSC$10060_keys_[B]},tER=function(W,B){W.urlPrefix_=B},sXF=function(W,B){B&&B.length>0?(B.sort(),u_(W,"exm",B.join(","))):u_(W,"exm",null)},PO7=function(W,B){B&&B.length>0?(B.sort(),u_(W,"excm",B.join(","))):u_(W,"excm",null)},Z4R=function(W){return(W=K_(W,"m"))?W.split(","):[]},g8R=function(W){switch(K_(W,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},rC4=function(W,B){var z=Object.keys(B).filter(function(G){return!!Object.keys(B[G]).length}).map(function(G){var Y=Object.keys(B[G]);
Y.length>1&&Y.sort();return G+":"+Y.join(",")});
z.sort();u_(W,"ee",z.join(";"))},nbx=function(W){var B=K_(W,"ee");
if(!B)return{};W={};B=_.A(B.split(";"));for(var z=B.next();!z.done;z=B.next()){var G=_.A(z.value.split(":"));z=G.next().value;G=G.next().value;W[z]={};G=_.A(G.split(","));for(var Y=G.next();!Y.done;Y=G.next())W[z][Y.value]=!0}return W},k4M=function(W){delete W.JSC$10060_keys_.m;
delete W.JSC$10060_keys_.exm;delete W.JSC$10060_keys_.ed};
wSR.prototype.clone=function(){var W=new wSR;W.JSC$10060_keys_=Object.assign({},this.JSC$10060_keys_);W.urlPrefix_=this.urlPrefix_;W.JSC$10060_queryData_=Object.assign({},this.JSC$10060_queryData_);return W};
var N2r=function(W,B){B=B===void 0?!0:B;var z=lod(W),G=new wSR,Y=_.RJ(z)[5];_.mP.forEach(COd,function(E){var v=Y.match("/"+E+"=([^/]+)");v&&u_(G,E,v[1])});
var d="";d=W.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";tER(G,W.substr(0,W.indexOf(d)+d.length));if(!B)return G;(W=_.RJ(z)[6]||null)&&zmU(W,function(E,v){G.JSC$10060_queryData_[E]=v});
return G},QeR=function(W){W=_.gO(lod(W));
return W===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(W)?/\/k=/.test(W):!1},lod=function(W){return W.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?W.substr(65):W},COd={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"},Io6=RegExp("^loaded_(g|h)?[_\\d]+$");_.er=function(W){this.JSC$10072_id_=W;this.opts={}};
_.er.prototype.JSC$10074_setLabel=function(W){this.label_=W||void 0;return this};
_.er.prototype.addUploadMetadata=function(W,B){var z=this.opts.data||{};z[W]=B;this.opts.data=z;return this};
var o8R=function(W){var B=_.mP.filter(W.opts,function(z){return z!==null});
B=_.mP.isEmpty(B)?null:B;W=[W.JSC$10072_id_,W.label_,B];B=r0t(W);return W=W.slice(0,B+1)};
_.er.prototype.toString=function(){var W=o8R(this);return"("+_.xH(W,function(B){return JSON.stringify(B)}).join(",")+")"};
_.er.prototype.getId=function(){return this.JSC$10072_id_};
_.er.prototype.getOptions=function(){return _.mP.clone(this.opts)};var mL=function(){_.er.call(this,"image-search")};
_.C(mL,_.er);mL.prototype.setSize=function(W){this.opts.imgsz=W;return this};
mL.prototype.JSC$10074_setLabel=function(W){_.er.prototype.JSC$10074_setLabel.call(this,W);return this};
mL.prototype.addUploadMetadata=function(W,B){_.er.prototype.addUploadMetadata.call(this,W,B);return this};var xc=function(){_.er.call(this,"maps")};
_.C(xc,_.er);xc.prototype.setZoom=function(W){this.opts.zoom=W;return this};
xc.prototype.JSC$10074_setLabel=function(W){_.er.prototype.JSC$10074_setLabel.call(this,W);return this};
xc.prototype.addUploadMetadata=function(W,B){_.er.prototype.addUploadMetadata.call(this,W,B);return this};_.DU=function(){_.er.call(this,"photos")};
_.C(_.DU,_.er);_.DU.prototype.JSC$10074_setLabel=function(W){_.er.prototype.JSC$10074_setLabel.call(this,W);return this};
_.DU.prototype.addUploadMetadata=function(W,B){_.er.prototype.addUploadMetadata.call(this,W,B);return this};var QS=function(){_.er.call(this,"url")};
_.C(QS,_.er);var htM=function(){var W=new QS;W.opts.type="video";W.opts.site="youtube.com";return W};
QS.prototype.JSC$10074_setLabel=function(W){_.er.prototype.JSC$10074_setLabel.call(this,W);return this};
QS.prototype.addUploadMetadata=function(W,B){_.er.prototype.addUploadMetadata.call(this,W,B);return this};var yS=function(){_.er.call(this,"video-search")};
_.C(yS,_.er);var H47=function(){var W=new yS;W.opts.site="youtube.com";return W};
yS.prototype.JSC$10074_setLabel=function(W){_.er.prototype.JSC$10074_setLabel.call(this,W);return this};
yS.prototype.addUploadMetadata=function(W,B){_.er.prototype.addUploadMetadata.call(this,W,B);return this};var FHF=function(){_.er.call(this,"web")};
_.C(FHF,_.er);FHF.prototype.JSC$10074_setLabel=function(W){_.er.prototype.JSC$10074_setLabel.call(this,W);return this};
FHF.prototype.addUploadMetadata=function(W,B){_.er.prototype.addUploadMetadata.call(this,W,B);return this};var qe=function(){this.items_=[];this.opts={}},SA9=function(W){switch(W){case "image-search":return new mL;
case "maps":return new xc;case "photos":return new _.DU;case "url":return new QS;case "video-search":return new yS;case "web":return new FHF}return new _.er(W)};
qe.prototype.addView=function(W){this.items_.push(typeof W==="string"?SA9(W):W);return this};
var b47=function(W){return"("+_.xH(W.items_,function(B){return B.toString()}).join(",")+")"};
qe.prototype.toString=function(){return b47(this)};
qe.prototype.getViews=function(W,B){B=B===void 0?[]:B;for(var z=this.items_,G=0;G<z.length;G++){var Y=z[G];Y instanceof qe?Y.getViews(W,B):Y.getId()==W&&B.push(Y)}return B};
qe.prototype.getOptions=function(){return _.mP.clone(this.opts)};var yJ=function(W){this.basePickerUrl_=W||"https://docs.google.com/picker";this.nav_=new qe};
yJ.prototype.nav_=null;yJ.prototype.addView=function(W){this.nav_.addView(W);return this};
yJ.prototype.getBaseUrl=function(){return this.basePickerUrl_};
yJ.prototype.getViews=function(W){return this.nav_.getViews(W)};
_.jXu=function(W,B){W.callback_=B;return W};var foM=new Map;foM.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");foM.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");foM.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var O4u=new Set;O4u.add("application/vnd.google-apps.kix");O4u.add("application/vnd.google-apps.ritz");O4u.add("application/vnd.google-apps.punch");var NOM=function(W,B,z){var G=z&&_.KV(z,1);z=XSH(z);var Y=W[0].getId();switch(_.u0(Y,2)){case 13:return KH4(W,B,G,z);case 3:return us4(W,B,G,z);case 10:return etM(W,B,G,z);case 27:return etM(W,B,G,z);case 12:return mnH(W,B);case 2:return xnd(W,B,G,z);case 5:return DnD(W,B,G,z);case 9:return QX4(W,B,G,z);case 6:return yCH(W,B,G,z);case 25:return qA7(W,B,G,z);case 1:return _.IO(W[0],s37,26)?n8M(W,B,G,z):etM(W,B,G,z);default:return{}}},yCH=function(W,B,z,G){W=W.map(function(Y){return{id:Y.getId().getId(),
serviceId:"youtube",name:Y.getName(),description:_.KV(Y,3),type:n_(Y),lastEditedUtc:_.tNd(_.AD(Y,_.eg,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Y.getUrl(),embedUrl:_.KV(Y,13),thumbnails:Ne(vo(Y))}});
return{action:B,docs:W,viewToken:G,view:z||"youtube",v2Translated:!0}},xnd=function(W,B,z,G){var Y=W.map(function(d){var E=d.getId().getId(),v=_.KV(d,7),c=d.getName(),J=n_(d),g=_.tNd(_.AD(d,_.eg,12)).getTime(),t=d.getUrl(),P=Number(CmR(d)),Z=_.KV(d,3),l=_.KV(d,11),b=Ne(vo(d));
var O=_.AD(d,co,21);O=_.fV(O,1);var K=_.AD(d,co,21);K=_.KV(K,10);var e=_.KV(d,13);var a=_.AD(d,co,21);a=_.fV(a,9);var q=_.AD(d,co,21);q=_.KV(q,11);E={id:E,serviceId:"docs",mimeType:v,name:c,type:J,lastEditedUtc:g,url:t,sizeBytes:P,description:Z,iconUrl:l,thumbnails:b,isShared:O,downloadUrl:K,embedUrl:e,copyable:a,resourceKey:q};v=_.AD(d,co,21);_.fV(v,12)&&(E.uploadState="success",E.isNew=!0);v=_.AD(d,co,21);_.IO(v,iK,3)&&(d=_.AD(d,co,21),d=_.AD(d,iK,3),_.IO(d,pa,2)&&(v=xx(d.getDuration().getSeconds()),
c=d.getDuration(),c=_.cC(c,2),E.duration=v+c/1E9),E.aspectRatio=d.getAspectRatio());return E});
return{action:B,docs:Y,viewToken:G,view:z||"all",extraUserInputs:$n6(W),v2Translated:!0}},DnD=function(W,B,z,G){W=W.map(function(Y){var d=_.AD(Y,hm4,15);
d=_.AD(d,AG,1);sc(Y,10,AG,d);return{id:Y.getId().getId(),serviceId:"web",mimeType:_.KV(Y,7),name:Y.getName(),type:n_(Y),url:Y.getUrl(),description:_.KV(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Ne(vo(Y))}});
return{action:B,docs:W,viewToken:G,view:z||"image-search",v2Translated:!0}},QX4=function(W,B,z,G){W=W.map(function(Y){return{serviceId:"url",
name:vo(Y)[0].getUrl().split("/").pop(),type:n_(Y),mimeType:_.KV(Y,7),url:Y.getUrl(),description:_.KV(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Ne(vo(Y))}});
return{action:B,docs:W,viewToken:G,view:z||"url",v2Translated:!0}},n8M=function(W,B,z,G){W=W.map(function(Y){return{id:Y.getId().getId(),
serviceId:"picasa",name:Y.getName(),type:n_(Y),description:_.KV(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Ne(vo(Y))}});
return{action:B,docs:W,viewToken:G,view:z||"webcam",v2Translated:!0}},etM=function(W,B,z,G){return{action:B,
docs:W.map(LHU),viewToken:G,view:UnH(z||"upload",W),extraUserInputs:$n6(W),v2Translated:!0}},UnH=function(W,B){return B.some(function(z){var G;
return((G=_.AD(z,EZ,30))==null?void 0:_.u0(G,3))===9})?W+"/gmailphotos":W},us4=function(W,B,z,G){var Y=W.map(function(d){var E={id:d.getId().getId(),
serviceId:"picasa",mimeType:_.KV(d,7),name:d.getName(),type:n_(d),lastEditedUtc:_.tNd(_.AD(d,_.eg,12)).getTime(),url:d.getUrl(),sizeBytes:Number(CmR(d)),description:_.KV(d,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Ne(vo(d)),mediaKey:d.getId().getId(),parentId:_.KV(d,4)},v,c=(v=_.AD(d,rZH,18))==null?void 0:_.AD(v,ZmH,3);c&&(E.latitude=XP(c,1),E.longitude=XP(c,2));var J;d=(J=_.AD(d,rZH,18))==null?void 0:OL(J,6);J=d!=null?xx(d):void 0;J&&(E.version=
J);return E});
return{action:B,docs:Y,viewToken:G,view:z||"photos",extraUserInputs:$n6(W),v2Translated:!0}},KH4=function(W,B,z,G){W=W.map(function(Y){return{id:Y.getId().getId(),
serviceId:"et",name:vo(Y)[0].getUrl().split("/").pop(),description:_.KV(Y,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Ne(vo(Y),"etjpg")}});
return{action:B,docs:W,viewToken:G,view:z||"et",v2Translated:!0}},qA7=function(W,B,z,G){W=W.map(function(Y){var d=Y.getId().getId(),E=G["2"];
return{id:d,serviceId:E.type!=="gmail_themes"&&E.parent==="6226252643674576769"?"picasa":"static_themes",name:Y.getName(),mimeType:_.KV(Y,7),type:n_(Y),description:_.KV(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Y.getUrl(),embedUrl:Y.getUrl(),thumbnails:Ne(vo(Y))}});
return{action:B,docs:W,viewToken:G,view:z||"photos",v2Translated:!0}},mnH=function(W,B){W=W.map(function(z){var G=_.AD(z,PQU,27);
G=_.Ub(G,1,_.l9,_.vC())[0];return{id:z.getId().getId(),serviceId:"contacts",mimeType:_.KV(z,7),name:z.getName(),description:_.KV(z,3),url:"mailto:"+G,thumbnail:[{url:_.KV(z,11)}],email:G}});
return{action:B,docs:W,view:"contacts",v2Translated:!0}},XSH=function(W){if(!W)return{};
var B=_.KV(W,3);B=B&&JSON.parse(B)||{};return{0:_.KV(W,1),1:_.KV(W,2),2:B}},Ne=function(W,B){B=B===void 0?"":B;
if(!W.length)return null;B=="etjpg"&&(W=W.filter(function(z){return z.getUrl().includes("w1200-h300")}));
return W.map(function(z){return{url:z.getUrl(),height:z.getHeight(),width:z.getWidth(),type:B}})},$n6=function(W){return{isAttachment:W.some(function(B){return _.fV(B,31)})}},LHU=function(W){var B,z={id:(B=W.getId())==null?void 0:B.getId(),
serviceId:MEF(W),mimeType:_.KV(W,7),name:W.getName(),type:n_(W),sizeBytes:Number(CmR(W)),description:_.KV(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Ne(vo(W)),isNew:!0};if(B=_.AD(W,EZ,30)){z.dataUrl=_.KV(B,1)||null;a:{var G=_.AD(W,EZ,30);switch(_.u0(G,3)){case 9:G=_.xT(G,IR9,2,TE);G={remoteRefs:G&&_.KV(G,1)};break a;case 10:case 15:G=_.xT(G,CQu,4,TE);var Y=vo(W);G={photo_id:G&&_.KV(G,1),media_key:W.getId().getId(),media_type:_.u0(W,6)===1?1:2,image_url:Y&&
Y[0].getUrl(),width:Y&&String(Y[0].getWidth()),height:Y&&String(Y[0].getHeight())};break a}G=null}z.uploadMetadata=G;z.uploadId=_.KV(B,9)||null;z.uploadState=aoR(B)||null}(G=B&&_.xT(B,CQu,4,TE))&&(z.id=_.KV(G,1));(G=B&&_.xT(B,oh6,5,TE))&&(z.contentId=_.KV(G,1));(G=B&&_.xT(B,k_M,7,TE))&&(z.contentId=_.KV(G,1));(G=B&&_.xT(B,lRu,6,TE))&&(z.contentId=_.KV(G,1));(B==null?void 0:_.u0(B,3))===1&&(z.mediaKey=W.getId().getId());return z},MEF=function(W){var B;
switch(((B=_.AD(W,EZ,30))==null?void 0:_.u0(B,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},n_=function(W){switch(_.u0(W,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 _.KV(W,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},aoR=function(W){switch(W==null?void 0:_.u0(W,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 z37,RtH,WgM,B2d;_.GU9=function(W,B){var z=B||{};B=z.document||document;var G=_.jN(W).toString(),Y=(new uL(B)).createElement("SCRIPT"),d={script_:Y,timeout_:void 0},E=new A4(RtH,d),v=null,c=z.timeout!=null?z.timeout:5E3;c>0&&(v=window.setTimeout(function(){WgM(Y,!0);E.errback(new B2d(1,"Timeout reached for loading script "+G))},c),d.timeout_=v);
Y.onload=Y.onreadystatechange=function(){Y.readyState&&Y.readyState!="loaded"&&Y.readyState!="complete"||(WgM(Y,z.cleanupWhenDone||!1,v),E.callback(null))};
Y.onerror=function(){WgM(Y,!0,v);E.errback(new B2d(0,"Error while loading script "+G))};
d=z.attributes||{};_.mP.extend(d,{type:"text/javascript",charset:"UTF-8"});EY9(Y,d);_.pN(Y,W);z37(B).appendChild(Y);return E};
z37=function(W){var B=hI("HEAD",W);return B&&B.length!==0?B[0]:W.documentElement};
RtH=function(){if(this&&this.script_){var W=this.script_;W&&W.tagName=="SCRIPT"&&WgM(W,!0,this.timeout_)}};
WgM=function(W,B,z){z!=null&&_.Yt.clearTimeout(z);W.onload=function(){};
W.onerror=function(){};
W.onreadystatechange=function(){};
B&&window.setTimeout(function(){_.o0(W)},0)};
B2d=function(W,B){var z="Jsloader error (code #"+W+")";B&&(z+=": "+B);_.zT.call(this,z);this.code=W};
_.TC(B2d,_.zT);var YEd=_.ak(["https://apis.google.com/js/api.js"]),dXD=_.sY(YEd),EbM=function(W,B,z){z=z===void 0?{}:z;var G=!1,Y=pVD(W,B,z).then(function(E){G=!0;return E}),d=_.j8M(5E3).then(function(){return G?pVD(W,B,z):ADu(B,z).then(function(E){return ig7(E,W)})});
return Z3M([Y,d])},pVD=function(W,B,z){z=z===void 0?{}:z;
return T2U(B,z).then(function(G){return ig7(G,W)})},ig7=function(W,B){var z=_.A0(B,"gapi.")?B.slice(5):B;
return W[z]?_.gV(W[z]):new _.Vx(function(G,Y){var d=Dk(function(){Y(Error("Ya"))},3E4);
W.load(B,{callback:function(){_.Yt.clearTimeout(d);G(W[z])},
onerror:function(E){_.Yt.clearTimeout(d);Y(E)}})})},T2U=function(W,B){B=B===void 0?{}:B;
return W.gapi&&W.gapi.load?_.gV(W.gapi):ADu(W,B)},ADu=function(W,B){B=B===void 0?{}:B;
return _.GU9(dXD,{document:W.document,attributes:B}).then(function(){return W.gapi})},vbM=function(){};
vbM.prototype.load=function(W,B,z){B=B===void 0?window:B;z=z===void 0?{}:z;var G=Date.now();return EbM(W,B,z).then(function(Y){var d=Date.now();return{library:Y,loadStartMs:G,loadEndMs:d}},function(Y){throw Y instanceof Error?Y:Error(String(Y));
})};var cDX=function(){_.bA.call(this);this.gapiLoader_=new vbM;this.origin_=null;this.gapiPickerIframeResolver_=_.zN();this.gapiIframesResolver_=_.zN();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.C(cDX,_.bA);var cDF=function(W,B){var z=_.q6("gapi.iframes",B);return z?(W=Date.now(),_.gV({library:z,loadStartMs:W,loadEndMs:W})):W.gapiLoader_.load("gapi.iframes",B)},wVQ=function(W,B,z,G,Y,d){var E=!1;
E=E===void 0?!1:E;cDF(W,QY(B.ownerDocument)).then(function(v){var c=v.library;W.gapiIframesResolver_.resolve(c);v=W.gapiPickerIframeResolver_;var J=v.resolve,g=E;g=g===void 0?!1:g;var t={};t["host-message-handler"]=z;W.hostMessageHandlerInternal_=t;var P=_.Uk(G);P=_.Uk(P);P=_.gd(_.J4(_.VS(new _.B0,P.scheme_),P.JSC$10032_domain_),P.JSC$10032_port_).toString();W.origin_=P;P=(new SwH).setUrl(G);P.JSC$10047_obj_.where=B;P.JSC$10047_obj_.allowPost=g;P.JSC$10047_obj_.messageHandlers=t;g=_.q6("makeWhiteListIframesFilter",
c)([W.origin_]);P.JSC$10047_obj_.messageHandlersFilter=g;Y!=null&&(P.JSC$10047_obj_.id=Y);d!=null&&(P.JSC$10047_obj_.rpctoken=d);g=FdQ(P);g.JSC$10044_obj_.style={display:"block","min-width":"100%",width:"1px"};g.JSC$10044_obj_.height="100%";FdQ(P).value().allow="camera 'src' "+W.origin_;c=c.getContext().openChild(P.value());J.call(v,c)},function(v){W.gapiIframesResolver_.reject(v);
W.gapiPickerIframeResolver_.reject(v)});
return W.gapiPickerIframeResolver_.promise},VlR=function(W,B){return _.ma([W.gapiIframesResolver_.promise,
W.gapiPickerIframeResolver_.promise]).then(function(z){var G=_.A(z);z=G.next().value;return(G=G.next().value)?G.send("picker-message-handler",B,void 0,_.q6("makeWhiteListIframesFilter",z)([W.origin_])):_.mR(Error("Za"))})};
cDX.prototype.disposeInternal=function(){JDR(this);_.bA.prototype.disposeInternal.call(this)};
var JDR=function(W){W.gapiPickerIframeResolver_.promise.then(function(B){B&&(B.unregister("host-message-handler"),delete W.hostMessageHandlerInternal_["host-message-handler"])})};var gbR=function(){this.JSC$10134_nextId=0};var se9=function(W,B){switch(W.action){case "select-contacts":W=tl9(W.contacts);break;case "visibility":W=W.visible;var z=new gL;W=_.QV(z,1,7).setVisible(W);z={};z["iframe-command"]=W.serialize();W=z;break;default:W=null}return W?VlR(B,W):_.gV()},tl9=function(W){if(!W||W.length==0)return null;
var B=new gL;_.QV(B,1,11);var z=new gbR;W.forEach(function(G){if(G.email){var Y=new b0;Y=_.U_(Y,2,G.name?G.name:G.email);var d=new PQU;G=_.K0k(d,1,_.sb,G.email,_.l9);G=_.o3(Y,27,G);Y=new ghQ;d=":"+(z.JSC$10134_nextId++).toString(36);Y=_.U_(Y,1,d);Y=_.QV(Y,2,12);G=_.o3(G,1,Y)}else G=null;G&&sc(B,7,b0,G)});
W={};W["iframe-command"]=B.serialize();return W};_.P27=function(){if(eT2){var W=/Windows NT ([0-9.]+)/;return(W=W.exec(_.Py()))?W[1]:"0"}return _.uYx?(W=/1[0|1][_.][0-9_.]+/,(W=W.exec(_.Py()))?W[0].replace(/_/g,"."):"10"):Czy?(W=/Android\s+([^\);]+)(\)|;)/,(W=W.exec(_.Py()))?W[1]:""):xyD||Dy0||Qit?(W=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(W=W.exec(_.Py()))?W[1].replace(/_/g,"."):""):""}();var $c;$c=function(W){return(W=W.exec(_.Py()))?W[1]:""};
_.ZgD=function(){if(_.P8)return $c(/Firefox\/([0-9.]+)/);if(_.Js||RX||OTT)return UyT;if(_.ZJ){if(_.bx()||_.tQ0()){var W=$c(/CriOS\/([0-9.]+)/);if(W)return W}return $c(/Chrome\/([0-9.]+)/)}if(_.mH&&!_.bx())return $c(/Version\/([0-9.]+)/);if(K8X||uNT){if(W=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Py()))return W[1]+"."+W[2]}else if(B_D)return(W=$c(/Android\s+([0-9.]+)/))?W:$c(/Version\/([0-9.]+)/);return""}();var rDQ=function(){};
_.i0(rDQ);rDQ.prototype.nextId_=0;_.L_=function(W){return":"+(W.nextId_++).toString(36)};var U5=function(W){_.Ka.call(this);this.JSC$10142_dom_=W||bf();this.JSC$10142_id_=null;this.inDocument_=!1;this.JSC$10142_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.TC(U5,_.Ka);U5.prototype.idGenerator_=rDQ.getInstance();U5.prototype.getId=function(){return this.JSC$10142_id_||(this.JSC$10142_id_=_.L_(this.idGenerator_))};
U5.prototype.getElement=function(){return this.JSC$10142_element_};
var Me=function(W){W.googUiComponentHandler_||(W.googUiComponentHandler_=new _.T5(W));return W.googUiComponentHandler_},kUM=function(W,B){if(W==B)throw Error("$a");
var z;if(z=B&&W.parent_&&W.JSC$10142_id_){z=W.parent_;var G=W.JSC$10142_id_;z=z.childIndex_&&G?_.mP.get(z.childIndex_,G)||null:null}if(z&&W.parent_!=B)throw Error("$a");W.parent_=B;U5.superClass_.setParentEventTarget.call(W,B)};
U5.prototype.setParentEventTarget=function(W){if(this.parent_&&this.parent_!=W)throw Error("ab");U5.superClass_.setParentEventTarget.call(this,W)};
U5.prototype.JSC$10144_createDom=function(){this.JSC$10142_element_=this.JSC$10142_dom_.createElement("DIV")};
U5.prototype.render=function(W){l_Q(this,W)};
var l_Q=function(W,B,z){if(W.inDocument_)throw Error("bb");W.JSC$10142_element_||W.JSC$10144_createDom();B?B.insertBefore(W.JSC$10142_element_,z||null):W.JSC$10142_dom_.JSC$9327_document_.body.appendChild(W.JSC$10142_element_);W.parent_&&!W.parent_.inDocument_||W.enterDocument()};
_.p=U5.prototype;_.p.decorate=function(W){if(this.inDocument_)throw Error("bb");if(W&&this.canDecorate(W)){this.wasDecorated_=!0;var B=_.yY(W);this.JSC$10142_dom_&&this.JSC$10142_dom_.JSC$9327_document_==B||(this.JSC$10142_dom_=bf(W));this.decorateInternal(W);this.enterDocument()}else throw Error("cb");};
_.p.canDecorate=function(){return!0};
_.p.decorateInternal=function(W){this.JSC$10142_element_=W};
_.p.enterDocument=function(){this.inDocument_=!0;C29(this,function(W){!W.inDocument_&&W.getElement()&&W.enterDocument()})};
_.p.exitDocument=function(){C29(this,function(W){W.inDocument_&&W.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.p.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);C29(this,function(W){W.dispose()});
!this.wasDecorated_&&this.JSC$10142_element_&&_.o0(this.JSC$10142_element_);this.parent_=this.model_=this.JSC$10142_element_=this.childIndex_=this.children_=null;U5.superClass_.disposeInternal.call(this)};
_.p.getModel=function(){return this.model_};
_.p.addChild=function(W,B){var z=this.children_?this.children_.length:0;if(W.inDocument_&&(B||!this.inDocument_))throw Error("bb");if(z<0||z>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);W.parent_==this?(_.mP.set(this.childIndex_,W.getId(),W),_.Dv(this.children_,W)):_.mP.add(this.childIndex_,W.getId(),W);kUM(W,this);_.Iv2(this.children_,z,0,W);W.inDocument_&&this.inDocument_&&W.parent_==this?(B=this.getContentElement(),
(B.childNodes[z]||null)!=W.getElement()&&(W.getElement().parentElement==B&&B.removeChild(W.getElement()),z=B.childNodes[z]||null,B.insertBefore(W.getElement(),z))):B?(this.JSC$10142_element_||this.JSC$10144_createDom(),z=this.children_?this.children_[z+1]||null:null,l_Q(W,this.getContentElement(),z?z.JSC$10142_element_:null)):this.inDocument_&&!W.inDocument_&&W.JSC$10142_element_&&W.JSC$10142_element_.parentNode&&W.JSC$10142_element_.parentNode.nodeType==1&&W.enterDocument()};
_.p.getContentElement=function(){return this.JSC$10142_element_};
var C29=function(W,B){W.children_&&W.children_.forEach(B,void 0)};
U5.prototype.removeChild=function(W,B){if(W){var z=typeof W==="string"?W:W.getId();W=this.childIndex_&&z?_.mP.get(this.childIndex_,z)||null:null;z&&W&&(_.mP.remove(this.childIndex_,z),_.Dv(this.children_,W),B&&(W.exitDocument(),W.JSC$10142_element_&&_.o0(W.JSC$10142_element_)),kUM(W,null))}if(!W)throw Error("eb");return W};_.TC(mn2,ett);_.TC(xnR,ett);var I_F;_.mP.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var obR=function(W,B){B?W.setAttribute("role",B):W.removeAttribute("role")},aA=function(W,B,z){Array.isArray(z)&&(z=z.join(" "));
var G="aria-"+B;z===""||z==void 0?(I_F||(z={},I_F=(z.atomic=!1,z.autocomplete="none",z.dropeffect="none",z.haspopup=!1,z.live="off",z.multiline=!1,z.multiselectable=!1,z.orientation="vertical",z.readonly=!1,z.relevant="additions text",z.required=!1,z.sort="none",z.busy=!1,z.disabled=!1,z.hidden=!1,z.invalid="false",z)),z=I_F,B in z?W.setAttribute(G,z[B]):W.removeAttribute(G)):W.setAttribute(G,z)};var h3d;_.RA=function(W,B,z){_.Ka.call(this);this.target=W;this.handle=B||W;this.limits=z||new Lf(NaN,NaN,NaN,NaN);this.JSC$10147_document_=_.yY(W);this.JSC$10147_eventHandler_=new _.T5(this);_.rH(this,this.JSC$10147_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;_.ug(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=h3d};
_.TC(_.RA,_.Ka);h3d=_.Yt.document&&_.Yt.document.documentElement&&!!_.Yt.document.documentElement.setCapture&&!!_.Yt.document.releaseCapture;_.HgQ=function(W,B){W.hysteresisDistanceSquared_=Math.pow(B,2)};
_.p=_.RA.prototype;_.p.setEnabled=function(W){this.enabled_=W};
_.p.disposeInternal=function(){_.RA.superClass_.disposeInternal.call(this);_.Xn(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10147_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10147_document_.releaseCapture();this.handle=this.target=null};
_.p.startDrag=function(W){var B=W.type=="mousedown";if(!this.enabled_||this.dragging_||B&&(W.event_.button!=0||_.uYx&&W.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new W1("start",this,W.clientX,W.clientY,W)))this.dragging_=!0,B&&W.preventDefault();else return;else B&&W.preventDefault();B=this.JSC$10147_document_;var z=B.documentElement,G=!this.useSetCapture_;this.JSC$10147_eventHandler_.listen(B,["touchmove","mousemove"],this.handleMove_,
{capture:G,passive:!1});this.JSC$10147_eventHandler_.listen(B,["touchend","mouseup"],this.endDrag,G);this.useSetCapture_?(z.setCapture(!1),this.JSC$10147_eventHandler_.listen(z,"losecapture",this.endDrag)):this.JSC$10147_eventHandler_.listen(QY(B),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10147_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,G);this.clientX=this.startX=W.clientX;this.clientY=this.startY=W.clientY;this.screenX=W.screenX;this.screenY=W.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Sw(bf(this.JSC$10147_document_))}};
_.p.endDrag=function(W,B){this.JSC$10147_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10147_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new W1("end",this,W.clientX,W.clientY,W,Fg6(this,this.deltaX),SEF(this,this.deltaY),B||W.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.p.handleMove_=function(W){if(this.enabled_){var B=W.clientX-this.clientX,z=W.clientY-this.clientY;this.clientX=W.clientX;this.clientY=W.clientY;this.screenX=W.screenX;this.screenY=W.screenY;if(!this.dragging_){var G=this.startX-this.clientX,Y=this.startY-this.clientY;if(G*G+Y*Y>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new W1("start",this,W.clientX,W.clientY,W)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(W);return}}z=bgT(this,B,z);B=z.x;z=z.y;this.dragging_&&this.dispatchEvent(new W1("beforedrag",
this,W.clientX,W.clientY,W,B,z))&&(jeR(this,W,B,z),W.preventDefault())}};
var bgT=function(W,B,z){var G=Sw(bf(W.JSC$10147_document_));B+=G.x-W.pageScroll.x;z+=G.y-W.pageScroll.y;W.pageScroll=G;W.deltaX+=B;W.deltaY+=z;return new _.De(Fg6(W,W.deltaX),SEF(W,W.deltaY))};
_.RA.prototype.onScroll_=function(W){var B=bgT(this,0,0);W.clientX=this.clientX;W.clientY=this.clientY;jeR(this,W,B.x,B.y)};
var jeR=function(W,B,z,G){W.target.style.left=z+"px";W.target.style.top=G+"px";W.dispatchEvent(new W1("drag",W,B.clientX,B.clientY,B,z,G))},Fg6=function(W,B){var z=W.limits;
W=isNaN(z.left)?null:z.left;z=isNaN(z.width)?0:z.width;return Math.min(W!=null?W+z:Infinity,Math.max(W!=null?W:-Infinity,B))},SEF=function(W,B){var z=W.limits;
W=isNaN(z.top)?null:z.top;z=isNaN(z.height)?0:z.height;return Math.min(W!=null?W+z:Infinity,Math.max(W!=null?W:-Infinity,B))};
_.RA.prototype.isDragging=function(){return this.dragging_};
var W1=function(W,B,z,G,Y,d,E){_.bK.call(this,W);this.clientX=z;this.clientY=G;this.browserEvent=Y;this.left=d!==void 0?d:B.deltaX;this.top=E!==void 0?E:B.deltaY};
_.TC(W1,_.bK);var B1=function(W){this.JSC$10154_map_=new Map;var B=arguments.length;if(B>1){if(B%2)throw Error("ka");for(var z=0;z<B;z+=2)this.set(arguments[z],arguments[z+1])}else W&&this.addAll(W)};
_.p=B1.prototype;_.p.getCount=function(){return this.JSC$10154_map_.size};
_.p.getValues=function(){return Array.from(this.JSC$10154_map_.values())};
_.p.getKeys=function(){return Array.from(this.JSC$10154_map_.keys())};
_.p.containsKey=function(W){return this.JSC$10154_map_.has(W)};
_.p.containsValue=function(W){return this.getValues().some(function(B){return B==W})};
_.p.equals=function(W,B){var z=this;B=B===void 0?function(G,Y){return G===Y}:B;
return this===W?!0:this.JSC$10154_map_.size!=W.getCount()?!1:this.getKeys().every(function(G){return B(z.JSC$10154_map_.get(G),W.get(G))})};
_.p.isEmpty=function(){return this.JSC$10154_map_.size==0};
_.p.clear=function(){this.JSC$10154_map_.clear()};
_.p.remove=function(W){return this.JSC$10154_map_.delete(W)};
_.p.get=function(W,B){return this.JSC$10154_map_.has(W)?this.JSC$10154_map_.get(W):B};
_.p.set=function(W,B){this.JSC$10154_map_.set(W,B);return this};
_.p.addAll=function(W){if(W instanceof B1){W=_.A(W.JSC$10154_map_);for(var B=W.next();!B.done;B=W.next()){var z=_.A(B.value);B=z.next().value;z=z.next().value;this.JSC$10154_map_.set(B,z)}}else if(W)for(W=_.A(Object.entries(W)),B=W.next();!B.done;B=W.next())z=_.A(B.value),B=z.next().value,z=z.next().value,this.JSC$10154_map_.set(B,z)};
_.p.forEach=function(W,B){var z=this;B=B===void 0?this:B;this.JSC$10154_map_.forEach(function(G,Y){return W.call(B,G,Y,z)})};
_.p.clone=function(){return new B1(this)};(function(){for(var W=["ms","moz","webkit","o"],B,z=0;B=W[z]&&!_.Yt.requestAnimationFrame;++z)_.Yt.requestAnimationFrame=_.Yt[B+"RequestAnimationFrame"],_.Yt.cancelAnimationFrame=_.Yt[B+"CancelAnimationFrame"]||_.Yt[B+"CancelRequestAnimationFrame"];if(!_.Yt.requestAnimationFrame){var G=0;_.Yt.requestAnimationFrame=function(Y){var d=(new Date).getTime(),E=Math.max(0,16-(d-G));G=d+E;return _.Yt.setTimeout(function(){Y(d+E)},E)};
_.Yt.cancelAnimationFrame||(_.Yt.cancelAnimationFrame=function(Y){clearTimeout(Y)})}})();
var f_R=[[],[]],OgM=0,XV9=!1,KgR=0,e3U=function(W,B){var z=KgR++,G={measureTask:{id:z,fn:W.measure,context:B},mutateTask:{id:z,fn:W.mutate,context:B},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(G.args||(G.args=[]),G.args.length=0,G.args.push.apply(G.args,arguments),G.args.push(G.state)):G.args&&G.args.length!=0?(G.args[0]=G.state,G.args.length=1):G.args=[G.state];G.isScheduled||(G.isScheduled=!0,f_R[OgM].push(G));XV9||(XV9=!0,window.requestAnimationFrame(uG6))}},uG6=
function(){XV9=!1;
var W=f_R[OgM],B=W.length;OgM=(OgM+1)%2;for(var z,G=0;G<B;++G){z=W[G];var Y=z.measureTask;z.isScheduled=!1;Y.fn&&Y.fn.apply(Y.context,z.args)}for(G=0;G<B;++G)z=W[G],Y=z.mutateTask,z.isScheduled=!1,Y.fn&&Y.fn.apply(Y.context,z.args),z.state={};W.length=0};var mX6=_.ak(["about:blank"]),xXu=_.ak(["javascript:undefined"]),DXM=_.sY(mX6);_.jN(DXM);var QeT=_.sY(xXu);_.jN(QeT);var zu=function(W){_.Ka.call(this);this.JSC$10160_element_=W;this.listenKeyIn_=_.ug(this.JSC$10160_element_,"focus",this,!0);this.listenKeyOut_=_.ug(this.JSC$10160_element_,"blur",this,!0)};
_.TC(zu,_.Ka);zu.prototype.handleEvent=function(W){var B=new _.j1(W.event_);B.type=W.type=="focusin"||W.type=="focus"?"focusin":"focusout";this.dispatchEvent(B)};
zu.prototype.disposeInternal=function(){zu.superClass_.disposeInternal.call(this);OV(this.listenKeyIn_);OV(this.listenKeyOut_);delete this.JSC$10160_element_};var yD7=function(W,B){this.JSC$10163_element_=W;this.JSC$10163_dom_=B};var Gu=function(W,B){U5.call(this,B);this.useIframeMask_=!!W;this.lastFocus_=null;this.resizeBackgroundTask_=e3U({mutate:this.resizeBackground_},this);e3U({mutate:this.updateModalAndBackground_},this)};
_.TC(Gu,U5);_.p=Gu.prototype;_.p.focusHandler_=null;_.p.visible_=!1;_.p.bgEl_=null;_.p.bgIframeEl_=null;_.p.tabCatcherElement_=null;_.p.backwardTabWrapInProgress_=!1;_.p.getCssClass=function(){return"goog-modalpopup"};
_.p.getBackgroundElement=function(){return this.bgEl_};
_.p.JSC$10144_createDom=function(){Gu.superClass_.JSC$10144_createDom.call(this);var W=this.getElement(),B=J0(this.getCssClass()).split(" ");dd(W,B);W.tabIndex=0;_.R0(W,!1);qER(this);nbR(this)};
var qER=function(W){if(W.useIframeMask_&&!W.bgIframeEl_){var B=W.JSC$10142_dom_.JSC$9329_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.WG(B,DXM);W.bgIframeEl_=B;W.bgIframeEl_.className=W.getCssClass()+"-bg";_.R0(W.bgIframeEl_,!1);e1u(W.bgIframeEl_,0)}W.bgEl_||(W.bgEl_=W.JSC$10142_dom_.JSC$9329_createDom("DIV",W.getCssClass()+"-bg"),_.R0(W.bgEl_,!1))},nbR=function(W){W.tabCatcherElement_||(W.tabCatcherElement_=W.JSC$10142_dom_.createElement("SPAN"),_.R0(W.tabCatcherElement_,
!1),W.tabCatcherElement_.tabIndex=0,W.tabCatcherElement_.style.position="absolute")};
_.p=Gu.prototype;_.p.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.p.canDecorate=function(W){return!!W&&W.tagName=="DIV"};
_.p.decorateInternal=function(W){Gu.superClass_.decorateInternal.call(this,W);W=J0(this.getCssClass()).split(" ");dd(this.getElement(),W);qER(this);nbR(this);this.getElement().tabIndex=0;_.R0(this.getElement(),!1)};
_.p.enterDocument=function(){this.bgIframeEl_&&_.qD(this.bgIframeEl_,this.getElement());_.qD(this.bgEl_,this.getElement());Gu.superClass_.enterDocument.call(this);_.nf(this.tabCatcherElement_,this.getElement());this.focusHandler_=new zu(this.JSC$10142_dom_.JSC$9327_document_);Me(this).listen(this.focusHandler_,"focusin",this.onFocus);N24(this,!1)};
_.p.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.AI(this.focusHandler_);Gu.superClass_.exitDocument.call(this);_.o0(this.bgIframeEl_);_.o0(this.bgEl_);_.o0(this.tabCatcherElement_)};
_.p.setVisible=function(W){if(W!=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_&&N24(this,W),W){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10142_dom_.JSC$9327_document_.activeElement}catch(Y){}this.updateModalAndBackground_();Me(this).listen(this.JSC$10142_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10142_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);$X9(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)f8(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Me(this).unlisten(this.JSC$10142_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10142_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)f8(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var B=this.JSC$10142_dom_,z=B.JSC$9327_document_.body,G=B.JSC$9327_document_.activeElement||z;if(!this.lastFocus_||this.lastFocus_==z){this.lastFocus_=null;break a}(G==z||B.contains(this.getElement(),G))&&this.lastFocus_.focus()}catch(Y){}this.lastFocus_=
null}}};
var N24=function(W,B){W.modalAriaVisibilityHelper_||(W.modalAriaVisibilityHelper_=new yD7(W.JSC$10142_element_,W.JSC$10142_dom_));W=W.modalAriaVisibilityHelper_;if(B){W.hiddenElements_||(W.hiddenElements_=[]);B=W.JSC$10163_dom_.getChildren(W.JSC$10163_dom_.JSC$9327_document_.body);for(var z=0;z<B.length;z++){var G=B[z],Y;if(Y=G!=W.JSC$10163_element_)Y=G.getAttribute("aria-hidden"),Y=!(Y==null||Y==void 0?0:String(Y));Y&&(aA(G,"hidden",!0),W.hiddenElements_.push(G))}}else if(W.hiddenElements_){for(B=
0;B<W.hiddenElements_.length;B++)W.hiddenElements_[B].removeAttribute("aria-hidden");W.hiddenElements_=null}};
Gu.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var $X9=function(W,B){W.bgIframeEl_&&_.R0(W.bgIframeEl_,B);W.bgEl_&&_.R0(W.bgEl_,B);_.R0(W.getElement(),B);_.R0(W.tabCatcherElement_,B)};
_.p=Gu.prototype;_.p.onShow=function(){this.dispatchEvent("show")};
_.p.onHide=function(){$X9(this,!1);this.dispatchEvent("hide")};
_.p.isVisible=function(){return this.visible_};
_.p.focus=function(){this.focusElement_()};
_.p.resizeBackground_=function(){this.bgIframeEl_&&_.R0(this.bgIframeEl_,!1);this.bgEl_&&_.R0(this.bgEl_,!1);var W=this.JSC$10142_dom_.JSC$9327_document_;var B=_.Fi(QY(this.JSC$10142_dom_.JSC$9327_document_)||window);var z=Math.max(B.width,Math.max(W.body.scrollWidth,W.documentElement.scrollWidth));W=Math.max(B.height,Math.max(W.body.scrollHeight,W.documentElement.scrollHeight));this.bgIframeEl_&&(_.R0(this.bgIframeEl_,!0),_.OO7(this.bgIframeEl_,z,W));this.bgEl_&&(_.R0(this.bgEl_,!0),_.OO7(this.bgEl_,
z,W))};
_.p.reposition=function(){var W;if(_.fiR(this.getElement())=="fixed")var B=W=0;else B=Sw(this.JSC$10142_dom_),W=B.x,B=B.y;var z=K0U(this.getElement());var G=_.Fi(QY(this.JSC$10142_dom_.JSC$9327_document_)||window);W=Math.max(W+G.width/2-z.width/2,0);B=Math.max(B+G.height/2-z.height/2,0);af(this.getElement(),W,B);af(this.tabCatcherElement_,W,B)};
_.p.onFocus=function(W){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():W.target==this.tabCatcherElement_&&Dk(this.focusElement_,0,this)};
_.p.focusElement_=function(){try{this.getElement().focus()}catch(W){}};
_.p.disposeInternal=function(){_.AI(this.popupShowTransition_);this.popupShowTransition_=null;_.AI(this.popupHideTransition_);this.popupHideTransition_=null;_.AI(this.bgShowTransition_);this.bgShowTransition_=null;_.AI(this.bgHideTransition_);this.bgHideTransition_=null;Gu.superClass_.disposeInternal.call(this)};var QJ=function(W,B,z){Gu.call(this,B,z);this.JSC$10173_class_=W||"modal-dialog";this.buttons_=(new YL).addButton(LgF,!0).addButton(UXQ,!1,!0)};
_.TC(QJ,Gu);_.p=QJ.prototype;_.p.escapeToCancel_=!0;_.p.hasTitleCloseButton_=!0;_.p.modal_=!0;_.p.draggable_=!0;_.p.backgroundElementOpacity_=.5;_.p.title_="";_.p.JSC$10175_dragger_=null;_.p.JSC$10175_disposeOnHide_=!1;_.p.titleEl_=null;_.p.titleTextEl_=null;_.p.titleTextId_=null;_.p.titleCloseEl_=null;_.p.contentEl_=null;_.p.buttonEl_=null;_.p.getCssClass=function(){return this.JSC$10173_class_};
_.p.setTitle=function(W){this.title_=W;this.titleTextEl_&&_.$i(this.titleTextEl_,W)};
_.p.getTitle=function(){return this.title_};
_.p.getContent=function(){return""};
_.p.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var MlH=function(W){W.getElement()||W.render();return W.getElement()};
QJ.prototype.getBackgroundElement=function(){this.getElement()||this.render();return QJ.superClass_.getBackgroundElement.call(this)};
var a_d=function(W,B){W.backgroundElementOpacity_=B;W.getElement()&&(B=W.getBackgroundElement())&&e1u(B,W.backgroundElementOpacity_)};
QJ.prototype.setDraggable=function(W){this.draggable_=W;R36(this,W&&this.inDocument_)};
QJ.prototype.handleDrag=function(){};
var R36=function(W,B){var z=J0(W.JSC$10173_class_+"-title-draggable").split(" ");W.getElement()&&(B?dd(W.titleEl_,z):o$R(W.titleEl_,z));B&&!W.JSC$10175_dragger_?(B=new _.RA(W.getElement(),W.titleEl_),W.JSC$10175_dragger_=B,dd(W.titleEl_,z),_.ug(W.JSC$10175_dragger_,"start",W.setDraggerLimits_,!1,W),_.ug(W.JSC$10175_dragger_,"drag",W.handleDrag,!1,W)):!B&&W.JSC$10175_dragger_&&(W.JSC$10175_dragger_.dispose(),W.JSC$10175_dragger_=null)};
_.p=QJ.prototype;
_.p.JSC$10144_createDom=function(){QJ.superClass_.JSC$10144_createDom.call(this);var W=this.getElement(),B=this.JSC$10142_dom_;this.titleTextId_=this.getId();var z=this.getId()+".contentEl";this.titleEl_=B.JSC$9329_createDom("DIV",this.JSC$10173_class_+"-title",this.titleTextEl_=B.JSC$9329_createDom("SPAN",{className:this.JSC$10173_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=B.JSC$9329_createDom("SPAN",this.JSC$10173_class_+"-title-close"));VfM(W,this.titleEl_,this.contentEl_=
B.JSC$9329_createDom("DIV",{className:this.JSC$10173_class_+"-content",id:z}),this.buttonEl_=B.JSC$9329_createDom("DIV",this.JSC$10173_class_+"-buttons"));obR(this.titleTextEl_,"heading");obR(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;aA(this.titleCloseEl_,"label","Close");obR(W,"dialog");aA(W,"labelledby",this.titleTextId_||"");_.R0(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(W=this.buttons_,W.JSC$10176_element_=this.buttonEl_,W.render());_.R0(this.buttonEl_,!!this.buttons_);
a_d(this,this.backgroundElementOpacity_)};
_.p.decorateInternal=function(W){QJ.superClass_.decorateInternal.call(this,W);W=this.getElement();var B=this.JSC$10173_class_+"-content";this.contentEl_=e7(document,null,B,W)[0];this.contentEl_||(this.contentEl_=this.JSC$10142_dom_.JSC$9329_createDom("DIV",B),W.appendChild(this.contentEl_));B=this.JSC$10173_class_+"-title";var z=this.JSC$10173_class_+"-title-text",G=this.JSC$10173_class_+"-title-close";(this.titleEl_=e7(document,null,B,W)[0])?(this.titleTextEl_=e7(document,null,z,this.titleEl_)[0],
this.titleCloseEl_=e7(document,null,G,this.titleEl_)[0]):(this.titleEl_=this.JSC$10142_dom_.JSC$9329_createDom("DIV",B),W.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=HOU(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.xi("SPAN",{className:z,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;aA(W,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10142_dom_.JSC$9329_createDom("SPAN",G),this.titleEl_.appendChild(this.titleCloseEl_));_.R0(this.titleCloseEl_,this.hasTitleCloseButton_);B=this.JSC$10173_class_+"-buttons";(this.buttonEl_=e7(document,null,B,W)[0])?(this.buttons_=new YL(this.JSC$10142_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10142_dom_.JSC$9329_createDom("DIV",B),W.appendChild(this.buttonEl_),this.buttons_&&(W=this.buttons_,W.JSC$10176_element_=this.buttonEl_,W.render()),_.R0(this.buttonEl_,
!!this.buttons_));a_d(this,this.backgroundElementOpacity_)};
_.p.enterDocument=function(){QJ.superClass_.enterDocument.call(this);Me(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Me(this).listen(this.buttonEl_,"click",this.onButtonClick_);R36(this,this.draggable_);Me(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var W=this.getElement();obR(W,"dialog");this.titleTextEl_.id!==""&&aA(W,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){W=this.JSC$10142_dom_;
var B=this.getBackgroundElement();W.removeNode(this.bgIframeEl_);W.removeNode(B)}this.isVisible()&&N24(this,!1)}};
_.p.exitDocument=function(){this.isVisible()&&this.setVisible(!1);R36(this,!1);QJ.superClass_.exitDocument.call(this)};
_.p.setVisible=function(W){W!=this.isVisible()&&(this.inDocument_||this.render(),QJ.superClass_.setVisible.call(this,W))};
_.p.onShow=function(){QJ.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.p.onHide=function(){QJ.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10175_disposeOnHide_&&this.dispose()};
_.p.setDraggerLimits_=function(){var W=this.JSC$10142_dom_.JSC$9327_document_,B=_.Fi(QY(W)||window),z=Math.max(W.body.scrollWidth,B.width);W=Math.max(W.body.scrollHeight,B.height);var G=K0U(this.getElement());_.fiR(this.getElement())=="fixed"?this.JSC$10175_dragger_.limits=new Lf(0,0,Math.max(0,B.width-G.width),Math.max(0,B.height-G.height)):this.JSC$10175_dragger_.limits=new Lf(0,0,z-G.width,W-G.height)};
_.p.onTitleCloseClick_=function(){WET(this)};
var WET=function(W){if(W.hasTitleCloseButton_){var B=W.buttons_,z=B&&B.cancelButton_;z?(B=B.get(z),W.dispatchEvent(new dR(z,B))&&W.setVisible(!1)):W.setVisible(!1)}},B76=function(W){W.hasTitleCloseButton_=!1;
W.titleCloseEl_&&_.R0(W.titleCloseEl_,W.hasTitleCloseButton_)};
QJ.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;QJ.superClass_.disposeInternal.call(this)};
QJ.prototype.onButtonClick_=function(W){a:{for(W=W.target;W!=null&&W!=this.buttonEl_;){if(W.tagName=="BUTTON")break a;W=W.parentNode}W=null}if(W&&!W.disabled){W=W.name;var B=this.buttons_.get(W);this.dispatchEvent(new dR(W,B))&&this.setVisible(!1)}};
QJ.prototype.onKey_=function(W){var B=!1,z=!1,G=this.buttons_,Y=W.target;if(W.type=="keydown")if(this.escapeToCancel_&&W.keyCode==27){var d=G&&G.cancelButton_;Y=Y.tagName=="SELECT"&&!Y.disabled;d&&!Y?(z=!0,B=G.get(d),B=this.dispatchEvent(new dR(d,B))):Y||(B=!0)}else{if(W.keyCode==9&&W.shiftKey&&Y==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(g){}Dk(this.resetBackwardTabWrap_,0,this)}}else if(W.keyCode==13){if(Y.tagName=="BUTTON"&&!Y.disabled)d=Y.name;
else if(Y==this.titleCloseEl_)WET(this);else if(G){var E=G.defaultButton_,v;if(v=E)a:{v=hI("BUTTON",G.JSC$10176_element_);for(var c,J=0;c=v[J];J++)if(c.name==E||c.id==E){v=c;break a}v=null}Y=(Y.tagName=="TEXTAREA"||Y.tagName=="SELECT"||Y.tagName=="A")&&!Y.disabled;!v||v.disabled||Y||(d=E)}d&&G&&(z=!0,B=this.dispatchEvent(new dR(d,String(G.get(d)))))}else Y!=this.titleCloseEl_||W.keyCode!=32&&W.key!=" "||WET(this);if(B||z)W.stopPropagation(),W.preventDefault();B&&this.setVisible(!1)};
var dR=function(W,B){this.type="dialogselect";this.key=W;this.caption=B};
_.TC(dR,_.bK);var YL=function(W){B1.call(this);W||bf();this.cancelButton_=this.JSC$10176_element_=this.defaultButton_=null};
_.TC(YL,B1);_.p=YL.prototype;_.p.clear=function(){B1.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.p.set=function(W,B,z,G){B1.prototype.set.call(this,W,B);z&&(this.defaultButton_=W);G&&(this.cancelButton_=W);return this};
_.p.addButton=function(W,B,z){return this.set(W.key,W.caption,B,z)};
_.p.render=function(){if(this.JSC$10176_element_){_.A6(this.JSC$10176_element_,gbQ);var W=bf(this.JSC$10176_element_);this.forEach(function(B,z){B=W.JSC$9329_createDom("BUTTON",{name:z},B);z==this.defaultButton_&&(B.className="goog-buttonset-default");this.JSC$10176_element_.appendChild(B)},this)}};
_.p.decorate=function(W){if(W&&W.nodeType==1){this.JSC$10176_element_=W;W=hI("BUTTON",this.JSC$10176_element_);for(var B,z,G,Y=0;B=W[Y];Y++)if(z=B.name||B.id,G=HOU(B)||B.value,z){var d=Y==0;this.set(z,G,d,B.name=="cancel");d&&_.Ev(B,"goog-buttonset-default")}}};
_.p.getElement=function(){return this.JSC$10176_element_};
var LgF={key:"ok",caption:"OK"},UXQ={key:"cancel",caption:"Cancel"},z5M={key:"yes",caption:"Yes"},GiD={key:"no",caption:"No"},Yc9={key:"save",caption:"Save"},dlQ={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new YL).addButton(LgF,!0,!0),(new YL).addButton(LgF,!0).addButton(UXQ,!1,!0),(new YL).addButton(z5M,!0).addButton(GiD,!1,!0),(new YL).addButton(z5M).addButton(GiD,!0).addButton(UXQ,!1,!0),(new YL).addButton(dlQ).addButton(Yc9).addButton(UXQ,!0,!0));_.TC(dX8,QJ);_.TC(pV8,yJ);var pTH=_.ak(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),AXR=_.ak(["//apis.google.com/js/rpc.js"]),JDQ=_.sY(pTH),VlQ=_.sY(AXR),igu=null;var q5=function(W,B){_.Ka.call(this);this.JSC$10185_element_=W;W=_.MX(this.JSC$10185_element_)?this.JSC$10185_element_:this.JSC$10185_element_?this.JSC$10185_element_.body:null;this.isRtl_=!!W&&_.mf4(W);this.listenKey_=_.ug(this.JSC$10185_element_,_.gb?"DOMMouseScroll":"mousewheel",this,B)};
_.TC(q5,_.Ka);q5.prototype.handleEvent=function(W){var B=0,z=0,G=W.event_;G.type=="mousewheel"?(W=iGd(-G.wheelDelta),G.wheelDeltaX!==void 0?(B=iGd(-G.wheelDeltaX),z=iGd(-G.wheelDeltaY)):z=W):(W=G.detail,W>100?W=3:W<-100&&(W=-3),G.axis!==void 0&&G.axis===G.HORIZONTAL_AXIS?B=W:z=W);typeof this.maxDeltaX_==="number"&&(B=_.eT(B,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(z=_.eT(z,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(B=-B);B=new EEQ(W,G,B,z);this.dispatchEvent(B)};
var iGd=function(W){return _.ts&&(_.uYx||my8)&&W%40!=0?W:W/40};
q5.prototype.disposeInternal=function(){q5.superClass_.disposeInternal.call(this);OV(this.listenKey_);this.listenKey_=null};
var EEQ=function(W,B,z,G){_.j1.call(this,B);this.type="mousewheel";this.detail=W;this.deltaX=z;this.deltaY=G};
_.TC(EEQ,_.j1);_.Yn=function(W){var B="instance_";if(W.instance_&&W.hasOwnProperty(B))return W.instance_;B=new W;return W.instance_=B};var wVy;var T76=_.ak(["https://about:blank"]),vEH=_.ak(['javascript:""']),cXu=_.ak(["about:blank"]);_.TC(W5,dX8);_.p=W5.prototype;_.p.JSC$10193_url_="";_.p.JSC$10193_iframe_=null;_.p.iframeLoaded_=!1;_.p.loadedFired_=!1;_.p.callback_=function(){};
_.p.enterDocument=function(){W5.superClass_.enterDocument.call(this);vb0(this.getBackgroundElement(),Me(this))};
_.p.render=function(W){var B=this;W5.superClass_.render.call(this,W);this.useGapi_?cDF(this.iframeManager_,window).then(function(){return wTR(B)}).then(null,function(){B.callback_({action:"error"})}):VyR(this)};
var wTR=function(W){var B=W.JSC$10142_dom_.JSC$9329_createDom("div",["picker-dialog-content","picker-frame"]);_.R0(B,!1);W.getContentElement().appendChild(B);return wVQ(W.iframeManager_,B,function(z){var G=bmH(z["iframe-command"]);switch(G.getCommand()){case 1:z=W.callback_;G=_.AD(G,JG,2);var Y="";switch(G.getStatus()){case 2:Y="cancel";break;case 1:Y="picked";break;case 3:Y="error"}var d=_.TP(G,b0,2,_.vC(T_D));G=d.length===0?{action:Y}:NOM(d,Y,_.AD(G,Hm4,7));z.call(W,G);W.setVisible(!1);break;case 4:B76(W);
W.callback_({action:"loaded"});break;case 7:case 8:z=W.callback_;a:{Y=G.getCommand();d=_.AD(G,JG,2);switch(Y){case 7:Y="uploadScheduled";break;case 8:Y="uploadStateChange";break;default:G={};break a}G=_.TP(d,b0,2,_.vC(T_D));if(G.length===0)G={action:Y};else{var E=_.AD(d,Hm4,7);d=E&&_.KV(E,1);E=XSH(E);G=etM(G,Y,d,E)}}z.call(W,G)}},W.JSC$10193_url_,W.targetId_,W.rpcToken_).then(function(z){W.JSC$10193_iframe_=z.getIframeEl();
JX4(W);_.R0(W.JSC$10193_iframe_.parentElement,!0);_.Ev(W.getElement(),"picker-dialog");gEF(W);return z})},VyR=function(W){W.JSC$10193_iframe_=W.JSC$10142_dom_.JSC$9329_createDom("IFRAME",{id:W.targetId_,
name:W.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.WG(W.JSC$10193_iframe_,tyM(W));_.Ev(W.getElement(),"picker-dialog");W.getContentElement().appendChild(W.JSC$10193_iframe_);Me(W).listen(W.JSC$10193_iframe_,"load",function(){return void JX4(W)});
W.JSC$10193_iframe_.src=W.JSC$10193_url_;gEF(W)},Pp9=function(W){sgF(W,(0,_.jk)(function(B){B.setAuthToken(this.targetId_,this.rpcToken_)},W))},gEF=function(W){var B=_.M5(_.Uk(W.JSC$10193_url_),"title");
B&&W.setTitle(B)},tyM=function(W){return _.VQy("Internet Explorer")>=7&&_.A0(W.JSC$10193_url_,"https")?_.sY(T76):_.Js?_.sY(vEH):_.sY(cXu)},JX4=function(W){Pp9(W);
W.iframeLoaded_=!0;W.JSC$10193_iframe_.tabIndex=0;W.isVisible()&&W.focus()};
W5.prototype.handleKeydown_=function(W){W.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),W.stopPropagation(),W.preventDefault())};
var sgF=function(W,B){var z=W.JSC$10191_gadgetsDomHelper_;Ebt(function(){B(z.getWindow().gadgets.rpc)},z)};
W5.prototype.setUrl=function(W){W=_.a0(new _.B0(W),"rpcService",this.targetId_);_.a0(W,"rpctoken",this.rpcToken_);_.Pr(W,"rpctoken="+this.rpcToken_);_.VS(W,"https");this.JSC$10193_url_=W.toString();this.JSC$10193_iframe_&&(this.JSC$10193_iframe_.src=this.JSC$10193_url_)};
var ZGQ=function(W,B){W.callback_=B;sgF(W,(0,_.jk)(function(z){z.register(this.targetId_,(0,_.jk)(this.handlePickerAction_,this))},W))};
W5.prototype.handlePickerAction_=function(W){var B=W.action;B=="loaded"&&(this.loadedFired_=!0,rXu(this,new xnR(this.isVisible())),kiF(this),B76(this),Me(this).unlisten(this.JSC$10142_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10193_iframe_.tabIndex=0);B!="picked"&&B!="cancel"||this.setVisible(!1);this.callback_(W)};
var kiF=function(W){W.JSC$10193_appId_&&rXu(W,new mn2(W.JSC$10193_appId_,window.location.protocol+"//"+window.location.host))};
W5.prototype.setRelayUrl=function(W){sgF(this,(0,_.jk)(function(B){B.setRelayUrl(this.targetId_,W)},this))};
var rXu=function(W,B){W.useGapi_&&se9(B,W.iframeManager_).then(null,function(){W.callback_({action:"error"})});
sgF(W,(0,_.jk)(function(z){z.call(this.targetId_,"picker",null,B)},W))};
W5.prototype.resizePicker_=function(){var W=QY(this.JSC$10142_dom_.JSC$9327_document_)||window;if(_.M5(_.Uk(this.JSC$10193_url_),"ignoreLimits")=="true")W=new _.hv(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.M5(_.Uk(this.JSC$10193_url_),"shadeDialog")=="true"){var B=MlH(this);B=xf4(B);var z=_.Fi(W);W=z.width-80;z=z.height-40;B&&(W-=B.left?B.left:0,W-=B.right?B.right:0,z-=B.top?B.top:0,z-=B.bottom?B.bottom:0);W=new _.hv(W>0?W:0,z>0?z:0)}else(B=this.preferredDialogWidth_)?(B=Math.max(320,
Math.min(1051,B)),(z=this.preferredDialogHeight_)||(z=_.Fi(W).height*.85),z=Math.max(480,Math.min(650,z))):(B=_.Fi(W),z=B.width*.618,z=z<B.height?Math.round(Math.max(480,Math.min(650,z*.85))):Math.round(Math.max(480,Math.min(650,B.height*.85))),B=Math.round(z/.618)),W=_.Fi(W),B=Math.min(B,Math.max(W.width,320)),z=Math.min(z,Math.max(W.height,480)),W=new _.hv(B,z);_.OO7(this.getContentElement(),W);this.reposition()};
W5.prototype.reposition=function(){if(_.M5(_.Uk(this.JSC$10193_url_),"shadeDialog")=="true"){var W=K0U(this.getElement()),B=_.Fi(this.JSC$10142_dom_.getWindow());W=Math.floor(B.width/2-W.width/2);B=MlH(this);if(B=xf4(B)){var z=B.left?B.left:0;z+=B.right?B.right:0;W=Math.floor(W-z/2)}W=W>0?W:0;B=Sw(this.JSC$10142_dom_).y;af(this.getElement(),W,B)}else W5.superClass_.reposition.call(this)};
W5.prototype.setVisible=function(W){if(W!=this.isVisible()&&this.autoSizeDialog_){var B=this.JSC$10142_dom_.getWindow();W?(this.resizePicker_(),Me(this).listen(B,"resize",this.resizePicker_),this.iframeLoaded_||Me(this).listen(B,"keydown",this.handleKeydown_)):(Me(this).unlisten(B,"resize",this.resizePicker_),this.iframeLoaded_||Me(this).unlisten(B,"keydown",this.handleKeydown_))}W5.superClass_.setVisible.call(this,W);rXu(this,new xnR(W))};
W5.prototype.focus=function(){W5.superClass_.focus.call(this);if(this.JSC$10193_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10193_iframe_.focus()}catch(W){}};var q_=function(W,B){B=B===void 0?W5:B;yJ.call(this,W);this.pickerConstructor=B;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(W=window.location.origin)||(W=window.location.protocol+"//"+window.location.host);W&&this.urlParamMap_.set("origin",W);this.postProcessors_=[]};
_.C(q_,pV8);q_.prototype.JSC$10198_disposeOnHide_=!1;
q_.prototype.build=function(){this.JSC$10099_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10099_appId_);this.getRelayUrl()||this.setRelayUrl(_.t4(_.Pr(_.s5(_.Uk(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var W=new this.pickerConstructor(lDR(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);W.JSC$10175_disposeOnHide_=this.JSC$10198_disposeOnHide_;
W.JSC$10193_appId_=this.JSC$10099_appId_;W.loadedFired_&&kiF(W);ZGQ(W,this.callback_);return W};
var CpD=function(W){W.urlParamMap_.set("multiselectEnabled","true");return W};
_.p=q_.prototype;_.p.getHeight=function(){return this.dialogHeight_};
_.p.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.p.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.p.getTitle=function(){return this.urlParamMap_.get("title")};
_.p.getWidth=function(){return this.dialogWidth_};
var IDH=function(W){W.JSC$10198_disposeOnHide_=void 0;return W};
q_.prototype.setRelayUrl=function(W){this.urlParamMap_.set("parent",W);return this};
var oEM=function(W,B){W.urlParamMap_.set("selectButtonLabel",B);return W};
q_.prototype.setSize=function(W,B){this.dialogWidth_=W;this.dialogHeight_=B;return this};
q_.prototype.setTitle=function(W){this.urlParamMap_.set("title",W);return this};
var lDR=function(W){W.postProcessors_.length&&W.urlParamMap_.set("pp",JSON.stringify(W.postProcessors_));W.urlParamMap_.set("nav",b47(W.nav_));var B=new _.B0(W.getBaseUrl());W.urlParamMap_.forEach(function(z,G){_.a0(B,G,z)});
return B};var FEQ=function(W,B){W.name!==void 0?(this.name=W.name,this.code=h5d[W.name]):(this.code=W=W.code,this.name=HG7(W));_.zT.call(this,MQF("%s %s",this.name,B))};
_.TC(FEQ,_.zT);var HG7=function(W){var B=_.mP.findKey(h5d,function(z){return W==z});
if(B===void 0)throw Error("hb`"+W);return B},pw={},h5d=(pw.AbortError=3,pw.EncodingError=5,pw.InvalidModificationError=9,pw.InvalidStateError=7,pw.NotFoundError=1,pw.NotReadableError=4,pw.NoModificationAllowedError=6,pw.PathExistsError=12,pw.QuotaExceededError=10,pw.SecurityError=2,pw.SyntaxError=8,pw.TypeMismatchError=11,pw);var Sc7=function(W,B){_.bK.call(this,W.type,B);this.event_=W};
_.TC(Sc7,_.bK);var bGu=function(W,B,z){z===void 0&&(z=W.size);return W.slice?W.slice(B,z):null};var sev=new WeakMap,tlv=function(W,B){W=[W];for(var z=B.length-1;z>=0;--z)W.push(typeof B[z],B[z]);return W.join("\v")};_.Zg8(function(){if(!_.Yt.Blob)return!1;var W=new Uint8Array(100);try{var B=new Blob([W])}catch(z){return!1}return B.size!=100?!1:!0});
var jgH=_.Zg8(function(){if(!_.Yt.Blob)return!1;var W=new Uint8Array(100);try{var B=new Blob([W])}catch(z){return!1}return bGu(B,0,1)===null?!1:!0});_.Yt.U3bHHf!=null||(_.Yt.U3bHHf=0);_.Yt.U3bHHf++;_.fDF=new WeakMap;_.OGR=new WeakMap;var kU0={};var Gt=void 0;var C2v=Symbol("pb");var uGT=pR("WizInjectionContext_Dispatcher");var YhR=Symbol("qb");var PR,Cx;PR=function(){this.afterRenderCallbacks=null};
_.p0T=Symbol("rb");Cx=function(W){this.props=W;this.__unmounted=!1};
Cx.prototype.didPatch=function(){};
Cx.prototype.didMount=function(){};
Cx.prototype.didUnmount=function(){};
Cx.prototype.didUpdate=function(){};_.jex=pR("WizInjectionContext_RootElement");var Ogt=pR("WizInjectionContext_AppContext"),f_x=pR("WizInjectionContext_ModelRootElement"),XVv=pR("WizInjectionContext_RendererData"),Kgx=pR("WizInjectionContext_InjectingConstructor"),bgR=pR("WizInjectionContext_AsyncDeps"),e3k={};var qEx=!1;var LgX={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:bTX,enableLazyTsx:jiQ,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:SHR,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var iE=Object.assign({},{attributes:{},handleError:function(W){throw W;}},LgX);var XTM=Symbol("vb"),lE=Symbol("wb"),qcQ=Symbol("xb"),QgR=Symbol("yb"),aDQ=f7(function(W){return Ed(W)&&XTM in W});var z5t=Symbol("zb"),A1={},WER=(A1[z5t]=!0,A1.debugName="[component]",A1.getComponentStack=function(){for(var W=[],B=this;B;)Gi8(B)&&W.push(B.debugName),B=B.parent;return W},A1.registerSignal=function(){},A1.registerEffect=function(){},A1);var Tt=null,c5=!1,AXx=1,gEX=Symbol("Db"),ZI={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var iN=Symbol("Eb"),ET=Symbol("Fb"),VB=Symbol("Gb"),JXr=Object.assign({},ZI,{value:iN,dirty:!0,error:null,equal:Ycv,kind:"computed",producerMustRecompute:function(W){return W.value===iN||W.value===ET},
producerRecomputeValue:function(W){if(W.value===ET)throw Error("Z");var B=W.value;W.value=ET;var z=cXD(W),G=!1;try{var Y=W.computation();v5(null);G=B!==iN&&B!==VB&&Y!==VB&&W.equal(B,Y)}catch(d){Y=VB,W.error=d}finally{VyQ(W,z)}G?W.value=B:(W.value=Y,W.version++)}});Object.assign({},ZI,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,kind:"effect"});var ZGy=function(){throw Error();};var kiX=null,sgX=Object.assign({},ZI,{equal:Ycv,value:void 0,kind:"signal"});Object.assign({},ZI,{value:iN,dirty:!0,error:null,equal:Ycv,kind:"linkedSignal",producerMustRecompute:function(W){return W.value===iN||W.value===ET},
producerRecomputeValue:function(W){if(W.value===ET)throw Error("Z");var B=W.value;W.value=ET;var z=cXD(W);try{var G=W.source();var Y=W.computation(G,B===iN||B===VB?void 0:{source:W.sourceValue,value:B});W.sourceValue=G}catch(d){Y=VB,W.error=d}finally{VyQ(W,z)}B!==iN&&Y!==VB&&W.equal(B,Y)?W.value=B:(W.value=Y,W.version++)}});Object.assign({},ZI,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(W){W.schedule!==null&&W.schedule(W.ref)},
hasRun:!1,cleanupFn:function(){}});var Cp8=Symbol("Hb"),ty=Symbol("Ib");var sd=Array.isArray;var fDX;var KEH={},XTt=jg2(Object.assign({},{consumerAllowSignalWrites:!0},KEH)),rY=jg2(Object.assign({},{consumerAllowSignalWrites:!0},KEH));var CR=0,Iw=!1,Tu=function(){this.queue=new Set};
Tu.prototype.schedule=function(W){this.queue.add(W)};
Tu.prototype.remove=function(W){this.queue.delete(W)};
Tu.prototype.clear=function(){this.queue.clear()};
var e5D=Symbol("Nb"),KE2=Symbol("Ob"),v1=function(){Tu.apply(this,arguments)};
_.C(v1,Tu);v1.prototype.flush=function(){if(this.queue.size){Iw=!0;for(var W=_.A(this.queue),B=W.next();!B.done;B=W.next()){B=B.value;this.queue.delete(B);try{B.run()}catch(z){uC4(z)}}Iw=!1}};
var e5u=function(){v1.apply(this,arguments)};
_.C(e5u,v1);var uCr=new e5u,mlT=function(){v1.apply(this,arguments)};
_.C(mlT,v1);mlT.prototype.schedule=function(W){var B=this;return _.T(function(z){if(z.nextAddress==1)return iE.enableQueueEffectAndOnInitInitialRuns?z.jumpTo(2):z.yield(Promise.resolve(),3);if(z.nextAddress!=2)return W.run(),z.return();B.queue.add(W);_.HG(z)})};
var mlR=new mlT,c1=function(){Tu.apply(this,arguments)};
_.C(c1,Tu);c1.prototype.flush=function(){this.queue.size&&R5R(this.queue)};
var xlD=function(){c1.apply(this,arguments)};
_.C(xlD,c1);xlD.prototype.schedule=function(W){W.hasRun?this.queue.add(W):W.run()};
xlD.prototype.flush=function(){if(this.queue.size)if(iE.flushRenderEffectsDuringRender){var W=this.queue;this.queue=new Set;R5R(W)}else R5R(this.queue)};
var DlQ=new xlD,DlR=function(){c1.apply(this,arguments)};
_.C(DlR,c1);DlR.prototype.schedule=function(W){var B=this;return _.T(function(z){if(z.nextAddress==1)return iE.enableQueueEffectAndOnInitInitialRuns||W.hasRun?z.jumpTo(2):z.yield(Promise.resolve(),3);if(z.nextAddress!=2)return W.run(),z.return();B.queue.add(W);_.HG(z)})};
var nEX=new DlR,QgT=function(){c1.apply(this,arguments)};
_.C(QgT,c1);var yX8=new QgT,$lR=[DlQ,uCr,yX8],Myx=[mlR,nEX],yXD=[DlQ,yX8,nEX],WzT=[].concat(_.u7($lR),_.u7(Myx)),qcR=[];kiX=function(){UlD();for(var W=_.A(qcR),B=W.next();!B.done;B=W.next())B=B.value,B()};
var uC4=dk;var H5=Symbol("Pb");var hy=null,GpT,Yjy=null,dA2;var wR={},nEF=Object.assign({},ZI,(wR[XTM]=!0,wR.effectType=lE,wR.isResettableContext=!0,wR.hasRun=!1,wR.effectFn=null,wR.consumerIsAlwaysLive=!0,wR.consumerAllowSignalWrites=!0,wR.consumerMarkedDirty=N7r,wR.kind="effect",wR.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(c5)throw Error("Qb");this.dirty=!1;if(!this.hasRun||iGR(this)){this.hasRun=!0;SEX(this);var W=_.Y$(this),B=cXD(this);Ml2("effectRun",this.debugName);try{bE(this.effectFn,this.componentStack,this)}catch(z){throw iE.enableContextBasedComponentStacks&&
Sa(z),z;}finally{a_R("effectRun",this.debugName),VyQ(this,B),_.Y$(W)}}}},wR.componentStack=void 0,wR.debugName="[effect]",wR[Symbol.dispose]=function(){if(w4(this))for(var W=this.producers;W!==void 0;)W=wTx(W);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;W=_.A(yXD);for(var B=W.next();!B.done;B=W.next())B.value.remove(this);FgT(this)},wR));var il0=Object.assign({},nEF,{effectType:qcQ});var EFT=Symbol("Rb");var Tqy=Object.assign({},nEF,{effectType:lE});var NqD=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 w_8={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},cjx=
{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}]}},WLk={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},gFv=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],Jjt={"*":{async:1,dir:0,loading:2,target:3}};var N74=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Vt={},ssD=(Vt[1]=null,Vt[2]=function(W,B){return B instanceof UK?R3(B):QN.toString()},Vt[3]=function(W,B){return uQ(B)?_.mF(B):N74.test(String(B))?String(B):QN.toString()},Vt[4]=function(W,B){return B instanceof SN?_.jN(B):QN.toString()},Vt[5]=function(W,B){return String(B)},Vt[7]=null,Vt[8]=null,Vt[10]=null,Vt);var wku=Symbol("Ub");var OXt=function(W){var B=$ld,z=W,G="",Y="",d=1;W<0&&(W=-W);if(W===Infinity)W=(Infinity*Math.sign(z)).toString();else{for(var E=0;E<LEU.length;E++){var v=LEU[E];d=B[v];if(W>=d||d<=1&&W>.1*d){G=v;break}}G?(G+="B",Y=" "):d=1;W=Math.round(z/d*10)/10+Y+G}return W},LEU="Y Z E P T G M K  m u n".split(" "),$ld={"":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};_.Ulu=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 cR={};RegExp.prototype.hasOwnProperty("sticky");var LzR=function(W){W=String(W);for(var B=function(G,Y,d){for(var E=Math.min(Y.length-d,G.length),v=0;v<E;v++){var c=Y[d+v];if(G[v]!==("A"<=c&&c<="Z"?c.toLowerCase():c))return!1}return!0},z=0;(z=W.indexOf("<",z))!=-1;){if(B("\x3c/script",W,z)||B("\x3c!--",W,z))return"zSoyz";
z+=1}return W};var DI={default:"__default"};var CY0=Object.prototype.hasOwnProperty;rjR.prototype=Object.create(null);var B_=h2r();var zW=null;var mAr=function(W){this.created=[];this.deleted=[];this.node=W};var xA0=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var W=this,B=W;W;)B=W,W=W.parentNode;return B};var Fzk=function(W,B){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=W;this.key=B;this.text=void 0};var Ud=null,Mw=null,nR=null,Rw=null,Ol8=[],fEr=bly,WR=[],BR=[],cEk=function(W){return DAv(function(B,z,G){nR=Mw=B;Mw=null;z(G);jsy(null);Mw=nR;nR=nR.parentNode;return B},W)}(),vlk=function(W){return DAv(function(B,z,G){var Y={nextSibling:B};
Mw=Y;z(G);nR&&jsy(B.nextSibling);return Y===Mw?null:Mw},W)}();var GW=[],yjR=0;var Yr=new rjR;var Dr=new rjR;var MyR=h2r(),aEX=MyR[DI.default],Mjy=MyR.style,$Au=["focusin","focusout"],B8R="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var mOu=function(){},hl0=function(){},qhr=function(){},DOR=function(){};var px=Symbol("bc");var Azr,pMx=dOR;var JW=Symbol("cc");var yzT=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(" ")),
Qdr=new Set(["a","font","script","style","title"]);var Vf={setUp:Zty,tearDown:Zty,log:Zty,logNodeRange:Zty,graft:function(W,B){B()}};var kr={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var ShQ=null,lk=function(W,B){Cx.call(this,W);var z=this;this.functionComponent=B;this.hooks=[];this.hookCounter=0;this.disposeEffects=Od(function(G){z.effectContext=G;_.fR(function(){jdx(z,z.el)})},iE.alwaysTrackContexts||!!Gt)};
_.C(lk,Cx);lk.prototype.render=function(W){var B=ShQ;ShQ=this;this.hookCounter=0;var z=v5(rY),G=_.Y$(this.effectContext);try{return Ml2("render",this.componentName),this.functionComponent(W)}finally{a_R("render",this.componentName),_.Y$(G),v5(z),ShQ=B}};
_.G5.Object.defineProperties(lk.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return Bqk(this.functionComponent)}}});var n62=Symbol("qc"),uRk=function(W,B,z){this.afterRenderCallbacks=null;this.kind=W;this.props=B;this.children=z};
_.C(uRk,PR);uRk.prototype.render=function(){var W=K1Q(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var B=_.A(this.afterRenderCallbacks),z=B.next();!z.done;z=B.next())z=z.value,W=z(W);return W};
uRk.prototype.getChildren=function(){return this.children};var $Oy=[];ZGy=function(W){throw Error("ob`"+W.debugName);};
(function(){var W=zW;zW=function(B){W==null||W(B);L1T(B)}})();Object.assign({},nEF,{effectType:lE,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var W=this.elementRef;var B;W.element!=null||(W.element=(B=W.document.getElementById(W.value))!=null?B:void 0);W=W.element;for(B=this.attributes;B;){var z=B.signal();z!==B.prevValue&&(B.prevValue=z,B.namespace===1?W[B.name]=z:NqD.has(B.name)?x$(W,B.name,z?"":null):x$(W,B.name,z));B=B.next}}});Object.assign({},nEF,{effectType:lE,hasRun:!0});_.V.debugName="RlDudd";var UO0={nonNullableCondIsNull:function(){return Error("vc")}};var zY0=function(){this.map=new Map};
zY0.prototype.push=function(W,B){var z=this.map;z.has(W)&&(this.multi||(this.multi=new Map),this.multi.set(B,z.get(W)));z.set(W,B)};
zY0.prototype.pop=function(W){var B=this.map,z=B.get(W),G;z!==void 0&&((G=this.multi)==null?0:G.has(z))?(B.set(W,this.multi.get(z)),this.multi.delete(z)):B.delete(W);return z};_.IJ.debugName="nsTGHd";_.oJ.debugName="tbhMcf";_.hW.debugName="zyMFzb";_.HR.debugName="vI1rtf";_.iix={OUT_OF_ORDER_HOOK_CALL:function(W){return Error("wc`"+W)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(W,B){return Error("Ac`"+((B===void 0?0:B)?"IDOM":"Reactive")+"`"+(Fq(W)?W.description:W))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(W,B){return Error("Bc`"+(Fq(W)?W.description:W)+"`"+B)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(W){return Error("Cc`"+(Fq(W)?W.description:W))},
USE_ELEMENT_NOT_ASSIGNED:function(W){return Error("Dc`"+(Fq(W)?W.description:W))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(W){return Error("Ec`"+(Fq(W)?W.description:W))}};Azr=elR;var gqy=Symbol("Fc");F1X({beforeRender:function(W){var B=_.Y$(W.effectContext);try{var z;((z=W.__syncEffects)==null?0:z.length)&&PHR(W.__syncEffects)}finally{_.Y$(B)}},
didPatch:function(W){var B=_.Y$(W.effectContext);try{var z;((z=W.__syncEffects)==null?0:z.length)&&PHR(W.__syncEffects)}finally{_.Y$(B)}},
didUnmount:function(W){var B;((B=W.hooks)==null?0:B.length)&&W.hooks.forEach(sPt)}});var aDR,R5d,Wz6;aDR=_.Yt.window;_.Xq=(aDR==null?void 0:(R5d=aDR.yt)==null?void 0:R5d.config_)||(aDR==null?void 0:(Wz6=aDR.ytcfg)==null?void 0:Wz6.data_)||{};_.BV("yt.config_",_.Xq);var BqU={},CH2=[];_.oX=function(W){var B=_.nm.apply(1,arguments);var z=Error.call(this,W);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.args=[].concat(_.u7(B));Object.setPrototypeOf(this,this.constructor.prototype)};
_.C(_.oX,Error);var KNu=function(W,B,z){this.actionName=W;this.optionalAction=B===void 0?!1:B;this.args=z===void 0?null:z;this.returnValue=[]};_.J1=function(W){this.name=W};_.mE=new _.J1("signalAction");var X0u=/^[\w.]*$/,FjR={q:!0,search_query:!0},HiX=String(hYy);var gR;gR=Symbol("Gc");_.t1=function(W){this.name=W};
_.t1.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var KjR=function(W){this.key=W},Djt=function(W){this.deferredKey=W},eYR=function(){var W=this;
this.providers=new Map;this.JSC$10492_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(W.providers)}}};
eYR.prototype.addProvider=function(W){this.providers.set(W.provide,W);var B=this.JSC$10492_deferred.get(W.provide);if(B)try{B.resolver(this.resolve(W.provide))}catch(z){B.rejector(z)}};
eYR.prototype.resolve=function(W){return W instanceof Djt?z2D(this,W):W instanceof KjR?Gp6(this,W.key,[],!0):Gp6(this,W,[])};
var z2D=function(W,B){B=B.deferredKey;if(W.JSC$10492_deferred.has(B))return W.JSC$10492_deferred.get(B).promise;var z={};z.promise=new Promise(function(G,Y){z.resolver=G;z.rejector=Y});
W.JSC$10492_deferred.set(B,z);return z.promise},Gp6=function(W,B,z,G){G=G===void 0?!1:G;
if(z.indexOf(B)>-1)throw Error("Hc`"+B);if(W.cachedValues.has(B))return W.cachedValues.get(B);if(!W.providers.has(B)){if(G)return;throw Error("Ic`"+B);}G=W.providers.get(B);z.push(B);if(G.useValue!==void 0)var Y=G.useValue;else if(G.useFactory)Y=G[gR]?YjQ(W,G[gR],z):[],Y=G.useFactory.apply(G,_.u7(Y));else if(G.useClass){Y=G.useClass;var d=Y[gR]?YjQ(W,Y[gR],z):[];Y=new (Function.prototype.bind.apply(Y,[null].concat(_.u7(d))))}else throw Error("Jc`"+B);z.pop();G.skipCache||W.cachedValues.set(B,Y);return Y},
YjQ=function(W,B,z){return B?B.map(function(G){return G instanceof KjR?Gp6(W,G.key,z,!0):Gp6(W,G,z)}):[]};var uOt;var xE=new _.t1("ENDPOINT_HANDLER_TOKEN");_.DD=new _.J1("urlEndpoint");var dAH=function(){this.data=[];this.cachedPackedInt52=-1};
dAH.prototype.set=function(W,B){B=B===void 0?!0:B;0<=W&&W<52&&Number.isInteger(W)&&this.data[W]!==B&&(this.data[W]=B,this.cachedPackedInt52=-1)};
dAH.prototype.get=function(W){return!!this.data[W]};
var p_U=function(W){W.cachedPackedInt52===-1&&(W.cachedPackedInt52=W.data.reduce(function(B,z,G){return B+(z?Math.pow(2,G):0)},0));
return W.cachedPackedInt52};var zjv=function(W){var B=AjD;W=W===void 0?_.q6("yt.ads.biscotti.lastId_")||"":W;var z=Object,G=z.assign,Y={};Y.dt=dw7;Y.flash="0";a:{try{var d=B.JSC$10498_win_.top.location.href}catch(By){d=2;break a}d=d?d===B.doc_.location.href?0:1:2}Y=(Y.frm=d,Y);try{Y.u_tz=-(new Date).getTimezoneOffset();try{var E=Br.history.length}catch(By){E=0}Y.u_his=E;var v;Y.u_h=(v=Br.screen)==null?void 0:v.height;var c;Y.u_w=(c=Br.screen)==null?void 0:c.width;var J;Y.u_ah=(J=Br.screen)==null?void 0:J.availHeight;var g;Y.u_aw=
(g=Br.screen)==null?void 0:g.availWidth;var t;Y.u_cd=(t=Br.screen)==null?void 0:t.colorDepth}catch(By){}E=B.JSC$10498_win_;try{var P=E.screenX;var Z=E.screenY}catch(By){}try{var l=E.outerWidth;var b=E.outerHeight}catch(By){}try{var O=E.innerWidth;var K=E.innerHeight}catch(By){}try{var e=E.screenLeft;var a=E.screenTop}catch(By){}try{O=E.innerWidth,K=E.innerHeight}catch(By){}try{var q=E.screen.availWidth;var n=E.screen.availTop}catch(By){}P=[e,a,P,Z,q,n,l,b,O,K];Z=JIT(!1,B.JSC$10498_win_.top);l={};
var L=L===void 0?_.Yt:L;b=new dAH;"SVGElement"in L&&"createElementNS"in L.document&&b.set(0);O=GqD();O["allow-top-navigation-by-user-activation"]&&b.set(1);O["allow-popups-to-escape-sandbox"]&&b.set(2);L.crypto&&L.crypto.subtle&&b.set(3);"TextDecoder"in L&&"TextEncoder"in L&&b.set(4);L=p_U(b);B=(l.bc=L,l.bih=Z.height,l.biw=Z.width,l.brdim=P.join(),l.vis=pRu(B.doc_),l.wgl=!!Br.WebGLRenderingContext,l);z=G.call(z,Y,B);z.ca_type="image";W&&(z.bid=W);return z},AjD=new function(){var W=window.document;
this.JSC$10498_win_=window;this.doc_=W};
_.BV("yt.ads_.signals_.getAdSignalsString",function(W){return S2T(zjv(W))});_.EL();navigator.userAgent.indexOf(" (CrKey ");var NVv="XMLHttpRequest"in _.Yt?function(){return new XMLHttpRequest}:null;var ilM="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),EF6=[].concat(_.u7(ilM),["client_dev_set_cookie"]);var Bcv={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"},UjX="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(_.u7(ilM)),vOt=!1,a4R=_.Glu,iAX=W8k;var jnk=[{messageFn:function(W){return"Cannot read property '"+W.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(W){return"Cannot call '"+W.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(W){return W.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var TqQ={messageWeights:[],callbackWeights:[{callback:Jqy,weight:500},{callback:gOD,weight:500}]};var vFD=function(){this.callbackWeights=[];this.messageWeights=[]},cjR,b20=function(){if(!cjR){var W=cjR=new vFD;
W.messageWeights.length=0;W.callbackWeights.length=0;Pck(W,TqQ)}return cjR},Pck=function(W,B){B.messageWeights&&W.messageWeights.push.apply(W.messageWeights,B.messageWeights);
B.callbackWeights&&W.callbackWeights.push.apply(W.callbackWeights,B.callbackWeights)};_.TC(_.PS,_.bA);_.PS.prototype.subscribe=function(W,B,z){var G=this.topics_[W];G||(G=this.topics_[W]=[]);var Y=this.JSC$10522_key_;this.subscriptions_[Y]=W;this.subscriptions_[Y+1]=B;this.subscriptions_[Y+2]=z;this.JSC$10522_key_=Y+3;G.push(Y);return Y};
var w_D=function(W){var B=KCv,z=!1,G=B.subscribe("handleError",function(Y){z||(z=!0,this.unsubscribeByKey(G),W.apply(void 0,arguments))},B)};
_.PS.prototype.unsubscribe=function(W,B,z){if(W=this.topics_[W]){var G=this.subscriptions_;if(W=W.find(function(Y){return G[Y+1]==B&&G[Y+2]==z}))return this.unsubscribeByKey(W)}return!1};
_.PS.prototype.unsubscribeByKey=function(W){var B=this.subscriptions_[W];if(B){var z=this.topics_[B];this.publishDepth_!=0?(this.pendingKeys_.push(W),this.subscriptions_[W+1]=function(){}):(z&&_.Dv(z,W),delete this.subscriptions_[W],delete this.subscriptions_[W+1],delete this.subscriptions_[W+2])}return!!B};
_.PS.prototype.publish=function(W,B){var z=this.topics_[W];if(z){var G=Array(arguments.length-1),Y=arguments.length,d;for(d=1;d<Y;d++)G[d-1]=arguments[d];if(this.async_)for(d=0;d<z.length;d++)Y=z[d],Vj7(this.subscriptions_[Y+1],this.subscriptions_[Y+2],G);else{this.publishDepth_++;try{for(d=0,Y=z.length;d<Y&&!this.isDisposed();d++){var E=z[d];this.subscriptions_[E+1].apply(this.subscriptions_[E+2],G)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;z=this.pendingKeys_.pop();)this.unsubscribeByKey(z)}}return d!=
0}return!1};
var Vj7=function(W,B,z){_.e1(function(){W.apply(B,z)})};
_.PS.prototype.clear=function(W){if(W){var B=this.topics_[W];B&&(B.forEach(this.unsubscribeByKey,this),delete this.topics_[W])}else this.subscriptions_.length=0,this.topics_={}};
_.PS.prototype.getCount=function(W){if(W){var B=this.topics_[W];return B?B.length:0}W=0;for(B in this.topics_)W+=this.getCount(B);return W};
_.PS.prototype.disposeInternal=function(){_.PS.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var KCv=new _.PS;var TU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(TU,_.iQ);TU.prototype.getColdHashData=function(){return _.KV(this,3)};
TU.prototype.getHotHashData=function(){return _.KV(this,5)};
TU.prototype.setHotHashData=function(W){return _.f3(this,5,W)};var F9Q=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(F9Q,_.iQ);var GN2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(GN2,_.iQ);_.p=GN2.prototype;_.p.getDeviceId=function(){return _.KV(this,6)};
_.p.getExperimentIds=function(W){var B=_.Ub(this,9,_.di,3,!0);ntt(B,W);return B[W]};
_.p.getPlayerType=function(){return _.u0(this,36)};
_.p.setHomeGroupInfo=function(W){return _.o3(this,81,W)};
_.p.clearLocationPlayabilityToken=function(){return _.EE(this,89)};var tX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(tX,_.iQ);tX.prototype.setKey=function(W){return _.f3(this,1,W)};
tX.prototype.getValue=function(){return mw(this,2,d$r)};
var d$r=[2,3,4,5,6];var JjM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(JjM,_.iQ);JjM.prototype.setTrackingParams=function(W){return _.EE(this,1,_.HQ(W,!1))};var YMx=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(YMx,_.iQ);var jEu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(jEu,_.iQ);jEu.prototype.getExperimentIds=function(W){var B=_.Ub(this,5,_.VRR,3,!0);ntt(B,W);return B[W]};var r7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(r7,_.iQ);r7.prototype.getToken=function(){return _.Cp(this,2)};
r7.prototype.setToken=function(W){return _.f3(this,2,W)};var PT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(PT,_.iQ);PT.prototype.setSafetyMode=function(W){return _.i2(this,5,W)};var g7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(g7,_.iQ);g7.prototype.setClient=function(W){return _.o3(this,1,W)};var bsu={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 Sl8;_.eW=function(){var W=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Yt.addEventListener("beforeinstallprompt",function(B){B.preventDefault();W.deferredInstallPrompt=B});
_.Yt.addEventListener("appinstalled",function(){W.appInstalledEventFired=!0},{once:!0})};
Sl8=function(){if(!_.Yt.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Yt.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Yt.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Yt.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Yt.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(W){return"WEB_DISPLAY_MODE_UNKNOWN"}};var Xg2=function(){this.syncHeaders=!0},K9k=function(W){var B={},z=[];
"USER_SESSION_ID"in _.Xq&&z.push({key:"u",value:_.eD("USER_SESSION_ID")});if(z=_.YVr(z))B.Authorization=z,z=W=W==null?void 0:W.sessionIndex,z===void 0&&(z=Number(_.eD("SESSION_INDEX",0)),z=isNaN(z)?0:z),_.r("voice_search_auth_header_removal")||(B["X-Goog-AuthUser"]=z.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Xq||(B["X-Origin"]=window.location.origin),W===void 0&&"DELEGATED_SESSION_ID"in _.Xq&&(B["X-Goog-PageId"]=_.eD("DELEGATED_SESSION_ID"));return B};var gF9={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var sT=_.q6("ytglobal.prefsUserPrefsPrefs_")||{},tjR;_.BV("ytglobal.prefsUserPrefsPrefs_",sT);_.P1=function(){this.cookieName=_.eD("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.eD("ALT_PREF_COOKIE_DOMAIN","youtube.com");var W=_.rO.get(this.cookieName,void 0);W&&this.parse(W)};
_.IP=function(){tjR||(tjR=new _.P1);return tjR};
_.P1.prototype.get=function(W,B){ssu(W);PYR(W);W=sT[W]!==void 0?sT[W].toString():null;return W!=null?W:B?B:""};
_.P1.prototype.set=function(W,B){ssu(W);PYR(W);if(B==null)throw Error("Mc");sT[W]=B.toString()};
_.P1.prototype.getFlag=function(W){return!!((ZlM("f"+(Math.floor(W/31)+1))||0)&1<<W%31)};
_.oP=function(W,B,z){W="f"+(Math.floor(B/31)+1);B=1<<B%31;var G=ZlM(W)||0;G=z?G|B:G&~B;G===0?delete sT[W]:(z=G.toString(16),sT[W]=z.toString())};
_.P1.prototype.remove=function(W){ssu(W);PYR(W);delete sT[W]};
_.P1.prototype.save=function(){var W=!0;_.r("web_secure_pref_cookie_killswitch")&&(W=!1);_.k8(this.cookieName,this.dump(),63072E3,this.cookieDomain,W)};
_.P1.prototype.clear=function(){_.mP.clear(sT)};
_.P1.prototype.dump=function(){var W=[],B;for(B in sT)sT.hasOwnProperty(B)&&W.push(B+"="+encodeURIComponent(String(sT[B])));return W.join("&")};
var PYR=function(W){if(/^f([1-9][0-9]*)$/.test(W))throw Error("Nc`"+W);},ssu=function(W){if(!/^\w+$/.test(W))throw Error("Oc`"+W);
},ZlM=function(W){W=sT[W]!==void 0?sT[W].toString():null;
return W!=null&&/^[A-Fa-f0-9]+$/.test(W)?parseInt(W,16):null};
_.P1.prototype.parse=function(W){W=decodeURIComponent(W).split("&");for(var B=0;B<W.length;B++){var z=W[B].split("="),G=z[0];(z=z[1])&&(sT[G]=z.toString())}};var InD={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"},fa0={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},Os0={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},hju={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var sv;_.Zq=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.CG=function(W,B,z){return W.addJob(B,0,z)};
_.Zq.prototype.addLowPriorityJob=function(W,B){return this.addJob(W,1,B)};
_.OM=function(W,B,z){return W.addJob(B,2,z)};
_.gn=function(W,B,z){return W.addJob(B,3,z)};
_.P2=function(W,B,z){return W.addJob(B,4,z)};
sv=function(W){var B=_.q6("yt.scheduler.instance.addImmediateJob");B?B(W):W()};
_.Zq.prototype.debounce=function(W,B,z){var G=this,Y=0,d=function(){Y&&G.cancelJob(Y);Y=G.addJob(W,B,z);G.cancelDebouncedJobMap.set(d,Y)};
return d};
_.Zq.prototype.cancelThrottle=function(W){(W=this.cancelThrottledJobMap.get(W))&&W()};var rR=function(){_.Zq.apply(this,arguments)};
_.C(rR,_.Zq);_.FU=function(){rR.instance||(rR.instance=new rR);return rR.instance};
rR.prototype.addJob=function(W,B,z){z!==void 0&&Number.isNaN(Number(z))&&(z=void 0);var G=_.q6("yt.scheduler.instance.addJob");return G?G(W,B,z):z===void 0?(W(),NaN):_.cS(W,z||0)};
rR.prototype.cancelJob=function(W){if(W===void 0||!Number.isNaN(Number(W))){var B=_.q6("yt.scheduler.instance.cancelJob");B?B(W):_.JC(W)}};
rR.prototype.start=function(){var W=_.q6("yt.scheduler.instance.start");W&&W()};
rR.prototype.pause=function(){var W=_.q6("yt.scheduler.instance.pause");W&&W()};
_.fg=_.FU();_.hC.prototype.set=function(W,B){B===void 0?this.mechanism.remove(W):this.mechanism.set(W,(0,_.yy)(B))};
_.hC.prototype.get=function(W){try{var B=this.mechanism.get(W)}catch(z){return}if(B!==null)try{return JSON.parse(B)}catch(z){throw"Storage: Invalid value was encountered";}};
_.hC.prototype.remove=function(W){this.mechanism.remove(W)};var kL=function(W){this.mechanism=W};
_.TC(kL,_.hC);var rjd=function(W){this.data=W},kpT=function(W){return W===void 0||W instanceof rjd?W:new rjd(W)};
kL.prototype.set=function(W,B){kL.superClass_.set.call(this,W,kpT(B))};
kL.prototype.getWrapper=function(W){W=kL.superClass_.get.call(this,W);if(W===void 0||W instanceof Object)return W;throw"Storage: Invalid value was encountered";};
kL.prototype.get=function(W){if(W=this.getWrapper(W)){if(W=W.data,W===void 0)throw"Storage: Invalid value was encountered";}else W=void 0;return W};_.TC(HS,kL);_.lE6=function(W){var B=W.creation;W=W.expiration;return!!W&&W<_.EL()||!!B&&B>_.EL()};
HS.prototype.set=function(W,B,z){if(B=kpT(B)){if(z){if(z<_.EL()){HS.prototype.remove.call(this,W);return}B.expiration=z}B.creation=_.EL()}HS.superClass_.set.call(this,W,B)};
HS.prototype.getWrapper=function(W,B){var z=HS.superClass_.getWrapper.call(this,W);if(z)if(!B&&_.lE6(z))HS.prototype.remove.call(this,W);else return z};var lN=function(){};
lN.prototype.next=function(){return Cw};
var Cw={done:!0,value:void 0},I1=function(W){return{value:W,done:!1}};
lN.prototype.__iterator__=function(){return this};
_.CYM=function(W){if(W instanceof lN)return W;if(typeof W.__iterator__=="function")return W.__iterator__(!1);if(_.yR(W)){var B=0,z=new lN;z.next=function(){for(;;){if(B>=W.length)return Cw;if(B in W)return I1(W[B++]);B++}};
return z}throw Error("Pc");};var IED=function(W){if(W instanceof o1||W instanceof h1||W instanceof H1)return W;if(typeof W.next=="function")return new o1(function(){return W});
if(typeof W[Symbol.iterator]=="function")return new o1(function(){return W[Symbol.iterator]()});
if(typeof W.__iterator__=="function")return new o1(function(){return W.__iterator__()});
throw Error("Qc");},o1=function(W){this.func_=W};
o1.prototype.__iterator__=function(){return new h1(this.func_())};
o1.prototype[Symbol.iterator]=function(){return new H1(this.func_())};
o1.prototype.toEs6=function(){return new H1(this.func_())};
var h1=function(W){this.JSC$10606_iter_=W};
_.C(h1,lN);h1.prototype.next=function(){return this.JSC$10606_iter_.next()};
h1.prototype[Symbol.iterator]=function(){return new H1(this.JSC$10606_iter_)};
h1.prototype.toEs6=function(){return new H1(this.JSC$10606_iter_)};
var H1=function(W){o1.call(this,function(){return W});
this.JSC$10609_iter_=W};
_.C(H1,o1);H1.prototype.next=function(){return this.JSC$10609_iter_.next()};var oFQ=function(){};var F5=function(){};
_.TC(F5,oFQ);F5.prototype.getCount=function(){for(var W=0,B=_.A(this),z=B.next();!z.done;z=B.next())W++;return W};
F5.prototype[Symbol.iterator]=function(){return IED(this.__iterator__(!0)).toEs6()};
F5.prototype.clear=function(){var W=Array.from(this);W=_.A(W);for(var B=W.next();!B.done;B=W.next())this.remove(B.value)};_.TC(Fs,F5);_.p=Fs.prototype;_.p.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var W=this.storage_;if(W)try{W.setItem("__sak","1");W.removeItem("__sak");var B=!0}catch(z){B=z instanceof DOMException&&(z.name==="QuotaExceededError"||z.code===22||z.code===1014||z.name==="NS_ERROR_DOM_QUOTA_REACHED")&&W&&W.length!==0}else B=!1;this.cachedIsStorageAvailable_=B}return this.cachedIsStorageAvailable_};
_.p.set=function(W,B){S0(this);try{this.storage_.setItem(W,B)}catch(z){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.p.get=function(W){S0(this);W=this.storage_.getItem(W);if(typeof W!=="string"&&W!==null)throw"Storage mechanism: Invalid value was encountered";return W};
_.p.remove=function(W){S0(this);this.storage_.removeItem(W)};
_.p.getCount=function(){S0(this);return this.storage_.length};
_.p.__iterator__=function(W){S0(this);var B=0,z=this.storage_,G=new lN;G.next=function(){if(B>=z.length)return Cw;var Y=z.key(B++);if(W)return I1(Y);Y=z.getItem(Y);if(typeof Y!=="string")throw"Storage mechanism: Invalid value was encountered";return I1(Y)};
return G};
_.p.clear=function(){S0(this);this.storage_.clear()};
_.p.key=function(W){S0(this);return this.storage_.key(W)};
var S0=function(W){if(W.storage_==null)throw Error("Rc");W.isAvailable()||dk(Error("Rc"))};_.TC(F8Q,Fs);_.TC(Sgt,Fs);_.TC(SE,F5);SE.prototype.set=function(W,B){this.mechanism_.set(this.JSC$10624_prefix_+W,B)};
SE.prototype.get=function(W){return this.mechanism_.get(this.JSC$10624_prefix_+W)};
SE.prototype.remove=function(W){this.mechanism_.remove(this.JSC$10624_prefix_+W)};
SE.prototype.__iterator__=function(W){var B=this.mechanism_[Symbol.iterator](),z=this,G=new lN;G.next=function(){var Y=B.next();if(Y.done)return Y;for(Y=Y.value;Y.slice(0,z.JSC$10624_prefix_.length)!=z.JSC$10624_prefix_;){Y=B.next();if(Y.done)return Y;Y=Y.value}return I1(W?Y.slice(z.JSC$10624_prefix_.length):z.mechanism_.get(Y))};
return G};_.el=function(W){this.expiringStorage_=(W=_.bAD(W))?new HS(W):null;this.JSC$10628_domain_=document.domain||window.location.hostname};
_.el.prototype.set=function(W,B,z,G){z=z||31104E3;this.remove(W);if(this.expiringStorage_)try{this.expiringStorage_.set(W,B,Date.now()+z*1E3);return}catch(d){}var Y="";if(G)try{Y=escape((0,_.yy)(B))}catch(d){return}else Y=escape(B);_.k8(W,Y,z,this.JSC$10628_domain_)};
_.el.prototype.get=function(W,B){var z=void 0,G=!this.expiringStorage_;if(!G)try{z=this.expiringStorage_.get(W)}catch(Y){G=!0}if(G&&(z=_.rO.get(W,void 0))&&(z=unescape(z),B))try{z=JSON.parse(z)}catch(Y){this.remove(W),z=void 0}return z};
_.el.prototype.remove=function(W){this.expiringStorage_&&this.expiringStorage_.remove(W);_.klT(W,"/",this.JSC$10628_domain_)};
_.el.prototype.getCreationTime=function(W){return this.expiringStorage_&&(W=(this.expiringStorage_.getWrapper(W)||{}).creation,typeof W==="number")?W:null};var fnR=function(){var W;return function(){W||(W=new _.el("ytidb"));return W}}();var X3r;_.jE=[];X3r=!1;var W9y=K8X||uNT;var bN={},h24=(bN.AUTH_INVALID="No user identifier specified.",bN.EXPLICIT_ABORT="Transaction was explicitly aborted.",bN.IDB_NOT_SUPPORTED="IndexedDB is not supported.",bN.MISSING_INDEX="Index not created.",bN.MISSING_OBJECT_STORES="Object stores not created.",bN.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",bN.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",bN.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",bN.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",bN.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",bN.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",bN.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",bN),j0={},Hlu=(j0.AUTH_INVALID="ERROR",j0.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",j0.EXPLICIT_ABORT="IGNORED",
j0.IDB_NOT_SUPPORTED="ERROR",j0.MISSING_INDEX="WARNING",j0.MISSING_OBJECT_STORES="ERROR",j0.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",j0.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",j0.QUOTA_EXCEEDED="WARNING",j0.QUOTA_MAYBE_EXCEEDED="WARNING",j0.UNKNOWN_ABORT="WARNING",j0.INCOMPATIBLE_DB_VERSION="WARNING",j0),fw={},FzU=(fw.AUTH_INVALID=!1,fw.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,fw.EXPLICIT_ABORT=!1,fw.IDB_NOT_SUPPORTED=!1,fw.MISSING_INDEX=!1,fw.MISSING_OBJECT_STORES=!1,fw.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,fw.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,fw.QUOTA_EXCEEDED=!1,fw.QUOTA_MAYBE_EXCEEDED=!0,fw.UNKNOWN_ABORT=!0,fw.INCOMPATIBLE_DB_VERSION=!1,fw),eE=function(W,B,z,G,Y){B=B===void 0?{}:B;z=z===void 0?h24[W]:z;G=G===void 0?Hlu[W]:G;Y=Y===void 0?FzU[W]:Y;_.oX.call(this,z,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:W},B));this.type=W;this.message=z;this.level=G;this.retryable=Y;Object.setPrototypeOf(this,eE.prototype)};
_.C(eE,_.oX);var SjR=function(W,B){eE.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:B,foundObjectStores:W},h24.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,SjR.prototype)};
_.C(SjR,eE);var mM0=function(W,B){var z=Error.call(this);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.index=W;this.objectStore=B;Object.setPrototypeOf(this,mM0.prototype)};
_.C(mM0,Error);var xMQ=["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 QW=function(W){this.executor=W},Do=function(W){var B=this;
this.state={status:"PENDING"};this.JSC$10656_onFulfilled=[];this.JSC$10656_onRejected=[];W=W.executor;var z=function(Y){if(B.state.status==="PENDING"){B.state={status:"FULFILLED",value:Y};Y=_.A(B.JSC$10656_onFulfilled);for(var d=Y.next();!d.done;d=Y.next())d=d.value,d()}},G=function(Y){if(B.state.status==="PENDING"){B.state={status:"REJECTED",
reason:Y};Y=_.A(B.JSC$10656_onRejected);for(var d=Y.next();!d.done;d=Y.next())d=d.value,d()}};
try{W(z,G)}catch(Y){G(Y)}};
Do.all=function(W){return new Do(new QW(function(B,z){var G=[],Y=W.length;Y===0&&B(G);for(var d={i$jscomp$468:0};d.i$jscomp$468<W.length;d={i$jscomp$468:d.i$jscomp$468},++d.i$jscomp$468)Do.resolve(W[d.i$jscomp$468]).then(function(E){return function(v){G[E.i$jscomp$468]=v;Y--;Y===0&&B(G)}}(d)).catch(function(E){z(E)})}))};
Do.resolve=function(W){return new Do(new QW(function(B,z){W instanceof Do?W.then(B,z):B(W)}))};
Do.reject=function(W){return new Do(new QW(function(B,z){z(W)}))};
Do.prototype.then=function(W,B){var z=this,G=W!=null?W:yqv,Y=B!=null?B:Q_v;return new Do(new QW(function(d,E){z.state.status==="PENDING"?(z.JSC$10656_onFulfilled.push(function(){blQ(z,z,G,d,E)}),z.JSC$10656_onRejected.push(function(){jsQ(z,z,Y,d,E)})):z.state.status==="FULFILLED"?blQ(z,z,G,d,E):z.state.status==="REJECTED"&&jsQ(z,z,Y,d,E)}))};
Do.prototype.catch=function(W){return this.then(void 0,W)};
var blQ=function(W,B,z,G,Y){try{if(W.state.status!=="FULFILLED")throw Error("Uc");var d=z(W.state.value);d instanceof Do?fE4(W,B,d,G,Y):G(d)}catch(E){Y(E)}},jsQ=function(W,B,z,G,Y){try{if(W.state.status!=="REJECTED")throw Error("Vc");
var d=z(W.state.reason);d instanceof Do?fE4(W,B,d,G,Y):G(d)}catch(E){Y(E)}},fE4=function(W,B,z,G,Y){B===z?Y(new TypeError("Wc")):z.then(function(d){d instanceof Do?fE4(W,B,d,G,Y):G(d)},function(d){Y(d)})};var OT;OT=window;_.Yb=OT.ytcsi&&OT.ytcsi.now?OT.ytcsi.now:OT.performance&&OT.performance.timing&&OT.performance.now&&OT.performance.timing.navigationStart?function(){return OT.performance.timing.navigationStart+OT.performance.now()}:function(){return(new Date).getTime()};var qn=function(W,B){this.JSC$10668_wrapped=W;this.options=B;this.transactionCount=0;this.startedMs=Math.round((0,_.Yb)());this.hasUnknownAbortedTransaction=!1},X5=function(){return _.r("idb_immediate_commit")},Kzu,uQH,e0,xAM;
qn.prototype.add=function(W,B,z){return _.UA(this,[W],{mode:"readwrite",enableRetries:!0,commit:X5()},function(G){return G.objectStore(W).add(B,z)})};
qn.prototype.clear=function(W){return _.UA(this,[W],{mode:"readwrite",enableRetries:!0},function(B){return B.objectStore(W).clear()})};
qn.prototype.close=function(){this.JSC$10668_wrapped.close();var W;((W=this.options)==null?0:W.closed)&&this.options.closed()};
qn.prototype.count=function(W,B){return _.UA(this,[W],{mode:"readonly",enableRetries:!0,commit:X5()},function(z){return z.objectStore(W).count(B)})};
var xb=function(W,B,z){W=W.JSC$10668_wrapped.createObjectStore(B,z);return new Kw(W)};
qn.prototype.delete=function(W,B){return _.UA(this,[W],{mode:"readwrite",enableRetries:!0,commit:X5()&&!(B instanceof IDBKeyRange)},function(z){return z.objectStore(W).delete(B)})};
var OlD=function(W,B){return _.UA(W,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(z){return z.objectStore("ResponseStore").index("byInterface").delete(B)})};
qn.prototype.get=function(W,B){return _.UA(this,[W],{mode:"readonly",enableRetries:!0,commit:X5()},function(z){return z.objectStore(W).get(B)})};
qn.prototype.getAll=function(W,B,z){return _.UA(this,[W],{mode:"readonly",enableRetries:!0},function(G){return G.objectStore(W).getAll(B,z)})};
qn.prototype.put=function(W,B,z){return _.UA(this,[W],{mode:"readwrite",enableRetries:!0,commit:X5()},function(G){return G.objectStore(W).put(B,z)})};
qn.prototype.objectStoreNames=function(){return Array.from(this.JSC$10668_wrapped.objectStoreNames)};
_.UA=function(W,B,z,G){var Y,d,E,v,c,J,g,t,P,Z,l,b;return _.T(function(O){switch(O.nextAddress){case 1:var K={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof z==="string"?K.mode=z:Object.assign(K,z);Y=K;W.transactionCount++;d=Y.enableRetries?3:1;E=0;case 2:if(v){O.jumpTo(4);break}E++;c=Math.round((0,_.Yb)());_.kA(O,5);J=W.JSC$10668_wrapped.transaction(B,Y.mode);K=O.yield;var e=!!Y.commit;var a=new n4(J);e=X_4(a,G,e);return K.call(O,e,7);case 7:return g=O.yieldResult,t=Math.round((0,_.Yb)()),
Kzu(W,c,t,E,void 0,B.join(),Y),O.return(g);case 5:P=_.h6(O);Z=Math.round((0,_.Yb)());l=DMk(P,W.JSC$10668_wrapped.name,B.join(),W.JSC$10668_wrapped.version);if((b=l instanceof eE&&!l.retryable)||E>=d)Kzu(W,c,Z,E,l,B.join(),Y),v=l;O.jumpTo(2);break;case 4:return O.return(Promise.reject(v))}})};
Kzu=function(W,B,z,G,Y,d,E){B=z-B;Y?(Y instanceof eE&&(Y.type==="QUOTA_EXCEEDED"||Y.type==="QUOTA_MAYBE_EXCEEDED")&&OA("QUOTA_EXCEEDED",{dbName:K4(W.JSC$10668_wrapped.name),objectStoreNames:d,transactionCount:W.transactionCount,transactionMode:E.mode}),Y instanceof eE&&Y.type==="UNKNOWN_ABORT"&&(z-=W.startedMs,z<0&&z>=2147483648&&(z=0),OA("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:d,transactionDuration:B,transactionCount:W.transactionCount,dbDuration:z}),W.hasUnknownAbortedTransaction=!0),
uQH(W,!1,G,d,B,E.tag),_.f4(Y)):uQH(W,!0,G,d,B,E.tag)};
uQH=function(W,B,z,G,Y,d){OA("TRANSACTION_ENDED",{objectStoreNames:G,connectionHasUnknownAbortedTransaction:W.hasUnknownAbortedTransaction,duration:Y,isSuccessful:B,tryCount:z,tag:d===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":d})};
qn.prototype.getVersion=function(){return this.JSC$10668_wrapped.version};
qn.prototype.getName=function(){return this.JSC$10668_wrapped.name};
var Kw=function(W){this.JSC$10683_wrapped=W};
Kw.prototype.add=function(W,B){return yW(this.JSC$10683_wrapped.add(W,B))};
Kw.prototype.autoIncrement=function(){return this.JSC$10683_wrapped.autoIncrement};
Kw.prototype.clear=function(){return yW(this.JSC$10683_wrapped.clear()).then(function(){})};
var D_=function(W,B,z){W.JSC$10683_wrapped.createIndex(B,z,{unique:!1})};
Kw.prototype.count=function(W){return yW(this.JSC$10683_wrapped.count(W))};
var e2R=function(W,B){return aX(W,{query:B},function(z){return z.delete().then(function(){return z.continue()})}).then(function(){})};
Kw.prototype.delete=function(W){return W instanceof IDBKeyRange?e2R(this,W):yW(this.JSC$10683_wrapped.delete(W))};
Kw.prototype.get=function(W){return yW(this.JSC$10683_wrapped.get(W))};
Kw.prototype.getAll=function(W,B){return"getAll"in IDBObjectStore.prototype?yW(this.JSC$10683_wrapped.getAll(W,B)):mA4(this,W,B)};
var mA4=function(W,B,z){var G=[];return aX(W,{query:B},function(Y){if(!(z!==void 0&&G.length>=z))return G.push(Y.getValue()),Y.continue()}).then(function(){return G})};
Kw.prototype.index=function(W){try{return new uN(this.JSC$10683_wrapped.index(W))}catch(B){if(B instanceof Error&&B.name==="NotFoundError")throw new mM0(W,this.JSC$10683_wrapped.name);throw B;}};
Kw.prototype.getName=function(){return this.JSC$10683_wrapped.name};
Kw.prototype.keyPath=function(){return this.JSC$10683_wrapped.keyPath};
Kw.prototype.put=function(W,B){return yW(this.JSC$10683_wrapped.put(W,B))};
var aX=function(W,B,z){W=W.JSC$10683_wrapped.openCursor(B.query,B.direction);return xAM(W).then(function(G){return Nc8(G,z)})},n4=function(W){var B=this;
this.JSC$10691_wrapped=W;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(z,G){B.JSC$10691_wrapped.addEventListener("complete",function(){z()});
B.JSC$10691_wrapped.addEventListener("error",function(Y){Y.currentTarget===Y.target&&G(B.JSC$10691_wrapped.error)});
B.JSC$10691_wrapped.addEventListener("abort",function(){var Y=B.JSC$10691_wrapped.error;if(Y)G(Y);else if(!B.aborted){Y=eE;for(var d=B.JSC$10691_wrapped.objectStoreNames,E=[],v=0;v<d.length;v++){var c=d.item(v);if(c===null)throw Error("Xc");E.push(c)}Y=new Y("UNKNOWN_ABORT",{objectStoreNames:E.join(),dbName:B.JSC$10691_wrapped.db.name,mode:B.JSC$10691_wrapped.mode});G(Y)}})})},X_4=function(W,B,z){var G=new Promise(function(Y,d){try{var E=B(W);
z&&W.commit();E.then(function(v){Y(v)}).catch(d)}catch(v){d(v),W.abort()}});
return Promise.all([G,W.done]).then(function(Y){return _.A(Y).next().value})};
n4.prototype.abort=function(){this.JSC$10691_wrapped.abort();this.aborted=!0;throw new eE("EXPLICIT_ABORT");};
n4.prototype.commit=function(){if(!this.aborted){var W,B;(B=(W=this.JSC$10691_wrapped).commit)==null||B.call(W)}};
n4.prototype.objectStore=function(W){W=this.JSC$10691_wrapped.objectStore(W);var B=this.objectStoreCache.get(W);B||(B=new Kw(W),this.objectStoreCache.set(W,B));return B};
var uN=function(W){this.JSC$10693_wrapped=W};
uN.prototype.count=function(W){return yW(this.JSC$10693_wrapped.count(W))};
uN.prototype.delete=function(W){return _.d2(this,{query:W},function(B){return B.delete().then(function(){return B.continue()})})};
uN.prototype.get=function(W){return yW(this.JSC$10693_wrapped.get(W))};
uN.prototype.getAll=function(W,B){return"getAll"in IDBIndex.prototype?yW(this.JSC$10693_wrapped.getAll(W,B)):DA9(this,W,B)};
var DA9=function(W,B,z){var G=[];return _.d2(W,{query:B},function(Y){if(!(z!==void 0&&G.length>=z))return G.push(Y.getValue()),Y.continue()}).then(function(){return G})};
uN.prototype.keyPath=function(){return this.JSC$10693_wrapped.keyPath};
uN.prototype.unique=function(){return this.JSC$10693_wrapped.unique};
_.d2=function(W,B,z){W=W.JSC$10693_wrapped.openCursor(B.query===void 0?null:B.query,B.direction===void 0?"next":B.direction);return xAM(W).then(function(G){return Nc8(G,z)})};
e0=function(W,B){this.request=W;this.cursor=B};
xAM=function(W){return yW(W).then(function(B){return B?new e0(W,B):null})};
e0.prototype.continue=function(W){this.cursor.continue(W);return xAM(this.request)};
e0.prototype.delete=function(){return yW(this.cursor.delete()).then(function(){})};
e0.prototype.getValue=function(){return this.cursor.value};
e0.prototype.update=function(W){return yW(this.cursor.update(W))};var m7=function(W,B){this.name=W;this.options=B;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Qs4;
m7.prototype.openDb=function(W,B,z){z=z===void 0?{}:z;return L8t(W,B,z)};
m7.prototype.delete=function(W){W=W===void 0?{}:W;return _.$8(this.name,W)};
Qs4=function(W,B){return new eE("INCOMPATIBLE_DB_VERSION",{dbName:W.name,oldVersion:W.options.version,newVersion:B})};
_.L4=function(W,B){if(!B)throw x8("openWithToken",K4(W.name));return W.open()};
m7.prototype.open=function(){var W=this;if(!this.isCompatible)throw Qs4(this);if(this.connectionPromise)return this.connectionPromise;var B,z=function(){W.connectionPromise===B&&(W.connectionPromise=void 0)},G={blocking:function(d){d.close()},
closed:z,terminated:z,upgrade:this.options.upgrade},Y=function(){var d,E,v,c,J,g,t,P,Z,l;return _.T(function(b){switch(b.nextAddress){case 1:return E=(d=Error().stack)!=null?d:"",_.kA(b,2),b.yield(W.openDb(W.name,W.options.version,G),4);case 4:for(var O=v=b.yieldResult,K=W.options,e=[],a=_.A(Object.keys(K.objectStores)),q=a.next();!q.done;q=a.next()){q=q.value;var n=K.objectStores[q],L=n.removedAtVersion===void 0?Number.MAX_VALUE:n.removedAtVersion;!(O.JSC$10668_wrapped.version>=n.addedAtVersion)||
O.JSC$10668_wrapped.version>=L||O.JSC$10668_wrapped.objectStoreNames.contains(q)||e.push(q)}c=e;if(c.length===0){b.jumpTo(5);break}J=Object.keys(W.options.objectStores);g=v.objectStoreNames();if(W.timesReopenedToFixMissingObjectStore<_.iO("ytidb_reopen_db_retries",0))return W.timesReopenedToFixMissingObjectStore++,v.close(),_.f4(new eE("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:W.name,expectedObjectStores:J,foundObjectStores:g})),b.return(Y());if(!(W.timesDeletedToFixMissingObjectStore<_.iO("ytidb_remake_db_retries",
1))){b.jumpTo(6);break}W.timesDeletedToFixMissingObjectStore++;return b.yield(W.delete(),7);case 7:return _.f4(new eE("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:W.name,expectedObjectStores:J,foundObjectStores:g})),b.return(Y());case 6:throw new SjR(g,J);case 5:return b.return(v);case 2:t=_.h6(b);if(t instanceof DOMException?t.name!=="VersionError":"DOMError"in self&&t instanceof DOMError?t.name!=="VersionError":!(t instanceof Object&&"message"in t)||t.message!=="An attempt was made to open a database using a lower version than the existing version."){b.jumpTo(8);
break}return b.yield(W.openDb(W.name,void 0,Object.assign({},G,{upgrade:void 0})),9);case 9:P=b.yieldResult;Z=P.getVersion();if(W.options.version!==void 0&&Z>W.options.version+1)throw P.close(),W.isCompatible=!1,Qs4(W,Z);return b.return(P);case 8:throw z(),t instanceof Error&&!_.r("ytidb_async_stack_killswitch")&&(t.stack=t.stack+"\n"+E.substring(E.indexOf("\n")+1)),DMk(t,W.name,"",(l=W.options.version)!=null?l:-1);}})};
return this.connectionPromise=B=Y()};var UMX=new m7("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(W,B){B(1)&&xb(W,"databases",{keyPath:"actualName"})}});var GRD,BDR=new function(){}(new function(){});new _.sl;var yjd=function(W,B){m7.call(this,W,B);this.options=B;Xs(W)};
_.C(yjd,m7);var wg8=function(W,B){var z;return function(){z||(z=new yjd(W,B));return z}};
yjd.prototype.openDb=function(W,B,z){z=z===void 0?{}:z;return(this.options.shared?isy:A8Q)(W,B,Object.assign({},z))};
yjd.prototype.delete=function(W){W=W===void 0?{}:W;return(this.options.shared?c8r:E_Q)(this.name,W)};var qjH={},VWx=GU("ytGcfConfig",{objectStores:(qjH.coldConfigStore={addedAtVersion:1},qjH.hotConfigStore={addedAtVersion:1},qjH),shared:!1,upgrade:function(W,B){B(1)&&(D_(xb(W,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),D_(xb(W,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var nF4=function(){_.bA.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var W=_.q6("yt.gcf.config.hotUpdateCallbacks");W?(this.localHotConfigJobQueue=[].concat(_.u7(W)),this.sharedHotConfigJobQueue=W):(this.sharedHotConfigJobQueue=[],_.BV("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.C(nF4,_.bA);nF4.prototype.disposeInternal=function(){for(var W=_.A(this.localHotConfigJobQueue),B=W.next();!B.done;B=W.next()){var z=this.sharedHotConfigJobQueue;B=z.indexOf(B.value);B>=0&&z.splice(B,1)}this.localHotConfigJobQueue.length=0;_.bA.prototype.disposeInternal.call(this)};var Ig=function(){var W=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new nF4;this.TEST_ONLY={initializeConfigDb:function(){W.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return W.coldGlobalConfigGroup},
setHotConfigGroup:function(B){Nqu(W,B)},
setHotHashData:function(B){W.setHotHashData(B)},
setColdConfigGroup:function(B){$A7(W,B)},
getColdHashData:function(){return W.coldHashData},
getHotHashData:function(){return W.hotHashData},
getHotConfigGroup:function(){return W.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return LzT()},
getExportedHotConfigGroup:function(){return xL()},
getExportedColdHashData:function(){return _.q6("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.q6("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){UAH(W)},
resetInstance:function(){W.setHotHashData(void 0);MjQ(W);delete Ig.instance},
setDebounceTimer:function(B){W.debounceTimer=B},
getDebounceTimer:function(){return W.debounceTimer}}},aEF=function(){if(!Ig.instance){var W=new Ig;
Ig.instance=W}return Ig.instance},B8T=function(W){var B;
_.T(function(z){if(z.nextAddress==1)return _.r("start_client_gcf")||_.r("delete_gcf_config_db")?_.r("start_client_gcf")?z.yield(_.zU(),3):z.jumpTo(2):z.return();z.nextAddress!=2&&((B=z.yieldResult)&&_.IX()&&!_.r("delete_gcf_config_db")?(W.isConfigDbInitialized=!0,UAH(W)):(R2F(W),W1M(W)));return _.r("delete_gcf_config_db")?z.yield(Zsk(),0):z.jumpTo(0)})},og=function(){var W;
return(W=xL())!=null?W:_.eD("RAW_HOT_CONFIG_GROUP")},zlU=function(W){var B,z,G,Y,d,E;
return _.T(function(v){switch(v.nextAddress){case 1:if(W.hotGlobalConfigGroup)return v.return(xL());if(!W.isConfigDbInitialized)return B=x8("getHotConfig IDB not initialized"),_.nx(B),v.return(Promise.reject(B));z=WV();G=_.eD("TIME_CREATED_MS");if(!z){Y=x8("getHotConfig token error");_.nx(Y);v.jumpTo(2);break}return v.yield(Pax(z),3);case 3:if((d=v.yieldResult)&&d.timestamp>G)return Nqu(W,d.config),W.setHotHashData(d.hashData),v.return(xL());case 2:W1M(W);if(!(z&&W.hotGlobalConfigGroup&&W.hotHashData)){v.jumpTo(4);
break}return v.yield(g_2(W.hotGlobalConfigGroup,W.hotHashData,z,G),4);case 4:return W.hotGlobalConfigGroup?v.return(xL()):(E=new _.oX("Config not available in ytConfig"),_.nx(E),v.return(Promise.reject(E)))}})},YhT=function(W){var B,z,G,Y,d,E;
return _.T(function(v){switch(v.nextAddress){case 1:if(W.coldGlobalConfigGroup)return v.return(LzT());if(!W.isConfigDbInitialized)return B=x8("getColdConfig IDB not initialized"),_.nx(B),v.return(Promise.reject(B));z=WV();G=_.eD("TIME_CREATED_MS");if(!z){Y=x8("getColdConfig");_.nx(Y);v.jumpTo(2);break}return v.yield(sEy(z),3);case 3:if((d=v.yieldResult)&&d.timestamp>G)return $A7(W,d.config),G5H(W,d.configData),MjQ(W,d.hashData),v.return(LzT());case 2:R2F(W);if(!(z&&W.coldGlobalConfigGroup&&W.coldHashData&&
W.configData)){v.jumpTo(4);break}return v.yield(tWX(W.coldGlobalConfigGroup,W.coldHashData,W.configData,z,G),4);case 4:return W.coldGlobalConfigGroup?v.return(LzT()):(E=new _.oX("Config not available in ytConfig"),_.nx(E),v.return(Promise.reject(E)))}})},UAH=function(W){if(!W.hotGlobalConfigGroup||!W.coldGlobalConfigGroup){if(!WV()){var B=x8("scheduleGetConfigs");
_.nx(B)}W.initJob||(W.initJob=_.fg.addLowPriorityJob(function(){return _.T(function(z){switch(z.nextAddress){case 1:return _.kA(z,2),z.yield(zlU(W),4);case 4:_.Nn(z,3);break;case 2:_.h6(z);case 3:return _.kA(z,5),z.yield(YhT(W),7);case 7:_.Nn(z,6);break;case 5:_.h6(z);case 6:W.initJob&&(W.initJob=0),_.HG(z)}})},100))}},g2R=function(W,B,z){var G,Y,d;
return _.T(function(E){switch(E.nextAddress){case 1:if(!_.r("start_client_gcf")){E.jumpTo(0);break}z&&Nqu(W,z);W.setHotHashData(B);G=WV();if(!G){E.jumpTo(3);break}if(z){E.jumpTo(4);break}return E.yield(Pax(G),5);case 5:Y=E.yieldResult,z=(d=Y)==null?void 0:d.config;case 4:return E.yield(g_2(z,B,G),3);case 3:if(z)for(var v=z,c=_.A(W.configUpdateService.sharedHotConfigJobQueue),J=c.next();!J.done;J=c.next())J=J.value,J(v);_.HG(E)}})},tc0=function(W,B,z){var G,Y,d,E;
return _.T(function(v){if(v.nextAddress==1){if(!_.r("start_client_gcf"))return v.jumpTo(0);MjQ(W,B);return(G=WV())?z?v.jumpTo(4):v.yield(sEy(G),5):v.jumpTo(0)}v.nextAddress!=4&&(Y=v.yieldResult,z=(d=Y)==null?void 0:d.config);if(!z)return v.jumpTo(0);E=z.configData;return v.yield(tWX(z,B,E,G),0)})},eSR=function(){var W=aEF(),B=(0,_.Yb)()-W.debounceTimer;
if(!(W.debounceTimer!==0&&B<_.iO("send_config_hash_timer"))){B=_.q6("yt.gcf.config.coldConfigData");var z=_.q6("yt.gcf.config.hotHashData"),G=_.q6("yt.gcf.config.coldHashData");B&&z&&G&&(W.debounceTimer=(0,_.Yb)());return{coldConfigData:B,hotHashData:z,coldHashData:G}}},R2F=function(W){$A7(W,_.eD("RAW_COLD_CONFIG_GROUP"));
MjQ(W,_.eD("SERIALIZED_COLD_HASH_DATA"));var B;G5H(W,(B=W.coldGlobalConfigGroup)==null?void 0:B.configData)},W1M=function(W){Nqu(W,_.eD("RAW_HOT_CONFIG_GROUP"));
W.setHotHashData(_.eD("SERIALIZED_HOT_HASH_DATA"))},Nqu=function(W,B){W.hotGlobalConfigGroup=B;
_.BV("yt.gcf.config.hotConfigGroup",W.hotGlobalConfigGroup||null)},$A7=function(W,B){W.coldGlobalConfigGroup=B;
_.BV("yt.gcf.config.coldConfigGroup",W.coldGlobalConfigGroup||null)};
Ig.prototype.setHotHashData=function(W){this.hotHashData=W;_.BV("yt.gcf.config.hotHashData",this.hotHashData||null)};
var MjQ=function(W,B){W.coldHashData=B;_.BV("yt.gcf.config.coldHashData",W.coldHashData||null)},G5H=function(W,B){W.configData=B;
_.BV("yt.gcf.config.coldConfigData",W.configData||null)},xL=function(){return _.q6("yt.gcf.config.hotConfigGroup")},LzT=function(){return _.q6("yt.gcf.config.coldConfigGroup")};var JD={},dOd=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";JD.assign=function(W){for(var B=Array.prototype.slice.call(arguments,1);B.length;){var z=B.shift();if(z){if(typeof z!=="object")throw new TypeError("$c`"+z);for(var G in z)Object.prototype.hasOwnProperty.call(z,G)&&(W[G]=z[G])}}return W};
JD.shrinkBuf=function(W,B){if(W.length===B)return W;if(W.subarray)return W.subarray(0,B);W.length=B;return W};
var pMR={arraySet:function(W,B,z,G,Y){if(B.subarray&&W.subarray)W.set(B.subarray(z,z+G),Y);else for(var d=0;d<G;d++)W[Y+d]=B[z+d]},
flattenChunks:function(W){var B,z;var G=z=0;for(B=W.length;G<B;G++)z+=W[G].length;var Y=new Uint8Array(z);G=z=0;for(B=W.length;G<B;G++){var d=W[G];Y.set(d,z);z+=d.length}return Y}},Az4={arraySet:function(W,B,z,G,Y){for(var d=0;d<G;d++)W[Y+d]=B[z+d]},
flattenChunks:function(W){return[].concat.apply([],W)}};
JD.setTyped=function(){dOd?(JD.Buf8=Uint8Array,JD.Buf16=Uint16Array,JD.Buf32=Int32Array,JD.assign(JD,pMR)):(JD.Buf8=Array,JD.Buf16=Array,JD.Buf32=Array,JD.assign(JD,Az4))};
JD.setTyped();var itR=!0;try{new Uint8Array(1)}catch(W){itR=!1}
var PPv=function(W){var B,z,G=W.length,Y=0;for(B=0;B<G;B++){var d=W.charCodeAt(B);if((d&64512)===55296&&B+1<G){var E=W.charCodeAt(B+1);(E&64512)===56320&&(d=65536+(d-55296<<10)+(E-56320),B++)}Y+=d<128?1:d<2048?2:d<65536?3:4}var v=new JD.Buf8(Y);for(B=z=0;z<Y;B++)d=W.charCodeAt(B),(d&64512)===55296&&B+1<G&&(E=W.charCodeAt(B+1),(E&64512)===56320&&(d=65536+(d-55296<<10)+(E-56320),B++)),d<128?v[z++]=d:(d<2048?v[z++]=192|d>>>6:(d<65536?v[z++]=224|d>>>12:(v[z++]=240|d>>>18,v[z++]=128|d>>>12&63),v[z++]=
128|d>>>6&63),v[z++]=128|d&63);return v};var pfD={};pfD=function(W,B,z,G){var Y=W&65535|0;W=W>>>16&65535|0;for(var d;z!==0;){d=z>2E3?2E3:z;z-=d;do Y=Y+B[G++]|0,W=W+Y|0;while(--d);Y%=65521;W%=65521}return Y|W<<16|0};for(var HV={},Dq,E6M=[],T8H=0;T8H<256;T8H++){Dq=T8H;for(var v64=0;v64<8;v64++)Dq=Dq&1?3988292384^Dq>>>1:Dq>>>1;E6M[T8H]=Dq}HV=function(W,B,z,G){z=G+z;for(W^=-1;G<z;G++)W=W>>>8^E6M[(W^B[G])&255];return W^-1};var PV={};PV={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 L9x=[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],MWX=[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],sNy=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],YRX=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],l2=Array(576);vV(l2);var Cg=Array(60);vV(Cg);var tD=Array(512);vV(tD);var g2=Array(256);vV(g2);var U_x=Array(29);vV(U_x);var aax=Array(30);vV(aax);var JHk,gwQ,tJr,VJR=!1;var jl;
jl=[new b2(0,0,0,0,function(W,B){var z=65535;for(z>W.pending_buf_size-5&&(z=W.pending_buf_size-5);;){if(W.lookahead<=1){FG(W);if(W.lookahead===0&&B===0)return 1;if(W.lookahead===0)break}W.strstart+=W.lookahead;W.lookahead=0;var G=W.block_start+z;if(W.strstart===0||W.strstart>=G)if(W.lookahead=W.strstart-G,W.strstart=G,Ie(W,!1),W.strm.avail_out===0)return 1;if(W.strstart-W.block_start>=W.w_size-262&&(Ie(W,!1),W.strm.avail_out===0))return 1}W.insert=0;if(B===4)return Ie(W,!0),W.strm.avail_out===0?3:
4;W.strstart>W.block_start&&Ie(W,!1);return 1}),
new b2(4,4,8,4,AHr),new b2(4,5,16,8,AHr),new b2(4,6,32,32,AHr),new b2(4,4,16,16,Sl),new b2(8,16,32,32,Sl),new b2(8,16,128,128,Sl),new b2(8,32,128,256,Sl),new b2(32,128,258,1024,Sl),new b2(32,258,258,4096,Sl)];var wft={};wft=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 Zo2=Object.prototype.toString;
cHR.prototype.push=function(W,B){var z=this.strm,G=this.options.chunkSize;if(this.ended)return!1;var Y=B===~~B?B:B===!0?4:0;typeof W==="string"?z.input=PPv(W):Zo2.call(W)==="[object ArrayBuffer]"?z.input=new Uint8Array(W):z.input=W;z.next_in=0;z.avail_in=z.input.length;do{z.avail_out===0&&(z.output=new JD.Buf8(G),z.next_out=0,z.avail_out=G);W=vw8(z,Y);if(W!==1&&W!==0)return czR(this,W),this.ended=!0,!1;if(z.avail_out===0||z.avail_in===0&&(Y===4||Y===2))if(this.options.to==="string"){var d=JD.shrinkBuf(z.output,
z.next_out);B=d;d=d.length;if(d<65537&&(B.subarray&&itR||!B.subarray))B=String.fromCharCode.apply(null,JD.shrinkBuf(B,d));else{for(var E="",v=0;v<d;v++)E+=String.fromCharCode(B[v]);B=E}this.chunks.push(B)}else B=JD.shrinkBuf(z.output,z.next_out),this.chunks.push(B)}while((z.avail_in>0||z.avail_out===0)&&W!==1);if(Y===4)return(z=this.strm)&&z.state?(G=z.state.status,G!==42&&G!==69&&G!==73&&G!==91&&G!==103&&G!==113&&G!==666?W=Z_(z,-2):(z.state=null,W=G===113?Z_(z,-3):0)):W=-2,czR(this,W),this.ended=
!0,W===0;Y===2&&(czR(this,0),z.avail_out=0);return!0};
var czR=function(W,B){B===0&&(W.result=W.options.to==="string"?W.chunks.join(""):JD.flattenChunks(W.chunks));W.chunks=[];W.err=B;W.msg=W.strm.msg};var wM4=typeof TextEncoder!=="undefined"?new TextEncoder:null,UJR=wM4?function(W){return wM4.encode(W)}:function(W){W=_.Sk(W);
for(var B=new Uint8Array(W.length),z=0;z<B.length;z++)B[z]=W[z];return B};var S4D={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},j9D={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Qt=function(W,B){this.version=W;this.args=B};
Qt.prototype.serialize=function(){return{version:this.version,args:this.args}};var I8R=function(W,B){this.topic=W;this.dataClass=B};
I8R.prototype.toString=function(){return this.topic};var VtT=_.q6("ytPubsub2Pubsub2Instance")||new _.PS;_.PS.prototype.subscribe=_.PS.prototype.subscribe;_.PS.prototype.unsubscribeByKey=_.PS.prototype.unsubscribeByKey;_.PS.prototype.publish=_.PS.prototype.publish;_.PS.prototype.clear=_.PS.prototype.clear;_.BV("ytPubsub2Pubsub2Instance",VtT);var CPX=_.q6("ytPubsub2Pubsub2SubscribedKeys")||{};_.BV("ytPubsub2Pubsub2SubscribedKeys",CPX);var hRR=_.q6("ytPubsub2Pubsub2TopicToKeys")||{};_.BV("ytPubsub2Pubsub2TopicToKeys",hRR);
var owR=_.q6("ytPubsub2Pubsub2IsAsync")||{};_.BV("ytPubsub2Pubsub2IsAsync",owR);_.BV("ytPubsub2Pubsub2SkipSubKey",null);var u4T=void 0,Xfr=void 0;var nwk=_.iO("max_body_size_to_compress",5E5),N5D=_.iO("min_body_size_to_compress",500),XG=!0,RRk=0,Kg=0,a8t=_.iO("compression_performance_threshold_lr",250),WRx=_.iO("slow_compressions_before_abandon_count",4),xJT=!1,DJX=new Map,Ls2=1,$J0=!0;_.TC(u2,GsQ);u2.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 Jzu=function(W,B,z){z||(z=0);var G=W.W_;if(typeof B==="string")for(var Y=0;Y<16;Y++)G[Y]=B.charCodeAt(z)<<24|B.charCodeAt(z+1)<<16|B.charCodeAt(z+2)<<8|B.charCodeAt(z+3),z+=4;else for(Y=0;Y<16;Y++)G[Y]=B[z]<<24|B[z+1]<<16|B[z+2]<<8|B[z+3],z+=4;for(B=16;B<80;B++)z=G[B-3]^G[B-8]^G[B-14]^G[B-16],G[B]=(z<<1|z>>>31)&4294967295;B=W.chain_[0];z=W.chain_[1];Y=W.chain_[2];for(var d=W.chain_[3],E=W.chain_[4],v,c,J=0;J<80;J++)J<40?J<20?(v=d^z&(Y^d),c=1518500249):(v=z^Y^d,c=1859775393):J<60?(v=z&Y|d&(z|Y),
c=2400959708):(v=z^Y^d,c=3395469782),v=(B<<5|B>>>27)+v+E+c+G[J]&4294967295,E=d,d=Y,Y=(z<<30|z>>>2)&4294967295,z=B,B=v;W.chain_[0]=W.chain_[0]+B&4294967295;W.chain_[1]=W.chain_[1]+z&4294967295;W.chain_[2]=W.chain_[2]+Y&4294967295;W.chain_[3]=W.chain_[3]+d&4294967295;W.chain_[4]=W.chain_[4]+E&4294967295};
u2.prototype.update=function(W,B){if(W!=null){B===void 0&&(B=W.length);for(var z=B-this.blockSize,G=0,Y=this.buf_,d=this.inbuf_;G<B;){if(d==0)for(;G<=z;)Jzu(this,W,G),G+=this.blockSize;if(typeof W==="string")for(;G<B;){if(Y[d]=W.charCodeAt(G),++d,++G,d==this.blockSize){Jzu(this,Y);d=0;break}}else for(;G<B;)if(Y[d]=W[G],++d,++G,d==this.blockSize){Jzu(this,Y);d=0;break}}this.inbuf_=d;this.total_+=B}};
u2.prototype.digest=function(){var W=[],B=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var z=this.blockSize-1;z>=56;z--)this.buf_[z]=B&255,B/=256;Jzu(this,this.buf_);for(z=B=0;z<5;z++)for(var G=24;G>=0;G-=8)W[B]=this.chain_[z]>>G&255,++B;return W};var pJT;var nw=function(W){var B=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(g){B.databaseToken=g},
triggerThrottle:function(){B.throttledSend()},
cancelThrottle:function(){B.cancelThrottledSend()},
immediateSend:function(g){return _.T(function(t){return t.yield(B.immediateSend(g),0)})},
requestWithinAgeLimit:function(g,t){return B.requestWithinAgeLimit(g,t)},
retryQueuedRequests:function(){B.retryQueuedRequests()}};
var z;this.throttleTimeout=(z=W.throttleTimeout)!=null?z:100;var G;this.retryMaxAttempts=(G=W.retryMaxAttempts)!=null?G:1;var Y;this.requestAgeLimitMs=(Y=W.requestAgeLimitMs)!=null?Y:2592E6;var d;this.queuedRequestAgeLimitMs=(d=W.queuedRequestAgeLimitMs)!=null?d:12E4;var E;this.retryDelayMs=(E=W.retryDelayMs)!=null?E:5E3;var v;this.databaseToken=(v=W.databaseToken)!=null?v:void 0;this.enableCleaning=!!W.enableCleaning;var c;this.cleaningRate=(c=W.cleaningRate)!=null?c:.1;var J;this.potentialEsfErrorLimit=
(J=W.potentialEsfErrorLimit)!=null?J:10;W.handleError&&(this.handleError=W.handleError);W.handleWarning&&(this.handleWarning=W.handleWarning);W.disableYtIdbTransactions&&(this.disableYtIdbTransactions=W.disableYtIdbTransactions);W.bypassDbTokenDependency&&(this.bypassDbTokenDependency=W.bypassDbTokenDependency);this.getBooleanFlag=W.getBooleanFlag;this.jobManager=W.jobManager;this.logsStore=W.logsStore;this.networkManager=W.networkManager;this.sendFn=W.sendFn;this.onlineEvent=W.onlineEvent;this.offlineEvent=
W.offlineEvent;qr(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&g6R(this)},g6R=function(W){qr(W)&&!W.disableYtIdbTransactions&&(W.initialized=!0,W.enableCleaning&&Math.random()<=W.cleaningRate&&W.logsStore.cleanLogsStore(W.databaseToken),W.retryQueuedRequests(),W.networkManager.isNetworkAvailable()&&W.throttledSend(),W.networkManager.listen(W.onlineEvent,W.throttledSend.bind(W)),W.networkManager.listen(W.offlineEvent,W.cancelThrottledSend.bind(W)))};
_.p=nw.prototype;_.p.writeThenSend=function(W,B){var z=this;B=B===void 0?{}:B;if(qr(this)&&this.initialized){var G={url:W,options:B,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(G,this.databaseToken).then(function(Y){G.id=Y;z.networkManager.isNetworkAvailable()&&z.immediateSend(G)}).catch(function(Y){z.immediateSend(G);
ttF(z,Y)})}else this.sendFn(W,B)};
_.p.sendThenWrite=function(W,B,z){var G=this;B=B===void 0?{}:B;if(qr(this)&&this.initialized){var Y={url:W,options:B,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(Y.skipRetry=z);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!Y.skipRetry){if(!Y.skipRetry){var d=B.onError?B.onError:function(){};
B.onError=function(E,v){return _.T(function(c){if(c.nextAddress==1)return c.yield(G.logsStore.set(Y,G.databaseToken).catch(function(J){ttF(G,J)}),2);
d(E,v);_.HG(c)})}}this.sendFn(W,B,Y.skipRetry)}else this.logsStore.set(Y,this.databaseToken).catch(function(E){G.sendFn(W,B,Y.skipRetry);
ttF(G,E)})}else this.sendFn(W,B,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&z)};
_.p.sendAndWrite=function(W,B){var z=this;B=B===void 0?{}:B;if(qr(this)&&this.initialized){var G={url:W,options:B,timestamp:this.now(),status:"NEW",sendCount:0},Y=!1,d=B.onSuccess?B.onSuccess:function(){};
G.options.onSuccess=function(E,v){G.id!==void 0?z.logsStore.deleteRequest(G.id,z.databaseToken):Y=!0;z.networkManager.networkStatusHint&&z.getBooleanFlag&&z.getBooleanFlag("vss_network_hint")&&z.networkManager.networkStatusHint(!0);d(E,v)};
this.sendFn(G.url,G.options,void 0,!0);this.logsStore.set(G,this.databaseToken).then(function(E){G.id=E;Y&&z.logsStore.deleteRequest(G.id,z.databaseToken)}).catch(function(E){ttF(z,E)})}else this.sendFn(W,B,void 0,!0)};
_.p.throttledSend=function(){var W=this;if(!qr(this))throw Error("cd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var B;return _.T(function(z){if(z.nextAddress==1)return z.yield(W.logsStore.getMostRecentByStatus("NEW",W.databaseToken),2);if(z.nextAddress!=3)return B=z.yieldResult,B?z.yield(W.immediateSend(B),3):(W.cancelThrottledSend(),z.return());W.intervalJob&&(W.intervalJob=0,W.throttledSend());_.HG(z)})},this.throttleTimeout))};
_.p.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.p.immediateSend=function(W){var B=this,z;return _.T(function(G){switch(G.nextAddress){case 1:if(!qr(B))throw Error("dd");if(W.id===void 0){G.jumpTo(2);break}return G.yield(B.logsStore.markAsQueued(W.id,B.databaseToken),3);case 3:(z=G.yieldResult)||B.handleWarning(Error("ed"));case 2:if(B.requestWithinAgeLimit(W,B.requestAgeLimitMs)){G.jumpTo(4);break}B.handleWarning(Error("fd"));if(W.id===void 0){G.jumpTo(5);break}return G.yield(B.logsStore.deleteRequest(W.id,B.databaseToken),5);case 5:return G.return();
case 4:W.skipRetry||(W=sdM(B,W));if(!W){G.jumpTo(0);break}if(!W.skipRetry||W.id===void 0){G.jumpTo(8);break}return G.yield(B.logsStore.deleteRequest(W.id,B.databaseToken),8);case 8:B.sendFn(W.url,W.options,!!W.skipRetry),_.HG(G)}})};
var sdM=function(W,B){if(!qr(W))throw Error("gd");var z=B.options.onError?B.options.onError:function(){};
B.options.onError=function(Y,d){var E,v,c,J;return _.T(function(g){switch(g.nextAddress){case 1:E=vBt(d);(v=cVk(d))&&W.getBooleanFlag&&W.getBooleanFlag("web_enable_error_204")&&W.handleError(Error("hd"),B.url,d);if(!(W.getBooleanFlag&&W.getBooleanFlag("nwl_consider_error_code")&&E||W.getBooleanFlag&&!W.getBooleanFlag("nwl_consider_error_code")&&W.potentialEsfErrorCounter<=W.potentialEsfErrorLimit)){g.jumpTo(2);break}if(!W.networkManager.sendNetworkCheckRequest){g.jumpTo(3);break}return g.yield(W.networkManager.sendNetworkCheckRequest(),
3);case 3:if(W.networkManager.isNetworkAvailable()){g.jumpTo(2);break}z(Y,d);if(!W.getBooleanFlag||!W.getBooleanFlag("nwl_consider_error_code")||((c=B)==null?void 0:c.id)===void 0){g.jumpTo(6);break}return g.yield(W.logsStore.resetRequest(B.id,W.databaseToken,!1),6);case 6:return g.return();case 2:if(W.getBooleanFlag&&W.getBooleanFlag("nwl_consider_error_code")&&!E&&W.potentialEsfErrorCounter>W.potentialEsfErrorLimit)return g.return();W.potentialEsfErrorCounter++;if(((J=B)==null?void 0:J.id)===void 0){g.jumpTo(8);
break}return B.sendCount<W.retryMaxAttempts?g.yield(W.logsStore.resetRequest(B.id,W.databaseToken,!0,v?!1:void 0),12):g.yield(W.logsStore.deleteRequest(B.id,W.databaseToken),8);case 12:W.jobManager.addLowPriorityJob(function(){W.networkManager.isNetworkAvailable()&&W.throttledSend()},W.retryDelayMs);
case 8:z(Y,d),_.HG(g)}})};
var G=B.options.onSuccess?B.options.onSuccess:function(){};
B.options.onSuccess=function(Y,d){var E;return _.T(function(v){if(v.nextAddress==1)return((E=B)==null?void 0:E.id)===void 0?v.jumpTo(2):v.yield(W.logsStore.deleteRequest(B.id,W.databaseToken),2);W.networkManager.networkStatusHint&&W.getBooleanFlag&&W.getBooleanFlag("vss_network_hint")&&W.networkManager.networkStatusHint(!0);G(Y,d);_.HG(v)})};
return B};
nw.prototype.requestWithinAgeLimit=function(W,B){W=W.timestamp;return this.now()-W>=B?!1:!0};
nw.prototype.retryQueuedRequests=function(){var W=this;if(!qr(this))throw Error("id");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(B){B&&!W.requestWithinAgeLimit(B,W.queuedRequestAgeLimitMs)?W.jobManager.addLowPriorityJob(function(){return _.T(function(z){if(z.nextAddress==1)return B.id===void 0?z.jumpTo(2):z.yield(W.logsStore.resetRequest(B.id,W.databaseToken),2);W.retryQueuedRequests();_.HG(z)})}):W.networkManager.isNetworkAvailable()&&W.throttledSend()})};
var ttF=function(W,B){W.writeError&&!W.networkManager.isNetworkAvailable()?W.writeError(B):W.handleError(B)},qr=function(W){return!!W.databaseToken||W.bypassDbTokenDependency};var wJx;var Z2X={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,
visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var Pyu={},lrt=GU("ServiceWorkerLogsDatabase",{objectStores:(Pyu.SWHealthLog={addedAtVersion:1},Pyu),shared:!0,upgrade:function(W,B){B(1)&&D_(xb(W,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var b8T={},SVv=0;var XJ0;var Nr=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},NX=function(){if(!Nr.instance){var W=_.q6("yt.networkRequestMonitor.instance")||new Nr;
_.BV("yt.networkRequestMonitor.instance",W);Nr.instance=W}return Nr.instance};
Nr.prototype.requestComplete=function(W,B){B&&(this.anyRequestHasSucceeded=!0);W=this.removeParams(W);this.requestMap.get(W)||this.requestMap.set(W,B)};
Nr.prototype.isEndpointCFR=function(W){W=this.removeParams(W);return(W=this.requestMap.get(W))?!1:W===!1&&this.anyRequestHasSucceeded?!0:null};
Nr.prototype.removeParams=function(W){return W.split("?")[0]};
Nr.prototype.removeParams=Nr.prototype.removeParams;Nr.prototype.isEndpointCFR=Nr.prototype.isEndpointCFR;Nr.prototype.requestComplete=Nr.prototype.requestComplete;Nr.getInstance=NX;var $L=function(W){_.Ka.call(this);var B=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=W!=null?W:{addLowPriorityJob:function(Y,d){return setTimeout(Y,d)},
cancelJob:function(Y){clearTimeout(Y)}};
var z,G;this.isOnline=(G=(z=window.navigator)==null?void 0:z.onLine)!=null?G:!0;this.onNavigatorChange=function(){return _.T(function(Y){return Y.yield(ZtQ(B),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||rzF(this)};
_.C($L,_.Ka);$L.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete $L.instance};
$L.prototype.isNetworkAvailable=function(){return this.isOnline};
var rzF=function(W){W.pollingJob=W.jobManager.addLowPriorityJob(function(){var B;return _.T(function(z){if(z.nextAddress==1)return W.isOnline?((B=window.navigator)==null?0:B.onLine)?z.jumpTo(3):z.yield(ZtQ(W),3):z.yield(ZtQ(W),3);rzF(W);_.HG(z)})},3E4)},ZtQ=function(W,B){return W.networkRequestPromise?W.networkRequestPromise:W.networkRequestPromise=new Promise(function(z){var G,Y,d,E;
return _.T(function(v){switch(v.nextAddress){case 1:return G=window.AbortController?new window.AbortController:void 0,d=(Y=G)==null?void 0:Y.signal,E=!1,_.kA(v,2,3),G&&(W.abortTimeoutKey=W.jobManager.addLowPriorityJob(function(){G.abort()},B||2E4)),v.yield(fetch("/generate_204",{method:"HEAD",
signal:d}),5);case 5:E=!0;case 3:_.CN(v);W.networkRequestPromise=void 0;W.abortTimeoutKey&&(W.jobManager.cancelJob(W.abortTimeoutKey),W.abortTimeoutKey=0);E!==W.isOnline&&(W.isOnline=E,W.isOnline?W.dispatchEvent("networkstatus-online"):W.dispatchEvent("networkstatus-offline"));z(E);_.oR(v,0);break;case 2:_.h6(v),E=!1,v.jumpTo(3)}})})};var Lw=function(){_.Ka.call(this);var W=this;this.shouldFlushErrors=!1;$L.instance||($L.instance=new $L(_.fg));this.sharedNetworkStatusManager=$L.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(W.shouldFlushErrors&&_.r("offline_error_handling")){var B=KRD().get("errors",!0);if(B){for(var z in B)if(B[z]){var G=new _.oX(z,"sent via offline_errors");G.name=B[z].name;G.stack=B[z].stack;G.level=B[z].level;_.xr(G)}KRD().set("errors",{},2592E3,!0)}}})};
_.C(Lw,_.Ka);var k5Q=function(){if(!Lw.instance){var W=_.q6("yt.networkStatusManager.instance")||new Lw;_.BV("yt.networkStatusManager.instance",W);Lw.instance=W}return Lw.instance};
_.p=Lw.prototype;_.p.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.p.networkStatusHint=function(W){this.sharedNetworkStatusManager.isOnline=W};
_.p.getWindowStatus=function(){var W=window.navigator.onLine;return W===void 0?!0:W};
_.p.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.p.listen=function(W,B){return this.sharedNetworkStatusManager.listen(W,B)};
_.p.sendNetworkCheckRequest=function(W){W=ZtQ(this.sharedNetworkStatusManager,W);W.then(function(B){_.r("use_cfr_monitor")&&NX().requestComplete("generate_204",B)});
return W};
Lw.prototype.sendNetworkCheckRequest=Lw.prototype.sendNetworkCheckRequest;Lw.prototype.listen=Lw.prototype.listen;Lw.prototype.enableErrorFlushing=Lw.prototype.enableErrorFlushing;Lw.prototype.getWindowStatus=Lw.prototype.getWindowStatus;Lw.prototype.networkStatusHint=Lw.prototype.networkStatusHint;Lw.prototype.isNetworkAvailable=Lw.prototype.isNetworkAvailable;Lw.getInstance=k5Q;_.ng=function(W){W=W===void 0?{}:W;_.Ka.call(this);var B=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=k5Q();var z=_.q6("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);z&&(W.rateLimit?(this.rateLimit=W.rateLimit,z("networkstatus-online",function(){l2d(B,"publicytnetworkstatus-online")}),z("networkstatus-offline",function(){l2d(B,"publicytnetworkstatus-offline")})):(z("networkstatus-online",function(){B.dispatchEvent("publicytnetworkstatus-online")}),z("networkstatus-offline",
function(){B.dispatchEvent("publicytnetworkstatus-offline")})))};
_.C(_.ng,_.Ka);_.ng.prototype.isNetworkAvailable=function(){var W=_.q6("yt.networkStatusManager.instance.isNetworkAvailable");return W?W.bind(this.nsmInstance)():!0};
_.ng.prototype.networkStatusHint=function(W){var B=_.q6("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);B&&B(W)};
_.ng.prototype.sendNetworkCheckRequest=function(W){var B=this,z;return _.T(function(G){z=_.q6("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(B.nsmInstance);return _.r("skip_network_check_if_cfr")&&NX().isEndpointCFR("generate_204")?G.return(new Promise(function(Y){var d;B.networkStatusHint(((d=window.navigator)==null?void 0:d.onLine)||!0);Y(B.isNetworkAvailable())})):z?G.return(z(W)):G.return(!0)})};
var l2d=function(W,B){W.rateLimit?W.lastJobTime?(_.fg.cancelJob(W.schedulerJob),W.schedulerJob=_.fg.addLowPriorityJob(function(){W.lastPublicSignalSent!==B&&(W.dispatchEvent(B),W.lastPublicSignalSent=B,W.lastJobTime=(0,_.Yb)())},W.rateLimit-((0,_.Yb)()-W.lastJobTime))):(W.dispatchEvent(B),W.lastPublicSignalSent=B,W.lastJobTime=(0,_.Yb)()):W.dispatchEvent(B)};var DHu,UT=function(){nw.call(this,{logsStore:{cleanLogsStore:rVX,deleteRequest:Z8v,getMostRecentByStatus:tK8,markAsQueued:sBx,resetRequest:Pgx,set:gBk},networkManager:_.QBk(),handleError:function(W,B,z){var G,Y=z==null?void 0:(G=z.error)==null?void 0:G.code;if(Y===400||Y===415){var d;W=new _.oX(W.message,B,z==null?void 0:(d=z.error)==null?void 0:d.code);_.nx(W,void 0,void 0,void 0,!0)}else _.xr(W)},
handleWarning:_.nx,sendFn:mHv,now:_.Yb,writeError:uFt,jobManager:_.FU(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.iO("potential_esf_error_limit",10),getBooleanFlag:_.r,disableYtIdbTransactions:!(_.IX()&&_.yVu())});this.initializationPromise=new _.sl;_.r("networkless_immediately_drop_all_requests")&&ksR();c8r("LogsDatabaseV2")};
_.C(UT,nw);_.I2Q=function(){var W=_.q6("yt.networklessRequestController.instance");W||(W=new UT,_.BV("yt.networklessRequestController.instance",W),_.r("networkless_logging")&&_.zU().then(function(B){W.databaseToken=B;g6R(W);W.initializationPromise.resolve();W.enableCleaning&&Math.random()<=W.cleaningRate&&W.databaseToken&&IrT(W.databaseToken);_.r("networkless_immediately_drop_sw_health_store")&&CyQ(W)}));
return W};
UT.prototype.writeThenSend=function(W,B){B||(B={});B=xH8(W,B);_.IX()||(this.initialized=!1);nw.prototype.writeThenSend.call(this,W,B)};
UT.prototype.sendThenWrite=function(W,B,z){B||(B={});B=xH8(W,B);_.IX()||(this.initialized=!1);nw.prototype.sendThenWrite.call(this,W,B,z)};
UT.prototype.sendAndWrite=function(W,B){B||(B={});B=xH8(W,B);_.IX()||(this.initialized=!1);nw.prototype.sendAndWrite.call(this,W,B)};
UT.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var CyQ=function(W){var B;_.T(function(z){if(!W.databaseToken)throw B=x8("clearSWHealthLogsDb"),B;return z.return(oBk(W.databaseToken).catch(function(G){W.handleError(G)}))})};_.nBD=!1;_.qVy=_.Yt.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.nBD};_.BV("ytNetworklessLoggingInitializationOptions",_.qVy);var FC=function(W){var B=this;this.config_=null;W?this.config_=W:r8u()&&(this.config_=_.pg());_.CG(_.fg,function(){Tax(B)},5E3)};
FC.prototype.isReady=function(){!this.config_&&r8u()&&(this.config_=_.pg());return!!this.config_};
var EBD=function(W,B,z,G){!_.eD("VISITOR_DATA")&&B!=="visitor_id"&&Math.random()<.01&&_.nx(new _.oX("Missing VISITOR_DATA when sending innertube request.",B,z,G));if(!W.isReady()){var Y=new _.oX("innertube xhrclient not ready",B,z,G);_.xr(Y);throw Y;}var d={headers:G.headers||{},method:"POST",postParams:z,postBody:G.postBody,postBodyFormat:G.postBodyFormat||"JSON",onTimeout:function(){G.onTimeout()},
onFetchTimeout:G.onTimeout,onSuccess:function(t,P){if(G.onSuccess)G.onSuccess(P)},
onFetchSuccess:function(t){if(G.onSuccess)G.onSuccess(t)},
onProgress:function(t){if(G.onProgress)G.onProgress(t)},
onError:function(t,P){if(G.onError)G.onError(P)},
onFetchError:function(t){if(G.onError)G.onError(t)},
timeout:G.timeout,withCredentials:!0,compress:G.compress};d.headers["Content-Type"]||(d.headers["Content-Type"]="application/json");var E="";(Y=W.config_.innertubeHostOverride)&&(E=Y);var v=W.config_.innertubeUseThirdPartyAuth||!1,c=_.utt(v,E,G);Object.assign(d.headers,c);d.headers.Authorization&&!E&&v&&(d.headers["x-origin"]=window.location.origin);var J=_.M6(E+("/youtubei/"+W.config_.innertubeApiVersion+"/"+B),{alt:"json"}),g=function(t){t=t===void 0?!1:t;var P;if(G.retry&&E!="www.youtube-nocookie.com"&&
(t||_.r("skip_ls_gel_retry")||d.headers["Content-Type"]!=="application/json"||(P=AVT(B,z,c,v)),P)){var Z=d.onSuccess,l=d.onFetchSuccess;d.onSuccess=function(K,e){i8Q(P);Z(K,e)};
z.onFetchSuccess=function(K,e){i8Q(P);l(K,e)}}try{if(t&&G.retry&&!G.networklessOptions.bypassNetworkless)d.method="POST",G.networklessOptions.writeThenSend?_.I2Q().writeThenSend(J,d):_.I2Q().sendAndWrite(J,d);
else if(G.compress){var b=!G.networklessOptions.writeThenSend;if(d.postBody){var O=d.postBody;typeof O!=="string"&&(O=JSON.stringify(d.postBody));MJR(J,O,d,_.tC,b)}else MJR(J,JSON.stringify(d.postParams),d,YgR,b)}else _.r("web_all_payloads_via_jspb")?_.tC(J,d):YgR(J,d)}catch(K){if(K.name==="InvalidAccessError")P&&(i8Q(P),P=0),_.nx(Error("jd"));else throw K;}P&&_.CG(_.fg,function(){Tax(W)},5E3)};
_.NaT()?YlX().then(function(t){g(t)}):g(!1)};var dpR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(dpR,_.iQ);var o6F=0,LRt=_.ts?"webkit":_.gb?"moz":_.Js?"ms":OTT?"o":"";_.BV("ytDomDomGetNextId",_.q6("ytDomDomGetNextId")||function(){return++o6F});var hlM={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},Re=function(W){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(W=
W||window.event){this.event=W;for(var B in W)B in hlM||(this[B]=W[B]);this.scale=W.scale;this.rotation=W.rotation;var z=W.target||W.srcElement;z&&z.nodeType==3&&(z=z.parentNode);this.target=z;var G=W.relatedTarget;if(G)try{G=G.nodeName?G:null}catch(Y){G=null}else this.type=="mouseover"?G=W.fromElement:this.type=="mouseout"&&(G=W.toElement);this.relatedTarget=G;this.clientX=W.clientX!=void 0?W.clientX:W.pageX;this.clientY=W.clientY!=void 0?W.clientY:W.pageY;this.keyCode=W.keyCode?W.keyCode:W.which;
this.charCode=W.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=W.altKey;this.ctrlKey=W.ctrlKey;this.shiftKey=W.shiftKey;this.metaKey=W.metaKey;this.pageX_=W.pageX;this.pageY_=W.pageY}}catch(Y){}},HtR=function(W){if(document.body&&document.documentElement){var B=document.body.scrollTop+document.documentElement.scrollTop;
W.pageX_=W.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);W.pageY_=W.clientY+B}};
Re.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Re.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Re.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var ae=_.Yt.ytEventsEventsListeners||{};_.BV("ytEventsEventsListeners",ae);var BSv=_.Yt.ytEventsEventsCounter||{count:0};_.BV("ytEventsEventsCounter",BSv);var zIR=_.ff(function(){var W=!1;try{var B=Object.defineProperty({},"capture",{get:function(){W=!0}});
window.addEventListener("test",null,B)}catch(z){}return W});_.TC(BT,_.bA);BT.prototype.onMouseMove_=function(W){W.pageX_===void 0&&HtR(W);var B=W.pageX_;W.pageY_===void 0&&HtR(W);this.position_=new _.De(B,W.pageY_)};
BT.prototype.checkPosition_=function(){if(this.position_){var W=(0,_.Yb)();if(this.previousTime_!=0){var B=this.previousPosition_,z=this.position_,G=B.x-z.x;B=B.y-z.y;G=Math.sqrt(G*G+B*B)/(W-this.previousTime_);this.cycles_[this.index_]=Math.abs((G-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(z=B=0;z<4;z++)B+=this.cycles_[z]||0;B>=3&&this.callback_();this.previousVelocity_=G}this.previousTime_=W;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
BT.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.GGx(this.mouseListenerKey_)};var AYx={};var JgX=new _.J1("rawColdConfigGroup");var Vcv=new _.J1("rawHotConfigGroup");var F1F=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(F1F,_.iQ);var Y4D=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Y4D,_.iQ);var lp=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W,500)};
_.C(lp,_.iQ);lp.prototype.getPayloadCase=function(){return _.FP(this,ShR)};
lp.prototype.getContext=function(){return _.AD(this,Y4D,33)};
var ShR=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529];var i22=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(i22,_.iQ);var umu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(umu,_.iQ);umu.prototype.setVideoId=function(W){return JX(this,1,eIu,ri(W))};
umu.prototype.getPlaylistId=function(){return _.Cp(this,ZD(this,eIu,2))};
var eIu=[1,2];var z$r=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(z$r,_.iQ);z$r.prototype.getContext=function(){return _.AD(this,g7,1)};
z$r.prototype.getTier=function(){return _.u0(this,7)};var bt4,d7,AX;bt4=_.Yt.ytPubsubPubsubInstance||new _.PS;d7=_.Yt.ytPubsubPubsubSubscribedKeys||{};AX=_.Yt.ytPubsubPubsubTopicToKeys||{};_.iyR=_.Yt.ytPubsubPubsubIsSynchronous||{};_.PS.prototype.subscribe=_.PS.prototype.subscribe;_.PS.prototype.unsubscribeByKey=_.PS.prototype.unsubscribeByKey;_.PS.prototype.publish=_.PS.prototype.publish;_.PS.prototype.clear=_.PS.prototype.clear;_.BV("ytPubsubPubsubInstance",bt4);_.BV("ytPubsubPubsubTopicToKeys",AX);_.BV("ytPubsubPubsubIsSynchronous",_.iyR);
_.BV("ytPubsubPubsubSubscribedKeys",d7);var Ec=window;var Mr=_.r("web_enable_lifecycle_monitoring")&&w2t()!==0,jdR=_.r("web_enable_lifecycle_monitoring");var f2d=function(W){var B=this;var z=z===void 0?0:z;var G=G===void 0?_.FU():G;this.JSC$10890_defaultPriority=z;this.scheduler=G;this.completedResolver=new _.sl;this.scheduledPayloads=W;for(W={i$jscomp$492:0};W.i$jscomp$492<this.scheduledPayloads.length;W={payload$jscomp$20:void 0,i$jscomp$492:W.i$jscomp$492},W.i$jscomp$492++)W.payload$jscomp$20=this.scheduledPayloads[W.i$jscomp$492],z=function(Y){return function(){Y.payload$jscomp$20.job();B.scheduledPayloads[Y.i$jscomp$492].processed=!0;B.scheduledPayloads.every(function(d){return d.processed===
!0})&&B.completedResolver.resolve()}}(W),G=this.getPriority(W.payload$jscomp$20),G=this.scheduler.addJob(z,G),this.scheduledPayloads[W.i$jscomp$492]=Object.assign({},W.payload$jscomp$20,{job:z,
jobId:G})};
f2d.prototype.flushJobs=function(){var W=this,B=Array.from(this.scheduledPayloads.keys()).sort(function(G,Y){return W.getPriority(W.scheduledPayloads[Y])-W.getPriority(W.scheduledPayloads[G])});
B=_.A(B);for(var z=B.next();!z.done;z=B.next())z=this.scheduledPayloads[z.value],z.jobId===void 0||z.processed||(this.scheduler.cancelJob(z.jobId),this.scheduler.addJob(z.job,10))};
f2d.prototype.cancel=function(){for(var W=_.A(this.scheduledPayloads),B=W.next();!B.done;B=W.next())B=B.value,B.jobId===void 0||B.processed||this.scheduler.cancelJob(B.jobId),B.processed=!0;this.completedResolver.resolve()};
f2d.prototype.getPriority=function(W){var B;return(B=W.priority)!=null?B:this.JSC$10890_defaultPriority};var a1=function(W){this.state=W;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Mr&&VXt(this.state)};
a1.prototype.install=function(W){this.plugins.push(W);return this};
a1.prototype.uninstall=function(){var W=this;_.nm.apply(0,arguments).forEach(function(B){B=W.plugins.indexOf(B);B>-1&&W.plugins.splice(B,1)})};
a1.prototype.transition=function(W,B){var z=this;Mr&&JYT(this.state);var G=this.transitions.find(function(d){return Array.isArray(d.from)?d.from.find(function(E){return E===z.state&&d.to===W}):d.from===z.state&&d.to===W});
if(G){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);OtT(this,W,B);this.state=W;Mr&&VXt(this.state);G=G.action.bind(this);var Y=this.plugins.filter(function(d){return d[W]}).map(function(d){return d[W]});
G(XMM(this,Y),B)}else throw Error("kd`"+this.state+"`"+W);};
var XMM=function(W,B){var z=B.filter(function(Y){return K1R(W,Y)===10}),G=B.filter(function(Y){return K1R(W,Y)!==10});
return W.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var Y=_.nm.apply(0,arguments);return _.T(function(d){if(d.nextAddress==1)return d.yield(W.runImmediateJobsAsync.apply(W,[z].concat(_.u7(Y))),2);W.setJobSetWithScheduledJobs.apply(W,[G].concat(_.u7(Y)));_.HG(d)})}:function(){var Y=_.nm.apply(0,arguments);
W.runImmediateJobsSync.apply(W,[z].concat(_.u7(Y)));W.setJobSetWithScheduledJobs.apply(W,[G].concat(_.u7(Y)))}};
a1.prototype.runImmediateJobsSync=function(W){var B=_.nm.apply(1,arguments);_.FU();for(var z=_.A(W),G=z.next(),Y={};!G.done;Y={lifecycle$jscomp$2:void 0},G=z.next())Y.lifecycle$jscomp$2=G.value,sv(function(d){return function(){uRU(d.lifecycle$jscomp$2.name);tXQ(function(){return d.lifecycle$jscomp$2.callback.apply(d.lifecycle$jscomp$2,_.u7(B))});
R1(d.lifecycle$jscomp$2.name)}}(Y))};
a1.prototype.runImmediateJobsAsync=function(W){var B=_.nm.apply(1,arguments),z,G,Y,d;return _.T(function(E){E.nextAddress==1&&(_.FU(),z=_.A(W),G=z.next(),Y={});if(E.nextAddress!=3){if(G.done)return E.jumpTo(0);Y.lifecycle$jscomp$3=G.value;Y.asyncJobCompletion=void 0;d=function(v){return function(){uRU(v.lifecycle$jscomp$3.name);var c=tXQ(function(){return v.lifecycle$jscomp$3.callback.apply(v.lifecycle$jscomp$3,_.u7(B))});
cFy(c)?v.asyncJobCompletion=_.r("web_lifecycle_error_handling_killswitch")?c.then(function(){R1(v.lifecycle$jscomp$3.name)}):c.then(function(){R1(v.lifecycle$jscomp$3.name)},function(J){gGk(J);
R1(v.lifecycle$jscomp$3.name)}):R1(v.lifecycle$jscomp$3.name)}}(Y);
sv(d);return Y.asyncJobCompletion?E.yield(Y.asyncJobCompletion,3):E.jumpTo(3)}Y={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};G=z.next();return E.jumpTo(2)})};
a1.prototype.setJobSetWithScheduledJobs=function(W){var B=_.nm.apply(1,arguments),z=this,G=W.map(function(Y){return{job:function(){uRU(Y.name);tXQ(function(){return Y.callback.apply(Y,_.u7(B))});
R1(Y.name)},
priority:K1R(z,Y)}});
G.length&&(this.jobSet=new f2d(G))};
var K1R=function(W,B){var z,G;return(G=(z=W.overridePriority)!=null?z:B.priority)!=null?G:0},uRU=function(W){Mr&&W&&VXt(W)},R1=function(W){Mr&&W&&JYT(W)},OtT=function(W,B,z){jdR&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+W.constructor.name+"] '"+W.state+"' to '"+B+"'"),console.log("with message: ",z),console.groupEnd())};
_.G5.Object.defineProperties(a1.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var eld=function(W){a1.call(this,W===void 0?"none":W);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(){}}]},mO7;
_.C(eld,a1);eld.prototype.runApplicationNavigationBegin=function(W,B){var z=this;this.navigationTimer=_.CG(_.fg,function(){z.currentState==="application_navigating"&&z.transition("none")},5E3);
W(B==null?void 0:B.event)};
eld.prototype.runApplicationNavigationEnd=function(W,B){this.navigationTimer&&(_.fg.cancelJob(this.navigationTimer),this.navigationTimer=null);W(B==null?void 0:B.event)};
_.wAR=function(){mO7||(mO7=new eld);return mO7};var cg2=[];_.BV("yt.logging.transport.getScrapedGelPayloads",function(){return cg2});var Ti=function(){var W=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return W.totalEntries}}};
Ti.prototype.storePayload=function(W,B){W=sK0(W);this.store[W]?this.store[W].push(B):(this.memoizedKeySequences={},this.store[W]=[B]);this.totalEntries++;_.r("more_accurate_gel_parser")&&(B=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(B));return W};
Ti.prototype.smartExtractMatchingEntries=function(W){if(!W.keys.length)return[];for(var B=xOM(this,W.keys.splice(0,1)[0]),z=[],G=0;G<B.length;G++)this.store[B[G]]&&W.sizeLimit&&(this.store[B[G]].length<=W.sizeLimit?(z.push.apply(z,_.u7(this.store[B[G]])),delete this.store[B[G]]):z.push.apply(z,_.u7(this.store[B[G]].splice(0,W.sizeLimit))));this.totalEntries-=z.length;(W==null?0:W.sizeLimit)&&z.length<(W==null?void 0:W.sizeLimit)&&(W.sizeLimit-=z.length,z.push.apply(z,_.u7(this.smartExtractMatchingEntries(W))));
return z};
Ti.prototype.extractMatchingEntries=function(W){W=xOM(this,W);for(var B=[],z=0;z<W.length;z++)this.store[W[z]]&&(B.push.apply(B,_.u7(this.store[W[z]])),delete this.store[W[z]]);this.totalEntries-=B.length;return B};
Ti.prototype.getSequenceCount=function(W){W=xOM(this,W);for(var B=0,z=0;z<W.length;z++){var G=void 0;B+=((G=this.store[W[z]])==null?void 0:G.length)||0}return B};
var xOM=function(W,B){var z=sK0(B);if(W.memoizedKeySequences[z])return W.memoizedKeySequences[z];var G=Object.keys(W.store)||[];if(G.length<=1&&sK0(B)===G[0])return G;for(var Y=[],d=0;d<G.length;d++){var E=G[d].split("/");if(DOT(B.auth,E[0])){var v=B.isJspb;DOT(v===void 0?"undefined":v?"true":"false",E[1])&&DOT(B.cttAuthInfo,E[2])&&(v=B.tier,v=v===void 0?"undefined":JSON.stringify(v),DOT(v,E[3])&&Y.push(G[d]))}}return W.memoizedKeySequences[z]=Y},DOT=function(W,B){return W===void 0||W==="undefined"?
!0:W===B};
Ti.prototype.getSequenceCount=Ti.prototype.getSequenceCount;Ti.prototype.extractMatchingEntries=Ti.prototype.extractMatchingEntries;Ti.prototype.smartExtractMatchingEntries=Ti.prototype.smartExtractMatchingEntries;Ti.prototype.storePayload=Ti.prototype.storePayload;var $Eu,nGr,LTT,w7,Qd4,PjQ,snD,qvD,yYv,jKv,NS8,Tuv,xEX;$Eu=_.iO("initial_gel_batch_timeout",2E3);nGr=_.iO("gel_queue_timeout_max_ms",6E4);LTT=_.iO("gel_min_batch_size",5);w7=void 0;Qd4=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
PjQ=new Qd4;snD=new Qd4;qvD=new Qd4;yYv=new Qd4;NS8=!0;Tuv=1;_.E2Q=new Map;xEX=_.Yt.ytLoggingTransportTokensToCttTargetIds_||{};_.BV("ytLoggingTransportTokensToCttTargetIds_",xEX);var mEX=_.Yt.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.BV("ytLoggingTransportTokensToJspbCttTargetIds_",mEX);var cT={};var hX=_.Yt.ytLoggingGelSequenceIdObj_||{};_.BV("ytLoggingGelSequenceIdObj_",hX);var kNR=[];var O2u=new Set,h$r=0,e$x=0,uEX=0,FCR=[],H2k=[],m$r=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var R$D=function(){};
R$D.prototype.getUrl=function(W,B){B=B===void 0?!1:B;return W.hasOwnProperty("shareEndpoint")?null:_.ygX(W,null,B)};
var MeQ=function(W,B,z){W={endpoint:B,actions:[]};z=(z.path?z.path[0]:z.target).icon||"";B=z.indexOf(":");B>0&&(z=z.substr(B+1));z&&W.actions.push(z);return W};var U$Q=/Command$/,LCX=/Endpoint$/,n2X=new Map;var yz6,qh4;yz6=1;_.Qx=function(){this.actionRoutingMap=new Map};
_.Qx.prototype.triggerAction=function(W){var B=new KNu(W,!1,_.nm.apply(1,arguments));this.handleAction(B);return B.returnValue};
_.Qx.prototype.triggerOptionalAction=function(W){var B=new KNu(W,!0,_.nm.apply(1,arguments));this.handleAction(B);return B.returnValue};
_.W4=function(W,B,z){B.forEach(function(G){var Y=$$t(G);Y&&W.triggerOptionalAction(Y,G,z,void 0)})};
_.Qx.prototype.handleAction=function(W){var B=this.actionRoutingMap.get(W.actionName);B&&qh4(W,B);W.optionalAction||W.returnValue.length!==0||(W=new _.oX("Unhandled action",W.actionName),_.nx(W))};
qh4=function(W,B){B.forEach(function(z){var G=null;z?G=z.apply(null,W.args):(z=Error("ld"),z.params=W.actionName,_.xr(z));W.returnValue.push(G)})};
_.yx=function(W,B,z){z||(z=yz6++);for(var G=_.A(Object.keys(B)),Y=G.next();!Y.done;Y=G.next()){Y=Y.value;var d=W.actionRoutingMap.get(Y);d||(d=new Map,W.actionRoutingMap.set(Y,d));W.registerActionHandler(z,Y,B[Y],d)}return z};
_.Qx.prototype.registerActionHandler=function(W,B,z,G){G.set(W,_.D5(z))};
_.Nl=function(W,B,z){B=_.A(Object.keys(B));for(var G=B.next();!G.done;G=B.next())(G=W.actionRoutingMap.get(G.value))&&G.delete(z)};
_.i0(_.Qx);var zr2=function(W,B){var z=_.Qx.getInstance();_.jD(function(){var G={},Y=_.yx(z,(G[W]=B,G));_.fR(function(){var d={};_.Nl(z,(d[W]="",d),Y)})})};var Aik=Symbol("nd");Azr=elR;var s6t=new Set(["For","If","Match","Watch"]),n6H={},N8Q=(n6H[DI.default]=function(){return R2X},n6H.style=function(){return R2X},n6H),$OQ;
for($OQ in N8Q)iE.attributes[$OQ]=N8Q[$OQ](iE.attributes[$OQ]);var Gp=new _.t1("VISIBILITY_OBSERVER");var hrt={retrieve:function(W){return this.id.\u0275prov.token===W.\u0275prov.token?this.contextValue:this?_.d4(this,this.id):C2v}};var MbQ=function(W,B,z){if(W!==Rg)return!1;W=cEk(document.createElement("div"),function(){var G=ik(!1);try{z[0]()}finally{ik(G)}});
W=Array.from(W.childNodes);W.length===1&&(W=W[0]);return W};var L16=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(W){}var UOM=typeof WeakRef==="function";var Mt9=function(W){this.value=W};
Mt9.prototype.deref=function(){return this.value};
var a2M=UOM?WeakRef:Mt9,RlM=function(W){this.newKeyHandler=W;this.map=new WeakMap};
RlM.prototype.add=function(W,B){this.map.has(W)||(this.newKeyHandler(W),this.map.set(W,[]));this.map.get(W).push(new a2M(B))};
RlM.prototype.get=function(W){var B=this;return function G(){var Y,d,E,v,c,J,g,t,P,Z,l;return _.vh(G,function(b){switch(b.nextAddress){case 1:_.IR(b,2);Y=B.map.get(W);if(!Y)return b.return();d=0;E=_.A(Y);v=E.next();case 4:if(v.done){b.jumpTo(6);break}c=v.value;J=c.deref();if(!J){b.jumpTo(5);break}d++;g=_.ch;return b.yield(J,8);case 8:g(b.yieldResult);case 5:v=E.next();b.jumpTo(4);break;case 6:if(2*d<Y.length){t=0;P=_.A(Y);for(Z=P.next();!Z.done;Z=P.next())l=Z.value,l.deref()&&(Y[t++]=l);Y.length=
t}case 2:_.CN(b),_.oR(b,0)}})}()};var WjQ=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},OkQ=new RlM(function(W){W.addEventListener("abort",KuR,{once:!0})}),fKR=new WeakMap,BVR=function(W){W=W===void 0?B4:W;
this.signal=new W};
BVR.prototype.abort=function(W){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=W,W=new Event("abort"),this.signal.dispatchEvent(W))};
var B4=function(){this.target=WjQ();this.aborted=!1;this.onabort=null};
B4.prototype.throwIfAborted=function(){j6x.call(this)};
B4.prototype.addEventListener=function(W,B,z){this.target.addEventListener(W,B,z)};
B4.prototype.removeEventListener=function(W,B,z){this.target.removeEventListener(W,B,z)};
B4.prototype.dispatchEvent=function(W){if(this.onabort&&W.type==="abort")this.onabort(W);return this.target.dispatchEvent(W)};
B4.abort=bk0;B4.timeout=uB0;B4.any=XkT;var S_y=L16?AbortController:BVR,zf=L16?AbortSignal:B4;typeof zf.abort!=="function"&&(zf.abort=bk0);typeof zf.prototype.throwIfAborted!=="function"&&(zf.prototype.throwIfAborted=j6x);typeof zf.any!=="function"&&(zf.any=XkT);typeof zf.timeout!=="function"&&(zf.timeout=uB0);var zYM=function(W){W=W.clone();k4M(W);u_(W,"dg",null);u_(W,"d","0");sXF(W,null);PO7(W,null);return W},Gy7=!0,Y24=function(W,B,z){var G=z===void 0?{}:z;
z=G.cssRowKey===void 0?void 0:G.cssRowKey;var Y=G.combinedSignature===void 0?void 0:G.combinedSignature;var d=G.extraEdges===void 0?void 0:G.extraEdges;G=G.callback===void 0?void 0:G.callback;u_(W,"m",B.join(","));d&&rC4(W,d);z&&(u_(W,"ck",z),Y?u_(W,"rs",Y):Gy7&&(Gy7=!1));if(G){if(G!=null&&!Io6.test(G))throw Error("Xa`"+G);u_(W,"cb",G)}W=W.toString();_.A0(W,"/")&&(W=WF4(document.location.href)+W);return _.bQ(W)};var p06=function(W){return djU(W).then(function(B){return JSON.parse(B.responseText)})},djU=function(W){var B={},z=B.xmlHttpFactory?B.xmlHttpFactory.createInstance():mdF.createInstance();
return(new _.Vx(function(G,Y){var d;try{z.open("GET",W,!0)}catch(c){Y(new Gf("Error opening XHR: "+c.message,W,z))}z.onreadystatechange=function(){if(z.readyState==4){_.Yt.clearTimeout(d);var c;!(c=ek7(z.status))&&(c=z.status===0)&&(c=R1Q(W),c=!(c=="http"||c=="https"||c==""));c?G(z):Y(new Ar6(z.status,W,z))}};
z.onerror=function(){Y(new Gf("Network error",W,z))};
if(B.headers)for(var E in B.headers){var v=B.headers[E];v!=null&&z.setRequestHeader(E,v)}B.withCredentials&&(z.withCredentials=B.withCredentials);B.responseType&&(z.responseType=B.responseType);B.mimeType&&z.overrideMimeType(B.mimeType);B.timeoutMs>0&&(d=_.Yt.setTimeout(function(){z.onreadystatechange=function(){};
z.abort();Y(new iiR(W,z))},B.timeoutMs));
try{z.send(null)}catch(c){z.onreadystatechange=function(){},_.Yt.clearTimeout(d),Y(new Gf("Error sending XHR: "+c.message,W,z))}})).thenCatch(function(G){G instanceof _.qF&&z.abort();
throw G;})},Gf=function(W,B,z){_.zT.call(this,W+", url="+B);
this.url=B;this.xhr=z};
_.TC(Gf,_.zT);Gf.prototype.name="XhrError";var Ar6=function(W,B,z){Gf.call(this,"Request Failed, status="+W,B,z);this.status=W};
_.TC(Ar6,Gf);Ar6.prototype.name="XhrHttpError";var iiR=function(W,B){Gf.call(this,"Request timed out",W,B)};
_.TC(iiR,Gf);iiR.prototype.name="XhrTimeoutError";As=As||{};var Yy=function(){_.bA.call(this)};
_.TC(Yy,_.bA);Yy.prototype.initialize=function(){};var EqH=function(W,B){this.fn_=W;this.handler_=B};
EqH.prototype.execute=function(W){this.fn_&&(this.fn_.call(this.handler_||null,W),this.fn_=this.handler_=null)};
EqH.prototype.abort=function(){this.handler_=this.fn_=null};var dI=function(W,B){_.bA.call(this);this.deps_=W;this.JSC$11044_id_=B;this.onloadCallbacks_=[];this.JSC$11044_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.TC(dI,_.bA);dI.prototype.moduleConstructor_=Yy;dI.prototype.module_=null;dI.prototype.getId=function(){return this.JSC$11044_id_};
dI.prototype.registerCallback=function(W,B){return TVH(this.onloadCallbacks_,W,B)};
var vq7=function(W,B){TVH(W.JSC$11044_onErrorCallbacks_,B)},TVH=function(W,B,z){B=new EqH(B,z);
W.push(B);return B};
dI.prototype.isLoaded=function(){return!!this.module_};
dI.prototype.onLoad=function(W){var B=new this.moduleConstructor_;B.initialize(W());this.module_=B;B=(B=crH(this.earlyOnloadCallbacks_,W()))||crH(this.onloadCallbacks_,W());B||(this.JSC$11044_onErrorCallbacks_.length=0);return B};
dI.prototype.onError=function(W){(W=crH(this.JSC$11044_onErrorCallbacks_,W))&&dk(Error("qd`"+W));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var crH=function(W,B){for(var z=[],G=0;G<W.length;G++)try{W[G].execute(B)}catch(Y){dk(Y),z.push(Y)}W.length=0;return z.length?z:null};
dI.prototype.disposeInternal=function(){dI.superClass_.disposeInternal.call(this);_.AI(this.module_)};var w06,PHd,t4D,sPM,JrF,gqQ,CHH,kyR,l4d;
_.pl=function(W,B,z,G,Y){G=G===void 0?!1:G;Y=Y===void 0?!1:Y;var d=d===void 0?!0:d;this.scsReferenceUrl_=N2r(_.jN(W).toString(),d);this.cssRowKey_=B;this.combinedSignature_=z;this.useNegativeLoading_=G;this.requestedModuleMap_={};this.JSC$11047_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(W=K_(this.scsReferenceUrl_,"excm"))?W.split(","):[];this.shouldScanForCss_=Y;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;$Xv();_.ph(this,Z4R(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
w06=function(W,B){if(B.href||B.getAttribute("data-href"))if(B=B.href||B.getAttribute("data-href"),QeR(B)&&!N2r(B).urlPrefix_.endsWith("_/js/")){B=Z4R(N2r(B));B=_.A(B);for(var z=B.next();!z.done;z=B.next())z=z.value,W.loadedCssModuleList_.includes(z)||W.loadedCssModuleList_.push(z)}};
_.pl.prototype.JSC$11049_loadModules=function(W,B,z){var G=z===void 0?{}:z;z=G.extraEdges;var Y=G.onError;var d=G.onSuccess;G=G.forceReload;this.JSC$11047_moduleInfoMap_=B;if(!W)throw Error("rd");if(this.shouldScanForCss_){B=_.A(document.getElementsByTagName("style"));for(var E=B.next();!E.done;E=B.next())w06(this,E.value);B=_.A(document.getElementsByTagName("link"));for(E=B.next();!E.done;E=B.next())w06(this,E.value)}V4T(this,JrF(this,W),z,Y,d,G)};
var V4T=function(W,B,z,G,Y,d){G=G===void 0?function(){}:G;
Y=Y===void 0?function(){}:Y;
d=d===void 0?!1:d;gqQ(W,B,function(E,v,c){c=c===void 0?v:c;W.enableFallbackFetch&&d?W.loadWithFetch(E,v,G,Y,c):W.load(E,v,G,Y,c,z)},z)||G(-1)};
_.pl.prototype.loadWithFetch=function(){_.T(function(){throw Error("sd");})};
_.pl.prototype.maybeSetAdditionalFields=function(){};
PHd=function(W,B,z){if(W.useNegativeLoading_){var G=W.scsReferenceUrl_;W={cssRowKey:W.cssRowKey_,combinedSignature:W.combinedSignature_,extraEdges:z,requestedModuleIds:t4D(W),requestedCssModuleIds:sPM(W)};var Y=W===void 0?{}:W;W=Y.requestedModuleIds===void 0?[]:Y.requestedModuleIds;z=Y.requestedCssModuleIds===void 0?[]:Y.requestedCssModuleIds;var d=Y.cssRowKey===void 0?void 0:Y.cssRowKey;var E=Y.combinedSignature===void 0?void 0:Y.combinedSignature;var v=Y.extraEdges===void 0?void 0:Y.extraEdges;
Y=Y.callback===void 0?void 0:Y.callback;G=zYM(G);u_(G,"d","1");sXF(G,W);PO7(G,z);B=Y24(G,B,{cssRowKey:d,combinedSignature:E,extraEdges:v,callback:Y})}else G=W.scsReferenceUrl_,W={cssRowKey:W.cssRowKey_,combinedSignature:W.combinedSignature_,requestedModuleIds:t4D(W),requestedCssModuleIds:sPM(W)},v=W===void 0?{}:W,W=v.requestedCssModuleIds===void 0?[]:v.requestedCssModuleIds,z=v.cssRowKey===void 0?void 0:v.cssRowKey,d=v.combinedSignature===void 0?void 0:v.combinedSignature,E=v.extraEdges===void 0?
void 0:v.extraEdges,v=v.callback===void 0?void 0:v.callback,G=zYM(G),PO7(G,W),B=Y24(G,B,{cssRowKey:z,combinedSignature:d,extraEdges:E,callback:v});return B};
_.ph=function(W,B){for(var z=!1,G=[],Y=0;Y<B.length;++Y){var d=B[Y];W.requestedModuleMap_[d]||(W.requestedModuleMap_[d]=!0,W.requestedModuleList_.push(d),z=!0,G.push(d))}z&&(W.requestedModuleListSorted_=!1)};
_.Af=function(W,B){for(var z=[],G=0;G<B.length;++G){var Y=B[G];W.requestedModuleMap_[Y]&&(delete W.requestedModuleMap_[Y],_.Dv(W.requestedModuleList_,Y),z.push(Y))}};
_.pl.prototype.load=function(W,B,z,G,Y){Y=Y===void 0?B:Y;_.jN(W);var d=this.useCors_,E=this.corsMode_,v=this.fetchPriority,c=_.I0("SCRIPT");_.pN(c,W);d&&(c.crossOrigin=E);c.async=!1;v&&c.setAttribute("fetchpriority",v);_.ph(this,B);_.ZiR(this,W,c,B,z,G,Y)};
_.ZiR=function(W,B,z,G,Y,d,E){E=E===void 0?G:E;W.lastScript_=z;W.insertPos.insertBefore(z,W.insertPos.firstChild);_.rrQ(z,G,function(){z.parentElement.removeChild(z);W.lastScript_==z&&(W.lastScript_=null);var v=new Set;G.map(function(J){return v.add(J)});
for(var c in W.JSC$11047_moduleInfoMap_)W.JSC$11047_moduleInfoMap_[c].isLoaded()&&v.add(c);Array.from(v);d()},function(v){z.parentElement.removeChild(z);
W.lastScript_==z&&(W.lastScript_=null);_.Af(W,v);W.pendingModuleGraphUpdate_?W.pendingModuleGraphUpdate_.then(function(){Y(-1,B)}):Y(-1,B)},E)};
_.rrQ=function(W,B,z,G,Y){Y=Y===void 0?B:Y;var d=B.length,E=function(){d=0;W.onload=null;W.onerror=null;v=function(){}},v=function(){E();
var J=Y.filter(function(g){return!uA().getModuleInfo(g).isLoaded()});
J.length!==0?G(J,"Response was successful but was missing module(s) "+J+"."):z()},c=function(){d--;
d==0&&v()};
B.forEach(function(J){J=uA().getModuleInfo(J);J.isLoaded()?c():(TVH(J.earlyOnloadCallbacks_,c),vq7(J,c))});
W.onload=function(){return v()};
W.onerror=function(){E();G(B)}};
t4D=function(W){W.requestedModuleListSorted_||(W.requestedModuleListSorted_=!0,W.requestedModuleList_.sort());return W.requestedModuleList_};
sPM=function(W){W=W.loadedCssModuleList_;W.sort();return W};
JrF=function(W,B){return B.filter(function(z){return!W.requestedModuleMap_[z]})};
gqQ=function(W,B,z,G){if(W.pendingModuleGraphUpdate_)return W.pendingModuleGraphUpdate_.then(function(){gqQ(W,B,z,G)}),!0;
if(!W.useNegativeLoading_){var Y=[],d=Object.assign({},W.requestedModuleMap_);kyR(W,B,function(g){Y.push(g.getId())},G,function(g){return!g.isLoaded()},d);
B=Y}for(d=0;d<B.length;){for(var E=B.length-d,v=d==0?B:B.slice(d,B.length),c=PHd(W,v,G),J=_.jN(c).toString();J.length>W.urlMaxLength;)if(E>1)E-=Math.ceil((J.length-W.urlMaxLength)/6),E=Math.max(E,1),v=B.slice(d,d+E),c=PHd(W,v,G),J=_.jN(c).toString();else return W.useNegativeLoading_?(W.useNegativeLoading_=!1,W.pendingModuleGraphUpdate_=l4d(W).then(function(g){CHH(W,g,G)}),gqQ(W,B.slice(d),z,G)):!1;
d+=E;W.useNegativeLoading_?z(c,v):z(c,v,d===B.length?B:[])}return!0};
CHH=function(W,B,z){uA().setAllModuleInfoString((B||{}).moduleGraph);kyR(W,t4D(W),function(G){_.ph(W,[G.getId()])},z);
W.pendingModuleGraphUpdate_=null};
kyR=function(W,B,z,G,Y,d){d=d===void 0?{}:d;var E=uA();B=_.A(B);for(var v=B.next();!v.done;v=B.next()){v=v.value;var c=E.getModuleInfo(v);if(!(d[v]||Y&&!Y(c))){d[v]=!0;var J=c.deps_||[];if(G){var g=[];G[v]&&(g=Object.keys(G[v]));J=J.concat(g)}kyR(W,J,z,G,Y,d);z(c)}}};
l4d=function(W){W=W.scsReferenceUrl_.clone();k4M(W);u_(W,"dg",null);u_(W,"md","1");return p06(W.toString())};var erv=new Uint8Array(123);var I44=[];var oq9=function(){this.JSC$10054_loader_=null};
_.p=oq9.prototype;_.p.setBatchModeEnabled=function(){};
_.p.setAllModuleInfoString=function(){};
_.p.addExtraEdge=function(){throw Error("td");};
_.p.removeExtraEdge=function(){throw Error("ud");};
_.p.getModuleContext=function(){return null};
_.p.isActive=function(){return!1};
_.p.isUserActive=function(){return!1};
_.p.registerCallback=function(){};var iz=function(W,B,z,G,Y){var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.name="ModuleLoadFailure";this.type=W;this.status=B;this.requestedModuleIds=z;this.url=G;this.cause=Y;this.message=this.toString()};
_.C(iz,Error);iz.prototype.toString=function(){return hYQ(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var hYQ=function(W){switch(W.type){case iz.Type.UNAUTHORIZED:return"Unauthorized";case iz.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case iz.Type.TIMEOUT:return"Timed out";case iz.Type.OLD_CODE_GONE:return"Out of date module id";case iz.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+W.type}};
As.ModuleLoadFailure=iz;As.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var EW=function(){this.moduleIds_=this.JSC$10054_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11062_extraEdges_={};this.JSC$11062_callbackMap_={};this.JSC$11062_currentlyLoadingModule_=this.baseModuleInfo_=new dI([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new A4;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.TC(EW,oq9);var HiF=function(W,B){_.zT.call(this,"Error loading "+W+": "+B)};
_.TC(HiF,_.zT);EW.prototype.setBatchModeEnabled=function(W){this.batchModeEnabled_=W};
EW.prototype.setAllModuleInfoString=function(W,B){if(!(this instanceof EW))this.setAllModuleInfoString(W,B);else if(typeof W==="string"){if(W.startsWith("d$")){W=W.substring(2);for(var z=[],G=0,Y=W.indexOf("/"),d=0,E=!1,v=0;;){var c=E?W.substring(d):W.substring(d,Y);if(c.length===0)G++,d="sy"+G.toString(36),c=[];else{var J=c.indexOf(":");if(J<0)d=c,c=[];else if(J===c.length-1)d=c.substring(0,J),c=Array(z[v-1]);else{d=c.substring(0,J);c=c.substring(J+1).split(",");J=v;for(var g=0;g<c.length;g++)J-=
c[g].length===0?1:Number(c[g]),c[g]=z[J]}J=0;if(d.length===0)J=1;else if(d.charAt(0)==="+"||d.charAt(0)==="-")J=Number(d);J!==0&&(G+=J,d="sy"+G.toString(36))}z.push(d);Fjd(this,d,c);if(E)break;d=Y+1;Y=W.indexOf("/",d);Y===-1&&(E=!0);v++}this.moduleIds_=z}else if(W.startsWith("p$"))S26(this,W);else{W=W.split("/");z=[];for(G=0;G<W.length;G++){v=W[G].split(":");Y=v[0];E=[];if(v[1])for(E=v[1].split(","),v=0;v<E.length;v++)E[v]=z[parseInt(E[v],36)];z.push(Y);Fjd(this,Y,E)}this.moduleIds_=z}B&&B.length?
(_.qR(this.loadingModuleIds_,B),this.lastInitialModuleId_=_.fu(B)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11062_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11062_currentlyLoadingModule_=null,(B=this.baseModuleInfo_.onLoad((0,_.jk)(this.getModuleContext,this)))&&B.length&&biR(this,new As.ModuleLoadFailure(As.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,B[0])),Tf(this))}};
var S26=function(W,B){var z=B.substring(2);for(B=0;B<64;B++)erv["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(B)]=B;var G={buf:z,pos:0};dq(G);var Y=dq(G),d=dq(G)+1;B=Array(Y);var E=Array(Y),v=Array(Y);d=Array(d);var c=0,J=0,g=G.pos,t=G.buf.indexOf("|",G.pos);G.pos=t+1;for(t=0;t<Y;t++){var P=dq(G),Z=P&2,l=P&1;P>>>=2;l?(c+=P>>>1^-(P&1),P="sy"+c.toString(36)):(l=g,g+=P,P=z.substring(l,g));B[t]=P;Z&&(d[J++]=P)}d[J]="";G.pos++;J=Y&-2;z=Y&1;for(c=0;c<J;c+=2)g=mFk(G),v[c]=
g&7,v[c+1]=g>>>3&7;z&&(z=mFk(G),v[J]=z&7);G.pos++;for(J=0;J<Y;J++)v[J]===7&&(v[J]=dq(G));G.pos++;for(z=J=0;z<Y;z++){c=v[z];g=c===0?I44:Array(c);E[z]=g;t=J;for(Z=0;Z<c;Z++)t-=dq(G),g[Z]=d[t];d[J]===B[z]&&J++}for(G=0;G<B.length;G++)Fjd(W,B[G],E[G]);W.moduleIds_=B};
_.p=EW.prototype;_.p.getModuleInfo=function(W){return this.moduleInfoMap[W]};
_.p.addExtraEdge=function(W,B){var z=this.getModuleInfo(W);z&&z.isLoaded()?this.load(B):(this.JSC$11062_extraEdges_[W]||(this.JSC$11062_extraEdges_[W]={}),this.JSC$11062_extraEdges_[W][B]=!0)};
_.p.removeExtraEdge=function(W,B){if(this.JSC$11062_extraEdges_[W]){delete this.JSC$11062_extraEdges_[W][B];for(var z in this.JSC$11062_extraEdges_[W])return;delete this.JSC$11062_extraEdges_[W]}};
_.p.isActive=function(){return this.loadingModuleIds_.length>0};
_.p.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Tf=function(W){var B=W.lastActive_,z=W.isActive();z!=B&&(W.executeCallbacks_(z?"active":"idle"),W.lastActive_=z);B=W.isUserActive();B!=W.userLastActive_&&(W.executeCallbacks_(B?"userActive":"userIdle"),W.userLastActive_=B)},Fjd=function(W,B,z){W.moduleInfoMap[B]?(W=W.moduleInfoMap[B].deps_,W!=z&&W.splice.apply(W,[0,
W.length].concat(_.u7(z)))):W.moduleInfoMap[B]=new dI(z,B)},f4M=function(W,B,z){var G=[];
otu(B,G);B=[];for(var Y={},d=0;d<G.length;d++){var E=G[d],v=W.getModuleInfo(E);if(!v)throw Error("vd`"+E);var c=new A4;Y[E]=c;v.isLoaded()?c.callback(null):(jPu(W,E,v,!!z,c),W.isModuleLoading(E)||B.push(E))}B.length>0&&(W.loadingModuleIds_.length===0?W.loadModules_(B):(W.requestedModuleIdsQueue_.push(B),Tf(W)));return Y},jPu=function(W,B,z,G,Y){z.registerCallback(Y.callback,Y);
vq7(z,function(d){Y.errback(new HiF(B,d))});
W.isModuleLoading(B)?G&&(OiR(W,B),Tf(W)):G&&OiR(W,B)};
EW.prototype.loadModules_=function(W,B,z){var G=this;B||(this.consecutiveFailures_=0);var Y=X07(this,W);this.loadingModuleIds_=Y;this.requestedLoadingModuleIds_=this.batchModeEnabled_?W:_.QR(Y);Tf(this);if(Y.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,Y);W=this.JSC$10054_loader_;if(!W)throw Error("wd");if(Object.keys(this.JSC$11062_extraEdges_).length>0&&!W.supportsExtraEdges)throw Error("xd");z=(0,_.jk)(W.JSC$11049_loadModules,W,_.QR(Y),this.moduleInfoMap,{extraEdges:this.JSC$11062_extraEdges_,
forceReload:!!z,onError:function(d,E){var v=G.requestedLoadingModuleIds_;d=d!=null?d:void 0;G.consecutiveFailures_++;var c=_.QR(Y);G.requestedLoadingModuleIds_=v;Y.forEach(_.Ci(_.Dv,G.requestedModuleIds_),G);d==401?(biR(G,new As.ModuleLoadFailure(As.ModuleLoadFailure.Type.UNAUTHORIZED,d)),G.requestedModuleIdsQueue_.length=0):d==410?(KjT(G,new As.ModuleLoadFailure(As.ModuleLoadFailure.Type.OLD_CODE_GONE,d)),uOM(G)):G.consecutiveFailures_>=3?(KjT(G,new As.ModuleLoadFailure(As.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
d,c,E)),uOM(G)):G.loadModules_(G.requestedLoadingModuleIds_,!0,d==8001||!1)},
onTimeout:(0,_.jk)(this.handleLoadTimeout_,this)});(W=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Yt.setTimeout(z,W):z()}};
var X07=function(W,B){B=B.filter(function(Y){return W.moduleInfoMap[Y].isLoaded()?(_.Yt.setTimeout(function(){return Error("yd`"+Y)},0),!1):!0});
for(var z=[],G=0;G<B.length;G++)z=z.concat(eYT(W,B[G]));otu(z);return!W.batchModeEnabled_&&z.length>1?(B=z.shift(),W.requestedModuleIdsQueue_=z.map(function(Y){return[Y]}).concat(W.requestedModuleIdsQueue_),[B]):z},eYT=function(W,B){var z=_.mP.createSet(W.requestedModuleIds_),G=[];
z[B]||G.push(B);B=[B];for(var Y=0;Y<B.length;Y++)for(var d=W.getModuleInfo(B[Y]).deps_,E=d.length-1;E>=0;E--){var v=d[E];W.getModuleInfo(v).isLoaded()||z[v]||(G.push(v),B.push(v))}G.reverse();otu(G);return G};
EW.prototype.JSC$11057_setLoaded=function(){if(this.JSC$11062_currentlyLoadingModule_){var W=this.JSC$11062_currentlyLoadingModule_.getId(),B=[];if(this.JSC$11062_extraEdges_[W]){for(var z=_.A(Object.keys(this.JSC$11062_extraEdges_[W])),G=z.next();!G.done;G=z.next()){G=G.value;var Y=this.getModuleInfo(G);Y&&!Y.isLoaded()&&(this.removeExtraEdge(W,G),B.push(G))}this.loadMultiple(B)}this.isDisposed()||((B=this.moduleInfoMap[W].onLoad((0,_.jk)(this.getModuleContext,this)))&&B.length&&biR(this,new As.ModuleLoadFailure(As.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,B[0])),_.Dv(this.userInitiatedLoadingModuleIds_,W),_.Dv(this.loadingModuleIds_,W),this.loadingModuleIds_.length===0&&uOM(this),this.lastInitialModuleId_&&W==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Tf(this),this.JSC$11062_currentlyLoadingModule_=null)}};
EW.prototype.isModuleLoading=function(W){if(_.xt(this.loadingModuleIds_,W))return!0;for(var B=0;B<this.requestedModuleIdsQueue_.length;B++)if(_.xt(this.requestedModuleIdsQueue_[B],W))return!0;return!1};
EW.prototype.load=function(W,B){return f4M(this,[W],B)[W]};
EW.prototype.loadMultiple=function(W){return f4M(this,W)};
var OiR=function(W,B){_.xt(W.userInitiatedLoadingModuleIds_,B)||W.userInitiatedLoadingModuleIds_.push(B)};
EW.prototype.beforeLoadModuleCode=function(W){var B=this;this.JSC$11062_currentlyLoadingModule_&&this.JSC$11062_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11057_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[W]&&mj7(this,this.moduleInfoMap[W].deps_||[],function(z){z.module_=new Yy;_.Dv(B.loadingModuleIds_,z.getId())},function(z){return!z.isLoaded()});
this.JSC$11062_currentlyLoadingModule_=this.getModuleInfo(W)};
EW.prototype.handleLoadTimeout_=function(){KjT(this,new As.ModuleLoadFailure(As.ModuleLoadFailure.Type.TIMEOUT));uOM(this)};
var KjT=function(W,B){W.requestedLoadingModuleIds_.length>1?W.requestedModuleIdsQueue_=W.requestedLoadingModuleIds_.map(function(z){return[z]}).concat(W.requestedModuleIdsQueue_):biR(W,B)},biR=function(W,B){var z=W.requestedLoadingModuleIds_;
W.loadingModuleIds_.length=0;for(var G=[],Y=0;Y<W.requestedModuleIdsQueue_.length;Y++){var d=W.requestedModuleIdsQueue_[Y].filter(function(c){var J=eYT(this,c);return $b(z,function(g){return _.xt(J,g)})},W);
_.qR(G,d)}for(Y=0;Y<z.length;Y++)_.kTT(G,z[Y]);for(Y=0;Y<G.length;Y++){for(d=0;d<W.requestedModuleIdsQueue_.length;d++)_.Dv(W.requestedModuleIdsQueue_[d],G[Y]);_.Dv(W.userInitiatedLoadingModuleIds_,G[Y])}if(Y=W.JSC$11062_callbackMap_.error)for(d=0;d<Y.length;d++)for(var E=Y[d],v=0;v<G.length;v++)E("error",G[v],B);for(G=0;G<z.length;G++)if(W.moduleInfoMap[z[G]])W.moduleInfoMap[z[G]].onError(B);W.requestedLoadingModuleIds_.length=0;Tf(W)},uOM=function(W){for(;W.requestedModuleIdsQueue_.length;){var B=
W.requestedModuleIdsQueue_.shift().filter(function(z){return!this.getModuleInfo(z).isLoaded()},W);
if(B.length>0){W.loadModules_(B);return}}Tf(W)};
EW.prototype.registerCallback=function(W,B){Array.isArray(W)||(W=[W]);for(var z=0;z<W.length;z++){var G=W[z],Y=B,d=this.JSC$11062_callbackMap_;d[G]||(d[G]=[]);d[G].push(Y)}};
EW.prototype.executeCallbacks_=function(W){for(var B=this.JSC$11062_callbackMap_[W],z=0;B&&z<B.length;z++)B[z](W)};
var mj7=function(W,B,z,G,Y){G=G===void 0?function(){return!0}:G;
Y=Y===void 0?{}:Y;B=_.A(B);for(var d=B.next();!d.done;d=B.next()){d=d.value;var E=W.getModuleInfo(d);!Y[d]&&G(E)&&(Y[d]=!0,mj7(W,E.deps_||[],z,G,Y),z(E))}};
EW.prototype.dispose=function(){_.iA(_.mP.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11062_callbackMap_={};this.isDisposed_=!0};
EW.prototype.isDisposed=function(){return this.isDisposed_};
_.Kp=function(){return new EW};var xjd=[5E3,2E4],DjM=function(){this.JSC$10054_loader_=null;this.JSC$11070_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11070_queue_=[];this.JSC$11070_extraEdges_=Object.create(null);this.JSC$11070_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.C(DjM,oq9);_.p=DjM.prototype;_.p.setAllModuleInfoString=function(){this.JSC$11070_currentlyLoadingModule_&&this.JSC$11070_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11057_setLoaded()};
_.p.getModuleInfo=function(W){var B=this.JSC$11070_moduleInfoMap_[W];B||(B=new dI([],W),this.JSC$11070_moduleInfoMap_[W]=B);return B};
_.p.addExtraEdge=function(W,B){this.getModuleInfo(W).isLoaded()?this.load(B):(this.JSC$11070_extraEdges_[W]||(this.JSC$11070_extraEdges_[W]={}),this.JSC$11070_extraEdges_[W][B]=!0)};
_.p.removeExtraEdge=function(W,B){if(this.JSC$11070_extraEdges_[W]){delete this.JSC$11070_extraEdges_[W][B];for(var z in this.JSC$11070_extraEdges_[W])return;delete this.JSC$11070_extraEdges_[W]}};
_.p.isModuleLoading=function(W){return!!this.loadingModules_[W]};
_.p.load=function(W){QP4(this,[W]);return yrH(this,W)};
_.p.loadMultiple=function(W){var B=this,z=Object.create(null),G=[];W.forEach(function(Y){z[Y]||(z[Y]=yrH(B,Y),G.push(Y))});
QP4(this,G);return z};
_.p.beforeLoadModuleCode=function(W){var B;((B=this.JSC$11070_currentlyLoadingModule_)==null?void 0:B.getId())==="synthetic_module_overhead"&&this.JSC$11057_setLoaded();var z,G;q2u(this,(G=(z=this.JSC$11070_moduleInfoMap_[W])==null?void 0:z.deps_)!=null?G:[],function(Y){Y.module_=new Yy},function(Y){return!Y.isLoaded()});
this.JSC$11070_currentlyLoadingModule_=this.getModuleInfo(W)};
_.p.JSC$11057_setLoaded=function(){if(this.JSC$11070_currentlyLoadingModule_){var W=this.JSC$11070_currentlyLoadingModule_.getId(),B=[];if(this.JSC$11070_extraEdges_[W]){for(var z=_.A(Object.keys(this.JSC$11070_extraEdges_[W])),G=z.next();!G.done;G=z.next())G=G.value,this.getModuleInfo(G).isLoaded()||(this.removeExtraEdge(W,G),B.push(G));this.loadMultiple(B)}this.JSC$11070_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11070_currentlyLoadingModule_=null;(!this.isModuleLoading(W)&&/^sy[0-9a-z]{0,4}$/.test(W)||W==="synthetic_module_overhead")&&delete this.JSC$11070_moduleInfoMap_[W];this.unsetModulesAsLoading(W)}};
_.p.setModulesAsLoading=function(){var W=this;_.nm.apply(0,arguments).forEach(function(B){W.loadingModules_[B]=!0})};
_.p.unsetModulesAsLoading=function(){var W=this;_.nm.apply(0,arguments).forEach(function(B){delete W.loadingModules_[B]})};
var yrH=function(W,B){return new _.Vx(function(z,G){var Y=W.getModuleInfo(B);Y.isLoaded()?z(null):(Y.registerCallback(function(){z(null)}),vq7(Y,function(d){var E="Error loading "+B+": "+d;
d instanceof As.ModuleLoadFailure&&d.url&&(E=E+", requested url: "+d.url.toString());G(Error(E))}))})},QP4=function(W,B){B=B.filter(function(z){return!W.isModuleLoading(z)&&!W.getModuleInfo(z).isLoaded()});
B.length>0&&(W.setModulesAsLoading.apply(W,_.u7(B)),W.JSC$11070_queue_.push(B),nqD(W))},nqD=function(W){for(var B={};W.activeLoads_<Infinity&&W.JSC$11070_queue_.length>0;B={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})B.ids$jscomp$36=W.JSC$11070_queue_.shift().filter(function(z){return!W.getModuleInfo(z).isLoaded()}),B.ids$jscomp$36.length>0&&(W.activeLoads_++,B.finishLoad=function(z){return function(){W.activeLoads_--;
nqD(W);z.finishLoad=function(){}}}(B),_.ma(B.ids$jscomp$36.map(function(z){return yrH(W,z)})).then(function(z){return function(){(0,z.finishLoad)()}}(B)),B.attempt$jscomp$6=0,B.load$jscomp$1=function(z){return function(){if(Object.keys(W.JSC$11070_extraEdges_).length>0&&!W.JSC$10054_loader_.supportsExtraEdges)throw Error("xd");
W.JSC$10054_loader_.JSC$11049_loadModules(z.ids$jscomp$36,W.JSC$11070_moduleInfoMap_,{extraEdges:W.JSC$11070_extraEdges_,onError:function(G,Y){var d=xjd[z.attempt$jscomp$6++];d!==void 0?setTimeout(function(){(0,z.load$jscomp$1)()},d):(W.unsetModulesAsLoading.apply(W,_.u7(z.ids$jscomp$36)),(0,z.finishLoad)(),z.ids$jscomp$36.forEach(function(E){E=W.getModuleInfo(E);
if(!E.isLoaded())E.onError(new As.ModuleLoadFailure(As.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,G,z.ids$jscomp$36,Y))}))}})}}(B),(0,B.load$jscomp$1)())},q2u=function(W,B,z,G,Y){G=G===void 0?function(){return!0}:G;
Y=Y===void 0?{}:Y;B=_.A(B);for(var d=B.next();!d.done;d=B.next()){d=d.value;var E=W.getModuleInfo(d);!Y[d]&&G(E)&&(Y[d]=!0,q2u(W,E.deps_||[],z,G,Y),z(E))}};var NV9=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var yEt=Symbol("Ad");window.JSCompiler_renameProperty=function(W){return W};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var $jQ=!NV9||HTMLElement.es5Shimmed||_.Yt.Reflect===void 0||_.Yt.customElements===void 0||_.Yt.customElements.polyfillWrapFlushCallback||!1,LjR,sVy=function(){var W=HTMLElement;if($jQ)return W;if(LjR!==void 0)return LjR;var B=_.Yt.Reflect,z=function(){return B.construct(W,[],this.constructor)};
z.prototype=W.prototype;z.prototype.constructor=z;z.es5Shimmed=!0;Object.setPrototypeOf(z,W);return LjR=z},UjF=!1;$jQ||UjF||(UjF=!0,_.Yt.HTMLElement=sVy());/*

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 Luv=/(url\()([^)]*)(\))/g,Nhv=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,$Ft,Aj;var yH=!window.ShadyDOM||!window.ShadyDOM.inUse,M44=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),a4d=!window.customElements.polyfillWrapFlushCallback,RYF;if(RYF=yH&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var W8U=new CSSStyleSheet;W8U.replaceSync("");var Bc9=document.createElement("div");Bc9.attachShadow({mode:"open"});Bc9.shadowRoot.adoptedStyleSheets=[W8U];RYF=Bc9.shadowRoot.adoptedStyleSheets[0]===W8U}catch(W){RYF=!1}
var zj9=RYF,Gl7=window.Polymer&&window.Polymer.rootPath||Mg8(document.baseURI||window.location.href),rq=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,diQ=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,$F=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ygd=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,QH=window.Polymer&&window.Polymer.legacyOptimizations||!1,NA=window.Polymer&&window.Polymer.legacyWarnings||!1,dM7=window.Polymer&&window.Polymer.syncInitialRender||
!1,lY=window.Polymer&&window.Polymer.legacyUndefined||!1,p3D=window.Polymer&&window.Polymer.orderedComputed||!1,v4=window.Polymer&&window.Polymer.removeNestedTemplates||!1,c4=window.Polymer&&window.Polymer.fastDomIf||!1,wI=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Aq9=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,iAF=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var VX={},EOH={},Is=function(){return HTMLElement.apply(this,arguments)||this};
_.C(Is,HTMLElement);Is.import=function(W,B){return W?(W=VX[W]||EOH[W.toLowerCase()])&&B?W.querySelector(B):W:null};
Is.prototype.attributeChangedCallback=function(W,B,z){B!==z&&this.register()};
Is.prototype.register=function(W){if(W=W||this.id){if($F&&(VX[W]||EOH[W.toLowerCase()])!==void 0)throw VX[W]=EOH[W.toLowerCase()]=null,Error("Bd`"+W);this.id=W;VX[W]=EOH[W.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.G5.Object.defineProperties(Is.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var W=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;W=_.iY(this.getAttribute("assetpath")||"",W.baseURI);this.__assetpath=Mg8(W)}return this.__assetpath}}});
_.G5.Object.defineProperties(Is,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Is["import"]=Is.import;Is.prototype.modules=VX;customElements.define("dom-module",Is);var TcM=0,Rr0=0,Ej=[],vOM=0,aKQ=!1,cqR=document.createTextNode(""),w3T,xF;(new window.MutationObserver(WQv)).observe(cqR,{characterData:!0});_.Jf={after:function(W){return{run:function(B){return window.setTimeout(B,W)},
cancel:function(B){window.clearTimeout(B)}}},
run:function(W,B){return window.setTimeout(W,B)},
cancel:function(W){window.clearTimeout(W)}};
_.eK={run:function(W){return window.requestAnimationFrame(W)},
cancel:function(W){window.cancelAnimationFrame(W)}};
w3T={run:function(W){return window.requestIdleCallback?window.requestIdleCallback(W):window.setTimeout(W,16)},
cancel:function(W){window.cancelIdleCallback?window.cancelIdleCallback(W):window.clearTimeout(W)}};
xF={run:function(W){aKQ||(aKQ=!0,cqR.textContent=vOM++);Ej.push(W);return TcM++},
cancel:function(W){var B=W-Rr0;if(B>=0){if(!Ej[B])throw Error("Cd`"+W);Ej[B]=null}}};var VLD=0,gI=function(W){var B=W.__mixinApplications;B||(B=new WeakMap,W.__mixinApplications=B);var z=VLD++;return function(G){var Y=G.__mixinSet;if(Y&&Y[z])return G;var d=B,E=d.get(G);E||(E=W(G),d.set(G,E),G=Object.create(E.__mixinSet||Y||null),G[z]=!0,E.__mixinSet=G);return E}};_.ZE=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(W){return ShadyDOM.patch(W)}:function(W){return W};var JqQ=gI(function(W){var B=function(){var z=W.call(this)||this;z.__dataEnabled=!1;z.__dataReady=!1;z.__dataInvalid=!1;z.__data={};z.__dataPending=null;z.__dataOld=null;z.__dataInstanceProps=null;z.__dataCounter=0;z.__serializing=!1;z._initializeProperties();return z};
_.C(B,W);B.createProperties=function(z){var G=this.prototype,Y;for(Y in z)Y in G||G._createPropertyAccessor(Y)};
B.attributeNameForProperty=function(z){return z.toLowerCase()};
B.typeForProperty=function(){};
B.prototype._createPropertyAccessor=function(z,G){this._addPropertyToAttributeMap(z);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[z]||(this.__dataHasAccessor[z]=!0,this._definePropertyAccessor(z,G))};
B.prototype._addPropertyToAttributeMap=function(z){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var G=this.__dataAttributes[z];G||(G=this.constructor.attributeNameForProperty(z),this.__dataAttributes[G]=z);return G};
B.prototype._definePropertyAccessor=function(z,G){Object.defineProperty(this,z,{get:function(){return this.__data[z]},
set:G?function(){}:function(Y){this._setPendingProperty(z,Y,!0)&&this._invalidateProperties()}})};
B.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
B.prototype._initializeProperties=function(){for(var z in this.__dataHasAccessor)this.hasOwnProperty(z)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[z]=this[z],delete this[z])};
B.prototype._initializeInstanceProperties=function(z){Object.assign(this,z)};
B.prototype._setProperty=function(z,G){this._setPendingProperty(z,G)&&this._invalidateProperties()};
B.prototype._getProperty=function(z){return this.__data[z]};
B.prototype._setPendingProperty=function(z,G){var Y=this.__data[z],d=this._shouldPropertyChange(z,G,Y);d&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||z in this.__dataOld||(this.__dataOld[z]=Y),this.__data[z]=G,this.__dataPending[z]=G);return d};
B.prototype._isPropertyPending=function(z){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(z))};
B.prototype._invalidateProperties=function(){var z=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,xF.run(function(){z.__dataInvalid&&(z.__dataInvalid=!1,z._flushProperties())}))};
B.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
B.prototype._flushProperties=function(){this.__dataCounter++;var z=this.__data,G=this.__dataPending,Y=this.__dataOld;this._shouldPropertiesChange(z,G,Y)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(z,G,Y));this.__dataCounter--};
B.prototype._shouldPropertiesChange=function(z,G){return!!G};
B.prototype._propertiesChanged=function(){};
B.prototype._shouldPropertyChange=function(z,G,Y){return Y!==G&&(Y===Y||G===G)};
B.prototype.attributeChangedCallback=function(z,G,Y,d){G!==Y&&this._attributeToProperty(z,Y);W.prototype.attributeChangedCallback&&W.prototype.attributeChangedCallback.call(this,z,G,Y,d)};
B.prototype._attributeToProperty=function(z,G,Y){if(!this.__serializing){var d=this.__dataAttributes;z=d&&d[z]||z;this[z]=this._deserializeValue(G,Y||this.constructor.typeForProperty(z))}};
B.prototype._propertyToAttribute=function(z,G,Y){this.__serializing=!0;Y=arguments.length<3?this[z]:Y;this._valueToNodeAttribute(this,Y,G||this.constructor.attributeNameForProperty(z));this.__serializing=!1};
B.prototype._valueToNodeAttribute=function(z,G,Y){G=this._serializeValue(G);if(Y==="class"||Y==="name"||Y==="slot")z=(0,_.ZE)(z);G===void 0?z.removeAttribute(Y):z.setAttribute(Y,G===""&&window.trustedTypes?window.trustedTypes.emptyScript:G)};
B.prototype._serializeValue=function(z){switch(typeof z){case "boolean":return z?"":void 0;default:return z!=null?z.toString():void 0}};
B.prototype._deserializeValue=function(z,G){switch(G){case Boolean:return z!==null;case Number:return Number(z);default:return z}};
return B});var gOu=0,Bnt=[];var tLR=gI(function(W){function B(d){d=Object.getPrototypeOf(d);return d.prototype instanceof Y?d:null}
function z(d){if(!d.hasOwnProperty("__ownProperties")){var E=null;if(d.hasOwnProperty("properties")){var v=d.properties;if(v){E={};for(var c in v){var J=v[c];E[c]=typeof J==="function"?{type:J}:J}}}d.__ownProperties=E}return d.__ownProperties}
var G=JqQ(W),Y=function(){return G.apply(this,arguments)||this};
_.C(Y,G);Y.finalize=function(){if(!this.hasOwnProperty("__finalized")){var d=B(this);d&&d.finalize();this.__finalized=!0;this._finalizeClass()}};
Y._finalizeClass=function(){var d=z(this);d&&this.createProperties(d)};
Y.typeForProperty=function(d){return(d=this._properties[d])&&d.type};
Y.prototype._initializeProperties=function(){gOu++;this.constructor.finalize();G.prototype._initializeProperties.call(this)};
Y.prototype.connectedCallback=function(){G.prototype.connectedCallback&&G.prototype.connectedCallback.call(this);this._enableProperties()};
Y.prototype.disconnectedCallback=function(){G.prototype.disconnectedCallback&&G.prototype.disconnectedCallback.call(this)};
_.G5.Object.defineProperties(Y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var d=this;if(!this.hasOwnProperty("__observedAttributes")){zp0(this.prototype);var E=this._properties;this.__observedAttributes=E?Object.keys(E).map(function(v){return d.prototype._addPropertyToAttributeMap(v)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var d=B(this);this.__properties=Object.assign({},d&&d._properties,z(this))}return this.__properties}}});
return Y});var GHu={},YoD=/-[a-z]/g,dgX=/([A-Z])/g;for(var s_M={},PdQ=HTMLElement.prototype;PdQ;){for(var ZAH=Object.getOwnPropertyNames(PdQ),rqQ=0;rqQ<ZAH.length;rqQ++)s_M[ZAH[rqQ]]=!0;PdQ=Object.getPrototypeOf(PdQ)}var kl6=window.trustedTypes?function(W){return trustedTypes.isHTML(W)||trustedTypes.isScript(W)||trustedTypes.isScriptURL(W)}:function(){return!1},ln7=gI(function(W){var B=JqQ(W);
W=function(){return B.apply(this,arguments)||this};
_.C(W,B);W.createPropertiesForAttributes=function(){for(var z=this.observedAttributes,G=0;G<z.length;G++)this.prototype._createPropertyAccessor(Tp(z[G]))};
W.attributeNameForProperty=function(z){return v_(z)};
W.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);B.prototype._initializeProperties.call(this)};
W.prototype._initializeProtoProperties=function(z){for(var G in z)this._setProperty(G,z[G])};
W.prototype._ensureAttribute=function(z,G){this.hasAttribute(z)||this._valueToNodeAttribute(this,G,z)};
W.prototype._serializeValue=function(z){switch(typeof z){case "object":if(z instanceof Date)return z.toString();if(z){if(kl6(z))return z;try{return JSON.stringify(z)}catch(G){return""}}default:return B.prototype._serializeValue.call(this,z)}};
W.prototype._deserializeValue=function(z,G){switch(G){case Object:try{var Y=JSON.parse(z)}catch(d){Y=z}break;case Array:try{Y=JSON.parse(z)}catch(d){Y=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+z)}break;case Date:Y=isNaN(z)?String(z):Number(z);Y=new Date(Y);break;default:Y=B.prototype._deserializeValue.call(this,z,G)}return Y};
W.prototype._definePropertyAccessor=function(z,G){if(!s_M[z]){var Y=this[z];Y!==void 0&&(this.__data?this._setPendingProperty(z,Y):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[z]=Y))}B.prototype._definePropertyAccessor.call(this,z,G)};
W.prototype._hasAccessor=function(z){return this.__dataHasAccessor&&this.__dataHasAccessor[z]};
W.prototype._isPropertyPending=function(z){return!!(this.__dataPending&&z in this.__dataPending)};
return W});var Cdd={"dom-if":!0,"dom-repeat":!0},Inu=!1,oOR=!1,hj7=function(){var W=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(B){return B}});
return function(B,z,G){z=z.getAttribute(G);W&&G.startsWith("on-")?B.setAttribute(G,W.createScript(z,G)):B.setAttribute(G,z)}}(),HA7=gI(function(W){var B=function(){return W.apply(this,arguments)||this};
_.C(B,W);B._parseTemplate=function(z,G){if(!z._templateInfo){var Y=z._templateInfo={};Y.nodeInfoList=[];Y.nestedTemplate=!!G;Y.stripWhiteSpace=G&&G.stripWhiteSpace||z.hasAttribute&&z.hasAttribute("strip-whitespace");this._parseTemplateContent(z,Y,{parent:null})}return z._templateInfo};
B._parseTemplateContent=function(z,G,Y){return this._parseTemplateNode(z.content,G,Y)};
B._parseTemplateNode=function(z,G,Y){var d=!1;z.localName!="template"||z.hasAttribute("preserve-content")?z.localName==="slot"&&(G.hasInsertionPoint=!0):d=this._parseTemplateNestedTemplate(z,G,Y)||d;if(!Inu){Inu=!0;var E=document.createElement("textarea");E.placeholder="a";oOR=E.placeholder===E.textContent}oOR&&z.localName==="textarea"&&z.placeholder&&z.placeholder===z.textContent&&(z.textContent=null);z.firstChild&&this._parseTemplateChildNodes(z,G,Y);z.hasAttributes&&z.hasAttributes()&&(d=this._parseTemplateNodeAttributes(z,
G,Y)||d);return d||Y.noted};
B._parseTemplateChildNodes=function(z,G,Y){if(z.localName!=="script"&&z.localName!=="style")for(var d=z.firstChild,E=0,v;d;d=v){if(d.localName=="template"){var c=d.getAttribute("is");if(c&&Cdd[c])for(v=d,v.removeAttribute("is"),d=v.ownerDocument.createElement(c),v.parentNode.replaceChild(d,v),d.appendChild(v);v.attributes.length;)c=v.attributes[0].name,hj7(d,v,c),v.removeAttribute(c)}v=d.nextSibling;if(d.nodeType===Node.TEXT_NODE){for(c=v;c&&c.nodeType===Node.TEXT_NODE;)d.textContent+=c.textContent,
v=c.nextSibling,z.removeChild(c),c=v;if(G.stripWhiteSpace&&!d.textContent.trim()){z.removeChild(d);continue}}c={parentIndex:E,parentInfo:Y};this._parseTemplateNode(d,G,c)&&(c.infoIndex=G.nodeInfoList.push(c)-1);d.parentNode&&E++}};
B._parseTemplateNestedTemplate=function(z,G,Y){G=this._parseTemplate(z,G);(G.content=z.content.ownerDocument.createDocumentFragment()).appendChild(z.content);Y.templateInfo=G;return!0};
B._parseTemplateNodeAttributes=function(z,G,Y){for(var d=!1,E=Array.from(z.attributes),v=E.length-1,c;c=E[v];v--)d=this._parseTemplateNodeAttribute(z,G,Y,c.name,c.value)||d;return d};
B._parseTemplateNodeAttribute=function(z,G,Y,d,E){return d.slice(0,3)==="on-"?(z.removeAttribute(d),Y.events=Y.events||[],Y.events.push({name:d.slice(3),value:E}),!0):d==="id"?(Y.id=E,!0):!1};
B._contentForTemplate=function(z){var G=z._templateInfo;return G&&G.content||z.content};
B.prototype._stampTemplate=function(z,G){z&&!z.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(z);G=G||this.constructor._parseTemplate(z);var Y=G.nodeInfoList;z=document.importNode(G.content||z.content,!0);z.__noInsertionPoint=!G.hasInsertionPoint;var d=z.nodeList=Array(Y.length);z.$={};for(var E=0,v=Y.length,c=void 0;E<v&&(c=Y[E]);E++){var J=d[E]=phu(z,c);c.id&&(z.$[c.id]=J);var g=J,t=c,P=G;t.templateInfo&&(g._templateInfo=t.templateInfo,g._parentTemplateInfo=
P);if(c.events&&c.events.length)for(g=0,t=c.events,P=void 0;g<t.length&&(P=t[g]);g++)this._addMethodEventListenerToNode(J,P.name,P.value,this)}return z};
B.prototype._addMethodEventListenerToNode=function(z,G,Y,d){Y=At8(d||z,Y);this._addEventListenerToNode(z,G,Y);return Y};
B.prototype._addEventListenerToNode=function(z,G,Y){z.addEventListener(G,Y)};
B.prototype._removeEventListenerFromNode=function(z,G,Y){z.removeEventListener(G,Y)};
return B});var sj=0,kF=[],F8R={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},SgM=/[A-Z]/,bAu=function(W,B,z,G,Y){var d=Y?wq(W):W;if(B=B[d])for(d=0;d<B.length;d++){var E=B[d];if(E.info.lastRun!==sj&&(!Y||whQ(W,E.trigger))){E.info.lastRun=sj;E=E.info;for(var v=z,c=G,J=0,g=v.length-1,t=-1;J<=g;){var P=J+g>>1,Z=c.get(v[P].methodInfo)-c.get(E.methodInfo);if(Z<0)J=P+1;else if(Z>0)g=P-1;else{t=P;break}}t<
0&&(t=g+1);v.splice(t,0,E)}}},HQX=[],j_R=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"),sW=gI(function(W){var B=HA7(ln7(W));
W=function(){var z=B.call(this)||this;z.__isPropertyEffectsClient=!0;return z};
_.C(W,B);W.prototype._initializeProperties=function(){B.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};
W.prototype._registerHost=function(){if(tf.length){var z=tf[tf.length-1];z._enqueueClient(this);this.__dataHost=z}};
W.prototype._initializeProtoProperties=function(z){this.__data=Object.create(z);this.__dataPending=Object.create(z);this.__dataOld={}};
W.prototype._initializeInstanceProperties=function(z){var G=this.__readOnly,Y;for(Y in z)G&&G[Y]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[Y]=this.__dataPending[Y]=z[Y])};
W.prototype._addPropertyEffect=function(z,G,Y){this._createPropertyAccessor(z,G=="__readOnly");var d=cty(this,G,!0)[z];d||(d=this[G][z]=[]);d.push(Y)};
W.prototype._removePropertyEffect=function(z,G,Y){z=cty(this,G,!0)[z];Y=z.indexOf(Y);Y>=0&&z.splice(Y,1)};
W.prototype._hasPropertyEffect=function(z,G){G=this[G];return!(!G||!G[z])};
W.prototype._hasReadOnlyEffect=function(z){return this._hasPropertyEffect(z,"__readOnly")};
W.prototype._hasNotifyEffect=function(z){return this._hasPropertyEffect(z,"__notifyEffects")};
W.prototype._hasReflectEffect=function(z){return this._hasPropertyEffect(z,"__reflectEffects")};
W.prototype._hasComputedEffect=function(z){return this._hasPropertyEffect(z,"__computeEffects")};
W.prototype._setPendingPropertyOrPath=function(z,G,Y,d){if(d||wq(Array.isArray(z)?z[0]:z)!==z){if(!d&&(d=tj(this,z),z=vn8(this,z,G),!z||!B.prototype._shouldPropertyChange.call(this,z,G,d)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(z,G,Y)){if(Y=this.__dataLinkedPaths)for(var E in Y)d=Y[E],VH(E,z)?(d=Jj(E,d,z),this._setPendingPropertyOrPath(d,G,!0,!0)):VH(d,z)&&(d=Jj(d,E,z),this._setPendingPropertyOrPath(d,G,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[z])return this._setPendingProperty(z,
G,Y);this[z]=G}return!1};
W.prototype._setUnmanagedPropertyToNode=function(z,G,Y){if(Y!==z[G]||typeof Y=="object")G==="className"&&(z=(0,_.ZE)(z)),z[G]=Y};
W.prototype._setPendingProperty=function(z,G,Y){var d=this.__dataHasPaths&&c_(z);if(this._shouldPropertyChange(z,G,(d?this.__dataTemp:this.__data)[z])){this.__dataPending||(this.__dataPending={},this.__dataOld={});z in this.__dataOld||(this.__dataOld[z]=this.__data[z]);d?this.__dataTemp[z]=G:this.__data[z]=G;this.__dataPending[z]=G;if(d||this.__notifyEffects&&this.__notifyEffects[z])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[z]=Y;return!0}return!1};
W.prototype._setProperty=function(z,G){this._setPendingProperty(z,G,!0)&&this._invalidateProperties()};
W.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
W.prototype._enqueueClient=function(z){this.__dataPendingClients=this.__dataPendingClients||[];z!==this&&this.__dataPendingClients.push(z)};
W.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
W.prototype.__enableOrFlushClients=function(){var z=this.__dataPendingClients;if(z){this.__dataPendingClients=null;for(var G=0;G<z.length;G++){var Y=z[G];Y.__dataEnabled?Y.__dataPending&&Y._flushProperties():Y._enableProperties()}}};
W.prototype._readyClients=function(){this.__enableOrFlushClients()};
W.prototype.setProperties=function(z,G){for(var Y in z)!G&&this.__readOnly&&this.__readOnly[Y]||this._setPendingPropertyOrPath(Y,z[Y],!0);this._invalidateProperties()};
W.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
W.prototype._propertiesChanged=function(z,G,Y){z=this.__dataHasPaths;this.__dataHasPaths=!1;var d;if(d=this.__computeEffects)if(p3D){sj++;var E=Pr0(this),v=[],c;for(c in G)bAu(c,d,v,E,z);for(;c=v.shift();)rtQ(this,"",G,Y,c)&&bAu(c.methodInfo,d,v,E,z);Object.assign(Y,this.__dataOld);Object.assign(G,this.__dataPending);this.__dataPending=null}else for(E=G;P_(this,d,E,Y,z);)Object.assign(Y,this.__dataOld),Object.assign(G,this.__dataPending),E=this.__dataPending,this.__dataPending=null;d=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(G,Y,z);this._flushClients();P_(this,this.__reflectEffects,G,Y,z);P_(this,this.__observeEffects,G,Y,z);if(d){E=this.__notifyEffects;v=sj++;for(var J in d)if(d[J]){if(c=E){var g=E;c=v;var t=J,P=G,Z=Y,l=z,b=!1,O=l?wq(t):t;if(g=g[O]){O=0;for(var K=g.length,e=void 0;O<K&&(e=g[O]);O++)e.info&&e.info.lastRun===c||l&&!whQ(t,e.trigger)||(e.info&&(e.info.lastRun=c),e.fn(this,t,P,Z,e.info,l,void 0),b=!0)}c=b}if(c)var a=!0;else{if(c=z)c=J,t=G,P=wq(c),P!==
c?(P=v_(P)+"-changed",JtR(this,P,t[c],c),c=!0):c=!1;c&&(a=!0)}}var q;a&&(q=this.__dataHost)&&q._invalidateProperties&&q._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
W.prototype._propagatePropertyChanges=function(z,G,Y){this.__propagateEffects&&P_(this,this.__propagateEffects,z,G,Y);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,z,G,Y)};
W.prototype._runEffectsForTemplate=function(z,G,Y,d){var E=this,v=function(c,J){P_(E,z.propertyEffects,c,Y,J,z.nodeList);for(var g=z.firstChild;g;g=g.nextSibling)E._runEffectsForTemplate(g,c,Y,J)};
z.runEffects?z.runEffects(v,G,d):v(G,d)};
W.prototype.linkPaths=function(z,G){z=gq(z);G=gq(G);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[z]=G};
W.prototype.unlinkPaths=function(z){z=gq(z);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[z]};
W.prototype.notifySplices=function(z,G){var Y={path:""};z=tj(this,z,Y);jk2(this,z,Y.path,G)};
W.prototype.get=function(z,G){return tj(G||this,z)};
W.prototype.set=function(z,G,Y){Y?vn8(Y,z,G):this.__readOnly&&this.__readOnly[z]||this._setPendingPropertyOrPath(z,G,!0)&&this._invalidateProperties()};
W.prototype.push=function(z){var G=_.nm.apply(1,arguments),Y={path:""},d=tj(this,z,Y),E=d.length,v=d.push.apply(d,_.u7(G));G.length&&Cl(this,d,Y.path,E,G.length,[]);return v};
W.prototype.pop=function(z){var G={path:""};z=tj(this,z,G);var Y=!!z.length,d=z.pop();Y&&Cl(this,z,G.path,z.length,0,[d]);return d};
W.prototype.splice=function(z,G,Y){var d=_.nm.apply(3,arguments),E={path:""},v=tj(this,z,E);G<0?G=v.length-Math.floor(-G):G&&(G=Math.floor(G));var c=arguments.length===2?v.splice(G):v.splice.apply(v,[G,Y].concat(_.u7(d)));(d.length||c.length)&&Cl(this,v,E.path,G,d.length,c);return c};
W.prototype.shift=function(z){var G={path:""};z=tj(this,z,G);var Y=!!z.length,d=z.shift();Y&&Cl(this,z,G.path,0,0,[d]);return d};
W.prototype.unshift=function(z){var G=_.nm.apply(1,arguments),Y={path:""},d=tj(this,z,Y),E=d.unshift.apply(d,_.u7(G));G.length&&Cl(this,d,Y.path,0,G.length,[]);return E};
W.prototype.notifyPath=function(z,G){if(arguments.length==1){var Y={path:""};G=tj(this,z,Y);Y=Y.path}else Y=Array.isArray(z)?gq(z):z;this._setPendingPropertyOrPath(Y,G,!0,!0)&&this._invalidateProperties()};
W.prototype._createReadOnlyProperty=function(z,G){this._addPropertyEffect(z,"__readOnly");G&&(this["_set"+(z[0].toUpperCase()+z.substring(1))]=function(Y){this._setProperty(z,Y)})};
W.prototype._createPropertyObserver=function(z,G,Y){var d={property:z,method:G,dynamicFn:!!Y};this._addPropertyEffect(z,"__observeEffects",{fn:VTD,info:d,trigger:{name:z}});Y&&this._addPropertyEffect(G,"__observeEffects",{fn:VTD,info:d,trigger:{name:G}})};
W.prototype._createMethodObserver=function(z,G){var Y=Sor(z);if(!Y)throw Error("Dd`"+z);onk(this,Y,"__observeEffects",ZQu,null,G)};
W.prototype._createNotifyingProperty=function(z){this._addPropertyEffect(z,"__notifyEffects",{fn:gny,info:{eventName:v_(z)+"-changed",property:z}})};
W.prototype._createReflectedProperty=function(z){var G=this.constructor.attributeNameForProperty(z);G[0]==="-"?console.warn("Property "+z+" cannot be reflected to attribute "+G+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(z,"__reflectEffects",{fn:tTX,info:{attrName:G}})};
W.prototype._createComputedProperty=function(z,G,Y){var d=Sor(G);if(!d)throw Error("Ed`"+G);G=onk(this,d,"__computeEffects",rtQ,z,Y);cty(this,"__computeInfo")[z]=G};
W.prototype._marshalArgs=function(z,G,Y){for(var d=this.__data,E=[],v=0,c=z.length;v<c;v++){var J=z[v],g=J.name,t=J.structured,P=J.wildcard,Z=J.value;J.literal||(P?(J=VH(g,G),t=bQR(d,Y,J?G:g),Z={path:J?G:g,value:t,base:J?tj(d,g):t}):Z=t?bQR(d,Y,g):d[g]);if(lY&&!this._overrideLegacyUndefined&&Z===void 0&&z.length>1)return kF;E[v]=Z}return E};
W.addPropertyEffect=function(z,G,Y){this.prototype._addPropertyEffect(z,G,Y)};
W.createPropertyObserver=function(z,G,Y){this.prototype._createPropertyObserver(z,G,Y)};
W.createMethodObserver=function(z,G){this.prototype._createMethodObserver(z,G)};
W.createNotifyingProperty=function(z){this.prototype._createNotifyingProperty(z)};
W.createReadOnlyProperty=function(z,G){this.prototype._createReadOnlyProperty(z,G)};
W.createReflectedProperty=function(z){this.prototype._createReflectedProperty(z)};
W.createComputedProperty=function(z,G,Y){this.prototype._createComputedProperty(z,G,Y)};
W.bindTemplate=function(z){return this.prototype._bindTemplate(z)};
W.prototype._bindTemplate=function(z,G){var Y=this.constructor._parseTemplate(z),d=this.__preBoundTemplateInfo==Y;if(!d)for(var E in Y.propertyEffects)this._createPropertyAccessor(E);G?(Y=Object.create(Y),Y.wasPreBound=d,this.__templateInfo?(z=z._parentTemplateInfo||this.__templateInfo,G=z.lastChild,Y.parent=z,z.lastChild=Y,(Y.previousSibling=G)?G.nextSibling=Y:z.firstChild=Y):this.__templateInfo=Y):this.__preBoundTemplateInfo=Y;return Y};
W._addTemplatePropertyEffect=function(z,G,Y){(z.hostProps=z.hostProps||{})[G]=!0;z=z.propertyEffects=z.propertyEffects||{};(z[G]=z[G]||[]).push(Y)};
W.prototype._stampTemplate=function(z,G){G=G||this._bindTemplate(z,!0);tf.push(this);z=B.prototype._stampTemplate.call(this,z,G);tf.pop();G.nodeList=z.nodeList;if(!G.wasPreBound)for(var Y=G.childNodes=[],d=z.firstChild;d;d=d.nextSibling)Y.push(d);z.templateInfo=G;Y=G.nodeList;d=G.nodeInfoList;if(d.length)for(var E=0;E<d.length;E++){var v=Y[E],c=d[E].bindings;if(c)for(var J=0;J<c.length;J++){var g=c[J],t=v,P=g;if(P.isCompound){for(var Z=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),l=P.parts,
b=Array(l.length),O=0;O<l.length;O++)b[O]=l[O].literal;l=P.target;Z[l]=b;P.literal&&P.kind=="property"&&(l==="className"&&(t=(0,_.ZE)(t)),t[l]=P.literal)}I0Q(v,this,g)}v.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(G,this.__data,null,!1),this._flushClients());return z};
W.prototype._removeBoundDom=function(z){z=z.templateInfo;var G=z.previousSibling,Y=z.nextSibling,d=z.parent;G?G.nextSibling=Y:d&&(d.firstChild=Y);Y?Y.previousSibling=G:d&&(d.lastChild=G);z.nextSibling=z.previousSibling=null;z=z.childNodes;for(G=0;G<z.length;G++)Y=z[G],(0,_.ZE)((0,_.ZE)(Y).parentNode).removeChild(Y)};
W._parseTemplateNode=function(z,G,Y){var d=B._parseTemplateNode.call(this,z,G,Y);if(z.nodeType===Node.TEXT_NODE){var E=this._parseBindings(z.textContent,G);E&&(z.textContent=hpr(E)||" ",CrT(this,G,Y,"text","textContent",E),d=!0)}return d};
W._parseTemplateNodeAttribute=function(z,G,Y,d,E){var v=this._parseBindings(E,G);if(v){E=d;var c="property";SgM.test(d)?c="attribute":d[d.length-1]=="$"&&(d=d.slice(0,-1),c="attribute");var J=hpr(v);J&&c=="attribute"&&(d=="class"&&z.hasAttribute("class")&&(J+=" "+z.getAttribute(d)),z.setAttribute(d,J));c=="attribute"&&E=="disable-upgrade$"&&z.setAttribute(d,"");z.localName==="input"&&E==="value"&&z.setAttribute(E,"");z.removeAttribute(E);c==="property"&&(d=Tp(d));CrT(this,G,Y,c,d,v,J);return!0}return B._parseTemplateNodeAttribute.call(this,
z,G,Y,d,E)};
W._parseTemplateNestedTemplate=function(z,G,Y){var d=B._parseTemplateNestedTemplate.call(this,z,G,Y),E=z.parentNode,v=Y.templateInfo,c=E.localName==="dom-if",J=E.localName==="dom-repeat";v4&&(c||J)&&(E.removeChild(z),Y=Y.parentInfo,Y.templateInfo=v,Y.noted=!0,d=!1);z=v.hostProps;if(c4&&c)z&&(G.hostProps=Object.assign(G.hostProps||{},z),v4||(Y.parentInfo.noted=!0));else for(var g in z)CrT(this,G,Y,"property","_host_"+g,[{mode:"{",source:g,dependencies:[g],hostProp:!0}]);return d};
W._parseBindings=function(z,G){for(var Y=[],d=0,E;(E=j_R.exec(z))!==null;){E.index>d&&Y.push({literal:z.slice(d,E.index)});d=E[1][0];var v=!!E[2];E=E[3].trim();var c=!1,J="",g=-1;d=="{"&&(g=E.indexOf("::"))>0&&(J=E.substring(g+2),E=E.substring(0,g),c=!0);g=Sor(E);var t=[];if(g){var P=g,Z=P.args;P=P.methodName;for(var l=0;l<Z.length;l++){var b=Z[l];b.literal||t.push(b)}if((Z=G.dynamicFns)&&Z[P]||g.static)t.push(P),g.dynamicFn=!0}else t.push(E);Y.push({source:E,mode:d,negate:v,customEvent:c,signature:g,
dependencies:t,event:J});d=j_R.lastIndex}d&&d<z.length&&(z=z.substring(d))&&Y.push({literal:z});return Y.length?Y:null};
W._evaluateBinding=function(z,G,Y,d,E,v){z=G.signature?ZQu(z,Y,d,E,G.signature):Y!=G.source?tj(z,G.source):v&&c_(Y)?tj(z,Y):z.__data[Y];G.negate&&(z=!z);return z};
_.G5.Object.defineProperties(W.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return F8R}}});
return W}),tf=[];var fnd=window.ShadyCSS&&window.ShadyCSS.cssBuild,P4=gI(function(W){function B(G,Y,d,E){if(!fnd){for(var v=Y.content.querySelectorAll("style"),c=KQt(Y),J=uUR(d),g=Y.content.firstElementChild,t=0;t<J.length;t++){var P=J[t];P.textContent=G._processStyleText(P.textContent,E);Y.content.insertBefore(P,g)}for(g=J=0;g<c.length;g++)t=c[g],P=v[J],P!==t?(t=t.cloneNode(!0),P.parentNode.insertBefore(t,P)):J++,t.textContent=G._processStyleText(t.textContent,E)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(Y,
d);if(iAF&&fnd&&zj9&&(Y=Y.content.querySelectorAll("style"))){var Z="";Array.from(Y).forEach(function(l){Z+=l.textContent;l.parentNode.removeChild(l)});
G._styleSheet=new CSSStyleSheet;G._styleSheet.replaceSync(Z)}}
var z=tLR(sW(W));W=function(){return z.call(this)||this};
_.C(W,z);W._finalizeClass=function(){z._finalizeClass.call(this);var G;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(G=this.__ownObservers)&&this.createObservers(G,this._properties);this._prepareTemplate()};
W._prepareTemplate=function(){var G=this.template;G&&(typeof G==="string"?(console.error("template getter must return HTMLTemplateElement"),G=null):QH||(G=G.cloneNode(!0)));this.prototype._template=G};
W.createProperties=function(G){for(var Y in G){var d=this.prototype,E=Y,v=G[Y],c=G;v.computed&&(v.readOnly=!0);v.computed&&(d._hasReadOnlyEffect(E)?console.warn("Cannot redefine computed property '"+E+"'."):d._createComputedProperty(E,v.computed,c));v.readOnly&&!d._hasReadOnlyEffect(E)?d._createReadOnlyProperty(E,!v.computed):v.readOnly===!1&&d._hasReadOnlyEffect(E)&&console.warn("Cannot make readOnly property '"+E+"' non-readOnly.");v.reflectToAttribute&&!d._hasReflectEffect(E)?d._createReflectedProperty(E):
v.reflectToAttribute===!1&&d._hasReflectEffect(E)&&console.warn("Cannot make reflected property '"+E+"' non-reflected.");v.notify&&!d._hasNotifyEffect(E)?d._createNotifyingProperty(E):v.notify===!1&&d._hasNotifyEffect(E)&&console.warn("Cannot make notify property '"+E+"' non-notify.");v.observer&&d._createPropertyObserver(E,v.observer,c[v.observer]);d._addPropertyToAttributeMap(E)}};
W.createObservers=function(G,Y){for(var d=this.prototype,E=0;E<G.length;E++)d._createMethodObserver(G[E],Y)};
W.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);z.prototype._initializeProperties.call(this);this.rootPath=Gl7;this.importPath=this.constructor.importPath;var G=this.constructor;if(!G.hasOwnProperty("__propertyDefaults")){G.__propertyDefaults=null;var Y=G._properties,d;for(d in Y){var E=Y[d];"value"in E&&(G.__propertyDefaults=G.__propertyDefaults||{},G.__propertyDefaults[d]=E)}}if(G=G.__propertyDefaults)for(var v in G)Y=G[v],
this._canApplyPropertyDefault(v)&&(Y=typeof Y.value=="function"?Y.value.call(this):Y.value,this._hasAccessor(v)?this._setPendingProperty(v,Y,!0):this[v]=Y)};
W.prototype._canApplyPropertyDefault=function(G){return!this.hasOwnProperty(G)};
W._processStyleText=function(G,Y){return UF2(G,Y)};
W._finalizeTemplate=function(G){var Y=this.prototype._template;if(Y&&!Y.__polymerFinalized){Y.__polymerFinalized=!0;var d=this.importPath;d=d?_.iY(d):"";B(this,Y,G,d);this.prototype._bindTemplate(Y)}};
W.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);z.prototype.connectedCallback.call(this)};
W.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);z.prototype.ready.call(this)};
W.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));z.prototype._readyClients.call(this)};
W.prototype._attachDom=function(G){var Y=(0,_.ZE)(this);if(Y.attachShadow)return G?(Y.shadowRoot||(Y.attachShadow({mode:"open",shadyUpgradeFragment:G}),Y.shadowRoot.appendChild(G),this.constructor._styleSheet&&(Y.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),dM7&&window.ShadyDOM&&window.ShadyDOM.flushInitial(Y.shadowRoot),Y.shadowRoot):null;throw Error("Gd");};
W.prototype.updateStyles=function(G){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,G)};
W.prototype.resolveUrl=function(G,Y){!Y&&this.importPath&&(Y=_.iY(this.importPath));return _.iY(G,Y)};
W._parseTemplateContent=function(G,Y,d){Y.dynamicFns=Y.dynamicFns||this._properties;return z._parseTemplateContent.call(this,G,Y,d)};
W._addTemplatePropertyEffect=function(G,Y,d){!NA||Y in this._properties||d.info.part.signature&&d.info.part.signature.static||d.info.part.hostProp||G.nestedTemplate||console.warn("Property '"+Y+"' used in template but not declared in 'properties'; attribute will not be observed.");return z._addTemplatePropertyEffect.call(this,G,Y,d)};
_.G5.Object.defineProperties(W,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var G=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof G==="function"&&(G=G());if(G===void 0){if(G=this.hasOwnProperty("is")){G=this.is;var Y=null;if(G&&(!$F||Ygd)&&(Y=Is.import(G,"template"),$F&&!Y))throw Error("Fd`"+G);G=Y}G=G||Object.getPrototypeOf(this.prototype).constructor.template}this._template=G}return this._template},
set:function(G){this._template=G}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var G=this.importMeta;G?this._importPath=Mg8(G.url):this._importPath=(G=Is.import(this.is))&&G.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return W});var OAd=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(W){return W}}),qot=function(W,B){X34(W,B);
this.value=B.reduce(function(z,G,Y){return z+nnv(G)+W[Y+1]},W[0]).toString()},X34;
qot.prototype.toString=function(){return this.value};
_.K8F=function(W){var B=_.nm.apply(1,arguments);X34(W,B);var z=document.createElement("template");B=B.reduce(function(G,Y,d){if(Y instanceof HTMLTemplateElement)Y=Y.innerHTML;else if(Y instanceof qot)Y=nnv(Y);else throw Error("Id`"+Y);return G+Y+W[d+1]},W[0]);
OAd&&(B=OAd.createHTML(B));z.innerHTML=B;return z};
X34=function(W,B){if(!Array.isArray(W)||!Array.isArray(W.raw)||B.length!==W.length-1)throw new TypeError("Jd");};var Z3=P4(HTMLElement);var uN6=gI(function(W){var B=P4(W);W=function(){var z=B.call(this)||this;z.__lastItems=null;z.__lastMulti=null;z.__selectedMap=null;return z};
_.C(W,B);W.prototype.__updateSelection=function(z,G){var Y=G.path;Y=="items"?(G=G.base||[],Y=this.__lastItems,z!==this.__lastMulti&&this.clearSelection(),Y&&(Y=yt2(G,Y),this.__applySplices(Y)),this.__lastItems=G,this.__lastMulti=z):G.path=="items.splices"?this.__applySplices(G.value.indexSplices):(z=Y.slice(6),G=parseInt(z,10),z.indexOf(".")<0&&z==G&&this.__deselectChangedIdx(G))};
W.prototype.__applySplices=function(z){for(var G=this,Y=this.__selectedMap,d={},E=0;E<z.length;d={s$jscomp$109:void 0},E++){d.s$jscomp$109=z[E];Y.forEach(function(g){return function(t,P){t<g.s$jscomp$109.index||(t>=g.s$jscomp$109.index+g.s$jscomp$109.removed.length?Y.set(P,t+g.s$jscomp$109.addedCount-g.s$jscomp$109.removed.length):Y.set(P,-1))}}(d));
for(var v=0;v<d.s$jscomp$109.addedCount;v++){var c=d.s$jscomp$109.index+v;Y.has(this.items[c])&&Y.set(this.items[c],c)}}this.__updateLinks();var J=0;Y.forEach(function(g,t){g<0?(G.multi?G.splice("selected",J,1):G.selected=G.selectedItem=null,Y.delete(t)):J++})};
W.prototype.__updateLinks=function(){var z=this;this.__dataLinkedPaths={};if(this.multi){var G=0;this.__selectedMap.forEach(function(Y){Y>=0&&z.linkPaths("items."+Y,"selected."+G++)})}else this.__selectedMap.forEach(function(Y){z.linkPaths("selected","items."+Y);
z.linkPaths("selectedItem","items."+Y)})};
W.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
W.prototype.isSelected=function(z){return this.__selectedMap.has(z)};
W.prototype.isIndexSelected=function(z){return this.isSelected(this.items[z])};
W.prototype.__deselectChangedIdx=function(z){var G=this,Y=this.__selectedIndexForItemIndex(z);if(Y>=0){var d=0;this.__selectedMap.forEach(function(E,v){Y==d++&&G.deselect(v)})}};
W.prototype.__selectedIndexForItemIndex=function(z){if(z=this.__dataLinkedPaths["items."+z])return parseInt(z.slice(9),10)};
W.prototype.deselect=function(z){var G=this.__selectedMap.get(z);if(G>=0){this.__selectedMap.delete(z);var Y;this.multi&&(Y=this.__selectedIndexForItemIndex(G));this.__updateLinks();this.multi?this.splice("selected",Y,1):this.selected=this.selectedItem=null}};
W.prototype.deselectIndex=function(z){this.deselect(this.items[z])};
W.prototype.select=function(z){this.selectIndex(this.items.indexOf(z))};
W.prototype.selectIndex=function(z){var G=this.items[z];this.isSelected(G)?this.toggle&&this.deselectIndex(z):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(G,z),this.__updateLinks(),this.multi?this.push("selected",G):this.selected=this.selectedItem=G)};
_.G5.Object.defineProperties(W,{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 W}),ejF=uN6(Z3),rI=function(){return ejF.apply(this,arguments)||this};
_.C(rI,ejF);_.G5.Object.defineProperties(rI,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(rI.is,rI);var mMM=window.Polymer;window.Polymer=function(W){return window.Polymer._polymerFn(W)};
mMM&&Object.assign(Polymer,mMM);Polymer._polymerFn=function(){throw Error("Kd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:UF2,resolveUrl:_.iY,pathFromUrl:Mg8};Polymer.DomModule=Is;Polymer.Async={timeOut:_.Jf,animationFrame:_.eK,idlePeriod:w3T,microTask:xF};Polymer.dedupingMixin=gI;Polymer.wrap=_.ZE;Polymer.PropertiesChanged=JqQ;Polymer.telemetry={instanceCount:gOu,incrementInstanceCount:function(){gOu++},
registrations:Bnt,register:zp0,dumpRegistrations:function(){Bnt.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=tLR;Polymer.CaseMap={dashToCamelCase:Tp,camelToDashCase:v_};Polymer.PropertyAccessors=ln7;Polymer.TemplateStamp=HA7;Polymer.Path={isPath:c_,root:wq,isAncestor:iQt,isDescendant:VH,translate:Jj,matches:Ent,normalize:gq,split:TnR,get:tj,set:vn8,isDeep:c_};Polymer.Settings={useShadow:yH,useNativeCSSProperties:M44,useNativeCustomElements:a4d,get rootPath(){return Gl7},setRootPath:function(W){Gl7=W},
get sanitizeDOMValue(){return rq},setSanitizeDOMValue:function(W){rq=W},
get passiveTouchGestures(){return diQ},setPassiveTouchGestures:function(W){diQ=W},
get strictTemplatePolicy(){return $F},setStrictTemplatePolicy:function(W){$F=W},
get allowTemplateFromDomModule(){return Ygd},setAllowTemplateFromDomModule:function(W){Ygd=W},
get legacyOptimizations(){return QH},setLegacyOptimizations:function(W){QH=W},
get syncInitialRender(){return dM7},setSyncInitialRender:function(W){dM7=W},
get legacyUndefined(){return lY},setLegacyUndefined:function(W){lY=W},
get legacyWarnings(){return NA},setLegacyWarnings:function(W){NA=W},
get orderedComputed(){return p3D},setOrderedComputed:function(W){p3D=W},
get fastDomIf(){return c4},setFastDomIf:function(W){c4=W},
get removeNestedTemplates(){return v4},setRemoveNestedTemplates:function(W){v4=W},
get suppressTemplateNotifications(){return wI},setSuppressTemplateNotifications:wI};Polymer.rootPath!==void 0&&(Gl7=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(rq=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(diQ=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&($F=Polymer.strictTemplatePolicy);Ygd=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(QH=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(dM7=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(lY=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(NA=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(p3D=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(c4=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(v4=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(wI=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return rq},
set:function(W){rq=W}});Polymer.PropertyEffects=sW;Polymer.StyleGather={stylesFromModules:Xhr,stylesFromModule:OQD,stylesFromTemplate:KQt,stylesFromModuleImports:uUR,cssFromModules:mg2,cssFromModule:epy,cssFromTemplate:xgy,cssFromModuleImports:function(W){return(W=Is.import(W))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W):""}};Polymer.ElementMixin=P4;Polymer.updateStyles=function(W){window.ShadyCSS&&window.ShadyCSS.styleDocument(W)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:yt2};Polymer.html=_.K8F;Polymer.htmlLiteral=function(W){return new qot(W,_.nm.apply(1,arguments))};Polymer.Element=Z3;Polymer.ArraySelectorMixin=uN6;Polymer.ArraySelector=rI;var xMR=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,DMU=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,IFX=/@media\s(.*)/;var Ugt=null,LQt=window.HTMLImports&&window.HTMLImports.whenReady||null,MTx;var Q_9=null,ky=null,lz=function(){this.customStyles=[];this.enqueued=!1;a0X(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},yq9=function(W){!W.enqueued&&ky&&(W.enqueued=!0,a0X(ky))};
lz.prototype.addCustomStyle=function(W){W.__seenByShadyCSS||(W.__seenByShadyCSS=!0,this.customStyles.push(W),yq9(this))};
lz.prototype.getStyleForCustomStyle=function(W){if(W.__shadyCSSCachedStyle)return W.__shadyCSSCachedStyle;var B;W.getStyle?B=W.getStyle():B=W;return B};
lz.prototype.processStyles=function(){for(var W=this.customStyles,B=0;B<W.length;B++){var z=W[B];if(!z.__shadyCSSCachedStyle){var G=this.getStyleForCustomStyle(z);G&&(G=G.__appliedElement||G,Q_9&&Q_9(G),z.__shadyCSSCachedStyle=G)}}return W};
lz.prototype.addCustomStyle=lz.prototype.addCustomStyle;lz.prototype.getStyleForCustomStyle=lz.prototype.getStyleForCustomStyle;lz.prototype.processStyles=lz.prototype.processStyles;Object.defineProperties(lz.prototype,{transformCallback:{get:function(){return Q_9},
set:function(W){Q_9=W}},
validateCallback:{get:function(){return ky},
set:function(W){var B=!1;ky||(B=!0);ky=W;B&&yq9(this)}}});var Wwv=!(window.ShadyDOM&&window.ShadyDOM.inUse),RpQ,z5;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(z5=window.ShadyCSS.cssBuild);var qgF=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?RpQ=window.ShadyCSS.nativeCss:window.ShadyCSS?(Bb2(window.ShadyCSS),window.ShadyCSS=void 0):Bb2(window.WebComponents&&window.WebComponents.flags);var kIu=RpQ;var nOD=new lz;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(W,B){nOD.processStyles();Nn0(W,B)},
styleElement:function(){nOD.processStyles()},
styleDocument:function(W){nOD.processStyles();Nn0(document.body,W)},
getComputedStyleValue:function(W,B){return $gD(W,B)},
flushCustomStyles:function(){},
nativeCss:kIu,nativeShadow:Wwv,cssBuild:z5,disableRuntime:qgF});window.ShadyCSS.CustomStyleInterface=nOD;var NcD=window.ShadyCSS.CustomStyleInterface,Ch=function(){var W=HTMLElement.call(this)||this;W._style=null;NcD.addCustomStyle(W);return W};
_.C(Ch,HTMLElement);Ch.prototype.getStyle=function(){if(this._style)return this._style;var W=this.querySelector("style");if(!W)return null;this._style=W;var B=W.getAttribute("include");B&&(W.removeAttribute("include"),W.textContent=mg2(B)+W.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
Ch.prototype.getStyle=Ch.prototype.getStyle;window.customElements.define("custom-style",Ch);Polymer.CustomStyle=Ch;var Ix=function(){this._timer=this._callback=this._asyncModule=null},ox,L8M;
Ix.prototype.setConfig=function(W,B){var z=this;this._asyncModule=W;this._callback=B;this._timer=this._asyncModule.run(function(){z._timer=null;ox.delete(z);z._callback()})};
Ix.prototype.cancel=function(){this.isActive()&&($M6(this),ox.delete(this))};
var $M6=function(W){W.isActive()&&(W._asyncModule.cancel(W._timer),W._timer=null)};
Ix.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Ix.prototype.isActive=function(){return this._timer!=null};
_.hf=function(W,B,z){W instanceof Ix?$M6(W):W=new Ix;W.setConfig(B,z);return W};
ox=new Set;_.H4=function(W){ox.add(W)};
L8M=function(){var W=!!ox.size;ox.forEach(function(B){try{B.flush()}catch(z){setTimeout(function(){throw z;})}});
return W};var GCt=typeof document.head.style.touchAction==="string",zZR=["mousedown","mousemove","mouseup","click"],csk=[0,1,4,2],UMF;try{UMF=(new MouseEvent("test",{buttons:1})).buttons===1}catch(W){UMF=!1}var vTy=UMF,YLR=!1;(function(){try{var W=Object.defineProperty({},"passive",{get:function(){YLR=!0}});
window.addEventListener("test",null,W);window.removeEventListener("test",null,W)}catch(B){}})();
var AsQ=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),iVt=[],ML6={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},C0x={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},ETR=function(W){var B=W.sourceCapabilities;if(!B||B.firesTouchEvents)if(W.__polymerGesturesHandled={skip:!0},W.type==="click"){B=!1;for(var z=gTD(W),G=0;G<z.length;G++){if(z[G].nodeType===Node.ELEMENT_NODE)if(z[G].localName==="label")iVt.push(z[G]);
else if(ML6[z[G].localName]){var Y=z[G];var d=Array.prototype.slice.call(Y.labels||[]);if(!d.length){d=[];try{var E=Y.getRootNode();if(Y.id){var v=E.querySelectorAll("label[for = '"+Y.id+"']");for(Y=0;Y<v.length;Y++)d.push(v[Y])}}catch(c){}}for(Y=0;Y<d.length;Y++)B=B||iVt.indexOf(d[Y])>-1}if(z[G]===anT)return}B||(W.preventDefault(),W.stopPropagation())}},anT=null,Fu=null,sO8=0,P0u=0,tm8=-1,ZV0=!1;
document.addEventListener("touchend",function(W){Fu||TbR(!0);anT=gTD(W)[0];Fu=_.hf(Fu,_.Jf.after(2500),function(){TbR();Fu=anT=null})},YLR?{passive:!0}:!1);
var gTD=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(W){return W.composedPath&&W.composedPath()||[]},Oj={},jj=[];
rsX({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){bY(this.info)},
mousedown:function(W){if(Sj(W)){var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),z=this;Vmu(this.info,function(G){Sj(G)||(DE("up",B,G),bY(z.info))},function(G){Sj(G)&&DE("up",B,G);
bY(z.info)});
DE("down",B,W)}},
touchstart:function(W){DE("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),W.changedTouches[0],W)},
touchend:function(W){DE("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),W.changedTouches[0],W)}});
rsX({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(W){this.moves.length>2&&this.moves.shift();this.moves.push(W)},
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;bY(this.info)},
mousedown:function(W){if(Sj(W)){var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),z=this,G=function(Y){var d=Y.clientX,E=Y.clientY;kCx(z.info,d,E)&&(z.info.state=z.info.started?Y.type==="mouseup"?"end":"track":"start",z.info.state==="start"&&fl("tap"),z.info.addMove({x:d,y:E}),Sj(Y)||(z.info.state="end",bY(z.info)),B&&lJt(z.info,B,Y),z.info.started=!0)};
Vmu(this.info,G,function(Y){z.info.started&&G(Y);bY(z.info)});
this.info.x=W.clientX;this.info.y=W.clientY}},
touchstart:function(W){W=W.changedTouches[0];this.info.x=W.clientX;this.info.y=W.clientY},
touchmove:function(W){var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W=W.changedTouches[0];var z=W.clientX,G=W.clientY;kCx(this.info,z,G)&&(this.info.state==="start"&&fl("tap"),this.info.addMove({x:z,y:G}),lJt(this.info,B,W),this.info.state="track",this.info.started=!0)},
touchend:function(W){var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W=W.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:W.clientX,y:W.clientY}),lJt(this.info,B,W))}});
rsX({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(W){Sj(W)&&(this.info.x=W.clientX,this.info.y=W.clientY)},
click:function(W){Sj(W)&&IJQ(this.info,W)},
touchstart:function(W){W=W.changedTouches[0];this.info.x=W.clientX;this.info.y=W.clientY},
touchend:function(W){IJQ(this.info,W.changedTouches[0],W)}});var RjR=gI(function(W){var B=function(){return W.apply(this,arguments)||this};
_.C(B,W);B.prototype._addEventListenerToNode=function(z,G,Y){XQ(z,G,Y)||W.prototype._addEventListenerToNode.call(this,z,G,Y)};
B.prototype._removeEventListenerFromNode=function(z,G,Y){ej(z,G,Y)||W.prototype._removeEventListenerFromNode.call(this,z,G,Y)};
return B});var SY=gI(function(W){var B=function(){return W.apply(this,arguments)||this};
_.C(B,W);B.prototype._shouldPropertyChange=function(z,G,Y){return oTR(this,z,G,Y,!0)};
return B}),W9Q=gI(function(W){var B=function(){return W.apply(this,arguments)||this};
_.C(B,W);B.prototype._shouldPropertyChange=function(z,G,Y){return oTR(this,z,G,Y,this.mutableData)};
_.G5.Object.defineProperties(B,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return B});
SY._mutablePropertyChange=oTR;var hZk=!1;var BDd=RjR(W9Q(sW(HTMLElement))),bz=function(){var W=BDd.call(this)||this;if($F)throw Error("Ld");W.root=null;W.$=null;W.__children=null;return W};
_.C(bz,BDd);_.p=bz.prototype;_.p.attributeChangedCallback=function(){this.mutableData=!0};
_.p.connectedCallback=function(){HVx()||(this.style.display="none");this.render()};
_.p.disconnectedCallback=function(){this.__removeChildren()};
_.p.__insertChildren=function(){(0,_.ZE)((0,_.ZE)(this).parentNode).insertBefore(this.root,this)};
_.p.__removeChildren=function(){if(this.__children)for(var W=0;W<this.__children.length;W++)this.root.appendChild(this.__children[W])};
_.p.render=function(){var W=this;if(!this.__children){var B=B||this.querySelector("template");if(!B){var z=new MutationObserver(function(){if(B=W.querySelector("template"))z.disconnect(),W.render();else throw Error("Md");});
z.observe(this,{childList:!0});return}this.root=this._stampTemplate(B);this.$=this.root.$;this.__children=[];for(var G=this.root.firstChild;G;G=G.nextSibling)this.__children[this.__children.length]=G;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.G5.Object.defineProperties(bz,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",bz);Polymer.Debouncer=Ix;Polymer.Gestures={gestures:Oj,recognizers:jj,deepTargetFind:JsR,addListener:XQ,removeListener:ej,register:rsX,setTouchAction:_.mz,prevent:fl,resetMouseCanceller:function(){Fu&&Fu.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:XQ,remove:ej};Polymer.GestureEventListeners=RjR;Polymer.MutableData=SY;Polymer.OptionalMutableData=W9Q;Polymer.DomBind=bz;_.jY=function(){do{var W=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var B=L8M()}while(W||B)};var FwQ=null;SLR.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:SLR,writable:!0}});var eZu=sW(SLR),uPk=SY(eZu),zSM=sW(function(){}),qA=function(W){var B=zSM.call(this)||this;
B._configureProperties(W);B.root=B._stampTemplate(B.__dataHost);var z=[];B.children=z;for(var G=B.root.firstChild;G;G=G.nextSibling)z.push(G),G.__templatizeInstance=B;B.__templatizeOwner&&B.__templatizeOwner.__hideTemplateChildren__&&B._showHideChildren(!0);z=B.__templatizeOptions;(W&&z.instanceProps||!z.instanceProps)&&B._enableProperties();return B};
_.C(qA,zSM);_.p=qA.prototype;_.p._configureProperties=function(W){if(this.__templatizeOptions.forwardHostProp)for(var B in this.__hostProps)this._setPendingProperty(B,this.__dataHost["_host_"+B]);for(var z in W)this._setPendingProperty(z,W[z])};
_.p.forwardHostProp=function(W,B){this._setPendingPropertyOrPath(W,B,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.p._addEventListenerToNode=function(W,B,z){var G=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(W,B,function(d){d.model=G;z(d)});
else{var Y=this.__dataHost.__dataHost;Y&&Y._addEventListenerToNode(W,B,z)}};
_.p._showHideChildren=function(W){jO0(W,this.children)};
_.p._setUnmanagedPropertyToNode=function(W,B,z){W.__hideTemplateChildren__&&W.nodeType==Node.TEXT_NODE&&B=="textContent"?W.__polymerTextContent__=z:zSM.prototype._setUnmanagedPropertyToNode.call(this,W,B,z)};
_.p.dispatchEvent=function(){return!0};
_.G5.Object.defineProperties(qA.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var W=this.__parentModel;if(!W){var B;W=this;do W=W.__dataHost.__dataHost;while((B=W.__templatizeOptions)&&!B.parentModel);this.__parentModel=W}return W}}});
var OVx=SY(qA);var fh=function(){var W=Z3.call(this)||this;W.__renderDebouncer=null;W._lastIf=!1;W.__hideTemplateChildren__=!1;return W};
_.C(fh,Z3);_.p=fh.prototype;_.p.__debounceRender=function(){var W=this;this.__renderDebouncer=_.hf(this.__renderDebouncer,xF,function(){return W.__render()});
_.H4(this.__renderDebouncer)};
_.p.disconnectedCallback=function(){Z3.prototype.disconnectedCallback.call(this);var W=(0,_.ZE)(this).parentNode;W&&(W.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.ZE)(W).host)||this.__teardownInstance()};
_.p.connectedCallback=function(){Z3.prototype.connectedCallback.call(this);HVx()||(this.style.display="none");this.if&&this.__debounceRender()};
_.p.__ensureTemplate=function(){var W=this;if(!this.__template){var B=this._templateInfo?this:(0,_.ZE)(this).querySelector("template");if(!B){var z=new MutationObserver(function(){if((0,_.ZE)(W).querySelector("template"))z.disconnect(),W.__render();else throw Error("Pd");});
z.observe(this,{childList:!0});return!1}this.__template=B}return!0};
_.p.__ensureInstance=function(){var W=(0,_.ZE)(this).parentNode;if(this.__hasInstance()){var B=this.__getInstanceNodes();if(B&&B.length&&(0,_.ZE)(this).previousSibling!==B[B.length-1])for(var z=0,G=void 0;z<B.length&&(G=B[z]);z++)(0,_.ZE)(W).insertBefore(G,this)}else{if(!W||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(W)}return!0};
_.p.render=function(){_.jY()};
_.p.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();wI&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.p.__hasInstance=function(){};
_.p.__getInstanceNodes=function(){};
_.p.__createAndInsertInstance=function(){};
_.p.__teardownInstance=function(){};
_.p._showHideChildren=function(){};
_.G5.Object.defineProperties(fh,{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:fh.prototype.__debounceRender},restamp:{type:Boolean,observer:fh.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var GRu=function(){var W=fh.call(this)||this;W.__instance=null;W.__syncInfo=null;return W};
_.C(GRu,fh);_.p=GRu.prototype;_.p.__hasInstance=function(){return!!this.__instance};
_.p.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.p.__createAndInsertInstance=function(W){var B=this,z=this.__dataHost||this;if($F&&!this.__dataHost)throw Error("Nd");var G=z._bindTemplate(this.__template,!0);G.runEffects=function(Y,d,E){var v=B.__syncInfo;if(B.if)v&&(B.__syncInfo=null,B._showHideChildren(),d=Object.assign(v.changedProps,d)),Y(d,E);else if(B.__instance)if(v||(v=B.__syncInfo={runEffects:Y,changedProps:{}}),E)for(var c in d)Y=wq(c),v.changedProps[Y]=B.__dataHost[Y];else Object.assign(v.changedProps,d)};
this.__instance=z._stampTemplate(this.__template,G);(0,_.ZE)(W).insertBefore(this.__instance,this)};
_.p.__syncHostProperties=function(){var W=this.__syncInfo;W&&(this.__syncInfo=null,W.runEffects(W.changedProps,!1))};
_.p.__teardownInstance=function(){var W=this.__dataHost||this;this.__instance&&(W._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.p._showHideChildren=function(){var W=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==W&&(this.__instance.__hidden=W,jO0(W,this.__instance.templateInfo.childNodes));W||this.__syncHostProperties()};
var YlF=function(){var W=fh.call(this)||this;W.__ctor=null;W.__instance=null;W.__invalidProps=null;return W};
_.C(YlF,fh);_.p=YlF.prototype;_.p.__hasInstance=function(){return!!this.__instance};
_.p.__getInstanceNodes=function(){return this.__instance.children};
_.p.__createAndInsertInstance=function(W){this.__ctor||(this.__ctor=nl(this.__template,this,{mutableData:!0,forwardHostProp:function(B,z){this.__instance&&(this.if?this.__instance.forwardHostProp(B,z):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[wq(B)]=!0))}}));
this.__instance=new this.__ctor;(0,_.ZE)(W).insertBefore(this.__instance.root,this)};
_.p.__teardownInstance=function(){if(this.__instance){var W=this.__instance.children;if(W&&W.length){var B=(0,_.ZE)(W[0]).parentNode;if(B){B=(0,_.ZE)(B);for(var z=0,G=void 0;z<W.length&&(G=W[z]);z++)B.removeChild(G)}}this.__instance=this.__invalidProps=null}};
_.p.__syncHostProperties=function(){var W=this.__invalidProps;if(W){this.__invalidProps=null;for(var B in W)this.__instance._setPendingProperty(B,this.__dataHost[B]);this.__instance._flushProperties()}};
_.p._showHideChildren=function(){var W=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==W&&(this.__instance.__hidden=W,this.__instance._showHideChildren(W));W||this.__syncHostProperties()};
_.yU=c4?GRu:YlF;customElements.define(_.yU.is,_.yU);Polymer.enqueueDebouncer=_.H4;Polymer.flush=_.jY;Polymer.Templatize={templatize:nl,modelForElement:qLX};Polymer.TemplateInstanceBase=qA;Polymer.DomIf=_.yU;var d_D=W9Q(Z3),QU=function(){var W=d_D.call(this)||this;W.__instances=[];W.__renderDebouncer=null;W.__itemsIdxToInstIdx={};W.__chunkCount=null;W.__renderStartTime=null;W.__itemsArrayChanged=!1;W.__shouldMeasureChunk=!1;W.__shouldContinueChunking=!1;W.__chunkingId=0;W.__sortFn=null;W.__filterFn=null;W.__observePaths=null;W.__ctor=null;W.__isDetached=!0;W.template=null;return W};
_.C(QU,d_D);_.p=QU.prototype;_.p.disconnectedCallback=function(){d_D.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var W=0;W<this.__instances.length;W++)this.__detachInstance(W);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.p.connectedCallback=function(){d_D.prototype.connectedCallback.call(this);HVx()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var W=(0,_.ZE)((0,_.ZE)(this).parentNode),B=0;B<this.__instances.length;B++)this.__attachInstance(B,W);this.__chunkingId&&this.__render()}};
_.p.__ensureTemplatized=function(){var W=this;if(!this.__ctor){var B=this.template=this._templateInfo?this:this.querySelector("template");if(!B){var z=new MutationObserver(function(){if(W.querySelector("template"))z.disconnect(),W.__render();else throw Error("Qd");});
z.observe(this,{childList:!0});return!1}var G={};G[this.as]=!0;G[this.indexAs]=!0;G[this.itemsIndexAs]=!0;this.__ctor=nl(B,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:G,forwardHostProp:function(Y,d){for(var E=this.__instances,v=0,c=void 0;v<E.length&&(c=E[v]);v++)c.forwardHostProp(Y,d)},
notifyInstanceProp:function(Y,d,E){Ent(this.as,d)&&(Y=Y[this.itemsIndexAs],d==this.as&&(this.items[Y]=E),d=Jj(this.as,"items."+Y,d),this.notifyPath(d,E))}})}return!0};
_.p.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.p.__functionFromPropertyValue=function(W){if(typeof W==="string"){var B=this.__getMethodHost();return function(){return B[W].apply(B,arguments)}}return W};
_.p.__sortChanged=function(W){this.__sortFn=this.__functionFromPropertyValue(W);this.items&&this.__debounceRender(this.__render)};
_.p.__filterChanged=function(W){this.__filterFn=this.__functionFromPropertyValue(W);this.items&&this.__debounceRender(this.__render)};
_.p.__computeFrameTime=function(W){return Math.ceil(1E3/W)};
_.p.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.p.__handleObservedPaths=function(W){if(this.__sortFn||this.__filterFn)if(!W)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var B=this.__observePaths,z=0;z<B.length;z++)W.indexOf(B[z])===0&&this.__debounceRender(this.__render,this.delay)};
_.p.__itemsChanged=function(W){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(W.path,W.value)||(W.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.p.__debounceRender=function(W,B){B=B===void 0?0:B;this.__renderDebouncer=_.hf(this.__renderDebouncer,B>0?_.Jf.after(B):xF,W.bind(this));_.H4(this.__renderDebouncer)};
_.p.render=function(){this.__debounceRender(this.__render);_.jY()};
_.p.__render=function(){var W=this;if(this.__ensureTemplatized()){var B=this.items||[],z=this.__sortAndFilterItems(B),G=this.__calculateLimit(z.length);this.__updateInstances(B,G,z);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){W.__chunkingId=null;W.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);wI&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.p.__sortAndFilterItems=function(W){for(var B=this,z=Array(W.length),G=0;G<W.length;G++)z[G]=G;this.__filterFn&&(z=z.filter(function(Y,d,E){return B.__filterFn(W[Y],d,E)}));
this.__sortFn&&z.sort(function(Y,d){return B.__sortFn(W[Y],W[d])});
return z};
_.p.__calculateLimit=function(W){var B=W,z=this.__instances.length;if(this.initialCount){var G;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(B=Math.min(W,this.initialCount),this.__chunkCount=(G=Math.max(B-z,0))||1):(G=Math.min(Math.max(W-z,0),this.__chunkCount),B=Math.min(z+G,W));this.__shouldMeasureChunk=G===this.__chunkCount;this.__shouldContinueChunking=B<W;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return B};
_.p.__continueChunking=function(){if(this.__shouldMeasureChunk){var W=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/W*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.p.__updateInstances=function(W,B,z){var G=this.__itemsIdxToInstIdx={},Y;for(Y=0;Y<B;Y++){var d=this.__instances[Y],E=z[Y],v=W[E];G[E]=Y;d?(d._setPendingProperty(this.as,v),d._setPendingProperty(this.indexAs,Y),d._setPendingProperty(this.itemsIndexAs,E),d._flushProperties()):this.__insertInstance(v,Y,E)}for(W=this.__instances.length-1;W>=Y;W--)this.__detachAndRemoveInstance(W)};
_.p.__detachInstance=function(W){W=this.__instances[W];for(var B=(0,_.ZE)(W.root),z=0;z<W.children.length;z++)B.appendChild(W.children[z]);return W};
_.p.__attachInstance=function(W,B){B.insertBefore(this.__instances[W].root,this)};
_.p.__detachAndRemoveInstance=function(W){this.__detachInstance(W);this.__instances.splice(W,1)};
_.p.__stampInstance=function(W,B,z){var G={};G[this.as]=W;G[this.indexAs]=B;G[this.itemsIndexAs]=z;return new this.__ctor(G)};
_.p.__insertInstance=function(W,B,z){W=this.__stampInstance(W,B,z);z=(z=this.__instances[B+1])?z.children[0]:this;(0,_.ZE)((0,_.ZE)(this).parentNode).insertBefore(W.root,z);return this.__instances[B]=W};
_.p._showHideChildren=function(W){for(var B=0;B<this.__instances.length;B++)this.__instances[B]._showHideChildren(W)};
_.p.__handleItemPath=function(W,B){var z=W.slice(6),G=z.indexOf(".");W=G<0?z:z.substring(0,G);if(W==parseInt(W,10)){z=G<0?"":z.substring(G+1);this.__handleObservedPaths(z);if(W=this.__instances[this.__itemsIdxToInstIdx[W]])W._setPendingPropertyOrPath(this.as+(z?"."+z:""),B,!1,!0),W._flushProperties();return!0}};
_.p.itemForElement=function(W){return(W=this.modelForElement(W))&&W[this.as]};
_.p.indexForElement=function(W){return(W=this.modelForElement(W))&&W[this.indexAs]};
_.p.modelForElement=function(W){return qLX(this.template,W)};
_.G5.Object.defineProperties(QU,{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:QU.prototype.__sortChanged},filter:{type:Function,observer:QU.prototype.__filterChanged},observe:{type:String,observer:QU.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!wI,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.*)"]}}});
QU.prototype._setRenderedItemCount=function(){};
customElements.define(QU.is,QU);Polymer.DomRepeat=QU;var pgu=function(W,B){var z=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=W;this.callback=B;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){z._schedule()};
this.connect();this._schedule()},A8R=function(W){var B=(0,_.ZE)(W);
if(Ll(W))return B.assignedNodes({flatten:!0});W=[];for(var z=0;z<B.childNodes.length;z++){var G=B.childNodes[z];Ll(G)?W.push.apply(W,_.u7((0,_.ZE)(G).assignedNodes({flatten:!0}))):W.push(G)}return W};
_.p=pgu.prototype;_.p.connect=function(){var W=this;Ll(this._target)?this._listenSlots([this._target]):(0,_.ZE)(this._target).children&&(this._listenSlots((0,_.ZE)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(B){W._processMutations(B)}):(this._nativeChildrenObserver=new MutationObserver(function(B){W._processMutations(B)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.p.disconnect=function(){Ll(this._target)?this._unlistenSlots([this._target]):(0,_.ZE)(this._target).children&&(this._unlistenSlots((0,_.ZE)(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};
_.p._schedule=function(){var W=this;this._scheduled||(this._scheduled=!0,xF.run(function(){return W.flush()}))};
_.p._processMutations=function(W){this._processSlotMutations(W);this.flush()};
_.p._processSlotMutations=function(W){if(W)for(var B=0;B<W.length;B++){var z=W[B];z.addedNodes&&this._listenSlots(z.addedNodes);z.removedNodes&&this._unlistenSlots(z.removedNodes)}};
_.p.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 W={target:this._target,addedNodes:[],removedNodes:[]},B=A8R(this._target),z=yt2(B,this._effectiveNodes),G=0,Y=void 0;G<z.length&&(Y=z[G]);G++)for(var d=0,E=void 0;d<Y.removed.length&&(E=Y.removed[d]);d++)W.removedNodes.push(E);
G=0;for(Y=void 0;G<z.length&&(Y=z[G]);G++)for(d=Y.index;d<Y.index+Y.addedCount;d++)W.addedNodes.push(B[d]);this._effectiveNodes=B;B=!1;if(W.addedNodes.length||W.removedNodes.length)B=!0,this.callback.call(this._target,W);return B};
_.p._listenSlots=function(W){for(var B=0;B<W.length;B++){var z=W[B];Ll(z)&&z.addEventListener("slotchange",this._boundSchedule)}};
_.p._unlistenSlots=function(W){for(var B=0;B<W.length;B++){var z=W[B];Ll(z)&&z.removeEventListener("slotchange",this._boundSchedule)}};var OW=Element.prototype,isQ=OW.matches||OW.matchesSelector||OW.mozMatchesSelector||OW.msMatchesSelector||OW.oMatchesSelector||OW.webkitMatchesSelector,E_R=function(W,B){return isQ.call(W,B)},Uj=function(W){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(W);
this.node=W},wgD;
_.p=Uj.prototype;_.p.observeNodes=function(W){return new pgu(this.node,W)};
_.p.unobserveNodes=function(W){W.disconnect()};
_.p.notifyObserver=function(){};
_.p.deepContains=function(W){if((0,_.ZE)(this.node).contains(W))return!0;var B=W;for(W=W.ownerDocument;B&&B!==W&&B!==this.node;)B=(0,_.ZE)(B).parentNode||(0,_.ZE)(B).host;return B===this.node};
_.p.getOwnerRoot=function(){return(0,_.ZE)(this.node).getRootNode()};
_.p.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.ZE)(this.node).assignedNodes({flatten:!0}):[]};
_.p.getDestinationInsertionPoints=function(){for(var W=[],B=(0,_.ZE)(this.node).assignedSlot;B;)W.push(B),B=(0,_.ZE)(B).assignedSlot;return W};
_.p.importNode=function(W,B){return(0,_.ZE)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(W,B)};
_.p.getEffectiveChildNodes=function(){return A8R(this.node)};
_.p.queryDistributedElements=function(W){for(var B=this.getEffectiveChildNodes(),z=[],G=0,Y=B.length,d=void 0;G<Y&&(d=B[G]);G++)d.nodeType===Node.ELEMENT_NODE&&E_R(d,W)&&z.push(d);return z};
_.G5.Object.defineProperties(Uj.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var W=this.node;return W._activeElement!==void 0?W._activeElement:W.activeElement}}});
var Xu=function(W){this.event=W};
_.G5.Object.defineProperties(Xu.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 TD9=Uj;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var v_9=window.ShadyDOM.Wrapper,c84=function(){return v_9.apply(this,arguments)||this};
_.C(c84,v_9);Object.getOwnPropertyNames(Uj.prototype).forEach(function(W){W!="activeElement"&&W!="constructor"&&(c84.prototype[W]=Uj.prototype[W])});
NbT(c84.prototype,["classList"]);TD9=c84;Object.defineProperties(Xu.prototype,{localTarget:{get:function(){var W=this.event.currentTarget;W=W&&_.St(W).getOwnerRoot();for(var B=this.path,z=0;z<B.length;z++){var G=B[z];if(_.St(G).getOwnerRoot()===W)return G}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else nTX(),NbT(Uj.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),$ix();wgD=TD9;_.St=function(W){W=W||document;if(W instanceof TD9)return W;if(W instanceof Xu)return W;var B=W.__domApi;B||(W instanceof Event?B=new Xu(W):B=new TD9(W),W.__domApi=B);return B};var VWR=/:host\(:dir\((ltr|rtl)\)\)/g,J8d=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,g_H=/:dir\((?:ltr|rtl)\)/,tWF=!(!window.ShadyDOM||!window.ShadyDOM.inUse),as=[],Kh=null,MA="",sEQ=gI(function(W){tWF||Kh||(MA=document.documentElement.getAttribute("dir"),Kh=new MutationObserver(Lwy),Kh.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var B=ln7(W);W=function(){var z=B.call(this)||this;z.__autoDirOptOut=!1;return z};
_.C(W,B);W._processStyleText=function(z,G){z=B._processStyleText.call(this,z,G);!tWF&&g_H.test(z)&&(z=this._replaceDirInCssText(z),this.__activateDir=!0);return z};
W._replaceDirInCssText=function(z){z=z.replace(VWR,':host([dir="$1"])');return z=z.replace(J8d,':host([dir="$2"]) $1')};
W.prototype.ready=function(){B.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
W.prototype.connectedCallback=function(){B.prototype.connectedCallback&&B.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Kh&&Kh.takeRecords().length&&Lwy(),as.push(this),this.__autoDirOptOut||this.setAttribute("dir",MA))};
W.prototype.disconnectedCallback=function(){B.prototype.disconnectedCallback&&B.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var z=as.indexOf(this);z>-1&&as.splice(z,1)}};
W.__activateDir=!1;return W});var PaR=function(W){for(;W;){var B=Object.getOwnPropertyDescriptor(W,"observedAttributes");if(B)return B.get;W=Object.getPrototypeOf(W.prototype).constructor}return function(){return[]}};
gI(function(W){var B=P4(W),z=PaR(B);W=function(){return B.call(this)||this};
_.C(W,B);W.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:B.prototype._initializeProperties.call(this)};
W.prototype._enableProperties=function(){this.__isUpgradeDisabled||B.prototype._enableProperties.call(this)};
W.prototype._canApplyPropertyDefault=function(G){return B.prototype._canApplyPropertyDefault.call(this,G)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(G))};
W.prototype.attributeChangedCallback=function(G,Y,d,E){G=="disable-upgrade"?this.__isUpgradeDisabled&&d==null&&(B.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.ZE)(this).isConnected&&B.prototype.connectedCallback.call(this)):B.prototype.attributeChangedCallback.call(this,G,Y,d,E)};
W.prototype.connectedCallback=function(){this.__isUpgradeDisabled||B.prototype.connectedCallback.call(this)};
W.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||B.prototype.disconnectedCallback.call(this)};
_.G5.Object.defineProperties(W,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return z.call(this).concat("disable-upgrade")}}});
return W});var Rs=!1,MmD=[],WM=[];var BwD=window.ShadyDOM,zCX=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",Y8t):document.readyState==="interactive"||document.readyState==="complete"?Y8t():window.addEventListener("DOMContentLoaded",Y8t);var Aou=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=""},dDT=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,pqu=/@import[^;]*;/gim,wqx=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,V7r=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Jov=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,giu=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,vik=/^@[^\s]*keyframes/,
TwR=/\s+/g;var t7r={};var ZfX=Promise.resolve();var ZsU=new Set;var r87=/;\s*/m,kR4=/^\s*(initial)|(inherit)\s*$/,la4=/\s*!important/,CaR=function(){this._map={}};
CaR.prototype.set=function(W,B){W=W.trim();this._map[W]={properties:B,dependants:{}}};
CaR.prototype.get=function(W){W=W.trim();return this._map[W]||null};
var IaM=null,uz=function(){this._measureElement=this._currentElement=null;this._map=new CaR};
_.p=uz.prototype;_.p.detectMixin=function(W){W=DMU.test(W)||xMR.test(W);DMU.lastIndex=0;xMR.lastIndex=0;return W};
_.p.transformTemplate=function(W,B){if(W._gatheredStyle===void 0){var z=[];for(var G=W.content.querySelectorAll("style"),Y=0;Y<G.length;Y++){var d=G[Y];if(d.hasAttribute("shady-unscoped")){if(!Wwv){var E=d.textContent;if(!ZsU.has(E)){ZsU.add(E);var v=document.createElement("style");v.setAttribute("shady-unscoped","");v.textContent=E;document.head.appendChild(v)}d.parentNode.removeChild(d)}}else z.push(d.textContent),d.parentNode.removeChild(d)}(z=z.join("").trim())?(G=document.createElement("style"),
G.textContent=z,W.content.insertBefore(G,W.content.firstChild),z=G):z=null;W._gatheredStyle=z}return(W=W._gatheredStyle)?this.JSC$11273_transformStyle(W,B):null};
_.p.JSC$11273_transformStyle=function(W,B){B=B===void 0?"":B;var z=CLR(W);this.transformRules(z,B);W.textContent=lFR(z);return z};
_.p.transformCustomStyle=function(W){var B=this,z=CLR(W);oix(z,function(G){G.selector===":root"&&(G.selector="html");B.transformRule(G)});
W.textContent=lFR(z);return z};
_.p.transformRules=function(W,B){var z=this;this._currentElement=B;oix(W,function(G){z.transformRule(G)});
this._currentElement=null};
_.p.transformRule=function(W){W.cssText=o_H(this,W.parsedCssText,W);W.selector===":root"&&(W.selector=":host > *")};
var o_H=function(W,B,z){B=B.replace(xMR,function(G,Y,d,E){return W._produceCssProperties(G,Y,d,E,z)});
return W._consumeCssProperties(B,z)};
_.p=uz.prototype;_.p._getInitialValueForProperty=function(W){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(W)};
_.p._fallbacksFromPreviousRules=function(W){for(var B=this,z=W;z.parent;)z=z.parent;var G={},Y=!1;oix(z,function(d){(Y=Y||d===W)||d.selector===W.selector&&Object.assign(G,B._cssTextToMap(d.parsedCssText))});
return G};
_.p._consumeCssProperties=function(W,B){for(var z;z=DMU.exec(W);){var G=z[0],Y=z[1];z=z.index;var d=z+G.indexOf("@apply"),E=z+G.length;G=W.slice(0,d);W=W.slice(E);d=B?this._fallbacksFromPreviousRules(B):{};Object.assign(d,this._cssTextToMap(G));Y=this._atApplyToCssProperties(Y,d);W=G+Y+W;DMU.lastIndex=z+Y.length}return W};
_.p._atApplyToCssProperties=function(W,B){W=W.replace(r87,"");var z=[],G=this._map.get(W);G||(this._map.set(W,{}),G=this._map.get(W));if(G){this._currentElement&&(G.dependants[this._currentElement]=!0);var Y,d=G.properties;for(Y in d){var E=B&&B[Y];G=[Y,": var(",W,"_-_",Y];E&&G.push(",",E.replace(la4,""));G.push(")");la4.test(d[Y])&&G.push(" !important");z.push(G.join(""))}}return z.join("; ")};
_.p._replaceInitialOrInherit=function(W,B){var z=kR4.exec(B);z&&(B=z[1]?this._getInitialValueForProperty(W):"apply-shim-inherit");return B};
_.p._cssTextToMap=function(W,B){B=B===void 0?!1:B;W=W.split(";");for(var z,G,Y={},d=0;d<W.length;d++)if(z=W[d])G=z.split(":"),G.length>1&&(z=G[0].trim(),G=G.slice(1).join(":"),B&&(G=this._replaceInitialOrInherit(z,G)),Y[z]=G);return Y};
_.p._invalidateMixinEntry=function(W){if(IaM)for(var B in W.dependants)B!==this._currentElement&&IaM(B)};
_.p._produceCssProperties=function(W,B,z,G,Y){var d=this;z&&hCx(z,function(l,b){b&&d._map.get(b)&&(G="@apply "+b+";")});
if(!G)return W;var E=this._consumeCssProperties(""+G,Y);Y=W.slice(0,W.indexOf("--"));var v=E=this._cssTextToMap(E,!0),c=this._map.get(B),J=c&&c.properties;J?v=Object.assign(Object.create(J),E):this._map.set(B,v);var g=[],t,P=!1;for(t in v){var Z=E[t];Z===void 0&&(Z="initial");!J||t in J||(P=!0);g.push(B+"_-_"+t+": "+Z)}P&&this._invalidateMixinEntry(c);c&&(c.properties=v);z&&(Y=W+";"+Y);return Y+g.join("; ")+";"};
uz.prototype.detectMixin=uz.prototype.detectMixin;uz.prototype.transformStyle=uz.prototype.JSC$11273_transformStyle;uz.prototype.transformCustomStyle=uz.prototype.transformCustomStyle;uz.prototype.transformRules=uz.prototype.transformRules;uz.prototype.transformRule=uz.prototype.transformRule;uz.prototype.transformTemplate=uz.prototype.transformTemplate;uz.prototype._separator="_-_";Object.defineProperty(uz.prototype,"invalidCallback",{get:function(){return IaM},
set:function(W){IaM=W}});var eY=new uz,hS9=function(){this.customStyleInterface=null;eY.invalidCallback=sft},mN=function(W){!W.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(W.customStyleInterface=window.ShadyCSS.CustomStyleInterface,W.customStyleInterface.transformCallback=function(B){eY.transformCustomStyle(B)},W.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){W.customStyleInterface.enqueued&&W.flushCustomStyles()})})};
_.p=hS9.prototype;_.p.prepareTemplate=function(W,B){mN(this);Hfx(W)===""&&(t7r[B]=W,B=eY.transformTemplate(W,B),W._styleAst=B)};
_.p.flushCustomStyles=function(){mN(this);if(this.customStyleInterface){var W=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var B=0;B<W.length;B++){var z=this.customStyleInterface.getStyleForCustomStyle(W[B]);z&&eY.transformCustomStyle(z)}this.customStyleInterface.enqueued=!1}}};
_.p.styleSubtree=function(W,B){mN(this);B&&Nn0(W,B);if(W.shadowRoot)for(this.styleElement(W),W=W.shadowRoot.children||W.shadowRoot.childNodes,B=0;B<W.length;B++)this.styleSubtree(W[B]);else for(W=W.children||W.childNodes,B=0;B<W.length;B++)this.styleSubtree(W[B])};
_.p.styleElement=function(W){mN(this);var B=W.localName,z;B?B.indexOf("-")>-1?z=B:z=W.getAttribute&&W.getAttribute("is")||"":z=W.is;B=t7r[z];if(!(B&&Hfx(B)!==""||!B||PLk(B))){if(PLk(B)||B._applyShimValidatingVersion!==B._applyShimNextVersion)this.prepareTemplate(B,z),rok(B);if(W=W.shadowRoot)if(W=W.querySelector("style"))W.__cssRules=B._styleAst,W.textContent=lFR(B._styleAst)}};
_.p.styleDocument=function(W){mN(this);this.styleSubtree(document.body,W)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var xy=new hS9,HsH=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(W,B){xy.flushCustomStyles();xy.prepareTemplate(W,B)},
prepareTemplateStyles:function(W,B,z){window.ShadyCSS.prepareTemplate(W,B,z)},
prepareTemplateDom:function(){},
styleSubtree:function(W,B){xy.flushCustomStyles();xy.styleSubtree(W,B)},
styleElement:function(W){xy.flushCustomStyles();xy.styleElement(W)},
styleDocument:function(W){xy.flushCustomStyles();xy.styleDocument(W)},
getComputedStyleValue:function(W,B){return $gD(W,B)},
flushCustomStyles:function(){xy.flushCustomStyles()},
nativeCss:kIu,nativeShadow:Wwv,cssBuild:z5,disableRuntime:qgF};HsH&&(window.ShadyCSS.CustomStyleInterface=HsH)}window.ShadyCSS.ApplyShim=eY;var F9R;F9R=window.ShadyCSS;_.D3=gI(function(W){W=RjR(P4(W));var B=fnd?W:sEQ(W),z=PaR(B),G={x:"pan-x",y:"pan-y",none:"none",all:"auto"};W=function(){return B.call(this)||this};
_.C(W,B);W.prototype.created=function(){};
W.prototype.__attributeReaction=function(Y,d,E){(this.__dataAttributes&&this.__dataAttributes[Y]||Y==="disable-upgrade")&&this.attributeChangedCallback(Y,d,E,null)};
W.prototype.setAttribute=function(Y,d){if(Aq9&&!this._legacyForceObservedAttributes){var E=this.getAttribute(Y);B.prototype.setAttribute.call(this,Y,d);this.__attributeReaction(Y,E,String(d))}else B.prototype.setAttribute.call(this,Y,d)};
W.prototype.removeAttribute=function(Y){if(Aq9&&!this._legacyForceObservedAttributes){var d=this.getAttribute(Y);B.prototype.removeAttribute.call(this,Y);this.__attributeReaction(Y,d,null)}else B.prototype.removeAttribute.call(this,Y)};
W.prototype._enableProperties=function(){this.__isUpgradeDisabled||B.prototype._enableProperties.call(this)};
W.prototype._canApplyPropertyDefault=function(Y){return B.prototype._canApplyPropertyDefault.call(this,Y)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Y))};
W.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(B.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
W.prototype.attached=function(){};
W.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(B.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
W.prototype.detached=function(){};
W.prototype.attributeChangedCallback=function(Y,d,E,v){d!==E&&(Y=="disable-upgrade"?this.__isUpgradeDisabled&&E==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.ZE)(this).isConnected&&this.connectedCallback()):(B.prototype.attributeChangedCallback.call(this,Y,d,E,v),this.attributeChanged(Y,d,E)))};
W.prototype.attributeChanged=function(){};
W.prototype._initializeProperties=function(){if(QH&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var Y=Object.getPrototypeOf(this);Y.hasOwnProperty("__hasRegisterFinished")||(this._registered(),Y.__hasRegisterFinished=!0);B.prototype._initializeProperties.call(this);this.root=this;this.created();Aq9&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
W.prototype._takeAttributes=function(){for(var Y=this.attributes,d=0,E=Y.length;d<E;d++){var v=Y[d];this.__attributeReaction(v.name,null,v.value)}};
W.prototype._registered=function(){};
W.prototype.ready=function(){this._ensureAttributes();B.prototype.ready.call(this)};
W.prototype._ensureAttributes=function(){};
W.prototype._applyListeners=function(){};
W.prototype.serialize=function(Y){return this._serializeValue(Y)};
W.prototype.deserialize=function(Y,d){return this._deserializeValue(Y,d)};
W.prototype.reflectPropertyToAttribute=function(Y,d,E){this._propertyToAttribute(Y,d,E)};
W.prototype.serializeValueToAttribute=function(Y,d,E){this._valueToNodeAttribute(E||this,Y,d)};
W.prototype.extend=function(Y,d){if(!Y||!d)return Y||d;for(var E=Object.getOwnPropertyNames(d),v=0,c=void 0;v<E.length&&(c=E[v]);v++){var J=Object.getOwnPropertyDescriptor(d,c);J&&Object.defineProperty(Y,c,J)}return Y};
W.prototype.mixin=function(Y,d){for(var E in d)Y[E]=d[E];return Y};
W.prototype.chainObject=function(Y,d){Y&&d&&Y!==d&&(Y.__proto__=d);return Y};
W.prototype.instanceTemplate=function(Y){Y=this.constructor._contentForTemplate(Y);return document.importNode(Y,!0)};
W.prototype.fire=function(Y,d,E){E=E||{};d=d===null||d===void 0?{}:d;Y=new Event(Y,{bubbles:E.bubbles===void 0?!0:E.bubbles,cancelable:!!E.cancelable,composed:E.composed===void 0?!0:E.composed});Y.detail=d;(0,_.ZE)(E.node||this).dispatchEvent(Y);return Y};
W.prototype.listen=function(Y,d,E){Y=Y||this;var v=this.__boundListeners||(this.__boundListeners=new WeakMap),c=v.get(Y);c||(c={},v.set(Y,c));v=d+E;c[v]||(c[v]=this._addMethodEventListenerToNode(Y,d,E,this))};
W.prototype.unlisten=function(Y,d,E){Y=Y||this;var v=this.__boundListeners&&this.__boundListeners.get(Y);E=d+E;var c=v&&v[E];c&&(this._removeEventListenerFromNode(Y,d,c),v[E]=null)};
W.prototype.setScrollDirection=function(Y,d){_.mz(d||this,G[Y]||"auto")};
W.prototype.$$=function(Y){return this.root.querySelector(Y)};
W.prototype.distributeContent=function(){var Y=_.St(this);window.ShadyDOM&&Y.shadowRoot&&ShadyDOM.flush()};
W.prototype.getEffectiveChildNodes=function(){return _.St(this).getEffectiveChildNodes()};
W.prototype.queryDistributedElements=function(Y){return _.St(this).queryDistributedElements(Y)};
W.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(Y){return Y.nodeType===Node.ELEMENT_NODE})};
W.prototype.getEffectiveTextContent=function(){for(var Y=this.getEffectiveChildNodes(),d=[],E=0,v;v=Y[E];E++)v.nodeType!==Node.COMMENT_NODE&&d.push(v.textContent);return d.join("")};
W.prototype.queryEffectiveChildren=function(Y){return(Y=this.queryDistributedElements(Y))&&Y[0]};
W.prototype.queryAllEffectiveChildren=function(Y){return this.queryDistributedElements(Y)};
W.prototype.getContentChildNodes=function(Y){return(Y=this.root.querySelector(Y||"slot"))?_.St(Y).getDistributedNodes():[]};
W.prototype.getContentChildren=function(Y){return this.getContentChildNodes(Y).filter(function(d){return d.nodeType===Node.ELEMENT_NODE})};
W.prototype.isLightDescendant=function(Y){return this!==Y&&(0,_.ZE)(this).contains(Y)&&(0,_.ZE)(this).getRootNode()===(0,_.ZE)(Y).getRootNode()};
W.prototype.isLocalDescendant=function(Y){return this.root===(0,_.ZE)(Y).getRootNode()};
W.prototype.scopeSubtree=function(Y,d){return GID(Y,d===void 0?!1:d)};
W.prototype.getComputedStyleValue=function(Y){return F9R.getComputedStyleValue(this,Y)};
W.prototype.debounce=function(Y,d,E){this._debouncers=this._debouncers||{};return this._debouncers[Y]=_.hf(this._debouncers[Y],E>0?_.Jf.after(E):xF,d.bind(this))};
W.prototype.isDebouncerActive=function(Y){this._debouncers=this._debouncers||{};Y=this._debouncers[Y];return!(!Y||!Y.isActive())};
W.prototype.flushDebouncer=function(Y){this._debouncers=this._debouncers||{};(Y=this._debouncers[Y])&&Y.flush()};
W.prototype.cancelDebouncer=function(Y){this._debouncers=this._debouncers||{};(Y=this._debouncers[Y])&&Y.cancel()};
W.prototype.async=function(Y,d){return d>0?_.Jf.run(Y.bind(this),d):~xF.run(Y.bind(this))};
W.prototype.cancelAsync=function(Y){Y<0?xF.cancel(~Y):_.Jf.cancel(Y)};
W.prototype.create=function(Y,d){Y=document.createElement(Y);if(d)if(Y.setProperties)Y.setProperties(d);else for(var E in d)Y[E]=d[E];return Y};
W.prototype.elementMatches=function(Y,d){return E_R(d||this,Y)};
W.prototype.toggleAttribute=function(Y,d){var E=this;arguments.length===3&&(E=arguments[2]);arguments.length==1&&(d=!E.hasAttribute(Y));if(d)return(0,_.ZE)(E).setAttribute(Y,""),!0;(0,_.ZE)(E).removeAttribute(Y);return!1};
W.prototype.toggleClass=function(Y,d,E){E=E||this;arguments.length==1&&(d=!E.classList.contains(Y));d?E.classList.add(Y):E.classList.remove(Y)};
W.prototype.transform=function(Y,d){d=d||this;d.style.webkitTransform=Y;d.style.transform=Y};
W.prototype.translate3d=function(Y,d,E,v){this.transform("translate3d("+Y+","+d+","+E+")",v||this)};
W.prototype.arrayDelete=function(Y,d){if(Array.isArray(Y)){if(d=Y.indexOf(d),d>=0)return Y.splice(d,1)}else if(d=tj(this,Y).indexOf(d),d>=0)return this.splice(Y,d,1);return null};
W.prototype._logger=function(Y,d){Array.isArray(d)&&d.length===1&&Array.isArray(d[0])&&(d=d[0]);switch(Y){case "log":case "warn":case "error":console[Y].apply(console,_.u7(d))}};
W.prototype._log=function(){this._logger("log",_.nm.apply(0,arguments))};
W.prototype._warn=function(){this._logger("warn",_.nm.apply(0,arguments))};
W.prototype._error=function(){this._logger("error",_.nm.apply(0,arguments))};
W.prototype._logf=function(Y){return["[%s::%s]",this.is,Y].concat(_.u7(_.nm.apply(1,arguments)))};
_.G5.Object.defineProperties(W.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var Y=(0,_.ZE)(this).getRootNode();return Y instanceof DocumentFragment?Y.host:Y}}});
_.G5.Object.defineProperties(W,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Aq9&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],zp0(this.prototype)),this.__observedAttributes):z.call(this).concat("disable-upgrade")}}});
W.prototype.is="";return W});Polymer.FlattenedNodesObserver=pgu;Polymer.DomApi=wgD;Polymer.EventApi=Xu;Polymer.dom=_.St;Polymer.dom.matchesSelector=E_R;Polymer.dom.flush=_.jY;Polymer.dom.addDebouncer=_.H4;Polymer.DirMixin=sEQ;Polymer.RenderStatus={beforeNextRender:_.Wku,afterNextRender:_.BM,flush:function(){for(;MmD.length||WM.length;)UiX(MmD),UiX(WM);Rs=!1}};Polymer.LegacyElementMixin=_.D3;var SlD;SlD=SY._mutablePropertyChange;var bs7={properties:{mutableData:Boolean},_shouldPropertyChange:function(W,B,z){return SlD(this,W,B,z,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(W,B,z){return SlD(this,W,B,z,!0)}};
Polymer.OptionalMutableDataBehavior=bs7;var FkR={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Ofu={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},fFR=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Ofu),jE7=(0,_.D3)(HTMLElement),hbR=function(W,B){W||console.warn("Polymer.Class requires `info` argument");B=B?B(jE7):jE7;B=Xqt(W,B,W.behaviors);B.is=B.prototype.is=
W.is;return B};Polymer.Class=hbR;Polymer.mixinBehaviors=function(W,B){return Xqt({},(0,_.D3)(B),W)};
Polymer.GenerateClassFromInfo=Xqt;_.D8=function(W){var B=typeof W==="function"?W:_.D8.Class(W);W._legacyForceObservedAttributes&&(B.prototype._legacyForceObservedAttributes=W._legacyForceObservedAttributes);customElements.define(B.is,B);return B};
_.D8.Class=hbR;Polymer._polymerFn=_.D8;var faM=window.onLegacyPolymerFunctionDefinedCallback;faM&&faM();var Fny={templatize:function(W,B){this._templatizerTemplate=W;this.ctor=nl(W,this,{mutableData:!!B,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(W){return new this.ctor(W)},
modelForElement:function(W){return qLX(this._templatizerTemplate,W)}};Polymer.Templatizer=Fny;_.QX=(0,_.D3)(HTMLElement).prototype;Polymer.Base=_.QX;var uVk=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Y6=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.C(_.Y6,PolymerFakeBaseClass);var d8=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.C(d8,PolymerFakeBaseClass);var eCQ=Symbol("Rd"),NwR=[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 OsM=OsM||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},XgH;(function(W){function B(q,n,L){var By=a.get(q);if(!By){if(!L)return;By=new K;a.set(q,By)}q=By.get(n);if(!q){if(!L)return;q=new K;By.set(n,q)}return q}
function z(q,n,L){if(G(q,n,L))return!0;n=P(n);return n!==null?z(q,n,L):!1}
function G(q,n,L){n=B(n,L,!1);return n===void 0?!1:!!n.has(q)}
function Y(q,n,L){if(G(q,n,L))return d(q,n,L);n=P(n);if(n!==null)return Y(q,n,L)}
function d(q,n,L){n=B(n,L,!1);if(n!==void 0)return n.get(q)}
function E(q,n){var L=v(q,n);q=P(q);if(q===null)return L;var By=E(q,n);if(By.length<=0)return L;if(L.length<=0)return By;n=new e;q=[];L=_.A(L);for(var gk=L.next();!gk.done;gk=L.next())gk=gk.value,n.has(gk)||(n.add(gk),q.push(gk));L=_.A(By);for(By=L.next();!By.done;By=L.next())By=By.value,n.has(By)||(n.add(By),q.push(By));return q}
function v(q,n){q=B(q,n,!1);var L=[];q&&q.forEach(function(By,gk){return L.push(gk)});
return L}
function c(q){return q===void 0}
function J(q){return typeof q==="object"?q!==null:typeof q==="function"}
function g(q){return typeof q==="function"}
function t(q){return typeof q==="symbol"?q:String(q)}
function P(q){var n=Object.getPrototypeOf(q);if(typeof q!=="function"||q===O||n!==O)return n;var L=Object.getPrototypeOf(q.prototype);if(L==null||L===Object.prototype)return n;L=L.constructor;return typeof L!=="function"||L===q?n:L}
function Z(){function q(){this._keys=[];this._values=[];this._cache=n}
var n={};q.prototype={get size(){return this._keys.length},has:function(L){return L===this._cache?!0:this._find(L)>=0?(this._cache=L,!0):!1},
get:function(L){var By=this._find(L);if(By>=0)return this._cache=L,this._values[By]},
set:function(L,By){this.delete(L);this._keys.push(L);this._values.push(By);this._cache=L;return this},
delete:function(L){L=this._find(L);return L>=0?(this._keys.splice(L,1),this._values.splice(L,1),this._cache=n,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=n},
forEach:function(L){for(var By=this.size,gk=0;gk<By;++gk){var vy=this._keys[gk],lx=this._values[gk];this._cache=vy;L.call(this,lx,vy,this)}},
_find:function(L){for(var By=this._keys,gk=By.length,vy=0;vy<gk;++vy)if(By[vy]===L)return vy;return-1}};
return q}
function l(){function q(){this._map=new K}
q.prototype={get size(){return this._map.length},has:function(n){return this._map.has(n)},
add:function(n){this._map.set(n,n);return this},
delete:function(n){return this._map.delete(n)},
clear:function(){this._map.clear()},
forEach:function(n,L){this._map.forEach(n,L)}};
return q}
function b(){function q(){this._key=L()}
function n(VR,ux){for(var X2=0;X2<ux;++X2)VR[X2]=Math.random()*255|0}
function L(){do{if(gk)var VR=gk.randomBytes(16);else typeof Uint8Array==="function"?(VR=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(VR):n(VR,16)):(VR=Array(16),n(VR,16));VR[6]=VR[6]&79|64;VR[8]=VR[8]&191|128;for(var ux="",X2=0;X2<16;++X2){var WQ=VR[X2];if(X2===4||X2===6||X2===8)ux+="-";WQ<16&&(ux+="0");ux+=WQ.toString(16).toLowerCase()}VR="@@WeakMap@@"+ux}while(vy.call(lx,VR));lx[VR]=!0;return VR}
function By(VR,ux){if(!vy.call(VR,Zv)){if(!ux)return;Object.defineProperty(VR,Zv,{value:Object.create(null)})}return VR[Zv]}
var gk=typeof global!=="undefined"&&typeof OsM==="object"&&typeof require==="function"&&require("crypto"),vy=Object.prototype.hasOwnProperty,lx={},Zv=L();q.prototype={has:function(VR){return(VR=By(VR,!1))?this._key in VR:!1},
get:function(VR){if(VR=By(VR,!1))return VR[this._key]},
set:function(VR,ux){By(VR,!0)[this._key]=ux;return this},
delete:function(VR){return(VR=By(VR,!1))&&this._key in VR?delete VR[this._key]:!1},
clear:function(){this._key=L()}};
return q}
var O=Object.getPrototypeOf(Function),K=typeof Map==="function"?Map:Z(),e=typeof Set==="function"?Set:l(),a=new (typeof WeakMap==="function"?WeakMap:b());W.decorate=function(q,n,L,By){if(c(By)){if(c(L)){if(!Array.isArray(q))throw new TypeError;if(!g(n))throw new TypeError;for(L=q.length-1;L>=0;--L)if(By=(0,q[L])(n),!c(By)){if(!g(By))throw new TypeError;n=By}return n}if(!Array.isArray(q))throw new TypeError;if(!J(n))throw new TypeError;L=t(L);for(By=q.length-1;By>=0;--By)(0,q[By])(n,L)}else{if(Array.isArray(q))if(J(n)){if(c(L))throw new TypeError;
if(!J(By))throw new TypeError;}else throw new TypeError;else throw new TypeError;L=t(L);for(var gk=q.length-1;gk>=0;--gk){var vy=(0,q[gk])(n,L,By);if(!c(vy)){if(!J(vy))throw new TypeError;By=vy}}return By}};
W.metadata=function(q,n){return function(L,By){if(c(By)){if(!g(L))throw new TypeError;B(L,void 0,!0).set(q,n)}else{if(!J(L))throw new TypeError;By=t(By);B(L,By,!0).set(q,n)}}};
W.defineMetadata=function(q,n){var L;if(J(n))c(L)||(L=t(L));else throw new TypeError;B(n,L,!0).set("parameters",q)};
W.hasMetadata=function(q,n,L){if(J(n))c(L)||(L=t(L));else throw new TypeError;return z(q,n,L)};
W.hasOwnMetadata=function(q,n,L){if(J(n))c(L)||(L=t(L));else throw new TypeError;return G(q,n,L)};
W.getMetadata=function(q,n,L){if(J(n))c(L)||(L=t(L));else throw new TypeError;return Y(q,n,L)};
W.getOwnMetadata=function(q,n,L){if(J(n))c(L)||(L=t(L));else throw new TypeError;return d(q,n,L)};
W.getMetadataKeys=function(q,n){if(J(q))c(n)||(n=t(n));else throw new TypeError;return E(q,n)};
W.getOwnMetadataKeys=function(q,n){if(J(q))c(n)||(n=t(n));else throw new TypeError;return v(q,n)};
W.deleteMetadata=function(q,n,L){if(J(n))c(L)||(L=t(L));else throw new TypeError;var By=B(n,L,!1);if(!c(By)){if(!By.delete(q))return!1;if(By.size>0)return!0;q=a.get(n);q.delete(L);if(q.size>0)return!0;a.delete(n);return!0}};
(function(q){if(typeof q.Reflect!=="undefined"){if(q.Reflect!==W)for(var n in W)q.Reflect[n]=W[n]}else q.Reflect=W})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(XgH||(XgH={}));var wDR=self;var K9U=[0,_.Bq,_.Yi,_.Bq];var utM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(utM,_.iQ);var eSd=_.sK(utM,[0,_.smx,_.Ao,K9U,_.Yi,_.E8]);_.TC(_.pt,_.bA);_.p=_.pt.prototype;_.p.start=function(){this.stop();this.usingListeners_=!1;var W=m_M(this),B=x_u(this);W&&!B&&this.JSC$11316_win_.mozRequestAnimationFrame?(this.JSC$11316_id_=_.ug(this.JSC$11316_win_,"MozBeforePaint",this.callback_),this.JSC$11316_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11316_id_=W&&B?W.call(this.JSC$11316_win_,this.callback_):this.JSC$11316_win_.setTimeout(b7T(this.callback_),20)};
_.p.stop=function(){if(this.isActive()){var W=m_M(this),B=x_u(this);W&&!B&&this.JSC$11316_win_.mozRequestAnimationFrame?OV(this.JSC$11316_id_):W&&B?B.call(this.JSC$11316_win_,this.JSC$11316_id_):this.JSC$11316_win_.clearTimeout(this.JSC$11316_id_)}this.JSC$11316_id_=null};
_.p.fire=function(){this.stop();this.JSC$11318_doAction_()};
_.p.isActive=function(){return this.JSC$11316_id_!=null};
_.p.JSC$11318_doAction_=function(){this.usingListeners_&&this.JSC$11316_id_&&OV(this.JSC$11316_id_);this.JSC$11316_id_=null;this.JSC$11316_listener_.call(this.handler_,_.EL())};
_.p.disposeInternal=function(){this.stop();_.pt.superClass_.disposeInternal.call(this)};
var m_M=function(W){W=W.JSC$11316_win_;return W.requestAnimationFrame||W.webkitRequestAnimationFrame||W.mozRequestAnimationFrame||W.oRequestAnimationFrame||W.msRequestAnimationFrame||null},x_u=function(W){W=W.JSC$11316_win_;
return W.cancelAnimationFrame||W.cancelRequestAnimationFrame||W.webkitCancelRequestAnimationFrame||W.mozCancelRequestAnimationFrame||W.oCancelRequestAnimationFrame||W.msCancelRequestAnimationFrame||null};_.an=function(W,B,z){_.bA.call(this);this.JSC$11319_listener_=z!=null?W.bind(z):W;this.JSC$11319_interval_=B;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11319_timer_=null};
_.C(_.an,_.bA);_.p=_.an.prototype;_.p.fire=function(W){this.args_=arguments;this.JSC$11319_timer_||this.pauseCount_?this.shouldFire_=!0:D_F(this)};
_.p.stop=function(){this.JSC$11319_timer_&&(_.Yt.clearTimeout(this.JSC$11319_timer_),this.JSC$11319_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.p.pause=function(){this.pauseCount_++};
_.p.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11319_timer_||(this.shouldFire_=!1,D_F(this))};
_.p.disposeInternal=function(){_.bA.prototype.disposeInternal.call(this);this.stop()};
var D_F=function(W){W.JSC$11319_timer_=Dk(function(){W.JSC$11319_timer_=null;W.shouldFire_&&!W.pauseCount_&&(W.shouldFire_=!1,D_F(W))},W.JSC$11319_interval_);
var B=W.args_;W.args_=null;W.JSC$11319_listener_.apply(null,B)};var QEF=function(W,B){this.childIterator_=W[_.Yt.Symbol.iterator]();this.mapFn_=B};
QEF.prototype[Symbol.iterator]=function(){return this};
QEF.prototype.next=function(){var W=this.childIterator_.next();return{value:W.done?void 0:this.mapFn_.call(void 0,W.value),done:W.done}};
var y8F=function(W,B){return new QEF(W,B)};var qlH={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 yAv=function(W){var B=n_d(W);if(!B)throw Error("Vd`"+W);return B},n_d=function(W){var B={};
W=String(W);var z=W.charAt(0)=="#"?W:"#"+W;if(ND4.test(z))return B.hex=uSu(z),B.type="hex",B;z=$Qx(W);return z.length?(B.hex=SnR(z[0],z[1],z[2]),B.type="rgb",B):qlH&&(W=qlH[W.toLowerCase()])?(B.hex=W,B.type="named",B):null},$_D=/#(.)(.)(.)/,uSu=function(W){if(!ND4.test(W))throw Error("Xd`"+W);
W.length==4&&(W=W.replace($_D,"#$1$1$2$2$3$3"));return W.toLowerCase()},qfr=function(W){W=uSu(W);
W=parseInt(W.slice(1),16);return[W>>16,W>>8&255,W&255]},SnR=function(W,B,z){W=Number(W);
B=Number(B);z=Number(z);if(W!=(W&255)||B!=(B&255)||z!=(z&255))throw Error("Yd`"+W+"`"+B+"`"+z);B=W<<16|B<<8|z;return W<16?"#"+(16777216|B).toString(16).slice(1):"#"+B.toString(16)},ND4=/^#(?:[0-9a-f]{3}){1,2}$/i,L9R=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,$Qx=function(W){var B=W.match(L9R);
if(B){W=Number(B[1]);var z=Number(B[2]);B=Number(B[3]);if(W>=0&&W<=255&&z>=0&&z<=255&&B>=0&&B<=255)return[W,z,B]}return[]};var U_R={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},kl=U_R;kl=U_R;var o5X,MWF,aaR;o5X=function(W,B){switch(B){case 1:return W%4!=0||W%100==0&&W%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
MWF=function(W,B,z,G,Y){W=new Date(W,B,z);Y=Y||0;return W.valueOf()+(((G!==void 0?G:3)-Y+7)%7-((W.getDay()+6)%7-Y+7)%7)*864E5};
_.yX=function(W,B,z){typeof W==="number"?(this.date=aaR(W,B||0,z||1),RSu(this,z||1)):_.$t(W)?(this.date=aaR(W.getFullYear(),W.getMonth(),W.getDate()),RSu(this,W.getDate())):(this.date=new Date(_.EL()),W=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),RSu(this,W))};
aaR=function(W,B,z){B=new Date(W,B,z);W>=0&&W<100&&B.setFullYear(B.getFullYear()-1900);return B};
_.p=_.yX.prototype;_.p.firstDayOfWeek_=kl.FIRSTDAYOFWEEK;_.p.firstWeekCutOffDay_=kl.FIRSTWEEKCUTOFFDAY;_.p.clone=function(){var W=new _.yX(this.date);W.firstDayOfWeek_=this.firstDayOfWeek_;W.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return W};
_.p.getFullYear=function(){return this.date.getFullYear()};
_.p.getYear=function(){return this.getFullYear()};
_.p.getMonth=function(){return this.date.getMonth()};
_.p.getDate=function(){return this.date.getDate()};
_.p.getTime=function(){return this.date.getTime()};
_.p.getDay=function(){return this.date.getDay()};
_.p.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.p.getUTCMonth=function(){return this.date.getUTCMonth()};
_.p.getUTCDate=function(){return this.date.getUTCDate()};
_.p.getUTCDay=function(){return this.date.getDay()};
_.p.getUTCHours=function(){return this.date.getUTCHours()};
_.p.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.p.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.p.set=function(W){this.date=new Date(W.getFullYear(),W.getMonth(),W.getDate())};
_.p.setFullYear=function(W){this.date.setFullYear(W)};
_.p.setYear=function(W){this.setFullYear(W)};
_.p.setMonth=function(W){this.date.setMonth(W)};
_.p.setDate=function(W){this.date.setDate(W)};
_.p.setTime=function(W){this.date.setTime(W)};
_.p.setUTCFullYear=function(W){this.date.setUTCFullYear(W)};
_.p.setUTCMonth=function(W){this.date.setUTCMonth(W)};
_.p.setUTCDate=function(W){this.date.setUTCDate(W)};
_.p.add=function(W){if(W.years||W.months){var B=this.getMonth()+W.months+W.years*12,z=this.getYear()+Math.floor(B/12);B%=12;B<0&&(B+=12);var G=Math.min(o5X(z,B),this.getDate());this.setDate(1);this.setFullYear(z);this.setMonth(B);this.setDate(G)}W.days&&(z=this.getYear(),B=z>=0&&z<=99?-1900:0,W=new Date((new Date(z,this.getMonth(),this.getDate(),12)).getTime()+W.days*864E5),this.setDate(1),this.setFullYear(W.getFullYear()+B),this.setMonth(W.getMonth()),this.setDate(W.getDate()),RSu(this,W.getDate()))};
_.p.JSC$11332_toIsoString=function(W){var B=this.getFullYear(),z=B<0?"-":B>=1E4?"+":"";return[z+_.gw(Math.abs(B),z?6:4),_.gw(this.getMonth()+1,2),_.gw(this.getDate(),2)].join(W?"-":"")};
_.p.equals=function(W){return!(!W||this.getYear()!=W.getYear()||this.getMonth()!=W.getMonth()||this.getDate()!=W.getDate())};
_.p.toString=function(){return this.JSC$11332_toIsoString()};
var RSu=function(W,B){W.getDate()!=B&&W.date.setUTCHours(W.date.getUTCHours()+(W.getDate()<B?1:-1))};
_.yX.prototype.valueOf=function(){return this.date.valueOf()};var nh=function(W,B,z,G,Y){this.reversed=!!B;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!z;W&&qz(this,W,G);this.depth=Y!=void 0?Y:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.TC(nh,lN);var qz=function(W,B,z,G){if(W.node=B)W.tagType=typeof z==="number"?z:W.node.nodeType!=1?0:W.reversed?-1:1;typeof G==="number"&&(W.depth=G)};
_.p=nh.prototype;_.p.JSC$11347_copyFrom=function(W){this.node=W.node;this.tagType=W.tagType;this.depth=W.depth;this.reversed=W.reversed;this.constrained=W.constrained};
_.p.clone=function(){return new nh(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.p.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Cw;var W=this.node;var B=this.reversed?-1:1;if(this.tagType==B){var z=this.reversed?W.lastChild:W.firstChild;z?qz(this,z):qz(this,W,B*-1)}else(z=this.reversed?W.previousSibling:W.nextSibling)?qz(this,z):qz(this,W.parentNode,B*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(W=this.node)?I1(W):Cw};
_.p.equals=function(W){return W.node==this.node&&(!this.node||W.tagType==this.tagType)};
_.p.splice=function(W){var B=this.node,z=this.reversed?1:-1;this.tagType==z&&(this.tagType=z*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;nh.prototype.next.call(this);this.reversed=!this.reversed;z=_.yR(arguments[0])?arguments[0]:arguments;for(var G=z.length-1;G>=0;G--)_.nf(z[G],B);_.o0(B)};var Ws4=function(){},Nz=function(W){for(var B=[],z=W.getTextRangeCount(),G=0;G<z;G++)B.push(W.getTextRange(G));
return B};
Ws4.prototype.isReversed=function(){return!1};
Ws4.prototype.getWindow=function(){return QY(_.yY(this.JSC$11349_getStartNode()))};
var B54=function(W,B){nh.call(this,W,B,!0)};
_.TC(B54,nh);var $y=function(W,B,z,G,Y){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!Y;if(W){this.startNode_=W;this.startOffset_=B;this.endNode_=z;this.endOffset_=G;if(W.nodeType==1&&W.tagName!="BR")if(W=W.childNodes,B=W[B])this.startNode_=B,this.startOffset_=0;else{W.length&&(this.startNode_=_.fu(W));var d=!0}z.nodeType==1&&((this.endNode_=z.childNodes[G])?this.endOffset_=0:this.endNode_=z)}nh.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);d&&this.next()};
_.TC($y,B54);_.p=$y.prototype;_.p.JSC$11355_getStartNode=function(){return this.startNode_};
_.p.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)};
_.p.next=function(){return this.isLast()?Cw:$y.superClass_.next.call(this)};
_.p.JSC$11347_copyFrom=function(W){this.startNode_=W.startNode_;this.endNode_=W.endNode_;this.startOffset_=W.startOffset_;this.endOffset_=W.endOffset_;this.isReversed_=W.isReversed_;$y.superClass_.JSC$11347_copyFrom.call(this,W)};
_.p.clone=function(){var W=new $y(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);W.JSC$11347_copyFrom(this);return W};var zRM=function(){};
zRM.prototype.__iterator__=function(){return new $y(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Lh=function(W){this.range_=W};
_.TC(Lh,zRM);var GSF=function(W){var B=_.yY(W).createRange();if(W.nodeType==3)B.setStart(W,0),B.setEnd(W,W.length);else if(QG(W)||W.nodeType==3){for(var z,G=W;(z=G.firstChild)&&(QG(z)||z.nodeType==3);)G=z;B.setStart(G,0);for(G=W;(z=G.lastChild)&&(QG(z)||z.nodeType==3);)G=z;B.setEnd(G,G.nodeType==1?G.childNodes.length:G.length)}else z=W.parentNode,W=Array.prototype.indexOf.call(z.childNodes,W),B.setStart(z,W),B.setEnd(z,W+1);return B},YRF=function(W,B,z,G){var Y=_.yY(W).createRange();
Y.setStart(W,B);Y.setEnd(z,G);return Y};
_.p=Lh.prototype;_.p.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.p.getContainer=function(){return this.range_.commonAncestorContainer};
_.p.compareBrowserRangeEndpoints=function(W,B,z){return this.range_.compareBoundaryPoints(z==1?B==1?_.Yt.Range.START_TO_START:_.Yt.Range.START_TO_END:B==1?_.Yt.Range.END_TO_START:_.Yt.Range.END_TO_END,W)};
_.p.isCollapsed=function(){return this.range_.collapsed};
_.p.select=function(W){this.selectInternal(QY(_.yY(this.range_.startContainer)).getSelection(),W)};
_.p.selectInternal=function(W){W.removeAllRanges();W.addRange(this.range_)};
_.p.insertNode=function(W,B){var z=this.range_.cloneRange();z.collapse(B);z.insertNode(W);z.detach();return W};
_.p.collapse=function(W){this.range_.collapse(W)};_.TC(Az,Lh);Az.prototype.selectInternal=function(W,B){!B||this.isCollapsed()?Az.superClass_.selectInternal.call(this,W,B):(W.collapse(this.range_.endContainer,this.range_.endOffset),W.extend(this.range_.startContainer,this.range_.startOffset))};_.TC(iy,Lh);iy.prototype.compareBrowserRangeEndpoints=function(W,B,z){return iy.superClass_.compareBrowserRangeEndpoints.call(this,W,B,z)};
iy.prototype.selectInternal=function(W,B){B?W.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):W.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var dJR=function(W){return _.ts?new iy(W):_.gb?new Az(W):new Lh(W)};var UW=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},pfu;
_.TC(UW,Ws4);pfu=function(W,B){var z=new UW;z.browserRangeWrapper_=W;z.isReversed_=!!B;return z};
_.AH4=function(W){W=_.ts?new iy(GSF(W)):_.gb?new Az(GSF(W)):new Lh(GSF(W));return pfu(W)};
_.Mz=function(W,B,z,G){var Y=new UW;Y.isReversed_=ioD(W,B,z,G);if(_.MX(W)&&!QG(W)){var d=W.parentNode;B=Array.prototype.indexOf.call(d.childNodes,W);W=d}_.MX(z)&&!QG(z)&&(d=z.parentNode,G=Array.prototype.indexOf.call(d.childNodes,z),z=d);Y.isReversed_?(Y.startNode_=z,Y.startOffset_=G,Y.endNode_=W,Y.endOffset_=B):(Y.startNode_=W,Y.startOffset_=B,Y.endNode_=z,Y.endOffset_=G);return Y};
_.p=UW.prototype;_.p.clone=function(){var W=new UW;W.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();W.startNode_=this.startNode_;W.startOffset_=this.startOffset_;W.endNode_=this.endNode_;W.endOffset_=this.endOffset_;W.isReversed_=this.isReversed_;return W};
_.p.JSC$11349_getType=function(){return"text"};
_.p.getBrowserRangeObject=function(){return ax(this).range_};
_.p.getTextRangeCount=function(){return 1};
_.p.getTextRange=function(){return this};
var ax=function(W){var B;if(!(B=W.browserRangeWrapper_)){B=W.JSC$11349_getStartNode();var z=W.JSC$11349_getStartOffset(),G=W.JSC$11349_getEndNode(),Y=W.JSC$11349_getEndOffset();B=_.ts?new iy(YRF(B,z,G,Y)):_.gb?new Az(YRF(B,z,G,Y)):new Lh(YRF(B,z,G,Y));B=W.browserRangeWrapper_=B}return B};
_.p=UW.prototype;_.p.getContainer=function(){return ax(this).getContainer()};
_.p.JSC$11349_getStartNode=function(){return this.startNode_||(this.startNode_=ax(this).range_.startContainer)};
_.p.JSC$11349_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=ax(this).range_.startOffset};
_.p.JSC$11349_getEndNode=function(){return this.endNode_||(this.endNode_=ax(this).range_.endContainer)};
_.p.JSC$11349_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=ax(this).range_.endOffset};
_.p.isReversed=function(){return this.isReversed_};
_.p.JSC$11349_containsRange=function(W,B){if(W.JSC$11349_getType()=="text"){var z=ax(this);W=ax(W);B=B&&!W.isCollapsed();W=W.range_;z=B?z.compareBrowserRangeEndpoints(W,0,1)>=0&&z.compareBrowserRangeEndpoints(W,1,0)<=0:z.compareBrowserRangeEndpoints(W,0,0)>=0&&z.compareBrowserRangeEndpoints(W,1,1)<=0}else z=!1;return z};
_.p.isCollapsed=function(){return ax(this).isCollapsed()};
_.p.JSC$11349_getText=function(){return ax(this).range_.toString()};
_.p.__iterator__=function(){return new $y(this.JSC$11349_getStartNode(),this.JSC$11349_getStartOffset(),this.JSC$11349_getEndNode(),this.JSC$11349_getEndOffset())};
_.p.select=function(){ax(this).select(this.isReversed_)};
_.p.JSC$11349_removeContents=function(){var W=ax(this).range_;W.extractContents();if(W.startContainer.hasChildNodes()&&(W=W.startContainer.childNodes[W.startOffset])){var B=W.previousSibling;F0D(W)==""&&_.o0(W);B&&F0D(B)==""&&_.o0(B)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.p.insertNode=function(W,B){W=ax(this).insertNode(W,B);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return W};
_.p.collapse=function(W){W=this.isReversed()?!W:W;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(W);W?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Ew6=function(){};
_.TC(Ew6,Ws4);Ew6.prototype.JSC$11349_containsRange=function(W,B){var z=Nz(this);W=Nz(W);return(B?$b:_.bnt)(W,function(G){return $b(z,function(Y){return Y.JSC$11349_containsRange(G,B)})})};
Ew6.prototype.insertNode=function(W,B){B?_.qD(W,this.JSC$11349_getStartNode()):_.nf(W,this.JSC$11349_getEndNode());return W};var T5d,vwD=bf().JSC$9327_document_.documentElement;T5d=vwD.requestFullscreen?"fullscreenchange":vwD.webkitRequestFullscreen?"webkitfullscreenchange":vwD.mozRequestFullScreen?"mozfullscreenchange":vwD.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var cHd=function(){var W=bf().JSC$9327_document_;return!!(W.webkitIsFullScreen||W.mozFullScreen||W.msFullscreenElement||W.fullscreenElement)};var Rx=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.TC(Rx,Ew6);_.p=Rx.prototype;_.p.clone=function(){var W=new Rx;W.browserRanges_=_.QR(this.browserRanges_);return W};
_.p.JSC$11349_getType=function(){return"mutli"};
_.p.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.p.getTextRangeCount=function(){return this.browserRanges_.length};
_.p.getTextRange=function(W){this.ranges_[W]||(this.ranges_[W]=pfu(dJR(this.browserRanges_[W])));return this.ranges_[W]};
_.p.getContainer=function(){if(!this.container_){for(var W=[],B=this.getTextRangeCount(),z=0;z<B;z++)W.push(this.getTextRange(z).getContainer());this.container_=kqD.apply(null,W)}return this.container_};
var Wd=function(W){W.sortedRanges_||(W.sortedRanges_=Nz(W),W.sortedRanges_.sort(function(B,z){var G=B.JSC$11349_getStartNode();B=B.JSC$11349_getStartOffset();var Y=z.JSC$11349_getStartNode();z=z.JSC$11349_getStartOffset();return G==Y&&B==z?0:ioD(G,B,Y,z)?1:-1}));
return W.sortedRanges_};
_.p=Rx.prototype;_.p.JSC$11349_getStartNode=function(){return Wd(this)[0].JSC$11349_getStartNode()};
_.p.JSC$11349_getStartOffset=function(){return Wd(this)[0].JSC$11349_getStartOffset()};
_.p.JSC$11349_getEndNode=function(){return _.fu(Wd(this)).JSC$11349_getEndNode()};
_.p.JSC$11349_getEndOffset=function(){return _.fu(Wd(this)).JSC$11349_getEndOffset()};
_.p.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.p.JSC$11349_getText=function(){return Nz(this).map(function(W){return W.JSC$11349_getText()}).join("")};
_.p.__iterator__=function(){return new Bd(this)};
_.p.select=function(){var W=this.getWindow().getSelection();W.removeAllRanges();for(var B=this.getTextRangeCount(),z=0;z<B;z++)W.addRange(this.getTextRange(z).getBrowserRangeObject())};
_.p.JSC$11349_removeContents=function(){Nz(this).forEach(function(W){W.JSC$11349_removeContents()})};
_.p.collapse=function(W){if(!this.isCollapsed()){var B=W?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;B.collapse(W);this.ranges_=[B];this.sortedRanges_=[B];this.browserRanges_=[B.getBrowserRangeObject()]}};
var Bd=function(W){this.iterators_=null;this.currentIdx_=0;W&&(this.iterators_=Wd(W).map(function(B){return _.CYM(B)}));
nh.call(this,W?this.JSC$11355_getStartNode():null,!1,!0)};
_.TC(Bd,B54);_.p=Bd.prototype;_.p.JSC$11355_getStartNode=function(){return this.iterators_[0].JSC$11355_getStartNode()};
_.p.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.p.next=function(){for(;this.currentIdx_<this.iterators_.length;){var W=this.iterators_[this.currentIdx_],B=W.next();if(B.done)this.currentIdx_++;else return qz(this,W.node,W.tagType,W.depth),B}return Cw};
_.p.JSC$11347_copyFrom=function(W){this.iterators_=_.QR(W.iterators_);Bd.superClass_.JSC$11347_copyFrom.call(this,W)};
_.p.clone=function(){var W=new Bd(null);W.JSC$11347_copyFrom(this);return W};var wfM,ioD;_.tE=function(){var W=window.getSelection();return W&&wfM(W)};
wfM=function(W){var B=!1;if(W.createRange)try{var z=W.createRange()}catch(Y){return null}else if(W.rangeCount){if(W.rangeCount>1){z=new Rx;B=W.rangeCount;for(var G=0;G<B;G++)z.browserRanges_.push(W.getRangeAt(G));return z}z=W.getRangeAt(0);B=ioD(W.anchorNode,W.anchorOffset,W.focusNode,W.focusOffset)}else return null;return pfu(dJR(z),B)};
_.zk=function(W,B){return _.Mz(W,B,W,B)};
_.Gk=function(W,B,z,G){return _.Mz(W,B,z,G)};
ioD=function(W,B,z,G){if(W==z)return G<B;var Y;if(W.nodeType==1&&B)if(Y=W.childNodes[B])W=Y,B=0;else if(_.N5(W,z))return!0;if(z.nodeType==1&&G)if(Y=z.childNodes[G])z=Y,G=0;else if(_.N5(z,W))return!1;return(rKU(W,z)||B-G)>0};var Y0=function(){_.Ka.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.jk)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.jk)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.jk)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.jk)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.jk)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.jk)(this.dispatchProgressEvent_,this)};
_.TC(Y0,_.Ka);Y0.prototype.abort=function(){try{this.reader_.abort()}catch(W){throw new FEQ(W,"aborting read");}};
Y0.prototype.getError=function(){return this.reader_.error&&new FEQ(this.reader_.error,"reading file")};
Y0.prototype.dispatchProgressEvent_=function(W){this.dispatchEvent(new Sc7(W,this))};
Y0.prototype.disposeInternal=function(){Y0.superClass_.disposeInternal.call(this);delete this.reader_};
var JHU=function(W){var B=new Y0,z=VJT(B);B.reader_.readAsArrayBuffer(W);return z},gwR=function(W){var B=new Y0,z=VJT(B);
B.reader_.readAsDataURL(W);return z},VJT=function(W){var B=new A4;
W.listen("loadend",_.Ci(function(z,G){var Y=G.reader_.result,d=G.getError();Y==null||d?z.errback(d):z.callback(Y);G.dispose()},B,W));
return B};var d1=function(){_.Ka.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11389_eventHandler_=new _.T5(this);this.JSC$11389_isInitialized_=!1};
_.TC(d1,_.Ka);var tJ4=new _.S1("d"),sNQ=new _.S1("beforedragstart"),PP9=new _.S1("dragstart"),ZoH=new _.S1("beforedragmove"),rHM=new _.S1("dragmove"),kSd=new _.S1("beforedragend"),l87=new _.S1("dragend"),CPF=new _.S1("e");d1.prototype.isDragging=function(){return!!this.JSC$11389_dragger_};
var I8d=function(W,B){B.dlgGrowthDirection_=0;B.dlgDragHoverClass_=void 0;B.dlgDragPermission=0;W.dragLists_.push(B)},owd=function(W,B){W.getHandleForDragItem_=B};
d1.prototype.init=function(){if(!this.JSC$11389_isInitialized_){for(var W=this.dragLists_.length,B=0;B<W;B++)for(var z=_.ND(this.dragLists_[B]),G=z.length,Y=0;Y<G;++Y){var d=z[Y],E=this.getHandleForDragItem_(d),v=_.Lu(E);this.dragItemForHandle_[v]=d;this.dragItemHoverClasses_&&(this.JSC$11389_eventHandler_.listen(d,"mouseover",this.handleDragItemMouseover_),this.JSC$11389_eventHandler_.listen(d,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11389_eventHandler_.listen(E,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11389_eventHandler_.listen(E,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(d);this.JSC$11389_eventHandler_.listen(E,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11389_isInitialized_=!0}};
d1.prototype.disposeInternal=function(){this.JSC$11389_eventHandler_.dispose();for(var W=this.dragLists_.length,B=0;B<W;B++){var z=this.dragLists_[B];z.dlgGrowthDirection_=void 0;z.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;hRd(this);d1.superClass_.disposeInternal.call(this)};
var Ho4=function(W,B){for(var z=W.dragLists_.length,G=0;G<z;G++){var Y=W.dragLists_[G];Y.dlgBounds_=RCQ(Y)}z=W.dragItems_.length;for(G=0;G<z;G++)Y=W.dragItems_[G],Y!=B&&(Y.dlgBounds_=RCQ(Y))};
_.p=d1.prototype;
_.p.handlePotentialDragStart_=function(W){var B=_.Lu(W.currentTarget);B=this.dragItemForHandle_[B];if(B.parentElement.dlgDragPermission!=2){this.currDragItem_=B;a:{B=this.currDragItem_;for(var z=B.cloneNode(!0),G=hI("TEXTAREA",B),Y=hI("TEXTAREA",z),d=0;d<G.length;d++)Y[d].value=G[d].value;switch(B.tagName){case "TR":B=_.xi("TABLE",null,_.xi("TBODY",null,z));break a;case "TD":case "TH":B=_.xi("TABLE",null,_.xi("TBODY",null,_.xi("TR",null,z)));break a;case "TEXTAREA":z.value=B.value;default:B=z;break a}B=
void 0}this.draggerEl_=B;this.draggerElClasses_&&dd(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.yY(this.currDragItem_).body.appendChild(this.draggerEl_);z=_.qd(this.currDragItem_);B=this.draggerEl_;G=_.qd(B);if(z instanceof _.De){var E=z.y;z=z.x}af(B,B.offsetLeft+(z-G.x),B.offsetTop+(Number(E)-G.y));this.JSC$11389_dragger_=new _.RA(this.draggerEl_);_.HgQ(this.JSC$11389_dragger_,this.hysteresisDistance_);
_.ug(this.JSC$11389_dragger_,"start",this.handleDragStart_,!1,this);_.ug(this.JSC$11389_dragger_,"end",this.handleDragEnd_,!1,this);_.ug(this.JSC$11389_dragger_,"earlycancel",this.JSC$11391_cleanup_,!1,this);this.dispatchEvent(new pr(tJ4,this,W,this.currDragItem_,this.draggerEl_,this.JSC$11389_dragger_));this.JSC$11389_dragger_.startDrag(W)}};
_.p.handleDragStart_=function(W){if(this.dispatchEvent(new pr(sNQ,this,W.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.sj4(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?dd(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var B=Xnu(this.draggerEl_);this.draggerEl_.halfWidth=B.width/2;this.draggerEl_.halfHeight=B.height/2;B=this.draggerEl_.getBoundingClientRect();
var z=W.clientY,G=Fg6(this.JSC$11389_dragger_,W.clientX);if(G>B.right){var Y=this.currDragItem_.getBoundingClientRect();this.JSC$11389_dragger_.deltaX=G-(G-Y.left)/Y.width*B.width}z=SEF(this.JSC$11389_dragger_,z);z>B.bottom&&(this.JSC$11389_dragger_.deltaY+=z-B.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";Ho4(this,this.currDragItem_);this.currDragItem_.style.display="";_.ug(this.JSC$11389_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new pr(PP9,
this,W.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11389_dragger_))}else W.preventDefault(),this.JSC$11391_cleanup_()};
_.p.handleDragMove_=function(W){var B=_.qd(this.draggerEl_);B=new _.De(B.x+this.draggerEl_.halfWidth,B.y+this.draggerEl_.halfHeight);a:{var z=null;if(this.currDragItem_.style.display!="none"){z=this.currDragItem_.parentNode;var G=RCQ(z);if(FsH(B,G))break a}G=this.dragLists_.length;for(var Y=0;Y<G;Y++){var d=this.dragLists_[Y];if(d!=z&&FsH(B,d.dlgBounds_)){z=d;break a}}z=null}if(z){if(z==null)throw Error("Zd");G=0;Y=!1;d=void 0;switch(z.dlgGrowthDirection_){case 0:G=B.y;var E=SR7;var v=boH;break;case 4:Y=
!0;case 2:G=B.x;E=jNd;v=boH;break;case 5:Y=!0;case 3:G=B.x,E=f8u,v=Oou}for(var c=null,J,g=_.ND(z),t=g.length,P=0;P<t;P++){var Z=g[P];if(Z!=this.currDragItem_){var l=E(Z.dlgBounds_);if(Y){var b=Xf4(Z,B);d===void 0&&(d=b);v(G,l)&&(J==void 0||b<d||b==d&&(v(l,J)||l==J))&&(c=Z,J=l);b<d&&(d=b)}else v(G,l)&&(J==void 0||v(l,J))&&(c=Z,J=l)}}E=c!==null&&Xf4(c,B)>d?null:c}else E=null;if(!this.dispatchEvent(new pr(ZoH,this,W,this.currDragItem_,this.draggerEl_,this.JSC$11389_dragger_,B,z,E)))return!1;if(z&&z.dlgDragPermission!=
1)this.currDragItem_.parentNode==z&&_.sj4(this.currDragItem_)==E||z.insertBefore(this.currDragItem_,E),this.currDragItem_.style.display="",z.dlgDragHoverClass_&&_.Ev(z,z.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",v=this.dragLists_.length,J=0;J<v;J++)G=this.dragLists_[J],G.dlgDragHoverClass_&&_.AY(G,G.dlgDragHoverClass_);z!=this.currHoverList_&&(this.currHoverList_=z,Ho4(this,this.currDragItem_));this.dispatchEvent(new pr(rHM,this,W,this.currDragItem_,this.draggerEl_,this.JSC$11389_dragger_,
B,z,E));return!1};
_.p.JSC$11391_cleanup_=function(){hRd(this);this.JSC$11389_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var W=this.dragLists_.length,B=0;B<W;B++)this.dragLists_[B].dlgBounds_=null;W=this.dragItems_.length;for(B=0;B<W;B++)this.dragItems_[B].dlgBounds_=null};
_.p.handleDragEnd_=function(W){if(!this.dispatchEvent(new pr(kSd,this,W,this.currDragItem_,this.draggerEl_,this.JSC$11389_dragger_)))return!1;hRd(this);this.dispatchEvent(new pr(l87,this,W,this.currDragItem_,this.draggerEl_,this.JSC$11389_dragger_));this.JSC$11391_cleanup_();return!0};
var hRd=function(W){_.AI(W.JSC$11389_dragger_);var B=W.draggerEl_&&W.draggerEl_.parentElement;W.draggerEl_&&_.o0(W.draggerEl_);W.currDragItem_&&W.currDragItem_.style.display=="none"&&(W.origList_.insertBefore(W.currDragItem_,W.origNextItem_),W.currDragItem_.style.display="");W.currDragItemClasses_&&W.currDragItem_?o$R(W.currDragItem_,W.currDragItemClasses_||[]):W.currDragItem_&&(W.currDragItem_.style.visibility="");for(var z=W.dragLists_.length,G=0;G<z;G++){var Y=W.dragLists_[G];Y.dlgDragHoverClass_&&
_.AY(Y,Y.dlgDragHoverClass_)}B&&W.dispatchEvent(new pr(CPF,W,null,W.currDragItem_,W.draggerEl_,W.JSC$11389_dragger_))};
_.p=d1.prototype;_.p.getHandleForDragItem_=function(W){return W};
_.p.handleDragItemMouseover_=function(W){dd(W.currentTarget,this.dragItemHoverClasses_||[])};
_.p.handleDragItemMouseout_=function(W){o$R(W.currentTarget,this.dragItemHoverClasses_||[])};
_.p.handleDragItemHandleMouseover_=function(W){dd(W.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.p.handleDragItemHandleMouseout_=function(W){o$R(W.currentTarget,this.dragItemHandleHoverClasses_||[])};
var FsH=function(W,B){return W.x>B.left&&W.x<B.left+B.width&&W.y>B.top&&W.y<B.top+B.height},Xf4=function(W,B){W=W.dlgBounds_;
return Math.abs(B.y-(W.top+(W.height-1)/2))},SR7=function(W){return W.top+W.height-1},jNd=function(W){return W.left+W.width-1},f8u=function(W){return W.left||0},boH=function(W,B){return W<B},Oou=function(W,B){return W>B},pr=function(W,B,z,G,Y,d){_.bK.call(this,W);
this.event=z;this.currDragItem=G;this.draggerEl=Y;this.JSC$11393_dragger=d};
_.TC(pr,_.bK);_.TC(vM,_.bA);var Ks6=new _.De(0,0);vM.prototype.JSC$11397_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
vM.prototype.JSC$11397_onMouseMove=function(W){var B=this.containerIsActuallyContent_?Ks6:Sw(bf(this.containerNode_)),z=this.horizontalScrolling_?this.calculateScrollDelta(W.clientX+B.x,this.scrollBounds_.left,this.scrollBounds_.width):0,G=this.calculateScrollDelta(W.clientY+B.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=z;this.scrollDelta_.y=G;!(z=!z&&!G)&&(z=this.constrainScroll_)&&(z=W.clientX+B.x,W=W.clientY+B.y,B=this.containerBounds_,z=!(B.left<=z&&B.left+B.width>=
z&&B.top<=W&&B.top+B.height>=W));z?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
vM.prototype.calculateScrollDelta=function(W,B,z){var G=0;W<B?G=-8:W>B+z&&(G=8);return G};
vM.prototype.disposeInternal=function(){vM.superClass_.disposeInternal.call(this);this.JSC$11395_eventHandler_.dispose();this.scrollTimer_.dispose()};var u46={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"}}},A7=u46;A7=u46;var io={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 eRQ=function(){},R_=function(W){if(typeof W=="number"){var B=new eRQ;
B.standardOffset_=W;var z=W;if(z==0)z="Etc/GMT";else{var G=["Etc/GMT",z<0?"-":"+"];z=Math.abs(z);G.push(Math.floor(z/60)%100);z%=60;z!=0&&G.push(":",_.gw(z,2));z=G.join("")}B.timeZoneId_=z;z=W;z==0?z="UTC":(G=["UTC",z<0?"+":"-"],z=Math.abs(z),G.push(Math.floor(z/60)%100),z%=60,z!=0&&G.push(":",z),z=G.join(""));W=mJ6(W);B.tzNames_=[z,z];B.tzNamesExt_={STD_LONG_NAME_GMT:W,STD_GENERIC_LOCATION:W};B.transitions_=[];return B}B=new eRQ;B.timeZoneId_=W.id;B.standardOffset_=-W.std_offset;B.tzNames_=W.names;
B.tzNamesExt_=W.names_ext;B.transitions_=W.transitions;return B},mJ6=function(W){var B=["GMT"];
B.push(W<=0?"+":"-");W=Math.abs(W);B.push(_.gw(Math.floor(W/60)%100,2),":",_.gw(W%60,2));return B.join("")},xJ6=function(W,B){B=Date.UTC(B.getUTCFullYear(),B.getUTCMonth(),B.getUTCDate(),B.getUTCHours(),B.getUTCMinutes())/36E5;
for(var z=0;z<W.transitions_.length&&B>=W.transitions_[z];)z+=2;return z==0?0:W.transitions_[z-1]},DJF=function(W,B){W=W.standardOffset_-xJ6(W,B);
return W===-1440?0:W};var Wg=function(W,B){this.patternParts_=[];this.JSC$11408_dateTimeSymbols_=B||kl;typeof W=="number"?QNu(this,W):yHU(this,W)},qRU=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],E4=function(W){return W.getHours?W.getHours():0},yHU=function(W,B){for(a$R&&(B=B.replace(/\u200f/g,""));B;){for(var z=B,G=0;G<qRU.length;++G){var Y=B.match(qRU[G]);
if(Y){var d=Y[0];B=B.substring(d.length);G==0&&(d=="''"?d="'":(d=d.substring(1,Y[1]=="'"?d.length-1:d.length),d=d.replace(/''/g,"'")));W.patternParts_.push({text:d,type:G});break}}if(z===B)throw Error("$d`"+B);}};
Wg.prototype.format=function(W,B){if(!W)throw Error("ae");var z=B?(W.getTimezoneOffset()-DJF(B,W))*6E4:0,G=z?new Date(W.getTime()+z):W,Y=G;B&&G.getTimezoneOffset()!=W.getTimezoneOffset()&&(G=new Date(G.getTime()+(G.getTimezoneOffset()-W.getTimezoneOffset())*6E4),Y=new Date(W.getTime()+(z+(z>0?-864E5:864E5))));z=[];for(var d=0;d<this.patternParts_.length;++d){var E=this.patternParts_[d].text;1==this.patternParts_[d].type?z.push(nwU(this,E,W,G,Y,B)):z.push(E)}return z.join("")};
var QNu=function(W,B){if(B<4)var z=W.JSC$11408_dateTimeSymbols_.DATEFORMATS[B];else if(B<8)z=W.JSC$11408_dateTimeSymbols_.TIMEFORMATS[B-4];else if(B<12)z=W.JSC$11408_dateTimeSymbols_.DATETIMEFORMATS[B-8],z=z.replace("{1}",W.JSC$11408_dateTimeSymbols_.DATEFORMATS[B-8]),z=z.replace("{0}",W.JSC$11408_dateTimeSymbols_.TIMEFORMATS[B-8]);else if(B===12)z=W.JSC$11408_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(B===13)z=W.JSC$11408_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{QNu(W,10);return}yHU(W,z)},Tk=function(W,B){B=String(B);
W=W.JSC$11408_dateTimeSymbols_||kl;if(W.ZERODIGIT!==void 0&&!M8X){for(var z=[],G=0;G<B.length;G++){var Y=B.charCodeAt(G);z.push(48<=Y&&Y<=57?String.fromCharCode(W.ZERODIGIT+Y-48):B.charAt(G))}B=z.join("")}return B},M8X=!1,a$R=!1,$JM=function(W,B,z,G){z=z.getFullYear();
z<=0&&G&&(z=1-z);return Tk(W,N5u(z,B))},N5u=function(W,B){B==2&&(W%=100);
W<0&&B++;return _.gw(W,B)},vd=function(W){if(!(W.getHours&&W.getSeconds&&W.getMinutes))throw Error("be");
},LsH=function(W,B){vd(B);
B=E4(B);return W.JSC$11408_dateTimeSymbols_.AMPMS[B>=12&&B<24?1:0]},nwU=function(W,B,z,G,Y,d){var E=B.length;
switch(B.charAt(0)){case "G":return z=G.getFullYear()>0?1:0,E>=4?W.JSC$11408_dateTimeSymbols_.ERANAMES[z]:W.JSC$11408_dateTimeSymbols_.ERAS[z];case "y":return $JM(W,E,G,!0);case "Y":return z=(new Date(MWF(G.getFullYear(),G.getMonth(),G.getDate(),W.JSC$11408_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,W.JSC$11408_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),E==2&&(z%=100),Tk(W,N5u(z,E));case "u":return $JM(W,E,G,!1);case "M":a:switch(z=G.getMonth(),E){case 5:E=W.JSC$11408_dateTimeSymbols_.NARROWMONTHS[z];
break a;case 4:E=W.JSC$11408_dateTimeSymbols_.MONTHS[z];break a;case 3:E=W.JSC$11408_dateTimeSymbols_.SHORTMONTHS[z];break a;default:E=Tk(W,_.gw(z+1,E))}return E;case "k":return vd(Y),Tk(W,_.gw(E4(Y)||24,E));case "S":return Tk(W,(Y.getMilliseconds()/1E3).toFixed(Math.min(3,E)).slice(2)+(E>3?_.gw(0,E-3):""));case "E":return z=G.getDay(),E>=4?W.JSC$11408_dateTimeSymbols_.WEEKDAYS[z]:W.JSC$11408_dateTimeSymbols_.SHORTWEEKDAYS[z];case "a":return LsH(W,Y);case "b":return LsH(W,Y);case "B":return LsH(W,
Y);case "h":return vd(Y),Tk(W,_.gw(E4(Y)%12||12,E));case "K":return vd(Y),Tk(W,_.gw(E4(Y)%12,E));case "H":return vd(Y),Tk(W,_.gw(E4(Y),E));case "c":a:switch(z=G.getDay(),E){case 5:E=W.JSC$11408_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[z];break a;case 4:E=W.JSC$11408_dateTimeSymbols_.STANDALONEWEEKDAYS[z];break a;case 3:E=W.JSC$11408_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[z];break a;default:E=Tk(W,_.gw(z,1))}return E;case "L":a:switch(z=G.getMonth(),E){case 5:E=W.JSC$11408_dateTimeSymbols_.STANDALONENARROWMONTHS[z];
break a;case 4:E=W.JSC$11408_dateTimeSymbols_.STANDALONEMONTHS[z];break a;case 3:E=W.JSC$11408_dateTimeSymbols_.STANDALONESHORTMONTHS[z];break a;default:E=Tk(W,_.gw(z+1,E))}return E;case "Q":return z=Math.floor(G.getMonth()/3),E<4?W.JSC$11408_dateTimeSymbols_.SHORTQUARTERS[z]:W.JSC$11408_dateTimeSymbols_.QUARTERS[z];case "d":return Tk(W,_.gw(G.getDate(),E));case "m":return vd(Y),Tk(W,_.gw(Y.getMinutes?Y.getMinutes():0,E));case "s":return vd(Y),Tk(W,_.gw(Y.getSeconds(),E));case "v":return(d||R_(z.getTimezoneOffset())).timeZoneId_;
case "V":return W=d||R_(z.getTimezoneOffset()),E<=2?W.timeZoneId_:xJ6(W,z)>0?W.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?W.tzNamesExt_.DST_GENERIC_LOCATION:W.tzNamesExt_.DST_GENERIC_LOCATION:W.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?W.tzNamesExt_.STD_GENERIC_LOCATION:W.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return z=MWF(Y.getFullYear(),Y.getMonth(),Y.getDate(),W.JSC$11408_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,W.JSC$11408_dateTimeSymbols_.FIRSTDAYOFWEEK),Tk(W,_.gw(Math.floor(Math.round((z-(new Date((new Date(z)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,E));case "z":return W=d||R_(z.getTimezoneOffset()),E<4?W.tzNames_[xJ6(W,z)>0?2:0]:W.tzNames_[xJ6(W,z)>0?3:1];case "Z":return B=d||R_(z.getTimezoneOffset()),E<4?(E=-DJF(B,z),W=[E<0?"-":"+"],E=Math.abs(E),W.push(_.gw(Math.floor(E/60)%100,2),_.gw(E%60,2)),E=W.join("")):E=Tk(W,mJ6(DJF(B,z))),E;default:return""}};var UJT=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,MJT=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,azD=function(W){this.patternParts_=[];this.JSC$11417_dateTimeSymbols_=kl;if(typeof W=="number"){W>11&&(W=10);if(W<4)var B=this.JSC$11417_dateTimeSymbols_.DATEFORMATS[W];else W<8?B=this.JSC$11417_dateTimeSymbols_.TIMEFORMATS[W-4]:(B=this.JSC$11417_dateTimeSymbols_.DATETIMEFORMATS[W-8],B=B.replace("{1}",this.JSC$11417_dateTimeSymbols_.DATEFORMATS[W-8]),B=B.replace("{0}",this.JSC$11417_dateTimeSymbols_.TIMEFORMATS[W-
8]));a8M(this,B)}else a8M(this,W)},a8M=function(W,B){for(var z=!1,G="",Y=0;Y<B.length;Y++){var d=B.charAt(Y);
if(UJT.test(d))for(G.length>0&&(W.patternParts_.push({text:G,count:0,abutStart:!1,numeric:!1}),G=""),W.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});Y<B.length-1&&B.charAt(Y+1)==" ";)Y++;else if(z)d=="'"?Y+1<B.length&&B.charAt(Y+1)=="'"?(G+="'",Y++):z=!1:G+=d;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(d)>=0){G.length>0&&(W.patternParts_.push({text:G,count:0,abutStart:!1,numeric:!1}),G="");for(var E=B.charAt(Y),v=Y+1;v<B.length&&B.charAt(v)==E;)v++;E=v-Y;E<=0?v=!1:(v="MydhHmsSDkK".indexOf(d),
v=v>0||v==0&&E<3);W.patternParts_.push({text:d,count:E,abutStart:!1,numeric:v});Y+=E-1}else d=="'"?Y+1<B.length&&B.charAt(Y+1)=="'"?(G+="'",Y++):z=!0:G+=d}G.length>0&&W.patternParts_.push({text:G,count:0,abutStart:!1,numeric:!1});B=!1;for(z=0;z<W.patternParts_.length;z++)W.patternParts_[z].numeric?!B&&z+1<W.patternParts_.length&&W.patternParts_[z+1].numeric&&(B=!0,W.patternParts_[z].abutStart=!0):B=!1};
azD.prototype.parse=function(W,B,z){var G=!1,Y=!1;z&&(G=z.predictive||!1,Y=z.validate||!1);if(G)for(z=0;z<this.patternParts_.length;z++){var d=this.patternParts_[z];if(d.count>0&&("abBhHkKm".indexOf(d.text.charAt(0))<0||d.count>2||d.abutStart))throw Error("ce`"+d.text.charAt(0));}d=new RRU;z=[0];d.dayPeriodIndex=-1;for(var E=0;E<this.patternParts_.length&&!(G&&z[0]>=W.length);E++){if(this.patternParts_[E].count==0){a:{var v=W;var c=z,J=this.patternParts_[E],g=G;if(J.text.match(UJT)!=null){if(J=c[0],
WRR(v,c),c[0]>J){v=!0;break a}}else{if(v.indexOf(J.text,c[0])==c[0]){c[0]+=J.text.length;v=!0;break a}if(g&&J.text.indexOf(v.substring(c[0]))==0){c[0]+=v.length-c[0];v=!0;break a}}v=!1}if(v)continue;return 0}if(this.patternParts_[E].abutStart){a:{c=W;J=z;g=E;var t=J[0],P=0;for(v=g;v<this.patternParts_.length;v++){var Z=this.patternParts_[v],l=Z.count;if(l===0)break;if(v==g&&(l-=P,P++,l==0)){v=0;break a}var b=v>g&&Z.numeric,O=J[0];if(!BaT(this,c,J,Z,l,d,!1)||b&&J[0]-O<l)v=g-1,J[0]=t}v-=g}if(v<=0)return 0;
E+=v-1}else if(!BaT(this,W,z,this.patternParts_[E],0,d,G))return 0}a:{W=Y;if(B==null)throw Error("de");d.era!=void 0&&d.year!=void 0&&d.era==0&&d.year>0&&(d.year=-(d.year-1));d.year!=void 0&&B.setFullYear(d.year);G=B.getDate();B.setDate(1);d.month!=void 0&&B.setMonth(d.month);d.day!=void 0?B.setDate(d.day):(Y=o5X(B.getFullYear(),B.getMonth()),B.setDate(G>Y?Y:G));typeof B.setHours==="function"&&(d.hours==void 0&&(d.hours=B.getHours()),d.hours<12&&(d.ampm!=void 0&&d.ampm>0?d.hours+=12:d.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(d.dayPeriodName)||["night1","night2"].includes(d.dayPeriodName)&&d.hours>=6)&&(d.hours+=12)),B.setHours(d.hours));typeof B.setMinutes==="function"&&d.minutes!=void 0&&B.setMinutes(d.minutes);typeof B.setSeconds==="function"&&d.seconds!=void 0&&B.setSeconds(d.seconds);typeof B.setMilliseconds==="function"&&d.milliseconds!=void 0&&B.setMilliseconds(d.milliseconds);if(W&&(d.year&&d.year!=B.getFullYear()||d.month&&d.month!=
B.getMonth()||d.day&&d.day!=B.getDate()||d.hours&&d.hours>=24||d.minutes&&d.minutes>=60||d.seconds&&d.seconds>=60||d.milliseconds&&d.milliseconds>=1E3))B=!1;else{d.tzOffset!=void 0&&B.setTime(B.getTime()+(d.tzOffset-B.getTimezoneOffset())*60*1E3);d.ambiguousYear&&(W=new Date,W.setFullYear(W.getFullYear()-80),B.getTime()<W.getTime()&&B.setFullYear(W.getFullYear()+100));if(d.dayOfWeek!=void 0)if(d.day==void 0)d=(7+d.dayOfWeek-B.getDay())%7,d>3&&(d-=7),W=B.getMonth(),B.setDate(B.getDate()+d),B.getMonth()!=
W&&B.setDate(B.getDate()+(d>0?-7:7));else if(d.dayOfWeek!=B.getDay()){B=!1;break a}B=!0}}return B?z[0]:0};
var BaT=function(W,B,z,G,Y,d,E){WRR(B,z);if(G.numeric&&Y>0&&z[0]+Y>B.length)return!1;switch(G.text.charAt(0)){case "G":return cd(B,z,[W.JSC$11417_dateTimeSymbols_.ERAS],function(v){return d.era=v}),!0;
case "M":case "L":return zqF(W,B,z,Y,G,d);case "E":return cd(B,z,[W.JSC$11417_dateTimeSymbols_.WEEKDAYS,W.JSC$11417_dateTimeSymbols_.SHORTWEEKDAYS],function(v){return d.dayOfWeek=v});
case "B":case "b":return Y=[],W=[[].concat(W.JSC$11417_dateTimeSymbols_.AMPMS)],Y.push("isAm"),Y.push("isPm"),B=cd(B,z,W,function(v){return d.dayPeriodIndex=v},E),d.dayPeriodName=Y[d.dayPeriodIndex],E?B:!0;
case "a":return B=cd(B,z,[W.JSC$11417_dateTimeSymbols_.AMPMS],function(v){return d.ampm=v},E),E?B:!0;
case "y":return GsR(W,B,z,G,Y,d);case "Q":return cd(B,z,[W.JSC$11417_dateTimeSymbols_.QUARTERS,W.JSC$11417_dateTimeSymbols_.SHORTQUARTERS],function(v){d.month=v*3;d.day=1});
case "d":return w1(W,B,z,G,Y,function(v){d.day=v}),!0;
case "S":return YV4(W,B,z,Y,d);case "h":case "K":case "H":case "k":return B=w1(W,B,z,G,Y,function(v){d.hours=G.text.charAt(0)==="h"&&v===12?0:v},E),E?B:!0;
case "m":return B=w1(W,B,z,G,Y,function(v){d.minutes=v},E),E?B:!0;
case "s":return w1(W,B,z,G,Y,function(v){d.seconds=v}),!0;
case "z":case "Z":case "v":return dHd(W,B,z,d);default:return!1}},GsR=function(W,B,z,G,Y,d){var E=z[0];
Y=V3(W,B,z,Y);Y===null&&(Y=V3(W,B,z,0,!0));if(Y===null)return!1;Y>=0&&z[0]-E==2&&G.count==2?(W=Y,B=(new Date).getFullYear()-80,z=B%100,d.ambiguousYear=W==z,W+=Math.floor(B/100)*100+(W<z?100:0),d.year=W):d.year=Y;return!0},zqF=function(W,B,z,G,Y,d){return Y.numeric&&w1(W,B,z,Y,G,function(E){d.month=E-1})?!0:cd(B,z,[W.JSC$11417_dateTimeSymbols_.MONTHS,
W.JSC$11417_dateTimeSymbols_.STANDALONEMONTHS,W.JSC$11417_dateTimeSymbols_.SHORTMONTHS,W.JSC$11417_dateTimeSymbols_.STANDALONESHORTMONTHS],function(E){d.month=E})},YV4=function(W,B,z,G,Y){var d=z[0];
W=V3(W,B,z,G);if(W===null)return!1;z=z[0]-d;Y.milliseconds=z<3?W*Math.pow(10,3-z):Math.round(W/Math.pow(10,z-3));return!0},dHd=function(W,B,z,G){B.indexOf("GMT",z[0])==z[0]&&(z[0]+=3);
if(z[0]>=B.length)return G.tzOffset=0,!0;var Y=z[0],d=V3(W,B,z,0,!0);if(d===null)return!1;if(z[0]<B.length&&B.charAt(z[0])==":"){var E=d*60;z[0]++;d=V3(W,B,z,0);if(d===null)return!1;E+=d}else E=d,E=E<24&&z[0]-Y<=3?E*60:E%100+E/100*60;G.tzOffset=-E;return!0},w1=function(W,B,z,G,Y,d,E){E=E||!1;
var v=z[0];W=V3(W,B,z,Y);if(W===null)return!1;if(E&&z[0]-v<G.count){if(z[0]<B.length)return!1;W*=Math.pow(10,G.count-(z[0]-v))}d(W);return!0},cd=function(W,B,z,G,Y){Y=Y||!1;
for(var d,E=0;E<z.length;E++){d=B;for(var v=z[E],c=Y,J=0,g=null,t=W.substring(d[0]).toLowerCase(),P=0;P<v.length;P++){var Z=v[P].toLowerCase();if(c&&Z.indexOf(t)==0){J=t.length;g=P;break}v[P].length>J&&t.indexOf(Z)==0&&(J=v[P].length,g=P)}g!==null&&(d[0]+=J);d=g;if(d!==null)return G(d),!0}return!1},WRR=function(W,B){(W=W.substring(B[0]).match(MJT))&&(B[0]+=W[0].length)},V3=function(W,B,z,G,Y){B=G>0?B.substring(0,z[0]+G):B;
Y=Y||!1;if(W.JSC$11417_dateTimeSymbols_.ZERODIGIT){G=[];for(var d=z[0];d<B.length;d++){var E=B.charCodeAt(d)-W.JSC$11417_dateTimeSymbols_.ZERODIGIT;G.push(0<=E&&E<=9?String.fromCharCode(E+48):B.charAt(d))}B=G.join("")}else B=B.substring(z[0]);W=B.match(new RegExp("^"+(Y?"[+-]?":"")+"\\d+"));if(!W)return null;z[0]+=W[0].length;return parseInt(W[0],10)},RRU=function(){};
RRU.prototype.ambiguousYear=!1;var pJ6;
pJ6={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 AV6={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}"]};
AV6={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 i8R=function(){var W={type:"unit",style:"narrow"};this.listType_=W&&W.type?W.type:"conjunction";this.listStyle_=W&&W.style?W.style:"long";this.listSymbols_=AV6;W=0;switch(this.listStyle_){case "short":W=1;break;case "narrow":W=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[W];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[W];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[W];this.listEndPattern_=
this.listSymbols_.AND_END[W];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[W];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[W];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[W];this.listEndPattern_=this.listSymbols_.OR_END[W];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[W],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[W],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[W],this.listEndPattern_=this.listSymbols_.UNIT_END[W]}};
i8R.prototype.format=function(W){return EBu(this,W)};
var EBu=function(W,B){var z=B.length;switch(z){case 0:return"";case 1:return String(B[0]);case 2:return W.listTwoPattern_.replace("{0}",String(B[0])).replace("{1}",String(B[1]))}for(var G=W.listStartPattern_.replace("{0}",String(B[0])).replace("{1}",String(B[1])),Y=2;Y<z-1;++Y)G=W.listMiddlePattern_.replace("{0}",G).replace("{1}",String(B[Y]));return W.listEndPattern_.replace("{0}",G).replace("{1}",String(B[z-1]))};var TaR={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"},vBM=TaR,cVU=TaR;cVU=vBM=TaR;var VKU,J7,t7,ZeX,g1,wJR;
_.Ug=function(W,B,z,G){var Y;if(Y=B){a:if(B&&B.length===3){for(Y=0;Y<3;Y++){var d=B[Y];if(d<"A"||d>"Z"&&d<"a"||d>"z"){Y=!1;break a}}Y=!0}else Y=!1;Y=!Y}if(Y)throw new TypeError("ee");this.intlCurrencyCode_=B?B.toUpperCase():null;this.currencyStyle_=z||0;this.overrideNumberFormatSymbols_=G||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_=J7(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof W==="number")switch(W){case 1:g1(this,J7(this).DECIMAL_PATTERN);break;case 2:g1(this,J7(this).SCIENTIFIC_PATTERN);break;case 3:g1(this,J7(this).PERCENT_PATTERN);break;case 4:W=J7(this).CURRENCY_PATTERN;B=["0"];if(z=
io[t7(this)]){z=z[0]&7;if(z>0)for(B.push("."),G=0;G<z;G++)B.push("0");W=W.replace(/0.00/g,B.join(""))}g1(this,W);break;case 5:wJR(this,1);break;case 6:wJR(this,2);break;default:throw Error("he");}else g1(this,W)};
VKU=!1;J7=function(W){return W.overrideNumberFormatSymbols_||(VKU?cVU:vBM)};
t7=function(W){return W.intlCurrencyCode_||J7(W).DEF_CURRENCY_CODE};
ZeX=function(W,B){if(B>308)throw Error("ge`"+B);W.maximumFractionDigits_=B;return W};
g1=function(W,B){var z=[0];W.positivePrefix_=JVF(W,B,z);for(var G=z[0],Y=-1,d=0,E=0,v=0,c=-1,J=B.length,g=!0;z[0]<J&&g;z[0]++)switch(B.charAt(z[0])){case "#":E>0?v++:d++;c>=0&&Y<0&&c++;break;case "0":if(v>0)throw Error("ne`"+B);E++;c>=0&&Y<0&&c++;break;case ",":c>0&&W.groupingArray_.push(c);c=0;break;case ".":if(Y>=0)throw Error("oe`"+B);Y=d+E+v;break;case "E":if(W.useExponentialNotation_)throw Error("pe`"+B);W.useExponentialNotation_=!0;W.minExponentDigits_=0;z[0]+1<J&&B.charAt(z[0]+1)=="+"&&(z[0]++,
W.useSignForPositiveExponent_=!0);for(;z[0]+1<J&&B.charAt(z[0]+1)=="0";)z[0]++,W.minExponentDigits_++;if(d+E<1||W.minExponentDigits_<1)throw Error("qe`"+B);g=!1;break;default:z[0]--,g=!1}E==0&&d>0&&Y>=0&&(E=Y,E==0&&E++,v=d-E,d=E-1,E=1);if(Y<0&&v>0||Y>=0&&(Y<d||Y>d+E)||c==0)throw Error("re`"+B);v=d+E+v;W.maximumFractionDigits_=Y>=0?v-Y:0;Y>=0&&(W.minimumFractionDigits_=d+E-Y,W.minimumFractionDigits_<0&&(W.minimumFractionDigits_=0));W.minimumIntegerDigits_=(Y>=0?Y:v)-d;W.useExponentialNotation_&&(W.maximumIntegerDigits_=
d+W.minimumIntegerDigits_,W.maximumFractionDigits_==0&&W.minimumIntegerDigits_==0&&(W.minimumIntegerDigits_=1));W.groupingArray_.push(Math.max(0,c));W.decimalSeparatorAlwaysShown_=Y==0||Y==v;G=z[0]-G;W.positiveSuffix_=JVF(W,B,z);z[0]<B.length&&B.charAt(z[0])==";"?(z[0]++,W.multiplier_!=1&&(W.negativePercentSignExpected_=!0),W.negativePrefix_=JVF(W,B,z),z[0]+=G,W.negativeSuffix_=JVF(W,B,z)):(W.negativePrefix_+=W.positivePrefix_,W.negativeSuffix_+=W.positiveSuffix_)};
wJR=function(W,B){W.compactStyle_=B;g1(W,J7(W).DECIMAL_PATTERN);W.minimumFractionDigits_=0;ZeX(W,2);if(W.minimumFractionDigits_>0)throw Error("fe");W.significantDigits_=2};
_.Ug.prototype.parse=function(W,B){B=B||[0];if(this.compactStyle_!==0)throw Error("ie");W=W.replace(/ |\u202f/g,"\u00a0");var z=W.indexOf(this.positivePrefix_,B[0])==B[0],G=W.indexOf(this.negativePrefix_,B[0])==B[0];z&&G&&(this.positivePrefix_.length>this.negativePrefix_.length?G=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(z=!1));z?B[0]+=this.positivePrefix_.length:G&&(B[0]+=this.negativePrefix_.length);if(W.indexOf(J7(this).INFINITY,B[0])==B[0]){B[0]+=J7(this).INFINITY.length;var Y=
Infinity}else{Y=W;var d=!1,E=!1,v=!1,c=-1,J=1,g=J7(this).DECIMAL_SEP,t=J7(this).GROUP_SEP,P=J7(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("je");t=t.replace(/\u202f/g,"\u00a0");for(var Z="";B[0]<Y.length;B[0]++){var l=Y.charAt(B[0]),b=gBU(this,l);if(b>=0&&b<=9)Z+=b,v=!0;else if(l==g.charAt(0)){if(d||E)break;Z+=".";d=!0}else if(l==t.charAt(0)&&("\u00a0"!=t.charAt(0)||B[0]+1<Y.length&&gBU(this,Y.charAt(B[0]+1))>=0)){if(d||E)break}else if(l==P.charAt(0)){if(E)break;Z+="E";E=!0;c=B[0]}else if(l==
"+"||l=="-"){if(v&&c!=B[0]-1)break;Z+=l}else if(this.multiplier_==1&&l==J7(this).PERCENT.charAt(0)){if(J!=1)break;J=100;if(v){B[0]++;break}}else if(this.multiplier_==1&&l==J7(this).PERMILL.charAt(0)){if(J!=1)break;J=1E3;if(v){B[0]++;break}}else break}this.multiplier_!=1&&(J=this.multiplier_);Y=parseFloat(Z)/J}if(z){if(W.indexOf(this.positiveSuffix_,B[0])!=B[0])return NaN;B[0]+=this.positiveSuffix_.length}else if(G){if(W.indexOf(this.negativeSuffix_,B[0])!=B[0])return NaN;B[0]+=this.negativeSuffix_.length}return G?
-Y:Y};
_.Ug.prototype.format=function(W){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ke");if(isNaN(W))return J7(this).NAN;var B=[];var z=W;if(this.compactStyle_==0)z=s4;else{z=Math.abs(z);var G=tKD(this,z<=1?0:sBR(z)).divisorBase;z=tKD(this,G+sBR(PgR(this,Pd(z,-G)).intValue))}W=Pd(W,-z.divisorBase);(G=W<0||W==0&&1/W<0)?z.negative_prefix?B.push(z.negative_prefix):(B.push(z.prefix),B.push(this.negativePrefix_)):(B.push(z.prefix),B.push(this.positivePrefix_));if(isFinite(W))if(W*=
G?-1:1,W*=this.multiplier_,this.useExponentialNotation_){var Y=W;if(Y==0)Z89(this,Y,this.minimumIntegerDigits_,B),rVF(this,0,B);else{var d=Math.floor(Math.log(Y)/Math.log(10)+2E-15);Y=Pd(Y,-d);var E=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(E=d%this.maximumIntegerDigits_,E<0&&(E=this.maximumIntegerDigits_+E),Y=Pd(Y,E),d-=E,E=1):this.minimumIntegerDigits_<1?(d++,Y=Pd(Y,-1)):(d-=this.minimumIntegerDigits_-1,Y=Pd(Y,this.minimumIntegerDigits_-
1));Z89(this,Y,E,B);rVF(this,d,B)}}else Z89(this,W,this.minimumIntegerDigits_,B);else B.push(J7(this).INFINITY);G?z.negative_suffix?B.push(z.negative_suffix):(isFinite(W)&&B.push(z.suffix),B.push(this.negativeSuffix_)):(isFinite(W)&&B.push(z.suffix),B.push(this.positiveSuffix_));return B.join("")};
var PgR=function(W,B){var z=Pd(B,W.maximumFractionDigits_);W.significantDigits_>0&&(z=ksT(z,W.significantDigits_,W.maximumFractionDigits_));z=Math.round(z);if(isFinite(z)){var G=Math.floor(Pd(z,-W.maximumFractionDigits_));z=Math.floor(z-Pd(G,W.maximumFractionDigits_));if(z<0||z>=Pd(1,W.maximumFractionDigits_))G=Math.round(B),z=0}else G=B,z=0;return{intValue:G,fracValue:z}},Z89=function(W,B,z,G){if(W.minimumFractionDigits_>W.maximumFractionDigits_)throw Error("ke");
G||(G=[]);B=PgR(W,B);var Y=B.intValue,d=B.fracValue,E=W.minimumFractionDigits_>0||d>0||!1;B=W.minimumFractionDigits_;E&&(B=W.minimumFractionDigits_);for(var v="",c=Y;c>1E20;)v="0"+v,c=Math.round(Pd(c,-1));v=c+v;var J=J7(W).DECIMAL_SEP;c=J7(W).ZERO_DIGIT.codePointAt(0);var g=v.length,t=0;if(Y>0||z>0){for(Y=g;Y<z;Y++)G.push(String.fromCodePoint(c));if(W.groupingArray_.length>=2)for(z=1;z<W.groupingArray_.length;z++)t+=W.groupingArray_[z];z=g-t;if(z>0){Y=W.groupingArray_;t=g=0;for(var P,Z=J7(W).GROUP_SEP,
l=v.length,b=0;b<l;b++)if(G.push(String.fromCodePoint(c+Number(v.charAt(b)))),l-b>1)if(P=Y[t],b<z){var O=z-b;(P===1||P>0&&O%P===1)&&G.push(Z)}else t<Y.length&&(b===z?t+=1:P===b-z-g+1&&(G.push(Z),g+=P,t+=1))}else{z=v;v=W.groupingArray_;Y=J7(W).GROUP_SEP;P=z.length;Z=[];for(g=v.length-1;g>=0&&P>0;g--){t=v[g];for(l=0;l<t&&P-l-1>=0;l++)Z.push(String.fromCodePoint(c+Number(z.charAt(P-l-1))));P-=t;P>0&&Z.push(Y)}G.push.apply(G,Z.reverse())}}else E||G.push(String.fromCodePoint(c));(W.decimalSeparatorAlwaysShown_||
E)&&G.push(J);d=String(d);E=d.split("e+");E.length==2&&(d=String(ksT(parseFloat(E[0]),W.significantDigits_,1)),d=d.replace(".",""),d+=(0,_.BUU)("0",parseInt(E[1],10)-d.length+1));W.maximumFractionDigits_+1>d.length&&(d="1"+(0,_.BUU)("0",W.maximumFractionDigits_-d.length)+d);for(W=d.length;d.charAt(W-1)=="0"&&W>B+1;)W--;for(B=1;B<W;B++)G.push(String.fromCodePoint(c+Number(d.charAt(B))))},rVF=function(W,B,z){z.push(J7(W).EXP_SYMBOL);
B<0?(B=-B,z.push(J7(W).MINUS_SIGN)):W.useSignForPositiveExponent_&&z.push(J7(W).PLUS_SIGN);B=""+B;for(var G=J7(W).ZERO_DIGIT,Y=B.length;Y<W.minExponentDigits_;Y++)z.push(G);W=G.codePointAt(0)-lrM;for(G=0;G<B.length;G++)z.push(String.fromCodePoint(W+B.codePointAt(G)))},gBU=function(W,B){B=B.codePointAt(0);
if(48<=B&&B<58)return B-48;W=J7(W).ZERO_DIGIT.codePointAt(0);return W<=B&&B<W+10?B-W:-1},lrM="0".codePointAt(0),JVF=function(W,B,z){for(var G="",Y=!1,d=B.length;z[0]<d;z[0]++){var E=B.charAt(z[0]);
if(E=="'")z[0]+1<d&&B.charAt(z[0]+1)=="'"?(z[0]++,G+="'"):Y=!Y;else if(Y)G+=E;else switch(E){case "#":case "0":case ",":case ".":case ";":return G;case "\u00a4":if(z[0]+1<d&&B.charAt(z[0]+1)=="\u00a4")z[0]++,G+=t7(W);else switch(W.currencyStyle_){case 0:E=t7(W);G+=E in io?io[E][1]:E;break;case 2:E=t7(W);var v=io[E];G+=v?E==v[1]?E:E+" "+v[1]:E;break;case 1:E=t7(W),G+=E in io?io[E][2]:E}break;case "%":if(!W.negativePercentSignExpected_&&W.multiplier_!=1)throw Error("le");if(W.negativePercentSignExpected_&&
W.multiplier_!=100)throw Error("me");W.multiplier_=100;W.negativePercentSignExpected_=!1;G+=J7(W).PERCENT;break;case "\u2030":if(!W.negativePercentSignExpected_&&W.multiplier_!=1)throw Error("le");if(W.negativePercentSignExpected_&&W.multiplier_!=1E3)throw Error("me");W.multiplier_=1E3;W.negativePercentSignExpected_=!1;G+=J7(W).PERMILL;break;default:G+=E}}return G},s4={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},tKD=function(W,B){W=W.compactStyle_==1?A7.COMPACT_DECIMAL_SHORT_PATTERN:A7.COMPACT_DECIMAL_LONG_PATTERN;W==null&&(W=A7.COMPACT_DECIMAL_SHORT_PATTERN);if(B<3)return s4;B=Math.min(14,B);var z=W[Pd(1,B)];for(--B;!z&&B>=3;)z=W[Pd(1,B)],B--;if(!z)return s4;z=z.other;var G=W="",Y=z.indexOf(";");Y>=0&&(z=z.substring(0,Y),Y=z.substring(Y+1))&&(G=/([^0]*)(0+)(.*)/.exec(Y),W=G[1],G=G[3]);return z&&z!="0"?(z=/([^0]*)(0+)(.*)/.exec(z))?{divisorBase:B+
1-(z[2].length-1),negative_prefix:W,negative_suffix:G,prefix:z[1],suffix:z[3]}:s4:s4},sBR=function(W){if(!isFinite(W))return W>0?W:0;
for(var B=0;(W/=10)>=1;)B++;return B},Pd=function(W,B){if(!W||!isFinite(W)||B==0)return W;
W=String(W).split("e");return parseFloat(W[0]+"e"+(parseInt(W[1]||0,10)+B))},Cg7=function(W,B){return W&&isFinite(W)?Pd(Math.round(Pd(W,B)),-B):W},ksT=function(W,B,z){if(!W)return W;
B=B-sBR(W)-1;return B<-z?Cg7(W,-z):Cg7(W,B)};var Ir6=function(W){return W%10==1&&W%100!=11?"one":W%10==2&&W%100!=12?"two":W%10==3&&W%100!=13?"few":"other"},oBU=Ir6;
oBU=Ir6;var hqH=function(W,B){var z=W|0;if(void 0===B){B=Math;var G=B.min,Y=W+"",d=Y.indexOf(".");B=G.call(B,d===-1?0:Y.length-d-1,3)}G=Math.pow(10,B);W={v:B,f:(W*G|0)%G};return z==1&&W.v==0?"one":"other"},LA=hqH;
LA=hqH;var b86=function(W){this.JSC$11460_pattern_=W;this.parsedPattern_=this.literals_=this.initialLiterals_=null;W=vBM;var B=A7;if(H8U!==W||FRT!==B)H8U=W,FRT=B,SV9=new _.Ug(1);this.numberFormatter_=SV9},H8U=null,FRT=null,SV9=null,jBM=RegExp("'([{}#].*?)'","g"),fru=RegExp("''","g");
b86.prototype.format=function(W){if(this.JSC$11460_pattern_){this.initialLiterals_=[];var B=O8D(this,this.JSC$11460_pattern_);this.parsedPattern_=XJM(this,B);this.JSC$11460_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.QR(this.initialLiterals_),B=[],KRu(this,this.parsedPattern_,W,!1,B),W=B.join("");this.literals_.length>0;)W=W.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else W="";return W};
var KRu=function(W,B,z,G,Y){for(var d=0;d<B.length;d++)switch(B[d].type){case 4:Y.push(B[d].value);break;case 3:var E=B[d].value;var v=W,c=Y,J=z[E];J===void 0?c.push("Undefined parameter - "+E):(v.literals_.push(J),c.push(v.buildPlaceholder_(v.literals_)));break;case 2:E=B[d].value;v=W;c=z;J=G;var g=Y,t=E.argumentIndex;c[t]===void 0?g.push("Undefined parameter - "+t):(t=E[c[t]],t===void 0&&(t=E.other),KRu(v,t,c,J,g));break;case 0:E=B[d].value;uFM(W,E,z,LA,G,Y);break;case 1:E=B[d].value,uFM(W,E,z,
oBU,G,Y)}},uFM=function(W,B,z,G,Y,d){var E=B.argumentIndex,v=B.argumentOffset,c=+z[E];
isNaN(c)?d.push("Undefined or invalid parameter - "+E):(v=c-v,E=B[z[E]],E===void 0&&(G=G(Math.abs(v)),E=B[G],E===void 0&&(E=B.other)),B=[],KRu(W,E,z,Y,B),z=B.join(""),Y?d.push(z):(W=W.numberFormatter_.format(v),d.push(z.replace(/#/g,W))))},O8D=function(W,B){var z=W.initialLiterals_,G=W.buildPlaceholder_.bind(W);
B=B.replace(fru,function(){z.push("'");return G(z)});
return B=B.replace(jBM,function(Y,d){z.push(d);return G(z)})},eq9=function(W){var B=0,z=[],G=[],Y=/[{}]/g;
Y.lastIndex=0;for(var d;d=Y.exec(W);){var E=d.index;d[0]=="}"?(z.pop(),z.length==0&&(d={type:1},d.value=W.substring(B,E),G.push(d),B=E+1)):(z.length==0&&(B=W.substring(B,E),B!=""&&G.push({type:0,value:B}),B=E+1),z.push("{"))}W=W.substring(B);W!=""&&G.push({type:0,value:W});return G},mH9=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,xHD=/^\s*(\w+)\s*,\s*selectordinal\s*,/,DH7=/^\s*(\w+)\s*,\s*select\s*,/,XJM=function(W,B){var z=[];
B=eq9(B);for(var G=0;G<B.length;G++){var Y={};if(0==B[G].type)Y.type=4,Y.value=B[G].value;else if(1==B[G].type){var d=B[G].value;switch(mH9.test(d)?0:xHD.test(d)?1:DH7.test(d)?2:/^\s*\w+\s*/.test(d)?3:5){case 2:Y.type=2;Y.value=QBU(W,B[G].value);break;case 0:Y.type=0;Y.value=yV7(W,B[G].value);break;case 1:Y.type=1;Y.value=qVQ(W,B[G].value);break;case 3:Y.type=3,Y.value=B[G].value}}z.push(Y)}return z},QBU=function(W,B){var z="";
B=B.replace(DH7,function(v,c){z=c;return""});
var G={};G.argumentIndex=z;B=eq9(B);for(var Y=0;Y<B.length;){var d=B[Y].value;Y++;var E=void 0;1==B[Y].type&&(E=XJM(W,B[Y].value));G[d.replace(/\s/g,"")]=E;Y++}return G},yV7=function(W,B){var z="",G=0;
B=B.replace(mH9,function(c,J,g){z=J;g&&(G=parseInt(g,10));return""});
var Y={};Y.argumentIndex=z;Y.argumentOffset=G;B=eq9(B);for(var d=0;d<B.length;){var E=B[d].value;d++;var v=void 0;1==B[d].type&&(v=XJM(W,B[d].value));Y[E.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=v;d++}return Y},qVQ=function(W,B){var z="";
B=B.replace(xHD,function(v,c){z=c;return""});
var G={};G.argumentIndex=z;G.argumentOffset=0;B=eq9(B);for(var Y=0;Y<B.length;){var d=B[Y].value;Y++;var E=void 0;1==B[Y].type&&(E=XJM(W,B[Y].value));G[d.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=E;Y++}return G};
b86.prototype.buildPlaceholder_=function(W){return"\ufddf_"+(W.length-1).toString(10)+"_"};var uI2=function(){var W={style:1},B=nBu;this.style_=(W==null?void 0:W.style)||0;this.durationSymbols_=B||pJ6},Na6=function(W,B){switch(B){default:case "years":return W.durationSymbols_.YEAR;
case "months":return W.durationSymbols_.MONTH;case "weeks":return W.durationSymbols_.WEEK;case "days":return W.durationSymbols_.DAY;case "hours":return W.durationSymbols_.HOUR;case "minutes":return W.durationSymbols_.MINUTE;case "seconds":return W.durationSymbols_.SECOND}},ZM=function(W,B,z){a:{z=Na6(W,z);
switch(W.style_){case 1:if(z.LONG!=void 0){W=z.LONG;break a}case 2:if(z.NARROW!=void 0){W=z.NARROW;break a}default:W=z.SHORT;break a}W=void 0}return W?(new b86("{DURATION_VALUE,plural,"+W+"}")).format({DURATION_VALUE:B}):""};
uI2.prototype.format=function(W){var B=[],z=W.years,G=W.months,Y=W.weeks,d=W.days,E=W.hours,v=W.minutes;W=W.seconds;z!=null&&B.push(ZM(this,z,"years"));G!=null&&B.push(ZM(this,G,"months"));Y!=null&&B.push(ZM(this,Y,"weeks"));d!=null&&B.push(ZM(this,d,"days"));E!=null&&B.push(ZM(this,E,"hours"));v!=null&&B.push(ZM(this,v,"minutes"));W!=null&&B.push(ZM(this,W,"seconds"));return(new i8R).format(B)};var $H7;
$H7={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 Wmr=function(){this.rdtfSymbols_=LRM||$H7;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
Wmr.prototype.format=function(W,B){a:{B=UHD(this,B);switch(this.style_){case 2:if(B.NARROW!=void 0){B=B.NARROW;break a}case 1:if(B.SHORT!=void 0){B=B.SHORT;break a}default:B=B.LONG;break a}B=void 0}if(!this.alwaysNumeric_&&B&&B.R&&B.R[""+W])W=B.R[""+W];else if(B){var z=Math.abs(W);W=(new b86("{N,plural,"+(W>0||W==0&&1/W==Infinity?B.F:B.P)+"}")).format({N:z})}else W="";return W};
var UHD=function(W,B){switch(B){default:case 0:return W.rdtfSymbols_.YEAR;case 1:return W.rdtfSymbols_.QUARTER;case 2:return W.rdtfSymbols_.MONTH;case 3:return W.rdtfSymbols_.WEEK;case 4:return W.rdtfSymbols_.DAY;case 5:return W.rdtfSymbols_.HOUR;case 6:return W.rdtfSymbols_.MINUTE;case 7:return W.rdtfSymbols_.SECOND}};var MKd=function(W,B,z,G,Y,d,E,v){this.x0=W;this.y0=B;this.x1=z;this.y1=G;this.x2=Y;this.y2=d;this.x3=E;this.y3=v};
MKd.prototype.clone=function(){return new MKd(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
MKd.prototype.equals=function(W){return this.x0==W.x0&&this.y0==W.y0&&this.x1==W.x1&&this.y1==W.y1&&this.x2==W.x2&&this.y2==W.y2&&this.x3==W.x3&&this.y3==W.y3};
var arR=function(W,B){if(B==0)return W.x0;if(B==1)return W.x3;var z=Kf(W.x0,W.x1,B),G=Kf(W.x1,W.x2,B);W=Kf(W.x2,W.x3,B);z=Kf(z,G,B);G=Kf(G,W,B);return Kf(z,G,B)},RqM=function(W,B){var z=(B-W.x0)/(W.x3-W.x0);
if(z<=0)return 0;if(z>=1)return 1;for(var G=0,Y=1,d=0,E=0;E<8;E++){d=arR(W,z);var v=(arR(W,z+1E-6)-d)/1E-6;if(Math.abs(d-B)<1E-6)return z;if(Math.abs(v)<1E-6)break;else d<B?G=z:Y=z,z-=(d-B)/v}for(E=0;Math.abs(d-B)>1E-6&&E<8;E++)d<B?(G=z,z=(z+Y)/2):(Y=z,z=(z+G)/2),d=arR(W,z);return z};var r1=function(){_.Ka.call(this);this.JSC$11481_name_="closure_frame"+WTH++;this.iframesForDisposal_=[];BS9[this.JSC$11481_name_]=this},k0;
_.TC(r1,_.Ka);var BS9={},WTH=0,zIT=function(W,B){var z=bf(W);AWH(B,function(G,Y){Array.isArray(G)||(G=[G]);_.$r(G,function(d){d=z.JSC$9329_createDom("INPUT",{type:"hidden",name:Y,value:d});W.appendChild(d)})})};
_.p=r1.prototype;_.p.JSC$11483_form_=null;_.p.JSC$11483_iframe_=null;_.p.iframeName_=null;_.p.nextIframeId_=0;_.p.JSC$11483_active_=!1;_.p.complete_=!1;_.p.success_=!1;_.p.lastContent_=null;_.p.JSC$11483_lastErrorCode_=0;_.p.iframeDisposalTimer_=null;
_.p.send=function(W,B,z,G){if(this.JSC$11483_active_)throw Error("se");W=new _.B0(W);B=B?B.toUpperCase():"GET";z&&_.l_(W);k0||(k0=_.xi("FORM"),k0.acceptCharset="utf-8",z=k0.style,z.position="absolute",z.visibility="hidden",z.top=z.left="-10px",z.width=z.height="10px",z.overflow="hidden",document.body.appendChild(k0));this.JSC$11483_form_=k0;B=="GET"&&zIT(this.JSC$11483_form_,W.JSC$10032_queryData_);G&&zIT(this.JSC$11483_form_,G);z=W.toString();z=b4u(z);G=this.JSC$11483_form_;z=_.NZ(Km(z));z!==void 0&&
(G.action=z);this.JSC$11483_form_.method=B;GGR(this);Yv7(this)};
_.p.abort=function(W){if(this.JSC$11483_active_){var B=lo(this);if(B)if(fa(B))B.removeAllListeners(void 0);else if(B=OZ(B)){var z=0,G;for(G in B.listeners)for(var Y=B.listeners[G].concat(),d=0;d<Y.length;++d)OV(Y[d])&&++z}this.success_=this.JSC$11483_active_=this.complete_=!1;this.JSC$11483_lastErrorCode_=W||7;this.dispatchEvent("abort");dEM(this)}};
_.p.disposeInternal=function(){this.JSC$11483_active_&&this.abort();r1.superClass_.disposeInternal.call(this);this.JSC$11483_iframe_&&p2d(this);Yv7(this);this.JSC$11483_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11483_form_=null;this.JSC$11483_lastErrorCode_=0;delete BS9[this.JSC$11481_name_]};
_.p.isComplete=function(){return this.complete_};
_.p.isSuccess=function(){return this.success_};
_.p.isActive=function(){return this.JSC$11483_active_};
_.p.getResponseText=function(){return this.lastContent_};
_.p.getLastError=function(){return _.uid(this.JSC$11483_lastErrorCode_)};
var GGR=function(W){W.JSC$11483_active_=!0;W.complete_=!1;W.JSC$11483_lastErrorCode_=0;W.iframeName_=W.JSC$11481_name_+"_"+(W.nextIframeId_++).toString(36);W.JSC$11483_iframe_=bf(W.JSC$11483_form_).JSC$9329_createDom("IFRAME",{name:W.iframeName_,id:W.iframeName_});var B=W.JSC$11483_iframe_.style;B.visibility="hidden";B.width=B.height="10px";B.display="none";_.ts?B.marginTop=B.marginLeft="-10px":(B.position="absolute",B.top=B.left="-10px");bf(W.JSC$11483_form_).JSC$9327_document_.body.appendChild(W.JSC$11483_iframe_);
B=W.iframeName_+"_inner";var z=liQ(W.JSC$11483_iframe_);if(document.baseURI){var G=sM(B);G='<head><base href="'+sM(document.baseURI)+'"></head><body><iframe id="'+G+'" name="'+G+'"></iframe>';G=MZ(G)}else G=sM(B),G=MZ('<body><iframe id="'+G+'" name="'+G+'"></iframe>');z.write(R3(G));_.ug(z.getElementById(B),"load",W.onIframeLoaded_,!1,W);G=hI("TEXTAREA",W.JSC$11483_form_);for(var Y=0,d=G.length;Y<d;Y++){var E=G[Y].value;F0D(G[Y])!=E&&(_.$i(G[Y],E),G[Y].value=E)}G=z.importNode(W.JSC$11483_form_,!0);
G.target=B;G.action=W.JSC$11483_form_.action;z.body.appendChild(G);Y=hI("SELECT",W.JSC$11483_form_);d=hI("SELECT",G);E=0;for(var v=Y.length;E<v;E++)for(var c=hI("OPTION",Y[E]),J=hI("OPTION",d[E]),g=0,t=c.length;g<t;g++)J[g].selected=c[g].selected;Y=hI("INPUT",W.JSC$11483_form_);d=hI("INPUT",G);E=0;for(v=Y.length;E<v;E++)if(Y[E].type=="file"&&Y[E].value!=d[E].value){W.JSC$11483_form_.target=B;G=W.JSC$11483_form_;break}try{W.errorHandled_=!1,G.submit(),z.close(),_.gb&&setTimeout(W.testForFirefoxSilentError_.bind(W),
250)}catch(P){_.Xn(z.getElementById(B),"load",W.onIframeLoaded_,!1,W),z.close(),Cr(W,2)}};
r1.prototype.onIframeLoaded_=function(){_.Xn(lo(this),"load",this.onIframeLoaded_,!1,this);try{var W=this.JSC$11483_iframe_?liQ(lo(this)):null;this.complete_=!0;this.JSC$11483_active_=!1;try{var B=W.body;this.lastContent_=B.textContent||B.innerText}catch(Y){var z=1}var G;z||typeof this.errorChecker_!="function"||(G=this.errorChecker_(W))&&(z=4);z?Cr(this,z):(this.success_=!0,this.JSC$11483_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),dEM(this))}catch(Y){Cr(this,1)}};
var Cr=function(W,B){W.errorHandled_||(W.success_=!1,W.JSC$11483_active_=!1,W.complete_=!0,W.JSC$11483_lastErrorCode_=B,W.dispatchEvent("complete"),W.dispatchEvent("error"),dEM(W),W.errorHandled_=!0)},dEM=function(W){p2d(W);
Yv7(W);W.JSC$11483_form_=null;W.dispatchEvent("ready")},p2d=function(W){var B=W.JSC$11483_iframe_;
B&&(B.onreadystatechange=null,B.onload=null,B.onerror=null,W.iframesForDisposal_.push(B));W.iframeDisposalTimer_&&(clearTimeout(W.iframeDisposalTimer_),W.iframeDisposalTimer_=null);_.gb?W.iframeDisposalTimer_=setTimeout(W.disposeIframes_.bind(W),2E3):W.disposeIframes_();W.JSC$11483_iframe_=null;W.iframeName_=null};
r1.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var W=this.iframesForDisposal_.pop();_.o0(W)}};
var Yv7=function(W){W.JSC$11483_form_&&W.JSC$11483_form_==k0&&_.yG(W.JSC$11483_form_)},lo=function(W){return W.JSC$11483_iframe_?liQ(W.JSC$11483_iframe_).getElementById(W.iframeName_+"_inner"):null};
r1.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11483_active_){var W=this.JSC$11483_iframe_?liQ(lo(this)):null;W&&!oHy(W,"documentUri")?(_.Xn(lo(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Cr(this,3):Cr(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.I9=function(W){return W=="\r"||W=="\n"||W==" "||W=="\t"};var AYR;_.o9=function(W){this.errorMessage_=null;this.result_=[];this.JSC$11485_buffer_="";this.stack_=[];this.JSC$11485_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!W||!W.deliverMessageAsRawString)};
AYR={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};_.o9.prototype.isInputValid=function(){return this.streamState_!=3};
_.o9.prototype.done=function(){return this.streamState_===2};
var h7=function(W,B,z){W.streamState_=3;W.errorMessage_="The stream is broken @"+W.JSC$11485_pos_+"/"+z+". With input:\n"+B;throw Error(W.errorMessage_);};
_.o9.prototype.acceptsBinaryInput=function(){return!1};
_.o9.prototype.parse=function(W){function B(){for(;P<W.length;)if(_.I9(W[P]))P++,d.JSC$11485_pos_++;else break;return P<J}
function z(){for(var l;;){l=W[P++];if(!l)break;d.JSC$11485_pos_++;switch(d.state_){case c.INIT:l==="{"?d.state_=c.OBJECT_OPEN:l==="["?d.state_=c.ARRAY_OPEN:_.I9(l)||h7(d,W,P);continue;case c.KEY_START:case c.OBJECT_OPEN:if(_.I9(l))continue;if(d.state_===c.KEY_START)E.push(c.KEY_END);else if(l==="}"){Y("{}");d.state_=G();continue}else E.push(c.OBJECT_END);l==='"'?d.state_=c.STRING:h7(d,W,P);continue;case c.KEY_END:case c.OBJECT_END:if(_.I9(l))continue;l===":"?(d.state_===c.OBJECT_END&&(E.push(c.OBJECT_END),
d.depth_++),d.state_=c.VALUE):l==="}"?(d.depth_--,Y(),d.state_=G()):l===","?(d.state_===c.OBJECT_END&&E.push(c.OBJECT_END),d.state_=c.KEY_START):h7(d,W,P);continue;case c.ARRAY_OPEN:case c.VALUE:if(_.I9(l))continue;if(d.state_===c.ARRAY_OPEN)if(d.depth_++,d.state_=c.VALUE,l==="]"){d.depth_--;if(d.depth_===0){d.state_=c.ARRAY_END;return}Y("[]");d.state_=G();continue}else E.push(c.ARRAY_END);l==='"'?d.state_=c.STRING:l==="{"?d.state_=c.OBJECT_OPEN:l==="["?d.state_=c.ARRAY_OPEN:l==="t"?d.state_=c.TRUE1:
l==="f"?d.state_=c.FALSE1:l==="n"?d.state_=c.NULL1:l!=="-"&&("0123456789".indexOf(l)!==-1?d.state_=c.NUM_DIGIT:h7(d,W,P));continue;case c.ARRAY_END:if(l===",")E.push(c.ARRAY_END),d.state_=c.VALUE,d.depth_===1&&(t=P);else if(l==="]"){d.depth_--;if(d.depth_===0)return;Y();d.state_=G()}else if(_.I9(l))continue;else h7(d,W,P);continue;case c.STRING:var b=P;a:for(;;){for(;d.unicodeCount_>0;)if(l=W[P++],d.unicodeCount_===4?d.unicodeCount_=0:d.unicodeCount_++,!l)break a;if(l==='"'&&!d.slashed_){d.state_=
G();break}if(l==="\\"&&!d.slashed_&&(d.slashed_=!0,l=W[P++],!l))break;if(d.slashed_)if(d.slashed_=!1,l==="u"&&(d.unicodeCount_=1),l=W[P++])continue;else break;v.lastIndex=P;l=v.exec(W);if(!l){P=W.length+1;break}P=l.index+1;l=W[l.index];if(!l)break}d.JSC$11485_pos_+=P-b;continue;case c.TRUE1:if(!l)continue;l==="r"?d.state_=c.TRUE2:h7(d,W,P);continue;case c.TRUE2:if(!l)continue;l==="u"?d.state_=c.TRUE3:h7(d,W,P);continue;case c.TRUE3:if(!l)continue;l==="e"?d.state_=G():h7(d,W,P);continue;case c.FALSE1:if(!l)continue;
l==="a"?d.state_=c.FALSE2:h7(d,W,P);continue;case c.FALSE2:if(!l)continue;l==="l"?d.state_=c.FALSE3:h7(d,W,P);continue;case c.FALSE3:if(!l)continue;l==="s"?d.state_=c.FALSE4:h7(d,W,P);continue;case c.FALSE4:if(!l)continue;l==="e"?d.state_=G():h7(d,W,P);continue;case c.NULL1:if(!l)continue;l==="u"?d.state_=c.NULL2:h7(d,W,P);continue;case c.NULL2:if(!l)continue;l==="l"?d.state_=c.NULL3:h7(d,W,P);continue;case c.NULL3:if(!l)continue;l==="l"?d.state_=G():h7(d,W,P);continue;case c.NUM_DECIMAL_POINT:l===
"."?d.state_=c.NUM_DIGIT:h7(d,W,P);continue;case c.NUM_DIGIT:if("0123456789.eE+-".indexOf(l)!==-1)continue;else P--,d.JSC$11485_pos_--,d.state_=G();continue;default:h7(d,W,P)}}}
function G(){var l=E.pop();return l!=null?l:c.VALUE}
function Y(l){d.depth_>1||(l||(l=t===-1?d.JSC$11485_buffer_+W.substring(g,P):W.substring(t,P)),d.deliverMessageAsRawString_?d.result_.push(l):d.result_.push(JSON.parse(l)),t=P)}
for(var d=this,E=d.stack_,v=d.stringInputPattern_,c=AYR,J=W.length,g=0,t=-1,P=0;P<J;)switch(d.streamState_){case 3:return h7(d,W,P),null;case 2:return B()&&h7(d,W,P),null;case 0:if(B()){var Z=W[P++];d.JSC$11485_pos_++;if(Z==="["){d.streamState_=1;g=P;d.state_=c.ARRAY_OPEN;continue}else h7(d,W,P)}return null;case 1:return z(),d.depth_===0&&d.state_==c.ARRAY_END?(d.streamState_=2,d.JSC$11485_buffer_=W.substring(P)):d.JSC$11485_buffer_=t===-1?d.JSC$11485_buffer_+W.substring(g):W.substring(t),d.result_.length>
0?(Z=d.result_,d.result_=[],Z):null}return null};_.TC(_.cM,HS);w8.prototype.getValue=function(){return this.JSC$11493_value_};
w8.prototype.clone=function(){return new w8(this.JSC$11493_key_,this.JSC$11493_value_)};var Hd=function(W){this.nodes_=[];if(W)a:{if(W instanceof Hd){var B=W.getKeys();W=W.getValues();if(this.getCount()<=0){for(var z=this.nodes_,G=0;G<B.length;G++)z.push(new w8(B[G],W[G]));break a}}else B=_.mP.getKeys(W),W=_.mP.getValues(W);for(z=0;z<B.length;z++)this.insert(B[z],W[z])}};
_.p=Hd.prototype;_.p.insert=function(W,B){var z=this.nodes_;z.push(new w8(W,B));W=z.length-1;B=this.nodes_;for(z=B[W];W>0;){var G=W-1>>1;if(B[G].JSC$11493_key_>z.JSC$11493_key_)B[W]=B[G],W=G;else break}B[W]=z};
_.p.remove=function(){var W=this.nodes_,B=W.length,z=W[0];if(!(B<=0)){if(B==1)W.length=0;else{W[0]=W.pop();W=0;B=this.nodes_;for(var G=B.length,Y=B[W];W<G>>1;){var d=W*2+1,E=W*2+2;d=E<G&&B[E].JSC$11493_key_<B[d].JSC$11493_key_?E:d;if(B[d].JSC$11493_key_>Y.JSC$11493_key_)break;B[W]=B[d];W=d}B[W]=Y}return z.getValue()}};
_.p.peek=function(){var W=this.nodes_;if(W.length!=0)return W[0].getValue()};
_.p.getValues=function(){for(var W=this.nodes_,B=[],z=W.length,G=0;G<z;G++)B.push(W[G].getValue());return B};
_.p.getKeys=function(){for(var W=this.nodes_,B=[],z=W.length,G=0;G<z;G++)B.push(W[G].JSC$11493_key_);return B};
_.p.containsValue=function(W){return this.nodes_.some(function(B){return B.getValue()==W})};
_.p.containsKey=function(W){return this.nodes_.some(function(B){return B.JSC$11493_key_==W})};
_.p.clone=function(){return new Hd(this)};
_.p.getCount=function(){return this.nodes_.length};
_.p.isEmpty=function(){return this.nodes_.length===0};
_.p.clear=function(){this.nodes_.length=0};_.FJ=function(W,B){this.JSC$11499_map_={};this.JSC$11499_keys_=[];this.version_=this.size=0;var z=arguments.length;if(z>1){if(z%2)throw Error("ka");for(var G=0;G<z;G+=2)this.set(arguments[G],arguments[G+1])}else W&&this.addAll(W)};
_.p=_.FJ.prototype;_.p.getCount=function(){return this.size};
_.p.getValues=function(){S3(this);for(var W=[],B=0;B<this.JSC$11499_keys_.length;B++)W.push(this.JSC$11499_map_[this.JSC$11499_keys_[B]]);return W};
_.p.getKeys=function(){S3(this);return this.JSC$11499_keys_.concat()};
_.p.containsKey=function(W){return this.has(W)};
_.p.has=function(W){return bo(this.JSC$11499_map_,W)};
_.p.containsValue=function(W){for(var B=0;B<this.JSC$11499_keys_.length;B++){var z=this.JSC$11499_keys_[B];if(bo(this.JSC$11499_map_,z)&&this.JSC$11499_map_[z]==W)return!0}return!1};
_.p.equals=function(W,B){if(this===W)return!0;if(this.size!=W.getCount())return!1;B=B||iyT;S3(this);for(var z,G=0;z=this.JSC$11499_keys_[G];G++)if(!B(this.get(z),W.get(z)))return!1;return!0};
var iyT=function(W,B){return W===B};
_.FJ.prototype.isEmpty=function(){return this.size==0};
_.FJ.prototype.clear=function(){this.JSC$11499_map_={};this.version_=this.size=this.JSC$11499_keys_.length=0};
_.FJ.prototype.remove=function(W){return this.delete(W)};
_.FJ.prototype.delete=function(W){return bo(this.JSC$11499_map_,W)?(delete this.JSC$11499_map_[W],--this.size,this.version_++,this.JSC$11499_keys_.length>2*this.size&&S3(this),!0):!1};
var S3=function(W){if(W.size!=W.JSC$11499_keys_.length){for(var B=0,z=0;B<W.JSC$11499_keys_.length;){var G=W.JSC$11499_keys_[B];bo(W.JSC$11499_map_,G)&&(W.JSC$11499_keys_[z++]=G);B++}W.JSC$11499_keys_.length=z}if(W.size!=W.JSC$11499_keys_.length){B={};for(G=z=0;z<W.JSC$11499_keys_.length;){var Y=W.JSC$11499_keys_[z];bo(B,Y)||(W.JSC$11499_keys_[G++]=Y,B[Y]=1);z++}W.JSC$11499_keys_.length=G}};
_.p=_.FJ.prototype;_.p.get=function(W,B){return bo(this.JSC$11499_map_,W)?this.JSC$11499_map_[W]:B};
_.p.set=function(W,B){bo(this.JSC$11499_map_,W)||(this.size+=1,this.JSC$11499_keys_.push(W),this.version_++);this.JSC$11499_map_[W]=B};
_.p.addAll=function(W){if(W instanceof _.FJ)for(var B=W.getKeys(),z=0;z<B.length;z++)this.set(B[z],W.get(B[z]));else for(B in W)this.set(B,W[B])};
_.p.forEach=function(W,B){for(var z=this.getKeys(),G=0;G<z.length;G++){var Y=z[G],d=this.get(Y);W.call(B,d,Y,this)}};
_.p.clone=function(){return new _.FJ(this)};
_.p.transpose=function(){for(var W=new _.FJ,B=0;B<this.JSC$11499_keys_.length;B++){var z=this.JSC$11499_keys_[B];W.set(this.JSC$11499_map_[z],z)}return W};
_.p.keys=function(){return IED(this.__iterator__(!0)).toEs6()};
_.p.values=function(){return IED(this.__iterator__(!1)).toEs6()};
_.p.entries=function(){var W=this;return y8F(this.keys(),function(B){return[B,W.get(B)]})};
_.p.__iterator__=function(W){S3(this);var B=0,z=this.version_,G=this,Y=new lN;Y.next=function(){if(z!=G.version_)throw Error("te");if(B>=G.JSC$11499_keys_.length)return Cw;var d=G.JSC$11499_keys_[B++];return I1(W?d:G.JSC$11499_map_[d])};
return Y};
var bo=function(W,B){return Object.prototype.hasOwnProperty.call(W,B)};var TSF=function(){this.JSC$11502_map_=new _.FJ;this.JSC$11502_head_=new EGu("");this.JSC$11502_head_.next=this.JSC$11502_head_.prev=this.JSC$11502_head_},vGR=function(W,B){if(B=W.JSC$11502_map_.get(B))B.remove(),W.insert_(B);
return B};
_.p=TSF.prototype;_.p.get=function(W,B){return(W=vGR(this,W))?W.value:B};
_.p.set=function(W,B){var z=vGR(this,W);z?z.value=B:(z=new EGu(W,B),this.JSC$11502_map_.set(W,z),this.insert_(z))};
_.p.peek=function(){return this.JSC$11502_head_.next.value};
_.p.shift=function(){return cYT(this,this.JSC$11502_head_.next)};
_.p.pop=function(){return cYT(this,this.JSC$11502_head_.prev)};
_.p.remove=function(W){return(W=this.JSC$11502_map_.get(W))?(this.removeNode(W),!0):!1};
_.p.removeNode=function(W){W.remove();this.JSC$11502_map_.remove(W.key)};
_.p.getCount=function(){return this.JSC$11502_map_.getCount()};
_.p.isEmpty=function(){return this.JSC$11502_map_.isEmpty()};
_.p.getKeys=function(){return this.map(function(W,B){return B})};
_.p.getValues=function(){return this.map(function(W){return W})};
_.p.contains=function(W){return this.some(function(B){return B==W})};
_.p.containsKey=function(W){return this.JSC$11502_map_.containsKey(W)};
_.p.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11502_head_.prev)};
_.p.forEach=function(W,B){for(var z=this.JSC$11502_head_.next;z!=this.JSC$11502_head_;z=z.next)W.call(B,z.value,z.key,this)};
_.p.map=function(W,B){for(var z=[],G=this.JSC$11502_head_.next;G!=this.JSC$11502_head_;G=G.next)z.push(W.call(B,G.value,G.key,this));return z};
_.p.some=function(W,B){for(var z=this.JSC$11502_head_.next;z!=this.JSC$11502_head_;z=z.next)if(W.call(B,z.value,z.key,this))return!0;return!1};
_.p.every=function(W,B){for(var z=this.JSC$11502_head_.next;z!=this.JSC$11502_head_;z=z.next)if(!W.call(B,z.value,z.key,this))return!1;return!0};
_.p.insert_=function(W){W.next=this.JSC$11502_head_.next;W.prev=this.JSC$11502_head_;this.JSC$11502_head_.next=W;for(W.next.prev=W;this.getCount()>100;)this.removeNode(this.JSC$11502_head_.prev)};
var cYT=function(W,B){W.JSC$11502_head_!=B&&W.removeNode(B);return B.value},EGu=function(W,B){this.key=W;
this.value=B};
EGu.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var w2M=function(){Hd.apply(this,arguments)};
_.C(w2M,Hd);w2M.prototype.enqueue=function(W,B){this.insert(W,B)};var VXM=function(){var W=Error();W.name="SecurityError";throw W;},W2X=function(){return{get opener(){return null},
get closed(){return!0},get location(){VXM()},get document(){VXM()},postMessage:function(){},
close:function(){},
focus:function(){}}};var WaX={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 YZv={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 JY6={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(YZv).join("|");var gGU=function(){function W(v){v.substr(-1)!==";"&&(v+=";");return E(v)}
for(var B=Object.keys(JY6).sort(GEt),z=Object.keys(YZv).sort(GEt),G=0,Y=0;G<z.length;G++)B[Y]===z[G]?(z[G]+=";?",Y++):z[G]+=";";var d=new RegExp("&(?:"+z.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=dIx();return function(v){return String(v).replace(d,W)}}();/*

 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 tXR={};var sKM=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"),PFH=/[\\&]/,Zy4=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),rYU=RegExp('[&<>"]',"g"),kGH=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),lNR=function(W){return W.charCodeAt(0)===92?W.charAt(1):gGU(W)},CFQ=function(W){return PFH.test(W)?W.replace(Zy4,lNR):W},IN4=function(W){try{var B,z="";
if(typeof Y!=="string"){var G=Y;var Y=";/?:@&=+$,-_.!~*'()#"}typeof G==="undefined"&&(G=!0);var d,E=tXR[Y];if(E)var v=E;else{E=tXR[Y]=[];for(d=0;d<128;d++){var c=String.fromCharCode(d);/^[0-9a-z]$/i.test(c)?E.push(c):E.push("%"+("0"+d.toString(16).toUpperCase()).slice(-2))}for(d=0;d<Y.length;d++)E[Y.charCodeAt(d)]=Y[d];v=E}var J=0;for(B=W.length;J<B;J++){var g=W.charCodeAt(J);if(G&&g===37&&J+2<B&&/^[0-9a-f]{2}$/i.test(W.slice(J+1,J+3)))z+=W.slice(J,J+3),J+=2;else if(g<128)z+=v[g];else if(g>=55296&&
g<=57343){if(g>=55296&&g<=56319&&J+1<B){var t=W.charCodeAt(J+1);if(t>=56320&&t<=57343){z+=encodeURIComponent(W[J]+W[J+1]);J++;continue}}z+="%EF%BF%BD"}else z+=encodeURIComponent(W[J])}return z}catch(P){return W}},oGF=function(W){switch(W){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return W}},j3=function(W,B){return rYU.test(W)?B?W.replace(kGH,oGF):W.replace(rYU,oGF):W};/*

 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 fr;if(String.fromCodePoint)fr=function(W){try{return String.fromCodePoint(W)}catch(B){if(B instanceof RangeError)return String.fromCharCode(65533);throw B;}};
else{var hIR=String.fromCharCode,HyR=Math.floor;fr=function(){var W=[],B=-1,z=arguments.length;if(!z)return"";for(var G="";++B<z;){var Y=Number(arguments[B]);if(!isFinite(Y)||Y<0||Y>1114111||HyR(Y)!==Y)return String.fromCharCode(65533);if(Y<=65535)W.push(Y);else{Y-=65536;var d=(Y>>10)+55296;Y=Y%1024+56320;W.push(d,Y)}if(B+1===z||W.length>16384)G+=hIR.apply(null,W),W.length=0}return G}};var FT7=function(W){this.root=this.current=W;this.entering=!0};
FT7.prototype.next=function(){var W=this.current,B=this.entering;if(W===null)return null;a:switch(W._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 z=!0;break a;default:z=!1}B&&z?W._firstChild?(this.current=W._firstChild,this.entering=!0):this.entering=!1:W===this.root?this.current=null:W._next===null?(this.current=
W._parent,this.entering=!1):(this.current=W._next,this.entering=!0);return{entering:B,node:W}};
var tz=function(W,B){this._type=W;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=B;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};
tz.prototype.appendChild=function(W){W.unlink();W._parent=this;this._lastChild?(this._lastChild._next=W,W._prev=this._lastChild):this._firstChild=W;this._lastChild=W};
tz.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var SvQ=function(W,B){B.unlink();B._next=W._next;B._next&&(B._next._prev=B);B._prev=W;W._next=B;B._parent=W._parent;B._next||(B._parent._lastChild=B)};
tz.prototype.insertBefore=function(W){W.unlink();W._prev=this._prev;W._prev&&(W._prev._next=W);W._next=this;this._prev=W;W._parent=this._parent;W._prev||(W._parent._firstChild=W)};
_.G5.Object.defineProperties(tz.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(W){this._literal=W}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(W){this._destination=W}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(W){this._title=W}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(W){this._info=W}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(W){this._level=W}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(W){this._listData.type=W}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(W){this._listData.tight=W}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(W){this._listData.start=W}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(W){this._onEnter=W}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(W){this._onExit=W}}});var poR=/[ \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,
AG2={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 byQ=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]/),
jK9=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),fNM=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),OyQ=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),X2U=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),KTT=/`+/,um7=/^`+/,eI7=/\.\.\./g,mEF=/--+/g,xEF=/^<([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])?)*)>/,
DER=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,QKR=/^ *(?:\n *)?/,yY9=/^[ \t\n\x0b\x0c\x0d]/,qvu=/[ \t\n\x0b\x0c\x0d]+/g,nG4=/^\s/,NSD=/ *$/,$E7=/^ */,LT6=/^ *(?:\n|$)/,UEF=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),MX4=/^[^\n`\[\]\\!<&*_'"]+/m,O4=function(W){var B=new tz("text");B._literal=W;return B},XJ=function(W){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=W||{}};
XJ.prototype.match=function(W){W=W.exec(this.subject.slice(this.pos));if(W===null)return null;this.pos+=W.index+W[0].length;return W[0]};
XJ.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Kr=function(W){W.match(QKR);return!0},aNQ=function(W,B,z){var G=0;
var Y=W.pos;if(B===39||B===34)G++,W.pos++;else for(;W.peek()===B;)G++,W.pos++;if(G===0)G=null;else{var d=Y===0?"\n":W.subject.charAt(Y-1);var E=W.peek();E=E===-1?"\n":fr(E);var v=nG4.test(E);E=byQ.test(E);var c=nG4.test(d);var J=byQ.test(d);d=!v&&!(E&&!c&&!J);v=!c&&!(J&&!v&&!E);B===95?(c=d&&(!v||J),E=v&&(!d||E)):(c=B===39||B===34?d&&!v:d,E=v);W.pos=Y;G={numdelims:G,can_open:c,can_close:E}}if(!G)return!1;Y=G.numdelims;E=W.pos;W.pos+=Y;E=B===39?"\u2019":B===34?"\u201c":W.subject.slice(E,W.pos);E=O4(E);
z.appendChild(E);W.delimiters={cc:B,numdelims:Y,origdelims:Y,node:E,previous:W.delimiters,next:null,can_open:G.can_open,can_close:G.can_close};W.delimiters.previous!==null&&(W.delimiters.previous.next=W.delimiters);return!0},RID=function(W,B){B.previous!==null&&(B.previous.next=B.next);
B.next===null?W.delimiters=B.previous:B.next.previous=B.previous},WC9=function(W,B){var z,G,Y=[],d=!1;
Y[95]=B;Y[42]=B;Y[39]=B;Y[34]=B;for(z=W.delimiters;z!==null&&z.previous!==B;)z=z.previous;for(;z!==null;){var E=z.cc;if(z.can_close){var v=z.previous;for(G=!1;v!==null&&v!==B&&v!==Y[E];){d=(z.can_open||v.can_close)&&(v.origdelims+z.origdelims)%3===0;if(v.cc===z.cc&&v.can_open&&!d){G=!0;break}v=v.previous}var c=z;if(E===42||E===95)if(G){var J=z.numdelims>=2&&v.numdelims>=2?2:1;var g=v.node;var t=z.node;v.numdelims-=J;z.numdelims-=J;g._literal=g._literal.slice(0,g._literal.length-J);t._literal=t._literal.slice(0,
t._literal.length-J);var P=new tz(J===1?"emph":"strong");for(J=g._next;J&&J!==t;){var Z=J._next;J.unlink();P.appendChild(J);J=Z}SvQ(g,P);J=v;Z=z;J.next!==Z&&(J.next=Z,Z.previous=J);v.numdelims===0&&(g.unlink(),RID(W,v));z.numdelims===0&&(t.unlink(),v=z.next,RID(W,z),z=v)}else z=z.next;else E===39?(z.node._literal="\u2019",G&&(v.node._literal="\u2018"),z=z.next):E===34&&(z.node._literal="\u201d",G&&(v.node.literal="\u201c"),z=z.next);G||d||(Y[E]=c.previous,c.can_open||RID(W,c))}else z=z.next}for(;W.delimiters!==
null&&W.delimiters!==B;)RID(W,W.delimiters)},Bud=function(W){W=W.match(jK9);
return W===null?null:CFQ(W.substr(1,W.length-2))},z$4=function(W){var B=W.match(fNM);
if(B===null){B=W.pos;for(var z=0,G;(G=W.peek())!==-1;)if(G===92)W.pos+=1,W.peek()!==-1&&(W.pos+=1);else if(G===40)W.pos+=1,z+=1;else if(G===41)if(z<1)break;else W.pos+=1,--z;else if(yY9.exec(fr(G))!==null)break;else W.pos+=1;B=W.subject.substr(B,W.pos-B);return IN4(CFQ(B))}return IN4(CFQ(B.substr(1,B.length-2)))},GNH=function(W){W=W.match(UEF);
return W===null||W.length>1001?0:W.length},YMR=function(W,B,z,G){W.brackets!==null&&(W.brackets.bracketAfter=!0);
W.brackets={node:B,previous:W.brackets,previousDelimiter:W.delimiters,index:z,image:G,active:!0}},d$4=function(W,B){var z;
return(z=W.match(MX4))?(W.options.smart?B.appendChild(O4(z.replace(eI7,"\u2026").replace(mEF,function(G){var Y=0,d=0;G.length%3===0?d=G.length/3:G.length%2===0?Y=G.length/2:G.length%3===2?(Y=1,d=(G.length-2)/3):(Y=2,d=(G.length-4)/3);G="";var E;for(E=0;E<d;E++)G+="\u2014";for(E=0;E<Y;E++)G+="\u2013";return G}))):B.appendChild(O4(z)),!0):!1},pA7=function(W,B,z){W.subject=B;
W.pos=0;B=W.pos;var G=GNH(W);if(G===0)return 0;var Y=W.subject.substr(0,G);if(W.peek()===58)W.pos++;else return W.pos=B,0;Kr(W);G=z$4(W);if(G===null||G.length===0)return W.pos=B,0;var d=W.pos;Kr(W);var E=Bud(W);E===null&&(E="",W.pos=d);var v=!0;W.match(LT6)===null&&(E===""?v=!1:(E="",W.pos=d,v=W.match(LT6)!==null));if(!v)return W.pos=B,0;Y=iak(Y);if(Y==="")return W.pos=B,0;z[Y]||(z[Y]={destination:G,title:E});return W.pos-B},Agu=function(W,B){var z,G=W.peek();
if(G===-1)return!1;switch(G){case 10:W.pos+=1;if((z=B._lastChild)&&z.type==="text"&&z._literal[z._literal.length-1]===" "){var Y=z._literal[z._literal.length-2]===" ";z._literal=z._literal.replace(NSD,"");B.appendChild(new tz(Y?"linebreak":"softbreak"))}else B.appendChild(new tz("softbreak"));W.match($E7);z=!0;break;case 92:z=W.subject;W.pos+=1;W.peek()===10?(W.pos+=1,z=new tz("linebreak"),B.appendChild(z)):OyQ.test(z.charAt(W.pos))?(B.appendChild(O4(z.charAt(W.pos))),W.pos+=1):B.appendChild(O4("\\"));
z=!0;break;case 96:a:if(z=W.match(um7),z===null)z=!1;else{Y=W.pos;for(var d;(d=W.match(KTT))!==null;)if(d===z){d=new tz("code");d._literal=W.subject.slice(Y,W.pos-z.length).trim().replace(qvu," ");B.appendChild(d);z=!0;break a}W.pos=Y;B.appendChild(O4(z));z=!0}break;case 42:case 95:z=aNQ(W,G,B);break;case 39:case 34:z=W.options.smart&&aNQ(W,G,B);break;case 91:z=W.pos;W.pos+=1;Y=O4("[");B.appendChild(Y);YMR(W,Y,z,!1);z=!0;break;case 33:z=W.pos;W.pos+=1;W.peek()===91?(W.pos+=1,Y=O4("!["),B.appendChild(Y),
YMR(W,Y,z+1,!0)):B.appendChild(O4("!"));z=!0;break;case 93:var E,v=!1,c;W.pos+=1;var J=W.pos;Y=W.brackets;if(Y===null)B.appendChild(O4("]"));else if(Y.active){z=Y.image;var g=W.pos;W.peek()===40&&(W.pos++,Kr(W)&&(d=z$4(W))!==null&&Kr(W)&&(yY9.test(W.subject.charAt(W.pos-1))&&(E=Bud(W)),1)&&Kr(W)&&W.peek()===41?(W.pos+=1,v=!0):W.pos=g);if(!v){var t=W.pos,P=GNH(W);P>2?c=W.subject.slice(t,t+P):Y.bracketAfter||(c=W.subject.slice(Y.index,J));P===0&&(W.pos=g);c&&(c=W.refmap[iak(c)])&&(d=c.destination,E=
c.title,v=!0)}if(v){J=new tz(z?"image":"link");J._destination=d;J._title=E||"";for(d=Y.node._next;d;)E=d._next,d.unlink(),J.appendChild(d),d=E;B.appendChild(J);WC9(W,Y.previousDelimiter);W.brackets=W.brackets.previous;Y.node.unlink();if(!z)for(Y=W.brackets;Y!==null;)Y.image||(Y.active=!1),Y=Y.previous}else W.brackets=W.brackets.previous,W.pos=J,B.appendChild(O4("]"))}else B.appendChild(O4("]")),W.brackets=W.brackets.previous;z=!0;break;case 60:(z=W.match(xEF))?(z=z.slice(1,z.length-1),Y=new tz("link"),
Y._destination=IN4("mailto:"+z),Y._title="",Y.appendChild(O4(z)),B.appendChild(Y),z=!0):(z=W.match(DER))?(z=z.slice(1,z.length-1),Y=new tz("link"),Y._destination=IN4(z),Y._title="",Y.appendChild(O4(z)),B.appendChild(Y),z=!0):z=!1;z||(z=W.match(sKM),z===null?z=!1:(Y=new tz("html_inline"),Y._literal=z,B.appendChild(Y),z=!0));break;case 38:(z=W.match(X2U))?(B.appendChild(O4(gGU(z))),z=!0):z=!1;break;default:z=d$4(W,B)}z||(W.pos+=1,B.appendChild(O4(fr(G))));return!0};
XJ.prototype.parseInlines=function(W){this.subject=W._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Agu(this,W););W._string_content=null;WC9(this,null)};
XJ.prototype.parse=XJ.prototype.parseInlines;var i2H=[/./,/^<(?: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")],E2R=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],Tu9=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,v2u=/^[#`~*+_=<>0-9-\|]|\|/,cgH=/[^ \t\f\v\r\n]/,wAT=/^[*+-]/,Vc9=/^(\d{1,9})([.)])/,JgF=/^#{1,6}(?:[ \t]+|$)/,g2d=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,tcM=/^(?:`{3,}|~{3,})(?= *$)/,snu=/^(?:=+|-+)[ \t]*$/,PjR=/\r\n|\n|\r/,TLX=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,vXR=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Z2F={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(W){return W!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(W,B){for(W=B._firstChild;W;){if(EX2(W)&&W._next){B._listData.tight=!1;break}for(var z=W._firstChild;z;){if(EX2(z)&&(W._next||z._next)){B._listData.tight=!1;break}z=z._next}W=W._next}},
canContain:function(W){return W==="item"},
acceptsLines:!1},block_quote:{continue:function(W){var B=W.currentLine;if(W.indented||Jz(B,W.nextNonspace)!==62)return 1;uo(W);e3(W,1,!1);VK(Jz(B,W.offset))&&e3(W,1,!0);return 0},
finalize:function(){},
canContain:function(W){return W!=="item"},
acceptsLines:!1},item:{continue:function(W,B){if(W.blank){if(B._firstChild==null)return 1;uo(W)}else if(W.indent>=B._listData.markerOffset+B._listData.padding)e3(W,B._listData.markerOffset+B._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(W){return W!=="item"&&!cG8(W)},
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(W,B){var z=W.currentLine,G=W.indent;if(B._isFenced){if((G=G<=3&&z.charAt(W.nextNonspace)===B._fenceChar&&z.slice(W.nextNonspace).match(tcM))&&G[0].length>=B._fenceLength)return W.finalize(B,W.lineNumber),2;for(B=B._fenceOffset;B>0&&VK(Jz(z,W.offset));)e3(W,1,!0),B--}else if(G>=4)e3(W,4,!0);else if(W.blank)uo(W);else return 1;return 0},
finalize:function(W,B){if(B._isFenced){var z=B._string_content,G=z.indexOf("\n");W=z.slice(0,G);z=z.slice(G+1);B.info=CFQ(W.trim());B._literal=z}else B._literal=B._string_content.replace(/(\n *)+$/,"\n");B._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(W,B){return!W.blank||B._htmlBlockType!==6&&B._htmlBlockType!==7?0:1},
finalize:function(W,B){B._literal=B._string_content.replace(/(\n *)+$/,"");B._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(W){return W.blank?1:0},
finalize:function(W,B){for(var z,G=!1;Jz(B._string_content,0)===91&&(z=pA7(W.inlineParser,B._string_content,W.refmap));)B._string_content=B._string_content.slice(z),G=!0;G&&!cgH.test(B._string_content)&&B.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(W){return g8(W.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(W){return W=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(W,B){if(!B._rowIsDelimiter){W=B._isHeader?"th":"td";for(var z=B._parent._tableColumns,G=B._string_content,Y=0,d="",E,v=B._sourcepos[0][0];Y<G.length;){switch(G[Y]){case "|":E&&(E._string_content=d.trim(),d="",E=null,z--,z<=0&&(Y=G.length));break;default:if(!E){E=new tz(W,[[v,Y],[v,Y]]);var c=B._parent._columnAlignment,J=B._parent._tableColumns-z;c&&J<=c.length&&J>=0&&(E._alignment=c[J]);B.appendChild(E)}d+=G[Y];E._sourcepos[1][1]=Y}Y++}E&&(E._string_content=d.trim());B._string_content=
""}},
canContain:function(W){return W!=="row"},
acceptsLines:!1}},rgR=[function(W){if(W.indented||Jz(W.currentLine,W.nextNonspace)!==62)return 0;uo(W);e3(W,1,!1);VK(Jz(W.currentLine,W.offset))&&e3(W,1,!0);mf(W);W.addChild("block_quote",W.nextNonspace);return 1},
function(W){var B;if(!W.indented&&(B=W.currentLine.slice(W.nextNonspace).match(JgF))){uo(W);e3(W,B[0].length,!1);mf(W);var z=W.addChild("heading",W.nextNonspace);z.level=B[0].trim().length;z._string_content=W.currentLine.slice(W.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");e3(W,W.currentLine.length-W.offset);return 2}return 0},
function(W){var B;if(!W.indented&&(B=W.currentLine.slice(W.nextNonspace).match(g2d))){var z=B[0].length;mf(W);var G=W.addChild("code_block",W.nextNonspace);G._isFenced=!0;G._fenceLength=z;G._fenceChar=B[0][0];G._fenceOffset=W.indent;uo(W);e3(W,z,!1);return 2}return 0},
function(W,B){if(!W.indented&&Jz(W.currentLine,W.nextNonspace)===60){var z=W.currentLine.slice(W.nextNonspace),G;for(G=1;G<=7;G++)if(i2H[G].test(z)&&(G<7||B.type!=="paragraph"))return mf(W),W.addChild("html_block",W.offset)._htmlBlockType=G,2}return 0},
function(W,B){var z;if(!W.indented&&B.type==="paragraph"&&(z=W.currentLine.slice(W.nextNonspace).match(snu))){mf(W);var G=new tz("heading",B.sourcepos);G.level=z[0][0]==="="?1:2;G._string_content=B._string_content;SvQ(B,G);B.unlink();W.tip=G;e3(W,W.currentLine.length-W.offset,!1);return 2}return 0},
function(W){return!W.indented&&Tu9.test(W.currentLine.slice(W.nextNonspace))?(mf(W),W.addChild("thematic_break",W.nextNonspace),e3(W,W.currentLine.length-W.offset,!1),2):0},
function(W,B){var z,G;if(!(G=W.indented&&B.type!=="list")){a:{var Y=B,d=W.currentLine.slice(W.nextNonspace);G={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:W.indent};if(z=d.match(wAT))G.type="bullet",G.bulletChar=z[0][0];else{if(!(z=d.match(Vc9))||Y.type==="paragraph"&&z[1]!=="1"){z=null;break a}G.type="ordered";G.start=parseInt(z[1],10);G.delimiter=z[2]}var E=Jz(W.currentLine,W.nextNonspace+z[0].length);if(E!==-1&&E!==9&&E!==32||Y.type==="paragraph"&&!W.currentLine.slice(W.nextNonspace+
z[0].length).match(cgH))z=null;else{uo(W);e3(W,z[0].length,!0);Y=W.column;d=W.offset;do e3(W,1,!0),E=Jz(W.currentLine,W.offset);while(W.column-Y<5&&VK(E));E=Jz(W.currentLine,W.offset)===-1;var v=W.column-Y;v>=5||v<1||E?(G.padding=z[0].length+1,W.column=Y,W.offset=d,VK(Jz(W.currentLine,W.offset))&&e3(W,1,!0)):G.padding=z[0].length+v;z=G}}G=!z}if(G)return 0;mf(W);(G=W.tip.type!=="list")||(B=B._listData,G=!(B.type===z.type&&B.delimiter===z.delimiter&&B.bulletChar===z.bulletChar));G&&(B=W.addChild("list",
W.nextNonspace),B._listData=z);B=W.addChild("item",W.nextNonspace);B._listData=z;return 1},
function(W){var B;return((B=W.options.shouldParseIndentAsCodeBlock)!=null?B:1)&&W.indented&&W.tip.type!=="paragraph"&&!W.blank?(e3(W,4,!0),mf(W),W.addChild("code_block",W.offset),2):0},
function(W,B){var z=g8(W.currentLine),G=g8(W.lookahead);if(z!==0&&G<0&&Math.abs(z)==Math.abs(G)&&!cG8(B.type)){mf(W);B=W.addChild("table",W.nextNonspace);B._tableRows=1;B._tableColumns=Math.abs(z);z=W.lookahead;if(vXR.test(z)){G=[];for(var Y=0,d=!1,E=0,v=void 0;Y<z.length;){var c=E>=3;switch(z[Y]){case "-":E++;break;case "|":d&&(G.push(v),v=void 0,E=0);d=!0;break;case ":":v||c||(v="left"),!v&&c&&(v="right"),v==="left"&&c&&(v="center")}Y++}z=G}else z=void 0;B._columnAlignment=z;B=W.addChild("row",
W.nextNonspace);B._isHeader=!0;e3(W,W.currentLine.length-W.offset,!1);B._string_content=W.currentLine;return 1}return 0},
function(W,B){if(B.type=="table"&&g8(W.currentLine)!==0){mf(W);var z=B;B=W.addChild("row",W.nextNonspace);g8(W.currentLine)<0?B._rowIsDelimiter=!0:z._tableRows+=1;e3(W,W.currentLine.length-W.offset,!1);B._string_content=W.currentLine;return 2}return 0}],ub0=function(){var W={shouldParseIndentAsCodeBlock:!1};
W=W===void 0?{}:W;this.lastMatchedContainer=this.doc=wok();this.refmap={};this.lastLineLength=0;this.inlineParser=new XJ(W);this.options=W;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=Z2F;this.blockStarts=rgR},kNd=function(W){W.partiallyConsumedTab&&(W.offset+=1,W.tip._string_content+=" ".repeat(4-W.column%
4));
W.tip._string_content+=W.currentLine.slice(W.offset)+"\n"};
ub0.prototype.addChild=function(W,B){for(;!this.blocks[this.tip.type].canContain(W);)this.finalize(this.tip,this.lineNumber-1);W=new tz(W,[[this.lineNumber,B+1],[0,0]]);W._string_content="";this.tip.appendChild(W);return this.tip=W};
var mf=function(W){if(!W.allClosed){for(;W.oldtip!==W.lastMatchedContainer;){var B=W.oldtip._parent;W.finalize(W.oldtip,W.lineNumber-1);W.oldtip=B}W.allClosed=!0}},e3=function(W,B,z){for(var G=W.currentLine,Y,d;B>0&&(d=G[W.offset]);)d==="\t"?(Y=4-W.column%4,z?(W.partiallyConsumedTab=Y>B,Y=Y>B?B:Y,W.column+=Y,W.offset+=W.partiallyConsumedTab?0:1,B-=Y):(W.partiallyConsumedTab=!1,W.column+=Y,W.offset+=1,--B)):(W.partiallyConsumedTab=!1,W.offset+=1,W.column+=1,--B)},uo=function(W){W.offset=W.nextNonspace;
W.column=W.nextNonspaceColumn;W.partiallyConsumedTab=!1},lpM=function(W){for(var B=W.currentLine,z=W.offset,G=W.column,Y;(Y=B.charAt(z))!=="";)if(Y===" ")z++,G++;
else if(Y==="\t")z++,G+=4-G%4;else break;W.blank=Y==="\n"||Y==="\r"||Y==="";W.nextNonspace=z;W.nextNonspaceColumn=G;W.indent=W.nextNonspaceColumn-W.column;W.indented=W.indent>=4};
ub0.prototype.finalize=function(W,B){var z=W._parent;W._open=!1;W.sourcepos[1]=[B,this.lastLineLength];this.blocks[W.type].finalize(this,W);this.tip=z};
ub0.prototype.parse=function(W){this.tip=this.doc=wok();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!W)return this.doc;this.options.time&&console.time("preparing input");var B=W.split(PjR),z=B.length;W.charCodeAt(W.length-1)===10&&--z;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(W=0;W<z;W++)a:{var G=void 0,Y=B[W],d=B[W+1],E=!0,v=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;Y.indexOf("\x00")!==-1&&(Y=Y.replace(/\0/g,"\ufffd"));this.currentLine=Y;for(this.lookahead=d;(G=v._lastChild)&&G._open;){v=G;lpM(this);switch(this.blocks[v.type].continue(this,v)){case 0:break;case 1:E=!1;break;case 2:this.lastLineLength=Y.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!E){v=v._parent;break}}this.allClosed=v===this.oldtip;this.lastMatchedContainer=
v;G=v.type!=="paragraph"&&Z2F[v.type].acceptsLines;d=this.blockStarts;for(E=d.length;!G;){lpM(this);if(!this.indented&&!v2u.test(Y.slice(this.nextNonspace))){uo(this);break}for(var c=0;c<E;){var J=d[c](this,v);if(J===1){v=this.tip;break}else if(J===2){v=this.tip;G=!0;break}else c++}if(c===E){uo(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){mf(this);this.blank&&v.lastChild&&(v.lastChild._lastLineBlank=!0);G=v.type;d=this.blank&&!(G==="block_quote"||G==="code_block"&&v._isFenced||
G==="item"&&!v._firstChild&&v.sourcepos[0][0]===this.lineNumber);for(E=v;E;)E._lastLineBlank=d,E=E._parent;this.blocks[G].acceptsLines?(kNd(this),G==="html_block"&&v._htmlBlockType>=1&&v._htmlBlockType<=5&&E2R[v._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(v,this.lineNumber)):this.offset<Y.length&&!this.blank&&(this.addChild("paragraph",this.offset),uo(this),kNd(this))}else kNd(this);this.lastLineLength=Y.length}for(;this.tip;)this.finalize(this.tip,z);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");Y=new FT7(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;z=Y.next();)B=z.node,W=B.type,z.entering||W!=="paragraph"&&W!=="heading"&&W!=="th"&&W!="td"||this.inlineParser.parse(B);this.options.time&&console.timeEnd("inline parsing");return this.doc};V1Q.prototype.render=function(W){W=new FT7(W);var B;this.buffer="";for(this.lastOut="\n";B=W.next();){var z=B.node.type;if(this[z])this[z](B.node,B.entering)}return this.buffer};
V1Q.prototype.out=function(W){x0(this,W)};
var x0=function(W,B){W.buffer+=B;W.lastOut=B};
V1Q.prototype.cr=function(){this.lastOut!=="\n"&&x0(this,"\n")};var CjM=/^javascript:|vbscript:|file:|data:/i,Ipu=/^data:image\/(?:png|gif|jpeg|webp)/i,o2d=function(W){return CjM.test(W)&&!Ipu.test(W)};
sh.prototype=Object.create(V1Q.prototype);_.p=sh.prototype;_.p.text=function(W){this.out(W.literal)};
_.p.html_inline=function(W){this.options.safe?x0(this,"\x3c!-- raw HTML omitted --\x3e"):x0(this,W.literal)};
_.p.html_block=function(W){this.cr();this.options.safe?x0(this,"\x3c!-- raw HTML omitted --\x3e"):x0(this,W.literal);this.cr()};
_.p.softbreak=function(){x0(this,this.options.softbreak)};
_.p.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.p.link=function(W,B){var z=this.attrs(W);B?(this.options.safe&&o2d(W.destination)||z.push(["href",j3(W.destination,!0)]),W.title&&z.push(["title",j3(W.title,!0)]),this.tag("a",z)):this.tag("/a")};
_.p.image=function(W,B){B?(this.disableTags===0&&(this.options.safe&&o2d(W.destination)?x0(this,'<img src="" alt="'):x0(this,'<img src="'+j3(W.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(W.title&&x0(this,'" title="'+j3(W.title,!0)),x0(this,'" />')))};
_.p.emph=function(W,B){this.tag(B?"em":"/em")};
_.p.strong=function(W,B){this.tag(B?"strong":"/strong")};
_.p.paragraph=function(W,B){var z=W.parent.parent;W=this.attrs(W);z!==null&&z.type==="list"&&z.listTight||(B?(this.cr(),this.tag("p",W)):(this.tag("/p"),this.cr()))};
_.p.heading=function(W,B){var z="h"+W.level;W=this.attrs(W);B?(this.cr(),this.tag(z,W)):(this.tag("/"+z),this.cr())};
_.p.code=function(W){this.tag("code");this.out(W.literal);this.tag("/code")};
_.p.code_block=function(W){var B=W.info?W.info.split(/\s+/):[],z=this.attrs(W);B.length>0&&B[0].length>0&&z.push(["class","language-"+j3(B[0],!0)]);this.cr();this.tag("pre");this.tag("code",z);this.out(W.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.p.thematic_break=function(W){W=this.attrs(W);this.cr();this.tag("hr",W,!0);this.cr()};
_.p.block_quote=function(W,B){W=this.attrs(W);B?(this.cr(),this.tag("blockquote",W)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.p.list=function(W,B){var z=W.listType==="bullet"?"ul":"ol",G=this.attrs(W);B?(W=W.listStart,W!==null&&W!==1&&G.push(["start",W.toString()]),this.cr(),this.tag(z,G)):(this.cr(),this.tag("/"+z));this.cr()};
_.p.item=function(W,B){W=this.attrs(W);B?this.tag("li",W):(this.tag("/li"),this.cr())};
_.p.custom_inline=function(W,B){B&&W.onEnter?x0(this,W.onEnter):!B&&W.onExit&&x0(this,W.onExit)};
_.p.custom_block=function(W,B){this.cr();B&&W.onEnter?x0(this,W.onEnter):!B&&W.onExit&&x0(this,W.onExit);this.cr()};
_.p.table=function(W,B){W=this.attrs(W);B?(this.cr(),this.tag("table",W)):(this.tag("/table"),this.cr())};
_.p.row=function(W,B){W._rowIsDelimiter||(W=this.attrs(W),B?this.tag("tr",W):this.tag("/tr"))};
_.p.td=function(W,B){var z=this.attrs(W);W._alignment&&z.push(["align",W._alignment]);B?this.tag("td",z):this.tag("/td")};
_.p.th=function(W,B){var z=this.attrs(W);W._alignment&&z.push(["align",W._alignment]);B?this.tag("th",z):this.tag("/th")};
_.p.out=function(W){x0(this,j3(W,!1))};
_.p.tag=function(W,B,z){if(!(this.disableTags>0)){this.buffer+="<"+W;if(B&&B.length>0){W=0;for(var G;(G=B[W])!==void 0;)this.buffer+=" "+G[0]+'="'+G[1]+'"',W++}z&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.p.attrs=function(W){var B=[];this.options.sourcepos&&(W=W.sourcepos)&&B.push(["data-sourcepos",String(W[0][0])+":"+String(W[0][1])+"-"+String(W[1][0])+":"+String(W[1][1])]);return B};
sh.prototype.text=sh.prototype.text;sh.prototype.html_inline=sh.prototype.html_inline;sh.prototype.html_block=sh.prototype.html_block;sh.prototype.softbreak=sh.prototype.softbreak;sh.prototype.linebreak=sh.prototype.linebreak;sh.prototype.link=sh.prototype.link;sh.prototype.image=sh.prototype.image;sh.prototype.emph=sh.prototype.emph;sh.prototype.strong=sh.prototype.strong;sh.prototype.paragraph=sh.prototype.paragraph;sh.prototype.heading=sh.prototype.heading;sh.prototype.code=sh.prototype.code;
sh.prototype.code_block=sh.prototype.code_block;sh.prototype.thematic_break=sh.prototype.thematic_break;sh.prototype.block_quote=sh.prototype.block_quote;sh.prototype.list=sh.prototype.list;sh.prototype.item=sh.prototype.item;sh.prototype.custom_inline=sh.prototype.custom_inline;sh.prototype.custom_block=sh.prototype.custom_block;sh.prototype.table=sh.prototype.table;sh.prototype.row=sh.prototype.row;sh.prototype.td=sh.prototype.td;sh.prototype.th=sh.prototype.th;sh.prototype.out=sh.prototype.out;
sh.prototype.tag=sh.prototype.tag;sh.prototype.attrs=sh.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 h$4,H2U,NX2;(function(){function W(X,f){return X<f?-1:X>f?1:X>=f?0:NaN}
function B(X){return function(f,x){return W(X(f),x)}}
function z(){for(var X=0,f=arguments.length,x={},Wy;X<f;++X){if(!(Wy=arguments[X]+"")||Wy in x)throw Error("ve`"+Wy);x[Wy]=[]}return new G(x)}
function G(X){this._=X}
function Y(X,f){return X.trim().split(/^|\s+/).map(function(x){var Wy="",EX=x.indexOf(".");EX>=0&&(Wy=x.slice(EX+1),x=x.slice(0,EX));if(x&&!f.hasOwnProperty(x))throw Error("we`"+x);return{type:x,name:Wy}})}
function d(X,f,x){for(var Wy=0,EX=X.length;Wy<EX;++Wy)if(X[Wy].name===f){X[Wy]=O69;X=X.slice(0,Wy).concat(X.slice(Wy+1));break}x!=null&&X.push({name:f,value:x});return X}
function E(X){var f=X,x=f.indexOf(":");x>=0&&(f=X.slice(0,x))!=="xmlns"&&(X=X.slice(x+1));return XU.hasOwnProperty(f)?{space:XU[f],local:X}:X}
function v(X){return function(){var f=this.ownerDocument,x=this.namespaceURI;return x==="http://www.w3.org/1999/xhtml"&&f.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?f.createElement(X):f.createElementNS(x,X)}}
function c(X){return function(){return this.ownerDocument.createElementNS(X.space,X.local)}}
function J(X){X=E(X);return(X.local?c:v)(X)}
function g(){}
function t(X){return X==null?g:function(){return this.querySelector(X)}}
function P(X){return Array(X.length)}
function Z(X,f){this.ownerDocument=X.ownerDocument;this.namespaceURI=X.namespaceURI;this._next=null;this._parent=X;this.__data__=f}
function l(X){return function(){return X}}
function b(X,f,x,Wy,EX,sX){for(var Cu=0,jQ,G6=f.length,MR=sX.length;Cu<MR;++Cu)(jQ=f[Cu])?(jQ.__data__=sX[Cu],Wy[Cu]=jQ):x[Cu]=new Z(X,sX[Cu]);for(;Cu<G6;++Cu)if(jQ=f[Cu])EX[Cu]=jQ}
function O(X,f,x,Wy,EX,sX,Cu){var jQ,G6,MR={},YM=f.length,JM=sX.length,L7=Array(YM),F6;for(jQ=0;jQ<YM;++jQ)if(G6=f[jQ])L7[jQ]=F6="$"+Cu.call(G6,G6.__data__,jQ,f),F6 in MR?EX[jQ]=G6:MR[F6]=G6;for(jQ=0;jQ<JM;++jQ)F6="$"+Cu.call(X,sX[jQ],jQ,sX),(G6=MR[F6])?(Wy[jQ]=G6,G6.__data__=sX[jQ],MR[F6]=null):x[jQ]=new Z(X,sX[jQ]);for(jQ=0;jQ<YM;++jQ)(G6=f[jQ])&&MR[L7[jQ]]===G6&&(EX[jQ]=G6)}
function K(X,f){return X<f?-1:X>f?1:X>=f?0:NaN}
function e(X){return function(){this.removeAttribute(X)}}
function a(X){return function(){this.removeAttributeNS(X.space,X.local)}}
function q(X,f){return function(){this.setAttribute(X,f)}}
function n(X,f){return function(){this.setAttributeNS(X.space,X.local,f)}}
function L(X,f){return function(){var x=f.apply(this,arguments);x==null?this.removeAttribute(X):this.setAttribute(X,x)}}
function By(X,f){return function(){var x=f.apply(this,arguments);x==null?this.removeAttributeNS(X.space,X.local):this.setAttributeNS(X.space,X.local,x)}}
function gk(X){return function(){this.style.removeProperty(X)}}
function vy(X,f,x){return function(){this.style.setProperty(X,f,x)}}
function lx(X,f,x){return function(){var Wy=f.apply(this,arguments);Wy==null?this.style.removeProperty(X):this.style.setProperty(X,Wy,x)}}
function Zv(X,f){return X.style.getPropertyValue(f)||(X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView).getComputedStyle(X,null).getPropertyValue(f)}
function VR(X){return function(){delete this[X]}}
function ux(X,f){return function(){this[X]=f}}
function X2(X,f){return function(){var x=f.apply(this,arguments);x==null?delete this[X]:this[X]=x}}
function WQ(){this.textContent=""}
function XH(X){return function(){this.textContent=X}}
function wU(X){return function(){var f=X.apply(this,arguments);this.textContent=f==null?"":f}}
function RD(){this.innerHTML=""}
function sF(X){return function(){this.innerHTML=X}}
function Vd(X){return function(){var f=X.apply(this,arguments);this.innerHTML=f==null?"":f}}
function bR(){return null}
function Sf(){var X=this.parentNode;X&&X.removeChild(this)}
function UF(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function pu(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function BQ(X,f,x){X=Z9(X,f,x);return function(Wy){var EX=Wy.relatedTarget;EX&&(EX===this||EX.compareDocumentPosition(this)&8)||X.call(this,Wy)}}
function Z9(X,f,x){return function(){X.call(this,this.__data__,f,x)}}
function cn(X){return X.trim().split(/^|\s+/).map(function(f){var x="",Wy=f.indexOf(".");Wy>=0&&(x=f.slice(Wy+1),f=f.slice(0,Wy));return{type:f,name:x}})}
function rU(X){return function(){var f=this.__on;if(f){for(var x=0,Wy=-1,EX=f.length,sX;x<EX;++x)(sX=f[x],X.type&&sX.type!==X.type||sX.name!==X.name)?f[++Wy]=sX:this.removeEventListener(sX.type,sX.listener,sX.capture);++Wy?f.length=Wy:delete this.__on}}}
function Gq(X,f,x){var Wy=P1R.hasOwnProperty(X.type)?BQ:Z9;return function(EX,sX,Cu){EX=this.__on;var jQ;sX=Wy(f,sX,Cu);if(EX){Cu=0;for(var G6=EX.length;Cu<G6;++Cu)if((jQ=EX[Cu]).type===X.type&&jQ.name===X.name){this.removeEventListener(jQ.type,jQ.listener,jQ.capture);this.addEventListener(jQ.type,jQ.listener=sX,jQ.capture=x);jQ.value=f;return}}this.addEventListener(X.type,sX,x);jQ={type:X.type,name:X.name,value:f,listener:sX,capture:x};EX?EX.push(jQ):this.__on=[jQ]}}
function Td(X,f,x){var Wy=X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView,EX=Wy.CustomEvent;typeof EX==="function"?EX=new EX(f,x):(EX=Wy.document.createEvent("Event"),x?(EX.initEvent(f,x.bubbles,x.cancelable),EX.detail=x.detail):EX.initEvent(f,!1,!1));X.dispatchEvent(EX)}
function Bn(X,f){return function(){return Td(this,X,f)}}
function T6(X,f){return function(){return Td(this,X,f.apply(this,arguments))}}
function $M(X,f){this._groups=X;this._parents=f}
function Pn(){return new $M([[document.documentElement]],Xtf)}
function FH(){this._="@"+(++KGO).toString(36)}
function C7(X,f,x){X.prototype=f.prototype=x;x.constructor=X}
function tK(X,f){X=Object.create(X.prototype);for(var x in f)X[x]=f[x];return X}
function a3(){}
function wi(X){var f;X=(X+"").trim().toLowerCase();return(f=u39.exec(X))?(f=parseInt(f[1],16),new nO(f>>8&15|f>>4&240,f>>4&15|f&240,(f&15)<<4|f&15,1)):(f=egi.exec(X))?jw(parseInt(f[1],16)):(f=mmf.exec(X))?new nO(f[1],f[2],f[3],1):(f=xmY.exec(X))?new nO(f[1]*255/100,f[2]*255/100,f[3]*255/100,1):(f=Dmj.exec(X))?hj(f[1],f[2],f[3],f[4]):(f=QZ6.exec(X))?hj(f[1]*255/100,f[2]*255/100,f[3]*255/100,f[4]):(f=yLi.exec(X))?ql(f[1],f[2]/100,f[3]/100,1):(f=qz6.exec(X))?ql(f[1],f[2]/100,f[3]/100,f[4]):ZIQ.hasOwnProperty(X)?
jw(ZIQ[X]):X==="transparent"?new nO(NaN,NaN,NaN,0):null}
function jw(X){return new nO(X>>16&255,X>>8&255,X&255,1)}
function hj(X,f,x,Wy){Wy<=0&&(X=f=x=NaN);return new nO(X,f,x,Wy)}
function D9(X){X instanceof a3||(X=wi(X));if(!X)return new nO;X=X.rgb();return new nO(X.r,X.g,X.b,X.opacity)}
function kY(X,f,x,Wy){return arguments.length===1?D9(X):new nO(X,f,x,Wy==null?1:Wy)}
function nO(X,f,x,Wy){this.r=+X;this.g=+f;this.b=+x;this.opacity=+Wy}
function lQ(X){X=Math.max(0,Math.min(255,Math.round(X)||0));return(X<16?"0":"")+X.toString(16)}
function ql(X,f,x,Wy){Wy<=0?X=f=x=NaN:x<=0||x>=1?X=f=NaN:f<=0&&(X=NaN);return new QB(X,f,x,Wy)}
function Qc(X){if(X instanceof QB)return new QB(X.h,X.s,X.l,X.opacity);X instanceof a3||(X=wi(X));if(!X)return new QB;if(X instanceof QB)return X;X=X.rgb();var f=X.r/255,x=X.g/255,Wy=X.b/255,EX=Math.min(f,x,Wy),sX=Math.max(f,x,Wy),Cu=NaN,jQ=sX-EX,G6=(sX+EX)/2;jQ?(Cu=f===sX?(x-Wy)/jQ+(x<Wy)*6:x===sX?(Wy-f)/jQ+2:(f-x)/jQ+4,jQ/=G6<.5?sX+EX:2-sX-EX,Cu*=60):jQ=G6>0&&G6<1?0:Cu;return new QB(Cu,jQ,G6,X.opacity)}
function H_(X,f,x,Wy){return arguments.length===1?Qc(X):new QB(X,f,x,Wy==null?1:Wy)}
function QB(X,f,x,Wy){this.h=+X;this.s=+f;this.l=+x;this.opacity=+Wy}
function d3(X,f,x){return(X<60?f+(x-f)*X/60:X<180?x:X<240?f+(x-f)*(240-X)/60:f)*255}
function A8(X){if(X instanceof h0)return new h0(X.l,X.a,X.b,X.opacity);if(X instanceof lR){if(isNaN(X.h))return new h0(X.l,0,0,X.opacity);var f=X.h*r5R;return new h0(X.l,Math.cos(f)*X.c,Math.sin(f)*X.c,X.opacity)}X instanceof nO||(X=D9(X));var x=Vr(X.r),Wy=Vr(X.g),EX=Vr(X.b);f=eQ(.2225045*x+.7168786*Wy+.0606169*EX);if(x===Wy&&Wy===EX)var sX=x=f;else sX=eQ((.4360747*x+.3850649*Wy+.1430804*EX)/.96422),x=eQ((.0139322*x+.0971045*Wy+.7141733*EX)/.82521);return new h0(116*f-16,500*(sX-f),200*(f-x),X.opacity)}
function h0(X,f,x,Wy){this.l=+X;this.a=+f;this.b=+x;this.opacity=+Wy}
function eQ(X){return X>nNY?Math.pow(X,1/3):X/k1M+l$R}
function nu(X){return X>P9?X*X*X:k1M*(X-l$R)}
function gU(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 fm(X){if(X instanceof lR)return new lR(X.h,X.c,X.l,X.opacity);X instanceof h0||(X=A8(X));if(X.a===0&&X.b===0)return new lR(NaN,0,X.l,X.opacity);var f=Math.atan2(X.b,X.a)*C1Q;return new lR(f<0?f+360:f,Math.sqrt(X.a*X.a+X.b*X.b),X.l,X.opacity)}
function Ij(X,f,x,Wy){return arguments.length===1?fm(X):new lR(X,f,x,Wy==null?1:Wy)}
function lR(X,f,x,Wy){this.h=+X;this.c=+f;this.l=+x;this.opacity=+Wy}
function kM(X,f,x,Wy){if(arguments.length===1){var EX=X;if(EX instanceof X6)EX=new X6(EX.h,EX.s,EX.l,EX.opacity);else{EX instanceof nO||(EX=D9(EX));var sX=EX.g/255,Cu=EX.b/255,jQ=(I$F*Cu+EX.r/255*-1.7884503806-3.5172982438*sX)/(I$F+-1.7884503806-3.5172982438);Cu-=jQ;var G6=(1.97294*(sX-jQ)- -.29227*Cu)/-.90649;Cu=(sX=Math.sqrt(G6*G6+Cu*Cu)/(1.97294*jQ*(1-jQ)))?Math.atan2(G6,Cu)*C1Q-120:NaN;EX=new X6(Cu<0?Cu+360:Cu,sX,jQ,EX.opacity)}}else EX=new X6(X,f,x,Wy==null?1:Wy);return EX}
function X6(X,f,x,Wy){this.h=+X;this.s=+f;this.l=+x;this.opacity=+Wy}
function ZR(X,f,x,Wy,EX){var sX=X*X,Cu=sX*X;return((1-3*X+3*sX-Cu)*f+(4-6*sX+3*Cu)*x+(1+3*X+3*sX-3*Cu)*Wy+Cu*EX)/6}
function tM(X){return function(){return X}}
function Hc(X,f){return function(x){return X+x*f}}
function Kx(X,f,x){return X=Math.pow(X,x),f=Math.pow(f,x)-X,x=1/x,function(Wy){return Math.pow(X+Wy*f,x)}}
function eN(X,f){var x=f-X;return x?Hc(X,x>180||x<-180?x-360*Math.round(x/360):x):tM(isNaN(X)?f:X)}
function yB(X){return(X=+X)===1?nG:function(f,x){return x-f?Kx(f,x,X):tM(isNaN(f)?x:f)}}
function nG(X,f){var x=f-X;return x?Hc(X,x):tM(isNaN(X)?f:X)}
function G2(X){return function(f){var x=f.length,Wy=Array(x),EX=Array(x),sX=Array(x),Cu;for(Cu=0;Cu<x;++Cu){var jQ=kY(f[Cu]);Wy[Cu]=jQ.r||0;EX[Cu]=jQ.g||0;sX[Cu]=jQ.b||0}Wy=X(Wy);EX=X(EX);sX=X(sX);jQ.opacity=1;return function(G6){jQ.r=Wy(G6);jQ.g=EX(G6);jQ.b=sX(G6);return jQ+""}}}
function VY(X,f){return X=+X,f-=X,function(x){return X+f*x}}
function HH(X){return function(){return X}}
function Cc(X){return function(f){return X(f)+""}}
function NR(X,f){var x=VxT.lastIndex=Jux.lastIndex=0,Wy,EX,sX,Cu=-1,jQ=[],G6=[];X+="";for(f+="";(Wy=VxT.exec(X))&&(EX=Jux.exec(f));)(sX=EX.index)>x&&(sX=f.slice(x,sX),jQ[Cu]?jQ[Cu]+=sX:jQ[++Cu]=sX),(Wy=Wy[0])===(EX=EX[0])?jQ[Cu]?jQ[Cu]+=EX:jQ[++Cu]=EX:(jQ[++Cu]=null,G6.push({i:Cu,x:VY(Wy,EX)})),x=Jux.lastIndex;x<f.length&&(sX=f.slice(x),jQ[Cu]?jQ[Cu]+=sX:jQ[++Cu]=sX);return jQ.length<2?G6[0]?Cc(G6[0].x):HH(f):(f=G6.length,function(MR){for(var YM=0,JM;YM<f;++YM)jQ[(JM=G6[YM]).i]=JM.x(MR);return jQ.join("")})}
function Zi(X,f,x,Wy,EX,sX){var Cu,jQ,G6;if(Cu=Math.sqrt(X*X+f*f))X/=Cu,f/=Cu;if(G6=X*x+f*Wy)x-=X*G6,Wy-=f*G6;if(jQ=Math.sqrt(x*x+Wy*Wy))x/=jQ,Wy/=jQ,G6/=jQ;X*Wy<f*x&&(X=-X,f=-f,G6=-G6,Cu=-Cu);return{translateX:EX,translateY:sX,rotate:Math.atan2(f,X)*oUd,skewX:Math.atan(G6)*oUd,scaleX:Cu,scaleY:jQ}}
function oj(X,f,x,Wy){function EX(MR){return MR.length?MR.pop()+" ":""}
function sX(MR,YM,JM,L7,F6,Cm){MR!==JM||YM!==L7?(F6=F6.push("translate(",null,f,null,x),Cm.push({i:F6-4,x:VY(MR,JM)},{i:F6-2,x:VY(YM,L7)})):(JM||L7)&&F6.push("translate("+JM+f+L7+x)}
function Cu(MR,YM,JM,L7){MR!==YM?(MR-YM>180?YM+=360:YM-MR>180&&(MR+=360),L7.push({i:JM.push(EX(JM)+"rotate(",null,Wy)-2,x:VY(MR,YM)})):YM&&JM.push(EX(JM)+"rotate("+YM+Wy)}
function jQ(MR,YM,JM,L7){MR!==YM?L7.push({i:JM.push(EX(JM)+"skewX(",null,Wy)-2,x:VY(MR,YM)}):YM&&JM.push(EX(JM)+"skewX("+YM+Wy)}
function G6(MR,YM,JM,L7,F6,Cm){MR!==JM||YM!==L7?(F6=F6.push(EX(F6)+"scale(",null,",",null,")"),Cm.push({i:F6-4,x:VY(MR,JM)},{i:F6-2,x:VY(YM,L7)})):JM===1&&L7===1||F6.push(EX(F6)+"scale("+JM+","+L7+")")}
return function(MR,YM){var JM=[],L7=[];MR=X(MR);YM=X(YM);sX(MR.translateX,MR.translateY,YM.translateX,YM.translateY,JM,L7);Cu(MR.rotate,YM.rotate,JM,L7);jQ(MR.skewX,YM.skewX,JM,L7);G6(MR.scaleX,MR.scaleY,YM.scaleX,YM.scaleY,JM,L7);MR=YM=null;return function(F6){for(var Cm=-1,nN=L7.length,Fp;++Cm<nN;)JM[(Fp=L7[Cm]).i]=Fp.x(F6);return JM.join("")}}}
function AK(X){return function(f,x){var Wy=X((f=H_(f)).h,(x=H_(x)).h),EX=nG(f.s,x.s),sX=nG(f.l,x.l),Cu=nG(f.opacity,x.opacity);return function(jQ){f.h=Wy(jQ);f.s=EX(jQ);f.l=sX(jQ);f.opacity=Cu(jQ);return f+""}}}
function Jv(X){return function(f,x){var Wy=X((f=Ij(f)).h,(x=Ij(x)).h),EX=nG(f.c,x.c),sX=nG(f.l,x.l),Cu=nG(f.opacity,x.opacity);return function(jQ){f.h=Wy(jQ);f.c=EX(jQ);f.l=sX(jQ);f.opacity=Cu(jQ);return f+""}}}
function UY(X){return function Wy(x){function EX(sX,Cu){var jQ=X((sX=kM(sX)).h,(Cu=kM(Cu)).h),G6=nG(sX.s,Cu.s),MR=nG(sX.l,Cu.l),YM=nG(sX.opacity,Cu.opacity);return function(JM){sX.h=jQ(JM);sX.s=G6(JM);sX.l=MR(Math.pow(JM,x));sX.opacity=YM(JM);return sX+""}}
x=+x;EX.gamma=Wy;return EX}(1)}
function DG(){return YQ||(h7M(W2),YQ=mp.now()+Dn8)}
function W2(){YQ=0}
function on(){this._call=this._time=this._next=null}
function bs(X,f,x){var Wy=new on;Wy.restart(X,f,x);return Wy}
function jC(){YQ=(QXr=mp.now())+Dn8;Zd=xv=0;try{DG();++Zd;for(var X=yC2,f;X;)(f=YQ-X._time)>=0&&X._call.call(null,f),X=X._next;--Zd}finally{Zd=0;X=yC2;for(var x=Infinity;X;)if(X._call){x>X._time&&(x=X._time);var Wy=X;X=X._next}else f=X._next,X._next=null,X=Wy?Wy._next=f:yC2=f;D7=Wy;fB(x);YQ=0}}
function BLy(){var X=mp.now(),f=X-QXr;f>1E3&&(Dn8-=f,QXr=X)}
function fB(X){Zd||(xv&&(xv=clearTimeout(xv)),X-YQ>24?(X<Infinity&&(xv=setTimeout(jC,X-mp.now()-Dn8)),Ql&&(Ql=clearInterval(Ql))):(Ql||(QXr=mp.now(),Ql=setInterval(BLy,1E3)),Zd=1,h7M(jC)))}
function HI4(X,f,x){var Wy=new on;f=f==null?0:+f;Wy.restart(function(EX){Wy.stop();X(EX+f)},f,x);
return Wy}
function gz8(X,f,x,Wy,EX,sX){var Cu=X.__transition;if(!Cu)X.__transition={};else if(x in Cu)return;NEi(X,x,{name:f,index:Wy,group:EX,on:$mi,tween:LGi,time:sX.time,delay:sX.delay,duration:sX.duration,ease:sX.ease,timer:null,state:0})}
function txR(X,f){X=b_(X,f);if(X.state>0)throw Error("xe");return X}
function dG(X,f){X=b_(X,f);if(X.state>2)throw Error("ye");return X}
function b_(X,f){X=X.__transition;if(!X||!(X=X[f]))throw Error("ze");return X}
function NEi(X,f,x){function Wy(G6){var MR,YM;if(x.state!==1)return sX();for(L7 in Cu){var JM=Cu[L7];if(JM.name===x.name){if(JM.state===3)return HI4(Wy);JM.state===4?(JM.state=6,JM.timer.stop(),JM.on.call("interrupt",X,X.__data__,JM.index,JM.group),delete Cu[L7]):+L7<f&&(JM.state=6,JM.timer.stop(),delete Cu[L7])}}HI4(function(){x.state===3&&(x.state=4,x.timer.restart(EX,x.delay,x.time),EX(G6))});
x.state=2;x.on.call("start",X,X.__data__,x.index,x.group);if(x.state===2){x.state=3;jQ=Array(YM=x.tween.length);var L7=0;for(MR=-1;L7<YM;++L7)if(JM=x.tween[L7].value.call(X,X.__data__,x.index,x.group))jQ[++MR]=JM;jQ.length=MR+1}}
function EX(G6){G6=G6<x.duration?x.ease.call(null,G6/x.duration):(x.timer.restart(sX),x.state=5,1);for(var MR=-1,YM=jQ.length;++MR<YM;)jQ[MR].call(null,G6);x.state===5&&(x.on.call("end",X,X.__data__,x.index,x.group),sX())}
function sX(){x.state=6;x.timer.stop();delete Cu[f];for(var G6 in Cu)return;delete X.__transition}
var Cu=X.__transition,jQ;Cu[f]=x;x.timer=bs(function(G6){x.state=1;x.timer.restart(Wy,x.delay,x.time);x.delay<=G6&&Wy(G6-x.delay)},0,x.time)}
function Um9(X,f){var x,Wy;return function(){var EX=dG(this,X),sX=EX.tween;if(sX!==x){Wy=x=sX;sX=0;for(var Cu=Wy.length;sX<Cu;++sX)if(Wy[sX].name===f){Wy=Wy.slice();Wy.splice(sX,1);break}}EX.tween=Wy}}
function M9q(X,f,x){var Wy,EX;if(typeof x!=="function")throw Error();return function(){var sX=dG(this,X),Cu=sX.tween;if(Cu!==Wy){EX=(Wy=Cu).slice();Cu={name:f,value:x};for(var jQ=0,G6=EX.length;jQ<G6;++jQ)if(EX[jQ].name===f){EX[jQ]=Cu;break}jQ===G6&&EX.push(Cu)}sX.tween=EX}}
function sTT(X,f,x){var Wy=X._id;X.each(function(){var EX=dG(this,Wy);(EX.value||(EX.value={}))[f]=x.apply(this,arguments)});
return function(EX){return b_(EX,Wy).value[f]}}
function FtH(X,f){var x;return(typeof f==="number"?VY:f instanceof wi?Sr4:(x=wi(f))?(f=x,Sr4):NR)(X,f)}
function aL0(X){return function(){this.removeAttribute(X)}}
function Rgf(X){return function(){this.removeAttributeNS(X.space,X.local)}}
function Wx6(X,f,x){var Wy,EX;return function(){var sX=this.getAttribute(X);return sX===x?null:sX===Wy?EX:EX=f(Wy=sX,x)}}
function BP0(X,f,x){var Wy,EX;return function(){var sX=this.getAttributeNS(X.space,X.local);return sX===x?null:sX===Wy?EX:EX=f(Wy=sX,x)}}
function zNq(X,f,x){var Wy,EX,sX;return function(){var Cu=x(this);if(Cu==null)return void this.removeAttribute(X);var jQ=this.getAttribute(X);return jQ===Cu?null:jQ===Wy&&Cu===EX?sX:sX=f(Wy=jQ,EX=Cu)}}
function G3j(X,f,x){var Wy,EX,sX;return function(){var Cu=x(this);if(Cu==null)return void this.removeAttributeNS(X.space,X.local);var jQ=this.getAttributeNS(X.space,X.local);return jQ===Cu?null:jQ===Wy&&Cu===EX?sX:sX=f(Wy=jQ,EX=Cu)}}
function Ypb(X,f){function x(){var Wy=this,EX=f.apply(Wy,arguments);return EX&&function(sX){Wy.setAttributeNS(X.space,X.local,EX(sX))}}
x._value=f;return x}
function dGO(X,f){function x(){var Wy=this,EX=f.apply(Wy,arguments);return EX&&function(sX){Wy.setAttribute(X,EX(sX))}}
x._value=f;return x}
function pOf(X,f){return function(){txR(this,X).delay=+f.apply(this,arguments)}}
function Awf(X,f){return f=+f,function(){txR(this,X).delay=f}}
function iSK(X,f){return function(){dG(this,X).duration=+f.apply(this,arguments)}}
function E3O(X,f){return f=+f,function(){dG(this,X).duration=f}}
function TPf(X,f){if(typeof f!=="function")throw Error();return function(){dG(this,X).ease=f}}
function v3K(X){return(X+"").trim().split(/^|\s+/).every(function(f){var x=f.indexOf(".");x>=0&&(f=f.slice(0,x));return!f||f==="start"})}
function cwn(X,f,x){var Wy,EX,sX=v3K(f)?txR:dG;return function(){var Cu=sX(this,X),jQ=Cu.on;if(jQ!==Wy)(EX=(Wy=jQ).copy()).on(f,x);Cu.on=EX}}
function wOn(X){return function(){var f=this.parentNode,x;for(x in this.__transition)if(+x!==X)return;f&&f.removeChild(this)}}
function VdO(X,f){var x,Wy,EX;return function(){var sX=Zv(this,X),Cu=(this.style.removeProperty(X),Zv(this,X));return sX===Cu?null:sX===x&&Cu===Wy?EX:EX=f(x=sX,Wy=Cu)}}
function Jwf(X){return function(){this.style.removeProperty(X)}}
function g3f(X,f,x){var Wy,EX;return function(){var sX=Zv(this,X);return sX===x?null:sX===Wy?EX:EX=f(Wy=sX,x)}}
function tdr(X,f,x){var Wy,EX,sX;return function(){var Cu=Zv(this,X),jQ=x(this);jQ==null&&(jQ=(this.style.removeProperty(X),Zv(this,X)));return Cu===jQ?null:Cu===Wy&&jQ===EX?sX:sX=f(Wy=Cu,EX=jQ)}}
function sH6(X,f,x){function Wy(){var EX=this,sX=f.apply(EX,arguments);return sX&&function(Cu){EX.style.setProperty(X,sX(Cu),x)}}
Wy._value=f;return Wy}
function Pii(X){return function(){this.textContent=X}}
function ZSq(X){return function(){var f=X(this);this.textContent=f==null?"":f}}
function RT(X,f,x,Wy){this._groups=X;this._parents=f;this._name=x;this._id=Wy}
function PuD(X){return{type:X}}
function ZLk(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function qAu(){}
function bIR(X,f){var x=new qAu;if(X instanceof qAu)X.each(function(Cu,jQ){x.set(jQ,Cu)});
else if(Array.isArray(X)){var Wy=-1,EX=X.length,sX;if(f==null)for(;++Wy<EX;)x.set(Wy,X[Wy]);else for(;++Wy<EX;)x.set(f(sX=X[Wy],Wy,X),sX)}else if(X)for(Wy in X)x.set(Wy,X[Wy]);return x}
function n8t(){}
function jqQ(X){return function(f){for(var x={},Wy=0;Wy<X.length;Wy++)x[X[Wy]]=f[Wy]||"";return x}}
function rwj(X,f){var x=jqQ(X);return function(Wy,EX){return f(x(Wy),EX,X)}}
function k3i(X){var f=Object.create(null),x=[];X.forEach(function(Wy){for(var EX in Wy)EX in f||x.push(f[EX]=EX)});
return x}
function f$U(X){function f(Cu,jQ){function G6(){if(Cm)return ruR;if(nN)return nN=!1,OId;var Uc,$$=JM,Vg;if(Cu.charCodeAt($$)===34){for(;JM++<YM&&Cu.charCodeAt(JM)!==34||Cu.charCodeAt(++JM)===34;);(Uc=JM)>=YM?Cm=!0:(Vg=Cu.charCodeAt(JM++))===10?nN=!0:Vg===13&&(nN=!0,Cu.charCodeAt(JM)===10&&++JM);return Cu.slice($$+1,Uc-1).replace(/""/g,'"')}for(;JM<YM;){if((Vg=Cu.charCodeAt(Uc=JM++))===10)nN=!0;else if(Vg===13)nN=!0,Cu.charCodeAt(JM)===10&&++JM;else if(Vg!==sX)continue;return Cu.slice($$,Uc)}return Cm=
!0,Cu.slice($$,YM)}
var MR=[],YM=Cu.length,JM=0,L7=0,F6,Cm=YM<=0,nN=!1;Cu.charCodeAt(YM-1)===10&&--YM;for(Cu.charCodeAt(YM-1)===13&&--YM;(F6=G6())!==ruR;){for(var Fp=[];F6!==OId&&F6!==ruR;)Fp.push(F6),F6=G6();jQ&&(Fp=jQ(Fp,L7++))==null||MR.push(Fp)}return MR}
function x(Cu){return Cu.map(Wy).join(X)}
function Wy(Cu){return Cu==null?"":EX.test(Cu)?'"'+Cu.replace(/"/g,'""')+'"':Cu}
var EX=new RegExp('["'+X+"\n\r]"),sX=X.charCodeAt(0);return{parse:function(Cu,jQ){var G6,MR;Cu=f(Cu,function(YM,JM){if(G6)return G6(YM,JM-1);MR=YM;G6=jQ?rwj(YM,jQ):jqQ(YM)});
Cu.columns=MR||[];return Cu},
parseRows:f,format:function(Cu,jQ){jQ==null&&(jQ=k3i(Cu));return[jQ.map(Wy).join(X)].concat(Cu.map(function(G6){return jQ.map(function(MR){return Wy(G6[MR])}).join(X)})).join("\n")},
formatRows:function(Cu){return Cu.map(x).join("\n")}}}
function l6j(X){if(!X.ok)throw Error("Ae`"+X.status+"`"+X.statusText);return X.text()}
function XzH(X){return function(f,x,Wy){arguments.length===2&&typeof x==="function"&&(Wy=x,x=void 0);return fetch(f,x).then(l6j).then(function(EX){return X(EX,Wy)})}}
function KtR(X,f,x,Wy){if(isNaN(f)||isNaN(x))return X;var EX,sX=X._root;Wy={data:Wy};var Cu=X._x0,jQ=X._y0,G6=X._x1,MR=X._y1,YM,JM,L7,F6,Cm;if(!sX)return X._root=Wy,X;for(;sX.length;)if((L7=f>=(YM=(Cu+G6)/2))?Cu=YM:G6=YM,(F6=x>=(JM=(jQ+MR)/2))?jQ=JM:MR=JM,EX=sX,!(sX=sX[Cm=F6<<1|L7]))return EX[Cm]=Wy,X;var nN=+X._x.call(null,sX.data);var Fp=+X._y.call(null,sX.data);if(f===nN&&x===Fp)return Wy.next=sX,EX?EX[Cm]=Wy:X._root=Wy,X;do EX=EX?EX[Cm]=Array(4):X._root=Array(4),(L7=f>=(YM=(Cu+G6)/2))?Cu=YM:G6=
YM,(F6=x>=(JM=(jQ+MR)/2))?jQ=JM:MR=JM;while((Cm=F6<<1|L7)===(L7=(Fp>=JM)<<1|nN>=YM));return EX[L7]=sX,EX[Cm]=Wy,X}
function ms(X,f,x,Wy,EX){this.node=X;this.x0=f;this.y0=x;this.x1=Wy;this.y1=EX}
function Ciq(X){return X[0]}
function I6n(X){return X[1]}
function kry(X,f,x,Wy,EX,sX){this._x=X;this._y=f;this._x0=x;this._y0=Wy;this._x1=EX;this._y1=sX;this._root=void 0}
function uIH(X){for(var f={data:X.data},x=f;X=X.next;)x=x.next={data:X.data};return f}
function NOt(X,f){if((f=(X=f?X.toExponential(f-1):X.toExponential()).indexOf("e"))<0)return null;var x=X.slice(0,f);return[x.length>1?x[0]+x.slice(2):x,+X.slice(f+1)]}
function o3q(X){return X=NOt(Math.abs(X)),X?X[1]:NaN}
function hNO(X,f){return function(x,Wy){for(var EX=x.length,sX=[],Cu=0,jQ=X[0],G6=0;EX>0&&jQ>0;){G6+jQ+1>Wy&&(jQ=Math.max(1,Wy-G6));sX.push(x.substring(EX-=jQ,EX+jQ));if((G6+=jQ+1)>Wy)break;jQ=X[Cu=(Cu+1)%X.length]}return sX.reverse().join(f)}}
function HSj(X){return function(f){return f.replace(/[0-9]/g,function(x){return X[+x]})}}
function lsu(X){return new CuX(X)}
function CuX(X){if(!(f=Fxi.exec(X)))throw Error("Be`"+X);var f;this.fill=f[1]||" ";this.align=f[2]||">";this.sign=f[3]||"-";this.symbol=f[4]||"";this.zero=!!f[5];this.width=f[6]&&+f[6];this.comma=!!f[7];this.precision=f[8]&&+f[8].slice(1);this.trim=!!f[9];this.type=f[10]||""}
function e76(X,f){f=NOt(X,f);if(!f)return X+"";X=f[0];f=f[1];return f<0?"0."+Array(-f).join("0")+X:X.length>f+1?X.slice(0,f+1)+"."+X.slice(f+1):X+Array(f-X.length+2).join("0")}
function m1R(X){return X}
function Spr(X){function f(jQ){function G6(Lm){var pG=Vg,Di=L2,kh,T_;if($$==="c")Di=LR(Lm)+Di,Lm="";else{Lm=+Lm;var jf=Lm<0;Lm=LR(Math.abs(Lm),Fp);if(Uc){var Qf=Lm.length,Kl=1,Ml=-1;a:for(;Kl<Qf;++Kl)switch(Lm[Kl]){case ".":Ml=kh=Kl;break;case "0":Ml===0&&(Ml=Kl);kh=Kl;break;default:if(!+Lm[Kl])break a;Ml>0&&(Ml=0)}Lm=Ml>0?Lm.slice(0,Ml)+Lm.slice(kh+1):Lm}jf&&+Lm===0&&(jf=!1);pG=(jf?JM==="("?JM:"-":JM==="-"||JM==="("?"":JM)+pG;Di=($$==="s"?x1R[8+D17/3]:"")+Di+(jf&&JM==="("?")":"");if(PC)for(jf=-1,
kh=Lm.length;++jf<kh;)if(T_=Lm.charCodeAt(jf),48>T_||T_>57){Di=(T_===46?EX+Lm.slice(jf+1):Lm.slice(jf))+Di;Lm=Lm.slice(0,jf);break}}nN&&!F6&&(Lm=x(Lm,Infinity));T_=pG.length+Lm.length+Di.length;jf=T_<Cm?Array(Cm-T_+1).join(MR):"";nN&&F6&&(Lm=x(jf+Lm,jf.length?Cm-Di.length:Infinity),jf="");switch(YM){case "<":Lm=pG+Lm+Di+jf;break;case "=":Lm=pG+jf+Lm+Di;break;case "^":Lm=jf.slice(0,T_=jf.length>>1)+pG+Lm+Di+jf.slice(T_);break;default:Lm=jf+pG+Lm+Di}return sX(Lm)}
jQ=lsu(jQ);var MR=jQ.fill,YM=jQ.align,JM=jQ.sign,L7=jQ.symbol,F6=jQ.zero,Cm=jQ.width,nN=jQ.comma,Fp=jQ.precision,Uc=jQ.trim,$$=jQ.type;$$==="n"?(nN=!0,$$="g"):QqD[$$]||(Fp==null&&(Fp=12),Uc=!0,$$="g");if(F6||MR==="0"&&YM==="=")F6=!0,MR="0",YM="=";var Vg=L7==="$"?Wy[0]:L7==="#"&&/[boxX]/.test($$)?"0"+$$.toLowerCase():"",L2=L7==="$"?Wy[1]:/[%p]/.test($$)?Cu:"",LR=QqD[$$],PC=/[defgprs%]/.test($$);Fp=Fp==null?6:/[gprs]/.test($$)?Math.max(1,Math.min(21,Fp)):Math.max(0,Math.min(20,Fp));G6.toString=function(){return jQ+
""};
return G6}
var x=X.grouping&&X.thousands?hNO(X.grouping,X.thousands):m1R,Wy=X.currency,EX=X.decimal,sX=X.numerals?HSj(X.numerals):m1R,Cu=X.percent||"%";return{format:f,formatPrefix:function(jQ,G6){var MR=f((jQ=lsu(jQ),jQ.type="f",jQ));jQ=Math.max(-8,Math.min(8,Math.floor(o3q(G6)/3)))*3;var YM=Math.pow(10,-jQ),JM=x1R[8+jQ/3];return function(L7){return MR(YM*L7)+JM}}}}
function Hq(){this.reset()}
function y57(X,f,x){var Wy=X.s=f+x,EX=Wy-f;X.t=f-(Wy-EX)+(x-EX)}
function $nT(X){return X>1?KQ:X<-1?-KQ:Math.asin(X)}
function bS0(){}
function qrF(X){var f=X[0];X=X[1];var x=ur(X);return[x*ur(f),x*IE(f),IE(X)]}
function nUF(X,f){return[X[1]*f[2]-X[2]*f[1],X[2]*f[0]-X[0]*f[2],X[0]*f[1]-X[1]*f[0]]}
function NWH(X){var f=LHk(X[0]*X[0]+X[1]*X[1]+X[2]*X[2]);X[0]/=f;X[1]/=f;X[2]/=f}
function jHK(){var X=[],f;return{point:function(x,Wy){f.push([x,Wy])},
lineStart:function(){X.push(f=[])},
lineEnd:bS0,rejoin:function(){X.length>1&&X.push(X.pop().concat(X.shift()))},
result:function(){var x=X;X=[];f=null;return x}}}
function Un2(X,f,x,Wy){this.x=X;this.z=f;this.o=x;this.e=Wy;this.v=!1;this.n=this.p=null}
function f66(X,f,x,Wy,EX){var sX=[],Cu=[];X.forEach(function(JM){if(!((L7=JM.length-1)<=0)){var L7,F6=JM[0],Cm=JM[L7],nN=F6;if(WN(nN[0]-Cm[0])<1E-6&&WN(nN[1]-Cm[1])<1E-6){EX.lineStart();for(jQ=0;jQ<L7;++jQ)EX.point((F6=JM[jQ])[0],F6[1]);EX.lineEnd()}else sX.push(L7=new Un2(F6,JM,null,!0)),Cu.push(L7.o=new Un2(F6,null,L7,!1)),sX.push(L7=new Un2(Cm,JM,null,!1)),Cu.push(L7.o=new Un2(Cm,null,L7,!0))}});
if(sX.length){Cu.sort(f);$1u(sX);$1u(Cu);var jQ=0;for(X=Cu.length;jQ<X;++jQ)Cu[jQ].e=x=!x;x=sX[0];for(var G6;;){for(var MR=x,YM=!0;MR.v;)if((MR=MR.n)===x)return;f=MR.z;EX.lineStart();do{MR.v=MR.o.v=!0;if(MR.e){if(YM)for(jQ=0,X=f.length;jQ<X;++jQ)EX.point((G6=f[jQ])[0],G6[1]);else Wy(MR.x,MR.n.x,1,EX);MR=MR.n}else{if(YM)for(f=MR.p.z,jQ=f.length-1;jQ>=0;--jQ)EX.point((G6=f[jQ])[0],G6[1]);else Wy(MR.x,MR.p.x,-1,EX);MR=MR.p}MR=MR.o;f=MR.z;YM=!YM}while(!MR.v);EX.lineEnd()}}}
function $1u(X){if(f=X.length){for(var f,x=0,Wy=X[0],EX;++x<f;)Wy.n=EX=X[x],EX.p=Wy,Wy=EX;Wy.n=EX=X[0];EX.p=Wy}}
function OSb(X){return X.length>1}
function XOq(X,f){return((X=X.x)[0]<0?X[1]-KQ-1E-6:KQ-X[1])-((f=f.x)[0]<0?f[1]-KQ-1E-6:KQ-f[1])}
function Isk(){}
function LtF(X){return function(f,x){var Wy=ur(f),EX=ur(x);Wy=X(Wy*EX);return[Wy*EX*IE(f),Wy*IE(x)]}}
function yl(X){return function(f,x){var Wy=LHk(f*f+x*x),EX=X(Wy),sX=IE(EX);EX=ur(EX);return[U1T(f*sX,Wy*EX),$nT(Wy&&x*sX/Wy)]}}
function Kxf(X){var f=0,x=X.children,Wy=x&&x.length;if(Wy)for(;--Wy>=0;)f+=x[Wy].value;else f=1;X.value=f}
function M8F(X,f){var x=new qB(X);X=+X.value&&(x.value=X.value);var Wy,EX=[x],sX,Cu,jQ,G6;for(f==null&&(f=uh6);Wy=EX.pop();)if(X&&(Wy.value=+Wy.data.value),(Cu=f(Wy.data))&&(G6=Cu.length))for(Wy.children=Array(G6),jQ=G6-1;jQ>=0;--jQ)EX.push(sX=Wy.children[jQ]=new qB(Cu[jQ])),sX.parent=Wy,sX.depth=Wy.depth+1;return x.eachBefore(eNO)}
function uh6(X){return X.children}
function mGn(X){X.data=X.data.data}
function eNO(X){var f=0;do X.height=f;while((X=X.parent)&&X.height<++f)}
function qB(X){this.data=X;this.depth=this.height=0;this.parent=null}
function Ty(X,f,x,Wy){function EX(sX){return X(sX=new Date(+sX)),sX}
EX.floor=EX;EX.ceil=function(sX){return X(sX=new Date(sX-1)),f(sX,1),X(sX),sX};
EX.round=function(sX){var Cu=EX(sX),jQ=EX.ceil(sX);return sX-Cu<jQ-sX?Cu:jQ};
EX.offset=function(sX,Cu){return f(sX=new Date(+sX),Cu==null?1:Math.floor(Cu)),sX};
EX.range=function(sX,Cu,jQ){var G6=[],MR;sX=EX.ceil(sX);jQ=jQ==null?1:Math.floor(jQ);if(!(sX<Cu&&jQ>0))return G6;do G6.push(MR=new Date(+sX)),f(sX,jQ),X(sX);while(MR<sX&&sX<Cu);return G6};
EX.filter=function(sX){return Ty(function(Cu){if(Cu>=Cu)for(;X(Cu),!sX(Cu);)Cu.setTime(Cu-1)},function(Cu,jQ){if(Cu>=Cu)if(jQ<0)for(;++jQ<=0;)for(;f(Cu,-1),!sX(Cu););
else for(;--jQ>=0;)for(;f(Cu,1),!sX(Cu););})};
x&&(EX.count=function(sX,Cu){oz8.setTime(+sX);hPR.setTime(+Cu);X(oz8);X(hPR);return Math.floor(x(oz8,hPR))},EX.every=function(sX){sX=Math.floor(sX);
return isFinite(sX)&&sX>0?sX>1?EX.filter(Wy?function(Cu){return Wy(Cu)%sX===0}:function(Cu){return EX.count(0,Cu)%sX===0}):EX:null});
return EX}
function pM(X){return Ty(function(f){f.setDate(f.getDate()-(f.getDay()+7-X)%7);f.setHours(0,0,0,0)},function(f,x){f.setDate(f.getDate()+x*7)},function(f,x){return(x-f-(x.getTimezoneOffset()-f.getTimezoneOffset())*6E4)/6048E5})}
function AU(X){return Ty(function(f){f.setUTCDate(f.getUTCDate()-(f.getUTCDay()+7-X)%7);f.setUTCHours(0,0,0,0)},function(f,x){f.setUTCDate(f.getUTCDate()+x*7)},function(f,x){return(x-f)/6048E5})}
function xGr(X){if(0<=X.y&&X.y<100){var f=new Date(-1,X.m,X.d,X.H,X.M,X.S,X.L);f.setFullYear(X.y);return f}return new Date(X.y,X.m,X.d,X.H,X.M,X.S,X.L)}
function MEX(X){if(0<=X.y&&X.y<100){var f=new Date(Date.UTC(-1,X.m,X.d,X.H,X.M,X.S,X.L));f.setUTCFullYear(X.y);return f}return new Date(Date.UTC(X.y,X.m,X.d,X.H,X.M,X.S,X.L))}
function nE(X){return{y:X,m:0,d:1,H:0,M:0,S:0,L:0}}
function DG0(X){function f(Di,kh){return function(T_){var jf=[],Qf=-1,Kl=0,Ml=Di.length,wO,iJ;for(T_ instanceof Date||(T_=new Date(+T_));++Qf<Ml;)if(Di.charCodeAt(Qf)===37){jf.push(Di.slice(Kl,Qf));(Kl=a$T[wO=Di.charAt(++Qf)])!=null?wO=Di.charAt(++Qf):Kl=wO==="e"?" ":"0";if(iJ=kh[wO])wO=iJ(T_,Kl);jf.push(wO);Kl=Qf+1}jf.push(Di.slice(Kl,Qf));return jf.join("")}}
function x(Di,kh){return function(T_){var jf=nE(1900);if(Wy(jf,Di,T_,0)!=T_.length)return null;if("Q"in jf)return new Date(jf.Q);"p"in jf&&(jf.H=jf.H%12+jf.p*12);if("V"in jf){if(jf.V<1||jf.V>53)return null;"w"in jf||(jf.w=1);if("Z"in jf){T_=MEX(nE(jf.y));var Qf=T_.getUTCDay();T_=Qf>4||Qf===0?HLX.ceil(T_):HLX(T_);T_=R7R.offset(T_,(jf.V-1)*7);jf.y=T_.getUTCFullYear();jf.m=T_.getUTCMonth();jf.d=T_.getUTCDate()+(jf.w+6)%7}else T_=kh(nE(jf.y)),Qf=T_.getDay(),T_=Qf>4||Qf===0?Fmr.ceil(T_):Fmr(T_),T_=Wm4.offset(T_,
(jf.V-1)*7),jf.y=T_.getFullYear(),jf.m=T_.getMonth(),jf.d=T_.getDate()+(jf.w+6)%7}else if("W"in jf||"U"in jf)"w"in jf||(jf.w="u"in jf?jf.u%7:"W"in jf?1:0),Qf="Z"in jf?MEX(nE(jf.y)).getUTCDay():kh(nE(jf.y)).getDay(),jf.m=0,jf.d="W"in jf?(jf.w+6)%7+jf.W*7-(Qf+5)%7:jf.w+jf.U*7-(Qf+6)%7;return"Z"in jf?(jf.H+=jf.Z/100|0,jf.M+=jf.Z%100,MEX(jf)):kh(jf)}}
function Wy(Di,kh,T_,jf){for(var Qf=0,Kl=kh.length,Ml=T_.length,wO;Qf<Kl;){if(jf>=Ml)return-1;wO=kh.charCodeAt(Qf++);if(wO===37){if(wO=kh.charAt(Qf++),wO=pG[wO in a$T?kh.charAt(Qf++):wO],!wO||(jf=wO(Di,T_,jf))<0)return-1}else if(wO!=T_.charCodeAt(jf++))return-1}return jf}
var EX=X.dateTime,sX=X.date,Cu=X.time,jQ=X.periods,G6=X.days,MR=X.shortDays,YM=X.months,JM=X.shortMonths,L7=NB(jQ),F6=$v(jQ),Cm=NB(G6),nN=$v(G6),Fp=NB(MR),Uc=$v(MR),$$=NB(YM),Vg=$v(YM),L2=NB(JM),LR=$v(JM),PC={a:function(Di){return MR[Di.getDay()]},
A:function(Di){return G6[Di.getDay()]},
b:function(Di){return JM[Di.getMonth()]},
B:function(Di){return YM[Di.getMonth()]},
c:null,d:B0d,e:B0d,f:QH6,H:yw0,I:qpj,j:n3Y,L:zPR,m:NPY,M:$Gi,p:function(Di){return jQ[+(Di.getHours()>=12)]},
Q:Gr9,s:Y6M,S:Lxf,u:UGj,U:Mdr,V:a6b,w:RNq,W:Wti,x:null,X:null,y:BWr,Y:z7f,Z:G10,"%":d8M},Lm={a:function(Di){return MR[Di.getUTCDay()]},
A:function(Di){return G6[Di.getUTCDay()]},
b:function(Di){return JM[Di.getUTCMonth()]},
B:function(Di){return YM[Di.getUTCMonth()]},
c:null,d:p7M,e:p7M,f:Yri,H:d1Y,I:pz6,j:A59,L:Au4,m:iIO,M:EU0,p:function(Di){return jQ[+(Di.getUTCHours()>=12)]},
Q:Gr9,s:Y6M,S:TWY,u:vUi,U:c5n,V:wzi,w:V80,W:J5q,x:null,X:null,y:gUi,Y:t86,Z:sqf,"%":d8M},pG={a:function(Di,kh,T_){return(kh=Fp.exec(kh.slice(T_)))?(Di.w=Uc[kh[0].toLowerCase()],T_+kh[0].length):-1},
A:function(Di,kh,T_){return(kh=Cm.exec(kh.slice(T_)))?(Di.w=nN[kh[0].toLowerCase()],T_+kh[0].length):-1},
b:function(Di,kh,T_){return(kh=L2.exec(kh.slice(T_)))?(Di.m=LR[kh[0].toLowerCase()],T_+kh[0].length):-1},
B:function(Di,kh,T_){return(kh=$$.exec(kh.slice(T_)))?(Di.m=Vg[kh[0].toLowerCase()],T_+kh[0].length):-1},
c:function(Di,kh,T_){return Wy(Di,EX,kh,T_)},
d:iLR,e:iLR,f:P19,H:EzM,I:EzM,j:ZIn,L:r59,m:k1K,M:l$f,p:function(Di,kh,T_){return(kh=L7.exec(kh.slice(T_)))?(Di.p=F6[kh[0].toLowerCase()],T_+kh[0].length):-1},
Q:C1n,s:I$b,S:oUr,u:h7Y,U:HI0,V:Ft6,w:Sr0,W:bIf,x:function(Di,kh,T_){return Wy(Di,sX,kh,T_)},
X:function(Di,kh,T_){return Wy(Di,Cu,kh,T_)},
y:jqn,Y:f$i,Z:OIr,"%":Xz6};PC.x=f(sX,PC);PC.X=f(Cu,PC);PC.c=f(EX,PC);Lm.x=f(sX,Lm);Lm.X=f(Cu,Lm);Lm.c=f(EX,Lm);return{format:function(Di){var kh=f(Di,PC);kh.toString=function(){return Di};
return kh},
parse:function(Di){var kh=x(Di,xGr);kh.toString=function(){return Di};
return kh},
utcFormat:function(Di){var kh=f(Di,Lm);kh.toString=function(){return Di};
return kh},
utcParse:function(Di){var kh=x(Di,MEX);kh.toString=function(){return Di};
return kh}}}
function sw(X,f,x){var Wy=X<0?"-":"";X=(Wy?-X:X)+"";var EX=X.length;return Wy+(EX<x?Array(x-EX+1).join(f)+X:X)}
function Kt9(X){return X.replace(uI6,"\\$&")}
function NB(X){return new RegExp("^(?:"+X.map(Kt9).join("|")+")","i")}
function $v(X){for(var f={},x=-1,Wy=X.length;++x<Wy;)f[X[x].toLowerCase()]=x;return f}
function Sr0(X,f,x){return(f=Jq.exec(f.slice(x,x+1)))?(X.w=+f[0],x+f[0].length):-1}
function h7Y(X,f,x){return(f=Jq.exec(f.slice(x,x+1)))?(X.u=+f[0],x+f[0].length):-1}
function HI0(X,f,x){return(f=Jq.exec(f.slice(x,x+2)))?(X.U=+f[0],x+f[0].length):-1}
function Ft6(X,f,x){return(f=Jq.exec(f.slice(x,x+2)))?(X.V=+f[0],x+f[0].length):-1}
function bIf(X,f,x){return(f=Jq.exec(f.slice(x,x+2)))?(X.W=+f[0],x+f[0].length):-1}
function f$i(X,f,x){return(f=Jq.exec(f.slice(x,x+4)))?(X.y=+f[0],x+f[0].length):-1}
function jqn(X,f,x){return(f=Jq.exec(f.slice(x,x+2)))?(X.y=+f[0]+(+f[0]>68?1900:2E3),x+f[0].length):-1}
function OIr(X,f,x){return(f=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(f.slice(x,x+6)))?(X.Z=f[1]?0:-(f[2]+(f[3]||"00")),x+f[0].length):-1}
function k1K(X,f,x){return(f=Jq.exec(f.slice(x,x+2)))?(X.m=f[0]-1,x+f[0].length):-1}
function iLR(X,f,x){return(f=Jq.exec(f.slice(x,x+2)))?(X.d=+f[0],x+f[0].length):-1}
function ZIn(X,f,x){return(f=Jq.exec(f.slice(x,x+3)))?(X.m=0,X.d=+f[0],x+f[0].length):-1}
function EzM(X,f,x){return(f=Jq.exec(f.slice(x,x+2)))?(X.H=+f[0],x+f[0].length):-1}
function l$f(X,f,x){return(f=Jq.exec(f.slice(x,x+2)))?(X.M=+f[0],x+f[0].length):-1}
function oUr(X,f,x){return(f=Jq.exec(f.slice(x,x+2)))?(X.S=+f[0],x+f[0].length):-1}
function r59(X,f,x){return(f=Jq.exec(f.slice(x,x+3)))?(X.L=+f[0],x+f[0].length):-1}
function P19(X,f,x){return(f=Jq.exec(f.slice(x,x+6)))?(X.L=Math.floor(f[0]/1E3),x+f[0].length):-1}
function Xz6(X,f,x){return(X=e7q.exec(f.slice(x,x+1)))?x+X[0].length:-1}
function C1n(X,f,x){return(f=Jq.exec(f.slice(x)))?(X.Q=+f[0],x+f[0].length):-1}
function I$b(X,f,x){return(f=Jq.exec(f.slice(x)))?(X.Q=+f[0]*1E3,x+f[0].length):-1}
function B0d(X,f){return sw(X.getDate(),f,2)}
function yw0(X,f){return sw(X.getHours(),f,2)}
function qpj(X,f){return sw(X.getHours()%12||12,f,2)}
function n3Y(X,f){return sw(1+Wm4.count(rB(X),X),f,3)}
function zPR(X,f){return sw(X.getMilliseconds(),f,3)}
function QH6(X,f){return zPR(X,f)+"000"}
function NPY(X,f){return sw(X.getMonth()+1,f,2)}
function $Gi(X,f){return sw(X.getMinutes(),f,2)}
function Lxf(X,f){return sw(X.getSeconds(),f,2)}
function UGj(X){X=X.getDay();return X===0?7:X}
function Mdr(X,f){return sw(m1f.count(rB(X),X),f,2)}
function a6b(X,f){var x=X.getDay();X=x>=4||x===0?S6Q(X):S6Q.ceil(X);return sw(S6Q.count(rB(X),X)+(rB(X).getDay()===4),f,2)}
function RNq(X){return X.getDay()}
function Wti(X,f){return sw(Fmr.count(rB(X),X),f,2)}
function BWr(X,f){return sw(X.getFullYear()%100,f,2)}
function z7f(X,f){return sw(X.getFullYear()%1E4,f,4)}
function G10(X){X=X.getTimezoneOffset();return(X>0?"-":(X*=-1,"+"))+sw(X/60|0,"0",2)+sw(X%60,"0",2)}
function p7M(X,f){return sw(X.getUTCDate(),f,2)}
function d1Y(X,f){return sw(X.getUTCHours(),f,2)}
function pz6(X,f){return sw(X.getUTCHours()%12||12,f,2)}
function A59(X,f){return sw(1+R7R.count(ko(X),X),f,3)}
function Au4(X,f){return sw(X.getUTCMilliseconds(),f,3)}
function Yri(X,f){return Au4(X,f)+"000"}
function iIO(X,f){return sw(X.getUTCMonth()+1,f,2)}
function EU0(X,f){return sw(X.getUTCMinutes(),f,2)}
function TWY(X,f){return sw(X.getUTCSeconds(),f,2)}
function vUi(X){X=X.getUTCDay();return X===0?7:X}
function c5n(X,f){return sw(x1f.count(ko(X),X),f,2)}
function wzi(X,f){var x=X.getUTCDay();X=x>=4||x===0?bLr(X):bLr.ceil(X);return sw(bLr.count(ko(X),X)+(ko(X).getUTCDay()===4),f,2)}
function V80(X){return X.getUTCDay()}
function J5q(X,f){return sw(HLX.count(ko(X),X),f,2)}
function gUi(X,f){return sw(X.getUTCFullYear()%100,f,2)}
function t86(X,f){return sw(X.getUTCFullYear()%1E4,f,4)}
function sqf(){return"+0000"}
function d8M(){return"%"}
function Gr9(X){return+X}
function Y6M(X){return Math.floor(+X/1E3)}
function tv(X){for(var f=X.length/6|0,x=Array(f),Wy=0;Wy<f;)x[Wy]="#"+X.slice(Wy*6,++Wy*6);return x}
function yf(X){return D1O(X[X.length-1])}
function aoQ(X){var f=X.length;return function(x){return X[Math.max(0,Math.min(f-1,Math.floor(x*f)))]}}
function T0R(X){this._context=X}
function vzR(X){this._curve=X}
function cuR(X,f,x){var Wy=X._x1-X._x0;f-=X._x1;var EX=(X._y1-X._y0)/(Wy||f<0&&-0);X=(x-X._y1)/(f||Wy<0&&-0);return((EX<0?-1:1)+(X<0?-1:1))*Math.min(Math.abs(EX),Math.abs(X),.5*Math.abs((EX*f+X*Wy)/(Wy+f)))||0}
function w7U(X,f){var x=X._x1-X._x0;return x?(3*(X._y1-X._y0)/x-f)/2:f}
function jTr(X,f,x){var Wy=X._x0,EX=X._x1,sX=X._y1,Cu=(EX-Wy)/3;X._context.bezierCurveTo(Wy+Cu,X._y0+Cu*f,EX-Cu,sX-Cu*x,EX,sX)}
function fsX(X){this._context=X}
function Vx6(X){this._context=X}
function LE(X,f,x){this.k=X;this.x=f;this.y=x}
(function(X){X.length===1&&(X=B(X));return{left:function(f,x,Wy,EX){Wy==null&&(Wy=0);EX==null&&(EX=f.length);for(;Wy<EX;){var sX=Wy+EX>>>1;X(f[sX],x)<0?Wy=sX+1:EX=sX}return Wy},
right:function(f,x,Wy,EX){Wy==null&&(Wy=0);EX==null&&(EX=f.length);for(;Wy<EX;){var sX=Wy+EX>>>1;X(f[sX],x)>0?EX=sX:Wy=sX+1}return Wy}}})(W);
var O69={value:function(){}};
G.prototype=z.prototype={constructor:G,on:function(X,f){var x=this._,Wy=Y(X+"",x),EX,sX=-1,Cu=Wy.length;if(arguments.length<2)for(;++sX<Cu;){var jQ;if(jQ=EX=(X=Wy[sX]).type){a:{jQ=x[EX];for(var G6=0,MR=jQ.length;G6<MR;++G6)if((EX=jQ[G6]).name===X.name){EX=EX.value;break a}EX=void 0}jQ=EX}if(jQ)return EX}else{if(f!=null&&typeof f!=="function")throw Error("Ce`"+f);for(;++sX<Cu;)if(EX=(X=Wy[sX]).type)x[EX]=d(x[EX],X.name,f);else if(f==null)for(EX in x)x[EX]=d(x[EX],X.name,null);return this}},
copy:function(){var X={},f=this._,x;for(x in f)X[x]=f[x].slice();return new G(X)},
call:function(X,f){if((EX=arguments.length-2)>0)for(var x=Array(EX),Wy=0,EX,sX;Wy<EX;++Wy)x[Wy]=arguments[Wy+2];if(!this._.hasOwnProperty(X))throw Error("we`"+X);sX=this._[X];Wy=0;for(EX=sX.length;Wy<EX;++Wy)sX[Wy].value.apply(f,x)},
apply:function(X,f,x){if(!this._.hasOwnProperty(X))throw Error("we`"+X);X=this._[X];for(var Wy=0,EX=X.length;Wy<EX;++Wy)X[Wy].value.apply(f,x)}};
var XU={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/"},JuR=function(X){return function(){return this.matches(X)}};
if(typeof document!=="undefined"){var UP=document.documentElement;if(!UP.matches){var Qq1=UP.webkitMatchesSelector||UP.msMatchesSelector||UP.mozMatchesSelector||UP.oMatchesSelector;JuR=function(X){return function(){return Qq1.call(this,X)}}}}var gzD=JuR;
Z.prototype={constructor:Z,appendChild:function(X){return this._parent.insertBefore(X,this._next)},
insertBefore:function(X,f){return this._parent.insertBefore(X,f)},
querySelector:function(X){return this._parent.querySelector(X)},
querySelectorAll:function(X){return this._parent.querySelectorAll(X)}};
var P1R={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(P1R={mouseenter:"mouseover",mouseleave:"mouseout"}));var Xtf=[null];$M.prototype=Pn.prototype={constructor:$M,select:function(X){typeof X!=="function"&&(X=t(X));for(var f=this._groups,x=f.length,Wy=Array(x),EX=0;EX<x;++EX)for(var sX=f[EX],Cu=sX.length,jQ=Wy[EX]=Array(Cu),G6,MR,YM=0;YM<Cu;++YM)(G6=sX[YM])&&(MR=X.call(G6,G6.__data__,YM,sX))&&("__data__"in G6&&(MR.__data__=G6.__data__),jQ[YM]=MR);return new $M(Wy,
this._parents)},
filter:function(X){typeof X!=="function"&&(X=gzD(X));for(var f=this._groups,x=f.length,Wy=Array(x),EX=0;EX<x;++EX)for(var sX=f[EX],Cu=sX.length,jQ=Wy[EX]=[],G6,MR=0;MR<Cu;++MR)(G6=sX[MR])&&X.call(G6,G6.__data__,MR,sX)&&jQ.push(G6);return new $M(Wy,this._parents)},
data:function(X,f){if(!X)return F6=Array(this.size()),MR=-1,this.each(function($$){F6[++MR]=$$}),F6;
var x=f?O:b,Wy=this._parents,EX=this._groups;typeof X!=="function"&&(X=l(X));for(var sX=EX.length,Cu=Array(sX),jQ=Array(sX),G6=Array(sX),MR=0;MR<sX;++MR){var YM=Wy[MR],JM=EX[MR],L7=JM.length,F6=X.call(YM,YM&&YM.__data__,MR,Wy),Cm=F6.length,nN=jQ[MR]=Array(Cm),Fp=Cu[MR]=Array(Cm);L7=G6[MR]=Array(L7);x(YM,JM,nN,Fp,L7,F6,f);JM=YM=0;for(var Uc;YM<Cm;++YM)if(L7=nN[YM]){for(YM>=JM&&(JM=YM+1);!(Uc=Fp[JM])&&++JM<Cm;);L7._next=Uc||null}}Cu=new $M(Cu,Wy);Cu._enter=jQ;Cu._exit=G6;return Cu},
enter:function(){return new $M(this._enter||this._groups.map(P),this._parents)},
exit:function(){return new $M(this._exit||this._groups.map(P),this._parents)},
merge:function(X){var f=this._groups;X=X._groups;for(var x=f.length,Wy=Math.min(x,X.length),EX=Array(x),sX=0;sX<Wy;++sX)for(var Cu=f[sX],jQ=X[sX],G6=Cu.length,MR=EX[sX]=Array(G6),YM,JM=0;JM<G6;++JM)if(YM=Cu[JM]||jQ[JM])MR[JM]=YM;for(;sX<x;++sX)EX[sX]=f[sX];return new $M(EX,this._parents)},
order:function(){for(var X=this._groups,f=-1,x=X.length;++f<x;)for(var Wy=X[f],EX=Wy.length-1,sX=Wy[EX],Cu;--EX>=0;)if(Cu=Wy[EX])sX&&sX!==Cu.nextSibling&&sX.parentNode.insertBefore(Cu,sX),sX=Cu;return this},
sort:function(X){function f(JM,L7){return JM&&L7?X(JM.__data__,L7.__data__):!JM-!L7}
X||(X=K);for(var x=this._groups,Wy=x.length,EX=Array(Wy),sX=0;sX<Wy;++sX){for(var Cu=x[sX],jQ=Cu.length,G6=EX[sX]=Array(jQ),MR,YM=0;YM<jQ;++YM)if(MR=Cu[YM])G6[YM]=MR;G6.sort(f)}return(new $M(EX,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()),f=-1;this.each(function(){X[++f]=this});
return X},
node:function(){for(var X=this._groups,f=0,x=X.length;f<x;++f)for(var Wy=X[f],EX=0,sX=Wy.length;EX<sX;++EX){var Cu=Wy[EX];if(Cu)return Cu}return null},
size:function(){var X=0;this.each(function(){++X});
return X},
empty:function(){return!this.node()},
each:function(X){for(var f=this._groups,x=0,Wy=f.length;x<Wy;++x)for(var EX=f[x],sX=0,Cu=EX.length,jQ;sX<Cu;++sX)(jQ=EX[sX])&&X.call(jQ,jQ.__data__,sX,EX);return this},
attr:function(X,f){var x=E(X);if(arguments.length<2){var Wy=this.node();return x.local?Wy.getAttributeNS(x.space,x.local):Wy.getAttribute(x)}return this.each((f==null?x.local?a:e:typeof f==="function"?x.local?By:L:x.local?n:q)(x,f))},
style:function(X,f,x){return arguments.length>1?this.each((f==null?gk:typeof f==="function"?lx:vy)(X,f,x==null?"":x)):Zv(this.node(),X)},
property:function(X,f){return arguments.length>1?this.each((f==null?VR:typeof f==="function"?X2:ux)(X,f)):this.node()[X]},
text:function(X){return arguments.length?this.each(X==null?WQ:(typeof X==="function"?wU:XH)(X)):this.node().textContent},
html:function(X){return arguments.length?this.each(X==null?RD:(typeof X==="function"?Vd:sF)(X)):this.node().innerHTML},
append:function(X){var f=typeof X==="function"?X:J(X);return this.select(function(){return this.appendChild(f.apply(this,arguments))})},
insert:function(X,f){var x=typeof X==="function"?X:J(X),Wy=f==null?bR:typeof f==="function"?f:t(f);return this.select(function(){return this.insertBefore(x.apply(this,arguments),Wy.apply(this,arguments)||null)})},
remove:function(){return this.each(Sf)},
clone:function(X){return this.select(X?pu:UF)},
datum:function(X){return arguments.length?this.property("__data__",X):this.node().__data__},
on:function(X,f,x){var Wy=cn(X+""),EX=Wy.length,sX;if(arguments.length<2){var Cu=this.node().__on;if(Cu)for(var jQ=0,G6=Cu.length,MR;jQ<G6;++jQ){var YM=0;for(MR=Cu[jQ];YM<EX;++YM)if((sX=Wy[YM]).type===MR.type&&sX.name===MR.name)return MR.value}}else{Cu=f?Gq:rU;x==null&&(x=!1);for(YM=0;YM<EX;++YM)this.each(Cu(Wy[YM],f,x));return this}},
dispatch:function(X,f){return this.each((typeof f==="function"?T6:Bn)(X,f))}};
var KGO=0;FH.prototype=function(){return new FH}.prototype={constructor:FH,
get:function(X){for(var f=this._;!(f in X);)if(!(X=X.parentNode))return;return X[f]},
set:function(X,f){return X[this._]=f},
remove:function(X){return this._ in X&&delete X[this._]},
toString:function(){return this._}};
var lw=1/.7,u39=/^#([0-9a-f]{3})$/,egi=/^#([0-9a-f]{6})$/,mmf=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),xmY=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Dmj=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),QZ6=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*\\)$"),
yLi=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),qz6=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*\\)$"),ZIQ={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};
C7(a3,wi,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
C7(nO,kY,tK(a3,{brighter:function(X){X=X==null?lw:Math.pow(lw,X);return new nO(this.r*X,this.g*X,this.b*X,this.opacity)},
darker:function(X){X=X==null?.7:Math.pow(.7,X);return new nO(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"#"+lQ(this.r)+lQ(this.g)+lQ(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+")")}}));
C7(QB,H_,tK(a3,{brighter:function(X){X=X==null?lw:Math.pow(lw,X);return new QB(this.h,this.s,this.l*X,this.opacity)},
darker:function(X){X=X==null?.7:Math.pow(.7,X);return new QB(this.h,this.s,this.l*X,this.opacity)},
rgb:function(){var X=this.h%360+(this.h<0)*360,f=this.l,x=f+(f<.5?f:1-f)*(isNaN(X)||isNaN(this.s)?0:this.s);f=2*f-x;return new nO(d3(X>=240?X-240:X+120,f,x),d3(X,f,x),d3(X<120?X+240:X-120,f,x),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 r5R=Math.PI/180,C1Q=180/Math.PI,l$R=4/29,P9=6/29,k1M=3*P9*P9,nNY=P9*P9*P9;C7(h0,function(X,f,x,Wy){return arguments.length===1?A8(X):new h0(X,f,x,Wy==null?1:Wy)},tK(a3,{brighter:function(X){return new h0(this.l+18*(X==null?1:X),this.a,this.b,this.opacity)},
darker:function(X){return new h0(this.l-18*(X==null?1:X),this.a,this.b,this.opacity)},
rgb:function(){var X=(this.l+16)/116,f=isNaN(this.a)?X:X+this.a/500,x=isNaN(this.b)?X:X-this.b/200;f=.96422*nu(f);X=1*nu(X);x=.82521*nu(x);return new nO(gU(3.1338561*f-1.6168667*X-.4906146*x),gU(-.9787684*f+1.9161415*X+.033454*x),gU(.0719453*f-.2289914*X+1.4052427*x),this.opacity)}}));
C7(lR,Ij,tK(a3,{brighter:function(X){return new lR(this.h,this.c,this.l+18*(X==null?1:X),this.opacity)},
darker:function(X){return new lR(this.h,this.c,this.l-18*(X==null?1:X),this.opacity)},
rgb:function(){return A8(this).rgb()}}));
var I$F=1.78277*-.29227-.1347134789;C7(X6,kM,tK(a3,{brighter:function(X){X=X==null?lw:Math.pow(lw,X);return new X6(this.h,this.s,this.l*X,this.opacity)},
darker:function(X){X=X==null?.7:Math.pow(.7,X);return new X6(this.h,this.s,this.l*X,this.opacity)},
rgb:function(){var X=isNaN(this.h)?0:(this.h+120)*r5R,f=+this.l,x=isNaN(this.s)?0:this.s*f*(1-f),Wy=Math.cos(X);X=Math.sin(X);return new nO(255*(f+x*(-.14861*Wy+1.78277*X)),255*(f+x*(-.29227*Wy+-.90649*X)),255*(f+1.97294*Wy*x),this.opacity)}}));
var Sr4=function x(f){function Wy(sX,Cu){var jQ=EX((sX=kY(sX)).r,(Cu=kY(Cu)).r),G6=EX(sX.g,Cu.g),MR=EX(sX.b,Cu.b),YM=nG(sX.opacity,Cu.opacity);return function(JM){sX.r=jQ(JM);sX.g=G6(JM);sX.b=MR(JM);sX.opacity=YM(JM);return sX+""}}
var EX=yB(f);Wy.gamma=x;return Wy}(1),D1O=G2(function(f){var x=f.length-1;
return function(Wy){var EX=Wy<=0?Wy=0:Wy>=1?(Wy=1,x-1):Math.floor(Wy*x),sX=f[EX],Cu=f[EX+1];return ZR((Wy-EX/x)*x,EX>0?f[EX-1]:2*sX-Cu,sX,Cu,EX<x-1?f[EX+2]:2*Cu-sX)}});
G2(function(f){var x=f.length;return function(Wy){var EX=Math.floor(((Wy%=1)<0?++Wy:Wy)*x);return ZR((Wy-EX/x)*x,f[(EX+x-1)%x],f[EX%x],f[(EX+1)%x],f[(EX+2)%x])}});
var VxT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jux=new RegExp(VxT.source,"g"),oUd=180/Math.PI,OLu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},MB,X7r,txd,Rt2,y5O=oj(function(f){if(f==="none")return OLu;MB||(MB=document.createElement("DIV"),X7r=document.documentElement,txd=document.defaultView);MB.style.transform=f;f=txd.getComputedStyle(X7r.appendChild(MB),null).getPropertyValue("transform");X7r.removeChild(MB);f=f.slice(7,-1).split(",");return Zi(+f[0],+f[1],+f[2],+f[3],
+f[4],+f[5])},"px, ","px)","deg)"),qrb=oj(function(f){if(f==null)return OLu;
Rt2||(Rt2=document.createElementNS("http://www.w3.org/2000/svg","g"));Rt2.setAttribute("transform",f);if(!(f=Rt2.transform.baseVal.consolidate()))return OLu;f=f.matrix;return Zi(f.a,f.b,f.c,f.d,f.e,f.f)},", ",")",")");
AK(eN);AK(nG);Jv(eN);Jv(nG);UY(eN);var Kmv=UY(nG),Zd=0,xv=0,Ql=0,yC2,D7,QXr=0,YQ=0,Dn8=0,mp=typeof performance==="object"&&performance.now?performance:Date,h7M=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(f){setTimeout(f,17)};
on.prototype=bs.prototype={constructor:on,restart:function(f,x,Wy){if(typeof f!=="function")throw new TypeError("De");Wy=(Wy==null?DG():+Wy)+(x==null?0:+x);this._next||D7===this||(D7?D7._next=this:yC2=this,D7=this);this._call=f;this._time=Wy;fB()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,fB())}};
var $mi=z("start","end","interrupt"),LGi=[],nUb=Pn.prototype.constructor,sT6=0,Cz=Pn.prototype;RT.prototype=function(f){return Pn().transition(f)}.prototype={constructor:RT,
select:function(f){var x=this._name,Wy=this._id;typeof f!=="function"&&(f=t(f));for(var EX=this._groups,sX=EX.length,Cu=Array(sX),jQ=0;jQ<sX;++jQ)for(var G6=EX[jQ],MR=G6.length,YM=Cu[jQ]=Array(MR),JM,L7,F6=0;F6<MR;++F6)(JM=G6[F6])&&(L7=f.call(JM,JM.__data__,F6,G6))&&("__data__"in JM&&(L7.__data__=JM.__data__),YM[F6]=L7,gz8(YM[F6],x,Wy,F6,YM,b_(JM,Wy)));return new RT(Cu,this._parents,x,Wy)},
filter:function(f){typeof f!=="function"&&(f=gzD(f));for(var x=this._groups,Wy=x.length,EX=Array(Wy),sX=0;sX<Wy;++sX)for(var Cu=x[sX],jQ=Cu.length,G6=EX[sX]=[],MR,YM=0;YM<jQ;++YM)(MR=Cu[YM])&&f.call(MR,MR.__data__,YM,Cu)&&G6.push(MR);return new RT(EX,this._parents,this._name,this._id)},
merge:function(f){if(f._id!==this._id)throw Error();var x=this._groups;f=f._groups;for(var Wy=x.length,EX=Math.min(Wy,f.length),sX=Array(Wy),Cu=0;Cu<EX;++Cu)for(var jQ=x[Cu],G6=f[Cu],MR=jQ.length,YM=sX[Cu]=Array(MR),JM,L7=0;L7<MR;++L7)if(JM=jQ[L7]||G6[L7])YM[L7]=JM;for(;Cu<Wy;++Cu)sX[Cu]=x[Cu];return new RT(sX,this._parents,this._name,this._id)},
selection:function(){return new nUb(this._groups,this._parents)},
transition:function(){for(var f=this._name,x=this._id,Wy=++sT6,EX=this._groups,sX=EX.length,Cu=0;Cu<sX;++Cu)for(var jQ=EX[Cu],G6=jQ.length,MR,YM=0;YM<G6;++YM)if(MR=jQ[YM]){var JM=b_(MR,x);gz8(MR,f,Wy,YM,jQ,{time:JM.time+JM.delay+JM.duration,delay:0,duration:JM.duration,ease:JM.ease})}return new RT(EX,this._parents,f,Wy)},
call:Cz.call,nodes:Cz.nodes,node:Cz.node,size:Cz.size,empty:Cz.empty,each:Cz.each,on:function(f,x){var Wy=this._id;return arguments.length<2?b_(this.node(),Wy).on.on(f):this.each(cwn(Wy,f,x))},
attr:function(f,x){var Wy=E(f),EX=Wy==="transform"?qrb:FtH;return this.attrTween(f,typeof x==="function"?(Wy.local?G3j:zNq)(Wy,EX,sTT(this,"attr."+f,x)):x==null?(Wy.local?Rgf:aL0)(Wy):(Wy.local?BP0:Wx6)(Wy,EX,x+""))},
attrTween:function(f,x){var Wy="attr."+f;if(arguments.length<2)return(Wy=this.tween(Wy))&&Wy._value;if(x==null)return this.tween(Wy,null);if(typeof x!=="function")throw Error();var EX=E(f);return this.tween(Wy,(EX.local?Ypb:dGO)(EX,x))},
style:function(f,x,Wy){var EX=f==="transform"?y5O:FtH;return x==null?this.styleTween(f,VdO(f,EX)).on("end.style."+f,Jwf(f)):this.styleTween(f,typeof x==="function"?tdr(f,EX,sTT(this,"style."+f,x)):g3f(f,EX,x+""),Wy)},
styleTween:function(f,x,Wy){var EX="style."+f;if(arguments.length<2)return(EX=this.tween(EX))&&EX._value;if(x==null)return this.tween(EX,null);if(typeof x!=="function")throw Error();return this.tween(EX,sH6(f,x,Wy==null?"":Wy))},
text:function(f){return this.tween("text",typeof f==="function"?ZSq(sTT(this,"text",f)):Pii(f==null?"":f+""))},
remove:function(){return this.on("end.remove",wOn(this._id))},
tween:function(f,x){var Wy=this._id;if(arguments.length<2){Wy=b_(this.node(),Wy).tween;for(var EX=0,sX=Wy.length,Cu;EX<sX;++EX)if((Cu=Wy[EX]).name===f)return Cu.value;return null}return this.each((x==null?Um9:M9q)(Wy,f,x))},
delay:function(f){var x=this._id;return arguments.length?this.each((typeof f==="function"?pOf:Awf)(x,f)):b_(this.node(),x).delay},
duration:function(f){var x=this._id;return arguments.length?this.each((typeof f==="function"?iSK:E3O)(x,f)):b_(this.node(),x).duration},
ease:function(f){var x=this._id;return arguments.length?this.each(TPf(x,f)):b_(this.node(),x).ease}};
var u$k={time:null,delay:0,duration:250,ease:function(f){return((f*=2)<=1?f*f*f:(f-=2)*f*f+2)/2}};
Pn.prototype.transition=function(f){var x;if(f instanceof RT){var Wy=f._id;f=f._name}else Wy=++sT6,(x=u$k).time=DG(),f=f==null?null:f+"";for(var EX=this._groups,sX=EX.length,Cu=0;Cu<sX;++Cu)for(var jQ=EX[Cu],G6=jQ.length,MR,YM=0;YM<G6;++YM)if(MR=jQ[YM]){var JM=MR,L7=f,F6=Wy,Cm=YM,nN=jQ,Fp;if(!(Fp=x))a:{Fp=void 0;for(var Uc=Wy;!(Fp=MR.__transition)||!(Fp=Fp[Uc]);)if(!(MR=MR.parentNode)){Fp=(u$k.time=DG(),u$k);break a}}gz8(JM,L7,F6,Cm,nN,Fp)}return new RT(EX,this._parents,f,Wy)};
["e","w"].map(PuD);["n","s"].map(PuD);"n e s w nw ne se sw".split(" ").map(PuD);ZLk.prototype=function(){return new ZLk}.prototype={constructor:ZLk,
moveTo:function(f,x){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+x)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(f,x){this._+="L"+(this._x1=+f)+","+(this._y1=+x)},
bezierCurveTo:function(f,x,Wy,EX,sX,Cu){this._+="C"+ +f+","+ +x+","+ +Wy+","+ +EX+","+(this._x1=+sX)+","+(this._y1=+Cu)},
rect:function(f,x,Wy,EX){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+x)+"h"+ +Wy+"v"+ +EX+"h"+-Wy+"Z"},
toString:function(){return this._}};
qAu.prototype=bIR.prototype={constructor:qAu,has:function(f){return" "+f in this},
get:function(f){return this[" "+f]},
set:function(f,x){this[" "+f]=x;return this},
remove:function(f){f=" "+f;return f in this&&delete this[f]},
clear:function(){for(var f in this)f[0]===" "&&delete this[f]},
keys:function(){var f=[],x;for(x in this)x[0]===" "&&f.push(x.slice(1));return f},
values:function(){var f=[],x;for(x in this)x[0]===" "&&f.push(this[x]);return f},
entries:function(){var f=[],x;for(x in this)x[0]===" "&&f.push({key:x.slice(1),value:this[x]});return f},
size:function(){var f=0,x;for(x in this)x[0]===" "&&++f;return f},
empty:function(){for(var f in this)if(f[0]===" ")return!1;return!0},
each:function(f){for(var x in this)x[0]===" "&&f(this[x],x.slice(1),this)}};
var i4=bIR.prototype;n8t.prototype=function(f,x){var Wy=new n8t;if(f instanceof n8t)f.each(function(Cu){Wy.add(Cu)});
else if(f){var EX=-1,sX=f.length;if(x==null)for(;++EX<sX;)Wy.add(f[EX]);else for(;++EX<sX;)Wy.add(x(f[EX],EX,f))}return Wy}.prototype={constructor:n8t,
has:i4.has,add:function(f){this[" "+f]=f;return this},
remove:i4.remove,clear:i4.clear,values:i4.keys,size:i4.size,empty:i4.empty,each:i4.each};var OId={},ruR={},NW6=f$U(",").parse,$1j=f$U("\t").parse;XzH(NW6);XzH($1j);var xw=function(f,x,Wy){x=new kry(x==null?Ciq:x,Wy==null?I6n:Wy,NaN,NaN,NaN,NaN);return f==null?x:x.addAll(f)}.prototype=kry.prototype;
xw.copy=function(){var f=new kry(this._x,this._y,this._x0,this._y0,this._x1,this._y1),x=this._root,Wy,EX;if(!x)return f;if(!x.length)return f._root=uIH(x),f;for(Wy=[{source:x,target:f._root=Array(4)}];x=Wy.pop();)for(var sX=0;sX<4;++sX)if(EX=x.source[sX])EX.length?Wy.push({source:EX,target:x.target[sX]=Array(4)}):x.target[sX]=uIH(EX);return f};
xw.add=function(f){var x=+this._x.call(null,f),Wy=+this._y.call(null,f);return KtR(this.cover(x,Wy),x,Wy,f)};
xw.addAll=function(f){var x,Wy,EX=f.length,sX,Cu,jQ=Array(EX),G6=Array(EX),MR=Infinity,YM=Infinity,JM=-Infinity,L7=-Infinity;for(Wy=0;Wy<EX;++Wy)isNaN(sX=+this._x.call(null,x=f[Wy]))||isNaN(Cu=+this._y.call(null,x))||(jQ[Wy]=sX,G6[Wy]=Cu,sX<MR&&(MR=sX),sX>JM&&(JM=sX),Cu<YM&&(YM=Cu),Cu>L7&&(L7=Cu));JM<MR&&(MR=this._x0,JM=this._x1);L7<YM&&(YM=this._y0,L7=this._y1);this.cover(MR,YM).cover(JM,L7);for(Wy=0;Wy<EX;++Wy)KtR(this,jQ[Wy],G6[Wy],f[Wy]);return this};
xw.cover=function(f,x){if(isNaN(f=+f)||isNaN(x=+x))return this;var Wy=this._x0,EX=this._y0,sX=this._x1,Cu=this._y1;if(isNaN(Wy))sX=(Wy=Math.floor(f))+1,Cu=(EX=Math.floor(x))+1;else if(Wy>f||f>sX||EX>x||x>Cu){var jQ=sX-Wy,G6=this._root,MR;switch(MR=(x<(EX+Cu)/2)<<1|f<(Wy+sX)/2){case 0:do{var YM=Array(4);YM[MR]=G6;G6=YM}while(jQ*=2,sX=Wy+jQ,Cu=EX+jQ,f>sX||x>Cu);break;case 1:do YM=Array(4),YM[MR]=G6,G6=YM;while(jQ*=2,Wy=sX-jQ,Cu=EX+jQ,Wy>f||x>Cu);break;case 2:do YM=Array(4),YM[MR]=G6,G6=YM;while(jQ*=
2,sX=Wy+jQ,EX=Cu-jQ,f>sX||EX>x);break;case 3:do YM=Array(4),YM[MR]=G6,G6=YM;while(jQ*=2,Wy=sX-jQ,EX=Cu-jQ,Wy>f||EX>x)}this._root&&this._root.length&&(this._root=G6)}else return this;this._x0=Wy;this._y0=EX;this._x1=sX;this._y1=Cu;return this};
xw.data=function(){var f=[];this.visit(function(x){if(!x.length){do f.push(x.data);while(x=x.next)}});
return f};
xw.extent=function(f){return arguments.length?this.cover(+f[0][0],+f[0][1]).cover(+f[1][0],+f[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
xw.find=function(f,x,Wy){var EX=this._x0,sX=this._y0,Cu,jQ,G6,MR,YM=this._x1,JM=this._y1,L7=[],F6=this._root,Cm;F6&&L7.push(new ms(F6,EX,sX,YM,JM));Wy==null?Wy=Infinity:(EX=f-Wy,sX=x-Wy,YM=f+Wy,JM=x+Wy,Wy*=Wy);for(;Cm=L7.pop();)if(!(!(F6=Cm.node)||(Cu=Cm.x0)>YM||(jQ=Cm.y0)>JM||(G6=Cm.x1)<EX||(MR=Cm.y1)<sX))if(F6.length){Cm=(Cu+G6)/2;var nN=(jQ+MR)/2;L7.push(new ms(F6[3],Cm,nN,G6,MR),new ms(F6[2],Cu,nN,Cm,MR),new ms(F6[1],Cm,jQ,G6,nN),new ms(F6[0],Cu,jQ,Cm,nN));if(F6=(x>=nN)<<1|f>=Cm)Cm=L7[L7.length-
1],L7[L7.length-1]=L7[L7.length-1-F6],L7[L7.length-1-F6]=Cm}else if(Cm=f-+this._x.call(null,F6.data),nN=x-+this._y.call(null,F6.data),Cm=Cm*Cm+nN*nN,Cm<Wy){var Fp=Math.sqrt(Wy=Cm);EX=f-Fp;sX=x-Fp;YM=f+Fp;JM=x+Fp;Fp=F6.data}return Fp};
xw.remove=function(f){if(isNaN(MR=+this._x.call(null,f))||isNaN(YM=+this._y.call(null,f)))return this;var x,Wy=this._root,EX,sX=this._x0,Cu=this._y0,jQ=this._x1,G6=this._y1,MR,YM,JM,L7,F6,Cm,nN;if(!Wy)return this;if(Wy.length)for(;;){(F6=MR>=(JM=(sX+jQ)/2))?sX=JM:jQ=JM;(Cm=YM>=(L7=(Cu+G6)/2))?Cu=L7:G6=L7;if(!(x=Wy,Wy=Wy[nN=Cm<<1|F6]))return this;if(!Wy.length)break;if(x[nN+1&3]||x[nN+2&3]||x[nN+3&3]){var Fp=x;var Uc=nN}}for(;Wy.data!==f;)if(!(EX=Wy,Wy=Wy.next))return this;(f=Wy.next)&&delete Wy.next;
if(EX)return f?EX.next=f:delete EX.next,this;if(!x)return this._root=f,this;f?x[nN]=f:delete x[nN];(Wy=x[0]||x[1]||x[2]||x[3])&&Wy===(x[3]||x[2]||x[1]||x[0])&&!Wy.length&&(Fp?Fp[Uc]=Wy:this._root=Wy);return this};
xw.removeAll=function(f){for(var x=0,Wy=f.length;x<Wy;++x)this.remove(f[x]);return this};
xw.root=function(){return this._root};
xw.size=function(){var f=0;this.visit(function(x){if(!x.length){do++f;while(x=x.next)}});
return f};
xw.visit=function(f){var x=[],Wy,EX=this._root,sX,Cu,jQ,G6,MR;for(EX&&x.push(new ms(EX,this._x0,this._y0,this._x1,this._y1));Wy=x.pop();)if(!f(EX=Wy.node,Cu=Wy.x0,jQ=Wy.y0,G6=Wy.x1,MR=Wy.y1)&&EX.length){Wy=(Cu+G6)/2;var YM=(jQ+MR)/2;(sX=EX[3])&&x.push(new ms(sX,Wy,YM,G6,MR));(sX=EX[2])&&x.push(new ms(sX,Cu,YM,Wy,MR));(sX=EX[1])&&x.push(new ms(sX,Wy,jQ,G6,YM));(sX=EX[0])&&x.push(new ms(sX,Cu,jQ,Wy,YM))}};
xw.visitAfter=function(f){var x=[],Wy=[],EX;for(this._root&&x.push(new ms(this._root,this._x0,this._y0,this._x1,this._y1));EX=x.pop();){var sX=EX.node;if(sX.length){var Cu,jQ=EX.x0,G6=EX.y0,MR=EX.x1,YM=EX.y1,JM=(jQ+MR)/2,L7=(G6+YM)/2;(Cu=sX[0])&&x.push(new ms(Cu,jQ,G6,JM,L7));(Cu=sX[1])&&x.push(new ms(Cu,JM,G6,MR,L7));(Cu=sX[2])&&x.push(new ms(Cu,jQ,L7,JM,YM));(Cu=sX[3])&&x.push(new ms(Cu,JM,L7,MR,YM))}Wy.push(EX)}for(;EX=Wy.pop();)f(EX.node,EX.x0,EX.y0,EX.x1,EX.y1);return this};
xw.x=function(f){return arguments.length?(this._x=f,this):this._x};
xw.y=function(f){return arguments.length?(this._y=f,this):this._y};
var Fxi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;lsu.prototype=CuX.prototype;CuX.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 D17,QqD={"%":function(f,x){return(f*100).toFixed(x)},
b:function(f){return Math.round(f).toString(2)},
c:function(f){return f+""},
d:function(f){return Math.round(f).toString(10)},
e:function(f,x){return f.toExponential(x)},
f:function(f,x){return f.toFixed(x)},
g:function(f,x){return f.toPrecision(x)},
o:function(f){return Math.round(f).toString(8)},
p:function(f,x){return e76(f*100,x)},
r:e76,s:function(f,x){var Wy=NOt(f,x);if(!Wy)return f+"";var EX=Wy[0];Wy=Wy[1];Wy=Wy-(D17=Math.max(-8,Math.min(8,Math.floor(Wy/3)))*3)+1;var sX=EX.length;return Wy===sX?EX:Wy>sX?EX+Array(Wy-sX+1).join("0"):Wy>0?EX.slice(0,Wy)+"."+EX.slice(Wy):"0."+Array(1-Wy).join("0")+NOt(f,Math.max(0,x+Wy-1))[0]},
X:function(f){return Math.round(f).toString(16).toUpperCase()},
x:function(f){return Math.round(f).toString(16)}},x1R="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),Ltb;
(function(f){return Ltb=Spr(f)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Hq.prototype={constructor:Hq,reset:function(){this.s=this.t=0},
add:function(f){y57(Wgt,f,this.t);y57(this,Wgt.s,this.s);this.s?this.t+=Wgt.t:this.s=Wgt.t},
valueOf:function(){return this.s}};
var Wgt=new Hq,uY=Math.PI,KQ=uY/2,Puu=uY/4,U1f=uY*2,ePR=uY/180,WN=Math.abs,m8u=Math.atan,U1T=Math.atan2,ur=Math.cos,IE=Math.sin,LHk=Math.sqrt;new Hq;new Hq;new Hq;var x8R=new Hq;(function(f,x,Wy,EX){return function(sX){function Cu(LR,PC){f(LR,PC)&&sX.point(LR,PC)}
function jQ(LR,PC){F6.point(LR,PC)}
function G6(){L2.point=jQ;F6.lineStart()}
function MR(){L2.point=Cu;F6.lineEnd()}
function YM(LR,PC){Vg.push([LR,PC]);nN.point(LR,PC)}
function JM(){nN.lineStart();Vg=[]}
function L7(){YM(Vg[0][0],Vg[0][1]);nN.lineEnd();var LR=nN.clean(),PC=Cm.result(),Lm=PC.length,pG;Vg.pop();Uc.push(Vg);Vg=null;if(Lm)if(LR&1){if(Lm=PC[0],(PC=Lm.length-1)>0){Fp||(sX.polygonStart(),Fp=!0);sX.lineStart();for(LR=0;LR<PC;++LR)sX.point((pG=Lm[LR])[0],pG[1]);sX.lineEnd()}}else Lm>1&&LR&2&&PC.push(PC.pop().concat(PC.shift())),$$.push(PC.filter(OSb))}
var F6=x(sX),Cm=jHK(),nN=x(Cm),Fp=!1,Uc,$$,Vg,L2={point:Cu,lineStart:G6,lineEnd:MR,polygonStart:function(){L2.point=YM;L2.lineStart=JM;L2.lineEnd=L7;$$=[];Uc=[]},
polygonEnd:function(){L2.point=Cu;L2.lineStart=G6;L2.lineEnd=MR;var LR=$$,PC=LR.length;var Lm=-1;for(var pG=0,Di,kh;++Lm<PC;)pG+=LR[Lm].length;for(Di=Array(pG);--PC>=0;)for(kh=LR[PC],Lm=kh.length;--Lm>=0;)Di[--pG]=kh[Lm];$$=Di;LR=Uc;PC=EX[0];pG=EX[1];var T_=IE(pG);Lm=[IE(PC),-ur(PC),0];kh=Di=0;x8R.reset();T_===1?pG=KQ+1E-6:T_===-1&&(pG=-KQ-1E-6);T_=0;for(var jf=LR.length;T_<jf;++T_)if(Kl=(Qf=LR[T_]).length){var Qf,Kl,Ml=Qf[Kl-1],wO=Ml[0],iJ=Ml[1]/2+Puu,B2R=IE(iJ),ZLU=ur(iJ);for(iJ=0;iJ<Kl;++iJ,wO=
D8t,B2R=ruT,ZLU=az,Ml=z3u){var z3u=Qf[iJ],D8t=z3u[0];az=z3u[1]/2+Puu;var ruT=IE(az),az=ur(az),Iv=D8t-wO,QT2=Iv>=0?1:-1,yu0=QT2*Iv,GUv=yu0>uY;B2R*=ruT;x8R.add(U1T(B2R*QT2*IE(yu0),ZLU*az+B2R*ur(yu0)));Di+=GUv?Iv+QT2*U1f:Iv;GUv^wO>=PC^D8t>=PC&&(Ml=nUF(qrF(Ml),qrF(z3u)),NWH(Ml),wO=nUF(Lm,Ml),NWH(wO),wO=(GUv^Iv>=0?-1:1)*$nT(wO[2]),pG>wO||pG===wO&&(Ml[0]||Ml[1]))&&(kh+=GUv^Iv>=0?1:-1)}}LR=(Di<-1E-6||Di<1E-6&&x8R<-1E-6)^kh&1;$$.length?(Fp||(sX.polygonStart(),Fp=!0),f66($$,XOq,LR,Wy,sX)):LR&&(Fp||(sX.polygonStart(),
Fp=!0),sX.lineStart(),Wy(null,null,1,sX),sX.lineEnd());Fp&&(sX.polygonEnd(),Fp=!1);$$=Uc=null},
sphere:function(){sX.polygonStart();sX.lineStart();Wy(null,null,1,sX);sX.lineEnd();sX.polygonEnd()}};
return L2}})(function(){return!0},function(f){var x=NaN,Wy=NaN,EX=NaN,sX;
return{lineStart:function(){f.lineStart();sX=1},
point:function(Cu,jQ){var G6=Cu>0?uY:-uY,MR=WN(Cu-x);if(WN(MR-uY)<1E-6)f.point(x,Wy=(Wy+jQ)/2>0?KQ:-KQ),f.point(EX,Wy),f.lineEnd(),f.lineStart(),f.point(G6,Wy),f.point(Cu,Wy),sX=0;else if(EX!==G6&&MR>=uY){WN(x-EX)<1E-6&&(x-=EX*1E-6);WN(Cu-G6)<1E-6&&(Cu-=G6*1E-6);MR=x;var YM=Wy,JM=Cu,L7,F6,Cm=IE(MR-JM);Wy=WN(Cm)>1E-6?m8u((IE(YM)*(F6=ur(jQ))*IE(JM)-IE(jQ)*(L7=ur(YM))*IE(MR))/(L7*F6*Cm)):(YM+jQ)/2;f.point(EX,Wy);f.lineEnd();f.lineStart();f.point(G6,Wy);sX=0}f.point(x=Cu,Wy=jQ);EX=G6},
lineEnd:function(){f.lineEnd();x=Wy=NaN},
clean:function(){return 2-sX}}},function(f,x,Wy,EX){f==null?(Wy*=KQ,EX.point(-uY,Wy),EX.point(0,Wy),EX.point(uY,Wy),EX.point(uY,0),EX.point(uY,-Wy),EX.point(0,-Wy),EX.point(-uY,-Wy),EX.point(-uY,0),EX.point(-uY,Wy)):WN(f[0]-x[0])>1E-6?(f=f[0]<x[0]?uY:-uY,Wy=Wy*f/2,EX.point(-f,Wy),EX.point(0,Wy),EX.point(f,Wy)):EX.point(x[0],x[1])},[-uY,
-KQ]);new Hq;new Hq;new Hq;new Hq;Isk.prototype={constructor:Isk,point:function(f,x){this.stream.point(f,x)},
sphere:function(){this.stream.sphere()},
lineStart:function(){this.stream.lineStart()},
lineEnd:function(){this.stream.lineEnd()},
polygonStart:function(){this.stream.polygonStart()},
polygonEnd:function(){this.stream.polygonEnd()}};
ur(30*ePR);(function(f){return function(x){var Wy=new Isk,EX;for(EX in f)Wy[EX]=f[EX];Wy.stream=x;return Wy}})({point:function(f,x){this.stream.point(f*ePR,x*ePR)}});
LtF(function(f){return LHk(2/(1+f))}).invert=yl(function(f){return 2*$nT(f/2)});
LtF(function(f){return(f=f>1?0:f<-1?uY:Math.acos(f))&&f/IE(f)}).invert=yl(function(f){return f});
LHk(3);yl(m8u);yl($nT);yl(function(f){return 2*m8u(f)});
qB.prototype=M8F.prototype={constructor:qB,count:function(){return this.eachAfter(Kxf)},
each:function(f){var x,Wy=[this],EX;do{var sX=Wy.reverse();for(Wy=[];x=sX.pop();)if(f(x),x=x.children){var Cu=0;for(EX=x.length;Cu<EX;++Cu)Wy.push(x[Cu])}}while(Wy.length);return this},
eachAfter:function(f){for(var x,Wy=[this],EX=[],sX,Cu;x=Wy.pop();)if(EX.push(x),x=x.children)for(sX=0,Cu=x.length;sX<Cu;++sX)Wy.push(x[sX]);for(;x=EX.pop();)f(x);return this},
eachBefore:function(f){for(var x,Wy=[this],EX;x=Wy.pop();)if(f(x),x=x.children)for(EX=x.length-1;EX>=0;--EX)Wy.push(x[EX]);return this},
sum:function(f){return this.eachAfter(function(x){for(var Wy=+f(x.data)||0,EX=x.children,sX=EX&&EX.length;--sX>=0;)Wy+=EX[sX].value;x.value=Wy})},
sort:function(f){return this.eachBefore(function(x){x.children&&x.children.sort(f)})},
path:function(f){var x=this;var Wy=x;var EX=f;if(Wy!==EX){var sX=Wy.ancestors(),Cu=EX.ancestors(),jQ=null;Wy=sX.pop();for(EX=Cu.pop();Wy===EX;)jQ=Wy,Wy=sX.pop(),EX=Cu.pop();Wy=jQ}for(EX=[x];x!==Wy;)x=x.parent,EX.push(x);for(x=EX.length;f!==Wy;)EX.splice(x,0,f),f=f.parent;return EX},
ancestors:function(){for(var f=this,x=[f];f=f.parent;)x.push(f);return x},
links:function(){var f=this,x=[];f.each(function(Wy){Wy!==f&&x.push({source:Wy.parent,target:Wy})});
return x},
copy:function(){return M8F(this).eachBefore(mGn)}};
(function(f,x){this._=f;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=x}).prototype=Object.create(qB.prototype);
var oz8=new Date,hPR=new Date,krQ=Ty(function(){},function(f,x){f.setTime(+f+x)},function(f,x){return x-f});
krQ.every=function(f){f=Math.floor(f);return isFinite(f)&&f>0?f>1?Ty(function(x){x.setTime(Math.floor(x/f)*f)},function(x,Wy){x.setTime(+x+Wy*f)},function(x,Wy){return(Wy-x)/f}):krQ:null};
Ty(function(f){f.setTime(Math.floor(f/1E3)*1E3)},function(f,x){f.setTime(+f+x*1E3)},function(f,x){return(x-f)/1E3},function(f){return f.getUTCSeconds()});
Ty(function(f){f.setTime(Math.floor(f/6E4)*6E4)},function(f,x){f.setTime(+f+x*6E4)},function(f,x){return(x-f)/6E4},function(f){return f.getMinutes()});
Ty(function(f){var x=f.getTimezoneOffset()*6E4%36E5;x<0&&(x+=36E5);f.setTime(Math.floor((+f-x)/36E5)*36E5+x)},function(f,x){f.setTime(+f+x*36E5)},function(f,x){return(x-f)/36E5},function(f){return f.getHours()});
var Wm4=Ty(function(f){f.setHours(0,0,0,0)},function(f,x){f.setDate(f.getDate()+x)},function(f,x){return(x-f-(x.getTimezoneOffset()-f.getTimezoneOffset())*6E4)/864E5},function(f){return f.getDate()-1}),m1f=pM(0),Fmr=pM(1);
pM(2);pM(3);var S6Q=pM(4);pM(5);pM(6);Ty(function(f){f.setDate(1);f.setHours(0,0,0,0)},function(f,x){f.setMonth(f.getMonth()+x)},function(f,x){return x.getMonth()-f.getMonth()+(x.getFullYear()-f.getFullYear())*12},function(f){return f.getMonth()});
var rB=Ty(function(f){f.setMonth(0,1);f.setHours(0,0,0,0)},function(f,x){f.setFullYear(f.getFullYear()+x)},function(f,x){return x.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});
rB.every=function(f){return isFinite(f=Math.floor(f))&&f>0?Ty(function(x){x.setFullYear(Math.floor(x.getFullYear()/f)*f);x.setMonth(0,1);x.setHours(0,0,0,0)},function(x,Wy){x.setFullYear(x.getFullYear()+Wy*f)}):null};
Ty(function(f){f.setUTCSeconds(0,0)},function(f,x){f.setTime(+f+x*6E4)},function(f,x){return(x-f)/6E4},function(f){return f.getUTCMinutes()});
Ty(function(f){f.setUTCMinutes(0,0,0)},function(f,x){f.setTime(+f+x*36E5)},function(f,x){return(x-f)/36E5},function(f){return f.getUTCHours()});
var R7R=Ty(function(f){f.setUTCHours(0,0,0,0)},function(f,x){f.setUTCDate(f.getUTCDate()+x)},function(f,x){return(x-f)/864E5},function(f){return f.getUTCDate()-1}),x1f=AU(0),HLX=AU(1);
AU(2);AU(3);var bLr=AU(4);AU(5);AU(6);Ty(function(f){f.setUTCDate(1);f.setUTCHours(0,0,0,0)},function(f,x){f.setUTCMonth(f.getUTCMonth()+x)},function(f,x){return x.getUTCMonth()-f.getUTCMonth()+(x.getUTCFullYear()-f.getUTCFullYear())*12},function(f){return f.getUTCMonth()});
var ko=Ty(function(f){f.setUTCMonth(0,1);f.setUTCHours(0,0,0,0)},function(f,x){f.setUTCFullYear(f.getUTCFullYear()+x)},function(f,x){return x.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});
ko.every=function(f){return isFinite(f=Math.floor(f))&&f>0?Ty(function(x){x.setUTCFullYear(Math.floor(x.getUTCFullYear()/f)*f);x.setUTCMonth(0,1);x.setUTCHours(0,0,0,0)},function(x,Wy){x.setUTCFullYear(x.getUTCFullYear()+Wy*f)}):null};
var a$T={"-":"",_:" ",0:"0"},Jq=/^\s*\d+/,e7q=/^%/,uI6=/[\\^$*+?|[\]().{}]/g,YER;(function(f){YER=DG0(f);h$4=YER.utcFormat;H2U=YER.utcParse;return YER})({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||h$4("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||H2U("%Y-%m-%dT%H:%M:%S.%LZ");tv("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
tv("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");tv("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");tv("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");tv("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");tv("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");tv("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
tv("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");tv("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");tv("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");tv("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");tv("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var M8b=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(tv);yf(M8b);var a$f=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(tv);yf(a$f);var R7f=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(tv);yf(R7f);var Wm0=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(tv);
yf(Wm0);var B0r=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(tv);yf(B0r);var zPf=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(tv);yf(zPf);var Gri=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(tv);yf(Gri);var Y6Y=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(tv);yf(Y6Y);var d8K=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(tv);yf(d8K);var p7Y=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(tv);yf(p7Y);var Au0=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(tv);yf(Au0);var iL9=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(tv);yf(iL9);var EzK=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(tv);yf(EzK);var T0f=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(tv);yf(T0f);var vz9=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(tv);yf(vz9);var cu9=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(tv);yf(cu9);var w7i=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(tv);yf(w7i);var Vxq=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(tv);yf(Vxq);var Ju9=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(tv);yf(Ju9);var gz1=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(tv);yf(gz1);var txr=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(tv);yf(txr);var sTq=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(tv);yf(sTq);var Puj=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(tv);yf(Puj);var ZLi=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(tv);yf(ZLi);var ruf=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(tv);yf(ruf);var krn=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(tv);yf(krn);var lsO=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(tv);yf(lsO);Kmv(kM(300,.5,0),kM(-240,.5,1));Kmv(kM(-100,.75,.35),kM(80,1.5,.8));Kmv(kM(260,.75,.35),kM(80,1.5,.8));kM();kY();aoQ(tv("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
aoQ(tv("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
aoQ(tv("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
aoQ(tv("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
T0R.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(f,x){f=+f;x=+x;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(f,x):this._context.moveTo(f,x);break;case 1:this._point=2;default:this._context.lineTo(f,x)}}};
(function(f){function x(Wy){return new vzR(f(Wy))}
x._curve=f;return x})(function(f){return new T0R(f)});
vzR.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(f,x){this._curve.point(x*Math.sin(f),x*-Math.cos(f))}};
fsX.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:jTr(this,this._t0,w7U(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(f,x){var Wy=NaN;f=+f;x=+x;if(f!==this._x1||x!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(f,x):this._context.moveTo(f,x);break;case 1:this._point=2;break;case 2:this._point=3;jTr(this,w7U(this,Wy=cuR(this,f,x)),Wy);break;default:jTr(this,this._t0,Wy=cuR(this,f,x))}this._x0=this._x1;this._x1=f;this._y0=this._y1;this._y1=x;this._t0=Wy}}};
(function(f){this._context=new Vx6(f)}.prototype=Object.create(fsX.prototype)).point=function(f,x){fsX.prototype.point.call(this,x,f)};
Vx6.prototype={moveTo:function(f,x){this._context.moveTo(x,f)},
closePath:function(){this._context.closePath()},
lineTo:function(f,x){this._context.lineTo(x,f)},
bezierCurveTo:function(f,x,Wy,EX,sX,Cu){this._context.bezierCurveTo(x,f,EX,Wy,Cu,sX)}};
LE.prototype={constructor:LE,scale:function(f){return f===1?this:new LE(this.k*f,this.x,this.y)},
translate:function(f,x){return f===0&x===0?this:new LE(this.k,this.x+this.k*f,this.y+this.k*x)},
apply:function(f){return[f[0]*this.k+this.x,f[1]*this.k+this.y]},
invert:function(f){return[(f[0]-this.x)/this.k,(f[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new LE(1,0,0);NX2=wi;XU.svg=XU.svg;XU.xhtml=XU.xhtml;XU.xlink=XU.xlink;XU.xml=XU.xml;XU.xmlns=XU.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 FCT="hammer_"+(Math.random()*1E6|0),SM4=function(){var W=document||document;if(!W[FCT]){var B=function(){(function(z,G,Y,d){function E(h0,eQ,nu){return setTimeout(P(h0,nu),eQ)}
function v(h0,eQ,nu){return Array.isArray(h0)?(c(h0,nu[eQ],nu),!0):!1}
function c(h0,eQ,nu){var gU;if(h0)if(h0.forEach)h0.forEach(eQ,nu);else if(h0.length!==d){var Vr=0;for(gU=h0.length;Vr<gU;Vr++)eQ.call(nu,h0[Vr],Vr,h0)}else for(Vr in h0)h0.hasOwnProperty(Vr)&&eQ.call(nu,h0[Vr],Vr,h0)}
function J(h0,eQ,nu){for(var gU=Object.keys(eQ),Vr=0,fm=gU.length;Vr<fm;Vr++)if(!nu||nu&&h0[gU[Vr]]===d)h0[gU[Vr]]=eQ[gU[Vr]];return h0}
function g(h0,eQ){return J(h0,eQ,!0)}
function t(h0,eQ,nu){eQ=eQ.prototype;var gU=h0.prototype=Object.create(eQ);gU.constructor=h0;gU._super=eQ;nu&&J(gU,nu)}
function P(h0,eQ){return function(){return h0.apply(eQ,arguments)}}
function Z(h0,eQ){return typeof h0=="function"?h0.apply(eQ?eQ[0]||d:d,eQ):h0}
function l(h0,eQ,nu){c(O(eQ),function(gU){h0.addEventListener(gU,nu,!1)})}
function b(h0,eQ,nu){c(O(eQ),function(gU){h0.removeEventListener(gU,nu,!1)})}
function O(h0){return h0.trim().split(/\s+/g)}
function K(h0,eQ,nu){if(h0.indexOf&&!nu)return h0.indexOf(eQ);for(var gU=0,Vr=h0.length;gU<Vr;gU++)if(nu&&h0[gU][nu]==eQ||!nu&&h0[gU]===eQ)return gU;return-1}
function e(h0,eQ,nu){for(var gU=[],Vr=[],fm=0,Ij=h0.length;fm<Ij;fm++){var lR=eQ?h0[fm][eQ]:h0[fm];K(Vr,lR)<0&&gU.push(h0[fm]);Vr[fm]=lR}nu&&(gU=eQ?gU.sort(function(kM,X6){return kM[eQ]>X6[eQ]}):gU.sort());
return gU}
function a(h0,eQ){for(var nu,gU=eQ[0].toUpperCase()+eQ.slice(1),Vr=0,fm=T6.length;Vr<fm;Vr++)if(nu=(nu=T6[Vr])?nu+gU:eQ,nu in h0)return nu;return d}
function q(h0,eQ){var nu=this;this.manager=h0;this.callback=eQ;this.element=h0.element;this.target=h0.options.inputTarget;this.domHandler=function(gU){Z(h0.options.enable,[h0])&&nu.handler(gU)};
this.evEl&&l(this.element,this.evEl,this.domHandler);this.evTarget&&l(this.target,this.evTarget,this.domHandler);this.evWin&&l(z,this.evWin,this.domHandler)}
function n(h0){var eQ;jw?eQ=ux:hj?eQ=X2:wi?eQ=WQ:eQ=VR;return new eQ(h0,L)}
function L(h0,eQ,nu){var gU=nu.pointers.length,Vr=nu.changedPointers.length,fm=eQ&1&&gU-Vr===0;nu.isFirst=!!fm;nu.isFinal=!!(eQ&12&&gU-Vr===0);fm&&(h0.session={});nu.eventType=eQ;eQ=h0.session;gU=nu.pointers;Vr=gU.length;eQ.firstInput||(eQ.firstInput=By(nu));Vr>1&&!eQ.firstMultiple?eQ.firstMultiple=By(nu):Vr===1&&(eQ.firstMultiple=!1);fm=eQ.firstInput;var Ij=(Vr=eQ.firstMultiple)?Vr.center:fm.center,lR=nu.center=gk(gU);nu.timeStamp=C7();nu.deltaTime=nu.timeStamp-fm.timeStamp;nu.angle=Zv(Ij,lR);nu.distance=
lx(Ij,lR);fm=nu.center;Ij=eQ.offsetDelta||{};lR=eQ.prevDelta||{};var kM=eQ.prevInput||{};if(nu.eventType===1||kM.eventType===4)lR=eQ.prevDelta={x:kM.deltaX||0,y:kM.deltaY||0},Ij=eQ.offsetDelta={x:fm.x,y:fm.y};nu.deltaX=lR.x+(fm.x-Ij.x);nu.deltaY=lR.y+(fm.y-Ij.y);nu.offsetDirection=vy(nu.deltaX,nu.deltaY);Vr?(fm=Vr.pointers,fm=lx(gU[0],gU[1],kY)/lx(fm[0],fm[1],kY)):fm=1;nu.scale=fm;Vr?(Vr=Vr.pointers,gU=Zv(gU[1],gU[0],kY)-Zv(Vr[1],Vr[0],kY)):gU=0;nu.rotation=gU;Ij=eQ.lastInterval||nu;gU=nu.timeStamp-
Ij.timeStamp;nu.eventType!=8&&(gU>25||Ij.velocity===d)?(fm=Ij.deltaX-nu.deltaX,Ij=Ij.deltaY-nu.deltaY,lR=fm/gU||0,kM=Ij/gU||0,gU=lR,Vr=kM,lR=FH(lR)>FH(kM)?lR:kM,fm=vy(fm,Ij),eQ.lastInterval=nu):(lR=Ij.velocity,gU=Ij.velocityX,Vr=Ij.velocityY,fm=Ij.direction);nu.velocity=lR;nu.velocityX=gU;nu.velocityY=Vr;nu.direction=fm;eQ=h0.element;a:{for(gU=nu.srcEvent.target;gU;){if(gU==eQ){gU=!0;break a}gU=gU.parentNode}gU=!1}gU&&(eQ=nu.srcEvent.target);nu.target=eQ;h0.emit("hammer.input",nu);h0.recognize(nu);
h0.session.prevInput=nu}
function By(h0){for(var eQ=[],nu=0;nu<h0.pointers.length;nu++)eQ[nu]={clientX:Pn(h0.pointers[nu].clientX),clientY:Pn(h0.pointers[nu].clientY)};return{timeStamp:C7(),pointers:eQ,center:gk(eQ),deltaX:h0.deltaX,deltaY:h0.deltaY}}
function gk(h0){var eQ=h0.length;if(eQ===1)return{x:Pn(h0[0].clientX),y:Pn(h0[0].clientY)};for(var nu=0,gU=0,Vr=0;Vr<eQ;Vr++)nu+=h0[Vr].clientX,gU+=h0[Vr].clientY;return{x:Pn(nu/eQ),y:Pn(gU/eQ)}}
function vy(h0,eQ){return h0===eQ?1:FH(h0)>=FH(eQ)?h0>0?2:4:eQ>0?8:16}
function lx(h0,eQ,nu){nu||(nu=D9);var gU=eQ[nu[0]]-h0[nu[0]];h0=eQ[nu[1]]-h0[nu[1]];return Math.sqrt(gU*gU+h0*h0)}
function Zv(h0,eQ,nu){nu||(nu=D9);return Math.atan2(eQ[nu[1]]-h0[nu[1]],eQ[nu[0]]-h0[nu[0]])*180/Math.PI}
function VR(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;q.apply(this,arguments)}
function ux(){this.evEl=Qc;this.evWin=H_;q.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function X2(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};q.apply(this,arguments)}
function WQ(){q.apply(this,arguments);var h0=P(this.handler,this);this.touch=new X2(this.manager,h0);this.mouse=new VR(this.manager,h0)}
function XH(h0,eQ){this.manager=h0;this.set(eQ)}
function wU(h0){if(h0.indexOf("none")>-1)return"none";var eQ=h0.indexOf("pan-x")>-1,nu=h0.indexOf("pan-y")>-1;return eQ&&nu?"pan-x pan-y":eQ||nu?eQ?"pan-x":"pan-y":h0.indexOf("manipulation")>-1?"manipulation":"auto"}
function RD(h0){this.id=tK++;this.manager=null;this.options=g(h0||{},this.defaults);h0=this.options.enable;this.options.enable=h0===d?!0:h0;this.state=1;this.simultaneous={};this.requireFail=[]}
function sF(h0){return h0==16?"down":h0==8?"up":h0==2?"left":h0==4?"right":""}
function Vd(h0,eQ){return(eQ=eQ.manager)?eQ.get(h0):h0}
function bR(){RD.apply(this,arguments)}
function Sf(){bR.apply(this,arguments);this.pY=this.pX=null}
function UF(){bR.apply(this,arguments)}
function pu(){RD.apply(this,arguments);this._input=this._timer=null}
function BQ(){bR.apply(this,arguments)}
function Z9(){bR.apply(this,arguments)}
function cn(){RD.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function rU(h0,eQ){eQ=eQ||{};var nu=eQ.recognizers;eQ.recognizers=nu===d?rU.defaults.preset:nu;return new Gq(h0,eQ)}
function Gq(h0,eQ){eQ=eQ||{};this.options=g(eQ,rU.defaults);this.options.inputTarget=this.options.inputTarget||h0;this.handlers={};this.session={};this.recognizers=[];this.element=h0;this.input=n(this);this.touchAction=new XH(this,this.options.touchAction);Td(this,!0);c(eQ.recognizers,function(nu){var gU=this.add(new nu[0](nu[1]));nu[2]&&gU.recognizeWith(nu[2]);nu[3]&&gU.requireFailure(nu[2])},this)}
function Td(h0,eQ){var nu=h0.element;c(h0.options.cssProps,function(gU,Vr){nu.style[a(nu.style,Vr)]=eQ?gU:""})}
function Bn(h0,eQ){var nu=G.createEvent("Event");nu.initEvent(h0,!0,!0);nu.gesture=eQ;eQ.target.dispatchEvent(nu)}
var T6=" webkit moz MS ms o".split(" "),$M=G.createElement("div"),Pn=Math.round,FH=Math.abs,C7=Date.now,tK=1,a3=/mobile|tablet|ip(ad|hone|od)|android/i,wi="ontouchstart"in z,jw=a(z,"PointerEvent")!==d,hj=wi&&a3.test(navigator.userAgent),D9=["x","y"],kY=["clientX","clientY"];q.prototype={handler:function(){},
destroy:function(){this.evEl&&b(this.element,this.evEl,this.domHandler);this.evTarget&&b(this.target,this.evTarget,this.domHandler);this.evWin&&b(z,this.evWin,this.domHandler)}};
var nO={mousedown:1,mousemove:2,mouseup:4};t(VR,q,{handler:function(h0){var eQ=nO[h0.type];eQ&1&&h0.button===0&&(this.pressed=!0);eQ&2&&h0.which!==1&&(eQ=4);this.pressed&&this.allow&&(eQ&4&&(this.pressed=!1),this.callback(this.manager,eQ,{pointers:[h0],changedPointers:[h0],pointerType:"mouse",srcEvent:h0}))}});
var lQ={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ql={2:"touch",3:"pen",4:"mouse",5:"kinect"},Qc="pointerdown",H_="pointermove pointerup pointercancel";z.MSPointerEvent&&(Qc="MSPointerDown",H_="MSPointerMove MSPointerUp MSPointerCancel");t(ux,q,{handler:function(h0){var eQ=this.store,nu=!1,gU=h0.type.toLowerCase().replace("ms","");gU=lQ[gU];var Vr=ql[h0.pointerType]||h0.pointerType;gU&1&&(h0.button===0||Vr=="touch")?eQ.push(h0):gU&12&&(nu=!0);var fm=K(eQ,h0.pointerId,"pointerId");
fm<0||(eQ[fm]=h0,this.callback(this.manager,gU,{pointers:eQ,changedPointers:[h0],pointerType:Vr,srcEvent:h0}),nu&&eQ.splice(fm,1))}});
var QB={touchstart:1,touchmove:2,touchend:4,touchcancel:8};t(X2,q,{handler:function(h0){var eQ=QB[h0.type];var nu=Array.prototype.slice.call(h0.touches,0);var gU=this.targetIds;if(eQ&3&&nu.length===1)gU[nu[0].identifier]=!0,gU=[nu,nu];else{var Vr,fm=Array.prototype.slice.call(h0.targetTouches,0),Ij=Array.prototype.slice.call(h0.changedTouches,0),lR=[];if(eQ===1)for(nu=0,Vr=fm.length;nu<Vr;nu++)gU[fm[nu].identifier]=!0;nu=0;for(Vr=Ij.length;nu<Vr;nu++)gU[Ij[nu].identifier]&&lR.push(Ij[nu]),eQ&12&&
delete gU[Ij[nu].identifier];gU=lR.length?[e(fm.concat(lR),"identifier",!0),lR]:void 0}gU&&this.callback(this.manager,eQ,{pointers:gU[0],changedPointers:gU[1],pointerType:"touch",srcEvent:h0})}});
t(WQ,q,{handler:function(h0,eQ,nu){var gU=nu.pointerType=="mouse";if(nu.pointerType=="touch")this.mouse.allow=!1;else if(gU&&!this.mouse.allow)return;eQ&12&&(this.mouse.allow=!0);this.callback(h0,eQ,nu)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var d3=a($M.style,"touchAction"),A8=d3!==d;XH.prototype={set:function(h0){h0=="compute"&&(h0=this.compute());A8&&(this.manager.element.style[d3]=h0);this.actions=h0.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var h0=[];c(this.manager.recognizers,function(eQ){Z(eQ.options.enable,[eQ])&&(h0=h0.concat(eQ.getTouchAction()))});
return wU(h0.join(" "))},
preventDefaults:function(h0){if(!A8){var eQ=h0.srcEvent;h0=h0.offsetDirection;if(this.manager.session.prevented)eQ.preventDefault();else{var nu=this.actions,gU=nu.indexOf("none")>-1,Vr=nu.indexOf("pan-y")>-1;nu=nu.indexOf("pan-x")>-1;if(gU||Vr&&nu||Vr&&h0&6||nu&&h0&24)return this.preventSrc(eQ)}}},
preventSrc:function(h0){this.manager.session.prevented=!0;h0.preventDefault()}};
RD.prototype={defaults:{},set:function(h0){J(this.options,h0);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(h0){if(v(h0,"recognizeWith",this))return this;var eQ=this.simultaneous;h0=Vd(h0,this);eQ[h0.id]||(eQ[h0.id]=h0,h0.recognizeWith(this));return this},
dropRecognizeWith:function(h0){if(v(h0,"dropRecognizeWith",this))return this;h0=Vd(h0,this);delete this.simultaneous[h0.id];return this},
requireFailure:function(h0){if(v(h0,"requireFailure",this))return this;var eQ=this.requireFail;h0=Vd(h0,this);K(eQ,h0)===-1&&(eQ.push(h0),h0.requireFailure(this));return this},
dropRequireFailure:function(h0){if(v(h0,"dropRequireFailure",this))return this;h0=Vd(h0,this);h0=K(this.requireFail,h0);h0>-1&&this.requireFail.splice(h0,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(h0){return!!this.simultaneous[h0.id]},
emit:function(h0){function eQ(Vr){nu.manager.emit(nu.options.event+(Vr?gU&16?"cancel":gU&8?"end":gU&4?"move":gU&2?"start":"":""),h0)}
var nu=this,gU=this.state;gU<8&&eQ(!0);eQ();gU>=8&&eQ(!0)},
tryEmit:function(h0){if(this.canEmit())return this.emit(h0);this.state=32},
canEmit:function(){for(var h0=0;h0<this.requireFail.length;h0++)if(!(this.requireFail[h0].state&33))return!1;return!0},
recognize:function(h0){h0=J({},h0);Z(this.options.enable,[this,h0])?(this.state&56&&(this.state=1),this.state=this.process(h0),this.state&30&&this.tryEmit(h0)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
t(bR,RD,{defaults:{pointers:1},attrTest:function(h0){var eQ=this.options.pointers;return eQ===0||h0.pointers.length===eQ},
process:function(h0){var eQ=this.state,nu=h0.eventType,gU=eQ&6;h0=this.attrTest(h0);return gU&&(nu&8||!h0)?eQ|16:gU||h0?nu&4?eQ|8:eQ&2?eQ|4:2:32}});
t(Sf,bR,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var h0=this.options.direction;if(h0===30)return["none"];var eQ=[];h0&6&&eQ.push("pan-y");h0&24&&eQ.push("pan-x");return eQ},
directionTest:function(h0){var eQ=this.options,nu=!0,gU=h0.distance,Vr=h0.direction,fm=h0.deltaX,Ij=h0.deltaY;Vr&eQ.direction||(eQ.direction&6?(Vr=fm===0?1:fm<0?2:4,nu=fm!=this.pX,gU=Math.abs(h0.deltaX)):(Vr=Ij===0?1:Ij<0?8:16,nu=Ij!=this.pY,gU=Math.abs(h0.deltaY)));h0.direction=Vr;return nu&&gU>eQ.threshold&&Vr&eQ.direction},
attrTest:function(h0){return bR.prototype.attrTest.call(this,h0)&&(this.state&2||!(this.state&2)&&this.directionTest(h0))},
emit:function(h0){this.pX=h0.deltaX;this.pY=h0.deltaY;var eQ=sF(h0.direction);eQ&&this.manager.emit(this.options.event+eQ,h0);this._super.emit.call(this,h0)}});
t(UF,bR,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(h0){return this._super.attrTest.call(this,h0)&&(Math.abs(h0.scale-1)>this.options.threshold||this.state&2)},
emit:function(h0){this._super.emit.call(this,h0);h0.scale!==1&&this.manager.emit(this.options.event+(h0.scale<1?"in":"out"),h0)}});
t(pu,RD,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(h0){var eQ=this.options,nu=h0.pointers.length===eQ.pointers,gU=h0.distance<eQ.threshold,Vr=h0.deltaTime>eQ.time;this._input=h0;if(!gU||!nu||h0.eventType&12&&!Vr)this.reset();else if(h0.eventType&1)this.reset(),this._timer=E(function(){this.state=8;this.tryEmit()},eQ.time,this);
else if(h0.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(h0){this.state===8&&(h0&&h0.eventType&4?this.manager.emit(this.options.event+"up",h0):(this._input.timeStamp=C7(),this.manager.emit(this.options.event,this._input)))}});
t(BQ,bR,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(h0){return this._super.attrTest.call(this,h0)&&(Math.abs(h0.rotation)>this.options.threshold||this.state&2)}});
t(Z9,bR,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Sf.prototype.getTouchAction.call(this)},
attrTest:function(h0){var eQ=this.options.direction;if(eQ&30)var nu=h0.velocity;else eQ&6?nu=h0.velocityX:eQ&24&&(nu=h0.velocityY);return this._super.attrTest.call(this,h0)&&eQ&h0.direction&&FH(nu)>this.options.velocity&&h0.eventType&4},
emit:function(h0){var eQ=sF(h0.direction);eQ&&this.manager.emit(this.options.event+eQ,h0);this.manager.emit(this.options.event,h0)}});
t(cn,RD,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(h0){var eQ=this.options,nu=h0.pointers.length===eQ.pointers,gU=h0.distance<eQ.threshold,Vr=h0.deltaTime<eQ.time;this.reset();if(h0.eventType&1&&this.count===0)return this.failTimeout();if(gU&&Vr&&nu){if(h0.eventType!=4)return this.failTimeout();nu=this.pTime?h0.timeStamp-this.pTime<eQ.interval:!0;gU=!this.pCenter||lx(this.pCenter,h0.center)<eQ.posThreshold;this.pTime=h0.timeStamp;this.pCenter=h0.center;gU&&nu?this.count+=1:this.count=1;this._input=h0;if(this.count%eQ.taps===0)return this.hasRequireFailures()?
(this._timer=E(function(){this.state=8;this.tryEmit()},eQ.interval,this),2):8}return 32},
failTimeout:function(){this._timer=E(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))}});
rU.VERSION="2.0.2";rU.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[BQ,{enable:!1}],[UF,{enable:!1},["rotate"]],[Z9,{direction:6}],[Sf,{direction:6},["swipe"]],[cn],[cn,{event:"doubletap",taps:2},["tap"]],[pu]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Gq.prototype={set:function(h0){J(this.options,h0);return this},
stop:function(h0){this.session.stopped=h0?2:1},
recognize:function(h0){var eQ=this.session;if(!eQ.stopped){this.touchAction.preventDefaults(h0);var nu=this.recognizers,gU=eQ.curRecognizer;if(!gU||gU&&gU.state&8)gU=eQ.curRecognizer=null;for(var Vr=0,fm=nu.length;Vr<fm;Vr++){var Ij=nu[Vr];eQ.stopped===2||gU&&Ij!=gU&&!Ij.canRecognizeWith(gU)?Ij.reset():Ij.recognize(h0);!gU&&Ij.state&14&&(gU=eQ.curRecognizer=Ij)}}},
get:function(h0){if(h0 instanceof RD)return h0;for(var eQ=this.recognizers,nu=0;nu<eQ.length;nu++)if(eQ[nu].options.event==h0)return eQ[nu];return null},
add:function(h0){if(v(h0,"add",this))return this;var eQ=this.get(h0.options.event);eQ&&this.remove(eQ);this.recognizers.push(h0);h0.manager=this;this.touchAction.update();return h0},
remove:function(h0){if(v(h0,"remove",this))return this;var eQ=this.recognizers;h0=this.get(h0);eQ.splice(K(eQ,h0),1);this.touchAction.update();return this},
on:function(h0,eQ){var nu=this.handlers;c(O(h0),function(gU){nu[gU]=nu[gU]||[];nu[gU].push(eQ)});
return this},
off:function(h0,eQ){var nu=this.handlers;c(O(h0),function(gU){eQ?nu[gU].splice(K(nu[gU],eQ),1):delete nu[gU]});
return this},
emit:function(h0,eQ){this.options.domEvents&&Bn(h0,eQ);var nu=this.handlers[h0]&&this.handlers[h0].slice();if(nu&&nu.length){eQ.type=h0;eQ.preventDefault=function(){eQ.srcEvent.preventDefault()};
h0=0;for(var gU=nu.length;h0<gU;h0++)nu[h0](eQ)}},
destroy:function(){this.element&&Td(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
J(rU,{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:Gq,Input:q,TouchAction:XH,Recognizer:RD,AttrRecognizer:bR,Tap:cn,Pan:Sf,Swipe:Z9,Pinch:UF,Rotate:BQ,Press:pu,on:l,off:b,each:c,merge:g,extend:J,inherit:t,bindFn:P,prefixed:a});
z[Y]=rU})(window,document,"Hammer");
return window.Hammer}.call({});
B.DOCUMENT=W;W[FCT]=B}return W[FCT]};/*

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

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 BhH;_.WuQ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");BhH=function(){var W=[],B;var z=z||_.WuQ.length;for(B=0;B<8;B++)W[B]=_.WuQ[0|Math.random()*z];return W.join("")};var bar=function(){return Math.random().toString(36).substring(7).split("").join(".")},SZX="@@redux/INIT"+bar(),Oau="@@redux/REPLACE"+bar();var XoT=typeof Symbol==="function"&&Symbol.observable||"@@observable";var zrH=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var Gmd="top right bottom left width height size weight".split(" "),Y_U=typeof MutationObserver!=="undefined",dFd=zrH&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,pkH=function(){this.mutationEventsAdded_=this.JSC$11758_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=Kat(this.refresh.bind(this))},AET=function(W,
B){var z=W.observers_;
B=z.indexOf(B);~B&&z.splice(B,1);!z.length&&W.JSC$11758_connected_&&zrH&&W.JSC$11758_connected_&&(document.removeEventListener("transitionend",W.onTransitionEnd_),window.removeEventListener("resize",W.refresh),W.mutationsObserver_&&(W.mutationsObserver_.disconnect(),dFd&&(HTMLElement.prototype.attachShadow=dFd)),W.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",W.refresh),W.mutationsObserver_=null,W.mutationEventsAdded_=!1,W.JSC$11758_connected_=!1)};
pkH.prototype.refresh=function(){ikQ(this)&&this.refresh()};
var ikQ=function(W){W=W.observers_.filter(function(B){return ElM(B),B.activeObservations_.length>0});
W.forEach(function(B){return ThM(B)});
return W.length>0},vlU=function(W){if(zrH&&!W.JSC$11758_connected_){document.addEventListener("transitionend",W.onTransitionEnd_);
window.addEventListener("resize",W.refresh);if(Y_U){W.mutationsObserver_=new MutationObserver(W.refresh);var B={attributes:!0,childList:!0,characterData:!0,subtree:!0};W.mutationsObserver_.observe(document,B);dFd&&(function Y(G){var d=G.shadowRoot;d&&(W.mutationsObserver_.observe(d,B),Y(d));for(G=G.firstElementChild;G;)Y(G),G=G.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var G=dFd.apply(this,_.nm.apply(0,arguments));
W.mutationsObserver_.observe(G,B);return G})}else document.addEventListener("DOMSubtreeModified",W.refresh),W.mutationEventsAdded_=!0;
W.JSC$11758_connected_=!0}};
pkH.prototype.onTransitionEnd_=function(W){var B=W.propertyName===void 0?"":W.propertyName;Gmd.some(function(z){return!!~B.indexOf(z)})&&this.refresh()};
var cEU=null;var wk7=function(W,B){for(var z=_.A(Object.keys(B)),G=z.next();!G.done;G=z.next())G=G.value,Object.defineProperty(W,G,{value:B[G],enumerable:!1,writable:!1,configurable:!0})};var Wt=function(W){var B;return(W==null?void 0:(B=W.ownerDocument)==null?void 0:B.defaultView)||globalThis};var VgT={x:0,y:0,width:0,height:0},JE6=typeof SVGGraphicsElement!=="undefined"?function(W){return W instanceof Wt(W).SVGGraphicsElement}:function(W){return W instanceof Wt(W).SVGElement&&typeof W.getBBox==="function"};var glH=function(W){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=W};
glH.prototype.isActive=function(){var W=this.target;if(zrH)if(JE6(W)){var B=W.getBBox();B={x:0,y:0,width:B.width,height:B.height}}else{var z=W.clientWidth,G=W.clientHeight;if(z||G){var Y=Wt(W).getComputedStyle(W);B=r8(Y["padding-top"]);var d=r8(Y["padding-left"]),E=d+r8(Y["padding-right"]),v=B+r8(Y["padding-bottom"]),c=r8(Y.width),J=r8(Y.height);Y.boxSizing==="border-box"&&(Math.round(c+E)!==z&&(c-=unQ(Y,"left","right")+E),Math.round(J+v)!==G&&(J-=unQ(Y,"top","bottom")+v));W!==Wt(W).document.documentElement&&
(W=Math.round(c+E)-z,G=Math.round(J+v)-G,Math.abs(W)!==1&&(c-=W),Math.abs(G)!==1&&(J-=G));B={x:d,y:B,width:c,height:J}}else B=VgT}else B=VgT;this.contentRect_=B;return B.width!==this.broadcastWidth||B.height!==this.broadcastHeight};var tgH=function(W,B){var z=B.x;var G=B.y;var Y=B.width;B=B.height;var d=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);wk7(d,{x:z,y:G,width:Y,height:B,top:G,right:z+Y,bottom:B+G,left:z});wk7(this,{target:W,contentRect:d})};var s6M=function(W,B){var z=cEU;this.activeObservations_=[];this.observations_=new Map;if(typeof W!=="function")throw new TypeError("Ue");this.callback_=W;this.controller_=z;this.callbackCtx_=B};
s6M.prototype.observe=function(W){if(W===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(W instanceof Wt(W).Element))throw new TypeError("We");var B=this.observations_;B.has(W)||(B.set(W,new glH(W)),W=this.controller_,~W.observers_.indexOf(this)||W.observers_.push(this),W.JSC$11758_connected_||vlU(W),this.controller_.refresh())}};
s6M.prototype.unobserve=function(W){if(W===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(W instanceof Wt(W).Element))throw new TypeError("We");var B=this.observations_;B.has(W)&&(B.delete(W),B.size||AET(this.controller_,this))}};
s6M.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();AET(this.controller_,this)};
var ElM=function(W){W.activeObservations_.splice(0);W.observations_.forEach(function(B){B.isActive()&&W.activeObservations_.push(B)})},ThM=function(W){if(W.activeObservations_.length>0){var B=W.callbackCtx_,z=W.activeObservations_.map(function(G){var Y=G.target,d=G.contentRect_;
G.broadcastWidth=d.width;G.broadcastHeight=d.height;return new tgH(Y,d)});
W.callback_.call(B,z,B);W.activeObservations_.splice(0)}};var Bt=function(W){if(!(this instanceof Bt))throw new TypeError("Xe");if(!arguments.length)throw new TypeError("Ve");cEU||(cEU=new pkH);this.observer_=new s6M(W,this)};
Bt.prototype.observe=function(W){this.observer_.observe(W)};
Bt.prototype.unobserve=function(W){this.observer_.unobserve(W)};
Bt.prototype.disconnect=function(){this.observer_.disconnect()};var MGr=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Bt;var nXD="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(" "),qZu={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},yGD=null,eWX=null;var NLu={},$I8=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 Bdu={text:1},M1T={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var PeD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Zk6={CONSTANT:{isUnwrappable:function(W){return W instanceof KG},
unwrap:dfM},JAVASCRIPT:{isUnwrappable:function(W){return W instanceof _.Gd},
unwrap:iNx},HTML:{isUnwrappable:function(W){return W instanceof UK},
unwrap:function(W){return R3(W)}},
RESOURCE_URL:{isUnwrappable:function(W){return W instanceof SN},
unwrap:_.jN},STRING:{isUnwrappable:function(W){return W instanceof Object},
unwrap:function(W){return String(W)}},
STYLE:{isUnwrappable:function(W){return typeof W==="string"},
unwrap:function(W){return W}},
URL:{isUnwrappable:function(W){return uQ(W)},
unwrap:_.mF}},rE4={CONSTANT:zAt,JAVASCRIPT:zAt,HTML:function(W){W=W instanceof UK?W:MZ(String(W).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return R3(W)},
RESOURCE_URL:zAt,STRING:String,STYLE:zAt,URL:function(W,B){W=PeD.test(W)?W:void 0;return W===void 0?B:W}};var wrr=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,G2v=/[\t\n\f\r ]+/,dex=/[\t\n\f\r ,]+/g,A4x=function(W,B,z){return z},Id={},kmd=function(){var W=function(){var G={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",G):G}(),B=W.createHTML(""),z=W.createScript("");
W=W.createScriptURL("");return{INNOCUOUS_STRING:B,INNOCUOUS_SCRIPT:z,INNOCUOUS_URL:W}}(),Ct=kmd.INNOCUOUS_STRING,c4Q=kmd.INNOCUOUS_SCRIPT,vcr=kmd.INNOCUOUS_URL;var lKU=function(W){var B=Vrr(W);return function(z,G,Y,d){return d?B(d,G,Y,z):Ct}}({reportHandler:function(W,B){if(W)try{throw Error(B);
}catch(z){_.jy(z)}},
safeTypesBridge:function(W,B,z){var G=Zk6[B];return G.isUnwrappable(W)&&(G=G.unwrap(W,z),G!==z)?G:(0,rE4[B])(String(W),z)},
allowedIdentifierPrefixes:[""]});if(rq!==void 0)throw Error("Ye");rq=lKU;if(rq!==lKU)throw Error("Ze");od("Injectable",[]);var xek=od("Inject",[["token",void 0]]),QAQ=od("Optional",[]);od("Injectable",[]);var y4t=od("Self",[]),q5v=od("SkipSelf",[]);od("Host",[]);var CeR={},IKM=function(){};
IKM.prototype.resolve=function(){throw Error("af");};
IKM.prototype.addProvider=function(){throw Error("af");};var eAy=Function;var olF=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,hrM=function(){this._reflect=window.Reflect};
_.p=hrM.prototype;_.p.factory=function(W){return function(){return new (Function.prototype.bind.apply(W,[null].concat(_.u7(_.nm.apply(0,arguments)))))}};
_.p._zipTypesAndAnnotations=function(W,B){var z=typeof W==="undefined"?Array(B.length):Array(W.length);for(var G=0;G<z.length;G++)z[G]=typeof W==="undefined"?[]:W[G]!=Object?[W[G]]:[],B&&gcu(B[G])&&(z[G]=z[G].concat(B[G]));return z};
_.p._ownParameters=function(W,B){if(olF.exec(W.toString()))return null;if(W.parameters&&W.parameters!==B.parameters)return W.parameters;var z=W.ctorParameters;return z&&z!==B.ctorParameters?(B=typeof z==="function"?z():z,W=B.map(function(G){return G&&G.type}),B=B.map(function(G){return G&&sAv(G.decorators)}),this._zipTypesAndAnnotations(W,B)):gcu(this._reflect)&&gcu(this._reflect.getOwnMetadata)&&(B=this._reflect.getOwnMetadata("parameters",W),(z=this._reflect.getOwnMetadata("design:paramtypes",W))||
B)?this._zipTypesAndAnnotations(z,B):Array(W.length).fill(void 0)};
_.p.parameters=function(W){if(!W.prototype)return[];var B=Object.getPrototypeOf(W.prototype).constructor;(W=this._ownParameters(W,B))||B===Object||(W=this.parameters(B));return W||[]};
_.p._ownAnnotations=function(W,B){if(W.annotations&&W.annotations!==B.annotations)return W=W.annotations,typeof W==="function"&&W.annotations&&(W=W.annotations),W;if(W.decorators&&W.decorators!==B.decorators)return sAv(W.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",W)};
_.p.annotations=function(W){var B=Object.getPrototypeOf(W.prototype).constructor;W=this._ownAnnotations(W,B)||[];return(B!==Object?this.annotations(B):[]).concat(W)};
_.p._ownPropMetadata=function(W,B){if(W.propMetadata&&W.propMetadata!==B.propMetadata)return W=W.propMetadata,typeof W==="function"&&W.propMetadata&&(W=W.propMetadata),W;if(W.propDecorators&&W.propDecorators!==B.propDecorators){var z=W.propDecorators,G={};Object.keys(z).forEach(function(Y){G[Y]=sAv(z[Y])});
return G}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",W)};
_.p.propMetadata=function(W){var B=Object.getPrototypeOf(W.prototype).constructor,z={};if(B!==Object){var G=this.propMetadata(B);Object.keys(G).forEach(function(d){z[d]=G[d]})}var Y=this._ownPropMetadata(W,B);
Y&&Object.keys(Y).forEach(function(d){var E=[];z.hasOwnProperty(d)&&E.push.apply(E,_.u7(z[d]));E.push.apply(E,_.u7(Y[d]));z[d]=E});
return z};
_.p.getter=function(W){return function(B){return B[W]}};
_.p.setter=function(W){return function(B,z){return B[W]=z}};
_.p.method=function(W){return function(B,z){if(!B[W])throw Error("bf`"+W);return B[W].apply(B,z)}};var Hku=function(){};var FuD=function(W){this.reflectionCapabilities=W};
_.C(FuD,Hku);_.p=FuD.prototype;_.p.factory=function(W){return this.reflectionCapabilities.factory(W)};
_.p.parameters=function(W){return this.reflectionCapabilities.parameters(W)};
_.p.annotations=function(W){return this.reflectionCapabilities.annotations(W)};
_.p.propMetadata=function(W){return this.reflectionCapabilities.propMetadata(W)};
_.p.getter=function(W){return this.reflectionCapabilities.getter(W)};
_.p.setter=function(W){return this.reflectionCapabilities.setter(W)};
_.p.method=function(W){return this.reflectionCapabilities.method(W)};var hAR=new FuD(new hrM);var za=function(W,B){this.token=W;this.id=B;if(W===void 0||W===null)throw Error("gf");};
_.G5.Object.defineProperties(za.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return hz(this.token)}}});
_.G5.Object.defineProperties(za,{JSC$11800_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return FR.JSC$11804_numberOfKeys}}});
var S_Q=function(){this._allKeys=new Map};
S_Q.prototype.get=function(W){if(W instanceof za)return W;if(this._allKeys.has(W))return this._allKeys.get(W);var B=new za(W,za.JSC$11800_numberOfKeys);this._allKeys.set(W,B);return B};
_.G5.Object.defineProperties(S_Q.prototype,{JSC$11804_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var FR=new S_Q;var ncR=function(W,B,z){this.key=W;this.optional=B;this.visibility=z},FLQ=function(W){return new ncR(W,!1,null)},b_D=[],O_k=function(W,B,z){this.key=W;
this.resolvedFactories=B;this.multiProvider=z},jAr=function(W,B,z,G){this.factory=W;
this.dependencies=B;this.providerClass=z;this.providerValue=G};var Ga={},YN=function(W,B){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=B===void 0?null:B;W=_.A(W);for(B=W.next();!B.done;B=W.next())this.addProvider(B.value)};
_.p=YN.prototype;_.p.addProvider=function(W){this.keyIdToIndex.set(W.key.id,this.keyIds.length);this.providers.push(W);this.keyIds.push(W.key.id);this.objs.push(Ga)};
_.p.resolve=function(W,B){B=B===void 0?CeR:B;return this._getByKey(FR.get(HM(W)),null,B)};
_.p._new=function(W){if(this.constructedKeyIds[W.key.id])throw C_v(this,W.key);this.constructedKeyIds[W.key.id]=!0;return this._instantiateProvider(W)};
_.p._instantiateProvider=function(W){if(W.multiProvider){for(var B=Array(W.resolvedFactories.length),z=0;z<W.resolvedFactories.length;++z)B[z]=this._instantiate(W,W.resolvedFactories[z]);return B}return this._instantiate(W,W.resolvedFactories[0])};
_.p._instantiate=function(W,B){var z=this,G=B.factory;try{var Y=B.dependencies.map(function(E){return z._getByReflectiveDependency(E)})}catch(E){throw E.addKey&&E.addKey(this,W.key),E;
}try{var d=G.apply(null,_.u7(Y))}catch(E){throw IUX(this,E,W.key);}return d};
_.p._getByReflectiveDependency=function(W){return this._getByKey(W.key,W.visibility,W.optional?null:CeR)};
_.p._getByKey=function(W,B,z){return W===bkM?this:B instanceof y4t?this._getByKeySelf(W,z):this._getByKeyDefault(W,z,B)};
_.p._getObjByKeyId=function(W){for(var B=0;B<this.keyIds.length;B++)if(this.keyIds[B]===W)return this.objs[B]===Ga&&(this.objs[B]=this._new(this.providers[B])),this.objs[B];return Ga};
_.p._throwOrNull=function(W,B){if(B!==CeR)return B;throw lUk(this,W);};
_.p._getByKeySelf=function(W,B){var z=this._getObjByKeyId(W.id);return z!==Ga?z:this._throwOrNull(W,B)};
_.p._getByKeyDefault=function(W,B,z){for(var G=z=z instanceof q5v?this.parent:this;z instanceof YN;){var Y=z._getObjByKeyId(W.id);if(Y!==Ga)return Y;z=z.parent}Y=void 0;if(z!==null)try{var d=z.resolve(W.token,B);if(d!==Ga)return d}catch(E){Y=E}if(!(G instanceof YN&&$eQ(W.token))){if(Y)throw Y;return this._throwOrNull(W,B)}for(d=G;d.parent instanceof YN;)d=d.parent;d.addProvider(XrD({provide:W.token,useClass:W.token}));return d.resolve(W.token,B)};
_.p.toString=function(){return this.displayName};
_.G5.Object.defineProperties(YN.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+Ndr(this,function(W){return' "'+W.key.displayName+'" '}).join(", ")+"])"}}});
var bkM=FR.get(HM(IKM));(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 j6R=window.XRegExp;var fKT=-1,OkR=function(W){addEventListener("pageshow",function(B){B.persisted&&(fKT=B.timeStamp,W(B))},!0)};var Kud=function(W,B,z){var G=Xk6,Y,d;return function(E){if(B.value>=0&&(E||z)){var v;if((d=B.value-((v=Y)!=null?v:0))||Y===void 0)Y=B.value,B.delta=d,E=B.value,B.rating=E>G[1]?"poor":E>G[0]?"needs-improvement":"good",W(B)}}};var uBM=function(W){requestAnimationFrame(function(){return requestAnimationFrame(function(){return W()})})};var er9=function(){var W=performance.getEntriesByType("navigation")[0];if(W&&W.responseStart>0&&W.responseStart<performance.now())return W};var mFU=function(){var W,B;return(B=(W=er9())==null?void 0:W.activationStart)!=null?B:0};var xFR=function(){var W=W===void 0?-1:W;var B=er9(),z="navigate";fKT>=0?z="back-forward-cache":B&&(document.prerendering||mFU()>0?z="prerender":document.wasDiscarded?z="restore":B.type&&(z=B.type.replace(/_/g,"-")));return{name:"LCP",value:W,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:z}};var UeR=new WeakMap;var DFR=function(W){var B=B===void 0?{}:B;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var z=new PerformanceObserver(function(G){Promise.resolve().then(function(){W(G.getEntries())})});
z.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},B));return z}}catch(G){}};var Q64=function(W){var B=!1;return function(){B||(W(),B=!0)}};var dE=-1,yEM=function(W){document.visibilityState==="hidden"&&dE>-1&&(dE=W.type==="visibilitychange"?W.timeStamp:0,removeEventListener("visibilitychange",yEM,!0),removeEventListener("prerenderingchange",yEM,!0))},q_M=function(){addEventListener("visibilitychange",yEM,!0);
addEventListener("prerenderingchange",yEM,!0)},nl9=function(){if(dE<0){var W=mFU(),B,z;
dE=(z=document.prerendering?void 0:(B=globalThis.performance.getEntriesByType("visibility-state").filter(function(G){return G.name==="hidden"&&G.startTime>W})[0])==null?void 0:B.startTime)!=null?z:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
q_M();OkR(function(){setTimeout(function(){dE=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;q_M()})})}return{get firstHiddenTime(){return dE}}};var Nh9=function(W){document.prerendering?addEventListener("prerenderingchange",function(){return W()},!0):W()};var $FM=function(W){var B=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?W():(W=Q64(W),document.addEventListener("visibilitychange",W,{once:!0}),B(function(){W();document.removeEventListener("visibilitychange",W)}))};var LLt=function(){};
LLt.prototype._processEntry=function(W){var B;(B=this._onBeforeProcessingEntry)==null||B.call(this,W)};var Xk6=[2500,4E3],Eku=function(W){var B=B===void 0?{}:B;Nh9(function(){var z=nl9(),G=xFR(),Y=MrR(B),d=function(t){B.reportAllChanges||(t=t.slice(-1));t=_.A(t);for(var P=t.next();!P.done;P=t.next())P=P.value,Y._processEntry(P),P.startTime<z.firstHiddenTime&&(G.value=Math.max(P.startTime-mFU(),0),G.entries=[P],v())},E=DFR(d);
if(E){var v=Kud(W,G,B.reportAllChanges);for(var c=Q64(function(){d(E.takeRecords());E.disconnect();v(!0)}),J=_.A(["keydown",
"click","visibilitychange"]),g=J.next();!g.done;g=J.next())addEventListener(g.value,function(){return $FM(c)},{capture:!0,
once:!0});OkR(function(t){G=xFR();v=Kud(W,G,B.reportAllChanges);uBM(function(){G.value=performance.now()-t.timeStamp;v(!0)})})}})};var Lu9;var UFH;_.N=function(){return UFH!==void 0?UFH:UFH=document.createElement("template")};
document.head.appendChild(_.N().content);var MgD;_.D8({_template:function(){if(MgD!==void 0)return MgD;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var B=W.content,z=B.insertBefore;Lu9===void 0&&(Lu9=document.createElement("template"));var G=Lu9;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return MgD=W},
is:"tp-yt-app-toolbar"});var aKR;var RrM;_.p6=function(){};
_.p6=_.D8({_template:function(){if(RrM!==void 0)return RrM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;aKR===void 0&&(aKR=document.createElement("template"));var G=aKR;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return RrM=W},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.p6.instance||(_.p6.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(W){this._text===W&&(W+="\u00a0");this._text="";this.async(function(){this._text=W},this.timeout)},
_onIronAnnounce:function(W){W.detail&&W.detail.text&&this.announce(W.detail.text)}});
_.p6.instance=null;_.p6.requestAvailability=function(){_.p6.instance||(_.p6.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.p6.instance):document.addEventListener("load",function(){document.body.appendChild(_.p6.instance)})};var WQ9;var BnM;/*

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

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 AL,iQM,EnM;AL=Element.prototype;iQM=AL.matches||AL.matchesSelector||AL.mozMatchesSelector||AL.msMatchesSelector||AL.oMatchesSelector||AL.webkitMatchesSelector;EnM=function(){};
_.vnD=function(W){var B=TnT,z=[];return B._collectTabbableNodes(W,z)?B._sortByTabIndex(z):z};
_.p=EnM.prototype;_.p._normalizedTabIndex=function(W){return(iQM.call(W,"input, select, textarea, button, object")?iQM.call(W,":not([disabled])"):iQM.call(W,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(W=W.getAttribute("tabindex")||0,Number(W)):-1};
_.p._collectTabbableNodes=function(W,B){if(W.nodeType!==Node.ELEMENT_NODE||!this._isVisible(W))return!1;var z=this._normalizedTabIndex(W),G=z>0;z>=0&&B.push(W);if(W.localName==="content"||W.localName==="slot")z=_.St(W).getDistributedNodes();else{var Y;z=((Y=_.St(W).shadowRoot)!=null?Y:_.St(W.root||W)).children}for(W=0;W<z.length;W++)G=this._collectTabbableNodes(z[W],B)||G;return G};
_.p._isVisible=function(W){var B=W.style;return B.visibility!=="hidden"&&B.display!=="none"?(B=window.getComputedStyle(W),B.visibility!=="hidden"&&B.display!=="none"):!1};
_.p._sortByTabIndex=function(W){var B=W.length;if(B<2)return W;var z=Math.ceil(B/2);B=this._sortByTabIndex(W.slice(0,z));W=this._sortByTabIndex(W.slice(z));return this._mergeSortByTabIndex(B,W)};
_.p._mergeSortByTabIndex=function(W,B){for(var z=[];W.length>0&&B.length>0;)this._hasLowerTabOrder(W[0],B[0])?z.push(B.shift()):z.push(W.shift());return z.concat(W,B)};
_.p._hasLowerTabOrder=function(W,B){W=Math.max(W.tabIndex,0);B=Math.max(B.tabIndex,0);return W===0||B===0?B>W:W>B};
var TnT=new EnM;var ctQ;var whR;_.D8({_template:function(){if(whR!==void 0)return whR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;ctQ===void 0&&(ctQ=document.createElement("template"));var G=ctQ;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return whR=W},
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&&_.St(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.St(this.parentNode).removeChild(this)},
_onTransitionend:function(W){W&&W.target===this&&this.complete()},
_openedChanged:function(W){W?this.prepare():(W=window.getComputedStyle(this),W.transitionDuration!=="0s"&&W.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 Ez=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;XQ(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)};
Ez.prototype._bringOverlayAtIndexToFront=function(W){var B=this._overlays[W];if(B){var z=this._overlays.length-1,G=this._overlays[z];G&&this._shouldBeBehindOverlay(B,G)&&z--;if(!(W>=z)){G=Math.max(this._getZ(_.VTu(this)),this._minimumZ);for(this._getZ(B)<=G&&this._applyOverlayZ(B,G);W<z;)this._overlays[W]=this._overlays[W+1],W++;this._overlays[z]=B}}};
Ez.prototype.addOverlay=function(W){var B=this._overlays.indexOf(W);if(B>=0)this._bringOverlayAtIndexToFront(B);else{B=this._overlays.length;var z=this._overlays[B-1],G=Math.max(this._getZ(z),this._minimumZ),Y=this._getZ(W);z&&this._shouldBeBehindOverlay(W,z)&&(this._applyOverlayZ(z,G),B--,G=Math.max(this._getZ(this._overlays[B-1]),this._minimumZ));Y<=G&&this._applyOverlayZ(W,G);this._overlays.splice(B,0,W)}this.trackBackdrop()};
Ez.prototype.removeOverlay=function(W){W=this._overlays.indexOf(W);W!==-1&&(this._overlays.splice(W,1),this.trackBackdrop())};
_.VTu=function(W){return W._overlays[W._overlays.length-1]};
_.p=Ez.prototype;_.p.trackBackdrop=function(){var W=this._overlayWithBackdrop();if(W||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(W)-1,this.backdropElement.opened=!!W,this.backdropElement.prepare()};
_.p._overlayWithBackdrop=function(){for(var W=this._overlays.length-1;W>=0;W--)if(this._overlays[W].withBackdrop)return this._overlays[W]};
_.p._getZ=function(W){var B=this._minimumZ;if(W){var z,G,Y=Number(((z=W.hostElement)!=null?z:W).style.zIndex||window.getComputedStyle((G=W.hostElement)!=null?G:W).zIndex);Y===Y&&(B=Y)}return B};
_.p._setZ=function(W,B){var z;((z=W.hostElement)!=null?z:W).style.zIndex=B};
_.p._applyOverlayZ=function(W,B){this._setZ(W,B+2)};
_.p._overlayInPath=function(W){W=W||[];for(var B=0;B<W.length;B++){var z=void 0;if(((z=W[B].polymerController)!=null?z:W[B])._manager===this)return W[B]}};
_.p._onCaptureClick=function(W){var B=this._overlays.length-1;if(B!==-1)for(var z=_.St(W).path,G,Y;(G=this._overlays[B])&&this._overlayInPath(z)!==((Y=G.hostElement)!=null?Y:G);)if(G._onCaptureClick(W),G.allowClickThrough)B--;else break};
_.p._onCaptureFocus=function(W){var B=_.VTu(this);B&&B._onCaptureFocus(W)};
_.p._onCaptureKeyDown=function(W){var B=_.VTu(this);B&&(_.DM.keyboardEventMatchesKeys(W,"esc")?B._onCaptureEsc(W):_.DM.keyboardEventMatchesKeys(W,"tab")&&B._onCaptureTab(W))};
_.p._shouldBeBehindOverlay=function(W,B){return!W.alwaysOnTop&&B.alwaysOnTop&&!B.contains(W)};
_.G5.Object.defineProperties(Ez.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 W=document.activeElement;W&&W instanceof Element!==!1||(W=document.body);for(;W.root&&_.St(W.root).activeElement;)W=_.St(W.root).activeElement;return W}}});
_.Ta=new Ez;var aU8=0,RAr=0,W7Q=null,BRR=[],by=["wheel","mousewheel","DOMMouseScroll"],zQr;_.r("web_no_lock_on_touchstart_killswitch")&&(by.push("touchstart"),by.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;_.vt={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:_.Ta},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var W;return this._focusedChild||_.St((W=this.hostElement)!=null?W:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var W;return _.vnD((W=this.hostElement)!=null?W: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 W;this._observer=_.St((W=this.hostElement)!=null?W:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var W;_.St((W=this.hostElement)!=null?W:this).unobserveNodes(this._observer)}this._observer=null;for(var B in this.__rafs)this.__rafs[B]!==null&&cancelAnimationFrame(this.__rafs[B]);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(W){this.fire("iron-overlay-canceled",W,{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 W;((W=this.hostElement)!=null?W:this).style.outline="none";var B;((B=this.hostElement)!=null?B:this).style.display="none"}},
_openedChanged:function(W){if(W){var B;((B=this.hostElement)!=null?B:this).removeAttribute("aria-hidden")}else{var z;((z=this.hostElement)!=null?z: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 W;if(this.withBackdrop&&!((W=this.hostElement)!=null?W:this).hasAttribute("tabindex")){var B;((B=this.hostElement)!=null?B:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var z;((z=this.hostElement)!=null?z: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 W;((W=this.hostElement)!=null?W:this).style.display="none";var B;((B=this.hostElement)!=null?B:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var W,B;((W=this.hostElement)!=null?W:this).style.transition=((B=this.hostElement)!=null?B:this).style.webkitTransition="none";var z,G;((z=this.hostElement)!=null?z:this).style.transform=((G=this.hostElement)!=null?G:this).style.webkitTransform="none";var Y;((Y=this.hostElement)!=null?Y:this).style.display=""},
_finishPositioning:function(){var W;((W=this.hostElement)!=null?W:this).style.display="none";this.scrollTop=this.scrollTop;var B,z;((B=this.hostElement)!=null?B:this).style.transition=((z=this.hostElement)!=null?z:this).style.webkitTransition="";var G,Y;((G=this.hostElement)!=null?G:this).style.transform=((Y=this.hostElement)!=null?Y:this).style.webkitTransform="";var d;((d=this.hostElement)!=null?d:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var W=this._manager.deepActiveElement,B;if(!(B=W===document.body))a:{for(;W;W=W.assignedSlot||W.parentNode||W.host)if(W===this){B=!0;break a}B=!1}B&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(W){this.noCancelOnOutsideClick||this.cancel(W)},
_onCaptureFocus:function(W){if(this.withBackdrop){var B=_.St(W).path;B.indexOf(this)===-1?(W.stopPropagation(),this._applyFocus()):this._focusedChild=B[0]}},
_onCaptureEsc:function(W){this.noCancelOnEscKey||this.cancel(W)},
_onCaptureTab:function(W){if(this.withBackdrop){this.__ensureFirstLastFocusables();var B=W.shiftKey,z=B?this.__firstFocusableNode:this.__lastFocusableNode;B=B?this.__lastFocusableNode:this.__firstFocusableNode;if(z===B)z=!0;else{var G=this._manager.deepActiveElement;z=G===z||G===this}z&&(W.preventDefault(),this._focusedChild=B,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 W=this._focusableNodes;this.__firstFocusableNode=W[0];this.__lastFocusableNode=W[W.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(W,B){var z=this.__rafs;z[W]!==null&&cancelAnimationFrame(z[W]);z[W]=requestAnimationFrame(function(){z[W]=null;B.call(this)}.bind(this))},
__updateScrollObservers:function(W,B,z){W&&B&&this.__isValidScrollAction(z)?(z==="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),zQr=_._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()):(W=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),W!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(W,1),zQr=_._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(yH)for(var W=this;W;)W.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&W.host&&this.__rootNodes.push(W),W=W.host||W.assignedSlot||W.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(B){B.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(W){W.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(W){return W==="lock"||W==="refit"||W==="cancel"},
__onCaptureScroll:function(W){if(!(this.__isAnimating||_.St(W).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(W)}},
__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)}};
_.ct=[AtD,_.Mp,_.vt];_.D8({_template:function(){if(dgF!==void 0)return dgF;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;You===void 0&&(You=document.createElement("template"));var G=You;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return dgF=W},
is:"tp-yt-iron-dropdown",behaviors:[_.Q3,_.DM,_.ct,LCF],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 W=_.St(this.$.content).getDistributedNodes(),B=0,z=W.length;B<z;B++)if(W[B].nodeType===Node.ELEMENT_NODE)return W[B]},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(),_.vt._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.vt._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.vt._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var W=this.containedElement,B=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),z=0;z<B.length;z++)B[z].node=W;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(W){this._readied&&(W?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var W=this.focusTarget||this.containedElement;W&&this.opened&&!this.noAutoFocus?W.focus():_.vt._applyFocus.apply(this,arguments)}});var Jtd;var gnQ;/*

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 tTF=new _.Np({type:"iconset"});
_.D8({_template:function(){if(gnQ!==void 0)return gnQ;var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Jtd===void 0&&(Jtd=document.createElement("template"));
var G=Jtd;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return gnQ=W},
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(W){W=(W||"").split(":");this._iconName=W.pop();this._iconsetName=W.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&&_.St(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=tTF.byKey(this._iconsetName)){var W=this._iconset.applyIcon(this,this._iconName,this.theme);W&&W.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,_.St(this.root).appendChild(this._img)}});var skF;var PrM;_.D8({_template:function(){if(PrM!==void 0)return PrM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var B=W.content,z=B.insertBefore;skF===void 0&&(skF=document.createElement("template"));var G=skF;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return PrM=W},
is:"tp-yt-iron-input",behaviors:[_.Lr],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(){_.p6.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.St(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.St(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 W=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":W=/[0-9.,e-]/}return W},_bindValueChanged:function(W,B){B&&(W===void 0?B.value=null:W!==B.value&&(this.inputElement.value=W),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:W}))},
_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(W){var B=W.keyCode==19||W.keyCode==20||W.keyCode==45||W.keyCode==46||W.keyCode==144||W.keyCode==145||W.keyCode>32&&W.keyCode<41||W.keyCode>111&&W.keyCode<124;return!(W.keyCode==8||W.keyCode==9||W.keyCode==13||W.keyCode==27)&&!(W.charCode==0&&B)},
_onKeypress:function(W){if(this.allowedPattern||this.inputElement.type==="number"){var B=this._patternRegExp;if(B&&!(W.metaKey||W.ctrlKey||W.altKey)){this._patternAlreadyChecked=!0;var z=String.fromCharCode(W.charCode);this._isPrintable(W)&&!B.test(z)&&(W.preventDefault(),this._announceInvalidCharacter("Invalid character "+z+" not entered."))}}},
_checkPatternValidity:function(){var W=this._patternRegExp;if(!W)return!0;for(var B=0;B<this.inputElement.value.length;B++)if(!W.test(this.inputElement.value[B]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var W=this.inputElement.checkValidity();W&&(this.required&&this.bindValue===""?W=!1:this.hasValidator()&&(W=_.Lr.validate.call(this,this.bindValue)));this.invalid=!W;this.fire("iron-input-validate");return W},
_announceInvalidCharacter:function(W){this.fire("iron-announce",{text:W})},
_computeValue:function(W){return W}});var ZQ7;var rtR;var kHU=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),l0H=kHU&&kHU[1]>=8;
_.D8({_template:function(){if(rtR!==void 0)return rtR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;ZQ7===void 0&&(ZQ7=document.createElement("template"));var G=ZQ7;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return rtR=W},
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:[Fny,_.Mp,_.$$M,bs7],_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 _.St(_.St(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var W=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,W-this._physicalCount)},set _virtualStart(W){W=this._clamp(W,0,this._maxVirtualStart);this.grid&&(W-=W%this._itemsPerRow);this._virtualStartVal=W},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(W){W%=this._physicalCount;W<0&&(W=this._physicalCount+W);this.grid&&(W-=W%this._itemsPerRow);this._physicalStartVal=W},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(W){this._physicalCountVal=W},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 W=this._firstVisibleIndexVal;if(W==null){var B=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
W=this._iterateItems(function(z,G){B+=this._getPhysicalSizeIncrement(z);if(B>this._scrollPosition)return this.grid?G-G%this._itemsPerRow:G;if(this.grid&&this._virtualCount-1===G)return G-G%this._itemsPerRow})||0}return W},
get lastVisibleIndex(){var W=this._lastVisibleIndexVal;if(W==null){if(this.grid)W=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var B=this._physicalTop+this._scrollOffset;this._iterateItems(function(z,G){B<this._scrollBottom&&(W=G);B+=this._getPhysicalSizeIncrement(z)})}this._lastVisibleIndexVal=W}return W},
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,_.eK);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(W){this.style.webkitOverflowScrolling=W===this?"touch":"";this.style.overflowY=W===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.eK)},
updateViewportBoundaries:function(){var W=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(W["padding-top"],10);this._isRTL=W.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var W=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),B=W-this._scrollPosition,z=B>=0;this._scrollPosition=W;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(B)>this._physicalSize&&this._physicalSize>0?(B-=this._scrollOffset,z=Math.round(B/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=z,this._physicalStart+=z,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(W=this._getReusables(z),z?(this._physicalTop=W.physicalTop,this._virtualStart+=W.indexes.length,this._physicalStart+=W.indexes.length):(this._virtualStart=this._virtualStart-W.indexes.length,this._physicalStart=this._physicalStart-W.indexes.length),this._update(W.indexes,z?null:W.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),xF))},
_getReusables:function(W){var B=[],z=this._hiddenContentSize*this._ratio,G=this._virtualStart,Y=this._virtualEnd,d=this._physicalCount,E=this._physicalTop+this._scrollOffset;var v=this._physicalBottom+this._scrollOffset;var c=this._scrollPosition,J=this._scrollBottom;if(W){var g=this._physicalStart;v=c-E}else g=this._physicalEnd,v-=J;for(;;){var t=this._getPhysicalSizeIncrement(g);v-=t;if(B.length>=d||v<=z)break;if(W){if(Y+B.length+1>=this._virtualCount)break;if(E+t>=c-this._scrollOffset)break;B.push(g);
E+=t;g=(g+1)%d}else{if(G-B.length<=0)break;if(E+this._physicalSize-t<=J)break;B.push(g);E-=t;g=g===0?d-1:g-1}}return{indexes:B,physicalTop:E-this._scrollOffset}},
_update:function(W,B){if(!(W&&W.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(W);this._updateMetrics(W);if(B)for(;B.length;)W=B.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(W);this._positionItems();this._updateScrollerSize()}},
_createPool:function(W){this._ensureTemplatized();var B,z=Array(W);for(B=0;B<W;B++){var G=this.stamp(null);z[B]=G.root.querySelector("*");this._itemsParent.appendChild(G.root)}return z},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(W){W=this._clamp(this._physicalCount+W,3,this._virtualCount-this._virtualStart);W=this._convertIndexToCompleteRow(W);if(this.grid){var B=W%this._itemsPerRow;B&&W-B<=this._physicalCount&&(W+=this._itemsPerRow);W-=B}W-=this._physicalCount;B=Math.round(this._physicalCount*.5);if(!(W<0)){if(W>0){B=window.performance.now();[].push.apply(this._physicalItems,this._createPool(W));for(var z=0;z<W;z++)this._physicalSizes.push(0);this._physicalCount+=W;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=W);this._update();this._templateCost=(window.performance.now()-B)/W;B=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||B===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,B)),w3T):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,B),xF))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var W=this._getReusables(!0);this._physicalTop=W.physicalTop;this._virtualStart+=W.indexes.length;this._physicalStart+=W.indexes.length;this._update(W.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 W={__key__:!0};W[this.as]=!0;W[this.indexAs]=!0;W[this.selectedAs]=!0;W.tabIndex=!0;this._instanceProps=W;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(W,B){typeof B!=="undefined"&&(this.notifyResize(),_.jY(),W&&this._updateGridMetrics())},
_itemsChanged:function(W){if(W.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,
_.eK);else if(W.path==="items.splices"){this._adjustVirtualIndex(W.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(W.value.indexSplices.some(function(z){return z.addedCount>0||z.removed.length>0})){var B=this._getActiveElement();
this.contains(B)&&B.blur()}W=W.value.indexSplices.some(function(z){return z.index+z.addedCount>=this._virtualStart&&z.index<=this._virtualEnd},this);
this._isClientFull()&&!W||this._debounce("_render",this._render,_.eK)}else W.path!=="items.length"&&this._forwardItemPath(W.path,W.value)},
_forwardItemPath:function(W,B){W=W.slice(6);var z=W.indexOf(".");z===-1&&(z=W.length);var G,Y=this.modelForElement(this._offscreenFocusedItem),d=parseInt(W.substring(0,z),10);if(G=this._isIndexRendered(d)){var E=this._getPhysicalIndex(d);var v=this.modelForElement(this._physicalItems[E])}else Y&&(v=Y);v&&v[this.indexAs]===d&&(W=W.substring(z+1),W=this.as+(W?"."+W:""),v._setPendingPropertyOrPath(W,B,!1,!0),v._flushProperties&&v._flushProperties(),G&&(this._updateMetrics([E]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(W){W.forEach(function(B){B.removed.forEach(this._removeItem,this);B.index<this._virtualStart&&(B=Math.max(B.addedCount-B.removed.length,B.index-this._virtualStart),this._virtualStart+=B,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=B))},this)},
_removeItem:function(W){this.$.selector.deselect(W);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===W&&this._removeFocusedItem()},
_iterateItems:function(W,B){var z,G;if(arguments.length===2&&B)for(G=0;G<B.length;G++){var Y=B[G];var d=this._computeVidx(Y);if((z=W.call(this,Y,d))!=null)return z}else{Y=this._physicalStart;for(d=this._virtualStart;Y<this._physicalCount;Y++,d++)if((z=W.call(this,Y,d))!=null)return z;for(Y=0;Y<this._physicalStart;Y++,d++)if((z=W.call(this,Y,d))!=null)return z}},
_computeVidx:function(W){return W>=this._physicalStart?this._virtualStart+(W-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+W},
_assignModels:function(W){this._iterateItems(function(B,z){var G=this._physicalItems[B],Y=this.items&&this.items[z];if(Y!=null){var d=this.modelForElement(G);d.__key__=null;this._forwardProperty(d,this.as,Y);this._forwardProperty(d,this.selectedAs,this.$.selector.isSelected(Y));this._forwardProperty(d,this.indexAs,z);this._forwardProperty(d,"tabIndex",this._focusedVirtualIndex===z?0:-1);this._physicalIndexForKey[d.__key__]=B;d._flushProperties&&d._flushProperties(!0);G.removeAttribute("hidden")}else G.setAttribute("hidden",
"")},W)},
_updateMetrics:function(W){_.jY();var B=0,z=0,G=this._physicalAverageCount,Y=this._physicalAverage;this._iterateItems(function(d){z+=this._physicalSizes[d];this._physicalSizes[d]=this._physicalItems[d].offsetHeight;B+=this._physicalSizes[d];this._physicalAverageCount+=this._physicalSizes[d]?1:0},W);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(z=this._itemsPerRow===1?z:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+B-z,this._itemsPerRow=1);this._physicalAverageCount!==G&&(this._physicalAverage=Math.round((Y*G+B)/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 W=this._physicalTop;if(this.grid){var B=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(z,G){var Y=Math.floor(G%this._itemsPerRow*this._itemWidth+B);this._isRTL&&(Y*=-1);this.translate3d(Y+"px",W+"px",0,this._physicalItems[z]);this._shouldRenderNextRow(G)&&(W+=this._rowHeight)})}else this._iterateItems(function(z){this.translate3d(0,W+"px",0,this._physicalItems[z]);
W+=this._physicalSizes[z]})},
_getPhysicalSizeIncrement:function(W){return this.grid?this._computeVidx(W)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[W]},
_shouldRenderNextRow:function(W){return W%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var W=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(W!==0){this._physicalTop=this._physicalTop-W;var B=this._scrollPosition;!l0H&&B>0&&this._resetScrollPosition(B-W)}},
_resetScrollPosition:function(W){this.scrollTarget&&W>=0&&(this._scrollPosition=this._scrollTop=W)},
_updateScrollerSize:function(W){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((W=(W=(W=W||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(W){return this.scrollToIndex(this.items.indexOf(W))},
scrollToIndex:function(W){if(!(typeof W!=="number"||W<0||W>this.items.length-1)&&(_.jY(),this._physicalCount!==0)){W=this._clamp(W,0,this._virtualCount-1);if(!this._isIndexRendered(W)||W>=this._maxVirtualStart)this._virtualStart=this.grid?W-this._itemsPerRow*2:W-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var B=this._physicalStart,z=this._virtualStart,G=0,Y=this._hiddenContentSize;z<W&&
G<=Y;)G+=this._getPhysicalSizeIncrement(B),B=(B+1)%this._physicalCount,z++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+G);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)},_.eK)},
selectItem:function(W){return this.selectIndex(this.items.indexOf(W))},
selectIndex:function(W){if(!(W<0||W>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(W)){var B=this.modelForElement(this._physicalItems[this._getPhysicalIndex(W)]);B&&(B[this.selectedAs]=!0);this.updateSizeForIndex(W)}this.$.selector.selectIndex(W)}},
deselectItem:function(W){return this.deselectIndex(this.items.indexOf(W))},
deselectIndex:function(W){W<0||W>=this._virtualCount||(this._isIndexRendered(W)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(W)])[this.selectedAs]=!1,this.updateSizeForIndex(W)),this.$.selector.deselectIndex(W))},
toggleSelectionForItem:function(W){return this.toggleSelectionForIndex(this.items.indexOf(W))},
toggleSelectionForIndex:function(W){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(W):this.$.selector.isSelected(this.items[W]))?this.deselectIndex(W):this.selectIndex(W)},
clearSelection:function(){this._iterateItems(function(W){this.modelForElement(this._physicalItems[W])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(W){(W?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(W){var B=this.modelForElement(W.target);if(B){var z=_.St(W).path[0];W=this._getActiveElement();var G=this._physicalItems[this._getPhysicalIndex(B[this.indexAs])];if(z.localName!=="input"&&z.localName!=="button"&&z.localName!=="select"){z=B.tabIndex;B.tabIndex=-100;var Y=W?W.tabIndex:-1;B.tabIndex=z;W&&G!==W&&G.contains(W)&&Y!==-100||this.toggleSelectionForItem(B[this.as])}}},
_multiSelectionChanged:function(W){this.clearSelection();this.$.selector.multi=W},
updateSizeForItem:function(W){return this.updateSizeForIndex(this.items.indexOf(W))},
updateSizeForIndex:function(W){if(!this._isIndexRendered(W))return null;this._updateMetrics([this._getPhysicalIndex(W)]);this._positionItems();return null},
_manageFocus:function(){var W=this._focusedVirtualIndex;W>=0&&W<this._virtualCount?this._isIndexRendered(W)?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(W){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(W/this._itemsPerRow)*this._itemsPerRow:W},
_isIndexRendered:function(W){return W>=this._virtualStart&&W<=this._virtualEnd},
_isIndexVisible:function(W){return W>=this.firstVisibleIndex&&W<=this.lastVisibleIndex},
_getPhysicalIndex:function(W){return(this._physicalStart+(W-this._virtualStart))%this._physicalCount},
focusItem:function(W){this._focusPhysicalItem(W)},
_focusPhysicalItem:function(W){if(!(W<0||W>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(W)||this.scrollToIndex(W);var B=this._physicalItems[this._getPhysicalIndex(W)],z=this.modelForElement(B),G;z.tabIndex=-100;B.tabIndex===-100&&(G=B);G||(G=_.St(B).querySelector('[tabindex="-100"]'));z.tabIndex=0;this._focusedVirtualIndex=W;G&&G.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 W=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var B=this.stamp(null);this._focusBackfillItem=B.root.querySelector("*");this._itemsParent.appendChild(B.root)}this._offscreenFocusedItem=this._physicalItems[W];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[W]=this._focusBackfillItem;this._focusedPhysicalIndex=W;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var W=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),B=this._physicalItems[W];if(B){var z=this.modelForElement(B),G=this.modelForElement(this._offscreenFocusedItem);z[this.as]===G[this.as]?(this._focusBackfillItem=B,z.tabIndex=-1,this._physicalItems[W]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(W){W=this.modelForElement(W.target);var B=this.modelForElement(this._focusedItem),z=this._offscreenFocusedItem!==null,G=this._focusedVirtualIndex;W&&(B===W?this._isIndexVisible(G)||this.scrollToIndex(G):(this._restoreFocusedItem(),B&&(B.tabIndex=-1),W.tabIndex=0,this._focusedVirtualIndex=G=W[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(G),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],z&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(W){switch(W.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&W.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&&W.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(W)}},
_clamp:function(W,B,z){return Math.min(z,Math.max(B,W))},
_debounce:function(W,B,z){this._debouncers=this._debouncers||{};this._debouncers[W]=_.hf(this._debouncers[W],z,B.bind(this));_.H4(this._debouncers[W])},
_forwardProperty:function(W,B,z){W._setPendingProperty(B,z)},
_forwardHostPropV2:function(W,B){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(z){z&&this.modelForElement(z).forwardHostProp(W,B)},this)},
_notifyInstancePropV2:function(W,B,z){Ent(this.as,B)&&(W=W[this.indexAs],B==this.as&&(this.items[W]=z),this.notifyPath(Jj(this.as,"items."+W,B),z))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(W,B,z){B.indexOf(this.as+".")===0&&this.notifyPath("items."+W.__key__+"."+B.slice(this.as.length+1),z)},
_forwardParentPath:function(W,B){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(z){z&&this.modelForElement(z).notifyPath(W,B)},this)},
_forwardParentProp:function(W,B){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(z){z&&(this.modelForElement(z)[W]=B)},this)},
_getActiveElement:function(){var W=this._itemsParent.node.domHost;return _.St(W?W.root:document).activeElement},
_scrollTargetChanged:function(W,B){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(B)if(W==="document")this.scrollTarget=this._doc;else if(typeof W==="string"){var z,G;this.scrollTarget=(B=(G=(z=this.domHost)==null?void 0:z.polymerController)!=null?G:this.domHost)&&B.$?B.$[W]:_.St(this.ownerDocument).querySelector("#"+W)}else this._isValidScrollTarget()&&(this._oldScrollTarget=W,this._toggleScrollListener(this._shouldHaveListener,W))}});var Cr6;var I0R;var onU=function(W,B,z,G){W-=z;B-=G;return Math.sqrt(W*W+B*B)},hp4=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
Guy.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var YTQ=function(W){W.maxRadius=0;W.mouseDownStart=0;W.mouseUpStart=0;W.xStart=0;W.yStart=0;W.xEnd=0;W.yEnd=0;W.containerMetrics=new Guy(W.element)};
dr8.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var W=hp4()-this.mouseDownStart;this.mouseUpStart&&(W-=this.mouseUpElapsed);return W},get mouseUpElapsed(){return this.mouseUpStart?hp4()-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 W=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(W*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-W/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var W=this.radius/(this.containerMetrics.size/2);var B=this.xNow-this.containerMetrics.width/2;var z=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+B+"px, "+z+"px)";this.waveContainer.style.transform="translate3d("+B+"px, "+z+"px, 0)";this.wave.style.webkitTransform="scale("+W+","+W+")";this.wave.style.transform="scale3d("+W+","+W+",1)"},
downAction:function(W){var B=this.containerMetrics.width/2,z=this.containerMetrics.height/2;YTQ(this);this.mouseDownStart=hp4();this.center?(this.xStart=B,this.yStart=z):(this.xStart=W?W.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=W?W.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=B,this.yEnd=z);W=this.containerMetrics;B=this.xStart;z=this.yStart;this.maxRadius=Math.max(onU(B,z,0,0),onU(B,z,
W.width,0),onU(B,z,0,W.height),onU(B,z,W.width,W.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=hp4())},
remove:function(){_.St(_.St(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.D8({_template:function(){if(I0R!==void 0)return I0R;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Cr6===void 0&&(Cr6=document.createElement("template"));var G=Cr6;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return I0R=W},
is:"tp-yt-paper-ripple",behaviors:[_.DM],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(){_.St(this).parentNode.nodeType==11?this.keyEventTarget=_.St(this).getOwnerRoot().host:this.keyEventTarget=_.St(this).parentNode;var W=this.keyEventTarget;this.listen(W,"up","uiUpAction");this.listen(W,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(W){W.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var W=0;W<this.ripples.length;++W)if(!this.ripples[W].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(W){this.noink||this.downAction(W)},
downAction:function(W){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(W),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(W){this.noink||this.upAction(W)},
upAction:function(W){this.holdDown||(this.ripples.forEach(function(B){B.upAction(W)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var W=0;W<this.ripples.length;++W){var B=this.ripples[W];B.isOpacityFullyDecayed&&!B.isRestingAtMaxRadius&&this.removeRipple(B)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var W=new dr8(this);_.St(this.$.waves).appendChild(W.waveContainer);this.$.background.style.backgroundColor=W.color;this.ripples.push(W);this._setAnimating(!0);return W},
removeRipple:function(W){var B=this.ripples.indexOf(W);B<0||(this.ripples.splice(B,1),W.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var W;for(W=0;W<this.ripples.length;++W){var B=this.ripples[W];B.draw();this.$.background.style.opacity=B.outerOpacity;B.isOpacityFullyDecayed&&!B.isRestingAtMaxRadius&&this.removeRipple(B)}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(W,B){B!==void 0&&(W?this.downAction():this.upAction())}});var wE={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(W){y3._downHandler.call(this,W);this.pressed&&this.ensureRipple(W)},
ensureRipple:function(W){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var B=this._rippleContainer||this.root;B&&_.St(B).appendChild(this._ripple);if(W){B=_.St(this._rippleContainer||this);var z=_.St(W).rootTarget;B.deepContains(z)&&this._ripple.uiDownAction(W)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(W){this.hasRipple()&&(this._ripple.noink=W)}};var HQF={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 W=1;this.disabled?W=0:this.active||this.pressed?W=4:this.receivedFocusFromKeyboard&&(W=3);this._setElevation(W)},
_computeKeyboardClass:function(W){this.toggleClass("keyboard-focus",W)},
_spaceKeyDownHandler:function(W){y3._spaceKeyDownHandler.call(this,W);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(W){y3._spaceKeyUpHandler.call(this,W);this.hasRipple()&&this._ripple.uiUpAction()}},FQ6=[KC9,
_.Q3,wE,HQF];_.So4={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(W){W&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=W)},
_createRipple:function(){var W=wE._createRipple();W.id="ink";W.setAttribute("center","");W.classList.add("circle");return W}};
_.bQT=[KC9,_.Q3,wE,_.So4];_.jkH=[_.bQT,m$4,{_checkedChanged:function(){e$R._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){wE._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var f0D;var OQu;var Xh4=function(){};
_.p=Xh4.prototype;_.p.registered=function(){};
_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._tapHandler=function(){};
_.p._focusChanged=function(){};
_.p._detectKeyboardFocus=function(){};
_.p._userActivate=function(){};
_.p._upHandler=function(){};
_.p._asyncClick=function(){};
_.p._pressedChanged=function(){};
_.p._ariaActiveAttributeChanged=function(){};
_.p._activeChanged=function(){};
_.p._controlStateChanged=function(){};
_.p._changedButtonState=function(){};
_.p._focusBlurHandler=function(){};
_.p._disabledChanged=function(){};
_.p._changedControlState=function(){};
_.p._buttonStateChanged=function(){};
_.p._downHandler=function(){};
_.p.ensureRipple=function(){};
_.p.getRipple=function(){};
_.p.hasRipple=function(){};
_.p._createRipple=function(){};
_.p._noinkChanged=function(){};
_.p._computeKeyboardClass=function(){};
_.p._spaceKeyDownHandler=function(){};
_.p._spaceKeyUpHandler=function(){};
_.p._setPressed=function(){};
_.p._setPointerDown=function(){};
_.p._setReceivedFocusFromKeyboard=function(){};
_.p._setFocused=function(){};
_.p._setElevation=function(){};
Xh4=_.D8({_template:function(){if(OQu!==void 0)return OQu;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var B=W.content,z=B.insertBefore;f0D===void 0&&(f0D=document.createElement("template"));var G=f0D;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return OQu=W},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[FQ6],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?HQF._calculateElevation.apply(this):this._setElevation(0)}});var KQM;var uUT;var epQ={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(W){_.r("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(W)},
_onDialogClickWrapped:function(W){_.r("dialog_behavior_no_tap_killswitch")||this._onDialogClick(W)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(W,B){B&&(W?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(W){if(W){var B;((B=this.hostElement)!=null?B:this).setAttribute("aria-modal","true")}else{var z;((z=this.hostElement)!=null?z:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(W){this.closingReason=this.closingReason||{};this.closingReason.confirmed=W},
_onDialogClick:function(W){for(var B=_.St(W).path,z=0,G,Y=B.indexOf((G=this.hostElement)!=null?G:this);z<Y;z++)if(G=B[z],G.hasAttribute&&(G.hasAttribute("dialog-dismiss")||G.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(G.hasAttribute("dialog-confirm"));this.close();W.stopPropagation();break}}},mgH=[_.ct,
epQ];var xgQ=document.createElement("template");_.I(xgQ,'<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(xgQ.content);var Dgu=document.createElement("template");_.I(Dgu,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(Dgu.content);_.D8({_template:function(){if(uUT!==void 0)return uUT;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var B=W.content,z=B.insertBefore;KQM===void 0&&(KQM=document.createElement("template"));var G=KQM;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return uUT=W},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[mgH,LCF],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 Qk6;var ytH;_.D8({_template:function(){if(ytH!==void 0)return ytH;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Qk6===void 0&&(Qk6=document.createElement("template"));var G=Qk6;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return ytH=W},
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 W,B,z;if(((W=window.ShadyDOM)==null?void 0:W.noPatch)!==!0&&((B=window.ShadyDOM)==null?void 0:B.noPatch)!=="on-demand"||((z=this.__shady_parentNode)==null?void 0:z.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(epQ)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var qoM=_.ak(['<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>']),nn9=_.K8F(qoM);nn9.setAttribute("style","display: none;");document.head.appendChild(nn9.content);var NnM;var $gu;var LQM;var UgM;_.D8({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[a9],configure:function(W){var B=W.node,z=B.getBoundingClientRect().height;return this._effect=new KeyframeEffect(B,[{height:z/2+"px"},{height:z+"px"}],this.timingFromConfig(W))}});
_.D8({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[a9],configure:function(W){var B=W.node,z=B.getBoundingClientRect().width;return this._effect=new KeyframeEffect(B,[{width:z/2+"px"},{width:z+"px"}],this.timingFromConfig(W))}});
_.D8({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[a9],configure:function(W){var B=W.node,z=B.getBoundingClientRect().width;return this._effect=new KeyframeEffect(B,[{width:z+"px"},{width:z-z/20+"px"}],this.timingFromConfig(W))}});
_.D8({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[a9],configure:function(W){var B=W.node,z=B.getBoundingClientRect().height;this.setPrefixedProperty(B,"transformOrigin","0 0");return this._effect=new KeyframeEffect(B,[{height:z+"px",transform:"translateY(0)"},{height:z/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(W))}});var VA={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},MTR=function(){};
_.p=MTR.prototype;_.p.registered=function(){};
_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._focusBlurHandler=function(){};
_.p._changedControlState=function(){};
_.p._setFocused=function(){};
MTR=_.D8({_template:function(){if(UgM!==void 0)return UgM;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;LQM===void 0&&(LQM=document.createElement("template"));var G=LQM;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return UgM=W},
is:"tp-yt-paper-menu-button",behaviors:[_.DM,_.Q3],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:VA.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:VA.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:VA.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 W=_.St(this.$.content).getDistributedNodes(),B=0,z=W.length;B<z;B++)if(W[B].nodeType===Node.ELEMENT_NODE)return W[B]},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(W,B){W?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):B!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(W){_.Q3._disabledChanged.apply(this,arguments);W&&this.opened&&this.close()},
__onIronOverlayCanceled:function(W){var B=this.$.trigger;_.St(W.detail).path.indexOf(B)>-1&&W.preventDefault()}});
Object.keys(VA).forEach(function(W){MTR[W]=VA[W]});var a0F=_.qp.IronButtonState,RpR=(0,_.D3)(HTMLElement);
_.D8({_template:function(){if($gu!==void 0)return $gu;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;NnM===void 0&&(NnM=document.createElement("template"));var G=NnM;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return $gu=W},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[a0F,_.Q3,wE,_.nr,_.Lr],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(W){var B=(0,_.ZE)(this);B.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:W});B.shadowRoot.appendChild(W);return RpR.prototype._attachDom.call(this,W)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var W=this.contentElement;W&&W.selectedItem&&this._setSelectedItem(W.selectedItem)},
get contentElement(){for(var W=_.St(this.$.content).getDistributedNodes(),B=0,z=W.length;B<z;B++)if(W[B].nodeType===Node.ELEMENT_NODE)return W[B]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(W){this._setSelectedItem(W.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(W){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)===this&&this.open()},
_selectedItemChanged:function(W){var B="";W?B=W.label||W.getAttribute("label")||W.textContent.trim():B="";this.value=B;this._setSelectedItemLabel(B)},
_computeMenuVerticalOffset:function(W,B){return B?B:W?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var W=this.opened?"true":"false",B=this.contentElement;B&&B.setAttribute("aria-expanded",W)},
_computeLabelClass:function(W,B,z){var G="label";if(W)z&&(G+=" label-is-hidden");else if(z||B)G+=" label-is-floating";return G},
_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 Ww9;var BbH;_.D8({is:"tp-yt-paper-icon-button",_template:function(){if(BbH!==void 0)return BbH;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Ww9===void 0&&(Ww9=document.createElement("template"));var G=Ww9;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return BbH=W},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.bQT],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(W,B){var z=this.getAttribute("aria-label");z&&B!=z||this.setAttribute("aria-label",W)}});var zZd;var GCM;_.JL=[KC9,_.Q3,{hostAttributes:{role:"option",tabindex:"0"}}];_.D8({_template:function(){if(GCM!==void 0)return GCM;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;zZd===void 0&&(zZd=document.createElement("template"));var G=zZd;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return GCM=W},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.JL]});var YLd;var diR;var p8F={attached:function(){this.fire("addon-attached")},
update:function(){}};var AsR=1,iVM=1,ETd=1,TbT=[_.Q3,_.DM,{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();!Z3&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(W,B){W?W=W+" "+B:W=B;return W},
_onAddonAttached:function(W){W=_.St(W).rootTarget;if(W.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,W.id);else{var B="paper-input-add-on-"+iVM++;W.id=B;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,B)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(W){_.Q3._focusBlurHandler.call(this,W);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var W=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",W);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(W){try{var B=this.inputElement.selectionStart;this.value=W;this.inputElement.selectionStart=B;this.inputElement.selectionEnd=B}catch(z){this.value=W}},
_computeAlwaysFloatLabel:function(W,B){return B||W},
_updateAriaLabelledBy:function(){var W=_.St(this.root).querySelector("label");if(W){if(W.id)var B=W.id;else B="paper-input-label-"+AsR++,W.id=B;this._ariaLabelledBy=B}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+ETd++)},
_onChange:function(W){this.shadowRoot&&this.fire(W.type,{sourceEvent:W},{node:this,bubbles:W.bubbles,cancelable:W.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var W=document.activeElement;W instanceof HTMLElement&&W!==document.body&&W!==document.documentElement||this._focusableElement.focus()}}}];var vTQ;var csU;_.D8({_template:function(){if(csU!==void 0)return csU;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;vTQ===void 0&&(vTQ=document.createElement("template"));var G=vTQ;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return csU=W},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[p8F],properties:{_charCounterStr:{type:String,value:"0"}},update:function(W){if(W.inputElement){W.value=W.value||"";var B=W.value.toString().length.toString();W.inputElement.hasAttribute("maxlength")&&(B+="/"+W.inputElement.getAttribute("maxlength"));this._charCounterStr=B}}});var w8u;var Vm7;_.D8({_template:function(){if(Vm7!==void 0)return Vm7;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;w8u===void 0&&(w8u=document.createElement("template"));var G=w8u;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return Vm7=W},
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 Tp(this.attrForValue)},get _inputElement(){return _.St(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(W){this._addons||(this._addons=[]);W=W.target;this._addons.indexOf(W)===-1&&(this._addons.push(W),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(W){this._handleValueAndAutoValidate(W.target)},
_onValueChanged:function(W){var B=W.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,B.value===void 0||B.value===""))return;this._handleValueAndAutoValidate(W.target)},
_handleValue:function(W){var B=this._inputElementValue;B||B===0||W.type==="number"&&!W.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:W,value:B,invalid:this.invalid})},
_handleValueAndAutoValidate:function(W){this.autoValidate&&W&&(this.invalid=!(W.validate?W.validate(this._inputElementValue):W.checkValidity()));this._handleValue(W)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(W){if(this._addons)for(var B,z=0;B=this._addons[z];z++)B.update(W)},
_computeInputContentClass:function(W,B,z,G,Y){var d="input-content";W?(Y&&(d+=" label-is-hidden"),G&&!this.noUnfloatedLabelError&&(d+=" is-invalid")):(W=this.querySelector("label"),B||Y?(d+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",G?d+=" is-invalid":z&&(d+=" label-is-highlighted")):(W&&(this.$.labelAndInputContainer.style.position="relative"),G&&!this.noUnfloatedLabelError&&(d+=" is-invalid")));z&&(d+=" focused");return d},
_computeUnderlineClass:function(W,B){var z="underline";B?z+=" is-invalid":W&&(z+=" is-highlighted");return z},
_computeAddOnContentClass:function(W,B){var z="add-on-content";B?z+=" is-invalid":W&&(z+=" is-highlighted");return z}});var Jsd;var gTu;_.D8({_template:function(){if(gTu!==void 0)return gTu;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Jsd===void 0&&(Jsd=document.createElement("template"));var G=Jsd;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return gTu=W},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[p8F],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(W){this._setInvalid(W.invalid)}});_.D8({is:"tp-yt-paper-input",_template:function(){if(diR!==void 0)return diR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;YLd===void 0&&(YLd=document.createElement("template"));var G=YLd;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return diR=W},
behaviors:[TbT,_.nr],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 tmD;var sOD;_.D8({_template:function(){if(sOD!==void 0)return sOD;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=
W.content,z=B.insertBefore;tmD===void 0&&(tmD=document.createElement("template"));var G=tmD;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return sOD=W},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.JL]});var P07;var ZVM;_.D8({_template:function(){if(ZVM!==void 0)return ZVM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var B=W.content,z=B.insertBefore;P07===void 0&&(P07=document.createElement("template"));var G=P07;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return ZVM=W},
is:"tp-yt-paper-item-body"});var rsF;var kCR;var lJM=function(){};
_.p=lJM.prototype;_.p.indexOf=function(){};
_.p.selectPrevious=function(){};
_.p.selectNext=function(){};
_.p.selectIndex=function(){};
_.p.forceSynchronousItemUpdate=function(){};
_.p._checkFallback=function(){};
_.p._addListener=function(){};
_.p._removeListener=function(){};
_.p._activateEventChanged=function(){};
_.p._updateItems=function(){};
_.p._selectSelected=function(){};
_.p._filterItem=function(){};
_.p._valueToItem=function(){};
_.p._valueToIndex=function(){};
_.p._indexToValue=function(){};
_.p._valueForItem=function(){};
_.p._observeItems=function(){};
_.p._itemActivate=function(){};
_.p.multiChanged=function(){};
_.p._updateAttrForSelected=function(){};
_.p._updateSelected=function(){};
_.p._selectMulti=function(){};
_.p._selectionChange=function(){};
_.p._toggleSelected=function(){};
_.p._valuesToItems=function(){};
_.p.registered=function(){};
_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p.select=function(){};
_.p._resetTabindices=function(){};
_.p._updateMultiselectable=function(){};
_.p._focusWithKeyboardEvent=function(){};
_.p._clearSearchText=function(){};
_.p._focusPrevious=function(){};
_.p._focusNext=function(){};
_.p._applySelection=function(){};
_.p._focusedItemChanged=function(){};
_.p._onIronItemsChanged=function(){};
_.p._onShiftTabDown=function(){};
_.p._onFocus=function(){};
_.p._onUpKey=function(){};
_.p._onDownKey=function(){};
_.p._onEscKey=function(){};
_.p._onKeydown=function(){};
_.p._activateHandler=function(){};
_.p._disabledChanged=function(){};
_.p._setSelectedItem=function(){};
_.p._setItems=function(){};
_.p._setSelectedItems=function(){};
_.p._setFocusedItem=function(){};
lJM=_.D8({_template:function(){if(kCR!==void 0)return kCR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var B=W.content,z=B.insertBefore;rsF===void 0&&(rsF=document.createElement("template"));var G=rsF;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return kCR=W},
is:"tp-yt-paper-listbox",behaviors:[ygF],hostAttributes:{role:"listbox"}});var C0R;var IJR;var oTd={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(W,B){return[W||B?"active":"",B?"cooldown":""].join(" ")},
__activeChanged:function(W,B){this.__setAriaHidden(!W);this.__coolingDown=!W&&B},
__altChanged:function(W){this.setAttribute("aria-label",W||"loading")},
__setAriaHidden:function(W){W?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.D8({_template:function(){if(IJR!==void 0)return IJR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;C0R===void 0&&(C0R=document.createElement("template"));var G=C0R;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return IJR=W},
is:"tp-yt-paper-spinner",behaviors:[oTd]});var hZU;var HVR;_.D8({_template:function(){if(HVR!==void 0)return HVR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;hZU===void 0&&(hZU=document.createElement("template"));var G=hZU;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return HVR=W},
is:"tp-yt-paper-spinner-lite",behaviors:[oTd]});var FwR;var SLd;_.D8({_template:function(){if(SLd!==void 0)return SLd;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;FwR===void 0&&(FwR=document.createElement("template"));var G=FwR;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return SLd=W},
is:"tp-yt-paper-tab",behaviors:[_.Q3,_.qp.IronButtonState,wE],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 W=_.St(this).parentNode;return!!W&&!!W.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(W){if(this.link){var B=this.queryEffectiveChildren("a");B&&W.target!==B&&B.click()}}});var bVT;var jOM;var fJR=_.ak(['<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>']),OVR=_.K8F(fJR);document.head.appendChild(OVR.content);_.D8({_template:function(){if(jOM!==void 0)return jOM;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;bVT===void 0&&(bVT=document.createElement("template"));var G=bVT;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return jOM=W},
is:"tp-yt-paper-tabs",behaviors:[_.Mp,_.n2F],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(W){_.St(this).querySelectorAll("tp-yt-paper-tab").forEach(W?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(W){W.setAttribute("noink","")},
_removeNoinkAttribute:function(W){W.removeAttribute("noink")},
_computeScrollButtonClass:function(W,B,z,G){return!B||z?"hidden":W?G?"hidden":"not-visible":""},
_computeTabsContentClass:function(W,B){var z="tabs-content";W&&(z+=" scrollable");if(!W||B)z+=" fit-container";return z},
_computeSelectionBarClass:function(W,B){var z="selection-bar";W?z+=" hidden":B&&(z+=" align-bottom");return z},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(W){return""+W},
_onIronSelect:function(W){this._tabChanged(W.detail.item,this._previousTab);this._previousTab=W.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();_.U4._activateHandler.apply(this,arguments)},
_scheduleActivation:function(W,B){this._pendingActivationItem=W;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,B)},
_delayedActivationHandler:function(){var W=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;W.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(W){W.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(W,B){this.scrollable&&this._affectScroll(B&&-B.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(W){this.$.tabsContainer.scrollLeft+=W;W=this.$.tabsContainer.scrollLeft;this._leftHidden=W===0||this.hideScrollButtons;this._rightHidden=W===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(W,B){if(W){var z=this.$.tabsContent.getBoundingClientRect(),G=z.width,Y=W.getBoundingClientRect();z=Y.left-z.left;this._pos={width:this._calcPercent(Y.width,G),left:this._calcPercent(z,G)};if(this.noSlide||B==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var d=B.getBoundingClientRect();B=this.items.indexOf(B);W=this.items.indexOf(W);this.$.selectionBar.classList.add("expand");
W=B<W;this._isRTL&&(W=!W);W?this._positionBar(this._calcPercent(Y.left+Y.width-d.left,G)-5,this._left):this._positionBar(this._calcPercent(d.left+d.width-Y.left,G)-5,this._calcPercent(z,G)+5);this.scrollable&&this._scrollToSelectedIfNeeded(Y.width,z)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(W,B){B-=this.$.tabsContainer.scrollLeft;B<0?this.$.tabsContainer.scrollLeft+=B:(B+=W-this.$.tabsContainer.offsetWidth,B>0&&(this.$.tabsContainer.scrollLeft+=B))},
_calcPercent:function(W,B){return 100*W/B},
_positionBar:function(W,B){W=W||0;B=B||0;this._width=W;this._left=B;this.transform("translateX("+B+"%) scaleX("+W/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var W=this.$.selectionBar.classList;W.contains("expand")?(W.remove("expand"),W.add("contract"),this._positionBar(this._pos.width,this._pos.left)):W.contains("contract")&&W.remove("contract")}});var X8M;var KwF;_.D8({_template:function(){if(KwF!==void 0)return KwF;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;X8M===void 0&&(X8M=document.createElement("template"));var G=X8M;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return KwF=W},
is:"tp-yt-paper-textarea",behaviors:[TbT,_.nr],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(W){this.$.input.textarea.selectionStart=W},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(W){this.$.input.textarea.selectionEnd=W},_ariaLabelledByChanged:function(W){this._focusableElement.setAttribute("aria-labelledby",W)},
_ariaDescribedByChanged:function(W){this._focusableElement.setAttribute("aria-describedby",W)},
get _focusableElement(){return this.inputElement.textarea}});var uPU;var eZ7;/*

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 mi9=function(){};
_.p=mi9.prototype;_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._tapHandler=function(){};
_.p._focusChanged=function(){};
_.p._detectKeyboardFocus=function(){};
_.p._userActivate=function(){};
_.p._upHandler=function(){};
_.p._spaceKeyDownHandler=function(){};
_.p._spaceKeyUpHandler=function(){};
_.p._asyncClick=function(){};
_.p._pressedChanged=function(){};
_.p._ariaActiveAttributeChanged=function(){};
_.p._activeChanged=function(){};
_.p._controlStateChanged=function(){};
_.p._changedButtonState=function(){};
_.p._focusBlurHandler=function(){};
_.p._disabledChanged=function(){};
_.p._changedControlState=function(){};
_.p._downHandler=function(){};
_.p.ensureRipple=function(){};
_.p.getRipple=function(){};
_.p.hasRipple=function(){};
_.p._noinkChanged=function(){};
_.p._focusedChanged=function(){};
_.p.registered=function(){};
_.p._invalidChanged=function(){};
_.p.hasValidator=function(){};
_.p.validate=function(){};
_.p._getValidity=function(){};
_.p._requiredChanged=function(){};
_.p._valueChanged=function(){};
_.p._checkedChanged=function(){};
_.p._buttonStateChanged=function(){};
_.p._setPressed=function(){};
_.p._setPointerDown=function(){};
_.p._setReceivedFocusFromKeyboard=function(){};
_.p._setFocused=function(){};
mi9=_.D8({is:"tp-yt-paper-toggle-button",_template:function(){if(eZ7!==void 0)return eZ7;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;uPU===void 0&&(uPU=document.createElement("template"));var G=uPU;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return eZ7=W},
behaviors:[_.jkH],hostAttributes:{role:"button","aria-pressed":"false",tabindex:0},properties:{ironLabelTarget:{type:Boolean,reflectToAttribute:!0}},listeners:{track:"_ontrack"},__calculateIsRtl:function(){return window.getComputedStyle(this).direction==="rtl"},
attached:function(){this.__calculateIsRtl()&&this.setAttribute("dir","rtl");_.BM(this,function(){_.mz(this,"pan-y")})},
_ontrack:function(W){W=W.detail;W.state==="start"?this._trackStart(W):W.state==="track"?this._trackMove(W):W.state==="end"&&this._trackEnd(W)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(W){W=W.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+W:W)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+W:W));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 W=wE._createRipple();W.id="ink";W.setAttribute("recenters","");W.classList.add("circle","toggle-ink");return W}});var xiD;var DiR;_.D8({_template:function(){if(DiR!==void 0)return DiR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;xiD===void 0&&(xiD=document.createElement("template"));var G=xiD;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return DiR=W},
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 W=_.St(this).parentNode,B=_.St(this).getOwnerRoot(),z;this.for?z=_.St(B).querySelector("#"+this.for):z=W.nodeType==Node.DOCUMENT_FRAGMENT_NODE?B.host:W;return z},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(W){W==="entry"?this.show():W==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.St(this).textContent.trim()===""){for(var W=!0,B=_.St(this).getEffectiveChildNodes(),z=0;z<B.length;z++)if(B[z].textContent.trim()!==""){W=!1;break}if(W)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 W=this.offset;this.marginTop!=14&&this.offset==14&&(W=this.marginTop);var B=this.offsetParent.getBoundingClientRect(),z=this._target.getBoundingClientRect(),G=this.getBoundingClientRect(),Y=(z.width-G.width)/2,d=(z.height-G.height)/2,E=z.left-B.left,v=z.top-B.top;switch(this.position){case "top":var c=E+Y;var J=v-G.height-W;break;case "bottom":c=E+Y;J=v+z.height+W;break;case "left":c=E-G.width-W;J=v+d;break;case "right":c=E+z.width+
W,J=v+d}this.fitToVisibleBounds?(B.left+c+G.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,c)+"px",this.style.right="auto"),B.top+J+G.height>window.innerHeight?(this.style.bottom=B.height+"px",this.style.top="auto"):(this.style.top=Math.max(-B.top,J)+"px",this.style.bottom="auto")):(this.style.left=c+"px",this.style.top=J+"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(W){W!==500&&this.updateStyles({"--paper-tooltip-delay-in":W+"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(W){if(W==="entry"&&this.animationEntry!=="")return this.animationEntry;if(W==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[W]&&typeof this.animationConfig[W][0].name==="string"){if(this.animationConfig[W][0].timing&&this.animationConfig[W][0].timing.delay&&this.animationConfig[W][0].timing.delay!==0){var B=this.animationConfig[W][0].timing.delay;W==="entry"?this.updateStyles({"--paper-tooltip-delay-in":B+"ms"}):W==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":B+
"ms"})}return this.animationConfig[W][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 QOR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(QOR,_.iQ);var ysR=_.sK(QOR,[0,_.E8]);var gE=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(gE,_.iQ);var qLF=[3,4],nTF=[5,6];var Nb6=[0,qLF,nTF,_.wL,-1,_.iL,_.Vy,-1,P5x,rJT];var $iR=_.sK(gE,Nb6),LwQ=_.Pb(Nb6);var UiF=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(UiF,_.iQ);var Mmu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Mmu,_.iQ);var aJF=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(aJF,_.iQ);var RZH=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(RZH,_.iQ);var Wk7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Wk7,_.iQ);var tL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(tL,_.iQ);tL.prototype.getSource=function(){return _.u0(this,1)};
tL.prototype.getMessage=function(){return _.KV(this,4)};
tL.prototype.getData=function(){return _.AD(this,Wk7,8)};var Bwu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Bwu,_.iQ);var sz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(sz,_.iQ);var Pt=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Pt,_.iQ);var ZL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(ZL,_.iQ);ZL.prototype.getUrl=function(){return _.KV(this,1)};
ZL.prototype.setUrl=function(W){return _.f3(this,1,W)};
ZL.prototype.hasUrl=function(){return _.l9(_.CV(this,1))!=null};var zCF=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(zCF,_.iQ);var GIu=[3];var Y8M=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Y8M,_.iQ);var rE=function(W){var B=new Y8M;return _.i2(B,2,W)};
Y8M.prototype.getLanguage=function(){return mw(this,4,kN)};
var dD6=function(W){var B=rE(1);return _.hZ(B,6,kN,W)},kN=[3,
4,5,6];var pq7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(pq7,_.iQ);var lJ=function(W){var B=new pq7;return _.i2(B,1,W)},C6=function(W,B){return _.hZ(W,2,Ao7,B)},Ao7=[2,
3,4,5];var ifu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(ifu,_.iQ);var IZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(IZ,_.iQ);var EiQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(EiQ,_.iQ);var TwT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(TwT,_.iQ);var viU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(viU,_.iQ);var coQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(coQ,_.iQ);var wqR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(wqR,_.iQ);var oZ=function(W){return _.AD(W,Pt,5)};var V74=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(V74,_.iQ);V74.prototype.getValue=function(){return OL(this,1)};var Jo9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Jo9,_.iQ);var hL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(hL,_.iQ);hL.prototype.getMetadata=function(){return _.xT(this,viU,7,Ht)};
hL.prototype.hasMetadata=function(){return _.oO(this,viU,7,Ht)};
var gi7=_.xZR(hL),Ht=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var F3=function(W){this.JSC$12024_name_=W;this.files_=[];this.directories_=[];this.directoryMap_={}};
F3.prototype.getName=function(){return this.JSC$12024_name_};var bJ=function(W,B){this.callback_=B;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new F3("");t74(this,W,this.rootDirectory_);S9(this)},t74=function(W,B,z){for(var G=0;G<B.length;G++){var Y=B[G];
Y.isFile?(W.fileOps_++,Y.file((0,_.jk)(W.handleFileSuccess_,W,z),(0,_.jk)(W.handleFileError_,W))):W.unscannedDirectories_.push(new sfM(Y,z))}},S9=function(W){if(W.unscannedDirectories_.length>0&&W.directoryOps_<5&&!W.hasError_){W.directoryOps_++;
var B=W.unscannedDirectories_.shift(),z=B.entry,G=new F3(z.name);B=B.parent;B.directoryMap_[G.getName()]=G;B.directories_.push(G);z=z.createReader();z.readEntries((0,_.jk)(W.handleDirectorySuccess_,W,z,G),(0,_.jk)(W.handleDirectoryError_,W))}W.directoryOps_!=0||W.fileOps_!=0||W.unscannedDirectories_.length!=0&&!W.hasError_||W.callback_(W.rootDirectory_.files_,W.rootDirectory_.directories_,W.hasError_)};
bJ.prototype.handleDirectorySuccess_=function(W,B,z){t74(this,z,B);z.length==0?(this.directoryOps_--,S9(this)):W.readEntries((0,_.jk)(this.handleDirectorySuccess_,this,W,B),(0,_.jk)(this.handleDirectoryError_,this))};
bJ.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;S9(this)};
bJ.prototype.handleFileSuccess_=function(W,B){W.files_.push(B);this.fileOps_--;S9(this)};
bJ.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;S9(this)};
var sfM=function(W,B){this.entry=W;this.parent=B};var j9=function(W){_.Ka.call(this);_.ug(W,"drop",this.onObjectsDropped_,!1,this);_.ug(W,"dragenter",this.onFilesDragged_,!1,this);_.ug(W,"dragover",this.onFilesDragged_,!1,this);_.ug(W,"dragleave",this.onDragLeave_,!1,this);_.ug(W,"dragend",this.onDragLeave_,!1,this)};
_.TC(j9,_.Ka);var PLU=function(W,B){_.bK.call(this,"f");this.files=W;this.directories=B};
_.TC(PLU,_.bK);var ZfF=function(){_.bK.call(this,"h")};
_.TC(ZfF,_.bK);var roU=function(){_.bK.call(this,"i")};
_.TC(roU,_.bK);var kI7=function(){_.bK.call(this,"g")};
_.TC(kI7,_.bK);j9.prototype.onObjectsDropped_=function(W){var B=this;W.preventDefault();var z=W.event_.dataTransfer;if((W=z&&z.items)&&W.length>0&&W[0].webkitGetAsEntry){z=[];for(var G=[],Y=0;Y<W.length;Y++){var d=W[Y].webkitGetAsEntry();d?z.push(d):G.push(W[Y])}new bJ(z,function(E,v,c){c?B.dispatchEvent(new kI7("Error occurred while reading from the file system.")):B.dispatchEvent(new PLU(E,v,G))})}else(W=z&&z.files)&&this.dispatchEvent(new PLU(Array.from(W),[]))};
j9.prototype.onFilesDragged_=function(W){W.type==="dragenter"&&this.dispatchEvent(new ZfF);W.preventDefault()};
j9.prototype.onDragLeave_=function(){this.dispatchEvent(new roU)};var lFd=function(W,B){this.JSC$12047_name_=W;this.inputElement_=B};
lFd.prototype.getName=function(){return this.JSC$12047_name_};
lFd.prototype.getInputElement=function(){return this.inputElement_};var f6=function(W,B,z){B=B===void 0?"single_file":B;z=z===void 0?[]:z;_.Ka.call(this);this.overlayTarget_=W;this.parentOverlay_=W!=null?W.parentNode:_.I0("scotty-overlay-parent");this.selectorType_=B;this.acceptTypes_=z;this.overlay_=CLT(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.C(f6,_.Ka);
var CLT=function(W,B,z,G){var Y=document.createElement("input");Y.setAttribute("type","file");Y.setAttribute("name","Filedata");_.ug(Y,"change",W.onFilesSelected_,!1,W);z==="multiple_file"&&(Y.multiple="true");z==="single_directory"&&(Y.webkitdirectory="true");G.length>0&&Y.setAttribute("accept",G.join(","));Y.style.position="absolute";Y.style.overflow="hidden";Y.style.height="0px";Y.style.width="0px";Y.style.opacity="0";Y.setAttribute("aria-hidden","true");Y.setAttribute("tabIndex",-1);if(W.overlayTarget_!=
null)return Y.style.height=B.offsetHeight+"px",Y.style.width=B.offsetWidth+"px",W.parentOverlay_&&(W.parentOverlay_.style.position="relative"),_.nf(Y,B),af(Y,new _.De(B.offsetLeft,B.offsetTop)),Y;W.parentOverlay_.appendChild(Y);return Y};
f6.prototype.click=function(){this.overlay_.click()};
f6.prototype.onFilesSelected_=function(W){a:{try{var B=(new XMLHttpRequest).upload!==void 0;break a}catch(J){}B=!1}if(B){var z;W=Array.from((z=W.target.files)!=null?z:[]);z=[];if(this.selectorType_==="single_directory"&&(_.ts||RX||_.gb)){z=new F3("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(B=0;B<W.length;B++)for(var G=W[B],Y=G.webkitRelativePath.split("/"),d=z,E=0;E<Y.length;E++){var v=Y[E];if(E==Y.length-1){v!="."&&d.files_.push(G);break}var c=d.directoryMap_[v];c==void 0&&(v=
c=new F3(v),d.directoryMap_[v.getName()]=v,d.directories_.push(v));d=c}z=z.directories_}this.dispatchEvent(new IFF(W,z,null))}else W=W.target.value,W.match(/^c:\\fakepath\\/i)&&(W=W.substring(12)),this.dispatchEvent(new IFF([],[],new lFd(W,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=CLT(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var IFF=function(W,B){_.bK.call(this,"j");this.files=W;this.directories=B};
_.C(IFF,_.bK);var oiR=function(W){this.uploadUrl_=W};var hCR=function(){_.Ka.call(this)};
_.TC(hCR,_.Ka);var Oz=function(W){_.bK.call(this,W)};
_.TC(Oz,_.bK);var X3=function(W){_.bK.call(this,W)};
_.TC(X3,_.bK);var HfR=function(W,B,z,G,Y){_.Ka.call(this);z=document.createElement("form");z.setAttribute("method",B);z.setAttribute("enctype","multipart/form-data");z.setAttribute("encoding","multipart/form-data");B=document.createElement("input");B.setAttribute("type","hidden");B.setAttribute("name","metadata");B.setAttribute("value",Y);z.appendChild(B);z.appendChild(G);this.JSC$12064_form_=z;W=new _.B0(W);_.a0(W,"upload_protocol","multipart");this.JSC$12064_url_=W.toString();this.JSC$12064_request_=new r1;this.state_=
"Ready";this.JSC$12064_errorDescription_=null;this.JSC$12064_eventHandler_=new _.T5(this);_.rH(this,this.JSC$12064_eventHandler_);this.JSC$12064_eventHandler_.listen(this.JSC$12064_request_,"success",this.onTransferSuccess_);this.JSC$12064_eventHandler_.listen(this.JSC$12064_request_,"error",this.onTransferError_)};
_.C(HfR,hCR);_.p=HfR.prototype;_.p.run=function(){this.state_="Transferring";var W=this.JSC$12064_request_,B=this.JSC$12064_form_;if(W.JSC$11483_active_)throw Error("se");var z=new _.B0(this.JSC$12064_url_||B.action);W.JSC$11483_form_=B;B=W.JSC$11483_form_;z=_.NZ(z.toString());z!==void 0&&(B.action=z);GGR(W)};
_.p.getResponseCode=function(){return null};
_.p.getResponseText=function(){return this.JSC$12064_request_&&this.JSC$12064_request_.getResponseText()||null};
_.p.JSC$29476_getErrorDescription=function(){return this.JSC$12064_errorDescription_};
_.p.cancel=function(){this.JSC$12064_request_&&this.JSC$12064_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Oz("o"))};
_.p.pause=function(){};
_.p.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Oz("l"))};
_.p.onTransferError_=function(){this.JSC$12064_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Oz("n"))};var K6=function(){_.qI.call(this)};
_.C(K6,_.qI);K6.prototype.createXhr=function(){var W=_.qI.prototype.createXhr.call(this);W.upload&&(W.upload.onprogress=(0,_.jk)(this.onProgress_,this));return W};
K6.prototype.onProgress_=function(W){this.dispatchEvent(W)};var Fkd=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},bfR=function(W,B){var z=W.attempt_+1;
if(W.maxAttempts_>0&&z>W.maxAttempts_)return!1;z==0?B():W.delayCallId_=Dk(function(){W.delayCallId_=null;B()},S8T(W),W);
W.attempt_=z;return!0};
Fkd.prototype.reset=function(){this.delayCallId_&&_.Yt.clearTimeout(this.delayCallId_);this.attempt_=-1};
var S8T=function(W){var B=250*Math.pow(2,W.attempt_);W.maxDelayMs_>=0&&(B=Math.min(B,W.maxDelayMs_));return B};var A1v=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var uJ=function(){_.Ka.call(this);this.JSC$12074_request_=this.state_=null;this.JSC$12074_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12074_bytesTransferred_=0;this.retryIterator_=new Fkd;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12074_errorDescription_=null;this.JSC$12074_eventHandler_=new _.T5(this);_.rH(this,this.JSC$12074_eventHandler_);this.JSC$12074_url_=this.blob_=null;this.JSC$12074_method_=void 0;this.chunkSize_=this.JSC$12074_metadata_=
this.JSC$12074_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12074_responseText_=this.JSC$12074_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.TC(uJ,hCR);_.p=uJ.prototype;_.p.run=function(){e9(this)};
_.p.getResponseCode=function(){return this.JSC$12074_responseCode_};
_.p.getResponseText=function(){return this.JSC$12074_responseText_};
_.p.JSC$29476_getErrorDescription=function(){return this.JSC$12074_errorDescription_};
_.p.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12074_eventHandler_.removeAll();this.JSC$12074_request_&&this.JSC$12074_request_.abort();this.retryIterator_.reset();var W=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(W==="Upload"||W==="Query")W=new K6,W.JSC$9797_withCredentials_=this.JSC$12074_withCredentials_,W.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12074_bytesTransferred_=
0;this.dispatchEvent(new Oz("o"))}};
_.p.pause=function(){this.pauseRequested_=!0};
var e9=function(W){var B=W.state_;W.pauseRequested_?(W.pauseRequested_=!1,W.stateAfterUnpausing_=B,W.state_="Paused"):bfR(W.retryIterator_,function(){switch(W.state_){case "Start":W.JSC$12074_request_=new K6;var z=_.mP.clone(W.JSC$12074_headers_);W.blob_.size!=null&&(z["Content-Length"]=W.blob_.size);z=iwr(z);z["X-Goog-Upload-Protocol"]="resumable";z["X-Goog-Upload-Command"]="start";W.JSC$12074_eventHandler_.removeAll();W.JSC$12074_eventHandler_.listen(W.JSC$12074_request_,"complete",W.onStartComplete_);
W.JSC$12074_request_.JSC$9797_withCredentials_=W.JSC$12074_withCredentials_;W.JSC$12074_request_.send(W.JSC$12074_url_,W.JSC$12074_method_,W.JSC$12074_metadata_,z);W.lastCommandResponseCode_=null;W.dispatchEvent(new X3("q"));break;case "Upload":z=W.transferHandle_.uploadUrl_;var G=W.blob_.size;if(jgH()){var Y=W.chunkSize_;var d=W.offset_+Y>=G;G=bGu(W.blob_,W.offset_,d?G:W.offset_+Y)}else W.offset_=0,G=W.blob_,d=!0;W.JSC$12074_request_=new K6;W.JSC$12074_request_.JSC$9797_withCredentials_=W.JSC$12074_withCredentials_;
W.JSC$12074_eventHandler_.removeAll();W.JSC$12074_eventHandler_.listen(W.JSC$12074_request_,"progress",W.onUploadProgress_);Y=(0,_.jk)(W.JSC$12076_onUploadComplete_,W,W.offset_+G.size,d);W.JSC$12074_eventHandler_.listen(W.JSC$12074_request_,"complete",Y);W.lastCommandResponseCode_=null;W.dispatchEvent(new X3("q"));d=Object.assign({},W.JSC$12074_headers_||{},{"X-Goog-Upload-Command":"upload"+(d?", finalize":""),"X-Goog-Upload-Offset":W.offset_});W.JSC$12074_request_.send(z,"POST",G,d);break;case "Query":W.JSC$12074_request_=
new K6;W.JSC$12074_eventHandler_.removeAll();W.JSC$12074_eventHandler_.listen(W.JSC$12074_request_,"complete",W.onQueryComplete_);z=Object.assign({},W.JSC$12074_headers_||{},{"X-Goog-Upload-Command":"query"});W.JSC$12074_request_.send(W.transferHandle_.uploadUrl_,"POST","",z);W.lastCommandResponseCode_=null;W.dispatchEvent(new X3("q"));break;default:throw Error("hf");}})||mG(W,"Transfer encountered too many consecutive failures.")},mG=function(W,B){W.state_="Error";
W.JSC$12074_errorDescription_=B;W.dispatchEvent(new Oz("n"))};
uJ.prototype.onStartComplete_=function(W){var B=W.target;this.lastCommandResponseCode_=B.getStatus();this.dispatchEvent(new X3("r"));if(jfF(B))fFT(this,B);else if(Of7(B)){W=zt(W.target.getAllResponseHeaders());for(var z in W)_.A0(z.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Oz("m"));z=jt(W,"X-Goog-Upload-URL");W=(W=jt(W,"X-Goog-Upload-Chunk-Granularity"))?parseInt(W,10):1;z===void 0||isNaN(W)||W<=0?mG(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
W)*W,this.transferHandle_=new oiR(z),this.dispatchEvent(new Oz("p")),this.state_="Upload",this.retryIterator_.reset(),e9(this))}else e9(this)};
uJ.prototype.onUploadProgress_=function(W){this.JSC$12074_bytesTransferred_=this.offset_+W.loaded;this.dispatchEvent(new Oz("k"))};
uJ.prototype.JSC$12076_onUploadComplete_=function(W,B,z){var G=this,Y,d;return _.T(function(E){switch(E.nextAddress){case 1:Y=z.target;G.lastCommandResponseCode_=Y.getStatus();G.dispatchEvent(new X3("r"));if(XqM(Y)||Y.getStatus()==404)return G.JSC$12074_bytesTransferred_=W,fFT(G,Y),E.return();if(Of7(Y)){E.jumpTo(2);break}if(!(d=G.detectCorruptedBlobEnabled_)){E.jumpTo(3);break}return E.yield(KkM(G),4);case 4:d=E.yieldResult;case 3:if(d)return mG(G,"Blob has been modified or corrupted."),E.return();
G.requireUploadRequestModification_=Y.getStatus()==400;G.state_="Query";e9(G);return E.return();case 2:if(B)return mG(G,"Got a non-final success response after issuing a finalize command."),E.return();G.JSC$12074_bytesTransferred_=W;G.offset_=W;G.retryIterator_.reset();e9(G);return E.return()}})};
uJ.prototype.onQueryComplete_=function(W){var B=W.target;this.lastCommandResponseCode_=B.getStatus();this.dispatchEvent(new X3("r"));jfF(B)?(B.getStatus()===200&&(this.JSC$12074_bytesTransferred_=this.blob_.size),fFT(this,B)):Of7(B)?(W=zt(W.target.getAllResponseHeaders()),W=parseInt(jt(W,"X-Goog-Upload-Size-Received"),10),isNaN(W)?mG(this,"Server did not respond with current offset."):W<this.offset_?mG(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
W+"."):this.requireUploadRequestModification_&&this.offset_===W?mG(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<W&&this.retryIterator_.reset(),this.offset_=this.JSC$12074_bytesTransferred_=W,this.state_="Upload",e9(this))):e9(this)};
var fFT=function(W,B){W.JSC$12074_responseCode_=B.getStatus();var z=zt(B.getAllResponseHeaders());EL2(z);W.JSC$12074_responseText_=B.getResponseText();W.state_="Response received";W.dispatchEvent(new Oz("l"))},Of7=function(W){var B=W.getStatus();
W=zt(W.getAllResponseHeaders());W=jt(W,"X-Goog-Upload-Status");return B===200&&W==="active"},XqM=function(W){W=zt(W.getAllResponseHeaders());
return jt(W,"X-Goog-Upload-Status")==="final"},jfF=function(W){if(XqM(W))return!0;
W=W.getStatus();return W>=400&&W<500},KkM=function(W){var B;
return _.T(function(z){if(z.nextAddress==1){if(!W.blob_||W.originalBlobSize_<=0)return z.return(!1);if(W.blob_.size!==W.originalBlobSize_)return z.return(!0);_.kA(z,2);if(B=bGu(W.blob_,0,1)){var G=z.yield,Y=new Y0,d=VJT(Y);Y.reader_.readAsBinaryString(B);z=G.call(z,d,4)}else z=z.return(!0);return z}if(z.nextAddress!=2)return z.return(W.blob_.size!==W.originalBlobSize_);_.h6(z);return z.return(!0)})};var uVU=function(W,B,z,G,Y,d){_.Ka.call(this);this.payload_=G;this.JSC$12077_url_=W;this.JSC$12077_method_=B;this.JSC$12077_headers_=z;this.JSC$12077_metadata_=Y;this.encoding_=d||"binary";W=new _.yX;this.boundary_="uploader-"+Lp()+"-"+W.JSC$11332_toIsoString();this.JSC$12077_responseText_=this.JSC$12077_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12077_errorDescription_=null;this.JSC$12077_eventHandler_=new _.T5(this);_.rH(this,this.JSC$12077_eventHandler_)};
_.C(uVU,hCR);_.p=uVU.prototype;
_.p.run=function(){var W=_.mP.clone(this.JSC$12077_headers_);this.payload_.length!=null&&(W["Content-Length"]=this.payload_.length);W=iwr(W);W["X-Goog-Upload-Protocol"]="multipart";W["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new K6;this.JSC$12077_eventHandler_.removeAll();this.JSC$12077_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12077_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12077_url_,this.JSC$12077_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12077_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",W)};
_.p.getResponseCode=function(){return this.JSC$12077_responseCode_};
_.p.getResponseText=function(){return this.JSC$12077_responseText_};
_.p.JSC$29476_getErrorDescription=function(){return this.JSC$12077_errorDescription_};
_.p.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12077_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Oz("o")))};
_.p.pause=function(){};
_.p.onTransferProgress_=function(){this.dispatchEvent(new Oz("k"))};
_.p.onTransferComplete_=function(W){var B=W.target.getStatus();B===void 0||B===-1?(this.JSC$12077_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Oz("n"))):(this.JSC$12077_responseCode_=B,W=W.target,B=zt(W.getAllResponseHeaders()),EL2(B),this.JSC$12077_responseText_=W.getResponseText(),this.state_="Complete",this.dispatchEvent(new Oz("l")))};_.eCR=function(W,B,z,G){G=G===void 0?!1:G;if(z instanceof lFd)return new HfR(W,"POST",B,z.getInputElement(),"");if(typeof z==="string"||z instanceof String)return new uVU(W,"POST",B,z,"");var Y=new uJ(void 0);Y.JSC$12074_url_=W;Y.JSC$12074_method_="POST";Y.JSC$12074_headers_=B;Y.blob_=z;Y.originalBlobSize_=z.size;Y.JSC$12074_metadata_="";G&&(Y.JSC$12074_withCredentials_=G);Y.state_="Start";return Y};var xN=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(xN,_.iQ);_.p=xN.prototype;_.p.getEnableSsEngine=function(){return _.fV(this,2)};
_.p.getEnableAwr=function(){return _.fV(this,3)};
_.p.getAlohaAutoGaRollout=function(){return _.fV(this,5)};
_.p.getEnableConfigurator=function(){return _.fV(this,6)};
_.p.getEnableMweb=function(){return _.fV(this,7)};
var xDQ=function(){var W=mDH();return _.Oh(W,7,!0)};
xN.prototype.getEnableCtlConsentCheckbox=function(){return _.fV(this,8)};
xN.prototype.getEnableIframe=function(){return _.fV(this,9)};
var mDH=function(){var W=new xN;W=_.Oh(W,5,!0);W=_.Oh(W,2,!0);W=_.Oh(W,4,!1);W=_.Oh(W,8,!0);return _.Oh(W,9,!0)};
xN.prototype.getEnableScreenshotNudge=function(){return _.fV(this,10)};
var DDQ=function(){var W=xDQ();return _.Oh(W,10,!0)};
xN.prototype.getEnableWebStartupConfigEndpoint=function(){return _.fV(this,11)};
xN.prototype.getEnableJunkNudge=function(){return _.fV(this,12)};
var HwT=function(){var W=DDQ();return _.Oh(W,12,!0)};
_.p=xN.prototype;_.p.getEnableConfiguratorLocale=function(){return _.fV(this,13)};
_.p.getEnableTinyNoPointer=function(){return _.fV(this,14)};
_.p.getEnableSupportSessionLogging=function(){return _.fV(this,15)};
_.p.getEnableFileUploadForScreenshot=function(){return _.fV(this,16)};
_.p.getEnableDirectDeflectionForSingleCategory=function(){return _.fV(this,17)};
_.p.getEnableImageSanitization=function(){return _.fV(this,18)};
_.p.getEnableAlohaBinarySplit=function(){return _.fV(this,19)};
_.p.getEnableDbFeedbackIntents=function(){return _.fV(this,20)};
_.p.getEnableMarkMandatoryFieldsWithRequired=function(){return _.fV(this,21)};
_.p.getEnableFeedbackCategoryCustomUi=function(){return _.fV(this,22)};
_.p.getEnableRealtimeCtl=function(){return _.fV(this,23)};var hQx=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(hQx,_.iQ);var TRu=[/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 c1D="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 w1r=_.ak(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),V0Q=_.ak(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var gLy,PNQ,t0r,ZwT;var Qf9,yo7;
Qf9=function(W,B,z){W.timeOfStartCall=(new Date).getTime();var G=z||_.Yt,Y=G.document,d=W.nonce||_.zd(G.document);d&&!W.nonce&&(W.nonce=d);if(W.flow=="help"){var E=_.q6("document.location.href",G);!W.helpCenterContext&&E&&(W.helpCenterContext=E.substring(0,1200));E=!0;if(B&&JSON&&JSON.stringify){var v=JSON.stringify(B);(E=v.length<=1200)&&(W.psdJson=v)}E||(B={invalidPsd:!0})}B=[W,B,z];G.GOOGLE_FEEDBACK_START_ARGUMENTS=B;z=W.feedbackServerUri||"//www.google.com/tools/feedback";if(E=G.GOOGLE_FEEDBACK_START)E.apply(G,B);
else{G=z+"/load.js?";for(var c in W)B=W[c],B==null||_.$t(B)||(G+=encodeURIComponent(c)+"="+encodeURIComponent(B)+"&");W=bf(Y).createElement("SCRIPT");d&&W.setAttribute("nonce",d);_.pN(W,_.bQ(G));Y.body.appendChild(W)}};
yo7=function(W,B,z,G){var Y,d;_.T(function(E){Y=z||_.Yt;var v=W.serverEnvironment==="DEV",c=z||_.Yt;c=W.nonce||_.zd(c.document);v={integrationKeys:{productId:W.productId,feedbackBucket:W.bucket,triggerId:W.triggerId},callbacks:{onClose:W.callback,onLoad:W.onLoadCallback},formContent:{locale:W.locale,disableScreenshot:W.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:W.abuseLink,additionalDataConsent:W.additionalDataConsent},initializationData:{isLocalServer:v,nonce:c,useNightlyRelease:v,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:W.feedbackServerUri,colorScheme:W.colorScheme},extraData:{productVersion:W.productVersion,authUser:W.authuser,configuratorId:W.configuratorId,customZIndex:W.customZIndex,tinyNoPointer:W.tinyNoPointer,
allowNonLoggedInFeedback:W.allowNonLoggedInFeedback,enableAnonymousFeedback:W.enableAnonymousFeedback}};B&&(c=new Map(Object.entries(B)),v.extraData.productSpecificData=c);d=v;return E.yield(CNx(d,G,Y),0)})};
_.q8u=function(W,B,z){try{if(W.flow==="help"){var G=W.helpCenterPath.replace(/^\//,"");_.BG(z||window,"https://support.google.com/"+G)}else W.flow==="submit"?Qf9(W,B,z):F7R(W.productId,W.feedbackServerUri).then(function(Y){Y=_.AD(Y,xN,1);var d=!KVR||(Y==null?void 0:Y.getEnableMweb()),E=!W.tinyNoPointer||(Y==null?void 0:Y.getEnableTinyNoPointer());!Y||Y.getAlohaAutoGaRollout()&&d&&E?yo7(W,B,z,Y):Qf9(W,B,z)},function(Y){Y&&Y.name!=="DuplicateFormError"&&Qf9(W,B,z)})}catch(Y){yo7(W,B,z,null)}};
_.BV("userfeedback.api.startFeedback",_.q8u);var STk=/https?:\/\/\S+\.\S+/,bwD=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],j10=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var M_X=function(W){var B=W.split(""),z=[-263237435,15,B,function(G,Y,d){var E=Y.length;d.forEach(function(v,c,J){this.push(J[c]=Y[(Y.indexOf(v)-Y.indexOf(this[c])+c+E--)%Y.length])},G.split(""))},
function(G,Y){G=(G%Y.length+Y.length)%Y.length;Y.splice(-G).reverse().forEach(function(d){Y.unshift(d)})},
"response",function(){for(var G=64,Y=[];++G-Y.length-32;){switch(G){case 58:G-=14;case 91:case 92:case 93:continue;case 123:G=47;case 94:case 95:case 96:continue;case 46:G=95}Y.push(String.fromCharCode(G))}return Y},
null,12,1540023973,65941107,null,B,function(G,Y){for(G=(G%Y.length+Y.length)%Y.length;G--;)Y.unshift(Y.pop())},
695603893,function(G){for(var Y=G.length;Y;)G.push(G.splice(--Y,1)[0])},
"'[;'[(",function(G,Y){G.push(Y)},
null,function(G,Y,d,E,v){return Y(d,E,v)},
"continuation",B,function(G,Y){if(G.length!=0){Y=(Y%G.length+G.length)%G.length;var d=G[0];G[0]=G[Y];G[Y]=d}},
function(){for(var G=64,Y=[];++G-Y.length-32;){switch(G){case 91:G=44;continue;case 123:G=65;break;case 65:G-=18;continue;case 58:G=96;continue;case 46:G=95}Y.push(String.fromCharCode(G))}return Y},
'"),/]];'];z[7]=z;z[11]=z;z[18]=z;try{(((0,z[15])(z[21]),z[22])(z[11],z[9]),z[22])(z[new Date("1970-01-01T04:30:12.000+04:30")/1E3],z[1]),((0,z[22])(z[11],z[23]),z[4])(z[10],z[18]),(0,z[20])(z[21],z[14])<<(0,z[17])(z[18],z[1]),(0,z[4])(z[8],z[21]),(0,z[19])((0,z[19])((0,z[17])(z[7],z[9]),z[3],z[20],(0,z[6])(),z[2]),z[3],z[5],(0,z[15])(),z[2])}catch(G){return"aTlOUOubTO4AP____8P_"+W}return B.join("")};_.ni7=new _.J1("runAttestationCommand");var Nwd=new _.J1("verifyCommand");_.FB=new _.J1("accessibilityContext");var $D9=new _.J1("accessibilityData");var Lku=new _.J1("profileCardCommand");var YqR=new _.J1("signInEndpoint");var G82=new _.J1("signOutEndpoint");var M77;_.UDM=new _.J1("accountItemSectionRenderer");M77=new _.J1("accountItemRenderer");_.aF6=new _.J1("saveCommandToSessionStorageAction");var RCR=new _.J1("crossAccountChannelTransferEndpoint");var Rc0=new _.J1("getAccountMenuEndpoint");_.Wev=new _.J1("getAccountSwitcherEndpoint");var adv=new _.J1("getAccountsListEndpoint");var WaF=new _.J1("getAccountsListInnertubeEndpoint");_.DL=new _.J1("addToToastAction");var BLQ=new _.J1("hideEnclosingAction");_.QA=new _.J1("replaceEnclosingAction");var zW9=new _.J1("buttonRefreshAction");var GEM=new _.J1("adsControlFlowOpportunityReceivedCommand");var YZ9=new _.J1("openAdAllowlistInstructionCommand");var dIR=new _.J1("videoMastheadAdPrimaryVideoRenderer");var poT=new _.J1("displayAdRenderer");_.AGH=new _.J1("inFeedAdLayoutRenderer");var iaU=new _.J1("sequenceItemInPlayerAdLayoutRenderer");_.EXH=new _.J1("adSlotRenderer");var TLF=new _.J1("adAvatarViewModel");var vXd=new _.J1("adBadgeViewModel");var cGD=new _.J1("adButtonViewModel");var woU=new _.J1("adImageViewModel");var soT=new _.J1("reelsAdCardButtonedViewModel");var V1R=new _.J1("reelsPlayerOverlayLayoutViewModel");var JGR=new _.J1("showSchedulingPanelCommand");var gXR=new _.J1("backstageCommentsRenderer");var t1R=new _.J1("backstageImageRenderer");var srM=new _.J1("backstagePostRenderer");var PKM=new _.J1("backstageZeroStateRenderer");var ZaU=new _.J1("postRenderer");var rGM=new _.J1("sharedPostRenderer");var kEM=new _.J1("createBackstagePostEndpoint");var lkM=new _.J1("getPostVideoPreviewEndpoint");var CKR=new _.J1("updateBackstagePostEndpoint");var IkM=new _.J1("filterChipTransformCommand");var oXH=new _.J1("insertRichSectionCommand");var wj8=new _.J1("talkToRecsDeselectCommand");var hW6=new _.J1("talkToRecsNextCommand");var ch0=new _.J1("talkToRecsSelectCommand");var HaR=new _.J1("talkToRecsUpdateTextCommand");_.oE=new _.J1("browseEndpoint");_.FaD=new _.J1("confirmDialogEndpoint");var SZF=new _.J1("expandOnHoverCardRenderer");var ba4=new _.J1("lumiereShelfDetailsRenderer");var jrM=new _.J1("revealBusinessEmailCommand");var fkF=new _.J1("validateChannelHandleCommand");var Oa7=new _.J1("channelCreationFormEndpoint");var Xo6=new _.J1("aboutChannelViewModel");var KaM=new _.J1("channelThumbnailWithLinkRenderer");var unR=new _.J1("channelCreationServiceEndpoint");var eWF=new _.J1("updateChannelPageSettingsEndpoint");var yA=function(W){this.delegate=W},qm=function(){yA.apply(this,arguments)};
_.C(qm,yA);_.G5.Object.defineProperties(qm.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(W){this.delegate.entityMetadata=W}}});var mI6=function(){qm.apply(this,arguments)};
_.C(mI6,qm);mI6.prototype.getAssociations=function(){return[]};
mI6.prototype.getTypeName=function(){return"channelHandle"};var dSu=new _.J1("webThumbnailDetailsExtensionData");var r2x=new _.J1("commandContext");var xIQ=new _.J1("addVideoLinkAction");var DI9=new _.J1("banAuthorAction");var QrH=new _.J1("createCommentAction");var yGu=new _.J1("createCommentReplyAction");var qZ7=new _.J1("createPollAction");var nXu=new _.J1("hideIdentityChipAction");var NL7=new _.J1("openUpdateCommentDialogAction");var $ID=new _.J1("pinCommentAction");var LaR=new _.J1("removeCommentAction");var UIQ=new _.J1("unpinCommentAction");var n6=new _.J1("updateBackstagePollAction");var M16=new _.J1("updateCommentVoteAction");var akU=new _.J1("commentThreadRenderer");var RWU=function(){qm.apply(this,arguments)};
_.C(RWU,qm);RWU.prototype.getAssociations=function(){return[]};
RWU.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var WLU=function(){qm.apply(this,arguments)};
_.C(WLU,qm);WLU.prototype.getAssociations=function(){return[]};
WLU.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Bd7=new _.J1("commentDialogRenderer");var zAM=new _.J1("reloadCommentsCommand");var G29=new _.J1("updateCommentsSettingsEndpoint");var Y5Q=new _.J1("commentViewModel");var deR=new _.J1("triStateButtonViewModel");var prR=new _.J1("voiceReplyContainerViewModel");_.tr=new _.J1("commandExecutorCommand");var qH=new _.J1("emoji");var A4R=new _.J1("updateCreatorChannelInnertubeCommand");_.i_6=new _.J1("appendContinuationItemsAction");_.EcD=new _.J1("changeEngagementPanelVisibilityAction");_.Ly=new _.J1("continuationCommand");var Tdd=new _.J1("hideReportedCommentAction");var vc4=new _.J1("listMutationCommand");_.Nm=new _.J1("openPopupAction");var c4R=new _.J1("persistSubscriptionsDisplayPreferencesCommand");var Z_u;_.wr4=new _.J1("playlistRemoveVideosAction");_.Vr4=new _.J1("updatePlaylistAction");_.J4U=new _.J1("addToPlaylistCommand");_.gc7=new _.J1("endPlaylistCommand");_.tru=new _.J1("recoverPlaylistCommand");_.sA9=new _.J1("refreshPlaylistCommand");_.P_M=new _.J1("refreshFormCommand");Z_u=new _.J1("openOnePickAddVideoModalCommand");_.pXk=new _.J1("reloadContinuationItemsCommand");_.r4M=new _.J1("scrollToEngagementPanelCommand");var k2F=new _.J1("selectCountryCommand");var lUU=new _.J1("showReloadUiCommand");var C_9=new _.J1("undoFeedbackAction");var IUF=new _.J1("updateButtonAction");var ocR=new _.J1("updateSubscribeButtonAction");var hAT=new _.J1("updateToggleAction");var H_R=new _.J1("webNativeShareCommand");_.Z4=new _.J1("webCommandMetadata");_.$N=new _.J1("webHandleServiceEndpointExtension");var BZ2=new _.J1("webNavigationEndpointData");var FLR=new _.J1("backgroundAudioPlaybackCommand");var S5M=new _.J1("copyLinkCommand");var b_u=new _.J1("playlistVotingRefreshPopupCommand");var jA4=new _.J1("selectChipCommand");var fU6=new _.J1("setCookieCommand");var O_U=new _.J1("setLocalStorageCommand");var Xru=new _.J1("setPrefStorageEntryCommand");var meR;_.KLQ=new _.J1("settingsUpdateCheckboxCommand");_.uWU=new _.J1("settingsUpdateTextCommand");_.eAQ=new _.J1("settingsUpdateOptionsCommand");meR=new _.J1("settingsUpdateSwitchCommand");_.xeU=new _.J1("settingsUpdateConnectedAppRendererCommand");var De6=new _.J1("updateTextInputFormFieldRendererCommand");var QAR=new _.J1("updateToggleButtonStateCommand");var y4M=new _.J1("updateUrlParamCommand");var q59=new _.J1("webSubmitFormCommand");var ncd=new _.J1("channelSwitcherPageRenderer"),Nd4=new _.J1("updateChannelSwitcherPageAction");_.GH=new _.J1("continuationItemRenderer");_.L6=new _.J1("richItemRenderer");var $eR=new _.J1("richSectionRenderer");_.LLM=new _.J1("richShelfRenderer");_.Ued=new _.J1("metadataBadgeRenderer");_.MrT=new _.J1("multiPageMenuNotificationSectionRenderer");_.aUD=new _.J1("playlistLoopButtonStateRenderer");var RA4=new _.J1("claimLegacyYoutubeChannelEndpoint");var W7R=new _.J1("getNotificationMenuEndpoint");var BRT=new _.J1("getSearchInVideoCommand");_.zQ4=new _.J1("getTranscriptEndpoint");_.P0=new _.J1("signalServiceEndpoint");var GuQ=new _.J1("verifyAgeEndpoint");var W_D=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(W_D,_.iQ);W_D.prototype.getPath=function(){return _.KV(this,1)};
W_D.prototype.getValue=function(){return _.KV(this,2)};var YTR=[0,_.Yi,-1];var drD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(drD,_.iQ);var Ruu=_.sK(drD,[0,_.Ao,YTR]);var p1T=new _.J1("dismissalEndpoint");var A19=new _.J1("elementsCommand");_.NH=new _.J1("innertubeCommand");var iw4=new _.J1("multipleInlinePlaybackCommand");var eBu=new _.J1("loggingDirectives");var ELH=new _.J1("acknowledgeChannelTouStrikeCommand");var TR7=function(){qm.apply(this,arguments)};
_.C(TR7,qm);TR7.prototype.getAssociations=function(){return[]};
TR7.prototype.getTypeName=function(){return"booleanEntity"};var vL4=function(){qm.apply(this,arguments)};
_.C(vL4,qm);vL4.prototype.getAssociations=function(){return[]};
vL4.prototype.getTypeName=function(){return"stringEntity"};var Y2=new _.J1("entityBatchUpdate");_.c1u=new _.J1("entityUpdateCommand");var w14=function(){qm.apply(this,arguments)};
_.C(w14,qm);w14.prototype.getAssociations=function(){var W=[];this.delegate.alternateChannel&&W.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&W.push.apply(W,_.u7(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&W.push(this.delegate.oneofChannelEntity);return[].concat(_.u7(new Set(W)))};
w14.prototype.getTypeName=function(){return"fakeChannel"};var V0R=function(){qm.apply(this,arguments)};
_.C(V0R,qm);V0R.prototype.getAssociations=function(){var W=[];this.delegate.entryCollection&&W.push(this.delegate.entryCollection);return[].concat(_.u7(new Set(W)))};
V0R.prototype.getTypeName=function(){return"fakePlaylist"};
var J1Q=function(){qm.apply(this,arguments)};
_.C(J1Q,qm);J1Q.prototype.getAssociations=function(){var W=[];this.delegate.parentPlaylist&&W.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var B=_.A(this.delegate.entries),z=B.next();!z.done;z=B.next())W.push.apply(W,_.u7((new gLQ(z.value)).getAssociations()));return[].concat(_.u7(new Set(W)))};
J1Q.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var gLQ=function(){yA.apply(this,arguments)};
_.C(gLQ,yA);gLQ.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);return[].concat(_.u7(new Set(W)))};var t04=function(){qm.apply(this,arguments)};
_.C(t04,qm);t04.prototype.getAssociations=function(){var W=[];this.delegate.descriptionEntity&&W.push(this.delegate.descriptionEntity);this.delegate.creators&&W.push.apply(W,_.u7(this.delegate.creators));this.delegate.theBiggestFan&&W.push(this.delegate.theBiggestFan);return[].concat(_.u7(new Set(W)))};
t04.prototype.getTypeName=function(){return"fakeVideo"};
var s1U=function(){qm.apply(this,arguments)};
_.C(s1U,qm);s1U.prototype.getAssociations=function(){return[]};
s1U.prototype.getTypeName=function(){return"fakeVideoDescription"};var PNR=new _.J1("fantasyRosterViewModel");var Zw6=new _.J1("addFollowUpSurveyCommand");var r1U=new _.J1("getSurveyCommand");var kuR=new _.J1("ratingSurveyOptionRenderer");_.fQ=new _.J1("feedbackEndpoint");var lq7=new _.J1("reportHistoryTableCellRenderer"),CNR=new _.J1("reportHistoryTableTextCellRenderer"),Iqd=new _.J1("reportHistoryTableReasonCellRenderer");_.oLu=new _.J1("flagEndpoint");var hQR=new _.J1("getFlowCommand");var Hw6=new _.J1("submitFormWithValidationFlowCommand");var F7T=function(){qm.apply(this,arguments)};
_.C(F7T,qm);F7T.prototype.getAssociations=function(){return[]};
F7T.prototype.getTypeName=function(){return"flowStateEntity"};var STU=new _.J1("flowFormState");var bwu=new _.J1("gameCardRenderer");var j1M=new _.J1("accountLinkingStateChangedCommand");var fqF=function(){qm.apply(this,arguments)};
_.C(fqF,qm);fqF.prototype.getAssociations=function(){return[]};
fqF.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var OwU=new _.J1("changeMiniAppPlayStateCommand");var X1T=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(X1T,_.iQ);var Uz=[1,2,3];var K7T=[0,Uz,JJv,_.pf,E9T];var u57=_.sK(X1T,K7T),eQd=_.Pb(K7T);var mrd=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(mrd,_.iQ);var xr7=[0,_.aO,_.Yi];var DrQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(DrQ,_.iQ);var Q1F=[0,_.Yi,_.aO,-1];var Mm=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Mm,_.iQ);var y1H=_.Pb([0,1,xr7,_.E8,Q1F]);var qT4=new _.J1("miniAppScoreChallengeViewModel");var nLM=new _.J1("miniGameCardViewModel");var NR9=new _.J1("teaserCardViewModel");var $rD=function(){qm.apply(this,arguments)};
_.C($rD,qm);$rD.prototype.getAssociations=function(){return[]};
$rD.prototype.getTypeName=function(){return"logoEntity"};_.L7M=new _.J1("feedbackItemRenderer");var UrF=function(){qm.apply(this,arguments)};
_.C(UrF,qm);UrF.prototype.getAssociations=function(){return[]};
UrF.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.M09=new _.J1("playerInterstitialRenderer");var aqM=new _.J1("getKidsBlocklistPickerCommand");_.RQR=new _.J1("updateKidsBlacklistEndpoint");_.yQ=new _.J1("likeEndpoint");var WNR,BId,zdR;WNR=new _.J1("addChatItemAction");BId=new _.J1("removeChatItemAction");zdR=new _.J1("markChatItemAsDeletedAction");_.GfR=new _.J1("setLiveChatCollapsedStateAction");var YWu=function(){qm.apply(this,arguments)};
_.C(YWu,qm);YWu.prototype.getAssociations=function(){return[]};
YWu.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var dzM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(dzM,_.iQ);var p4M=[0,_.Ao,[0,[1,2],_.pf,_.iL,[0,_.dw,1,_.dw]]];var Af4=[0,_.Yi,-1];var ihu=[0,[1],_.pf];var aZ=[0,[1,2],_.pf,_.iL,[0,_.E8]];var RZ=[0,_.Yi];var EyM=[0,[0,_.zI,_.Bq,[0,_.dw,_.TI,_.dw]],1,[0,_.zI]];var TIH=[0,RO];var vyD=[0,RO];var cfu=[0,vyD,TIH];var w4U=[0,_.Ao,[0,[1,2],_.pf,-1],_.zI];var VYR=[0,[2],1,_.iL,[0,_.dw,-1,w4U]];var Jf6=[0,[1],_.iL,[0,_.dw,_.Yi,_.TI,1,w4U]];var gy9=[0,_.Bq,-1,iCk,_.E8];var tYM=[0,[0,Mi,-3],-4];var WO=[0,_.zI,-3,_.Yi,_.zI,_.wL,_.zI,p4M,_.zI,-2];var BO=[0,_.Ao,[0,[1,2],_.pf,-1],_.zI,_.Yi];var sxU=[0,[3],aZ,[0,[2,3,4],k0R,_.pf,-2],_.iL,[0,_.Yi],_.aO];var Pz4=[0,[3,5],_.Yi,Wq,_.iL,[0,1,_.aO,_.E8],_.E8,_.iL,[0,_.E8,_.aO]];var Zh7=[0,2,Wq,_.Yi,-1];var rfR=[0,wPv];var kfF=[0,[3,4],2,Tmk,_.pf,_.Yi];var l3M=[0,_.E8,-2,1,_.Yi];var CzQ=[0,_.Yi,-1,_.E8];var I3U=[0,RZ,function(){return z3},
RZ,_.Yi],oyH=[0,_.E8,RZ,aZ,function(){return z3},
_.Yi],z3=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],RZ,Wq,[0,_.zI,1,_.zI,1,_.zI,1,_.E8,-1,RZ],[0,1,_.zI,2,_.zI,_.E8,_.zI],1,Wq,-1,_.Yi,Wq,2,Mi,[0,Mi,Wq],_.Yi,1,EyM,1,aZ,_.wL,1,[0,[0,_.Ao,[0,_.Yi,_.zI,_.E8]]],[0,_.zI,[0,_.aO,[0,_.TI]],_.aO,1,[0,v9t,-1]],_.Yi,[0,1,_.Yi],76,_.iL,[0,aZ,BO,EyM,1,[0,_.Ao,BO]],1,_.iL,[0,aZ,_.Yi,_.zI],_.iL,
[0,aZ,ihu],_.iL,[0,aZ,ihu,Wq],_.iL,[0,aZ,ihu],_.iL,[0,aZ,_.Ao,RZ,aZ,g90],_.iL,[0,aZ,RZ,_.Yi],_.iL,[0,aZ,_.zI,WO,-1,_.zI],4,_.iL,[0,aZ,_.zI,Wq,WO,_.zI],_.iL,[0,[4,9],aZ,_.E8,Wq,_.pf,BO,1,EyM,_.Yi,_.pf,l3M],_.iL,[0,aZ,RZ,aZ,_.E8,_.Yi],_.iL,[0,_.zI,aZ,WO,_.zI,_.Yi],_.iL,[0,aZ,RZ,aZ,_.E8,_.Yi],1,_.iL,[0,aZ,_.E8,_.Yi,WO],_.iL,[0,aZ,_.E8,[0,_.Yi,Wq],_.Yi,Wq,_.Yi,ZCX,-2,3,CzQ,_.Ao,CzQ,CzQ,l3M],_.iL,[0,aZ,_.E8,Jf6,_.Ao,[0,vyD,VYR],RZ,_.Ao,cfu,_.Yi,1,_.E8,gy9,tYM,AJ0,-1],_.iL,[0,aZ,[0,_.TI,-1,Jf6,_.Ao,[0,
vyD,VYR,TIH],[0,_.Vy],1,_.dw],RZ,_.Yi],_.iL,[0,aZ,BO,_.Yi,[0,_.Bq]],_.iL,function(){return oyH},
_.iL,[0,aZ,Wq,_.Yi,-1,_.zI],_.iL,[0,[6,7],aZ,_.Ao,Zh7,_.E8,BO,1,_.iL,kfF,_.iL,rfR],_.iL,[0,_.Ao,Zh7,_.E8,_.zI],_.iL,[0,_.Yi,PE7,-1],_.iL,[0,RZ,_.Ao,cfu,_.Yi],_.iL,[0,aZ,RZ,_.Yi],_.iL,[0,ZCX,_.Yi],_.iL,[0,Af4],_.iL,[0,Af4],_.iL,[0,BO],_.iL,[0,RZ,BO],_.iL,function(){return I3U},
_.iL,[0,RZ,_.Yi],_.iL,[0,RZ,_.Yi],1,_.iL,[0,_.zI,aZ,WO,_.zI,WO],_.iL,[0,_.Vy],1,_.iL,[0],1,_.iL,[0,RZ,_.E8,aZ,_.E8],_.iL,[0,[1,2],_.iL,kfF,_.iL,rfR,Wq],_.iL,[0,_.Vy,BO,Pz4,_.Yi,Wq],_.iL,[0,Pz4,_.Yi,Wq],_.iL,[0,gy9,BO,_.zI,tYM],_.iL,sxU,_.iL,[0],_.iL,[0,_.Yi,-1,_.aO],_.iL,[0,RZ,_.Yi],_.iL,[0,sxU,_.aO,_.Yi],_.iL,[0,aZ,WO,_.zI],_.iL,[0,aZ,WO,_.zI],_.iL,[0,gy9,tYM,BO,_.wL,_.zI,AJ0,-1],_.iL,[0,aZ,WO,_.zI]];var hd9=[0,_.Ao,z3];var HhF=_.sK(dzM,[0,1,_.aO,[0,[18,22,24],hd9,3,[0,hd9],1,_.aO,[0,_.Ao,[0,Wq,Mi],Wq],1,z3,-1,[0,_.GI,-2,_.wL,_.GI,-1,_.wL,_.GI,p4M,_.GI,-2],dqu,[!0,_.Yi,[0,ihu,2,_.Yi,Wq,_.zI,2,_.Yi,ZCX]],[0,[1,2,3],[5,6],_.iL,[0,_.dw],_.iL,[0,_.dw,-1],_.iL,[0,_.dw],1,_.iL,Af4,_.iL,[0,_.Yi]],[0,z3,-1],_.Vy,z3,_.iL,z3,[0,hd9],_.aO,z3,_.iL,z3,_.Yi,_.iL,z3]]);var FNR=new _.J1("liveChatEndpoint");var SWH=new _.J1("liveChatItemContextMenuEndpoint");var bh9=new _.J1("liveChatReplayEndpoint");_.jx4=new _.J1("emojiPickerRenderer");var f3F=new _.J1("liveChatAuthorBadgeViewModel");var OhU=new _.J1("deleteLiveChatMessageCommand");var X4Q=new _.J1("liveChatActionEndpoint");var KN7=new _.J1("createLiveChatPollEndpoint");var uu6=new _.J1("manageLiveChatUserEndpoint");var ed4=new _.J1("moderateLiveChatEndpoint");_.mz6=new _.J1("sendLiveChatMessageEndpoint");var xzU=new _.J1("sendLiveChatVoteEndpoint");var Dz9=new _.J1("clearLocationCommand");var QxD=new _.J1("resolveLocationCommand");var yf7=new _.J1("interactionLoggingCommandMetadata");var qWR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(qWR,_.iQ);var nyF=function(W,B){return _.gH(W,1,B)};var NId=[0,_.zI];var $zM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C($zM,_.iQ);var LNu=function(W,B){return sc(W,1,qWR,B)};$zM.prototype.JSC$12171_serializeBinary=mZT([0,_.Ao,NId]);var BIR={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 UzR={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"},
MYD={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 $R0={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM"};_.Ic0=new _.J1("logFlowLoggingEventCommand");_.bg=new _.J1("loggingContext");var a3F=new _.J1("audioTrackSelectActionCommand");var Rd6=new _.J1("captionLanguageSelectActionCommand");var Wf4=new _.J1("showAudioTrackPickerActionCommand");var B1M=new _.J1("showCaptionLanguageSelectActionCommand");var zx4=new _.J1("dismissDialogEndpoint");var GkT=new _.J1("dismissPlayerOverlayCommand");var Y4u=new _.J1("hideItemSectionVideosByIdCommand");var dpd=new _.J1("showMiniplayerCommand");var pdF=function(){qm.apply(this,arguments)};
_.C(pdF,qm);pdF.prototype.getAssociations=function(){return[]};
pdF.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var A7R=function(){qm.apply(this,arguments)};
_.C(A7R,qm);A7R.prototype.getAssociations=function(){return[]};
A7R.prototype.getTypeName=function(){return"downloadStatusEntity"};var irR=function(){qm.apply(this,arguments)};
_.C(irR,qm);irR.prototype.getAssociations=function(){return[]};
irR.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var E0H=function(){qm.apply(this,arguments)};
_.C(E0H,qm);E0H.prototype.getAssociations=function(){var W=[];this.delegate.downloadsList&&W.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&W.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&W.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&W.push(this.delegate.refresh);return[].concat(_.u7(new Set(W)))};
E0H.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var T1Q=function(){qm.apply(this,arguments)};
_.C(T1Q,qm);T1Q.prototype.getAssociations=function(){var W=[];this.delegate.refresh&&W.push(this.delegate.refresh);if(this.delegate.downloads)for(var B=_.A(this.delegate.downloads),z=B.next();!z.done;z=B.next())W.push.apply(W,_.u7((new v09(z.value)).getAssociations()));return[].concat(_.u7(new Set(W)))};
T1Q.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var v09=function(){yA.apply(this,arguments)};
_.C(v09,yA);v09.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.playlist&&W.push(this.delegate.playlist);this.delegate.videoItem&&W.push(this.delegate.videoItem);this.delegate.playlistItem&&W.push(this.delegate.playlistItem);return[].concat(_.u7(new Set(W)))};var c7U=function(){qm.apply(this,arguments)};
_.C(c7U,qm);c7U.prototype.getAssociations=function(){var W=[];this.delegate.localImageEntities&&W.push.apply(W,_.u7(this.delegate.localImageEntities));return[].concat(_.u7(new Set(W)))};
c7U.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var wd9=function(){qm.apply(this,arguments)};
_.C(wd9,qm);wd9.prototype.getAssociations=function(){var W=[];this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.localImageEntities&&W.push.apply(W,_.u7(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.u7(new Set(W)))};
wd9.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var V3d=function(){qm.apply(this,arguments)};
_.C(V3d,qm);V3d.prototype.getAssociations=function(){return[]};
V3d.prototype.getTypeName=function(){return"offlineabilityEntity"};var J7T=function(){qm.apply(this,arguments)};
_.C(J7T,qm);J7T.prototype.getAssociations=function(){var W=[];this.delegate.fakeChildren&&W.push.apply(W,_.u7(this.delegate.fakeChildren));return[].concat(_.u7(new Set(W)))};
J7T.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var g0H=function(){qm.apply(this,arguments)};
_.C(g0H,qm);g0H.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&W.push(this.delegate.offlineVideoPolicy);return[].concat(_.u7(new Set(W)))};
g0H.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var t3u=function(){qm.apply(this,arguments)};
_.C(t3u,qm);t3u.prototype.getAssociations=function(){return[]};
t3u.prototype.getTypeName=function(){return"continuationTokenEntity"};var s9u=function(){qm.apply(this,arguments)};
_.C(s9u,qm);s9u.prototype.getAssociations=function(){var W=[];this.delegate.channelOwner&&W.push(this.delegate.channelOwner);this.delegate.videos&&W.push.apply(W,_.u7(this.delegate.videos));this.delegate.collaboratorChannels&&W.push.apply(W,_.u7(this.delegate.collaboratorChannels));this.delegate.downloadState&&W.push(this.delegate.downloadState);this.delegate.refresh&&W.push(this.delegate.refresh);return[].concat(_.u7(new Set(W)))};
s9u.prototype.getTypeName=function(){return"mainPlaylistEntity"};var PoH=function(){qm.apply(this,arguments)};
_.C(PoH,qm);PoH.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.channelContributor&&W.push(this.delegate.channelContributor);return[].concat(_.u7(new Set(W)))};
PoH.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var Zr4=function(){yA.apply(this,arguments)};
_.C(Zr4,yA);Zr4.prototype.getAssociations=function(){var W=[];this.delegate.recommendedVideoMetadata&&W.push.apply(W,_.u7((new r7H(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.u7(new Set(W)))};
var r7H=function(){yA.apply(this,arguments)};
_.C(r7H,yA);r7H.prototype.getAssociations=function(){var W=[];this.delegate.localImageEntities&&W.push.apply(W,_.u7(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.u7(new Set(W)))};var kkF=function(){yA.apply(this,arguments)};
_.C(kkF,yA);kkF.prototype.getAssociations=function(){var W=[];this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);return[].concat(_.u7(new Set(W)))};var lMR=function(){qm.apply(this,arguments)};
_.C(lMR,qm);lMR.prototype.getAssociations=function(){var W=[];this.delegate.owner&&W.push(this.delegate.owner);this.delegate.downloadState&&W.push(this.delegate.downloadState);this.delegate.userState&&W.push.apply(W,_.u7((new kkF(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&W.push.apply(W,_.u7((new Zr4(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.u7(new Set(W)))};
lMR.prototype.getTypeName=function(){return"mainVideoEntity"};var CoM=function(){qm.apply(this,arguments)};
_.C(CoM,qm);CoM.prototype.getAssociations=function(){var W=[];this.delegate.userChannelDetails&&W.push(this.delegate.userChannelDetails);return[].concat(_.u7(new Set(W)))};
CoM.prototype.getTypeName=function(){return"ytMainChannelEntity"};var IMM=function(){qm.apply(this,arguments)};
_.C(IMM,qm);IMM.prototype.getAssociations=function(){var W=[];this.delegate.channelOwner&&W.push(this.delegate.channelOwner);this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&W.push.apply(W,_.u7(this.delegate.localImageEntities));this.delegate.downloadStatus&&W.push(this.delegate.downloadStatus);return[].concat(_.u7(new Set(W)))};
IMM.prototype.getTypeName=function(){return"ytMainVideoEntity"};var $Gv=new _.J1("downloadsPageSmartDownloadsOptInBannerParams");var a6X=new _.J1("downloadsPageUpsellBannerParams");var o0M=function(){qm.apply(this,arguments)};
_.C(o0M,qm);o0M.prototype.getAssociations=function(){return[]};
o0M.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var hxF=function(){qm.apply(this,arguments)};
_.C(hxF,qm);hxF.prototype.getAssociations=function(){return[]};
hxF.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var Hrd=function(){qm.apply(this,arguments)};
_.C(Hrd,qm);Hrd.prototype.getAssociations=function(){return[]};
Hrd.prototype.getTypeName=function(){return"macroMarkerEntity"};var Ffu=function(){qm.apply(this,arguments)};
_.C(Ffu,qm);Ffu.prototype.getAssociations=function(){return[]};
Ffu.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var S4u=function(){qm.apply(this,arguments)};
_.C(S4u,qm);S4u.prototype.getAssociations=function(){return[]};
S4u.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var brD=function(){qm.apply(this,arguments)};
_.C(brD,qm);brD.prototype.getAssociations=function(){return[]};
brD.prototype.getTypeName=function(){return"playerStateEntity"};var j9u=function(){qm.apply(this,arguments)};
_.C(j9u,qm);j9u.prototype.getAssociations=function(){return[]};
j9u.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var fM9=function(){qm.apply(this,arguments)};
_.C(fM9,qm);fM9.prototype.getAssociations=function(){return[]};
fM9.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var OrR=function(){qm.apply(this,arguments)};
_.C(OrR,qm);OrR.prototype.getAssociations=function(){return[]};
OrR.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.G3=new _.J1("dislikeButtonViewModel");_.Y3=new _.J1("likeButtonViewModel");var XdM=new _.J1("videoSummaryContentViewModel");var KfD=new _.J1("videoSummaryParagraphViewModel");var uJU=new _.J1("changeTimelyActionVisibilityCommand");var exR=new _.J1("hideEngagementPanelEndpoint");var mpd=new _.J1("refreshPanelEndpoint");var xpF=new _.J1("scrollToSectionEndpoint");var Dp6=new _.J1("seekToVideoTimestampCommand");_.jT=new _.J1("showEngagementPanelEndpoint");var Q96=new _.J1("showTransientPlayerScrimOverlayCommand");var y7M=new _.J1("toggleEngagementPanelCommand");_.q4U=new _.J1("createBroadcastCommand");var n0R=new _.J1("metadataUpdateCommand");var N16=function(){qm.apply(this,arguments)};
_.C(N16,qm);N16.prototype.getAssociations=function(){return[]};
N16.prototype.getTypeName=function(){return"featuredProductsEntity"};var $pR=function(){qm.apply(this,arguments)};
_.C($pR,qm);$pR.prototype.getAssociations=function(){return[]};
$pR.prototype.getTypeName=function(){return"pinnedProductEntity"};var LfR=function(){qm.apply(this,arguments)};
_.C(LfR,qm);LfR.prototype.getAssociations=function(){return[]};
LfR.prototype.getTypeName=function(){return"trendingOfferEntity"};_.UpQ=new _.J1("merchandiseShelfRenderer");var M3R=new _.J1("gridMovieRenderer");_.aMR=new _.J1("movieRenderer");var Rxd=function(){qm.apply(this,arguments)};
_.C(Rxd,qm);Rxd.prototype.getAssociations=function(){var W=[];this.delegate.trackDownloadMetadatas&&W.push.apply(W,_.u7(this.delegate.trackDownloadMetadatas));return[].concat(_.u7(new Set(W)))};
Rxd.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var WGM=function(){qm.apply(this,arguments)};
_.C(WGM,qm);
WGM.prototype.getAssociations=function(){var W=[];this.delegate.downloadedTracks&&W.push.apply(W,_.u7(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&W.push.apply(W,_.u7(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&W.push.apply(W,_.u7(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&W.push.apply(W,_.u7(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&W.push.apply(W,_.u7(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
W.push.apply(W,_.u7(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&W.push.apply(W,_.u7(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&W.push.apply(W,_.u7(this.delegate.metadataOnlyTracks));return[].concat(_.u7(new Set(W)))};
WGM.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var BE6=function(){qm.apply(this,arguments)};
_.C(BE6,qm);BE6.prototype.getAssociations=function(){var W=[];this.delegate.trackDownloadMetadatas&&W.push.apply(W,_.u7(this.delegate.trackDownloadMetadatas));return[].concat(_.u7(new Set(W)))};
BE6.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var zgM=function(){qm.apply(this,arguments)};
_.C(zgM,qm);zgM.prototype.getAssociations=function(){var W=[];this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.localImageEntities&&W.push.apply(W,_.u7(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.u7(new Set(W)))};
zgM.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var GaR=function(){qm.apply(this,arguments)};
_.C(GaR,qm);
GaR.prototype.getAssociations=function(){var W=[];this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&W.push.apply(W,_.u7(this.delegate.primaryArtists));this.delegate.details&&W.push(this.delegate.details);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.tracks&&W.push.apply(W,_.u7(this.delegate.tracks));this.delegate.share&&W.push(this.delegate.share);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.refresh&&
W.push(this.delegate.refresh);return[].concat(_.u7(new Set(W)))};
GaR.prototype.getTypeName=function(){return"musicAlbumRelease"};
var YzT=function(){qm.apply(this,arguments)};
_.C(YzT,qm);YzT.prototype.getAssociations=function(){var W=[];this.delegate.albumRelease&&W.push(this.delegate.albumRelease);this.delegate.tracks&&W.push.apply(W,_.u7(this.delegate.tracks));return[].concat(_.u7(new Set(W)))};
YzT.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var dmH=function(){qm.apply(this,arguments)};
_.C(dmH,qm);dmH.prototype.getAssociations=function(){var W=[];this.delegate.albumRelease&&W.push(this.delegate.albumRelease);return[].concat(_.u7(new Set(W)))};
dmH.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var ptM=function(){qm.apply(this,arguments)};
_.C(ptM,qm);ptM.prototype.getAssociations=function(){var W=[];this.delegate.details&&W.push(this.delegate.details);this.delegate.userDetails&&W.push(this.delegate.userDetails);return[].concat(_.u7(new Set(W)))};
ptM.prototype.getTypeName=function(){return"musicArtist"};
var ALu=function(){qm.apply(this,arguments)};
_.C(ALu,qm);ALu.prototype.getAssociations=function(){var W=[];this.delegate.parentArtist&&W.push(this.delegate.parentArtist);return[].concat(_.u7(new Set(W)))};
ALu.prototype.getTypeName=function(){return"musicArtistDetail"};
var i6H=function(){qm.apply(this,arguments)};
_.C(i6H,qm);i6H.prototype.getAssociations=function(){var W=[];this.delegate.parentArtist&&W.push(this.delegate.parentArtist);return[].concat(_.u7(new Set(W)))};
i6H.prototype.getTypeName=function(){return"musicArtistUserDetail"};var ENR=function(){qm.apply(this,arguments)};
_.C(ENR,qm);ENR.prototype.getAssociations=function(){return[]};
ENR.prototype.getTypeName=function(){return"musicLibraryEdit"};var TEM=function(){qm.apply(this,arguments)};
_.C(TEM,qm);TEM.prototype.getAssociations=function(){return[]};
TEM.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var vN7=function(){qm.apply(this,arguments)};
_.C(vN7,qm);
vN7.prototype.getAssociations=function(){var W=[];this.delegate.tracks&&W.push.apply(W,_.u7(this.delegate.tracks));this.delegate.refresh&&W.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&W.push(this.delegate.details);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&W.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.entryCollection&&
W.push(this.delegate.entryCollection);this.delegate.share&&W.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&W.push.apply(W,_.u7((new cLT(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.u7(new Set(W)))};
vN7.prototype.getTypeName=function(){return"musicPlaylist"};
var cLT=function(){yA.apply(this,arguments)};
_.C(cLT,yA);cLT.prototype.getAssociations=function(){var W=[];this.delegate.creatorEntity&&W.push(this.delegate.creatorEntity);return[].concat(_.u7(new Set(W)))};var wt6=function(){qm.apply(this,arguments)};
_.C(wt6,qm);wt6.prototype.getAssociations=function(){return[]};
wt6.prototype.getTypeName=function(){return"musicShare"};var V9M=function(){qm.apply(this,arguments)};
_.C(V9M,qm);
V9M.prototype.getAssociations=function(){var W=[];this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&W.push.apply(W,_.u7(this.delegate.artists));this.delegate.audioModeVersion&&W.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&W.push(this.delegate.videoModeVersion);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.details&&W.push(this.delegate.details);this.delegate.albumRelease&&W.push(this.delegate.albumRelease);this.delegate.share&&
W.push(this.delegate.share);this.delegate.libraryEdit&&W.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);this.delegate.lyrics&&W.push(this.delegate.lyrics);return[].concat(_.u7(new Set(W)))};
V9M.prototype.getTypeName=function(){return"musicTrack"};
var JLF=function(){qm.apply(this,arguments)};
_.C(JLF,qm);JLF.prototype.getAssociations=function(){var W=[];this.delegate.parentTrack&&W.push(this.delegate.parentTrack);return[].concat(_.u7(new Set(W)))};
JLF.prototype.getTypeName=function(){return"musicTrackDetail"};
var gNU=function(){qm.apply(this,arguments)};
_.C(gNU,qm);gNU.prototype.getAssociations=function(){var W=[];this.delegate.parentTrack&&W.push(this.delegate.parentTrack);return[].concat(_.u7(new Set(W)))};
gNU.prototype.getTypeName=function(){return"musicTrackUserDetail"};var Wh=new _.J1("musicResponsiveListItemRenderer");var TfD=new _.J1("addToPlaylistEndpoint");var t9H=new _.J1("captionPickerEndpoint");var sZR=new _.J1("suggestStats");var PJD=new _.J1("backstageImageUploadEndpoint");var Z6d=new _.J1("createBackstagePostDialogEndpoint");_.rLF=new _.J1("createCommentReplyDialogEndpoint");_.kaM=new _.J1("updateCommentDialogEndpoint");_.lLH=new _.J1("updateCommentReplyDialogEndpoint");var CJM=new _.J1("menuEndpoint");var acD=new _.J1("modalEndpoint");var ILT=new _.J1("playlistEditorEndpoint");var oNT=new _.J1("copyTextEndpoint");var hg4,H67;hg4=new _.J1("shareEndpoint");H67=new _.J1("shareEntityEndpoint");_.FGR=new _.J1("shareEntityServiceEndpoint");_.afu=new _.J1("userFeedbackEndpoint");_.W0=new _.J1("watchEndpoint");var KOy=new _.J1("watchPlaylistEndpoint");var SzD=new _.J1("addUpcomingEventReminderEndpoint");_.dP=new _.J1("getCommentsFromInboxCommand");var b6Q=new _.J1("notificationOptOutEndpoint");var jZd=new _.J1("recordNotificationInteractionsEndpoint");var fLD=new _.J1("removeUpcomingEventReminderEndpoint");var i$r=new _.J1("getDownloadActionCommand");_.O6R=new _.J1("offlineOrchestrationActionCommand");var XtR=function(){qm.apply(this,arguments)};
_.C(XtR,qm);XtR.prototype.getAssociations=function(){return[]};
XtR.prototype.getTypeName=function(){return"captionTrack"};var KG7=function(){qm.apply(this,arguments)};
_.C(KG7,qm);KG7.prototype.getAssociations=function(){return[]};
KG7.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var u3R=function(){qm.apply(this,arguments)};
_.C(u3R,qm);u3R.prototype.getAssociations=function(){return[]};
u3R.prototype.getTypeName=function(){return"offlineVideoPolicy"};var eg9=function(){qm.apply(this,arguments)};
_.C(eg9,qm);eg9.prototype.getAssociations=function(){return[]};
eg9.prototype.getTypeName=function(){return"offlineVideoStreams"};var mmR=function(){qm.apply(this,arguments)};
_.C(mmR,qm);mmR.prototype.getAssociations=function(){var W=[];this.delegate.transfer&&W.push(this.delegate.transfer);this.delegate.adsPlaybackData&&W.push.apply(W,_.u7(this.delegate.adsPlaybackData));this.delegate.drmLicense&&W.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&W.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.u7(new Set(W)))};
mmR.prototype.getTypeName=function(){return"playbackData"};var xmM=function(){qm.apply(this,arguments)};
_.C(xmM,qm);xmM.prototype.getAssociations=function(){return[]};
xmM.prototype.getTypeName=function(){return"refresh"};var Dmu=function(){qm.apply(this,arguments)};
_.C(Dmu,qm);Dmu.prototype.getAssociations=function(){var W=[];this.delegate.offlineVideoStreams&&W.push.apply(W,_.u7(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&W.push.apply(W,_.u7(this.delegate.captionTrack));return[].concat(_.u7(new Set(W)))};
Dmu.prototype.getTypeName=function(){return"transfer"};var QZH=function(){qm.apply(this,arguments)};
_.C(QZH,qm);QZH.prototype.getAssociations=function(){return[]};
QZH.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var yL9=new _.J1("showMoreDrawerCommand");var qzH=new _.J1("updateEngagementPanelContentCommand");var nNM=new _.J1("getPdgBuyFlowCommand");var NEU=new _.J1("liveChatPurchaseMessageEndpoint");var $m9=new _.J1("openSuperStickerBuyFlowCommand");var LG9=new _.J1("updatePdgFeatureEnablementCommand");var UmR=function(){qm.apply(this,arguments)};
_.C(UmR,qm);UmR.prototype.getAssociations=function(){return[]};
UmR.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var M96=function(){qm.apply(this,arguments)};
_.C(M96,qm);M96.prototype.getAssociations=function(){return[]};
M96.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.aL4=new _.J1("pdgCommentChipRenderer");_.RgR=new _.J1("permissionRoleBottomBarRenderer");_.WxH=new _.J1("updatePermissionRoleCommand");var BP4=new _.J1("prefetchWatchCommand");var zN6=new _.J1("updatePlayerErrorMessageCommand");var Bft=new _.J1("toggleCaptionsVisibilityCommand");_.G3u=new _.J1("quickActionsViewModel");var YpF=new _.J1("playerResponse");var dG7=new _.J1("playlistRenderer");_.pOT=new _.J1("playlistVideoListRenderer");_.pS=new _.J1("playlistEditEndpoint");var AwR=new _.J1("createImagePollCommand");var iSM=new _.J1("createQuizCommand");var E37=new _.J1("quizRenderer");var TPR=new _.J1("uploadedVideoRenderer");var v3M=new _.J1("decorateMessageEndpoint");var cwQ=new _.J1("lpOfferCardOptionViewModel");var wOQ=new _.J1("sfvAudioItemPlaybackCommand");var Vd7=function(){qm.apply(this,arguments)};
_.C(Vd7,qm);Vd7.prototype.getAssociations=function(){return[]};
Vd7.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Aw=new _.J1("reelNonVideoContentEndpoint");_.SW=new _.J1("reelWatchEndpoint");_.ii=new _.J1("reelItemRenderer");_.JwT=new _.J1("reelMetapanelViewModel");_.g3R=new _.J1("reelNonVideoContentRenderer");_.tdd=new _.J1("reelPlayerOverlayRenderer");var sHH=new _.J1("shortsLockupViewModel");var Pi9=new _.J1("sponsorButtonViewModel");var ZS6=new _.J1("reelItemWatchResponse");var rwu=new _.J1("textBadgeRenderer");_.Ep=new _.J1("buttonRenderer");_.T3=new _.J1("toggleButtonRenderer");var iBr=new _.J1("switchButtonViewModel");_.k3U=new _.J1("confirmDialogRenderer");var l6u;l6u=new _.J1("menuRenderer");_.Ci6=new _.J1("menuFlexibleItemRenderer");var I6Q=new _.J1("pollRenderer");_.o36=new _.J1("backgroundPromoRenderer");var HSu;_.hN7=new _.J1("chipCloudRenderer");HSu=new _.J1("chipCloudChipRenderer");var Fx9=new _.J1("dropdownRenderer");var Spd=new _.J1("gridVideoRenderer");_.bS4=new _.J1("itemSectionRenderer");_.jHM=new _.J1("messageRenderer");var f6H=new _.J1("sortFilterHeaderRenderer");_.vO=new _.J1("videoRenderer");var OSF=new _.J1("resolveUrlCommandMetadata");var XO6=function(){qm.apply(this,arguments)};
_.C(XO6,qm);XO6.prototype.getAssociations=function(){return[]};
XO6.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.KxR=new _.J1("getAnswerCommand");_.h8=new _.J1("searchEndpoint");var uhH=new _.J1("genAiRichTextViewModel");var AQ0=new _.J1("overviewAnswerViewModel");var eN7=new _.J1("videoOverviewViewModel");var mGQ=new _.J1("addToPlaylistServiceEndpoint");var xGd=new _.J1("clearSearchHistoryEndpoint");var DG4=new _.J1("clearWatchHistoryEndpoint");var QHH=new _.J1("webSerializedServiceEndpointExtension");_.yw4=new _.J1("createCommentEndpoint");var qpu=new _.J1("createCommentReplyEndpoint");var n3M=new _.J1("performCommentActionEndpoint");var NPM=new _.J1("updateCommentEndpoint");var $G9=new _.J1("updateCommentReplyEndpoint");_.cO=new _.J1("createPlaylistServiceEndpoint");var LxT=new _.J1("deletePlaylistEndpoint");var UGu=new _.J1("deleteVideoEndpoint");var E7D=new _.J1("getReportFormEndpoint");var Mdd=new _.J1("modifyChannelNotificationPreferenceEndpoint");var IA2;_.In=new _.J1("offlinePlaylistEndpoint");IA2={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 ofr;_.C2=new _.J1("offlineVideoEndpoint");ofr={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 a6F=new _.J1("pingingEndpoint");_.RN6=new _.J1("selectActiveIdentityEndpoint");var WtU=new _.J1("setSettingEndpoint");var VAr=new _.J1("undoFeedbackEndpoint");var BWd=new _.J1("unsubscribeEndpoint");_.z7R=new _.J1("updatedMetadataEndpoint");var G14=function(){qm.apply(this,arguments)};
_.C(G14,qm);G14.prototype.getAssociations=function(){return[]};
G14.prototype.getTypeName=function(){return"settingEntity"};_.YrU=new _.J1("updateLocalAppSettingCommand");var d1M=new _.J1("saveImageToDeviceEndpoint");var pzH=new _.J1("shareImageCommand");var A5R=new _.J1("sharingProviderDataCommand");var iI7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(iI7,_.iQ);var EU4=[0,_.Yi,-1];iI7.prototype.JSC$12372_serializeBinary=mZT(EU4);var TWM=_.Pb(EU4);var vU9=new _.J1("userMentionSuggestionRenderer");var c5Q=new _.J1("liveChatTunnelCommand");var wzU=new _.J1("showSponsorshipsGiftOfferDialogCommand");var V84=new _.J1("sponsorshipsScrollableShelfViewModel");var J56=new _.J1("updateUpcomingEventReminderButtonStateCommand");var gUU=new _.J1("upcomingEventReminderButtonStateRenderer");var t8H=new _.J1("subscribeEndpoint");var sqR=new _.J1("registerTasksCommand");var ls7=new _.J1("hideSheetCommand");var CuF=new _.J1("hideSnackbarCommand");var IsU=new _.J1("showDialogCommand");_.jc=new _.J1("showSheetCommand");var ozD=new _.J1("showSnackbarCommand");var hPd=function(){qm.apply(this,arguments)};
_.C(hPd,qm);hPd.prototype.getAssociations=function(){return[]};
hPd.prototype.getTypeName=function(){return"chipEntity"};var HLF=function(){qm.apply(this,arguments)};
_.C(HLF,qm);HLF.prototype.getAssociations=function(){return[]};
HLF.prototype.getTypeName=function(){return"dismissState"};_.yi=new _.J1("avatarViewModel");var Fm4=new _.J1("badgeViewModel");_.wP=new _.J1("buttonViewModel");_.VP=new _.J1("chipViewModel");var kZR=new _.J1("collectionThumbnailViewModel");var S6R=new _.J1("contentPreviewImageViewModel");var bL4=new _.J1("decoratedAvatarViewModel");_.JSk=new _.J1("engagementBarViewModel");_.jT4=new _.J1("imageBannerViewModel");var fsF=new _.J1("lockupContentMetadataRowExtension");_.OL7=new _.J1("lockupMetadataViewModel");_.X74=new _.J1("lockupViewModel");var Km9=new _.J1("avatarStackViewModel");_.u$U=new _.J1("contentMetadataViewModel");var ePT=function(){qm.apply(this,arguments)};
_.C(ePT,qm);ePT.prototype.getAssociations=function(){return[]};
ePT.prototype.getTypeName=function(){return"pageHeaderEntity"};_.m87=new _.J1("pageHeaderViewModel");var x8d=new _.J1("snackbarViewModel");var D8M=new _.J1("thumbnailHoverOverlayToggleActionsViewModel");_.Jw=new _.J1("toggleButtonViewModel");var QTH=function(){qm.apply(this,arguments)};
_.C(QTH,qm);QTH.prototype.getAssociations=function(){return[]};
QTH.prototype.getTypeName=function(){return"votingEntity"};_.gC0=new _.J1("votingViewModel");var yuM=new _.J1("sectionHeaderViewModel");var q6R=new _.J1("notifyDropdownOptionSelectedCommand");var K3Q=new _.J1("listViewModel");_.f2=new _.J1("listItemViewModel");var rm8=new _.J1("toggleableListItemViewModel");var nz6=new _.J1("dialogHeaderViewModel");var N04=function(){qm.apply(this,arguments)};
_.C(N04,qm);N04.prototype.getAssociations=function(){return[]};
N04.prototype.getTypeName=function(){return"dataFreshnessEntity"};var NMQ=new _.J1("suspenseViewModel");var $8R=function(){qm.apply(this,arguments)};
_.C($8R,qm);$8R.prototype.getAssociations=function(){return[]};
$8R.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var LmD=function(){qm.apply(this,arguments)};
_.C(LmD,qm);LmD.prototype.getAssociations=function(){return[]};
LmD.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var U8Q=function(){qm.apply(this,arguments)};
_.C(U8Q,qm);U8Q.prototype.getAssociations=function(){return[]};
U8Q.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.Mx4=new _.J1("transcriptSubmitCaptionCorrectionCommand");var asQ=function(){qm.apply(this,arguments)};
_.C(asQ,qm);asQ.prototype.getAssociations=function(){return[]};
asQ.prototype.getTypeName=function(){return"buttonEntity"};var mLt=new _.J1("unpluggedStringRunImage");var RPM=new _.J1("tabViewModel");var WhQ=new _.J1("tabbedViewModel");var BN6=function(){qm.apply(this,arguments)};
_.C(BN6,qm);BN6.prototype.getAssociations=function(){return[]};
BN6.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.zvM=new _.J1("updateDescriptionAction");var GzH=new _.J1("updateToggleButtonTextAction");_.YsD=new _.J1("autoplaySwitchButtonRenderer");var mQ;_.dK6=new _.J1("multiMarkersPlayerBarRenderer");mQ=new _.J1("chapterRenderer");var pN7=new _.J1("heatMarkerRenderer");var Ihr=new _.J1("heatmapRenderer");var APM=new _.J1("smartSkipPlayerScrimOverlayRenderer");var iju=new _.J1("timedMarkerDecorationRenderer");var B9T=new _.J1("postWebToNativeMessageCommand");var mu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(mu,_.iQ);mu.prototype.getMethodName=function(){return _.KV(this,1)};var E1d=[0,_.Yi,-2];mu.prototype.JSC$12394_serializeBinary=mZT(E1d);var TNu=_.sK(mu,E1d);var v14=new _.J1("whitelistEditEndpoint");var cP6=new _.J1("clearUrlParamCommand");var wNM=new _.J1("commerceActionCommand");_.VSH=new _.J1("getPaymentInstrumentsParamsCommand");var JPD=new _.J1("getPaymentsClientTokenCommand");var g19=new _.J1("googlePaymentBillingCommand");var tSM=new _.J1("googlePaymentPurchaseManagerCommand");_.sYR=new _.J1("logGtmCommand");var PUM=new _.J1("updateCardItemOnClickCommand");_.ZjH=new _.J1("ypcPauseSubscriptionCommand");_.rPH=new _.J1("ypcResumeSubscriptionCommand");var kzM=function(){qm.apply(this,arguments)};
_.C(kzM,qm);kzM.prototype.getAssociations=function(){return[]};
kzM.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var lVF=function(){qm.apply(this,arguments)};
_.C(lVF,qm);lVF.prototype.getAssociations=function(){return[]};
lVF.prototype.getTypeName=function(){return"commerceCartListEntity"};var CUM=function(){qm.apply(this,arguments)};
_.C(CUM,qm);CUM.prototype.getAssociations=function(){return[]};
CUM.prototype.getTypeName=function(){return"iconBadgeEntity"};var IVF=function(){qm.apply(this,arguments)};
_.C(IVF,qm);IVF.prototype.getAssociations=function(){return[]};
IVF.prototype.getTypeName=function(){return"pdpStateEntity"};var o1d=function(){qm.apply(this,arguments)};
_.C(o1d,qm);o1d.prototype.getAssociations=function(){return[]};
o1d.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var qmR=new _.J1("ypcOffersEndpoint");var hvU=new _.J1("cardItemRenderer"),HjM=new _.J1("cardItemTextRenderer");var FhT=new _.J1("commerceCartItemQuantityPickerRenderer");var SsQ=new _.J1("linkCardRenderer");var LID=new _.J1("quantityIncrementerButtonViewModel");var bjU=new _.J1("quantityIncrementerViewModel");var jY9=new _.J1("themedImageViewModel");_.fVD=new _.J1("ypcCancelRecurrenceEndpoint");var OjM=new _.J1("ypcCompleteTransactionEndpoint");_.XNM=new _.J1("ypcGetCartEndpoint");_.Gm=new _.J1("ypcGetOffersEndpoint");_.gP=new _.J1("ypcHandleTransactionEndpoint");var KhM=new _.J1("ypcLogWalletAnalyticDataEndpoint");_.uwD=new _.J1("ypcRedeemCodeEndpoint");var ev7=new _.J1("ypcUpdateFopEndpoint");C6(lJ(1),rE(4));MPX((new MessageChannel).port2);var mKD=function(){this.register=new Map},GfQ=function(W,B,z){W=W+"_"+B;
tw.register.has(W)?z=tw.register.get(W):(z=z(),tw.register.set(W,z));return z},xK9=function(W){W=_.A(W.register.values());
for(var B=W.next();!B.done;B=W.next())_.Vb(B.value,"ABORTED")};
mKD.prototype.clear=function(){xK9(this);this.register.clear()};
var tw=new mKD;var K7R=Date.now().toString();var mrR=eQR();var $r8={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 DKd,uy;DKd=1;uy=function(W){this.veData=W};
_.XF=function(W){return new uy({trackingParams:W})};
_.PA=function(W,B,z,G,Y,d){var E=DKd++;return new uy({veType:W,veCounter:E,elementIndex:z,dataElement:B,youtubeData:G,jspbYoutubeData:Y,loggingDirectives:d})};
_.p=uy.prototype;
_.p.getAsJson=function(){var W={};this.veData.trackingParams!==void 0?W.trackingParams=this.veData.trackingParams:(W.veType=this.veData.veType,this.veData.veCounter!==void 0&&(W.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(W.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(W.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(W.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(W.isCounterfactual=!0);
return W};
_.p.getAsJspb=function(){var W=new JjM;this.veData.trackingParams!==void 0?W.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.DJ(W,2,this.veData.veType),this.veData.veCounter!==void 0&&_.DJ(W,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.DJ(W,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.gH(W,5,!0));if(this.veData.dataElement!==void 0){var B=this.veData.dataElement.getAsJspb();_.o3(W,7,B)}this.veData.youtubeData!==void 0&&_.o3(W,8,this.veData.jspbYoutubeData);
return W};
_.p.toString=function(){return JSON.stringify(this.getAsJson())};
_.p.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.p.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.BV("yt_logging_screen.getRootVeType",qTr);_.BV("yt_logging_screen.getCurrentCsn",_.m1);_.BV("yt_logging_screen.getCttAuthInfo",x6);_.BV("yt_logging_screen.setCurrentScreen",_.D2);var QYD=function(){this.events=new Map},yPd=function(W){var B=[];
W=_.A(W.events.values());for(var z=W.next();!z.done;z=W.next())B.push(z.value);return B};
QYD.prototype.clear=function(){this.events.clear()};var n1Q=function(){this.logTransport=new qsR;this.loggedEventRegister=new QYD;this.unloggedEventRegister=new QYD;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12431_flushTimer=new _.Eh(this.flushInterval);this.JSC$12431_flushTimer.listen("tick",this.flush,!1,this)};
n1Q.prototype.flush=function(){if(this.eventsCount){var W={loggedEvents:yPd(this.loggedEventRegister),unloggedEvents:yPd(this.unloggedEventRegister)};if(_.r("export_player_version_to_ytconfig")){var B;(B=_.eD("PLAYER_CLIENT_VERSION"))?(B=B.split("-")[0].replace(/\./g,""),B=isNaN(Number(B))?"0":B):B="";var z=_.eD("PLAYER_CLIENT_VERSION");if(z){z=z.split("-");var G="";z.length>1&&(G=z[z.length-1]);z=X1R(G.startsWith("canary_experiment")?"canary":G.startsWith("canary_control")?"control":"none")}else z=
"CLIENT_CANARY_STATE_UNKNOWN";W.dimensions={playerClientVersion:B,playerCanaryState:z}}this.logTransport.flush(W);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12431_flushTimer.enabled&&this.JSC$12431_flushTimer.stop()}};
var NNF=function(W){sp==null&&(sp=new n1Q);var B=sp;var z=B.loggedEventRegister;W.dimensions=W.dimensions||{};W.dimensions.csn=_.m1()||"";var G=M0v(W.dimensions).join(";");if(W.records!=null)if(z.events.has(G)){var Y;(Y=z.events.get(G).records)==null||Y.push.apply(Y,_.u7(W.records))}else z.events.set(G,W);B.JSC$12431_flushTimer.enabled||B.JSC$12431_flushTimer.start();B.eventsCount++;B.eventsCount>=100&&B.flush()};var qsR=function(){};
qsR.prototype.flush=function(W,B){_.r("enable_client_sli_logging")&&_.Sy("sliEventBatch",W,{sendIsolatedPayload:!!B})};var sp;var Lh7;Lh7=function(W){var B=$KM;W=W===void 0?{}:W;B=B.name;var z=zdQ("SUCCESS");NNF({dimensions:W,records:[{name:B,state:"SLI_STATE_END",status:z}]})};
_.YWD=function(W,B,z,G){this.name=W;this.sliId=B;this.timeoutMs=z;this.statusOnTimeout=G;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.YWD.prototype.getId=function(){return this.sliId};
_.wn=function(W,B){B=B===void 0?{}:B;W.ongoing||(W.ongoing=!0,W.dimensions=B,W.logSliId=BhH(),NNF({dimensions:W.dimensions,records:[{name:W.name,state:"SLI_STATE_START",sliId:W.logSliId}]}),W.timeoutMs>0&&(W.timeoutHandle=setTimeout(function(){_.Vb(W,W.statusOnTimeout)},W.timeoutMs)))};
_.Vb=function(W,B){W.ongoing&&(W.timeoutMs>0&&clearTimeout(W.timeoutHandle),W.ongoing=!1,B={dimensions:W.dimensions,records:[{name:W.name,status:zdQ(B),state:"SLI_STATE_END",sliId:W.logSliId}]},tw.register.delete(W.name+"_"+W.sliId),NNF(B))};var $KM=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var UKR=function(){qm.apply(this,arguments)};
_.C(UKR,qm);UKR.prototype.getAssociations=function(){return[]};
UKR.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var kV2=new _.J1("highlightTextDecoratorColorMapExtension");var Z0X=new _.J1("styleRunColorMapExtension");var vy8=_.ak(["data-"]),VYx={};var gyv={};var PO=function(W){this.wrappedPromise_=W===void 0?null:W;this.state_=0;this.JSC$12463_value_=null};
PO.prototype.then=function(W,B,z){return this.wrappedPromise_?this.wrappedPromise_.then(W,B,z):this.state_===1&&W?(W=W.call(z,this.JSC$12463_value_))&&typeof W.then==="function"?W:_.Z6(W):this.state_===2&&B?(W=B.call(z,this.JSC$12463_value_))&&typeof W.then==="function"?W:_.MSD(W):this};
PO.prototype.getValue=function(){return this.JSC$12463_value_};
PO.prototype.isRejected=function(){return this.state_==2};
cvH(PO);_.MSD=function(W){var B=new PO;W=W===void 0?null:W;B.state_=2;B.JSC$12463_value_=W===void 0?null:W;return B};
_.Z6=function(W){var B=new PO;W=W===void 0?null:W;B.state_=1;B.JSC$12463_value_=W===void 0?null:W;return B};var bhv="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var aVD=["load","abort","error"],rP=function(W,B,z){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12483_maxAspectRatio_=W;this.disableAnimation_=B===void 0?!1:B;this.disableExifRotation_=z===void 0?!1:z;this.JSC$12483_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12483_reject_=this.resolve_=null};
rP.prototype.transform=function(W){var B=this;this.mime_=W.type;E5(gwR(W),this.dataUrlRead_,this.readError_,this);E5(JHU(W.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(z,G){B.resolve_=z;B.JSC$12483_reject_=G})};
rP.prototype.dataUrlRead_=function(W){this.dataUrl_=W;this.angle_!=null&&RvQ(this)};
rP.prototype.exifRead_=function(W){if(this.disableExifRotation_)this.angle_=0;else{a:if(W=new DataView(W),W.byteLength<2||W.getUint16(0)!==65496)W=-2;else{for(var B=2,z=W.byteLength;B<z;){var G=W.getUint16(B),Y=W.getUint16(B+2);if(G===65505){B+=4;G=W.getUint32(B);Y=W.getUint16(B+4);if(G!==1165519206||Y!==0)break;B+=6;G=W.getUint16(B)===18761;B+=W.getUint32(B+4,G);Y=W.getUint16(B,G);B+=2;for(var d=0;d<Y;d++){if(W.getUint16(B,G)===274){B+=8;W=W.getUint16(B,G);break a}B+=12}}else if(G>>8!==255)break;
else B+=Y+2}W=-1}switch(W){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&&RvQ(this)};
rP.prototype.readError_=function(){this.JSC$12483_reject_()};
var RvQ=function(W){f8(W.JSC$12483_image_,aVD,W.completeTransform_,!1,W);W.JSC$12483_image_.src=_.yN(W.dataUrl_).toString();W.JSC$12483_image_.src!=QN.toString()&&W.JSC$12483_image_.src.substr(0,11)==="data:image/"||W.JSC$12483_reject_()};
rP.prototype.completeTransform_=function(){if(this.JSC$12483_image_.src!=QN.toString()){var W=_.yN(this.dataUrl_),B=this.JSC$12483_image_.naturalHeight?this.JSC$12483_image_.naturalWidth/this.JSC$12483_image_.naturalHeight:null;this.invalidAspectRatio=B>this.JSC$12483_maxAspectRatio_||B<1/this.JSC$12483_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var z=this.JSC$12483_image_.naturalWidth,G=this.JSC$12483_image_.naturalHeight,Y=B=0,d=this.JSC$12483_image_.naturalHeight?this.JSC$12483_image_.naturalWidth/
this.JSC$12483_image_.naturalHeight:null;d>this.JSC$12483_maxAspectRatio_?(z=this.JSC$12483_maxAspectRatio_*G,B=(z-this.JSC$12483_image_.naturalWidth)/2,this.cropped=!0):d<1/this.JSC$12483_maxAspectRatio_?(G=this.JSC$12483_maxAspectRatio_*z,Y=(G-this.JSC$12483_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)d=z,z=G,G=d,d=B,B=Y,Y=d;switch(this.angle_){case 90:Y-=z;break;case 180:B-=z;Y-=G;break;case 270:B-=
G}this.cropped||this.angle_%360!==0?(W=document.createElement("canvas"),W.width=z||1,W.height=G||1,this.JSC$12483_image_.naturalWidth&&this.JSC$12483_image_.naturalHeight&&(z=W.getContext("2d"),z.rotate(Math.PI/180*this.angle_),z.drawImage(this.JSC$12483_image_,B,Y,this.JSC$12483_image_.naturalWidth,this.JSC$12483_image_.naturalHeight)),this.transformedData=_.yN(W.toDataURL(this.mime_))):this.transformedData=W}else this.transformedData=W;this.resolve_(this)}};var k3=function(W,B){_.bK.call(this,W);this.value=B};
_.C(k3,_.bK);
var li=function(W,B,z,G,Y,d,E){E=E===void 0?!1:E;_.Ka.call(this);var v=this;this.JSC$12488_url_=W;this.channelId_=B;this.maxFileSizeMb_=z;this.JSC$12488_maxAspectRatio_=G;this.dropZoneEl_=Y;this.rejectInvalidAspectRatio_=E;this.selectButtonEl_=d;this.JSC$12488_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new j9(this.dropZoneEl_);this.selectOverlay_=new f6(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12488_image_=this.transfer_=null;this.handler_=new _.T5(this);_.rH(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(d,"click",function(){v.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.C(li,_.Ka);li.prototype.disposeInternal=function(){for(var W=this.selectButtonEl_.nextSibling;W&&W.parentNode&&W.tagName=="INPUT";)W.parentNode.removeChild(W),W=this.selectButtonEl_.nextSibling;this.cancel();_.Ka.prototype.disposeInternal.call(this)};
li.prototype.uploadPromise=function(){if(this.JSC$12488_image_==null)return null;this.uploadPromise_||WOD(this);return this.uploadPromise_};
li.prototype.cancel=function(){Be4(this);this.JSC$12488_image_=null};
var Be4=function(W){W.transfer_&&W.transfer_.cancel();W.transfer_=null;W.uploadPromise_=null;W.resolve_=null;W.JSC$12488_reject_=null},WOD=function(W){Be4(W);
W.transfer_=_.eCR(W.JSC$12488_url_,{"X-YouTube-ChannelId":W.channelId_},W.JSC$12488_image_);W.handler_.listenOnce(W.transfer_,"l",W.JSC$12490_onUploadComplete_);W.handler_.listenOnce(W.transfer_,"n",W.onUploadError_);W.transfer_.run();W.uploadPromise_=new Promise(function(B,z){W.resolve_=B;W.JSC$12488_reject_=z})};
_.p=li.prototype;_.p.onChange_=function(W){W.files.length&&(this.JSC$12488_image_=W.files[0],this.JSC$12488_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12488_image_=null,this.dispatchEvent(new k3("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(WOD(this),(new rP(this.JSC$12488_maxAspectRatio_)).transform(this.JSC$12488_image_).then((0,_.jk)(this.onPreview_,this),(0,_.jk)(this.onPreviewError_,this))))};
_.p.onPreview_=function(W){if(W.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12488_image_=null),this.dispatchEvent(new k3("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;W.cropped&&this.dispatchEvent(new k3("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new k3("yt.comments.ImageUploadOverlay.CHANGE_EVENT",W.transformedData))};
_.p.onPreviewError_=function(){this.JSC$12488_image_=null;this.dispatchEvent(new k3("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.p.onHover_=function(W){W.stopPropagation();W.preventDefault();if(W.type==="dragover")W=!0;else if(W.type==="dragleave")W=!1;else return;this.dispatchEvent(new k3("yt.comments.ImageUploadOverlay.HOVER_EVENT",W))};
_.p.JSC$12490_onUploadComplete_=function(){var W=(0,_.KPF)(this.transfer_.getResponseText());this.resolve_(W.encryptedBlobId)};
_.p.onUploadError_=function(){this.JSC$12488_reject_();Be4(this)};var zMM=function(W){W=W||{};var B={},z={};this.url=W.url||"";this.args=W.args||_.mP.clone(B);this.assets=W.assets||{};this.attrs=W.attrs||_.mP.clone(z);this.fallback=W.fallback||null;this.fallbackMessage=W.fallbackMessage||null;this.html5=!!W.html5;this.disable=W.disable||{};this.loaded=!!W.loaded;this.messages=W.messages||{}};
zMM.prototype.clone=function(){var W=new zMM,B;for(B in this)if(this.hasOwnProperty(B)){var z=this[B];_.MT(z)=="object"?W[B]=_.mP.clone(z):W[B]=z}return W};var GB6,Y7T,d7R,R6,AaM,iW4,EIF,Te6,vI6,ca7,w$6,Vv7,JaM,gIM,tvM,spR,Phd,ZW4,raR,kBH,lHH,Ch9,IHM,oIR,hMT,HW7,FO7,S7d,bWQ,vCr,jpM,fH6,OW7,X$M,KOQ,urd,eMU,m7u,x77,D7T,T6v,QpR,yad,q76,nIR,NeM,$7T,LOR,U74,Mv4,aHR,RM6,W59,BJ7,zaM,GoD,CS,YnD,dV4,pDd,AB6,inF,EPu,TJ6,vPd,cBT,wDT,VZM,JB7,gPR,tZD,sFD,PqH,ZnT,rBU,koU,ibQ,lb4,CqH,Ib7,oPd,haF,HnU,F5M,Snd,bnM,jFD,fbF,On7,XDT,K5R,uZ6,eaR,mV4,xVM,DVT,QFF,yBd,qnM,nPR,NJM,$VD;GB6=["account/accounts_list"];Y7T=["acknowledge_channel_tou_strike"];d7R=["notification/add_upcoming_event_reminder"];
_.p$R=["att/get"];R6=["browse","music/browse","unplugged/browse"];AaM=["channel/claim_legacy_youtube_channel"];iW4=["history/clear_search_history"];EIF=["history/clear_watch_history"];Te6=["comment/perform_comment_action"];vI6=["comment/get_comment_replies"];ca7=["ypc/commerce_action"];w$6=["backstage/create_post"];Vv7=["live/create_broadcast"];JaM=["channel/create_channel"];gIM=["comment/create_comment_reply"];tvM=["comment/create_comment"];spR=["live_chat/create_poll"];Phd=["playlist/create"];
ZW4=["decorate_message"];raR=["live_chat/delete_message"];kBH=["playlist/delete"];lHH=["video/delete"];Ch9=["like/dislike"];IHM=["dismissal/dismiss"];oIR=["flag/flag"];hMT=["flow"];HW7=["account/account_menu"];FO7=["playlist/get_add_to_playlist"];S7d=["get_answer"];bWQ=["channel/get_channel_creation_form"];vCr=["offline/get_download_action"];jpM=["kids/get_kids_blocklist_picker"];fH6=["live_chat/get_item_context_menu"];OW7=["live_chat/get_live_chat_message_buy_flow"];X$M=["live_chat/get_live_chat_replay"];
KOQ=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];urd=["live_chat/get_live_chat_super_sticker_buy_flow"];eMU=["notification/get_notification_menu"];m7u=["playlist/get_settings_editor"];x77=["backstage/get_post_video_preview"];D7T=["account/get_profile_card"];T6v=["share/get_share_panel"];QpR=["share/get_sharing_provider_data"];yad=["get_survey"];q76=["notification/get_unseen_count"];nIR=["get_user_mention_suggestions"];NeM=["get_watch"];$7T=["guide"];
LOR=["feedback"];U74=["kids/update_blacklist"];Mv4=["like/like"];aHR=["live_chat/live_chat_action"];RM6=["live_chat/manage_user"];W59=["video_manager/metadata_update"];BJ7=["live_chat/moderate"];zaM=["notification/modify_channel_preference"];GoD=["notification/opt_out"];CS=["get_panel","get_posts_by_host_panel"];YnD=["player"];dV4=["browse/edit_playlist"];pDd=["notification/record_interactions"];AB6=["reel/reel_item_watch"];inF=["reel/reel_watch_sequence"];EPu=["like/removelike"];TJ6=["notification/remove_upcoming_event_reminder"];
vPd=["flag/get_form"];cBT=["miniapp/report_value"];wDT=["navigation/resolve_url"];VZM=["channel/reveal_business_email"];JB7=["in_video/search"];gPR=["search","sfv/search","unplugged/search"];tZD=["live_chat/send_message"];sFD=["live_chat/send_live_chat_vote"];PqH=["account/set_setting"];ZnT=["submit_caption_correction"];rBU=["submit_form"];koU=["subscription/subscribe"];ibQ=["get_transcript"];lb4=["resolve_location","unplugged/resolve_location"];CqH=["subscription/unsubscribe"];Ib7=["backstage/update_post"];
oPd=["channel_edit/update_channel_page_settings"];haF=["comment/update_comment_reply"];HnU=["comment/update_comment"];F5M=["comment/update_comments_settings"];Snd=["creator/update_creator_channel"];bnM=["pdg/update_enablement"];jFD=["updated_metadata"];fbF=["channel_edit/validate_channel_handle"];On7=["verify_age"];XDT=["next","unplugged/watch_next"];K5R=["whitelist/edit"];uZ6=["ypc/cancel_recurrence"];eaR=["ypc/complete_transaction"];mV4=["ypc/get_cart"];xVM=["ypc/get_fix_instrument_params"];
DVT=["ypc/get_offers"];QFF=["ypc/get_payment_instruments_params"];yBd=["ypc/handle_transaction"];qnM=["ypc/log_payment_server_analytics"];nPR=["ypc/pause_subscription"];NJM=["ypc/redeem_code"];$VD=["ypc/resume_subscription"];var L54=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,274188,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,
27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,
46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,
72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,
211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,
74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,
17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,
139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,
265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,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,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,
130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,
10337,203648,203649,47896,122629,186204,222824,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,
148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,
3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var rV=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.BV("yt.msgs_",rV);var IH=new _.t1("ACTION_ROUTER_TOKEN");_.oH=function(){this.autonavState_=_.r("kevlar_is_pupi_enabled")?2:yfu()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.oH.prototype.getState=function(){return this.autonavState_};
_.oH.prototype.pause=function(W){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=W):this.autonavState_==1&&(this.disabledAutonavPauseReason_=W)};
_.oH.prototype.setState=function(W,B,z){B&&(this.autoplayChangedByUser=!0);B=this.autonavState_===3||W===3;this.autonavState_!=W&&(this.autonavState_=W,W!=3&&_.qWQ(W==2),W=_.r("kevlar_is_pupi_enabled")?z||B:!0,_.Qx.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,W,z))};
_.oH.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.i0(_.oH);var hw=function(){this.hasRun=!1};var HO={},zxr=(HO.auto_search="LATENCY_ACTION_AUTO_SEARCH",HO.ad_to_ad="LATENCY_ACTION_AD_TO_AD",HO.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",HO.app_startup="LATENCY_ACTION_APP_STARTUP",HO.browse="LATENCY_ACTION_BROWSE",HO.cast_splash="LATENCY_ACTION_CAST_SPLASH",HO.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",HO.channels="LATENCY_ACTION_CHANNELS",HO.chips="LATENCY_ACTION_CHIPS",HO.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",HO.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
HO.editor="LATENCY_ACTION_EDITOR",HO.embed="LATENCY_ACTION_EMBED",HO.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",HO.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",HO.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",HO.explore="LATENCY_ACTION_EXPLORE",HO.favorites="LATENCY_ACTION_FAVORITES",HO.home="LATENCY_ACTION_HOME",HO.inboarding="LATENCY_ACTION_INBOARDING",HO.landing="LATENCY_ACTION_LANDING",HO.learning="LATENCY_ACTION_LEARNING",
HO.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",HO.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",HO.library="LATENCY_ACTION_LIBRARY",HO.live="LATENCY_ACTION_LIVE",HO.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",HO.management="LATENCY_ACTION_MANAGEMENT",HO.mini_app="LATENCY_ACTION_MINI_APP_PLAY",HO.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",HO.onboarding="LATENCY_ACTION_ONBOARDING",HO.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
HO.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",HO.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",HO.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",HO.prebuffer="LATENCY_ACTION_PREBUFFER",HO.prefetch="LATENCY_ACTION_PREFETCH",HO.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",HO.profile_switcher="LATENCY_ACTION_LOGIN",HO.projects="LATENCY_ACTION_PROJECTS",HO.reel_watch="LATENCY_ACTION_REEL_WATCH",HO.results="LATENCY_ACTION_RESULTS",HO.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
HO.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",HO.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",HO.review="LATENCY_ACTION_REVIEW",HO.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",HO.search_ui="LATENCY_ACTION_SEARCH_UI",HO.search_suggest="LATENCY_ACTION_SUGGEST",HO.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",HO.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",HO.seek="LATENCY_ACTION_PLAYER_SEEK",HO.settings="LATENCY_ACTION_SETTINGS",HO.store="LATENCY_ACTION_STORE",
HO.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",HO.tenx="LATENCY_ACTION_TENX",HO.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",HO.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",HO.watch="LATENCY_ACTION_WATCH",HO.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",HO["watch,watch7"]="LATENCY_ACTION_WATCH",HO["watch,watch7_html5"]="LATENCY_ACTION_WATCH",HO["watch,watch7ad"]="LATENCY_ACTION_WATCH",HO["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",HO.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
HO.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",HO.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",HO.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",HO.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",HO.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",HO.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",HO.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",HO),t3D=0;var lMQ=function(W,B){Qt.call(this,1,arguments);this.timer=B};
_.C(lMQ,Qt);var kkX=new I8R("aft-recorded",lMQ);var pdX=_.Yt.ytLoggingGelSequenceIdObj_||{};_.BV("ytLoggingGelSequenceIdObj_",pdX);var Fh=_.Yt.ytLoggingLatencyUsageStats_||{};_.BV("ytLoggingLatencyUsageStats_",Fh);var Sd=function(){this.cleanupJob=0},E02=function(){Sd.instance||(Sd.instance=new Sd);
return Sd.instance};
_.p=Sd.prototype;_.p.baseline=function(W,B,z){bi(this,"baseline_"+W)||_.Sy("latencyActionBaselined",{clientActionNonce:W},{timestamp:B,cttAuthInfo:z})};
_.p.tick=function(W,B,z,G){bi(this,"tick_"+W+"_"+B)||_.Sy("latencyActionTicked",{tickName:W,clientActionNonce:B},{timestamp:z,cttAuthInfo:G})};
_.p.info=function(W,B,z){var G=Object.keys(W).join("");bi(this,"info_"+G+"_"+B)||(W=Object.assign({},W),W.clientActionNonce=B,_.Sy("latencyActionInfo",W,{cttAuthInfo:z}))};
_.p.jspbInfo=function(W,B,z){for(var G="",Y=0;Y<u9(W).length;Y++)u9(W)[Y]!==void 0&&(G=Y===0?G.concat(""+Y):G.concat("_"+Y));bi(this,"info_"+G+"_"+B)||(_.f3(W,2,B),B={cttAuthInfo:z},z=_.r("jspb_sparse_encoded_pivot")?new lp([{}]):new lp,_.hZ(z,7,ShR,W),A7x("latencyActionInfo",z,B))};
_.p.span=function(W,B,z){var G=Object.keys(W).join("");bi(this,"span_"+G+"_"+B)||(W.clientActionNonce=B,_.Sy("latencyActionSpan",W,{cttAuthInfo:z}))};
var bi=function(W,B){Fh[B]=Fh[B]||{count:0};var z=Fh[B];z.count++;z.time=(0,_.Yb)();W.cleanupJob||(W.cleanupJob=_.CG(_.fg,function(){var G=(0,_.Yb)(),Y;for(Y in Fh)Fh[Y]&&G-Fh[Y].time>6E4&&delete Fh[Y];W&&(W.cleanupJob=0)},5E3));
return z.count>5?(z.count===6&&Math.random()*1E5<1&&(z=new _.oX("CSI data exceeded logging limit with key",B.split("_")),B.indexOf("plev")>=0||_.Oc(z)),!0):!1};var UVu,MZ9;UVu=window;MZ9=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.S4=UVu.performance||UVu.mozPerformance||UVu.msPerformance||UVu.webkitPerformance||new MZ9;var r72=!1,v0v=!1,Co0=(0,_.jk)(_.S4.clearResourceTimings||_.S4.webkitClearResourceTimings||_.S4.mozClearResourceTimings||_.S4.msClearResourceTimings||_.S4.oClearResourceTimings||_.j7,_.S4);var ab4=window;ab4.ytcsi&&(ab4.ytcsi.infoGel=_.Ki,ab4.ytcsi.tick=_.mj);var Xdt=function(W){Qt.call(this,1,arguments);this.csn=W};
_.C(Xdt,Qt);var SRu=new I8R("screen-created",Xdt),aMQ=[],Orx=M3x,RxR=0,qj=new Map,Kf8=new Map,uJk=new Map;var nWt=Symbol("Af"),zl=new WeakMap;var jd=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},jK=function(){jd.instance||(jd.instance=new jd);
return jd.instance};
_.p=jd.prototype;_.p.setClient=function(W){this.client=W};
_.p.JSC$12569_newScreen=function(){this.clear();this.csn=_.m1()};
_.p.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.p.reportShown=function(W,B,z){var G=this.JSC$12569_getTrackingParams(W),Y=W.visualElement?W.visualElement:G;B=this.shownElements.has(Y);var d=this.visibleState.get(Y);this.shownElements.add(Y);this.visibleState.set(Y,!0);W.impressionLog&&!B&&W.impressionLog();if(G||W.visualElement)if(z=Ra4(this,W,z))if(Y=WJ4(this,W),fS(this,W)||Y){G=W.visualElement?W.visualElement:_.XF(G);var E=W.interactionLoggingClientData;Y||B?fS(this,W)&4?d||n0x(this.client,z,G,E):fS(this,W)&1&&!B&&Q9T(this.client,z,G,E):Q9T(this.client,
z,G,E)}};
_.p.reportHidden=function(W,B,z){var G=this.JSC$12569_getTrackingParams(W),Y=W.visualElement?W.visualElement:G;B=this.hiddenElements.has(Y);var d=this.visibleState.get(Y);this.hiddenElements.add(Y);this.visibleState.set(Y,!1);if(d===!1)return!0;if(!G&&!W.visualElement)return!1;z=Ra4(this,W,z);if(!z||!fS(this,W)&&WJ4(this,W))return!1;G=W.visualElement?W.visualElement:_.XF(G);fS(this,W)&8?N1T(this.client,z,G):fS(this,W)&2&&!B&&(W=this.client,B=y0({cttAuthInfo:x6(z)||void 0},z),G={csn:z,ve:G.getAsJson(),
eventType:2},z==="UNDEFINED_CSN"?Nj("visualElementHidden",B,G):W?HT("visualElementHidden",G,W,B):_.Sy("visualElementHidden",G,B));return!0};
_.p.JSC$12569_getTrackingParams=function(W){var B=this.getData(W),z,G;if(_.r("il_use_view_model_logging_context")&&(B==null?0:(z=B.context)==null?0:(G=z.loggingContext)==null?0:G.loggingDirectives))return B.context.loggingContext.loggingDirectives.trackingParams||"";var Y,d;if(B==null?0:(Y=B.rendererContext)==null?0:(d=Y.loggingContext)==null?0:d.loggingDirectives)return B.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(B==null?0:B.loggingDirectives)return B.loggingDirectives.trackingParams||
"";var E;return((E=W.veContainer)==null?0:E.trackingParams)?W.veContainer.trackingParams:(B==null?void 0:B.trackingParams)||""};
_.p.JSC$12569_elementShouldLogGesture=function(W,B){W=this.getData(W);return!!((Math.floor(Number(W&&W.loggingDirectives&&W.loggingDirectives.gestures&&W.loggingDirectives.gestures.types||""))||0)&B)};
_.p.JSC$12569_getNearestParentVe=function(W){var B=this.JSC$12569_getTrackingParams(W);return W.visualElement?W.visualElement:B?_.XF(B):W.parentElement?this.JSC$12569_getNearestParentVe(W.parentElement):null};
var Ra4=function(W,B,z){var G=_.m1(z);return W.csn===null||G===W.csn||z?G:(W=new _.oX("VisibilityLogger called before newScreen",{caller:B.tagName,previous_csn:W.csn,current_csn:G}),_.Oc(W),null)};
jd.prototype.getData=function(W){var B,z=W.data||((B=W.props)==null?void 0:B.data);if(!z||W.isWebComponentWrapper){var G;z=(G=zl.get(W))==null?void 0:G[nWt]}return z};
var WJ4=function(W,B){var z;return!((z=W.getData(B))==null||!z.loggingDirectives)},fS=function(W,B){W=W.getData(B);
return Math.floor(Number(W&&W.loggingDirectives&&W.loggingDirectives.visibility&&W.loggingDirectives.visibility.types||""))||1};var Op;Op=function(){};
_.HJ=function(){Op.instance||(Op.instance=new Op);return Op.instance};
Op.prototype.setClient=function(W){_.D5(jK().setClient).bind(jK())(W)};
_.Bs7=function(){_.HJ();_.D5(jK().JSC$12569_newScreen).bind(jK())()};
Op.prototype.clear=function(){_.D5(jK().clear).bind(jK())()};
Op.prototype.reportShown=function(W,B,z){_.D5(jK().reportShown).bind(jK())(W,B,z)};
Op.prototype.reportHidden=function(W,B,z){return _.D5(jK().reportHidden).bind(jK())(W,B,z)};
var rlt=function(W,B){return _.D5(jK().JSC$12569_getTrackingParams).bind(jK())(B)},Nr2=function(W,B){return _.D5(jK().JSC$12569_getNearestParentVe).bind(jK())(B)};var Xh,z4F;Xh=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};
_.SK=function(){Xh.instance||(Xh.instance=new Xh);return Xh.instance};
Xh.prototype.setClient=function(W){this.client=W};
z4F=function(W,B,z){z=z===void 0?{}:z;_.D5(function(){var G,Y,d,E=((G=_.k(B==null?void 0:B.commandMetadata,_.Z4))==null?void 0:G.rootVe)||((Y=_.k(B==null?void 0:B.commandMetadata,yf7))==null?void 0:(d=Y.screenVisualElement)==null?void 0:d.uiType);if(E){G=_.k(B==null?void 0:B.commandMetadata,OSF);if(G==null?0:G.parentTrackingParams){var v=_.XF(G.parentTrackingParams);if(G.parentCsn)var c=G.parentCsn}else z.clickedVisualElement?v=z.clickedVisualElement:B.clickTrackingParams&&(v=_.XF(B.clickTrackingParams));
a:{G=_.k(B,_.W0);Y=_.k(B,KOy);if(G){if(Y=nyX(G,"VIDEO")){G={token:Y,videoId:G.videoId};break a}}else if(Y&&(G=nyX(Y,"PLAYLIST"))){G={token:G,playlistId:Y.playlistId};break a}G=void 0}z=Object.assign({},{cttAuthInfo:G,parentCsn:c},z);if(_.r("expectation_logging")){var J;z.loggingExpectations=((J=_.k(B==null?void 0:B.commandMetadata,yf7))==null?void 0:J.loggingExpectations)||void 0}_.KS(W,E,v,z)}else _.Oc(new _.oX("Error: Trying to create a new screen without a rootVeType",B))})()};
_.KS=function(W,B,z,G){G=G===void 0?{}:G;_.D5(function(){L54.includes(B)||(_.Oc(new _.oX("createClientScreen() called with a non-page VE",B)),B=83769);G.isHistoryNavigation||(W.forwardHistoryStack=[],W.backHistoryStack.push({rootVe:B,key:G.key||""}));W.graftQueue=[];W.stateChangedQueue=[];G.dataPromises?GXR(W,B,z,G):Yid(W,B,z,G)})()};
_.d2H=function(W,B,z){z=z===void 0?0:z;_.D5(function(){B.then(function(G){W.pendingScreenCreation.has(z)&&W.pendingScreenFn&&W.pendingScreenFn();var Y=_.m1(z),d=_.et(z);if(Y&&d){var E={automatedLogEventSource:3},v;(G==null?0:(v=G.response)==null?0:v.trackingParams)&&ni(W.client,Y,d,_.XF(G.response.trackingParams),!1,E);var c;(G==null?0:(c=G.playerResponse)==null?0:c.trackingParams)&&ni(W.client,Y,d,_.XF(G.playerResponse.trackingParams),!1,E)}})})()};
Xh.prototype.graftServerVe=function(W,B,z){var G=this;return _.D5(function(){var Y=_.XF(W);_.ui(G,Y,B,z);return Y})()};
_.$Pk=function(W,B,z,G){return _.r("enable_client_ve_spec")&&B.clientVeSpec?(B=_.PA(B.clientVeSpec.uiType,void 0,B.clientVeSpec.elementIndex,B.clientVeSpec.clientYoutubeData,void 0,B),_.ui(W,B,z,G)?B:null):B.trackingParams?W.graftServerVe(B.trackingParams,z,G):null};
_.FF=function(W,B,z,G){return _.D5(function(){if(!B.veType)return _.fG(new _.oX("Error: Trying to graft a client VE without a veType.")),null;if(B.visibilityTypes){var Y=B.visibilityTypes.reduce(function(d,E){return d|E});
Y={visibility:{types:String(Y)}}}Y=_.PA(B.veType,B.visualElement,B.elementIndex,B.clientYouTubeData,void 0,Y);return _.ui(W,Y,z,G)?Y:null})()};
_.ui=function(W,B,z,G){G=G===void 0?0:G;return _.D5(function(){if(W.pendingScreenCreation.has(G))return W.graftQueue.push([B,z]),!0;var Y=_.m1(G),d=z||_.et(G);if(Y&&d){if(_.r("combine_ve_grafts")){var E=W.cachedVisualElements.get(d.toString());E?E.push(B):(W.cachedRootVisualElements.set(d.toString(),d),W.cachedVisualElements.set(d.toString(),[B]));W.attachTimeout||(W.attachTimeout=_.CG(_.fg,function(){pHU(W,Y)},1200))}else ni(W.client,Y,d,B);
return!0}return!1})()};
_.ed=function(W,B,z){z=z===void 0?0:z;var G=W.recurringGrafts.get(z)||new Map;if(_.r("smarter_ve_dedupping"))for(var Y=Array.from(G.keys()),d=0;d<Y.length;d++){var E=void 0,v=void 0;var c=B;var J=Y[d];J.isClientVe()&&c.isClientVe()?(E=c.getAsJson(),v=J.getAsJson(),c=E.veType!==v.veType||E.elementIndex!==v.elementIndex||E.dataElement!==v.dataElement||c.getLoggingDirectives()!==J.getLoggingDirectives()?!1:!0):c=J.veData.trackingParams!==void 0&&c.veData.trackingParams!==void 0?((v=c.veData)==null?void 0:
v.trackingParams)===((E=J.veData)==null?void 0:E.trackingParams):!1;if(c)return}else if(G.has(B))return;G.set(B,void 0);W.recurringGrafts.set(z,G);_.m1(z)==="UNDEFINED_CSN"||W.pendingScreenCreation.has(z)||_.ui(W,B,void 0,z)};
_.mx=function(W,B,z,G){G=_.m1(G===void 0?0:G);if(!G)return!1;Lfx(W.client,G,B,z);return!0};
_.x3=function(W,B,z,G){if(!B)return!1;G=_.m1(G===void 0?0:G);if(!G)return!1;Lfx(W.client,G,_.XF(B),z);return!0};
_.aK=function(W,B){var z=B.getScreenLayer&&B.getScreenLayer();if(B.visualElement)return _.mx(W,B.visualElement,void 0,z);B=rlt(_.HJ(),B);return _.x3(W,B,void 0,z)};
Xh.prototype.clickCommand=function(W,B,z){return _.x3(this,W.clickTrackingParams,B,z===void 0?0:z)};
Xh.prototype.stateChanged=function(W,B,z){this.visualElementStateChanged(_.XF(W),B,z===void 0?0:z)};
Xh.prototype.visualElementStateChanged=function(W,B,z){z=z===void 0?0:z;z===0&&this.pendingScreenCreation.has(z)?this.stateChangedQueue.push([W,B]):this.logStateChanged(W,B,z)};
Xh.prototype.logStateChanged=function(W,B,z){z=z===void 0?0:z;var G=_.m1(z);W=W||_.et(z);return G&&W?(Upy(this.client,G,W,B),!0):!1};
var GXR=function(W,B,z,G){G=G===void 0?{}:G;W.pendingScreenCreation.add(G.layer||0);W.pendingScreenFn=function(){Yid(W,B,z,G);var E=_.et(G.layer);if(E){for(var v=_.A(W.graftQueue),c=v.next();!c.done;c=v.next())c=c.value,_.ui(W,c[0],c[1]||E,G.layer);E=_.A(W.stateChangedQueue);for(v=E.next();!v.done;v=E.next())v=v.value,W.logStateChanged(v[0],v[1])}};
z||_.m1(G.layer)||W.pendingScreenFn();if(G.dataPromises)for(var Y=_.A(G.dataPromises),d=Y.next();!d.done;d=Y.next())_.d2H(W,d.value,G.layer);else _.jy(Error("Bf"))},Yid=function(W,B,z,G){G=G===void 0?{}:G;
var Y=void 0;G.layer||(G.layer=0);Y=G.parentLayer!==void 0?G.parentLayer:G.layer;var d=_.m1(Y);Y=_.et(Y);var E=z||Y,v;E&&(G.parentCsn!==void 0?v={clientScreenNonce:G.parentCsn,visualElement:E}:d&&d!=="UNDEFINED_CSN"&&(v={clientScreenNonce:d,visualElement:E}));var c,J=_.eD("EVENT_ID");d==="UNDEFINED_CSN"&&J&&(c={servletData:{serializedServletEventId:J}});_.r("combine_ve_grafts")&&d&&pHU(W,d);_.r("no_client_ve_attach_unless_shown")&&E&&d&&DpT(E,d);try{var g=_.exx(W.client,B,v,G.csnToClone,G.cttAuthInfo,
c,G.implicitGestureType,void 0,G.loggingExpectations)}catch(Z){_.XC(Z,{rootVeType:B,rootVe:Y,parentVisualElement:z,currentCsn:d,parentEl:v,csnToClone:G.csnToClone});_.jy(Z);return}_.D2(g,B,G.layer,G.cttAuthInfo);d&&d!=="UNDEFINED_CSN"&&Y&&!L70(d)&&N1T(W.client,d,Y,!0);W.backHistoryStack[W.backHistoryStack.length-1]&&!W.backHistoryStack[W.backHistoryStack.length-1].csn&&(W.backHistoryStack[W.backHistoryStack.length-1].csn=g||"");_.Ki({clientScreenNonce:g});_.Bs7();var t=_.et(G.layer);d&&d!=="UNDEFINED_CSN"&&
t&&(_.r("web_mark_root_visible")||_.r("music_web_mark_root_visible"))&&_.U2(g,t);W.pendingScreenCreation.delete(G.layer||0);W.pendingScreenFn=void 0;var P;(P=W.recurringGrafts.get(G.layer))==null||P.forEach(function(Z,l){Z?_.ui(W,l,Z,G.layer):t&&_.ui(W,l,t,G.layer)});
Ae7(W)},Ae7=function(W){for(var B=0;B<W.afterNewScreenOneOffJobs.length;B++){var z=W.afterNewScreenOneOffJobs[B];
try{z()}catch(G){_.jy(G)}}for(B=W.afterNewScreenOneOffJobs.length=0;B<W.afterNewScreenRecurringJobs.length;B++){z=W.afterNewScreenRecurringJobs[B];try{z()}catch(G){_.jy(G)}}},pHU=function(W,B){if(B===void 0)for(var z=NRv(),G=0;G<z.length;G++)z[G]!==void 0&&pHU(W,z[G]);
else W.cachedVisualElements.forEach(function(Y,d){(d=W.cachedRootVisualElements.get(d))&&mpR(W.client,B,d,Y)}),W.cachedVisualElements.clear(),W.cachedRootVisualElements.clear(),W.attachTimeout=void 0};var D6=function(W){W=W===void 0?{layer:0}:W;this.hasRun=!1;this.createScreenConfig=W;W={};this.w5r=(W.response=!1,W.playerResponse=!1,W)};
_.C(D6,hw);D6.prototype.validate=function(W){return!(!W.data||!W.data.response&&!W.data.playerResponse)};
D6.prototype.handle=function(W){var B=_.SK(),z=this.createScreenConfig.layer;W.data.response&&W.data.response.trackingParams&&!this.w5r.response&&(B.graftServerVe(W.data.response.trackingParams,void 0,z),this.w5r.response=!0);W.data.playerResponse&&W.data.playerResponse.trackingParams&&!this.w5r.playerResponse&&(B.graftServerVe(W.data.playerResponse.trackingParams,void 0,z),this.w5r.playerResponse=!0)};var QP=function(){this.m3=_.zN();this.kN=[];this.gEZ=0};
QP.prototype.processChunk=function(W){if(W){for(var B=_.A(this.kN),z=B.next();!z.done;z=B.next())z=z.value,z.validate(W)&&(z.handle(W),z.hasRun=!0);_.mj("np"+this.gEZ);this.gEZ++}};var Gl={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[]};var ER4=function(){var W=iYQ;this.observers=[];this.value=W};
_.p=ER4.prototype;_.p.subscribe=function(W){var B=this;if(W.idx!=null)throw Error("Df");W.idx=this.observers.length;this.observers.push(W);return function(){var z=B.observers[B.observers.length-1];B.observers[W.idx]=z;z.idx=W.idx;B.observers.pop()}};
_.p.update=function(W){this.value=W(this.value);this.notify()};
_.p.mutate=function(W){W(this.value);this.notify()};
_.p.set=function(W){this.value=W;this.notify()};
_.p.notify=function(){for(var W=_.A(this.observers),B=W.next();!B.done;B=W.next()){B=B.value;try{B(this.value)}catch(z){}}};var Jhk,Ts7,wHu;_.IB=function(W,B,z,G,Y,d,E){E=E===void 0?[]:E;this.buildCommandPayload=W;this.navigate=B;this.handleServiceRequest=z;this.sendAction=G;this.JSC$12615_screenManager=Y;this.commandResolverMap=d;this.autoLogResolverAllowlist=E;this.pendingCommands=new Set;this.isTracingEnabled=!1;Ts7(this)};
Jhk=function(W,B,z){var G=BxQ,Y=zVR,d=_.SK(),E=vRF;z=z===void 0?[]:z;_.IB.instance=new _.IB(W,B,G,Y,d,E,z)};
Ts7=function(W){if(!W.isTracingEnabled&&BET("command")){var B=W.resolveCommand;W.resolveCommand=function(z,G){a:{for(Y in z)if(Object.prototype.hasOwnProperty.call(z,Y)){var Y={commandType:Y};break a}Y={}}return GaQ("command",Y,B.bind(this,z,G))};
W.isTracingEnabled=!0}};
wHu=function(W,B,z){if(!W.commandResolverMap)return!1;var G=i62(B,W.commandResolverMap);return G?((W.autoLogResolverAllowlist.some(function(Y){return!!_.k(B,Y)})||(z==null?0:z.forceClickLogging))&&ce6(W,B,z),G instanceof Promise?G.then(function(Y){Y.resolve(B,z)}):G.resolve(B,z),!0):!1};
_.IB.prototype.resolveCommand=function(W,B){var z=this,G=VhR(W);if(wHu(this,W,B))return!0;if(G)return Je9(this,W,B);if(!this.buildCommandPayload)return dm2(W,"Unhandled command by buildCommandPayload"),!1;var Y=this.buildCommandPayload(W,B);if(B==null?0:B.commandController)Y.commandController=B.commandController;if(Y.type===0){if(!this.navigate)return ptt(W,"navigate"),!1;if(!gR6(Y.command))return dm2(W,"Page requests need to specify a url"),!1;_.r("logging_avoid_blocking_during_navigation")&&_.wAR().transition("application_navigating");
W=this.navigate(Y)||[];PfM(W).then(function(){z.pendingCommands.delete(Y.command)});
return!0}if(Y.type===1){if(!this.handleServiceRequest)return ptt(W,"handleServiceRequest"),!1;(B==null?0:B.forceClickLogging)&&ce6(this,Y.command,B);W=this.handleServiceRequest(Y);PfM(W).then(function(){z.pendingCommands.delete(Y.command)});
return!0}if(Y.type===2){if(!this.sendAction)return ptt(W,"sendAction"),!1;ce6(this,Y.command,B);this.sendAction(Y);return!0}return!1};
var ce6=function(W,B,z){if((z==null||!z.disableClickTracking)&&W.JSC$12615_screenManager)if(B.clickTrackingParams&&_.r("log_click_with_layer_from_element_in_command_handler")){var G;z=z==null?void 0:(G=z.form)==null?void 0:G.element;W.JSC$12615_screenManager.clickCommand(B,null,z&&z.getScreenLayer&&z.getScreenLayer())}else B.clickTrackingParams?W.JSC$12615_screenManager.clickCommand(B):!_.r("disable_clicked_visual_element_in_command_handler")&&(z==null?0:z.clickedVisualElement)&&_.mx(W.JSC$12615_screenManager,
z.clickedVisualElement)},VhR=function(W){var B=!!_.k(W,_.tr),z;
W=((z=_.k(W,_.P0))==null?void 0:z.signal)==="CLIENT_SIGNAL";return B||W},Je9=function(W,B,z){var G=_.k(B,_.tr);
if(G)var Y=(G==null?void 0:G.commands)||[];else{var d;if(((d=_.k(B,_.P0))==null?void 0:d.signal)==="CLIENT_SIGNAL"){var E;Y=((E=_.k(B,_.P0))==null?void 0:E.actions)||[]}}if(Y){B=_.A(Y);for(Y=B.next();!Y.done;Y=B.next()){Y=Y.value;try{W.resolveCommand(Y,z)}catch(v){v instanceof Error&&_.jy(v)}}return!0}dm2(B,"Could not handle the meta command");return!1},gR6=function(W){var B;
return!((B=_.k(W==null?void 0:W.commandMetadata,_.Z4))==null||!B.url)};var yP=function(){hw.apply(this,arguments)};
_.C(yP,hw);yP.prototype.validate=function(W){var B,z;return!this.hasRun&&!!((B=W.data.response)==null?0:(z=B.onResponseReceivedEndpoints)==null?0:z.length)};
yP.prototype.handle=function(W){var B=_.IB.instance;W=_.A(W.data.response.onResponseReceivedEndpoints);for(var z=W.next();!z.done;z=W.next())B.resolveCommand(z.value)};var thD,sW6,PMd;
thD=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=_.gV();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.qG=function(){sW6||(sW6=new thD);return sW6};
PMd=function(){var W=_.qG();W.miniplayerButtonActivation=!1;W.userActivation=!1;W.playlistWatchPageActivation=!1;W.productDetailsPageActivation=!1;W.miniAppPageActivation=!1;W.playablesDestPageActivation=!1;W.lockupActivation=!1;W.showMiniplayerCommandActivation=!1;W.playlistSuggestionsShelfActivation=!1;W.mediaSessionPipActivation=!1;W.watchPipActivation=!1;W.watchWhileActivation=!1;W.shortsPipActivation=!1};
_.ZYu=function(){var W=_.qG(),B=W.mediaSessionPipActivation,z=W.watchPipActivation,G=W.watchWhileActivation,Y=W.playlistWatchPageActivation,d=W.lockupActivation,E=W.showMiniplayerCommandActivation,v=W.navigatingAwayFromWatchDeletedVideo,c=W.shortsPipActivation,J=W.playlistSuggestionsShelfActivation,g=W.productDetailsPageActivation,t=W.miniAppPageActivation,P=W.playablesDestPageActivation;return!W.miniplayerButtonActivation&&!Y&&!J&&!g&&!t&&!P&&!d&&!E&&!B&&!z&&!G&&!c||v};var wv2;_.nS=_.dc("FEwhat_to_watch","/",3854);_.VG2=_.dc("FEdownloads","/feed/downloads",42352);wv2=_.dc("FEmusic_offline","browse/FEmusic_offline",42352);var GR=function(W,B){B=B===void 0?[]:B;var z=z===void 0?[]:z;B=Hax.apply(null,[Fa8.apply(null,_.u7(B))].concat(_.u7(z)));this.store=fkX(W,void 0,B)};
GR.prototype.getState=function(){return this.store.getState()};
GR.prototype.dispatch=function(W){return this.store.dispatch(W)};
GR.prototype.subscribe=function(W){return this.store.subscribe(W)};
GR.prototype.replaceReducer=function(W){return this.store.replaceReducer(W)};
GR.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.NG=function(W,B,z){var G=B(W.getState());return W.subscribe(function(){var Y=B(W.getState());if(Y!==G){var d=G;G=Y;z(Y,d)}})};var RgQ;_.bj=function(W,B,z){return _.Tl({type:"REPLACE_ENTITY",payload:{entityPayload:z,entityType:W,key:B}})};
RgQ=function(W){return _.Tl({type:"REPLACE_ENTITIES",payload:W})};
_.ue=function(W,B,z,G){return _.Tl({type:"UPDATE_ENTITY",payload:{entityPayload:z,entityType:W,key:B,mergeOption:G}})};var rLX=function(W){var B=this;W=W===void 0?[]:W;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;W.forEach(function(z){B.append(z)})};
_.p=rLX.prototype;_.p.getLength=function(){return this.totalLength};
_.p.append=function(W){var B=this.arrays.length===0?!1:(B=this.arrays[this.arrays.length-1])&&B.buffer===W.buffer&&B.byteOffset+B.length===W.byteOffset;B?(B=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(B.buffer,B.byteOffset,B.length+W.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(W);this.totalLength+=W.length};
_.p.split=function(W){for(var B=new rLX,z=new rLX,G=_.A(this.arrays),Y=G.next();!Y.done;Y=G.next())Y=Y.value,W>=Y.length?(B.append(Y),W-=Y.length):W?(B.append(new Uint8Array(Y.buffer,Y.byteOffset,W)),z.append(new Uint8Array(Y.buffer,Y.byteOffset+W,Y.length-W)),W=0):z.append(Y);return{headView:B,tailView:z}};
_.p.extract=function(W,B){return this.split(W).tailView.split(B).headView};
_.p.isFocused=function(W){return W>=this.arrayPos&&W<this.arrayPos+this.arrays[this.arrayIdx].length};
_.p.focus=function(W){if(!this.isFocused(W))for(W<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=W&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var re4=function(W,B){W.focus(B);return W.arrays[W.arrayIdx][B-W.arrayPos]};(function(){var W=function(G){return new Uint8Array(G)},B=function(G){for(var Y=new Uint8Array(G.length),d=0;d<G.length;d++)Y[d]=G[d];
return Y},z=new Uint8Array([1]);
return z.length===1&&z[0]===1?W:B})();
var JLX=Array(1024),V90=window.TextDecoder?new TextDecoder:void 0,t92=window.TextEncoder?new TextEncoder:void 0;var Z6R=function(W){this.arrayView=W;this.pos=0;this.pendingTagAndType=-1},v3=function(W){var B=re4(W.arrayView,W.pos);
++W.pos;if(B<128)return B;for(var z=B&127,G=1;B>=128;)B=re4(W.arrayView,W.pos),++W.pos,G*=128,z+=(B&127)*G;return z},ka0=function(W,B){var z=W.pendingTagAndType;
for(W.pendingTagAndType=-1;W.pos+1<=W.arrayView.totalLength;){z<0&&(z=v3(W));var G=z>>3,Y=z&7;if(G===B)return!0;if(G>B){W.pendingTagAndType=z;break}z=-1;switch(Y){case 0:v3(W);break;case 1:W.pos+=8;break;case 2:G=v3(W);W.pos+=G;break;case 5:W.pos+=4}}return!1};var CJ0=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=PJ8(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},tq=function(W,B){B=W.pos+B;
if(!(W.buf.length>=B)){for(var z=W.buf.length*2;z<B;)z*=2;W.buf=PJ8(z,W.wasm,W.buf.subarray(0,W.pos));W.view=new DataView(W.buf.buffer,W.buf.byteOffset,W.buf.byteLength)}},wc=function(W,B){if(B>268435455){tq(W,4);
for(var z=B&1073741823,G=0;G<4;G++)W.view.setUint8(W.pos,z&127|128),z>>=7,W.pos+=1;B=Math.floor(B/268435456)}for(tq(W,4);B>127;)W.view.setUint8(W.pos,B&127|128),B>>=7,W.pos+=1;W.view.setUint8(W.pos,B);W.pos+=1};for(var ILR={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},lL2={},kXQ=_.A(Object.entries(ILR)),lSM=kXQ.next();!lSM.done;lSM=kXQ.next()){var CMR=_.A(lSM.value),ISM=CMR.next().value,oR7=CMR.next().value,h4d=ISM,HYR=oR7;HYR&&(lL2[HYR]=h4d)};var hgr=function(W,B){W=W===void 0?{}:W;switch(B.type){case "ENTITY_LOADED":return B.payload.reduce(function(G,Y){var d,E=(d=Y.options)==null?void 0:d.persistenceOption;if(E&&E!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&E!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return G;if(!Y.entityKey)return _.jy(Error("Ff")),G;if(Y.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Y.payload)return Y=new _.oX("REPLACE entity mutation is missing a payload",{entityKey:Y.entityKey}),_.jy(Y),G;var v=(0,_.mP.getAnyKey)(Y.payload);
return FGx(G,v,Y.entityKey,Y.payload[v])}if(Y.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Y=Y.entityKey;try{var c=_.c3(Y).entityType;v=FGx(G,c,Y);break a}catch(t){if(t instanceof Error){Y=new _.oX("Failed to deserialize entity key",{entityKey:Y,originalMessage:t.message});_.jy(Y);v=G;break a}throw t;}v=void 0}return v}if(Y.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Y.payload)return Y=new _.oX("UPDATE entity mutation is missing a payload",{entityKey:Y.entityKey}),_.jy(Y),G;v=(0,_.mP.getAnyKey)(Y.payload);
var J,g;return Sz8(G,v,Y.entityKey,Y.payload[v],(J=Y.fieldMask)==null?void 0:(g=J.mergeOptions)==null?void 0:g.repeatedFieldsMergeOption)}return G},W);
case "REPLACE_ENTITY":var z=B.payload;return FGx(W,z.entityType,z.key,z.entityPayload);case "REPLACE_ENTITIES":return Object.keys(B.payload).reduce(function(G,Y){var d=B.payload[Y];return Object.keys(d).reduce(function(E,v){return FGx(E,Y,v,d[v])},G)},W);
case "UPDATE_ENTITY":return z=B.payload,Sz8(W,z.entityType,z.key,z.entityPayload,z.mergeOption);default:return W}};var b6y;var FJF=!1,$3,LS,Up,MG,aH,SiH=function(W){_.bA.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!FJF){var B,z=new Uint8Array(256),G=new Uint8Array(256);var Y=1;for(B=0;B<256;B++)z[Y]=B,G[B]=Y,Y^=Y<<1^(Y>>7&&283);$3=new Uint8Array(256);LS=Zn(256);Up=Zn(256);MG=Zn(256);aH=Zn(256);for(var d=0;d<256;d++){Y=d?G[255^z[d]]:0;Y^=Y<<1^Y<<2^Y<<3^Y<<4;Y=Y&255^Y>>>8^99;$3[d]=Y;B=Y<<1^(Y>>7&&283);var E=B^Y;LS[d]=B<<24|Y<<16|Y<<8|E;Up[d]=E<<24|LS[d]>>>8;MG[d]=Y<<24|Up[d]>>>
8;aH[d]=Y<<24|MG[d]>>>8}FJF=!0}Y=Zn(44);for(z=0;z<4;z++)Y[z]=W[4*z]<<24|W[4*z+1]<<16|W[4*z+2]<<8|W[4*z+3];for(G=1;z<44;z++)W=Y[z-1],z%4||(W=($3[W>>16&255]^G)<<24|$3[W>>8&255]<<16|$3[W&255]<<8|$3[W>>>24],G=G<<1^(G>>7&&283)),Y[z]=Y[z-4]^W;this.key=Y};
_.C(SiH,_.bA);
SiH.prototype.encrypt=function(W){var B=W.length;W=new Uint8Array(W.buffer.slice(W.byteOffset,W.byteOffset+B));for(var z=this.cipherBlock,G=0;G<B&&this.blockOffset<16;)W[G++]^=z[this.blockOffset++];for(var Y=B-(B-G)%16;G<Y;)bYU(this),W[G++]^=z[0],W[G++]^=z[1],W[G++]^=z[2],W[G++]^=z[3],W[G++]^=z[4],W[G++]^=z[5],W[G++]^=z[6],W[G++]^=z[7],W[G++]^=z[8],W[G++]^=z[9],W[G++]^=z[10],W[G++]^=z[11],W[G++]^=z[12],W[G++]^=z[13],W[G++]^=z[14],W[G++]^=z[15];if(G<B)for(bYU(this),this.blockOffset=0;G<B;)W[G++]^=
z[this.blockOffset++];return W};
var bYU=function(W){for(var B=W.key,z=W.counter[0]^B[0],G=W.counter[1]^B[1],Y=W.counter[2]^B[2],d=W.counter[3]^B[3],E=3;E>=0&&!(W.counter[E]=-~W.counter[E]);E--);for(var v,c,J=4;J<40;)E=LS[z>>>24]^Up[G>>16&255]^MG[Y>>8&255]^aH[d&255]^B[J++],v=LS[G>>>24]^Up[Y>>16&255]^MG[d>>8&255]^aH[z&255]^B[J++],c=LS[Y>>>24]^Up[d>>16&255]^MG[z>>8&255]^aH[G&255]^B[J++],d=LS[d>>>24]^Up[z>>16&255]^MG[G>>8&255]^aH[Y&255]^B[J++],z=E,G=v,Y=c;W=W.cipherBlock;E=B[40];W[0]=$3[z>>>24]^E>>>24;W[1]=$3[G>>16&255]^E>>16&255;W[2]=
$3[Y>>8&255]^E>>8&255;W[3]=$3[d&255]^E&255;E=B[41];W[4]=$3[G>>>24]^E>>>24;W[5]=$3[Y>>16&255]^E>>16&255;W[6]=$3[d>>8&255]^E>>8&255;W[7]=$3[z&255]^E&255;E=B[42];W[8]=$3[Y>>>24]^E>>>24;W[9]=$3[d>>16&255]^E>>16&255;W[10]=$3[z>>8&255]^E>>8&255;W[11]=$3[G&255]^E&255;E=B[43];W[12]=$3[d>>>24]^E>>>24;W[13]=$3[z>>16&255]^E>>16&255;W[14]=$3[G>>8&255]^E>>8&255;W[15]=$3[Y&255]^E&255};var jW4=!1;(function(){var W=function(G){return new Uint8Array(G)},B=function(G){for(var Y=new Uint8Array(G.length),d=0;d<G.length;d++)Y[d]=G[d];
return Y},z=new Uint8Array([1]);
return z.length===1&&z[0]===1?W:B})();
var RH;var XHF=function(W){a:{if(!jW4&&!RX){if(RH){var B=RH;break a}RH=(B=window.crypto)==null?void 0:B.subtle;var z,G,Y;if(((z=RH)==null?0:z.importKey)&&((G=RH)==null?0:G.sign)&&((Y=RH)==null?0:Y.encrypt)){B=RH;break a}RH=void 0}B=void 0}B&&(this.nativeEncryptor=new fS9(W,B));this.encryptorPolyfill=new OYd(W)};
XHF.prototype.encrypt=function(W,B){var z=this,G;return _.T(function(Y){switch(Y.nextAddress){case 1:if(!z.nativeEncryptor){Y.jumpTo(2);break}_.kA(Y,3);return Y.yield(z.nativeEncryptor.encrypt(W,B),5);case 5:return Y.return(Y.yieldResult);case 3:G=_.h6(Y),_.Oc(G),jW4=!0,z.nativeEncryptor=void 0;case 2:return Y.return(z.encryptorPolyfill.encrypt(W,B))}})};
XHF.prototype.decrypt=function(W,B){return this.encrypt(W,B)};
var fS9=function(W,B){this.JSC$12688_aesKey=W;this.subtleCrypto=B};
fS9.prototype.encrypt=function(W,B){var z=this,G;return _.T(function(Y){if(Y.nextAddress==1)return _.kA(Y,2),Y.yield(KJR(z,W,B),4);if(Y.nextAddress!=2)return Y.return(Y.yieldResult);G=_.h6(Y);_.Oc(G);jW4=!0;throw G;})};
var KJR=function(W,B,z){var G,Y;return _.T(function(d){switch(d.nextAddress){case 1:if(W.cryptoKey){d.jumpTo(2);break}return d.yield(W.subtleCrypto.importKey("raw",W.JSC$12688_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:W.cryptoKey=d.yieldResult;case 2:return G={name:"AES-CTR",counter:z,length:128},d.yield(W.subtleCrypto.encrypt(G,W.cryptoKey,B),4);case 4:return Y=d.yieldResult,d.return(new Uint8Array(Y))}})},OYd=function(W){this.JSC$12691_aesKey=W};
OYd.prototype.encrypt=function(W,B){this.encryptor||(this.encryptor=new SiH(this.JSC$12691_aesKey));for(var z=this.encryptor,G=0;G<4;G++)z.counter[G]=B[G*4]<<24|B[G*4+1]<<16|B[G*4+2]<<8|B[G*4+3];z.blockOffset=16;return this.encryptor.encrypt(W)};
OYd.prototype.decrypt=function(W,B){return this.encrypt(W,B)};var u77={},O6x=GU("yt-idb-pref-storage",{objectStores:(u77.prefs={addedAtVersion:1},u77),shared:!1,upgrade:function(W,B){B(1)&&D_(xb(W,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Wz=function(W){this.token=W};
_.Wz.getInstance=function(){return _.T(function(W){return W.return(new Promise(function(B){_.zU().then(function(z){z?(_.Wz.instance||(_.Wz.instance=new _.Wz(z)),B(_.Wz.instance)):B(void 0)})}))})};
_.Wz.prototype.get=function(W){var B=this,z,G,Y;return _.T(function(d){if(d.nextAddress==1)return d.yield(XtQ(B.token),2);if(d.nextAddress!=3)return z=d.yieldResult,d.yield(z.get("prefs",W),3);G=d.yieldResult;if(!G)return d.return();Y=(0,_.Yb)();return G.expirationTimestampMs<=Y?d.return():d.return(G.value)})};
_.Wz.prototype.set=function(W,B,z){z=z===void 0?31536E3:z;var G=this,Y,d,E;return _.T(function(v){if(v.nextAddress==1)return Y=(0,_.Yb)(),d={key:W,value:B,expirationTimestampMs:Y+z*1E3},v.yield(XtQ(G.token),2);E=v.yieldResult;return v.yield(E.put("prefs",d),0)})};
_.Wz.prototype.remove=function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(XtQ(B.token),2);z=G.yieldResult;return G.yield(z.delete("prefs",W),0)})};var Bz={},e4F=(Bz.INVALID_ENCODER_VERSION="Invalid encoder version",Bz.KEY_CREATION_FAILED="Failed to create encoder key",Bz.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Bz.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Bz.WRONG_DATA_TYPE="Encoder cannot process the data type",Bz),rc=function(W,B){B=B===void 0?{}:B;_.oX.call(this,e4F[W],Object.assign({},{name:"PESEncoderError",type:W},B));this.type=W;this.level="WARNING";Object.setPrototypeOf(this,rc.prototype)};
_.C(rc,_.oX);var z1=function(){};
z1.prototype.encode=function(W,B){try{return this.encodeImpl(W,B)}catch(z){mmQ(z,u3x)}};
z1.prototype.decode=function(W,B){try{return this.decodeImpl(W,B)}catch(z){mmQ(z,egv)}};
var m2T=function(W,B,z){var G;return _.T(function(Y){if(Y.nextAddress==1)return _.kA(Y,2),Y.yield(W.decodeAsyncImpl(B,z),4);if(Y.nextAddress!=2)return Y.return(Y.yieldResult);G=_.h6(Y);mmQ(G,egv);_.HG(Y)})};
z1.prototype.decodeAsyncImpl=function(W,B){return Promise.resolve(this.decodeImpl(W,B))};var G1=function(W,B){this.aesEncryptor=W;this.aesEncryptorAsync=B};
_.C(G1,z1);G1.prototype.encodeImpl=function(W,B){B=xmt(B);W=(new TextEncoder).encode(JSON.stringify(W));return this.aesEncryptor.encrypt(W,B)};
G1.prototype.decodeImpl=function(W,B){if(!(W instanceof Uint8Array))throw KGu(1);var z=new TextDecoder;B=xmt(B);W=this.aesEncryptor.decrypt(W,B);return JSON.parse(z.decode(W))};
G1.prototype.decodeAsyncImpl=function(W,B){var z=this,G,Y,d;return _.T(function(E){if(E.nextAddress==1){if(!(W instanceof Uint8Array))throw KGu(1);G=new TextDecoder;Y=xmt(B);return E.yield(z.aesEncryptorAsync.decrypt(W,Y),2)}d=E.yieldResult;return E.return(JSON.parse(G.decode(d)))})};var DmD={accountLinkStatusEntity:fqF,booleanEntity:TR7,buttonEntity:asQ,captionTrack:XtR,channelHandle:mI6,chipEntity:hPd,commerceAcquisitionClientPayloadEntity:kzM,commerceCartListEntity:lVF,contextNoteFeedEntityPayload:RWU,contextNoteUserRatingEntityPayload:WLU,continuationTokenEntity:t3u,downloadQualityPickerEntity:pdF,downloadsPageRefreshTokenEntity:irR,downloadsPageViewConfigurationEntity:o0M,downloadStatusEntity:A7R,dismissState:HLF,sfvAudioItemCurrentlyPlayingEntity:Vd7,emojiFountainDataEntity:LmD,
emojiCustomizationSetEntity:$8R,fakeChannel:w14,fakePlaylist:V0R,fakePlaylistEntryCollection:J1Q,fakeVideo:t04,fakeVideoDescription:s1U,featuredProductsEntity:N16,flowStateEntity:F7T,iconBadgeEntity:CUM,interstitialInteractionStateEntity:UrF,likeButtonAnimationEntity:hxF,liveChatPollStateEntity:YWu,dataFreshnessEntity:N04,liveViewerLeaderboardChatEntryPointStateEntity:UmR,liveViewerLeaderboardPointsEntity:M96,liveReactionsDataEntity:U8Q,logoEntity:$rD,macroMarkerEntity:Hrd,mainDownloadsLibraryEntity:E0H,
mainDownloadsListEntity:T1Q,mainPlaylistDownloadStateEntity:c7U,mainPlaylistEntity:s9u,mainPlaylistVideoEntity:PoH,mainVideoDownloadStateEntity:wd9,mainVideoEntity:lMR,markersEngagementPanelSyncEntity:Ffu,markersVisibilityOverrideEntity:S4u,musicAlbumReleaseDetail:YzT,musicAlbumReleaseDownloadMetadataEntity:Rxd,musicAlbumRelease:GaR,musicAlbumReleaseUserDetail:dmH,musicArtistDetail:ALu,musicArtist:ptM,musicArtistUserDetail:i6H,musicDownloadsLibraryEntity:WGM,musicLibraryEdit:ENR,musicLibraryStatusEntity:TEM,
musicPlaylist:vN7,musicPlaylistDownloadMetadataEntity:BE6,musicShare:wt6,musicTrackDetail:JLF,musicTrackDownloadMetadataEntity:zgM,musicTrack:V9M,musicTrackUserDetail:gNU,offlineOrchestrationActionWrapperEntity:KG7,offlineVideoPolicy:u3R,offlineVideoStreams:eg9,offlineabilityEntity:V3d,orchestrationWebSamplingEntity:J7T,pageHeaderEntity:ePT,pdpStateEntity:IVF,pinnedProductEntity:$pR,playbackData:mmR,playerStateEntity:brD,quantityIncrementerEntity:o1d,refresh:xmM,saveToPlaylistListEntity:XO6,selectedChipIndexEntityPayload:j9u,
settingEntity:G14,stringEntity:vL4,suggestedFeedbackChipStateEntity:fM9,transfer:Dmu,trendingOfferEntity:LfR,videoDownloadContextEntity:QZH,videoOverviewAsyncDataEntity:UKR,videoPlaybackPositionEntity:BN6,votingEntity:QTH,ytMainChannelEntity:CoM,youchatPendingResponseEntity:OrR,ytMainDownloadedVideoEntity:g0H,ytMainVideoEntity:IMM};var x2F,QWD,o_,Umx,M9T,nR7,$2M,Ns6,qiR;x2F=function(W,B){this.JSC$12710_wrapped=W;this.JSC$12710_encoderRegistry=B;this.changedKeys={}};
QWD=function(W,B){return D2Q(W.JSC$12710_encoderRegistry,B.version).decode(B.data,B.key)};
_.yeM=function(W,B,z){return W.JSC$12710_wrapped.objectStore("EntityStore").get(B).then(function(G){if(G){if(z&&G.entityType!==z)throw Error("Gf");return QWD(W,G)}})};
o_=function(W,B,z){return z?(z=z.map(function(G){return _.yeM(W,G,B)}),Do.all(z)):W.JSC$12710_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(B)).then(function(G){return G.map(function(Y){return QWD(W,Y)})})};
_.LGv=function(W,B,z){var G=oNR(B),Y=D2Q(W.JSC$12710_encoderRegistry,1),d=Object.assign({},B);return W.JSC$12710_wrapped.objectStore("EntityStore").get(G).then(function(E){if(E){if(E.entityType!==z)throw Error("Gf");d.entityMetadata||(E=QWD(W,E),d.entityMetadata=E.entityMetadata)}}).then(function(){var E={key:G,
entityType:z,data:Y.encode(d,G),version:1};return Do.all([W.JSC$12710_wrapped.objectStore("EntityStore").put(E),qiR(W,d,z)])}).then(function(){nR7(W,G,z);
return G})};
Umx=function(W,B){var z=_.c3(B).entityType;return Do.all([W.JSC$12710_wrapped.objectStore("EntityStore").delete(B),Ns6(W,B)]).then(function(){nR7(W,B,z)})};
M9T=function(W,B,z,G){var Y=D2Q(W.JSC$12710_encoderRegistry,1);return _.yeM(W,B,G).then(function(d){if(d){d=wtT(d,z);var E={key:B,entityType:G,data:Y.encode(d,B),version:1};return Do.all([W.JSC$12710_wrapped.objectStore("EntityStore").put(E),qiR(W,d,G)])}}).then(function(){nR7(W,B,G);
return B})};
nR7=function(W,B,z){var G=W.changedKeys[z];G||(G=new Set,W.changedKeys[z]=G);G.add(B)};
$2M=function(W,B,z){var G=oNR(B);z=QZ2(z);if(!z)return Do.resolve([]);z=new z(B);W=W.JSC$12710_wrapped.objectStore("EntityAssociationStore");B=[];z=_.A(z.getAssociations());for(var Y=z.next();!Y.done;Y=z.next())B.push(W.put({parentEntityKey:G,childEntityKey:Y.value}));return Do.all(B).then(function(d){return d.map(function(E){return E[1]})})};
Ns6=function(W,B){return W.JSC$12710_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(B))};
qiR=function(W,B,z){var G=oNR(B);return Ns6(W,G).then(function(){return $2M(W,B,z)})};var LJD=function(){};
_.C(LJD,z1);LJD.prototype.encodeImpl=function(W){return W};
LJD.prototype.decodeImpl=function(W){if(W instanceof Uint8Array)throw KGu(0);return W};var nNt=function(){this.cacheMap={};this.cacheMap[0]=new LJD;if(!_.r("aes_pes_encoder_killswitch")){var W=this.cacheMap;try{var B=_.C4();var z=xmt(B);var G=new G1(new OYd(z),new XHF(z))}catch(Y){throw W=Y instanceof Error?new rc("KEY_CREATION_FAILED",{originalMessage:Y.message}):new rc("KEY_CREATION_FAILED"),_.jy(W),W;}W[1]=G}},D2Q=function(W,B){B=B===void 0?0:B;
W=W.cacheMap[B];if(!W)throw B=new rc("INVALID_ENCODER_VERSION",{encoderVersion:B}),_.jy(B),B;return W};var ld=function(W,B){_.bA.call(this);this.token=W;this.JSC$12724_encoderRegistry=B;this.observers=[];W=new _.Yt.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.C4());W.onmessage=this.handleMessage.bind(this);this.channel=W};
_.C(ld,_.bA);_.I_=function(W,B,z){var G,Y,d,E;return _.T(function(v){if(v.nextAddress==1)return v.yield(fL8(W.token),2);if(v.nextAddress!=3)return G=v.yieldResult,v.yield(_.UA(G,["EntityStore","EntityAssociationStore"],B,function(c){Y=new x2F(c,W.JSC$12724_encoderRegistry);return z(Y)}),3);
d=v.yieldResult;Y&&(E=Y.changedKeys,Object.keys(E).length>0&&(W.channel.postMessage(E),U2T(W,E)));return v.return(d)})};
ld.prototype.observe=function(W){var B=this;this.observers.push(W);return function(){var z=B.observers.indexOf(W);z>=0&&B.observers.splice(z,1)}};
var Cc2=function(W){var B;return _.T(function(z){if(z.nextAddress==1)return z.yield(_.I_(W,{mode:"readonly",enableRetries:!0},function(G){return G.JSC$12710_wrapped.objectStore("EntityStore").getAll()}),2);
B=z.yieldResult;return z.return(Promise.all(B.filter(function(G){return!!G}).map(function(G){var Y,d;
return _.T(function(E){if(E.nextAddress==1){Y=G.key;d=G.entityType;var v=E.yield;var c=m2T(D2Q(W.JSC$12724_encoderRegistry,G.version),G.data,G.key);return v.call(E,c,2)}return E.return({key:Y,entityType:d,data:E.yieldResult})})})))})};
ld.prototype.handleMessage=function(W){U2T(this,W.data)};
var U2T=function(W,B){W=_.A(W.observers);for(var z=W.next();!z.done;z=W.next())z=z.value,z(B)};
ld.prototype.disposeInternal=function(){this.channel.close()};
var yLv;var YU,aSD,g3Q;YU={};_.Mhu=(YU.mainVideoEntity="mainVideoEntityActionMetadata",YU.mainPlaylistEntity="mainPlaylistEntityActionMetadata",YU.musicTrack="musicTrackEntityActionMetadata",YU.musicPlaylist="musicPlaylistEntityActionMetadata",YU);aSD=new _.t1("DOWNLOADS_ENTITY_TYPE_MAP");_.Og=_.sg("","downloadsPageViewConfigurationEntity");g3Q=_.sg("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.UGD=_.sg("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.sg("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.sg("SMART_DOWNLOADS_ENABLED","settingEntity");_.sg("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var zNT=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var E3u=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.R4T={isLeaderTab:!0};var uh2={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var dW=window,$O=dW.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",Ktx=dW.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||LA,Qq8=dW.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||kl,LRM=dW.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||$H7,nBu=dW.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||pJ6,rR0=dW.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||cVU;var Xz2;R_({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 zPQ=y5u(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(W){return W}}}),Bgk=y5u(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(W){return W}}}),$1D=new Map;var Y6t=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],R7Q;var WnF=function(W){return _.Tl({type:"SET_EPHEMERAL_ACTION",payload:W})};_.Bv7={ephemeralAction:null};var zbU=function(W){return _.Tl({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:W})};_.GJT={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var pNu={sharedUi:function(W,B){W=W===void 0?_.GJT:W;switch(B.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},W,{animatedThumbnailEnabled:B.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},W,{inlinePreviewEnabled:B.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},W,{currentPageType:B.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},W,{currentPageSubType:B.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
W,{persistentPanelVisible:B.payload});default:return W}},
a11y:Z2({ephemeralAction:function(W,B){W=W===void 0?_.Bv7.ephemeralAction:W;switch(B.type){case "SET_EPHEMERAL_ACTION":return B.payload;default:return W}}}),
entities:H6u};_.T0Q={playlistId:"",inviteLinkURL:""};_.YGM={continuationCommand:{}};var asy=Z2({continuationCommand:function(W,B){W=W===void 0?_.YGM.continuationCommand:W;switch(B.type){case "SET_CONTINUATION_COMMAND":return B.payload.continuationCommand;default:return W}}});_.cux={currentFormId:"",commandsMap:{}};var RP0=Z2({isLeaderTab:function(W,B){W=W===void 0?_.R4T.isLeaderTab:W;switch(B.type){case "SET_IS_LEADER_TAB":var z,G;return(G=B==null?void 0:(z=B.payload)==null?void 0:z.isLeaderTab)!=null?G:W;default:return W}}});var plT;_.dUU=function(W){return _.Tl({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:W}})};
plT=function(W){return _.Tl({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:W}})};_.pI={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var dKT=Z2({isDesktopSmallWidth:function(W,B){W=W===void 0?_.pI.isDesktopSmallWidth:W;switch(B.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return B.payload.isDesktopSmallWidth;default:return W}},
isShortsActive:function(W,B){W=W===void 0?_.pI.isShortsActive:W;switch(B.type){case "SET_IS_SHORTS_ACTIVE":return B.payload.isShortsActive;default:return W}},
isWatchWhileMode:function(W,B){W=W===void 0?_.pI.isWatchWhileMode:W;switch(B.type){case "SET_IS_WATCH_WHILE_MODE":return B.payload.isWatchWhileMode;default:return W}},
playerState:function(W,B){W=W===void 0?_.pI.playerState:W;switch(B.type){case "SET_PLAYER_STATE":return B.payload.playerState;default:return W}},
isFullscreen:function(W,B){W=W===void 0?_.pI.isFullscreen:W;switch(B.type){case "SET_IS_FULLSCREEN":return B.payload.isFullscreen;default:return W}},
isSmallScreenSqueezeback:function(W,B){W=W===void 0?_.pI.isSmallScreenSqueezeback:W;switch(B.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return B.payload.isSmallScreenSqueezeback;default:return W}},
isShortsPipActive:function(W,B){W=W===void 0?_.pI.isShortsPipActive:W;switch(B.type){case "SET_IS_SHORTS_PIP_ACTIVE":return B.payload.isShortsPipActive;default:return W}},
isPlaybackStarted:function(W,B){W=W===void 0?_.pI.isPlaybackStarted:W;switch(B.type){case "SET_IS_PLAYBACK_STARTED":return B.payload.isPlaybackStarted;default:return W}}});_.q6x={currentMode:"canvas-hidden"};var ijD=function(){return function(W){return function(B){var z=W(B);_.c0(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[B],!0);return z}}};var ATQ,toy;ATQ=new _.sl;_.Jg=new _.t1("WATCH_PLAYER_PROMISE_TOKEN");_.id7=new _.sl;_.EDd=new _.t1("SHORTS_PLAYER_PROMISE_TOKEN");toy=new _.t1("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var E1R=function(){return function(W){return function(B){B.type==="ENTITY_LOADED"&&_.dO().resolve(_.Jg).then(function(z){var G;(G=z.dispatchReduxAction)==null||G.call(z,B)});
return W(B)}}};_.TvR={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var Why=Z2({additionalContext:function(W,B){W=W===void 0?_.TvR.additionalContext:W;switch(B.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var z;return(z=B.payload)!=null?z:"";default:return W}},
impersonatedChannelUrl:function(W,B){W=W===void 0?_.TvR.impersonatedChannelUrl:W;switch(B.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var z;return(z=B.payload)!=null?z:"";default:return W}},
selectedVideoIds:function(W,B){W=W===void 0?_.TvR.selectedVideoIds:W;switch(B.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var z={};return Object.assign({},W,(z[B.payload]=!0,z));case "VIDEO_UNSELECTED":return B=B.payload,W=Object.assign({},W),delete W[B],W;default:return W}}});_.vD9={parentClickTrackingParams:""};var BNT=Z2({parentClickTrackingParams:function(W,B){W=W===void 0?_.vD9.parentClickTrackingParams:W;switch(B.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return B.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return W}}});var cTM=function(W){return _.Tl({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:W})};_.wlD={stepStates:{}};var zvt=Z2({stepStates:function(W,B){W=W===void 0?_.wlD.stepStates:W;switch(B.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var z=W,G=B.payload,Y,d,E;W={};B={selectionStates:Object.assign({},(E=(Y=z[G.stepId])==null?void 0:Y.selectionStates)!=null?E:{},(W[G.token]={isSelected:G.isSelected},W)),userQuery:(d=z[G.stepId])==null?void 0:d.userQuery};Y={};return Object.assign({},z,(Y[G.stepId]=B,Y));case "TALK_TO_RECS_UPDATE_USER_QUERY":return Y=W,d=B.payload,
E={selectionStates:Object.assign({},(G=(z=Y[d.stepId])==null?void 0:z.selectionStates)!=null?G:{}),userQuery:{userQuery:d.userQuery,token:d.userQueryToken}},z={},Object.assign({},Y,(z[d.stepId]=E,z));default:return W}}});var VMR,JTR,tMH;VMR=function(W){return _.Tl({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:W})};
JTR=function(W){return _.Tl({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:W})};
_.ST=function(W){return _.Tl({type:"SET_CURRENT_PAGE_TYPE",payload:W})};
_.gDR=function(W){return _.Tl({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:W})};
tMH=function(W){return _.Tl({type:"SET_CHIP_BAR_IS_STICKY",payload:W})};_.N0r={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"};_.saM=function(W){return _.Tl({type:"SET_PLAYER_STATE",payload:{playerState:W}})};_.A5={isWatchActive:!1,isLearningJourneyActive:!1,isTheaterMode:Lm8(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var Gz2=Z2({isTheaterMode:function(W,B){W=W===void 0?Lm8():W;switch(B.type){case "SET_IS_THEATER_MODE":return B.payload.isTheaterMode;default:return W}},
isWatchActive:function(W,B){W=W===void 0?_.A5.isWatchActive:W;switch(B.type){case "SET_IS_WATCH_ACTIVE":return B.payload.isWatchActive;default:return W}},
isLearningJourneyActive:function(W,B){W=W===void 0?_.A5.isLearningJourneyActive:W;switch(B.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return B.payload.isLearningJourneyActive;default:return W}},
isWatchFullscreen:function(W,B){W=W===void 0?_.A5.isWatchFullscreen:W;switch(B.type){case "SET_IS_WATCH_FULLSCREEN":return B.payload.isWatchFullscreen;default:return W}},
isWatchNarrowWidth:function(W,B){W=W===void 0?_.A5.isWatchNarrowWidth:W;switch(B.type){case "SET_IS_WATCH_NARROW_WIDTH":return B.payload.isWatchNarrowWidth;default:return W}},
isWatchRetroMode:function(W,B){W=W===void 0?_.A5.isWatchRetroMode:W;switch(B.type){case "SET_IS_WATCH_RETRO_MODE":return B.payload.isWatchRetroMode;default:return W}},
isLiveChatCollapsed:function(W,B){W=W===void 0?_.A5.isLiveChatCollapsed:W;switch(B.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return B.payload.isLiveChatCollapsed;default:return W}},
openEngagementPanels:function(W,B){W=W===void 0?_.A5.openEngagementPanels:W;var z=[].concat(_.u7(W));switch(B.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return z.push(B.payload.panelToAdd),z;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return z.splice(z.indexOf(B.payload.panelToRemove),1),z;default:return W}},
playerState:function(W,B){W=W===void 0?_.A5.playerState:W;switch(B.type){case "SET_PLAYER_STATE":return B.payload.playerState;default:return W}},
watchScrollTop:function(W,B){W=W===void 0?_.A5.watchScrollTop:W;switch(B.type){case "SET_WATCH_SCROLL_TOP":return B.payload.watchScrollTop;default:return W}},
watchWindowSize:function(W,B){W=W===void 0?_.A5.watchWindowSize:W;switch(B.type){case "SET_WATCH_WINDOW_SIZE":return B.payload.watchWindowSize;default:return W}}});_.Pn9={surveyFeedbackData:{feedbackTokens:[]}};var Ys8=Z2({surveyFeedbackData:function(W,B){W=W===void 0?_.Pn9.surveyFeedbackData:W;switch(B.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return B.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},W,B.payload);default:return W}}});_.U8y={};var v1r=void 0;_.r("web_enable_redux_store_on_demand")||(v1r=TND());var ZdU=function(W,B,z){var G=this;this.listId=W;this.JSC$12867_updateCallback=B;this.isOfflineVideoCallback=z;_.Y_().subscribe(function(){G.handleUpdate()})};
ZdU.prototype.getPlaylistData=function(){var W=_.Y_().getState().entities;if(this.listId&&this.listId!=="PPSV"){var B=o3T(W,this.listId,!0),z=_.sg(this.listId,"mainPlaylistEntity"),G,Y;W=W==null?void 0:(G=W.mainPlaylistEntity)==null?void 0:(Y=G[z])==null?void 0:Y.title;return cPT(B,W,this.listId)}B=_.TPQ(z7Q(W));W=_.TPQ(_.XN(W));W=B.concat(W);return cPT(W)};
ZdU.prototype.getPlaylistId=function(){return this.listId};
ZdU.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12867_updateCallback(this.listId,this.getPlaylistData(),{})};var i1=function(W,B,z,G){G=G===void 0?[]:G;this.JSC$12870_playlistNetworkManager=W;this.listId=B;this.JSC$12870_updateCallback=z;this.videoIds=G;this.pendingUpdates=[];this.currentIndex=0};
i1.prototype.JSC$12870_setCurrentIndex=function(W){this.currentIndex=W};
i1.prototype.setListId=function(W){this.listId=W};
var rTd=function(W,B){W.currentCreateRequest&&W.currentCreateRequest.cancel(B);W.currentUpdateRequest&&W.currentUpdateRequest.cancel(B);W.currentRefreshRequest&&W.currentRefreshRequest.cancel(B)};
i1.prototype.delete=function(){rTd(this,"PROXY DELETED")};
i1.prototype.addVideos=function(W,B,z){var G=this;z!==void 0?this.videoIds.splice.apply(this.videoIds,[z,0].concat(_.u7(W))):this.videoIds.push.apply(this.videoIds,_.u7(W));this.listId||this.currentCreateRequest?(W.forEach(function(Y,d){Y={addedVideoId:Y,action:"ACTION_ADD_VIDEO"};z&&(Y.addedVideoPosition=z+d);G.pendingUpdates.push(Y)}),Er(this)):kJT(this,B.onCreateListCommand)};
var lYH=function(W,B,z,G,Y){SXX(W.videoIds,B,z);B>W.currentIndex&&z<=W.currentIndex?W.JSC$12870_setCurrentIndex(W.currentIndex+1):B===W.currentIndex?W.JSC$12870_setCurrentIndex(z):B<W.currentIndex&&z>=W.currentIndex&&W.JSC$12870_setCurrentIndex(W.currentIndex-1);W.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:G,movedSetVideoIdPredecessor:Y});Er(W)},kJT=function(W,B){rTd(W,"OBSOLETE");
W.currentCreateRequest=CnT(W.JSC$12870_playlistNetworkManager,B,W.videoIds);_.xX(W.currentCreateRequest,function(){W.currentCreateRequest=void 0}).then(function(z){W.setListId(z.playlistId);
W.pendingUpdates.length>0?Er(W):IYM(W)})},Er=function(W){if(W.pendingUpdates.length!==0&&(W.currentRefreshRequest&&W.currentRefreshRequest.cancel("OBSOLETE"),!W.currentUpdateRequest&&!W.currentCreateRequest)){var B=W.pendingUpdates.splice(0,W.pendingUpdates.length);
W.currentUpdateRequest=W.JSC$12870_playlistNetworkManager.updatePlaylist(W.listId,B);_.xX(W.currentUpdateRequest,function(){W.currentUpdateRequest=void 0}).then(function(){W.pendingUpdates.length>0?Er(W):IYM(W)}).thenCatch(function(){W.pendingUpdates.unshift.apply(W.pendingUpdates,_.u7(B))})}},IYM=function(W){W.currentRefreshRequest=_.oD6(W.JSC$12870_playlistNetworkManager,W.listId,W.currentIndex,W.videoIds[W.currentIndex]);
_.xX(W.currentRefreshRequest,function(){W.currentRefreshRequest=void 0}).then(function(B){W.JSC$12870_updateCallback(B.playlistId,B.playlistPanelRenderer,B.autoplayRenderer)})};
i1.prototype.size=function(){return this.videoIds.length};var hbd=function(W,B,z,G){G=G===void 0?[]:G;i1.call(this,W,B,z,G);this.JSC$12870_playlistNetworkManager=W;this.listId=B;this.JSC$12870_updateCallback=z;this.videoIds=G};
_.C(hbd,i1);_.T1=function(W,B,z,G,Y,d,E){Y=Y===void 0?[]:Y;E=E===void 0?Zk:E;i1.call(this,W,B,z,Y);this.JSC$12870_playlistNetworkManager=W;this.listId=B;this.JSC$12870_updateCallback=z;this.onAuthChange=G;this.videoIds=Y;this.storage=d;this.cookieReader=E;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.P2(_.fg,this.checkLoggedInStatusChange.bind(this),1E3)};
_.C(_.T1,i1);_.p=_.T1.prototype;_.p.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.P2(_.fg,this.checkLoggedInStatusChange.bind(this),1E3)};
_.p.JSC$12870_setCurrentIndex=function(W){i1.prototype.JSC$12870_setCurrentIndex.call(this,W);this.store()};
_.p.delete=function(){_.fg.cancelJob(this.queueSapisIdJob);i1.prototype.delete.call(this)};
_.p.setListId=function(W){i1.prototype.setListId.call(this,W);this.store()};
_.p.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var HdR=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],FnQ=["playerResponse","videoDetails"],SG9=["response","currentVideoEndpoint","watchEndpoint","videoId"],bdd=["response","currentVideoEndpoint","watchEndpoint","playlistId"],ja9=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],fYH=["response","contents","twoColumnWatchNextResults","playlist","playlist"],Od9=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
XlF=["response","contents","twoColumnWatchNextResults"];var vz={},tSt=(vz.WEB_UNPLUGGED="^unplugged/",vz.WEB_UNPLUGGED_ONBOARDING="^unplugged/",vz.WEB_UNPLUGGED_OPS="^unplugged/",vz.WEB_UNPLUGGED_PUBLIC="^unplugged/",vz.WEB_CREATOR="^creator/",vz.WEB_KIDS="^kids/",vz.WEB_EXPERIMENTS="^experiments/",vz.WEB_MUSIC="^music/",vz.WEB_REMIX="^music/",vz.WEB_MUSIC_EMBEDDED_PLAYER="^music/",vz.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",vz);var BJu,CnT;BJu=function(W,B){this.networkManager=W;this.innertubeTransportService=B};
CnT=function(W,B,z){if(!_.k(B,_.cO))return _.mR(Error("Kf"));_.k(B,_.cO).videoIds=z;z={create_playlist_title:_.kq("QUEUE",void 0,"Queue")};return JP8(_.BA(W.innertubeTransportService,B,z),wNt)};
_.oD6=function(W,B,z,G){B={videoId:G,playlistId:B,playlistIndex:z};z=_.dD(XDT);return JP8(_.cz(W.innertubeTransportService,B,z),g1v)};
BJu.prototype.updatePlaylist=function(W,B){return JP8(_.BA(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:W,actions:B}}),VS2)};var Kn7=function(W){this.storage=W},uyT;
Kn7.prototype.store=function(W,B){B=B===void 0?0:B;if(this.storage&&W.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",W),this.storage.set("TLPQindex",String(B)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(z){}};
Kn7.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
Kn7.prototype.getPlaylistId=function(){if(!this.storage)return null;var W=null;try{W=this.storage.get("TLPQplaylist")}catch(B){}return W};var rP2=["navigationEndpoint","watchEndpoint","videoId"],Zj2=["nextButtonVideo","watchEndpoint","videoId"];_.ns=new _.t1("NETWORK_TOKEN");_.ij=new _.t1("PAGE_TOKEN");_.wW=new _.t1("PLAYLIST_TOKEN");var ebU;ebU=new _.t1("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.N_=new _.t1("INNERTUBE_TRANSPORT_TOKEN");var mUF,Vh,DUM,QaR,qGR,nDd;mUF=new Set(["ci","cr","carml"]);Vh=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12917_parkedJobs=new Map;this.parkedProcessors=new Map};
_.J5=function(){Vh.instance||(Vh.instance=new Vh);return Vh.instance};
Vh.prototype.onAny=function(W){return _.xUd(this,W,2)};
Vh.prototype.parkOrScheduleJob=function(W,B,z,G,Y){_.gW(this,z)?_.FU().addJob(W,B,G):(Y&&(W=DUM(W),QaR(this,W,B,z,Y)),Y=this.JSC$12917_parkedJobs.get(z),Y||(this.JSC$12917_parkedJobs.set(z,[]),Y=this.JSC$12917_parkedJobs.get(z)),Y.push({job:W,priority:B,delay:G}))};
Vh.prototype.addListener=function(W,B,z){z&&(B=DUM(B),QaR(this,B,0,W,z));z=this.parkedProcessors.get(W);z||(this.parkedProcessors.set(W,[]),z=this.parkedProcessors.get(W));z.push(B)};
Vh.prototype.processSignal=function(W){if(!_.gW(this,W)){this.inProgressSignals.add(W);var B=this.JSC$12917_parkedJobs.get(W);if(B){B=_.A(B);for(var z=B.next();!z.done;z=B.next())z=z.value,_.FU().addJob(z.job,z.priority,z.delay);this.JSC$12917_parkedJobs.delete(W)}if(B=this.parkedProcessors.get(W)){B=_.A(B);for(z=B.next();!z.done;z=B.next())z=z.value,z();this.parkedProcessors.delete(W)}this.signals.push(W);this.inProgressSignals.delete(W)}};
_.gW=function(W,B){return mUF.has(B)||_.md("IS_HOMEPAGE_COLD")||_.md("IS_RESULTS_PAGE_COLD")||_.md("IS_WATCH_PAGE_COLD")?W.signals.indexOf(B)>=0:!0};
DUM=function(W){var B=!1;return function(){B||(B=!0,W())}};
QaR=function(W,B,z,G,Y){if(yTM.has(G))_.FU().addJob(B,z,Y);else{var d=W.compoundSignals.get(G);d&&_.FU().addJob(function(){_.gW(W,G)||(d.isTimeoutConditionSatisfied?_.FU().addJob(B,z):d.timeoutConditionObservers.push(function(){_.FU().addJob(B,z)}))},z,Y)}};
_.xUd=function(W,B,z){if(B.length>1){var G=[],Y=Object.create(null);B=_.A(B);for(var d=B.next();!d.done;d=B.next())d=d.value,Y[d]||(G.push(d),Y[d]=!0);B=G}if(B.length===1)return B[0];d=B;G="";Y=z===2?"|":"&";d.sort();d=_.A(d);for(var E=d.next();!E.done;E=d.next())G+=E.value+Y;if(!W.compoundSignals.get(G)){Y=0;d=[];E=_.A(B);for(var v=E.next();!v.done;v=E.next())v=v.value,Y++,_.gW(W,v)||d.push(v);(z=z===2)&&Y>d.length||!z&&!d.length?W.signals.push(G):qGR(W,G,z,B,d)}return G};
qGR=function(W,B,z,G,Y){var d=Y.length,E=function(){z||--d===0?W.processSignal(B):nDd(W,B)};
Y=_.A(Y);for(var v=Y.next();!v.done;v=Y.next())W.addListener(v.value,E);W.compoundSignals.set(B,{signals:G,isOnAny:z,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});nDd(W,B)};
nDd=function(W,B){if(!_.gW(W,B)){var z=W.compoundSignals.get(B);if(z&&!z.isTimeoutConditionSatisfied){for(var G=!1,Y=0,d=0,E=_.A(z.signals),v=E.next();!v.done;v=E.next()){var c=v.value;v=!_.gW(W,c);yTM.has(c)?G=!0:(c=W.compoundSignals.get(c))?v&&!c.isTimeoutConditionSatisfied&&(d++,z.isInitialized||c.timeoutConditionObservers.push(function(){nDd(W,B)})):v&&Y++}z.isInitialized=!0;
z.isOnAny?G&&(z.isTimeoutConditionSatisfied=!0):Y===0&&d===0&&(z.isTimeoutConditionSatisfied=!0);if(z.isTimeoutConditionSatisfied)for(z=_.A(z.timeoutConditionObservers),G=z.next();!G.done;G=z.next())G=G.value,G()}}};
Vh.prototype.processSignal=Vh.prototype.processSignal;Vh.prototype.parkOrScheduleJob=Vh.prototype.parkOrScheduleJob;Vh.prototype.onAny=Vh.prototype.onAny;_.BV("ytsignals.getInstance",_.J5);Vh.prototype.onAny=Vh.prototype.onAny;Vh.prototype.parkOrScheduleJob=Vh.prototype.parkOrScheduleJob;Vh.prototype.processSignal=Vh.prototype.processSignal;var yTM=new Set(["eop","eocs","dl","pcl"]);_.Qb=new _.t1("MINIPLAYER_SERVICE");var t5,Nv9,$UD;t5=function(W,B,z){var G=_.Qx.getInstance();if(!uyT){var Y=new Sgt;var d=void 0,E=_.eD("ID_TOKEN");E&&Y.isAvailable()&&(d=new SE(Y,"yt-queue"+E));uyT=new Kn7(d)}Y=uyT;d=_.J5();this.JSC$12924_actionRouter=G;this.pageManager=W;this.playlistManager=B;this.JSC$12924_playlistNetworkManager=z;this.storage=Y;this.signals=d;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.sr=function(){if(!Nv9){var W=_.dO(),B=W.resolve(_.Y8(_.ij)),z=W.resolve(_.Y8(_.ns)),G=W.resolve(_.Y8(_.wW));W=W.resolve(_.N_);Nv9=new t5(B,G,new BJu(z,W))}return Nv9};
$UD=function(W,B,z){if(z){var G;if(((G=W.responsePlaylistData)==null?void 0:G.playlistId)!==z)return}W.responsePlaylistData&&(z=hvk(B,W.responsePlaylistData),W.responsePlaylistData=(0,_.mP.unsafeClone)(W.responsePlaylistData),FhR(W.responsePlaylistData,z));z=W.temporaryItems.findIndex(function(Y){return Y.videoId===B});
z>-1&&W.temporaryItems.splice(z,1);_.Pz(W,_.Z$(W,W.response?W.response.autoplayRenderer:void 0))};
_.LnT=function(W,B){if(W.responsePlaylistData){var z=Hj0(B,W.responsePlaylistData);FhR(W.responsePlaylistData,z);if(W.queueProxy){var G=W.queueProxy;z<0||(G.videoIds.splice(z,1),z<G.currentIndex&&G.JSC$12870_setCurrentIndex(G.currentIndex-1),G.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:B}),Er(G))}}_.Pz(W,_.Z$(W,W.response?W.response.autoplayRenderer:void 0))};
t5.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Pz(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
t5.prototype.setPlaylistData=function(W,B,z){this.temporaryItems=[];this.listId=W;this.responsePlaylistData=B;_.Pz(this,_.Z$(this,z))};
var UU6=function(W){return(W==null?0:W.playlistId)?W.playlistId:"PPSV"},MMU=function(W){return W&&W.playlistId?W.playlistId==="PPSV"?!0:CiT(_.Y_().getState().entities,W.playlistId):!1};
t5.prototype.isPlayingOfflineVideo=function(){return this.response?MMU(this.response):!1};
t5.prototype.closeMiniplayer=function(W){var B=this.queueProxy&&this.queueProxy.size()<=1,z=_.dO().resolve(_.Qb);if(!this.queueProxy||B)this.queueProxy&&this.clearQueue(),z.close(!0);else{z.pipController.getWindow()&&window.focus();B=this.responsePlaylistData;var G=this.temporaryItems.length+(B&&B.contents?B.contents.length:0);B=_.kq("QUEUE_CLEARED_UNPLURALIZED")||_.lH("QUEUE_CLEARED",G);B=_.ia(B);z=_.kq("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");G=_.kq("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.lH("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",G);var Y=_.kq("MINIPLAYER_CLOSE",void 0,"Close"),d=_.kq("CANCEL",void 0,"Cancel");_.W4(this.JSC$12924_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Bg(z),dialogMessages:[_.Bg(G)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Bg(Y),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
B]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Bg(d)}}}}}}],W)}};
_.Z$=function(W,B){var z={},G=W.response;z.autoplayRenderer=B;if(!W.responsePlaylistData&&!W.temporaryItems.length)return!G||!G.hasRelatedVideoData&&_.r("kevlar_prefetch_data_augments_network_data")||(z.playerData={rvs:G.relatedVideoArgs,endScreenRenderer:G.endScreenRenderer}),z;z.playerData={};if(W.index===void 0)return _.jy(Error("Mf")),z;z.panel=W.responsePlaylistData?(0,_.mP.unsafeClone)(W.responsePlaylistData):{titleText:_.Bg(_.kq("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
B=z.panel;if(B.contents)for(var Y=_.A(W.temporaryItems),d=Y.next();!d.done;d=Y.next())B.contents.push({playlistPanelVideoRenderer:d.value});W.queueProxy&&G&&G.playingVideo&&G.playingVideoId&&!o1R(G.playingVideoId,z.panel)&&(B=G.playingVideo,Y=z.panel,d=W.index,Y.contents&&Y.contents.splice(d===void 0?0:d,0,{playlistPanelVideoRenderer:B}));G&&G.playingVideoId&&(B=W.index,Y=z.panel,B=!Y.contents||B>=Y.contents.length?void 0:Y.contents[B].playlistPanelVideoRenderer,B&&B.videoId===G.playingVideoId||(B=
hvk(G.playingVideoId,z.panel),W.index=B!==-1?B:W.index?W.index-1:0));B=IVX(W.index+1,z.panel);Y=void 0;W.index>0&&(Y=IVX(W.index-1,z.panel));if(Y||B)z.autoplayRenderer=kz0(B,Y,z.autoplayRenderer);!B&&(G==null?0:G.relatedVideoArgs)&&(z.playerData.rvs=G.relatedVideoArgs);G=G?G.playlistIndexOffset:0;W.queueProxy?jYv(z.panel,W.index,G,CUt,!0,!0,!0):jYv(z.panel,W.index,G);z.playerData.playlistPanelRenderer=z.panel;return z};
t5.prototype.openToast=function(W){_.dO().resolve(_.Qb).openToast(W,_.kq("ADDED_TO_QUEUE",void 0,"Added to queue"))};
t5.prototype.isMiniplayerActive=function(){return _.dO().resolve(_.Qb).isMiniplayerActive()};
_.Pz=function(W,B){W.playlistManager.setAutoplayRenderer(B.autoplayRenderer||null);W.playlistManager.setPlaylistData(B.panel||null);B.playerData&&W.playlistManager.setPlayerPlaybackControlData(B.playerData)};var Oj0="#";var aYR={},RbR={},WWU={},BGD={},zLQ={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:(aYR.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",aYR),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:(RbR.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",RbR),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:(WWU.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",WWU),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:(BGD.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",BGD),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 tv0=[{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:zLQ},{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:zLQ}}];var Aat;_.t8=[[["M2F5MHo2d2tpbmQjYnVxdng=","cnR5MTZydnZhbHVlI2lvY2tn"],"emp2ZWN2aEFEX1BMQUNFTUVOVF9LSU5EX1NUQVJUI3dhdnc="]];
Aat=[[["eTF0d2RiNXByaW1hcnkjcDVtcGo=",null,null],[null,["M3hyeG5yZnl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2FzdHdj","NGgyM3JweHN0eWxlLXNjb3BlI212dXph"],null],["czY1bmcweW1hc3RoZWFkLWFkI2ppdWxh",["ejRmd2RiOXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjYjllajE="],null],[null,["a293d2czY3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjdGEwc2s=","cTdhbWF6M3N0eWxlLXNjb3BlI29mNmdu"],null],[null,["Nzd6N2o0b3l0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjbzFxZXk=","M3JtOWw3bnN0eWxlLXNjb3BlI2U0NWh4"],null],[null,["N2hnNjI1eHl0ZC1hZC1zbG90LXJlbmRlcmVyI3ljNThi"],
null]],[["amd1M2sxb3BsYXllci1hZHMja20wOWw=",null,null]]];_.gD=["Z3drZTlqY2dsb2JhbENhbGxiYWNrcyNmaTd6","ZnR5aGppNW9uQWJub3JtYWxpdHlEZXRlY3RlZCNicXc5Zg==","aG1ham9kbm9uQWRTa2lwI3JzZXpi","cXk2am1kaXJhd19wbGF5ZXJfcmVzcG9uc2UjcjczN28=","MTFjcXI5dGFkU2xvdHMjcnJkYjE="];_.rW="Z3drZTlqY2dsb2JhbENhbGxiYWNrcyNmaTd6 ZnR5aGppNW9uQWJub3JtYWxpdHlEZXRlY3RlZCNicXc5Zg== aG1ham9kbm9uQWRTa2lwI3JzZXpi cXk2am1kaXJhd19wbGF5ZXJfcmVzcG9uc2UjcjczN28= ZTJyaG9pandlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyM1eGYxZw== OHJhdXB1a2FiX3NhX2VmIzRjcDdh MTFjcXI5dGFkU2xvdHMjcnJkYjE=".split(" ");var kU;kU=function(W,B,z){this.ehH=W;this.isAsync=B;this.kGY=z};
_.FOu=[new kU("b.f_",!1,0),new kU("j.s_",!1,2),new kU("r.s_",!1,4),new kU("e.h_",!1,6),new kU("i.s_",!0,8),new kU("s.t_",!1,10),new kU("p.h_",!1,12),new kU("s.i_",!1,14),new kU("f.i_",!1,16),new kU("a.b_",!1,18),new kU("a.o_",!1),new kU("g.o_",!1,22),new kU("p.i_",!1,24),new kU("p.m_",!1),new kU("n.k_",!0,20),new kU("i.f_",!1),new kU("a.s_",!0),new kU("m.c_",!1),new kU("n.h_",!1,26),new kU("o.p_",!1),new kU("m.p_",!0,28),new kU("o.a_",!1),new kU("d.p_",!1),new kU("e.i_",!1)].reduce(function(W,B){W[B.ehH]=
B;return W},{});var GQ6=function(){};
GQ6.prototype.flush=function(W,B){W=W===void 0?[]:W;B=B===void 0?!1:B;if(_.r("enable_client_streamz_web")){W=_.A(W);for(var z=W.next();!z.done;z=W.next())z=EAu(z.value),this.rootSpec&&_.o3(z,2,this.rootSpec),z={serializedIncrementBatch:_.Ob(z.JSC$9608_serializeBinary())},_.Sy("streamzIncremented",z,{sendIsolatedPayload:B})}};
var mK8=function(){};
_.C(mK8,GQ6);var YDQ=function(W){var B=new z6F;var z=new Rmd;z=_.f3(z,1,"botguard");W=_.f3(z,2,W);this.rootSpec=_.hZ(B,1,GdQ,W)};
_.C(YDQ,GQ6);var wD,dhQ=new Map;var vIT,DKR,MS8,qsQ,$Kt,d7x,w$T,GBT;vIT=2;DKR=2;MS8=2;qsQ=2;$Kt=2;d7x=2;w$T=2;GBT=new GtT;var AUM,iMR,EQD;AUM=function(){this.ongoingFlowNonces=new Map};
_.rD=function(){iMR||(iMR=new AUM);return iMR};
_.Pg=function(W,B,z){return{eventType:{flowEventNamespace:W,flowEventType:B},metadata:z,statusCode:void 0,csn:void 0,can:void 0}};
_.bWy=function(W,B){var z=_.rD(),G=EQD(z,B,!0);_.Za(z,W,B,G)};
_.Za=function(W,B,z,G){W={flowNonce:G||EQD(W,z),flowType:z,flowEventType:B.eventType};B.metadata&&(W.flowMetadata=B.metadata);B.statusCode!==void 0&&(W.flowEventStatus=B.statusCode);B.csn&&(W.csn=B.csn);B.can&&(W.can=B.can);_.Sy("flowEvent",W,void 0)};
EQD=function(W,B,z){z=z===void 0?!1:z;var G=W.ongoingFlowNonces.get(B);if(!G||z)G=Kt(16),W.ongoingFlowNonces.set(B,G);return G};_.TGH=new zoR;var X$t={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var l1=function(W,B,z,G,Y,d,E){z=z===void 0?!1:z;G=G===void 0?!1:G;d=d===void 0?_.sr():d;this.hasRun=!1;this.mrs=W;this.o4y=B;this.rfq=z;this.fromHistory=G;this.previousVideoId=Y;this.kaK=d;this.tempData=E;this.eDx=new _.YdF};
_.C(l1,hw);l1.prototype.validate=function(W){return!(!W.data.playerResponse||W.data.page!=="watch"&&W.data.page!=="learning_journey_watch"&&W.data.page!=="shorts"||this.hasRun)};
l1.prototype.handle=function(W){var B=this,z=_.k(W.endpoint,_.W0),G=_.k(W.endpoint,_.SW);if(_.r("kevlar_continue_playback_without_player_response")&&(z==null?0:z.videoId)&&this.previousVideoId&&(z==null?void 0:z.videoId)===this.previousVideoId&&(z==null?0:z.continuePlayback)&&!this.fromHistory)this.mrs.resolve();else{var Y={};z?Y.watch_endpoint=z:G&&(Y.watch_endpoint=G,G.endTimeSeconds&&(Y.end=G.endTimeSeconds));W.data.page==="watch"?(W.data.filler||this.rfq||(_.xq("cfg"),_.Qx.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(Y,vQu(this,W.endpoint)),_.r("enable_masthead_quartile_ping_fix")&&Object.assign(Y,cU6(this)),Object.assign(Y,void 0),W.data.forceExternalPlaylist&&(Y.external_list=!0)):W.data.page==="shorts"?_.Qx.getInstance().triggerAction("yt-start-loading-shorts"):W.data.page==="learning_journey_watch"&&_.Qx.getInstance().triggerAction("yt-start-loading-learning-journey");if(z=this.o4y()){try{z.loadVideoWithPlayerResponse(W.data.playerResponse,Y),z.getPlayerPromise().then(this.mrs.resolve)}catch(d){_.jy(d),
this.mrs.resolve()}this.hasRun=!0;z.getPlayerPromise().then(function(d){d.addEventListener("onAbnormalityDetected",function(){var E=W.data.playerResponse,v=d.getVideoData().cpn;w$T=0;_.pmH=v;if(v=HWu(E))B.eDx.increment("IN_PLAYER"),_.k_(5),_.r("ab_st_vid_ks")?d.pauseVideo(!0):d.stopVideo(),E.playabilityStatus=Object.assign({},E.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:v}}),E.videoDetails=void 0,_.Qx.getInstance().triggerOptionalAction("yt-updated-playability-status",
E.playabilityStatus)})})}else _.Oc(Error("Pf"))}};
var vQu=function(W,B){var z=_.k(B,_.W0);if(B&&z&&z.playlistId&&z.videoId&&(W=W.kaK,W.queueProxy?(W=W.queueProxy,z=W.listId===z.playlistId?W.attributionData.get(z.videoId):void 0):z=void 0,z))return{queue_info:z}},cU6=function(W){var B;
if((B=W.tempData)==null?0:B.adpings)return{adpings:W.tempData.adpings}};var CI=function(W,B,z){this.hasRun=!1;this.iOV=W;this.kNg=B;this.n0q=z};
_.C(CI,hw);CI.prototype.validate=function(W){return!!_.mP.getValueByKeys.apply(null,[W.data].concat(_.u7(XlF)))};
CI.prototype.handle=function(W){var B=this;this.iOV.promise.then(function(){var z=W.data;var G=_.mP.getValueByKeys.apply(null,[z].concat(_.u7(HdR))),Y=_.mP.getValueByKeys.apply(null,[z].concat(_.u7(fYH))),d=_.mP.getValueByKeys.apply(null,[z].concat(_.u7(SG9)));var E=(E=_.mP.getValueByKeys.apply(null,[z].concat(_.u7(FnQ))))?{videoId:E.videoId,thumbnail:E.thumbnail,title:E.title?_.Bg(E.title):void 0,shortBylineText:E.author?_.Bg(E.author):void 0}:void 0;var v=void 0;_.r("web_get_playlist_id_from_current_endpoint_ks")||
(v=_.mP.getValueByKeys.apply(null,[z].concat(_.u7(bdd))));var c=_.mP.getValueByKeys.apply(null,[z].concat(_.u7(Od9))),J=_.mP.getValueByKeys.apply(null,[z].concat(_.u7(ja9))),g=!!c||!!J&&!!J.results&&J.results.length>0,t=0;Y&&Y.currentIndex&&Y.localCurrentIndex&&(t=Y.currentIndex-Y.localCurrentIndex);Y&&Y.playlistId&&(v=Y.playlistId);z={rawResponse:z,autoplayRenderer:G,hasRelatedVideoData:g,playingVideo:E,playingVideoId:d,playlistPanelRenderer:Y,playlistId:v,playlistIndex:Y&&Y.currentIndex,relatedVideoArgs:c,
endScreenRenderer:J,playlistIndexOffset:t};a:{G=B.n0q;Y=B.kNg;G.response=z;if(MMU(z))G.downloadPlaylistProxy&&G.downloadPlaylistProxy.getPlaylistId()===UU6(z)||(G.downloadPlaylistProxy=new ZdU(UU6(z),G.setPlaylistData.bind(G),G.isPlayingOfflineVideo.bind(G))),G.responsePlaylistData=G.downloadPlaylistProxy.getPlaylistData(),G.listId=UU6(z),G.index=0;else if(z.playlistPanelRenderer&&z.playlistId&&z.autoplayRenderer)z.playlistId.startsWith("TLPQ")?G.queueProxy?G.listId===z.playlistId?(G.index=z.playlistIndex,
G.responsePlaylistData=z.playlistPanelRenderer,G.queueProxy.JSC$12870_setCurrentIndex(G.index)):z.playingVideoId&&G.index!==void 0&&Y.clientParams.autoSaveToQueue&&(G.index+=1,G.queueProxy.JSC$12870_setCurrentIndex(G.index),G.queueProxy.addVideos([z.playingVideoId],{},G.index)):(G.queueProxy=new _.T1(G.JSC$12924_playlistNetworkManager,z.playlistId,G.setPlaylistData.bind(G),G.clearQueue.bind(G),_.Ssy(z.playlistPanelRenderer),G.storage),G.responsePlaylistData=z.playlistPanelRenderer,G.listId=z.playlistId,
G.index=z.playlistIndex):(G.index=z.playlistIndex,G.listId!==z.playlistId&&G.clearQueue(),G.responsePlaylistData=z.playlistPanelRenderer,G.listId=z.playlistId,G.playlistProxy=new hbd(G.JSC$12924_playlistNetworkManager,z.playlistId,G.setPlaylistData.bind(G),_.Ssy(z.playlistPanelRenderer)));else if(!G.queueProxy)G.responsePlaylistData=void 0;else if(z.playingVideoId&&Y.clientParams.autoSaveToQueue){if(G.index===void 0){_.jy(Error("Lf"));G.clearQueue();break a}G.queueProxy.videoIds.includes(z.playingVideoId)||
(G.index+=1,G.queueProxy.JSC$12870_setCurrentIndex(G.index),G.queueProxy.addVideos([z.playingVideoId],{},G.index))}_.Pz(G,_.Z$(G,G.response.autoplayRenderer))}})};var wmU=function(W,B){B=B===void 0?_.sr():B;QP.call(this);this.kN.push(new CI(this.m3,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},B));this.kN.push(new l1(this.m3,W,!1,!1));_.r("web_response_commands_chunk_processor")&&this.kN.push(new yP)};
_.C(wmU,QP);wmU.prototype.processChunk=function(W){W&&W.data.player===void 0&&this.m3.resolve();QP.prototype.processChunk.call(this,W)};var Iq=function(W,B){W=W===void 0?{layer:0}:W;this.hasRun=!1;this.createScreenConfig=W;this.s7F=B};
_.C(Iq,hw);Iq.prototype.validate=function(W){return!(this.hasRun||!W.endpoint)};
Iq.prototype.handle=function(W){var B=_.SK(),z,G,Y=(G=_.k((z=W.endpoint)==null?void 0:z.commandMetadata,_.Z4))==null?void 0:G.rootVe;this.s7F&&Y?_.KS(B,Y,this.s7F,this.createScreenConfig):z4F(B,W.endpoint,this.createScreenConfig);this.hasRun=!0};var oq=function(W,B){this.hasRun=!1;this.zDU=W;this.previousVideoId=B};
_.C(oq,hw);oq.prototype.validate=function(W){return _.r("kevlar_continue_playback_without_player_response")&&(W=_.k(W.endpoint,_.W0),(W==null?0:W.videoId)&&this.previousVideoId&&(W==null?void 0:W.videoId)===this.previousVideoId&&(W==null?0:W.continuePlayback))?!1:this.zDU.gEZ===0};
oq.prototype.handle=function(W){_.Qx.getInstance().triggerAction("yt-stop-old-player",W.data,!0)};var VVH=function(W){W=W===void 0?{layer:0}:W;QP.call(this);this.kN.push(new oq(this));this.kN.push(new Iq(W));this.kN.push(new D6(W))};
_.C(VVH,QP);var h5=function(){hw.apply(this,arguments)};
_.C(h5,hw);h5.prototype.validate=function(W){return!!W.data.preconnect};
h5.prototype.handle=function(W){_.mj("bc");W=_.A(W.data.preconnect);for(var B=W.next();!B.done;B=W.next())B=B.value,(new Image).src=B};var JUD=function(W,B,z,G,Y,d,E){z=z===void 0?{layer:0}:z;d=d===void 0?_.sr():d;QP.call(this);if(G)if(Y){Y=d;this.kN.push(new CI(this.m3,B,Y));this.kN.push(new h5);var v,c;this.kN.push(new l1(this.m3,W,!1,!((v=B.clientParams)==null||!v.fromHistory),(c=B.clientParams)==null?void 0:c.previousVideoId,Y,B.tempData));var J;this.kN.push(new oq(this,(J=B.clientParams)==null?void 0:J.previousVideoId));var g;(g=B.clientParams)!=null&&g.fromHistory||(z.layer||(z=Object.assign({},z,{layer:0})),this.kN.push(new Iq(z,
E)),this.kN.push(new D6(z)))}else this.kN.push(new CI(this.m3,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},d)),this.kN.push(new l1(this.m3,W,!1,!1));else this.kN.push(new oq(this)),this.kN.push(new Iq(z)),this.kN.push(new D6(z));_.r("web_response_commands_chunk_processor")&&G&&this.kN.push(new yP)};
_.C(JUD,QP);JUD.prototype.processChunk=function(W){W&&W.data.player===void 0&&this.m3.resolve();QP.prototype.processChunk.call(this,W)};var gQF=function(){this.hasRun=this.hasRun=!1};
_.C(gQF,hw);gQF.prototype.validate=function(W){return!this.hasRun&&!(!W.data.csn||!W.data.rootVe)};
gQF.prototype.handle=function(W){this.hasRun=!0;_.D2(W.data.csn,W.data.rootVe,3)};var tVD=function(W,B,z){z=z===void 0?{layer:0}:z;QP.call(this);this.kN.push(new l1(this.m3,W));this.kN.push(new Iq(z));this.kN.push(new D6(z))};
_.C(tVD,QP);var sbU=function(W,B,z,G,Y){z=z===void 0?{layer:0}:z;G=G===void 0?_.sr():G;QP.call(this);var d=!!B&&!!B.clientParams&&!!B.clientParams.miniplayer;d&&this.kN.push(new gQF);this.kN.push(new CI(this.m3,B,G));this.kN.push(new h5);var E,v;this.kN.push(new l1(this.m3,W,d,!((E=B.clientParams)==null||!E.fromHistory),(v=B.clientParams)==null?void 0:v.previousVideoId,G,B.tempData));var c;this.kN.push(new oq(this,(c=B.clientParams)==null?void 0:c.previousVideoId));var J;(J=B.clientParams)!=null&&J.fromHistory||
(z.layer||(z=Object.assign({},z,{layer:d?3:0})),this.kN.push(new Iq(z,Y)),this.kN.push(new D6(z)));_.r("web_response_commands_chunk_processor")&&this.kN.push(new yP)};
_.C(sbU,QP);var Hz,rUR;Hz={};
_.P4D=(Hz["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Hz["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Hz["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Hz["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Hz["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Hz["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Hz["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Hz);_.FI=new _.el("yt-edu");_.ZMd=function(){this.JSC$13022_eduDisplayedThisLoad_={}};
rUR=function(W){var B=_.ZMd.getInstance();var z=_.iO("kevlar_tooltip_impression_cap");B=z&&parseInt(_.FI.get(W+"-impression")||0,10)>=z||_.FI.get(W+"-dismissed")?!1:(z=_.P4D[W])&&!B.JSC$13022_eduDisplayedThisLoad_[z.setKey||W]&&(z.titleText&&_.kq(z.titleText)||z.bodyText&&_.kq(z.bodyText))?!0:!1;if(!B)return null;B=_.P4D[W];if(!B)return null;z=B.bodyText?_.kq(B.bodyText):void 0;var G=B.titleText?_.kq(B.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:B.position,popup:{bubbleHintRenderer:{text:G?
_.Bg(G):void 0,detailsText:z?_.Bg(z):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Bg(_.kq("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:W}}]}}}}}}}},{eduImpressionAction:{key:W}}]};
_.i0(_.ZMd);var jp0=!1;for(var kQF="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),lPu=[],S8=6;S8>=1;S8--)lPu.push({columnCount:S8,query:S8==1?0:S8*2*107-4+32,className:"grid-"+S8+"-columns",width:S8*2*107+"px"});_.IPM=function(W){this.actionRouter_=W=W===void 0?_.Qx.getInstance():W;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.C4F(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.C4F=function(W){var B=W.miniGuideVisible_?72:0,z=W.documentWidth_-(W.guidePersistentAndVisible_?240:B);return lPu.find(function(G){return z>G.query})};
_.i0(_.IPM);var oQM=function(){var W=this;this.JSC$13034_keyboardInUse=!1;document.addEventListener("keydown",function(){W.onKeydown()});
document.addEventListener("mousedown",function(){W.JSC$13034_keyboardInUse=!1})},hLQ;
oQM.prototype.isKeyBoardInUse=function(){return this.JSC$13034_keyboardInUse};
oQM.prototype.onKeydown=function(){this.JSC$13034_keyboardInUse=!0};var HM7,fI;_.b1=new _.el("yt-mentions");_.j8=function(){};
HM7=function(W,B){return fI(B,"drag-to-reorder-edu-displayed")};
fI=function(W,B,z,G,Y,d){z=z===void 0?"OPEN_POPUP_POSITION_TOP":z;if(B){if(_.b1.get(B))return;_.b1.set(B,!0,G)}if(Y&&d!==void 0){B=Number(_.b1.get(Y)||0);if(B>=d)return;_.b1.set(Y,B+1)}return[{openPopupAction:{popupType:"HINT",position:z,popup:{bubbleHintRenderer:{detailsText:W,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.i0(_.j8);var FWQ,SD4,bMU;FWQ=function(W,B,z,G){this.JSC$13044_taskManager_=W;this.onFulfilled_=typeof B==="function"?B:null;this.onRejected_=typeof z==="function"?z:null;this.JSC$13044_context_=G};
SD4=function(W,B){W.onFulfilled_&&_.OM(W.JSC$13044_taskManager_,function(){W.onFulfilled_.call(W.JSC$13044_context_,B)})};
bMU=function(W,B){W.onRejected_&&_.OM(W.JSC$13044_taskManager_,function(){W.onRejected_.call(W.JSC$13044_context_,B)})};
_.Or=function(W){this.JSC$13047_taskManager_=W;this.callbacks_=[]};
_.Or.prototype.then=function(W,B,z){this.callbacks_.push(new FWQ(this.JSC$13047_taskManager_,W,B,z));return this};
_.Or.prototype.onSuccess=function(W){this.callbacks_.forEach(function(B){SD4(B,W)})};
_.Or.prototype.onFailure=function(W){this.callbacks_.forEach(function(B){bMU(B,W)})};
_.Or.prototype.cancel=function(){this.callbacks_.length=0};
cvH(_.Or);_.urR=null;_.jX=new _.t1("ACTIVITY_TOKEN");var XI=function(W,B){this.serviceId=new cC4(W,B)};
XI.prototype.toString=function(){return this.serviceId.toString()};var jbM=function(){this.internalMap={}};
_.p=jbM.prototype;_.p.contains=function(W){return Object.prototype.hasOwnProperty.call(this.internalMap,W)};
_.p.get=function(W){if(this.contains(W))return this.internalMap[W]};
_.p.set=function(W,B){this.internalMap[W]=B};
_.p.getKeys=function(){return Object.keys(this.internalMap)};
_.p.remove=function(W){delete this.internalMap[W]};var KI=function(){this.mappings=new jbM;this.errorCallbacks=new Set};
KI.prototype.getModuleId=function(W){return W.serviceId.getModuleId()};
KI.prototype.get=function(W){var B=this.mappings.get(W.toString());return fPD(this,B,W)};
KI.prototype.getMultipleAsync=function(){var W=_.nm.apply(0,arguments),B=this,z=W.map(function(c){return B.getModuleId(c)}),G=W.map(function(c){return B.mappings.get(c.toString())}).filter(function(c){return c});
if(G.length===W.length)return _.gV(G.map(function(c,J){return fPD(B,c,W[J])}));
var Y=uA().loadMultiple(z);G=_.ma(z.map(function(c){return Y[c]}));
var d=document.hidden,E=-1,v=_.iO("get_async_timeout_ms",-1);v>-1&&(E=setTimeout(function(){_.Oc(new _.oX("Module timeout.",z,d,document.hidden))},v));
return _.xX(G.then(function(){return W.map(function(c){return fPD(B,B.mappings.get(c.toString()),c)})}).thenCatch(function(c){for(var J=_.A(B.errorCallbacks),g=J.next();!g.done;g=J.next())g=g.value,g(c);
throw c;}),function(){clearTimeout(E)})};
KI.prototype.registerService=function(W,B){this.mappings.set(W.toString(),{type:"mapping",value:B});return W};
var fPD=function(W,B,z){switch(B.type){case "mapping":return B.value;case "factory":return B=B.value(),W.mappings.set(z.toString(),{type:"mapping",value:B}),B;default:return _.qT(B)}};
KI.prototype.onLoadError=function(W){var B=this;this.errorCallbacks.add(W);return function(){B.errorCallbacks.delete(W)}};
_.u1=new KI;var QpQ=/^[a-zA-Z0-9_\-]{11}$/;var yaR=_.ff(function(){var W,B;return(B=(W=window).matchMedia)==null?void 0:B.call(W,"(prefers-reduced-motion: reduce)").matches});var OMd=_.ff(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 W=_.q6("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");W||(W=_.I0("VIDEO"),_.BV("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
W));return!!(W&&W.canPlayType&&W.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var U7r=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var e8;e8=function(){this.tokenJars={};if(this.cookiesEnabled=_.lO()){var W=_.rO.get("CONSISTENCY",void 0);W&&Xm7(this,{encryptedTokenJarContents:W})}};
_.aHQ=function(){e8.instance||(e8.instance=new e8);return e8.instance};
e8.prototype.handleResponse=function(W,B){if(!B)throw Error("Vf");var z,G;B=((z=B.innerTubeRequest.context)==null?void 0:(G=z.request)==null?void 0:G.consistencyTokenJars)||[];var Y;(W=(Y=W.responseContext)==null?void 0:Y.consistencyTokenJar)&&this.replace(B,W)};
e8.prototype.replace=function(W,B){W=_.A(W);for(var z=W.next();!z.done;z=W.next())delete this.tokenJars[z.value.encryptedTokenJarContents];Xm7(this,B)};
var Xm7=function(W,B){if(B.encryptedTokenJarContents&&(W.tokenJars[B.encryptedTokenJarContents]=B,typeof B.expirationSeconds==="string")){var z=Number(B.expirationSeconds);setTimeout(function(){delete W.tokenJars[B.encryptedTokenJarContents]},z*1E3);
W.cookiesEnabled&&_.k8("CONSISTENCY",B.encryptedTokenJarContents,z,void 0,!0)}};var KWR,mt;KWR=window.location.hostname.split(".").slice(-2).join(".");_.m9=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var W=_.eD("LOCATION_PLAYABILITY_TOKEN");_.eD("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=ufD(this))&&(W=this.localStorage.get("yt-location-playability-token"));W&&(this.locationPlayabilityToken=W,this.mostRecentPosition=void 0)};
_.m9.getInstance=function(){mt=_.q6("yt.clientLocationService.instance");mt||(mt=new _.m9,_.BV("yt.clientLocationService.instance",mt));return mt};
_.m9.prototype.setLocationOnInnerTubeContext=function(W){W.client||(W.client={});if(this.mostRecentPosition)W.client.locationInfo||(W.client.locationInfo={}),W.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),W.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),W.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),W.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)W.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.m9.prototype.handleResponse=function(W){var B;W=(B=W.responseContext)==null?void 0:B.locationPlayabilityToken;W!==void 0&&(this.locationPlayabilityToken=W,this.mostRecentPosition=void 0,_.eD("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=ufD(this))&&this.localStorage.set("yt-location-playability-token",W,15552E3):_.k8("YT_CL",JSON.stringify({loctok:W}),15552E3,KWR,!0))};
var ufD=function(W){return W.localStorage===void 0?new _.el("yt-client-location"):W.localStorage};
_.m9.prototype.clearLocationPlayabilityToken=function(W){W==="TVHTML5"?(this.localStorage=ufD(this))&&this.localStorage.remove("yt-location-playability-token"):_.klT("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.m9.prototype.getCurrentPositionFromGeolocation=function(){var W=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Wf"));var B=!1,z=1E4;_.eD("INNERTUBE_CLIENT_NAME")==="MWEB"&&(B=!0,z=15E3);return new Promise(function(G,Y){navigator.geolocation.getCurrentPosition(function(d){W.mostRecentPosition=d;G(d)},function(d){Y(d)},{enableHighAccuracy:B,
maximumAge:0,timeout:z})})};
_.m9.prototype.createUnpluggedLocationInfo=function(W){var B={};W=W.coords;if(W==null?0:W.latitude)B.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)B.longitudeE7=Math.floor(W.longitude*1E7);if(W==null?0:W.accuracy)B.locationRadiusMeters=Math.round(W.accuracy);return B};
_.m9.prototype.createLocationInfo=function(W){var B={};W=W.coords;if(W==null?0:W.latitude)B.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)B.longitudeE7=Math.floor(W.longitude*1E7);return B};var eLH=function(){};
_.p=eLH.prototype;
_.p.JSC$13114_getRequest=function(W,B,z){B=B===void 0?{}:B;z=z===void 0?gF9:z;var G=B;if(this.isNavigationCommand()){var Y,d=(Y=_.k(W==null?void 0:W.commandMetadata,_.Z4))==null?void 0:Y.url;G=_.RMT(W.clickTrackingParams,!0,!1,d,this.JSC$13114_getClientScreen(G))}else G=_.RMT(W.clickTrackingParams,!1,this.includeCsn);G={context:G};if(Y=this.getExtension(W))return this.JSC$13114_buildRequest(G,Y,B),Y=this.getApiUrl(W),d=Object.assign({},{command:W},this.getRequestConfig(W,B)),G={input:Y,requestShell:ad(Y),
innerTubeRequest:G,config:d},G.config.authStrategy?G.config.authStrategy.identity=z:G.config.authStrategy={identity:z},(W=this.JSC$13114_getRequestKey(W,B))&&!G.config.requestKey&&(G.config.requestKey=W),G;W=new _.oX("Error: Failed to create Request from Command.",W);_.jy(W)};
_.p.getApiUrl=function(W){var B=_.dD(this.getApiPaths(W)),z;(W=(z=_.k(W.commandMetadata,_.Z4))==null?void 0:z.apiUrl)&&(B=W);return rfx(Zhu(B))};
_.p.isNavigationCommand=function(){return!1};
_.p.JSC$13114_getClientScreen=function(){};
_.p.JSC$13114_getRequestKey=function(){};
_.p.getRequestConfig=function(){};
_.G5.Object.defineProperties(eLH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var xU=function(){};
_.C(xU,eLH);xU.prototype.JSC$13121_getStoreKey=function(){};
xU.prototype.JSC$13114_getRequestKey=function(W,B){B=B===void 0?{}:B;return this.JSC$13121_getStoreKey(W,B)};_.x_={getLocalStorage:_.ff(function(){try{var W=new F8Q;var B=W.isAvailable()?W:null}catch(z){return null}return B?new _.cM(B):null}),
getSessionStorage:_.ff(function(){var W=new Sgt;return W.isAvailable()?new _.cM(W):null})};var ir=new _.t1("ENTITY_STATE_TOKEN"),D$=new _.t1("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var mhF=XMLHttpRequest.prototype.fetch,xh6=mhF&&mhF.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!RX?!0:!1;var Qh=function(W){this.JSC$13127_storeWithEntities=W};
_.C(Qh,xU);_.p=Qh.prototype;_.p.getApiPaths=function(){return YnD};
_.p.getExtension=function(W){return _.k(W,_.W0)||_.k(W,_.SW)||_.k(W,BP4)};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$13121_getStoreKey=function(W){if((_.r("kevlar_cache_on_ttl_player")||_.r("mweb_enable_shorts_innertube_player_prefetch")||_.r("mweb_use_new_history_manager")||_.r("web_shorts_prefetch_service_enabled"))&&(W=this.getExtension(W))&&W.videoId){var B={videoId:W.videoId};W.playlistId&&(B.playlistId=W.playlistId);W.playerParams&&(B.params=W.playerParams);return _.Rd("player",B)}};
_.p.JSC$13114_getClientScreen=function(W){var B;return((B=W.contentPlaybackContext)==null?void 0:B.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.p.JSC$13114_buildRequest=function(W,B,z){if(_.r("enable_interstitial_entity_check")){var G=this.JSC$13127_storeWithEntities;if(B.videoId)for(var Y=_.A(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),d=Y.next();!d.done;d=Y.next()){d=d.value;var E;var v=void 0,c=void 0,J=B.videoId,g=d;(E=G)?(J=_.sg(J+g,"interstitialInteractionStateEntity"),E=(v=(c=_.P3(E.getState().entities,"interstitialInteractionStateEntity",J))==null?void 0:c.primaryButtonClicked)!=null?v:!1):E=!1;if(E)switch(d){case "CONTENT_CHECK_REQUIRED":B.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":B.racyCheckOk=!0}}}B.videoId&&(W.videoId=B.videoId);B.playlistId&&(W.playlistId=B.playlistId);B.index!==void 0&&(W.playlistIndex=B.index+1);B.playerParams&&(W.params=B.playerParams);"startTimeSeconds"in B&&B.startTimeSeconds&&(_.r("enable_player_request_builder_start_time_floor")?W.startTimeSecs=Math.floor(B.startTimeSeconds):W.startTimeSecs=B.startTimeSeconds);z.contentPlaybackContext&&(W.playbackContext={contentPlaybackContext:z.contentPlaybackContext});z.prefetchPlaybackContext&&
(W.playbackContext=Object.assign({},W.playbackContext,{prefetchPlaybackContext:z.prefetchPlaybackContext}),W.context.request||(W.context.request={}),W.context.request.isPrefetch=!0);W.playbackContext||(W.playbackContext={});G=OMd();W.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!G,supportXhr:xh6};z.overrideMutedAtStart&&(W.overrideMutedAtStart=z.overrideMutedAtStart);W.racyCheckOk=!!B.racyCheckOk;W.contentCheckOk=!!B.contentCheckOk;!_.r("captions_prefs_killswitch")&&(z=(z=_.QL("yt-player-caption-language-preferences"))?
z:[],z==null?0:z.length)&&(W.captionParams={viewerSelectedCaptionLangs:z})};
_.p.getRequestConfig=function(W){W=this.JSC$13121_getStoreKey(W);var B;W&&(B={storeStrategy:{storeKey:W}});_.r("web_log_player_watch_next_ticks")&&(B=B||{},B.requestTick="ps_s",B.responseTick="ps_r");return B};
Qh[gR]=[ir];var yh=function(){};
_.C(yh,xU);_.p=yh.prototype;_.p.getApiPaths=function(){return XDT};
_.p.getExtension=function(W){return _.k(W,_.W0)};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$13121_getStoreKey=function(W){if((W=this.getExtension(W))&&W.videoId){var B={videoId:W.videoId};W.playlistId&&(B.playlistId=W.playlistId);W.index&&(B.index=W.index);W.params&&(B.params=W.params);return _.Rd("next",B)}};
_.p.JSC$13114_getClientScreen=function(W){var B;return((B=W.contentPlaybackContext)==null?void 0:B.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.p.JSC$13114_buildRequest=function(W,B,z){B.videoId&&(W.videoId=B.videoId);B.playlistId&&(W.playlistId=B.playlistId);B.params&&(W.params=B.params);B.index!==void 0&&(W.playlistIndex=B.index);W.racyCheckOk=!(!z.racyCheckOk&&!B.racyCheckOk);W.contentCheckOk=!!B.contentCheckOk;z.contentPlaybackContext&&(W.autonavState=z.contentPlaybackContext.autonavState,W.playbackContext={vis:z.contentPlaybackContext.vis,lactMilliseconds:z.contentPlaybackContext.lactMilliseconds});z.prefetchPlaybackContext&&(W.context.request||
(W.context.request={}),W.context.request.isPrefetch=!0);_.r("captions_hats_killswitch")||(B=_.IP().getFlag(65),B=B!=null?!B:!1,z=!!_.QL("yt-player-sticky-caption"),W.captionsRequested=B&&z)};
_.p.getRequestConfig=function(W){W=this.JSC$13121_getStoreKey(W);var B;W&&(B={storeStrategy:{storeKey:W}});_.r("web_log_player_watch_next_ticks")&&(B=B||{},B.requestTick="wn_s",B.responseTick="wn_r");return B};
var q1=function(){};
_.C(q1,xU);q1.prototype.getApiPaths=function(){return XDT};
q1.prototype.getExtension=function(W){return _.k(W,_.Ly)};
q1.prototype.JSC$13114_buildRequest=function(W,B){B.token&&(W.continuation=B.token)};var nI=function(W,B){this.playerRequestBuilder=W;this.watchNextRequestBuilder=B};
_.C(nI,xU);nI.prototype.getApiPaths=function(){return NeM};
nI.prototype.getExtension=function(W){return _.k(W,_.W0)};
nI.prototype.isNavigationCommand=function(){return!0};
nI.prototype.JSC$13114_buildRequest=function(W,B,z){W.playerRequest={};this.playerRequestBuilder.JSC$13114_buildRequest(W.playerRequest,B,z);_.r("web_streaming_watch")&&(W.watchNextRequest={},this.watchNextRequestBuilder.JSC$13114_buildRequest(W.watchNextRequest,B,z))};
nI[gR]=[Qh,yh];var DhR;_.N1=new _.t1("SHORTS_CONTROLLER_TOKEN");DhR=new _.t1("SHORTS_STATE_STORE_TOKEN");var $U=function(W,B){var z=_.nm.apply(2,arguments);W=W===void 0?0:W;_.oX.call(this,B,z);this.errorType=W;Object.setPrototypeOf(this,this.constructor.prototype)};
_.C($U,_.oX);var QbF,yU6,nQF,dbr,nQ,llk,Uhd,LWM,zn7,RL7,aPM;QbF=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(W){return W+"="}).join("|"));
yU6=RegExp(".*\\?.*playnext=1.*");_.LI=function(W,B,z,G){this.watchEndpointMap=W;this.reelWatchEndpointMap=B;this.innerTubeTransportService=z;this.fetchPbj=G};
nQF=function(W,B,z){var G=_.dO().resolve(_.Y8(qD4));_.LI.instance=new _.LI(W,B,z,G)};
_.NGF=function(W,B){var z=_.iO("web_pbj_log_warning_rate",0);z=z>0&&Math.random()<z;var G;if((G=_.k(B.commandMetadata,_.Z4))==null||!G.rootVe)return z&&_.Oc(Error("Yf")),!1;var Y;G=(Y=_.k(B.commandMetadata,_.Z4))==null?void 0:Y.url;if(!G)return z&&_.Oc(Error("Zf")),!1;if(yU6.test(G))return!0;if(QbF.test(G))return z&&_.Oc(Error("$f`"+G)),!1;if(_.k(B,_.W0)){if(!(W.watchEndpointMap.watchNext&&W.watchEndpointMap.player||_.r("kevlar_fetch_initial_data_op_watch_client")))return z&&_.Oc(Error("Rf")),!1;
W=_.iO("web_pbj_log_warning_rate",0);W=W>0&&Math.random()<W;_.k(B,_.W0)?x7u(B)?B=!0:(W&&_.Oc(Error("Sf")),B=!1):(W&&_.Oc(Error("Rf")),B=!1);return B}if(_.k(B,_.SW))return D7R(B);if(_.k(B,_.Aw))return!0;W=_.WA(W.innerTubeTransportService,B);!W&&z&&_.jy(Error("ag"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(B)});return W};
dbr=function(W,B,z,G,Y,d){B={url:B};if(z==null?0:z.itct)B.parentTrackingParams=z.itct;var E=_.dD(wDT);return _.cz(W.innerTubeTransportService,B,E).then(function(v){(v=v.endpoint)||(v=_.nS);(z==null?0:z.itct)&&v&&!v.trackingParams&&(v.trackingParams=z.itct);var c=Hg(v);return nQ(W,v,z,G,c,Y,d)})};
nQ=function(W,B,z,G,Y,d,E,v){v=v===void 0?{}:v;if(W.fetchPbj&&!_.NGF(W,B)&&!_.r("force_one_platform")){v=W.fetchPbj(B);var c=_.gV(v.then(function(q){if(!q)throw Error("bg");E(c)||d(B,q);return q}));
return c}var J,g,t={rootVe:(J=_.k(B.commandMetadata,_.Z4))==null?void 0:J.rootVe,url:(g=_.k(B.commandMetadata,_.Z4))==null?void 0:g.url,endpoint:B,page:Y};if(_.k(B,_.W0)){var P,Z={contentPlaybackContext:_.Ol(z,(P=_.k(B.commandMetadata,_.Z4))==null?void 0:P.url,G)},l=_.zN();_.r("web_streaming_watch")&&window.TextDecoderStream?(v=$hH(W.innerTubeTransportService,B,Z,function(q){!t.response&&q.content&&(t.response=q.content);!t.playerResponse&&q.player&&(t.playerResponse=q.player);d(B,t)}),J=kfX(B),J.length&&
(t.preconnect=J,d(B,t)),LWM(v,l,t).catch(function(q){q instanceof $U&&q.errorType===2&&_.r("web_streaming_watch_fallback")&&Uhd(W,B,Z,t,d,E,l)})):Uhd(W,B,Z,t,d,E,l);
return l.promise}if(_.k(B,_.SW)){var b;if(((b=_.k(B,_.SW))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var O=_.zN();_.MVH(_.dO().resolve(_.N1),B).then(function(q){aPM(W,z,G,Y,d,O,q)});
return O.promise}v=_.gV();var K;J={contentPlaybackContext:_.Ol(z,(K=_.k(B.commandMetadata,_.Z4))==null?void 0:K.url,G)};(K=W.reelWatchEndpointMap.player)&&(K=K().JSC$13114_getRequest(B,J))&&(v=_.cz(W.innerTubeTransportService,K.innerTubeRequest,K.input,B.clickTrackingParams,K.config));K=_.gV();(g=W.reelWatchEndpointMap.reelItemWatch)&&(g=g().JSC$13114_getRequest(B))&&(K=_.cz(W.innerTubeTransportService,g.innerTubeRequest,g.input,B.clickTrackingParams,g.config));g=_.gV();_.r("web_enable_delay_shorts_sequence_call_new")||
(P=W.reelWatchEndpointMap.reelWatchSequence)&&_.k(B,_.SW).sequenceParams&&(J=P().JSC$13114_getRequest(B,J))&&(g=_.cz(W.innerTubeTransportService,J.innerTubeRequest,J.input,B.clickTrackingParams,J.config));J=_.gV(t);P=_.zN();RL7(B,J,v,K,g,d,E,P);return P.promise}var e;if(_.k(B,KOy)&&((e=_.k(B.commandMetadata,_.Z4))==null?0:e.url))return v=Mvr(_.Uk(QY().location.href),_.Uk(_.k(B.commandMetadata,_.Z4).url)).toString(),dbr(W,v,z,G,d,function(){return!1});
if(_.k(B,_.Aw))return d(B,t),_.gV(t);if(_.WA(W.innerTubeTransportService,B)){v=Object.assign({},{tempData:z,disableCache:z.disableCache},v);var a=_.BA(W.innerTubeTransportService,B,v).then(function(q){t.response=q;E(a)||d(B,t);return t});
return a}return _.gV(t)};
_.B$R=function(W,B,z,G){if(_.k(B,_.W0)||_.k(B,_.SW)&&(_.r("mweb_enable_shorts_innertube_player_prefetch")||_.r("kevlar_enable_shorts_prefetch_in_sequence"))||_.k(B,BP4)&&_.r("web_enable_prefetching_videos_on_home")){var Y,d={contentPlaybackContext:_.Ol(z,(Y=_.k(B.commandMetadata,_.Z4))==null?void 0:Y.url,G),prefetchPlaybackContext:nIQ(z)},E,v,c;if(((E=_.k(B,_.W0))==null?void 0:(v=E.watchEndpointSupportedPrefetchConfig)==null?void 0:(c=v.prefetchHintConfig)==null?void 0:c.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(z=
W.watchEndpointMap.watchNext)if(d=z().JSC$13114_getRequest(B,d))return Promise.resolve(_.cz(W.innerTubeTransportService,d.innerTubeRequest,d.input,void 0,d.config).then(function(t){return t}))}else if(z=W.watchEndpointMap.player)if(d=z().JSC$13114_getRequest(B,d))return Promise.resolve(_.cz(W.innerTubeTransportService,d.innerTubeRequest,d.input,void 0,d.config).then(function(t){return t}))}else if(_.WA(W.innerTubeTransportService,B)){var J={tempData:z},g=WA6(W.innerTubeTransportService,B);
return g?new Promise(function(t,P){var Z,l;return _.T(function(b){if(b.nextAddress==1)return b.yield(g,2);if(b.nextAddress!=4)return Z=b.yieldResult,Z.JSC$13121_getStoreKey(B,J)?b.yield(_.BA(W.innerTubeTransportService,B,J),4):(P(new _.oX("Prefetching request builder with no store key.",B)),b.jumpTo(0));l=b.yieldResult;t(l);_.HG(b)})}):Promise.reject(new _.oX("Prefetching unregistered request builder.",B))}return Promise.reject(new _.oX("No request builder available to prefetch endpoint.",B))};
llk=function(W,B){var z,G,Y;if(_.k(B,_.W0)){var d=W.watchEndpointMap.watchNext;d&&(z=d());(W=W.watchEndpointMap.player)&&(G=W())}else if(_.k(B,_.SW))(d=W.reelWatchEndpointMap.reelItemWatch)&&(z=d()),(d=W.reelWatchEndpointMap.player)&&(G=d()),(W=W.reelWatchEndpointMap.reelWatchSequence)&&(Y=W());else{a:{W=xvQ(B,W.innerTubeTransportService.endpointMap);if(W!==void 0)if(typeof W.then==="function")_.jy(new _.oX("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",B));else break a;
W=void 0}W&&(z=W)}var E,v,c;return{content:(E=z)==null?void 0:E.JSC$13121_getStoreKey(B),player:(v=G)==null?void 0:v.JSC$13121_getStoreKey(B),reelSequence:(c=Y)==null?void 0:c.JSC$13121_getStoreKey(B)}};
Uhd=function(W,B,z,G,Y,d,E){var v=_.gV(),c=W.watchEndpointMap.player;_.r("web_streaming_player")&&(c=jW(nI));c&&(c=c().JSC$13114_getRequest(B,z))&&(v=_.cz(W.innerTubeTransportService,c.innerTubeRequest,c.input,B.clickTrackingParams,c.config));c=_.gV();var J=W.watchEndpointMap.watchNext;J&&(z=J().JSC$13114_getRequest(B,z))&&(c=_.cz(W.innerTubeTransportService,z.innerTubeRequest,z.input,B.clickTrackingParams,z.config));W=_.gV(G);zn7(B,W,v,c,Y,d,E)};
LWM=function(W,B,z){return _.T(function(G){if(G.nextAddress==1)return G.yield(W,2);B.resolve(z);_.HG(G)})};
zn7=function(W,B,z,G,Y,d,E){var v,c,J,g,t;_.T(function(P){switch(P.nextAddress){case 1:return P.yield(B,2);case 2:v=P.yieldResult;if(d(E.promise))return E.resolve(v),P.return();Y(W,v);c=kfX(W);if(!c.length){P.jumpTo(3);break}return P.yield(B,4);case 4:v.preconnect=c,Y(W,v);case 3:return _.kA(P,5),P.yield(z,7);case 7:J=P.yieldResult;_.Nn(P,6);break;case 5:return g=_.h6(P),E.reject(g),P.return();case 6:if(J===void 0)return v.reload=!0,Y(W,v),E.resolve(v),P.return();if(d(E.promise))return E.resolve(v),
P.return();v.playerResponse=J;Y(W,v);_.kA(P,8);return P.yield(G,10);case 10:t=P.yieldResult;_.Nn(P,9);break;case 8:_.h6(P);case 9:if(t===void 0)return v.response={responseContext:{}},E.resolve(v),P.return();if(d(E.promise))return E.resolve(v),P.return();v.response=t;Y(W,v);E.resolve(v);_.HG(P)}})};
RL7=function(W,B,z,G,Y,d,E,v){var c,J,g,t,P,Z;_.T(function(l){switch(l.nextAddress){case 1:return l.yield(B,2);case 2:c=l.yieldResult;if(E(v.promise))return v.resolve(c),l.return();d(W,c);J=kfX(W);if(!J.length){l.jumpTo(3);break}return l.yield(B,4);case 4:c.preconnect=J,d(W,c);case 3:return _.kA(l,5),l.yield(z,7);case 7:g=l.yieldResult;_.Nn(l,6);break;case 5:return t=_.h6(l),v.reject(t),l.return();case 6:if(g===void 0)return c.reload=!0,d(W,c),v.resolve(c),l.return();if(E(v.promise))return v.resolve(c),
l.return();c.playerResponse=g;d(W,c);_.kA(l,8);return l.yield(G,10);case 10:P=l.yieldResult;_.Nn(l,9);break;case 8:_.h6(l);case 9:if(P===void 0)return c.response={responseContext:{}},v.resolve(c),l.return();if(E(v.promise))return v.resolve(c),l.return();c.response=P;d(W,c);_.kA(l,11);return l.yield(Y,13);case 13:Z=l.yieldResult;_.Nn(l,12);break;case 11:_.h6(l);case 12:if(E(v.promise))return v.resolve(c),l.return();Z&&(c.reelWatchSequenceResponse=Z);d(W,c);v.resolve(c);_.HG(l)}})};
aPM=function(W,B,z,G,Y,d,E){var v,c,J,g,t,P;_.T(function(Z){if((v=E)==null||!v.replacementEndpoint)return d.reject(),Z.return();c=E.replacementEndpoint;(J=_.k(c,_.SW))?(E.sequenceContinuation&&(J.sequenceParams=E.sequenceContinuation),g=_.dO().resolve(_.N1),t=J.sequenceParams,GY9(g,c)&&delete J.sequenceParams,P=nQ(W,c,B,z,G,Y,function(){return!1}),P.then(function(l){return _.T(function(b){if(b.nextAddress==1)return YeM(g,{reelWatchEndpoint:{sequenceParams:t}},l),b.yield(0,2);
d.resolve(l);_.HG(b)})})):d.reject();
_.HG(Z)})};_.do6=function(W){if(W.validatedFragments_.length==0)return null;if(!W.mergedPrefetchedData_){for(var B=[],z=_.A(W.validatedFragments_),G=z.next();!G.done;G=z.next()){G=_.A(W.fragmentConfiguration_[G.value].graftedKeys);for(var Y=G.next();!Y.done;Y=G.next())(Y=W.prefetchedData_[Y.value].trackingParams)&&B.push(Y)}W.mergedPrefetchedData_={};Object.assign(W.mergedPrefetchedData_,W.prefetchedData_,{clientSideGrafts:B})}return W.mergedPrefetchedData_};var pZF;_.Ur=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
pZF=function(W,B,z){if(_.eMk(B))return W.prefetchCache_.get(_.m7D(B,z))};_.M1=new _.t1("NAVIGATION_TOKEN");var And=function(W){var B=this;var z=z===void 0?za0():z;var G=G===void 0?_.dO().resolve(_.M1):G;this.onePickCommand=W;this.JSC$13225_playlistNetworkManager=z;this.navigationManager=G;this.videoPickerBuilder=_.W5v("yt-addtoplaylist");_.jXu(IDH(oEM(CpD(this.videoPickerBuilder.setTitle(W.modalTitle).setSize(1E3).addView(H47()).addView(htM())).addView("youtube"),W.selectButtonLabel)),function(Y){B.handleAction(Y)})};
And.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
And.prototype.handleAction=function(W){var B=this;if(W&&this.onePickCommand.listId&&W.action==="picked"&&W.docs){var z=[];W.docs.forEach(function(G){z.push({addedVideoId:G.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13225_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,z).then(function(){_.r("playlist_add_video_hard_reload_killswitch")?B.navigationManager.reload():iD4(B.navigationManager)})}};var E46=function(){if(this.constructor===E46)throw new TypeError("cg");};
_.p=E46.prototype;_.p.dispose=function(){};
_.p.disconnect=function(){};
_.p.reconnect=function(){};
_.p.observe=function(W,B,z){return{element:W,option:z}};
_.p.unobserveByKey=function(){};var Go8=function(W,B){B=B===void 0?0:B;E46.call(this);this.viewroot=W;this.defaultPrescanHeight=B;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),W?{root:W,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.C(Go8,E46);_.p=Go8.prototype;_.p.dispose=function(){this.disconnect();this.handlers.clear()};
_.p.disconnect=function(W){this.isConnected=!1;this.pauseObservingUntilReconnect=W===void 0?!1:W;this.observer.disconnect();W=_.A(this.prescanObservers.values());for(var B=W.next();!B.done;B=W.next())B.value.disconnect()};
_.p.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var W=_.A(this.handlers),B=W.next();!B.done;B=W.next()){var z=_.A(B.value);B=z.next().value;var G=z.next().value;z=!1;G=_.A(G.keys());for(var Y=G.next();!Y.done;Y=G.next())if((Y=Y.value)&&Y.state==="prescan"){z=!0;break}z&&T$6(this,B).observe(B);this.observer.observe(B)}}};
_.p.handleObserveEvent=function(W){W=_.A(W);for(var B=W.next();!B.done;B=W.next()){B=B.value;var z=this.handlers.get(B.target);if(z){var G=B.isIntersecting;z=_.A(z);for(var Y=z.next();!Y.done;Y=z.next()){var d=_.A(Y.value);Y=d.next().value;d=d.next().value;Y&&(Y.state==="visible"&&G||Y.state==="hidden"&&!G)&&(d(B.target,Y.state),Y.calledOnce&&this.unobserveByKey({element:B.target,option:Y}))}}}};
_.p.handlePrescanEvent=function(W){W=_.A(W);for(var B=W.next();!B.done;B=W.next()){B=B.value;var z=this.handlers.get(B.target);if(z&&B.isIntersecting){z=_.A(z);for(var G=z.next();!G.done;G=z.next()){var Y=_.A(G.value);G=Y.next().value;Y=Y.next().value;G&&G.state==="prescan"&&(Y(B.target,G.state),G.calledOnce&&this.unobserveByKey({element:B.target,option:G}))}}}};
_.p.observe=function(W,B,z){var G=(G=this.handlers.get(W))&&G.has(z)?{element:W,option:z}:void 0;if(G)return G;G={element:W,option:z};this.handlers.has(W)||this.handlers.set(W,new Map);var Y=this.handlers.get(W);Y&&!Y.has(z)&&Y.set(z,B);this.pauseObservingUntilReconnect||(z.state==="prescan"&&T$6(this,W).observe(W),this.observer.observe(W));return G};
_.p.unobserveByKey=function(W){var B=this.handlers.get(W.element);if(B&&B.has(W.option)){B.delete(W.option);if(W&&W.option.state==="prescan")for(var z=_.A(this.prescanObservers.values()),G=z.next();!G.done;G=z.next())G.value.unobserve(W.element);B.size===0&&(this.handlers.delete(W.element),this.observer.unobserve(W.element))}};
var T$6=function(W,B){var z=W.defaultPrescanHeight;B.hasAttribute("prescan-height")&&(B=Number(B.getAttribute("prescan-height")),isNaN(B)||(z=B));if(W.prescanObservers.has(z))return W.prescanObservers.get(z);B="-0.1px -0.1px "+z+"px -0.1px";B=new IntersectionObserver(W.handlePrescanEvent.bind(W),W.viewroot?{root:W.viewroot,rootMargin:B}:{rootMargin:B});W.prescanObservers.set(z,B);return B};var v4R=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],cnM=function(){var W,B=this;this.JSC$13242_actionRouter=W=W===void 0?_.Qx.getInstance():W;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return B.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return B.visibilityObservedElementHandlerKeys}}},wZu,Jn4,s47;
cnM.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.r("kevlar_use_vimio_behavior")&&_.eD("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=Yn8())};
cnM.prototype.dispose=function(){this.visibilityMonitor&&_.Xn(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
cnM.prototype.handleVisibilityRefreshed=function(){for(var W=_.A(this.targetMap.entries()),B=W.next();!B.done;B=W.next()){var z=_.A(B.value);B=z.next().value;z=z.next().value;_.VqD(this,B,z)}};
_.tq7=function(W,B,z){Jn4(W,z);var G=_.g4d(W,B);G.element=z;W.targetedElements.set(z,B);_.VqD(W,B,G)};
Jn4=function(W,B){var z=W.targetedElements.get(B);if(z){var G=W.targetMap.get(z);G&&(delete G.element,W.targetMap.set(z,G));W.targetedElements.delete(B);W.visibilityObserver&&W.visibilityObservedElementHandlerKeys&&(z=W.visibilityObservedElementHandlerKeys.get(B))&&(W.visibilityObserver.unobserveByKey(z),W.visibilityObservedElementHandlerKeys.delete(B))}};
_.VqD=function(W,B,z){var G=z.action,Y=z.element;Y&&G&&(v4R.includes(B)||_.eD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||W.visibilityMonitor&&W.visibilityMonitor.isNodeVisible(Y)?s47(W,B,z):W.visibilityObserver&&(W.visibilityObservedElementHandlerKeys||(W.visibilityObservedElementHandlerKeys=new WeakMap),G=W.visibilityObserver.observe(Y,function(){s47(W,B,z);W.visibilityObservedElementHandlerKeys.delete(Y)},{calledOnce:!0,
state:"visible"}),W.visibilityObservedElementHandlerKeys.set(Y,G)))};
s47=function(W,B,z){var G=z.action;(z=z.element)&&G&&(_.W4(W.JSC$13242_actionRouter,[G],z),W.targetMap.delete(B),W.targetedElements.delete(z),W.triggeredTargets.add(B))};
_.g4d=function(W,B){var z=W.targetMap.get(B);z||(z={},W.targetMap.set(B,z));return z};
_.aq=function(){wZu||(wZu=new cnM);return wZu};var PSM=document.createElement("div");PSM.style.touchAction="pan-down";var dVr=PSM.style.touchAction==="pan-down";var ZDD,rnF;ZDD=function(){this.hammerFn=SM4();this.JSC$13250_screenManager=_.SK();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.PA(83615);_.ed(this.JSC$13250_screenManager,this.ve);pDR()};
_.Rq=function(){rnF||(rnF=new ZDD);return rnF};
ZDD.prototype.registerTouchEvents=function(W,B,z){var G=_.nm.apply(3,arguments),Y=this.hammerFn(W,{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}]]});z&&Y.set({touchAction:z});this.nodeManagerMapping.set(W,Y);var d=
ABT(B);G=_.A(G);for(var E=G.next();!E.done;E=G.next()){E=E.value;if(E.includes("swipe")||E.includes("pinch")||E.includes("pan"))E.includes("swipe")?Y.get("swipe").set({enable:!0,direction:d,velocity:.2}):E.includes("pinch")?Y.get("pinch").set({enable:!0}):E.includes("pan")&&(Y.get("pan").set({enable:!0,direction:d}),Y.get("swipe").set({enable:!0,direction:d,velocity:.2}),Y.get("swipe").recognizeWith("pan"));kYd(this,W,Y,E)}};
var kYd=function(W,B,z,G){z.on(G,function(Y){if(G.includes("pinch"))W.lastPinchTime=Date.now();else if(G.includes("swipe")&&Date.now()-W.lastPinchTime<400)return;Y.pointerType!=="mouse"&&(Y=G==="doubletap"?{coordinates:Y.center}:G.includes("pan")?Y:G.includes("swipe")?{target:Y.target}:{},B.dispatchEvent(new CustomEvent(G,{bubbles:!0,composed:!0,detail:Y})))})};
ZDD.prototype.unregisterTouchEvents=function(W){var B=_.nm.apply(1,arguments),z=this.nodeManagerMapping.get(W);if(z){B=_.A(B);for(var G=B.next();!G.done;G=B.next())z.off(G.value);this.nodeManagerMapping.delete(W);W.style.touchAction="unset"}};var lTd=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var inX=null;var CSd=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},oPR=function(){CSd.instance||(CSd.instance=new CSd);
return CSd.instance},haX=function(W){var B=W.networkEvents;
W.networkEvents=[];return _.r("enable_network_monitoring")?B:[]};var IT7;IT7={};_.o44=GU("yt-serviceworker-metadata",{objectStores:(IT7.auth={addedAtVersion:1},IT7["resource-manifest-assets"]={addedAtVersion:2},IT7),shared:!0,upgrade:function(W,B){B(1)&&xb(W,"resource-manifest-assets");B(2)&&xb(W,"auth")},
version:2});var VZ0=self.location.origin+"/";JBu([/\.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\//]);JBu([/purge_shell=1/]);var hnR=void 0;hnR=hnR===void 0?[]:hnR;for(var HDH=[],FAF=_.A(EF6),Se9=FAF.next();!Se9.done;Se9=FAF.next())HDH.push({key:Se9.value});for(var bDu=_.A(hnR),j4Q=bDu.next();!j4Q.done;j4Q=bDu.next())HDH.push(j4Q.value);var fT7,$_=_.Yt==null?void 0:(fT7=_.Yt.performance)==null?void 0:fT7.memory,sF8=!1,Hnk={},rBk={},Ls={},Ul=navigator;var W7=function(W){this.JSC$13294_expiringStorage=new HS(W)};
W7.prototype.set=function(W,B,z){z=z!==void 0?Date.now()+z:void 0;this.JSC$13294_expiringStorage.set(W,B,z)};
W7.prototype.get=function(W){return this.JSC$13294_expiringStorage.get(W)};
W7.prototype.remove=function(W){this.JSC$13294_expiringStorage.remove(W)};var K5Q=_.ak(["https://www.youtube.com/",""]),uZT=_.ak(["https://studio.youtube.com/",""]),QFX="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",mVr=null,$V8;var ODR=_.ak(["https://www.youtube.com/iframe_api"]),B7=function(){this.playerResolver_=_.zN();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.j7;this.playbackDurationSeconds_=0},XZR=function(W){var B=function(){return window.YT&&typeof window.YT.ready==="function"};
if(B())return _.gV(window.YT);var z=_.zN(),G=_.I0("SCRIPT");G.onload=G.onreadystatechange=function(){G.readyState&&G.readyState!="loaded"&&G.readyState!="complete"||(G.onload=_.j7,G.onreadystatechange=_.j7,G.onerror=_.j7,B()?z.resolve(window.YT):z.reject(new _.oX("Failed to load the iframe player library","script.onload",G.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
G.onerror=function(Y){G.onload=_.j7;G.onreadystatechange=_.j7;G.onerror=_.j7;z.reject(new _.oX("Failed to load the iframe player library","script.onerror",Y&&Y.target&&Y.target.src))};
_.pN(G,_.sY(ODR));W.insertBefore(G,W.firstChild);return z.promise},KAT=function(W,B,z){var G,Y;
_.T(function(d){switch(d.nextAddress){case 1:return W.playbackEndedCallback_=z,_.kA(d,2),d.yield(XZR(B.parentElement||null),4);case 4:G=d.yieldResult;_.Nn(d,3);break;case 2:return Y=_.h6(d),Y instanceof _.oX&&Y.args&&Y.args[0]=="script.onerror"?_.Oc(Y):_.jy(Y),d.return();case 3:G.ready(function(){return new G.Player(B,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:W.onPlayerReady_.bind(W),onStateChange:W.onPlayerStateChange_.bind(W),
onCueRangeExit:W.onCueRangeExit_.bind(W)}})}),_.HG(d)}})};
_.p=B7.prototype;_.p.getPlayerPromise=function(){return this.playerPromise_};
_.p.onPlayerReady_=function(W){this.playerResolver_.resolve(W.target)};
_.p.onPlayerStateChange_=function(W){if(W.data==YT.PlayerState.PLAYING){W=W.target;var B=W.getCurrentTime();W.addCueRange("playback",B,B+this.playbackDurationSeconds_)}};
_.p.onCueRangeExit_=function(W){W.data=="playback"&&(W.target.stopVideo(),this.playbackEndedCallback_())};
_.p.stopVideo=function(){this.playerPromise_.then(function(W){W.stopVideo()})};
var uX6=function(W){W.playerVars_&&W.playerPromise_.then(function(B){typeof B.cueVideoByPlayerVars!="function"?_.Oc(new _.oX("vmh: player API not ready","cueVideoByPlayerVars",typeof B.cueVideoByPlayerVars)):B.cueVideoByPlayerVars(W.playerVars_)})};
B7.prototype.playVideo=function(){var W=this;this.playerVars_&&this.playerPromise_.then(function(B){typeof B.loadVideoByPlayerVars!="function"?(B=new _.oX("vmh: player API not ready","loadVideoByPlayerVars",typeof B.loadVideoByPlayerVars),_.jy(B)):B.loadVideoByPlayerVars(W.playerVars_)})};
var enM=function(W,B,z,G,Y){B&&(z===void 0&&(z=0),G===void 0&&(G=0),W.playbackDurationSeconds_=G/1E3,W.playerVars_={adformat:"17_8",videoId:B,suggestedQuality:"hd720",startSeconds:z/1E3,player_params:Y})};
B7.prototype.mute=function(){this.playerPromise_.then(function(W){W.mute()})};
B7.prototype.unMute=function(){this.playerPromise_.then(function(W){W.unMute()})};var mou=function(W,B){var z=nt();W||(W="unknown");B||(B="unknown");W="MAIN_APP_WEB_PAGE_TYPE_"+W.toUpperCase();W in UzR||(W="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");B="MAIN_APP_WEB_REQUEST_TYPE_"+B.toUpperCase();B in MYD||(B="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.wn(z,{mainAppWeb:{pageType:W,requestType:B,isShellLoad:_.md("IS_SHELL_LOAD",!1)}})},xo4={start:function(){_.wn(p40(),{mainAppWeb:_.GS()})},
success:function(){_.Vb(p40(),"SUCCESS")},
failure:function(){_.Vb(p40(),"FAILURE")},
cancelled:function(){_.Vb(p40(),"CANCELLED")}};var DoM,Q4U,Bsu;DoM=_.ak(["/sw.js"]);Q4U=_.ak(["/sw.js?0"]);_.ynU=_.sY(DoM);Bsu=_.sY(Q4U);var qeT=function(){var W=Error.apply(this,arguments);this.message=W.message;"stack"in W&&(this.stack=W.stack)};
_.C(qeT,Error);_.po.prototype.load=function(W){this.megabloxUrl_=_.eD("YPC_MB_URL");_.NO(this.megabloxUrl_,(0,_.jk)(function(){W&&W()},this))};
_.Wpx=function(W,B,z,G,Y,d,E,v,c,J,g){_.GXQ(c);W.load((0,_.jk)(function(){try{var t=d?d:_.eD("HL"),P=_.eD("SESSION_INDEX");_.edr("client",function(){g$4("59",{helpCenterPath:"/youtube",locale:t,window:window}).JSC$9976_loadChatSupport({authuser:String(P)})})}catch(Z){throw Yw(10,g,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),Y&&Y(Z),_.jy(Z),Z;
}n47(this,B,z,G,Y,d,E,v,c,J,g)},W))};
_.po.prototype.openFixFlowDialog=function(W,B,z,G){this.load((0,_.jk)(function(){try{N$F(this,_.q6("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(W).withIntegratorCallback(B).load(z,G)}catch(Y){throw _.jy(Y),Y;}},this))};
var N$F=function(W,B,z,G){var Y=B.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.r("enable_window_constrained_buy_flow_dialog")&&(Y=Y.usingPopupStyle(_.q6("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));G&&(Y=Y.usingCloseCallback(G));B.bootstrap.fromPaymentsUrl(W.megabloxUrl_);W=B.bootstrap.asMashupMode(Y);z=z?z:_.eD("HL");W.usingGaiaIndex(_.eD("SESSION_INDEX")).usingLocale(z).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.r("enable_google_payments_buyflow_material2_style_web")?
W.usingStyle(":m2;pc=#444;ac=#065fd4"):W.usingStyle(":md;pc=#444;ac=#065fd4");return W},n47=function(W,B,z,G,Y,d,E,v,c,J,g){try{var t=_.q6("payments.business.integration");
if(!t)throw new qeT("payments.business.integration is undefined");var P=t.standaloneContextAuthId.forUserId(),Z=N$F(W,t,d,function(){d22(!1);v&&v()});
E&&Z.usingServerAnalyticsEventHandler(E);var l=Z.inStandaloneContext(P).buyFlow(function(b){if(b&&(!b.integratorData||b.integratorData===""||b.error))if(b.error!=null)if(String(b.error)==="-1")_.YiR(c);else{var O=String(b.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Yw(10,g,O,b.debugCode);_.d5(O,c,b.debugCode);O=new _.oX("PAYMENT_ERROR_MESSAGE::"+b.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+b.internalErrorDetails);
_.jy(O)}else Yw(10,g,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.d5("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",c,"EMPTY_INTEGRATOR_DATA"),_.jy(Error("hg"));z&&(d22(!1),z(b))}).withEncryptedParameters(B);
J&&l.withClientParameters(VOk(_.atu(J)));l.load(function(){Yw(24,g);_.D4("ttc",void 0,"commerce_transaction");uH("commerce_transaction");G&&(G(),d22(!0))},function(b){if(b==null?0:b.debugCode)var O=b==null?void 0:b.debugCode;
else if(!b||(b==null?0:b.debugCode))O="EMPTY_LOAD_FAILURE_ERROR",_.jy(Error(O));else{O="EMPTY_LOAD_FAILURE_DEBUG_CODE";var K=new _.oX("LOAD_FAILURE:"+b.message," DEBUG_CODE:"+O);_.jy(K)}Yw(10,g,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",O);_.d5("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",c,O);_.jy(b);Y&&Y(b)})}catch(b){throw b instanceof qeT&&(Yw(10,g,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),Y&&Y(b)),_.jy(b),b;
}};var $o7;$o7=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.MUR=function(W,B){B=B===void 0?!1:B;W=$o7.test(W)?_.bQ(W):null;!B&&window.payments||!W?(W=_.zN(),B=W.promise,W.resolve()):B=_.GU9(W,{attributes:{"data-payments-main":"",id:"payment-lib"}});return B};var LAQ;LAQ=_.ak(["//www.googletagmanager.com/gtm.js?id=",""]);_.zr=function(W,B){_.cA(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:B}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.eD("GL")}),B=_.I0("SCRIPT"),B.async=!0,_.pN(B,_.sY(LAQ,W)),B.id="gtm",W=document.getElementsByTagName("script"),W.length==0?document.head.appendChild(B):(W=W[0],W.parentNode.insertBefore(B,W)))};
_.Gr=function(W){if(W=JSON.parse(W))window.dataLayer=window.dataLayer||[],window.dataLayer.push(W)};var UoT,MqD;UoT=_.ak(["https://clients2.google.com/gr/gr_sync.js"]);_.L_R=function(){};
_.L_R.prototype.init=function(){if(MqD()){var W=_.zN();W.resolve();return W.promise}return _.GU9(_.sY(UoT)).then(function(){if(!MqD())throw Error("ig");},function(){throw Error("jg");
})};
_.Ua2=function(){if(!MqD())return"";var W=window.google.gr;W.init({async:{schedule:"sync"},merchantId:"youtube"});W.start();W=W.finish();return W==null?"":W};
MqD=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.S=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.C(_.S,PolymerFakeBaseClassWithoutHtml);_.SJ=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.C(_.SJ,PolymerFakeBaseClassWithoutHtml);var pHk=window.ShadyDOM;var x2X,e4X,QW8,ye0,nRu,NsT,Yz,g5;x2X=_.r("enable_shadydom_free_scoped_query_methods");e4X=_.r("enable_shadydom_free_scoped_node_methods");QW8=_.r("enable_shadydom_free_scoped_readonly_properties_batch_one");ye0=_.r("enable_shadydom_free_parent_node");nRu=_.r("enable_shadydom_free_children");NsT=_.r("enable_shadydom_free_last_child");Yz=window.ShadyDOM;_.r5=Yz&&Yz.noPatch&&Yz.wrap?Yz.wrap:Yz?function(W){return Yz.patch(W)}:function(W){return W};
g5=function(W){if(W instanceof ShadowRoot)this.host=(0,_.r5)(W.host),this.root=W;else if(W.$$){this.host=(0,_.r5)(W);var B;this.root=(B=W.root)!=null?B:this.host}else if(W.polymerController){this.host=(0,_.r5)(W);var z;this.root=(z=this.host.shadowRoot)!=null?z:this.host}else this.root=this.host=(0,_.r5)(W)};
m2R();D2y();$20();LJ8();qix();var aTM={querySelector:function(W,B){B=iYy(B,TS(W));W=_.vf(W);return cf(W).prototype.querySelector.call(W,B)},
querySelectorAll:function(W,B){B=iYy(B,TS(W));W=_.vf(W);return cf(W).prototype.querySelectorAll.call(W,B)}},RnM={appendChild:function(W,B){var z=TS(W),G=_.ER(B);
return _.KJx(_.vf(W),z?_.VU(B,z,G):B)},
cloneNode:function(W,B){var z=_.ER(W);W=_.vf(W);B=cf(W).prototype.cloneNode.call(W,B);return z?JH(B,z):B},
contains:function(W,B){var z=TS(W),G=_.ER(B);return z!==G?!1:u7u(W,B)},
insertBefore:function(W,B,z){var G=TS(W),Y=_.ER(B);W=_.vf(W);B=G?_.VU(B,G,Y):B;return cf(W).prototype.insertBefore.call(W,B,z)},
removeChild:function(W,B){var z=TS(W);W=_.vf(W);B=z?JH(B,z):B;return cf(W).prototype.removeChild.call(W,B)},
replaceChild:function(W,B,z){var G=TS(W),Y=_.ER(B);B=G?_.VU(B,G,Y):Y?JH(B,Y):B;z=G?JH(z,G):z;W=_.vf(W);return cf(W).prototype.replaceChild.call(W,B,z)},
getRootNode:function(W,B){B=B===void 0?{composed:!0}:B;var z;if(((z=B)!=null?z:{}).composed)W=PMR(W);else{B=W;for(W=Tsu(W);W;)B=W,W=ceT(W);W=B}return W}},MhD=QW8?{firstChild:Si2,
nextSibling:h4R,previousSibling:FJX,firstElementChild:bYk,lastElementChild:fSv,nextElementSibling:oRu,previousElementSibling:HYx,childNodes:OYR}:{};ye0&&(MhD.parentNode=ISt);nRu&&(MhD.children=XHX);NsT&&(MhD.lastChild=jWr);x2X&&U2R(aTM);e4X&&U2R(RnM);aS8();var R4R=function(W){this.node=W instanceof ShadowRoot?W.host:W};
WnX();Bvu();var YGt=new WeakMap;var plR=Symbol("Ad");var vDv=new Set(["tap","track","down","up"]),cTt=_.r("pbcm_fi_query_decorators");var d0=function(){return _.SJ.apply(this,arguments)||this};
_.C(d0,_.SJ);_.p=d0.prototype;_.p.getState=function(){return this.store.getState()};
_.p.dispatch=function(W){this.store.dispatch(W)};
_.p.beforeRegister=function(){if(this&&typeof this==="object"){var W;var B=!!this.useSignals||!((W=this.polymerController)==null||!W.useSignals)}else B=!1;if(!B&&this.properties)for(B=_.A(Object.keys(this.properties)),W=B.next();!W.done;W=B.next()){var z=W.value;W=this.properties[z];if(W.selector){if(W.computed)throw Error("pg");z=["reduxPropertiesRecomputeTrigger",'"'+z+'"'].concat(_.u7(W.selectorArgs||[])).join(",");W.computed="recomputeReduxSelector("+z+")"}}};
_.p.attached=function(){var W=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){W.reduxPropertiesRecomputeTrigger++}));
_.r("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.p.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.p.recomputeReduxSelector=function(W,B){var z=_.nm.apply(2,arguments),G=this.properties[B].selector;if(!G)throw Error("ng`"+B);return G.apply(null,[this.store.getState()].concat(_.u7(z)))};
_.p.select=function(W){var B=_.nm.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return W.apply(null,[this.store.getState()].concat(_.u7(B)))};
_.G5.Object.defineProperties(d0.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("og");}}});
d0.prototype.recomputeReduxSelector=d0.prototype.recomputeReduxSelector;_.Q([_.F(),_.y("design:type",Number)],d0.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.Q([_.bP()],d0);var pL=[],gDx={},no=function(){return d8.apply(this,arguments)||this};
_.C(no,d8);no.prototype._addPropertyEffect=function(W,B,z){if(B==="__observeEffects"&&z){var G,Y=(G=z.info.method)!=null?G:z.info.methodName;if(Y){var d=this[Y];this[Y]=function(){pL.push(Y);try{d==null||d.apply(this,arguments)}finally{pL.pop()}}}}_.QX._addPropertyEffect.apply(this,[W,
B,z])};
no.prototype._setPendingProperty=function(W,B,z){if(pL.length){var G=pL[pL.length-1],Y;(Y=gDx[this.is])!=null&&Y.has(G)||(tM2(this.is,G),_.Sy("polymerPropertyChangedInObserver",{componentName:this.is,observerName:G}))}return _.QX._setPendingProperty.apply(this,[W,B,z])};
_.Q([xDy()],no);var sa0=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Zdk,OR={};_.r("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=OR);var uP=function(){return _.SJ.apply(this,arguments)||this};
_.C(uP,_.SJ);uP.prototype._setUnmanagedPropertyToNode=function(W,B,z){W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!0);if(z!==W[B]||typeof z==="object")W[B]=z;W.is&&W.polymerController&&W.polymerController!==W&&X4(W.is,B,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!1)};
_.Q([_.bP()],uP);Pnv()&&(qA.prototype._setUnmanagedPropertyToNode=(new uP)._setUnmanagedPropertyToNode);_.Odv={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(W){},set polymerController(W){}}]};var qJ=function(){var W=d8.apply(this,arguments)||this;W.json=function(){};
return W};
_.C(qJ,d8);qJ.prototype.equals=function(W,B){return W===B};
qJ.prototype.isEmpty=function(W){var B;(B=!W)||(B=_.yR(W)&&W.length===0);return B};
_.Q([xDy()],qJ);var WUQ=function(W){W=uWk(W);YN.call(this,W)};
_.C(WUQ,YN);WUQ.prototype.addProvider=function(W){W=W.key?W:uWk([W])[0];var B=this.keyIdToIndex.get(W.key.id);if(B){if(IY0(W,this.providers[B]))throw Error("qg`"+W.key.displayName);}else YN.prototype.addProvider.call(this,W)};
var BX7=new WUQ([]);var zE6=!1;var bdR={};zE6||(SGv(),zE6=!0);
bdR.InjectBehavior={initializeInjection:function(){var W=this.provide;try{if((W=W!=null?W:[])&&W.length>0)for(var B=uWk(W),z=_.A(B),G=z.next();!G.done;G=z.next())BX7.addProvider(G.value);var Y=new Set;oDT(this.behaviors||[],Y);B={};for(var d=_.A(Y),E=d.next();!E.done;E=d.next()){var v=E.value;v.inject&&Object.assign(B,v.inject)}this.inject&&Object.assign(B,this.inject);for(var c=_.A(Object.keys(B)),J=c.next();!J.done;J=c.next()){var g=J.value,t=B[g];try{this[g]=BX7.resolve(t)}catch(P){throw P;}}}catch(P){throw Error(P.message);
}}};var fY2;var XlX=/\bclass\b/.test(function(){}.toString()),ebk=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var GnF=function(W){this.wasDefined=!0;Array.isArray(W)||W instanceof Array?(this.JSC$13423_getImpl=W[0],this.JSC$13423_setImpl=W[1]):this.JSC$13423_getImpl=W};
_.p=GnF.prototype;_.p.getWithPath=function(W){return DU0(this.JSC$13423_getImpl(),W)};
_.p.setWithPath=function(W,B){var z=this;if(W.length)throw Error("rg");if(!this.JSC$13423_setImpl)throw Error("sg");k$(function(){z.JSC$13423_setImpl(B)})};
_.p.notifyPath=function(){throw Error("tg");};
_.p.notifySplices=function(){throw Error("ug");};
_.p.getChangeRecordSignal=function(W,B){var z=this;if(W.length)throw Error("vg");return function(){var G=z.getWithPath(W);return{path:B!=null?B:"",base:G,value:G}}};
_.p.getSplicesSignal=function(){throw Error("wg");};
_.p.getPathMutationSignal=function(){throw Error("xg");};
_.p.pop=function(){throw Error("yg");};
_.p.push=function(){throw Error("zg");};
_.p.splice=function(){throw Error("Ag");};
_.p.unshift=function(){throw Error("Bg");};var Au=function(W){var B=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(W)||W instanceof Array?(this.JSC$13428_getImpl=W[0],this.JSC$13428_setImpl=W[1]):this.JSC$13428_getImpl=W;this.wasDefined=!1;Jy(function(){B.wasDefined=B.JSC$13428_getImpl()!==void 0})};
Au.prototype.getWithPath=function(W){return DU0(this.JSC$13428_getImpl(),W)};
Au.prototype.setWithPath=function(W,B){var z=this;if(W[W.length-1]!=="*"&&W[W.length-1]!=="splices"){var G=Jy(function(){return z.getWithPath([])});
if(W.length===0){if(!this.JSC$13428_setImpl)throw Error("Cg");if(G===B)return;this.wasDefined||(this.wasDefined=B!==void 0);k$(function(){z.JSC$13428_setImpl(B)})}else{for(var Y=0;Y<W.length-1;Y++){if(!G)return;
G=G[W[Y]]}Y=W[W.length-1];G&&(G[Y]=B);this.wasDefined||(this.wasDefined=W.length>1||B!==void 0)}YfM(this,W,{pathComponents:W,value:B})}};
Au.prototype.notifyPath=function(W,B){W.length===0?B&&this.setWithPath(W,B.value):YfM(this,W,{pathComponents:W,value:B==null?void 0:B.value,fallbackWhenUndefined:B==null?void 0:B.value})};
var YfM=function(W,B,z,G){if(W.setMutationSignal){var Y=++W.mutationIndex,d=[W.observedPath],E=W.observedPath,v;B.length===0&&(v=E);for(var c=0;c<B.length;c++){var J=E.subPaths[B[c]];if(!J)break;d.push(J);E=J;c===B.length-1&&(v=J)}for(B=!1;d.length;)E=d.shift(),E.data={index:Y,mutation:z,spliceMutationIndex:G},B||(B=E===v),B&&d.push.apply(d,_.u7(Object.values(E.subPaths)));k$(function(){W.setMutationSignal(Y)})}};
Au.prototype.notifySplices=function(W,B){var z=this,G=Jy(function(){return z.getWithPath(W)}),Y=[].concat(_.u7(W),["splices"]);
YfM(this,Y,{pathComponents:Y,value:{indexSplices:B}});if(G==null?0:G.length)B=this.mutationIndex,Y=[].concat(_.u7(W),["length"]),YfM(this,Y,{pathComponents:Y,value:G.length},B)};
var dQQ=function(W,B,z,G,Y,d){W.notifySplices(z,[{index:G,addedCount:Y,removed:d,object:B,type:"splice"}])},pBR=function(W,B){W=W.observedPath;
for(var z=0;z<B.length;z++){var G=B[z],Y=W.subPaths[G];Y||(Y={pathComponents:B.slice(0,z+1),subPaths:{}},W.subPaths[G]=Y);W=Y}},iq7=function(W,B,z){pBR(W,B);
if(!W.getMutationSignal){var G=_.A(_.g4(W.mutationIndex,void 0,"sNBMCd"));W.getMutationSignal=G.next().value;W.setMutationSignal=G.next().value}var Y=W.getMutationSignal;return _.r4(function(){Y();return z(AA4(W,B))},void 0,"zvsXEd")};
Au.prototype.getChangeRecordSignal=function(W,B){var z=this,G=this.mutationIndex,Y;return iq7(this,W,function(d){if(d&&d.index>G){var E=d.mutation;G=d.index;Y=void 0}d=Jy(function(){return z.getWithPath(W)});
if(E){var v=E.pathComponents[E.pathComponents.length-1],c=[].concat(_.u7(E.pathComponents));if(v==="splices"||v==="length")return{base:d,path:(B?[B].concat(_.u7(c)):c).join("."),value:E.value};var J=W.length>c.length?W:c,g;return{base:d!=null?d:E.fallbackWhenUndefined,path:(B?[B].concat(_.u7(J)):J).join("."),value:(g=Jy(function(){return z.getWithPath(J)}))!=null?g:E.fallbackWhenUndefined}}Y||(Y={base:d,
path:(B?[B].concat(_.u7(W)):W).join("."),value:d});return Y})};
Au.prototype.getSplicesSignal=function(W){var B=this.mutationIndex,z;return iq7(this,W,function(G){if(G&&G.index>B&&G.spliceMutationIndex!==B){var Y=G.mutation;B=G.index;z=void 0}return Y&&Y.pathComponents[Y.pathComponents.length-1]==="splices"?z=G=Y.value:z})};
Au.prototype.getPathMutationSignal=function(W){var B=this;pBR(this,W);if(!this.getMutationSignal){var z=_.A(_.g4(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=z.next().value;this.setMutationSignal=z.next().value}var G=this.getMutationSignal,Y=this.mutationIndex,d;return _.r4(function(){G();var E=AA4(B,W);if(E&&E.index>Y&&E.mutation&&Qax(E.mutation.pathComponents,W)){var v=E.mutation;Y=E.index}if(!d||Y!==d.index){var c,J;E=(J=Jy(function(){return B.getWithPath(W)}))!=null?J:(c=v)==null?
void 0:c.fallbackWhenUndefined;
d={index:Y,value:E}}return d},void 0,"RXYC9b")};
var AA4=function(W,B){W=W.observedPath;B=_.A(B);for(var z=B.next();!z.done;z=B.next())W=W.subPaths[z.value];return W.data};
Au.prototype.pop=function(W){var B=this,z=Jy(function(){return B.getWithPath(W)});
if(!(z instanceof Array))throw Error("Dg");var G=z.length>0,Y=z.pop();G&&dQQ(this,z,W,z.length,0,[Y]);return Y};
Au.prototype.push=function(W){var B=_.nm.apply(1,arguments),z=this,G=Jy(function(){return z.getWithPath(W)});
if(!(G instanceof Array))throw Error("Eg");var Y=G.length,d=G.push.apply(G,_.u7(B));B.length&&dQQ(this,G,W,Y,B.length,[]);return d};
Au.prototype.splice=function(W,B,z){var G=_.nm.apply(3,arguments),Y=this,d=Jy(function(){return Y.getWithPath(W)});
if(!(d instanceof Array))throw Error("Fg");B<0?B=d.length-Math.floor(-B):B&&(B=Math.floor(B));var E=d.splice.apply(d,[B,z].concat(_.u7(G)));(G.length||E.length)&&dQQ(this,d,W,B,G.length,E);return E};
Au.prototype.unshift=function(W){var B=_.nm.apply(1,arguments),z=this,G=Jy(function(){return z.getWithPath(W)});
if(!(G instanceof Array))throw Error("Gg");var Y=G.unshift.apply(G,_.u7(B));B.length&&dQQ(this,G,W,0,B.length,[]);return Y};var iu=function(W,B,z){this.model=W;this.unknownSignalResolver=B;this.options=z;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];B=_.A(aYx());W=B.next().value;B=B.next().value;this.owner=W;this.disposeImpl=B};
iu.prototype.dispose=function(){if(!this.isDisposed){for(var W=_.A(this.childSignalProxies),B=W.next();!B.done;B=W.next())B.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var EjQ=function(W,B){W=_.Y$(W.owner);try{B()}finally{_.Y$(W)}};
iu.prototype.effect=function(W){EjQ(this,function(){_.KR(W)})};
var TXD=function(W,B){W.options!=null||(W.options={});var z;(z=W.options).immutableProps!=null||(z.immutableProps=new Set);W.options.immutableProps.add(B)},lPD=function(W,B){B=""+B;
vjF(W,B);var z,G;if((z=W.options)==null?0:(G=z.immutableProps)==null?0:G.has(B))return!0;var Y;if((Y=W.model.__signalCache)==null?0:Y.has(B))z=W.model.__signalCache.get(B),Array.isArray(z)&&TXD(W,B);var d,E,v;return(v=(d=W.options)==null?void 0:(E=d.immutableProps)==null?void 0:E.has(B))!=null?v:!1},cAR=function(W,B){var z;
W.unknownSignalResolver&&(z=W.unknownSignalResolver(B));var G,Y;((G=W.options)==null?0:(Y=G.immutableProps)==null?0:Y.has(B))?z!=null||(z=new GnF(_.g4(W.model[B],void 0,"By5iP"))):z!=null||(z=new Au(_.g4(W.model[B],void 0,"CXghNc")));var d=W.model.hostElement;Object.defineProperty(W.model,B,{get:function(){kJR(d,B);return z.getWithPath([])},
set:function(E){Ko(d,B);W.setWithPath([B],E)},
configurable:!0});return z},vjF=function(W,B){var z,G,Y;
((z=W.model.__signalCache)==null||!z.has(B))&&((G=W.options)==null?0:(Y=G.externalSignalProps)==null?0:Y.has(B))&&W.model[B]},UR=function(W,B){B=""+B;
var z=W.signalCache[B];if(z!==void 0)return z;z=!1;vjF(W,B);var G;if((G=W.model.__signalCache)==null?0:G.has(B))if(z=W.model.__signalCache.get(B),Array.isArray(z))z=!0,TXD(W,B);else return W.signalCache[B]=W.model.__signalCache.get(B).signal,W.signalCache[B];var Y,d;G=(d=(Y=W.options)==null?void 0:Y.reactivityMode)!=null?d:0;var E,v;if(!((E=W.options)==null?0:(v=E.reactiveProps)==null?0:v.has(B))&&!z&&G===1)throw Error("Hg`"+B);Y=z?wBR(W,B):cAR(W,B);return W.signalCache[B]=Y},wBR=function(W,B){var z=
Object.getOwnPropertyDescriptor(W.model.constructor.prototype,B),G=function(){return W.model[B]};
return new GnF(z&&z.get&&!z.set?G:[G,function(Y){W.model[B]=Y}])};
iu.prototype.getWithPath=function(W){var B=_.A(W);W=B.next().value;B=B5(B);kJR(this.model.hostElement,""+W);return UR(this,W).getWithPath(B)};
iu.prototype.setWithPath=function(W,B){if(W.length){Ko(this.model.hostElement,W.join("."));var z=_.A(W);W=z.next().value;z=B5(z);UR(this,W).setWithPath(z,B)}};
iu.prototype.getPathMutationSignal=function(W){var B=_.A(W);W=B.next().value;B=B5(B);return UR(this,W).getPathMutationSignal(B)};
iu.prototype.notifyPath=function(W,B){var z=_.A(W);W=z.next().value;z=B5(z);UR(this,W).notifyPath(z,B)};
var VBd=function(W,B){if(B.type==="literal")return function(){return{rootWasDefined:!0,value:B.value}};
var z=$w(B.path),G=_.A(z),Y=G.next().value;G=B5(G);var d,E;if(B.type==="path"&&(z.length===1||((d=W.options)==null?0:(E=d.immutableProps)==null?0:E.has(Y))))return function(){var t=W.getWithPath(z.slice(0,1));t=DU0(t,z.slice(1));return{rootWasDefined:UR(W,z[0]).wasDefined,value:t}};
var v=UR(W,Y);if(B.type==="path"){var c=v.getPathMutationSignal(G);return function(){var t,P=(t=c())==null?void 0:t.value;return{rootWasDefined:v.wasDefined,value:P}}}if(B.type==="splices"){var J=v.getSplicesSignal(G);
return function(){var t=J();return{rootWasDefined:v.wasDefined,value:t}}}var g=v.getChangeRecordSignal(G,""+Y);
return function(){var t=g();return{rootWasDefined:v.wasDefined,value:t}}},LnR=function(W,B,z){var G=z.map(function(v){return VBd(W,v)}),Y=z.length===0,d=[],E=z.length!==1||z[0].type!=="path"?!1:!0;
W.effect(function(){for(var v=G.length,c=[],J=!!d.length,g=0;g<v;g++){var t=G[g](),P=t.rootWasDefined;t=t.value;Y||(Y=P);c[g]=t;E&&(c[g+v]=J?d[g]:c[g],d[g]=t)}Y&&uE(W.owner,function(){return void B.apply(null,_.u7(c))})})},yTt=function(W,B,z,G,Y){var d=UR(W,B);
Y!==void 0&&d.setWithPath([],Y);LnR(W,function(){var E=_.nm.apply(0,arguments);Ko(W.model.hostElement,B,!0);d.setWithPath([],z.apply(null,_.u7(E)))},G)};
iu.prototype.arrayPush=function(W){var B=_.nm.apply(1,arguments),z=_.A(W),G=z.next().value;z=B5(z);G=UR(this,G);return G.push.apply(G,[z].concat(_.u7(B)))};
iu.prototype.arraySplice=function(W,B,z){var G=_.nm.apply(3,arguments),Y=_.A(W),d=Y.next().value;Y=B5(Y);d=UR(this,d);return d.splice.apply(d,[Y,B,z].concat(_.u7(G)))};
iu.prototype.arrayUnshift=function(W){var B=_.nm.apply(1,arguments),z=_.A(W),G=z.next().value;z=B5(z);G=UR(this,G);return G.unshift.apply(G,[z].concat(_.u7(B)))};
iu.prototype.notifySplices=function(W,B){var z=_.A(W);W=z.next().value;z=B5(z);UR(this,W).notifySplices(z,B)};var JAF=!0,gj9=!1,CSR=!1,tBU=!1,shQ=0;tBU=!1;shQ=0;JAF=!0;gj9=CSR=!1;var YDy=/([^\s]+?)\(([\s\S]*)\)/,BG8=/\.([^.]+)$/,pm2=/\\,/g,Rbx=/&comma;/g,WWk=/\\(.)/g,dhy=[],zLy={"*":"wildcard",splices:"splices"};var gQX=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"),cUT=/[A-Z]/,PCM=["class","hidden","id","on-dom-change"],sbk=new Set([].concat(_.u7(PCM),
["if","notify-dom-change","restamp"])),P48=new Set([].concat(_.u7(PCM),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),ZMR=new Set(["restamp"]);var Zqr=new Set(["className","id"]);var IPt=Symbol(),jbt=window;var xhT=window;var $h2=0,yUT=0,MJ=[],NGX=0,QbX=!1,nQX=document.createTextNode("");(new window.MutationObserver(qDr)).observe(nQX,{characterData:!0});var RN=new Map,aN=0,Zq4=function(W){this.mappedHandleId=W},UhR=function(W,B,z,G){this.mappedHandleId=W;
var Y=this;this.mappedHandleId=W;this.callback=B;this.waitTime=z;this.schedulerPriority=G;this.handleId=_.fg.addJob(function(){Y.callback();RN.delete(Y.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.C(UhR,Zq4);UhR.prototype.cancel=function(){_.fg.cancelJob(this.handleId);RN.delete(this.mappedHandleId)};
var MV2=function(W,B){this.mappedHandleId=W;var z=this;this.mappedHandleId=W;this.callback=B;this.handleId=LWt(function(){z.callback();RN.delete(z.mappedHandleId)})};
_.C(MV2,Zq4);MV2.prototype.cancel=function(){var W=this.handleId-yUT;W<0||MJ.length<=W||(MJ[W]=null);RN.delete(this.mappedHandleId)};var B$x=function(){};
B$x.prototype.cancel=function(){this.jobHandle!==void 0&&(aP0(this.jobHandle),this.jobHandle=void 0)};
B$x.prototype.run=function(W,B,z){var G=this;this.cancel();this.callback=W;this.jobHandle=_.WJ(function(){W();G.callback=void 0},B,z)};
B$x.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var RLu=new WeakMap;var rA6=gI(function(W){for(var B=W,z=0;z<3;z++)B=Object.getPrototypeOf(B);delete B.prototype.connectedCallback;var G=function(){return W.apply(this,arguments)||this};
_.C(G,W);G.prototype._attachDom=function(Y){if(!Y)return null;var d=(0,_.r5)(this.hostElement);d.attachShadow({mode:"open",shadyUpgradeFragment:Y});d.shadowRoot.appendChild(Y);return d.shadowRoot};
G.prototype._takeAttributes=function(){for(var Y=this.hostElement.attributes,d=0;d<Y.length;d++){var E=Y[d],v=void 0,c=void 0;(c=(v=this).__attributeReaction)==null||c.call(v,E.name,null,E.value)}};
G.prototype._readyClients=function(){W.prototype._readyClients.call(this);this.root=this};
G.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);W.prototype.connectedCallback.call(this)};
_.G5.Object.defineProperties(G,{template:{configurable:!0,enumerable:!0,get:function(){return G.prototype._template}}});
return G}),knU=gI(function(W){var B=function(){return W.apply(this,arguments)||this};
_.C(B,W);B.prototype.created=function(){if(this.__notifyEffects)for(var z=_.A(Object.values(this.__notifyEffects)),G=z.next();!G.done;G=z.next()){G=_.A(G.value);for(var Y=G.next();!Y.done;Y=G.next())Y.value.fn=doT}if(this.__reflectEffects)for(z=_.A(Object.values(this.__reflectEffects)),G=z.next();!G.done;G=z.next())for(G=_.A(G.value),Y=G.next();!Y.done;Y=G.next())Y.value.fn=pZX};
B.prototype._addEventListenerToNode=function(z,G,Y){z=zs(z);XQ(z,G,Y)||W.prototype._addEventListenerToNode.call(this,z,G,Y)};
B.prototype._removeEventListenerFromNode=function(z,G,Y){z=zs(z);ej(z,G,Y)||W.prototype._removeEventListenerFromNode.call(this,z,G,Y)};
B.prototype._propertiesChanged=function(z,G,Y){if(this.__dataToNotify&&this.__notifyEffects)for(var d=_.A(Object.keys(this.__dataToNotify)),E=d.next();!E.done;E=d.next()){E=E.value;var v=Ye0(E);this.__notifyEffects[v]||delete this.__dataToNotify[E]}else this.__dataToNotify=null;W.prototype._propertiesChanged.call(this,z,G,Y)};
B.prototype.fire=function(z,G,Y){G=G===void 0?{}:G;var d;return _.v0(zs((d=Y==null?void 0:Y.node)!=null?d:this),z,G,Y)};
B.prototype._ensureAttribute=function(z,G){var Y=zs(this);Y.hasAttribute(z)||Lo(Y,G,z)};
B.prototype.isLightDescendant=function(z){var G=zs(this);return zs(G)!==z&&_.tH(G).contains(z)&&_.tH(G).getRootNode()===_.tH(z).getRootNode()};
return B});
_.Q3.ready=function(){var W;((W=this.hostElement)!=null?W:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var B;((B=this.hostElement)!=null?B:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Mp._subscribeIronResize=function(W){var B;((B=W.hostElement)!=null?B:W).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Mp._unsubscribeIronResize=function(W){var B;((B=W.hostElement)!=null?B:W).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var E4T=[Array,Boolean,Date,Number,Object,String],YB=function(W,B,z,G){this.polySiInfo=W;this.polySiParams=B;this.polySiContext=z;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;G||this instanceof HTMLElement&&(G=this);if(!G)throw Error("Og");this.allowedProps=B.allowedProps;this.hostElement=G;this.is=W.is;this.upgradeDisabled=!!B.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");W=new Set(B.reactiveSchemas.filter(function(Y){return Y.type!==
"observe"}).map(function(Y){return Y.propertyKey}));
this.signalProxy=new iu(this,void 0,{reactiveProps:W,reactivityMode:B.reactivityMode});this.__dataHasAccessor={};B=_.A(B.reactiveSchemas);for(W=B.next();!W.done;W=B.next())W=W.value,W.type==="signal"&&(this.__dataHasAccessor[W.propertyKey]=!0);this.upgradeDisabled||lCR(this)};
YB.prototype.getExtraMethodsToForward=function(){return[]};
var lCR=function(W){W.polySiContext.didRegister||(W.registered(),W.polySiContext.didRegister=!0);W.polySiContext.finalizedTemplate||(W.polySiContext.finalizedTemplate={},W.polySiParams.templateGetter&&(W.polySiContext.finalizedTemplate.processedTemplate=Dhx(W.polySiParams.templateGetter,W.polySiParams.is)));CCD(W);var B=W.hostElement;B.loggingStatus!=null||(B.loggingStatus={});B.loggingStatus.isInitializing=!0;Jy(function(){return void W.created()});
B.loggingStatus.isInitializing=!1;W.isPolySiElementConnected&&ICH(W)},ICH=function(W){W.didCallReady||(Jy(function(){return void W.ready()}),W.didCallReady=!0);
W.isAttached=!0;W.attached()};
_.p=YB.prototype;_.p.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||ICH(this)};
_.p.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.p.attributeChangedCallback=function(W,B,z){if(this.upgradeDisabled)W==="disable-upgrade"&&z===null&&(this.upgradeDisabled=!1,lCR(this));else if(B!==z){var G=_.ly(W),Y=this.polySiContext.typesForSignals[G];if(Y&&(!this.reflecting||_.r("polysi_attribute_changed_serializing_killswitch"))){switch(Y){case Object:try{var d=JSON.parse(z)}catch(v){d=z}break;case Array:try{d=JSON.parse(z)}catch(v){d=null}break;case Date:d=isNaN(z)?String(z):Number(z);d=new Date(d);break;case Boolean:d=z!==null;break;case Number:d=
Number(z);break;default:d=z}this[G]=d}G=_.A(this.polySiParams.behaviors);for(Y=G.next();!Y.done;Y=G.next())d=void 0,(d=Y.value.attributeChanged)==null||d.call(this,W,B,z);var E;(E=this.attributeChanged)==null||E.call(this,W,B,z)}};
_.p.attributeChangedCallbackWrapper=function(W,B,z){this.attributeChangedCallback(W,B,z)};
_.p.setPropertiesFromInitialAttributeValues=function(){for(var W=0;W<this.hostElement.attributes.length;W++){var B=this.hostElement.attributes[W];(B.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(B.name))&&this.attributeChangedCallback(B.name,null,B.value)}};
_.p.created=function(){this.provide=this.polySiParams.provide;var W;(W=this.initializeInjection)==null||W.call(this);W=_.A(this.polySiParams.reactiveSchemas);for(var B=W.next();!B.done;B=W.next())B=B.value,B.type==="signal"&&(this.mutablePropNames.add(B.propertyKey),UR(this.signalProxy,B.propertyKey));iDr(this,this.polySiInfo,this.polySiParams.behaviors);W=_.A(this.polySiParams.reactiveSchemas);for(B=W.next();!B.done;B=W.next())B=B.value,B.type==="signal"&&B.value!==void 0&&(this.signalProxy.model[B.propertyKey]=
typeof B.value==="function"?B.value.call(this):B.value);if(this.polySiParams.signalProperties)for(W=_.A(this.polySiParams.signalProperties),B=W.next();!B.done;B=W.next()){B=B.value;var z=void 0;((z=this.__signalCache)==null?0:z.has(B))||(this.signalProxy.model[B]=void 0)}tBU||ojF(this);AnR(this);W=_.A(this.polySiParams.behaviors);for(B=W.next();!B.done;B=W.next())z=void 0,(z=B.value.created)==null||z.call(this);var G;(G=this.polySiInfo.created)==null||G.call(this)};
_.p.registered=function(){var W=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var B=Object.getPrototypeOf(this);B.addReactiveSchema=function(v){W.polySiParams.reactiveSchemas.push(v)};
for(var z=_.A(this.polySiParams.behaviors),G=z.next();!G.done;G=z.next()){var Y=void 0;(Y=G.value.beforeRegister)==null||Y.call(B)}var d;(d=this.polySiInfo.beforeRegister)==null||d.call(B);B.addReactiveSchema=v4x;z=_.A(this.polySiParams.behaviors);for(G=z.next();!G.done;G=z.next())Y=void 0,(Y=G.value.registered)==null||Y.call(B);var E;(E=this.polySiInfo.registered)==null||E.call(B)};
_.p.ready=function(){var W;(W=this.beforeReady)==null||W.call(this);tBU&&ojF(this);var B;if(W=(B=this.polySiContext.finalizedTemplate)==null?void 0:B.processedTemplate){W=mhX(W.template,W.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:W.hasInsertionPoint,thisCtx:this});B=W.nodesById;W=W.root;var z=this.hostElement;var G=G===void 0?!1:G;z=(0,_.r5)(z);if(!z.attachShadow)throw Error("Gd");if(!z.shadowRoot||G)z.attachShadow({mode:"open",shadyUpgradeFragment:W}),z.shadowRoot.appendChild(W);
this.root=z.shadowRoot;this.$=B}hE4(this);G=_.A(this.polySiParams.behaviors);for(B=G.next();!B.done;B=G.next())W=void 0,(W=B.value.ready)==null||W.call(this);var Y;(Y=this.polySiInfo.ready)==null||Y.call(this)};
_.p.attached=function(){for(var W=_.A(this.polySiParams.behaviors),B=W.next();!B.done;B=W.next()){var z=void 0;(z=B.value.attached)==null||z.call(this)}var G;(G=this.polySiInfo.attached)==null||G.call(this)};
_.p.detached=function(){for(var W=_.A(this.polySiParams.behaviors),B=W.next();!B.done;B=W.next()){var z=void 0;(z=B.value.detached)==null||z.call(this)}var G;(G=this.polySiInfo.detached)==null||G.call(this)};
var CCD=function(W){for(var B=_.A(W.polySiParams.behaviors),z=B.next();!z.done;z=B.next())if(z=z.value,z.listeners)for(var G in z.listeners)eL2(W,W.hostElement,G,z.listeners[G]);if(W.polySiInfo.listeners)for(var Y in W.polySiInfo.listeners)eL2(W,W.hostElement,Y,W.polySiInfo.listeners[Y])},eL2=function(W,B,z,G,Y){W=xUR(W,G,Y);
XQ(B,z,W)||B.addEventListener(z,W);return W},ojF=function(W){for(var B=_.A(W.polySiParams.reactiveSchemas),z=B.next();!z.done;z=B.next())z=z.value,z.type==="compute"||z.type==="computeWithMethod"?qGQ(W.signalProxy,z,W):z.type==="redux"?$U8(W.signalProxy,z,W.store):z.type==="signal"&&z.readOnly&&Nvv(W.signalProxy,z)},hE4=function(W){for(var B=_.A(W.polySiParams.reactiveSchemas),z=B.next(),G={};!z.done;G={schema$jscomp$12:void 0},z=B.next())G.schema$jscomp$12=z.value,G.schema$jscomp$12.type==="notify"?
UUT(W.signalProxy,G.schema$jscomp$12,W.hostElement):G.schema$jscomp$12.type==="observe"?MMk(W.signalProxy,G.schema$jscomp$12,W):G.schema$jscomp$12.type==="reflect"&&W.signalProxy.effect(function(d){return function(){var E=W.signalProxy.getWithPath([d.schema$jscomp$12.propertyKey]);
W.reflecting=!0;iMx(W.hostElement,d.schema$jscomp$12.propertyKey,E,!0);W.reflecting=!1}}(G));
if(W.reflectedAttributes)for(B=_.A(Object.entries(W.reflectedAttributes)),G=B.next(),z={};!G.done;z={key$jscomp$934:void 0,value$jscomp$9802:void 0},G=B.next()){var Y=_.A(G.value);G=Y.next().value;Y=Y.next().value;z.key$jscomp$934=G;z.value$jscomp$9802=Y;W.signalProxy.effect(function(d){return function(){W.reflecting=!0;iMx(W.hostElement,d.key$jscomp$934,(0,d.value$jscomp$9802)(),!0);W.reflecting=!1}}(z))}};
_.p=YB.prototype;_.p._setPendingProperty=function(W,B){this.set(W,B);return!1};
_.p._enableProperties=function(){};
_.p._setPendingPropertyOrPath=function(W,B){this.notifyPath(W,B);return!1};
_.p._addPropertyEffect=function(){};
_.p._stampTemplate=function(){throw Error("Pg");};
_.p.fire=function(W,B,z){B=B===void 0?{}:B;z=z===void 0?{}:z;var G,Y,d={bubbles:(G=z.bubbles)!=null?G:!0,cancelable:!!z.cancelable,composed:(Y=z.composed)!=null?Y:!0},E;return _.v0(cnt((E=z.node)!=null?E:this.hostElement),W,B,d)};
_.p.get=function(W,B){var z=$w(W);return B?DU0(B,z):W==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(z)};
_.p.linkPaths=function(){};
_.p.listen=function(W,B,z){W=cnt(W);this.boundListeners!=null||(this.boundListeners=new WeakMap);var G=this.boundListeners.get(W);G||(G={},this.boundListeners.set(W,G));var Y=B+z;G[Y]||(G[Y]=eL2(this,W,B,z))};
_.p.notifyPath=function(W,B){this.signalProxy.notifyPath($w(W),arguments.length===2?{value:B}:void 0)};
_.p.canNotifyPath=function(W){return this.mutablePropNames.has(W)&&!lPD(this.signalProxy,W)};
_.p.notifySplices=function(W,B){this.signalProxy.notifySplices($w(W),B)};
_.p.pop=function(W){var B=this.signalProxy;W=$w(W);var z=_.A(W);W=z.next().value;z=B5(z);return UR(B,W).pop(z)};
_.p.push=function(W){var B=_.nm.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[$w(W)].concat(_.u7(B)))};
_.p.set=function(W,B,z){if(z)throw Error("Qg");W==="hidden"?this.hostElement.hidden=!!B:this.signalProxy.setWithPath($w(W),B)};
_.p.setProperties=function(W){W=_.A(Object.entries(W));for(var B=W.next();!B.done;B=W.next()){var z=_.A(B.value);B=z.next().value;z=z.next().value;this[B]=z}};
_.p.splice=function(W,B,z){var G=_.nm.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[$w(W),B,z].concat(_.u7(G)))};
_.p.unlinkPaths=function(){};
_.p.unlisten=function(W,B,z){W=cnt(W);if(this.boundListeners){var G=this.boundListeners.get(W);if(G){z=B+z;var Y=G[z];Y&&(ej(W,B,Y)||W.removeEventListener(B,Y),delete G[z])}}};
_.p.unshift=function(W){var B=_.nm.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[$w(W)].concat(_.u7(B)))};
_.G5.Object.defineProperties(YB.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 lTR=[Array,Boolean,Date,Number,Object,String];var o4r=!1;var E6=function(){var W=HTMLElement.apply(this,arguments)||this;W.restamp=!1;W.notifyDomChange=!1;W.JSC$13536_didCallConnected=!1;W.JSC$13536_renderDebouncer=null;W.disableTemplateUpdateSignalImpl=da()?void 0:_.g4(!1,void 0,"Ofhkwb");var B;W.getDisableTemplateUpdate=(B=W.disableTemplateUpdateSignalImpl)==null?void 0:B[0];var z;W.setDisableTemplateUpdate=(z=W.disableTemplateUpdateSignalImpl)==null?void 0:z[1];return W};
_.C(E6,HTMLElement);var HqH=function(W){W.conditionSignalImpl!=null||(W.conditionSignalImpl=new Au(_.g4(!1,void 0,"gE52Fb")));return W.conditionSignalImpl};
_.p=E6.prototype;_.p.showHideChildren=function(W){FUd(this,W,this.if)};
_.p.attributeChangedCallback=function(W,B,z){if(this.JSC$13536_didCallConnected)throw Error("Ug`"+W);W==="notify-dom-change"?this.notifyDomChange=z!==null:W==="restamp"&&(this.restamp=z!==null)};
_.p.debounceRender=function(){this.JSC$13536_renderDebouncer=_.hf(this.JSC$13536_renderDebouncer,xF,this.JSC$13536_renderImpl.bind(this));_.H4(this.JSC$13536_renderDebouncer)};
_.p.disconnectedCallback=function(){var W=(0,_.r5)(this).parentNode;(!W||W.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in W&&!W.host)&&Sfd(this)};
_.p.connectedCallback=function(){var W=this;this.JSC$13536_didCallConnected=!0;JAF?hnQ():this.style.display="none";this.parentSignalProxy.effect(function(){HqH(W).getWithPath([]);W.debounceRender()})};
_.p.render=function(){_.jY()};
_.p.JSC$13536_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var W=this.if,B=!1;if(W){this.hasInstance()||(bqR(this),B=!0);a:{var z=(0,_.r5)(this).parentNode;if(this.hasInstance()){var G=this.instance.children;if((G==null?0:G.length)&&(0,_.r5)(this).previousSibling!==G[G.length-1])for(var Y=0;Y<G.length;Y++)(0,_.r5)(z).insertBefore(G[Y],this)}else{if(!z){z=!1;break a}jhD(this,z)}z=!0}if(!z)return}else this.restamp&&Sfd(this);FUd(this,!1,W);W&&!B&&bqR(this);gj9&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.p.hasInstance=function(){return!!this.instance};
var jhD=function(W,B){var z=W.parentSignalProxy;if(da()){var G=_.A(_.g4(!0,void 0,"yf4Yhf"));var Y=G.next().value;G=G.next().value;z=W.parentSignalProxy}else{var d;var E=new iu((d=fCF(W))!=null?d:{},function(c){var J=UR(W.parentSignalProxy,c).getChangeRecordSignal([]);c=_.g4(void 0,void 0,"oT9mkc");var g=new Au(c);E.effect(function(){if(W.getDisableTemplateUpdate&&!W.getDisableTemplateUpdate()){var t=J();g.notifyPath($w(t.path),{value:t.value})}});
return g});
W.parentSignalProxy.childSignalProxies.push(E);var v=z=E}z=mhX(W.templateInfo,W.templateInfo.nodeInfoList,z,{eventListenerHost:W.eventListenerHost,hasInsertionPoint:W.templateInfo.hasInsertionPoint,thisCtx:W.eventListenerHost,enabledSignal:da()?Y:void 0,getModel:function(){return fCF(W)}}).root;
W.instance={root:z,children:[],hidden:!1,signalProxy:v,getTemplateUpdatesEnabled:Y,setTemplateUpdatesEnabled:G};v=_.A(z.childNodes);for(Y=v.next();!Y.done;Y=v.next())W.instance.children.push(Y.value);(0,_.r5)(B).insertBefore(W.instance.root,W)},fCF=function(W){if((W=W.parentSignalProxy.model)&&!W.hostElement){var B={},z;
for(z in W)W.hasOwnProperty(z)&&(B[z]=W[z]);return B}},Sfd=function(W){if(W.instance){var B=W.instance.children;
if(B.length){var z=(0,_.r5)(B[0]).parentNode;if(z){z=(0,_.r5)(z);for(var G=0;G<B.length;G++)z.removeChild(B[G])}}da()?W.instance.setTemplateUpdatesEnabled(!1):W.instance.signalProxy.dispose();W.instance=void 0}},FUd=function(W,B,z){B=B||!z;
W.instance&&W.instance.hidden!==B&&(W.instance.hidden=B,ITu(B,W.instance.children))},bqR=function(W){if(da()){var B=W.instance;
B&&uE(W.parentSignalProxy.owner,function(){return!B.getTemplateUpdatesEnabled()})&&B.setTemplateUpdatesEnabled(!0)}else W.setDisableTemplateUpdate(!1)};
_.G5.Object.defineProperties(E6.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var W=this;return uE(this.parentSignalProxy.owner,function(){return HqH(W).getWithPath([])})},
set:function(W){W||(da()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));HqH(this).setWithPath([],!!W)}}});
_.G5.Object.defineProperties(E6,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",E6);var OqR=[],Tr=function(){var W=HTMLElement.apply(this,arguments)||this;W.as="item";W.indexAs="index";W.itemsIndexAs="itemsIndex";W.targetFramerate=20;W.notifyDomChange=!1;W.isDetached=!1;W.JSC$13543_renderDebouncer=null;W.instances=[];W.chunkingId=null;W.chunkCount=null;W.shouldMeasureChunk=!1;W.shouldContinueChunking=!1;W.renderStartTime=null;W.JSC$13543_didCallConnected=!1;return W};
_.C(Tr,HTMLElement);var XBF=function(W){W.itemSignalImpl!=null||(W.itemSignalImpl=new Au(_.g4(OqR,void 0,"YBrqgf")));return W.itemSignalImpl},KUu=function(W,B){Array.isArray(B)||(B=OqR);
XBF(W).setWithPath([],B)};
_.p=Tr.prototype;_.p.showHideChildren=function(W){for(var B=_.A(this.instances),z=B.next();!z.done;z=B.next())ITu(W,z.value.children)};
_.p.notifyPath=function(W,B){W=$w(W);W[0]==="items"&&(W.length===1?KUu(this,B):XBF(this).setWithPath(W.slice(1),B))};
_.p.canNotifyPath=function(W){return W==="items"};
_.p.attributeChangedCallback=function(W,B,z){if(this.JSC$13543_didCallConnected)throw Error("Vg`"+W);W==="as"?this.as=z:W==="index-as"?this.indexAs=z:W==="items-index-as"?this.itemsIndexAs=z:W==="initial-count"?this.initialCount=Number(z):W==="notify-dom-change"?this.notifyDomChange=z!==null:W==="target-framerate"&&(this.targetFramerate=Number(z))};
_.p.disconnectedCallback=function(){this.isDetached=!0;for(var W=0;W<this.instances.length;W++)u1U(this,W);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.p.connectedCallback=function(){var W=this,B=XBF(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var Y=B(),d=$w(Y.path);if(d[0]===void 0||d[0]==="splices"||d[0]==="length")W.debounceRender();else{var E=d[0];if(E=W.instances[typeof E==="string"?Math.floor(Number(E)):E])d=[W.as].concat(_.u7(d.slice(1))),E.signalProxy.notifyPath(d,Y)}});
this.JSC$13543_didCallConnected=!0;JAF?hnQ():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var z=(0,_.r5)((0,_.r5)(this).parentNode),G=0;G<this.instances.length;G++)z.insertBefore(this.instances[G].root,this);this.chunkingId&&this.render()}};
_.p.debounceRender=function(){this.JSC$13543_renderDebouncer=_.hf(this.JSC$13543_renderDebouncer,xF,this.JSC$13543_renderImpl.bind(this));_.H4(this.JSC$13543_renderDebouncer)};
_.p.render=function(){this.debounceRender();_.jY()};
_.p.JSC$13543_renderImpl=function(){var W=this;if(!this.parentSignalProxy.isDisposed){var B=this.items,z=eET(this,B.length);mQ4(this,B,z);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){W.chunkingId=null;if(W.shouldMeasureChunk){var G=performance.now()-W.renderStartTime;W.chunkCount=Math.round(Math.ceil(1E3/W.targetFramerate)/G*W.chunkCount)||1}W.shouldContinueChunking&&W.debounceRender()}));
gj9&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var eET=function(W,B){var z=B,G=W.instances.length;if(W.initialCount){if(W.chunkCount){var Y=Math.min(Math.max(B-G,0),W.chunkCount);z=Math.min(G+Y,B)}else z=Math.min(B,W.initialCount),Y=Math.max(z-G,0),W.chunkCount=Y||1;W.shouldMeasureChunk=Y===W.chunkCount;W.shouldContinueChunking=z<B;W.renderStartTime=performance.now()}return z},mQ4=function(W,B,z){for(var G=0;G<z;G++){var Y=W.instances[G],d=B[G];
Y?(Y.signalProxy.setWithPath([W.as],d),Y.signalProxy.setWithPath([W.indexAs],G)):xQF(W,d,G)}for(B=W.instances.length-1;B>=G;B--)z=W,Y=B,u1U(z,Y),_.A(z.instances.splice(Y,1)).next().value.signalProxy.dispose()},u1U=function(W,B){W=W.instances[B];
B=(0,_.r5)(W.root);for(var z=0;z<W.children.length;z++)B.appendChild(W.children[z])},xQF=function(W,B,z){var G={};
B=Object.assign({},DQD(W),(G[W.as]=B,G[W.indexAs]=z,G[W.itemsIndexAs]=z,G));var Y=new iu(B,function(E){if(E!==W.as&&E!==W.indexAs){if(E===W.itemsIndexAs)return UR(Y,W.indexAs);var v=UR(W.parentSignalProxy,E).getChangeRecordSignal([]);E=_.g4(void 0,void 0,"T21Pqc");var c=new Au(E);Y.effect(function(){var J=v();c.notifyPath($w(J.path),{value:J.value})});
return c}});
W.parentSignalProxy.childSignalProxies.push(Y);G=mhX(W.templateInfo,W.templateInfo.nodeInfoList,Y,{eventListenerHost:W.eventListenerHost,getModel:function(){var E={};return Object.assign({},DQD(W),(E[W.as]=Y.model[W.as],E[W.indexAs]=Y.model[W.indexAs],E[W.itemsIndexAs]=Y.model[W.indexAs],E))},
hasInsertionPoint:W.templateInfo.hasInsertionPoint,thisCtx:W.eventListenerHost,methodInvocationRequirement:shQ,enabledSignal:W.stampingEnabled}).root;B={root:G,children:[],signalProxy:Y};G=_.A(G.childNodes);for(var d=G.next();!d.done;d=G.next())B.children.push(d.value);G=(G=W.instances[z+1])?G.children[0]:W;(0,_.r5)((0,_.r5)(W).parentNode).insertBefore(B.root,G);W.instances[z]=B},DQD=function(W){if((W=W.parentSignalProxy.model)&&!W.hostElement){var B={},z;
for(z in W)W.hasOwnProperty(z)&&(B[z]=W[z]);return B}};
Tr.prototype.itemForElement=function(W){var B=this,z=this.instances.find(function(G){return G.children.includes(W)});
if(z)return uE(this.parentSignalProxy.owner,function(){return z.signalProxy.getWithPath([B.as])})};
Tr.prototype.indexForElement=function(W){var B=this.instances.findIndex(function(z){return z.children.includes(W)});
return B>=0?B:void 0};
_.G5.Object.defineProperties(Tr.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var W=this;return uE(this.parentSignalProxy.owner,function(){return XBF(W).getWithPath([])})},
set:function(W){KUu(this,W)}},
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}}});
_.G5.Object.defineProperties(Tr,{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",Tr);var QhF,yA9;_.v7=new _.t1("STATE_STORE_TOKEN");QhF=new _.t1("SELECT_TOKEN");yA9=new _.t1("DISPATCH_TOKEN");var fTu={getSelectFn:function(){var W;return(W=_.dO().resolve(_.Y8(QhF)))!=null?W:HD2},
getDispatchFn:function(){var W;return(W=_.dO().resolve(_.Y8(yA9)))!=null?W:_.p8().dispatch.bind(_.p8())},
getAppStore:function(){return _.dO().resolve(_.v7)}},FAX,j4y=!1;var uXT,iYQ={traceAllComponents:_.r("web_tracing_all_components"),exportToCsi:_.r("web_tracing_export_to_csi"),exportBreadcrumbs:_.r("web_enable_tracing"),bufferSize:_.iO("web_max_tracing_events"),enabledSpansArray:_.T4("web_tracing_enabled_spans"),exportToDevTools:_.r("web_tracing_export_to_devtools")};uXT=new ER4;var Q4k=function(){};var moD=void 0;var qf4=function(){};
qf4.prototype.hasAttribute=function(W){if(W==="dir")return!1;if(W==="disable-upgrade"){var B,z;return(z=(B=this.hostElement)==null?void 0:B.hasAttribute("disable-upgrade"))!=null?z:!1}throw Error("Wg`"+W);};
qf4.prototype.attributeChangedCallbackWrapper=function(W,B,z){if(W==="disable-upgrade"&&this.__isUpgradeDisabled&&z===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var G;((G=this.hostElement)!=null?G:this).isConnected&&this.connectedCallback()}else B===z||this.__isReflecting||this.attributeChangedCallback(W,B,z)};
qf4.prototype.getExtraMethodsToForward=function(){for(var W=this,B=[],z=_.A(nj9),G=z.next(),Y={};!G.done;Y={tagName$jscomp$54:void 0,name$jscomp$599:void 0},G=z.next())Y.name$jscomp$599=G.value,G=void 0,Y.name$jscomp$599==="_setPendingProperty"?(Y.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),G=function(d){return function(E,v,c){X4(d.tagName$jscomp$54,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return W._setPendingProperty(E,v,c)}}(Y)):G=function(d){return function(){return W[d.name$jscomp$599].apply(W,
_.u7(_.nm.apply(0,arguments)))}}(Y),B.push([Y.name$jscomp$599,
G]);return B};
for(var n4u=knU(rA6((0,_.D3)(qf4))),UoR=["disabled","disable-upgrade"],NXH=(0,_.D3)(function(){}),$QR=new Set(Object.getOwnPropertyNames(NXH.prototype)),BXu=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.u7($QR))),aTt=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),nj9=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),LUU=new Set([].concat(_.u7(aTt),_.u7(nj9),_.u7($QR))),UQT=_.A(LUU),MBF=UQT.next();!MBF.done;MBF=UQT.next())sa0.add(MBF.value);var WUy={created:function(){AnR(this);this.initializeInjection()}};var TX8=!1,wa=window.ShadyDOM,shy=["appendChild","insertBefore","removeChild","replaceChild"],tBk=[Node];wa&&tBk.push(wa.Wrapper);var CC8,IC2,Hq2={};var JV=new Set,riT="";var V2,tV=new Set;var KUD=new Set("context didCallReady is info params signalProxy".split(" ")),eER="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),mQr="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var aCd=Z2({entities:H6u}),REM=new GR(aCd);var WSu=function(){return _.SJ.apply(this,arguments)||this};
_.C(WSu,_.SJ);_.G5.Object.defineProperties(WSu.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return REM}}});
_.Q([_.bP()],WSu);_.c7=[d0.prototype,WSu.prototype];_.w0={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var W=this,B={};setTimeout(function(){var z;return _.v0((z=W.hostElement)!=null?z:W,"yt-live-chat-add-tooltip-target",B)},0);
this.handler_=B.handler},
detached:function(){if(this.handler_){var W;this.handler_.removeElementFromSupportingTooltips((W=this.hostElement)!=null?W:this)}this.handler_=null}}};_.C8=new _.t1("ICON_MANAGER_TOKEN");var BQF=[48,20,18,16,15,13,12],iJD=new Map,zBu=new Set,RE0=new Set,BQX=new Set,aCR=new Set,WSD=new Set,YJT=new Promise(function(W){var B=!1,z=!1,G=!1,Y=[],d=function(E){if("detail"in E)if(E=E.detail,E.name==="yt-icons")G$R(E),B=!0;else if(E.name==="yt-sys-icons")G$R(E),z=!0;else{var v;((v=E.name)==null?0:v.includes("yt-sys-icons"))&&E.size!==24&&(G$R(E,!0),Y.push(E.size),Y.length===BQF.length&&(G=!0))}B&&z&&G&&(window.removeEventListener("iron-iconset-added",d),W())};
window.addEventListener("iron-iconset-added",d)}),pUR=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"]]);_.Ve={};_.Ve.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.zR,computeHref_:function(W,B){B=B===void 0?!1:B;if(!W||W.commandExecutorCommand)return null;var z=Wuy(W,B);return B||z!==null?z?_.r("enable_polymer_resin")?_.yN(z).toString():z:null:(_.Oc(new _.oX("computeHref was null",this.is,W)),null)},
computeOptionalHref_:function(W){return this.computeHref_(W,!0)},
computeNofollow_:function(W){return W?qM8(W)?"nofollow":null:null},
computeIcon_:function(W){return W&&W.iconType?_.lg(W.iconType):""},
resolveCommand:function(W,B,z){B=B===void 0?{}:B;return _.oB(W,this.hostElement,B,z===void 0?!1:z)}};var G$d,Ju;_.zB7={};G$d=null;
Ju={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_=Yn8(this.viewroot));_.WJ(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var W=this;this.unobserve_();if(_.r("kevlar_vimio_use_shared_monitor"))wU8(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 B=[];this.visibilityOptionVisible_&&B.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&B.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&B.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=B}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){Euu(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 W=_.n3(this.parentNode,function(z){var G,Y=(G=z.polymerController)!=null?G:z;return!!Y.getVisibilityObserverForChild&&Y.getVisibilityObserverForChild()},!0);
if(W){var B;this.localVisibilityObserver_=((B=W.polymerController)!=null?B:W).getVisibilityObserverForChild()}else G$d||(G$d=Yn8()),this.localVisibilityObserver_=G$d;return this.localVisibilityObserver_},visibilityCallback:function(W){W?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.r("kevlar_use_vimio_behavior")||(Ju={});Ju&&!_.r("kevlar_use_vimio_behavior")&&(delete Ju.attached,delete Ju.detached);_.zB7.YtVisibilityObserverBehavior=[Ju];var YJ6={};YJ6.YtVisualElementBehavior=[_.zB7.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.r("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.r("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var W=this.getScreenLayer&&this.getScreenLayer(),B=this.getVisibilityLogger();B&&B.reportShown(this,void 0,W)}},
onHidden:function(){if(_.r("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.r("kevlar_vimio_use_shared_monitor")){var W=this.getScreenLayer&&this.getScreenLayer(),B=this.getVisibilityLogger();B&&B.reportHidden(this,void 0,W)}},
getVisibilityLogger:function(){return _.r("kevlar_use_vimio_behavior")?_.HJ():null},
shouldSkipLogging:function(){if(_.eD("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var W=this.getParentRenderer&&this.getParentRenderer();if(!W)return!1;var B,z=(B=W.polymerController)!=null?B:W;if(!z.data)return!1;W=this.data.trackingParams;W=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:W;var G;B=(G=z.data)==null?void 0:G.trackingParams;var Y,d;B=((Y=z.data)==null?0:Y.loggingDirectives)?(d=z.data)==null?void 0:d.loggingDirectives.trackingParams:B;return W&&B&&W===
B}}];var guD=new Map,K8;var qUx=function(W){this.layer=W},Jt=function(W){return W.layer!==void 0?W.layer:W.parent?Jt(W.parent):W.layer=0};var k$T;_.U={};k$T=0;_.U.YtRendererBehavior=[_.Ve.YtComponentBehavior,YJ6.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_:_.r("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var W,B;(B=(W=this.monitorScrollElement)!=null?W:this.hostElement)==null||B.removeEventListener("scroll",_.Co(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();VpD(this.hostElement);Jn4(_.aq(),this.hostElement);zl.delete(this.hostElement)},
registerRenderer:function(W){var B;((B=W.polymerController)!=null?B:W).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(W),this.markDirty())},
unregisterRenderer_:function(W){this.useVimio_||(this.childCache_.delete(W),this.markDirty())},
attached:function(){var W=this,B=this.getParentRenderer();if(B){var z,G,Y;(G=(z=(Y=B.polymerController)!=null?Y:B).registerRenderer)==null||G.call(z,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var d,E;(E=(d=this.monitorScrollElement)!=null?d:this.hostElement)==null||E.addEventListener("scroll",_.Co(this,this.onScroll))}_.fg.addJob(function(){tpT(W.hostElement)},8);
z=new qUx(this.screenLayer||void 0);(B=zl.get(B))&&B.layerNode&&(z.parent=B.layerNode);B={};WG0(this.hostElement,(B.isRenderer=!0,B.layerNode=z,B[nWt]=this.data,B))},
getParentRenderer:function(){for(var W=this.hostElement.parentNode,B,z;W&&((B=zl.get(W))==null||!B.isRenderer)&&!((z=W.polymerController)!=null?z:W).isRenderer_;)W=W.parentNode||W.host;return W},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.r("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.md("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.r("debug_web_ve_data")&&this.data.trackingParams){var W="";try{W=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(z){_.jy(z)}if(W){var B=s_t(W,1);B!==void 0&&(this.hostElement.dataset.veIndex=String(B));W=s_t(W,2);
W!==void 0&&(this.hostElement.dataset.ve=String(W))}}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,_.r("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.XF(this.data.loggingDirectives.trackingParams)),this.visualElement=_.FF(_.SK(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var W=this.data.targetId;_.tq7(_.aq(),W,this.hostElement)}else Jn4(_.aq(),this.hostElement)},
onScroll:function(){var W=Date.now();W-this.lastHandledScroll_<50||(this.lastHandledScroll_=W,this.markDirty())},
markDirty:function(){_.r("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():lck(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var W=this.getParentRenderer();if(W&&(W=zl.get(W))&&W.layerNode)return Jt(W.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.u7(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var W=0;W<this.data.impressionEndpoints.length;W++)this.sendImpression(this.data.impressionEndpoints[W]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(W){W.clickTrackingParams&&delete W.clickTrackingParams;var B,z;(W==null?0:(B=W.commandMetadata)==null?0:(z=B.webCommandMetadata)==null?0:z.sendPost)?_.V0(this.hostElement,[W,{impression:!0}]):_.Jr(this.hostElement,[W],this.hostElement)},
logExplicitClick:function(W){var B=_.m1(this.getScreenLayer());if(B){var z,G=(z=W.polymerController)!=null?z:W;W=G.visualElement;G=G.trackingParams||G.clickTrackingParams;!W&&G&&(W=_.XF(G));W&&_.RP(B,W)}}}];var dLM={},g0=function(){return _.SJ.apply(this,arguments)||this};
_.C(g0,_.SJ);g0.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
g0.prototype.onPdgItemBehaviorClick=g0.prototype.onPdgItemBehaviorClick;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],g0.prototype,"data",void 0);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],g0.prototype,"onPdgItemBehaviorClick",null);_.Q([_.bP()],g0);dLM.YtPdgLiveChatItemBehavior=[g0.prototype,_.U.YtRendererBehavior];var pUd;var AlQ;_.tu={};_.tu.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var s6=function(){var W=d8.apply(this,arguments)||this;W.switchTemplateAtRegistration=!1;return W};
_.C(s6,d8);s6.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||hBr(this),_.znu(this,"doRender"),this.doRender())};
s6.prototype.debounceRender=function(){this.templatingFn&&_.BJ(this,"doRender",this.doRender)};
s6.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.jy(Error("fh"))};
s6.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.Q([xDy()],s6);var iJu=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,P7={},bJR=(P7[1]={filterString:null,isUnwrappable:null,unwrap:null},P7[2]={filterString:function(W,B,z){return sM(z)},
isUnwrappable:function(W){return W instanceof UK},
unwrap:function(W){return R3(W)}},P7[3]={filterString:function(W,B,z){return iJu.test(z)?z:QN.toString()},
isUnwrappable:function(W){return uQ(W)},
unwrap:function(W){return _.mF(W)}},P7[4]={filterString:function(){return QN.toString()},
isUnwrappable:function(W){return W instanceof SN},
unwrap:function(W){return _.jN(W).toString()}},P7[5]={filterString:function(W,B,z){return z},
isUnwrappable:function(W){return typeof W==="string"},
unwrap:function(W){return W.toString()}},P7[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(W){return W instanceof _.Gd},
unwrap:function(W){return iNx(W)}},P7[8]={filterString:function(W,B,z){z=String(z).toLowerCase();
return tjQ(W,B,z)?z:"zClosurez"},
isUnwrappable:null,unwrap:null},P7[10]={filterString:null,isUnwrappable:null,unwrap:null},P7);B_[DI["default"]]=fcu;var OJt=[];(function(){var W=zW;zW=function(B){W==null||W(B);xB(function(){for(var z=0;z<B.length;z++)XUr(B[z])})}})();var Eu7=function(){var W=_.SJ.apply(this,arguments)||this;W.hasUnmounted=!1;return W};
_.C(Eu7,_.SJ);_.p=Eu7.prototype;_.p.beforeRegister=function(){var W=this.doIdomRender;this.templatingFn?_.jy(Error("eh")):(this.templatingFn=W,this.switchTemplateAtRegistration=!0,SJy(this))};
_.p.attached=function(){};
_.p.detached=function(){XUr(this.hostElement)};
_.p.renderIdom=function(){throw Error("hh");};
_.p.doIdomRender=function(){var W=this;cEk(this.hostElement,function(){W.renderIdom()})};
_.Q([_.bP()],Eu7);var TQD=[s6.prototype,Eu7.prototype];var vuD,cld=function(){return vuD!==void 0?vuD:vuD=document.createElement("template")};
document.head.appendChild(cld().content);var wUD;var Vpu,Jlu=function(){return Vpu!==void 0?Vpu:Vpu=document.createElement("template")};
document.head.appendChild(Jlu().content);var guu;var tp6=document.head,s$M=tp6.appendChild,P$u;if(guu===void 0){var ZJT=document.createElement("template");_.I(ZJT,"\x3c!--css-build:shady--\x3e");ZJT.content.insertBefore(Jlu().content.cloneNode(!0),ZJT.content.firstChild);guu=ZJT}P$u=guu;s$M.call(tp6,P$u.content);var rlM,k$6=function(){return rlM!==void 0?rlM:rlM=document.createElement("template")};
document.head.appendChild(k$6().content);var lcU;var C$F=document.head,IcM=C$F.appendChild,ouM;if(lcU===void 0){var hB4=document.createElement("template");_.I(hB4,"\x3c!--css-build:shady--\x3e");hB4.content.insertBefore(k$6().content.cloneNode(!0),hB4.content.firstChild);lcU=hB4}ouM=lcU;IcM.call(C$F,ouM.content);var HJQ=document.head,FSM=HJQ.appendChild,SJQ;if(wUD===void 0){var bJd=document.createElement("template");_.I(bJd,"\x3c!--css-build:shady--\x3e");bJd.content.insertBefore(cld().content.cloneNode(!0),bJd.content.firstChild);wUD=bJd}SJQ=wUD;FSM.call(HJQ,SJQ.content);var j$R,fc7=function(){return j$R!==void 0?j$R:j$R=document.createElement("template")};
document.head.appendChild(fc7().content);var OJM;_.YG=new _.t1("DARK_THEME_TOKEN");var CDk=new _.J1("accessibilityProperties");var lXk=new _.J1("layoutProperties");var IXv=new _.J1("imageType");var XU4={};if("ytAttributedStringLinkHoverColor"in XU4)throw Error("kh`ytAttributedStringLinkHoverColor");(function(W,B){XU4[W]="value"in B&&"unit"in B?DLT(W,B):function(z){try{return B(z)}catch(G){throw Error("ih`"+W+"`"+G.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var KS9=function(W){var B=this;this.holdTime=W===void 0?500:W;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(z){var G=new CustomEvent("LONG_PRESS"),Y;(Y=z.changedTouches[0].target)==null||Y.dispatchEvent(G)};
this.ontouchstart=function(z){B.longPressTimeout=_.gn(_.fg,function(){B.onlongpress(z);B.longPressOccurred=!0},B.holdTime)};
this.ontouchmove=function(){_.fg.cancelJob(B.longPressTimeout);B.longPressTimeout=NaN;B.longPressOccurred=!1;B.moveOccurred=!0};
this.ontouchend=function(z){if(B.longPressTimeout&&!B.longPressOccurred&&!B.moveOccurred){var G;(G=z.changedTouches[0].target)==null||G.dispatchEvent(new Event("click"))}_.fg.cancelJob(B.longPressTimeout);B.longPressTimeout=NaN;B.longPressOccurred=!1;B.moveOccurred=!1}};var p68=function(W,B){KS9.call(this,B);var z=this;this.callback=W;this.onlongpress=function(G){var Y;(Y=z.callback)==null||Y.call(z,G)}};
_.C(p68,KS9);var Acy=function(W,B){var z=Object.assign({},B);W=_.A(new Map([["ontouchstart",W.ontouchstart],["ontouchend",W.ontouchend],["ontouchmove",W.ontouchmove]]));for(var G=W.next(),Y={};!G.done;Y={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},G=W.next()){var d=_.A(G.value);G=d.next().value;d=d.next().value;Y.eventName$jscomp$101=G;Y.eventHandler$jscomp$1=d;B[Y.eventName$jscomp$101]=function(E){return function(v){var c;(c=z[E.eventName$jscomp$101])==null||c.call(z,v);(0,E.eventHandler$jscomp$1)(v)}}(Y)}};_.p4=new _.t1("COMMAND_HANDLER_TOKEN");var yl0=new _.J1("parallelCommand");var NQ0=new _.J1("performOnceCommand");var nuv=new _.J1("serialCommand");var $LD=void 0;var uS7=function(){this.data=[];this.consumer=null};
uS7.prototype.push=function(W){this.consumer?this.consumer(W):this.data.push(W)};var zm={};_.g4(zm,void 0,"sgPmTd");_.g4(null,void 0,"jypsq");_.g4(null,void 0,"mWiOof");var aWk=new uS7;var zGy=[mRU,xR4,DRQ,y0H,QD4,e8F,qX4,ntM];var rct=new _.J1("bracketTextDecorator");var zG=new _.J1("highlightTextDecorator");_.py=new _.t1("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var gpX=function(){},eB7;
(eB7=window.requestIdleCallback)==null||eB7.bind(window);var s2X={calledOnce:!1,state:"visible"},t5R={calledOnce:!1,state:"hidden"};var mLM=new _.t1("ICON_WIZ_COMPONENT_TOKEN");_.hY=_.m(function(W){var B=W.icon;var z=W.active;var G=W.className;var Y=W.style;var d=W.dataSelected;var E=W.dataDisabled;var v=W.role;var c=W.animateIcon;var J=W.themeOverride;var g=W.ariaHidden;var t=W.ariaExpanded;var P=W.ariaLabel;var Z=W.tabindex;var l=W.id;var b=W.size;var O=W.iconFilter;var K=W.onKeydown;return _.w(_.V,{cond:B,then:function(){var e=_.dO().resolve(mLM);return _.w(e,{icon:B,dataSelected:d,dataDisabled:E,animateIcon:c,themeOverride:J,ariaExpanded:t,tabindex:Z,id:l,active:z,size:b,
role:v,className:G,ariaHidden:g,ariaLabel:P,style:function(){return Y!=null&&Y()||b==null||!b()?Y==null?void 0:Y():"width: "+(b==null?void 0:b())+"px;height: "+((b==null?void 0:b())+"px;")},
iconFilter:O,onKeydown:K})}})},"b");
_.hY.idomCompat={callbacks:{onKeydown:!0}};var D3v=window.devicePixelRatio||1;var npt=new Map([["yt_outline_bag_black_24","bag"]]);var Zs=function(W){var B=this;this.margin=.1;this.whenInViewportWithMargin=W;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){B.requestScan()});
window.addEventListener("touchend",function(){B.requestScan()});
window.addEventListener("updateui",function(){B.requestScan()});
var z=new _.an((0,_.jk)(this.requestScan,this),100);window.addEventListener("scroll",function(){z.fire()},!0);
window.addEventListener("resize",(0,_.jk)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){B.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.jk)(this.requestScan,this))};
Zs.prototype.observe=function(W){this.observationTargets.includes(W)||this.observationTargets.push(W)};
Zs.prototype.unobserve=function(W){this.observationTargets=this.observationTargets.filter(function(B){return B!==W})};
Zs.prototype.requestScan=function(){var W=this;this.scanRequested||(xB(function(){xL7(W)}),this.scanRequested=!0)};
var xL7=function(W){var B=(1+W.margin)*(document.documentElement.clientHeight||window.innerHeight);W.observationTargets=W.observationTargets.filter(function(z){var G=z.getBoundingClientRect();(G=B>G.top&&!!G.height)&&W.whenInViewportWithMargin(z);return!G&&z.parentNode});
W.scanRequested=!1};
Zs.prototype.disconnect=function(){this.observationTargets=[]};var DL6,ylM;DL6=_.A(_.g4(M5R(),void 0,"O3X2wd"));_.Q$M=DL6.next().value;ylM=DL6.next().value;window.addEventListener("resize",function(){ylM(M5R())});var qJM={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},nu9=void 0,NQM=window.innerWidth,$Lu=window.innerHeight;window.addEventListener("resize",function(){nu9=void 0});var LS9;if("IntersectionObserver"in window)LS9=W$R();else{if(nu9===void 0){var ULM;ULM="matchMedia"in window?window.matchMedia(qJM.landscape+","+qJM.portrait).matches:void 0;nu9=ULM!==void 0?ULM:NQM>=930&&$Lu>=550||NQM>=550&&$Lu>=930}LS9=nu9?{observe:function(W){xB(function(){var B;(B=W.onViewportEntered)==null||B.call(W)})},
unobserve:function(){}}:new Zs(function(W){xB(function(){var B;
(B=W.onViewportEntered)==null||B.call(W)})})}var aXD=LS9;var Mpu=_.m(function(W){var B=!1,z=_.LG("img",function(G){_.fR(function(){B=!0;G.onload=null})});
_.ja(function(){var G,Y=(G=W.data)==null?void 0:G.call(W),d,E=(d=W.getSrc)==null?void 0:d.call(W).cb,v;G=(v=W.config)==null?void 0:v.call(W);if(v=z.value)if(d=function(J,g){if(!B)return E?E(J,g):J},GvQ(v,G),_.r("web_image_dont_reload_same_src")&&zw8(v,Y,d))_.r("web_image_dont_reload_same_src_simulate_load")&&v.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var c;BtR(v,Y||null,d,G,(c=W.lazy)==null?void 0:c.call(W))}},"zS0jKb");
return _.w("img",{el:z})},"c");
Mpu.idomCompat=!0;_.iF=_.m(function(W){var B=function(){var z,G=W.data(),Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a,q,n,L,By,gk,vy,lx,Zv,VR,ux,X2,WQ,XH;var wU={contentMode:(Y=W.contentMode)==null?void 0:Y.call(W),loadedClass:(d=W.loadedClass)==null?void 0:d.call(W),isPreloaded:(E=W.isPreloaded)==null?void 0:E.call(W),notifyOnLoaded:(v=W.notifyOnLoaded)==null?void 0:v.call(W),notifyOnUnloaded:(c=W.notifyOnUnloaded)==null?void 0:c.call(W),preferredThumbnail:(J=W.preferredThumbnail)==null?void 0:J.call(W),preserveHeight:(g=W.preserveHeight)==
null?void 0:g.call(W),preserveWidth:(t=W.preserveWidth)==null?void 0:t.call(W),objectPosition:(P=W.objectPosition)==null?void 0:P.call(W),targetWidth:(Z=W.targetWidth)==null?void 0:Z.call(W),targetHeight:(l=W.targetHeight)==null?void 0:l.call(W),shouldShowPlaceholder:(b=W.shouldShowPlaceholder)==null?void 0:b.call(W),useWidth:(O=W.useWidth)==null?void 0:O.call(W),isToggled:(K=W.isToggled)==null?void 0:K.call(W),alt:(e=W.alt)==null?void 0:e.call(W),className:(a=W.className)==null?void 0:a.call(W),
onerror:W.onerror,onload:W.onload,style$:((q=W.style$)==null?void 0:q.call(W))||((n=W.style)==null?void 0:n.call(W)),color:(L=W.color)==null?void 0:L.call(W),width:(By=W.width)==null?void 0:By.call(W),height:(gk=W.height)==null?void 0:gk.call(W),"aria-hidden$":(WQ=(vy=W["aria-hidden$"])==null?void 0:vy.call(W))!=null?WQ:(lx=W.ariaHidden)==null?void 0:lx.call(W),draggable:(Zv=W.draggable)==null?void 0:Zv.call(W),"data-disabled$":(XH=(VR=W["data-disabled$"])==null?void 0:VR.call(W))!=null?XH:(ux=W.dataDisabled)==
null?void 0:ux.call(W),size:(X2=W.size)==null?void 0:X2.call(W)};return pLR(G,wU,(z=W.hideOn404)==null?void 0:z.call(W))};
return _.w(_.HR,null,_.w(_.oJ,{when:function(){var z;return((z=B())==null?void 0:z.type)==="image"}},function(){return _.w(Mpu,{data:function(){return B().image},
getSrc:{cb:function(z,G){var Y=B().image.sources,d=B().config.isPreloaded,E=B().config.useWidth,v=B().config.targetWidth,c=B().config.targetHeight,J=B().config.preferredThumbnail;return _.Q20(G,Y,d,E,v,c,J)||""}},
config:function(){var z=B().config,G;for(G in z)z[G]===void 0&&delete z[G];return z},
lazy:W.renderLazy})}),_.w(_.oJ,{when:function(){var z;
return((z=B())==null?void 0:z.type)==="icon"}},function(){return _.w(_.hY,{icon:function(){return B().iconName},
role:function(){return B().config.role},
className:function(){return B().config.className},
style:function(){return B().config.style$+";width: "+(B().config.width+"px;height: ")+(B().config.height+"px;color: ")+(B().config.color+";")},
ariaLabel:function(){return B().config["aria-label$"]},
ariaHidden:function(){return B().config["aria-hidden$"]},
dataDisabled:function(){return B().config["data-disabled$"]},
active:function(){return B().config.isToggled},
size:function(){return B().config.size}})}))},"d");
_.iF.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var acu=function(W){return function(B){return _.w(HkD,null,function(){var z=B.data(),G=_.XA(B.config);return _.w(Rg,null,function(){return void W(z,G)})})}}(vZ8),EZR=_.m(function(W){var B=function(G){var Y,d=_.TG(function(P){Y=Od(function(){for(var Z=_.A(g()),l=Z.next();!l.done;l=Z.next()){l=ciQ(l.value);
l=typeof l==="string"?document.createTextNode(l):l;if(!(l instanceof Node)){Z=new _.oX("Part is not a node",l,typeof l);_.jy(Z);break}P.appendChild(l)}})}),E=v2(function(){return hGX(G())},{isEqual:ick}),v=_.ig(W.config),c=function(){var P,Z=E();
return!((P=v())==null||!P.ariaLabel)||!(Z.commandRuns&&Z.commandRuns.length!==0||Z.paragraphStyleRuns&&Z.paragraphStyleRuns.length!==0)},J=v2(v,{isEqual:V2x}),g=function(){var P=opQ(E(),J());
Flx(P,J());return E().content?X68(E().content,P).parts:[]},t=!0;
_.ja(function(){E();J();if(t)t=!1;else{var P=g();Promise.resolve().then(function(){var Z=d.value;if(Z){Z.innerText="";var l;(l=Y)==null||l();Y=_.SD(Z,function(){return _.w(wLQ,{parts:P})},"e")}})}},"YlhjWd");
return _.w("span",{el:d,class:function(){return E()&&ccy(E(),v())},
dir:function(){var P;return((P=v())==null?0:P.userInput)?"auto":void 0},
"aria-label":function(){var P;return c()?(P=v())==null?void 0:P.ariaLabel:void 0},
role:function(){return c()?"text":void 0}})},z;
return((z=W.config)==null?0:z.renderedFromFormattedString)?B(W.text):_.w(_.V,{cond:W.text,then:B})},"f");
EZR.idomCompat=!0;_.r0=_.m(function(W){var B=_.ig(W.text),z=Jiy(W);W.renderedFromFormattedString!==void 0&&(z.renderedFromFormattedString=!0);return _.r("attr_string_reactive")?_.w(EZR,{text:B,config:z}):_.w(_.V,{cond:function(){var G;return B()&&((G=hGX(B()))==null?void 0:G.content)},
then:function(){return _.w(acu,{data:W.text,config:z})},
debugInstance:"Apcuac"})},"g");
_.r0.idomCompat=!0;var gZk=function(W,B,z){B=B===void 0?"unknown":B;z=z===void 0?{}:z;_.oX.call(this,W+" ("+B+")",Object.assign({},{name:"YtWcwError",tagName:B},z));Object.setPrototypeOf(this,this.constructor.prototype)};
_.C(gZk,_.oX);_.luv=new WeakMap;_.kv8=!1;var Zck,CX2,PXX;_.kz=Symbol("mh");_.wS=Symbol("nh");Zck=Symbol("oh");CX2=new Set(Object.getOwnPropertyNames(Element.prototype));PXX=Symbol("ph");var RB6=_.m(function(W){return _.w("yt-attributed-string",{"aria-label":W.ariaLabel,hidden:W.hidden,id:W.id,class:W.className,"force-default-style":W.forceDefaultStyle},_.w(_.r0,{text:W.data,ariaLabel:W.ariaLabel,ellipsisTruncate:W.ellipsisTruncate,isOverlay:W.isOverlay,linkInheritColor:W.linkInheritColor,noPreWrap:W.noPreWrap,noWrap:W.noWrap,userInput:W.userInput,noEndpoints:W.noEndpoints,headerRuns:W.headerRuns,isHeadline:W.isHeadline}))},"h");
_.r("web_wiz_attributed_string")&&_.Vm(RB6,"yt-attributed-string",{props:{ariaHidden:_.kz,ariaLabel:_.kz,className:_.kz,ellipsisTruncate:_.kz,isOverlay:_.kz,linkInheritColor:_.kz,noEndpoints:_.kz,noStyleRuns:_.kz,noLinkColor:_.kz,noPreWrap:_.kz,noWrap:_.kz,skipOnClick:_.kz,userInput:_.kz,headerRuns:_.kz,isHeadline:_.kz,id:_.kz,data:_.kz,hidden:_.kz,forceDefaultStyle:_.kz,text:_.wS,disableUpgrade:_.wS,disable:_.wS,slot:_.wS}});var lu=function(){return _.S.apply(this,arguments)||this};
_.C(lu,_.S);lu.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},vZ8(this.data,this.config))};
_.Q([_.h(TQD),_.y("design:type",Object)],lu.prototype,"ytIdomTemplatingBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],lu.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],lu.prototype,"ariaLabel",void 0);_.Q([_.F(),_.y("design:type",Boolean)],lu.prototype,"disable",void 0);_.Q([_.F(),_.y("design:type",Boolean)],lu.prototype,"ellipsisTruncate",void 0);_.Q([_.F(),_.y("design:type",Boolean)],lu.prototype,"isOverlay",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],lu.prototype,"linkInheritColor",void 0);_.Q([_.F(),_.y("design:type",Boolean)],lu.prototype,"noPreWrap",void 0);_.Q([_.F(),_.y("design:type",Boolean)],lu.prototype,"noWrap",void 0);_.Q([_.F(),_.y("design:type",Boolean)],lu.prototype,"userInput",void 0);_.Q([_.F(),_.y("design:type",Boolean)],lu.prototype,"noEndpoints",void 0);_.Q([_.F(),_.y("design:type",Array)],lu.prototype,"headerRuns",void 0);
_.Q([_.NJ({is:"yt-attributed-string",disableElementRegistration:!0})],lu);
_.r("web_wiz_attributed_string")||_.D(lu,"yt-attributed-string",function(){if(OJM===void 0){var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
W.content.insertBefore(fc7().content.cloneNode(!0),W.content.firstChild);OJM=W}W=OJM;return W},{mode:2});var Wl7,BZH,bcr;Wl7=function(){this.firstThumbnailLoaded=!1};
_.zGQ=function(){BZH||(BZH=new Wl7);return BZH};
bcr=function(W){var B=_.zGQ();B.firstThumbnailLoaded||(B.firstThumbnailLoaded=!0,_.mj("ftl",W))};
Wl7.prototype.reset=function(){this.firstThumbnailLoaded=!1};var oZ2=0,Sux=new WeakMap,Hcu=0,tY=new Set;var GVT,Y1R=function(){return GVT!==void 0?GVT:GVT=document.createElement("template")};
document.head.appendChild(Y1R().content);var d3d;var XLr,uaQ,CL;_.ZN=_.Yt.caches;CL=function(){};
CL.prototype.open=function(W){return _.ZN.open(p6D(W))};
CL.prototype.has=function(W){return _.ZN.has(p6D(W))};
CL.prototype.delete=function(W){return _.ZN.delete(p6D(W))};
CL.prototype.match=function(W,B){var z=this,G,Y,d,E,v,c;return _.T(function(J){switch(J.nextAddress){case 1:return J.yield(z.keys(),2);case 2:G=J.yieldResult,Y=_.A(G),d=Y.next();case 3:if(d.done){J.jumpTo(5);break}E=d.value;return J.yield(z.open(E),6);case 6:return v=J.yieldResult,J.yield(v.match(W,B),7);case 7:if(c=J.yieldResult)return J.return(c);d=Y.next();J.jumpTo(3);break;case 5:return J.return()}})};
var ewu=function(){};
_.C(ewu,CL);var p6D=function(W){if(W.includes(":"))throw Error("sh`"+W);return W+":"+_.C4("CacheStorage get")};
ewu.prototype.keys=function(){var W,B,z,G,Y,d,E,v,c;return _.T(function(J){if(J.nextAddress==1)return W=[],B=_.C4("CacheStorage keys"),J.yield(_.ZN.keys(),2);z=J.yieldResult;G=_.A(z);for(Y=G.next();!Y.done;Y=G.next())d=Y.value,E=_.OcT(d),v=E.originalName,c=E.datasyncId,c===B&&W.push(v);return J.return(W)})};var IT=function(){var W=_.S.apply(this,arguments)||this;W.objectURL=null;W.loadTime=Infinity;return W};
_.C(IT,_.S);_.p=IT.prototype;_.p.renderIdom=function(){fut(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("vh");this.setConfig();this.config&&Yu2(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.p.objectFitToContentMode=function(W){switch(W){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.p.logThumbnailFailureVe=function(){var W=_.PA(197497);_.ui(_.SK(),W);var B=_.m1();B&&W&&B&&_.Mj(B,[W])};
_.p.loadImageFromCacheIfExists=function(W){var B=this,z=W.target;(z==null?0:z.src)&&xSQ(z.src).then(function(G){B.objectURL=_.qZ(G).toString();B.setSrc(z,B.objectURL)}).catch(function(){})};
_.p.onError=function(W){var B=this;if(_.r("web_use_cache_for_image_fallback")){var z=W.target;z&&xSQ(z.src).then(function(G){B.objectURL=_.qZ(G).toString();B.setSrc(z,B.objectURL)}).catch(function(){_.r("kevlar_woffle_log_thumbnail_failure_ve")&&B.logThumbnailFailureVe();
_.r("kevlar_woffle_fallback_image")&&B.setSrc(z,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.p.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.p.setConfig=function(){var W=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(B){W.loadImageFromCacheIfExists(B);W.revokeObjectURL();jVv(W.hostElement)},
onerror:function(B){W.onError(B)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.r("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.p.setSrc=function(W,B){B&&(W.src=B)};
_.Q([_.h(TQD),_.y("design:type",Object)],IT.prototype,"ytIdomTemplatingBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],IT.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],IT.prototype,"alt",void 0);_.Q([_.F(),_.y("design:type",Boolean)],IT.prototype,"ftlEligible",void 0);_.Q([_.F(),_.y("design:type",Number)],IT.prototype,"height",void 0);_.Q([_.F(),_.y("design:type",Boolean)],IT.prototype,"notifyOnLoaded",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],IT.prototype,"notifyOnUnloaded",void 0);_.Q([_.F(),_.y("design:type",String)],IT.prototype,"objectFit",void 0);_.Q([_.F(),_.y("design:type",String)],IT.prototype,"objectPosition",void 0);_.Q([_.F(),_.y("design:type",String)],IT.prototype,"preferredThumbnail",void 0);_.Q([_.F(),_.y("design:type",Boolean)],IT.prototype,"preserveHeight",void 0);_.Q([_.F(),_.y("design:type",Boolean)],IT.prototype,"preserveWidth",void 0);
_.Q([_.F({value:!0}),_.y("design:type",Boolean)],IT.prototype,"useWidth",void 0);_.Q([_.F({value:function(){return!_.md("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.y("design:type",Boolean)],IT.prototype,"shouldRenderLazy",void 0);_.Q([_.F(),_.y("design:type",Number)],IT.prototype,"width",void 0);_.Q([_.NJ({is:"yt-image",disableElementRegistration:!0})],IT);
_.D(IT,"yt-image",function(){if(d3d===void 0){var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(Y1R().content.cloneNode(!0),W.content.firstChild);
d3d=W}W=d3d;return W},{mode:2});var oT=function(){return _.S.apply(this,arguments)||this};
_.C(oT,_.S);oT.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var W=_.$B(this.data.onVisibleCommand);W&&this.ytComponentBehavior.resolveCommand(W)}};
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],oT.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.tu.YtVisibilityBehavior),_.y("design:type",Object)],oT.prototype,"ytVisibilityBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],oT.prototype,"data",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],oT);
_.D(oT,"yt-bumper-user-edu-content-view-model",function(){if(AlQ===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;pUd===void 0&&(pUd=document.createElement("template"));var G=pUd;z.call(B,G.content.cloneNode(!0),W.content.firstChild);AlQ=W}W=AlQ;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var AcQ;var i06,EpD=function(){if(i06!==void 0)return i06;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;AcQ===void 0&&(AcQ=document.createElement("template"));var G=AcQ;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return i06=W};var TZd;_.hu={};TZd=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"]);_.hu.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var W=this.getContext_();return W?W.getTaskManager():_.fg},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var W=_.v0(this.hostElement,"yt-get-context-provider",{});W.detail&&W.detail.contextProvider?this.cachedProviderNode_=W.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return TZd.has(this.hostElement.localName)},
getNetworkManager:function(){var W=this.getContext_();if(W)return W.getNetworkManager()}};var Nt8,vpd,w67,ccQ;_.H7=function(W){var B=vpd.get(W);if(B&&(B=B.pop()))return ccQ++,B;w67++;try{var z=document.createElement(W)}catch(G){throw new _.oX("ElementPool failed to create element",W,G.message);}return z};
Nt8=function(W){var B=W.is;if(B){var z=vpd.get(B);z||(z=[],vpd.set(B,z));var G=_.eD("ELEMENT_POOL_CONFIG")||{};z.length>=(G[B]!==void 0?G[B]:_.eD("ELEMENT_POOL_DEFAULT_CAP",0))||z.push(W)}else _.Oc(new _.oX("Element pool should only handle custom elements:",W.nodeName))};
vpd=new Map;w67=0;ccQ=0;var rS=new WeakMap,nZ2=new WeakMap;var Jc6;_.F$=function(W,B,z){z=z===void 0?_.FU():z;this.JSC$13808_defaultPriority=W;this.signal=B;this.scheduler=z;this.nextJobDescriptor=0;this.JSC$13808_parkedJobs=[];this.scheduledJobs=new Map};
_.Sx=function(W,B){if(B){var z=_.J5();W.signal&&!_.gW(z,W.signal)?(z.addListener(W.signal,function(){W.processSignal()}),W.JSC$13808_parkedJobs.push({job:B,
priority:void 0})):V5H(W,B)}};
Jc6=function(W,B){if(B!==W.JSC$13808_defaultPriority){W.JSC$13808_defaultPriority=B;for(var z=_.A(W.scheduledJobs.values()),G=z.next();!G.done;G=z.next())G=G.value,W.scheduler.cancelJob(G.jobId),G.jobId=W.scheduler.addJob(G.jobWrapper,B)}};
_.F$.prototype.flushJobs=function(){Jc6(this,10);this.processSignal()};
_.F$.prototype.cancel=function(){for(var W=_.A(this.scheduledJobs),B=W.next();!B.done;B=W.next()){var z=_.A(B.value);B=z.next().value;z=z.next().value;this.scheduler.cancelJob(z.jobId);this.scheduledJobs.delete(B)}this.JSC$13808_parkedJobs=[]};
_.F$.prototype.processSignal=function(){for(var W=_.A(this.JSC$13808_parkedJobs),B=W.next();!B.done;B=W.next())B=B.value,V5H(this,B.job,B.priority);this.JSC$13808_parkedJobs=[]};
var V5H=function(W,B,z){z=z||W.JSC$13808_defaultPriority;if(z===10)sv(B);else{var G=W.nextJobDescriptor++,Y=function(){B();W.scheduledJobs.delete(G)},d=W.scheduler.addJob(Y,z);
W.scheduledJobs.set(G,{jobWrapper:Y,jobId:d,priority:z})}};F1X({beforeVisit:function(W){if(JV.has(W.type)){var B;(B=W.props).idomKey!=null||(B.idomKey=W.type)}else W.type.TAG_NAME&&(riT=W.type.TAG_NAME)},
afterRender:function(W,B){var z;riT=(z=B==null?void 0:B.type)!=null?z:""},
didPatch:function(){riT=""}});var gpF;_.bu={};gpF={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.bu.YtRendererstamperBehavior=[_.hu.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 W in this.stampDom){var B=this.stampDom[W];B&&B.id&&this.addReactiveSchema({type:"observe",method:{methodName:QV2(B.id),args:[{type:"wildcard",path:W}]}})}else{(W=(this.constructor.generatedFrom||this).observers)||(W=[]);for(B in this.stampDom){var z=this.stampDom[B];z&&z.id&&W.push(QV2(z.id)+"("+B+".*)")}this.constructor.generatedFrom.observers=W}},
addStampDomObserverFns_:function(){for(var W in this.stampDom){var B=this.stampDom[W];B.id?(this[QV2(B.id)]=this.rendererStamperObserver_.bind(this,W,B.id),this.hasDataPath_[W]=!1):(B=new _.oX("Bad rendererstamper config",this.is+":"+W),_.jy(B))}},
rendererStamperObserver_:function(W,B,z){if(z.path==W){if(z.value===void 0&&!this.hasDataPath_[W])return;this.hasDataPath_[W]=z.value!==void 0}this.rendererStamperApplyChangeRecord_(W,B,z)},
rendererStamperApplyChangeRecord_:function(W,B,z){var G=this.renderJobsMap_[B],Y=null;W==z.path?(z=z.value,_.yR(z)||(z=z===void 0||z===null?[]:[z]),W=this.stampDom[W],W.mapping&&(Y=this.stampDomArray_.bind(this,z,B,W.mapping,W.reuseComponents,W.events,W.stamperStableList)),G&&G.cancel(),z=W.usePageScheduler?this.getTaskManager():void 0,G||W.initialRenderPriority==void 0)?W.renderPriority==void 0||G||(G=new _.F$(W.renderPriority,W.waitForSignal,z),this.renderJobsMap_[B]=G):(G=new _.F$(W.initialRenderPriority,
W.waitForSignal,z),this.renderJobsMap_[B]=G,Y=function(d,E){d();Jc6(E,10)}.bind(this,Y,G)):Y=W+".splices"==z.path?this.stampDomArraySplices_.bind(this,W,B,z.value):this.forwardRendererStamperChanges_.bind(this,W,B,z);
G?_.Sx(G,Y):Y()},
forwardRendererStamperChanges_:function(W,B,z){var G=z.path.slice(W.length+1),Y=this.getStampContainer_(B),d=G.indexOf("."),E=G.substring(0,d),v=!1,c=0,J=parseInt(E,0);if(E[0]=="#"){v=parseInt(E.substring(1),0);J=this.get(W);var g=this.get([W,E]);J[v]==g?c=v:c=J.indexOf(g);v=!0}else isNaN(J)||(c=J,v=!0);v&&(G=G.substring(E.length+1),d=G.indexOf("."));E=_.St(Y).children[c];var t;if(Y=(t=E==null?void 0:E.polymerController)!=null?t:E)G="data"+G.slice(d),typeof Y.notifyPath!=="function"?_.Oc(new _.oX("notifyPath missing",
this.is+": "+W+", "+B)):z.value?Y.notifyPath(G,z.value):Y.notifyPath(G)},
stampDomArraySplices_:function(W,B,z){if(z&&z.indexSplices){var G=this.getStampContainer_(B);if(G){for(var Y=_.St(G),d=quR(this.stampDom[W].reuseComponents),E=z.indexSplices.length,v=0;v<E;v++){for(var c=z.indexSplices[v],J=Y.children[c.index],g=c.removed.length;g>0;g--)J&&J.parentElement&&(_.St(J.parentElement).removeChild(J),d&&Nt8(J),J=Y.children[c.index]);g=this.stampDom[W].mapping;for(var t=c.index+c.addedCount,P=document.createDocumentFragment(),Z=d,l=c.index;l<t;l++){var b=c.object[l],O=DSR(g,
b);if(O){var K=g[O];b=b[O];O=this.getComponentName_(K,b);var e=J?rS.has(J):!1;Z&&J&&J.is==O&&e?(O=J,this.telemetry_.reuse++,J=J.nextElementSibling):Z&&J&&e?(O=this.createComponent_(K,b,d),e=_.St(J).nextElementSibling,Y.insertBefore(O,e),L$t(this.is,Y,J,d),J=e):(Z=!1,O=this.createComponent_(K,b,d),P.appendChild(O));this.deferRenderStamperBinding_(O,K,b)}else K=new _.oX("Unimplemented type",W,B,G.tagName,Object.keys(b)[0]),_.jy(K)}Y.insertBefore(P,J)}this.flushRenderStamperComponentBindings_();this.stampDom[W].events&&
_.v0(this.hostElement,"yt-rendererstamper-finished",{container:G})}else W=new _.oX("Container object not found",B,this.hostElement?this.hostElement.is:""),_.jy(W)}},
stampDomArray_:function(W,B,z,G,Y,d){var E=this.getStampContainer_(B);if(E)if(B=_.St(E),G=quR(G),W){var v=0,c=0,J;if(d=d===void 0?_.md("STAMPER_STABLE_LIST",!1):d||!1)for(J=B.firstElementChild;J&&!rS.has(J)&&W.length>c;){d=W[c];var g=DSR(z,d);if(g){if(this.getComponentName_(z[g],d[g])!=J.is){var t=this.createComponent_(z[g],d[g],G),P=_.St(J).nextElementSibling;P?B.insertBefore(t,P):B.appendChild(t);L$t(this.is,B,J,G);J=t}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(J,z[g],d[g]);v++;
c++;J=_.St(J).nextElementSibling}else c++}US2(this.is,B,v,G);v=J;if(W.length>c){d=document.createDocumentFragment();for(g=W.length;c<g;c++)if(t=W[c],P=DSR(z,t))J=this.createComponent_(z[P],t[P],G),this.deferRenderStamperBinding_(J,z[P],t[P]),d.appendChild(J);v&&_.St(v).parentNode&&J&&!rS.has(J)?B.insertBefore(d,v):B.appendChild(d)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();Y&&_.v0(this.hostElement,"yt-rendererstamper-finished",{container:E})}else US2(this.is,B,0,
G);else W=new _.oX("Container object not found",B,this.hostElement?this.hostElement.is:""),_.jy(W)},
getStampContainer_:function(W){return this.$&&this.$[W]||_.tH(this.hostElement).querySelector("#"+W)},
getComponentName_:function(W,B){return typeof W==="string"?W:W.matcher?W.matcher.call(this,B):W.component},
createComponent_:function(W,B,z){W=this.getComponentName_(W,B);try{var G=tV.has(W)||JV.has(W);if(z&&!G){var Y=_.H7(W);try{_.kw(Y)}catch(d){z="Failed to clear styles for "+W+".",d.message&&(z+=" Original error: "+d.message),_.Oc(new _.oX(z))}}else Y=document.createElement(W)}catch(d){return Y="YtRendererStamperBehavior failed to create "+W+".",d.message&&(Y+=" Original description: "+d.message),d.message="YtRendererStamperBehavior failed to create element",_.XC(d,Y),gpF.hasOwnProperty(W)?_.Oc(d):_.jy(d),
document.createElement("SPAN")}this.telemetry_.create++;return Y},
deferRenderStamperBinding_:function(W,B,z){this.deferredBindingTasks_.push({component:W,typeOrConfig:B,data:z})},
flushRenderStamperComponentBindings_:function(){for(var W=0,B=this.deferredBindingTasks_.length;W<B;W++){var z=this.deferredBindingTasks_[W];if(!z)break;var G=void 0,Y=void 0,d=void 0,E=void 0,v=z.component,c=z.typeOrConfig;z=z.data;var J=(E=v.polymerController)!=null?E:v;E=v.loggingStatus;try{E&&(E.isRendererStamper=!0);if(typeof c!=="string"){for(d in c.attributes)c.attributes[d]===!0?v.setAttribute(d,""):c.attributes[d]===!1?v.removeAttribute(d):v.setAttribute(d,c.attributes[d]);for(Y in c.params)J[Y]=
c.params[Y],v!==J&&X4(v.localName,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(G in c.properties){var g=c.properties[G];if(g){var t=yiu(g);J[G]=this.get(t);v!==J&&X4(v.localName,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(G==="on-tap"||G==="on-click"){var P=this.get(t);v.addEventListener("click",P);nZ2.set(v,{property:G,listener:{type:"element",eventName:"click",handler:P}})}}else{var Z=new _.oX("Undefined property binding",G);_.jy(Z)}}}if(c.classListBinding){var l=yiu(c.classListBinding),
b=l?this[l]:null;if(b)for(G=0;G<b.length;G++)_.Pf(v,b[G],!0)}J.data=z}finally{E&&(E.isRendererStamper=!1)}if(G=rS.get(v))v.hidden=!1,rS.delete(v),_.fg.cancelJob(G)}this.deferredBindingTasks_.length=0}}];_.Vm(_.m(function(W){function B(){z().seconds&&d(jqy({seconds:Number(z().seconds)-Date.now()/1E3}))}
var z=W.targetTimestamp;W=W.className;var G=_.A(_.g4("",void 0,"TM9kjd")),Y=G.next().value,d=G.next().value;_.bk(function(){B();var E=setInterval(function(){B()},1E3);
_.fR(function(){clearInterval(E)})});
return _.w("yt-countdown",{class:_.kG("ytCountDownHost",W)},_.w("div",null,Y))},"i"),"yt-countdown",{props:{targetTimestamp:_.kz,
className:_.wS}});_.jx=new _.t1("KEY_MANAGER_TOKEN");var M2r={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.fL=_.m(function(W){var B=_.LG("a",W.ref),z=W.aTagConfig?W.aTagConfig:_.r4(function(){var G,Y,d,E,v;var c=(v=_.$B((d=W.command)==null?void 0:d.call(W)))!=null?v:(E=W.command)==null?void 0:E.call(W);return _.UV({innertubeCommand:c,skipOnClick:(G=W.skipOnClick)==null?void 0:G.call(W),defaultTarget:(Y=W.target)==null?void 0:Y.call(W)})||{}},void 0,"gnrRge");
_.ja(function(){B.value._data=z()._data;B.value.params=z().params},"t2c7fe");
return _.w("a",{el:B,href:function(){return z().href$},
rel:function(){return z().rel$},
class:function(){var G,Y;return(Y=z().className)!=null?Y:(G=W.className)==null?void 0:G.call(W)},
style:function(){var G;if((G=W.style)==null?0:G.call(W))return W.style();var Y;return((Y=W.disabled)==null?0:Y.call(W))?"pointer-events:none":""},
"aria-haspopup":function(){return!!z()["aria-haspopup$"]},
"force-new-state":Cy(function(){return z()["force-new-state$"]}),
title:Cy(function(){var G,Y;return(Y=z().title$)!=null?Y:(G=W.title)==null?void 0:G.call(W)}),
role:Cy(function(){var G;return((G=W.role)==null?void 0:G.call(W))||z().role$}),
target:Cy(function(){return z().target$}),
dir:Cy(function(){var G;return((G=W.dir)==null?void 0:G.call(W))||z().dir}),
tabindex:function(){var G;return z().tabindex$?Number(z().tabindex$):(G=W.tabIndex)==null?void 0:G.call(W)},
"aria-hidden":function(){var G,Y;return(Y=z()["aria-hidden$"])!=null?Y:(G=W.ariaHidden)==null?void 0:G.call(W)},
"aria-label":function(){var G,Y;return(Y=z()["aria-label$"])!=null?Y:(G=W.ariaLabel)==null?void 0:G.call(W)},
"aria-current":W.ariaCurrent,"aria-disabled":W.disabled,"aria-labelledby":W.ariaLabelledby,"aria-describedby":W.ariaDescribedby,"aria-selected":W.ariaSelected,"tab-identifier":W.tabIdentifier,"on:pointerdown":_.lF(function(G){var Y,d;return void((d=(Y=z()).onpointerdown)==null?void 0:d.call(Y,G))}),
"on:click":_.lF(function(G){var Y,d;(d=(Y=z()).onclick)==null||d.call(Y,G);var E;(E=W.onClick)==null||E.call(W,G)}),
"on:focusin":_.lF(function(G){var Y;(Y=W.onFocusin)==null||Y.call(W,G)}),
"on:focusout":_.lF(function(G){var Y;(Y=W.onFocusout)==null||Y.call(W,G)})},W.children)},"j");var dux={duration:1E3,easing:"ease",fill:"forwards"};YBR.componentType=H5;var iZx={duration:1E3,easing:"ease",fill:"forwards"},PDT=_.m(function(W){var B=_.LG("animated-rolling-character"),z=void 0,G=function(){var Y,d;return zy((Y=W.character)==null?void 0:Y.call(W))||zy((d=W.previousCharacter)==null?void 0:d.call(W))};
_.ja(function(){if(W.marginMultiplier()){var Y;(Y=z)==null||Y.cancel();if(G()){var d;Y=((d=W.previousCharacter)==null?0:d.call(W))?Number(W.previousCharacter())+10:W.rollUp()?0:30;var E;if((E=W.shouldAnimate)==null||!E.call(W)){var v,c;Y-=AND((v=W.character)==null?void 0:v.call(W),(c=W.previousCharacter)==null?void 0:c.call(W),W.rollUp(),Y)}}else{Y=W.rollUp()?0:2;var J;(J=W.shouldAnimate)!=null&&J.call(W)||(d=Y,E=W.rollUp()?-1:1,Y=d-E)}B.value.style.marginTop="-"+Y*W.marginMultiplier()+"px";var g;
if((g=W.shouldAnimate)==null?0:g.call(W)){var t,P;z=Eau(B.value,(t=W.character)==null?void 0:t.call(W),(P=W.previousCharacter)==null?void 0:P.call(W),W.rollUp(),Y,G(),W.marginMultiplier())}else{var Z;B.value.style.display=((Z=W.character)==null?0:Z.call(W))?"":"none"}}},"EgLkAe");
return _.w("animated-rolling-character",{el:B,class:"animatedRollingCharacterHost"},_.w(_.V,{cond:G,then:function(){return _.w(t5T,null)},
else:function(){return _.w(s2F,{character:W.character})}}))},"k");
PDT.idomCompat=!0;var Tl0=_.r("web_enable_sink_animated_rolling_character_and_number")?PDT:YBR,Z0F=_.r("web_enable_sink_animated_rolling_character_and_number")?PDT:pIt(YBR),t5T=_.m(function(){for(var W=[],B=1;B<30;B++)W.push(_.w("div",null,B%10));return _.w(_.AW,null,_.w("div",null,"\u00a0"),W,_.w("div",null,"\u00a0"))},"l"),s2F=_.m(function(W){var B=W.character;
return _.w(_.AW,null,_.w("div",null,"\u00a0"),_.w(_.V,{cond:function(){return!(B==null?0:B())||_.TT(B==null?void 0:B())},
then:function(){return _.w("div",null,"\u00a0")},
else:function(){return _.w("div",null,B)}}),_.w("div",null,"\u00a0"))},"m");vat.componentType=H5;var rcM=_.m(function(W){var B=void 0,z=void 0,G=function(){var d;return((d=W.fontSizeMultiplier)==null?0:d.call(W))?W.heightPx()*W.fontSizeMultiplier():W.heightPx()},Y=_.r4(function(){if(!W.numberText())return[];
var d,E,v=((d=W.forceRollUp)==null?void 0:d.call(W))||!z||!((E=W.numberValue)==null?0:E.call(W))||z<W.numberValue(),c,J=W.numberText();d=G();E=!((c=W.shouldAnimate)==null||!c.call(W));c=[];var g=0,t=0,P=(B?B.replace(/\D/g,"").length:0)-(J?J.replace(/\D/g,"").length:0),Z=B?B.split(/(\d)/).filter(Boolean):[];for(J=J.split(/(\d)/).filter(Boolean);P<0;){var l=J[t];c.push({character:l,rollUp:v,marginMultiplier:d,shouldAnimate:E});t++;zy(l)&&P++}for(;g<P;)l=Z[g],c.push({previousCharacter:l,rollUp:v,marginMultiplier:d,
shouldAnimate:E}),g++,zy(l)||P++;for(;t<J.length;)P=J[t],l=Z[g],zy(P)===zy(l)?(t++,g++):zy(P)?(g++,P=void 0):zy(l)&&(t++,l=void 0),c.push({character:P,previousCharacter:l,rollUp:v,marginMultiplier:d,shouldAnimate:E});B=W.numberText();var b;z=(b=W.numberValue)==null?void 0:b.call(W);return c},void 0,"kWiBv");
return _.w("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return W.numberText()?["height: "+G()+"px;","line-height: "+W.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.w(_.IJ,{each:Y,keyBy:"INDEX"},function(d){return _.w(Z0F,{character:function(){return d().character},
previousCharacter:function(){return d().previousCharacter},
marginMultiplier:function(){return d().marginMultiplier},
rollUp:function(){return d().rollUp},
shouldAnimate:function(){return d().shouldAnimate}})}))},"n");
rcM.idomCompat=!0;_.kVH=_.r("web_enable_sink_animated_rolling_character_and_number")?rcM:pIt(vat);var lXU=function(W,B){this.fillAnimation=new Animation(JNx(W),document.timeline);this.strokeAnimation=new Animation(gat(B),document.timeline)};
lXU.prototype.play=function(){var W,B;(B=(W=this.fillAnimation).play)==null||B.call(W);var z,G;(G=(z=this.strokeAnimation).play)==null||G.call(z)};
lXU.prototype.cancel=function(){var W,B;(B=(W=this.fillAnimation).cancel)==null||B.call(W);var z,G;(G=(z=this.strokeAnimation).cancel)==null||G.call(z)};_.O6=_.m(function(W){var B=W.model;var z=W.pointerDownEvent;var G=W.pointerUpEvent;var Y=W.pointerLeaveEvent;var d=W.hovered;W=_.LG("div");var E=_.LG("div"),v=_.LG("div"),c=_.A(_.IK(function(){return(G==null?0:G())||(Y==null?0:Y())?!1:!(z==null||!z())||!1})),J=c.next().value,g=c.next().value,t=void 0,P=function(){!t&&v.value&&E.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(t=new lXU(v.value,E.value));
var e;(e=t)==null||e.play()},Z=function(){var e;
(e=t)==null||e.cancel()},l=function(){var e;
(e=t)==null||e.cancel()};
_.ja(function(){(G==null?0:G())&&P()},"bg756c");
_.ja(function(){(z==null?0:z())&&Z()},"QAes8c");
_.ja(function(){(Y==null?0:Y())&&l()},"YaFbrc");
c=_.lF(function(){P();g(!1)});
var b=_.lF(function(){Z();g(!0)}),O=_.lF(function(){l();
g(!1)});
_.fR(function(){if(t){var e;(e=t)==null||e.cancel();t=void 0}});
var K={};J=_.kG("yt-spec-touch-feedback-shape",function(){return tey(B().color)},function(){return scR(B().thumbnailSize,!!B().isExtended)},(K["yt-spec-touch-feedback-shape--focused"]=function(){return!!B().focused&&!B().disabled},K["yt-spec-touch-feedback-shape--circular"]=function(){return!!B().circular},K["yt-spec-touch-feedback-shape--down"]=J,K["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!B().triggerEvents},K["yt-spec-touch-feedback-shape--hovered"]=function(){return d==
null?void 0:d()},K));
return _.w("yt-touch-feedback-shape",{style:_.oK({"border-radius":"inherit"})},_.w("div",{el:W,class:J,style:_.oK({"margin-top":function(){return B().customTopExtend?"-"+B().customTopExtend+"px":void 0}}),
"on:mousedown":b,"on:mouseup":c,"on:pointerleave":O,"on:touchstart":b,"on:touchend":c,"aria-hidden":!0},_.w(_.V,{cond:function(){return!!B().hoverEffect},
then:function(){return _.w("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.oK({"border-radius":function(){return B().borderRadius},
background:function(){var e;if(e=B().hoverEffect){for(var a=[],q=_.A((e==null?void 0:e.lightingTechniques)||[]),n=q.next();!n.done;n=q.next())switch(n.value){case 2:var L=n=void 0;a.push("linear-gradient(135deg, "+((n=e)==null?void 0:(L=n.palette)==null?void 0:L.keyLight)+",transparent)")}var By,gk;a.push((By=B().hoverEffect)==null?void 0:(gk=By.palette)==null?void 0:gk.background);e=a.join(", ")}else e=void 0;return e}})})}}),_.w("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.oK({"border-radius":function(){return B().borderRadius},
"border-color":function(){var e,a;return(e=B().touchEffect)==null?void 0:(a=e.palette)==null?void 0:a.background}}),
el:E}),_.w("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.oK({"border-radius":function(){return B().borderRadius},
"background-color":function(){var e,a;return(e=B().touchEffect)==null?void 0:(a=e.palette)==null?void 0:a.background}}),
el:v})))},"o");
_.O6.idomCompat=!0;var CDU={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 X$=_.Py();X$=X$.toLowerCase();if(_.cy(X$,"android")){var IX9=X$.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);IX9&&parseFloat(IX9[1])<100||X$.match("("+Object.keys(CDU).join("|")+")")};var opR=_.m(function(W){return _.w(_.V,{cond:W.aTagConfig,then:function(B){return _.w(_.fL,{aTagConfig:B,disabled:W.disabled,className:W.className,style:W.style,title:W.title,ariaLabel:W.ariaLabel,ariaCurrent:function(){var z,G;return((z=W.toggleable)==null?void 0:z.call(W))&&((G=W.toggled)==null?void 0:G.call(W))},
ref:W.ref},W.children)},
else:function(){return _.w("button",{el:_.TG(W.ref),"on:click":_.lF(function(B){var z;return(z=W.onClick)==null?void 0:z.call(W,B)}),
class:W.className,title:W.title,style:W.style,disabled:W.disabled,"aria-pressed":function(){var B,z;return((B=W.toggleable)==null?0:B.call(W))?!((z=W.toggled)==null||!z.call(W)):void 0},
"aria-label":W.ariaLabel,"aria-disabled":W.visiblyDisabled,"aria-hidden":W.ariaHidden,tabindex:W.tabIndex},W.children)}})},"p"),H0M=_.m(function(W){var B=W.data;
var z=W.hasIconLeading;var G=W.hasIconLeadingTrailing;var Y=W.hasIconTrailing;var d=W.iconButton;var E=W.iconClassName;var v=W.secondaryIconClassName;var c=W.icon;var J=W.secondaryIcon;var g=W.textContentClassName;return _.w(KL,{className:"",style:"display: inherit; justify-content: center"},_.w(_.V,{debugInstance:"V4z1Uc",cond:function(){return c&&(z()||G()||(d==null?void 0:d()))},
then:function(){return _.w(KL,null,_.w("div",{class:E,"aria-hidden":"true"},c==null?void 0:c()))}}),_.w(_.V,{debugInstance:"ok3btb",
cond:function(){return(B().buttonText||B().animatedTextProps||B().formattedButtonText)&&!(d==null?0:d())},
then:function(){return _.w(KL,null,_.w(hGF,{className:g,iconPosition:function(){return B().iconPosition},
text:function(){return B().buttonText},
oneOffCustomTextWrap:function(){return B().oneOffCustomTextWrap},
formattedButtonText:function(){return B().formattedButtonText},
animatedTextProps:function(){return B().animatedTextProps}}))}}),_.w(_.V,{debugInstance:"DO5Rz",
cond:Y,then:function(){return _.w(KL,null,_.w("div",{class:E},c==null?void 0:c()))}}),_.w(_.V,{debugInstance:"bnojSc",
cond:G,then:function(){return _.w(KL,null,_.w("div",{class:v},J==null?void 0:J()))}}),_.w(_.V,{debugInstance:"HN3kad",
cond:function(){return!B().disabled&&!0},
then:function(){return _.w(_.O6,{model:function(){var t=B();return{color:t.style==="overlay-dark"?4:t.style==="overlay"?t.type==="filled"?4:3:t.type==="filled"||t.style==="call-to-action-inverse"||t.style==="mono-inverse"?2:1}}})}}))},"q"),hGF=_.m(function(W){var B=function(){var z,G;
return((z=W.iconPosition)==null?void 0:z.call(W))==="icon-with-label"||((G=W.oneOffCustomTextWrap)==null?void 0:G.call(W))};
return _.w("div",{class:W.className,"aria-hidden":function(){var z,G,Y;return((z=W.ariaHidden)==null?void 0:z.call(W))&&(!((G=W.animatedTextProps)==null||!G.call(W))||!((Y=W.formattedButtonText)==null||!Y.call(W)))}},_.w(_.HR,null,_.w(_.oJ,{when:function(){var z;
return(z=W.animatedTextProps)==null?void 0:z.call(W)}},function(){return _.w(_.kVH,{numberText:function(){return W.animatedTextProps().numberText},
numberValue:function(){return W.animatedTextProps().numberValue},
heightPx:function(){return W.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return W.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return W.animatedTextProps().shouldAnimate},
forceRollUp:function(){return W.animatedTextProps().forceRollUp}})}),_.w(_.oJ,{when:function(){var z;
return(z=W.formattedButtonText)==null?void 0:z.call(W)}},function(){return _.w(_.r0,{text:function(){return Object.assign({},W.formattedButtonText(),{lineBreakMode:B()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":W.formattedButtonText().lineBreakMode,
alignment:B()?"TEXT_ALIGNMENT_CENTER":W.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!B()}})}),_.w(_.oJ,{when:function(){var z,G;
return((z=W.iconPosition)==null?void 0:z.call(W))==="icon-with-label"&&((G=W.text)==null?void 0:G.call(W))}},function(){return _.w(_.r0,{text:function(){return{content:W.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.w(_.hW,null,function(){return W.text})))},"r"),FlR=_.m(function(W){return _.w(_.V,{debugInstance:"kM7Sgc",
cond:W.hasLabel,then:function(){var B;return _.w("label",{class:W.className},W.children,(B=W.textContent)==null?void 0:B.call(W))},
else:function(){return W.children}})},"s"),KL=_.m(function(W){return W.children},"t");var S1D=_.m(function(W){var B=_.TG(),z=_.A(_.g4(void 0,void 0,"Ug77pc")),G=z.next().value,Y=z.next().value;z=_.A(_.g4(void 0,void 0,"XGf7Zb"));var d=z.next().value,E=z.next().value;z=_.A(_.g4(0,void 0,"Ygnx7b"));var v=z.next().value,c=z.next().value;z=_.lF(function(){switch(v()){case 1:c(2);break;case 3:var g,t;(t=(g=B.value).hidePopover)==null||t.call(g);c(0);Y(void 0);E(void 0)}});
_.ja(function(){if(W.show()){var g;Y((g=W.children)==null?void 0:g.call(W));var t;E((t=W.location)==null?void 0:t.call(W));switch(v()){case 0:var P,Z;(Z=(P=B.value).showPopover)==null||Z.call(P);c(1);break;case 3:c(1);var l,b;(b=(l=B.value).hidePopover)==null||b.call(l);var O,K;(K=(O=B.value).showPopover)==null||K.call(O)}}else switch(v()){case 2:c(3);break;case 1:var e,a;(a=(e=B.value).hidePopover)==null||a.call(e);Y(void 0);E(void 0);c(0)}},"lOyibf");
_.jD(function(){});
var J={};return _.w("yt-popover",{popover:"manual",el:B,style:_.oK({left:function(){var g;return(g=d())==null?void 0:g.left},
top:function(){var g;return(g=d())==null?void 0:g.top},
bottom:function(){var g;return(g=d())==null?void 0:g.bottom},
right:function(){var g;return(g=d())==null?void 0:g.right}}),
class:_.kG("ytPopoverComponentHost",W.classNames,(J.ytPopoverComponentHostClosing=function(){return v()===3},J.ytPopoverComponentHostSeeThrough=function(){var g;
return((g=W.seeThrough)==null?void 0:g.call(W))===!0},J)),
"on:animationend":z},G)},"u");var b0R={left:"0px",right:"auto",top:"0px",bottom:"auto"},j2Q=function(){var W=this;this.registerTooltipElement=function(z){var G;W.tooltipElement=(G=z.querySelector("yt-popover"))!=null?G:void 0};
var B=_.A(_.g4(void 0,void 0,"z4iHWd"));this.state=B.next().value;this.setState=B.next().value;B=_.A(_.g4(void 0,void 0,"uKDcaf"));this.schedulerJobID=B.next().value;this.setSchedulerJobID=B.next().value},hy0=function(W,B){var z=Fm,G=_.fg.addJob(function(){var Y=fXM(z,W,B);
z.setState({text:B.text,location:Y,anchor:W,offset:B.offset})},4,B.delay);
z.setSchedulerJobID(G)},HZ2=function(){var W=Fm,B=W.schedulerJobID();
B&&(_.fg.cancelJob(B),W.setSchedulerJobID(void 0));W.setState(void 0)};
j2Q.prototype.notify=function(W,B){var z;((z=this.state())==null?void 0:z.anchor)===W&&(z=fXM(this,W,B),this.setState({text:B.text,location:z,anchor:W,offset:B.offset}))};
var fXM=function(W,B,z){var G=B.getBoundingClientRect();B=window.innerWidth;var Y=window.innerHeight,d=z.location,E=z.offset;z=z.text;if(W=W.tooltipElement){var v=getComputedStyle(W);W=v.font;var c=H2(v.lineHeight),J=H2(v.paddingLeft),g=H2(v.paddingRight),t=H2(v.paddingTop);v=H2(v.paddingBottom);var P=document.createElement("canvas").getContext("2d");P.font=W;z={width:P.measureText(z).width+J+g,height:c+t+v}}else z=void 0;W=z;if(!W)return b0R;z=W.width;W=W.height;J=E+W;t=E+z;c=G.top>=J;J=Y-G.bottom>=
J;g=G.left>=t;t=B-G.right>=t;v=d;switch(d){case "top":!c&&J&&(v="bottom");break;case "bottom":!J&&c&&(v="top");break;case "left":!g&&t&&(v="right");break;case "right":!t&&g&&(v="left")}switch(v){case "top":d=G.left+G.width/2-z/2;G=G.top-W-E;break;case "bottom":d=G.left+G.width/2-z/2;G=G.bottom+E;break;case "left":d=G.left-z-E;G=G.top+G.height/2-W/2;break;case "right":d=G.right+E;G=G.top+G.height/2-W/2;break;default:d=G.left+G.width/2-z/2,G=G.bottom+E}E=Object.assign({},b0R);d+z>B?(E.right="0px",E.left=
"auto"):(E.left=Math.round(Math.max(0,d)+window.scrollX)+"px",E.right="auto");G+W>Y?(E.bottom="0px",E.top="auto"):(E.top=Math.round(Math.max(0,G)+window.scrollY)+"px",E.bottom="auto");return E};var Fm;Fm=new j2Q;_.O0M=_.m(function(){var W=_.r4(function(){var z;return(z=Fm.state())==null?void 0:z.text},void 0,"jgLmfd"),B=_.r4(function(){var z;
return(z=Fm.state())==null?void 0:z.location},void 0,"zV1Udb");
return _.w("yt-tooltip",{class:"ytTooltipContainerHost",el:_.TG(Fm.registerTooltipElement),"aria-hidden":"true"},_.w(S1D,{classNames:"ytTooltipContainerContent",location:B,show:function(){return!!W()},
seeThrough:!0},W))},"v");var lKk=pR("stamper-context");_.uu=_.m(function(W){var B=W.data;var z=W.icon;var G=W.iconName;var Y=W.animateIcon;var d=W.secondaryIcon;var E=W.secondaryIconName;var v=W.focusedOverride;var c=W.clientOnlyWizTooltipsEnabled;SBt();var J=P8X(B),g=J.size,t=J.style;W=J.disabled;var P=J.onTap,Z=J.alignByText,l=J.aTagConfig,b=J.customColors,O=J.segmentedPosition,K=J.toggled,e=J.toggleable,a=J.accessibilityLabel,q=J.onToggle,n=J.iconPosition,L=J.oneOffCustomTextWrap,By=J.disableTextEllipsis,gk=J.disableBackdropFilter,vy=J.tooltipText,
lx=J.ariaHidden,Zv=J.tabIndex,VR=J.buttonText,ux=J.formattedButtonText,X2=J.animatedTextProps,WQ=lft(B,z,d,G,E,v,Y),XH=WQ.type;z=WQ.shouldFocus;G=WQ.hasIconLeading;Y=WQ.hasIconTrailing;var wU=WQ.hasIconLeadingTrailing,RD=WQ.hasIconOnly;d=WQ.hasIconOnly40;var sF=WQ.hasIconWithLabel;E=WQ.iconButton;var Vd=WQ.visiblyDisabled;v=WQ.overrideSmallSizeIcon;J=WQ.iconToRender;WQ=WQ.secondaryIconToRender;var bR=_.A(FMX(vy)).next().value,Sf={},UF={};return _.w(FlR,{className:_.kG("yt-spec-button-shape-with-label",
(Sf["yt-spec-button-shape-with-label--is-overlay"]=function(){return t()==="overlay"||t()==="overlay-dark"},Sf)),
hasLabel:sF,textContent:function(){return _.w(hGF,{text:VR,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:L,iconPosition:n,formattedButtonText:ux,animatedTextProps:X2})}},_.w(opR,{aTagConfig:l,
className:_.kG("yt-spec-button-shape-next",function(){return C8T(XH())},function(){return Vd()?void 0:IfQ(t())},function(){return oau(g())},(UF["yt-spec-button-shape-next--disabled"]=Vd,UF["yt-spec-button-shape-next--focused"]=z,UF["yt-spec-button-shape-next--icon-trailing"]=Y,UF["yt-spec-button-shape-next--icon-leading"]=G,UF["yt-spec-button-shape-next--icon-leading-trailing"]=wU,UF["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return wU()&&!(VR()||ux())},UF["yt-spec-button-shape-next--icon-button"]=
function(){return RD()||sF()},UF["yt-spec-button-shape-next--icon-only-default"]=d,UF["yt-spec-button-shape-next--align-by-text"]=Z,UF["yt-spec-button-shape-next--segmented-start"]=function(){return O()==="start"},UF["yt-spec-button-shape-next--segmented-end"]=function(){return O()==="end"},UF["yt-spec-button-shape-next--override-small-size-icon"]=v,UF["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=L,UF["yt-spec-button-shape-next--disable-text-ellipsis"]=By,UF["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!gk()&&!_.r("web_disable_backdrop_filter")},UF)),
style:function(){var pu=b();if(pu){var BQ=pu.color;var Z9=pu.backgroundColor;pu=pu.borderColor;var cn="";BQ&&(cn+="color: "+BQ+";");Z9&&(cn+="background-color: "+Z9+";");pu&&(cn+="border-color: "+pu+";");BQ={style:cn}}else BQ={};return BQ.style},
onClick:function(pu){P==null||P(pu);e()&&(q==null||q(pu))},
disabled:W,ariaLabel:a,toggleable:e,toggled:K,title:function(){return(c==null?0:c())||!vy()?"":vy()},
visiblyDisabled:Vd,ariaHidden:lx,tabIndex:Zv,ref:function(pu){(c==null?0:c())&&bR(pu)}},_.w(H0M,{data:B,
hasIconLeading:G,hasIconLeadingTrailing:wU,hasIconTrailing:Y,iconButton:E,icon:J,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:WQ})))},"w");
_.uu.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.ex=_.m(function(W){var B=W.data;var z=W.className;var G=W.style;var Y=W.useOutlinedIcon;var d=W.buttonOverrides;var E=W.animatedTextProps;var v=W.onClick;var c=W.target;var J=_.LG("button-view-model",function(e){e.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var a=B().targetId;a&&_.tq7(_.aq(),a,e);return function(){Jn4(_.aq(),e)}}),g=function(){return B().iconName},t,P=(t=_.dO().resolve(_.Y8(_.YG)))==null?void 0:t(),Z=function(){var e=B();
var a=d==null?void 0:d(),q=E==null?void 0:E(),n=c==null?void 0:c();if(e){var L=u9Q(e.type);var By=!!e.title||!!e.titleFormatted;var gk=!(!e.iconName&&!e.iconImage);By=gk&&!By?"icon-only":gk?e.iconTrailing||e.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;By==="icon-only-40"&&(L="text");var vy;gk=(vy=a==null?void 0:a.state)!=null?vy:eyR(e.state);var lx,Zv=(lx=a==null?void 0:a.disabled)!=null?lx:e.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||e.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.r("web_button_vm_refactor_disabled")){var VR;Zv=(VR=a==null?void 0:a.disabled)!=null?VR:gk==="disabled"}q=q&&q.numberText&&!isNaN(Number(q.numberValue))?q:void 0;lx=Object;VR=lx.assign;vy=e.title;var ux=e.titleFormatted,X2=e.accessibilityText,WQ=KMX(e.style),XH=muD(e.buttonSize);n=XIy(e,J,Zv,v,n);Zv=Zv&&!e.onDisabledTap;var wU=ffQ(e,J),RD=e.customFontColor,sF=e.customBackgroundColor;var Vd=e.customBorderColor;var bR=e.customDarkThemeFontColor,Sf=e.customDarkThemeBackgroundColor,UF=e.customDarkThemeBorderColor;
RD=P&&bR?bR:RD;sF=P&&Sf?Sf:sF;Vd=P&&UF?UF:Vd;Vd={color:RD?_.aE(RD):void 0,backgroundColor:sF?_.aE(sF):void 0,borderColor:Vd?_.aE(Vd):void 0};e=VR.call(lx,{},{buttonText:vy,formattedButtonText:ux,animatedTextProps:q,accessibilityLabel:X2,style:WQ,type:L,state:gk,size:XH,iconPosition:By,onTap:n,disabled:Zv,aTagConfig:wU,customColors:Vd,tooltipText:e.tooltip},a)}else e={style:"mono",type:"text",state:"active",size:"M"};e.focused=O();return e},l=function(){return rNx(Z(),!!B().iconName)};
W=_.A(_.g4(!1,void 0,"WVXhrd"));t=W.next().value;var b=W.next().value,O=t;W=_.lF(function(){var e=_.dO().resolve(_.Y8(_.jx));e&&b(e.isKeyBoardInUse());return!1});
t=_.lF(function(){b(!1);return!1});
_.ja(function(){var e,a=_.k(B==null?void 0:(e=B())==null?void 0:e.onVisible,_.NH);a&&_.L8(a,{disableClickTracking:!0})},"w0lGYc");
var K=_.r("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.w("button-view-model",{el:J,class:_.kG("ytSpecButtonViewModelHost",z),"on:focusin":W,"on:focusout":t},_.w(_.V,{cond:function(){var e;return(B==null?0:(e=B())==null?0:e.iconImage)?{sources:[B().iconImage]}:void 0},
then:function(e){return _.w(_.uu,{data:Z,icon:function(){return _.w(_.iF,{data:e,alt:"",targetWidth:l,targetHeight:l,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:K})},
else:function(){return _.w(_.uu,{data:Z,icon:function(){return _.w(_.hY,{icon:g,active:function(){return(Y==null?0:Y())?!1:Z().toggled},
animateIcon:function(){var e;return!!(G==null?0:(e=G())==null?0:e.animateIcon)},
size:l})},
clientOnlyWizTooltipsEnabled:K})}}))},"x");
_.ex.idomCompat={callbacks:{onClick:!0}};_.Vm(_.m(function(W){return _.w("yt-button-view-model",{id:W.id,class:_.kG(W.scopingClassName,W.classes),icon:function(){var B;return(B=W.icon)==null?void 0:B.call(W)},
"dialog-dismiss":function(){var B;return((B=W.dialogDismiss)==null?0:B.call(W))?"":void 0}},_.w(_.ex,{data:function(){var B;
return(B=W.data)==null?void 0:B.call(W)},
className:function(){var B;return(B=W.className)==null?void 0:B.call(W)},
style:function(){var B;return(B=W.style)==null?void 0:B.call(W)},
useOutlinedIcon:function(){var B;return(B=W.useOutlinedIcon)==null?void 0:B.call(W)},
buttonOverrides:function(){var B;return(B=W.buttonOverrides)==null?void 0:B.call(W)},
animatedTextProps:function(){var B;return(B=W.animatedTextProps)==null?void 0:B.call(W)},
onClick:function(B){var z;return(z=W.onClick)==null?void 0:z.call(W,B)}}))},"y"),"yt-button-view-model",{props:{data:_.kz,
className:_.kz,style:_.kz,useOutlinedIcon:_.kz,buttonOverrides:_.kz,animatedTextProps:_.kz,onClick:_.wS,scopingClassName:_.kz,id:_.kz,icon:_.kz,dialogDismiss:_.kz,classes:_.kz,target:_.wS}});_.Vm(_.m(function(W){var B=W.data;var z=W.id;var G=W.className;var Y=W.iconName;var d=W.animateIcon;var E=W.secondaryIconName;W=_.A(_.g4(!1,void 0,"TtJl8"));var v=W.next().value,c=W.next().value,J=function(){var t=_.dO().resolve(_.Y8(_.jx));t&&c(t.isKeyBoardInUse())},g=function(){c(!1)};
W=_.LG("yt-button-shape",function(t){if(_.dO().resolve(_.Y8(_.jx)))return t.addEventListener("focusin",J),t.addEventListener("focusout",g),function(){t.removeEventListener("focusin",J);t.removeEventListener("focusout",g)}});
return _.w("yt-button-shape",{el:W,id:z,class:G},_.w(_.V,{cond:B,then:function(){return _.w(_.uu,{data:B,iconName:Y,secondaryIconName:E,focusedOverride:v,animateIcon:d})}}))},"z"),"yt-button-shape",{props:{data:_.kz,
id:_.kz,className:_.kz,iconName:_.kz,animateIcon:_.kz,secondaryIconName:_.kz,clientOnlyWizTooltipsEnabled:_.kz,disableUpgrade:_.kz},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var mm=function(){var W=_.S.apply(this,arguments)||this;W.isGoalActive=!0;return W};
_.C(mm,_.S);mm.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
mm.prototype.progressBarChanged=function(){var W=_.tH(this.hostElement).querySelector("#progress-bar-progress"),B,z,G,Y=(G=Number((B=this.creatorGoalState)==null?void 0:B.currentGoalCount)/Number((z=this.creatorGoalState)==null?void 0:z.totalGoalCount)*100)!=null?G:0,d;W.style.width=((d=Math.min(Y,100))!=null?d:0)+"%"};
mm.prototype.goalStateChanged=function(){var W;this.isGoalActive=((W=this.creatorGoalState)==null?void 0:W.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var B;W={"--yt-progress-bar-color":C$X((B=this.creatorGoalState)==null?void 0:B.progressBarColor)};_.kw(this.hostElement,W)};
mm.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.G5.Object.defineProperties(mm.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var W;return this.isGoalActive&&!((W=this.creatorGoalState)==null||!W.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.creatorGoalState)==null?0:W.endTimestampMs){var B;W=Number((B=this.creatorGoalState)==null?void 0:B.endTimestampMs)/1E3;return{seconds:String(W)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.creatorGoalState)==null?0:W.themedTargetImage){var B;W=_.k((B=this.creatorGoalState)==null?void 0:B.themedTargetImage,jY9);return this.isAppDarkTheme()?W==null?void 0:W.imageDark:W==null?void 0:W.imageLight}}}});
_.G5.Object.defineProperties(mm,{template:{configurable:!0,enumerable:!0,get:function(){return EpD()}}});
mm.prototype.goalStateChanged=mm.prototype.goalStateChanged;mm.prototype.progressBarChanged=mm.prototype.progressBarChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],mm.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c7),_.y("design:type",Object)],mm.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);
_.Q([_.F({selectorArgs:["data.creatorGoalEntityKey"],selector:function(W,B){return _.P3(W.entities,"creatorGoalEntity",B)}}),
_.y("design:type",Object)],mm.prototype,"creatorGoalState",void 0);_.Q([_.F(),_.y("design:type",Object)],mm.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],mm.prototype,"isGoalActive",void 0);_.Q([_.H("creatorGoalState","isGoalActive"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],mm.prototype,"shouldShowCountdown",null);_.Q([_.H("creatorGoalState"),_.y("design:type",Object),_.y("design:paramtypes",[])],mm.prototype,"endTimestamp",null);
_.Q([_.H("creatorGoalState"),_.y("design:type",Object),_.y("design:paramtypes",[])],mm.prototype,"targetIconThemedImage",null);_.Q([_.oN("creatorGoalState.currentGoalCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mm.prototype,"progressBarChanged",null);_.Q([_.oN("creatorGoalState.creatorGoalState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mm.prototype,"goalStateChanged",null);
_.Q([_.NJ({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],mm);_.D(mm,"yt-creator-goal-progress-flow-view-model",function(){return EpD()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var X6D;var KlM;var xz=function(){return _.S.apply(this,arguments)||this};
_.C(xz,_.S);xz.prototype.attached=function(){var W,B,z;if(this==null?0:(W=this.data)==null?0:(B=W.pdgPurchasedBumperLoggingDirectives)==null?0:(z=B.loggingDirectives)==null?0:z.trackingParams){var G,Y,d;QcT(this==null?void 0:(G=this.data)==null?void 0:(Y=G.pdgPurchasedBumperLoggingDirectives)==null?void 0:(d=Y.loggingDirectives)==null?void 0:d.trackingParams)}};
xz.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],xz.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],xz.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],xz.prototype,"data",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],xz);
_.D(xz,"yt-live-chat-item-bumper-view-model",function(){if(KlM===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;X6D===void 0&&(X6D=document.createElement("template"));var G=X6D;z.call(B,G.content.cloneNode(!0),W.content.firstChild);KlM=W}W=KlM;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var u_7;var eGR;_.du=function(W,B){this.data=W;this.actions=B;this.data=W;this.actions=B};
_.ME=function(){};_.Ds={};_.Ds.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(W,B){yNQ(this.hostElement,W,B)},
getNavigationEndpointPopupAction:function(W){return qB0(W,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(W,B){naR(this.hostElement,W,B,this.openPopupConfig)}};var zc8=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.Qe={};
_.Qe.YtEndpointBehavior=[_.Ds.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.eD("openPopupConfig");(this.useClickHandler=_.md("useClickHandler",!1))?this.hostElement.addEventListener("click",lP(this,this.onEndpointClick_)):(XQ(this.hostElement,"tap",lP(this,this.onEndpointTap_)),XQ(this.hostElement,"touchend",lP(this,this.onEndpointTouchEnd_)));XQ(this.hostElement,"touchstart",lP(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
lP(this,this.onEndpointTapStart_))},
onEndpointClick_:function(W){LMX(this.hostElement,W,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(W){var B=this.hostElement,z=this.openPopupConfig,G=this.disableCommandHandlerOverride;G=G===void 0?!1:G;var Y=Nl2(W);if(Y){Y.href&&Bf(Y.href);var d=W.detail;var E=d.sourceEvent;d=d.preventer;E=E.button!==void 0?E.button===0&&!bF(E):d?!bF(d):!0;Y.data&&E&&$u2(B,Y,W,z,G)}},
onEndpointTouchEnd_:function(W){bF(W)||Nl2(W)&&W.preventDefault()},
onEndpointTapStart_:function(W){Wiy(W)}}];_.ye={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(W){for(var B=_.Qx.getInstance(),z=_.A(Object.keys(W)),G=z.next();!G.done;G=z.next()){var Y=G.value;G=W[Y];if(this&&this[G]){var d=B.actionRoutingMap.get(Y);d||(d=new Map,B.actionRoutingMap.set(Y,d));B.registerActionHandler(this,Y,this[G].bind(this),d)}else Y=Error("md"),Y.params=G,_.xr(Y)}},
unregisterActionMap:function(W){_.Nl(_.Qx.getInstance(),W,this)}}]};var Ov=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_"+(_.r("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.r("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.r("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.r("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.r("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.r("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var fy;var Xm=new Map;var JOX=window.matchMedia("(forced-colors: active)").matches;var m3F;var x36;var D39=new _.t1("LOTTIE_LOADER_TOKEN");_.q8=_.m(function(W){var B=W.data;var z=W.className;var G=W.animationName;var Y=W.animationRef;var d=W.elRefForInterop;var E=_.ag("lottie-component"),v;_.fR(function(){var J;return void((J=v)==null?void 0:J.destroy())});
var c;_.ja(function(){var J=_.XA(G);if(J!==c){c=J;var g=Object.assign({},{animationName:J,animationRef:_.XA(Y)},_.XA(B));try{_.dO().resolve(D39)().then(function(Z){var l;(l=v)==null||l.destroy();var b,O;l=(O=d==null?void 0:(b=d())==null?void 0:b.value)!=null?O:E.value;b=g.animationRef;O=g.listeners;Z=Z.loadAnimation(Object.assign({},{container:l},g.animationConfig));b&&(b.lottieEl=Z);if(O)for(l=_.A(Object.entries(O)),b=l.next();!b.done;b=l.next())O=_.A(b.value),b=O.next().value,(O=O.next().value)&&
Z.addEventListener(b,O);v=Z})}catch(Z){J=Z;
var t="LottieComponent error.";J.message&&(t+=" Original description: "+J.message);_.XC(J,t);_.Oc(J);var P;((P=g.listeners)==null?0:P.error)&&g.listeners.error(J)}}},"nrJISd");
return _.w(Mtv,{cond:function(){return!(d==null?0:d())},
then:function(){return _.w("lottie-component",{class:_.kG("ytLottieComponentHost",z),el:E})}})},"A");_.Vm(_.m(function(W){return _.w("ytd-lottie-player",{id:W.id,hidden:W.hidden,class:W.className,"aria-label":W.ariaLabel,style:"display: block;"},_.w(_.q8,{data:W.data,animationName:function(){var B;return((B=W.data().animationConfig)==null?void 0:B.name)||""},
animationRef:function(){return W.data().animationRef}}))},"B"),"ytd-lottie-player",{props:{data:_.kz,
id:_.kz,hidden:_.kz,className:_.kz,ariaLabel:_.kz}});var nL=function(){var W=_.S.apply(this,arguments)||this;W.animationRef={};W.delhiIconsEnabled=_.r("enable_web_delhi_icons");return W};
_.C(nL,_.S);_.p=nL.prototype;
_.p.handlePropertyChange=function(){var W=this.animatedIcon,B=this.active,z=this.isDarkTheme;if(W){var G=this.previousActive!==B;this.previousActive=B;this.animationRef.lottieEl?G&&this.toggleAnimation(B,W.totalFrames):B?this.initializeAnimationAsToggled(W.lottiePlayerProps,W.totalFrames):this.initializeAnimationAsUntoggled(W.lottiePlayerProps);W.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=W.type;this.lottiePlayerProps=this.computeLottiePlayerProps(W,z)}};
_.p.computeLottiePlayerProps=function(W,B){var z=this.deepCloneLottiePlayerProps(W);B?(B=W.nameDarkTheme,W=W.pathDarkTheme):(B=W.name,W=W.path);z.animationConfig.name=B;(B=Xm.get(W))?z.animationConfig.animationData=B:z.animationConfig.path=W;return z};
_.p.initializeAnimationAsToggled=function(W,B){W.animationConfig.initialSegment=[B-1,B]};
_.p.initializeAnimationAsUntoggled=function(W){W.animationConfig.initialSegment=void 0};
_.p.toggleAnimation=function(W,B){if(W){var z;(z=this.animationRef.lottieEl)==null||z.playSegments([0,B],!0)}else{var G;(G=this.animationRef.lottieEl)==null||G.playSegments([0,1],!0)}};
_.p.deepCloneLottiePlayerProps=function(W){var B=Object.assign({},W.lottiePlayerProps.animationConfig);W=Object.assign({},W.lottiePlayerProps);W.animationConfig=B;return W};
nL.prototype.handlePropertyChange=nL.prototype.handlePropertyChange;_.Q([_.F(),_.y("design:type",Object)],nL.prototype,"animatedIcon",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],nL.prototype,"active",void 0);_.Q([_.F(),_.y("design:type",Boolean)],nL.prototype,"isDarkTheme",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],nL.prototype,"animatedIconType",void 0);_.Q([_.F(),_.y("design:type",Boolean)],nL.prototype,"previousActive",void 0);
_.Q([_.F(),_.y("design:type",Object)],nL.prototype,"lottiePlayerProps",void 0);_.Q([_.F(),_.y("design:type",Object)],nL.prototype,"animationRef",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],nL.prototype,"delhiIconsEnabled",void 0);_.Q([_.oN("animatedIcon","active","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nL.prototype,"handlePropertyChange",null);_.Q([_.NJ({is:"yt-animated-icon",disableElementRegistration:!0})],nL);
_.D(nL,"yt-animated-icon",function(){if(x36===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;m3F===void 0&&(m3F=document.createElement("template"));var G=m3F;z.call(B,G.content.cloneNode(!0),W.content.firstChild);x36=W}W=x36;return W},{mode:2});var Q2M;var ycM;var rO2=_.m(function(W){var B=_.ag("span"),z=fx(function(){return{value:null,cancelled:!1}});
_.fR(function(){z.cancelled=!0});
var G=_.r4(W.data,{equals:function(Y,d){return Y.iconName===d.iconName&&Y.iconStyle===d.iconStyle&&Y.iconSize===d.iconSize&&Y.iconSetName===d.iconSetName&&Y.iconSelected===d.iconSelected}},"AoOoyf");
_.ja(function(){var Y,d=(Y=W.options)==null?void 0:Y.call(W);ZzR(B,z,G(),d)},"Tie9e");
return _.w("span",{class:"yt-icon-shape",el:B})},"C");
rO2.idomCompat=!0;var PGx=["youtube_fill","youtube_outline"];var q1R=new _.Np({type:"iconset",value:void 0}),N8=function(){var W=_.S.apply(this,arguments)||this;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.iconName="";W.iconsetName="yt-icons";W.iconset=null;W.missingIconSet=!1;W.iconType=null;W.iconShapeDataSignal=_.g4(void 0,void 0,"b0v7Ac");W.renderingOptionsSignal=_.g4({iconWidth:"100%",iconHeight:"100%",iconFilter:W.iconFilter},void 0,"Ls6l3e");W.wizHasRendered=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.C(N8,_.S);N8.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
N8.prototype.handlePropertyChange=function(){var W=this,B,z,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K;return _.T(function(e){switch(e.nextAddress){case 1:if(B=!W.icon&&!W.iconName||!W.isAttached)return e.return();z=W;G=z.icon;Y=z.size;d=z.defaultToFilled;E=z.active;v=z.targetContainer;W.toggleContainerClass(v);_.r("kevlar_use_wil_icons")&&G&&(c=MBX(G),W.iconType=c.length?c[1]:null);if(G){e.jumpTo(2);break}W.iconsetName="";W.iconName="";return e.yield(W.renderIcon(v,G),3);case 3:return e.return();case 2:J=npM(G);
g=MBX(J);g.length&&(W.iconsetName=g[0],W.iconName=g[1]);if(!_.r("kevlar_use_wil_icons")){e.jumpTo(4);break}t=N8;P=NZM;Z=W.iconType;l=W.active;b=W.defaultToFilled;O=W.size;K=W.iconsetName;return e.yield($3R(),6);case 6:return e.yield(P.call(t,Z,l,b,O,K,e.yieldResult),5);case 5:W.iconShapeData=e.yieldResult;case 4:if(W.shouldRenderIconShape(v)){e.jumpTo(7);break}return e.yield(W.determineIconSet(J,E,d,Y,v),7);case 7:return e.yield(W.renderIcon(v,G),0)}})};
N8.prototype.toggleContainerClass=function(W){W?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var npM=function(W){return!_.r("default_to_innertube_icon")||W.indexOf(":")>0?W:_.lg(W)};
_.p=N8.prototype;_.p.determineIconSet=function(W,B,z,G){var Y=this;return _.T(function(d){return d.nextAddress==1?_.r("kevlar_system_icons")||_.eD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.eD("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?d.yield(Y.switchToYtSysIconset(W,B,z,G),3):d.jumpTo(2):d.nextAddress!=2?d.return():d.yield(Y.useYtSysIconsetForMissingIcons(W,B,z,G),0)})};
_.p.switchToYtSysIconset=function(W,B,z,G){var Y=this,d,E,v,c,J,g,t;return _.T(function(P){switch(P.nextAddress){case 1:if(!W||Y.iconsetName!=="yt-icons"&&Y.iconsetName!=="yt-sys-icons"){P.jumpTo(0);break}d=MBX(W);E=d[1];E=_.Aly(E);_.r("enable_polymer_icons_replace_underscores_dash")&&E.includes("_filled")&&(E=E.replace(/_filled/g,"-filled"));return P.yield(kB(E,!0),3);case 3:return v=P.yieldResult,P.yield(kB(E,!1),4);case 4:if((c=P.yieldResult)||B&&v)Y.iconsetName="yt-sys-icons";Y.iconName=Y.getIconName(E,
B,z,c,v);if(G===24){P.jumpTo(0);break}J="yt-sys-icons"+G+":"+Y.iconName;return P.yield(kB(J,!1,!0),6);case 6:return g=P.yieldResult,P.yield(kB(J,!0,!0),7);case 7:t=P.yieldResult;Y.iconName=Y.getIconName(E,B,z,g,t);if(!B&&g||B&&t)Y.iconsetName="yt-sys-icons"+G;_.HG(P)}})};
_.p.getIconName=function(W,B,z,G,Y){W.includes("-filled")&&(W=W.replace("-filled",""));return Y&&(B||z)?W+"-filled":W};
_.p.useYtSysIconsetForMissingIcons=function(W,B,z,G){var Y=this,d,E;return _.T(function(v){if(v.nextAddress==1)return Y.iconsetName!=="yt-icons"?v.jumpTo(0):v.yield(kB(Y.iconName,!1,!1,!0),3);if(v.nextAddress!=4)return d=v.yieldResult,v.yield(kB(Y.iconName,!1),4);E=v.yieldResult;if(d||!E)return v.jumpTo(0);Y.iconsetName="yt-sys-icons";return v.yield(Y.switchToYtSysIconset(W,B,z,G),0)})};
_.p.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var $3R=function(){return _.T(function(W){try{return W.return(_.dO().resolve(_.C8))}catch(B){return W.return(new Promise(function(z){_.J5().parkOrScheduleJob(function(){z(_.dO().resolve(_.C8))},2,"ci")}))}})},NZM=function(W,B,z,G,Y,d){G=G===void 0?24:G;
if(W){W=W.toLowerCase();var E=W.endsWith("_filled")||W.endsWith("-filled");B={iconName:W,iconStyle:(B===void 0?0:B)||(z===void 0?0:z)||E?"youtube_fill":"youtube_outline",iconSize:G,iconSetName:Y===void 0?"yt-icons":Y};z=!!d.resolveIcon(B);z||(B.iconSize=void 0,z=!!d.resolveIcon(B));!z&&E&&(B.iconName=W.substring(0,W.length-7),B.iconSize=G,z=!!d.resolveIcon(B),z||(B.iconSize=void 0,z=!!d.resolveIcon(B)));z||(B.iconStyle=void 0,z=!!d.resolveIcon(B));z||_.Oc(new _.oX("Icon not supported",{iconName:B.iconName,
iconStyle:B.iconStyle,iconSize:B.iconSize,iconType:W}));return z?B:void 0}};
_.p=N8.prototype;_.p.shouldRenderIconShape=function(W){if(!_.r("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;W=this.getContainer(W);return!go2(W,this.icon)};
_.p.renderIcon=function(W,B){var z=this,G,Y,d,E,v,c,J,g;return _.T(function(t){switch(t.nextAddress){case 1:if(B&&z.icon!==B)return t.return();G=z.getContainer(W);Y=go2(G,z.icon);if(z.shouldRenderIconShape(W)&&z.iconType)return z.applyIconShape(Y,G),t.return();z.removeIconShape();if(!G)return t.return();z.iconName===""&&z.iconset&&G&&(z.removeStaticIcon(z.iconset,G),Y&&z.removeAnimatedIcon(G));if(z.iconName===""&&z.iconset||!z.iconsetName||!q1R)return t.return();z.iconset=q1R.byKey(z.iconsetName);
if(!z.iconset)return z.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Co(z,z.onIconsetAdded)),t.return();z.missingIconSet&&(z.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Co(z,z.onIconsetAdded)));E=(d=Y||z.isAnimatedIcon?w9R(z.icon):void 0)&&!d.lazyLoad;c=d&&((v=d)==null?void 0:v.lazyLoad)&&(d.lottiePlayerProps.animationConfig.animationData?!0:Xm.get(z.isDarkTheme?d.pathDarkTheme:d.path)?!0:!1);if(E||c)return z.applyAnimatedIcon(G,d,z.iconset),t.return();if(c||
(J=d)==null||!J.lazyLoad){t.jumpTo(2);break}g=svt(d,z.isDarkTheme);z.applyStaticIcon(z.iconset,G,z.iconName,W,Y);return t.yield(g,3);case 3:return t.yield(z.renderIcon(z.targetContainer,z.icon),4);case 4:return t.return();case 2:z.applyStaticIcon(z.iconset,G,z.iconName,W,Y),_.HG(t)}})};
_.p.getContainer=function(W){var B,z=(B=PMR(this.hostElement))==null?void 0:B.host;B=!!z&&!!z.polymerController;if(!W||B)return W?this.getTargetContainer(W,z):this.hostElement};
_.p.getTargetContainer=function(W,B){var z=_.tH(B).querySelector("#"+W);z||(W=new _.oX("yt-icon container missing",B.is,W),_.jy(W));return z};
_.p.applyStaticIcon=function(W,B,z,G,Y){Y&&this.removeAnimatedIcon(B);this.removeIconShape();Y=Y&&!!this.iconType&&!!this.iconShapeData&&_.r("kevlar_use_wil_icons");try{Y?this.applyIconShape(!1,B):W.applyIcon(B,z)}catch(d){this.handleError(d,G,B)}};
_.p.applyIconShape=function(W,B){this.iconset&&B&&(this.removeStaticIcon(this.iconset,B),W&&this.removeAnimatedIcon(B));W={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var z=_.A(this.iconShapeDataSignal);B=z.next().value;z=z.next().value;var G=_.A(this.renderingOptionsSignal),Y=G.next().value;G=G.next().value;z(this.iconShapeData);G(W);if(!this.wizHasRendered)for(this.wizHasRendered=!0,W=_.A(kOR(B,Y)).next().value;W.firstChild;)_.tH(this.hostElement).appendChild(W.firstChild)};
_.p.removeIconShape=function(){if(_.r("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.p.removeStaticIcon=function(W,B){W.removeIcon(B)};
_.p.applyAnimatedIcon=function(W,B,z){this.removeStaticIcon(z,W);this.removeIconShape();var G;z=this.animatedIconElement&&((G=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:G.type)===B.type;if(this.animatedIconElement&&z){this.animatedIconElement.polymerController.animatedIcon=B;var Y;((Y=this.animatedIconElement)==null?void 0:Y.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(W),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=B,this.animatedIconElement.polymerController.active=this.active,_.r("delhi_modern_web_player_icons")?(B=VIR(W,this.icon)&&W.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=B?B.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.r("kevlar_use_wil_icons")?
W.insertBefore(this.animatedIconElement,W.childNodes[0]):(W=_.tH(W),W.insertBefore(this.animatedIconElement,W.childNodes[0]))};
_.p.removeAnimatedIcon=function(W){_.r("kevlar_use_wil_icons")?this.animatedIconElement&&W.contains(this.animatedIconElement)&&W.removeChild(this.animatedIconElement):(W=_.tH(W),this.animatedIconElement&&W.contains(this.animatedIconElement)&&W.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.p.handleError=function(W,B,z){_.XC(W,this.iconName,B,z);B=go2(z,this.icon);var G=!1;window.location.href.includes("JpymaW6Lh2w")?G=!0:z._svgIcon&&(z=(z=z._svgIcon.parentNode)?z.tagName:"unknown",_.XC(W,z),z==="YT-ICON"&&W.name==="NotFoundError"?G=!0:W.name==="NotFoundError"&&B&&(G=!0));G?_.Oc(W):_.jy(W)};
_.G5.Object.defineProperties(N8,{template:{configurable:!0,enumerable:!0,get:function(){if(ycM===void 0){var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;
Q2M===void 0&&(Q2M=document.createElement("template"));var G=Q2M;z.call(B,G.content.cloneNode(!0),W.content.firstChild);ycM=W}W=ycM;return W}}});
N8.prototype.handlePropertyChange=N8.prototype.handlePropertyChange;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],N8.prototype,"actionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",String)],N8.prototype,"icon",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],N8.prototype,"active",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],N8.prototype,"defaultToFilled",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],N8.prototype,"isAnimatedIcon",void 0);
_.Q([_.F({value:24}),_.y("design:type",Number)],N8.prototype,"size",void 0);_.Q([_.F({value:""}),_.y("design:type",String)],N8.prototype,"targetContainer",void 0);_.Q([_.F(),_.y("design:type",Object)],N8.prototype,"animatedIconElement",void 0);_.Q([_.F(),_.y("design:type",Object)],N8.prototype,"isDarkTheme",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],N8.prototype,"ariaHidden",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],N8.prototype,"ariaLabel",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],N8.prototype,"role",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],N8.prototype,"tabindex",void 0);_.Q([_.F(),_.y("design:type",String)],N8.prototype,"style",void 0);_.Q([_.F(),_.y("design:type",String)],N8.prototype,"iconFilter",void 0);
_.Q([_.oN("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],N8.prototype,"handlePropertyChange",null);_.Q([_.NJ({is:"yt-icon",noInjection:!0})],N8);var ldT="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),Idt=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var LlM={};LlM.YtPlaintextBehavior=[_.DM,{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(W){W.preventDefault();W=W.clipboardData.getData("text/plain");document.execCommand("insertText",!1,W)},
preventRichTextFormatting_:function(W){_.ZJ&&(W=W.detail.keyboardEvent,W.stopImmediatePropagation(),W.preventDefault())}}];var U37;var M5T;var $z=function(){var W=_.S.apply(this,arguments)||this;W.ignoreShadyDom=!1;W.hasChange_=!1;W.hasSetTitle_=!1;W.useIOObserverForVisibilityLogging_=_.r("kevlar_use_vimio_behavior")&&_.eD("INNERTUBE_CLIENT_NAME")==="WEB";W.ytFormattedStringObserverHandlerKeys_=void 0;return W};
_.C($z,_.S);_.p=$z.prototype;_.p.created=function(){this.useIOObserverForVisibilityLogging_=_.r("kevlar_use_vimio_behavior")&&_.eD("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.p.ready=function(){_.eD("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_()};
_.p.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.p.detached=function(){this.unobserveIOObservers_()};
_.p.clearContents_=function(){for(var W=this.getRoot(),B=W.lastChild;B&&B.tagName!=="STYLE";){try{W.removeChild(B)}catch(z){break}B=W.lastChild}};
_.p.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var W=_.A(this.ytFormattedStringObserverHandlerKeys_),B=W.next();!B.done;B=W.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(B.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.p.resetForAttributedString=function(){var W=this.getRoot();!W.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),W.appendChild(this.ytAttributedStringElementRef))};
_.p.resetForFormattedString=function(){var W=this.getRoot(),B=W.querySelector("yt-attributed-string");B&&(this.ytAttributedStringElementRef=W.removeChild(B))};
_.p.textChanged=function(){this.textChanged_(this.text)};
_.p.textChanged_=function(W){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!W||!W.runs&&!W.simpleText;if(_.r("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var B=this.hostElement.firstChild;B&&B.nodeName==="FONT";){var z=B;B=B.nextSibling;this.hostElement.removeChild(z)}B=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
z=W.simpleText;var G;!z&&((G=W.runs)==null?void 0:G.length)===1&&this.isSimpleString_(W.runs[0])&&(z=W.runs[0].text);z!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.eD("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(z!==void 0){try{B.textContent=z}catch(Y){}B.textContent||(this.isEmpty=!0)}else W=W.runs,z!==void 0&&(W=[{text:z}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),W&&this.updateText_(W),
B.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.p.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)};
_.p.computeAriaLabel_=function(W){return W};
_.p.computeEllipsisTruncateStyling=function(W,B){return W&&!B};
_.p.computeUseAttributedString=function(W){return _.r("web_replace_formatted_with_attributed_string")&&xLu(W)&&!this.disableAttributedString&&!this.enableContentEditable};
_.p.setNodeStyle_=function(W,B){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.r("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?B.removeAttribute("dir"):B.setAttribute("dir","auto");B.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");B.style.color="";var z=null;this.noStyles||(W.bold&&(B.classList.add("bold"),z="bold"),W.deemphasize&&(B.classList.add("deemphasize"),z="deemphasize"),W.italics&&B.classList.add("italic"),
W.strikethrough&&B.classList.add("strikethrough"),W.errorUnderline&&(B.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),W.bracket&&B.classList.add("bracket"),W.textColor&&(B.style.color=_.M_(W.textColor)));z!==B.getAttribute("style-target")&&(z?B.setAttribute("style-target",z):B.removeAttribute("style-target"))};
_.p.setUpVisibilityLogging_=function(W,B){var z=this;this.setNodeTrackingParams_(W,B);var G;((G=B.data)==null?0:G.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(W=this.ytRendererBehavior.visibilityObserver.observe(B,function(Y){var d=z.ytRendererBehavior.getVisibilityLogger();d&&d.reportShown(Y)},this.ytRendererBehavior.visibilityOptionVisible_),B=this.ytRendererBehavior.visibilityObserver.observe(B,function(Y){var d=z.ytRendererBehavior.getVisibilityLogger();
d&&d.reportHidden(Y)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(W),this.ytFormattedStringObserverHandlerKeys_.push(B))};
_.p.setNodeTrackingParams_=function(W,B){B.data||(B.data={});if((W=W.loggingDirectives?W.loggingDirectives.trackingParams:null)||B.data.trackingParams)B.data.trackingParams=W};
_.p.computeHasLinkOnly_=function(W){return!(!W||W.length!==1||this.noEndpoints||!W[0].navigationEndpoint)};
_.p.getRoot=function(){var W=this.buildScopeDomOptions();return this.enableContentEditable?_.tH(_.tH(this.hostElement,W).querySelector("[contenteditable]")):_.tH(this.hostElement,W)};
_.p.fixContenteditableScope=function(){var W=function(B){B&&(B.nodeType===1&&B.classList&&(B.classList.add("style-scope"),B.classList.add("yt-formatted-string")),B.childNodes&&B.childNodes.forEach(function(z){W(z)}))};
W(this.getRoot())};
_.p.updateText_=function(W){for(var B=W.length,z=this.getRoot(),G=z.firstChild;G&&G.nodeName==="STYLE";)G=G.nextSibling;for(var Y=0;Y<B&&G;){var d=W[Y],E=_.r("remove_cr_char")&&d.text?d.text.replace("\r",""):d.text;if(this.isSimpleString_(d)&&!this.useMixedDirectionFormattedStrings)if(G.nodeName==="#text"){G.textContent!=E&&(G.textContent=E);Y++;G=G.nextSibling;continue}else break;if(_.k(d,qH))break;else if(!this.noEndpoints&&d.navigationEndpoint){if(G.nodeName!=="A")break;this.setDataOnAnchor_(G,
d.navigationEndpoint)}else if(G.nodeName!=="SPAN")break;this.setNodeStyle_(d,G);this.setUpVisibilityLogging_(d,G);G.textContent!=E&&(G.textContent=E);Y++;G=G.nextSibling}if(G)for(d=z.lastChild,G=Y?G.previousSibling:null;d&&d!=G;){try{z.removeChild(d)}catch(v){break}d=z.lastChild}Y!==B&&this.addTextNodes_(W,Y)};
_.p.addTextNodes_=function(W,B){for(var z=document.createDocumentFragment(),G=W.length;B<G;B++){var Y=W[B],d=_.r("remove_cr_char")&&Y.text?Y.text.replace("\r",""):Y.text;if(this.isSimpleString_(Y)&&!this.useMixedDirectionFormattedStrings)z.appendChild(document.createTextNode(d));else{var E=_.k(Y,qH);if(E){if(E.image){var v=document.createElement("img");E.isCustomEmoji||v.classList.add("small-emoji");v.classList.add("emoji");E.isCustomEmoji&&(v.dataset.emojiId=E.emojiId);v.src=_.JY(E.image.thumbnails,
this.emojiSize);(Y=this.get("image.accessibility.accessibilityData.label",E))?v.alt=Y:E.shortcuts&&E.shortcuts.length>0?v.alt=E.shortcuts[0]:E.emojiId&&(v.alt=E.emojiId);z.appendChild(v);this.hasEmoji=!0}}else!this.noEndpoints&&Y.navigationEndpoint?(v=document.createElement("a"),v.classList.add("yt-simple-endpoint"),v.setAttribute("spellcheck","false"),this.setDataOnAnchor_(v,Y.navigationEndpoint)):v=document.createElement("span"),this.setNodeStyle_(Y,v),this.setUpVisibilityLogging_(Y,v),v.appendChild(document.createTextNode(d)),
z.appendChild(v)}}this.getRoot().appendChild(z)};
_.p.isSimpleString_=function(W){return(this.noEndpoints||!W.navigationEndpoint)&&!_.k(W,qH)&&(this.noStyles||!(W.bold||W.deemphasize||W.italics||W.strikethrough||W.errorUnderline||W.bracket||W.textColor))&&!W.loggingDirectives};
_.p.getRawText=function(){return _.zR(this.text)};
_.p.getFirstRunText=function(){var W;if(((W=this.text)==null?0:W.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.p.setFirstRunText=function(W){var B;((B=this.text)==null?0:B.runs)&&this.text.runs[0]&&(this.text.runs[0].text=W,this.textChanged_(this.text))};
_.p.setDataOnAnchor_=function(W,B){var z=this;!_.r("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(B)||this.isSignalServiceEndpoint_(B)?(W.onclick=this.serviceEndpointHandler_(B),$h(W,"#")):Qn2({text:this.text,command:B},function(){Bh2(W,B,z.target)})};
_.p.isServiceEndpoint_=function(W){var B;return!((B=_.k(W==null?void 0:W.commandMetadata,_.Z4))==null||!B.sendPost)};
_.p.isSignalServiceEndpoint_=function(W){return!!_.k(W,_.P0)};
_.p.serviceEndpointHandler_=function(W){var B=this;return function(z){_.V0(B.hostElement,[W]);z.preventDefault()}};
_.p.overrideAriaLabelChanged_=function(){var W=this.getRoot();this.enableContentEditable&&W&&W.setAttribute("aria-label",this.overrideAriaLabel)};
_.p.enableContentEditableChanged_=function(){var W=this,B=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),B=_.tH(this.hostElement,B),!B.lastChild||B.lastChild instanceof HTMLElement&&B.lastChild.id!=="contenteditable-root"){var z=document.createElement("div");z.id="contenteditable-root";z.setAttribute("contenteditable","true");z.setAttribute("dir","auto");z.onfocus=function(){W.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
B.appendChild(z);this.overrideAriaLabel&&z.setAttribute("aria-label",this.overrideAriaLabel)}}else z=_.sR(this.hostElement).firstChild,z instanceof HTMLElement&&z.id==="contenteditable-root"&&_.tH(this.hostElement,B).removeChild(z)};
_.p.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.p.getNodesForVisibilityLogging_=function(){return _.wb(this.getRoot().childNodes,function(W){var B;return!((B=W.data)==null||!B.trackingParams)})};
_.p.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.p.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var W=this.ytRendererBehavior.getVisibilityLogger();W&&this.getNodesForVisibilityLogging_().forEach(function(B){W.reportShown(B)})}};
_.p.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var W=this.ytRendererBehavior.getVisibilityLogger();W&&this.getNodesForVisibilityLogging_().forEach(function(B){W.reportHidden(B)})}};
_.G5.Object.defineProperties($z.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.r("enable_mixed_direction_formatted_strings")}}});
$z.prototype.enableContentEditableChanged_=$z.prototype.enableContentEditableChanged_;$z.prototype.overrideAriaLabelChanged_=$z.prototype.overrideAriaLabelChanged_;$z.prototype.ellipsisTruncateChanged_=$z.prototype.ellipsisTruncateChanged_;$z.prototype.textChanged=$z.prototype.textChanged;_.Q([_.h(LlM.YtPlaintextBehavior),_.y("design:type",Object)],$z.prototype,"ytPlaintextBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],$z.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$z.prototype,"text",void 0);_.Q([_.F(),_.y("design:type",Boolean)],$z.prototype,"noEndpoints",void 0);_.Q([_.F(),_.y("design:type",Boolean)],$z.prototype,"noStyles",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],$z.prototype,"isDarkTheme",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],$z.prototype,"splitLines",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],$z.prototype,"forceDefaultStyle",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],$z.prototype,"ellipsisTruncate",void 0);_.Q([_.F(),_.y("design:type",Object)],$z.prototype,"ignoreShadyDom",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.y("design:type",Boolean)],$z.prototype,"ellipsisTruncateStyling",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.y("design:type",String)],$z.prototype,"ariaLabel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],$z.prototype,"isEmpty",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.y("design:type",Boolean)],$z.prototype,"hasLinkOnly_",void 0);_.Q([_.F(),_.y("design:type",Boolean)],$z.prototype,"hasEmoji",void 0);_.Q([_.F(),_.y("design:type",Boolean)],$z.prototype,"disableAttributedString",void 0);_.Q([_.F(),_.y("design:type",Boolean)],$z.prototype,"isOverlay",void 0);_.Q([_.F(),_.y("design:type",Boolean)],$z.prototype,"linkInheritColor",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],$z.prototype,"noPreWrap",void 0);_.Q([_.F(),_.y("design:type",Boolean)],$z.prototype,"userInput",void 0);_.Q([_.F({value:16}),_.y("design:type",Number)],$z.prototype,"emojiSize",void 0);_.Q([_.F(),_.y("design:type",String)],$z.prototype,"target",void 0);_.Q([_.F(),_.y("design:type",Boolean)],$z.prototype,"enableContentEditable",void 0);_.Q([_.F(),_.y("design:type",String)],$z.prototype,"overrideAriaLabel",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],$z.prototype,"respectHtmlDir",void 0);_.Q([_.F(),_.y("design:type",Boolean)],$z.prototype,"respectLangDir",void 0);_.Q([_.H("plaintextOnly"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$z.prototype,"useMixedDirectionFormattedStrings",null);_.Q([_.F({computed:"computeUseAttributedString(text)"}),_.y("design:type",Boolean)],$z.prototype,"useYtAttributedString",void 0);
_.Q([_.oN("text"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$z.prototype,"textChanged",null);_.Q([_.oN("ellipsisTruncate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$z.prototype,"ellipsisTruncateChanged_",null);_.Q([_.oN("overrideAriaLabel"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$z.prototype,"overrideAriaLabelChanged_",null);
_.Q([_.oN("enableContentEditable"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$z.prototype,"enableContentEditableChanged_",null);_.Q([_.NJ({is:"yt-formatted-string",disableElementRegistration:!0})],$z);
_.D($z,"yt-formatted-string",function(){if(M5T===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;U37===void 0&&(U37=document.createElement("template"));var G=U37;z.call(B,G.content.cloneNode(!0),W.content.firstChild);M5T=W}W=M5T;return W});var aXu;var RGR;var W$d;var BtT;var LL=function(){var W=_.S.apply(this,arguments)||this;W.focused=!1;W.disabled=!1;W.isOverlay=!1;return W};
_.C(LL,_.S);LL.prototype.triggerDown=function(){if(!this.disabled){_.Pf(this.hostElement,"down",!0);var W;(W=this.currentAnimation)==null||W.cancel()}};
LL.prototype.triggerUp=function(){if(!this.disabled){_.Pf(this.hostElement,"down",!1);var W=this.fillElement;var B=this.strokeElement;typeof GroupEffect==="function"?(W=new GroupEffect([JNx(W),gat(B)]),W=new Animation(W,document.timeline)):W=new lXU(W,B);this.currentAnimation=W;var z;(z=this.currentAnimation)==null||z.play()}};
_.Q([_.Hf(".stroke"),_.y("design:type",HTMLElement)],LL.prototype,"strokeElement",void 0);_.Q([_.Hf(".fill"),_.y("design:type",HTMLElement)],LL.prototype,"fillElement",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],LL.prototype,"focused",void 0);_.Q([_.F(),_.y("design:type",Object)],LL.prototype,"disabled",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],LL.prototype,"isOverlay",void 0);_.Q([_.NJ({is:"yt-interaction",disableElementRegistration:!0})],LL);
_.D(LL,"yt-interaction",function(){if(BtT===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;W$d===void 0&&(W$d=document.createElement("template"));var G=W$d;z.call(B,G.content.cloneNode(!0),W.content.firstChild);BtT=W}W=BtT;return W},{mode:2});var U6=function(){return _.S.apply(this,arguments)||this};
_.C(U6,_.S);_.p=U6.prototype;_.p.ready=function(){var W=this,B=_.tH(this.hostElement).querySelector("#button");B.addEventListener("focus",function(){hLQ||(hLQ=new oQM);W.keyboardFocused=hLQ.isKeyBoardInUse()});
B.addEventListener("blur",function(){W.keyboardFocused=!1;W.rippleUp_()})};
_.p.computeTabIndex_=function(W){return W?-1:0};
_.p.computeButtonAriaPressed_=function(W){if(this.toggleable)return W?"true":"false"};
_.p.rippleDown_=function(){_.tH(this.hostElement).querySelector("#interaction").triggerDown()};
_.p.rippleUp_=function(){_.tH(this.hostElement).querySelector("#interaction").triggerUp()};
_.p.onPressedChanged_=function(){var W=_.sR(_.tH(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.sR(_.tH(this.hostElement).querySelector("#button")).children[0];W&&(W.active=this.pressed)};
U6.prototype.onPressedChanged_=U6.prototype.onPressedChanged_;U6.prototype.rippleUp_=U6.prototype.rippleUp_;U6.prototype.rippleDown_=U6.prototype.rippleDown_;_.Q([_.F(),_.y("design:type",String)],U6.prototype,"label",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],U6.prototype,"disabled",void 0);_.Q([_.F(),_.y("design:type",Boolean)],U6.prototype,"pressed",void 0);_.Q([_.F(),_.y("design:type",Object)],U6.prototype,"toggleable",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],U6.prototype,"untabbable",void 0);_.Q([_.F(),_.y("design:type",Boolean)],U6.prototype,"keyboardFocused",void 0);_.Q([_.IN("down"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U6.prototype,"rippleDown_",null);_.Q([_.IN("up"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U6.prototype,"rippleUp_",null);
_.Q([_.oN("pressed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U6.prototype,"onPressedChanged_",null);_.Q([_.NJ({is:"yt-icon-button",disableElementRegistration:!0})],U6);
_.D(U6,"yt-icon-button",function(){if(RGR===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;aXu===void 0&&(aXu=document.createElement("template"));var G=aXu;z.call(B,G.content.cloneNode(!0),W.content.firstChild);RGR=W}W=RGR;return W},{mode:2});var zwD;var GvR=function(){var W=document.body,B=W.appendChild;if(zwD===void 0){var z=document.createElement("template");_.I(z,'\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>');
zwD=z}z=zwD;B.call(W,z.content)};
document.body?GvR():window.addEventListener("DOMContentLoaded",GvR);var YuH=_.ak(["aria-"]),M8={};M8.YtRenderButtonBehavior=[_.U.YtRendererBehavior,_.Qe.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!!_.dO().resolve(_.Y8(_.jx))&&_.r("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 W=this.computeHref_(this.endpoint,!0);W?$h(this.elements_.endpoint,W):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){W=this.buttonClass.split(" ");W=_.A(W);for(var B=W.next();!B.done;B=W.next())B=B.value,_.Pf(this.hostElement,B,!0),this.elements_.button&&_.Pf(this.elements_.button,B,!0),this.elements_.text&&_.Pf(this.elements_.text,B,!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&&(W=null,this.buttonAccessibility&&(W=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=W:W?_.i7([_.w3(YuH)],this.elements_.button,"aria-label",W):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var W=_.dO().resolve(_.Y8(_.jx));W&&(this.keyboardFocused=W.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.H7("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,_.St(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.St(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(W,B){if(B)for(W=B.split(" "),W=_.A(W),B=W.next();!B.done;B=W.next())B=B.value,_.Pf(this.hostElement,B,!1),this.elements_.button&&_.Pf(this.elements_.button,B,!1),this.elements_.text&&_.Pf(this.elements_.text,B,!1)},
buttonIconChanged_:function(W){this.elements_.icon?W?(this.elements_.icon.icon=W,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.St(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Z8(this.hostElement,"is-paper-button-with-icon",!1)):W&&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"&&_.St(this.elements_.button).appendChild(this.elements_.icon):_.St(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Z8(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(W){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,W){var B=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(W){case "yt_icon_button_with_label":B=!0;_.Pf(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();W=_.St(this.elements_.button).firstElementChild;
this.elements_.icon=W;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.St(this.elements_.endpoint).appendChild(this.elements_.button);_.St(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.H7("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;_.St(this.elements_.button).appendChild(this.elements_.text);_.St(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":B=!0,this.elements_.button=this.getYtIconButton_(),W=_.St(this.elements_.button).firstElementChild,this.elements_.icon=W,this.setIconActive_(this.elements_.icon),
_.St(this.elements_.endpoint).appendChild(this.elements_.button)}_.Z8(this.hostElement,"is-icon-button",B);_.Z8(this.hostElement,"is-paper-button",!B);_.Z8(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 z;_.tH((z=this.container.hostElement)!=null?z:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.St(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(W){if(W!=void 0||this.disabled)this.disabled=W,this.elements_.button&&(this.elements_.button.disabled=W)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(W){_.r("kevlar_system_icons")&&W&&this.data&&(this.data.isSelected!==void 0?W.active=this.data.isSelected:this.data.isToggled!==void 0&&(W.active=this.data.isToggled))},
observeBasicPalette_:function(W){_.Ky(this.hostElement,W)},
disabledChanged_:function(W){this.data&&this.set("data.isDisabled",W)},
onYtButtonTap_:function(W){if(this.disabled)W.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.V0(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(W=this.disableCommandHandlerOverride,!this.data||!this.data.command||W||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.r("handle_service_request_actions")||_.V0(this.hostElement,[this.serviceEndpoint]),
_.v0(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.r("handle_service_request_actions")?(W=[],this.serviceEndpoint&&W.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&W.push(this.data.command),W.length&&_.Jr(this.hostElement,W,this.hostElement)):this.data&&this.data.command&&(W=this.data.command,W.accountUnlinkCommand||W.accountLinkCommand||W.insertAdCommand||W.insertHighlightMarkerCommand||
W.createLivestreamHighlightClipCommand||W.getVideoUploadFeedbackCommand||W.musicDeletePrivatelyOwnedEntityCommand||W.ypcCancelRecurrenceEndpoint||W.getMultiSelectCommandEndpoint?_.V0(this.hostElement,[W]):_.Jr(this.hostElement,[W],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 W,B=_.tH((W=this.container.hostElement)!=null?W:this.container);B.lastChild&&B.lastChild.tagName!="STYLE";)try{B.removeChild(B.lastChild)}catch(z){break}},
getYtIconButton_:function(){var W=this.reuseEnabled_()?_.H7("yt-icon-button"):document.createElement("yt-icon-button"),B=_.St(W).firstElementChild;if(B&&B.is!="yt-icon"){for(B=_.St(W);B.lastChild;)B.removeChild(B.lastChild);B=null}B||(B=this.getIcon_(),this.setIconActive_(B),_.St(W).appendChild(B));return W},
reuseEnabled_:function(){return _.r("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.H7("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.H7("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.dS7={};
_.dS7.YtButtonBehavior=[M8.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var W=this.data;W&&(this._setEndpoint(this.computeEndpoint_(W)),this._setServiceEndpoint(this.computeServiceEndpoint_(W)),this._setCommand(this.computeCommand_(W)),this._setButtonIcon(this.computeButtonIcon_(W)),this._setButtonText(this.computeButtonText_(W,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(W)),this._setButtonTooltip(this.computeTooltip_(W)),this._setButtonClass(this.computeButtonClass_(W)),this._setIconPositionType(this.computeIconPositionType_(W)),this.updateRenderedElements())},
setPressedState:function(W){var B;if((B=this.elements_)==null?0:B.button)this.elements_.button.pressed=!!W},
computeIconPositionType_:function(W){return W&&W.iconPosition||null},
computeEndpoint_:function(W){var B=W&&W.navigationEndpoint,z=this.get("data.command.commandMetadata.webCommandMetadata.url"),G=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return B?B:W&&W.command&&W.command.modalEndpoint?W.command:z&&!G&&W.command?W.command:null},
computeServiceEndpoint_:function(W){var B=W&&W.serviceEndpoint,z=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return B?B:z&&W.command?W.command:null},
computeCommand_:function(W){return W&&W.command||null},
computeButtonIcon_:function(W){return W&&W.icon&&W.icon.iconType?_.lg(W.icon.iconType):null},
computeButtonText_:function(W,B){return!B&&W&&W.text||null},
computeAccessibility_:function(W){return this.get("accessibilityData.accessibilityData",W)||W&&W.accessibility||(W&&W.text?{label:this.getSimpleString(W.text)}:null)},
computeTooltip_:function(W){return W?W.isDisabled&&W.disabledTooltip||W.tooltip||null:null},
computeButtonClass_:function(W){var B=W&&W.style?W.style.toLowerCase().replace(/_/g,"-")+" ":"";B+=W&&W.size?W.size.toLowerCase().replace(/_/g,"-")+" ":"";W.colorData&&W.colorData.basicColorPaletteData&&W.colorData.basicColorPaletteData.borderColor&&(B+="palette-with-border");return B.trim()}}];var uF={};var pLd;var AiU;var icU,EZd=function(){return icU!==void 0?icU:icU=document.createElement("template")};
document.head.appendChild(EZd().content);var TtM;var vZD,ciR=function(){return vZD!==void 0?vZD:vZD=document.createElement("template")};
document.head.appendChild(ciR().content);var wLR;var V2R,JiQ=function(){return V2R!==void 0?V2R:V2R=document.createElement("template")};
document.head.appendChild(JiQ().content);var gZU;var t2H=document.head,sVQ=t2H.appendChild,PXF;if(gZU===void 0){var ZcU=document.createElement("template");_.I(ZcU,"\x3c!--css-build:shady--\x3e");ZcU.content.insertBefore(JiQ().content.cloneNode(!0),ZcU.content.firstChild);gZU=ZcU}PXF=gZU;sVQ.call(t2H,PXF.content);var ri6=document.head,kvD=ri6.appendChild,lu9;if(wLR===void 0){var CXH=document.createElement("template");_.I(CXH,"\x3c!--css-build:shady--\x3e");CXH.content.insertBefore(ciR().content.cloneNode(!0),CXH.content.firstChild);wLR=CXH}lu9=wLR;kvD.call(ri6,lu9.content);var Iuu=document.head,oZH=Iuu.appendChild,hwF;if(TtM===void 0){var Hc7=document.createElement("template");_.I(Hc7,"\x3c!--css-build:shady--\x3e");Hc7.content.insertBefore(EZd().content.cloneNode(!0),Hc7.content.firstChild);TtM=Hc7}hwF=TtM;oZH.call(Iuu,hwF.content);var F$R;_.eX("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");F$R=_.r("web_button_rework")&&_.md("BUTTON_REWORK")||_.r("web_button_rework_with_live");_.aT=function(){return _.S.apply(this,arguments)||this};
_.C(_.aT,_.S);_.aT.prototype.created=function(){this.openPopupConfig=_.eD("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.aT.prototype.onYtNavigate_=function(W){var B=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);B&&(this.ytOpenPopupBehavior.openPopup(B),W.stopPropagation(),W.preventDefault())};
_.G5.Object.defineProperties(_.aT,{template:{configurable:!0,enumerable:!0,get:function(){if(AiU===void 0){var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var B=W.content,z=B.insertBefore;pLd===void 0&&(pLd=document.createElement("template"));var G=pLd;z.call(B,G.content.cloneNode(!0),W.content.firstChild);AiU=W}W=AiU;return W}}});
_.aT.prototype.onYtNavigate_=_.aT.prototype.onYtNavigate_;_.Q([_.h(_.Ds.YtOpenPopupBehavior),_.y("design:type",Object)],_.aT.prototype,"ytOpenPopupBehavior",void 0);_.Q([_.h(_.dS7.YtButtonBehavior),_.y("design:type",Object)],_.aT.prototype,"ytButtonBehavior",void 0);_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],_.aT.prototype,"onYtNavigate_",null);
_.Q([_.NJ({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:F$R})],_.aT);var SuR;var bc4=_.r("web_button_rework")&&_.md("BUTTON_REWORK")||_.r("web_button_rework_with_live"),BN=function(){var W=_.S.apply(this,arguments)||this;W.isPressed=!1;W.forceIconButton=!1;W.forceIconOnly=!1;W.forceModernIconButton=!1;W.skipCommandHandling=!1;W.alignByText=!1;W.fitToVisibleBounds=!0;W.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};W.onTap=function(B){_.v0(W.hostElement,"yt-service-request-sent-button-renderer",B)};
return W};
_.C(BN,_.S);_.p=BN.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.p.onClick=function(W){var B,z=this.disabled||((B=this.data)==null?void 0:B.isDisabled);B=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");z&&B&&W.stopPropagation()};
_.p.computeIcon=function(){var W,B,z=(W=this.data)==null?void 0:(B=W.icon)==null?void 0:B.iconType;if(z)return _.lg(z)};
_.p.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.p.handleUpdateButtonAction=function(W){W=_.k(W,IUF);var B=_.k(W==null?void 0:W.updatedButton,_.Ep);if(this.data&&W&&B){var z=this.data;z.targetId&&W.targetId&&z.targetId===W.targetId&&(this.data=B)}};
_.G5.Object.defineProperties(BN.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var W=this;if(this.data){var B=bzu({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.v0(W.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.v0(W.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});B.alignByText=this.alignByText;return B}}}});
_.G5.Object.defineProperties(BN,{template:{configurable:!0,enumerable:!0,get:function(){if(SuR===void 0){var W=document.createElement("template");_.I(W,'\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>');SuR=W}W=SuR;return W}}});
BN.prototype.onClick=BN.prototype.onClick;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],BN.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],BN.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],BN.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],BN.prototype,"isPressed",void 0);
_.Q([_.F(),_.y("design:type",Object)],BN.prototype,"forceIconButton",void 0);_.Q([_.F(),_.y("design:type",Object)],BN.prototype,"forceIconOnly",void 0);_.Q([_.F(),_.y("design:type",Object)],BN.prototype,"forceModernIconButton",void 0);_.Q([_.F(),_.y("design:type",Object)],BN.prototype,"skipCommandHandling",void 0);_.Q([_.F(),_.y("design:type",Object)],BN.prototype,"alignByText",void 0);_.Q([_.F(),_.y("design:type",Object)],BN.prototype,"buttonTooltipPosition",void 0);
_.Q([_.F(),_.y("design:type",Object)],BN.prototype,"fitToVisibleBounds",void 0);_.Q([_.F({computed:"computeTooltip(data)"}),_.y("design:type",Object)],BN.prototype,"tooltip",void 0);_.Q([_.F(),_.y("design:type",Object)],BN.prototype,"overrides",void 0);_.Q([_.F(),_.y("design:type",Boolean)],BN.prototype,"disabled",void 0);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],BN.prototype,"onClick",null);
_.Q([_.H("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.y("design:type",Object),_.y("design:paramtypes",[])],BN.prototype,"computedButtonShape",null);_.Q([_.NJ({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!bc4,cssBuildOptOut:!0}),_.NJ({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!bc4,cssBuildOptOut:!0})],BN);var jV9;var fuM;var zz=function(){var W=_.S.apply(this,arguments)||this;W.empty_=!0;W.loadTime=Infinity;W.pendingPaint=!1;W.hasChange_=!1;W.oldThumbnail_=null;W.oldDelayedSrc_="";W.objectURL_=null;return W};
_.C(zz,_.S);_.p=zz.prototype;_.p.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.p.ready=function(){var W=this.shouldShowPlaceholder_();_.Pf(this.hostElement,"no-transition",!0);W&&this.hostElement.classList.add("with-placeholder")};
_.p.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.p.isThumbPreloaded_=function(W){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",W)};
_.p.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||Oc6};
_.p.computeThumbnailSrc_=function(W){return W&&W.thumbnails?_.JY(W.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.p.computeAlt_=function(){var W=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&W||""};
_.p.thumbnailChanged_=function(){var W=_.A([this.thumbnail,this.oldThumbnail_]),B=W.next().value;W=W.next().value;this.oldThumbnail_=B;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(W=this.computeThumbnailSrc_(W),this.computeThumbnailSrc_(B)===W))return;_.r("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(B)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):B&&_.md("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.BM(this,this.onReload_):_.BM(this,this.onShow_):this.resetImage_();B&&(this.hostElement.style.opacity=""+B.opacity)}};
_.p.delayedSrcChanged_=function(){var W=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===W||this.resetImage_()};
_.p.setSrc_=function(W){W?(_.tH(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.tH(this.hostElement).querySelector("#img").src=W):(_.tH(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.p.resetImage_=function(){fut(this.hostElement);this.empty_=!0;this.setSrc_(Oc6);this.ytRendererBehavior.invalidate(!1)};
_.p.observePlaceholderColor_=function(){var W=this.thumbnail&&this.thumbnail.placeholderColor;W?this.hostElement.style.backgroundColor=_.M_(W):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.p.onLoad_=function(){_.tH(this.hostElement).querySelector("#img").src&&_.tH(this.hostElement).querySelector("#img").src!==Oc6&&(jVv(this.hostElement),this.notifyOnLoaded&&_.v0(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.p.onError_=function(){var W=this;if(_.r("web_use_cache_for_image_fallback"))xSQ(_.tH(this.hostElement).querySelector("#img").src).then(function(B){W.objectURL_=_.qZ(B).toString();W.setSrc_(W.objectURL_)}).catch(function(){_.r("kevlar_woffle_fallback_image")&&W.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.p.onPrescanVisible=function(){this.onShow_()};
_.p.onVisible=function(){if(_.r("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.p.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var W=this.computeSrc_();W!==_.tH(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(W))}};
_.p.onReload_=function(){this.empty_=!1;var W=this.computeSrc_();W!==_.tH(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(W))};
_.p.shouldShowPlaceholder_=function(){return _.r("kevlar_thumbnail_bg")};
zz.prototype.observePlaceholderColor_=zz.prototype.observePlaceholderColor_;zz.prototype.delayedSrcChanged_=zz.prototype.delayedSrcChanged_;zz.prototype.thumbnailChanged_=zz.prototype.thumbnailChanged_;_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],zz.prototype,"alt",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],zz.prototype,"ariaHidden",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],zz.prototype,"ariaLabel",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],zz.prototype,"hidden",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],zz.prototype,"id",void 0);_.Q([_.h(_.tu.YtVisibilityBehavior),_.y("design:type",Object)],zz.prototype,"ytVisibilityBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",String)],zz.prototype,"delayedSrc",void 0);
_.Q([_.F(),_.y("design:type",Object)],zz.prototype,"thumbnail",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],zz.prototype,"loaded",void 0);_.Q([_.F(),_.y("design:type",Boolean)],zz.prototype,"notifyOnLoaded",void 0);_.Q([_.F(),_.y("design:type",Number)],zz.prototype,"height",void 0);_.Q([_.F(),_.y("design:type",Number)],zz.prototype,"width",void 0);_.Q([_.F({value:function(){return"width"}}),
_.y("design:type",String)],zz.prototype,"dimension",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],zz.prototype,"fit",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],zz.prototype,"fitHeight",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],zz.prototype,"fitWidth",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],zz.prototype,"objectFit",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],zz.prototype,"objectPosition",void 0);_.Q([_.F(),_.y("design:type",String)],zz.prototype,"preferredThumbnail",void 0);_.Q([_.F({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.y("design:type",String)],zz.prototype,"alt_",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],zz.prototype,"sharedTooltipText",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],zz.prototype,"ftlEligible",void 0);_.Q([_.F({value:void 0}),_.y("design:type",String)],zz.prototype,"observeHiddenOption",void 0);_.Q([_.F({value:"observe_once"}),_.y("design:type",String)],zz.prototype,"observePrescanOption",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],zz.prototype,"roundedContainer",void 0);
_.Q([_.jJ("thumbnail"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zz.prototype,"thumbnailChanged_",null);_.Q([_.jJ("delayedSrc"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zz.prototype,"delayedSrcChanged_",null);_.Q([_.oN("thumbnail.placeholderColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zz.prototype,"observePlaceholderColor_",null);
_.Q([_.NJ({is:"yt-img-shadow",disableElementRegistration:!0})],zz);var Oc6=_.md("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.sV()(zz,"yt-img-shadow",function(){if(fuM===void 0){var W=document.createElement("template");_.I(W,'\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">');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;jV9===void 0&&(jV9=document.createElement("template"));var G=jV9;z.call(B,G.content.cloneNode(!0),W.content.firstChild);fuM=W}W=fuM;return W},{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 AhR;_.Gz=new _.t1("SCREEN_MANAGER_TOKEN");AhR=new _.t1("LOG_INITIAL_SCREEN_TOKEN");var XL4=_.xG({entities:{}});var K$d=_.DN(XL4)(XL4.entities,{selectSfvAudioItemPlaybackState:function(W,B){var z,G;W=(G=_.P3(W,"sfvAudioItemCurrentlyPlayingEntity",B))!=null?G:void 0;return(z=W==null?void 0:W.sfvAudioItemPlaybackState)!=null?z:void 0},
playlistLoopStateEntitySelector:function(W,B){var z;return(z=_.P3(W,"playlistLoopStateEntity",B))!=null?z:void 0}});_.Y1=_.m(function(W){function B(By){return _.k(By,_.wP)}
function z(){var By=G().isTogglingDisabled||b()&&G().toggledIsTogglingDisabled,gk=By||P()?b():!b();O(gk);e(!1);if(!By){var vy;(vy=E)==null||vy(!!gk)}var lx;((lx=d)==null?0:lx())||_.x3(_.dO().resolve(_.Gz),G().trackingParams);var Zv;if(!gk||!B(G().defaultButtonViewModel)||(Zv=d)!=null&&Zv()){var VR;!B(G().toggledButtonViewModel)||((VR=d)==null?0:VR())||_.x3(_.dO().resolve(_.Gz),B(G().toggledButtonViewModel).trackingParams)}else _.x3(_.dO().resolve(_.Gz),B(G().defaultButtonViewModel).trackingParams)}
var G=W.data,Y=W.buttonShapeOverrides,d=W.disableExplicitClickLogging,E=W.onToggle,v=W.style,c=W.useOutlinedIcon,J=W.className,g=function(){var By,gk;return b()?(By=W.animatedTextPropsToggled)==null?void 0:By.call(W):(gk=W.animatedTextPropsDefault)==null?void 0:gk.call(W)},t=_.r4(function(){return g()?Object.assign({},g(),{shouldAnimate:K()}):void 0},void 0,"Zp4uoe"),P=function(){var By;
return((By=n())==null?void 0:By.isToggled)!==void 0},Z=_.A(_.IK(function(){var By,gk,vy;
return P()?(By=n())==null?void 0:By.isToggled:(vy=Y==null?void 0:(gk=Y())==null?void 0:gk.toggled)!=null?vy:G().isToggled})),l=Z.next().value;
Z=Z.next().value;var b=l,O=Z;Z=_.A(_.IK(function(){var By,gk;return(By=W.animatedTextPropsToggled)==null?void 0:(gk=By.call(W))==null?void 0:gk.shouldAnimate}));
l=Z.next().value;Z=Z.next().value;var K=l,e=Z;l=_.A(_.g4(!1,void 0,"mq3Zfe"));var a=l.next().value,q=l.next().value,n=_.ny(function(By){a:{var gk=G().entityKey,vy=G().toggledStateEntitySelectorType;if(vy)switch(vy){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!gk)break;By=K$d.selectSfvAudioItemPlaybackState(By,gk);if(By==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){By={isToggled:!0};break a}if(By){By={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":By=
{isToggled:_.X9Q(By).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":By={isToggled:_.X9Q(By).includes("engagement-panel-live-chat-item-section")};break a;default:_.Oc(new _.oX("Error: entitySelectorType defined but not matched in selector.",By,vy))}By=void 0}return By}),L=function(){return Object.assign({},Y==null?void 0:Y(),{onToggle:z,
toggleable:!0,toggled:b(),focused:a()})};
return _.w("toggle-button-view-model",{"on:focusin":_.lF(function(){var By=_.dO().resolve(_.Y8(_.jx));By&&q(By.isKeyBoardInUse());return!1}),
"on:focusout":_.lF(function(){q(!1);return!1})},_.w(_.V,{cond:function(){return b()?B(G().toggledButtonViewModel):B(G().defaultButtonViewModel)},
then:function(By){return _.w(_.ex,{data:By,className:J,style:v,useOutlinedIcon:c,buttonOverrides:L,animatedTextProps:t})}}))},"E");
_.Y1.idomCompat={callbacks:{onToggle:!0}};_.Vm(_.m(function(W){return _.w("yt-toggle-button-view-model",{class:function(){var B;return(B=W.scopingClassName)==null?void 0:B.call(W)}},_.w(_.Y1,{data:function(){var B;
return(B=W.data)==null?void 0:B.call(W)},
buttonShapeOverrides:function(){var B;return(B=W.overrides)==null?void 0:B.call(W)},
animatedTextPropsDefault:function(){var B;return(B=W.animatedTextPropsDefault)==null?void 0:B.call(W)},
animatedTextPropsToggled:function(){var B;return(B=W.animatedTextPropsToggled)==null?void 0:B.call(W)},
disableExplicitClickLogging:function(){var B;return(B=W.disableExplicitClickLogging)==null?void 0:B.call(W)},
onToggle:function(B){var z;return(z=W.onToggle)==null?void 0:z.call(W,B)},
style:function(){var B;return(B=W.style)==null?void 0:B.call(W)},
useOutlinedIcon:function(){var B;return(B=W.useOutlinedIcon)==null?void 0:B.call(W)},
className:function(){var B;return(B=W.className)==null?void 0:B.call(W)}}))},"F"),"yt-toggle-button-view-model",{props:{data:_.kz,
buttonShapeOverrides:_.kz,overrides:_.kz,animatedTextPropsDefault:_.kz,animatedTextPropsToggled:_.kz,disableExplicitClickLogging:_.kz,onToggle:_.wS,style:_.kz,useOutlinedIcon:_.kz,className:_.kz,scopingClassName:_.kz}});var dN=function(){return _.S.apply(this,arguments)||this};
_.C(dN,_.S);dN.prototype.onTap=function(W){W.stopPropagation();W=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.ue("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:W})):this.ytLiveChatReduxBehavior.dispatch(_.bj("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:W}))};
_.G5.Object.defineProperties(dN.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.engagementState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=_.k(this.data.toggleButton,_.Jw),B;if(Number(((B=this.likeCountState)==null?void 0:B.likeCountIfIndifferentNumber)||"0")===0){var z;B=((z=this.data.likeCountPlaceholder)==null?void 0:z.content)||""}else{var G,Y,d;B=((G=this.likeCountState)==null?void 0:(Y=G.likeCountIfIndifferent)==null?void 0:Y.content)||((d=this.data.likeCountPlaceholder)==null?void 0:d.content)||""}var E,v;z=((E=this.likeCountState)==null?void 0:(v=
E.likeCountIfLiked)==null?void 0:v.content)||"1";E=_.k(W.toggledButtonViewModel,_.wP);return Object.assign({},W,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.k(W.defaultButtonViewModel,_.wP),{title:B})},toggledButtonViewModel:{buttonViewModel:Object.assign({},E,{title:z})}})}}}});
dN.prototype.onTap=dN.prototype.onTap;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],dN.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.c7),_.y("design:type",Object)],dN.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],dN.prototype,"data",void 0);
_.Q([_.F({selectorArgs:["data.likeCountEntityKey"],selector:KiR}),_.y("design:type",Object)],dN.prototype,"likeCountState",void 0);_.Q([_.F({selectorArgs:["data.engagementStateKey"],selector:xuR}),_.y("design:type",Object)],dN.prototype,"engagementState",void 0);_.Q([_.H("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],dN.prototype,"isLiked",null);
_.Q([_.H("data","likeCountState","isLiked"),_.y("design:type",Object),_.y("design:paramtypes",[])],dN.prototype,"toggleButton",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],dN.prototype,"onTap",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],dN);
_.D(dN,"yt-live-chat-like-button-view-model",function(){if(eGR===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;u_7===void 0&&(u_7=document.createElement("template"));var G=u_7;z.call(B,G.content.cloneNode(!0),W.content.firstChild);eGR=W}W=eGR;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var uaR;var ew7;var pj=function(){return _.S.apply(this,arguments)||this};
_.C(pj,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],pj.prototype,"data",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],pj);
_.D(pj,"yt-live-chat-paid-message-footer-renderer",function(){if(ew7===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;uaR===void 0&&(uaR=document.createElement("template"));var G=uaR;z.call(B,G.content.cloneNode(!0),W.content.firstChild);ew7=W}W=ew7;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var mST;var xSR;var DST;var QVH,yi7=function(){if(QVH!==void 0)return QVH;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;DST===void 0&&(DST=document.createElement("template"));var G=DST;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return QVH=W};var AP=function(){return _.S.apply(this,arguments)||this};
_.C(AP,_.S);AP.prototype.onTap=function(W){W.stopPropagation()};
_.G5.Object.defineProperties(AP.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=_.k(this.data.replyButton,_.wP),B,z,G,Y,d,E,v,c=Number(((B=this.replyCountState)==null?void 0:B.replyCountNumber)||"0")===0?(z=this.data)==null?void 0:(G=z.replyCountPlaceholder)==null?void 0:G.content:((Y=this.replyCountState)==null?void 0:(d=Y.replyCount)==null?void 0:d.content)||((E=this.data)==null?void 0:(v=E.replyCountPlaceholder)==null?void 0:v.content)||"",J;return Object.assign({},
W,{title:c,accessibilityText:(J=this.replyCountState)==null?void 0:J.replyButtonAccessibilityText})}}}});
_.G5.Object.defineProperties(AP,{template:{configurable:!0,enumerable:!0,get:function(){return yi7()}}});
AP.prototype.onTap=AP.prototype.onTap;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],AP.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.c7),_.y("design:type",Object)],AP.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],AP.prototype,"data",void 0);
_.Q([_.F({selectorArgs:["data.replyCountEntityKey"],selector:function(W,B){return _.P3(W.entities,"replyCountEntity",B)}}),
_.y("design:type",Object)],AP.prototype,"replyCountState",void 0);_.Q([_.H("data","replyCountState"),_.y("design:type",Object),_.y("design:paramtypes",[])],AP.prototype,"buttonViewModel",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],AP.prototype,"onTap",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],AP);
_.D(AP,"yt-live-chat-reply-button-view-model",function(){return yi7()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var qud;var nZH;var iU=function(){var W=_.S.apply(this,arguments)||this;W.ariaLabel="";return W};
_.C(iU,_.S);
iU.prototype.dataChanged=function(){for(var W=(0,_.r5)(_.tH(this.hostElement).querySelector("#image"));W.firstChild;)W.removeChild(W.firstChild);if(this.data)if(this.data.icon){var B=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(B.polymerController.icon="yt-sys-icons:shield-filled",B.polymerController.defaultToFilled=!0):B.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();W.appendChild(B)}else if(this.data.customThumbnail){B=document.createElement("img");
var z=_.IuD(this.data.customThumbnail.thumbnails,16);z?(B.src=z,W.appendChild(B),B.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Oc(new _.oX("Could not compute URL for thumbnail",this.data.customThumbnail))}};
iU.prototype.identity=function(W){return W};
iU.prototype.computeType=function(W){return Zr(W||void 0)};
iU.prototype.dataChanged=iU.prototype.dataChanged;_.Q([_.F(),_.y("design:type",Object)],iU.prototype,"data",void 0);_.Q([_.F({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.y("design:type",Object)],iU.prototype,"ariaLabel",void 0);_.Q([_.F({computed:"computeType(data)",reflectToAttribute:!0}),_.y("design:type",String)],iU.prototype,"type",void 0);
_.Q([_.F({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.y("design:type",String)],iU.prototype,"sharedTooltipText",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("live_chat_enable_new_moderator_badge")}}),
_.y("design:type",Boolean)],iU.prototype,"enableNewModeratorBadge",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iU.prototype,"dataChanged",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],iU);
_.D(iU,"yt-live-chat-author-badge-renderer",function(){if(nZH===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;qud===void 0&&(qud=document.createElement("template"));var G=qud;z.call(B,G.content.cloneNode(!0),W.content.firstChild);nZH=W}W=nZH;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var NtD;var $Su;var Es=function(){return _.S.apply(this,arguments)||this};
_.C(Es,_.S);_.p=Es.prototype;_.p.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"}}}}};
_.p.computeBadgesInsideChip=function(W){return W?W.filter(function(B){return Zr(B.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.p.computeBadgesOutsideChip=function(W){return this.prependChatBadges||!W?[]:W.filter(function(B){B=Zr(B.liveChatAuthorBadgeRenderer);return B!=="verified"&&B!=="owner"})};
_.p.computeBadgesBeforeChip=function(W){return this.prependChatBadges&&W?W.filter(function(B){B=Zr(B.liveChatAuthorBadgeRenderer);return B!=="verified"&&B!=="owner"}):[]};
_.p.computeIsHighlighted=function(W,B){var z=!!QhX(W,"owner"),G=!!QhX(W,"verified");W=!!QhX(W,"moderator");return(z||G&&!W)&&!B};
_.p.computeAuthorType=function(W){return DQ8(W)};
_.p.computeAuthorClass=function(W,B){return B?(W?W+" ":"")+"single-line":W};
_.p.onSeedColorChanged=function(){_.r("live_chat_author_name_color_usernames")||_.r("live_chat_seed_color_usernames")||_.r("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):_.r("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Es.prototype.onSeedColorChanged=Es.prototype.onSeedColorChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Es.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Es.prototype,"authorName",void 0);_.Q([_.F(),_.y("design:type",Array)],Es.prototype,"authorBadges",void 0);
_.Q([_.F({computed:"computeAuthorType(authorBadges)"}),_.y("design:type",String)],Es.prototype,"authorType",void 0);_.Q([_.F({computed:"computeAuthorClass(authorType, singleLine)"}),_.y("design:type",String)],Es.prototype,"authorClass",void 0);_.Q([_.F({computed:"computeBadgesInsideChip(authorBadges)"}),_.y("design:type",Array)],Es.prototype,"badgesInsideChip",void 0);_.Q([_.F({computed:"computeBadgesOutsideChip(authorBadges)"}),_.y("design:type",Array)],Es.prototype,"badgesOutsideChip",void 0);
_.Q([_.F({computed:"computeBadgesBeforeChip(authorBadges)"}),_.y("design:type",Array)],Es.prototype,"badgesBeforeChip",void 0);_.Q([_.F({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Es.prototype,"isHighlighted",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Es.prototype,"singleLine",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Es.prototype,"disableHighlighting",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Es.prototype,"dashboardMoneyFeed",void 0);_.Q([_.F({value:_.r("live_chat_prepend_badges"),reflectToAttribute:!0}),_.y("design:type",Boolean)],Es.prototype,"prependChatBadges",void 0);_.Q([_.F(),_.y("design:type",String)],Es.prototype,"authorNameColor",void 0);_.Q([_.Hf("#author-name"),_.y("design:type",HTMLDivElement)],Es.prototype,"username",void 0);
_.Q([_.oN("authorNameColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Es.prototype,"onSeedColorChanged",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Es);
_.D(Es,"yt-live-chat-author-chip",function(){if($Su===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;NtD===void 0&&(NtD=document.createElement("template"));var G=NtD;z.call(B,G.content.cloneNode(!0),W.content.firstChild);$Su=W}W=$Su;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var L$M;var USH;var Tz=function(){var W=_.S.apply(this,arguments)||this;W.debounceCommand=_.O8(function(B){W.ytComponentBehavior.resolveCommand(B)},1500);
return W};
_.C(Tz,_.S);Tz.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var W=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",B,z,G=this.isHearted?(B=this.data)==null?void 0:B.unheartCommand:(z=this.data)==null?void 0:z.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.ue("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:W}));(W=_.$B(G))&&this.debounceCommand(W)}};
_.G5.Object.defineProperties(Tz.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var W,B;if(!((W=this.data)==null?0:(B=W.creatorThumbnail)==null?0:B.sources))return{};W={thumbnails:[]};B={};B.url=this.data.creatorThumbnail.sources[0].url;W.thumbnails.push(B);return W}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((z=this.engagementState)==null?void 0:z.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}}});
Tz.prototype.onTap=Tz.prototype.onTap;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Tz.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.c7),_.y("design:type",Object)],Tz.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Tz.prototype,"data",void 0);
_.Q([_.F({selectorArgs:["data.engagementStateKey"],selector:xuR}),_.y("design:type",Object)],Tz.prototype,"engagementState",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Tz.prototype,"thumbnailDetails",null);_.Q([_.H("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Tz.prototype,"isHearted",null);_.Q([_.H("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Tz.prototype,"isEditable",null);
_.Q([_.H("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Tz.prototype,"showCreatorView",null);_.Q([_.H("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Tz.prototype,"showButton",null);_.Q([_.H("data","isHearted"),_.y("design:type",String),_.y("design:paramtypes",[])],Tz.prototype,"label",null);_.Q([_.H("data","isHearted"),_.y("design:type",Object),_.y("design:paramtypes",[])],Tz.prototype,"heartHoverText",null);
_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tz.prototype,"onTap",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Tz);
_.D(Tz,"yt-live-chat-creator-heart-view-model",function(){if(USH===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;L$M===void 0&&(L$M=document.createElement("template"));var G=L$M;z.call(B,G.content.cloneNode(!0),W.content.firstChild);USH=W}W=USH;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var vN=function(){};
_.C(vN,xU);vN.prototype.JSC$13114_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:ad("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
vN.prototype.getApiPaths=function(){return[]};
vN.prototype.getExtension=function(){};
vN.prototype.JSC$13114_buildRequest=function(){};var M24={},auR=(M24.GET_DATASYNC_IDS=ba(vN),M24);var RwT,WMQ,Bl9,$hH,cN,YBT,WA6,G7R,zy9;RwT="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");WMQ=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.RK=function(W,B,z,G,Y,d,E,v,c){this.endpointMap=W;this.networkManager=B;this.authService=z;this.responseProcessorMap=G;this.innertubeResponseStore=Y;this.contextProcessors=d;this.asyncContextProcessors=E;this.localInnertubeRouter=v;this.requestSequencer=c;this.inflightRequests=new Map;W.signalEndpointMap||(W.signalEndpointMap={});W.signalEndpointMap=Object.assign({},auR,W.signalEndpointMap)};
Bl9=function(W,B,z,G,Y,d,E,v,c){if(_.RK.instance!==void 0){if(G=_.RK.instance,W=[W!==G.endpointMap,B!==G.networkManager,z!==G.authService,Y!==G.innertubeResponseStore,d!==G.contextProcessors,E!==G.asyncContextProcessors,v!==G.localInnertubeRouter],W.some(function(J){return J}))throw new _.oX("InnerTubeTransportService is already initialized",W);
}else _.RK.instance=new _.RK(W,B,z,G,Y,d,E,v,c)};
_.BA=function(W,B,z){var G=G===void 0?gF9:G;var Y=WA6(W,B);return Y?new _.Vx(function(d,E){var v,c,J,g,t;return _.T(function(P){switch(P.nextAddress){case 1:return P.yield(Y,2);case 2:v=P.yieldResult;c=v.JSC$13114_getRequest(B,z,G);if(!c){E(new _.oX("Error: Failed to build request for command.",B));P.jumpTo(0);break}Bf(c.input);g=((J=c.requestShell)==null?void 0:J.mode)==="cors"?"cors":void 0;if(W.authService.syncHeaders){t=zy9(c.config,g);P.jumpTo(4);break}return P.yield(G7R(c.config,g),5);case 5:t=
P.yieldResult;case 4:d(YBT(W,c,t)),_.HG(P)}})}):_.mR(new _.oX("Error: No request builder found for command.",B))};
$hH=function(W,B,z,G){var Y=Y===void 0?gF9:Y;var d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a,q,n,L;return _.T(function(By){switch(By.nextAddress){case 1:d=mvR(B,W.endpointMap);if(!d)throw new _.oX("Error: No streaming request builder found for command",B);E=d.JSC$13114_getRequest(B,z,Y);if(!E)throw new _.oX("Failed to build YtRequest for streaming Command",B);if((v=W.localInnertubeRouter)==null||!v.shouldPreferLocalResponse(E.input,E.innerTubeRequest)){By.jumpTo(2);break}return By.yield(W.localInnertubeRouter.localInnertubeResponse(E.input,
E.innerTubeRequest),3);case 3:return c=By.yieldResult,J={},c.playerResponse&&(cN(W,c.playerResponse,E),J.player=c.playerResponse,(g=G)==null||g(J,c)),c.watchNextResponse&&(cN(W,c.watchNextResponse,E),J.content=c.watchNextResponse,(t=G)==null||t(J,c)),By.return(J);case 2:Z=((P=E.requestShell)==null?void 0:P.mode)==="cors"?"cors":void 0;if(W.authService.syncHeaders){l=zy9(E.config,Z);By.jumpTo(4);break}return By.yield(G7R(E.config,Z),5);case 5:l=By.yieldResult;case 4:return K=(O=(b=E.requestShell)==
null?void 0:b.headers)!=null?O:{},E.requestShell=Object.assign({},E.requestShell,{headers:Object.assign({},K,l)}),e=Object.assign({},E.requestShell),a=JSON.stringify(E.innerTubeRequest),E.requestShell.method==="POST"&&(e=Object.assign({},e,{body:a})),q=function(gk,vy){cN(W,vy.playerResponse||vy.watchNextResponse||vy.reelItemWatchResponse||vy.reelWatchSequenceResponse,E);G==null||G(gk,vy)},n={},By.yield(duR(W.networkManager,E.input,e,q),6);
case 6:return n=By.yieldResult,((L=E.config)==null?0:L.responseTick)&&_.mj(E.config.responseTick),By.return(n)}})};
_.cz=function(W,B,z,G,Y){Y=Y===void 0?{authStrategy:{identity:gF9}}:Y;var d=d===void 0?!0:d;var E=function(){};
E=fMv(br8(z));B.context||(B.context=_.RMT(G,d));return new _.Vx(function(v){var c,J,g,t,P;return _.T(function(Z){if(Z.nextAddress==1)return c=Zhu(z),J=_.MO(c),W.authService.syncHeaders?(g=zy9(Y,J),Z.jumpTo(2)):Z.yield(G7R(Y,J),3);Z.nextAddress!=2&&(g=Z.yieldResult);t=rfx(Zhu(z));P={input:t,requestShell:ad(t),innerTubeRequest:B,config:Y};v(YBT(W,P,g,E));_.HG(Z)})})};
cN=function(W,B,z){var G;if(B&&!(B==null?0:(G=B.sequenceMetaData)==null?0:G.skipProcessing)&&W.responseProcessorMap){G=_.A(RwT);for(var Y=G.next();!Y.done;Y=G.next())Y=Y.value,W.responseProcessorMap[Y]&&W.responseProcessorMap[Y].handleResponse(B,z)}};
YBT=function(W,B,z,G){G=G===void 0?function(){}:G;
var Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a,q,n,L,By,gk,vy,lx,Zv,VR,ux,X2,WQ,XH,wU,RD,sF,Vd,bR,Sf,UF,pu,BQ,Z9,cn;return _.T(function(rU){switch(rU.nextAddress){case 1:E=(Y=B.config)==null?void 0:(d=Y.storeStrategy)==null?void 0:d.storeKey;if(!(E&&W.innertubeResponseStore&&W.innertubeResponseStore.has(E))||((v=B.config)==null?0:(c=v.storeStrategy)==null?0:c.disableCache)){rU.jumpTo(2);break}return rU.yield(W.innertubeResponseStore.get(E),3);case 3:if((J=rU.yieldResult)&&!J.isExpired())return rU.return(Promise.resolve(_.pQ(J)));
case 2:if(!((g=B)==null?0:(t=g.innerTubeRequest)==null?0:t.context)){rU.jumpTo(4);break}P=B.innerTubeRequest.context;if(!(W.asyncContextProcessors&&W.asyncContextProcessors.length>0)){rU.jumpTo(5);break}Z=[];l=_.A(W.asyncContextProcessors);for(b=l.next();!b.done;b=l.next())O=b.value,K=O.processContext(B),K.wrappedPromise_&&Z.push(K.wrappedPromise_);if(!(Z.length>0)){rU.jumpTo(5);break}return rU.yield(Promise.all(Z),5);case 5:e=_.A(W.contextProcessors||[]),a=e.next();case 8:if(a.done){rU.jumpTo(4);
break}q=a.value;return rU.yield(q.processContext(P),9);case 9:a=e.next();rU.jumpTo(8);break;case 4:if((n=W.localInnertubeRouter)==null||!n.shouldPreferLocalResponse(B.input,B.innerTubeRequest)){rU.jumpTo(12);break}return rU.yield(W.localInnertubeRouter.localInnertubeResponse(B.input,B.innerTubeRequest),13);case 13:return L=rU.yieldResult,cN(W,L,B),rU.return(L);case 12:return(vy=(gk=B.config)==null?void 0:gk.requestKey)&&W.inflightRequests.has(vy)?By=W.inflightRequests.get(vy):(lx=JSON.stringify(B.innerTubeRequest),
ux=(VR=(Zv=B.requestShell)==null?void 0:Zv.headers)!=null?VR:{},B.requestShell=Object.assign({},B.requestShell,{headers:Object.assign({},ux,z)}),X2=Object.assign({},B.requestShell),B.requestShell.method==="POST"&&(X2=Object.assign({},X2,{body:lx})),((WQ=B.config)==null?0:WQ.requestTick)&&_.mj(B.config.requestTick),XH=function(){return W.networkManager.fetch(B.input,X2,B.config)},By=W.requestSequencer?pIM(W.requestSequencer,B,XH):XH(),vy&&W.inflightRequests.set(vy,By)),rU.yield(By,14);
case 14:(wU=rU.yieldResult)&&_.r("web_streaming_player")&&Array.isArray(wU)&&(wU=wU[0].playerResponse);if(wU&&"error"in wU&&((RD=wU)==null?0:(sF=RD.error)==null?0:sF.details))for(Vd=wU.error.details,bR=_.A(Vd),Sf=bR.next();!Sf.done;Sf=bR.next())UF=Sf.value,(pu=UF["@type"])&&WMQ.indexOf(pu)>-1&&(delete UF["@type"],wU=UF);vy&&W.inflightRequests.has(vy)&&W.inflightRequests.delete(vy);((BQ=B.config)==null?0:BQ.responseTick)&&_.mj(B.config.responseTick);if(wU||(Z9=W.localInnertubeRouter)==null||!Z9.canProvideFallbackResponse(B.input,
B.innerTubeRequest)){rU.jumpTo(15);break}return rU.yield(W.localInnertubeRouter.localFallbackInnertubeResponse(B.input,B.innerTubeRequest),16);case 16:wU=rU.yieldResult;case 15:return cN(W,wU,B),((cn=B.config)==null?0:cn.processorTick)&&_.mj(B.config.processorTick),G(),rU.return(wU||void 0)}})};
_.WA=function(W,B){return ecR(B,W.endpointMap)};
WA6=function(W,B){W=xvQ(B,W.endpointMap);if(W!==void 0)return Promise.resolve(W)};
G7R=function(W,B){var z,G,Y,d;return _.T(function(E){if(E.nextAddress==1){Y=(z=W)==null?void 0:(G=z.authStrategy)==null?void 0:G.sessionIndex;var v=E.yield;var c=_.gV(K9k({sessionIndex:Y}));return v.call(E,c,2)}d=E.yieldResult;return E.return(Promise.resolve(Object.assign({},Dv0(B),d)))})};
zy9=function(W,B){var z;W=W==null?void 0:(z=W.authStrategy)==null?void 0:z.sessionIndex;z=K9k({sessionIndex:W});return Object.assign({},Dv0(B),z)};var ANu,iZR,Ea7,TlM,vaM,cN6,JNR,gaM,JP,teQ,scd,VeF,P8F;ANu=0;iZR=/tone[1-5]/;Ea7=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");TlM="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
vaM=Number.MAX_SAFE_INTEGER;cN6=RegExp("\ufe0f","g");_.wN=function(W){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;W&&_.wI9(this,W)};
_.wI9=function(W,B){try{_.tC(B,{context:W,onSuccess:function(G,Y){Array.isArray(Y)?W.load(Y):(G=new _.oX("Emoji manager JSON response was not an array!",{response:Y}),_.jy(G))},
onError:function(G){G=new _.oX("Failed to retrieve emoji manager initial JSON data!",{url:B,statusCode:_.vS(G).toString()});_.Oc(G)}})}catch(G){var z=new _.oX("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:B});
_.Oc(z)}};
_.wN.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.wN.prototype.load=function(W,B){if(B)if(W.length)W=W.concat(B.emojis);else{this.emojis=B.emojis;this.emojiMap=B.emojiMap;this.emojiShortcutMap=B.emojiShortcutMap;this.emojiShortcutCharMap=VeF(B);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=B.emojiRegex;return}this.emojis=[].concat(_.u7(new Set(this.emojis.concat(W))));this.hasInitializedShortcutCharMap=!1;W=Array(this.emojis.length);for(B=0;B<this.emojis.length;B++){var z=this.emojis[B];if(z.emojiId){this.emojiMap[z.emojiId]=z;this.emojiMap[z.emojiId].index=
B;for(var G=0;z.shortcuts&&G<z.shortcuts.length;G++)this.emojiShortcutMap[z.shortcuts[G].toLocaleLowerCase()]=z;W[B]=z.isCustomEmoji&&z.shortcuts?z.shortcuts[0]:z.emojiId}}W.sort(function(Y,d){return d.length-Y.length});
if(W.length)try{this.emojiRegex=new RegExp(W.join("|").replace("*","\\*"),"gi")}catch(Y){this.emojiRegex=/$./}else this.emojiRegex=/$./};
JNR=function(W,B){B=_.A(B);for(var z=B.next();!z.done;z=B.next()){var G=z.value;if(G.emojiId&&W.emojiMap[G.emojiId]){z=Object.assign({},W.emojiMap[G.emojiId],G);W.emojiMap[G.emojiId]=z;var Y=void 0;z.index&&((Y=W.emojis[z.index])==null?void 0:Y.emojiId)===G.emojiId&&(W.emojis[z.index]=z);G=void 0;if((G=z.shortcuts)==null?0:G.length)for(W.hasInitializedShortcutCharMap=!1,G=_.A(z.shortcuts),Y=G.next();!Y.done;Y=G.next())W.emojiShortcutMap[Y.value.toLocaleLowerCase()]=z}}};
gaM=function(W){var B,z;_.T(function(G){if(G.nextAddress==1)return G.yield(_.Wz.getInstance(),2);if(G.nextAddress!=3)return(B=G.yieldResult)?G.yield(B.get("ytlc-emoji-pref"),3):G.return();(z=G.yieldResult)&&JNR(W,Object.keys(z).map(function(Y){return{emojiId:Y,stickyPrefId:z[Y]}}).filter(function(Y){return!!Y.emojiId&&!!Y.stickyPrefId}));
_.HG(G)})};
_.VF=function(W,B,z){return(W=W.emojiMap[B])&&(!W.isLocked||z!==void 0&&z)?W:void 0};
JP=function(W,B,z){z=_.VF(W,B,z===void 0?!1:z);var G=B.match("\u200d");z&&W.skinTone!==0&&(W=(G==null?void 0:G.length)===1?_.VF(W,B.replace("\u200d",Ea7[W.skinTone]+"\u200d")):_.VF(W,B+Ea7[W.skinTone]))&&(z=W);return z};
teQ=function(W,B){var z=W.emojiMap[B];return(z==null?0:z.stickyPrefId)?W.emojiMap[z.stickyPrefId]:JP(W,B)};
_.JE=function(W,B){W=W.emojiShortcutMap[B.toLocaleLowerCase()];return!W||W.isLocked?null:W};
scd=function(W,B,z){return VeF(W,z===void 0?!1:z)[B]||{}};
VeF=function(W,B){B=B===void 0?!1:B;if(!W.hasInitializedShortcutCharMap){W.hasInitializedShortcutCharMap=!0;for(var z=0;z<W.emojis.length;z++){var G=W.emojis[z];if(!(G.isLocked||B&&G.isCustomEmoji&&G.emojiId&&!W.pickerCustomEmojiIds.includes(G.emojiId)))for(var Y=0;G.shortcuts&&Y<G.shortcuts.length;Y++){var d=G.shortcuts[Y];d.startsWith(":_")&&G.isCustomEmoji&&(W.emojiShortcutCharMap[":_"]==null&&(W.emojiShortcutCharMap[":_"]=Object.create(null)),W.emojiShortcutCharMap[":_"][d]=G);if(!(d.length<3||
!G.isCustomEmoji&&iZR.test(d))){var E=d.substr(0,3).toLocaleLowerCase();W.emojiShortcutCharMap[E]==null&&(W.emojiShortcutCharMap[E]=Object.create(null));W.emojiShortcutCharMap[E][d]=G}}}}return W.emojiShortcutCharMap};
_.wN.prototype.createEmoji=function(W,B){B=B===void 0?!0:B;var z=document.createElement("img");W.isCustomEmoji||z.classList.add("small-emoji");z.classList.add("emoji");z.classList.add("yt-formatted-string");z.src=W.image?_.JY(W.image.thumbnails,this.emojiSize)||"":"";var G=void 0;W.image&&W.image.accessibility&&W.image.accessibility.accessibilityData&&(G=W.image.accessibility.accessibilityData.label);z.alt=G?G:(W.isCustomEmoji&&W.shortcuts?W.shortcuts[0]:W.emojiId)||"";W.isCustomEmoji&&(z.dataset.emojiId=
W.emojiId);_.Js&&(z.setAttribute("contenteditable","false"),z.setAttribute("unselectable","on"));B&&(W.shortcuts&&W.shortcuts.length&&z.setAttribute("shared-tooltip-text",W.shortcuts[0]),z.id="emoji-"+ANu++);return z};
_.wN.prototype.createDocumentFragment=function(W,B,z,G){B=B===void 0?!1:B;z=z===void 0?!0:z;G=G===void 0?!1:G;W=W.replace(cN6,"");for(var Y=document.createDocumentFragment(),d=0,E,v=0;(E=this.emojiRegex.exec(W))!=null;){var c=_.VF(this,E[0])||_.JE(this,E[0]);!c||c.isCustomEmoji&&!B||(c=this.createEmoji(c,z),d!==E.index&&Y.appendChild(document.createTextNode(W.substring(d,E.index))),Y.appendChild(c),d=E.index+E[0].length,v++)}if(!G||v)return Y.appendChild(document.createTextNode(W.substr(d))),Y};
P8F=function(W,B,z){var G,Y,d,E,v,c,J,g,t;return _.T(function(P){if(P.nextAddress==1){if(!B.emojiId||!W.emojiMap[B.emojiId])return P.return();G=Object.assign({},W.emojiMap[B.emojiId],{stickyPrefId:z});W.emojiMap[B.emojiId]=G;B.index&&((Y=W.emojis[B.index])==null?void 0:Y.emojiId)===B.emojiId&&(W.emojis[B.index]=G);if((d=B.shortcuts)==null?0:d.length)for(W.hasInitializedShortcutCharMap=!1,E=_.A(B.shortcuts),v=E.next();!v.done;v=E.next())c=v.value,W.emojiShortcutMap[c.toLocaleLowerCase()]=G;return P.yield(_.Wz.getInstance(),
2)}if(P.nextAddress!=4)return(J=P.yieldResult)?P.yield(J.get("ytlc-emoji-pref"),4):P.jumpTo(0);t=(g=P.yieldResult)!=null?g:{};t[B.emojiId]=z;return P.yield(J.set("ytlc-emoji-pref",t,vaM),0)})};
_.gN=new _.wN;var k7U;_.tP={};
k7U={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.r("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:_.r("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 Wg(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 W=_.tH(this.hostElement||this).querySelector("#inline-action-button-container");W&&W.setAttribute("aria-hidden","true");this.menuButton=_.tH(this.hostElement).querySelector("#menu-button")},
attached:function(){var W=this.menuButton;W&&(W.addEventListener("focusin",_.Co(this,this.onMenuButtonFocus_)),W.addEventListener("focusout",_.Co(this,this.onMenuButtonBlur_)))},
detached:function(){var W=this.menuButton;W&&(W.removeEventListener("focusin",_.Co(this,this.onMenuButtonFocus_)),W.removeEventListener("focusout",_.Co(this,this.onMenuButtonBlur_)))},
identity:_.Ku,truthy:function(W){return!!W},
computeTimestampString:function(W){return W?W.timestampText?this.getSimpleString(W.timestampText):this.TIME_FORMATTER.format(new Date(W.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(W){return W},
computeMenuVisible_:function(W,B){return W||B},
computeHasInlineActionButtons:function(W){if(!W)return!1;var B,z;return!((B=W.inlineActionButtons)==null||!B.length)||!((z=W.additionalInlineActionButtons)==null||!z.length)},
createDocumentFragmentFromString:function(W){var B=_.gN.createDocumentFragment.bind(_.gN),z;if((z=this.participantsManager)==null||!z.viewerRegex)return B(W);z=document.createDocumentFragment();for(var G=0,Y;(Y=this.participantsManager.viewerRegex.exec(W))!=null;){if(Y.index>0){var d=":"+Y[0]+":";if((_.VF(_.gN,d)||_.JE(_.gN,d))&&W.indexOf(d)===Y.index-1)continue}z.appendChild(B(W.substring(G,Y.index)));G=document.createElement("span");G.appendChild(B(Y[0]));G.classList.add("mention");z.appendChild(G);
G=Y.index+Y[0].length}z.appendChild(B(W.substring(G)));return z},
createDocumentFragment:function(W){var B=document.createDocumentFragment();if(W.simpleText)return B.appendChild(this.createDocumentFragmentFromString(W.simpleText)),B;if(!W.runs)return B;for(var z=0;z<W.runs.length;z++){var G=W.runs[z];if(G.emoji)B.appendChild(_.gN.createEmoji(G.emoji));else if(G.text)if(G.navigationEndpoint){var Y=document.createElement("a");Y.classList.add("yt-simple-endpoint");Bh2(Y,G.navigationEndpoint);_.tH(Y).appendChild(this.createDocumentFragmentFromString(G.text));B.appendChild(Y)}else B.appendChild(this.createDocumentFragmentFromString(G.text))}return B},
hasModerationOverlayVisible:function(){var W;return((W=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:W.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(W){W.composedPath().some(function(B){return(B=B instanceof Element?B:null)?B.tagName&&(B.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||B.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.r("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(W)},
colorFromDecimal:function(W){return C$X(W)},
markAsDeleted:function(W,B){this.set("data.deletedStateMessage",W);this.set("data.showOriginalContentMessage",B)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(W){if(this.data.contextMenuEndpoint){var B=_.dO().resolve(_.ns),z=this.data.contextMenuEndpoint,G;(G=_.RK.instance)&&_.WA(G,z)?(B=ZZU(B,z),G=_.cz(G,{},B)):G=_.rNR(B,z);G.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);W&&W.stopPropagation()}},
handleGetContextMenuResponse_:function(W){var B=_.RK.instance;B&&_.WA(B,{liveChatEndpoint:{}})||(W=W.response);W.liveChatItemContextMenuSupportedRenderers&&W.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(W.liveChatItemContextMenuSupportedRenderers.menuRenderer);W.actions&&_.c0(this.hostElement,"yt-live-chat-actions",[W.actions])},
handleGetContextMenuError:function(W){if(W instanceof Error||W instanceof Object||W instanceof String)var B=W;_.jy(new _.oX("Error encountered calling GetLiveChatItemContextMenu",B))},
showContextMenu_:function(W){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:W}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.v0(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.v0(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.tP.YtLiveChatItemBehavior=[k7U,_.Ve.YtComponentBehavior,_.Ds.YtOpenPopupBehavior];_.ss=function(){};var lfM;var C86;var IfR;var oa7;var PN=function(){var W=_.S.apply(this,arguments)||this;W.active=!1;W.identity=_.Ku;return W};
_.C(PN,_.S);PN.prototype.dataChanged=function(){this.active=!1};
PN.prototype.onClick=function(){_.v0(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
PN.prototype.dataChanged=PN.prototype.dataChanged;_.Q([_.F(),_.y("design:type",Object)],PN.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PN.prototype,"active",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PN.prototype,"dataChanged",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],PN);
_.D(PN,"yt-live-chat-text-input-field-suggestion",function(){if(oa7===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;IfR===void 0&&(IfR=document.createElement("template"));var G=IfR;z.call(B,G.content.cloneNode(!0),W.content.firstChild);oa7=W}W=oa7;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});_.ZV=function(W,B,z){return CustomEvent.call(this,W,{detail:{value:B,path:z}})||this};
_.C(_.ZV,CustomEvent);_.rN=function(){var W=_.S.apply(this,arguments)||this;W.viewerName=null;W.actionMap={"yt-live-chat-actions":"onChatMessage_"};W.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];W.PARTICIPANT_TIME_USEC_=3E8;return W};
_.C(_.rN,_.S);_.p=_.rN.prototype;_.p.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.p.addParticipant=function(W){var B=_.HuT(this.participants,W,function(G,Y){G=G[Object.keys(G)[0]];Y=Y[Object.keys(Y)[0]];G=String(_.zR(G.authorName)).toLowerCase();Y=String(_.zR(Y.authorName)).toLowerCase();return G<Y?-1:G==Y?0:1}.bind(this));
if(B>=0){var z=this.participants[B];z[Object.keys(z)[0]].timestampUsec&&this.splice("participants",B,1,W)}else this.splice("participants",-B-1,0,W);W=W[Object.keys(W)[0]];B=_.zR(W.authorName).toLocaleLowerCase();z=B.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(z)||(this.allParticipantsCharMap_[z]={});this.allParticipantsCharMap_[z][B]=W};
_.p.getAuthorsFromPrefix=function(W){return this.allParticipantsCharMap_.hasOwnProperty(W)?this.allParticipantsCharMap_[W]:null};
_.p.computeViewerRegex_=function(W){if(!W)return null;W=W.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var B=W.indexOf("@")===0&&_.r("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(B+W.replace(/ /g,"\\s*")+"|^"+W.replace(/ /g,"\\s*")+"$|^"+W.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+W.replace(/ /g,"\\s*")+"$|(?<=\\s)"+W.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.p.checkForStaleParticipants_=function(){var W=this;this.trimOldParticipants_();this.asyncHandle_&&aP0(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.WJ(function(){W.checkForStaleParticipants_()},3E4))};
_.p.onChatMessage_=function(W){var B=this,z=Date.now()*1E3;W.forEach(function(G){if(G=_.k(G,WNR)){G=G.item;var Y=Object.keys(G)[0];B.SUPPORTED_ITEM_TYPES_.indexOf(Y)!=-1&&G[Y].timestampUsec>=z-B.PARTICIPANT_TIME_USEC_&&B.addParticipant(G)}},this);
this.checkForStaleParticipants_()};
_.p.trimOldParticipants_=function(){for(var W=Date.now()*1E3,B=this.participants.length-1;B>=0;B--){var z=this.participants[B];z=z[Object.keys(z)[0]];z.timestampUsec&&z.timestampUsec<W-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",B,1)}};
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],_.rN.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],_.rN.prototype,"viewerName",void 0);_.Q([_.F({computed:"computeViewerRegex_(viewerName)"}),_.y("design:type",Object)],_.rN.prototype,"viewerRegex",void 0);_.Q([_.F({value:function(){return[]},
notify:!0}),_.y("design:type",Array)],_.rN.prototype,"participants",void 0);_.Q([_.NJ({is:"yt-live-chat-participants-manager",noInjection:!0})],_.rN);var hyM=/.*([:@#].*?)$/,k1=/\u00a0/g,HZH=String.fromCharCode(160),FMF={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"},lU=function(){var W=_.S.apply(this,arguments)||this;W.disabled=!1;W.liveChatRichMessageInput=null;W.messageInput=null;W.isValidWithNoInputText=!1;W.suggestions=[];W.emojiManager=_.gN;W.inputMethodEditorActive=
!1;W.suggestionIndex=-1;W.JSC$14114_lastSuggestionRange=null;return W};
_.C(lU,_.S);_.p=lU.prototype;_.p.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.p.attached=function(){_.gb&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.p.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.p.dataChanged=function(){if(!this.ignoreColorMapping){var W=!1,B={},z;for(z in FMF)this.data&&this.data.hasOwnProperty(z)&&(B[FMF[z]]=this.colorFromDecimal(this.data[z]),W=!0);W&&_.kw(this.hostElement,B)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.p.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.p.colorFromDecimal=function(W){W=Math.floor(Number(W));return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
_.p.preventDrag=function(W){W.dataTransfer&&(W.dataTransfer.dropEffect="none");W.preventDefault()};
_.p.preventResize=function(W){W.returnValue=!1};
_.p.onInputChange=function(){var W=this.characterCount,B=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&B&&B.remove();if(!B&&this.characterCount>this.maxCharacterLimit){var z=window.getSelection();if(z){var G=z.getRangeAt(0);z.removeAllRanges();z.addRange(G)}}if(z=this.getCurrentRange())G=this.calculateTextBeforeRange(z),this.completeEmojisInRange(z,G,!0)||this.updateSuggestions(z,G);G=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(G);
_.v0(this.hostElement,"yt-live-chat-message-input-change",G);B&&this.characterCount===0&&B.remove();z&&z.commonAncestorContainer.parentElement.id==="input"&&z.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>W):z&&!z.collapsed&&z.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(W=this.input.childNodes.length-1;W>=0;W--)this.input.childNodes[W].nodeName==="BR"&&this.input.childNodes[W].remove()};
_.p.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.p.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var W=this.getCurrentRange();W&&W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.p.mergeOverflowText=function(W){if(W){var B=document.createRange();B.selectNodeContents(W);B=B.extractContents();this.input.insertBefore(B,W)}};
_.p.checkRangeAtEndOfInput=function(){var W=this.getCurrentRange();if(W){var B=_.tH(this.hostElement).querySelector("#overflow-text"),z=document.createRange();B&&B.previousSibling?B.previousSibling instanceof HTMLImageElement?z.selectNode(B.previousSibling):z.selectNodeContents(B.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?z.selectNode(this.input.lastChild):z.selectNodeContents(this.input.lastChild));z.collapse(!1);return z.isPointInRange(W.startContainer,
W.startOffset)}return!1};
_.p.handleOverflowText=function(W){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var B=_.tH(this.hostElement).querySelector("#overflow-text"),z=this.getCurrentRange();this.input.normalize();W=this.checkRangeAtEndOfInput()&&W;this.mergeOverflowText(B);for(var G,Y=0,d=0,E,v=this.input.childNodes,c=0;c<v.length;c++){var J=v[c];J instanceof Text?(d+=J.textContent.length,d>this.maxCharacterLimit&&(G=J,Y=this.maxCharacterLimit+J.textContent.length-d)):J instanceof HTMLImageElement&&
(G=void 0,d=J.dataset.emojiId&&((G=this.data)==null?0:G.emojiCharacterCount)?d+this.data.emojiCharacterCount:d+J.alt.length,G=this.input,Y=c);if(d>this.maxCharacterLimit&&G){E=document.createRange();E.collapse(!1);B?(d=this.input.lastChild.previousSibling,d instanceof Text?E.setEnd(this.input.lastChild.previousSibling,d.textContent.length):d instanceof HTMLImageElement&&E.setEnd(this.input,this.input.childNodes.length-1)):E.selectNodeContents(this.input);E.setStart(G,Y);break}}E&&(G=!1,z&&(W=E.isPointInRange(z.startContainer,
z.startOffset-1)),B||(B=document.createElement("span"),B.id="overflow-text",B.textContent="",B.setAttribute("contenteditable","true"),_.tH(_.tH(this.hostElement).querySelector("#input")).appendChild(B),G=!0),B&&(z=E.extractContents(),B.insertBefore(z,B.firstChild),W&&B.firstChild&&(z=document.createRange(),G?z.setStartAfter(B.lastChild):z.setStartAfter(B.firstChild),z.collapse(!0),B=window.getSelection(),B.removeAllRanges(),B.addRange(z))))}};
_.p.checkForDuplicateSpans=function(){for(var W=0;W<this.input.childNodes.length;W++){var B=this.input.childNodes[W];if(B.nodeName==="SPAN"){var z=document.createRange();z.selectNodeContents(B);z=z.extractContents();this.input.insertBefore(z,B);B.remove()}}this.handleOverflowText(!0)};
_.p.getCurrentRange=function(){var W=window.getSelection();return W&&W.rangeCount?W.getRangeAt(0).cloneRange():null};
_.p.getInputRange=function(){var W=this.getCurrentRange();if(W){for(var B=W.commonAncestorContainer,z=!1,G=_.tH(this.hostElement).querySelector("#input");B;){if(B===G){z=!0;break}B=B.parentNode}z||(W=null)}W||(W=this.getRangeAtEnd());return W};
_.p.getRangeAtEnd=function(){var W=document.createRange(),B=_.tH(this.hostElement).querySelector("#input").lastChild;!B||B.nodeName!=="#text"&&B.nodeName!=="SPAN"?(W.selectNodeContents(_.tH(this.hostElement).querySelector("#input")),W.collapse(!1)):B.nodeName==="#text"?W.setStart(B,B.textContent.length):W.setStart(B,B.childNodes.length);return W};
_.p.getChatParticipantSuggestions=function(W,B,z,G){var Y=_.r("live_chat_enable_handles_web_text_input_update");if(B)for(var d in B)if(d.indexOf(W)===0||Y&&d.indexOf(z+W)===0){var E=B[d],v=_.zR(E.authorName);G.push({suggestion:{author:!0,authorType:z,image:E.authorPhoto,alt:v,text:v}});if(G.length>=64)break}};
_.p.getSuggestions=function(W){var B=[],z=W.substring(0,3),G=scd(_.gN,z,!0);if(G)for(var Y in G)if(Y.toLocaleLowerCase().indexOf(W)===0){var d=G[Y];if(d&&d.emojiId){if(d=teQ(_.gN,d.emojiId)){var E=void 0,v=void 0,c=void 0,J=void 0,g=((E=d.image)==null?0:(v=E.accessibility)==null?0:(c=v.accessibilityData)==null?0:c.label)||d.isCustomEmoji?(J=d.shortcuts)==null?void 0:J[0]:d.emojiId;B.push({suggestion:{emoji:!0,image:d.image,alt:g,text:Y,textToInsertWhenSelected:d.isCustomEmoji?Y:g}})}if(B.length>=
64)break}}if(!this.participantsManager)return null;if(z.indexOf("@")===0||z.indexOf("#")===0)G=z.charAt(0),W=W.substring(1),Y=_.r("live_chat_enable_handles_web_text_input_update"),z.indexOf("@")===0&&Y&&(Y=this.participantsManager.getAuthorsFromPrefix(z.substring(0,2)),this.getChatParticipantSuggestions(W,Y,G,B)),z=z.substring(1),z=this.participantsManager.getAuthorsFromPrefix(z),this.getChatParticipantSuggestions(W,z,G,B);return B?B.sort(function(t,P){return P.suggestion.text<t.suggestion.text?-1:
P.suggestion.text===t.suggestion.text?0:1}):null};
_.p.insertSuggestion=function(W){var B=_.r("live_chat_enable_handles_web_text_input_update"),z=W.authorType;B=W.text.indexOf(z)===0&&B?W.text+HZH:z+W.text+HZH;W.emoji?this.insertTextAtRange(this.JSC$14114_lastSuggestionRange,W.textToInsertWhenSelected||""):W.author&&this.insertTextAtRange(this.JSC$14114_lastSuggestionRange,B)};
_.p.updateSuggestionsAtCaret=function(){var W=this.getCurrentRange();W&&this.updateSuggestions(W,this.calculateTextBeforeRange(W))};
_.p.offsetStartOfRangeBy=function(W,B){for(;B>0;)if(W.startOffset-B>=0){W.setStart(W.startContainer,W.startOffset-B);break}else{B=W.startContainer instanceof HTMLImageElement?B-W.startContainer.alt.length:B-W.startOffset;var z=W.startContainer.previousSibling;if(!z){W.setStart(W.startContainer,0);break}if(_.r("live_chat_require_space_for_autocomplete_emoji")){var G=void 0,Y=void 0;W.setStart(z,((G=z)==null?void 0:(Y=G.textContent)==null?void 0:Y.length)||0)}else W.setStart(z,z.childNodes.length||
0)}};
_.p.updateSuggestions=function(W,B){var z=this;this.JSC$14114_lastSuggestionRange&&(this.JSC$14114_lastSuggestionRange.detach(),this.JSC$14114_lastSuggestionRange=null);if((B=hyM.exec(B))&&B.length&&(B=B[B.length-1].toLocaleLowerCase(),B.length>2&&(this.offsetStartOfRangeBy(W,B.length),this.JSC$14114_lastSuggestionRange=W,(W=this.getSuggestions(B))&&W.length))){this.suggestions=W;_.BM(this,function(){_.tH(z.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(W.length-1);return}this.dropdown.opened=!1};
_.p.completeEmojisInRange=function(W,B,z){var G=B.replace(/[\s\xa0]+$/,"");B=B.length-G.length;G=G.split(" ");G=G[G.length-1].trim().toLocaleLowerCase();var Y=G.lastIndexOf(":");if(z&&!B&&Y!==G.length-1)return!1;Y!==-1&&(z=G.lastIndexOf(":",Y-1),z!==-1&&(G=G.substring(z)));if((z=_.JE(_.gN,G))&&z.emojiId){z=teQ(_.gN,z.emojiId)||null;this.offsetStartOfRangeBy(W,G.length+B);var d,E,v,c;G=(((d=z)==null?0:d.isCustomEmoji)?(E=z)==null?void 0:(v=E.shortcuts)==null?void 0:v[0]:(c=z)==null?void 0:c.emojiId)||
"";B&&(G+=HZH);this.insertTextAtRange(W,G);this.dropdown.opened=!1;return!0}return!1};
_.p.onSuggestion=function(W){this.insertSuggestion(W.detail);this.dropdown.opened=!1};
_.p.onKeyPress=function(W){W.keyCode===13&&(W.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.v0(this.hostElement,"yt-live-chat-send-message"))};
_.p.completeEmojis=function(){var W=document.createRange(),B=_.tH(this.hostElement).querySelector("#input").lastChild;B?W.setStart(B,B.childNodes.length):(W.selectNodeContents(_.tH(this.hostElement).querySelector("#input")),W.collapse(!1));this.completeEmojisInRange(W,this.calculateTextBeforeRange(W),_.r("live_chat_require_space_for_autocomplete_emoji"))};
_.p.maybePreventTextFormatting=function(W){!_.ZJ||!W.ctrlKey&&!W.metaKey||W.keyCode!==66&&W.keyCode!==73||(W.stopImmediatePropagation(),W.preventDefault())};
_.p.onKeyDown=function(W){this.maybePreventTextFormatting(W);if(this.dropdown.opened)switch(W.keyCode){case 27:this.dropdown.opened=!1;W.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;W.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);W.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),W.preventDefault()}};
_.p.onKeyUp=function(W){switch(W.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Js)this.onInputChange()};
_.p.changeSuggestionIndex=function(W){if(this.dropdown.opened){var B=_.tH(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<B.children.length&&(B.children[this.suggestionIndex].active=!1);var z=this.suggestions.length;this.suggestionIndex=(W+z)%z;W=B.children[this.suggestionIndex];W.active=!0;B.scrollTop=W.offsetTop}};
_.p.onInputPaste=function(W){W.preventDefault();(W=W.clipboardData)&&W.types&&(W=W.getData("text/plain")||"",W=W.replace(/\n/g,""),this.insertText(W));(W=this.getCurrentRange())&&W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.p.onFocus=function(){this._setFocused(!0)};
_.p.onBlur=function(){this._setFocused(!1)};
_.p.insertText=function(W){this.insertTextAtRange(this.getInputRange(),W)};
_.p.insertTextAtRange=function(W,B){if(W&&(W.collapsed||W.deleteContents(),B=_.gN.createDocumentFragment(B,!0,!1))){for(var z=_.A((B==null?void 0:B.childNodes)||[]),G=z.next();!G.done;G=z.next()){G=G.value;var Y=void 0,d=void 0,E=void 0,v=void 0,c=void 0;(E=(Y=window)==null?void 0:(d=Y.ShadyCSS)==null?void 0:d.ScopingShim)==null||(c=(v=E).scopeNode)==null||c.call(v,G,this.hostElement.localName)}z=B.lastChild;W.insertNode(B);this.focused||this.input.focus();if(this.focused){W=W.cloneRange();W.selectNodeContents(z);
W.collapse(!1);if(B=window.getSelection())B.removeAllRanges(),B.addRange(W);W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}W=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(W);_.v0(this.hostElement,"yt-live-chat-message-input-change",W)}};
_.p.setLiveChatRichMessageInput=function(W){_.tH(_.tH(this.hostElement).querySelector("#input")).textContent="";if(W&&W.textSegments){for(var B=0;B<W.textSegments.length;B++){var z=W.textSegments[B];z.text?_.tH(_.tH(this.hostElement).querySelector("#input")).appendChild(_.gN.createDocumentFragment(z.text,!0,!1)):z.emojiId&&(z=_.VF(_.gN,z.emojiId))&&_.tH(_.tH(this.hostElement).querySelector("#input")).appendChild(_.gN.createEmoji(z,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.p.setText=function(W){this.setLiveChatRichMessageInput(W?{textSegments:[{text:W}]}:null)};
_.p.calculateTextBeforeRange=function(W){var B="",z=W.startContainer;if(z&&z instanceof Text){var G;B=((G=z.textContent)==null?void 0:G.substring(0,W.startOffset))||"";z=z.previousSibling}for(;z&&z instanceof Text;)B=z.textContent+B,z=z.previousSibling;return B.replace(k1," ")};
_.p.calculateLiveChatRichMessageInput=function(){for(var W=[],B="",z=_.tH(_.tH(this.hostElement).querySelector("#input")).childNodes,G=0;G<z.length;G++){var Y=z[G];Y instanceof Text?B+=Y.textContent:Y instanceof HTMLImageElement&&(Y.dataset.emojiId?(B&&(W.push({text:B.replace(k1," ")}),B=""),W.push({emojiId:Y.dataset.emojiId})):B+=Y.alt)}B&&W.push({text:B.replace(k1," ")});if(z=_.tH(this.hostElement).querySelector("#overflow-text")){B="";z=z.childNodes;for(G=0;G<z.length;G++)Y=z[G],Y instanceof Text?
B+=Y.textContent:Y instanceof HTMLImageElement&&(Y.dataset.emojiId?(B&&(W.push({text:B.replace(k1," ")}),B=""),W.push({emojiId:Y.dataset.emojiId})):B+=Y.alt);B&&W.push({text:B.replace(k1," ")})}return{textSegments:W}};
_.p.computeCharacterCount=function(W){if(!W||!W.textSegments)return 0;for(var B=0,z=0;z<W.textSegments.length;z++){var G=W.textSegments[z];if(G.text)B+=G.text.length;else if(G.emojiId){var Y=void 0;if((Y=this.data)==null?0:Y.emojiCharacterCount)B+=this.data.emojiCharacterCount;else{var d=Y=void 0,E=void 0;B+=((d=_.VF(_.gN,(Y=G)==null?void 0:Y.emojiId))==null?void 0:(E=d.shortcuts)==null?void 0:E[0].length)||0}}}return B};
_.p.characterCountChanged=function(){_.v0(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.p.focusedChanged=function(){this.hostElement.dispatchEvent(new _.ZV("focused-changed",this.focused))};
_.p.focus=function(){this.setFocus(!1)};
_.p.focusAtEnd=function(){this.setFocus(!0)};
_.p.setFocus=function(W){W=W?this.getRangeAtEnd():this.getInputRange();_.tH(this.hostElement).querySelector("#input").focus();var B=window.getSelection();B&&(B.removeAllRanges(),B.addRange(W))};
_.p.insertEmoji=function(W){var B,z=((W==null?0:W.isCustomEmoji)?(B=W.shortcuts)==null?void 0:B[0]:W==null?void 0:W.emojiId)||"";this.insertText(z)};
_.p.computeText=function(W){if(!W||!W.textSegments)return"";for(var B="",z=0;z<W.textSegments.length;z++){var G=W.textSegments[z];if(G.text)B+=G.text;else if(G.emojiId){var Y=void 0,d=void 0,E=void 0;B+=((d=_.VF(_.gN,(Y=G)==null?void 0:Y.emojiId))==null?void 0:(E=d.shortcuts)==null?void 0:E[0])||""}}return B};
_.p.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.G5.Object.defineProperties(lU.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
lU.prototype.focusedChanged=lU.prototype.focusedChanged;lU.prototype.characterCountChanged=lU.prototype.characterCountChanged;lU.prototype.onSuggestion=lU.prototype.onSuggestion;lU.prototype.onMessageSet=lU.prototype.onMessageSet;lU.prototype.dataChanged=lU.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],lU.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],lU.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],lU.prototype,"disabled",void 0);_.Q([_.H("disabled"),_.y("design:type",Number),_.y("design:paramtypes",[])],lU.prototype,"inputTabIndex",null);_.Q([_.H("data.maxCharacterLimit"),_.F({readOnly:!0,notify:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],lU.prototype,"maxCharacterLimit",null);
_.Q([_.H("liveChatRichMessageInput"),_.F({readOnly:!0,notify:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],lU.prototype,"characterCount",null);_.Q([_.H("maxCharacterLimit, characterCount"),_.F({readOnly:!0,notify:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],lU.prototype,"remainingCharacterCount",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],lU.prototype,"isChatMessageInput",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],lU.prototype,"inputExpanded",void 0);_.Q([_.F({readOnly:!0,notify:!0}),_.y("design:type",Object)],lU.prototype,"liveChatRichMessageInput",void 0);_.Q([_.F(),_.y("design:type",Object)],lU.prototype,"messageInput",void 0);_.Q([_.F(),_.y("design:type",Boolean)],lU.prototype,"ignoreColorMapping",void 0);_.Q([_.H("characterCount"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],lU.prototype,"hasText",null);
_.Q([_.F(),_.y("design:type",Object)],lU.prototype,"isValidWithNoInputText",void 0);_.Q([_.H("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.F(),_.y("design:type",Boolean),_.y("design:paramtypes",[])],lU.prototype,"isInputValid",null);_.Q([_.F({readOnly:!0,value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],lU.prototype,"focused",void 0);_.Q([_.F(),_.y("design:type",Array)],lU.prototype,"suggestions",void 0);
_.Q([_.F(),_.y("design:type",_.wN)],lU.prototype,"emojiManager",void 0);_.Q([_.F(),_.y("design:type",_.rN)],lU.prototype,"participantsManager",void 0);_.Q([_.F(),_.y("design:type",Boolean)],lU.prototype,"noUnderline",void 0);_.Q([_.F(),_.y("design:type",Object)],lU.prototype,"inputMethodEditorActive",void 0);_.Q([_.Hf("#dropdown"),_.y("design:type",Object)],lU.prototype,"dropdown",void 0);_.Q([_.Hf("#input"),_.y("design:type",HTMLElement)],lU.prototype,"input",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lU.prototype,"dataChanged",null);_.Q([_.oN("messageInput"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lU.prototype,"onMessageSet",null);_.Q([_.IN("yt-live-chat-select-suggestion"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],lU.prototype,"onSuggestion",null);
_.Q([_.oN("characterCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lU.prototype,"characterCountChanged",null);_.Q([_.oN("focused"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lU.prototype,"focusedChanged",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],lU);
_.SBM=_.D(lU,"yt-live-chat-text-input-field-renderer",function(){if(C86===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;lfM===void 0&&(lfM=document.createElement("template"));var G=lfM;z.call(B,G.content.cloneNode(!0),W.content.firstChild);C86=W}W=C86;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Cj=function(){var W=_.S.apply(this,arguments)||this;W.buttonOverrides={style:"overlay",type:"filled"};W.allowAnimations=!1;W.modern=_.r("web_button_rework_with_live");W.noPadding=!1;return W};
_.C(Cj,_.S);_.p=Cj.prototype;_.p.shouldSupportInlineActionButtons=function(){return!0};
_.p.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"}}}}};
_.p.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.p.attached=function(){this.allowAnimations=!1};
_.p.dataChanged=function(){if(this.data){var W={"--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)};_.kw(this.hostElement,W);this.allowAnimations=!0}};
_.p.messageChanged=function(){var W,B=(W=this.data)==null?void 0:W.message;W=_.tH(_.tH(this.hostElement).querySelector("#message"));W.textContent="";B&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(B))};
_.p.computeShowOnlyHeader=function(W,B){return!W||W.pdgLikeButton||W.replyButton||W.buyFlowButton?!1:this.isEmpty(W,B)&&!W.footer};
_.p.computeShowFooterDivider=function(W,B,z){return W?!!W.footer&&!this.isEmpty(W,B)&&!z:!1};
_.p.computeIsUserEditable=function(W){return!!W.inputField};
_.p.computeHasHeartButton=function(W){return(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.p.computeNoveltyImage=function(W){if(W.headerOverlayImage&&W.headerOverlayImage.thumbnails.length){var B=W.headerOverlayImage.thumbnails[0],z,G;if((z=W.pdgPurchasedNoveltyLoggingDirectives)==null?0:(G=z.loggingDirectives)==null?0:G.trackingParams){var Y,d;QcT((Y=W.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(d=Y.loggingDirectives)==null?void 0:d.trackingParams)}return B.width||0}return 0};
_.p.computeAuthorPhotoSize=function(W){return(W==null?0:W.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.p.inputFocus=function(){var W=_.tH(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");W&&W.focus()};
_.p.inputInsertEmoji=function(W){var B=_.tH(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");B&&B.insertEmoji(W)};
_.p.inputMessage=function(){var W=_.tH(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),B;return W&&((B=this.data)==null?0:B.inputField)?(W.completeEmojis(),_.Uv(W.liveChatRichMessageInput)):null};
_.p.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.p.isEmpty=function(W,B){return W?W.empty||!(W.message||W.inputField||B):!0};
_.p.onLowerBuyButtonClick=function(){var W,B=_.k((W=this.data)==null?void 0:W.buyButton,_.Ep);B&&B.trackingParams&&!out(B.command)&&(W=_.XF(B.trackingParams))&&(B=_.m1())&&_.RP(B,W)};
_.p.shouldSupportWholeItemClick=function(){return!0};
_.G5.Object.defineProperties(Cj.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Cj.prototype.isDeletedChanged=Cj.prototype.isDeletedChanged;Cj.prototype.messageChanged=Cj.prototype.messageChanged;Cj.prototype.dataChanged=Cj.prototype.dataChanged;_.Q([_.h(dLM.YtPdgLiveChatItemBehavior),_.y("design:type",Object)],Cj.prototype,"ytPdgLiveChatItemBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.c7),_.y("design:type",Object)],Cj.prototype,"ytLiveChatReduxBehavior",void 0);
_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],Cj.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Cj.prototype,"data",void 0);_.Q([_.F({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:xuR}),_.y("design:type",Object)],Cj.prototype,"engagementState",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.y("design:type",Boolean)],Cj.prototype,"isUserEditable",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.y("design:type",Boolean)],Cj.prototype,"hasHeartButton",void 0);_.Q([_.F({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Cj.prototype,"showOnlyHeader",void 0);
_.Q([_.F({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Cj.prototype,"showFooterDivider",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Object)],Cj.prototype,"allowAnimations",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Cj.prototype,"dashboardMoneyFeed",void 0);_.Q([_.F({computed:"computeNoveltyImage(data)"}),_.y("design:type",Number)],Cj.prototype,"noveltyWidth",void 0);
_.Q([_.F({computed:"computeAuthorPhotoSize(data)"}),_.y("design:type",Number)],Cj.prototype,"authorPhotoSize",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Cj.prototype,"modern",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Cj.prototype,"noPadding",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cj.prototype,"dataChanged",null);
_.Q([_.oN("data.message"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cj.prototype,"messageChanged",null);_.Q([_.H("data","dashboardMoneyFeed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Cj.prototype,"hideLowerBumper",null);_.Q([_.oN("isDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cj.prototype,"isDeletedChanged",null);
_.Q([_.u({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Cj);
_.D(Cj,"yt-live-chat-paid-message-renderer",function(){if(xSR===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;mST===void 0&&(mST=document.createElement("template"));var G=mST;z.call(B,G.content.cloneNode(!0),W.content.firstChild);xSR=W}W=xSR;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var bZF;var jcM;var IY=function(){var W=_.SJ.apply(this,arguments)||this;W._noAccessors=!0;return W};
_.C(IY,_.SJ);IY.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.eD("openPopupConfig")};
_.Q([_.h(_.Ds.YtOpenPopupBehavior),_.y("design:type",Object)],IY.prototype,"ytOpenPopupBehavior",void 0);_.Q([_.bP()],IY);_.oY=[_.Ds.YtOpenPopupBehavior,IY.prototype];var ffR;var GN=[_.oE,Oa7,_.pS,_.h8,_.W0,_.zQ4,_.SW,_.KxR,_.fQ,i$r];_.r("web_watch_get_updated_metadata_response_processing")&&GN.push(_.z7R);_.r("web_continuation_response_processing")&&GN.push(_.Ly);var Fox=new _.t1("RESPONSE_RECEIVED_COMMANDS"),YIv=new _.t1("RESPONSE_RECEIVED_COMMANDS");var MIx="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Uvt=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],LiQ=["GET_UNSEEN_NOTIFICATION_COUNT"];var hP=function(){var W=_.SJ.apply(this,arguments)||this;W._noAccessors=!0;W.serviceEndpointHandlers=[];return W};
_.C(hP,_.SJ);hP.prototype.created=function(){var W=this;this.endpointHandlerActionMap={"yt-service-request":function(B,z,G,Y){var d;return $vv(W.hostElement,B,z,G,Y,W.serviceEndpointHandlers,(d=W.onEntitiesUpdated)==null?void 0:d.bind(W))}}};
hP.prototype.attached=function(){_.yx(_.Qx.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
hP.prototype.detached=function(){_.Nl(_.Qx.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.Q([_.bP()],hP);_.OZd=[hP.prototype];var XIQ,KMF=function(){return XIQ!==void 0?XIQ:XIQ=document.createElement("template")};
document.head.appendChild(KMF().content);var u9R;var eyd=document.head,muu=eyd.appendChild,xuT;if(u9R===void 0){var DuH=document.createElement("template");_.I(DuH,"\x3c!--css-build:shady--\x3e");DuH.content.insertBefore(KMF().content.cloneNode(!0),DuH.content.firstChild);u9R=DuH}xuT=u9R;muu.call(eyd,xuT.content);var Qc6,yNR=function(){return Qc6!==void 0?Qc6:Qc6=document.createElement("template")};
document.head.appendChild(yNR().content);var qBM;var nad=document.head,NlH=nad.appendChild,$uH;if(qBM===void 0){var LMF=document.createElement("template");_.I(LMF,"\x3c!--css-build:shady--\x3e");LMF.content.insertBefore(yNR().content.cloneNode(!0),LMF.content.firstChild);qBM=LMF}$uH=qBM;NlH.call(nad,$uH.content);var UuH;_.eX("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.eX("sharingRendererButtons","buttonRenderer","ytd-button-renderer");UuH=_.r("web_button_rework")&&_.md("BUTTON_REWORK")||_.r("web_button_rework_with_live");_.HN=function(){var W=_.S.apply(this,arguments)||this;W.isPressed=!1;W.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return W};
_.C(_.HN,_.S);_.p=_.HN.prototype;_.p.created=function(){this.showTooltips=!0};
_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.onHintIdChanged=function(){var W=this,B,z,G=(B=this.ytButtonBehavior.data)==null?void 0:(z=B.hint)==null?void 0:z.hintRenderer;if(G&&G.hintId){B=_.wV(this.hostElement,"yt-get-opened-popups-action");B=(B&&B.length===1?B[0]:[]).length>0;var Y=null;G.hintId!=="sponsor-pre-purchase"||B?G.hintId.startsWith("sponsor-post-purchase")&&!B?Y=rUR("membership-manage"):G.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!B&&(Y=rUR("membership-freebie-join")):Y=rUR("membership-join");Y&&_.fg.addLowPriorityJob(function(){for(var d=
_.A(Y),E=d.next();!E.done;E=d.next())W.ytComponentBehavior.resolveCommand(E.value)})}};
_.p.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.p.onYtNavigate=function(W){var B=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);B&&(W.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(B))};
_.p.onYtServiceRequestSent=function(W,B){this.handleServiceRequestActions(B);_.v0(this.hostElement,"yt-service-request-sent-button-renderer")};
_.p.onServiceRequestCompleted=function(W,B){this.handleServiceRequestActions(B);_.v0(this.hostElement,"yt-service-request-completed-button-renderer")};
_.p.updateButton=function(W){var B;if(W=(B=_.k(W,IUF))==null?void 0:B.updatedButton)this.ytButtonBehavior.data=_.k(W,_.Ep)};
_.p.handleUpdateButtonAction=function(W){var B=this.ytButtonBehavior.data;B.targetId&&W.updateButtonAction.targetId&&B.targetId===W.updateButtonAction.targetId&&this.updateButton(W)};
_.p.handleServiceRequestActions=function(W){if(W=W.actions)for(var B=0;B<W.length;B++)this.updateButton(W[B])};
_.G5.Object.defineProperties(_.HN,{template:{configurable:!0,enumerable:!0,get:function(){if(ffR===void 0){var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);ffR=W}W=ffR;return W}}});
_.HN.prototype.onServiceRequestCompleted=_.HN.prototype.onServiceRequestCompleted;_.HN.prototype.onYtServiceRequestSent=_.HN.prototype.onYtServiceRequestSent;_.HN.prototype.onYtNavigate=_.HN.prototype.onYtNavigate;_.HN.prototype.onPressedStateChanged=_.HN.prototype.onPressedStateChanged;_.HN.prototype.onHintIdChanged=_.HN.prototype.onHintIdChanged;_.Q([_.F(),_.y("design:type",Object)],_.HN.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],_.HN.prototype,"isPressed",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],_.HN.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.dS7.YtButtonBehavior),_.y("design:type",Object)],_.HN.prototype,"ytButtonBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],_.HN.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],_.HN.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(M8.YtRenderButtonBehavior),_.y("design:type",Object)],_.HN.prototype,"ytRenderButtonBehavior",void 0);_.Q([_.oN("data.hint.hintRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],_.HN.prototype,"onHintIdChanged",null);_.Q([_.oN("isPressed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],_.HN.prototype,"onPressedStateChanged",null);
_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],_.HN.prototype,"onYtNavigate",null);_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],_.HN.prototype,"onYtServiceRequestSent",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],_.HN.prototype,"onServiceRequestCompleted",null);_.Q([_.u({is:"ytd-button-renderer",disableElementRegistration:UuH})],_.HN);var Fw=function(){var W=_.S.apply(this,arguments)||this;W.modern=_.r("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.C(Fw,_.S);_.p=Fw.prototype;_.p.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"}}}}};
_.p.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.p.dataChanged=function(){if(this.data&&this.data.sticker){var W=_.JY(this.data.sticker.thumbnails,this.stickerWidth);W||_.v7Q(W).thenCatch(function(){_.Oc(new _.oX("Failed to load Super Sticker with url",W))})}};
_.p.computeAuthorPhotoSize=function(W){return(W==null?0:W.isV2Style)?32:40};
_.p.computeIsV2Style=function(W){return(W==null?0:W.isV2Style)?!0:!1};
_.p.onStickerLoaded=function(W){var B,z,G;(B=_.iP(W))==null||(z=B.parentNode)==null||(G=z.classList)==null||G.add("sticker-loaded")};
_.p.computeNoveltyImageWidth=function(W){var B,z;if(W==null?0:(B=W.headerOverlayImage)==null?0:(z=B.thumbnails)==null?0:z.length){B=W.headerOverlayImage.thumbnails[0];var G,Y;if((G=W.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Y=G.loggingDirectives)==null?0:Y.trackingParams){var d,E;QcT((d=W.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(E=d.loggingDirectives)==null?void 0:E.trackingParams)}return B.width||0}return 0};
_.p.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.p.updateStickerStyles=function(){var W=this.data;W&&(W={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.authorNameTextColor)},
_.kw(this.hostElement,W))};
_.p.onBuyButtonClick=function(){var W,B=_.k((W=this.data)==null?void 0:W.buyButton,_.Ep);B&&!out(B.command)&&this.ytRendererBehavior.logExplicitClick(B)};
_.p.shouldSupportWholeItemClick=function(){return!0};
_.G5.Object.defineProperties(Fw.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 W;return((W=this.data)==null?0:W.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Fw.prototype.updateStickerStyles=Fw.prototype.updateStickerStyles;Fw.prototype.isDeletedChanged=Fw.prototype.isDeletedChanged;Fw.prototype.onStickerLoaded=Fw.prototype.onStickerLoaded;Fw.prototype.dataChanged=Fw.prototype.dataChanged;_.Q([_.h(dLM.YtPdgLiveChatItemBehavior),_.y("design:type",Object)],Fw.prototype,"ytPdgLiveChatItemBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Fw.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],Fw.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Fw.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Fw.prototype,"data",void 0);
_.Q([_.F({computed:"computeAuthorPhotoSize(data)"}),_.y("design:type",Number)],Fw.prototype,"authorPhotoSize",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Fw.prototype,"isDeleted",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Fw.prototype,"dashboardMoneyFeed",void 0);_.Q([_.F({computed:"computeNoveltyImageWidth(data)"}),_.y("design:type",Number)],Fw.prototype,"noveltyWidth",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fw.prototype,"modern",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.y("design:type",Boolean)],Fw.prototype,"isV2Style",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fw.prototype,"dataChanged",null);_.Q([_.IN("yt-img-shadow-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Fw.prototype,"onStickerLoaded",null);
_.Q([_.H("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],Fw.prototype,"stickerWidth",null);_.Q([_.H("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],Fw.prototype,"stickerHeight",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Fw.prototype,"hasHeartButton",null);_.Q([_.H("data","dashboardMoneyFeed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Fw.prototype,"hideLowerBumper",null);
_.Q([_.oN("isDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fw.prototype,"isDeletedChanged",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fw.prototype,"updateStickerStyles",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Fw);
_.D(Fw,"yt-live-chat-paid-sticker-renderer",function(){if(jcM===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;bZF===void 0&&(bZF=document.createElement("template"));var G=bZF;z.call(B,G.content.cloneNode(!0),W.content.firstChild);jcM=W}W=jcM;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var MeR;var af7;var RyM,WiQ=function(){return RyM!==void 0?RyM:RyM=document.createElement("template")};
document.head.appendChild(WiQ().content);var BB7,zcD=function(){return BB7!==void 0?BB7:BB7=document.createElement("template")};
document.head.appendChild(zcD().content);var GO6;var Y94,dvT=function(){return Y94!==void 0?Y94:Y94=document.createElement("template")};
document.head.appendChild(dvT().content);var p9R;var AOD=document.head,iz4=AOD.appendChild,EoT;if(p9R===void 0){var TBR=document.createElement("template");_.I(TBR,"\x3c!--css-build:shady--\x3e");TBR.content.insertBefore(dvT().content.cloneNode(!0),TBR.content.firstChild);p9R=TBR}EoT=p9R;iz4.call(AOD,EoT.content);var vod=document.head,cOF=vod.appendChild,w9d;if(GO6===void 0){var SS=document.createElement("template");_.I(SS,"\x3c!--css-build:shady--\x3e");SS.content.insertBefore(zcD().content.cloneNode(!0),SS.content.firstChild);SS.content.insertBefore(WiQ().content.cloneNode(!0),SS.content.firstChild);GO6=SS}w9d=GO6;cOF.call(vod,w9d.content);var bU=function(){var W=_.SJ.apply(this,arguments)||this;W.focusedIndex=0;W.verticalOffset=0;W.verticalAlign="top";W.dynamicAlign=!0;return W};
_.C(bU,_.SJ);bU.prototype.emojiUrl=function(W){W=_.VF(this.emojiManager,W);if(!W)return"";var B;W=(B=W.image)==null?void 0:B.thumbnails;return _.JY(W,24)||""};
var VId=function(W){var B;W.emojiVariants&&(B=W.data)!=null&&B.target&&_.BM(W,function(){W.set("verticalOffset",-1*W.hostElement.clientHeight);var z=_.tH(W.hostElement).querySelector("img");z&&z.focus()})};
_.p=bU.prototype;_.p.onKeyboardEnter=function(){};
_.p.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.p.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.p.onKeyDown=function(W){switch(W.keyCode){case 13:this.onKeyboardEnter();W.preventDefault();break;case 40:this.changeFocus(1);W.preventDefault();break;case 38:this.changeFocus(-1);W.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.p.onYtEmojiSelect=function(W){var B=this,z,G,Y,d,E,v,c,J;return _.T(function(g){if(g.nextAddress==1)return G=(z=B.data)==null?void 0:z.emoji,E=((Y=G)==null?void 0:Y.stickyPrefId)||((d=G)==null?void 0:d.emojiId),c=(v=W.detail)==null?void 0:v.emojiId,E&&c&&E!==c?g.yield((J=B.emojiManager)==null?void 0:P8F(J,G,c),2):g.return();_.c0(B.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[G,c]);_.HG(g)})};
_.p.changeFocus=function(W){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+W+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(W=_.tH(this.hostElement).querySelector("#variants"))&&W.children[this.focusedIndex].focus())};
_.G5.Object.defineProperties(bU.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
bU.prototype.onYtEmojiSelect=bU.prototype.onYtEmojiSelect;bU.prototype.onKeyDown=bU.prototype.onKeyDown;bU.prototype.onEmojiVariantsChanged=bU.prototype.onEmojiVariantsChanged;bU.prototype.onVerticalOffsetOrPositionTargetChanged=bU.prototype.onVerticalOffsetOrPositionTargetChanged;_.Q([_.h(_.ct),_.y("design:type",Object)],bU.prototype,"ironOverlayBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],bU.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",_.wN)],bU.prototype,"emojiManager",void 0);
_.Q([_.F(),_.y("design:type",Object)],bU.prototype,"emojiVariants",void 0);_.Q([_.F(),_.y("design:type",Object)],bU.prototype,"focusedIndex",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],bU.prototype,"positionTarget",null);_.Q([_.F({reflectToAttribute:!0}),_.H("verticalOffset","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bU.prototype,"isPositioned",null);_.Q([_.F(),_.y("design:type",Object)],bU.prototype,"verticalOffset",void 0);
_.Q([_.F(),_.y("design:type",Object)],bU.prototype,"verticalAlign",void 0);_.Q([_.F(),_.y("design:type",Object)],bU.prototype,"dynamicAlign",void 0);_.Q([_.oN("verticalOffset","positionTarget"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bU.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.Q([_.oN("emojiVariants"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bU.prototype,"onEmojiVariantsChanged",null);
_.Q([_.IN("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],bU.prototype,"onKeyDown",null);_.Q([_.IN("yt-emoji-select"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype",Promise)],bU.prototype,"onYtEmojiSelect",null);_.Q([_.bP()],bU);var JOF=[bU.prototype];var goH;var tI7;var svM=/medium-light|medium-dark|light|medium|dark/,PwR=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,ZzT=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),jS=function(){var W=_.S.apply(this,arguments)||this;W.userSelection={left:null,right:null};W.scrollAction="lock";W.isEmojiDraftInProgress=!1;return W};
_.C(jS,_.S);_.p=jS.prototype;_.p.onClick=function(W){W=_.iP(W);W instanceof HTMLImageElement&&this.selectOrUpdateEmoji(W)};
_.p.selectOrUpdateEmoji=function(W){var B=W.getAttribute("selection");B&&(B==="default"?_.v0(this.hostElement,"yt-emoji-select",_.VF(this.emojiManager,W.id)):B==="left"?this.userSelection=Object.assign({},this.userSelection,{left:W.src}):B==="right"?this.userSelection=Object.assign({},this.userSelection,{right:W.src}):B==="user"&&this.userSelection.left&&this.userSelection.right&&_.v0(this.hostElement,"yt-emoji-select",_.VF(this.emojiManager,W.id)))};
_.p.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.p.onMultiSelectorThumbnailRowChanged=function(){var W,B,z;((W=this.data)==null?0:(B=W.emoji)==null?0:(z=B.multiSelectorThumbnailRow)==null?0:z.length)&&this.openSelector()};
_.p.getThumbnailFromEmojiRow=function(W){var B,z;return(W==null?void 0:(B=W.thumbnails)==null?void 0:(z=B[0])==null?void 0:z.url)||""};
_.p.getEmojiAltTextForPartialSelector=function(W){var B;return((B=this.getThumbnailFromEmojiRow(W).match(PwR))==null?void 0:B[0])||""};
_.p.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.p.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.p.getRowSelection=function(W){return["left","right"][W]};
_.p.getIdFromComposedEmoji=function(W){return(W==null?void 0:W.emojiId)||""};
_.p.getEmojiFromPartialSelections=function(W,B){if(!W&&!B)return null;var z,G,Y=(z=this.data)==null?void 0:(G=z.emoji)==null?void 0:G.variantIds;if(!Y||!Y.length)return null;var d;W=(d=W.match(svM))==null?void 0:d[0];var E;B=(E=B.match(svM))==null?void 0:E[0];if(!W||!B)return null;var v=ZzT.get(W);E=ZzT.get(B);if(v===E){E=Array.from(ZzT.values()).filter(function(J){return J!==v}).join("|");
var c=new RegExp("^((?!("+E+")).)*"+v+"$")}else c=new RegExp(v+".*"+E);return(Y=Y.find(function(J){return c.test(J)}))&&_.VF(this.emojiManager,Y)||null};
_.p.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var W,B=this.ytEmojiSelectorBehavior.emojiUrl(((W=this.data.emoji)==null?void 0:W.emojiId)||"");_.tH(this.hostElement).querySelector('[selection="user"]').src.includes(B)||(this.isEmojiDraftInProgress=!0)}};
_.p.onDomChange=function(){VId(this.ytEmojiSelectorBehavior)};
_.p.getFocusableElements=function(){return _.tH(this.hostElement).querySelectorAll("img").filter(function(W){return W.getAttribute("role")==="option"})};
_.p.changeFocus=function(W){var B=this.getFocusableElements();B!=null&&B.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+W+B.length)%B.length,this.ytEmojiSelectorBehavior.focusedIndex<B.length&&(W=B[this.ytEmojiSelectorBehavior.focusedIndex])&&W.focus())};
_.p.onKeyboardEnter=function(){var W=this.getFocusableElements();W!=null&&W.length&&(W=W[this.ytEmojiSelectorBehavior.focusedIndex])&&W instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(W),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.G5.Object.defineProperties(jS.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var W=this,B,z,G;return this.emojiManager&&((B=this.data)==null?0:(z=B.emoji)==null?0:(G=z.variantIds)==null?0:G.length)?this.data.emoji.variantIds.map(function(Y){return!!Y&&_.VF(W.emojiManager,Y)}).filter(function(Y){return!!Y}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var W,B=(W=this.userSelection)==null?void 0:W.left,z;W=(z=this.userSelection)==null?void 0:z.right;return B&&W?this.getEmojiFromPartialSelections(B,W):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.composedEmojiSelection)==null?0:W.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var B;W=(B=this.userSelection)==null?void 0:B.left;var z;B=(z=this.userSelection)==null?void 0:z.right;if(!W&&!B){var G;return this.ytEmojiSelectorBehavior.emojiUrl(((G=this.data.emoji)==null?void 0:G.emojiId)||"")}return W&&!B?W:!W&&B?B:""}}});
jS.prototype.onMultiSelectorThumbnailRowChanged=jS.prototype.onMultiSelectorThumbnailRowChanged;jS.prototype.onClick=jS.prototype.onClick;_.Q([_.h(_.ct),_.y("design:type",Object)],jS.prototype,"ironOverlayBehavior",void 0);_.Q([_.h(JOF),_.y("design:type",Object)],jS.prototype,"ytEmojiSelectorBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],jS.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",_.wN)],jS.prototype,"emojiManager",void 0);
_.Q([_.F(),_.y("design:type",Object)],jS.prototype,"userSelection",void 0);_.Q([_.F(),_.y("design:type",Object)],jS.prototype,"scrollAction",void 0);_.Q([_.F(),_.y("design:type",Object)],jS.prototype,"isEmojiDraftInProgress",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],jS.prototype,"emojiVariants",null);_.Q([_.H("data","userSelection"),_.y("design:type",Object),_.y("design:paramtypes",[])],jS.prototype,"composedEmojiSelection",null);
_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[MouseEvent]),_.y("design:returntype")],jS.prototype,"onClick",null);_.Q([_.oN("data.emoji.multiSelectorThumbnailRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jS.prototype,"onMultiSelectorThumbnailRowChanged",null);_.Q([_.H("data","userSelection","composedEmojiSelection"),_.y("design:type",String),_.y("design:paramtypes",[])],jS.prototype,"draftEmojiUrl",null);
_.Q([_.NJ({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],jS);
_.D(jS,"yt-emoji-multi-person-selector",function(){if(tI7===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;goH===void 0&&(goH=document.createElement("template"));var G=goH;z.call(B,G.content.cloneNode(!0),W.content.firstChild);tI7=W}W=tI7;return W},{mode:2});var rOH;var kOT;var fj=function(){var W=_.S.apply(this,arguments)||this;W.tooltip_=null;return W};
_.C(fj,_.S);_.p=fj.prototype;_.p.dataChanged_=function(){var W;if((W=this.data)==null?0:W.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.tH(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.r5)(this.tooltip_).textContent=this.data.tooltip};
_.p.computeTargetId=function(){var W;return((W=this.data)==null?void 0:W.targetId)||""};
_.p.computeId_=function(W){return W};
_.p.computeIcon_=function(W){return _.lg(W)};
_.p.onTap_=function(){this.active=!this.active;_.v0(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.p.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("active-changed",this.active))};
_.G5.Object.defineProperties(fj.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var W,B;if((W=this.data)==null?0:(B=W.icon)==null?0:B.iconType)return this.data.icon.iconType==="SUPER_STICKER";var z,G;return((z=this.data)==null?void 0:(G=z.icon)==null?void 0:G.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
fj.prototype.activeChangedForBinding=fj.prototype.activeChangedForBinding;fj.prototype.dataChanged_=fj.prototype.dataChanged_;_.Q([_.h(_.w0.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],fj.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],fj.prototype,"data",void 0);_.Q([_.F({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.y("design:type",String)],fj.prototype,"id",void 0);
_.Q([_.F({computed:"computeTargetId(data.targetId)"}),_.y("design:type",String)],fj.prototype,"targetId",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],fj.prototype,"active",void 0);_.Q([_.F({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.y("design:type",String)],fj.prototype,"icon",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fj.prototype,"dataChanged_",null);
_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fj.prototype,"iconFilled",null);_.Q([_.oN("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fj.prototype,"activeChangedForBinding",null);_.Q([_.NJ({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],fj);
_.D(fj,"yt-emoji-picker-category-button-renderer",function(){if(kOT===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;rOH===void 0&&(rOH=document.createElement("template"));var G=rOH;z.call(B,G.content.cloneNode(!0),W.content.firstChild);kOT=W}W=kOT;return W},{mode:2});var ld6;var CwR;var Os=function(){var W=_.S.apply(this,arguments)||this;W.ariaLabel=null;W.ariaActivedescendant=null;W.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};W.JSC$14179_ignoreNextFocus_=!1;W.longPressTimeoutId=-1;return W};
_.C(Os,_.S);_.p=Os.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.p.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.p.emojiChanged_=function(){this.changeFocus_(0,!1);for(var W=_.SK(),B=0;B<this.emoji.length;B++){var z={veType:88013,elementIndex:B},G=this.emoji[B];G.isCustomEmoji&&(G=document.querySelector(("#"+G.emojiId).replace("/","\\/")))&&(z=_.FF(W,z))&&(G.visualElement=z)}};
_.p.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.p.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.p.emojiSkinToneChanged_=function(W){this.skinTone=W};
_.p.dataChanged=function(){this.data&&this.data.emojiData&&JNR(this.emojiManager,this.data.emojiData)};
_.p.emojiUrl=function(W){W=this.getEmoji(W);if(!W)return"";var B;W=(B=W.image)==null?void 0:B.thumbnails;return _.JY(W,24)||""};
_.p.emojiAlt=function(W){var B=this.get("image.accessibility.accessibilityData.label",W);return B?B:W.isCustomEmoji?W.shortcuts[0]:W.emojiId};
_.p.emojiAriaLabel=function(W){return W.shortcuts?W.shortcuts[0]:""};
_.p.emojiAriaSelected=function(W,B,z){return W&&z==B?"true":"false"};
_.p.getEmoji=function(W){if(this.emojiManager)return this.shouldUseStickyPreferences?teQ(this.emojiManager,W):JP(this.emojiManager,W)};
_.p.computeId_=function(W){return W.categoryId||""};
_.p.computeEmoji=function(W){var B=this;return this.emojiManager?W.emojiIds?W.emojiIds.map(function(z){return z?_.VF(B.emojiManager,z):null}).filter(cQ2):W.emojiData?W.emojiData.map(function(z){var G=!!z.emojiId&&_.VF(B.emojiManager,z.emojiId);
return G?Object.assign({},G,z):null}).filter(cQ2):[]:[]};
_.p.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.p.computeAriaLabel_=function(W){return _.zR(W)};
_.p.computeAriaActivedescendant_=function(W,B){return W&&W[B]?W[B].emojiId||"":""};
_.p.handleLongPressEmojiWithVariants=function(W,B){this.changeFocusToEmoji(W.emojiId,!1);this.openVariantSelector(W,B)};
_.p.onMouseDown=function(W){var B=this;this.hostElement!==document.activeElement&&(this.JSC$14179_ignoreNextFocus_=!0);if(W.button===0){var z=_.iP(W);if(z instanceof HTMLImageElement){var G=_.tH(this.hostElement).querySelector("#repeat").itemForElement(z);this.emojiContainsVariants(G)&&(this.longPressTimeoutId=setTimeout(function(){B.handleLongPressEmojiWithVariants(G,z)},500))}}};
_.p.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.p.onFocus=function(){this.JSC$14179_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14179_ignoreNextFocus_=!1};
_.p.onBlur_=function(){this.showFocus=!1};
_.p.emojiContainsVariants=function(W){return!!(W&&W.variantIds&&W.variantIds.length)};
_.p.onClick=function(W){clearTimeout(this.longPressTimeoutId);W=_.iP(W);if(W instanceof HTMLImageElement){var B=W.id;this.changeFocusToEmoji(B,!1);var z=this.getEmoji(B),G;if(G=this.shouldUseStickyPreferences&&this.emojiContainsVariants(z)){var Y;G=!((Y=this.emojiManager.emojiMap[B])!=null&&Y.stickyPrefId)}G?(Y=_.tH(this.hostElement).querySelector("#repeat").itemForElement(W),this.openVariantSelector(Y,W)):_.v0(this.hostElement,"yt-emoji-select",z)}};
_.p.isActiveEmojiWithVariants=function(W,B){return W&&B?B.stickyPrefId?W===B.stickyPrefId:W===B.emojiId:!1};
_.p.onCloseEmojiVariantSelector=function(W){this.activeEmojiWithVariantsId===W&&(this.activeEmojiWithVariantsId="")};
_.p.onMouseOver_=function(W){W=_.iP(W);W instanceof HTMLImageElement&&_.v0(this.hostElement,"yt-emoji-hover",_.VF(this.emojiManager,W.id))};
_.p.changeFocus_=function(W,B){this.focusedIndex=(this.focusedIndex+W+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(W=this.emoji[this.focusedIndex],B&&(this.showFocus=!0,_.tH(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.v0(this.hostElement,"yt-emoji-hover",W)))};
_.p.changeFocusToEmoji=function(W,B){if(W){var z=this.emoji.findIndex(function(G){return G.emojiId===W});
z!==-1&&this.changeFocus_(z-this.focusedIndex,B)}};
_.p.onKeyDown_=function(W){switch(W.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var B=this.emoji[this.focusedIndex];if(B&&B.emojiId){if(this.emojiContainsVariants(B)){var z=_.tH(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(B,z)}else _.v0(this.hostElement,"yt-emoji-select",JP(this.emojiManager,B.emojiId)),this.hostElement.focus();W.preventDefault()}}break;case 40:this.changeFocus_(1,!0);W.preventDefault();break;case 38:this.changeFocus_(-1,!0),
W.preventDefault()}};
_.p.onEmojiStickyPreferenceChanged=function(W,B){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&W.emojiId&&W.variantIds&&W.variantIds.includes(B)&&this.activeEmojiWithVariantsId!==B&&this.setStickyEmojiPreference(W.emojiId,B)};
_.p.openVariantSelector=function(W,B){this.activeEmojiWithVariantsId=W.stickyPrefId||W.emojiId||"";_.v0(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:W,target:B})};
_.p.setStickyEmojiPreference=function(W,B){if(this.data){var z=this.emoji.findIndex(function(Y){return Y.emojiId===W});
if(z!==-1){var G=this.emoji[z];G.stickyPrefId=B;this.set("emoji."+z,Object.assign({},G));this.activeEmojiWithVariantsId=B}}};
Os.prototype.onKeyDown_=Os.prototype.onKeyDown_;Os.prototype.onMouseOver_=Os.prototype.onMouseOver_;Os.prototype.onClick=Os.prototype.onClick;Os.prototype.onBlur_=Os.prototype.onBlur_;Os.prototype.onFocus=Os.prototype.onFocus;Os.prototype.onMouseUp=Os.prototype.onMouseUp;Os.prototype.onMouseDown=Os.prototype.onMouseDown;Os.prototype.dataChanged=Os.prototype.dataChanged;Os.prototype.disableIncrementalLoadingChanged_=Os.prototype.disableIncrementalLoadingChanged_;Os.prototype.emojiManagerChanged_=Os.prototype.emojiManagerChanged_;
Os.prototype.emojiChanged_=Os.prototype.emojiChanged_;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Os.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Os.prototype,"data",void 0);_.Q([_.F({computed:"computeId_(data)"}),_.y("design:type",String)],Os.prototype,"id",void 0);_.Q([_.F({computed:"computeEmoji(data)"}),_.y("design:type",Array)],Os.prototype,"emoji",void 0);_.Q([_.F(),_.y("design:type",Number)],Os.prototype,"skinTone",void 0);
_.Q([_.F(),_.y("design:type",_.wN)],Os.prototype,"emojiManager",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Os.prototype,"disableIncrementalLoading",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],Os.prototype,"focusedIndex",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Os.prototype,"showFocus",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.y("design:type",Object)],Os.prototype,"ariaLabel",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.y("design:type",Object)],Os.prototype,"ariaActivedescendant",void 0);_.Q([_.F({value:60}),_.y("design:type",Number)],Os.prototype,"domRepeatTargetFramerate",void 0);_.Q([_.F({value:1}),_.y("design:type",Number)],Os.prototype,"domRepeatInitialCount",void 0);_.Q([_.F({value:""}),_.y("design:type",String)],Os.prototype,"activeEmojiWithVariantsId",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Os.prototype,"shouldUseStickyPreferences",void 0);_.Q([_.oN("emoji"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Os.prototype,"emojiChanged_",null);_.Q([_.oN("emojiManager"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Os.prototype,"emojiManagerChanged_",null);
_.Q([_.oN("disableIncrementalLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Os.prototype,"disableIncrementalLoadingChanged_",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Os.prototype,"dataChanged",null);_.Q([_.IN("mousedown"),_.y("design:type",Function),_.y("design:paramtypes",[Object]),_.y("design:returntype")],Os.prototype,"onMouseDown",null);
_.Q([_.IN("mouseup"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Os.prototype,"onMouseUp",null);_.Q([_.IN("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Os.prototype,"onFocus",null);_.Q([_.IN("blur"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Os.prototype,"onBlur_",null);
_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Os.prototype,"onClick",null);_.Q([_.IN("mouseover"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Os.prototype,"onMouseOver_",null);_.Q([_.IN("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Os.prototype,"onKeyDown_",null);
_.Q([_.NJ({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Os);
_.D(Os,"yt-emoji-picker-category-renderer",function(){if(CwR===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;ld6===void 0&&(ld6=document.createElement("template"));var G=ld6;z.call(B,G.content.cloneNode(!0),W.content.firstChild);CwR=W}W=CwR;return W},{mode:2});var IdM;var ooR;var hc6;var HzM;var Xw=function(){var W=_.S.apply(this,arguments)||this;W.ariaLabel=null;W.ariaActivedescendant=null;W.getFormattedStringRawText=_.zR;W.JSC$14185_ignoreNextFocus_=!1;return W};
_.C(Xw,_.S);_.p=Xw.prototype;_.p.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")};
_.p.emojiUrl=function(W){var B,z;W=(B=JP(this.emojiManager,W,!0))==null?void 0:(z=B.image)==null?void 0:z.thumbnails;return _.JY(W,24)||""};
_.p.emojiAlt=function(W){var B=this.get("image.accessibility.accessibilityData.label",W);return B?B:W.isCustomEmoji?W.shortcuts[0]:W.emojiId};
_.p.emojiId=function(W){return"emoji"+W};
_.p.computeId_=function(W){return W.categoryId||""};
_.p.computeAriaActivedescendant_=function(W){return this.emoji&&W<this.emoji.length?this.emojiId(W):""};
_.p.emojiChanged_=function(){this.changeFocus_(0,!1);for(var W=_.SK(),B=0;B<this.emoji.length;B++){var z={veType:88013,elementIndex:B},G=this.emoji[B];G.isCustomEmoji&&(G=document.querySelector(("#"+G.emojiId).replace("/","\\/")))&&(z=_.FF(W,z))&&(G.visualElement=z)}};
_.p.computeEmoji_=function(W){var B=this;return this.emojiManager?W.emojiIds.map(function(z){return _.VF(B.emojiManager,z,!0)}).filter(wX8):[]};
_.p.titleOffsetChanged_=function(){var W=this.hostElement.getBoundingClientRect(),B=_.tH(this.hostElement).querySelector("#title").getBoundingClientRect();W=Math.max(0,Math.min(this.titleOffset,W.height-B.height));_.tH(this.hostElement).querySelector("#title").style.top=W+"px"};
_.p.onEmojiMouseOver_=function(W){_.v0(this.hostElement,"yt-emoji-hover",W.model.item)};
_.p.onEmojiTap_=function(W){this.data.command&&(W=MeQ(_.dO().resolve(_.Y8(xE)),this.data.command,W),_.v0(this.hostElement,"yt-navigate",W))};
_.p.emojiAriaLabel=function(W){return W.shortcuts[0]};
_.p.emojiAriaSelected=function(W,B,z){return W&&z==B?"true":"false"};
_.p.changeFocus_=function(W,B){var z=this.emoji.length;this.focusedIndex=(this.focusedIndex+W+z)%z;W=this.emoji[this.focusedIndex];if(B){var G;(G=_.tH(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||G.scrollIntoView(!1);_.v0(this.hostElement,"yt-emoji-hover",W)}};
_.p.onMouseDown_=function(){this.JSC$14185_ignoreNextFocus_=!0};
_.p.onFocus_=function(){this.JSC$14185_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14185_ignoreNextFocus_=!1};
_.p.onBlur_=function(){this.showFocus=!1};
_.p.onKeyDown_=function(W){switch(W.keyCode){case 13:this.onEmojiTap_(W);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);W.preventDefault();break;case 38:this.changeFocus_(-1,!0),W.preventDefault()}};
Xw.prototype.onKeyDown_=Xw.prototype.onKeyDown_;Xw.prototype.onBlur_=Xw.prototype.onBlur_;Xw.prototype.onFocus_=Xw.prototype.onFocus_;Xw.prototype.onMouseDown_=Xw.prototype.onMouseDown_;Xw.prototype.onEmojiTap_=Xw.prototype.onEmojiTap_;Xw.prototype.titleOffsetChanged_=Xw.prototype.titleOffsetChanged_;Xw.prototype.emojiChanged_=Xw.prototype.emojiChanged_;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Xw.prototype,"ytComponentBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Xw.prototype,"data",void 0);_.Q([_.F({computed:"computeId_(data)"}),_.y("design:type",String)],Xw.prototype,"id",void 0);_.Q([_.F({computed:"computeEmoji_(data)"}),_.y("design:type",Array)],Xw.prototype,"emoji",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],Xw.prototype,"titleOffset",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.y("design:type",Object)],Xw.prototype,"ariaLabel",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.y("design:type",Object)],Xw.prototype,"ariaActivedescendant",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Xw.prototype,"showFocus",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],Xw.prototype,"focusedIndex",void 0);_.Q([_.F(),_.y("design:type",_.wN)],Xw.prototype,"emojiManager",void 0);
_.Q([_.oN("emoji"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xw.prototype,"emojiChanged_",null);_.Q([_.oN("titleOffset"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xw.prototype,"titleOffsetChanged_",null);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Xw.prototype,"onEmojiTap_",null);
_.Q([_.IN("mousedown"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xw.prototype,"onMouseDown_",null);_.Q([_.IN("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xw.prototype,"onFocus_",null);_.Q([_.IN("blur"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xw.prototype,"onBlur_",null);
_.Q([_.IN("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Xw.prototype,"onKeyDown_",null);_.Q([_.NJ({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],Xw);
_.D(Xw,"yt-emoji-picker-upsell-category-renderer",function(){if(HzM===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;hc6===void 0&&(hc6=document.createElement("template"));var G=hc6;z.call(B,G.content.cloneNode(!0),W.content.firstChild);HzM=W}W=HzM;return W},{mode:2});var Fid;var S96;var Kj=function(){var W=_.S.apply(this,arguments)||this;W.scrollAction="lock";W.verticalAlign="top";return W};
_.C(Kj,_.S);_.p=Kj.prototype;_.p.onClick=function(W){W=_.iP(W);W instanceof HTMLImageElement&&_.v0(this.hostElement,"yt-emoji-select",_.VF(this.emojiManager,W.id))};
_.p.openSelector=function(){this.ironOverlayBehavior.open()};
_.p.onDomChange=function(){VId(this.ytEmojiSelectorBehavior)};
_.p.computeIsFamilySelector=function(W){var B;return(W==null?void 0:(B=W.emoji)==null?void 0:B.emojiId)==="\ud83d\udc6a"};
_.p.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var W=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];W&&W.emojiId&&(_.v0(this.hostElement,"yt-emoji-select",_.VF(this.emojiManager,W.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.G5.Object.defineProperties(Kj.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var W=this,B,z,G;return this.emojiManager&&((B=this.data)==null?0:(z=B.emoji)==null?0:(G=z.variantIds)==null?0:G.length)?this.data.emoji.variantIds.map(function(Y){return!!Y&&_.VF(W.emojiManager,Y)}).filter(function(Y){return!!Y}):[]}}});
Kj.prototype.onClick=Kj.prototype.onClick;_.Q([_.h(_.ct),_.y("design:type",Object)],Kj.prototype,"ironOverlayBehavior",void 0);_.Q([_.h(JOF),_.y("design:type",Object)],Kj.prototype,"ytEmojiSelectorBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Kj.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",_.wN)],Kj.prototype,"emojiManager",void 0);_.Q([_.F(),_.y("design:type",Object)],Kj.prototype,"scrollAction",void 0);_.Q([_.F(),_.y("design:type",Object)],Kj.prototype,"verticalAlign",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.y("design:type",Boolean)],Kj.prototype,"isFamilySelector",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Kj.prototype,"emojiVariants",null);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[MouseEvent]),_.y("design:returntype")],Kj.prototype,"onClick",null);_.Q([_.NJ({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Kj);
_.D(Kj,"yt-emoji-variant-selector",function(){if(S96===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Fid===void 0&&(Fid=document.createElement("template"));var G=Fid;z.call(B,G.content.cloneNode(!0),W.content.firstChild);S96=W}W=S96;return W},{mode:2});var bz7=/:/g,jvD=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],uU=function(){var W=_.S.apply(this,arguments)||this;W.emojiVariantSelector=null;W.emojiMultiPersonSelector=null;W.identity=_.Ku;W.lastAnimationTime_=0;W.animationStart_=null;W.animationEnd_=null;return W};
_.C(uU,_.S);_.p=uU.prototype;
_.p.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}}};
_.p.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.gN)};
_.p.attached=function(){_.Js&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&gaM(this.emojiManager)};
_.p.dataChanged=function(){var W;if((W=this.data)==null?0:W.categories){W=this.emojiManager;var B=this.getCustomEmojiIds();W.pickerCustomEmojiIds=[].concat(_.u7(TlM),_.u7(B))}};
_.p.getCustomEmojiIds=function(){var W,B=(W=this.data.categories)==null?void 0:W.find(function(d){var E;return((E=d.emojiPickerCategoryRenderer)==null?void 0:E.categoryId)&&jvD.includes(d.emojiPickerCategoryRenderer.categoryId)}),z;
W=(z=this.data.categories)==null?void 0:z.find(function(d){return d.emojiPickerUpsellCategoryRenderer});
var G,Y;return[B==null?void 0:(G=B.emojiPickerCategoryRenderer)==null?void 0:G.emojiIds,W==null?void 0:(Y=W.emojiPickerUpsellCategoryRenderer)==null?void 0:Y.emojiIds].flat().filter(function(d){return!!d})};
_.p.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.p.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.p.updateCategoriesAndPlaceholderInternal=function(W,B){var z=this;W&&B&&(this.categories=W.categories||[],this.categoryButtons=W.categoryButtons||[],this.resetPlaceholder(),this.search="",_.WJ(function(){z.updateButtons_()}))};
_.p.computeId_=function(W){return W.id||""};
_.p.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(W){return W.emojiPickerCategoryRenderer&&W.emojiPickerCategoryRenderer.emojiData}):!1};
_.p.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.p.onShowEmojiVariantSelector=function(W){var B=W.detail.emojiData;B.variantIds&&B.variantIds.length&&(B.multiSelectorThumbnailRow&&B.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:B,target:W.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:B,target:W.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.p.onIronOverlayClosed=function(W){var B=teQ(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");B&&W.composedPath&&(W.composedPath().includes(_.tH(this.hostElement).querySelector("#emoji-variant-selector"))||W.composedPath().includes(_.tH(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.c0(this.hostElement,"yt-close-emoji-variant-selector",[B.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.p.onEmojiVariantSelectorMouseup=function(W){var B=W.target.firstChild;this.variantSelectorOpened&&B&&_.WJ(function(){B.noCancelOnOutsideClick=!1},100)};
_.p.onEmojiVariantSelectorMousedown=function(W){W=W.target.firstChild;this.variantSelectorOpened&&W&&(W.noCancelOnOutsideClick=!1)};
_.p.onSelectCategory_=function(W){var B=this.search!="";this.search="";for(var z=_.tH(this.hostElement).querySelector("#categories").children,G=0;G<z.length;G++){var Y=z[G];if(Y.id==W.detail.categoryId){B?(_.tH(this.hostElement).querySelector("#categories").scrollTop=Y.offsetTop,this.updateButtons_()):(this.animationStart_=_.tH(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=Y.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.p.onEmojiHover_=function(W){this.placeholder=W.detail.shortcuts?W.detail.shortcuts[0]:""};
_.p.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.p.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.p.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.p.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.p.computeSearchCategory_=function(W){W=W.replace(bz7,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();W=W.split(" ");for(var B=[],z=this.emojiManager.emojis,G=0;G<z.length;G++){var Y=z[G];if(Y.searchTerms)for(var d=0;d<Y.searchTerms.length;d++){for(var E=Y.searchTerms[d].toLocaleLowerCase(),v=!1,c=0;c<W.length;c++)if(E.indexOf(W[c])!=-1){v=!0;break}if(v&&(!Y.isCustomEmoji||!Y.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(Y.emojiId))){B.push(Y.emojiId);
break}}}return{categoryId:-1,emojiIds:B}};
_.p.computeSearchEmptyMessage_=function(W,B){return W&&B&&B.emojiIds&&B.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.p.computeSearching_=function(W){return this.emojiManager&&W.replace(bz7,"").length>1};
_.p.computeSkinToneHidden=function(){var W;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((W=this.data)==null||!W.hideSkinTonePicker)};
_.p.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.p.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.p.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.p.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.p.selectSkinTone_=function(W){W=Number(W.target.getAttribute("tone"));this.set("emojiManager.skinTone",W);_.c0(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[W]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.p.skinToneChanged_=function(){_.tH(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var W=_.tH(this.hostElement).querySelector("#dropdown-content").children,B=0;B<W.length;B++)B===this.skinTone?W[B].setAttribute("selected",""):W[B].removeAttribute("selected")};
_.p.animateScroll_=function(W){this.lastAnimationTime_||(this.lastAnimationTime_=W);W-=this.lastAnimationTime_;W<200?(_.tH(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*W/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.tH(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.p.searchChanged_=function(){this.updateButtons_()};
_.p.updateButtons_=function(){var W=null;if(!this.search)for(var B=_.tH(this.hostElement).querySelector("#categories").scrollTop,z=_.tH(this.hostElement).querySelector("#categories").children,G=0;G<z.length;G++){var Y=z[G];Y.offsetTop<=B&&(W=Y.id)}B=_.tH(this.hostElement).querySelector("#category-buttons").children;for(z=0;z<B.length;z++)G=B[z],G.active=G.id===W};
uU.prototype.searchChanged_=uU.prototype.searchChanged_;uU.prototype.skinToneChanged_=uU.prototype.skinToneChanged_;uU.prototype.onEmojiHover_=uU.prototype.onEmojiHover_;uU.prototype.onSelectCategory_=uU.prototype.onSelectCategory_;uU.prototype.onShowEmojiVariantSelector=uU.prototype.onShowEmojiVariantSelector;uU.prototype.updateCategoriesAndPlaceholder_=uU.prototype.updateCategoriesAndPlaceholder_;uU.prototype.dataChanged=uU.prototype.dataChanged;
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],uU.prototype,"data",void 0);_.Q([_.F({value:function(){return[]}}),
_.y("design:type",Array)],uU.prototype,"categories",void 0);_.Q([_.F({value:function(){return[]}}),
_.y("design:type",Array)],uU.prototype,"categoryButtons",void 0);_.Q([_.F({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.y("design:type",Boolean)],uU.prototype,"disableScroll",void 0);_.Q([_.F({computed:"computeId_(data)",reflectToAttribute:!0}),_.y("design:type",String)],uU.prototype,"id",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],uU.prototype,"selected",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],uU.prototype,"disableIncrementalLoading",void 0);_.Q([_.F(),_.y("design:type",String)],uU.prototype,"placeholder",void 0);_.Q([_.F({value:""}),_.y("design:type",String)],uU.prototype,"search",void 0);_.Q([_.F({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.y("design:type",Boolean)],uU.prototype,"searching",void 0);_.Q([_.F({computed:"computeSearchCategory_(search)"}),_.y("design:type",Object)],uU.prototype,"searchCategory",void 0);
_.Q([_.F({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.y("design:type",Object)],uU.prototype,"searchEmptyMessage",void 0);_.Q([_.F({computed:"identity(emojiManager.skinTone)"}),_.y("design:type",Number)],uU.prototype,"skinTone",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],uU.prototype,"skinToneOpened",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],uU.prototype,"variantSelectorOpened",void 0);
_.Q([_.F({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.y("design:type",Boolean)],uU.prototype,"skinToneHidden",void 0);_.Q([_.F(),_.y("design:type",_.wN)],uU.prototype,"emojiManager",void 0);_.Q([_.F(),_.y("design:type",Object)],uU.prototype,"emojiVariantSelector",void 0);_.Q([_.F(),_.y("design:type",Object)],uU.prototype,"emojiMultiPersonSelector",void 0);
_.Q([_.F({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.y("design:type",Boolean)],uU.prototype,"shouldUseStickyPreferences",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uU.prototype,"dataChanged",null);_.Q([_.oN("data","selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uU.prototype,"updateCategoriesAndPlaceholder_",null);
_.Q([_.IN("yt-show-emoji-variant-selector"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],uU.prototype,"onShowEmojiVariantSelector",null);_.Q([_.IN("yt-emoji-picker-select-category"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],uU.prototype,"onSelectCategory_",null);_.Q([_.IN("yt-emoji-hover"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],uU.prototype,"onEmojiHover_",null);
_.Q([_.oN("skinTone"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uU.prototype,"skinToneChanged_",null);_.Q([_.oN("search"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uU.prototype,"searchChanged_",null);_.Q([_.NJ({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],uU);
_.D(uU,"yt-emoji-picker-renderer",function(){if(ooR===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;IdM===void 0&&(IdM=document.createElement("template"));var G=IdM;z.call(B,G.content.cloneNode(!0),W.content.firstChild);ooR=W}W=ooR;return W},{mode:2});var eS=function(){var W=_.S.apply(this,arguments)||this;W.emojiManager=_.gN;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.selectedIndex=1;W.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return W};
_.C(eS,_.S);_.p=eS.prototype;_.p.handleEmojiCustomizationVisible=function(W){this.emojiPickerRenderer.selected=W;this.selectedIndex=1;W?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.p.emojiCustomizationSetChanged=function(){var W;(W=this.data)!=null&&W.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.UX(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.p.updateSaveButtonState=function(W){var B;(B=this.data)!=null&&B.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.bj("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:W}))};
_.p.emojiUrl=function(W){W=_.VF(this.emojiManager,W);if(!W)return"";var B;W=(B=W.image)==null?void 0:B.thumbnails;return _.JY(W,24)||""};
_.p.emojiAlt=function(W){var B=_.VF(this.emojiManager,W);if(!B)return W;var z,G,Y,d=(B==null?void 0:(z=B.image)==null?void 0:(G=z.accessibility)==null?void 0:(Y=G.accessibilityData)==null?void 0:Y.label)||"";return d?d:B.isCustomEmoji?B.shortcuts[0]:B.emojiId||W};
_.p.emojiAriaLabel=function(W){var B,z;return((B=_.VF(this.emojiManager,W))==null?void 0:(z=B.shortcuts)==null?void 0:z[0])||W};
_.p.onEmojiClick=function(W){W.model.index!==0&&(this.selectedIndex=W.model.index)};
_.p.onEmojiSelect=function(W){W=W.detail;var B,z;((B=this.data)==null?0:B.emojiCustomizationSetEntityKey)&&((z=this.emojiCustomizationSet)==null?0:z.emojiId)&&W.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,W.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.bj("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,W.emojiId,this.selectedIndex)}))};
_.p.canEditEmoji=function(W,B,z){W=W.indexOf(B);return W===z||W===0||z===0?!1:!0};
_.p.getUpdatedEmojiIdList=function(W,B,z){var G=W.indexOf(B);W=[].concat(_.u7(W));G>=0&&(W[G]=W[z]);W[z]=B;return W};
_.G5.Object.defineProperties(eS,{template:{configurable:!0,enumerable:!0,get:function(){if(af7===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;MeR===void 0&&(MeR=document.createElement("template"));var G=MeR;z.call(B,G.content.cloneNode(!0),W.content.firstChild);af7=W}W=af7;return W}}});
eS.prototype.onEmojiSelect=eS.prototype.onEmojiSelect;_.Q([_.h(_.c7),_.y("design:type",Object)],eS.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],eS.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.Hf("yt-emoji-picker-renderer"),_.y("design:type",Object)],eS.prototype,"emojiPickerRenderer",void 0);
_.Q([_.F({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(W,B){return _.P3(W.entities,"emojiCustomizationSetEntity",B)},
observer:"emojiCustomizationSetChanged"}),_.y("design:type",Object)],eS.prototype,"emojiCustomizationSet",void 0);_.Q([_.F(),_.y("design:type",Object)],eS.prototype,"originalEmojiSet",void 0);_.Q([_.F(),_.y("design:type",_.wN)],eS.prototype,"emojiManager",void 0);_.Q([_.F(),_.y("design:type",Object)],eS.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],eS.prototype,"isDarkTheme",void 0);_.Q([_.F(),_.y("design:type",Object)],eS.prototype,"selectedIndex",void 0);
_.Q([_.IN("yt-emoji-select"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],eS.prototype,"onEmojiSelect",null);_.Q([_.NJ({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],eS);var fd6;var OzM;var X9R;var Kid;var mh=function(){var W=_.S.apply(this,arguments)||this;W.authorBadges=[];return W};
_.C(mh,_.S);_.p=mh.prototype;_.p.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.p.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]]"}}}}}};
_.p.dataChanged=function(){var W=DQ8(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",W)};
_.p.updateMessage=function(){var W=this.data.message,B=_.tH(_.tH(this.hostElement).querySelector("#message"));B.textContent="";W&&B.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.p.shouldSupportWholeItemClick=function(){return!0};
_.p.onShowOriginalClick=function(W){W.preventDefault();this.showOriginal=!0};
_.p.computeShowBar=function(W,B,z){return W&&B||z};
_.p.computeAuthorBadges=function(W){return W.authorBadges||[]};
_.p.computeAuthorIsOwner=function(W){return!!QhX(W.authorBadges,"owner")};
_.p.computeAuthorNameColor=function(W){var B;if(_.r("live_chat_author_name_color_usernames")&&(W==null?0:(B=W.authorName)==null?0:B.simpleText))return _.LUk(_.UQR(W.authorName.simpleText));if(_.r("live_chat_seed_color_usernames")&&(W==null?0:W.authorSeedColorArgb))return _.LUk(_.ra(W.authorSeedColorArgb));if(_.r("live_chat_colored_usernames"))return"#cc0000";var z;return _.r("live_chat_simple_color_usernames")&&(W==null?0:(z=W.authorName)==null?0:z.simpleText)&&(W==null?0:W.authorUsernameColorLight)&&
(W==null?0:W.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.ra(W.authorUsernameColorDark):_.ra(W.authorUsernameColorLight):""};
mh.prototype.updateMessage=mh.prototype.updateMessage;mh.prototype.dataChanged=mh.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],mh.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],mh.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],mh.prototype,"data",void 0);
_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],mh.prototype,"showOriginal",void 0);_.Q([_.F({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.y("design:type",Boolean)],mh.prototype,"isDimmed",void 0);_.Q([_.F({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.y("design:type",Boolean)],mh.prototype,"showBar",void 0);
_.Q([_.F({computed:"computeAuthorBadges(data)"}),_.y("design:type",Array)],mh.prototype,"authorBadges",void 0);_.Q([_.F({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],mh.prototype,"authorIsOwner",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],mh.prototype,"inCollapsedBanner",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],mh.prototype,"inBanner",void 0);
_.Q([_.F({value:_.r("live_chat_hide_avatars"),reflectToAttribute:!0}),_.y("design:type",Boolean)],mh.prototype,"avatarHidden",void 0);_.Q([_.F({computed:"computeAuthorNameColor(data)"}),_.y("design:type",String)],mh.prototype,"authorNameColor",void 0);_.Q([_.F(),_.y("design:type",_.rN)],mh.prototype,"participantsManager",void 0);_.Q([_.F({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.y("design:type",Object)],mh.prototype,"filledButtonOverrides",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mh.prototype,"dataChanged",null);_.Q([_.oN("data.message"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mh.prototype,"updateMessage",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],mh);
_.D(mh,"yt-live-chat-text-message-renderer",function(){if(Kid===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;X9R===void 0&&(X9R=document.createElement("template"));var G=X9R;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Kid=W}W=Kid;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var x1=function(){var W=_.S.apply(this,arguments)||this;W.tonalButtonOverrides={type:"tonal",style:"overlay"};return W};
_.C(x1,_.S);
x1.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]]"}}}}}};
x1.prototype.shouldSupportInlineActionButtons=function(){return!0};
x1.prototype.shouldSupportWholeItemClick=function(){return!0};
_.G5.Object.defineProperties(x1.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],x1.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],x1.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",_.rN)],x1.prototype,"participantsManager",void 0);
_.Q([_.F(),_.y("design:type",Object)],x1.prototype,"tonalButtonOverrides",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data.infoDialogButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],x1.prototype,"hasInfoDialogButton",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],x1);
_.D(x1,"yt-live-chat-auto-mod-message-renderer",function(){if(OzM===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;fd6===void 0&&(fd6=document.createElement("template"));var G=fd6;z.call(B,G.content.cloneNode(!0),W.content.firstChild);OzM=W}W=OzM;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var ukH;var ecd;var mvd;var xvR=function(){return _.S.apply(this,arguments)||this};
_.C(xvR,_.S);_.Q([_.F(),_.y("design:type",Object)],xvR.prototype,"data",void 0);_.Q([_.u({is:"ytd-factoid-renderer",disableElementRegistration:!0})],xvR);
_.D(xvR,"ytd-factoid-renderer",function(){if(mvd!==void 0)return mvd;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return mvd=W},{mode:1});var DV=function(){return _.S.apply(this,arguments)||this};
_.C(DV,_.S);DV.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.Q([_.F(),_.y("design:type",Object)],DV.prototype,"data",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],DV.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],DV);
_.D(DV,"yt-live-chat-channel-activity-reputation-renderer",function(){if(ecd===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;ukH===void 0&&(ukH=document.createElement("template"));var G=ukH;z.call(B,G.content.cloneNode(!0),W.content.firstChild);ecd=W}W=ecd;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var DvM;var QvM;var QF=function(){return _.S.apply(this,arguments)||this};
_.C(QF,_.S);QF.prototype.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Boolean)],QF.prototype,"menuFocused",void 0);_.Q([_.F(),_.y("design:type",Object)],QF.prototype,"data",void 0);_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],QF.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],QF);
_.D(QF,"yt-live-chat-donation-announcement-renderer",function(){if(QvM===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;DvM===void 0&&(DvM=document.createElement("template"));var G=DvM;z.call(B,G.content.cloneNode(!0),W.content.firstChild);QvM=W}W=QvM;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var yOQ;var q99,noU=function(){if(q99!==void 0)return q99;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;yOQ===void 0&&(yOQ=document.createElement("template"));var G=yOQ;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return q99=W};var yF=function(){return _.S.apply(this,arguments)||this};
_.C(yF,_.S);_.G5.Object.defineProperties(yF,{template:{configurable:!0,enumerable:!0,get:function(){return noU()}}});
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],yF.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],yF.prototype,"data",void 0);_.Q([_.NJ({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],yF);_.D(yF,"yt-live-chat-empty-feed-view-model",function(){return noU()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var NBH;var $v9;var qK=function(){return _.S.apply(this,arguments)||this};
_.C(qK,_.S);qK.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"}}}}}};
_.G5.Object.defineProperties(qK.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var W,B;return{runs:[{text:(W=this.data)==null?void 0:(B=W.channelName)==null?void 0:B.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var W=[],B;if((B=this.data)==null||!B.channelBadges)return W;var z;B=_.A((z=this.data)==null?void 0:z.channelBadges);for(z=B.next();!z.done;z=B.next()){z=_.k(z.value,f3F);var G=void 0,Y=void 0;if((G=z)==null?0:(Y=G.badgeImage)==null?0:Y.sources)G=void 0,Y={liveChatAuthorBadgeRenderer:{tooltip:z.tooltip,accessibility:{accessibilityData:{label:(G=_.k(z.rendererContext,_.FB))==null?void 0:G.label}}}},z.badgeImage.sources[0].clientResource?Y.liveChatAuthorBadgeRenderer.icon=
{iconType:z.badgeImage.sources[0].clientResource.imageName}:Y.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:z.badgeImage.sources},W.push(Y)}return W}}});
_.Q([_.F(),_.y("design:type",Object)],qK.prototype,"data",void 0);_.Q([_.H("data.channelName"),_.y("design:type",Object),_.y("design:paramtypes",[])],qK.prototype,"channelName",null);_.Q([_.H("data.channelBadges"),_.y("design:type",Array),_.y("design:paramtypes",[])],qK.prototype,"channelBadges",null);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],qK);
_.D(qK,"yt-live-chat-identity-view-model",function(){if($v9===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;NBH===void 0&&(NBH=document.createElement("template"));var G=NBH;z.call(B,G.content.cloneNode(!0),W.content.firstChild);$v9=W}W=$v9;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var LiR;var UvM;var MIR;var ad9;var nj=function(){var W=_.S.apply(this,arguments)||this;W.hidden=!1;W.supportsInlineActionButtons=!0;return W};
_.C(nj,_.S);nj.prototype.ready=function(){var W;((W=document.querySelector("yt-live-chat-app"))==null?0:W.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
nj.prototype.dataChanged=function(W){var B=(0,_.r5)(_.tH(this.hostElement).querySelector("#detail-text"));B.textContent="";(W==null?0:W.detailText)&&B.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W.detailText))};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],nj.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],nj.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F({observer:"dataChanged"}),_.y("design:type",Object)],nj.prototype,"data",void 0);
_.Q([_.F({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.y("design:type",Object)],nj.prototype,"hidden",void 0);_.Q([_.u({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],nj);
_.D(nj,"yt-live-chat-legacy-paid-message-renderer",function(){if(ad9===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;MIR===void 0&&(MIR=document.createElement("template"));var G=MIR;z.call(B,G.content.cloneNode(!0),W.content.firstChild);ad9=W}W=ad9;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var RcM;var We9;var BfM={},NK=function(){return _.SJ.apply(this,arguments)||this};
_.C(NK,_.SJ);NK.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
NK.prototype.onLiveChatMembershipItemBehaviorClick=NK.prototype.onLiveChatMembershipItemBehaviorClick;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],NK.prototype,"data",void 0);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],NK.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.Q([_.bP()],NK);
BfM.YtLiveChatMembershipItemBehavior=[NK.prototype,_.U.YtRendererBehavior];var $1=function(){var W=_.S.apply(this,arguments)||this;W.supportsInlineActionButtons=!0;W.hasPrimaryHeaderText=!1;W.showOnlyHeader=!1;W.authorBadges=[];W.modern=_.r("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.C($1,_.S);_.p=$1.prototype;_.p.shouldSupportInlineActionButtons=function(){return!0};
_.p.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.p.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.p.messageChanged=function(){var W=this.data.message,B=(0,_.r5)(_.tH(this.hostElement).querySelector("#message"));B.textContent="";W&&B.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.p.computeHasPrimaryHeaderText=function(W){return!(!W||!W.headerPrimaryText)};
_.p.computeShowOnlyHeader=function(W,B){return this.isMessageEmpty(W,B)};
_.p.computeAuthorBadges=function(W){return W.authorBadges||[]};
_.p.isMessageEmpty=function(W,B){return!W||W.empty?!0:!W.message&&!W.inputField&&!B};
_.p.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.p.getInputElement=function(){return _.tH(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.p.inputFocus=function(){var W=this.getInputElement();W&&W.focus()};
_.p.inputInsertEmoji=function(W){var B=this.getInputElement();B&&B.insertEmoji(W)};
_.p.inputMessage=function(){var W=this.getInputElement();return W&&this.data.inputField?(W.completeEmojis(),_.Uv(W.liveChatRichMessageInput)):null};
_.p.onFooterButtonClick=function(){this.data.footerButton&&_.v0(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.p.shouldSupportWholeItemClick=function(){return!0};
$1.prototype.isDeletedChanged=$1.prototype.isDeletedChanged;$1.prototype.messageChanged=$1.prototype.messageChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],$1.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.h(BfM.YtLiveChatMembershipItemBehavior),_.y("design:type",Object)],$1.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$1.prototype,"data",void 0);_.Q([_.F({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.y("design:type",Object)],$1.prototype,"hasPrimaryHeaderText",void 0);_.Q([_.F({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.y("design:type",Object)],$1.prototype,"showOnlyHeader",void 0);
_.Q([_.F({computed:"computeAuthorBadges(data)"}),_.y("design:type",Array)],$1.prototype,"authorBadges",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],$1.prototype,"modern",void 0);_.Q([_.oN("data.message"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$1.prototype,"messageChanged",null);_.Q([_.oN("isDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$1.prototype,"isDeletedChanged",null);
_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],$1);
_.D($1,"yt-live-chat-membership-item-renderer",function(){if(We9===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;RcM===void 0&&(RcM=document.createElement("template"));var G=RcM;z.call(B,G.content.cloneNode(!0),W.content.firstChild);We9=W}W=We9;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var zs9;var Gx7;var Lj=function(){return _.S.apply(this,arguments)||this};
_.C(Lj,_.S);Lj.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Lj.prototype,"data",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Lj);
_.D(Lj,"yt-live-chat-mode-change-message-renderer",function(){if(Gx7===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;zs9===void 0&&(zs9=document.createElement("template"));var G=zs9;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Gx7=W}W=Gx7;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var YI9;var dsd;var Us=function(){return _.S.apply(this,arguments)||this};
_.C(Us,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],Us.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Us.prototype,"data",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Us);
_.D(Us,"yt-live-chat-moderation-message-renderer",function(){if(dsd===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;YI9===void 0&&(YI9=document.createElement("template"));var G=YI9;z.call(B,G.content.cloneNode(!0),W.content.firstChild);dsd=W}W=dsd;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var pXU;var AQM;var MK=function(){var W=_.S.apply(this,arguments)||this;W.modern=_.r("web_button_rework");return W};
_.C(MK,_.S);MK.prototype.onClick=function(){var W;if((W=this.data)!=null&&W.onClickCommand){var B;_.IB.instance.resolveCommand((B=this.data)==null?void 0:B.onClickCommand)}};
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],MK.prototype,"modern",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.c7),_.y("design:type",Object)],MK.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],MK.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],MK.prototype,"data",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],MK);
_.D(MK,"yt-live-chat-offer-click-count-message-renderer",function(){if(AQM===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;pXU===void 0&&(pXU=document.createElement("template"));var G=pXU;z.call(B,G.content.cloneNode(!0),W.content.firstChild);AQM=W}W=AQM;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var i$4;var E7u=function(){return _.S.apply(this,arguments)||this};
_.C(E7u,_.S);_.Q([_.F(),_.y("design:type",Object)],E7u.prototype,"data",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],E7u);
_.D(E7u,"yt-live-chat-placeholder-item-renderer",function(){if(i$4===void 0){var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);i$4=W}W=i$4;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Tfu;var v7R;var cQH=new Wg(7),aY=function(){var W=_.S.apply(this,arguments)||this;W.data={};return W};
_.C(aY,_.S);aY.prototype.dataChanged=function(){var W;((W=this.data)==null?0:W.class)&&_.Pf(this.hostElement,this.data.class,!0);var B;((B=this.oldData)==null?0:B.class)&&_.Pf(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
aY.prototype.computeTimestampString=function(W){return cQH.format(new Date(W/1E3))};
aY.prototype.dataChanged=aY.prototype.dataChanged;_.Q([_.F(),_.y("design:type",Object)],aY.prototype,"data",void 0);_.Q([_.F({computed:"computeTimestampString(data.timestampUsec)"}),_.y("design:type",String)],aY.prototype,"timestampString",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aY.prototype,"dataChanged",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],aY);
_.D(aY,"yt-live-chat-server-error-message",function(){if(v7R===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Tfu===void 0&&(Tfu=document.createElement("template"));var G=Tfu;z.call(B,G.content.cloneNode(!0),W.content.firstChild);v7R=W}W=v7R;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var wXD;var Vi6;var RY=function(){var W=_.S.apply(this,arguments)||this;W.defaultToFilledIcon=!1;return W};
_.C(RY,_.S);RY.prototype.computeHasPrimaryColorIcon=function(W){return W==="SPARK"||W==="SPONSORSHIP_STAR"};
RY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],RY.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],RY.prototype,"defaultToFilledIcon",void 0);_.Q([_.F(),_.y("design:type",Object)],RY.prototype,"data",void 0);
_.Q([_.F({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.y("design:type",Boolean)],RY.prototype,"hasPrimaryColorIcon",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],RY);
_.D(RY,"yt-live-chat-viewer-engagement-message-renderer",function(){if(Vi6===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;wXD===void 0&&(wXD=document.createElement("template"));var G=wXD;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Vi6=W}W=Vi6;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var JQ9;var W$=function(){var W=_.S.apply(this,arguments)||this;W.modernUpdate=!1;W.buttonStyle="overlay";W.buttonType="filled";return W};
_.C(W$,_.S);W$.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
W$.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],W$.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],W$.prototype,"modernUpdate",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],W$.prototype,"buttonStyle",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],W$.prototype,"buttonType",void 0);
_.Q([_.u({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],W$);
_.D(W$,"ytd-ad-hover-text-button-renderer",function(){if(JQ9!==void 0)return JQ9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return JQ9=W},{mode:1});var g7R;var B$=function(){var W=_.S.apply(this,arguments)||this;W.buttonOverrides={size:"XS"};W.modern=_.r("web_button_rework");return W};
_.C(B$,_.S);B$.prototype.onHelpTap=function(W){this.data&&this.data.informationDialog&&(_.v0(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),W.preventDefault(),W.stopPropagation())};
_.Q([_.F(),_.y("design:type",Object)],B$.prototype,"buttonOverrides",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],B$.prototype,"modern",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],B$.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],B$);
_.D(B$,"ytd-live-chat-purchased-product-message-renderer",function(){if(g7R!==void 0)return g7R;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return g7R=W},{mode:1});var ti4;var sGM;var zB=function(){var W=_.S.apply(this,arguments)||this;W.isContainerDeleted=!1;return W};
_.C(zB,_.S);zB.prototype.onContextMenuClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
zB.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))};
zB.prototype.isContainerDeletedChanged=zB.prototype.isContainerDeletedChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],zB.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],zB.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],zB.prototype,"isContainerDeleted",void 0);
_.Q([_.F(),_.y("design:type",String)],zB.prototype,"deletedStateMessage",void 0);_.Q([_.oN("isContainerDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zB.prototype,"isContainerDeletedChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],zB);
_.D(zB,"ytd-sponsorships-live-chat-header-renderer",function(){if(sGM!==void 0)return sGM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return sGM=W},{mode:1});var GB=function(){var W=_.S.apply(this,arguments)||this;W.modern=_.r("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.C(GB,_.S);GB.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]]"}}}}}};
GB.prototype.onCtaButtonClick=function(){var W,B=_.k((W=this.data)==null?void 0:W.optInPrompt,_.Ep);if(W=this.maybeGetButtonCommand(B)){var z;(z=_.SK())==null||z.clickCommand(W)}};
GB.prototype.maybeGetButtonCommand=function(W){return!W||!W.command||_.k(W.command,wzU)===void 0&&_.k(W.command,c5Q)===void 0?null:W.command};
GB.prototype.shouldHideOptinPrompt=function(W,B){return!W||B};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],GB.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],GB.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],GB.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],GB.prototype,"modern",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],GB);
_.D(GB,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(ti4!==void 0)return ti4;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ti4=W},{mode:1});var PB4;var YI=function(){return _.S.apply(this,arguments)||this};
_.C(YI,_.S);YI.prototype.onContextMenuClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
YI.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))};
YI.prototype.isDeletedChanged=YI.prototype.isDeletedChanged;_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],YI.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],YI.prototype,"data",void 0);_.Q([_.oN("isDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YI.prototype,"isDeletedChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],YI);
_.D(YI,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(PB4!==void 0)return PB4;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return PB4=W},{mode:1});var de=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return W};
_.C(de,_.S);_.p=de.prototype;
_.p.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"}}}};
_.p.handleLiveChatAction=function(W){_.k(W,zdR)?this.handleMarkChatItemAsDeletedAction(_.k(W,zdR)):_.k(W,BId)&&this.handleRemoveChatItemAction(_.k(W,BId))};
_.p.handleLiveChatActions=function(W){W.forEach(this.handleLiveChatAction,this)};
_.p.handleMarkChatItemAsDeletedAction=function(W){var B=this,z;((z=this.data)==null?0:z.items)&&this.data.items.forEach(function(G,Y){var d=Object.keys(G)[0];Object.values(G)[0].id===W.targetItemId&&B.markAsDeleted("data.items",Y,d,W.deletedStateMessage,W.showOriginalContentMessage)})};
_.p.handleRemoveChatItemAction=function(W){var B=this,z;((z=this.data)==null?0:z.items)&&this.data.items.forEach(function(G,Y){Object.values(G)[0].id===W.targetItemId&&B.splice("data.items",Y,1)})};
_.p.markAsDeleted=function(W,B,z,G,Y){W=[W,B,z].join(".");this.set(W+".deletedStateMessage",G);this.set(W+".showOriginalContentMessage",Y)};
_.Q([_.F(),_.y("design:type",Object)],de.prototype,"data",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],de.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],de.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],de);
_.D(de,"yt-live-chat-item-display-list-renderer",function(){if(UvM===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;LiR===void 0&&(LiR=document.createElement("template"));var G=LiR;z.call(B,G.content.cloneNode(!0),W.content.firstChild);UvM=W}W=UvM;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Z$M;var rQR,kxH=function(){if(rQR!==void 0)return rQR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Z$M===void 0&&(Z$M=document.createElement("template"));var G=Z$M;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return rQR=W};var pW=function(){var W=_.S.apply(this,arguments)||this;W.isHeader=!1;return W};
_.C(pW,_.S);pW.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.G5.Object.defineProperties(pW,{template:{configurable:!0,enumerable:!0,get:function(){return kxH()}}});
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],pW.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],pW.prototype,"isHeader",void 0);_.Q([_.NJ({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],pW);_.D(pW,"yt-live-chat-item-display-renderer",function(){return kxH()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var lBU,CB4,FeR,H$H;
lBU={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}};CB4={home:"eohps",search:"eosps",watch:"eowps"};_.IBT=["watch","search","home"];
_.Aa=function(){this.JSC$14296_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14296_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.eD("PRECONSTRUCTION_DELAY",0);this.signals_=_.J5();this.targetPage_=""};
_.Aa.prototype.init=function(W,B){W=W===void 0?"":W;B=B===void 0?null:B;if(this.JSC$14296_isInitialized_)this.abort();else if(this.JSC$14296_isInitialized_=!0,W&&_.o7H(this,W),B){var z=_.gW(this.signals_,"pcl")?0:10,G=function(){for(var Y=0,d;d=_.IBT[Y++];)d!=W&&d!=B&&this.pendingPages_.push(d);_.hsF(this)}.bind(this);
this.signals_.parkOrScheduleJob(G,z,"pcl")}};
_.Aa.prototype.abort=function(){this.fragmentJobId_&&(_.fg.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);H$H(this)};
_.o7H=function(W,B){W.JSC$14296_isInitialized_&&!W.targetPage_&&(W.targetPage_=B,FeR(W,B),W.isInitialPass_=!1,FeR(W,B),W.signals_.processSignal(CB4[W.targetPage_]),H$H(W),_.hsF(W))};
_.hsF=function(W){W.pendingPages_.length&&!W.pagePreparerJobId_&&(W.pagePreparerJobId_=_.CG(_.fg,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.o7H(this,this.pendingPages_.shift())}.bind(W),W.DEFAULT_DELAY_))};
FeR=function(W,B){if(B=lBU[B])for(var z in B){var G=!1,Y=z;z.charAt(0)=="~"&&(G=!0,Y=z.substring(1));var d=B[z];d=typeof d=="object"?d:{count:d};B[z]=d;d.componentName=Y;d.count>0&&(W.isInitialPass_?G||W.isSeenDuringInitialPass_[Y]||(W.JSC$14296_queue_.push({componentName:Y,count:1,signals:d.signals}),W.isSeenDuringInitialPass_[Y]=!0,d.count--):W.JSC$14296_queue_.push(d))}};
H$H=function(W){W.JSC$14296_queue_.length=0;W.targetPage_="";W.isInitialPass_=!0;W.signals_.processSignal("eop")};
_.Aa.getInstance=function(){return _.Yn(_.Aa)};var SIQ=function(){this.signals=_.J5();this.init()};
SIQ.prototype.startPreconstruction=function(){_.Aa.getInstance().init(_.md("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
SIQ.prototype.init=function(){b$u(this);window.Polymer&&BqU&&fHT();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var W=_.Yt.ytcsi;if(W&&W.gt&&(W=W.gt())&&W.tick&&(W.tick.aft>0||W.tick.pbs>0)&&(_.md("IS_HOMEPAGE_COLD")||_.md("IS_RESULTS_PAGE_COLD")||_.md("IS_WATCH_PAGE_COLD"))){jGQ(this);break a}Hor(kkX,this.onNotifications,this)}};
var b$u=function(W){var B=function(){W.signals.processSignal("dl")};
document.readyState==="complete"?(_.nx(Error("yh"),"WARNING"),B()):_.Yvu(window,"load",B)};
SIQ.prototype.onNotifications=function(W){W.timer||(_.md("IS_HOMEPAGE_COLD")||_.md("IS_RESULTS_PAGE_COLD")||_.md("IS_WATCH_PAGE_COLD"))&&jGQ(this)};
var jGQ=function(W){W.signals.parkOrScheduleJob(function(){W.signals.processSignal("eocs")},10,"eor")};
new SIQ;var ih,fBR=function(){return _.SJ.apply(this,arguments)||this};
_.C(fBR,_.SJ);_.p=fBR.prototype;_.p.enableActiveViewMeasurement=function(W){if(this.isActiveViewEnabled(W)){var B=this.getUrlPrefixesFromCommand(W.viewableCommands);W=this.getUrlPrefixesFromCommand(W.endOfSessionCommands);if(!ih){var z=_.iO("custom_active_view_tos_timeout_ms");ih=z>0&&z!==36E5?new iPr(this.getVersion(),z):new iPr(this.getVersion())}TAv(ih,this.hostElement);v5R(ih,this.hostElement,B,W)}};
_.p.stopActiveViewMeasurement=function(){ih&&TAv(ih,this.hostElement)};
_.p.isActiveViewEnabled=function(W){return!!W&&(this.hasAtLeastOneUrl(W.viewableCommands)||this.hasAtLeastOneUrl(W.endOfSessionCommands))};
_.p.hasAtLeastOneUrl=function(W){return!!W&&W.length>0&&W[0].loggingUrls!=null&&W[0].loggingUrls.length>0};
_.p.getVersion=function(){var W=_.eD("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(W==null?void 0:W.length)===2?W[1]:null};
_.p.getUrlPrefixesFromCommand=function(W){if(!W)return[];var B=[];W=_.A(W);for(var z=W.next();!z.done;z=W.next())if(z=z.value,z.loggingUrls){z=_.A(z.loggingUrls);for(var G=z.next();!G.done;G=z.next())G=G.value,G.baseUrl&&B.push(G.baseUrl)}return B};
_.Q([_.bP()],fBR);var E7=[fBR.prototype];var O$T=function(){return _.SJ.apply(this,arguments)||this};
_.C(O$T,_.SJ);_.G5.Object.defineProperties(O$T.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_entity_store_from_dependency_injection")?_.p8():_.Y_()}}});
_.Q([_.bP()],O$T);_.TB=[d0.prototype,O$T.prototype];var XXH=["ytd-rich-shelf-renderer"],v$=function(){var W=_.SJ.apply(this,arguments)||this;W._noAccessors=!0;W.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";W.followUpDialogPromise=null;W.followUpDialogPromiseResolve=null;W.followUpDialogPromiseReject=null;return W};
_.C(v$,_.SJ);_.p=v$.prototype;_.p.dismissibleItemIsDismissedChanged_=function(W){_.r("kevlar_fluid_dismiss")&&(W?_.v0(this.hostElement,"yt-dismissible-item-dismissed"):_.v0(this.hostElement,"yt-dismissible-item-undismissed"))};
_.p.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.p.dismissibleItemReset_=function(){var W=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 _.Vx(function(B,z){W.followUpDialogPromiseResolve=B;W.followUpDialogPromiseReject=z});
_.v0(this.hostElement,"yt-enable-lockup-interaction")};
_.p.dismissibleItemOnYtServiceRequestSent_=function(W,B){B.actions&&this.dismissibleItemProcessActions(B.actions,W)};
_.p.dismissibleItemOnRequestSent=function(W){if(_.r("web_button_rework"))for(var B=_.A(W.detail),z=B.next();!z.done;z=B.next()){var G=void 0;(z=(G=_.k(z.value,_.P0))==null?void 0:G.actions)&&this.dismissibleItemProcessActions(z,W)}};
_.p.dismissibleItemOnCommandSent=function(W,B){B&&this.dismissibleItemProcessActions(B,W)};
_.p.setAndGetDismissedContentId=function(W){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+W};
_.p.replayDismissAction=function(W){this.dismissibleItemProcessActions([W])};
_.p.dismissibleItemProcessActions=function(W,B){for(var z=0;z<W.length;z++){var G=W[z],Y=void 0;((Y=_.k(G,_.tr))==null?0:Y.commands)&&this.dismissibleItemProcessActions(_.k(G,_.tr).commands,B);if(_.k(G,_.QA)){if(Y=_.k(G,_.QA),!Y.replaceParentSection||XXH.includes(this.hostElement.nodeName.toLowerCase()))Y.groupDismissal&&ViT(this,Y.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(Y),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.bj("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:G})),G=void 0,(G=B)==null||G.stopPropagation()}else if(_.k(G,BLQ))this.dismissibleItemHandleHideEnclosingAction_(),G=void 0,(G=B)==null||G.stopPropagation();else if(_.k(G,C_9))G=_.k(G,C_9),Y=void 0,((Y=G)==null?0:Y.targetGroupId)&&ViT(this,{targetGroupId:G.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.bj("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
G=void 0,(G=B)==null||G.stopPropagation();else if(_.k(G,_.P0))(G=_.k(G,_.P0).actions)&&_.Jr(this.hostElement,G,this.hostElement),G=void 0,(G=B)==null||G.stopPropagation();else{var d=Y=void 0;((Y=_.k(G,_.mE))==null?void 0:Y.signal)!=="TELL_US_WHY"||((d=_.k(G,_.mE))==null?0:d.targetId)&&_.r("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),G=void 0,(G=B)==null||G.stopPropagation())}}};
_.p.dismissibleItemOnYtServiceRequestCompleted_=function(W,B){var z=this.get("feedbackResponses.0.followUpDialog",B.data);z?this.followUpDialogPromiseResolve(z):B.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(B.actions,W)};
_.p.dismissibleItemHandleReplaceEnclosingAction_=function(W){this.dismissedRenderer=W.item;this.isDismissed=!0;var B=null;(B=_.tH(this.hostElement).querySelector("#dismissed"))&&_.BM(this,function(){_.UE(B)});
_.v0(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.p.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.p.dismissibleItemHandleUndoFeedbackAction_=function(){_.v0(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.p.dismissibleItemHandleTellUsWhySignalAction_=function(){var W=this;this.followUpDialogPromise.then(function(B){W.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:B}})})};
v$.prototype.dismissibleItemOnYtServiceRequestCompleted_=v$.prototype.dismissibleItemOnYtServiceRequestCompleted_;v$.prototype.dismissibleItemOnCommandSent=v$.prototype.dismissibleItemOnCommandSent;v$.prototype.dismissibleItemOnRequestSent=v$.prototype.dismissibleItemOnRequestSent;v$.prototype.dismissibleItemOnYtServiceRequestSent_=v$.prototype.dismissibleItemOnYtServiceRequestSent_;v$.prototype.dismissibleItemDataChanged_=v$.prototype.dismissibleItemDataChanged_;
v$.prototype.dismissibleItemIsDismissedChanged_=v$.prototype.dismissibleItemIsDismissedChanged_;_.Q([_.h(_.oY),_.y("design:type",Object)],v$.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],v$.prototype,"ytdReduxBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],v$.prototype,"isDismissed",void 0);_.Q([_.F(),_.y("design:type",Object)],v$.prototype,"dismissedRenderer",void 0);
_.Q([_.oN("isDismissed"),_.y("design:type",Function),_.y("design:paramtypes",[Boolean]),_.y("design:returntype")],v$.prototype,"dismissibleItemIsDismissedChanged_",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],v$.prototype,"dismissibleItemDataChanged_",null);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],v$.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.Q([_.IN("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],v$.prototype,"dismissibleItemOnRequestSent",null);
_.Q([_.IN("yt-dismissible-item-action"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Array]),_.y("design:returntype")],v$.prototype,"dismissibleItemOnCommandSent",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],v$.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.Q([_.bP()],v$);_.c$=[_.oY,_.TB,v$.prototype];var we=function(){var W=_.SJ.apply(this,arguments)||this;W.disableGridStateAware=!1;W.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};W.currentGridClass="";return W};
_.C(we,_.SJ);we.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.BM(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var W=this.gridStateAwareGetElement();_.Pf(W,"grid",!0)}};
we.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
we.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.tH(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
we.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var W="grid-disabled";else{W=_.IPM.getInstance();var B=this.get("pageSubtype");W=B&&kQF.includes(B)?"grid-disabled":W.currentSnapState_?W.currentSnapState_.className:null}(B=this.gridStateAwareGetElement())&&W!==this.currentGridClass&&(W&&_.Pf(B,W,!0),this.currentGridClass&&_.Pf(B,this.currentGridClass,!1),this.currentGridClass=W)};
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],we.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",String)],we.prototype,"gridStateAwareSizingElementSelector",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],we.prototype,"disableGridStateAware",void 0);_.Q([_.bP()],we);_.VO=[we.prototype,_.ye.YtActionHandlerBehavior];_.Ja=new _.t1("GUIDE_TOKEN");var ta;_.ge={};ta=function(){var W=_.SJ.apply(this,arguments)||this;W.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 W};
_.C(ta,_.SJ);_.p=ta.prototype;_.p.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.p.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var W=_.dO().resolve(_.Y8(_.Ja));W&&(this.guidePersistentAndVisible=W.getGuidePersistentAndVisible(),this.activeEndpoint=W.getActiveEndpoint(),this.guideOpened=W.getGuideOpened(),this.miniGuideVisible=W.getMiniGuideVisible())};
_.p.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.p.handleGuideStateAction=function(W){this.guidePersistentAndVisible=W};
_.p.handleMiniGuideStateAction=function(W){this.miniGuideVisible=W};
_.p.handleGuideOpenedAction=function(W){this.guideOpened=W};
_.p.handleActiveEndpointAction=function(W){this.activeEndpoint=W};
ta.prototype.onActiveEndpointChange=ta.prototype.onActiveEndpointChange;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],ta.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],ta.prototype,"guidePersistentAndVisible",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],ta.prototype,"miniGuideVisible",void 0);_.Q([_.F(),_.y("design:type",Object)],ta.prototype,"activeEndpoint",void 0);
_.Q([_.oN("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ta.prototype,"onActiveEndpointChange",null);_.Q([_.F(),_.y("design:type",Boolean)],ta.prototype,"guideOpened",void 0);_.Q([_.bP()],ta);_.ge.YtdGuideStateAwareBehavior=[];_.ge.YtdGuideStateAwareBehavior.push(ta.prototype,_.ye.YtActionHandlerBehavior);var Keu=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],s7=function(){var W=_.SJ.apply(this,arguments)||this;W.hoverJobId=0;W.JSC$14327_touched=!1;return W};
_.C(s7,_.SJ);_.p=s7.prototype;_.p.created=function(){this.useExpandableTooltip=!Keu.includes(this.is)};
_.p.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.p.detached=function(){this.useExpandableTooltip=!1};
_.p.lockupOnDown=function(W){this.interactionElement&&!_.p2(_.AH(W),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.p.lockupOnUp=function(W){this.interactionElement&&!_.p2(_.AH(W),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.p.onTouchStart=function(){this.JSC$14327_touched=!0};
_.p.lockupOnMouseEnter=function(){var W=this,B=_.iO("kevlar_lockup_hover_delay",-1);this.JSC$14327_touched&&B>=0?(_.fg.cancelJob(this.hoverJobId),this.hoverJobId=_.fg.addJob(function(){W.lockupIsHovered=!0},8,B),this.JSC$14327_touched=!1):this.lockupIsHovered=!0};
_.p.lockupOnMouseLeave=function(){this.hoverJobId&&(_.fg.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.p.lockupOnPopupClosed=function(W,B){var z;((z=B.popupRenderer)==null?void 0:z.is)==="ytd-menu-popup-renderer"&&(W=B.popupRenderer.veData,B=_.m1(),W&&B&&_.aP(B,[W]))};
_.p.lockupOnLockupRequested=function(W){var B=W.detail.videoIds[0],z;W.detail&&B===((z=this.data)==null?void 0:z.videoId)&&(W.detail.returnValue=[this.data])};
_.p.lockupOnYtServiceRequestSent=function(W,B){if(W=B.actions)for(var z=0;z<W.length;z++){var G=W[z];if(G.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&B.ajaxPromise){var Y=void 0,d=(Y=_.k(B.endpoint,_.pS))==null?void 0:Y.playlistId;Y=void 0;G=(Y=G.removedVideoId)!=null?Y:"";$UD(_.sr(),G,d)}else G.action==="ACTION_REMOVE_VIDEO"&&B.ajaxPromise&&(d=void 0,G=(d=G.setVideoId)!=null?d:"",_.LnT(_.sr(),G))}};
_.p.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.p.lockupOnLockupEnabled=function(){if(!this.$){var W=_.dO().resolve(_.ij).getCurrentPage(),B=this.getParentRenderer?this.getParentRenderer():void 0;_.Oc(new _.oX("component not ready",this.is,this.isAttached,W==null?void 0:W.is,B==null?void 0:B.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
s7.prototype.lockupOnLockupEnabled=s7.prototype.lockupOnLockupEnabled;s7.prototype.lockupOnLockupDisabled=s7.prototype.lockupOnLockupDisabled;s7.prototype.lockupOnYtServiceRequestSent=s7.prototype.lockupOnYtServiceRequestSent;s7.prototype.lockupOnLockupRequested=s7.prototype.lockupOnLockupRequested;s7.prototype.lockupOnPopupClosed=s7.prototype.lockupOnPopupClosed;s7.prototype.lockupOnMouseLeave=s7.prototype.lockupOnMouseLeave;s7.prototype.lockupOnMouseEnter=s7.prototype.lockupOnMouseEnter;
s7.prototype.onTouchStart=s7.prototype.onTouchStart;s7.prototype.lockupOnUp=s7.prototype.lockupOnUp;s7.prototype.lockupOnDown=s7.prototype.lockupOnDown;_.Q([_.F(),_.y("design:type",Object)],s7.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],s7.prototype,"lockupIsHovered",void 0);_.Q([_.F(),_.y("design:type",Boolean)],s7.prototype,"lockupTouchTriggered",void 0);_.Q([_.F(),_.y("design:type",Boolean)],s7.prototype,"useExpandableTooltip",void 0);
_.Q([_.Hf("#interaction"),_.y("design:type",Object)],s7.prototype,"interactionElement",void 0);_.Q([_.IN("down"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],s7.prototype,"lockupOnDown",null);_.Q([_.IN("up"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],s7.prototype,"lockupOnUp",null);
_.Q([_.IN("touchstart"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],s7.prototype,"onTouchStart",null);_.Q([_.IN("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],s7.prototype,"lockupOnMouseEnter",null);_.Q([_.IN("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],s7.prototype,"lockupOnMouseLeave",null);
_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],s7.prototype,"lockupOnPopupClosed",null);_.Q([_.IN("yt-lockup-requested"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],s7.prototype,"lockupOnLockupRequested",null);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],s7.prototype,"lockupOnYtServiceRequestSent",null);_.Q([_.IN("yt-disable-lockup-interaction"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],s7.prototype,"lockupOnLockupDisabled",null);
_.Q([_.IN("yt-enable-lockup-interaction"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],s7.prototype,"lockupOnLockupEnabled",null);_.Q([_.bP()],s7);_.P$=[s7.prototype];_.uoQ={YtdReduxBehavior:[]};_.uoQ.YtdReduxBehavior.push.apply(_.uoQ.YtdReduxBehavior,_.TB);var ZH=function(){var W=_.SJ.apply(this,arguments)||this;W._noAccessors=!0;W.disableNowPlaying=!1;W.disableTooltips=!1;W.useHoveredProperty=!1;W.hovered=!1;W.isThumbnailHovered_=!1;W.addBackground=_.r("kevlar_thumbnail_bg");W.nowPlaying=!1;W.disableRounding=!1;W.size="small";return W};
_.C(ZH,_.SJ);_.p=ZH.prototype;_.p.computeThumbnailOverlaySidePanelWidth_=function(W,B){return W-B};
_.p.computeSize=function(W,B){if(!this.disableRounding){if(!W&&!B)return"small";W=Math.max(W||0,B||0);return W>=256?"large":W>=96?"medium":"small"}};
_.p.computeFinalHoveredState_=function(W,B,z){return this.nowPlaying?!1:_.r("kevlar_thumbnail_fluid")&&W?B:z};
_.p.computeHoverOverlays_=function(W,B){return W&&B?B:void 0};
_.p.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.p.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.p.checkMiniplayer_=function(){var W;if(((W=this.data)==null?0:W.playlistSetVideoId)&&_.r("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{W=_.qG();var B=W.currentEndpoint;!this.disableNowPlaying&&B&&_.k(B,_.W0)&&this.data?(B=_.k(B,_.W0),this.nowPlaying=this.data.playlistId?B.playlistId===this.data.playlistId:B.videoId===this.data.videoId,this.isVideoPlaying=W==null?void 0:W.isVideoPlaying):this.nowPlaying=!1}};
ZH.prototype.checkMiniplayer_=ZH.prototype.checkMiniplayer_;ZH.prototype.onMouseLeave_=ZH.prototype.onMouseLeave_;ZH.prototype.onMouseEnter_=ZH.prototype.onMouseEnter_;ZH.prototype.computeHoverOverlays_=ZH.prototype.computeHoverOverlays_;ZH.prototype.computeFinalHoveredState_=ZH.prototype.computeFinalHoveredState_;ZH.prototype.computeSize=ZH.prototype.computeSize;ZH.prototype.computeThumbnailOverlaySidePanelWidth_=ZH.prototype.computeThumbnailOverlaySidePanelWidth_;
_.Q([_.h(_.TB),_.y("design:type",Object)],ZH.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ZH.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Number)],ZH.prototype,"height",void 0);_.Q([_.F(),_.y("design:type",Boolean)],ZH.prototype,"bottomSidePanel",void 0);_.Q([_.F(),_.y("design:type",Number)],ZH.prototype,"width",void 0);_.Q([_.F(),_.y("design:type",Object)],ZH.prototype,"disableNowPlaying",void 0);
_.Q([_.F({selector:_.xO}),_.y("design:type",Boolean)],ZH.prototype,"miniplayerIsActive",void 0);_.Q([_.F(),_.y("design:type",Object)],ZH.prototype,"disableTooltips",void 0);_.Q([_.F(),_.y("design:type",Object)],ZH.prototype,"useHoveredProperty",void 0);_.Q([_.F(),_.y("design:type",Object)],ZH.prototype,"hovered",void 0);_.Q([_.F(),_.y("design:type",Object)],ZH.prototype,"isThumbnailHovered_",void 0);
_.Q([_.F({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.y("design:type",Boolean)],ZH.prototype,"finalHoveredState_",void 0);_.Q([_.F({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.y("design:type",Number)],ZH.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],ZH.prototype,"addBackground",void 0);
_.Q([_.F({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.y("design:type",Object)],ZH.prototype,"hoverOverlays_",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],ZH.prototype,"nowPlaying",void 0);_.Q([_.F(),_.y("design:type",Boolean)],ZH.prototype,"isVideoPlaying",void 0);_.Q([_.F(),_.y("design:type",Object)],ZH.prototype,"disableRounding",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.y("design:type",Object)],ZH.prototype,"size",void 0);_.Q([_.IN("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZH.prototype,"onMouseEnter_",null);_.Q([_.IN("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZH.prototype,"onMouseLeave_",null);
_.Q([_.oN("data","disableNowPlaying","miniplayerIsActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZH.prototype,"checkMiniplayer_",null);_.Q([_.bP()],ZH);var esd=[ZH.prototype];_.re={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(W,B){return W+":"+_.Lu(B)},
getPlayerListener_:function(W,B,z){W=this.getPlayerListenerKey_(W,B);B=this.playerListeners_.get(W);z&&this.playerListeners_.delete(W);return B},
savePlayerListener_:function(W,B){var z=B.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(W,B),z);return z},
listenToPlayerEvent:function(W,B,z){z=this.savePlayerListener_(B,z);W.addEventListener(B,z)},
listenToPlayerEvents:function(W,B){B.forEach(function(z,G){this.listenToPlayerEvent(W,G,z)}.bind(this))},
unlistenFromPlayerEvent:function(W,B,z){z=this.getPlayerListener_(B,z,!0);W.removeEventListener(B,z)},
unlistenFromPlayerEvents:function(W,B){B.forEach(function(z,G){this.unlistenFromPlayerEvent(W,G,z)}.bind(this))}}};
_.kI=function(){};_.msQ=new _.t1("PLAYER_API_TOKEN");var sG0=!1,kx2,Z$0=!1,CBr;var wu=function(W,B,z,G,Y){_.bA.call(this);var d=this;this.playerId=B;this.webPlayerContextConfig=G;this.qze=Y;this.hAH=!1;this.api={};this.gAX=this.tOi=null;this.tNs=new _.PS;this.yD={};this.qtC=this.odi=this.elementId=this.iKO=this.config=null;this.hIX=!1;this.pD=this.yVC=null;this.w9s={};this.s8F=["onReady"];this.lastError=null;this.c5U=NaN;this.zlq={};this.gFW=0;this.wy=this.targetElement=W;_.rH(this,this.tNs);xsH(this);z?this.gFW=setTimeout(function(){d.loadNewVideoConfig(z)},0):G&&(Dsd(this),
QGQ(this))};
_.C(wu,_.bA);wu.prototype.getId=function(){return this.playerId};
wu.prototype.loadNewVideoConfig=function(W){if(!this.isDisposed()){this.gFW&&(clearTimeout(this.gFW),this.gFW=0);var B=W||{};B instanceof zMM||(B=new zMM(B));this.config=B;this.setConfig(W);QGQ(this);this.isReady()&&yQ9(this)}};
var Dsd=function(W){var B;W.webPlayerContextConfig?B=W.webPlayerContextConfig.rootElementId:B=W.config.attrs.id;W.elementId=B||W.elementId;W.elementId==="video-player"&&(W.elementId=W.playerId,W.webPlayerContextConfig?W.webPlayerContextConfig.rootElementId=W.playerId:W.config.attrs.id=W.playerId);var z;((z=W.wy)==null?void 0:z.id)===W.elementId&&(W.elementId+="-player",W.webPlayerContextConfig?W.webPlayerContextConfig.rootElementId=W.elementId:W.config.attrs.id=W.elementId)};
wu.prototype.setConfig=function(W){this.iKO=W;this.config=qIF(W);Dsd(this);if(!this.odi){var B;this.odi=n74(this,((B=this.config.args)==null?void 0:B.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var z;if((z=this.config)==null?0:z.attrs)W=this.config.attrs,(B=W.width)&&this.wy&&(this.wy.style.width=MD(Number(B)||B,!0)),(W=W.height)&&this.wy&&(this.wy.style.height=MD(Number(W)||W,!0))};
var yQ9=function(W){if(W.config&&W.config.loaded!==!0)if(W.config.loaded=!0,!W.config.args||W.config.args.autoplay!=="0"&&W.config.args.autoplay!==0&&W.config.args.autoplay!==!1){var B;W.api.loadVideoByPlayerVars((B=W.config.args)!=null?B:null)}else W.api.cueVideoByPlayerVars(W.config.args)},$su=function(W){var B=!0,z=W.getPlayerElement();
z&&W.config&&(B=z.dataset.version===NfM(W));return B&&!!_.q6("yt.player.Application.create")},QGQ=function(W){if(!W.isDisposed()&&!W.hIX){var B=$su(W);
if(B&&(W.getPlayerElement()?"html5":null)==="html5")W.qtC="html5",W.isReady()||LeR(W);else if(Us4(W),W.qtC="html5",B&&W.pD&&W.targetElement)W.targetElement.appendChild(W.pD),LeR(W);else{W.config&&(W.config.loaded=!0);var z=!1;W.yVC=function(){z=!0;var G=MiT(W,"player_bootstrap_method")?_.q6("yt.player.Application.createAlternate")||_.q6("yt.player.Application.create"):_.q6("yt.player.Application.create");var Y=W.config?qIF(W.config):void 0;G&&G(W.targetElement,Y,W.webPlayerContextConfig,W.qze);LeR(W)};
W.hIX=!0;B?W.yVC():(_.NO(NfM(W),W.yVC),(B=aB4(W))&&Qx8(B||""),RsR(W)&&!z&&_.BV("yt.player.Application.create",null))}}};
wu.prototype.getPlayerElement=function(){var W=_.cA(document,this.elementId);!W&&this.wy&&this.wy.querySelector&&(W=this.wy.querySelector("#"+this.elementId));return W};
var LeR=function(W){if(!W.isDisposed()){var B=W.getPlayerElement(),z=!1;B&&B.getApiInterface&&B.getApiInterface()&&(z=!0);if(z){W.hIX=!1;if(!MiT(W,"html5_remove_not_servable_check_killswitch")){var G;if((B==null?0:B.isNotServable)&&W.config&&(B==null?0:B.isNotServable((G=W.config.args)==null?void 0:G.video_id)))return}W2F(W)}else W.c5U=setTimeout(function(){LeR(W)},50)}},W2F=function(W){xsH(W);
W.hAH=!0;var B=W.getPlayerElement();if(B){W.tOi=BF7(W,B,"addEventListener");W.gAX=BF7(W,B,"removeEventListener");var z=B.getApiInterface();z=z.concat(B.getInternalApiInterface());for(var G=W.api,Y=0;Y<z.length;Y++){var d=z[Y];G[d]||(G[d]=BF7(W,B,d))}}for(var E in W.yD)W.yD.hasOwnProperty(E)&&W.tOi&&W.tOi(E,W.yD[E]);yQ9(W);W.odi&&W.odi(W.api);W.tNs.publish("onReady",W.api)},BF7=function(W,B,z){var G=B[z];
return function(){var Y=_.nm.apply(0,arguments);try{return W.lastError=null,G.apply(B,Y)}catch(d){if(z!=="sendAbandonmentPing")throw d.params=z,W.lastError=d,Y=new _.oX("PlayerProxy error in method call",{error:d,method:z,playerId:W.playerId}),Y.level="WARNING",Y;}}},xsH=function(W){W.hAH=!1;
if(W.gAX)for(var B in W.yD)W.yD.hasOwnProperty(B)&&W.gAX(B,W.yD[B]);for(var z in W.zlq)W.zlq.hasOwnProperty(z)&&clearTimeout(Number(z));W.zlq={};W.tOi=null;W.gAX=null;B=W.api;for(var G in B)B.hasOwnProperty(G)&&(B[G]=null);B.addEventListener=function(Y,d){W.addEventListener(Y,d)};
B.removeEventListener=function(Y,d){W.removeEventListener(Y,d)};
B.destroy=function(){W.dispose()};
B.getLastError=function(){return W.getLastError()};
B.getPlayerType=function(){return W.getPlayerType()};
B.getCurrentVideoConfig=function(){return W.iKO};
B.loadNewVideoConfig=function(Y){W.loadNewVideoConfig(Y)};
B.isReady=function(){return W.isReady()}};
wu.prototype.isReady=function(){return this.hAH};
wu.prototype.addEventListener=function(W,B){var z=this;this.isDisposed();var G=n74(this,B);G&&(_.xt(this.s8F,W)||this.yD[W]||(B=zXH(this,W),this.tOi&&this.tOi(W,B)),this.tNs.subscribe(W,G),W==="onReady"&&this.isReady()&&setTimeout(function(){G(z.api)},0))};
wu.prototype.removeEventListener=function(W,B){this.isDisposed()||(B=n74(this,B))&&this.tNs.unsubscribe(W,B)};
var n74=function(W,B){var z=B;if(typeof B==="string"){if(W.w9s[B])return W.w9s[B];z=function(){var G=_.nm.apply(0,arguments),Y=_.q6(B);if(Y)try{Y.apply(_.Yt,G)}catch(d){throw G=new _.oX("PlayerProxy error when executing callback",{error:d}),G.level="ERROR",G;}};
W.w9s[B]=z}return z?z:null},zXH=function(W,B){var z=function(G){var Y=function(){W.isDisposed();
if(!W.isDisposed())try{W.tNs.publish(B,G!=null?G:void 0)}catch(v){var E=new _.oX("PlayerProxy error when creating global callback",{error:v.message,event:B,playerId:W.playerId,data:G,originalStack:v.stack,componentStack:v.componentStack});E.level="WARNING";throw E;}};
if(MiT(W,"web_player_publish_events_immediately"))Y();else{var d=setTimeout(function(){Y();_.mP.remove(W.zlq,String(d))},0);
_.mP.add(W.zlq,String(d),!0)}};
return W.yD[B]=z};
wu.prototype.getPlayerType=function(){return this.qtC||(this.getPlayerElement()?"html5":null)};
wu.prototype.getLastError=function(){return this.lastError};
var Us4=function(W){W.cancel();xsH(W);W.qtC=null;W.config&&(W.config.loaded=!1);var B=W.getPlayerElement();B&&($su(W)||!RsR(W)?W.pD=B:(B&&B.destroy&&B.destroy(),W.pD=null));W.targetElement&&_.yG(W.targetElement)};
wu.prototype.cancel=function(){this.yVC&&_.tY0(NfM(this),this.yVC);clearTimeout(this.c5U);this.hIX=!1};
wu.prototype.disposeInternal=function(){Us4(this);if(this.pD&&this.config&&this.pD.destroy)try{this.pD.destroy()}catch(B){var W=new _.oX("PlayerProxy error during disposal",{error:B});W.level="ERROR";throw W;}this.w9s=null;for(W in this.yD)this.yD.hasOwnProperty(W)&&delete this.yD[W];this.iKO=this.config=this.api=null;delete this.targetElement;delete this.wy;_.bA.prototype.disposeInternal.call(this)};
var RsR=function(W){var B,z;W=(B=W.config)==null?void 0:(z=B.args)==null?void 0:z.fflags;return!!W&&W.indexOf("player_destroy_old_version=true")!==-1},NfM=function(W){return W.webPlayerContextConfig?W.webPlayerContextConfig.jsUrl:(W=W.config.assets)?W.js:""},aB4=function(W){return W.webPlayerContextConfig?W.webPlayerContextConfig.cssUrl:(W=W.config.assets)?W.css:""},MiT=function(W,B){if(W.webPlayerContextConfig)var z=W.webPlayerContextConfig.serializedExperimentFlags;
else{var G;if((G=W.config)==null?0:G.args)z=W.config.args.fflags}return(z||"").split("&").includes(B+"=true")},qIF=function(W){for(var B={},z=_.A(Object.keys(W)),G=z.next();!G.done;G=z.next()){G=G.value;
var Y=W[G];B[G]=typeof Y==="object"?_.mP.clone(Y):Y}return B};var Fex={},H$2="player_uid_"+(Math.random()*1E9>>>0);var lh=function(W,B,z,G,Y,d){B=B===void 0?document.createElement("div"):B;this.webPlayerContextConfig=W;this.container=B;this.commandResolver=z;this.apiResolver=jGy();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.sl;G||d?G8H(this):Yqd(this);this.pendingPlayerResponse=G;this.pendingWatchNextResponse=Y;this.pendingPlayerVars=d;dCu(this)};
lh.prototype.loadVideoWithPlayerResponse=function(W,B,z){this.loadVideo(W,B,z)};
lh.prototype.loadVideoWithPlayerVars=function(W){return this.loadVideo(void 0,void 0,W)};
lh.prototype.destroy=function(W){if(W=_.cA(document,W))W=H$2+"_"+_.Lu(W),(W=Fex[W])&&W.dispose()};
var Ab4=function(W,B){var z;_.T(function(G){if(G.nextAddress==1)return W.pendingWatchNextResponse=B,W.synchronousApi?(z=W.synchronousApi,G.jumpTo(2)):G.yield(W.api,3);G.nextAddress!=2&&(z=G.yieldResult);if(!pWD(W,z))return G.return();W.pendingWatchNextResponse&&(z.updateVideoData({raw_watch_next_response:W.pendingWatchNextResponse}),W.pendingWatchNextResponse=void 0);_.HG(G)})},pWD=function(W,B){var z;
if(!(B==null?0:(z=B.isReady)==null?0:z.call(B))){var G;_.Oc(new _.oX("playerApi is falsey",{synchronousApi:W.synchronousApi,apiResolved:W.apiResolver.resolved,playerApiUndefined:B===void 0,playerApiNull:B===null,playerApiReady:(B==null?void 0:(G=B.isReady)==null?void 0:G.call(B))===!0,playerApiMethods:B?Object.keys(B):[]}));return!1}return!0},iFR=function(W,B){if(typeof W[B]==="function")return W[B]()},EfF=function(W){var B=window,z,G=(z=B.ytplayer)==null?void 0:z.bootstrapPlayerContainer;
if((z=G==null?void 0:G.firstElementChild)&&_.Yc(z,"html5-video-player")){var Y,d,E=(Y=B.ytplayer)==null?void 0:(d=Y.bootstrapWebPlayerContextConfig)==null?void 0:d.contextId;Y=W.webPlayerContextConfig.contextId;if(E&&E===Y){G!==W.container&&(G=!1,iFR(z,"getPlayerState")===2&&(G=!0),W.container.appendChild(z),G||iFR(z,"playVideo"));var v;if((v=B.ytplayer)==null?0:v.bootstrapPlayerResponse)W.bootstrapPlayerResponse=B.ytplayer.bootstrapPlayerResponse}}},dCu=function(W){var B,z,G,Y,d;
_.T(function(E){if(E.nextAddress==1)return W.pageReadyOrDataAvailable?E.jumpTo(2):E.yield(W.pageReadyOrDataAvailableResolver.promise,2);if(E.nextAddress!=4)return!_.r("kevlar_player_unified_player_loading")||PBr()&&rQQ()?E.jumpTo(4):E.yield(o72(),4);EfF(W);if(W.pendingPlayerResponse||W.pendingPlayerVars)B=hsX(W.pendingPlayerResponse,W.pendingWatchNextResponse,W.pendingPlayerVars),W.pendingPlayerResponse&&W.pendingPlayerResponse===W.bootstrapPlayerResponse&&(B.loaded=!0),W.bootstrapPlayerResponse=
void 0;z=b$D(W.container,B,W.webPlayerContextConfig);((G=B)==null?0:G.loaded)&&W.pendingWatchNextResponse?(Ab4(W,W.pendingWatchNextResponse),W.pendingPlayerResponse=void 0,W.pendingPlayerVars=void 0):TFU(W);Y=function(v){z.removeEventListener("onReady",Y);W.synchronousApi=v;W.apiResolver.resolve(v)};
z.addEventListener("onReady",Y);W.commandResolver!==void 0&&(d=W.commandResolver,z.addEventListener("innertubeCommand",function(v){d(v)}));
_.HG(E)})};
lh.prototype.loadVideo=function(W,B,z){var G=this,Y,d,E,v,c,J,g,t,P;return _.T(function(Z){if(Z.nextAddress==1)return G.pendingPlayerResponse=W,G.pendingWatchNextResponse=B,G.pendingPlayerVars=z,G8H(G),G.synchronousApi?(Y=G.synchronousApi,Z.jumpTo(2)):Z.yield(G.api,3);Z.nextAddress!=2&&(Y=Z.yieldResult);if(!pWD(G,Y))return Z.return(new Promise(function(){}));
E=new Promise(function(l){d=l});
v=function(){var l=Y.getPlayerResponse();l&&(Y.removeEventListener("onVideoDataChange",v),d(l))};
Y.addEventListener("onVideoDataChange",v);if(G.pendingPlayerResponse||G.pendingPlayerVars)G.pendingPlayerResponse&&G.pendingPlayerResponse===G.bootstrapPlayerResponse?(d(G.pendingPlayerResponse),G.pendingWatchNextResponse&&Ab4(G,G.pendingWatchNextResponse)):(c=hsX(G.pendingPlayerResponse,G.pendingWatchNextResponse,G.pendingPlayerVars),(P=(J=G.pendingPlayerResponse)==null?void 0:(g=J.playerConfig)==null?void 0:(t=g.playbackStartConfig)==null?void 0:t.startPaused)?Y.cueVideoByPlayerVars(c.args):Y.loadVideoByPlayerVars(c.args)),
TFU(G),G.bootstrapPlayerResponse=void 0;return Z.return(E)})};
var Yqd=function(W){if(document.readyState==="complete"||document.readyState==="interactive")G8H(W);else{var B=function(){document.removeEventListener("DOMContentLoaded",B);G8H(W)};
document.addEventListener("DOMContentLoaded",B)}},G8H=function(W){W.pageReadyOrDataAvailable=!0;
W.pageReadyOrDataAvailableResolver.resolve()},TFU=function(W){W.pendingPlayerResponse=void 0;
W.pendingWatchNextResponse=void 0;W.pendingPlayerVars=void 0};
_.G5.Object.defineProperties(lh.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var CW=function(W){a1.call(this,W===void 0?"document_active":W);var B=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(z){B.transition("document_disposed",{event:z})});
window.addEventListener("beforeunload",function(z){B.transition("document_disposed_preventable",{event:z})});
window.addEventListener("unload",function(z){B.transition("document_disposed",{event:z});B.hasRun=new Map})};
_.C(CW,a1);
CW.prototype.runPreventableDispose=function(W,B){if(!this.hasRun.get("document_disposed_preventable")){W(B==null?void 0:B.event);var z,G;if((B==null?0:(z=B.event)==null?0:z.defaultPrevented)||(B==null?0:(G=B.event)==null?0:G.returnValue)){B.event.returnValue||(B.event.returnValue=!0);B.event.defaultPrevented||B.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")};
CW.prototype.runDispose=function(W,B){this.hasRun.get("document_disposed")?this.transition("document_active"):(W(B==null?void 0:B.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
CW.prototype.runFlush=function(W,B){W(B==null?void 0:B.event);this.transition("document_active")};
CW.prototype.runActive=function(){};var Ip=function(W){a1.call(this,W===void 0?"document_visibility_unknown":W);var B=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(z){document.visibilityState==="visible"?B.transition("document_visible",{event:z}):B.transition("document_hidden",
{event:z})});
_.r("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(z){B.transition("document_backgrounded",{event:z})}),window.addEventListener("focus",function(z){B.transition("document_foregrounded",{event:z})}))};
_.C(Ip,a1);Ip.prototype.runVisible=function(W,B){W(B==null?void 0:B.event);_.r("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Ip.prototype.runHidden=function(W,B){W(B==null?void 0:B.event);_.r("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Ip.prototype.runBackgrounded=function(W,B){W(B==null?void 0:B.event)};
Ip.prototype.runForegrounded=function(W,B){W(B==null?void 0:B.event)};var op=function(){this.teardownLifecycle=new CW;this.visibilityLifecycle=new Ip};
op.prototype.install=function(){var W=_.nm.apply(0,arguments),B=this;W.forEach(function(z){B.teardownLifecycle.install(z)});
W.forEach(function(z){B.visibilityLifecycle.install(z)})};var ha=function(){op.call(this);var W={};this.install((W.document_disposed={callback:this.abortSlisAndFlush},W));_.r("combine_ve_grafts")&&(W={},this.install((W.document_disposed={callback:this.flushInteractionLoggingAttachVes},W)));W={};this.install((W.flush_logs={callback:this.logFinalPayload},W));_.r("web_log_cfg_cee_ks")||_.CG(_.fg,vf7)};
_.C(ha,op);var fBQ=function(){ha.loggingInstance||(ha.loggingInstance=new ha);return ha.loggingInstance};
ha.prototype.logFinalPayload=function(){if(_.r("web_fp_via_jspb")){var W=new F1F,B=_.m1();B&&_.f3(W,1,B);B=_.r("jspb_sparse_encoded_pivot")?new lp([{}]):new lp;_.hZ(B,380,ShR,W);A7x("finalPayload",B);_.r("web_fp_via_jspb_and_json")&&_.Sy("finalPayload",{csn:_.m1()})}else _.Sy("finalPayload",{csn:_.m1()})};
ha.prototype.abortSlisAndFlush=function(){xK9(tw);sp!=null&&sp.flush()};
ha.prototype.flushInteractionLoggingAttachVes=function(){pHU(_.SK())};
var vf7=function(){var W=_.eD("CLIENT_EXPERIMENT_EVENTS");if(W){var B=Lrv();W=_.A(W);for(var z=W.next();!z.done;z=W.next())z=z.value,B(z)&&_.Sy("genericClientExperimentEvent",{eventType:z});delete _.Xq.CLIENT_EXPERIMENT_EVENTS}};var cbQ={};
cbQ.YtPlayerBehavior=[_.re.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 W=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.sl;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;O$R(function(){W.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.mz(this,"pan-down"),_.r("kevlar_pinch_fullscreen")&&_.Rq().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.r("kevlar_pinch_fullscreen")&&_.Rq().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(W,B,z){var G=this;Vi(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Vi(!1,"MainAppPlayer already created.");else{var Y=_.r("kevlar_player_container_query_killswitch")?this.$.container:_.tH(this.hostElement).querySelector("#container");this.mainAppPlayer_=new lh(this.getWebPlayerContextConfig_(),Y,function(d){return _.oB(d,G.hostElement)},W,B,z);
this.mainAppPlayer_.api.then(function(d){G.player_=d;G.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&ATQ.resolve(d)})}},
loadVideoWithPlayerResponse:function(W,B){var z=this;if(this.useUnifiedPlayer_()){var G=this.watchNextData,Y,d=(Y=W.videoDetails)==null?void 0:Y.videoId,E,v,c;(Y=(E=this.watchNextData)==null?void 0:(v=E.currentVideoEndpoint)==null?void 0:(c=v.watchEndpoint)==null?void 0:c.videoId)&&d!=Y&&(G=void 0,_.r("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(W,G,B):this.createMainAppPlayer_(W,G,B);this.mainAppPlayer_.api.then(function(){_.v0(z.hostElement,
"yt-player-updated")})}else this.update(JQv(W,B))},
loadVideoWithPlayerVars:function(W){var B=this;this.useUnifiedPlayer_()?(_.r("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(W):this.createMainAppPlayer_(void 0,void 0,W),this.mainAppPlayer_.api.then(function(){_.v0(B.hostElement,"yt-player-updated")})):this.update({args:W})},
update:function(W){var B=this;if(this.useUnifiedPlayer_())Vi(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(W);var z=oy2(W.args);z&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==z&&Object.assign(W.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(W).then(function(G){_.v0(B.hostElement,"yt-player-updated",_.r("kevlar_player_updated_obsolete_player_killswitch")?
G:void 0)})}_.fG(new _.oX("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(B.getPlayerPromise(),2);z=G.yieldResult;if(!z)throw Error("Ah");W&&B.updatePlayerPlaylist_(W);_.HG(G)})},
acquireApi_:function(W){var B=this;if(this.useUnifiedPlayer_())Vi(!1,"Invalid method call in kevlar_unified_player.");else return _.fg.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Vi(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(z){B.shouldAutoplay_(W)?z.loadVideoByPlayerVars(W.args):z.cueVideoByPlayerVars(W.args)})):this.initPlayerPromise_=this.initPlayerContainer_(W),this.initPlayerPromise_},
initPlayerContainer_:function(W){var B=this;if(this.useUnifiedPlayer_())Vi(!1,"Invalid method call in kevlar_unified_player.");else return Vi(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Oc(Error("Bh")),Vi(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.r("kevlar_player_container_query_killswitch")?this.$.container:_.tH(this.hostElement).querySelector("#container"),o72().then(function(){var z=B.initPlayer_(W);B.playerResolver_.resolve(z);
return z})},
onPlayerReady_:function(W,B){this.useUnifiedPlayer_()?Vi(!1,"Invalid method call in kevlar_unified_player."):(W.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&ATQ.resolve(W),B(W))},
maybeCallApiMethodOnElement_:function(W,B){if(typeof W[B]==="function")return W[B]()},
maybeAdoptBootstrapPlayer_:function(){var W=window,B,z=(B=W.ytplayer)==null?void 0:B.bootstrapPlayerContainer;if((B=z==null?void 0:z.firstElementChild)&&B.classList.contains("html5-video-player")){var G,Y,d=(G=W.ytplayer)==null?void 0:(Y=G.bootstrapWebPlayerContextConfig)==null?void 0:Y.contextId;G=this.getWebPlayerContextConfig_().contextId;if(d&&d===G){z!==this.playerContainer_&&(z=!1,this.maybeCallApiMethodOnElement_(B,"getPlayerState")===2&&(z=!0),this.playerContainer_.appendChild(B),z||this.maybeCallApiMethodOnElement_(B,
"playVideo"));var E;if((E=W.ytplayer)==null?0:E.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=W.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(W){var B=this;if(this.useUnifiedPlayer_())Vi(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(z){B.maybeAdoptBootstrapPlayer_();var G=W?g7x(W):void 0;G&&G==B.bootstrapPlayerResponse_&&(W.loaded=!0);G=B.playerContainer_;var Y=B.getWebPlayerContextConfig_();G=b$D(G,W,Y);B.player_=G;B.onPlayerReadyEvent_=B.onPlayerReady_.bind(B,B.player_,z);B.player_.addEventListener("onReady",B.onPlayerReadyEvent_);B.player_.addEventListener("innertubeCommand",
B.onPlayerInnerTubeCommand_.bind(B))})},
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(W){W.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(W){W.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var W=_.dO().resolve(_.ij).getCurrentPage();W&&W.getScrollTop()<=0?_.mz(this,"pan-down"):_.mz(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(W){W.isFullscreen()||W.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(W){W.isFullscreen()&&W.toggleFullscreen()})},
updatePlayerPlaylist_:function(W){var B=this,z,G,Y;return _.T(function(d){if(d.nextAddress==1)return z=_.dO().resolve(_.Y8(_.wW)),G=!!(z&&z.playlistComponent&&z.playlistComponent.loopOn),d.yield(B.getPlayerPromise(),2);var E=Y=d.yieldResult,v=E.updatePlaylist,c=[];if(_.r("kevlar_player_playlist_use_local_index")){var J,g;var t=(g=(J=W.localCurrentIndex)!=null?J:W.currentIndex)!=null?g:0}else{var P;t=(P=W.currentIndex)!=null?P:0}if(W.contents)for(J=0;J<W.contents.length;J++)if((g=W.contents[J])&&g.playlistPanelVideoRenderer)if(lVX(g)){g=
g.playlistPanelVideoRenderer;P="";g.shortBylineText&&(P=_.zR(g.shortBylineText));var Z="";g.title?Z=_.zR(g.title):g.unplayableText&&(Z=_.zR(g.unplayableText));c.push({author:P,title:Z,encrypted_id:g.videoId})}else J<t&&--t;v.call(E,{index:t,list:W.playlistId?W.playlistId:"",loop:G,playlist_title:W.title,playlist_length:c.length,video:c,fetch:0,external_list:"1",title:W.title?W.title:"",playlist_author:W.ownerName?_.zR(W.ownerName):void 0});_.HG(d)})},
focusOnPlayer:function(){_.BM(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var W=this.playerContainer_.querySelector(".html5-video-player");W&&(_.H$(_.dO().resolve(_.jX)),W.focus())}})},
preparePlayer:function(){var W=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(B){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")B();else{var z=function(){document.removeEventListener("DOMContentLoaded",z);B()};
document.addEventListener("DOMContentLoaded",z)}})).then(function(){return o72()}).then(function(){W.initPlayerPromise_||W.preparePlayerJobId_||(W.preparePlayerJobId_=_.CG(_.fg,function(){W.initPlayerPromise_||(W.initPlayerPromise_=W.initPlayerContainer_())}))}):_.fG(new _.oX("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(W){this.useUnifiedPlayer_()?Vi(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(W)||(W.args.autoplay="0")},
shouldAutoplay_:function(W){if(this.useUnifiedPlayer_())Vi(!1,"Invalid method call in kevlar_unified_player.");else{var B=this.get("args.el",W);return B&&B!="detailpage"&&this.isMiniplayerActive_()||B&&(B=="sponsorshipsoffer"||B=="handlesclaiming")&&this.get("args.autoplay",W)=="0"?!1:(W=g7x(W))&&this.get("playerConfig.playbackStartConfig.startPaused",W)?!1:!0}},
isMiniplayerActive_:function(){return _.dO().resolve(_.Qb).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var W=this.getPlayer();if(W){var B=W.getPlayerState();_.r("kevlar_player_check_ad_state_on_stop")&&(B=W.getPlayerState(W.getPresentingPlayerType()));B!=5&&W.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(W,B,z){z=z===void 0?!1:z;var G=this,Y,d,E,v;return _.T(function(c){if(c.nextAddress==1)return B||(B=G.hostElement),Y=G.useUnifiedPlayer_()?!!G.mainAppPlayer_:!!G.initPlayerPromise_,Y?c.yield(G.getPlayerPromise(),2):(z?W.insertBefore(B,W.firstChild):W.appendChild(B),c.return());d=c.yieldResult;E=d.getPlayerState(d.getPresentingPlayerType());v=!1;if(E==-1||E==1||E==3)v=!0;z?W.insertBefore(B,W.firstChild):W.appendChild(B);v&&d.playVideo();d.setSize(NaN,NaN);_.HG(c)})},
watchNextDataChanged_:function(W){var B=this;W&&(this.useUnifiedPlayer_()&&_.r("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Ab4(this.mainAppPlayer_,W):this.getPlayerPromise().then(function(z){z.updateVideoData(B.computeWatchNextPlayerVars_(W))}))},
computeWatchNextPlayerVars_:function(W){if(this.useUnifiedPlayer_()&&_.r("kevlar_unified_player_update_watch_next_killswitch"))Vi(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:W}},
maybeSendAbandonmentPing_:function(){var W=this.getPlayer();W&&W.getPlayerState()!=5&&W.getPlayerState()!=0&&W.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var W=_.eD("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(W=Object.assign({},W),W.rootElementId=this.playerId);W.serializedExperimentIds&&W.serializedExperimentFlags||_.Oc(Error("Ch"));return W},
hasWebPlayerContextConfig_:function(){return!!_.eD("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(W){this.useUnifiedPlayer_()?Vi(!1,"Invalid method call in kevlar_unified_player."):_.oB(W,this.hostElement)},
useUnifiedPlayer_:function(){var W=_.r("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.r("kevlar_unified_player")||W}}];var wWd={};wWd.YtPlaylistPanelBehavior=[_.U.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(W){W=W.detail;if(W.actions.loop!=void 0||W.actions["yt-icons:loop"]!=void 0)this.loopOn=W.actions.loop||W.actions["yt-icons:loop"];if(W.actions.shuffle!=void 0||W.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=W.actions.shuffle||W.actions["yt-icons:shuffle"]},
setMenuData_:function(W){if(!W||!W.playlistButtons||W.isInfinite)return null;for(var B=W.playlistButtons.menuRenderer.topLevelButtons,z=B.length,G=0;G<z;G++)if(B[G].toggleButtonRenderer){var Y=B[G].toggleButtonRenderer;Y.defaultIcon.iconType=="LOOP"&&this.loopOn?Y.isToggled=this.loopOn:Y.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(Y.isToggled=this.shuffleOn)}return W.playlistButtons}}];var Vo4=function(W){vM.call(this,W,132);this.isDocument=W===document.documentElement};
_.C(Vo4,vM);Vo4.prototype.calculateScrollDelta=function(W,B,z){var G=0;W<B?G=W<B-100?-48:-8:W>B+z&&(G=W>B+z+100?48:8);return G};
Vo4.prototype.JSC$11397_onMouseMove=function(W){this.isDocument||(W.clientX=W.event_.pageX,W.clientY=W.event_.pageY);vM.prototype.JSC$11397_onMouseMove.call(this,W)};var Fr=function(){var W=_.SJ.apply(this,arguments)||this;W._noAccessors=!0;W.scrollElement=document.documentElement;W.JSC$14386_dragListGroup=null;W.dragScrollSupport=null;W.onDraggerCreated=function(B){var z=B.JSC$11393_dragger;z.scrollTarget_=W.scrollElement;B=B.draggerEl;z&&B.menuOpened&&z.setEnabled(!1)};
W.onDragStart=function(B){var z=B.draggerEl;B=B.currDragItem;var G=Object.assign({},B==null?void 0:B.data);G.trackingParams=void 0;z.data=G;z.style.position="absolute";z.style.width=(B==null?void 0:B.clientWidth)+"px";z.style.zIndex="2030";z.onDrag&&z.onDrag();_.r("web_owner_document_fallback_killswitch")?(B=document.querySelector("ytd-app"))&&_.tH(B).appendChild(z):(B=_.yY(z),(G=B.querySelector("ytd-app"))?_.tH(G).appendChild(z):B.body.appendChild(z));W.dragScrollSupport=new Vo4(W.scrollElement);
W.dragScrollSupport.horizontalScrolling_=!1;z=W.dragScrollSupport;z.constrainScroll_=!!z.margin_&&!1};
W.onDrop=function(B){W.handleDrop(B);W.dragScrollSupport&&(_.AI(W.dragScrollSupport),W.dragScrollSupport=null)};
W.onReorderableScroll=function(){if(W.JSC$14386_dragListGroup){var B=W.JSC$14386_dragListGroup;Ho4(B,B.currDragItem_)}};
return W};
_.C(Fr,_.SJ);Fr.prototype.detached=function(){_.JbR(this)};
_.JbR=function(W){W.JSC$14386_dragListGroup&&(_.Xn(W.JSC$14386_dragListGroup,PP9,W.onDragStart),_.Xn(W.JSC$14386_dragListGroup,l87,W.onDragStart),W.JSC$14386_dragListGroup.dispose(),W.JSC$14386_dragListGroup=null);W.dragScrollSupport&&(_.AI(W.dragScrollSupport),W.dragScrollSupport=null);W.scrollElement.removeEventListener("scroll",W.onReorderableScroll)};
_.gfQ=function(W,B,z,G){G=G===void 0?"":G;_.JbR(W);z&&(W.scrollElement=z);W.JSC$14386_dragListGroup=new d1;W.JSC$14386_dragListGroup.hysteresisDistance_=2;I8d(W.JSC$14386_dragListGroup,B);W.JSC$14386_dragListGroup.draggerElClasses_=J0("dragging").split(" ");G&&owd(W.JSC$14386_dragListGroup,function(Y){var d=Y||document,E=null;d.getElementsByClassName?E=d.getElementsByClassName(G)[0]:E=pnR("*",G,Y);return E||Y});
_.ug(W.JSC$14386_dragListGroup,tJ4,W.onDraggerCreated);_.ug(W.JSC$14386_dragListGroup,PP9,W.onDragStart);_.ug(W.JSC$14386_dragListGroup,l87,W.onDrop);W.JSC$14386_dragListGroup.init();W.scrollElement.addEventListener("scroll",W.onReorderableScroll,{passive:!0})};
Fr.prototype.handleDrop=function(){};
_.G5.Object.defineProperties(Fr.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.Q([_.F({value:100}),_.y("design:type",Number)],Fr.prototype,"scrollMargin",void 0);_.Q([_.bP()],Fr);_.toQ=[Fr.prototype];_.Sv={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(W,B,z){var G=this.getClickTarget_(B);if(G&&this.isClickAllowed_(G)){B.preventDefault();W=(0,_.mP.unsafeClone)(W);var Y=this.getContainerBoundingRect();B=this.getRelativeClickXy_(B,Y);this.expandEndpointUrlMacros_(W,{NX:B[0],NY:B[1],NB:G.code});z&&this.truncateWebCommendMetadataUrl_(W);_.v0(this.hostElement,"yt-navigate",{endpoint:W})}},
getClickTarget_:function(W){if(!this.clickTargetMap)return null;W=_.AH(W)||[];W=_.A(W);for(var B=W.next();!B.done;B=W.next()){B=B.value;if(B===_.tH(this.hostElement).querySelector("#menu"))break;if(B=this.clickTargetMap.get(B.id))return B}return null},
getRelativeClickXy_:function(W,B){var z=W.detail.x,G=W.detail.y;_.r("use_on_click_for_desktop_display_ad")&&W.clientX!=null&&W.clientY!=null&&(z=W.clientX,G=W.clientY);W=Math.round(z-B.left);B=Math.round(G-B.top);return W<0||B<0?[null,null]:[W,B]},
getContainerBoundingRect:function(){return _.tH(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(W,B){for(var z=_.A(W.loggingUrls||[]),G=z.next();!G.done;G=z.next())G=G.value,G.baseUrl&&(G.baseUrl=B4Q(G.baseUrl,B));W.urlEndpoint&&W.urlEndpoint.url&&(W.urlEndpoint.url=B4Q(W.urlEndpoint.url,B));W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url&&(W.commandMetadata.webCommandMetadata.url=B4Q(W.commandMetadata.webCommandMetadata.url,B))},
truncateWebCommendMetadataUrl_:function(W){if(W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url){var B=W.commandMetadata.webCommandMetadata.url,z=B.indexOf("&pp=");if(z>0){var G=B.indexOf("&",z+1);W.commandMetadata.webCommandMetadata.url=G>z&&G<B.length?B.slice(0,z)+B.slice(G):B.slice(0,z)}}},
configureClickTargets:function(W,B,z){this.containerId=W;this.clickTargetMap=new Map;W=_.A(B);for(B=W.next();!B.done;B=W.next())if(B=B.value,B.location){var G=z.get(B.location);G&&(_.Pf(_.tH(this.hostElement).querySelector("#"+G),"yt-simple-endpoint",this.isClickAllowed_(B)),this.clickTargetMap.set(G,B))}},
isClickAllowed_:function(W){return W.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.bh={};
_.bh.YtLazyListBehavior=[_.hu.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 W=(this.constructor.generatedFrom||this).observers;W||(W=[]);W.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
W}},
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 W=this.renderElementsOutsideVisibleArea_;W&&(Jc6(W,4),W.processSignal())},
deepLazyListObserver_:function(W){var B=this;if(W){var z=W.value||[];if(this.itemsPath==W.path){var G=this.nonDeferredItemCount;W=0;G>-1&&z.length>G&&(W=_.eD("REMAINING_DOVA_DEFERRED_CHUNKS",-1));W>0?(G>0&&(G=z.slice(0,G),this.setInitialItemsOnDataChanged(G)),(G=this.renderElementsOutsideVisibleArea_)?G.cancel():(G=this.renderElementsOutsideVisibleArea_=new _.F$(2,"eocs"),_.Yvu(window,"scroll",function(){return B.renderDeferredElements()})),_.Sx(G,function(){B.setInitialItemsOnDataChanged(z)}),_.uk("REMAINING_DOVA_DEFERRED_CHUNKS",
W-1)):this.setInitialItemsOnDataChanged(z)}else if(this.itemsPath+".splices"==W.path)this.onItemsUpdated_(z);
else G="shownItems"+W.path.substr(this.itemsPath.length),this.useSignals&&G==="shownItems.length"||this.notifyPath(G,W.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(W){W&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(W),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(W){W=W.indexSplices;for(var B=0,z=W.length;B<z;B++){var G=W[B];if(G.index<this.shownCount&&(G.removed&&this.splice("shownItems",G.index,G.removed.length),G.addedCount)){var Y=G.object.slice(G.index,G.index+G.addedCount);G=["shownItems",G.index,0];G.push.apply(G,Y);this.splice.apply(this,G)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(W){this.cancelPendingTasks_();W||(W=[]);this.items_=W;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&&(_.md("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.BM(this,this.tryRenderChunk_)))},
fillRange_:function(W,B){this.canShowMore&&this.items_&&(W=this.items_.slice(W,B),W.unshift("shownItems"),this.push.apply(this,W),this.shownCount=B,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var W=this;this.canShowMore&&_.BJ(this,"renderChunk",function(){W.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.md("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.OM(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var W=this.renderElementsOutsideVisibleArea_;W&&(W.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var W=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(W-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=W;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(W){return Math.ceil(1E3/W)},
onCanShowMoreUpdated_:function(W){this.data&&this.items_!==null&&(W?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(W){!this.shouldUseTaskManager()&&this.data&&(!W&&this.canShowMore?(_.znu(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):W&&this.partiallyRenderedItems_.has(this.items_)&&(_.r("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var O7;_.jv={};
O7=function(){var W=_.SJ.apply(this,arguments)||this;W.atStart=!0;W.atEnd=!0;W.startIndex=0;W.endIndex=0;W.scrollCount=0;W.initialStartIndex=0;W.disableScrollEventListener=!1;W.useFloorScrolling=!1;W.isSearch=!1;W.dragging=!1;W.dragMouseStart=0;W.dragOffsetStart=0;W.disableWheelScroll=!1;W.centerListItems=!1;W.offset=0;W.minComponentWidth=0;W.marginWidthRight=0;W.marginWidthLeft=0;W.setButtonsStateRequested=!1;W.itemsVisibilityObserver=null;W.fullyVisibleItemsIndices=[];W.JSC$14397_onWheelScroll=function(B){if(W.isSearch&&
!W.disableWheelScroll&&_.r("desktop_enable_dmpanel_wheel_scroll")){var z=B.shiftKey?Math.abs(B.deltaY)>Math.abs(B.deltaX)?B.deltaY:B.deltaX:B.deltaX;z!==0&&(B.preventDefault(),W.ytLazyListBehavior.fillRemainingListItems(),W.offset+=z,fW(W),W.reposition_())}};
W.onPointerDown=function(B){sID(W)&&(W.dragMouseStart=B.clientX,W.dragOffsetStart=W.offset,W.dragging=!0)};
W.onPointerMove=function(B){sID(W)&&W.dragging&&(W.ytLazyListBehavior.fillRemainingListItems(),W.offset=W.dragOffsetStart-(B.clientX-W.dragMouseStart),fW(W),W.reposition_())};
W.onPointerUp=function(){sID(W)&&(W.dragging=!1)};
return W};
_.C(O7,_.SJ);var PVF=function(W){var B=_.tH(W.hostElement).querySelector("#items").children;if(!B)return 0;var z=0;W=_.A(W.fullyVisibleItemsIndices);for(var G=W.next();!G.done;G=W.next())z+=B[G.value].clientWidth;return z},sID=function(W){return W.isSearch&&_.r("desktop_enable_dmpanel_click_drag_scroll")};
O7.prototype.created=function(){this.cachedViewportWidth=_.eD("initialInnerWidth")||window.innerWidth;this.JSC$14397_cachedViewportHeight=_.eD("initialInnerHeight")||window.innerHeight;_.eD("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.uk("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
O7.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.r("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();ZF7(this)};
O7.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.r("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var W;(W=this.itemsVisibilityObserver)==null||W.disconnect();this.itemsVisibilityObserver=null;var B;(B=this.itemsObserver)==null||B.disconnect()};
var ZF7=function(W){var B=_.tH(W.hostElement).querySelector("#scroll-container");if(B){if(!W.itemsVisibilityObserver){var z=window.getComputedStyle(B).marginRight;W.itemsVisibilityObserver=new IntersectionObserver(function(G){rbT(W,G)},{root:B,
rootMargin:z,threshold:.98})}if(B=_.tH(W.hostElement).querySelector("#items"))W.itemsObserver=new pgu(B,function(G){k8T(W,G)})}},k8T=function(W,B){lA7(W)&&(Array.from(B.addedNodes).filter(function(z){return z.nodeType===Node.ELEMENT_NODE}).forEach(function(z){W.itemsVisibilityObserver&&W.itemsVisibilityObserver.observe(z)}),Array.from(B.removedNodes).filter(function(z){return z.nodeType===Node.ELEMENT_NODE}).forEach(function(z){W.itemsVisibilityObserver&&W.itemsVisibilityObserver.unobserve(z)}))},
rbT=function(W,B){var z=new Set(W.fullyVisibleItemsIndices);
B=_.A(B);for(var G=B.next();!G.done;G=B.next()){G=G.value;var Y=G.target.parentElement;Y?(Y=Array.from(Y.children).indexOf(G.target),G.isIntersecting?z.add(Y):z.has(Y)&&z.delete(Y)):_.Oc(new _.oX("Parent element not found",G.target.nodeName))}W.fullyVisibleItemsIndices=Array.from(z).sort(function(d,E){return d-E});
z.size===0?_.Oc(new _.oX("No visible entries in horizontal list")):(W.startIndex=W.fullyVisibleItemsIndices[0],W.endIndex=W.fullyVisibleItemsIndices[W.fullyVisibleItemsIndices.length-1])},lA7=function(W){W.data?W=(W=W.data)&&W.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===W.itemSizeConstraint:!1:W=!1;
return W};
_.p=O7.prototype;_.p.addScrollEventListeners=function(){var W=_.tH(this.hostElement).querySelector("#scroll-container");W.style.touchAction="pan-y";W.addEventListener("wheel",this.JSC$14397_onWheelScroll);W.addEventListener("pointerdown",this.onPointerDown);W.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.p.removeScrollEventListeners=function(){var W=_.tH(this.hostElement).querySelector("#scroll-container");W.removeEventListener("wheel",this.JSC$14397_onWheelScroll);W.removeEventListener("pointerdown",this.onPointerDown);W.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.p.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.BM(this,this.setStartIndex,[this.initialStartIndex])};
_.p.reposition_=function(){var W=_.eD("HTML_DIR")=="rtl"?"":"-",B=_.tH(this.hostElement).querySelector("#items");B&&(B.style.transform="translateX("+W+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.p.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.BM(this,this.setButtonsState_))};
_.p.setButtonsState_=function(){this.setButtonsStateRequested=!1;var W=_.tH(this.hostElement).querySelector("#items").firstElementChild;if(W){this.minComponentWidth||(this.minComponentWidth=CVQ(this,W));W=_.tH(this.hostElement).querySelector("#scroll-container").clientWidth;var B=_.tH(this.hostElement).querySelector("#items");B=_.r("kevlar_horizontal_list_scroll_width_killswitch")?B.clientWidth:B.scrollWidth;var z=this.get(this.ytLazyListBehavior.itemsPath,this);if(z){var G=Math.round(W/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+G,z.length)-1)}this.ytLazyListBehavior.canShowMore?B+this.minComponentWidth>=this.offset+W&&(this.atEnd=!1):this.atEnd=this.offset+W>=B-20?!0:!1;this.atStart=this.offset<=20}};
_.p.setStartIndex=function(W){if(!this.minComponentWidth){var B=_.tH(this.hostElement).querySelector("#items").firstElementChild;if(!B)return;this.minComponentWidth=CVQ(this,B)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*W;fW(this);this.reposition_()};
_.p.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.jY();var W=_.tH(this.hostElement).querySelector("#scroll-container").clientWidth;_.r("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=CVQ(this,_.tH(this.hostElement).querySelector("#items").firstElementChild));W=this.useFloorScrolling?Math.floor(W/this.minComponentWidth)||1:Math.round(W/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&IAH(this);this.offset+=lA7(this)?
PVF(this):W*this.minComponentWidth;fW(this);this.reposition_();this.scrollCount++};
_.p.prevClick_=function(){var W=_.tH(this.hostElement).querySelector("#scroll-container").clientWidth;W=this.useFloorScrolling?Math.floor(W/this.minComponentWidth)||1:Math.round(W/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=lA7(this)?PVF(this):this.minComponentWidth*this.scrollCount-1):this.offset-=lA7(this)?PVF(this):W*this.minComponentWidth;this.centerListItems&&IAH(this);fW(this);this.reposition_()};
_.p.onIronResize_=function(){this.resizeSupportEnabled&&_.BM(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.p.onItemsTransitionEnd_=function(W){_.iP(W)===_.tH(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.p.onChildElementFocus_=function(W){W=W.target.closest("#items > *");var B=_.tH(this.hostElement).querySelector("#scroll-container");if(B.contains(W)){if(_.r("web_horizontal_list_behavior_focus_killswitch"))if(W.offsetLeft<this.offset)this.offset=Math.abs(W.offsetLeft)<W.clientWidth?0:W.offsetLeft;else if(W.offsetLeft+W.clientWidth>this.offset+B.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.jY(),this.offset=W.offsetLeft+W.clientWidth-B.clientWidth;else return;else{var z=_.tH(this.hostElement).querySelector("#items"),
G=_.eD("HTML_DIR")==="rtl",Y=G?z.clientWidth-W.offsetLeft:W.offsetLeft;z=G?z.clientWidth-(W.offsetLeft+W.clientWidth):W.offsetLeft+W.clientWidth;var d=G?Y>this.offset+B.clientWidth:Y<this.offset,E=G?z<this.offset:z>this.offset+B.clientWidth,v=G?d:E;if(G?E:d)B=G?z:Y,this.offset=Math.abs(B)<W.clientWidth?0:B;else if(v)this.ytLazyListBehavior.fillRemainingListItems(),_.jY(),this.offset=(G?Y:z)-B.clientWidth;else return}fW(this);this.reposition_()}};
_.p.observeShownItems_=function(){this.reset()};
_.p.checkComponentWidthResize=function(){var W=_.tH(this.hostElement).querySelector("#items").firstElementChild;W&&(W=CVQ(this,W),this.centerListItems||W!==this.minComponentWidth)&&(this.minComponentWidth=W,this.offset=W*this.scrollCount,this.centerListItems&&IAH(this),fW(this),this.reposition_())};
var CVQ=function(W,B){var z=window.getComputedStyle(B).marginRight;z=Math.floor(Number(z.replace("px","")));var G=window.getComputedStyle(B).marginLeft;G=Math.floor(Number(G.replace("px","")));W.centerListItems&&!W.marginWidthRight&&(W.marginWidthRight=z,W.marginWidthLeft=G);return W.resizeSupportEnabled?B.getBoundingClientRect().width+z:B.offsetWidth+z},fW=function(W){var B=_.tH(W.hostElement).querySelector("#scroll-container").clientWidth,z=_.tH(W.hostElement).querySelector("#items").clientWidth;
W.offset<0?W.offset=0:W.offset+B>=z&&(W.offset=z-B)},IAH=function(W){W.offset-=(_.tH(W.hostElement).querySelector("#scroll-container").clientWidth+W.marginWidthRight-W.minComponentWidth)/2-W.marginWidthLeft};
_.G5.Object.defineProperties(O7.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var W=_.eD("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(W==-1)W=this.JSC$14397_cachedViewportHeight,W=W>1320?5:W>1020?4:W>730?3:W>430?2:1;else if(W==0)return 0;_.uk("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",W-1);W=_.eD("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(W>-1)return W;W=this.cachedViewportWidth;W=W>1600?6:W>1400?5:W>1300?4:W>1090?5:W>870?4:W>660?3:2;_.uk("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
W);return W},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.r("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
O7.prototype.observeShownItems_=O7.prototype.observeShownItems_;O7.prototype.onChildElementFocus_=O7.prototype.onChildElementFocus_;O7.prototype.onItemsTransitionEnd_=O7.prototype.onItemsTransitionEnd_;O7.prototype.onIronResize_=O7.prototype.onIronResize_;O7.prototype.prevClick_=O7.prototype.prevClick_;O7.prototype.nextClick_=O7.prototype.nextClick_;O7.prototype.setButtonsState_=O7.prototype.setButtonsState_;O7.prototype.requestButtonsStateUpdate_=O7.prototype.requestButtonsStateUpdate_;
O7.prototype.reposition_=O7.prototype.reposition_;O7.prototype.reset=O7.prototype.reset;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bh.YtLazyListBehavior),_.y("design:type",Object)],O7.prototype,"ytLazyListBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],O7.prototype,"atStart",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],O7.prototype,"atEnd",void 0);_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"startIndex",void 0);_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"endIndex",void 0);_.Q([_.F({value:6}),_.y("design:type",Number)],O7.prototype,"initialCount",void 0);_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"scrollCount",void 0);_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"initialStartIndex",void 0);
_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"disableScrollEventListener",void 0);_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"supportComponentResize",void 0);_.Q([_.F({value:function(){var W=this;return function(){return W.prevClick_()}}}),
_.y("design:type",Function)],O7.prototype,"boundPrevClick",void 0);_.Q([_.F({value:function(){var W=this;return function(){return W.nextClick_()}}}),
_.y("design:type",Function)],O7.prototype,"boundNextClick",void 0);_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"useFloorScrolling",void 0);_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"isSearch",void 0);_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"dragging",void 0);_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"dragMouseStart",void 0);_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"dragOffsetStart",void 0);
_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"disableWheelScroll",void 0);_.Q([_.F(),_.y("design:type",Object)],O7.prototype,"centerListItems",void 0);_.Q([_.IN("iron-resize"),_.oN("guideOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],O7.prototype,"onIronResize_",null);_.Q([_.IN("transitionend"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],O7.prototype,"onItemsTransitionEnd_",null);
_.Q([_.IN("focusin"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],O7.prototype,"onChildElementFocus_",null);_.Q([_.oN("shownItems"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],O7.prototype,"observeShownItems_",null);_.Q([_.bP()],O7);_.jv.YtdHorizontalListBehavior=[];_.jv.YtdHorizontalListBehavior.push(_.Mp,_.U.YtRendererBehavior,_.bh.YtLazyListBehavior,_.ge.YtdGuideStateAwareBehavior,O7.prototype);var KeD=["APP_STATE","PI"];var of4=_.ak(["about:blank"]),hXF={pushState:window.history.pushState,replaceState:window.history.replaceState};var Xr=function(W){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=W;this.internalPushState=W.pushState.bind(W);this.internalReplaceState=W.replaceState.bind(W)};
Xr.prototype.init=function(){this.initialized=!0};
Xr.prototype.pushState=function(W,B){this.initialized||this.init();this.internalPushState&&this.internalPushState(W,"",B)};
Xr.prototype.replaceState=function(W,B){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(W,"",B)};
Xr.prototype.getState=function(){return this.history&&this.history.state};var HFQ=function(W){var B=function(){var z=W.apply(this,arguments)||this;z.boundHistoryPushState=!1;z.boundHistoryReplaceState=!1;z.debugInfo={};return z};
_.C(B,W);B.prototype.init=function(){var z=_.I0("IFRAME");_.WG(z,_.sY(of4));z.sandbox="allow-same-origin";z.style.display="none";this.iframe=z;document.body.appendChild(z);this.bindHistoryStateFunctions();W.prototype.init.call(this)};
B.prototype.bindHistoryStateFunctions=function(){var z=this,G=[],Y;this.iframe&&((Y=this.iframe.contentWindow)==null?0:Y.history)&&(Y=this.iframe.contentWindow.history)&&(G.push(Y),Object.getPrototypeOf(Y)&&G.push(Object.getPrototypeOf(Y)));window.history&&G.push(window.history);Y=window.history;Object.getPrototypeOf(Y)&&G.push(Object.getPrototypeOf(Y));G.push(hXF);Y=function(E){for(var v=null,c=0;c<G.length;c++){var J=G[c][E];if(typeof J==="function"){v=J.bind(window.history);z.debugInfo[E]=c;break}}return v};
if(!this.boundHistoryReplaceState){var d=Y("replaceState");d&&(this.internalReplaceState=d,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(Y=Y("pushState"))&&(this.internalPushState=Y,this.boundHistoryPushState=!0)};
return B}(Xr),F2Q=function(){return HFQ.call(this,window.history)||this};
_.C(F2Q,HFQ);F2Q.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var KW=function(W){this.browserHistory=W;this.initialized=!1};
KW.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
KW.prototype.pushState=function(W,B){this.initialized||this.init();this.browserHistory.pushState(W,B)};
KW.prototype.replaceState=function(W,B){this.initialized||this.init();this.browserHistory.replaceState(W,B)};
KW.prototype.handlePopstate=function(W){return W.state};_.SqD=function(W,B,z,G,Y){this.endpoint=W;this.forward=B;this.historyEntry=z;this.JSC$30183_savedComponentState=G;this.legacyBorder=Y===void 0?!1:Y};var bFd=function(W,B){this.rootData=W;this.scrollTop=B};var ok=new _.t1("PAGE_REQUEST_TOKEN"),qD4=new _.t1("FETCH_PBJ_TOKEN");_.uh=new _.t1("EPHEMERAL_STORE_TOKEN");_.ev=function(W){this.data=Object.assign({},W);var B;(B=this.data.innertubeResponse)==null||delete B.frameworkUpdates};
_.ev.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Yb)()};
_.pQ=function(W){return Object.assign({},W.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var jId=function(){this.maxSize=100;this.timeToDataCache=new Map};
jId.prototype.get=function(W){var B=this.timeToDataCache.get(W);B&&(this.timeToDataCache.delete(W),this.timeToDataCache.set(W,B));if(B&&B.rootData&&(_.r("web_use_response_store_for_history_cache")||_.r("mweb_use_new_history_manager"))){var z=_.dO().resolve(_.uh),G=fA7(B),Y=!!G;if(G){if(G.content){var d=mO(z,G.content);Y&&d?B.rootData.response=_.pQ(d):Y=!1}G.player&&(d=mO(z,G.player),Y&&d?B.rootData.playerResponse=_.pQ(d):Y=!1);G.reelSequence&&(z=mO(z,G.reelSequence),Y&&z?B.rootData.reelWatchSequenceResponse=
_.pQ(z):Y=!1)}Y||(this.timeToDataCache.delete(W),B=void 0)}return B};
jId.prototype.set=function(W,B){if(B.rootData&&(_.r("web_use_response_store_for_history_cache")||_.r("mweb_use_new_history_manager"))){var z=fA7(B),G=Object.assign({},B.rootData);z&&(z.content&&B.rootData.response&&(OFu(this,z.content,B.rootData.response),G.response=null),z.player&&B.rootData.playerResponse&&(OFu(this,z.player,B.rootData.playerResponse),G.playerResponse=null),z.reelSequence&&B.rootData.reelWatchSequenceResponse&&(OFu(this,z.reelSequence,B.rootData.reelWatchSequenceResponse),G.reelWatchSequenceResponse=
null));B=new bFd(G,B.scrollTop)}this.timeToDataCache.has(W)?this.timeToDataCache.delete(W):this.timeToDataCache.size>=this.maxSize&&(z=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(z.value));this.maxSize!==0&&this.timeToDataCache.set(W,B)};
jId.prototype.clear=function(){this.timeToDataCache.clear()};
var fA7=function(W){var B=_.dO().resolve(_.Y8(ok)),z;if((z=W.rootData)==null?0:z.endpoint)return B==null?void 0:llk(B,W.rootData.endpoint);var G;_.Oc(new _.oX("History snapshot response data does not contain endpoint",(G=W.rootData)==null?void 0:G.url));return null},OFu=function(W,B,z){if(W.maxSize>0){var G;
(W=(G=z.responseContext)==null?void 0:G.maxAgeSeconds)&&Number(W)>0&&(G=_.dO().resolve(_.uh),z=tg(z,W),G.put(B,new _.ev(z)))}};var XWd=function(W,B,z){this.endpoint=B;this.JSC$30188_savedComponentState=z===void 0?null:z;this.entryTime=W};var QGy=1;var xI=function(W){var B=function(){var z=W.apply(this,[].concat(_.u7(_.nm.apply(0,arguments))))||this;z.historyEntryTime=0;z.historySnapshotCache=z.createHistoryCache();return z};
_.C(B,W);B.prototype.createHistoryCache=function(){return new jId};
B.prototype.saveAndReplace=function(z,G,Y){var d=window.location.href;var E=E===void 0?{}:E;var v=(v=this.browserHistory.getState())&&v.entryTime?v.entryTime:yQv();z=this.createNewHistoryEntry(z,E,v);this.saveSnapshot(v,G,Y);this.replaceState(z,d||window.location.href)};
B.prototype.saveAndPush=function(z,G,Y,d,E){E=E===void 0?{}:E;this.saveSnapshot(this.historyEntryTime,Y,d);Y=this.historySnapshotCache;d=this.historyEntryTime;var v=Y.timeToDataCache.keys();v=_.A(v);for(var c=v.next();!c.done;c=v.next())c=c.value,c>d&&Y.timeToDataCache.delete(c);G=this.createNewHistoryEntry(G,E);this.pushState(G,z)};
B.prototype.saveSnapshot=function(z,G,Y){this.historySnapshotCache.set(z,new bFd(G,Y))};
B.prototype.createNewHistoryEntry=function(z,G,Y){Y=Y===void 0?yQv():Y;return new XWd(Y,z,G)};
B.prototype.handlePopstate=function(z){var G=W.prototype.handlePopstate.call(this,z),Y=null,d=null,E=!1,v=null;G&&G.entryTime&&(v=this.historySnapshotCache.get(G.entryTime)||null,E=G.entryTime>this.historyEntryTime,this.historyEntryTime=G.entryTime,Y=G.endpoint,d=G.JSC$30188_savedComponentState);this.handleHistoryCacheLoad(new _.SqD(Y,E,v,d),z);return G};
B.prototype.pushState=function(z,G){Number(z==null?void 0:z.entryTime)>=0&&(this.historyEntryTime=z.entryTime);W.prototype.pushState.call(this,z,G)};
B.prototype.replaceState=function(z,G){Number(z==null?void 0:z.entryTime)>=0&&(this.historyEntryTime=z.entryTime);W.prototype.replaceState.call(this,z,G)};
B.prototype.handleHistoryCacheLoad=function(){};
return B}(KW),K2R=function(){var W=xI.call(this,new F2Q)||this;
W.dispatchElement=null;W.entryIndex=0;return W};
_.C(K2R,xI);_.p=K2R.prototype;_.p.init=function(W){W=W===void 0?!0:W;xI.prototype.init.call(this);this.initialized||(W||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.p.handlePopstate=function(W){var B=null;W.state||(B="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return xI.prototype.handlePopstate.call(this,W);var z=new CustomEvent("yt-history-pop",{cancelable:!0});_.c0(this.dispatchElement,"yt-history-pop",[z,{errorMsg:B}]);_.wV(this.dispatchElement,"yt-close-all-popups-action");if(!z.defaultPrevented){z=_.dO().resolve(_.ij);B=z.getCurrentData();var G=z.getCurrentPage();z=0;G?(G=_.c0(this.dispatchElement,"yt-get-page-offset",
[G]),G.length>0&&(z=G[0])):_.Oc(new _.oX("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:B?B.page:"undefined"}));B&&(B.csn=_.m1());this.saveSnapshot(this.historyEntryTime,B,z)}return xI.prototype.handlePopstate.call(this,W)};
_.p.handleHistoryCacheLoad=function(W,B){W.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.A(_.wV(this.dispatchElement,"yt-history-will-navigate",[B])).next().value||_.c0(this.dispatchElement,"yt-history-load",[B,W]))};
_.p.pushState=function(W,B){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var z=new _.oX("history.pushState is not a function",this.getDebugString());_.jy(z)}xI.prototype.pushState.call(this,W,B)};
_.p.replaceState=function(W,B){if(!this.browserHistory.boundHistoryReplaceState){var z=new _.oX("history.replaceState is not a function",this.getDebugString());_.jy(z)}xI.prototype.replaceState.call(this,W,B)};
_.p.saveAndPush=function(W,B,z,G,Y){Y=Y===void 0?{}:Y;z&&(z.csn=_.m1());xI.prototype.saveAndPush.call(this,W,B,z,G,Y)};
_.p.getDebugString=function(){var W=[];this.initialized&&W.push("i");this.browserHistory.boundHistoryReplaceState&&W.push("bhr");this.browserHistory.boundHistoryPushState&&W.push("bhs");"replaceState"in this.browserHistory.debugInfo&&W.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&W.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&W.push("ei:"+String(this.entryIndex));return W.join(",")};
_.DH=function(W,B){W.init(!0);var z=W.browserHistory.getState();W.replaceState(z,gu(B))};
K2R.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.QO=new _.t1("DESKTOP_HISTORY_MANAGER_TOKEN");var uLM=[10,20,30,40,50,60],yO=function(){this.currentPartitionIndex=0},eXQ=function(W){Lh7({mainAppWeb:_.GS(),
survivalSli:{partitionMinute:W,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},mCT=function(W){Lh7({mainAppWeb:_.GS(),
survivalSli:{partitionMinute:W,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},xCR=function(W){return W.currentPartitionIndex>=0&&W.currentPartitionIndex<uLM.length?uLM[W.currentPartitionIndex]:-1},DCH=function(W){return W.currentPartitionIndex>0&&W.currentPartitionIndex-1<uLM.length?uLM[W.currentPartitionIndex-1]:-1};
yO.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var W=DCH(this);W>0&&mCT(W);W=xCR(this);W>0&&eXQ(W);QI4(this)}};
var QI4=function(W){var B=xCR(W);if(B>0){var z=DCH(W);z<0&&(z=0);W.intervalId=_.fg.addJob(function(){var G=DCH(W);G>0&&mCT(G);G=xCR(W);G>0&&eXQ(G);QI4(W)},3,(B-z)*6E4);
W.currentPartitionIndex+=1}else W.currentPartitionIndex=-1};var ybF=function(){this.skipNextNavigation=!1},qqQ=function(W,B,z){if(!B)return!1;
if(W.skipNextNavigation)return W.skipNextNavigation=!1;if(_.k(z,_.DD))return!1;var G,Y,d;if((G=_.k(z,_.oE))==null?0:(Y=G.browseEndpointContextSupportedConfigs)==null?0:(d=Y.browseEndpointContextMainConfig)==null?0:d.skipConfirmation)return!1;var E;return((E=_.k(B.commandMetadata,_.Z4))==null?void 0:E.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
ybF.prototype.showConfirmationDialog=function(W,B){this.navigateParams=B;this.customConfirmationCommand?_.dO().resolve(_.p4).resolveCommand(this.customConfirmationCommand):(B={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Bg(_.kq("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Bg(_.kq("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Bg(_.kq("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Bg(_.kq("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Qx.getInstance().triggerAction("yt-open-popup-action",B,W))};
ybF.prototype.cancelPendingNavigation=function(){var W;((W=this.navigateParams)==null?void 0:W.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var nfR=function(){},$CM=function(W,B,z,G,Y,d,E){z=z===void 0?{}:z;
E=E===void 0?{}:E;var v=_.LI.instance,c,J=(c=_.k(B,_.DD))==null?void 0:c.url;return J?dbr(v,J,z,window.location.href,function(g,t){NFR(W,g,t,!1,!0,z,d,G)},function(){return!1}):nQ(v,B,z,window.location.href,Hg(B),function(g,t){NFR(W,g,t,!1,!0,z,d,G)},Y,E)},NFR=function(W,B,z,G,Y,d,E,v){if(!W.JSC$14455_chunkHandler)if(z.page==="learning_journey_watch"&&_.r("web_enable_canvas_on_learning_journey")){var c=!_.k(v,_.oE);
Y=Y||G;if(c)if(Y){if(_.r("kevlar_continue_playback_without_player_response")){var J;var g=(J=_.k(v,_.W0))==null?void 0:J.videoId}G={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:G,previousVideoId:g},tempData:d}}else G={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else G={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};W.JSC$14455_chunkHandler=new JUD(_.TN,G,E,c,Y)}else if(z.page==="watch"||z.page==="learning_journey_watch")if(Y||G){if(_.r("kevlar_continue_playback_without_player_response")){var t;
c=(t=_.k(v,_.W0))==null?void 0:t.videoId}W.JSC$14455_chunkHandler=new sbU(_.TN,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:G,previousVideoId:c},tempData:d},E)}else W.JSC$14455_chunkHandler=new wmU(_.TN);else z.page==="shorts"&&Y&&!G?W.JSC$14455_chunkHandler=new tVD(_.TN,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:d},E):W.JSC$14455_chunkHandler=new VVH(E);W.JSC$14455_chunkHandler.processChunk({endpoint:B,data:z});return W.JSC$14455_chunkHandler.m3.promise},
L2D=function(W,B,z,G,Y){(z=_.do6(z))&&NFR(W,B,z,!1,!0,G,void 0,Y)};var UC7=function(){this.pendingNavigationPromise=null};
_.p=UC7.prototype;_.p.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.p.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.p.addEventListener=function(){throw Error("Dh");};
_.p.dispatchEvent=function(){throw Error("Dh");};
_.p.removeEventListener=function(){throw Error("Dh");};var MoD=new _.t1("APP_ROOT");var n7r=null;var aAF=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],q7=function(){_.Ka.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];RXU(this)};
_.C(q7,_.Ka);q7.prototype.verifyUser=function(){var W=RXU(this),B=W.logout;if(!W.sessionChange)return!0;this.dispatchEvent("ytsessionchange");B&&this.dispatchEvent("ytuserinvalid");return!1};
var RXU=function(W){var B=aAF.map(function(Y){var d;return(d=_.rO.get(Y))!=null?d:""}),z=B.some(function(Y,d){return W.sessionCookies&&W.sessionCookies[d]!==""&&Y===""}),G=B.some(function(Y,d){return W.sessionCookies&&W.sessionCookies[d]!==Y});
W.sessionCookies=B;return{logout:z,sessionChange:G}};
q7.prototype.clearTimeout=function(){this.scheduledJobId&&(_.fg.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var aBr=new _.t1("POSTMESSAGE_TUNNEL_TOKEN");var LeQ=["/parent_tools","/file_download","/artist_roster"],BFu=[mRU,xR4,DRQ,y0H,QD4,e8F,qX4,ntM];var nW=new _.t1("NAVIGATION_CONFIRMATION_SERVICE");var W3Q="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),Bp7=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],N7=function(W,B){this.pendingNavigationPromise=null;this.JSC$14478_clientRoot=W;this.historyManager=B;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 nfR;this.debugString=W.is;W={"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};_.yx(_.Qx.getInstance(),W,this.JSC$14478_clientRoot)},pp4,A94,i1M,Eg6,d97;
_.C(N7,UC7);N7.prototype.reload=function(){_.zS(window.location.href)};
var iD4=function(W){W.currentEndpoint&&_.k(W.currentEndpoint,_.SW)?W.reload():W.currentEndpoint&&W.navigate(W.currentEndpoint,!0,void 0,{disableCache:!0})};
N7.prototype.navigate=function(W,B,z,G,Y,d,E,v){B=B===void 0?!1:B;z=z===void 0?{}:z;G=G===void 0?{}:G;var c=_.dO().resolve(nW),J;if(!E&&qqQ(c,(J=this.currentEndpoint)!=null?J:void 0,W))return c.showConfirmationDialog(this.JSC$14478_clientRoot.parentElement,{endpoint:W,reload:B,params:z,tempData:G,requestType:Y,createScreenConfig:d}),!1;var g=_.J5();_.gW(g,"eocs")||g.parkOrScheduleJob(function(){g.processSignal("eocs")},10,"eor");
Nf0();E=Hg(W);c=G.autonav==="1";J=_.m1();q7.instance||(q7.instance=new q7);var t=q7.instance.verifyUser(),P;if(_.r("enable_dark_theme_only_on_shorts")){var Z=document.documentElement.hasAttribute("dark"),l=_.Ks(!0)==="USER_INTERFACE_THEME_DARK";if(E==="shorts"){if(!Z)if(_.r("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var b;_.zS((b=_.k(W==null?void 0:W.commandMetadata,_.Z4))==null?void 0:b.url,void 0,void 0,window.top)}}else{var O;_.zS(_.M6((O=_.k(W==
null?void 0:W.commandMetadata,_.Z4))==null?void 0:O.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.r("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!Z){var K;_.zS(_.M6((K=_.k(W==null?void 0:W.commandMetadata,_.Z4))==null?void 0:K.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(l!==Z){var e;_.zS(_.M6((e=_.k(W==null?void 0:W.commandMetadata,_.Z4))==null?void 0:e.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(E==="watch"){if(zOF(_.dO().resolve(_.Qb),
W)&&(t||_.r("fix_miniplayer_navigation_killswitch")))return!1;_.r("block_all_player_prefetch_requests")||(P=pZF(_.Yn(_.Ur),W,c))}else{var a,q=(a=_.k(this.currentEndpoint,_.W0))==null?void 0:a.videoId;q&&_.Wz.getInstance().then(function(Zv){Zv&&Zv.set("yt-miniplayer-shown-video-id",q)})}P&&(z.frags=P.missingFragments_.join(","));
b=null;var n;O=(n=_.k(W==null?void 0:W.commandMetadata,_.Z4))==null?void 0:n.ignoreNavigation;if(!O)if(_.r("kevlar_command_url")){var L;b=(L=_.k(W==null?void 0:W.commandMetadata,_.Z4))==null?void 0:L.url}else b=_.ygX(W,z);if(b&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&b==this.lastNavigationUrl)return _.Ki({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Vb(nt(),"CANCELLED")}b&&(this.lastNavigationUrl=b);S7R();_.uk("IS_HOMEPAGE_COLD",
!1);_.uk("IS_RESULTS_PAGE_COLD",!1);_.uk("IS_WATCH_PAGE_COLD",!1);W.loggingUrls&&W.loggingUrls.forEach(function(Zv){Zv.baseUrl&&_.ys(Zv.baseUrl)});
_.dCD(W,d?d.layer:0)&&_.r("kevlar_flush_logs_on_away_navigation")&&_.bp();if(zX2(W))return!1;mou(E,Y);if(!b)return O||_.Oc(new _.oX("Can't construct url for endpoint",W)),_.Vb(nt(),"FAILURE"),!1;_.$sD();n=W&&_.k(W,_.oE)&&_.k(W,_.oE).browseId.startsWith("UC");z=(L=_.r("enable_dark_theme_only_on_shorts")&&E==="shorts"?!1:_.ua()&&document.documentElement.hasAttribute("dark")!==_.Xt())?{themeRefresh:1}:{};L&&!_.lO()&&_.Ks()==="USER_INTERFACE_THEME_DARK"&&(z.theme="dark");n=L||GL7(b)&&!n&&!_.r("kevlar_disable_url_allowlist");
t||(n=!0);if(n||_.eD("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var By;var gk=(By=window.top)==null?void 0:By.location.href}catch(Zv){var vy;gk=(vy=Zv)==null?void 0:vy.message}_.Oc(new _.oX("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:gk}))}W=_.r("kevlar_redirect_on_window_killswitch")?window.top:window;Bf(b);_.zS(_.M6(b,z),void 0,void 0,W);_.Vb(nt(),"ABORTED");return!1}_.r("kevlar_early_popup_close")&&_.c0(this.JSC$14478_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14455_chunkHandler=void 0;var lx;gk=Hg((lx=this.currentEndpoint)!=null?lx:void 0);(lx=E==="shorts"&&gk==="shorts")||_.o00();_.D5(c7k)("nr",void 0);c&&_.Ki({webInfo:{navigationReason:"an"}});W.clickTrackingParams&&(G.itct=W.clickTrackingParams,G.csn=J);DVR(G);G.endpoint=JSON.stringify(W);_.r("enable_unknown_lact_fix_on_html5")&&(_.dO().resolve(_.jX),G.lact=_.Gi());_.mP.isEmpty(G)||_.Yq(b,G);!_.r("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(d=Object.assign({},{layer:0},d,{parentLayer:3}));this.pendingNavigationPromise=d=$CM(this.pageFetcher,W,G,this.currentEndpoint,this.JSC$14478_isNetworkPromiseStale.bind(this),d,v);d=d.then(this.handleNavigateSuccess.bind(this,d,W,P,G),this.handleNavigateFail.bind(this,d,W));_.qG().navigationFinishPromise=d;B={endpoint:W,pageType:E,url:gu(b),reload:!!B,noProgressBar:lx};Y&&(B.type=Y);this.fireEvent("yt-navigate-start",B);P&&L2D(this.pageFetcher,W,P,G,this.currentEndpoint);
return!0};
N7.prototype.JSC$14478_isNetworkPromiseStale=function(W){return W!=this.pendingNavigationPromise};
var YyT=function(W,B,z,G,Y){var d=Hg(B);B={endpoint:B,pageType:d};Y&&(B.errorMessage=Y);_.Oc(z);B.navigationDoneMs=_.mj("nd");B.navigationErrorReason=G;W.fireEvent("yt-navigate-error",B)};
N7.prototype.handleNavigateFail=function(W,B,z){var G=void 0;z instanceof _.qF&&(G=z,D$k(z));if(this.JSC$14478_isNetworkPromiseStale(W))return _.mR(G);_.Vb(nt(),"FAILURE");YyT(this,B,z,"101");return _.mR(z)};
N7.prototype.handleNavigateSuccess=function(W,B,z,G,Y){if(this.JSC$14478_isNetworkPromiseStale(W))return _.gV();this.pendingNavigationPromise=null;if(!Y)return B=new _.oX("Missing data in response for navigation endpoint",B),_.mR(B);if(Y.reload)return window.location.reload(!0),_.gV();z&&(W={},_.mP.extend(W,_.do6(z),Y),Y=W);var d,E;z=(d=Y)==null?void 0:(E=d.timing)==null?void 0:E.responseStart;z!=null&&_.mj("srt",z);_.mj("pdc");var v,c;d=(v=Y)==null?void 0:(c=v.timing)==null?void 0:c.info;d!=null&&
(v=_.D5(_.g02)(d),_.Ki(v));_.Vb(nt(),"SUCCESS");d97(this,B,Y,1,G);return _.gV()};
var GL7=function(W){var B=W;_.r("kevlar_no_redirect_to_classic_2_ks")||(B=(new _.B0(W)).getPath());if(B==="/"||B==="/red")return!1;var z=!0;W3Q.forEach(function(G){W.indexOf(G)===0&&(z=!1)});
Bp7.forEach(function(G){var Y=G.url;_.r(G.expFlag)&&W.indexOf(Y)===0&&(z=!1)});
return z};
N7.prototype.publishPageData=function(W){this.fireEvent("yt-page-data-fetched",{pageData:W})};
pp4=function(W,B,z,G,Y,d){var E=null;B.page!=="watch"&&B.page!=="learning_journey_watch"||G?B.filler||_.c0(W.JSC$14478_clientRoot,"yt-stop-old-player",[B]):E=NFR(W.pageFetcher,Y,B,z,!1,d,void 0,W.currentEndpoint);if(E)return E.then(W.publishPageData.bind(W,B));W.publishPageData(B);return _.gV()};
A94=function(W,B,z){var G=null;if(!z)return G=new _.oX("Empty data",W.debugString,B);var Y=z.response;if(!Y)return G;var d={endpointType:Hg(B)||"unknown"};Y.responseContext?(Y=Y.responseContext.errors)&&(G=new _.oX("Errors in response context",W.debugString,B,Y,d)):G=Y.error||Y.errorMetadata?new _.oX("Errors in response",W.debugString,B,Y.error,Y.errorMetadata,d):new _.oX("responseContext missing",W.debugString,B,Object.keys(Y).sort().join(","),d);var E,v,c,J;if(W=z==null?void 0:(E=z.response)==null?
void 0:(v=E.responseContext)==null?void 0:(c=v.webResponseContextExtensionData)==null?void 0:(J=c.webResponseContextDebugData)==null?void 0:J.debugErrorMessages)for(E=0;E<W.length;E++);return G};
i1M=function(W){var B,z,G,Y;return W==null?void 0:(B=W.response)==null?void 0:(z=B.responseContext)==null?void 0:(G=z.errors)==null?void 0:(Y=G.error)==null?void 0:Y["0"]};
Eg6=function(W,B){var z;if(z=B.url&&!B.url.startsWith("/clip"))z=B.url,z=!_.r("webfe_parse_debug_param_in_resolveurl_service")&&W.searchDebugUrlMatcher.test(z)||M4r(z)?!0:!1;if(z)M4r(B.url)&&_.Uw(window.location.href).themeRefresh?(B=_.dV(B.url,"themeRefresh"),_.DH(W.historyManager,B)):B.url&&!xs2(B.url)&&_.DH(W.historyManager,B.url);else if(B.endpoint){var G,Y,d;(z=(G=B.endpoint)==null?void 0:(Y=G.commandMetadata)==null?void 0:(d=Y.webCommandMetadata)==null?void 0:d.url)&&!xs2(z)&&_.DH(W.historyManager,
z);z&&B.url&&z!=B.url&&!B.url.match("playnext=1")&&new _.oX("Response url mismatch in response data",W.debugString,z,B.url)}};
_.Tp6=function(W,B,z,G,Y,d,E,v){d=d===void 0?!1:d;var c=_.dO().resolve(nW),J;if(!v&&qqQ(c,(J=W.currentEndpoint)!=null?J:void 0,B))return c.showConfirmationDialog(W.JSC$14478_clientRoot.parentElement,{endpoint:B,data:z,navigationType:G,tempData:Y,isMiniplayer:d,isForwardHistoryNavigation:E==null?void 0:E.forward}),_.gV();W.pageFetcher.JSC$14455_chunkHandler=void 0;return d97(W,B,z,G,Y,d)};
d97=function(W,B,z,G,Y,d){d=d===void 0?!1:d;W.isMiniplayerExpansion=d;var E=G===2;W.currentEndpoint=B;W.numNavigations++;W.numNavigations&&(Hnk.navigationCount=W.numNavigations);_.uk("NUM_NAV",W.numNavigations);var v=A94(W,B,z);if(v)return YyT(W,B,v,"102",i1M(z)),_.mR(v);var c,J,g,t;v=z.rootVe||(z==null?void 0:(c=z.response)==null?void 0:(J=c.responseContext)==null?void 0:(g=J.webResponseContextExtensionData)==null?void 0:(t=g.ytConfigData)==null?void 0:t.rootVisualElementType);!E&&z&&Eg6(W,z);var P,
Z;c=z==null?void 0:(P=z.response)==null?void 0:(Z=P.responseContext)==null?void 0:Z.maxAgeSeconds;if(!E&&!isNaN(c)){var l;_.r("kevlar_use_response_ttl_to_invalidate_cache")?l=(0,_.Yb)()+1E3*c:_.r("kevlar_always_invalidate_cache")&&(l=0);isNaN(l)||(z.expirationTime=l)}_.Yn(_.Ur).prefetchCache_.clear();E||z.page!=="watch"||z.type!=="reduced"&&G!==1?G=pp4(W,z,E,!!d,B,Y):(W.publishPageData(z),G=_.gV());Y=G.then(function(){var b=Hg(B);b={endpoint:B,pageType:b,fromHistory:E,response:z};b.navigationDoneMs=
_.mj("nd");W.fireEvent("yt-navigate-finish",b)});
z.csn&&v&&z.clientSideGrafts&&G.then(W.attachClientSideGrafts.bind(W,z,_.et()));return Y};
_.p=N7.prototype;_.p.attachClientSideGrafts=function(W,B){W.clientSideGrafts&&B&&W.clientSideGrafts.forEach(function(z){if(B&&z){var G=_.XF(z);_.r("combine_ve_grafts")?_.SK().graftServerVe(z,B):_.$q(W.csn,B,G)}})};
_.p.handleSignalActionHistoryBack=function(){window.history.back()};
_.p.handleSignalActionCloseWindow=function(){window.close()};
_.p.handleSignalActionReloadPage=function(){this.reload()};
_.p.handleSignalActionSoftReloadPage=function(){iD4(this)};
_.p.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.p.fireEvent=function(W,B){W=new CustomEvent(W,{bubbles:!0,cancelable:!1,composed:!0,detail:B});this.dispatchEvent(W)};
_.p.addEventListener=function(W,B){this.JSC$14478_clientRoot.addEventListener(W,B)};
_.p.dispatchEvent=function(W){return this.JSC$14478_clientRoot.dispatchEvent(W)};
_.p.removeEventListener=function(W,B){this.JSC$14478_clientRoot.removeEventListener(W,B)};
N7[gR]=[MoD,_.QO];_.ivv=new XI("browse","h8y2qb");_.Ed0=new XI("search","JzFVk");_.Tzk=new XI("shorts","xwEKAe");_.vdT=new XI("watchFixie","nmfa2d");_.cpu=new XI("watchFlexy","CF909");_.wKR=new XI("watchGrid","Tm0L3c");_.VnR=new XI("watchLearningJourney","L3n37");var vgF;var c9D=function(){return _.S.apply(this,arguments)||this};
_.C(c9D,_.S);_.G5.Object.defineProperties(c9D,{template:{configurable:!0,enumerable:!0,get:function(){if(vgF===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);vgF=W}W=vgF;return W}}});
_.Q([_.h(cbQ.YtPlayerBehavior),_.y("design:type",Object)],c9D.prototype,"ytPlayerBehavior",void 0);_.Q([_.u({is:"ytd-player"})],c9D);var wp9;var VHR;var J96;var $I=function(){var W=_.S.apply(this,arguments)||this;W.forceModernIconButton=!1;W.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return W};
_.C($I,_.S);$I.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]]"}}}}}};
$I.prototype.handleAccountLinkingStateChangedCommand=function(W){if(W=_.k(W,j1M)){var B,z=(B=this.data)==null?void 0:B.providerKey;B=W.providerKey;z&&B&&z.id===B.id&&z.subject===B.subject&&(W=W.linked,W!==void 0&&(this.set("data.linked",W),this.notifyPath("data.linked"),_.r("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(W)))}};
$I.prototype.setPlayerAccountLinkState=function(W){var B=new $zM;LNu(B,nyF(new qWR,W));var z=_.TN();z&&z.getPlayerPromise().then(function(G){G.setAccountLinkState(_.Ob(B.JSC$12171_serializeBinary(),4));G.updateAccountLinkingConfig(W)})};
$I.prototype.handleShowAccountLinkDialog=function(){var W=this.get("button.buttonRenderer.command");W&&_.s2([W],this.hostElement)};
_.G5.Object.defineProperties($I.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}}}});
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],$I.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.Q([_.h([_.ye.YtActionHandlerBehavior]),_.y("design:type",Object)],$I.prototype,"actionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$I.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],$I.prototype,"overrides",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],$I.prototype,"forceModernIconButton",void 0);_.Q([_.F({value:"bottom"}),_.y("design:type",String)],$I.prototype,"buttonTooltipPosition",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],$I.prototype,"forceIconButton",void 0);_.Q([_.F(),_.y("design:type",Boolean)],$I.prototype,"disableTextTransform",void 0);
_.Q([_.H("data","data.linked","data.isWarning"),_.y("design:type",Object),_.y("design:paramtypes",[])],$I.prototype,"button",null);_.Q([_.u({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],$I);
_.D($I,"ytd-account-link-button-renderer",function(){if(J96!==void 0)return J96;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return J96=W},{mode:1});var gg9;var tHH=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],LW=function(){return _.S.apply(this,arguments)||this};
_.C(LW,_.S);LW.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
LW.prototype.updateButtonActiveState=function(){var W=this,B=!!tHH.find(function(z){return W.currentState===z});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.r("enable_web_delhi_icons")&&(B=!1);this.button&&(this.button.isPressed=B)};
_.G5.Object.defineProperties(LW.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.playlistLoopStateEntity)==null?void 0:W.state)||((B=this.data)==null?void 0:B.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var W=void 0,B;if(this.currentState&&((B=this.data)==null?0:B.states)){B=_.A(this.data.states);for(var z=B.next();!z.done;z=B.next()){z=_.k(z.value,_.aUD);var G=void 0;if(((G=z)==null?void 0:G.state)===this.currentState){W=z;break}}}return W}}});
LW.prototype.updateButtonActiveState=LW.prototype.updateButtonActiveState;_.Q([_.h(_.TB),_.y("design:type",Object)],LW.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],LW.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.cby}),_.y("design:type",Object)],LW.prototype,"playlistLoopStateEntity",void 0);_.Q([_.F(),_.y("design:type",Object)],LW.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],LW.prototype,"forceIconOnly",void 0);_.Q([_.Hf("ytd-button-renderer"),_.y("design:type",_.HN)],LW.prototype,"button",void 0);
_.Q([_.H("data","playlistLoopStateEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],LW.prototype,"currentState",null);_.Q([_.oN("currentButtonStateRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LW.prototype,"updateButtonActiveState",null);_.Q([_.H("currentState"),_.y("design:type",Object),_.y("design:paramtypes",[])],LW.prototype,"currentButtonStateRenderer",null);
_.Q([_.u({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],LW);
_.D(LW,"ytd-playlist-loop-button-renderer",function(){if(gg9!==void 0)return gg9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return gg9=W},
{mode:1});var sU4;var Pt4=_.kq("DOWNLOAD",{},"Download"),Z1d=_.kq("DOWNLOADING",{},"Downloading"),r94=_.kq("DOWNLOADED",{},"Downloaded"),kLu=_.kq("RETRY",{},"Retry"),U7=function(){var W=_.S.apply(this,arguments)||this;W.forceIconButton=!1;W.forceIconOnly=!1;W.overrides=!1;W.buttonTooltipPosition=!1;W.styleActionButton=!1;W.disableTextTransform=!1;W.downloadProgress=0;W.isDownloadComplete=!1;W.isHidden=!0;W.transferState="TRANSFER_STATE_UNKNOWN";W.isVideoDeletedByUser=!1;W.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return W};
_.C(U7,_.S);_.p=U7.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.dataChanged=function(){var W;(W=this.data)!=null&&W.text||(W=_.yg(_.Y_().getState(),this.videoId),this.updateButtonState(W))};
_.p.computeVideoId=function(W){return W};
_.p.showHideButton=function(){this.updateButtonVisibility()};
_.p.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};
_.p.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.p.updateButtonState=function(W){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Z1d||!_.H3(W))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(W){case "TRANSFER_STATE_UNKNOWN":W=Pt4;var B="OFFLINE_DOWNLOAD";var z="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":W=kLu;B="OFFLINE_DOWNLOAD";z="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":W=r94;B="OFFLINE_PIN";z="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":W=
Z1d;B="OFFLINE_DOWNLOADING_ZERO";z="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":W=kLu;B="OFFLINE_DOWNLOAD";z="ACTION_RETRY";break;default:W=Pt4,B="OFFLINE_DOWNLOAD",z="ACTION_ADD"}this.isVideoDeletedByUser&&(W=Pt4,B="OFFLINE_DOWNLOAD",z="ACTION_ADD");var G=Object.assign({},this.data);G.text=_.Bg(W);G.tooltip=W;G.icon={iconType:B};G.size="SIZE_DEFAULT";G.style="STYLE_DEFAULT";_.k(G.command,_.C2)&&(_.k(G.command,_.C2).action=z);this.set("data",G)}};
_.p.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var W="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?W="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?W="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?W="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?W="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?W="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(W="OFFLINE_PIN",this.isDownloadComplete=!0);var B;W!==((B=this.data.icon)==null?void 0:B.iconType)&&(B=Object.assign({},this.data),B.text=_.Bg(Z1d),B.tooltip=Z1d,B.icon={iconType:W},_.k(B.command,_.C2)&&(_.k(B.command,_.C2).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",B))}};
U7.prototype.updateProgress=U7.prototype.updateProgress;U7.prototype.onTransferStateChanged=U7.prototype.onTransferStateChanged;U7.prototype.showHideButton=U7.prototype.showHideButton;U7.prototype.dataChanged=U7.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],U7.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],U7.prototype,"forceIconButton",void 0);
_.Q([_.F(),_.y("design:type",Object)],U7.prototype,"forceIconOnly",void 0);_.Q([_.F(),_.y("design:type",Object)],U7.prototype,"overrides",void 0);_.Q([_.F(),_.y("design:type",Object)],U7.prototype,"buttonTooltipPosition",void 0);_.Q([_.F(),_.y("design:type",Object)],U7.prototype,"styleActionButton",void 0);_.Q([_.F(),_.y("design:type",Object)],U7.prototype,"disableTextTransform",void 0);
_.Q([_.F({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.y("design:type",String)],U7.prototype,"videoId",void 0);_.Q([_.F(),_.y("design:type",Object)],U7.prototype,"data",void 0);_.Q([_.F({selector:nA,selectorArgs:["videoId"]}),_.y("design:type",Object)],U7.prototype,"downloadProgress",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],U7.prototype,"isDownloadComplete",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],U7.prototype,"isHidden",void 0);_.Q([_.F({selector:_.yg,selectorArgs:["videoId"]}),_.y("design:type",String)],U7.prototype,"transferState",void 0);_.Q([_.F({selector:_.h7t,selectorArgs:["videoId"]}),_.y("design:type",Object)],U7.prototype,"isVideoDeletedByUser",void 0);_.Q([_.F({selector:r5x,selectorArgs:["videoId"]}),_.y("design:type",Object)],U7.prototype,"offlineabilityState",void 0);
_.Q([_.F({value:!0}),_.y("design:type",Boolean)],U7.prototype,"showTooltips",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],U7.prototype,"sendCommandWhenDisabled",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],U7.prototype,"disabled",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U7.prototype,"dataChanged",null);
_.Q([_.jJ("offlineabilityState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U7.prototype,"showHideButton",null);_.Q([_.jJ("transferState","isVideoDeletedByUser"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U7.prototype,"onTransferStateChanged",null);_.Q([_.jJ("downloadProgress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U7.prototype,"updateProgress",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],U7);
_.D(U7,"ytd-download-button-renderer",function(){if(sU4!==void 0)return sU4;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return sU4=W},{mode:2});var lg6;var Ctd,Ig9=function(){if(Ctd!==void 0)return Ctd;var W=document.createElement("template");_.I(W,'\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 Ctd=W};var ogM=_.r("web_button_rework")&&_.md("BUTTON_REWORK")||_.r("web_button_rework_with_live"),hO7=_.iO("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,M7=function(){var W=_.S.apply(this,arguments)||this;W.isPressed=!1;W.forceIconButton=!1;W.forceIconOnly=!1;W.forceModernIconButton=!1;W.alignByText=!1;W.isShorts=!1;W.animatedText=!1;W.shouldAnimate=!1;W.JSC$14515_browserSupportsAnimation=_.r("web_supports_animations_api");W.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};W.onTap=function(){var B;if((B=W.data)==null||!B.defaultNavigationEndpoint){var z;B=!((z=W.data)==null?0:z.isToggled);var G;if((G=W.data)==null||!G.preventAutoToggle){W.shouldAnimate=!1;W.disableTextUpdateJobId&&_.fg.cancelJob(W.disableTextUpdateJobId);W.disableTextUpdateJobId=_.fg.addLowPriorityJob(function(){W.disableTextUpdateJobId=void 0},hO7);
var Y;W.set("data.isToggled",!((Y=W.data)==null?0:Y.isToggled));z=W.getInnertubeIcon();G={toggled:B,actions:{}};z&&(G.actions[z.toLowerCase()]=B);_.v0(W.hostElement,"yt-toggle-button",G)}}};
return W};
_.C(M7,_.S);_.p=M7.prototype;_.p.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.fg.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.toggle=function(W){var B;this.set("data.isToggled",W!==void 0?W:!((B=this.data)==null?0:B.isToggled))};
_.p.handleUpdateToggleButtonStateCommand=function(W){if(this.data){W=_.k(W,QAR);var B,z,G,Y=(B=this.data)==null?void 0:(z=B.toggleButtonSupportedData)==null?void 0:(G=z.toggleButtonIdData)==null?void 0:G.id;Y&&W&&Y===(W==null?void 0:W.buttonId)&&this.set("data.isToggled",W.toggled)}};
_.p.handleUpdateToggleButtonTextAction=function(W){if(this.data){W=_.k(W,GzH);var B,z,G,Y=(B=this.data)==null?void 0:(z=B.toggleButtonSupportedData)==null?void 0:(G=z.toggleButtonIdData)==null?void 0:G.id;Y&&W&&Y===(W==null?void 0:W.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=W.defaultNumericalValue,this.set("data.defaultText",W.defaultText),this.set("data.toggledText",W.toggledText),this.shouldAnimate=!1)}};
_.p.getInnertubeIcon=function(){var W=this.data;if(W){var B,z,G=((B=W.defaultIcon)==null?0:B.iconType)?(z=W.defaultIcon)==null?void 0:z.iconType:null,Y,d;B=((Y=W.toggledIcon)==null?0:Y.iconType)?(d=W.toggledIcon)==null?void 0:d.iconType:G;return W.isToggled?B:G}};
_.p.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.G5.Object.defineProperties(M7.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W={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$14515_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var B=W.renderer;var z=W.element;var G=W.toggled;var Y=W.onTapCallback;var d=W.commandClientArgs;var E=W.overrides;var v=W.forceIcon;var c=W.forceModernIconButton;var J=W.forceDisabled;var g=W.useAnimatedText;var t=W.animatedTextProps;W=gfy(B,G);v=!B.defaultIcon||!v&&B.defaultText?B.defaultIcon?"leading":void 0:c?"icon-only":"icon-only-40";v==="icon-only-40"&&(W.type="text");var P;c=Object;var Z=c.assign,l;a:switch((l=
B.style)==null?void 0:l.styleType){case "STYLE_COMPACT_GRAY":l={size:"S"};break a;default:l={size:"M"}}var b=!!G;var O=(O=G&&B.toggledText||B.defaultText)?_.y2(O):void 0;g?(g=_.zR(G&&B.toggledText||B.defaultText))&&t&&!isNaN(Number(t.numberValue))?(t.numberText=g,G&&(t.numberValue+=1),g=t):g=void 0:g=void 0;var K,e,a,q;var n=(t=((e=G?B.toggledAccessibilityData||((n=B.toggledText)==null?void 0:n.accessibility):B.accessibilityData||((K=B.defaultText)==null?void 0:K.accessibility))==null?void 0:(a=e.accessibilityData)==
null?void 0:a.label)||((q=B.accessibility)==null?void 0:q.label))?t:_.zR(G&&B.toggledText||B.defaultText);J=J===void 0?B.isDisabled:J;z=Jbx(B,G,Y,z,d);G=Vor(B,G);G!=null&&G.length?(G=_.UV({innertubeCommand:Wlu(G),forceNewState:!0}),G=MH(G)?G:void 0):G=void 0;B=Z.call(c,{},W,l,{iconPosition:v},E,{focused:!1,toggled:b,toggleable:!0,formattedButtonText:O,animatedTextProps:g,accessibilityLabel:n,disabled:J,onTap:z,aTagConfig:G},oox((P=B.colorData)==null?void 0:P.basicColorPaletteData));B.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(B.type="filled");return B}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var W=this.getInnertubeIcon();if(W)return _.lg(W)}}});
M7.prototype.resetAnimation=M7.prototype.resetAnimation;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],M7.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],M7.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],M7.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],M7.prototype,"isPressed",void 0);_.Q([_.F(),_.y("design:type",Object)],M7.prototype,"forceIconButton",void 0);_.Q([_.F(),_.y("design:type",Object)],M7.prototype,"forceIconOnly",void 0);_.Q([_.F(),_.y("design:type",Object)],M7.prototype,"forceModernIconButton",void 0);_.Q([_.F(),_.y("design:type",Object)],M7.prototype,"alignByText",void 0);_.Q([_.F(),_.y("design:type",Object)],M7.prototype,"overrides",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],M7.prototype,"disabled",void 0);_.Q([_.F(),_.y("design:type",Object)],M7.prototype,"isShorts",void 0);_.Q([_.F(),_.y("design:type",Object)],M7.prototype,"buttonTooltipPosition",void 0);_.Q([_.F(),_.y("design:type",Object)],M7.prototype,"animatedText",void 0);_.Q([_.F(),_.y("design:type",String)],M7.prototype,"textNumberValue",void 0);_.Q([_.F({computed:"computeTooltip(data, data.isToggled)"}),_.y("design:type",Object)],M7.prototype,"tooltip",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],M7.prototype,"resetAnimation",null);_.Q([_.H("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.y("design:type",Object),_.y("design:paramtypes",[])],M7.prototype,"computedButtonShape",null);_.Q([_.H("data.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],M7.prototype,"computedIcon",null);
_.Q([_.u({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],M7);ogM&&_.D(M7,"ytd-toggle-button-renderer",Ig9,{mode:_.PJ("kevlar_poly_si_batch_j081")?1:2});var H1u=_.m(function(W){function B(J){var g;return _.T(function(t){if(t.nextAddress==1)return(g=!sI8(J,v())||!v().enabled)?t.jumpTo(2):t.yield(lAu(),3);t.nextAddress!=2&&(g=t.yieldResult);if(g)return t.return();z();setTimeout(function(){E(!1)},1500);
_.HG(t)})}
function z(){setTimeout(function(){E(!0);var J;(J=G.lottieEl)==null||J.goToAndPlay(0)},150)}
var G=_.k2(),Y=_.A(_.g4(!1,void 0,"UfUosc")),d=Y.next().value,E=Y.next().value,v=_.ig(W.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.jD(function(){var J,g;((J=W.settings)==null?void 0:(g=J.call(W))==null?void 0:g.uniqueId)==="this is not intended behavior"&&_.Oc(new _.oX("Smartimation Settings is undefined"))});
_.ja(function(){v().experimentEnabled&&(v().enabled?PVX(B):(E(!1),ZFu(B)),_.fR(function(){ZFu(B)}))},"IHhVmc");
_.ja(function(){v().timings.join("");v().experimentEnabled&&(rbR(v()),_.fR(function(){k8R(v())}))},"fsfhOe");
var c=_.r4(function(){var J=G,g=v().uniqueId+"-border",t,P;var Z="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((P=(t=_.dO().resolve(_.Y8(_.YG)))==null?void 0:t())!=null&&P?"dark":"light")+"_v2.json";return{animationRef:J,animationConfig:{name:g,autoplay:!1,loop:!1,path:Z}}},void 0,"UWvUGe");
Y={};return _.w("yt-smartimation",{class:_.kG(W.className,"smartimation",(Y["smartimation--experiment-enabled"]=function(){return v().experimentEnabled},Y["smartimation--active-border"]=d,Y["smartimation--enable-masking"]=CVy(),Y))},_.w(_.V,{cond:function(){return v().experimentEnabled},
then:function(){return _.w("div",{class:"smartimation__border"},_.w(_.q8,{className:"smartimation__border-gradient",data:c,animationName:function(){return c().animationConfig.name}}))}}),_.w("div",{class:"smartimation__content"},W.children))},"G");
H1u.idomCompat=!0;_.Vm(H1u,"yt-smartimation",{props:{className:_.kz,settings:_.kz}});var ap=function(){var W=_.S.apply(this,arguments)||this;W.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};W.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};W.shouldEnableSmartimation=!1;return W};
_.C(ap,_.S);ap.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
ap.prototype.onDataChanged=function(){var W,B;this.shouldEnableSmartimation=(((W=this.data)==null?void 0:(B=W.timedAnimationData)==null?void 0:B.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
ap.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var W=_.k(this.data.likeButton,_.T3),B=_.k(this.data.dislikeButton,_.T3);return!!((W==null?0:W.isToggled)||(B==null?0:B.isToggled))};
ap.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]]"}}}}}};
_.G5.Object.defineProperties(ap.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var W,B,z=((W=this.data)==null?void 0:(B=W.timedAnimationData)==null?void 0:B.animationTiming)||[];return{uniqueId:"like-dislike",timings:z,enabled:this.shouldEnableSmartimation,experimentEnabled:z.length>0}}}});
ap.prototype.onDataChanged=ap.prototype.onDataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ap.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],ap.prototype,"likeButtonOverride",void 0);_.Q([_.F(),_.y("design:type",Object)],ap.prototype,"dislikeButtonOverride",void 0);
_.Q([_.H("shouldEnableSmartimation"),_.y("design:type",Object),_.y("design:paramtypes",[])],ap.prototype,"smartimationSettings",null);_.Q([_.oN("data"),_.IN("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ap.prototype,"onDataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],ap);
_.D(ap,"ytd-segmented-like-dislike-button-renderer",function(){if(lg6!==void 0)return lg6;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return lg6=W},{mode:1});var F36;var SyU;(SyU=document.body)==null||SyU.setAttribute("rounded-container","");var b16={};b16.YtToggleButtonBehavior=[_.ye.YtActionHandlerBehavior,M8.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 W=this.data.isToggled;if(!this.isModal_(W)){if(!this.data.preventAutoToggle){this.toggle();var B={toggled:this.data.isToggled,actions:{}};B.actions[this.buttonIcon]=this.data.isToggled;_.v0(this.hostElement,"yt-toggle-button",B)}B=this.data.defaultServiceEndpoint||null;var z=this.data.toggledServiceEndpoint||null;if(B&&z||B&&this.data.preventAutoToggle)W=W?z:B,B=this.disableCommandHandlerOverride,_.r("killswitch_toggle_button_behavior_resolve_command")||B?_.V0(this.hostElement,
[W]):_.oB(W,this.hostElement),_.v0(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:W})}},
stateChanged_:function(){var W=this.data;if(W){var B=W.isToggled;this._setEndpoint(this.computeEndpoint_(W));this._setServiceEndpoint(this.computeServiceEndpoint_(W));this._setButtonIcon(this.computeButtonIcon_(W,B));this._setButtonText(this.computeButtonText_(W,B));this._setButtonAccessibility(this.computeAccessibility_(W,B));this._setButtonTooltip(this.computeTooltip_(W,B));this._setButtonClass(this.computeButtonClass_(W,B));this._setIconPositionType(this.computeIconPositionType_(W));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=B):this.elements_.button.setAttribute("aria-pressed",B));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=B)}},
shouldSetIconActiveState_:function(){return _.r("kevlar_system_icons")},
toggle:function(W){this.set("data.isToggled",W!==void 0?W:!this.data.isToggled);_.r("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(W){if(W){var B,z;return!!((B=this.data)==null?0:(z=B.toggledServiceEndpoint)==null?0:z.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(W){return W&&W.defaultNavigationEndpoint||null},
computeButtonIcon_:function(W,B){var z=W&&W.defaultIcon?_.lg(W.defaultIcon.iconType):null;W=W&&W.toggledIcon?_.lg(W.toggledIcon.iconType):z;return B?W:z},
handleUpdateToggleButtonStateCommand_:function(W){W=W.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==W.buttonId&&this.toggle(W.toggled)},
computeButtonText_:function(W,B){return W?B&&W.toggledText||W.defaultText||null:null},
computeAccessibility_:function(W,B){return W?(B?this.get("toggledAccessibilityData.accessibilityData",W):this.get("accessibilityData.accessibilityData",W))||W.accessibility||null:null},
computeTooltip_:function(W,B){return W?B&&W.toggledTooltip||W.defaultTooltip||null:null},
computeButtonClass_:function(W,B){if(!W)return"";var z="",G=W.toggledStyle||W.style;if(B=B?G:W.style){B.styleType&&(B=B.styleType);try{z+=B.toLowerCase().replace(/_/g,"-")+" "}catch(Y){_.XC(Y,B,typeof B),_.Oc(Y)}}if(W=W.size){W.sizeType&&(W=W.sizeType);try{z+=W.toLowerCase().replace(/_/g,"-")+" "}catch(Y){_.XC(Y,W,typeof W),_.Oc(Y)}}return z.trim()},
computeIconPositionType_:function(W){return W&&W.iconPosition||null},
computeServiceEndpoint_:function(W){var B=W&&W.serviceEndpoint,z=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return B?B:z&&W.command?W.command:null},
handleUpdateToggleButtonTextAction_:function(W){W=W.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==W.buttonId&&(this.set("data.defaultText",W.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",W.toggledText),this.notifyPath("data.toggledText"))}}];_.eX("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var jUR=_.r("web_button_rework")&&_.md("BUTTON_REWORK")||_.r("web_button_rework_with_live"),Rp=function(){var W=_.S.apply(this,arguments)||this;W.systemIcons=_.r("kevlar_system_icons");W.roundedContainer=!0;return W};
_.C(Rp,_.S);Rp.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Rp.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var W=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var B={toggled:!!this.data.isToggled,actions:{}};B.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var z,G;B.actions.playlistId=(z=this.data.defaultServiceEndpoint)==null?void 0:(G=z.playlistEditEndpoint)==null?void 0:G.playlistId;_.v0(this.hostElement,"yt-toggle-button",B)}(W=W?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(W)}};
Rp.prototype.onYtNavigate=function(W){var B=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);B&&(W.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(B))};
_.G5.Object.defineProperties(Rp,{template:{configurable:!0,enumerable:!0,get:function(){if(F36===void 0){var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);F36=W}W=F36;return W}}});
Rp.prototype.onYtNavigate=Rp.prototype.onYtNavigate;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Rp.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],Rp.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(b16.YtToggleButtonBehavior),_.y("design:type",Object)],Rp.prototype,"ytToggleButtonBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Rp.prototype,"data",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],Rp.prototype,"showTooltips",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rp.prototype,"systemIcons",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rp.prototype,"roundedContainer",void 0);_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Rp.prototype,"onYtNavigate",null);
_.Q([_.u({is:"ytd-toggle-button-renderer",disableElementRegistration:jUR})],Rp);var fgQ,O1M;_.WD=new _.t1("PANEL_CONTROLLER_TOKEN");_.BD=new _.t1("SHEET_CONTROLLER_TOKEN");_.zo=new _.t1("DIALOG_CONTROLLER_TOKEN");fgQ=new _.t1("DIALOG_CONTAINER_TOKEN");O1M=new _.t1("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.Go=new _.t1("PERSISTENT_PANEL_CONTROLLER_TOKEN");var fAu=_.kq("DOWNLOAD",{},"Download"),OFD=_.kq("DOWNLOADING",{},"Downloading"),XWR=_.kq("DOWNLOADED",{},"Downloaded"),K2Q=_.kq("RETRY",{},"Retry");var XpH=_.m(function(W){var B=DC2,z=function(){return""},G=uLt(W.data),Y=eXy(W.data),d=mCR(W.data),E=xCx(W.data);
B=function(){var v=W.data(),c=bFR(v,G(),Y(),d(),E()),J=!!v.videoId,g=c.text;return{title:J?g:void 0,tooltip:J?void 0:g,accessibilityText:g,onTap:c.onTap,iconName:c.iconType,style:v.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:c.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:v.buttonSize}};
z={};z=_.kG("ytDownloadButtonViewModelHost",(z.ytDownloadButtonViewModelIsHidden=function(){var v=W.data(),c=E();return v.playlistId||c()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||c()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},z));
return _.w("download-button-view-model",{class:z},_.w(_.ex,{data:B}))},"H");
XpH.idomCompat=!0;var Mo8=new _.t1("SUBMIT_API_SERVICE_TOKEN");var $C0,L28,aAX={submitAction:"SUBMIT_ACTION_SUBMISSION"};var wpv=new _.t1("RENDERER_LOGGER_TOKEN");var EgT=new _.t1("RENDERER_STAMPER_OPTIONS_TOKEN");var RXk;_.FE=new TSF;RXk=new Map;var TpT="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),c98=["notificationTextRenderer","notificationMultiActionRenderer"],
vgX="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),i10=W3y(function(W){return _.XA(W==null?void 0:W.targetId)}).useUpdatableData;var A9r=0;_.Sc.debugName="EjJbCe";var K3R=_.m(function(W){var B=W.data;W=W.className;_.bk(function(){B().formId||_.jy(Error("Fh"))});
var z=_.NFQ(function(){return B().formId},function(){return B().beforeSubmitCommand},function(){return B().afterSubmitCommand}),G=z.submitForm,Y=z.isValid,d=z.isSubmitting,E=function(){return{state:B().isDisabled||!Y()||d()?"disabled":"active"}};
return _.w("yt-submit-button-view-model",{class:_.kG("ytSubmitButtonViewModelHost",W)},_.w(_.Sc,{data:function(){return B().button}},{buttonViewModel:function(v){return _.w(_.ex,{data:v.data,
buttonOverrides:E,onClick:G})}}))},"I");var eOU=_.m(function(W){var B=W.backgroundLottieRef;var z=W.foregroundLottieRef;var G=W.children;var Y=W.wrapperClass;var d=W.disableAnimation;W=function(){return(_.r("web_animated_actions")||_.r("web_animated_actions_v2"))&&!(d==null?0:d())};
return _.w("yt-animated-action",{class:_.kG("ytAnimatedActionHost",Y)},_.w("div",{class:"ytAnimatedActionContentWithBackground"},_.w(_.V,{cond:W,then:function(){return _.w(ueu,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:B==null?void 0:B(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(VHx()?"dark":"light")+"_v5.json"}}}})}}),G),_.w(_.V,{cond:W,
then:function(){return _.w(ueu,{lottiePlayerProps:function(){return{animationRef:z==null?void 0:z(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(VHx()?"dark":"light")+"_v4.json"}}}})}}))},"J");
eOU.idomCompat=!0;var ueu=_.m(function(W){var B=W.wrapperClass;var z=W.lottieClass;var G=W.lottiePlayerProps;return _.w("div",{class:_.kG("ytAnimatedActionLottie",B),"aria-hidden":"true"},_.w(_.q8,{className:z,data:G,animationName:function(){return G().animationConfig.name}}))},"K");var J9T={isOpen:!1};var tH2={isAllowed:!1};var Ptr={errorMessage:"",title:"",privacy:"",isDisabled:!0};var r9r={isOpen:!1};var lgT={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var m9R={response:void 0};var Igv=function(W,B){W=W===void 0?m9R:W;switch(B.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},W,{response:B.payload});default:return W}};var x9d={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var ogt=function(W,B){W=W===void 0?x9d:W;switch(B.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},W,{nextDisabled:B.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},W,{nextCommand:B.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},W,{footerSubmissionData:B.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},W,{isImpersonationValid:B.payload});default:return W}};var D9F={reportFormData:void 0,reportDetailsFormData:void 0};var hOu=function(W,B){W=W===void 0?D9F:W;switch(B.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},W,{reportFormData:B.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},W,{reportDetailsFormData:B.payload});default:return W}};var QUQ=void 0;_.r("mweb_enable_redux_store_on_demand")||(QUQ=new GR(H1D()));var YP=_.r("enable_web_delhi_icons");var y97=_.m(function(W){W=_.EV(W,{themeOverride:void 0,animationRef:{}});var B=W.animatedIconType,z=W.active,G=W.themeOverride,Y=W.animationRef;W=W.staticIconFn;var d=_.A(_.g4(void 0,void 0,"l48agc")),E=d.next().value,v=d.next().value,c=function(){a:{var O=B();var K=G==null?void 0:G();var e;K=(K==null?void 0:K.useDarkTheme)||((e=_.dO().resolve(_.Y8(_.YG)))==null?void 0:e());switch(O){case "LIKE":QUQ||(QUQ=new GR(H1D()));O=(O=EoR(QUQ.getState()))&&O.animationLightUrl&&O.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:K?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:K?O.animationDarkUrl:O.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(O){K=O;break a}K="animated_like_icon_"+(K?"dark":"light")+"_"+(YP?"v5":"v4");K={lottiePlayerProps:{animationConfig:{name:K,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+K+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(YP?" animated-like-icon-delhi":"")}}},totalFrames:YP?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":K={lottiePlayerProps:{animationConfig:{name:K?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(K?"dark":"light")+(YP?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(YP?" animated-subscribe-icon-delhi":"")}}},totalFrames:YP?120:79,lazyLoad:!1};break a}K=
void 0}return K},J=function(){var O,K;
return(K=(O=c())==null?void 0:O.lottiePlayerProps.animationConfig.name)!=null?K:""},g=function(){if(c()){var O=c().lottiePlayerProps.animationConfig.path;
return Xm.get(O)||E()}};
d=_.A(_.g4(!1,void 0,"sDrGId"));var t=d.next().value;d=d.next().value;var P=Syk(d),Z=function(){var O=c(),K,e,a;return(a=O==null?void 0:(K=O.lottiePlayerProps.animationConfig)==null?void 0:(e=K.rendererSettings)==null?void 0:e.className)!=null?a:""},l=void 0,b=void 0;
_.ja(function(){var O=c(),K=J(),e=g(),a=t(),q=z();if(O&&(b!==K&&(b=K,l=q,K=Y(),P.animationConfig=O.lottiePlayerProps.animationConfig,P.animationRef=K,e&&(P.animationConfig.animationData=e,P.animationConfig.path=void 0),K=O.lottiePlayerProps.animationConfig.path,!Xm.get(K)&&O.lazyLoad&&K&&F3T(K,v)),!(a||O.lazyLoad&&!e))){if(e=!Y().lottieEl)q?(a=O.totalFrames,P.animationConfig.initialSegment=[a-1,a]):P.animationConfig.initialSegment=void 0;if(l!==q&&!e)if(e=Y(),q){var n;(n=e.lottieEl)==null||n.playSegments([0,
O.totalFrames],!0)}else{var L;(L=e.lottieEl)==null||L.playSegments([0,1],!0)}l=q}},"RQVZ1d");
return _.w("animated-icon",{class:"ytAnimatedIconHost"},_.w(_.V,{cond:function(){var O,K;return!((O=c())==null||!O.lottiePlayerProps.animationConfig.path||((K=c())==null?0:K.lazyLoad)&&!g()||t())},
then:function(){return _.w(_.q8,{data:P,animationName:J,className:Z,animationRef:Y})},
else:W}))},"L");_.dJ=_.m(function(W){var B=_.LG("yt-subscribe-button-view-model"),z=_.LG("div"),G=_.LG("div"),Y=_.k2(),d=_.k2(),E=_.k2(),v=_.hg(pW8,function(){return W.data().stateEntityStoreKey}),c=_.hg(Abr,function(){var RD,sF;
return(sF=(RD=W.data().notificationStateEntityStoreKeys)==null?void 0:RD.subsNotificationStateKey)!=null?sF:""}),J=function(){return!W.data().enableSubscribeButtonPostClickAnimation},g=_.A(_.g4(0,void 0,"YtsSKb")),t=g.next().value,P=g.next().value;
g=_.A(_.g4(0,void 0,"V6JxRe"));var Z=g.next().value,l=g.next().value;g=_.A(_.g4(!1,void 0,"JUCSZ"));var b=g.next().value,O=g.next().value;g=_.A(_.g4(!1,void 0,"oV6jwf"));var K=g.next().value,e=g.next().value;g=_.A(_.g4(!1,void 0,"hK1Whe"));var a=g.next().value,q=g.next().value,n;g=_.A(_.g4(!1,void 0,"Asaolf"));var L=g.next().value,By=g.next().value,gk=function(){e(!0);_.OM(_.fg,function(){e(!1)},1500)};
_.ja(function(){var RD=K();Jy(function(){RD&&!J()&&v()&&x9R(Y,d,E)})},"Qq6Hsf");
_.ja(function(){var RD=v();Jy(function(){if(!J()&&RD){var sF;((sF=W.animateWidth)==null?0:sF.call(W))&&m9x(B.value,!!RD.subscribed,t(),Z());var Vd,bR;((Vd=n)==null?0:Vd.subscribed)||!RD.subscribed||RD.key!==((bR=n)==null?void 0:bR.key)||gk();n=RD}})},"hog8te");
g=_.r4(function(){var RD,sF,Vd,bR=W.data(),Sf=!((RD=v())==null||!RD.subscribed);RD=!((sF=W.isOverlay)==null||!sF.call(W));sF=b()?B:void 0;var UF=(Vd=c())==null?void 0:Vd.state;Vd=L();eOk(bR,UF);return fgy({model:bR,subscribed:Sf,isOverlay:RD,element:sF,notificationState:UF,disableTextEllipsis:!0,focused:Vd})},void 0,"hc1PRd");
var vy=function(){var RD;if(!J()&&((RD=W.animateWidth)==null?0:RD.call(W))&&(z==null?0:z.value)&&(G==null?0:G.value)&&!a()){RD=v();var sF=_.A((RD==null?0:RD.subscribed)?[z,G]:[G,z]),Vd=sF.next().value;sF=sF.next().value;Vd=Math.ceil(Vd.value.getBoundingClientRect().width);sF=Math.ceil(sF.value.getBoundingClientRect().width);P(Vd);l(sF);m9x(B.value,!(RD==null||!RD.subscribed),Vd,sF);q(!0)}},lx=_.lF(function(RD){vy();
var sF=v();sF&&(RD.detail.endpoint.subscribeEndpoint||RD.detail.endpoint.unsubscribeEndpoint)&&Xp2(B.value,!sF.subscribed,sF)}),Zv=function(){var RD=_.dO().resolve(_.Y8(_.jx));
RD&&By(RD.isKeyBoardInUse())},VR=function(){By(!1)};
_.$E("yt-player-subscribe",function(RD){var sF=v();sF&&RD===W.data().channelId&&Xp2(B.value,!0,sF)});
_.$E("yt-player-unsubscribe",function(RD){var sF=v();sF&&RD===W.data().channelId&&Xp2(B.value,!1,sF)});
_.$E("yt-update-subscribe-button-action",function(RD){RD=_.k(RD,ocR);var sF=v();sF&&RD&&RD.channelId===W.data().channelId&&Xp2(B.value,!!RD.subscribed,sF)});
_.jD(function(){B.value&&(B.value.addEventListener("focusin",Zv),B.value.addEventListener("focusout",VR));var RD=_.CG(_.fg,function(){vy()});
O(!0);_.fR(function(){_.fg.cancelJob(RD);B.value&&(B.value.removeEventListener("focusin",Zv),B.value.removeEventListener("focusout",VR))})});
var ux=function(){var RD,sF,Vd;if(Vd=!((RD=v())==null||!RD.subscribed))RD=!!W.data().disableNotificationBell,Vd=(sF=c())==null?void 0:sF.state,Vd=!RD&&!!Vd;return Vd},X2=function(){var RD;
return!((RD=v())==null?0:RD.subscribed)},WQ=function(){var RD,sF;
if(sF=X2()){sF=!!W.data().disableNotificationBell;var Vd=(RD=c())==null?void 0:RD.state;sF=!sF&&!!Vd}return sF},XH={},wU={};
return _.w("yt-subscribe-button-view-model",{class:_.kG(W.className,"ytSubscribeButtonViewModelHost",(XH.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var RD,sF;return!((RD=v())==null||!RD.subscribed)&&((sF=W.animateWidth)==null?void 0:sF.call(W))&&K()},XH.ytSubscribeButtonViewModelHostHidden=function(){var RD;
return!((RD=v())==null?0:RD.subscribed)&&W.data().hideWhenUnsubscribed},XH)),
el:B,"on:yt-service-request-sent":lx},_.w(eOU,{backgroundLottieRef:Y,foregroundLottieRef:d,wrapperClass:_.kG("ytSubscribeButtonViewModelAnimatedActionWrapper",(wU.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var RD;return((RD=W.animateWidth)==null?void 0:RD.call(W))&&K()},wU.ytSubscribeButtonViewModelStaticWidth=function(){var RD;
return!((RD=W.animateWidth)==null?0:RD.call(W))},wU)),
disableAnimation:J},_.w("div",{el:z,class:"ytSubscribeButtonViewModelContainer"},_.w(_.uu,{data:g,icon:function(){return _.w(_.V,{cond:ux,then:function(){var RD=function(){var sF;return O10((sF=c())==null?void 0:sF.state)};
return _.w(_.V,{cond:function(){return J()||RD()!=="NOTIFICATIONS_NONE"},
then:function(){return _.w(_.hY,{icon:RD})},
else:function(){return _.w(y97,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:E})}})}})},
secondaryIconName:function(){return ux()?"EXPAND":void 0}}))),_.w("div",{el:G,
class:"ytSubscribeButtonViewModelInvisible"},_.w(_.V,{cond:function(){var RD;return((RD=W.animateWidth)==null?void 0:RD.call(W))&&!J()&&!a()},
then:function(){return _.w(_.uu,{data:_.r4(function(){var RD;return fgy({model:W.data(),subscribed:X2(),isOverlay:!((RD=W.isOverlay)==null||!RD.call(W)),element:B,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var RD;return WQ()?O10((RD=c())==null?void 0:RD.state):void 0},
secondaryIconName:function(){return WQ()?"EXPAND":void 0}})}})))},"M");
_.dJ.idomCompat=!0;var qyd=_.m(function(W){var B=W.data;var z=_.hg(pW8,function(){return B().subscriptionStateEntityKey});
return _.w(_.V,{cond:function(){var G=B(),Y=z();return!G.hideWhenUnsubscribed||(Y==null?0:Y.subscribed)?_.k(B().button,_.wP):void 0},
then:function(G){return _.w("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.w(_.ex,{data:G,buttonOverrides:function(){return{toggled:!0}}}))}})},"N");
qyd.idomCompat=!0;var ngH,pn;ngH=_.m(function(W){return _.w(_.Sc,{data:function(){return W.actionRow().actions}},{buttonViewModel:function(B){var z=B.data;
return _.w(pn,{isRow:W.isRow,isIconOnlyButton:function(){return D9X(z())},
useIntrinsicWidth:W.useIntrinsicWidth},_.w(_.ex,{data:z}))},
subscribeButtonViewModel:function(B){return _.w(pn,{isRow:W.isRow},_.w(_.dJ,{data:B.data,isOverlay:!1,animateWidth:function(){return!W.isRow()}}))},
downloadButtonViewModel:function(B){var z=B.data;return _.w(pn,{isRow:W.isRow,isIconOnlyButton:function(){return!!z().playlistId}},_.w(XpH,{data:z}))},
submitButtonViewModel:function(B){var z=B.data;return _.w(pn,{isRow:W.isRow,isIconOnlyButton:function(){var G=z();return D9X(_.k(G==null?void 0:G.button,_.wP))}},_.w(K3R,{data:z}))},
toggleButtonViewModel:function(B){var z=B.data;return _.w(pn,{isRow:W.isRow,isIconOnlyButton:function(){var G=z();return D9X(_.k(G.isToggled?G.toggledButtonViewModel:G.defaultButtonViewModel,_.wP))}},_.w(_.Y1,{data:z}))},
subscribePlusButtonViewModel:function(B){return _.w(pn,{isRow:W.isRow},_.w(qyd,{data:B.data}))}})},"O");
pn=_.m(function(W){var B={};return _.w("div",{class:_.kG("ytFlexibleActionsViewModelAction",(B.ytFlexibleActionsViewModelActionRowAction=W.isRow,B.ytFlexibleActionsViewModelActionIntrinsicWidth=W.useIntrinsicWidth,B.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,B.ytFlexibleActionsViewModelActionIconOnlyButton=W.isIconOnlyButton,B))},W.children)},"P");
_.AB=_.m(function(W){var B=function(){var G;return((G=W.layout)==null?void 0:G.call(W))===1},z={};
return _.w("yt-flexible-actions-view-model",{class:_.kG("ytFlexibleActionsViewModelHost",W.className,(z.ytFlexibleActionsViewModelInline=function(){return!B()},z.ytFlexibleActionsViewModelScrollable=function(){return W.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},z))},_.w(_.IJ,{each:function(){return W.data().actionsRows||[]}},function(G){return _.w(_.V,{cond:B,
then:function(){return _.w("div",{class:"ytFlexibleActionsViewModelActionRow"},_.w(ngH,{actionRow:G,isRow:B,useIntrinsicWidth:function(){return!!W.data().respectActionIntrinsicWidth}}))},
else:function(){return _.w(ngH,{actionRow:G,isRow:B})}})}))},"Q");_.Vm(_.AB,"yt-flexible-actions-view-model",{props:{data:_.kz,layout:_.kz,justifyContentOverride:_.kz,className:_.kz}});_.iq=_.m(function(W){var B=_.hg(NE,function(){var Y;return(Y=W.data().dislikeEntityKey)!=null?Y:""}),z=_.r4(function(){var Y=B();
return Y?Y.likeStatus==="DISLIKE":_.k(W.data().toggleButtonViewModel,_.Jw).isToggled},void 0,"fNr9he"),G=_.r4(function(){return Object.assign({},_.k(W.data().toggleButtonViewModel,_.Jw),{isToggled:z()})},void 0,"AezoCc");
return _.w("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.w(_.Y1,{data:G,buttonShapeOverrides:W.buttonShapeOverrideables,onToggle:function(Y){var d=B();d&&Y!==(d.likeStatus==="DISLIKE")&&d.key&&_.AV(_.ue("likeStatusEntity",d.key,{likeStatus:Y?"DISLIKE":"INDIFFERENT",hadUserInteraction:Y}))}}))},"R");
_.iq.idomCompat=!0;_.En=_.m(function(W){var B=_.r("web_supports_animations_api"),z=v2(function(P){var Z=J();if(!P){var l,b;return{numberText:(b=Z==null?void 0:(l=Z.likeCountIfIndifferent)==null?void 0:l.content)!=null?b:"",numberValue:Number(Z==null?void 0:Z.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var O;l=(Z==null?void 0:(O=Z.likeCountIfIndifferent)==null?void 0:O.content)!==P.numberText;if(v()||!l)return P;var K;return{numberText:(Z==null?void 0:(K=Z.likeCountIfIndifferent)==null?void 0:K.content)||
"",numberValue:Number(Z==null?void 0:Z.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!Z}}),G=v2(function(P){var Z=J();
if(!P){var l,b;return{numberText:(b=Z==null?void 0:(l=Z.likeCountIfLiked)==null?void 0:l.content)!=null?b:"",numberValue:Number(Z==null?void 0:Z.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var O;l=(Z==null?void 0:(O=Z.likeCountIfIndifferent)==null?void 0:O.content)!==P.numberText;if(v()||!l)return P;var K;return{numberText:(Z==null?void 0:(K=Z.likeCountIfLiked)==null?void 0:K.content)||"",numberValue:Number(Z==null?void 0:Z.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!Z}}),Y=_.A(_.g4(void 0,
void 0,"xldjge")),d=Y.next().value,E=Y.next().value,v=d,c=_.hg(NE,function(){var P,Z;
return(Z=(P=W.data())==null?void 0:P.likeStatusEntityKey)!=null?Z:""}),J=_.hg(KiR,function(){var P,Z;
return((P=W.likeCountEntity)==null?void 0:(Z=P.call(W))==null?void 0:Z.key)||""}),g=_.r4(function(){var P;
return((P=c())==null?void 0:P.likeStatus)==="LIKE"},void 0,"B3od5e"),t=function(){var P;
return B&&!((P=W.likeCountEntity)==null||!P.call(W))};
return _.w("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.w(_.Y1,{data:function(){var P=Object,Z=P.assign,l;var b=_.k((l=W.data())==null?void 0:l.toggleButtonViewModel,_.Jw);return Z.call(P,{},b||{},{isToggled:g()})},
buttonShapeOverrides:W.buttonShapeOverrideables,animatedTextPropsDefault:function(){return t()?z():void 0},
animatedTextPropsToggled:function(){return t()?G():void 0},
onToggle:function(P){QUy(P,c(),v(),E)},
style:function(){var P;return((P=W.disableIconAnimation)==null?0:P.call(W))?void 0:{animateIcon:"true"}}}))},"S");
_.En.idomCompat=!0;var Npd=_.m(function(W){var B=function(){return _.k(W.data().likeButtonViewModel,_.Y3)},z=function(){var Y;
return((Y=B())==null?void 0:Y.likeStatusEntityKey)||""},G=_.r4(function(){var Y,d;
var E=(d=_.hg(NE,z)())!=null?d:(Y=B())==null?void 0:Y.likeStatusEntity;Y=W.data();var v;Y=(Y==null?void 0:(v=Y.timedAnimationData)==null?void 0:v.animationTiming)||[];return{uniqueId:"like-dislike",timings:Y,enabled:(E==null?void 0:E.likeStatus)==="INDIFFERENT"&&Y.length>0,experimentEnabled:Y.length>0}},void 0,"wEl1fe");
return _.w("segmented-like-dislike-button-view-model",{class:_.kG("ytSegmentedLikeDislikeButtonViewModelHost",W.className),"button-renderer":!0},_.w(H1u,{settings:G},_.w("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.w(_.V,{cond:B,then:function(Y){return _.w(_.En,{data:Y,likeCountEntity:function(){return W.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.w(_.V,{cond:function(){return _.k(W.data().dislikeButtonViewModel,_.G3)},
then:function(Y){return _.w(_.iq,{data:Y,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"T");
Npd.idomCompat=!0;_.Vm(Npd,"segmented-like-dislike-button-view-model",{props:{data:_.kz,className:_.kz}});var $9d=_.m(function(W){var B=W.data;var z=W.className;var G=W.setMinWidth;var Y=W.forceIconOnly;var d=_.LG("account-link-button-view-model"),E=_.hg(_.y9u,function(){var P;return(P=B().accountLinkStatusEntityKey)!=null?P:""}),v=_.hg(_.y9u,function(){var P;
return(P=B().accountLinkStatusSecondaryEntityKey)!=null?P:""}),c=function(){if(!_.r("web_account_link_secondary_killswitch")){var P,Z;
return((P=E())==null?void 0:P.linked)||((Z=v())==null?void 0:Z.linked)}var l;return(l=E())==null?void 0:l.linked};
_.ja(function(){var P=E();if(P){var Z=LNu(new $zM,nyF(new qWR,!!P.linked));_.Zp().then(function(l){l&&(l.setAccountLinkState(_.Ob(Z.JSC$12171_serializeBinary(),4)),l.updateAccountLinkingConfig(!!P.linked))})}},"IvZF7");
var J=function(){return _.k(B().toggleButtonViewModel,_.Jw)};
_.$E("yt-signal-action-show-account-link-dialog",function(){if(J()){var P=c()?J().toggledButtonViewModel:J().defaultButtonViewModel;P=_.k(P,_.wP);var Z;if((Z=E())==null?0:Z.isWarning){Z=_.k(B().warningButtonViewModel,_.wP);if(!Z){_.nx(Error("Gh"));return}P=Z}var l;(Z=_.$B((l=P)==null?void 0:l.onTap))&&_.s2([Z],d.value)}else _.nx(Error("Hh"))});
var g=function(){var P=J();return Object.assign({},P,{isToggled:c()})},t=function(){return(Y==null?0:Y())?{iconPosition:"icon-only"}:{}};
return _.w("account-link-button-view-model",{class:_.kG("ytwAccountLinkButtonViewModelHost",z,function(){return(G==null?0:G())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:d,"button-renderer":!0},_.w("div",null,_.w(_.V,{cond:function(){var P;if((P=E())==null?0:P.isWarning)return(P=_.k(B().warningButtonViewModel,_.wP))||_.nx(Error("Gh")),P},
then:function(P){return _.w(_.ex,{data:P,buttonOverrides:t})},
else:function(){return _.w(_.Y1,{data:g,buttonShapeOverrides:t})}})))},"U");_.Vm($9d,"account-link-button-view-model",{props:{data:_.kz,className:_.wS,setMinWidth:_.wS,forceIconOnly:_.wS}});_.eX("menuRenderer","menuRenderer","ytd-menu-renderer");
var L3R={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"}},
U94=_.r("web_fix_missing_action_buttons")?100:200,To=function(){var W=_.S.apply(this,arguments)||this;W.safeArea=!_.r("kevlar_flex_menu_safe_area_killswitch");W.tonalOverride=!1;W.threeDotSize="M";W.isOverlay=!1;W.useOverlayDark=!1;W.topLevelIconsOnly=!1;W.JSC$14646_lastWidth=0;W.maybeUpdateFlexibleMenu=function(){_.r("web_fix_missing_action_buttons")?requestAnimationFrame(W.maybeUpdateFlexibleMenuImpl):W.maybeUpdateFlexibleMenuImpl()};
W.maybeUpdateFlexibleMenuImpl=function(){var B;if((B=W.data)!=null&&B.flexibleItems){W.maybeFlushDebouncer();B=W.hostElement.clientWidth;var z=B>W.JSC$14646_lastWidth,G,Y=((G=W.topLevelButtonsContainer)==null?void 0:G.scrollHeight)||0,d;G=((d=W.flexibleItemButtonsContainer)==null?void 0:d.scrollHeight)||0;d=W.hostElement.scrollHeight>Math.max(Y,G)+8;z?(W.resetFlexibleItems(),W.JSC$14646_lastWidth=W.hostElement.clientWidth,W.maybeUpdateFlexibleMenu()):d&&(W.shrinkFlexibleMenu(),W.JSC$14646_lastWidth=
B)}};
W.computeThreeDotButtonShape=function(){if(W.tonalOverride)return Object.assign({},{onTap:function(){W.onOverflowTap()},
iconPosition:"icon-only",style:W.isOverlay?W.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:W.threeDotSize,state:"active",accessibilityLabel:W.computeAccessibilityLabel(W.data)},W.threeDotButtonOverride)};
W.onOverflowTap=function(){if(W.data.fetchMenuCommand)_.dO().resolve(_.p4).resolveCommand(W.data.fetchMenuCommand,{form:{element:W.hostElement}});else if(W.data.isDisabled&&W.data.disabledCommand)_.oB(W.data.disabledCommand,W.hostElement);else{var B=W.createMenuRendererVe(),z={items:W.items};W.data.menuPopupAccessibility&&(z.menuPopupAccessibility=W.data.menuPopupAccessibility);W.data.footer&&(z.footer=W.data.footer);B={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:z},veData:B}};
_.dO().resolve(_.BD).openSheet({openPopupActionCommand:B},W.hostElement)}};
return W};
_.C(To,_.S);_.p=To.prototype;_.p.updateButtonOverrides=function(){if(!_.r("menu_renderer_label_update_upkillswitch")){var W=_.tH(this.hostElement).querySelector("yt-button-view-model");W&&(W.buttonOverrides=this.buttonOverrides)}};
_.p.computeHasItems=function(){var W;return((W=this.topLevelButtonData)==null?void 0:W.length)||this.hasFlexibleItems};
_.p.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.p.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.kw(this.hostElement,{"--ytd-menu-renderer-button-color":_.M_(this.data.iconColor)}))};
_.p.onStamperFinished=function(){this.JSC$14646_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.p.setupFlexibleMenu=function(){var W=this,B;(B=this.data)!=null&&B.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.an(this.maybeUpdateFlexibleMenu,U94,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){W.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))};
_.p.maybeFlushDebouncer=function(){if(_.r("web_replace_formatted_with_attributed_string")){var W;(W=this.topLevelButtons)==null||W.forEach(function(z){var G;(z=(G=z.getElementsByTagName("yt-attributed-string"))==null?void 0:G[0])&&GYv(z)});
var B;(B=this.flexibleItemButtons)==null||B.forEach(function(z){var G;(z=(G=z.getElementsByTagName("yt-attributed-string"))==null?void 0:G[0])&&GYv(z)})}};
_.p.resetFlexibleItems=function(){var W;if((W=this.data)!=null&&W.flexibleItems){_.r("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var B;this.flexAsTopLevelButtons=(B=this.data.flexibleItems)==null?void 0:B.map(function(z){return _.k(z,_.Ci6).topLevelButton});
_.r("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.p.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.p.shrinkFlexibleMenu=function(){var W;(W=this.flexAsTopLevelButtons)!=null&&W.length&&(this.flexAsTopLevelButtons=[].concat(_.u7(this.flexAsTopLevelButtons.slice(0,-1))))};
_.p.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:L3R,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:L3R,events:!0}}};
_.p.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.p.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.p.detached=function(){this.icon="MORE_VERT"};
_.p.computeTopLevelButtonData=function(W){if(!W)return[];var B;W=(B=W==null?void 0:W.topLevelButtons)!=null?B:[];return _.mP.unsafeClone([].concat(_.u7(W)))};
_.p.computeItems=function(W,B){if(!W)return[];var z=[];if(B){var G=(W.flexibleItems||[]).map(function(E){return _.k(E,_.Ci6)});
G=_.A(G);for(var Y=G.next();!Y.done;Y=G.next())Y=Y.value,B.includes(Y.topLevelButton)||(Y=Y.menuItem)&&z.push(Y)}var d;W=(d=W==null?void 0:W.items)!=null?d:[];return[].concat(_.u7(z),_.u7(W))};
_.p.computeMenuActive=function(W,B){return W||B};
_.p.onPopupOpened=function(){this.overlayOpen=!0;_.v0(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.p.onPopupClosed=function(){this.overlayOpen=!1;_.v0(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.p.onPopupCanceled=function(){this.overlayOpen=!1;_.v0(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.p.computeAccessibilityLabel=function(W){return this.get("accessibility.accessibilityData.label",W)};
_.p.isHidden=function(W,B){return this.tonalOverride||!W?!0:W.fetchMenuCommand||W.isDisabled&&W.disabledCommand?!1:!(B==null?0:B.length)};
_.p.isModernOverflowHidden=function(W,B){return this.tonalOverride&&W?W.fetchMenuCommand?!1:!(B==null?0:B.length):!0};
_.p.createMenuRendererVe=function(){var W=this.data.trackingParams,B=_.m1(),z=_.et();return W&&B&&z?(W=_.XF(W),z=_.PA(7591),_.r("combine_ve_grafts")?_.ui(_.SK(),z,W):_.$q(B,W,z),z):null};
_.G5.Object.defineProperties(To.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.flexAsTopLevelButtons)==null||!W.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
To.prototype.onPopupCanceled=To.prototype.onPopupCanceled;To.prototype.onPopupClosed=To.prototype.onPopupClosed;To.prototype.onPopupOpened=To.prototype.onPopupOpened;To.prototype.tonalOverrideChanged=To.prototype.tonalOverrideChanged;To.prototype.resetFlexibleItems=To.prototype.resetFlexibleItems;To.prototype.setupFlexibleMenu=To.prototype.setupFlexibleMenu;To.prototype.iconButtonColorChanged=To.prototype.iconButtonColorChanged;To.prototype.updateButtonOverrides=To.prototype.updateButtonOverrides;
_.Q([_.h(_.oY),_.y("design:type",Object)],To.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],To.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.Hf("#button-shape"),_.y("design:type",HTMLElement)],To.prototype,"buttonShape",void 0);_.Q([_.Hf("#button"),_.y("design:type",Object)],To.prototype,"button",void 0);
_.Q([_.F(),_.y("design:type",Object)],To.prototype,"data",void 0);_.Q([_.F({computed:"computeTopLevelButtonData(data)"}),_.y("design:type",Array)],To.prototype,"topLevelButtonData",void 0);_.Q([_.F(),_.y("design:type",Array)],To.prototype,"flexAsTopLevelButtons",void 0);_.Q([_.F({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.y("design:type",Array)],To.prototype,"items",void 0);_.Q([_.F({value:"MORE_VERT"}),_.y("design:type",String)],To.prototype,"icon",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],To.prototype,"safeArea",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.y("design:type",Boolean)],To.prototype,"menuActive",void 0);_.Q([_.F(),_.y("design:type",Boolean)],To.prototype,"menuFocused",void 0);_.Q([_.F({value:"bottom"}),_.y("design:type",String)],To.prototype,"buttonTooltipPosition",void 0);_.Q([_.F(),_.y("design:type",Boolean)],To.prototype,"overlayOpen",void 0);
_.Q([_.F({value:!0}),_.y("design:type",Boolean)],To.prototype,"forceIconButton",void 0);_.Q([_.F(),_.y("design:type",Boolean)],To.prototype,"styleActionButton",void 0);_.Q([_.F(),_.y("design:type",Boolean)],To.prototype,"disableTextTransformOnButtons",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],To.prototype,"tonalOverride",void 0);_.Q([_.F(),_.y("design:type",Object)],To.prototype,"threeDotSize",void 0);
_.Q([_.F(),_.y("design:type",Object)],To.prototype,"threeDotButtonOverride",void 0);_.Q([_.F(),_.y("design:type",Object)],To.prototype,"isOverlay",void 0);_.Q([_.F(),_.y("design:type",Object)],To.prototype,"useOverlayDark",void 0);_.Q([_.F({computed:"computeButtonOverride(tonalOverride)"}),_.y("design:type",Object)],To.prototype,"buttonOverride",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],To.prototype,"hasCustomIconColor",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("flexAsTopLevelButtons"),_.y("design:type",Object),_.y("design:paramtypes",[])],To.prototype,"hasFlexibleItems",null);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.y("design:type",Boolean)],To.prototype,"hasItems",void 0);_.Q([_.F(),_.y("design:type",Object)],To.prototype,"topLevelIconsOnly",void 0);
_.Q([_.oN("topLevelIconsOnly"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],To.prototype,"updateButtonOverrides",null);_.Q([_.H("topLevelIconsOnly"),_.y("design:type",Object),_.y("design:paramtypes",[])],To.prototype,"buttonOverrides",null);_.Q([_.Hf("#top-level-buttons-computed"),_.y("design:type",HTMLElement)],To.prototype,"topLevelButtonsContainer",void 0);_.Q([_.F4(".top-level-buttons > *"),_.y("design:type",Array)],To.prototype,"topLevelButtons",void 0);
_.Q([_.Hf("#flexible-item-buttons"),_.y("design:type",HTMLElement)],To.prototype,"flexibleItemButtonsContainer",void 0);_.Q([_.F4("#flexible-item-buttons > *"),_.y("design:type",Array)],To.prototype,"flexibleItemButtons",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],To.prototype,"iconButtonColorChanged",null);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],To.prototype,"setupFlexibleMenu",null);_.Q([_.jJ("topLevelIconsOnly"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],To.prototype,"resetFlexibleItems",null);_.Q([_.oN("tonalOverride"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],To.prototype,"tonalOverrideChanged",null);
_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],To.prototype,"onPopupOpened",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],To.prototype,"onPopupClosed",null);_.Q([_.IN("yt-popup-canceled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],To.prototype,"onPopupCanceled",null);
_.D(To,"ytd-menu-renderer",function(){if(VHR===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);VHR=W}W=VHR;return W},{mode:2});var MHQ;var agM;_.vD=_.m(function(W){var B=W.data;var z=function(){if(B().icon)a:{var Y={iconName:B().icon};for(var d=_.dO().resolve(_.C8),E=_.A([12,24]),v=E.next();!v.done;v=E.next()){var c=v.value;v=Object.assign({},Y,{iconStyle:"youtube_fill",iconSize:c});c=Object.assign({},Y,{iconStyle:"youtube_outline",iconSize:c});if(d.resolveIcon(v)){Y=v;break a}if(d.resolveIcon(c)){Y=c;break a}}Y=void 0}else Y=void 0;return Y};
W={};var G={};return _.w("badge-shape",{class:_.kG("yt-badge-shape",function(){return U9r(B().type)},(W["yt-badge-shape--overlay"]=function(){return B().isOverlay},W["yt-badge-shape--ads-include-dot"]=function(){return B().adsIncludeDot},W["yt-badge-shape--thumbnail-badge"]=function(){a:switch(B().type){case 17:case 18:case 19:var Y=!0;
break a;default:Y=!1}return Y},W["yt-badge-shape--status-badge"]=function(){a:switch(B().type){case 12:case 13:case 14:case 15:case 16:var Y=!0;
break a;default:Y=!1}return Y},W["yt-badge-shape--no-text"]=function(){return!B().text},W["yt-badge-shape--modern"]=function(){return B().modern||_.r("web_modern_badge_shape")},W)),
style:_.oK({"background-color":function(){var Y;return(Y=B().customColors)==null?void 0:Y.backgroundColor}}),
role:function(){return B().accessibilityText?"img":void 0},
"aria-label":function(){return B().accessibilityText}},_.w(_.V,{cond:function(){return B().animation},
then:function(Y){return _.w(_.q8,{className:"yt-badge-shape__icon",data:Y,animationName:function(){return Y().animationConfig.name||""}})}}),_.w(_.V,{cond:function(){var Y;
return z()&&!((Y=B())==null?0:Y.animation)},
then:function(){return _.w("div",{class:"yt-badge-shape__icon"},_.w(rO2,{data:function(){return z()}}))}}),_.w("div",{class:_.kG("yt-badge-shape__text",(G["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(B().numBadgesInRow||0)>1},G))},function(){var Y;
return(Y=B())==null?void 0:Y.text}))},"V");
_.vD.idomCompat=!0;_.Vm(_.vD,"badge-shape",{props:{data:_.kz}});var cD=function(){var W=_.S.apply(this,arguments)||this;W.systemIcons=_.r("kevlar_system_icons");W.animated=_.r("animated_live_badge_icon");W.useBadgeShape=_.r("web_badge_shape_defrag");return W};
_.C(cD,_.S);_.p=cD.prototype;_.p.addTooltips=function(){for(var W=_.tH(this.hostElement).querySelectorAll(".badge"),B=0,z;z=W[B++];){var G=this.repeatElement.itemForElement(z);z=_.tH(z);z.lastChild&&z.lastChild.is==="tp-yt-paper-tooltip"&&z.removeChild(z.lastChild);if(G=G.metadataBadgeRenderer&&G.metadataBadgeRenderer.tooltip){var Y=_.H7("tp-yt-paper-tooltip");(0,_.r5)(Y).textContent=G;Y.setAttribute("position","top");Y.setAttribute("aria-hidden","true");z.appendChild(Y)}}};
_.p.badgesChanged=function(){var W=this;_.J5().parkOrScheduleJob(function(){W.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.p.standaloneRoundedBadgeChanged=function(){var W=this.useRoundedBadge?this.useRoundedBadge:void 0;W&&(this.useRoundedBadge=W)};
_.p.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.p.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.p.computeStyle=function(W){_.r("enable_html5_teal_ad_badge")&&W==="BADGE_STYLE_TYPE_AD"&&(W="badge-style-type-ad-alternate");_.r("kevlar_ytb_live_badges")&&W==="BADGE_STYLE_TYPE_LIVE_NOW"&&(W="badge-style-type-live-now-alternate");return W?W.toLowerCase().replace(/_/g,"-"):""};
_.p.computeRole=function(W){return this.computeAriaLabel(W)?"img":"status"};
_.p.computeAriaLabel=function(W){var B;return(W==null?void 0:(B=W.accessibilityData)==null?void 0:B.label)||(W==null?void 0:W.label)};
_.p.computeBadgeShape=function(W){if(W){var B,z;var G=$9R(W.style);var Y=L3x(W.style),d=W.label,E=((B=W.accessibilityData)==null?void 0:B.label)||W.label;a:switch(W.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":B=!0;break a;default:B=!1}var v=(z=W.icon)==null?void 0:z.iconType;a:switch(W.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":W=!0;break a;default:W=!1}G={type:G,brNzRatingBadgeType:Y,text:d,accessibilityText:E,
isOverlay:B,icon:v!=="PREMIUM"?v:void 0,modern:_.r("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:W}}else G={};return G};
_.p.updateComputedBadges=function(W,B,z){var G=this;(B=B?[B]:z?[z]:void 0)?this.computedBadges=B:this.computedBadges=W==null?void 0:W.filter(function(Y){var d;if((d=Y.metadataBadgeRenderer)==null?0:d.groups){d=!1;Y=_.A(Y.metadataBadgeRenderer.groups);for(var E=Y.next();!E.done;E=Y.next()){E=E.value;var v=void 0;d=d||((v=G.hiddenBadgeGroups)==null?void 0:v.includes(E))}return!d}return!0})};
_.p.useFilledIcons=function(W){return _.r("kevlar_system_icons")&&(W==="AUDIO_BADGE"||W==="CHECK_CIRCLE_THICK"||W==="OFFICIAL_ARTIST_BADGE"||W==="SPONSORSHIP_STAR"||W==="PERSON_RADAR_FILLED"||W==="PERSON_RADAR")};
_.p.computeBadgeShapeStyle=function(W){return this.useBadgeShape?W==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||W==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.p.computeIcon=function(W){var B,z;W=W==null?void 0:(B=W.metadataBadgeRenderer)==null?void 0:(z=B.icon)==null?void 0:z.iconType;if(W!=="PREMIUM"&&W)return _.lg(W)};
_.p.computeStandaloneBadge=function(W){var B;W=W==null?void 0:(B=W.icon)==null?void 0:B.iconType;return W==="PREMIUM_STANDALONE"||W==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
cD.prototype.hiddenBadgeGroupsChanged=cD.prototype.hiddenBadgeGroupsChanged;cD.prototype.standaloneBadgeChanged=cD.prototype.standaloneBadgeChanged;cD.prototype.standaloneRoundedBadgeChanged=cD.prototype.standaloneRoundedBadgeChanged;cD.prototype.badgesChanged=cD.prototype.badgesChanged;_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],cD.prototype,"hidden",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],cD.prototype,"componentBehavior",void 0);
_.Q([_.F(),_.y("design:type",Array)],cD.prototype,"badges",void 0);_.Q([_.F(),_.y("design:type",Object)],cD.prototype,"topStandaloneBadge",void 0);_.Q([_.F(),_.y("design:type",Object)],cD.prototype,"bottomStandaloneBadge",void 0);_.Q([_.F(),_.y("design:type",Object)],cD.prototype,"computedBadges",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],cD.prototype,"mediumFontAdBadge",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],cD.prototype,"useRoundedBadge",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],cD.prototype,"largeFontAdBadge",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],cD.prototype,"overlayAd",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],cD.prototype,"overlayPremium",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],cD.prototype,"noDotAdBadge",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],cD.prototype,"collectionTruncate",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],cD.prototype,"isThumbnailBadge",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],cD.prototype,"wrapBadges",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Number)],cD.prototype,"numBadgesInRow",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],cD.prototype,"systemIcons",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],cD.prototype,"animated",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],cD.prototype,"useBadgeShape",void 0);_.Q([_.F({value:[]}),_.y("design:type",Array)],cD.prototype,"hiddenBadgeGroups",void 0);_.Q([_.Hf("#repeat"),_.y("design:type",QU)],cD.prototype,"repeatElement",void 0);_.Q([_.jJ("badges"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cD.prototype,"badgesChanged",null);
_.Q([_.jJ("useRoundedBadge"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cD.prototype,"standaloneRoundedBadgeChanged",null);_.Q([_.jJ("topStandaloneBadge","bottomStandaloneBadge"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cD.prototype,"standaloneBadgeChanged",null);_.Q([_.jJ("hiddenBadgeGroups"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cD.prototype,"hiddenBadgeGroupsChanged",null);
_.Q([_.u({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],cD);
var RO9=_.sV()(cD,"ytd-badge-supported-renderer",function(){if(agM===void 0){var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);agM=W}W=agM;return W},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.PJ("kevlar_poly_si_batch_j053")?1:2});var wJ=function(){var W=_.S.apply(this,arguments)||this;W.iconType="STAR";W.standardizeIconSize=_.r("kevlar_system_icons");W.mediaHoverOverlayInitialVisibility=_.r("enable_top_landscape_image_button_command_web");W.noBottomMargin=!1;W.thumbnailObjectFit="CONTAIN";W.thumbnailFitHeight=!0;W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.C(wJ,_.S);_.p=wJ.prototype;
_.p.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"}}}};
_.p.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",wJ.JSC$14658_DEFAULT_CLICK_LOCATION_BEHAVIOR,wJ.JSC$14658_CLICK_LOCATION_ID_MAP))};
_.p.onTap=function(W){if(!_.r("use_on_click_for_desktop_display_ad"))this.onTapOrClick(W)};
_.p.onClick=function(W){if(_.r("use_on_click_for_desktop_display_ad"))this.onTapOrClick(W)};
_.p.onTapOrClick=function(W){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,W,!1)};
_.p.updateMediaBackgroundImage=function(){var W=this.get("data.image.thumbnail.thumbnails");W&&(W=_.JY(W,0))&&_.kw(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+W+")"})};
_.p.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var W=0;W<this.data.impressionEndpoints.length;W++){var B=this.data.impressionEndpoints[W];B.clickTrackingParams&&delete B.clickTrackingParams;_.dO().resolve(_.p4).resolveCommand(B,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var z;((z=this.data)==null?0:z.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.p.handleMuteAd=function(){};
_.p.attached=function(){var W=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.G5.Object.defineProperties(wJ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.titleText)return"";var B;return _.kq("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((B=this.data)==null?void 0:B.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.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 W;return!((W=this.data)==null||!W.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"}}});
wJ.prototype.onClick=wJ.prototype.onClick;wJ.prototype.onTap=wJ.prototype.onTap;wJ.prototype.dataChanged=wJ.prototype.dataChanged;
wJ.JSC$14658_CLICK_LOCATION_ID_MAP=_.r("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"]]);
wJ.JSC$14658_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.r("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"}];_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],wJ.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.c$),_.y("design:type",Object)],wJ.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],wJ.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.Sv.YtSparklesClickLocationBehavior),_.y("design:type",Object)],wJ.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.h(E7),_.y("design:type",Object)],wJ.prototype,"ytdActiveViewBehavior",void 0);_.Q([_.h([_.ye.YtActionHandlerBehavior]),_.y("design:type",Object)],wJ.prototype,"actionHandlerBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],wJ.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],wJ.prototype,"clickCommand",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.eL}),_.y("design:type",Boolean)],wJ.prototype,"miniMode",void 0);_.Q([_.F(),_.y("design:type",String)],wJ.prototype,"iconType",void 0);_.Q([_.H("data.titleText"),_.y("design:type",String),_.y("design:paramtypes",[])],wJ.prototype,"titleAriaLabel",null);
_.Q([_.H("data.rating"),_.y("design:type",Object),_.y("design:paramtypes",[])],wJ.prototype,"getRating",null);_.Q([_.H("data.price"),_.y("design:type",Object),_.y("design:paramtypes",[])],wJ.prototype,"getPrice",null);_.Q([_.H("data.thirdLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],wJ.prototype,"getThirdLine",null);_.Q([_.H("data.fourthLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],wJ.prototype,"getFourthLine",null);
_.Q([_.H("data.fifthLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],wJ.prototype,"getFifthLine",null);_.Q([_.H("getRating"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wJ.prototype,"computeRatingHidden",null);_.Q([_.H("getPrice"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wJ.prototype,"computePriceHidden",null);_.Q([_.H("getThirdLine"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wJ.prototype,"computeThirdLineHidden",null);
_.Q([_.H("getFourthLine"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wJ.prototype,"computeFourthLineHidden",null);_.Q([_.H("getFifthLine"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wJ.prototype,"computeFifthLineHidden",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.energyIcon"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wJ.prototype,"hasEnergyIcon",null);
_.Q([_.H("computePriceHidden","computeRatingHidden"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wJ.prototype,"computeSecondaryTextHidden",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],wJ.prototype,"standardizeIconSize",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],wJ.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],wJ.prototype,"noBottomMargin",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.layout"),_.y("design:type",String),_.y("design:paramtypes",[])],wJ.prototype,"layout",null);_.Q([_.H("data.layout"),_.y("design:type",Object),_.y("design:paramtypes",[])],wJ.prototype,"mediaThumbnailWidth",null);_.Q([_.H("layout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wJ.prototype,"useRoundedBadge",null);_.Q([_.F(),_.y("design:type",String)],wJ.prototype,"thumbnailObjectFit",void 0);
_.Q([_.F(),_.y("design:type",Object)],wJ.prototype,"thumbnailFitHeight",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wJ.prototype,"dataChanged",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],wJ.prototype,"onTap",null);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],wJ.prototype,"onClick",null);
_.Q([_.u({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],wJ);
_.D(wJ,"ytd-display-ad-renderer",function(){if(MHQ!==void 0)return MHQ;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return MHQ=W},{mode:1});var WKF;var BgU;var zFM;var MHy=new Map;var Gj9=!1;var V7=function(){var W=_.S.apply(this,arguments)||this;W.DEFAULT_TOOLTIP_OFFSET="10";W.TOOLTIP_OFFSET_NO_BANNER="-8";W.badges=null;W.noEndpoints=!1;W.wrapText=!1;W.forceVerified=!1;W.tooltipPosition="top";W.compactStyle=!1;W.height=0;W.lineHeight=0;return W};
_.C(V7,_.S);_.p=V7.prototype;_.p.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.p.attached=function(){var W=this;this.observer=new MutationObserver(function(B,z){W.handleResized();z.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.p.detached=function(){this.observer&&this.observer.disconnect()};
_.p.logTooltipEvent=function(){_.r("kevlar_wiz_tooltip_event_killswitch")||Gj9||(_.agt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),Gj9=!0)};
_.p.handleWindowResized=function(){this.handleResized()};
_.p.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")))};
_.p.onHeightChanged=function(){if(this.verified){var W=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.eD("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=W:this.textContainerEl.style.marginRight=W}};
_.p.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.eD("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.p.handleResized=function(){var W=this;this.verified&&_.fg.addLowPriorityJob(function(){W.fitBackgroundToText();var B=getComputedStyle(W.hostElement).lineHeight;B&&(B=B.match(/\d+/))&&B.length&&(W.lineHeight=Number(B[0]));W.height=W.lineHeight&&!W.wrapText?W.lineHeight:W.textEl.offsetHeight})};
_.p.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var W=document.createRange(),B=_.tH(this.textEl).children;B.length>0?W.selectNodeContents(B[0]):W.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(W.getBoundingClientRect().width)+"px"}};
_.p.computeChannelBadgeStyle=function(W){var B;if((W==null?0:(B=W.runs)==null?0:B.length)&&W.runs[0].textColor)return"--ytd-badge-icon-color:"+_.M_(W.runs[0].textColor)+";"};
_.G5.Object.defineProperties(V7.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"?_.Bg(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var W=this.get("badges.0.metadataBadgeRenderer.tooltip");if(W)return W}return _.zR(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
V7.prototype.onLineHeightChanged=V7.prototype.onLineHeightChanged;V7.prototype.onHeightChanged=V7.prototype.onHeightChanged;V7.prototype.onChannelNameChanged=V7.prototype.onChannelNameChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],V7.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],V7.prototype,"badges",void 0);_.Q([_.F(),_.y("design:type",Object)],V7.prototype,"channelName",void 0);
_.Q([_.F(),_.y("design:type",Object)],V7.prototype,"noEndpoints",void 0);_.Q([_.F(),_.y("design:type",Object)],V7.prototype,"wrapText",void 0);_.Q([_.F(),_.y("design:type",Object)],V7.prototype,"forceVerified",void 0);_.Q([_.F(),_.y("design:type",Object)],V7.prototype,"tooltipPosition",void 0);_.Q([_.F(),_.y("design:type",String)],V7.prototype,"tooltip",void 0);_.Q([_.F(),_.y("design:type",Boolean)],V7.prototype,"hasChannelArt",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],V7.prototype,"compactStyle",void 0);_.Q([_.Hf("#text-container"),_.y("design:type",HTMLElement)],V7.prototype,"textContainerEl",void 0);_.Q([_.Hf("#text"),_.y("design:type",Object)],V7.prototype,"textEl",void 0);_.Q([_.Hf("#verified-tooltip"),_.y("design:type",HTMLElement)],V7.prototype,"verifiedTooltip",void 0);_.Q([_.F(),_.y("design:type",Object)],V7.prototype,"height",void 0);
_.Q([_.F(),_.y("design:type",Object)],V7.prototype,"lineHeight",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("badges","forceVerified"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],V7.prototype,"verified",null);_.Q([_.H("badges","verified"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],V7.prototype,"hideBadges",null);_.Q([_.H("channelName"),_.y("design:type",Object),_.y("design:paramtypes",[])],V7.prototype,"formattedName",null);
_.Q([_.H("badges","verified","formattedName"),_.y("design:type",String),_.y("design:paramtypes",[])],V7.prototype,"tooltipText",null);_.Q([_.H("hasChannelArt"),_.y("design:type",String),_.y("design:paramtypes",[])],V7.prototype,"tooltipOffset",null);_.Q([_.oN("channelName"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],V7.prototype,"onChannelNameChanged",null);
_.Q([_.oN("height"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],V7.prototype,"onHeightChanged",null);_.Q([_.oN("lineHeight","height"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],V7.prototype,"onLineHeightChanged",null);_.Q([_.u({is:"ytd-channel-name",disableElementRegistration:!0})],V7);
_.D(V7,"ytd-channel-name",function(){if(zFM!==void 0)return zFM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return zFM=W},{mode:_.PJ("kevlar_poly_si_batch_j036")?1:2});var JB=function(){var W=_.S.apply(this,arguments)||this;W.standardizeIconSize=_.r("kevlar_system_icons");return W};
_.C(JB,_.S);JB.prototype.basicPaletteChanged=function(){var W;(W=this.data.color)!=null&&W.basicColorPaletteData&&_.Ky(this.hostElement,this.data.color.basicColorPaletteData)};
JB.prototype.useFilledIcons=function(W){return _.r("kevlar_system_icons")&&(W==="CHECK_CIRCLE_THICK"||W==="OFFICIAL_ARTIST_BADGE")};
_.G5.Object.defineProperties(JB.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return this.data.authorCreator||((W=this.data)==null?void 0:(B=W.color)==null?void 0:(z=B.basicColorPaletteData)==null?void 0:z.backgroundColor)}}});
JB.prototype.basicPaletteChanged=JB.prototype.basicPaletteChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],JB.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],JB.prototype,"standardizeIconSize",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data.authorUnifiedVerified"),_.y("design:type",Object),_.y("design:paramtypes",[])],JB.prototype,"verified",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],JB.prototype,"creator",null);_.Q([_.oN("data.color.basicColorPaletteData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JB.prototype,"basicPaletteChanged",null);_.Q([_.u({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],JB);
_.D(JB,"ytd-author-comment-badge-renderer",function(){if(BgU!==void 0)return BgU;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return BgU=W},{mode:1});var Y3u;var gJ=function(){return _.S.apply(this,arguments)||this};
_.C(gJ,_.S);gJ.prototype.computeThumbnailWidth=function(W){if(W==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],gJ.prototype,"data",void 0);_.Q([_.F({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],gJ.prototype,"icon",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],gJ.prototype,"surface",void 0);
_.Q([_.F({reflectToAttribute:!0,value:_.r("enable_shrink_image_size_on_web_posts_singleton")}),_.y("design:type",Boolean)],gJ.prototype,"searchSxsUx",void 0);_.Q([_.u({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],gJ);
_.D(gJ,"ytd-backstage-image-renderer",function(){if(Y3u!==void 0)return Y3u;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Y3u=W},{mode:1});var dYD;var tB=function(){var W=_.S.apply(this,arguments)||this;W.isLoading=!1;W.selectedItemIndex=-1;return W};
_.C(tB,_.S);_.p=tB.prototype;_.p.computeIsChannelOwner=function(W){if(!W)return!0;W=W[0];return!(W&&(W.signinEndpoint||W.selectServiceEndpoint))};
_.p.computeIsImagePoll=function(W){return(W==null?void 0:W.type)==="POLL_TYPE_IMAGE"};
_.p.computeIsTotalVotesDisabled=function(W){return!(W==null?0:W.totalVotes)};
_.p.thumbnailSrc=function(W){var B,z,G,Y;return(W==null?0:(B=W.thumbnails)==null?0:(z=B[0])==null?0:z.url)?_.yN((G=W.thumbnails)==null?void 0:(Y=G[0])==null?void 0:Y.url):void 0};
_.p.progressWidth=function(W){return"width:"+(W?W*100:0)+"%;"};
_.p.textAreaWidth=function(W){return this.isImagePoll?null:"width:"+(W?W*100:0)+"%;"};
_.p.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.p.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var W=this.data.choices,B=0;B<W.length;B++)if(W[B].selected){this.selectedItemIndex=B;break}};
_.p.onPopupClosed=function(W,B){W=Number(this.pollVotes.selected);B.confirmed&&(this.selectChoice(W,!1),_.c0(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.p.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.p.onYtCommentPollRevert=function(W,B){B&&(this.selectChoice(B.selectedChoiceIndex,!0),this.set("data.totalVotes",B.totalVotes))};
_.p.onYtServiceRequestSent=function(W,B){if(B.actions)for(W=0;W<B.actions.length;W++){var z=B.actions[W];_.k(z,n6)&&this.set("data.totalVotes",_.k(z,n6).totalVotes)}};
_.p.onYtServiceRequestCompleted=function(W){var B=this.get("detail.data.actionResults.0.feedback",W);W=this.get("detail.data.actionResults.0.status",W);if(B==="FEEDBACK_DESELECT"||B==="FEEDBACK_SELECT")this.isLoading=!1,W==="STATUS_FAILED"?_.v0(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.p.getEndpoint=function(W,B){return B===W?this.data.choices[B].deselectServiceEndpoint||null:this.data.choices[W].selectServiceEndpoint||null};
_.p.selectChoice=function(W,B){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var z=0;z<this.data.choices.length;z++){var G;if(W===this.selectedItemIndex){var Y=!1;var d=G=null}else G=(Y=z===W)?this.data.choices[z].voteRatioIfSelected:this.data.choices[z].voteRatioIfNotSelected,d=Y?this.data.choices[z].votePercentageIfSelected:this.data.choices[z].votePercentageIfNotSelected;this.set("data.choices."+z+".voteRatio",G);
this.set("data.choices."+z+".votePercentage",d);this.set("data.choices."+z+".selected",Y)}B||(this.isLoading=!0,(B=this.getEndpoint(W,this.selectedItemIndex))&&_.dO().resolve(_.p4).resolveCommand(B,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===W?-1:W};
_.G5.Object.defineProperties(tB.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
tB.prototype.onYtServiceRequestCompleted=tB.prototype.onYtServiceRequestCompleted;tB.prototype.onYtServiceRequestSent=tB.prototype.onYtServiceRequestSent;tB.prototype.onYtCommentPollRevert=tB.prototype.onYtCommentPollRevert;tB.prototype.onPopupClosed=tB.prototype.onPopupClosed;tB.prototype.dataChanged=tB.prototype.dataChanged;_.Q([_.h(_.JL),_.y("design:type",Object)],tB.prototype,"paperItemBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],tB.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],tB.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],tB.prototype,"isLoading",void 0);_.Q([_.F({computed:"computeIsChannelOwner(data.choices)"}),_.y("design:type",Boolean)],tB.prototype,"isChannelOwner",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.y("design:type",Boolean)],tB.prototype,"isImagePoll",void 0);_.Q([_.F({computed:"computeIsTotalVotesDisabled(data)"}),_.y("design:type",Boolean)],tB.prototype,"isTotalVotesDisabled",void 0);_.Q([_.F(),_.y("design:type",Object)],tB.prototype,"previousPollInfo",void 0);_.Q([_.F(),_.y("design:type",Object)],tB.prototype,"selectedItemIndex",void 0);_.Q([_.Hf("#poll-votes"),_.y("design:type",Object)],tB.prototype,"pollVotes",void 0);
_.Q([_.H("isChannelOwner"),_.y("design:type",Object),_.y("design:paramtypes",[])],tB.prototype,"endpointStyle",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tB.prototype,"dataChanged",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],tB.prototype,"onPopupClosed",null);
_.Q([_.IN("yt-comment-poll-revert"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],tB.prototype,"onYtCommentPollRevert",null);_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],tB.prototype,"onYtServiceRequestSent",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],tB.prototype,"onYtServiceRequestCompleted",null);_.Q([_.u({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],tB);
_.D(tB,"ytd-backstage-poll-renderer",function(){if(dYD!==void 0)return dYD;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dYD=W},{mode:2});var peR;var A2U={autoplay:!1,loop:!1},iKR={simpleText:""},sn=function(){var W=_.S.apply(this,arguments)||this;W.isLoading=!1;W.usesPanelLockup=!1;W.selectedItemIndex=-1;W.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},A2U,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});W.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},A2U,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});W.correctnessAnimationProps=[];W.correctnessAnimationRefs=[];return W};
_.C(sn,_.S);_.p=sn.prototype;_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.p.computeIsChannelOwner=function(W){if(!W)return!0;W=W[0];return!(W&&(W.signinEndpoint||W.selectServiceEndpoint))};
_.p.computeIsTotalVotesDisabled=function(W){return!(W==null?0:W.totalVotes)};
_.p.computeIsImageQuiz=function(W){return(W==null?void 0:W.type)==="POLL_TYPE_IMAGE"};
_.p.onExplanationChanged=function(){this.expander.reset()};
_.p.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var W=this.data.choices;if(W){this.maybeInitializeQuizLotties(W);for(var B=0;B<W.length;B++)if(W[B].isSelected||this.isChannelOwner&&W[B].isCorrect){this.selectedItemIndex=B;return}this.selectedItemIndex=-1}}};
_.p.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var W=this.selectedItemIndex,B=Number(this.quizVotes.selected);this.selectChoice(B);this.sendVoteAction(B,W);this.quizVotes.selected=-1;var z;W=!((z=this.data)==null?0:z.enableAnimation);this.maybePlayAnswerAnimations(W)}};
_.p.onYtCommentPollRevert=function(W,B){B&&(this.selectChoice(B.selectedChoiceIndex),this.set("data.totalVotes",B.totalVotes))};
_.p.onYtServiceRequestSent=function(W,B){if(B.actions)for(W=_.A(B.actions),B=W.next();!B.done;B=W.next())(B=_.k(B.value,n6))&&this.set("data.totalVotes",B.totalVotes)};
_.p.onYtServiceRequestCompleted=function(W){var B=this.get("detail.data.actionResults.0.feedback",W);W=this.get("detail.data.actionResults.0.status",W);if(B==="FEEDBACK_DESELECT"||B==="FEEDBACK_SELECT")this.isLoading=!1,W==="STATUS_FAILED"?_.v0(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.p.getAnimationPropsForChoiceIndex=function(W,B){return B[W]};
_.p.maybePlayAnswerAnimations=function(W){W=W===void 0?!1:W;var B;if((B=this.data)!=null&&B.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){B=_.A(this.correctnessAnimationRefs);for(var z=B.next();!z.done;z=B.next()){var G=void 0,Y=void 0;(G=z.value)==null||(Y=G.lottieEl)==null||Y.stop()}if(!(this.selectedItemIndex<0)){B=0;W&&(B=this.isCorrect?37:25);var d,E;(d=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(E=d.lottieEl)==null||E.goToAndPlay(W?B:0,!0);if(!(this.isCorrect||
(d=this.data.choices.findIndex(function(g){return g.isCorrect}),d<0))){var v,c;
(c=(v=this.correctnessAnimationRefs[d])==null?void 0:v.lottieEl)==null||c.goToAndPlay(37,!0);var J;v=(J=this.fadeContainers)==null?void 0:J.item(d);!W&&v&&this.fadeIn(v)}}}};
_.p.thumbnailSrc=function(W){var B,z,G,Y;return(W==null?0:(B=W.thumbnails)==null?0:(z=B[0])==null?0:z.url)?_.yN((G=W.thumbnails)==null?void 0:(Y=G[0])==null?void 0:Y.url):void 0};
_.p.a11yVotedText=function(W,B){var z,G,Y=((z=this.data)==null?void 0:(G=z.correctVotedText)==null?void 0:G.simpleText)||"",d,E;z=((d=this.data)==null?void 0:(E=d.votedText)==null?void 0:E.simpleText)||"";if(!B)return"";var v,c;if((v=this.data)==null?0:(c=v.choices)==null?0:c[W].isCorrect)return Y;var J,g;return((J=this.data)==null?0:(g=J.choices)==null?0:g[W].isSelected)?z:""};
_.p.getEndpoint=function(W,B){return B===W?this.data.choices[W].deselectServiceEndpoint||null:this.data.choices[W].selectServiceEndpoint||null};
_.p.sendVoteAction=function(W,B){if(W=this.getEndpoint(W,B))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(W)};
_.p.selectChoice=function(W){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var B=0;B<this.data.choices.length;B++)this.set("data.choices."+B+".isSelected",W===this.selectedItemIndex?!1:B===W);this.selectedItemIndex=this.selectedItemIndex===W?-1:W};
_.p.maybeInitializeQuizLotties=function(W){var B=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=W.map(function(z){return{animationConfig:z.isCorrect?B.baseCorrectLottiePlayerAnimationConfig:B.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){B.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(z){return z.animationRef||{}})};
_.p.fadeIn=function(W){W.classList.add("fade-in");_.P2(_.fg,function(){W.classList.remove("fade-in")},900)};
_.G5.Object.defineProperties(sn.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.zR(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 W,B;return((W=this.data)==null?void 0:(B=W.choices)==null?void 0:B.some(function(z){return z.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null||!W.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?iKR:this.data.choices[this.selectedItemIndex].explanation||iKR}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null||!W.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
sn.prototype.onYtServiceRequestCompleted=sn.prototype.onYtServiceRequestCompleted;sn.prototype.onYtServiceRequestSent=sn.prototype.onYtServiceRequestSent;sn.prototype.onYtCommentPollRevert=sn.prototype.onYtCommentPollRevert;sn.prototype.dataChanged=sn.prototype.dataChanged;sn.prototype.onExplanationChanged=sn.prototype.onExplanationChanged;_.Q([_.h(_.JL),_.y("design:type",Object)],sn.prototype,"paperItemBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],sn.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.hu.YtTaskEmitterBehavior),_.y("design:type",Object)],sn.prototype,"ytTaskEmitterBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],sn.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],sn.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],sn.prototype,"isLoading",void 0);_.Q([_.F(),_.y("design:type",Object)],sn.prototype,"usesPanelLockup",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.y("design:type",Boolean)],sn.prototype,"isChannelOwner",void 0);_.Q([_.F({computed:"computeIsTotalVotesDisabled(data)"}),_.y("design:type",Boolean)],sn.prototype,"isTotalVotesDisabled",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.y("design:type",Boolean)],sn.prototype,"isImageQuiz",void 0);_.Q([_.F(),_.y("design:type",Object)],sn.prototype,"previousQuizInfo",void 0);_.Q([_.F(),_.y("design:type",Object)],sn.prototype,"selectedItemIndex",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data","usesPanelLockup"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sn.prototype,"shouldUseModernUi",null);
_.Q([_.F4(".fade-container"),_.y("design:type",Object)],sn.prototype,"fadeContainers",void 0);_.Q([_.F(),_.y("design:type",Array)],sn.prototype,"correctnessAnimationProps",void 0);_.Q([_.H("explanation","showCorrectAnswer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sn.prototype,"showExplanation",null);_.Q([_.H("isChannelOwner","isAttempted"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sn.prototype,"showCorrectAnswer",null);
_.Q([_.H("isChannelOwner","isAttempted","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sn.prototype,"isQuizAnsweringDisabled",null);_.Q([_.H("isQuizAnsweringDisabled"),_.y("design:type",Object),_.y("design:paramtypes",[])],sn.prototype,"endpointStyle",null);_.Q([_.H("data","selectedItemIndex"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sn.prototype,"isAttempted",null);
_.Q([_.H("data","selectedItemIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],sn.prototype,"explanation",null);_.Q([_.H("data","selectedItemIndex"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sn.prototype,"isCorrect",null);_.Q([_.Hf("ytd-expander"),_.y("design:type",Object)],sn.prototype,"expander",void 0);_.Q([_.Hf("#quiz-votes"),_.y("design:type",Object)],sn.prototype,"quizVotes",void 0);
_.Q([_.oN("explanation"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sn.prototype,"onExplanationChanged",null);_.Q([_.oN("data","isChannelOwner"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sn.prototype,"dataChanged",null);_.Q([_.IN("yt-comment-quiz-revert"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],sn.prototype,"onYtCommentPollRevert",null);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],sn.prototype,"onYtServiceRequestSent",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],sn.prototype,"onYtServiceRequestCompleted",null);_.Q([_.u({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],sn);
_.D(sn,"ytd-backstage-quiz-renderer",function(){if(peR!==void 0)return peR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return peR=W},{mode:1});var EJD;var PD=function(){return _.S.apply(this,arguments)||this};
_.C(PD,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],PD.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],PD.prototype,"data",void 0);_.Q([_.u({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],PD);
_.D(PD,"ytd-post-uploaded-video-renderer",function(){if(EJD!==void 0)return EJD;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return EJD=W},{mode:1});var TgM;var Zb=function(){return _.S.apply(this,arguments)||this};
_.C(Zb,_.S);Zb.prototype.useFilledIcons=function(W){return W==="SPONSORSHIP_STAR"};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Zb.prototype,"data",void 0);_.Q([_.u({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Zb);
var vJu=_.sV()(Zb,"ytd-sponsors-only-badge-renderer",function(){if(TgM===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);TgM=W}W=TgM;return W},{allowedProps:["data"],
mode:1});var c2R;var rJ=function(){return _.S.apply(this,arguments)||this};
_.C(rJ,_.S);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],rJ.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],rJ.prototype,"data",void 0);_.Q([_.u({is:"ytd-child-video-renderer",disableElementRegistration:!0})],rJ);
_.D(rJ,"ytd-child-video-renderer",function(){if(c2R!==void 0)return c2R;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return c2R=W},{mode:1});var weR;var V$d;var kP=function(){var W=_.S.apply(this,arguments)||this;W.size=0;W.enableWebModernCollectionsV2=_.r("web_modern_collections_v2");W.fallbackImageSize={height:void 0,width:9999};W.webModernCollections=!1;return W};
_.C(kP,_.S);_.p=kP.prototype;_.p.computeBlurredImageSize=function(W){return W?{height:W*2,width:W*2}:this.fallbackImageSize};
_.p.computeImageSize=function(W){return W?{height:W,width:W}:this.fallbackImageSize};
_.p.computeObjectFit=function(W){return W?"FILL":"CONTAIN"};
_.p.computePreserve=function(W){return W?!0:!1};
_.p.setBackground=function(){var W,B;_.r("web_modern_collections_v2")&&((W=this.data)==null?0:(B=W.thumbnail)==null?0:B.sampledThumbnailColor)&&(W=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+W.red+","+W.green+","+W.blue+",1)")};
kP.prototype.setBackground=kP.prototype.setBackground;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],kP.prototype,"watchFeedThumbnail",void 0);_.Q([_.F(),_.y("design:type",Object)],kP.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],kP.prototype,"size",void 0);
_.Q([_.F({computed:"computeBlurredImageSize(size)"}),_.y("design:type",Object)],kP.prototype,"blurredImageSize",void 0);_.Q([_.F({computed:"computeImageSize(size)"}),_.y("design:type",Object)],kP.prototype,"imageSize",void 0);_.Q([_.F({computed:"computePreserve(size)"}),_.y("design:type",String)],kP.prototype,"preserve",void 0);_.Q([_.F({computed:"computeObjectFit(size)"}),_.y("design:type",String)],kP.prototype,"objectFit",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],kP.prototype,"enableWebModernCollectionsV2",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],kP.prototype,"webModernCollections",void 0);_.Q([_.oN("data.thumbnail.sampledThumbnailColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kP.prototype,"setBackground",null);_.Q([_.u({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],kP);
_.D(kP,"ytd-playlist-custom-thumbnail-renderer",function(){if(V$d!==void 0)return V$d;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return V$d=W},{mode:1});var J2F;var lq=function(){return _.S.apply(this,arguments)||this};
_.C(lq,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],lq.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Number)],lq.prototype,"width",void 0);_.Q([_.u({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],lq);
_.D(lq,"ytd-playlist-video-thumbnail-renderer",function(){if(J2F!==void 0)return J2F;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return J2F=W},{mode:1});var gJ9;var Cn=function(){return _.S.apply(this,arguments)||this};
_.C(Cn,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Cn.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Number)],Cn.prototype,"width",void 0);_.Q([_.u({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Cn);
_.D(Cn,"ytd-show-custom-thumbnail-renderer",function(){if(gJ9!==void 0)return gJ9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return gJ9=W},{mode:1});var t$6;var IF=function(){return _.S.apply(this,arguments)||this};
_.C(IF,_.S);IF.prototype.useFilledIcons=function(W){return W==="MUSIC"||W==="COURSE"};
IF.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=RE(this.overlayColor,"0.8");else if(this.overlayColor){var W=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+W.red+","+W.green+","+W.blue+",0.8)"}};
_.G5.Object.defineProperties(IF.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)}}});
IF.prototype.overlayColorChanged=IF.prototype.overlayColorChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],IF.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],IF.prototype,"overlayColor",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data.icon","data.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],IF.prototype,"overlayStyle",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.icon","data.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],IF.prototype,"overlayTextStyle",null);_.Q([_.oN("overlayColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IF.prototype,"overlayColorChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],IF);
_.D(IF,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(t$6!==void 0)return t$6;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return t$6=W},{mode:1});var stR;var oF=function(){var W=_.S.apply(this,arguments)||this;W.active=!1;return W};
_.C(oF,_.S);oF.prototype.computeIsSpinnerHidden=function(W){return(W==null?void 0:W.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
oF.prototype.computeOverlayIcon=function(W){return(W==null?void 0:W.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(W==null?void 0:W.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],oF.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],oF.prototype,"active",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],oF);
_.D(oF,"ytd-thumbnail-overlay-downloading-renderer",function(){if(stR!==void 0)return stR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return stR=W},{mode:1});var PW9;var hB=function(){return _.S.apply(this,arguments)||this};
_.C(hB,_.S);_.G5.Object.defineProperties(hB.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],hB.prototype,"data",void 0);_.Q([_.H("data.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],hB.prototype,"text",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],hB);
_.D(hB,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(PW9!==void 0)return PW9;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return PW9=W},{mode:1});var ZKQ,r2R=function(){if(ZKQ!==void 0)return ZKQ;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ZKQ=W};var HD=function(){return _.S.apply(this,arguments)||this};
_.C(HD,_.S);_.G5.Object.defineProperties(HD,{template:{configurable:!0,enumerable:!0,get:function(){return r2R()}}});
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],HD.prototype,"animateEqualizer",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],HD);_.sV()(HD,"ytd-thumbnail-overlay-equalizer",function(){return r2R()},{allowedProps:["animateEqualizer"],
mode:1});var kjD;var FZ=function(){var W=_.S.apply(this,arguments)||this;W.nowPlayingBadge=_.r("web_now_playing_badge");W.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return W};
_.C(FZ,_.S);FZ.prototype.activeChanged=function(){var W=this;_.r("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.BM(this,function(){_.v0(W.hostElement,"yt-playlist-lockup-now-playing-active",W)})};
FZ.prototype.onMiniplayerPlayStateChanged=function(W){var B,z=(B=_.k(_.qG().currentEndpoint,_.W0))==null?void 0:B.videoId;this.isVideoPlaying=W&&(_.r("web_limit_now_playing_animation_killswitch")||this.videoId===z)};
FZ.prototype.activeChanged=FZ.prototype.activeChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],FZ.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],FZ.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],FZ.prototype,"isVideoPlaying",void 0);_.Q([_.F(),_.y("design:type",String)],FZ.prototype,"videoId",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],FZ.prototype,"equalizerOnly",void 0);_.Q([_.F(),_.y("design:type",Boolean)],FZ.prototype,"isActive",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],FZ.prototype,"nowPlayingBadge",void 0);_.Q([_.oN("isActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],FZ.prototype,"activeChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],FZ);
_.D(FZ,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(kjD!==void 0)return kjD;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return kjD=W},{mode:1});var lxd;var SZ=function(){return _.S.apply(this,arguments)||this};
_.C(SZ,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],SZ.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],SZ);
_.D(SZ,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(lxd!==void 0)return lxd;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return lxd=W},{mode:_.PJ("kevlar_poly_si_batch_j025")?1:2});var CWM;var bq=function(){return _.S.apply(this,arguments)||this};
_.C(bq,_.S);bq.prototype.onDurationChanged=function(){var W,B;_.tH(this.hostElement).querySelector("#progress").style.width=((B=(W=this.data)==null?void 0:W.percentDurationWatched)!=null?B:0)+"%"};
bq.prototype.onDurationChanged=bq.prototype.onDurationChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],bq.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],bq.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],bq.prototype,"isLive",void 0);_.Q([_.oN("data.percentDurationWatched"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bq.prototype,"onDurationChanged",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],bq);
_.D(bq,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(CWM!==void 0)return CWM;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return CWM=W},{mode:1});var IxM;var jZ=function(){var W=_.S.apply(this,arguments)||this;W.bottomPanel=!1;W.richGridOverlay=!1;W.watchFeedOverlay=!1;W.isCompact=!1;return W};
_.C(jZ,_.S);jZ.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.G5.Object.defineProperties(jZ.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?void 0:(B=W.icon)==null?void 0:B.iconType)==="PLAY_ALL"&&_.r("kevlar_system_icons")}}});
jZ.prototype.widthChanged=jZ.prototype.widthChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],jZ.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Number)],jZ.prototype,"width",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jZ.prototype,"bottomPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jZ.prototype,"richGridOverlay",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jZ.prototype,"watchFeedOverlay",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jZ.prototype,"isCompact",void 0);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],jZ.prototype,"isIconFilled",null);_.Q([_.oN("width","watchFeedOverlay"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jZ.prototype,"widthChanged",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],jZ);
_.D(jZ,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(IxM!==void 0)return IxM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return IxM=W},{mode:1});var oJR;var hFd=["CLIP","SHORTS"],fn=function(){var W=_.S.apply(this,arguments)||this;W.animated=_.r("animated_live_badge_icon");W.hasIcon=!1;W.updateTimerIntervalId=0;W.timeSinceLive=0;return W};
_.C(fn,_.S);_.p=fn.prototype;_.p.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.p.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.p.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.p.hasIconOrText=function(){var W,B;return!!(((W=this.data)==null?0:W.icon)||((B=this.data)==null?0:B.text))};
_.p.initializeLiveBadgeTimer=function(){var W=this,B,z=(B=this.liveBadgeData)==null?void 0:B.startTimestampSec;if(z&&this.canShowLiveBadgeTimer()){var G;B=Number((G=this.liveBadgeData)==null?void 0:G.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(z);this.updateTimerIntervalId=_.VW(function(){W.canShowLiveBadgeTimer()?W.timeSinceLive++:(W.timeSinceLive=0,window.clearInterval(W.updateTimerIntervalId))},B)}else this.timeSinceLive=0};
_.p.canShowLiveBadgeTimer=function(){var W=Date.now(),B,z;return W<(Number((B=this.liveBadgeData)==null?void 0:B.endTimestampSec)-1)*1E3&&W>Number((z=this.liveBadgeData)==null?void 0:z.startTimestampSec)*1E3};
_.G5.Object.defineProperties(fn.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data;var B=this.timeSinceLive;var z,G,Y,d;a:{var E=W.style;if(E===void 0)E=17;else switch(E){case "LIVE":E=18;break a;default:E=17}}B={type:E,text:B?jqy({seconds:B}):_.zR(W.text),accessibilityText:(z=W.text)==null?void 0:(G=z.accessibility)==null?void 0:(Y=G.accessibilityData)==null?void 0:Y.label,icon:(d=W.icon)==null?void 0:d.iconType}}else B={};return B}},
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 W;return(W=this.data)==null?void 0:W.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 hFd.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
fn.prototype.initializeLiveBadgeTimer=fn.prototype.initializeLiveBadgeTimer;fn.prototype.dataChanged=fn.prototype.dataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],fn.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],fn.prototype,"data",void 0);_.Q([_.F({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],fn.prototype,"icon",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],fn.prototype,"animated",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.y("design:type",Boolean)],fn.prototype,"hideTimeStatus",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],fn.prototype,"hasIcon",void 0);_.Q([_.F(),_.y("design:type",Object)],fn.prototype,"timeSinceLive",void 0);_.Q([_.H("data","timeSinceLive"),_.y("design:type",Object),_.y("design:paramtypes",[])],fn.prototype,"badgeShapeData",null);
_.Q([_.H("data","overlayType"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fn.prototype,"hideBadgeShape",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fn.prototype,"dataChanged",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.style"),_.y("design:type",Object),_.y("design:paramtypes",[])],fn.prototype,"overlayStyle",null);
_.Q([_.H("data.liveBadgeData"),_.y("design:type",Object),_.y("design:paramtypes",[])],fn.prototype,"liveBadgeData",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.type"),_.y("design:type",Object),_.y("design:paramtypes",[])],fn.prototype,"overlayType",null);_.Q([_.H("overlayType","overlayStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fn.prototype,"useFilledIcon",null);
_.Q([_.jJ("liveBadgeData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fn.prototype,"initializeLiveBadgeTimer",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],fn);
_.D(fn,"ytd-thumbnail-overlay-time-status-renderer",function(){if(oJR!==void 0)return oJR;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return oJR=W},{mode:_.PJ("kevlar_poly_si_batch_j035")?1:2});var HKM;var On=function(){return _.S.apply(this,arguments)||this};
_.C(On,_.S);On.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"}}}}};
On.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(W){if(this.hasPlaybackProgressBar)return{percentDurationWatched:W.percentDurationWatched}};
On.prototype.computeHasPlaybackProgressBar=function(W){return!!W.percentDurationWatched&&W.percentDurationWatched>0};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],On.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],On.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.y("design:type",Boolean)],On.prototype,"hasPlaybackProgressBar",void 0);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],On);
_.D(On,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(HKM!==void 0)return HKM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return HKM=W},{mode:1});var FKu;var S39=_.m(function(W){var B=W.data;var z=W.children;var G=function(){return!!B().doubleStack},Y=function(){return!!B().includeStackHeight};
return _.w("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!B().experimentEnabled}},_.w(_.V,{cond:B,
then:function(){var d={};return _.w(_.AW,null,_.w(_.V,{cond:Y,then:function(){var E={};return _.w("div",{class:_.kG("ytCollectionsStackSpacer",(E.ytCollectionsStackSpacerDoubleStack=G,E))})}}),_.w("div",{class:_.kG((d.ytCollectionsStackRelativeStack=Y,d))},_.w(_.V,{cond:G,
then:function(){var E={};return _.w("div",{class:_.kG("ytCollectionsStackCollectionStack2",function(){return B().customClassName2ndStack},(E.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return B().enableResponsiveMode},E)),
style:_.oK({"background-color":function(){return WKX(B())}})})}}),_.w("div",{class:_.kG("ytCollectionsStackCollectionStack1",function(){return B().customClassName1stStack},function(){return ROv(B().thumbnailSize?B().thumbnailSize:"medium")}),
style:_.oK({"background-color":function(){return WKX(B())}})}),z))}}))},"W");_.Vm(S39,"yt-collections-stack",{props:{data:_.kz}});var XZ=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};W.webModernCollections=!1;W.isSearch=!1;W.isDoubleStack=!1;W.thumbnailSize="medium";W.enableWebModernCollectionsV2=_.r("web_modern_collections_v2");return W};
_.C(XZ,_.S);_.p=XZ.prototype;
_.p.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]]"}}}}}};
_.p.getThumbnailDetails=function(W){if(W!=null&&W.thumbnailRenderer){var B=W.thumbnailRenderer,z;if((z=B.playlistVideoThumbnailRenderer)==null?0:z.thumbnail)return B.playlistVideoThumbnailRenderer.thumbnail;var G;if((G=B.playlistCustomThumbnailRenderer)==null?0:G.thumbnail)return B.playlistCustomThumbnailRenderer.thumbnail;W=W.thumbnailRenderer;var Y;if((Y=W.showCustomThumbnailRenderer)==null?0:Y.thumbnail)return W.showCustomThumbnailRenderer.thumbnail}};
_.p.computeOverlayColor=function(W){var B,z;if((B=this.getThumbnailDetails(W))==null?0:(z=B.darkColorPalette)==null?0:z.section2Color)return this.getThumbnailDetails(W).darkColorPalette.section2Color;var G;return(G=this.getThumbnailDetails(W))==null?void 0:G.sampledThumbnailColor};
_.p.computeWebModernCollections=function(W){if(W==null||!W.thumbnailOverlays)return!1;W=_.A(W.thumbnailOverlays);for(var B=W.next();!B.done;B=W.next()){var z=void 0;if((z=B.value)==null?0:z.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.p.computeNavigationEndpoint=function(W){return vNu(W==null?void 0:W.navigationEndpoint)};
_.G5.Object.defineProperties(XZ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:W==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:W==null?void 0:W.vibrantColorPalette,darkColorPalette:W==null?void 0:W.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],XZ.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(esd),_.y("design:type",Object)],XZ.prototype,"ytdThumbnailBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],XZ.prototype,"componentBehavior",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],XZ.prototype,"watchFeedThumbnail",void 0);_.Q([_.F(),_.y("design:type",Number)],XZ.prototype,"customThumbnailSize",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],XZ.prototype,"hideAria",void 0);_.Q([_.F(),_.y("design:type",Object)],XZ.prototype,"data",void 0);_.Q([_.F({computed:"computeOverlayColor(data)"}),_.y("design:type",Object)],XZ.prototype,"overlayColor",void 0);
_.Q([_.F({computed:"computeWebModernCollections(data)"}),_.y("design:type",Object)],XZ.prototype,"webModernCollections",void 0);_.Q([_.F({computed:"computeNavigationEndpoint(data)"}),_.y("design:type",Object)],XZ.prototype,"computedNavigationEndpoint",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],XZ.prototype,"isSearch",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],XZ.prototype,"isDoubleStack",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],XZ.prototype,"thumbnailSize",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],XZ.prototype,"enableWebModernCollectionsV2",void 0);_.Q([_.H("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.y("design:type",Object),_.y("design:paramtypes",[])],XZ.prototype,"collectionStack",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],XZ);
_.D(XZ,"ytd-playlist-thumbnail",function(){if(FKu!==void 0)return FKu;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return FKu=W},{mode:_.PJ("kevlar_poly_si_batch_j025")?1:2});var bKQ;var Kn=function(){var W=_.S.apply(this,arguments)||this;W.noEndpoints=!1;W.amsterdamPostMvp=_.r("web_amsterdam_post_mvp_playlists");W.badges=[];W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.C(Kn,_.S);_.p=Kn.prototype;_.p.getMetadata=function(W){if(!W)return[];var B=[],z=W.shortViewCountText||W.viewCountText;z&&B.push(_.zR(z));W.publishedTimeText&&B.push(_.zR(W.publishedTimeText));W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&B.push(_.XE(_.zR(W.upcomingEventData.upcomingEventText),Number(W.upcomingEventData.startTime)));return B};
_.p.observeDataForBylineSeparator=function(){this.data&&_.Pf(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.p.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.M_(this.metadataColor)};
_.p.getSimpleString=function(W){return _.zR(W)};
_.p.isBylineHidden=function(W){return this.noByline||!((W==null?0:W.longBylineText)||(W==null?0:W.shortBylineText))};
_.p.isMetadataHidden=function(W){var B;return((B=this.getMetadata(W))==null?void 0:B.length)===0};
_.p.isBylineMetadataSeparatorHidden=function(W){return this.isMetadataHidden(W)||!this.shouldShowVideoInfo};
_.p.isLongByline=function(W,B){return B&&!(W==null||!W.longBylineText)};
_.G5.Object.defineProperties(Kn.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var W;return this.amsterdamPostMvp&&!((W=this.data)==null||!W.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 _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Kn.prototype.metadataColorChanged=Kn.prototype.metadataColorChanged;Kn.prototype.observeDataForBylineSeparator=Kn.prototype.observeDataForBylineSeparator;_.Q([_.h(_.TB),_.y("design:type",Object)],Kn.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Kn.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Kn.prototype,"noEndpoints",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Kn.prototype,"isSlimShort",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Kn.prototype,"radioMeta",void 0);_.Q([_.F({selector:_.qE}),_.y("design:type",Object)],Kn.prototype,"isGridViewEnabled",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Kn.prototype,"richMeta",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Kn.prototype,"amsterdamPostMvp",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Kn.prototype,"noByline",void 0);
_.Q([_.F({computed:"isLongByline(data, radioMeta)"}),_.y("design:type",Boolean)],Kn.prototype,"longByline",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Kn.prototype,"truncateMetadataLine",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Kn.prototype,"miniMode",void 0);_.Q([_.F(),_.y("design:type",Number)],Kn.prototype,"metadataColor",void 0);_.Q([_.F(),_.y("design:type",Array)],Kn.prototype,"badges",void 0);
_.Q([_.F({selector:_.yg,selectorArgs:["data.videoId"]}),_.y("design:type",String)],Kn.prototype,"transferState",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Kn.prototype,"isDownloading",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Kn.prototype,"typographyBump",void 0);_.Q([_.Hf("#metadata-line"),_.y("design:type",HTMLElement)],Kn.prototype,"metadataLine",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Kn.prototype,"observeDataForBylineSeparator",null);_.Q([_.oN("metadataColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Kn.prototype,"metadataColorChanged",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Kn.prototype,"shouldShowVideoInfo",null);
_.Q([_.H("badges"),_.y("design:type",String),_.y("design:paramtypes",[])],Kn.prototype,"inlineBadgeClass",null);_.Q([_.H("longByline"),_.y("design:type",String),_.y("design:paramtypes",[])],Kn.prototype,"longBylineClass",null);_.Q([_.H("data","longByline"),_.y("design:type",Object),_.y("design:paramtypes",[])],Kn.prototype,"bylineText",null);_.Q([_.H("isGridViewEnabled","data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Kn.prototype,"watchFeedBigThumbs",null);
_.Q([_.u({is:"ytd-video-meta-block",disableElementRegistration:!0})],Kn);
_.D(Kn,"ytd-video-meta-block",function(){if(bKQ!==void 0)return bKQ;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return bKQ=W},{mode:_.PJ("kevlar_poly_si_batch_j080")?1:2});_.eX("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var uq=function(){var W=_.S.apply(this,arguments)||this;W.displayItemCount=2;W.isBackstagePlaylist=!1;W.isPostCompactPlaylist=!1;W.shouldShowChannelThumbnail=!1;W.useModernCollectionsV2=_.r("web_modern_collections_v2");return W};
_.C(uq,_.S);_.p=uq.prototype;_.p.computeFirstVideos=function(W,B){return W===void 0||B===void 0?[]:W.slice(0,B)};
_.p.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var W=this.data.thumbnailRenderer;W.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",W.playlistVideoThumbnailRenderer.thumbnail);W.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",W.playlistCustomThumbnailRenderer.thumbnail)}};
_.p.computeThumbnailHeight=function(W,B,z,G,Y){return G?Y==="BIG"?280:Y==="MASSIVE"?337:234:z?240:B?72:W?118:138};
_.p.computeThumbnailWidth=function(W,B,z,G,Y){return G?Y==="MEDIUM"?450:Y==="BIG"?500:Y==="MASSIVE"?600:420:z?360:B?128:W?210:246};
_.p.computeUseBiggerThumbs=function(W){return W&&_.r("enable_desktop_search_bigger_thumbs")};
_.p.computeShouldShowChannelThumbnail=function(W,B){return W&&!(B==null||!B.channelThumbnail)};
_.G5.Object.defineProperties(uq.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
uq.prototype.dataChanged=uq.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],uq.prototype,"ytdLockupBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],uq.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],uq.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],uq.prototype,"displayItemCount",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],uq.prototype,"isBackstagePlaylist",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],uq.prototype,"isPostCompactPlaylist",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],uq.prototype,"isSearch",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.y("design:type",Boolean)],uq.prototype,"useBiggerThumbs",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.EA("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],uq.prototype,"biggerThumbsStyle",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],uq.prototype,"isDownloads",void 0);_.Q([_.F({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.y("design:type",Object)],uq.prototype,"shouldShowChannelThumbnail",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],uq.prototype,"useModernCollectionsV2",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uq.prototype,"dataChanged",null);_.Q([_.H("isSearch"),_.y("design:type",String),_.y("design:paramtypes",[])],uq.prototype,"stackThumbnailSize",null);_.Q([_.u({is:"ytd-playlist-renderer",disableElementRegistration:!0})],uq);
_.D(uq,"ytd-playlist-renderer",function(){if(weR===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);weR=W}W=weR;return W},{mode:1});var jtT;var fxH;var eZ=function(){var W=_.S.apply(this,arguments)||this;W.collections=!!_.r("web_modern_collections_v2");W.startX=0;return W};
_.C(eZ,_.S);eZ.prototype.onEndpointMouseDown=function(W){this.startX=W.clientX};
eZ.prototype.onEndpointClick=function(W){this.startX!==W.clientX&&(W.preventDefault(),W.stopPropagation())};
eZ.prototype.computeObjectFit=function(W){return W==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||W==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||W==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
eZ.prototype.computeCardStyle=function(W){return W?W.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.G5.Object.defineProperties(eZ.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var W,B;return this.collections&&((W=this.data)==null?void 0:(B=W.searchRefinementCardRendererStyle)==null?void 0:B.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}}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],eZ.prototype,"data",void 0);_.Q([_.F({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.y("design:type",Number)],eZ.prototype,"objectFit",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.y("design:type",String)],eZ.prototype,"cardStyle",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],eZ.prototype,"roundContainer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],eZ.prototype,"collections",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],eZ.prototype,"isAlbumCard",null);_.Q([_.H("data","collections","isAlbumCard"),_.y("design:type",Object),_.y("design:paramtypes",[])],eZ.prototype,"collectionStack",null);
_.Q([_.u({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],eZ);
_.D(eZ,"ytd-search-refinement-card-renderer",function(){if(fxH!==void 0)return fxH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return fxH=W},{mode:1});var OK7;var m5=function(){var W=_.S.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.C(m5,_.S);_.Q([_.F(),_.y("design:type",Object)],m5.prototype,"data",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],m5.prototype,"componentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],m5.prototype,"ytdReduxBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],m5.prototype,"isRichGrid",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.eL}),_.y("design:type",Boolean)],m5.prototype,"miniMode",void 0);
_.Q([_.u({is:"ytd-game-details-renderer",disableElementRegistration:!0})],m5);
_.D(m5,"ytd-game-details-renderer",function(){if(OK7!==void 0)return OK7;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return OK7=W},{mode:1});var Xed;var KK7;var xP=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return W};
_.C(xP,_.S);_.p=xP.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.currentStateData=function(W){var B=W||this.data;return B&&B.states&&B.currentStateId!=null?B.states.find(function(z){return z.stateId===B.currentStateId})||null:null};
_.p.currentStateRendererData=function(W){return(W=this.currentStateData(W))&&W.state&&W.state.buttonRenderer?W.state.buttonRenderer:null};
_.p.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())};
_.p.computeButtonIcon=function(W){W=this.currentStateRendererData(W);var B;return(W==null?0:(B=W.icon)==null?0:B.iconType)?W.icon.iconType.toLowerCase():null};
_.p.computeAccessibility=function(W){return(W=this.currentStateRendererData(W))&&W.accessibilityData?W.accessibilityData.accessibilityData||null:null};
_.p.computeButtonClass=function(W){var B=this.currentStateRendererData(W);if(!B)return"";W="";var z=B.style;z&&(W+=z.toLowerCase().replace(/_/g,"-")+" ");(B=B.size)&&(W+=B.toLowerCase().replace(/_/g,"-")+" ");return W.trim()};
_.p.computeServiceEndpoint=function(W){if(!W)return null;var B=W&&W.serviceEndpoint,z=this.get("command.commandMetadata.webCommandMetadata.sendPost",W);return B?B:z&&W.command?W.command:null};
_.p.computeBellMenuItemParams=function(W){var B;W=(B=_.k(W==null?void 0:W.command,_.tr))==null?void 0:B.commands;if(!W||W.length===0)return null;B=_.k(W[0],_.Nm);var z,G;return(B==null?0:(z=B.popup)==null?0:(G=z.menuPopupRenderer)==null?0:G.items)?B.popup.menuPopupRenderer.items.map(function(Y){return Y.menuServiceItemRenderer.trackingParams}):null};
_.p.handleBellMenuOpenSelectedAction=function(W){var B=W.trackingParams,z=this.computeBellMenuItemParams(this.data);this.data&&B&&z&&z.includes(B)&&this.ytRenderButtonBehavior._setButtonIcon(W.icon.iconType.toLowerCase())};
_.p.onYtServiceRequestCompleted=function(W,B){(W=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",B))&&this.set("data",W)};
_.p.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.p.resetState=function(){this.set("data.currentStateId",3)};
_.p.onYtButtonTapHandler=function(){if(this.data){var W=this.currentStateRendererData(this.data);W&&this.ytRendererBehavior.logExplicitClick(W)}};
xP.prototype.onYtServiceRequestError=xP.prototype.onYtServiceRequestError;xP.prototype.onYtServiceRequestCompleted=xP.prototype.onYtServiceRequestCompleted;xP.prototype.stateChanged=xP.prototype.stateChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],xP.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.h(M8.YtRenderButtonBehavior),_.y("design:type",Object)],xP.prototype,"ytRenderButtonBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],xP.prototype,"data",void 0);_.Q([_.jJ("data","data.currentStateId"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xP.prototype,"stateChanged",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],xP.prototype,"onYtServiceRequestCompleted",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],xP.prototype,"onYtServiceRequestError",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],xP);
_.D(xP,"ytd-subscription-notification-toggle-button-renderer",function(){if(KK7!==void 0)return KK7;var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return KK7=W},{mode:1});var ugD;var Db=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};W.tapHandler=function(){if(W.data){var B=W.currentStateRendererData();B&&W.ytRendererBehavior.logExplicitClick(B)}};
return W};
_.C(Db,_.S);_.p=Db.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.currentStateData=function(){var W=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(B){return B.stateId===W.data.currentStateId})||null:null};
_.p.currentStateRendererData=function(){var W=this.currentStateData();return W&&W.state&&W.state.buttonRenderer?W.state.buttonRenderer:null};
_.p.computeAccessibilityLabel=function(){var W,B,z;return(W=this.currentStateRendererData())==null?void 0:(B=W.accessibilityData)==null?void 0:(z=B.accessibilityData)==null?void 0:z.label};
_.p.computeBellMenuItemParams=function(){var W,B,z=(B=_.k((W=this.data)==null?void 0:W.command,_.tr))==null?void 0:B.commands;if(!z||z.length===0)return null;W=_.k(z[0],_.Nm);var G,Y;return(W==null?0:(G=W.popup)==null?0:(Y=G.menuPopupRenderer)==null?0:Y.items)?W.popup.menuPopupRenderer.items.map(function(d){return d.menuServiceItemRenderer.trackingParams}):null};
_.p.handleBellMenuOpenSelectedAction=function(W){var B=W.trackingParams,z=this.computeBellMenuItemParams();if(this.data&&B&&z&&z.includes(B)&&(W==null||!W.isDisabled)){var G;((G=_.k(W.serviceEndpoint,_.P0))==null?void 0:G.signal)!=="CLIENT_SIGNAL"&&(this.icon=W.icon.iconType)}};
_.p.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.p.onYtServiceRequestCompleted=function(W,B){if(W=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",B))this.icon=void 0,this.set("data",W)};
_.p.onYtServiceRequestError=function(){this.icon=void 0};
_.G5.Object.defineProperties(Db.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data,B=this.textLabel,z=this.hostElement,G=this.computeAccessibilityLabel(),Y=this.tapHandler,d=this.isOverlay?"overlay":"mono",E=(W==null?0:W.disableButton)?"disabled":"active";B=B?_.y2(B):void 0;return{style:d,type:"tonal",state:E,size:"M",focused:!1,formattedButtonText:B,iconPosition:"leading-trailing",onTap:zF0(W,Y,z),accessibilityLabel:G}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var W=this.currentStateRendererData(),B,z,G=(z=this.icon)!=null?z:W==null?void 0:(B=W.icon)==null?void 0:B.iconType;if(G)return _.lg(G)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var W,B,z=(W=this.data)==null?void 0:(B=W.secondaryIcon)==null?void 0:B.iconType;if(z)return _.lg(z)}}});
Db.prototype.onYtServiceRequestError=Db.prototype.onYtServiceRequestError;Db.prototype.onYtServiceRequestCompleted=Db.prototype.onYtServiceRequestCompleted;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Db.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Db.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Db.prototype,"textLabel",void 0);
_.Q([_.F(),_.y("design:type",String)],Db.prototype,"icon",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Db.prototype,"isOverlay",void 0);_.Q([_.H("data.*","textLabel"),_.y("design:type",Object),_.y("design:paramtypes",[])],Db.prototype,"computedButtonShape",null);_.Q([_.H("data.*","icon"),_.y("design:type",Object),_.y("design:paramtypes",[])],Db.prototype,"computedIcon",null);_.Q([_.H("computedIcon"),_.y("design:type",Object),_.y("design:paramtypes",[])],Db.prototype,"computedAnimateIcon",null);
_.Q([_.H("data.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],Db.prototype,"computedSecondaryIcon",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],Db.prototype,"onYtServiceRequestCompleted",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Db.prototype,"onYtServiceRequestError",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Db);
_.D(Db,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(ugD!==void 0)return ugD;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return ugD=W},{mode:_.PJ("kevlar_poly_si_batch_j081")?1:2});var eFR;_.Vm(eOU,"yt-animated-action",{props:{backgroundLottieRef:_.kz,foregroundLottieRef:_.kz,wrapperClass:_.kz,disableAnimation:_.kz},unsafeExternallySettableAttributes:new Set(["key"])});var Q7=function(){var W=_.S.apply(this,arguments)||this;W.animatedActionEnabled=_.r("web_animated_actions");W.foregroundLottieRef={};W.backgroundLottieRef={};W.forceIconOnly=!1;W.showTextWhileAnimating=!1;W.keyboardFocused=!1;W.isAnimating=!1;W.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return W};
_.C(Q7,_.S);_.p=Q7.prototype;_.p.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.p.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]]"}}}}}};
_.p.attached=function(){this.keyboardFocused=!1};
_.p.onYtServiceRequestSent=function(W,B){(this.get("endpoint.subscribeEndpoint",B)||this.get("endpoint.unsubscribeEndpoint",B))&&this.updateSubscriptionState(!this.subscribed)};
_.p.onYtServiceRequestCompleted=function(W,B){(W=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",B.data))&&this.bellButton&&(this.bellButton.data=W)};
_.p.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.kw(this.hostElement)};
_.p.onPlayerSubscribe=function(W){this.isCompactRed()||W!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.p.onPlayerUnsubscribe=function(W){this.isCompactRed()||W!==this.data.channelId||this.updateSubscriptionState(!1)};
_.p.handleUpdateSubscribeButtonAction=function(W){W=_.k(W,ocR);var B;W&&W.channelId===((B=this.data)==null?void 0:B.channelId)&&this.updateSubscriptionState(!!W.subscribed)};
_.p.computeButtonStyle=function(W){return this.get("style.styleType",W)||null};
_.p.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.p.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.p.updateSubscriptionState=function(W){if(W!==this.subscribed){this.set("data.subscribed",W);var B,z=(B=this.data)==null?void 0:B.subscribedEntityKey;z&&this.ytdReduxBehavior.dispatch(_.bj("subscriptionStateEntity",z,{key:z,subscribed:W}));this.isCompactRed()||_.v0(this.hostElement,"yt-subscription-changed",W);W||(_.c0(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!W),W&&this.hasBellButton&&this.startAnimation())}};
_.p.startAnimation=function(){var W=this;if(!this.isAnimating){var B=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var z;(z=this.backgroundLottieRef.lottieEl)==null||z.goToAndPlay(0);var G;(G=this.foregroundLottieRef.lottieEl)==null||G.goToAndPlay(0);_.fg.addJob(function(){W.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.fg.addJob(function(){W.updateContainerToFitContent(!!W.subscribed,!0)},2,1500);
_.fg.addJob(function(){W.isAnimating=!1},2,B)}};
_.p.maybeAnimateBellIcon=function(){var W=_.sR(this.hostElement).querySelector("yt-animated-icon");if(W){var B;(B=W.animationRef.lottieEl)==null||B.goToAndPlay(0)}};
_.p.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.p.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.p.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var W;this.unsubscribedWidth=(W=this.subscribeButtonShape)==null?void 0:W.getBoundingClientRect().width}var B;this.subscribedWidth=(B=this.bellButton)==null?void 0:B.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.p.updateContainerToFitContent=function(W,B){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(W?(W=this.subscribedWidth,B=this.isAnimating&&!B,this.subscribedIconOnlyWidth===void 0||B||(W=this.subscribedIconOnlyWidth),this.hostElement.style.width=W+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.p.clearContainerSize=function(){this.hostElement.style.width=""};
_.p.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.p.maybeSetSubscribedButtonIconOnlyWidth=function(){var W=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 B;W.subscribedIconOnlyWidth=(B=W.bellButton)==null?void 0:B.getBoundingClientRect().width;requestAnimationFrame(function(){if(W.bellButton){var z;W.bellButton.textLabel=
(z=W.data)==null?void 0:z.subscribedButtonText}})})))};
_.G5.Object.defineProperties(Q7.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 W;return(W=this.data)==null?void 0:W.subscribedButtonText}var B;return this.forceIconOnly?void 0:(B=this.data)==null?void 0:B.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var W,B,z=((W=this.data)==null?void 0:(B=W.timedAnimationData)==null?void 0:B.animationTiming)||[];return{uniqueId:"subscribe",timings:z,enabled:z.length>0&&!this.subscribed,experimentEnabled:z.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!this.subscribed&&((W=this.data)==null?void 0:W.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 W={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var B=W.renderer;var z=W.element;var G=W.subscribed;var Y=W.commandController;var d=W.isOverlay;W=W.stopPropagation;var E=peQ(B,G);d&&(E.style="overlay");d=Object;var v=d.assign,c;a:switch((c=B.style)==null?void 0:c.styleType){case "COMPACT_GRAY":case "COMPACT_RED":c={size:"S"};break a;default:c={size:"M"}}var J=dY8(B,
G);var g=(g=G?B.subscribedButtonText:B.unsubscribedButtonText)?_.y2(g):void 0;return v.call(d,{},E,c,{focused:!1,toggled:G,accessibilityLabel:J,formattedButtonText:g,onTap:Y3D(B,G,z,Y,W)})}}}});
Q7.prototype.onMouseDown=Q7.prototype.onMouseDown;Q7.prototype.onDataChanged=Q7.prototype.onDataChanged;Q7.prototype.observedSubscribed=Q7.prototype.observedSubscribed;Q7.prototype.onYtServiceRequestCompleted=Q7.prototype.onYtServiceRequestCompleted;Q7.prototype.onYtServiceRequestSent=Q7.prototype.onYtServiceRequestSent;Q7.prototype.maybeUpdateBellButtonText=Q7.prototype.maybeUpdateBellButtonText;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Q7.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Q7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Q7.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Q7.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Q7.prototype,"data",void 0);
_.Q([_.F({selectorArgs:["data.subscribedEntityKey"],selector:pW8}),_.y("design:type",Object)],Q7.prototype,"subscriptionStateEntity",void 0);_.Q([_.F({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Q7.prototype,"subscribed",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Q7.prototype,"branded",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Q7.prototype,"animatedActionEnabled",void 0);
_.Q([_.F(),_.y("design:type",Object)],Q7.prototype,"foregroundLottieRef",void 0);_.Q([_.F(),_.y("design:type",Object)],Q7.prototype,"backgroundLottieRef",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Q7.prototype,"overlayButton",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.y("design:type",Object)],Q7.prototype,"buttonStyle",void 0);_.Q([_.F(),_.y("design:type",Object)],Q7.prototype,"forceIconOnly",void 0);
_.Q([_.F(),_.y("design:type",Object)],Q7.prototype,"showTextWhileAnimating",void 0);_.Q([_.F({value:function(){return!!_.dO().resolve(_.Y8(_.jx))&&_.r("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.y("design:type",Boolean)],Q7.prototype,"useKeyboardFocused",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Q7.prototype,"keyboardFocused",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Q7.prototype,"isAnimating",void 0);_.Q([_.H("data.notificationPreferenceButton.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],Q7.prototype,"hasBellButton",null);
_.Q([_.oN("subscribedButtonText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Q7.prototype,"maybeUpdateBellButtonText",null);_.Q([_.H("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],Q7.prototype,"subscribedButtonText",null);_.Q([_.H("data.timedAnimationData.animationTiming","subscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],Q7.prototype,"smartimationSettings",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],Q7.prototype,"subscribeButtonHidden",null);_.Q([_.F({reflectToAttribute:!0}),_.H("subscribed","hasBellButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],Q7.prototype,"subscribeButtonInvisible",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("subscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],Q7.prototype,"unsubscribeButtonHidden",null);_.Q([_.Hf("ytd-subscription-notification-toggle-button-renderer-next"),_.y("design:type",Object)],Q7.prototype,"bellButton",void 0);_.Q([_.Hf("#subscribe-button-shape"),_.y("design:type",HTMLElement)],Q7.prototype,"subscribeButtonShape",void 0);
_.Q([_.H("overlayButton","subscribed","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Q7.prototype,"buttonShape",null);_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],Q7.prototype,"onYtServiceRequestSent",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],Q7.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.oN("subscribed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Q7.prototype,"observedSubscribed",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Q7.prototype,"onDataChanged",null);_.Q([_.IN("mousedown"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Q7.prototype,"onMouseDown",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Q7);
_.D(Q7,"ytd-subscribe-button-renderer",function(){if(eFR!==void 0)return eFR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return eFR=W},{mode:1});var y7=function(){var W=_.S.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.C(y7,_.S);y7.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"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],y7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],y7.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],y7.prototype,"isRichGrid",void 0);_.Q([_.u({is:"ytd-game-card-renderer",disableElementRegistration:!0})],y7);
_.D(y7,"ytd-game-card-renderer",function(){if(Xed!==void 0)return Xed;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Xed=W},{mode:1});var qV={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.r("defer_menus")&&!lTd?0:void 0,waitForSignal:"eocs"};var mYF;var xY6;var nn=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return W};
_.C(nn,_.S);_.p=nn.prototype;_.p.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.p.onSeriesReminderStateEntityChange=function(){var W,B,z;((W=this.eventReminderStateEntity)==null?0:W.key)&&((B=this.seriesReminderStateEntity)==null?void 0:B.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((z=this.eventReminderStateEntity)==null?void 0:z.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.bj("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.p.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.p.onYtServiceRequestError=function(){var W;this.updateReminderStateEntitiesFromButtonState((W=this.data)==null?void 0:W.currentState)};
_.p.handleUpdateUpcomingEventReminderButtonStateCommand=function(W){if(W=_.k(W,J56)){var B,z=(B=this.data)==null?void 0:B.targetId;z&&W.targetId===z&&_.WJ(this.updateReminderStateEntitiesFromButtonState.bind(this,W.state))}};
_.p.getButtonStateFromReminderState=function(){var W;if(((W=this.seriesReminderStateEntity)==null?void 0:W.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var B;if(((B=this.eventReminderStateEntity)==null?void 0:B.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var z,G;if(((z=this.seriesReminderStateEntity)==null?void 0:z.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((G=this.eventReminderStateEntity)==
null?void 0:G.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var Y;return(Y=this.data)==null?void 0:Y.currentState};
_.p.updateReminderStateEntitiesFromButtonState=function(W){if(W){switch(W){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":W="UPCOMING_EVENT_REMINDER_STATE_NONE";var B="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":W="UPCOMING_EVENT_REMINDER_STATE_SINGLE";B="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":W="UPCOMING_EVENT_REMINDER_STATE_NONE";B="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var z;
((z=this.eventReminderStateEntity)==null?0:z.key)&&this.ytdReduxBehavior.dispatch(_.bj("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:W})));var G;((G=this.seriesReminderStateEntity)==null?0:G.key)&&this.ytdReduxBehavior.dispatch(_.bj("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:B})))}};
_.G5.Object.defineProperties(nn.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var W=this.getButtonStateFromReminderState(),B,z;if(W&&((B=this.data)==null?0:(z=B.states)==null?0:z.length))for(B=_.A(this.data.states),z=B.next();!z.done;z=B.next()){z=z.value;var G=void 0;if(((G=_.k(z,gUU))==null?void 0:G.state)===W)return _.k(z,gUU)}}}});
nn.prototype.onYtServiceRequestError=nn.prototype.onYtServiceRequestError;nn.prototype.onYtServiceRequestCompleted=nn.prototype.onYtServiceRequestCompleted;nn.prototype.onSeriesReminderStateEntityChange=nn.prototype.onSeriesReminderStateEntityChange;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],nn.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],nn.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],nn.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],nn.prototype,"data",void 0);_.Q([_.F({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:iFQ}),_.y("design:type",Object)],nn.prototype,"eventReminderStateEntity",void 0);
_.Q([_.F({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(W,B){return _.P3(W.entities,"sportsSeriesReminderStateEntity",B)}}),
_.y("design:type",Object)],nn.prototype,"seriesReminderStateEntity",void 0);_.Q([_.H("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],nn.prototype,"currentButtonStateRenderer",null);_.Q([_.oN("seriesReminderStateEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nn.prototype,"onSeriesReminderStateEntityChange",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nn.prototype,"onYtServiceRequestCompleted",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nn.prototype,"onYtServiceRequestError",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],nn);
_.D(nn,"ytd-upcoming-event-reminder-button-renderer",function(){if(xY6!==void 0)return xY6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return xY6=W},{mode:1});var DYU;var NV=function(){return _.S.apply(this,arguments)||this};
_.C(NV,_.S);NV.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.G5.Object.defineProperties(NV.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(_.r("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],NV.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],NV.prototype,"shelfDismissal",void 0);_.Q([_.H("data.responseText"),_.y("design:type",Object),_.y("design:paramtypes",[])],NV.prototype,"text",null);
_.Q([_.H("data.responseText"),_.y("design:type",Object),_.y("design:paramtypes",[])],NV.prototype,"textAriaLabel",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],NV);
_.D(NV,"ytd-notification-multi-action-renderer",function(){if(DYU!==void 0)return DYU;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return DYU=W},{mode:1});var Qt6;var $P=function(){return _.S.apply(this,arguments)||this};
_.C($P,_.S);$P.prototype.ready=function(){var W=this;_.tH(this.hostElement).querySelector("#undo").addEventListener("tap",function(){W.onUndoTap()})};
$P.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.dO().resolve(_.p4).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$P.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],$P);
_.D($P,"ytd-notification-text-renderer",function(){if(Qt6!==void 0)return Qt6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Qt6=W},{mode:1});var y26;var Ln=function(){var W=_.S.apply(this,arguments)||this;W.mouseOverDelayJobId=0;W.fadeInImageDelayJobId=0;W.startTimeMs=-1;W.loadingStartTimeMs=-1;W.loadingEndTimeMs=-1;W.hasVideoPreview=!1;return W};
_.C(Ln,_.S);_.p=Ln.prototype;_.p.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.p.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.p.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.p.showThumbnail=function(){var W=this;this.csn=_.m1();_.xq("fmth");_.fg.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.P2(_.fg,function(){W.loadingStartTimeMs=(0,_.Yb)();var B=_.tH(W.hostElement).querySelector("#thumbnail");B.complete?W.displayMouseOverImage():B.addEventListener("load",_.Co(W,W.displayMouseOverImage))},150):_.Pf(_.tH(this.hostElement).querySelector("#play"),"show",!0)};
_.p.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.p.onTap=function(){this.removeVideoPreview()};
_.p.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var W=this.videoId,B=this.csn,z=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,G=this.startTimeMs,Y=this.hasVideoPreview,d=_.XF(this.trackingParams),E={isMovingThumbnail:Y};Y&&G>0&&(z>0&&(E.movingThumbnailLoadingDurationMs=Math.round(z)),E.durationHoveredMs=Math.round((0,_.Yb)()-G));W&&(E.videoId=W);_.W3(B,d,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:E});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.p.removeVideoPreview=function(){_.fg.cancelJob(this.mouseOverDelayJobId);_.fg.cancelJob(this.fadeInImageDelayJobId);var W=_.tH(this.hostElement).querySelector("#thumbnail");_.Pf(W,"fade-in",!1);W.removeEventListener("load",_.Co(this,this.displayMouseOverImage));W=_.tH(this.hostElement).querySelector("#play");_.Pf(W,"fade-in",!1);_.Pf(W,"show",!1)};
_.p.displayMouseOverImage=function(){var W=_.tH(this.hostElement).querySelector("#thumbnail"),B=_.tH(this.hostElement).querySelector("#play");this.isImageAvailable(W)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Yb)(),this.startTimeMs=(0,_.Yb)(),this.fadeInImageDelayJobId=_.P2(_.fg,function(){_.Pf(W,"fade-in",!0)},50)):_.Pf(B,"fade-in",!0)};
_.p.computeThumbnail=function(W,B){var z;W&&W.movingThumbnailDetails&&W.movingThumbnailDetails.thumbnails&&B?z=_.JY(W.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):z=B?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(z)return _.yN(z)};
_.p.isImageAvailable=function(W){return!(!W.src||W.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||W.naturalWidth===120)};
Ln.prototype.onTap=Ln.prototype.onTap;Ln.prototype.dataChanged=Ln.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Ln.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ln.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Ln.prototype,"csn",void 0);_.Q([_.F(),_.y("design:type",Object)],Ln.prototype,"trackingParams",void 0);
_.Q([_.F(),_.y("design:type",String)],Ln.prototype,"videoId",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Ln.prototype,"isAttachedAndDataSet",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ln.prototype,"dataChanged",null);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ln.prototype,"onTap",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Ln);
_.D(Ln,"ytd-moving-thumbnail-renderer",function(){if(y26!==void 0)return y26;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return y26=W},{mode:1});var q3Q;_.TH=function(W){this.hostElement=W;this.eventSink=null;this.eventList=[]};
_.TH.prototype.shouldForward=function(){var W,B;return(B=(W=this.eventSink)==null?void 0:W.isConnected)!=null?B:document.body.contains(this.eventSink)};
_.TH.prototype.start=function(W,B){this.eventSink&&this.stop();for(var z=0;z<W.length;z++)this.hostElement.addEventListener(W[z],_.Co(this,this.forwardEvent));var G;this.eventSink=(G=B.hostElement)!=null?G:B;this.eventList=W};
_.TH.prototype.stop=function(){for(var W=0;W<this.eventList.length;W++)this.hostElement.removeEventListener(this.eventList[W],_.Co(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.TH.prototype.forwardEvent=function(W,B){this.shouldForward()&&(W.stopPropagation(),this.eventSink instanceof Element?_.v0(this.eventSink,W.type,B):_.Oc(new _.oX("eventSink is not an element")))};_.Un={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.TH(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(W,B){this.forwarder_.start(W,B)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var MV=function(){return _.S.apply(this,arguments)||this};
_.C(MV,_.S);_.p=MV.prototype;_.p.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=_.eD("HTML_DIR")==="rtl"?"right":"left"};
_.p.dataChanged=function(){this.popupOpen=!1};
_.p.computeAriaLabel=function(W){return _.k(W,$D9).label};
_.p.onTap=function(W){W.stopPropagation();W.preventDefault();this.data.command&&_.dO().resolve(_.p4).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.p.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.p.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
MV.prototype.onPopupClosed=MV.prototype.onPopupClosed;MV.prototype.onPopupOpened=MV.prototype.onPopupOpened;MV.prototype.onTap=MV.prototype.onTap;MV.prototype.dataChanged=MV.prototype.dataChanged;_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],MV.prototype,"eventForwardingBehavior",void 0);_.Q([_.h(_.R9),_.y("design:type",Object)],MV.prototype,"ironButtonState",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],MV.prototype,"componentBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],MV.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,value:-1}),_.y("design:type",Number)],MV.prototype,"tabindex",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.y("design:type",Object)],MV.prototype,"ariaLabel",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],MV.prototype,"disableTooltips",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],MV.prototype,"popupOpen",void 0);
_.Q([_.F(),_.y("design:type",Element)],MV.prototype,"eventSink",void 0);_.Q([_.Hf("#tooltip"),_.y("design:type",Object)],MV.prototype,"tooltip",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],MV.prototype,"dataChanged",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],MV.prototype,"onTap",null);
_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],MV.prototype,"onPopupOpened",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],MV.prototype,"onPopupClosed",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],MV);
_.D(MV,"ytd-thumbnail-overlay-button-renderer",function(){if(q3Q!==void 0)return q3Q;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return q3Q=W},{mode:1});var nJM;var aF=function(){return _.S.apply(this,arguments)||this};
_.C(aF,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],aF.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],aF.prototype,"disableAnimation",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],aF.prototype,"rounded",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],aF.prototype,"transparentBackground",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],aF.prototype,"noPadding",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],aF);
_.D(aF,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(nJM!==void 0)return nJM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return nJM=W},{mode:1});var NgF;var RF=function(){return _.S.apply(this,arguments)||this};
_.C(RF,_.S);RF.prototype.computeIconPosition=function(W){return this.get("iconPosition",W)||null};
RF.prototype.computeIconStyle=function(W){return this.get("iconStyle",W)||null};
RF.prototype.computeIsIconStyleFilled=function(W){if(!W)return!1;var B;return W.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((B=W.icon)==null?void 0:B.iconType)==="ERROR_BLACK"};
_.Q([_.F(),_.y("design:type",Object)],RF.prototype,"data",void 0);_.Q([_.F({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.y("design:type",Object)],RF.prototype,"iconPosition",void 0);_.Q([_.F({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.y("design:type",Object)],RF.prototype,"iconStyle",void 0);_.Q([_.F({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],RF.prototype,"iconStyleFilled",void 0);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],RF);
_.D(RF,"ytd-thumbnail-overlay-icon-renderer",function(){if(NgF!==void 0)return NgF;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return NgF=W},{mode:1});var $Yd;var WH=function(){return _.S.apply(this,arguments)||this};
_.C(WH,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],WH.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],WH);
_.D(WH,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if($Yd!==void 0)return $Yd;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $Yd=W},{mode:1});var LKR;var BH=function(){var W=_.S.apply(this,arguments)||this;W.isPreviewLoading=!1;return W};
_.C(BH,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],BH.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],BH.prototype,"isPreviewLoading",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],BH);
_.D(BH,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(LKR!==void 0)return LKR;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return LKR=W},{mode:1});var UYH;var zX=function(){return _.S.apply(this,arguments)||this};
_.C(zX,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],zX.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],zX);
_.D(zX,"ytd-thumbnail-overlay-pinking-renderer",function(){if(UYH!==void 0)return UYH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return UYH=W},{mode:1});var M$Q;var GX=function(){var W=_.S.apply(this,arguments)||this;W.disableTooltips=!1;W.isLoading=!1;W.useExpandableTooltip=!1;W.toggled=!1;W.hovered=!1;W.mouseoverDelayJobId=0;W.toggleDelayJobId=0;W.expandAnimationDelayJobId=0;return W};
_.C(GX,_.S);_.p=GX.prototype;_.p.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");_.tH(this.hostElement).querySelector("#tooltip").position=_.eD("HTML_DIR")==="rtl"?"right":"left"};
_.p.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.fg.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.fg.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.fg.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.p.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.fg.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.fg.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.fg.cancelJob(this.expandAnimationDelayJobId)};
_.p.computeIcon=function(W,B,z){return(W=z?B:W)&&W.iconType?_.lg(W.iconType):void 0};
_.p.computeAriaLabel=function(W,B,z){return _.k(z?B:W,$D9).label};
_.p.computeTooltip=function(W,B,z){return z?B:W};
_.p.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.p.computeIconOnHover=function(W,B){if((W==null?0:W.iconType)&&!B)return _.lg(W.iconType)};
_.p.onTap=function(W){var B=this;W.stopPropagation();W.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(W=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(W),this.useExpandableTooltip&&(this.toggleDelayJobId=_.P2(_.fg,function(){B.hovered=!1;B.data&&!B.data.toggledServiceEndpoint&&(B.expandAnimationDelayJobId=_.P2(_.fg,function(){B.set("data.isToggled",
!1)},200))},2E3))};
_.p.onMouseenter=function(){var W=this;this.mouseoverDelayJobId=_.P2(_.fg,function(){W.hovered=!0},300)};
_.p.onMouseleave=function(){_.fg.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.p.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.p.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.p.onServiceRequestCompleted=function(W,B){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(B)||this.set("data.isToggled",!this.data.isToggled)};
_.p.serviceRequestWasSuccessful=function(W){return _.k(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.pS)?W.data.status==="STATUS_SUCCEEDED":!0};
GX.prototype.onServiceRequestCompleted=GX.prototype.onServiceRequestCompleted;GX.prototype.onPopupClosed=GX.prototype.onPopupClosed;GX.prototype.onPopupOpened=GX.prototype.onPopupOpened;GX.prototype.onMouseleave=GX.prototype.onMouseleave;GX.prototype.dataChanged=GX.prototype.dataChanged;_.Q([_.h(_.R9),_.y("design:type",Object)],GX.prototype,"ironButtonState",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],GX.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],GX.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],GX.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.y("design:type",Object)],GX.prototype,"ariaLabel",void 0);_.Q([_.F(),_.y("design:type",Object)],GX.prototype,"disableTooltips",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],GX.prototype,"popupOpen",void 0);_.Q([_.F(),_.y("design:type",Object)],GX.prototype,"isLoading",void 0);_.Q([_.F(),_.y("design:type",Element)],GX.prototype,"eventSink",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],GX.prototype,"useExpandableTooltip",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.y("design:type",Object)],GX.prototype,"toggled",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],GX.prototype,"hovered",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.y("design:type",Object)],GX.prototype,"iconOnHover",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GX.prototype,"dataChanged",null);
_.Q([_.IN("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GX.prototype,"onMouseleave",null);_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GX.prototype,"onPopupOpened",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GX.prototype,"onPopupClosed",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],GX.prototype,"onServiceRequestCompleted",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],GX);
_.D(GX,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(M$Q!==void 0)return M$Q;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return M$Q=W},{mode:_.PJ("kevlar_poly_si_batch_j053")?1:2});var axd;var RFD=_.m(function(W){var B=W.data;var z=W.thumbnailSize;var G=function(){return B().enableSegmentView};
return _.w("yt-thumbnail-overlay-progress-bar-view-model",{class:_.kG("ytThumbnailOverlayProgressBarHost",function(){return A2k(z==null?void 0:z())})},_.w(_.V,{cond:G,
then:function(){return _.w("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.w("div",{class:_.uj("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+B().startPercent+"%"}}),_.w("div",{class:_.uj("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+B().segmentDurationPercent+"%"}},_.w("div",{class:_.uj("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.w("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.w("div",null," ",function(){return B().segmentLabel})),_.w("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.w("div",{class:_.uj("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.w(_.V,{cond:function(){return!G()&&B().startPercent},
then:function(){var Y={};return _.w("div",{class:_.uj("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(Y.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.r("web_enable_modern_progress_bar_overlay"),Y))},_.w("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+B().startPercent+"%"}}))}}))},"X");
RFD.idomCompat=!0;var WvU=_.m(function(W){var B=_.k2(),z=_.ny(function(Y){var d,E,v;a:{var c=(d=W.data())==null?void 0:d.animationActivationTargetId;d=((E=W.data())==null?void 0:E.animationActivationEntityKey)||"";E=(v=W.data())==null?void 0:v.animationActivationEntitySelectorType;if(d&&c)switch(E){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":Y=_.P3(Y.entities,"playerStateEntity",d);v=_.dO().resolve(_.Y8(_.Qb));c=!!(Y&&Y.videoId===c&&(v==null?0:v.isMiniplayerActive()));c={activated:c,playAnimation:c&&
Y.playerState==="PLAYER_STATE_PLAYING"};break a}c=void 0}return c});
_.ja(function(){var Y;if((Y=z())==null?0:Y.activated){var d;if((d=z())==null?0:d.playAnimation){var E;(E=B.lottieEl)==null||E.goToAndPlay(0)}else{var v;(v=B.lottieEl)==null||v.goToAndStop(0)}}},"DbQiXd");
var G=function(){var Y,d=!((Y=z())==null||!Y.activated);if(W.data()){Y=W.data();var E=void 0;Y.icon&&(E=_.m3X(Y.icon),E=NZ0(E));var v=void 0,c;if((c=Y.backgroundColor)==null?0:c.lightTheme){var J;v={backgroundColor:RE((J=Y.backgroundColor)==null?void 0:J.lightTheme,"0.8")}}if(Y.text||E||d){if(d&&Y.lottieData&&B){J=Y.lottieData;var g,t,P;c={animationConfig:{name:J.url,path:J.url,autoplay:(g=J.settings)==null?void 0:g.autoplay,loop:(P=(t=J.settings)==null?void 0:t.loop)!=null?P:!0},animationRef:B}}else c=
void 0;if(d)g=17;else b:switch(Y.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":g=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":g=19;break b;default:g=17}d={type:g,text:d&&Y.animatedText?Y.animatedText:Y.text,icon:E,customColors:v,animation:c}}else d=void 0}else d=void 0;return d};
return _.w("yt-thumbnail-badge-view-model",{class:_.kG("ytThumbnailBadgeViewModelHost",W.class)},_.w(_.V,{cond:G,then:function(){return _.w(_.vD,{data:function(){return G()}})}}))},"Y");var BMQ=_.m(function(W){var B={},z={};return _.w("yt-thumbnail-bottom-overlay-view-model",{class:_.kG("ytThumbnailBottomOverlayViewModelHost",(B.ytThumbnailBottomOverlayViewModelHostBackground=function(){return W.data().enableGradientBackground},B))},_.w(_.Sc,{data:function(){return W.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(G){return _.w(RFD,{data:G.data,
thumbnailSize:W.thumbnailSize})}}),_.w("div",{class:_.kG("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var G;
return iKQ((G=W.thumbnailSize)==null?void 0:G.call(W))},(z.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var G;
return(G=W.isClip)==null?void 0:G.call(W)},z.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var G;
return!_.r("web_enable_modern_progress_bar_overlay")&&((G=W.thumbnailSize)==null?void 0:G.call(W))==="small"},z))},_.w(_.Sc,{data:function(){return W.data().badge}},{thumbnailBadgeViewModel:function(G){return _.w(WvU,{data:G.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.w(_.Sc,{data:function(){return W.data().badges}},{thumbnailBadgeViewModel:function(G){return _.w(WvU,{data:G.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Z");
BMQ.idomCompat=!0;_.Vm(BMQ,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.wS,thumbnailSize:_.wS,isClip:_.wS}});var stx={calledOnce:!1,state:"visible"},PWv={calledOnce:!1,state:"hidden"};var YR=_.m(function(W){var B=W.data;var z=W.className;W=W.alwaysShow;var G=_.vJD(),Y={};return _.w("thumbnail-hover-overlay-view-model",{el:_.TG(_.Qi(function(){return B().rendererContext})),
class:_.kG("ytThumbnailHoverOverlayViewModelHost",z,(Y.ytThumbnailHoverOverlayViewModelHostForceHover=W,Y)),"aria-label":function(){var d;return(d=_.k(B().rendererContext,_.FB))==null?void 0:d.label},
role:function(){return _.x2(B().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.x2(B().rendererContext)!==void 0?0:void 0},
"on:keypress":G},_.w("div",{class:_.kG("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(B().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var d="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:d="ytThumbnailHoverOverlayViewModelStyleCover"}return d})},_.w(_.V,{cond:function(){return B().icon},
then:function(d){return _.w(_.iF,{data:d,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.w(_.V,{cond:function(){return B().text},
then:function(d){return _.w(_.r0,{text:d,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"$");
YR.idomCompat=!0;var zHM=_.m(function(W){var B=W.data;return _.w(_.Sc,{data:function(){return B==null?void 0:B().overlays}},{thumbnailHoverOverlayViewModel:YR})},"aa");
zHM.idomCompat=!0;var GM7={};var Ymu=_.m(function(W){var B=W.data;var z=W.image;var G=W.state;var Y=W.iconType;var d=W.overlays;var E=W.isOverlay;var v=_.ag("div");W=_.A(_.g4(!0,void 0,"AA4e7b"));var c=W.next().value,J=W.next().value,g=function(){return!!B().onTap},t=_.ig(Y,"LIVE");
_.ja(function(){var Z=B();requestAnimationFrame(function(){if(v.value===null)var l=!0;else{var b=v.value;l=Z.badgeText;var O=kj8(Z.size);l in GM7?b=GM7[l]:(b=b.clientWidth,GM7[l]=b);(l=b>O)?v.value.style.display="none":v.value.style.visibility="visible"}J(l)})},"vNdN8b");
var P=function(){var Z={};return Z["yt-spec-avatar-shape__image"]=!0,Z["yt-spec-avatar-shape__image--ads-app"]=B().type===1,Z["yt-spec-avatar-shape__image--square"]=B().type===2,Z};
return _.w("yt-avatar-shape",null,_.w("div",{el:_.TG(CW0(g,{keydown:function(Z){if(Z.key==="Enter"){var l;(l=Z.currentTarget)==null||l.click()}},
click:function(Z){var l,b;return void((b=(l=B()).onTap)==null?void 0:b.call(l,Z))}})),
class:function(){var Z={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},l=B();Z=(Z[l.clusterLayoutConfig?hFR(l.clusterLayoutConfig):HK0(l.size)]=!0,Z["yt-spec-avatar-shape__button--tappable"]=g(),Z);(l=B().avatarButtonCustomClassName)&&(Z[l]=!0);return _.uj(Z)},
"aria-label":function(){return g()?B().accessibilityText:""},
role:function(){return g()?"button":void 0},
tabindex:function(){return g()?0:void 0}},_.w("div",{class:function(){var Z,l=B(),b=G==null?void 0:G(),O=E==null?void 0:E(),K=!((Z=l.decorations)==null||!Z.includes(2)||l.size!=="medium"&&l.size!=="large"),e=l.size==="tiny"||l.size==="extra-small",a,q,n,L,By={};
Z=(By["yt-spec-avatar-shape--live-ring"]=!!(((a=l.decorations)==null?0:a.includes(0))&&S3v(l.size)),By["yt-spec-avatar-shape--stories-watched"]=K&&!(b==null||!b.storiesWatched),By["yt-spec-avatar-shape--stories-unwatched"]=K&&!(b==null?0:b.storiesWatched),By["yt-spec-avatar-shape--background-border"]=bKy(l.decorations)&&!e,By["yt-spec-avatar-shape--background-border-thin"]=bKy(l.decorations)&&e,By["yt-spec-avatar-shape__on-select-border"]=!((q=l.decorations)==null||!q.includes(4)),By["yt-spec-avatar-shape__white-border"]=
!((n=l.decorations)==null||!n.includes(5)),By["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((L=l.decorations)==null?0:L.includes(5))&&e),By["yt-spec-avatar-shape--is-overlay"]=!!O,By);return _.uj(Z)},
style:function(){a:{var Z=B().clusterLayoutConfig;if(Z){b:{var l=Z.numAvatarsInCluster;var b=Z.avatarIndex;if(b!==l-1){switch(Z.clusterSize){case "small":Z="32";break;case "medium":Z="36";break;case "40":Z="40";break;default:l=void 0;break b}l="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+Z+"x"+Z+"_avatars_"+l+"_index_"+b+".svg"}else l=void 0}if(l){l=_.oK({"-webkit-mask-image":"url("+l+")","mask-image":"url("+l+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}l=void 0}return l}},_.w("div",{class:function(){var Z={};
var l=B();Z=(Z[l.clusterLayoutConfig?Ixt(l.clusterLayoutConfig):oJQ(l.size)]=!0,Z["yt-spec-avatar-shape--no-margin"]=bKy(B().decorations),Z);return _.uj(Z)}},_.w(_.iF,{data:z,
alt:function(){return!g()&&B().accessibilityText?B().accessibilityText:""},
targetWidth:function(){return FKD(B().size)},
targetHeight:function(){return FKD(B().size)},
className:function(){return _.uj(P())}}),_.w(_.V,{cond:function(){var Z;
return((Z=B().decorations)==null?void 0:Z.includes(0))&&S3v(B().size)},
then:function(){return _.w("div",{class:function(){var Z={};Z=(Z["yt-spec-avatar-shape__live-badge"]=!0,Z["yt-spec-avatar-shape__live-badge--badge-small"]=B().size==="small",Z["yt-spec-avatar-shape__live-badge--badge-medium"]=B().size==="medium"||B().size==="48",Z["yt-spec-avatar-shape__live-badge--badge-large"]=B().size==="large",Z["yt-spec-avatar-shape__live-badge--badge-extra-large"]=B().size==="extra-large"||B().size==="extra-extra-large"||B().size==="giant",Z);return _.uj(Z)}},_.w(_.V,{cond:function(){return B().badgeText},
then:function(Z){return _.w("div",{class:"yt-spec-avatar-shape__badge-text",el:v},Z)}}),_.w(_.V,{cond:c,
then:function(){return _.w("div",{class:"yt-spec-avatar-shape__badge-icon"},_.w(_.hY,{icon:t,size:function(){a:switch(B().size){case "extra-large":var Z=16;break a;default:Z=13}return Z}}))}}))}}),_.w(_.V,{cond:function(){var Z,l;
return((Z=B().decorations)==null?void 0:Z.includes(1))||((l=B().decorations)==null?void 0:l.includes(0))&&!S3v(B().size)},
then:function(){return _.w("div",{class:function(){var Z=B(),l,b,O={};var K=(O["yt-spec-avatar-shape__live-dot"]=!((l=Z.decorations)==null||!l.includes(0)||S3v(Z.size)),O["yt-spec-avatar-shape__new-content"]=!((b=Z.decorations)==null||!b.includes(1)),O);return _.uj(K)}})}}),_.w(_.V,{cond:function(){return!!d},
then:function(){return _.w("div",{class:function(){var Z={};Z=Object.assign((Z["yt-spec-avatar-shape__image-overlays"]=!0,Z),P());return _.uj(Z)}},d==null?void 0:d())}})))))},"ba");
Ymu.idomCompat={callbacks:{overlays:!0}};_.ds=_.m(function(W){function B(){z().endpoint&&_.aB(z().endpoint)}
var z=W.data;var G=W.decorations;var Y=W.avatarButtonCustomClassName;var d=W.isOverlay;var E=W.clusterLayoutConfig;return _.w("avatar-view-model",null,_.w(_.V,{cond:function(){return z().image},
then:function(v){return _.w(Ymu,{data:function(){return fx2({data:z(),onTap:z().endpoint?B:void 0,decorations:G==null?void 0:G(),badgeText:void 0,accessibilityText:z().accessibilityText,avatarButtonCustomClassName:Y==null?void 0:Y(),clusterLayoutConfig:E==null?void 0:E()})},
image:v,iconType:"RADAR_LIVE",overlays:function(){return _.w(zHM,{data:z})},
isOverlay:d})}}))},"ca");
_.ds.idomCompat=!0;_.pY=_.m(function(W){var B=W.data;W=W.className;var z=_.ag("yt-decorated-avatar-view-model"),G=function(){return _.k(B().avatar,_.yi)},Y=_.r4(function(){var d,E=B(),v=G(),c=_.x2(B().rendererContext),J=(d=z.value)!=null?d:void 0,g;
if(v){J={data:E,avatar:v,onTap:c,element:J};d=J.data;E=J.avatar;v=J.onTap;c=J.element;J=J.commandController;v=v?ug8(v,c,J):void 0;c=[];d.liveData&&c.push(0);var t;J=(t=d.liveData)==null?void 0:t.liveBadgeText;t=(g=_.k(d.rendererContext,_.FB))==null?void 0:g.label;g=fx2({data:E,onTap:v,decorations:c,badgeText:J,accessibilityText:t?t:d.a11yLabel})}else g={size:"medium"};return g},void 0,"c00kWd");
return _.w("yt-decorated-avatar-view-model",{class:_.kG("ytDecoratedAvatarViewModelHost",W),el:z},_.w(_.V,{cond:function(){var d;return(d=G())==null?void 0:d.image},
then:function(d){return _.w(Ymu,{data:Y,image:d,iconType:"RADAR_LIVE",overlays:function(){return _.w(zHM,{data:G})}})}}))},"da");
_.pY.idomCompat=!0;_.Ae=_.m(function(W){var B=function(){var v;return Object.assign({},W.data(),(v=W.overrides)==null?void 0:v.call(W))},z=function(){return _.Dp(B().rendererContext)},G=function(){var v=B().avatars,c,J;
return(J=(c=(v==null?0:v[0])?_.k(v[0],_.yi):void 0)==null?void 0:c.avatarImageSize)!=null?J:"AVATAR_SIZE_UNKNOWN"},Y=function(){return KKu(B())},d=function(){if(B().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var v=void 0;
else if((v=W.decorations)==null?0:v.call(W))v=W.decorations();else{v=B();var c=0;v.avatars&&(c+=v.avatars.length);v.decoratedText&&(c+=1);v=c>1?[3]:[]}return v},E={};
return _.w("yt-avatar-stack-view-model",{el:_.TG(_.Qi(function(){return B().rendererContext})),
class:_.kG("yt-avatar-stack-view-model",W.className,(E["yt-avatar-stack-view-model--tappable"]=z,E["yt-avatar-stack-view-model--is-overlay"]=W.isOverlay,E["yt-avatar-stack-view-model--medium-text"]=W.useMediumText,E)),tabindex:function(){return z()?0:void 0},
role:function(){return z()?"link":void 0},
"aria-label":function(){var v,c;return(c=(v=_.k(B().rendererContext,_.FB))==null?void 0:v.label)!=null?c:""}},_.w(_.V,{cond:function(){var v;
return B().avatars&&!((v=W.hideAvatar)==null?0:v.call(W))},
then:function(){return _.w("div",{class:"yt-avatar-stack-view-model__avatars"},_.w(_.V,{cond:function(){return B().decoratedText},
then:function(v){var c={};return _.w("div",{class:_.kG("yt-avatar-stack-view-model__text-container",(c["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return G()==="AVATAR_SIZE_XXS"||G()==="AVATAR_SIZE_XS"},c["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var J;
return((J=W.isOverlay)==null?void 0:J.call(W))&&(G()==="AVATAR_SIZE_XXS"||G()==="AVATAR_SIZE_XS")},c)),
style:_.oK({width:function(){return Y().avatarSizeInPx+"px"},
height:function(){return Y().avatarSizeInPx+"px"}})},_.w(_.r0,{text:v,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.w("div",{style:function(){return _.oK(Y().avatarStackStyle)()},
class:function(){return Y().avatarStackClass}},_.w(_.Sc,{data:function(){return Y().avatars.reverse()}},{avatarViewModel:function(v,c){return _.w("div",{style:function(){var J,g;
return _.oK((g=(J=Y()).avatarStyle)==null?void 0:g.call(J,c()))()},
class:function(){return Y().avatarClass}},_.w(_.ds,{data:v.data,
decorations:d,avatarButtonCustomClassName:function(){return Y().avatarButtonCustomClassName},
isOverlay:W.isOverlay,clusterLayoutConfig:function(){var J,g;return(g=(J=Y()).clusterLayoutConfig)==null?void 0:g.call(J,c())}}))},
decoratedAvatarViewModel:function(v,c){return _.w("div",{style:function(){var J,g;return _.oK((g=(J=Y()).avatarStyle)==null?void 0:g.call(J,c()))()},
class:function(){return Y().avatarClass}},_.w(_.pY,{data:v.data}))}})))}}),_.w(_.V,{cond:function(){return B().text},
then:function(v){return _.w(_.r0,{text:v,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"ea");
_.Ae.idomCompat=!0;_.Vm(_.m(function(W){var B=W.data;var z=W.thumbnailSize;return _.w("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.w("div",{class:_.kG("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return eFQ(z==null?void 0:z())})},_.w(_.Sc,{data:function(){return B().avatarStack}},{avatarStackViewModel:function(G){return _.w(_.Ae,{data:G.data,
decorations:[5]})}})))},"fa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.kz,
thumbnailSize:_.kz}});var dWD=_.m(function(W){W=_.EV(W,{hidden:!1});var B=W.data;return _.w("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:W.hidden},_.w(_.r0,{text:function(){return B().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.w(_.V,{cond:function(){return B().subtitle},
then:function(){return _.w(_.r0,{text:function(){return B().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"ga");
dWD.idomCompat=!0;_.Vm(dWD,"yt-thumbnail-overlay-title-view-model",{props:{data:_.kz,hidden:_.kz}});var paD=_.m(function(W){W=_.EV(W,{isClip:!1});var B=W.data,z=W.thumbnailSize,G={};return _.w("yt-thumbnail-overlay-badge-view-model",{class:_.kG("yt-thumbnail-overlay-badge-view-model",function(){a:switch(B().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var Y="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:Y="yt-thumbnail-overlay-badge-view-model--bottom-end"}return Y},function(){return mYX(z==null?void 0:z())},(G["yt-thumbnail-overlay-badge-view-model--clip"]=W.isClip,
G))},_.w(_.Sc,{data:function(){return B().thumbnailBadges}},{thumbnailBadgeViewModel:function(Y){return _.w(WvU,{data:Y.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"ha");
paD.idomCompat=!0;_.Vm(paD,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.kz,thumbnailSize:_.kz,isClip:_.kz}});var AdR=_.m(function(W){var B=W.data;W=W.hidden;var z=_.r4(function(){return B().indicatorCount||0},void 0,"AbKnMc"),G={};
return _.w("yt-page-indicator-view-model",{class:_.kG("ytPageIndicatorViewModelHost",(G.ytPageIndicatorViewModelIndicatorHidden=function(){return!B().indicatorCount},G)),
hidden:W},_.w(_.IJ,{each:function(){return Array(z())}},function(Y,d){var E={};
return _.w("div",{class:_.kG("ytPageIndicatorViewModelIndicator",(E.ytPageIndicatorViewModelIndicatorSelected=function(){return B().selectedIndex===d()},E))})}))},"ia");
AdR.idomCompat=!0;_.Vm(AdR,"yt-page-indicator-view-model",{props:{data:_.kz,hidden:_.kz}});var iM=function(){var W=_.S.apply(this,arguments)||this;W.eventSink=function(){return W};
W.disableInteraction=!1;W.noRoundedCorners=!1;W.isPreviewLoading=!1;W.isOriginalAspectRatio=!1;W.computedObjectFit=!1;W.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return W};
_.C(iM,_.S);_.p=iM.prototype;
_.p.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:_.r("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"}}};
_.p.onImageLoaded=function(){this.loaded=!0};
_.p.onImageUnloaded=function(){this.loaded=!1};
_.p.computeRichThumbnail=function(W,B,z,G){if(W&&B&&!G&&!_.r("disable_moving_thumbs_handling")&&!z)return B};
_.p.computeImageWidth=function(W,B){return B||9999};
_.p.computeIsOriginalAspectRatio=function(W){return W};
_.p.computeIsLive=function(W){if(W==null?0:W.badges)for(var B=0;B<W.badges.length;B++){var z=W.badges[B];if(z.metadataBadgeRenderer&&z.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(W==null?0:W.thumbnailOverlays)for(B=0;B<W.thumbnailOverlays.length;B++)if(z=W.thumbnailOverlays[B],z.thumbnailOverlayTimeStatusRenderer&&z.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.p.computeObjectFit=function(W,B){return B||(W?"CONTAIN":"")};
_.p.computeNavigationEndpoint=function(W,B,z){return W?B:z};
_.p.computeHasClip=function(W){W=_.A(W||[]);for(var B=W.next();!B.done;B=W.next())if(B.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.p.computeOverlayColor=function(W){var B;return(W==null?0:(B=W.darkColorPalette)==null?0:B.section2Color)?W.darkColorPalette.section2Color:W==null?void 0:W.sampledThumbnailColor};
_.G5.Object.defineProperties(iM.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return wIv(this.width)}}});
iM.prototype.onImageUnloaded=iM.prototype.onImageUnloaded;iM.prototype.onImageLoaded=iM.prototype.onImageLoaded;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],iM.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],iM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(esd),_.y("design:type",Object)],iM.prototype,"ytdThumbnailBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],iM.prototype,"componentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],iM.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],iM.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],iM.prototype,"circular",void 0);
_.Q([_.F({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.y("design:type",Object)],iM.prototype,"richThumbnail",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.y("design:type",Boolean)],iM.prototype,"hasClip",void 0);_.Q([_.F(),_.y("design:type",Object)],iM.prototype,"eventSink",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],iM.prototype,"queued",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],iM.prototype,"richGridThumbnail",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],iM.prototype,"useExpandableTooltip",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],iM.prototype,"useUntranslatedNavigationEndpoint",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],iM.prototype,"disableInteraction",void 0);
_.Q([_.F({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.y("design:type",Object)],iM.prototype,"computedNavigationEndpoint",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],iM.prototype,"nowPlayingEqualizerOnly",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],iM.prototype,"hidePlaybackStatus",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],iM.prototype,"objectFit",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],iM.prototype,"noRoundedCorners",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],iM.prototype,"watchFeedThumbnail",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],iM.prototype,"isPreviewLoading",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.y("design:type",Object)],iM.prototype,"isOriginalAspectRatio",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.y("design:type",Object)],iM.prototype,"computedObjectFit",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.y("design:type",Boolean)],iM.prototype,"isLiveVideo",void 0);
_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],iM.prototype,"loaded",void 0);_.Q([_.F({computed:"computeOverlayColor(data.thumbnail)"}),_.y("design:type",Object)],iM.prototype,"overlayColor",void 0);_.Q([_.F({selector:_.TWt}),_.y("design:type",Boolean)],iM.prototype,"inlinePreviewIsEnabled",void 0);_.Q([_.F(),_.y("design:type",Number)],iM.prototype,"width",void 0);
_.Q([_.H("inlinePreviewIsEnabled"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iM.prototype,"isPreviewDisabled",null);_.Q([_.H("width"),_.y("design:type",String),_.y("design:paramtypes",[])],iM.prototype,"thumbnailSize",null);_.Q([_.IN("image-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iM.prototype,"onImageLoaded",null);
_.Q([_.IN("image-unloaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iM.prototype,"onImageUnloaded",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-thumbnail"})],iM);
var i5H=_.sV()(iM,"ytd-thumbnail",function(){if(axd===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);axd=W}W=axd;return W},{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 QtT=function(W){var B=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14919_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14919_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(z){EeM(B,z)};
this.onLockupMouseLeaveFn=function(z){z=z.relatedTarget;var G,Y;((G=document.getElementsByTagName("ytd-video-preview"))==null?0:(Y=G.item(0))==null?0:Y.contains(z))||(B.terminateVideoPreview(),Ei(B))};
this.onThumbnailMouseDownFn=function(){B.terminateVideoPreview();Ei(B)};
this.onTouchStart=function(){B.JSC$14919_touched=!0};
this.mediaRenderer=W.mediaRenderer;this.thumbnailElement=W.thumbnailElement;this.lockupElement=W.lockupElement;this.videoPreviewOptsInput=W.videoPreviewOpts;TMu(this);TX(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)):
_.Oc(Error("Ih")):_.Oc(Error("Jh")):veT(this)},zH=function(W){veT(W);
var B;(B=W.lockupElement)==null||B.removeEventListener("mouseenter",W.onMouseMoveFn);var z;(z=W.lockupElement)==null||z.removeEventListener("mouseleave",W.onLockupMouseLeaveFn);var G;(G=W.lockupElement)==null||G.removeEventListener("touchstart",W.onTouchStart);var Y;(Y=W.thumbnailElement)==null||Y.removeEventListener("mousedown",W.onThumbnailMouseDownFn);Ei(W)},TMu=function(W){W.inlinePreviewIsEnabledForUser=_.Y_().getState().ui.inlinePreviewIsEnabled;
W.unsubscribeFromInlinePreviewIsEnabled=_.NG(_.Y_(),_.TWt,function(B){(W.inlinePreviewIsEnabledForUser=B)||Ei(W)});
W.JSC$14919_unsubscribeFromInlinePreviewIsActive=_.NG(_.Y_(),_.EUr,function(B){(W.inlinePreviewIsActive=B)||Ei(W)})},veT=function(W){W.unsubscribeFromInlinePreviewIsEnabled();
W.unsubscribeFromInlinePreviewIsEnabled=function(){};
W.JSC$14919_unsubscribeFromInlinePreviewIsActive();W.JSC$14919_unsubscribeFromInlinePreviewIsActive=function(){}},EeM=function(W,B){B.buttons>0||(B=_.iO("kevlar_lockup_hover_delay",-1),W.JSC$14919_touched&&B>=0?(_.fg.cancelJob(W.videoPreviewJobId),W.videoPreviewJobId=_.P2(_.fg,function(){cdR(W)},B),W.JSC$14919_touched=!1):cdR(W))},oCt=function(W){W.videoPreviewJobId=_.P2(_.fg,function(){return _.T(function(B){return B.yield(wa4(W,{isAutoplay:!0}),0)})})},cdR=function(W){!W.previewTriggered&&TX(W)&&
(W.inlinePreviewIsActive&&W.terminateVideoPreview(),W.previewTriggered=!0,W.mediaRenderer.isInlinePreviewTriggered=!0,_.fg.cancelJob(W.videoPreviewJobId),W.videoPreviewJobId=_.P2(_.fg,function(){return _.T(function(B){return B.yield(wa4(W),0)})}))},wa4=function(W,B){B=B===void 0?{}:B;
var z=B.isAutoplay===void 0?!1:B.isAutoplay;var G,Y,d,E;return _.T(function(v){if(v.nextAddress==1){if(!TX(W))return v.return();G=W.getVideoPreviewOpts();if(!G)return v.return();z&&(G.isAutoplay=!0);return(d=(Y=_.wV(W.mediaRenderer.hostElement,"yt-open-video-preview-action",[G]))&&Y[0])?v.yield(Y[0],3):v.jumpTo(2)}v.nextAddress!=2&&(d=v.yieldResult===1);if(d){var c=(E=W.mediaRenderer)==null?void 0:E.data;c&&(DYk(c)?delete c.inlinePlayerData:"inlinePlaybackEndpoint"in c&&delete c.inlinePlaybackEndpoint)}_.HG(v)})};
QtT.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var W,B;if((B=(W=this.videoPreviewOptsInput)==null?void 0:W.videoPreviewData)!=null)W=B;else if(W=this.mediaRenderer.data)if(DYk(W))W={inlinePlaybackEndpoint:_.$B(W.inlinePlayerData.onVisible),navigationEndpoint:_.$B(W.onTap),thumbnail:"image"in W?W.image:W.thumbnail,thumbnailOverlays:void 0,accessibilityText:xYT(W)};else if("multipleInlinePlaybackEndpoint"in W){var z=_.k(_.k(W.multipleInlinePlaybackEndpoint,A19),iw4);if(z!=
null&&z.playerDescriptors){B=[];z=_.A(z.playerDescriptors);for(var G=z.next();!G.done;G=z.next())G=G.value,B.push({inlinePlaybackEndpoint:G.inlinePlaybackEndpoint,navigationEndpoint:G.navigationEndpoint,thumbnail:G.thumbnail,thumbnailOverlays:G.thumbnailOverlays,accessibilityText:xYT(W)});W=B}else W=void 0}else W={inlinePlaybackEndpoint:W.inlinePlaybackEndpoint,navigationEndpoint:W.navigationEndpoint,thumbnail:W.thumbnail,thumbnailOverlays:W.thumbnailOverlays,accessibilityText:xYT(W)};else W=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:W,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var TX=function(W){var B;if(B=W.inlinePreviewIsEnabledForUser)B=(W=W.mediaRenderer.data)?"inlinePlaybackEndpoint"in W&&W.inlinePlaybackEndpoint||DYk(W)&&W.inlinePlayerData||"multipleInlinePlaybackEndpoint"in W&&W.multipleInlinePlaybackEndpoint?!0:!1:!1;return B};
QtT.prototype.terminateVideoPreview=function(){_.c0(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Ei=function(W){_.fg.cancelJob(W.videoPreviewJobId);W.inlinePreviewIsActive=!1;W.previewTriggered=!1;W.mediaRenderer.isInlinePreviewTriggered=!1};var V6U=_.ak(["#"]),vH=function(){var W=_.S.apply(this,arguments)||this;W.isDisabled=!1;return W};
_.C(vH,_.S);_.p=vH.prototype;_.p.configureRendererStamper=function(){return{"data.menu":qV,"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"}}}};
_.p.attached=function(){this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.getMetadata=function(W){var B=[];if(W.metadataText&&Object.keys(W.metadataText).length>0){var z=this.ytRendererBehavior.getSimpleString(W.metadataText);W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&(z=_.XE(z,Number(W.upcomingEventData.startTime)));B.push(z)}else W.shortViewCountText&&B.push(this.ytRendererBehavior.getSimpleString(W.shortViewCountText)),W.publishedTimeText&&B.push(this.ytRendererBehavior.getSimpleString(W.publishedTimeText)),W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&
(z=this.ytRendererBehavior.getSimpleString(W.upcomingEventData.upcomingEventText),B.push(_.XE(z,Number(W.upcomingEventData.startTime))));return B};
_.p.calculateBylineText=function(W){return W.shortBylineText?W.shortBylineText:W.bylineText?W.bylineText:null};
_.p.calculateIsDisabled=function(W){return!!W.isDisabled};
_.p.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W)||_.BjQ(V6U)};
_.p.onDetailsTap=function(W){var B=this.data&&this.data.navigationEndpoint;B&&!_.p2(_.AH(W)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.r("kevlar_grid_video_renderer_killswitch")?_.v0(this.hostElement,"yt-navigate",{endpoint:B}):this.ytComponentBehavior.resolveCommand(B))};
_.p.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14926_inlinePreviewHoverListener=q$({mediaRenderer:this,lockupElement:_.tH(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.tH(this.hostElement).querySelector("ytd-thumbnail")})};
_.p.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$14926_inlinePreviewHoverListener)==null||zH(W)};
_.p.computeThumbnailWidth=function(W,B){return B&&B>0?B:W?360:210};
_.p.computeNumBadgesInRow=function(W){var B;return((B=W.badges)==null?void 0:B.length)||0};
_.p.computeShowChannelThumbnail=function(W,B){var z;return B&&!!(W==null?0:(z=W.channelThumbnailSupportedRenderers)==null?0:z.channelThumbnailWithLinkRenderer)};
_.G5.Object.defineProperties(vH.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$14926_inlinePreviewHoverListener)==null?0:TX(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
vH.prototype.dataChanged=vH.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],vH.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],vH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],vH.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.h(_.P$),_.y("design:type",Object)],vH.prototype,"ytdLockupBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],vH.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],vH.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],vH.prototype,"noEndpoints",void 0);_.Q([_.F({computed:"calculateBylineText(data)"}),_.y("design:type",Object)],vH.prototype,"bylineText",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],vH.prototype,"isSearch",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],vH.prototype,"isDownloading",void 0);_.Q([_.F({reflectToAttribute:!0,value:0}),_.y("design:type",Number)],vH.prototype,"width",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.y("design:type",Object)],vH.prototype,"isDisabled",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vH.prototype,"dataChanged",null);_.Q([_.H("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],vH.prototype,"isHovered",null);_.Q([_.u({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],vH);
_.D(vH,"ytd-grid-video-renderer",function(){if(mYF!==void 0)return mYF;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return mYF=W},{mode:_.PJ("kevlar_poly_si_batch_j047")?1:2});var Jd6;var cH=function(){var W=_.S.apply(this,arguments)||this;W.roundedContainer=!0;W.skipRoundingTop=!1;W.disableTopPadding=!1;W.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return W};
_.C(cH,_.S);cH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
cH.prototype.onClick=function(W){var B,z=(B=this.data)==null?void 0:B.sourceEndpoint;!_.p2(_.AH(W),this.hostElement,["A".toString()])&&z&&_.v0(this.hostElement,"yt-navigate",{endpoint:z})};
_.G5.Object.defineProperties(cH.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 W;return!((W=this.data)==null||!W.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var W,B;return(B=(W=this.data)==null?void 0:W.paragraphMaxLines)!=null?B:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],cH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],cH.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],cH.prototype,"showVerticalDividers",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],cH.prototype,"roundedContainer",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],cH.prototype,"skipRoundingTop",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],cH.prototype,"disableTopPadding",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],cH.prototype,"amsterdamEnabled",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],cH.prototype,"showMetadataAtTop",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],cH.prototype,"showMetadataBelowTitle",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.menu"),_.y("design:type",Object),_.y("design:paramtypes",[])],cH.prototype,"hasMenu",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.truncateParagraphs"),_.y("design:type",Object),_.y("design:paramtypes",[])],cH.prototype,"truncateParagraphs",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.paragraphMaxLines"),_.y("design:type",Number),_.y("design:paramtypes",[])],cH.prototype,"paragraphMaxLines",null);_.Q([_.F({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.H("data.background"),_.y("design:type",Object),_.y("design:paramtypes",[])],cH.prototype,"background",null);_.Q([_.u({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],cH);
_.D(cH,"ytd-info-panel-content-renderer",function(){if(Jd6!==void 0)return Jd6;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Jd6=W},{mode:_.PJ("kevlar_poly_si_batch_j076")?1:2});var geH;var t6u;var sCH;var PTR;var ws=function(){return _.S.apply(this,arguments)||this};
_.C(ws,_.S);ws.prototype.computeStyle=function(W){return W};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ws.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],ws.prototype,"style_",void 0);_.Q([_.NJ({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],ws);
_.D(ws,"yt-channel-thumbnail-with-link-renderer",function(){if(PTR===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;sCH===void 0&&(sCH=document.createElement("template"));var G=sCH;z.call(B,G.content.cloneNode(!0),W.content.firstChild);PTR=W}W=PTR;return W},{mode:2});var Vv=function(){var W=_.S.apply(this,arguments)||this;W.modernTypography=_.r("web_modern_typography");return W};
_.C(Vv,_.S);Vv.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"}}}};
Vv.prototype.computeTitleStyle=function(W){return W||null};
Vv.prototype.computeAvatarStyle=function(W){return W||null};
Vv.prototype.computeShowNavigationButton=function(W,B){return!(W==null||!W.navigationButton||B)};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Vv.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.y("design:type",String)],Vv.prototype,"titleStyle",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.y("design:type",String)],Vv.prototype,"avatarStyle",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Vv.prototype,"hideNavigationButton",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Vv.prototype,"isModernSd",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Vv.prototype,"modernTypography",void 0);
_.Q([_.u({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Vv);
_.D(Vv,"ytd-rich-list-header-renderer",function(){if(t6u!==void 0)return t6u;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return t6u=W},{mode:_.PJ("kevlar_poly_si_batch_j058")?1:2});var Je=function(){return _.S.apply(this,arguments)||this};
_.C(Je,_.S);Je.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]]"}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Je.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Je.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Je.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Je.prototype,"isSearch",void 0);_.Q([_.u({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Je);
_.D(Je,"ytd-preview-card-renderer",function(){if(geH!==void 0)return geH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return geH=W},{mode:1});var Z5u;var gs=function(){return _.S.apply(this,arguments)||this};
_.C(gs,_.S);gs.prototype.configureRendererStamper=function(){return{"data.menu":qV}};
gs.prototype.dataChanged=function(){var W=this.get("colorExtractionPalette.section1Color",this.data);W=_.M_(W);_.kw(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":W})};
gs.prototype.computeCardStyle=function(W){return this.get("style.value",W)||null};
gs.prototype.dataChanged=gs.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],gs.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],gs.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],gs.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.y("design:type",String)],gs.prototype,"cardStyle",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gs.prototype,"dataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],gs);
_.D(gs,"ytd-compact-channel-recommendation-card-renderer",function(){if(Z5u!==void 0)return Z5u;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Z5u=W},{mode:1});var rdU;var kMD;var te=function(){var W=_.S.apply(this,arguments)||this;W.alignAuto=!1;W.collapsed=!0;W.isToggled=!1;W.alwaysCollapsed=!1;W.canToggle=!0;W.collapsedHeight=80;W.disableToggle=!1;W.alwaysToggleable=!1;W.reversed=!1;W.shouldUseNumberOfLines=!1;W.recomputeOnResize=!1;W.canToggleJobId=0;W.lastReversed=!1;return W};
_.C(te,_.S);_.p=te.prototype;_.p.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.p.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.p.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var W=_.tH(this.hostElement),B=W.childNodes,z=document.createDocumentFragment(),G=W.childNodes.length-1;G>=0;G--)_.tH(z).appendChild(B[G]);_.r("enable_shadydom_free_scoped_node_methods")?_.sR(this.hostElement).appendChild(z):W.appendChild(z)}};
_.p.ready=function(){var W=this;_.WJ(function(){W.initChildrenObserver()},1)};
_.p.attached=function(){var W;(W=this.resizeObserver)==null||W.observe(this.content)};
_.p.detached=function(){this.detachObserver()};
_.p.toggle=function(W,B){this.canToggle&&(this.isToggled=B,_.v0(this.hostElement,"yt-refit"),W&&W.stopPropagation())};
_.p.reset=function(){this.childrenChanged()};
_.p.onIronResize=function(){this.recomputeOnResize&&!_.r("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.p.computeIsMoreVisible=function(W,B){return W&&!B};
_.p.computeShouldUseNumberOfLines=function(W){try{return!!W&&window.CSS.supports("-webkit-line-clamp","1")}catch(B){}return!1};
_.p.computeIsLessVisible=function(W,B){return W&&B};
_.p.observeCollapsedHeightAndMaxLines=function(){var W=this.collapsedHeight,B=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.kw(this.hostElement,{"--ytd-expander-max-lines":""+B,"--ytd-expander-collapsed-height":""}):_.kw(this.hostElement,{"--ytd-expander-collapsed-height":W+"px","--ytd-expander-max-lines":""})};
_.p.handleMoreTap=function(W){this.disableToggle||(_.v0(this.hostElement,"yt-expander-more-tapped"),this.toggle(W,!0))};
_.p.handleLessTap=function(W){_.v0(this.hostElement,"yt-expander-less-tapped");this.toggle(W,!1)};
_.p.initChildrenObserver=function(){var W=this;this.observer=new MutationObserver(function(){W.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.r("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.an(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var B;(B=W.resizeThrottle)==null||B.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.p.childrenChanged=function(){var W=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){sv(function(){W.canToggleJobId=0;W.calculateCanCollapse()})}))};
_.p.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};
_.p.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.p.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("collapsed-changed",this.collapsed))};
_.p.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("is-toggled-changed",this.isToggled))};
_.p.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("can-toggle-changed",this.canToggle))};
_.G5.Object.defineProperties(te.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
te.prototype.canToggleChangedForBinding=te.prototype.canToggleChangedForBinding;te.prototype.isToggledChangedForBinding=te.prototype.isToggledChangedForBinding;te.prototype.collapsedChangedForBinding=te.prototype.collapsedChangedForBinding;te.prototype.observeCollapsedHeightAndMaxLines=te.prototype.observeCollapsedHeightAndMaxLines;te.prototype.onIronResize=te.prototype.onIronResize;te.prototype.reversedChanged=te.prototype.reversedChanged;te.prototype.toggledChanged=te.prototype.toggledChanged;
te.prototype.alwaysToggleableChanged=te.prototype.alwaysToggleableChanged;_.Q([_.h(_.Mp),_.y("design:type",Object)],te.prototype,"ironResizableBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],te.prototype,"alignAuto",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],te.prototype,"collapsed",void 0);_.Q([_.F(),_.y("design:type",Object)],te.prototype,"isToggled",void 0);_.Q([_.F(),_.y("design:type",Object)],te.prototype,"alwaysCollapsed",void 0);
_.Q([_.F(),_.y("design:type",Object)],te.prototype,"canToggle",void 0);_.Q([_.F(),_.y("design:type",Object)],te.prototype,"collapsedHeight",void 0);_.Q([_.F(),_.y("design:type",Object)],te.prototype,"disableToggle",void 0);_.Q([_.F(),_.y("design:type",Object)],te.prototype,"alwaysToggleable",void 0);_.Q([_.F(),_.y("design:type",Object)],te.prototype,"reversed",void 0);_.Q([_.F(),_.y("design:type",Number)],te.prototype,"maxNumberOfLines",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.y("design:type",Object)],te.prototype,"shouldUseNumberOfLines",void 0);_.Q([_.F(),_.y("design:type",Object)],te.prototype,"recomputeOnResize",void 0);_.Q([_.Hf("#content"),_.y("design:type",HTMLDivElement)],te.prototype,"content",void 0);_.Q([_.jJ("alwaysToggleable"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],te.prototype,"alwaysToggleableChanged",null);
_.Q([_.jJ("isToggled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],te.prototype,"toggledChanged",null);_.Q([_.H("canToggleJobId"),_.y("design:type",Object),_.y("design:paramtypes",[])],te.prototype,"isResetting",null);_.Q([_.oN("reversed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],te.prototype,"reversedChanged",null);
_.Q([_.IN("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],te.prototype,"onIronResize",null);_.Q([_.oN("maxNumberOfLines","collapsedHeight"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],te.prototype,"observeCollapsedHeightAndMaxLines",null);_.Q([_.oN("collapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],te.prototype,"collapsedChangedForBinding",null);
_.Q([_.oN("isToggled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],te.prototype,"isToggledChangedForBinding",null);_.Q([_.oN("canToggle"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],te.prototype,"canToggleChangedForBinding",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-expander"})],te);
_.D(te,"ytd-expander",function(){if(kMD!==void 0)return kMD;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return kMD=W},{mode:1});var si=function(){return _.S.apply(this,arguments)||this};
_.C(si,_.S);si.prototype.computeIsCarousel=function(W){return!!W.isCarousel};
si.prototype.observeLightsourcePalette=function(){var W,B=(W=this.data)==null?void 0:W.vibrantsourceColorPaletteData;B&&_.Ky(this.hostElement,B)};
si.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
si.prototype.observeLightsourcePalette=si.prototype.observeLightsourcePalette;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],si.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],si.prototype,"data",void 0);_.Q([_.F({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],si.prototype,"isCarousel",void 0);
_.Q([_.oN("data.vibrantsourceColorPaletteData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],si.prototype,"observeLightsourcePalette",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],si);
_.D(si,"ytd-media-upsell-renderer",function(){if(rdU!==void 0)return rdU;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return rdU=W},{mode:2});var lQH;var PH=function(){var W=_.S.apply(this,arguments)||this;W.JSC$14954_playerEvents=new Map;W.listeningToPlayer=!1;W.startX=0;W.active=!1;W.shouldShowButtons=_.r("web_buttons_hidden_killswitch");W.isHighlighted=!1;W.useHighlightStyling=_.r("web_enable_deeper_metadata_highlight_styling");W.modern=_.r("kevlar_modern_sd");W.enableProblemWalkthrough=_.r("problem_walkthrough_sd");return W};
_.C(PH,_.S);_.p=PH.prototype;
_.p.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}}}}}};
_.p.created=function(){this.JSC$14954_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.p.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Co(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Co(this,this.onActiveUpdate))};
_.p.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Co(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Co(this,this.onActiveUpdate))};
_.p.onDataChanged=function(){this.removePlayerListeners()};
_.p.onColorPaletteChange=function(){var W={},B;if(_.Ks()==="USER_INTERFACE_THEME_DARK"&&((B=this.data)==null?0:B.darkColorPalette)){var z=this.data.darkColorPalette;W["--ytd-macro-markers-list-item-background-color"]=_.aE(this.get("section2Color",z))}else{var G;_.Ks()==="USER_INTERFACE_THEME_LIGHT"&&((G=this.data)==null?0:G.lightColorPalette)&&(z=this.data.lightColorPalette,W["--ytd-macro-markers-list-item-background-color"]=_.aE(this.get("section3Color",z)))}z?(W["--ytd-macro-markers-list-item-title-color"]=
_.aE(this.get("primaryTitleColor",z)),W["--ytd-macro-markers-list-item-secondary-color"]=_.aE(this.get("secondaryTitleColor",z)),W["--ytd-macro-markers-list-item-timestamp-background-color"]=_.aE(this.get("section1Color",z)),this.customButtonProperties={customColors:{color:_.aE(this.get("primaryTitleColor",z))}},this.useColorSampling=!0):(W["--ytd-macro-markers-list-item-background-color"]="initial",W["--ytd-macro-markers-list-item-title-color"]="initial",W["--ytd-macro-markers-list-item-secondary-color"]=
"initial",W["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.kw(this.hostElement,W)};
_.p.onEndpointMouseDown=function(W){this.startX=W.clientX};
_.p.onEndpointClick=function(W){var B=this,z,G,Y;return _.T(function(d){if(d.nextAddress==1){if(B.startX!==W.clientX)return W.preventDefault(),d.return();B.data&&B.ytRendererBehavior.logExplicitClick(B.data);if(!B.seekWithAnimationOnClick)return d.jumpTo(0);if(W.button!==0||W.shiftKey||W.altKey||W.metaKey||W.ctrlKey||_.p2(_.AH(W),B.hostElement,["BUTTON".toString()]))return d.return();W.stopPropagation();W.preventDefault();return B.data?d.yield(_.vA().getPlayerPromise(),3):d.return()}z=d.yieldResult;
Y=(G=_.k(B.data.onTap,_.W0))==null?void 0:G.startTimeSeconds;Y!==void 0&&z.seekToTimeWithAnimation(Y*1E3,_.zR(B.data.title));_.HG(d)})};
_.p.computeLayout=function(W){return W};
_.p.computeIsHighlighted=function(W){return!!W};
_.p.computeCarouselType=function(W){return W};
_.p.hideModernCarousel=function(W){return this.modern&&this.hideThumbnail(W)};
_.p.hideThumbnail=function(W){return this.enableProblemWalkthrough&&W!==null&&W==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.p.onRepeatButtonToggle=function(W){var B=this;W.detail.toggled&&_.vA().getPlayerPromise().then(function(z){B.ytPlayerListenerBehavior.listenToPlayerEvents(z,B.JSC$14954_playerEvents);B.listeningToPlayer=!0})};
_.p.onLoopRangeChange=function(W){var B=_.tH(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(B){var z=B.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",B.polymerController.data);if(z){var G=Number(z.endTimeMs);if(Number(z.startTimeMs)!==(W==null?void 0:W.startTimeMs)||G!==(W==null?void 0:W.endTimeMs))B.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.p.removePlayerListeners=function(){var W=this;this.listeningToPlayer&&_.vA().getPlayerPromise().then(function(B){W.ytPlayerListenerBehavior.unlistenFromPlayerEvents(B,W.JSC$14954_playerEvents);W.listeningToPlayer=!1})};
_.p.onActiveUpdate=function(W){this.active=W.detail.active};
PH.prototype.onColorPaletteChange=PH.prototype.onColorPaletteChange;PH.prototype.onDataChanged=PH.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],PH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",_.kI)],PH.prototype,"ytPlayerListenerBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],PH.prototype,"data",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],PH.prototype,"useCustomColors",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PH.prototype,"active",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],PH.prototype,"shouldShowButtons",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.y("design:type",String)],PH.prototype,"layout",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.y("design:type",Object)],PH.prototype,"isHighlighted",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PH.prototype,"useHighlightStyling",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PH.prototype,"modern",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PH.prototype,"enableProblemWalkthrough",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.y("design:type",String)],PH.prototype,"carouselType",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],PH.prototype,"useColorSampling",void 0);_.Q([_.F(),_.y("design:type",Boolean)],PH.prototype,"seekWithAnimationOnClick",void 0);_.Q([_.F(),_.y("design:type",Object)],PH.prototype,"customButtonProperties",void 0);
_.Q([_.Hf("#repeat-button"),_.y("design:type",HTMLElement)],PH.prototype,"repeatButton",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PH.prototype,"onDataChanged",null);_.Q([_.oN("data.lightColorPalette","data.darkColorPalette"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PH.prototype,"onColorPaletteChange",null);_.Q([_.u({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],PH);
_.D(PH,"ytd-macro-markers-list-item-renderer",function(){if(lQH!==void 0)return lQH;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return lQH=W},{mode:1});var CTF;var IQ9;var ZS=function(){var W=_.S.apply(this,arguments)||this;W.modernTypography=_.r("web_modern_typography");return W};
_.C(ZS,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],ZS.prototype,"modernTypography",void 0);_.Q([_.F(),_.y("design:type",Object)],ZS.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],ZS);
_.D(ZS,"ytd-title-and-button-list-header-renderer",function(){if(IQ9!==void 0)return IQ9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return IQ9=W},{mode:1});var oe7;var hH4=new _.t1("BUTTON_RENDERER_WIZ_TOKEN"),H5R=new _.t1("BUTTON_RENDERER_TOKEN");_.rs=_.m(function(W){var B=_.dO().resolve(_.Y8(hH4));if(B)return _.w(B,Object.assign({},W));var z=_.dO().resolve(H5R);return z?_.w(HkD,null,function(){return _.w(Rg,null,function(){var G,Y,d,E,v,c,J,g,t,P,Z,l;return void z(W.data(),{onButtonClickCallback:W.onButtonClickCallback,shouldShowIcons:(G=W.shouldShowIcons)==null?void 0:G.call(W),icon:(Y=W.icon)==null?void 0:Y.call(W),processAllEndpoints:(d=W.processAllEndpoints)==null?void 0:d.call(W),preventDefault:(E=W.preventDefault)==null?void 0:E.call(W),
stopPropagation:(v=W.stopPropagation)==null?void 0:v.call(W),disableButtonRendererClickHandling:(c=W.disableButtonRendererClickHandling)==null?void 0:c.call(W),className:(J=W.className)==null?void 0:J.call(W),buttonOverrides:(g=W.buttonOverrides)==null?void 0:g.call(W),forceModernIconButton:(t=W.forceModernIconButton)==null?void 0:t.call(W),isSubscribe:(P=W.isSubscribe)==null?void 0:P.call(W),alignByText:(Z=W.alignByText)==null?void 0:Z.call(W),forceDisabled:(l=W.forceDisabled)==null?void 0:l.call(W)})})}):
_.w(_.AW,null)},"ja");
_.rs.idomCompat=!0;var FvR=_.m(function(W){var B=W.data,z=_.ig(W.useSquareAspectRatio,!1);return _.w("dismissed-mini-game-card-view-model",null,_.w(_.V,{cond:function(){var G,Y;return(G=B().responseText)==null?void 0:(Y=G.runs)==null?void 0:Y.length},
then:function(){var G={};return _.w("div",{class:_.kG("yt-mini-game-card-view-model__dismissed-card",(G["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!z()},G["yt-mini-game-card-view-model--dismissed-square-card"]=z,G))},_.w("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.w(_.V,{cond:function(){return B().responseText.runs[0].text},
then:function(Y){return _.w("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:Y},Y)}}),_.w(_.Sc,{data:function(){return B().buttons}},{buttonRenderer:_.rs,
buttonViewModel:_.ex})))}}))},"ka");var KvR=_.m(function(W){W=_.EV(W,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var B=W.data,z=W.useFullWidth,G=W.isDesktopWeb,Y=W.addSearchResultTopMargin,d=function(){return B().layout},E=function(){return B().title},v=function(){return B().metadataText?B().metadataText:B().genre},c=function(){return B().channelName},J=function(){return B().image},g=function(){return B().colorPalette},t=function(){return B().actionButton},P=function(){return B().overflowButton},
Z=function(){return B().avatar},l=function(){var e={};
e=_.kG("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(e["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return G()},e));
return _.w("div",{class:e},_.w(SmD,{imageData:J,colorPalette:g}),_.w(b57,{onTap:function(){return B().onTap},
imageData:J,accessibilityText:function(){return B().accessibilityText},
overlayBadgeText:function(){return B().overlayBadgeText},
iconName:function(){return B().iconName},
unplayableInlinePlaybackIconName:function(){return B().unplayableInlinePlaybackIconName},
isDesktopWeb:G}),_.w(_.V,{cond:function(){return!G()},
then:function(){return _.w(_.AW,null,_.w(jCH,{layout:d,colorPalette:g,isDesktopWeb:G,overflowButton:P,avatar:Z,onTap:function(){return B().onTap},
genre:v,title:E,channelName:c}),_.w(fQH,{actionButton:t}))}}))},b=function(){var e={};
e=_.kG((e["yt-mini-game-card-view-model--search-result-desktop"]=function(){return G()},e["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!G()},e["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return Y()},e));
return _.w("div",{class:e},l(),_.w(O57,{description:function(){return B().description},
isDesktopWeb:G,title:E,genre:v,onTap:function(){return B().onTap},
actionButton:t,overflowButton:P,avatar:Z,channelName:c}))},O=function(){var e={};
e=_.kG("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(e["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return G()},e["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return G()&&B().width===135},e["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return G()},e["yt-mini-game-card-view-model--big-metadata-font"]=function(){return B().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},e["yt-mini-game-card-view-model--use-full-width"]=
function(){return z()},e["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!t()},e));
return _.w("div",{class:e},_.w(Xa4,{colorPalette:g,isDesktopWeb:G,onTap:function(){return B().onTap},
accessibilityText:function(){return B().accessibilityText},
overlayBadgeText:function(){return B().overlayBadgeText},
iconName:function(){return B().iconName},
unplayableInlinePlaybackIconName:function(){return B().unplayableInlinePlaybackIconName},
actionButton:t,imageData:J}),_.w(jCH,{layout:d,colorPalette:g,isDesktopWeb:G,overflowButton:P,avatar:Z,onTap:function(){return B().onTap},
genre:v,title:E,channelName:c}))},K=function(){var e={};
e=_.kG("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(e["yt-mini-game-card-view-model--square-card-desktop"]=function(){return G()},e["yt-mini-game-card-view-model--use-full-width"]=function(){return z()},e));
return _.w("div",{class:e},_.w(b57,{onTap:function(){return B().onTap},
imageData:J,accessibilityText:function(){return B().accessibilityText},
overlayBadgeText:function(){return B().overlayBadgeText},
iconName:function(){return B().iconName},
unplayableInlinePlaybackIconName:function(){return B().unplayableInlinePlaybackIconName},
isDesktopWeb:G}),_.w(jCH,{layout:d,colorPalette:g,isDesktopWeb:G,overflowButton:P,avatar:Z,onTap:function(){return B().onTap},
genre:v,title:E,channelName:c}))};
return _.w("mini-game-card-view-model",{class:W.className},_.w(_.HR,null,_.w(_.oJ,{when:function(){return d()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return O()}),_.w(_.oJ,{when:function(){return d()==="MINI_APP_LAYOUT_SQUARE"}},function(){return K()}),_.w(_.oJ,{when:function(){return d()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return b()})))},"la");
KvR.idomCompat=!0;var fQH=_.m(function(W){var B=_.ig(W.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.w(_.Sc,{data:W.actionButton},{buttonViewModel:function(z){return _.w("div",{class:B},_.w(_.ex,{data:z.data}))}})},"ma"),b57=_.m(function(W){var B=W.onTap;
var z=W.imageData;var G=W.accessibilityText;var Y=W.overlayBadgeText;var d=W.iconName;var E=W.unplayableInlinePlaybackIconName;W=W.isDesktopWeb;return _.w(_.fL,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:B},_.w(_.iF,{data:z,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(G==null?void 0:G())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.w(u07,{overlayBadgeText:Y,iconName:d,unplayableInlinePlaybackIconName:E,isDesktopWeb:W}))},"na"),u07=_.m(function(W){var B=W.overlayBadgeText;
var z=W.iconName;var G=W.unplayableInlinePlaybackIconName;var Y=W.isDesktopWeb;return _.w("div",{class:"yt-mini-game-card-view-model__badge-container"},_.w(_.V,{cond:z,then:function(d){return _.w("div",{class:"yt-mini-game-card-view-model__badge"},_.w("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.w(_.hY,{icon:d,className:"yt-mini-game-card-view-model__icon",size:12}),_.w("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},B)))}}),_.w(_.V,{cond:function(){return!z()&&
B()},
then:function(){return _.w("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},B)}}),_.w(_.V,{cond:function(){return G()&&Y()},
then:function(){return _.w("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.w(_.hY,{icon:G,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"oa"),SmD=_.m(function(W){var B=W.colorPalette;
var z=W.imageData;var G=function(){return B().vibrantColorPalette?B().vibrantColorPalette.section2Color:B().sectionTwoColor};
return _.w(_.AW,null,_.w("div",{class:"yt-mini-game-card-view-model__background-base",style:_.oK({"background-color":function(){return RE(G(),"1")}})}),_.w("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.oK({"background-image":function(){return"url("+z().sources[0].url+")"}})}),_.w("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.oK({background:function(){return"linear-gradient(180deg,\n    "+RE(G(),".8")+" 0%,\n    "+RE(G(),".4")+" 25%,\n    "+RE(B().vibrantColorPalette?B().vibrantColorPalette.section4Color:B().sectionFourColor,".8")+" 100%)"}})}))},"pa"),jCH=_.m(function(W){var B=W.layout;
var z=W.colorPalette;var G=W.overflowButton;var Y=W.avatar;var d=W.onTap;var E=W.title;var v=W.channelName;var c=W.genre;var J=function(){var g;return B()!=="MINI_APP_LAYOUT_SQUARE"&&((g=z())==null?0:g.textPrimaryColor)?"color: "+RE(z().textPrimaryColor,".7"):""};
return _.w("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.w(_.V,{cond:Y,then:function(){return _.w("div",{class:"yt-mini-game-card-view-model__avatar"},_.w(_.Sc,{data:Y},{avatarViewModel:_.ds}))}}),_.w(_.fL,{command:d,
className:"yt-mini-game-card-view-model__metadata-details"},_.w("h3",{class:"yt-mini-game-card-view-model__title",title:E},E),_.w(_.V,{cond:Y,then:function(){return _.w("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.w("span",{class:"yt-mini-game-card-view-model__genre",title:v,style:J},v),_.w("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:J},c))},
else:function(){return _.w("span",{class:"yt-mini-game-card-view-model__genre",title:c},c)}})),_.w("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.w(_.Sc,{data:G},{buttonViewModel:function(g){var t=g.data;
return _.w(_.ex,{data:function(){return Object.assign({},t(),{customFontColor:B()==="MINI_APP_LAYOUT_SINGLETON"?t().customFontColor:void 0})}})}})))},"qa"),Xa4=_.m(function(W){var B=W.colorPalette;
var z=W.isDesktopWeb;var G=W.onTap;var Y=W.accessibilityText;var d=W.overlayBadgeText;var E=W.iconName;var v=W.unplayableInlinePlaybackIconName;var c=W.actionButton;W=W.imageData;return _.w("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.w(SmD,{imageData:W,colorPalette:B}),_.w(b57,{onTap:G,imageData:W,accessibilityText:Y,overlayBadgeText:d,iconName:E,unplayableInlinePlaybackIconName:v,isDesktopWeb:z}),_.w(_.V,{cond:function(){return c==null?void 0:c()},
then:function(){return _.w(fQH,{actionButton:c})}}))},"ra"),O57=_.m(function(W){var B=W.description;
var z=W.isDesktopWeb;var G=W.title;var Y=W.genre;var d=W.onTap;var E=W.actionButton;var v=W.overflowButton;var c=W.avatar;W=W.channelName;var J={};J=_.kG("yt-mini-game-card-view-model--search-result-metadata-wrapper",(J["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=z,J["yt-mini-game-card-view-model--show-unplayable-on-hover"]=z,J["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!z()},J));
var g={};g=_.kG("yt-mini-game-card-view-model__search-result-info-row",(g["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!z()},g));
return _.w("div",{class:J},_.w("div",{class:g},_.w(_.fL,{command:d,className:"yt-mini-game-card-view-model__metadata-details"},_.w("h3",{class:"yt-mini-game-card-view-model__title",title:G},G),_.w("span",{class:"yt-mini-game-card-view-model__genre",title:Y},Y)),_.w(fQH,{actionButton:E,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.w("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.w(_.Sc,{data:v},{buttonViewModel:_.ex}))),_.w("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.w("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.w("div",{class:"yt-mini-game-card-view-model__avatar"},_.w(_.Sc,{data:c},{avatarViewModel:function(t){var P=t.data;return _.w(_.ds,{data:function(){return Object.assign({},P(),{avatarImageSize:z()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.w(_.fL,{command:d,
className:"yt-mini-game-card-view-model__description"},_.w("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},W)),_.w(_.fL,{command:d,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.w("div",null)))),_.w(_.V,{cond:z,then:function(){return _.w(_.fL,{command:d,className:"yt-mini-game-card-view-model__description"},B)}}))},"sa");_.Vm(KvR,"mini-game-card-view-model",{props:{data:_.kz,className:_.kz,useFullWidth:_.kz,isDesktopWeb:_.kz,addSearchResultTopMargin:_.kz}});_.Vm(FvR,"dismissed-mini-game-card-view-model",{props:{data:_.kz,useSquareAspectRatio:_.kz}});var kR=function(){var W=_.S.apply(this,arguments)||this;W.isSearch=!1;W.isRichGrid=!1;return W};
_.C(kR,_.S);_.p=kR.prototype;_.p.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.p.dismissibleItemOnYtServiceRequestSent=function(W,B){B.actions&&this.dismissibleItemProcessActions(W,B.actions)};
_.p.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.p.dataChanged=function(){this.dismissibleItemReset()};
_.p.dismissibleItemProcessActions=function(W,B){for(var z=0;z<B.length;z++){var G=B[z];_.k(G,_.QA)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.k(G,_.QA)),W.stopPropagation())}};
_.p.dismissibleItemHandleReplaceEnclosingAction=function(W){this.dismissedRenderer=W.item;this.isDismissed=!0};
_.G5.Object.defineProperties(kR.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var W;return!!this.data&&!((W=this.dismissedRenderer)==null?0:W.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.dismissedRenderer)==null||!W.notificationMultiActionRenderer)}}});
kR.prototype.dataChanged=kR.prototype.dataChanged;kR.prototype.dismissibleItemOnRequestSent=kR.prototype.dismissibleItemOnRequestSent;kR.prototype.dismissibleItemOnYtServiceRequestSent=kR.prototype.dismissibleItemOnYtServiceRequestSent;_.Q([_.F(),_.y("design:type",Object)],kR.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],kR.prototype,"isSearch",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],kR.prototype,"isDismissed",void 0);
_.Q([_.F(),_.y("design:type",Object)],kR.prototype,"dismissedRenderer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],kR.prototype,"isRichGrid",void 0);_.Q([_.H("data.layout"),_.y("design:type",Object),_.y("design:paramtypes",[])],kR.prototype,"useSquareAspectRatio",null);_.Q([_.H("data","dismissedRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],kR.prototype,"showCard",null);
_.Q([_.H("data","dismissedRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],kR.prototype,"showDismissed",null);_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],kR.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.Q([_.IN("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],kR.prototype,"dismissibleItemOnRequestSent",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kR.prototype,"dataChanged",null);_.Q([_.NJ({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],kR);
_.D(kR,"ytd-mini-game-card-view-model",function(){if(oe7!==void 0)return oe7;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return oe7=W},{mode:_.PJ("kevlar_poly_si_batch_j081")?1:2});var eHH;var mWd;var lM=function(){return _.Y6.apply(this,arguments)||this};
_.C(lM,_.Y6);lM.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
lM.prototype.getContinuationUrl=function(W){var B={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(B.itct=this.data.clickTrackingParams);return _.aJ(W,B)};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],lM.prototype,"data",void 0);_.Q([_.NJ({is:"yt-reload-continuation",noInjection:!0})],lM);var xWT;var DW6;var CY=function(){var W=_.S.apply(this,arguments)||this;W.notificationData={};return W};
_.C(CY,_.S);_.p=CY.prototype;_.p.isMenuExpanded=function(W){return W&&W.length<=1?"undefined":"false"};
_.p.dataChanged_=function(){this.selected=void 0;var W=this.computeSelectedIndex_(this.data);W>=0&&(this.selected=W);W=this.data&&this.data.length>1;_.Pf(this.hostElement,"has-items",W);_.tH(this.hostElement).querySelector("#label").tabIndex=W?0:-1};
_.p.onDropdownOpen=function(){var W=_.m1();if(this.parentTrackingParams&&this.data){var B=_.XF(this.parentTrackingParams);this.data.forEach(function(z){W&&B&&z.trackingParams&&(z=_.XF(z.trackingParams),_.$q(W,B,z),_.Mj(W,[z]))})}else this.parentTrackingParams||_.Oc(new _.oX("No parent tracking params passed in for yt-dropdown-menu."))};
_.p.hasNotification=function(W){var B;if(W.targetId&&((B=this.notificationData)==null?0:B.targetId)){var z;return W.targetId===((z=this.notificationData)==null?void 0:z.targetId)}};
_.p.computeSelectedIndex_=function(W){if(W)for(var B=0,z=W.length;B<z;B++)if(W[B].selected)return B;return-1};
_.p.computeLabel_=function(W){return this.data&&W!=void 0?this.data[W].title:""};
_.p.computeShowIcon_=function(W,B){return!B&&!!W};
_.p.computeVerticalOffset_=function(W){return W?36:0};
_.p.computeEndpoint_=function(W){return W.endpoint||W.navigationEndpoint};
_.p.onLabelClick_=function(W){this.data&&this.data.length<=1?W.stopPropagation():this.menuExpanded="true"};
_.p.onIronActivate_=function(W){W=W.detail.item;var B=_.tH(this.hostElement).querySelector("#repeat").itemForElement(W);if(B&&B.trackingParams){var z=_.m1(),G=_.XF(B.trackingParams);z&&_.RP(z,G)}if(B&&B.serviceEndpoint)_.r("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(B.serviceEndpoint):_.V0(this.hostElement,[B.serviceEndpoint]),_.v0(this.hostElement,"yt-playlist-reloading");else a:{if((B=W.querySelector("yt-supported-renderers"))&&
(B=B.rendererElement)&&B.is=="yt-reload-continuation"){B.trigger();break a}(W=W.querySelector("yt-reload-continuation"))&&W.trigger()}};
_.p.onTap_=function(W){W.preventDefault()};
_.p.onItemTap_=function(W){this.ytEndpointBehavior.onEndpointTap_(W)};
_.p.onLinkFocus_=function(W){try{var B=W.target}catch(G){}if(B){var z=B.querySelector("tp-yt-paper-item");z&&_.BJ(this,"focus",function(){z.focus()})}};
_.p.onMenuClose_=function(){this.menuExpanded="false"};
_.p.isLabelIconActive_=function(W){return W==="true"};
_.p.computeHasSubtitle_=function(W){return!!W};
_.p.computeHrefForItem_=function(W){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(W))};
_.p.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
_.G5.Object.defineProperties(CY.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
CY.prototype.onMenuClose_=CY.prototype.onMenuClose_;CY.prototype.onTap_=CY.prototype.onTap_;CY.prototype.onIronActivate_=CY.prototype.onIronActivate_;CY.prototype.onDropdownOpen=CY.prototype.onDropdownOpen;CY.prototype.dataChanged_=CY.prototype.dataChanged_;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],CY.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.Qe.YtEndpointBehavior),_.y("design:type",Object)],CY.prototype,"ytEndpointBehavior",void 0);
_.Q([_.F(),_.y("design:type",Array)],CY.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],CY.prototype,"parentTrackingParams",void 0);_.Q([_.F(),_.y("design:type",Object)],CY.prototype,"selected",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],CY.prototype,"useLabel",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],CY.prototype,"useComputedAriaLabel",void 0);_.Q([_.F(),_.y("design:type",String)],CY.prototype,"icon",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],CY.prototype,"iconLabel",void 0);_.Q([_.F(),_.y("design:type",String)],CY.prototype,"ariaLabel",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],CY.prototype,"disabled",void 0);_.Q([_.F({computed:"isMenuExpanded(data)"}),_.y("design:type",String)],CY.prototype,"menuExpanded",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],CY.prototype,"closeOnActivate",void 0);
_.Q([_.F({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.y("design:type",Boolean)],CY.prototype,"modernButtons",void 0);_.Q([_.F(),_.y("design:type",Object)],CY.prototype,"notificationData",void 0);_.Q([_.H("ariaLabel, selected"),_.F(),_.y("design:type",String),_.y("design:paramtypes",[])],CY.prototype,"computedAriaLabel",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CY.prototype,"dataChanged_",null);
_.Q([_.IN("paper-dropdown-open"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],CY.prototype,"onDropdownOpen",null);_.Q([_.IN("iron-activate"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],CY.prototype,"onIronActivate_",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],CY.prototype,"onTap_",null);
_.Q([_.IN("iron-overlay-closed"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],CY.prototype,"onMenuClose_",null);_.Q([_.NJ({is:"yt-dropdown-menu",disableElementRegistration:!0})],CY);
_.D(CY,"yt-dropdown-menu",function(){if(DW6===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;xWT===void 0&&(xWT=document.createElement("template"));var G=xWT;z.call(B,G.content.cloneNode(!0),W.content.firstChild);DW6=W}W=DW6;return W},{mode:2});var IW=function(){var W=_.S.apply(this,arguments)||this;W.hasNotification=!1;return W};
_.C(IW,_.S);IW.prototype.computeId=function(W){return W};
IW.prototype.computeHorizontalAlign=function(W){return W?"right":"left"};
IW.prototype.computeAccessibilityLabel=function(W){var B,z;return((B=W.accessibility)==null?void 0:(z=B.accessibilityData)==null?void 0:z.label)||null};
IW.prototype.notificationDataChanged=function(){var W;this.hasNotification=!!this.notificationData&&!((W=this.data)==null?0:W.icon)};
IW.prototype.notificationDataChanged=IW.prototype.notificationDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.w0.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],IW.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],IW.prototype,"data",void 0);_.Q([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.y("design:type",String)],IW.prototype,"id",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],IW.prototype,"isRightAligned",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],IW.prototype,"disabled",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],IW.prototype,"closeOnActivate",void 0);_.Q([_.F(),_.y("design:type",Object)],IW.prototype,"notificationData",void 0);_.Q([_.F(),_.y("design:type",Object)],IW.prototype,"hasNotification",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],IW.prototype,"useComputedAriaLabel",void 0);_.Q([_.oN("notificationData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IW.prototype,"notificationDataChanged",null);_.Q([_.NJ({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],IW);
_.D(IW,"yt-sort-filter-sub-menu-renderer",function(){if(mWd===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;eHH===void 0&&(eHH=document.createElement("template"));var G=eHH;z.call(B,G.content.cloneNode(!0),W.content.firstChild);mWd=W}W=mWd;return W},{mode:2});var QCT=_.m(function(W){var B=W.data;var z=_.lF(function(){var d=B().onTap;(d=_.k(d,_.NH))&&_.dO().resolve(_.p4).resolveCommand(d);return!1}),G=function(){return{sources:[{url:B().thumbnailUrl,
width:120,height:90}]}},Y=function(){return B().rating&&B().ratingA11yLabel&&B().reviewsCount&&B().reviewsCountA11yLabel};
return _.w("place-data-view-model",null,_.w(_.V,{cond:function(){return B().placeName&&B().placeCategory},
then:function(){return _.w("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":z},_.w(_.iF,{data:G,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.w(_.fL,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return B().onTap}},_.w("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return B().placeName}},function(){return B().placeName})),_.w("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.w(_.V,{cond:Y,
then:function(){return _.w("div",{class:_.kG("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.w("span",{class:"score",title:function(){return B().ratingA11yLabel}},function(){return B().rating}),_.w("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.w(_.hY,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.w("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return B().reviewsCountA11yLabel}},function(){return B().reviewsCount}))},
else:function(){return _.w("div",{class:_.kG("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.w("div",{class:_.kG("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.w("span",{class:"category",
title:function(){return B().placeCategory}},function(){return B().placeCategory}))))}}))},"ta");
QCT.idomCompat=!0;_.Vm(QCT,"place-data-view-model",{props:{data:_.kz}});var yd6=new _.t1("INLINE_PLAYBACK_HOOK_TOKEN");var qmd=_.xG({sharedUi:_.GJT});_.M$=_.DN(qmd)(qmd.sharedUi,{animatedThumbnailEnabledSelector:function(W){return W.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(W){return W.inlinePreviewEnabled},
currentPageTypeSelector:function(W){return W.currentPageType},
currentPageSubTypeSelector:function(W){return W.currentPageSubType},
persistentPanelVisibleSelector:function(W){return W.persistentPanelVisible}});var ne4=function(W){this.setActiveSlideIndex=W;this.jobIds=[];this.isSlideshowPlaying=!1},LvD=function(W,B){W.isSlideshowPlaying||(W.isSlideshowPlaying=!0,NMR(W),$W9(W,B,0))},NMR=function(W){_.P2(_.fg,function(){W.setActiveSlideIndex(0)},1)},$W9=function(W,B,z){W.jobIds.push(_.P2(_.fg,function(){var G=z<B-1?z+1:0;
W.setActiveSlideIndex(G);$W9(W,B,G)},1800))};var UWH=new _.t1("IMAGE_ON_LOAD_HANDLER_TOKEN");var M6R=_.m(function(W){return _.w("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.w(_.V,{cond:function(){var B;return(B=W.data())==null?void 0:B.thumbnail},
then:function(B){return _.w(_.iF,{data:B,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ua");_.aQ4=_.m(function(W){var B=W.data;var z=W.lockupExperiments;W={};return _.w("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.w("div",{class:_.kG("ytThumbnailOverlayButtonViewModelButton",(W.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var G;return z&&((G=z())==null?void 0:G.useLegacySizedIconButton)},W))},_.w(_.Sc,{data:function(){return B().overlayButton}},{buttonViewModel:function(G){return _.w(_.ex,{data:G.data,
buttonOverrides:function(){var Y;return z&&((Y=z())==null?0:Y.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"va");
_.aQ4.idomCompat=!0;var RHM=_.m(function(W){return _.w("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.lF(function(B){B.preventDefault();return!1})},_.w(_.Sc,{data:function(){return W.data().buttons}},{toggleButtonViewModel:function(B){return _.w("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.w(_.Y1,{data:B.data}))}}))},"wa");
RHM.idomCompat=!0;var WYH=_.m(function(W){var B=function(){var z;return((z=_.k(W.data().rendererContext,_.FB))==null?void 0:z.label)||""};
return _.w("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.w(_.V,{cond:function(){return W.data().image},
then:function(){return _.w("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.w(_.iF,{data:function(){return W.data().image},
alt:B}))}}),_.w(_.V,{cond:function(){return W.data().text},
then:function(){return _.w("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return W.data().text})}}))},"xa");var BAR;BAR=_.M$.animatedThumbnailEnabledSelector;_.oW=_.m(function(W){var B=[],z=function(){var P,Z;return wIv((P=W.width)==null?void 0:P.call(W),(Z=W.height)==null?void 0:Z.call(W))},G=_.dO().resolve(_.Y8(UWH)),Y=_.LG("yt-thumbnail-view-model",function(){B.push("elRef.value set");
var P;(P=W.playbackRef)==null||P.call(W,{thumbnailElRef:Y,thumbnail:W.data().image,thumbnailOverlays:W.data().overlays,thumbnailSize:z()})});
_.jD(function(){B.push("onInit");_.fR(function(){B.push("onCleanup")})});
var d=_.ny(BAR),E=function(){var P,Z;return(Z=(P=W.aspectRatio)==null?void 0:P.call(W))!=null?Z:0},v=function(){return(W.data().image?_.eGx(W.data().image):E())<=1&&E()===0},c=function(){return v()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},J=function(){Y.value||_.Oc(new _.oX("Thumbnail elRef.value is null",B.join("\n")));
G&&Y.value&&G(Y.value)},g=function(){var P,Z;
return((P=W.hovered)==null?void 0:P.call(W))&&z()!=="large"&&((Z=W.data().overlays)==null?void 0:Z.some(function(l){return _.k(l,D8M)}))},t={};
return _.w("yt-thumbnail-view-model",{class:_.kG("ytThumbnailViewModelHost",W.className,function(){return q3y(E())},function(){var P,Z;
a:{var l=z(),b=(P=W.disableRounding)==null?void 0:P.call(W);P=(Z=W.isClip)==null?void 0:Z.call(W);if(!b&&!P)switch(l){case "large":Z="ytThumbnailViewModelLarge";break a;case "small":Z="ytThumbnailViewModelSmall";break a;default:Z="ytThumbnailViewModelMedium";break a}Z=void 0}return Z},(t.ytThumbnailViewModelCinematic=v,t)),
style:_.oK({"background-color":function(){var P,Z=v()?(P=W.data().backgroundColor)==null?void 0:P.lightTheme:void 0;return Z?RE(Z,"1"):void 0}}),
el:Y},_.w(_.V,{cond:v,then:function(){return _.w("div",{class:"ytThumbnailViewModelBlurredImage"},_.w(_.iF,{data:function(){return W.data().image},
alt:"",contentMode:c,targetWidth:W.width,onload:J}))}}),_.w("div",{class:"ytThumbnailViewModelImage"},_.w(_.iF,{data:function(){return W.data().image},
alt:"",contentMode:c,targetWidth:W.width,onload:J}),null),_.w(_.Sc,{data:function(){return g()?void 0:W.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:dWD,thumbnailOverlayBadgeViewModel:function(P){return _.w(paD,{data:P.data,thumbnailSize:z,isClip:W.isClip})},
thumbnailBottomOverlayViewModel:function(P){return _.w(BMQ,{data:P.data,thumbnailSize:z,isClip:W.isClip})},
thumbnailOverlayFullViewModel:WYH,thumbnailOverlayButtonViewModel:function(P){return _.w(_.aQ4,{data:P.data,lockupExperiments:W.lockupExperiments})}}),_.w(_.Sc,{data:function(){var P;
return((P=W.hovered)==null?0:P.call(W))?W.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(P){return _.w(YR,{data:P.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:RHM}),_.w(_.Sc,{data:function(){var P;return((P=W.hovered)==null?0:P.call(W))&&d()?W.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:M6R}),_.w(_.V,{cond:W.isClip,then:function(){return _.w("div",{class:"ytPinkingNsHost"},_.w("svg",{class:"ytPinkingNsPinkingLeft"},_.w("defs",null,_.w("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.w("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.w("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.w("svg",{class:"ytPinkingNsPinkingRight"},_.w("defs",null,_.w("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.w("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.w("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ya");
_.oW.idomCompat={callbacks:{playbackRef:!0}};var zhM=_.m(function(W){var B=_.A(_.g4(-1,void 0,"RW2Ole")),z=B.next().value,G=B.next().value;_.jD(function(){var Y=new ne4(G);LvD(Y,W.data().thumbnails.length);_.fR(function(){if(Y.isSlideshowPlaying){Y.isSlideshowPlaying=!1;for(var d=Y.jobIds,E=0,v=d.length;E<v;E++)_.fg.cancelJob(d[E]);Y.jobIds.length=0}})});
return _.w("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.w(_.Sc,{data:function(){return W.data().thumbnails}},{thumbnailViewModel:function(Y,d){return _.w("div",{class:function(){var E=!W.data().primaryThumbnail,v=d(),c=z(),J=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
E&&v===0&&J.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");v<=c&&J.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return J.join(" ")}},_.w(_.oW,{data:Y.data,
disableRounding:W.disableRounding}))}}))},"za");
zhM.idomCompat=!0;var nJ0=new _.t1("DWELL_DETECTOR_REGISTRY_TOKEN");var YtU=_.m(function(W){var B=NgX(W.triggeringElement),z=function(){return!!W.data().primaryThumbnail},G=function(){var d,E=(d=W.data())==null?void 0:d.maxHeight,v;
d=(v=W.maxHeight)==null?void 0:v.call(W);return E!=null&&d!=null?Math.min(E,d):d!=null?d:E},Y=function(){var d=G();
if(d){var E;if(z()&&(E=W.includeStackHeight)!=null&&E.call(W)){var v;E=((v=W.doubleStack)==null?0:v.call(W))?8:4}else E=0;d=d-E-1;if(!(d<0)){v=Math;E=v.ceil;var c,J;var g=cNT((J=(c=W.aspectRatio)==null?void 0:c.call(W))!=null?J:0);return E.call(v,d*g)}}};
return _.w("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.oK({height:function(){return G()?G()+"px":void 0},
width:function(){return Y()?Y()+"px":void 0}})},_.w(G9F,{stackEnabled:z,
thumbnailSize:function(){var d,E;return wIv((d=W.width)==null?void 0:d.call(W),(E=W.height)==null?void 0:E.call(W))},
doubleStack:W.doubleStack,stackColor:function(){return W.data().stackColor},
includeStackHeight:W.includeStackHeight},_.w(_.Sc,{data:function(){return W.data().primaryThumbnail}},{thumbnailViewModel:function(d){var E={};
return _.w(_.oW,{data:d.data,width:W.width,height:W.height,aspectRatio:W.aspectRatio,disableRounding:W.disableRounding,className:_.kG((E.ytCollectionThumbnailViewModelHostHasStacks=z,E)),hovered:W.hovered,playbackRef:W.playbackRef})}}),_.w(_.V,{cond:function(){var d;
return B()&&((d=W.data().thumbnails)==null?void 0:d.length)},
then:function(){return _.w("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.w(zhM,{data:W.data,disableRounding:function(){return!z()}}))}})))},"Aa");
YtU.idomCompat={callbacks:{playbackRef:!0}};
var G9F=_.m(function(W){var B=W.children;var z=W.stackEnabled;var G=W.thumbnailSize;var Y=W.doubleStack;var d=W.stackColor;var E=W.includeStackHeight;var v,c=(v=_.dO().resolve(_.Y8(_.YG)))==null?void 0:v();return _.w(_.V,{cond:z,then:function(){return _.w(S39,{data:function(){var J,g;return{experimentEnabled:!0,thumbnailSize:G(),doubleStack:Y==null?void 0:Y(),color:c?d==null?void 0:(J=d())==null?void 0:J.darkTheme:d==null?void 0:(g=d())==null?void 0:g.lightTheme,enableResponsiveMode:!1,includeStackHeight:E==
null?void 0:E()}}},B)},
else:function(){return B}})},"Ba");var dc7=new _.t1("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var F7;_.he={calledOnce:!0,state:"visible"};F7={calledOnce:!0,state:"hidden"};_.Sh=_.m(function(W){var B=W.data;var z=W.customCommandResolver;var G=W.className;var Y=W.delayedClassName;var d=W.animationEntityKey;var E=W.isCompactWidth;var v=W.isContentWidth;W=_.A(_.g4(!1,void 0,"pC3tUb"));var c=W.next().value,J=W.next().value,g=_.ig(d,""),t=_.hg(AO8,g),P=function(){var VR,ux;return(ux=(VR=t())==null?void 0:VR.value)!=null?ux:!1},Z=function(){_.AV(_.bj("booleanEntity",g(),{key:g(),
value:!0}));n=void 0};
d=_.A(_.IK(P));var l=d.next().value,b=d.next().value;d=_.A(_.IK(P));var O=d.next().value,K=d.next().value;d=_.A(_.IK(function(){var VR;return P()?(VR=B().styleTransitionConfig)==null?void 0:VR.destinationStyle:void 0}));
var e=d.next().value,a=d.next().value,q=function(){var VR=Object.assign({},B(),e()&&{style:e()});var ux,X2,WQ=VR.label,XH=(ux=VR.interaction)==null?void 0:(X2=ux.accessibility)==null?void 0:X2.label;ux=VR.iconImage?VR.label&&VR.label.content?VR.iconLeading?"leading":"trailing":"icon-only":void 0;VR={formattedButtonText:WQ,accessibilityLabel:XH,style:M$y(VR.style),type:axR(VR.style),state:"active",size:UY2(VR.size),iconPosition:ux,disabled:!1,aTagConfig:LKQ(VR,z)};_.r("enable_desktop_vdcbg_components")&&
(VR.focused=c());return VR},n;
d=_.YF({visibilityCallback:function(VR){var ux,X2=(ux=B().interaction)==null?void 0:ux.onFirstVisible;VR&&X2&&_.aB(X2)},
showOption:_.he});var L=function(){return rNx(q(),!!B().iconImage)};
W={};var By={};G=_.kG(function(){return"ytwAdButtonViewModelHost"},function(){return B().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var VR=!!B().delayedAppearanceConfig,ux=l();
return VR?ux?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var VR=!!B().delayedAppearanceConfig,ux=O();
return VR?ux?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!B().delayedAppearanceConfig||l()?Y==null?void 0:Y():""},(W.ytwAdButtonViewModelHostCompactWidth=function(){return E==null?void 0:E()},W),(By.ytwAdButtonViewModelHostContentWidth=function(){return v==null?void 0:v()},By),G!=null?G:"");
var gk=function(){var VR,ux=(VR=B().delayedAppearanceConfig)==null?void 0:VR.delayedInvisibleSeconds;ux&&(n=_.OM(_.fg,function(){b(!0);vy()},ux*1E3))},vy=function(){var VR,ux=(VR=B().delayedAppearanceConfig)==null?void 0:VR.delayedVisibleSeconds;
ux&&(n=_.OM(_.fg,function(){K(!0);lx()},ux*1E3))},lx=function(){var VR,ux=(VR=B().styleTransitionConfig)==null?void 0:VR.styleTransitionSeconds,X2,WQ=(X2=B().styleTransitionConfig)==null?void 0:X2.destinationStyle;
ux&&WQ?n=_.OM(_.fg,function(){a(WQ);Z()},ux*1E3):Z()},Zv=function(){var VR;
return(VR=B().delayedAppearanceConfig)==null?void 0:VR.transitionDurationSeconds};
_.jD(function(){gk()});
_.fR(function(){n&&_.fg.cancelJob(n)});
return _.w("ad-button-view-model",{"on:focusin":_.lF(_.r("enable_desktop_vdcbg_components")?function(){var VR=_.dO().resolve(_.Y8(_.jx));VR&&J(VR.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.lF(_.r("enable_desktop_vdcbg_components")?function(){J(!1);return!1}:void 0),
class:G,el:_.TG(d),style:_.oK({"transition-duration":function(){return Zv()?Zv()+"s":void 0}})},_.w(_.V,{cond:q,
then:function(){return _.w(_.uu,{data:q,icon:function(){return _.w(_.V,{cond:function(){return B().iconImage},
then:function(VR){return _.w(_.iF,{data:VR,alt:"",targetWidth:L,targetHeight:L,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Ca");var piQ=_.m(function(W){var B=W.data;W=function(){return B().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var z=_.YF({visibilityCallback:function(d){var E,v=(E=B().interaction)==null?void 0:E.onFirstVisible;d&&v&&_.aB(v)},
showOption:_.he}),G={},Y={};return _.w("ad-button-group-view-model",{class:_.kG("ytwAdButtonGroupViewModelHost",(G.ytwAdButtonGroupViewModelHostCompactWidth=W,G)),el:_.TG(z)},_.w("div",{class:_.kG("ytwAdButtonGroupViewModelHostSecondaryButton",(Y.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=W,Y))},_.w(_.Sc,{data:function(){return B().secondaryAdButton}},{adButtonViewModel:function(d){return _.w(_.Sh,{data:d.data})}})),_.w("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.w(_.Sc,
{data:function(){return B().primaryAdButton}},{adButtonViewModel:function(d){return _.w(_.Sh,{data:d.data})}})))},"Da");var A$T=_.m(function(W){var B=function(){var z;return((z=W.data())==null?void 0:z.answers)||[]};
return _.w("yt-survey-icons",{class:"ytSurveyIconsHost"},_.w("div",{class:"ytSurveyIconsHeader"},_.w("div",{class:"ytSurveyIconsTitle"},function(){var z;return(z=W.data())==null?void 0:z.text}),_.w("div",null,_.w(_.uu,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var z;(z=W.onDismiss)==null||z.call(W)}}},
iconName:"DISMISSAL"}))),_.w("div",null,_.w("div",{class:"ytSurveyIconsAnswers"},_.w(_.IJ,{each:function(){return B()},
keyBy:"INDEX"},function(z,G){return _.w("div",null,_.w(_.uu,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var Y;(Y=W.onSelect)==null||Y.call(W,z(),G)}}},
icon:function(){return _.w(_.hY,{icon:function(){var Y,d;return(Y=z())==null?void 0:(d=Y.icon)==null?void 0:d.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.w("div",{class:"ytSurveyIconsAnswersText"},_.w("div",null,function(){return B().length?B()[0].text:""}),_.w("div",null,function(){return B().length?B()[B().length-1].text:""}))))},"Ea");var iP4=_.m(function(W){var B=_.TG(_.Qi(function(){var c;return(c=W.data())==null?void 0:c.rendererContext},void 0,void 0,void 0,!0)),z=_.A(_.g4(!1,void 0,"GW0yjf")),G=z.next().value,Y=z.next().value,d=_.hg(qyR,function(){var c;
return(c=W.data().keys)==null?void 0:c.surveyEntityKey}),E=_.hg(ng2,function(){var c;
return(c=W.data().keys)==null?void 0:c.surveyStateEntityKey});
_.$E("ytd-slimline-survey-show-action",function(){Y(!1)});
var v=function(){var c,J;var g=(c=E())==null?void 0:(J=c.questionStack)==null?void 0:J[0];if(g!==void 0){var t,P;return(t=d())==null?void 0:(P=t.questions)==null?void 0:P[g]}};
z={};return _.w("yt-slimline-survey-view-model",{el:B,class:_.kG("ytSlimlineSurveyViewModelHost",(z.ytSlimlineSurveyViewModelCollapsed=function(){return G()},z))},_.w("div",{class:"ytSlimlineSurveyViewModelContainer"},_.w(_.V,{cond:function(){var c;
return((c=v())==null?void 0:c.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.w(A$T,{data:function(){return v()},
onSelect:function(c,J){var g,t;return _.T(function(P){Y(!0);if(t=(g=W.data())==null?void 0:g.onSelectRating)_.aB(t),_.AV(VMR(J));_.HG(P)})},
onDismiss:function(){Y(!0);var c;var J=(c=d())==null?void 0:c.dismissalFeedbackToken;c=J?{feedbackEndpoint:{feedbackToken:J}}:void 0;c&&_.L8(c,{form:{element:B.value}})}})}})))},"Fa");var E5R=_.m(function(W){return _.w("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.w(_.Sc,{data:function(){var B;return(B=W.data())==null?void 0:B.attachments}},{flexibleActionsViewModel:function(B){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(_.AB,{data:B.data,
layout:function(){var z;return((z=W.lockupStyle())==null?void 0:z.arrangement)===1?0:1},
justifyContentOverride:function(){var z;return((z=W.lockupStyle())==null?void 0:z.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(B){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(iP4,{data:B.data}))},
expandableMetadataViewModel:function(B){B=B.data;var z;return _.w("div",{class:_.kG("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(z=_.dO().resolve(_.Y8(dc7)))==null?void 0:z({data:B}))},
adButtonGroupViewModel:function(B){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(piQ,{data:B.data}))},
adButtonViewModel:function(B){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(_.Sh,{data:B.data,isCompactWidth:!0}))}}))},"Ga");var YmD=_.iO("rich_grid_min_item_width",310),zH0=_.iO("rich_grid_max_item_width",500);var TA9=_.m(function(W){var B=W.data;return _.w("br-nz-badge-shape",{class:_.kG(function(){return cdx(B().brNzRatingBadgeType)}),
role:function(){return B().accessibilityText?"img":void 0},
"aria-label":function(){return B().accessibilityText}},function(){var z;
return(z=B())==null?void 0:z.text})},"Ha");_.bM=_.m(function(W){var B=function(){var z=W.data(),G,Y,d;if(z){var E=!((G=W.workaroundShortsIsThumbnailBadge)==null||!G.call(W));G=(Y=W.modern)==null?void 0:Y.call(W);Y=(d=W.numBadgesInRow)==null?void 0:d.call(W);var v;a:switch(z.badgeStyle){case "BADGE_OVERLAY":d=!0;break a;default:d=!1}z={type:E?17:war(z.badgeStyle),brNzRatingBadgeType:V6k(z.badgeStyle),text:z.badgeText,icon:z.iconName,isOverlay:d,modern:G||_.r("web_modern_badge_view_model"),numBadgesInRow:Y,accessibilityText:z.accessibilityLabel||
((v=_.k(z.rendererContext,_.FB))==null?void 0:v.label)}}else z=void 0;return z};
return _.w("yt-badge-view-model",{class:_.kG("ytBadgeViewModelHost",W.class)},_.w(_.HR,null,_.w(_.oJ,{when:function(){var z;return!((z=B())==null||!z.brNzRatingBadgeType)}},function(){return _.w(TA9,{data:function(){return B()}})}),_.w(_.oJ,{when:function(){return!!B()&&!B().brNzRatingBadgeType}},function(){return _.w(_.vD,{data:function(){return B()}})})))},"Ia");
_.bM.idomCompat=!0;var ge2,JdT;ge2=16/9;JdT=2/3;_.jh=_.m(function(W){var B=W.data;var z=W.className;var G=W.imageSizeConfig;var Y=W.notifyOnLoaded;var d=function(){return B().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},E=function(){var P;
return _.Dp((P=B())==null?void 0:P.rendererContext)};
W={};W=(W.ytContentPreviewImageViewModelHost=!0,W.ytContentPreviewImageViewModelCircleImage=function(){return d()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},W.ytContentPreviewImageViewModelTappable=function(){return E()},W);
var v=function(){var P,Z;return(Z=(P=_.k(B().rendererContext,_.FB))==null?void 0:P.label)!=null?Z:""},c=function(){return sC2(B())},J=function(){var P=t6D(d(),B().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",G==null?void 0:G(),PTx(c()),B().layoutWidth,B().layoutHeight),Z=Object.assign({},P);
P.width&&(Z.width=Math.round(P.width));P.height&&(Z.height=Math.round(P.height));P.maxWidth&&(Z.maxWidth=Math.round(P.maxWidth));P.maxHeight&&(Z.maxHeight=Math.round(P.maxHeight));return Z},g=_.r4(function(){return J().height},void 0,"CxFlJb"),t=_.r4(function(){return J().width},void 0,"lb8Jhd");
return _.w("yt-content-preview-image-view-model",{el:_.TG(_.Qi(function(){var P;return(P=B())==null?void 0:P.rendererContext})),
role:function(){return E()?"link":void 0},
tabindex:function(){return E()?0:void 0},
class:_.kG(z,W,function(){var P=d();var Z=G==null?void 0:G();P=P==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||P==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||P==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||P==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(Z==null?void 0:Z.size)!=null&&Z.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(Z==null?void 0:Z.size)!=null&&Z.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return P}),
style:function(){var P=J(),Z=[];P.width&&Z.push("width: "+P.width+"px");P.height&&Z.push("height: "+P.height+"px");P.maxWidth&&Z.push("max-width: "+P.maxWidth+"px");P.maxHeight&&Z.push("max-height: "+P.maxHeight+"px");P.fullWidth&&Z.push("width: 100%");return Z.join(";")}},_.w(_.V,{cond:c,
then:function(P){return _.w(_.iF,{data:P,alt:v,"data-disabled$":function(){return!v()},
notifyOnLoaded:Y,targetWidth:t,targetHeight:g,preserveWidth:function(){return!!t()},
preserveHeight:function(){return!!g()}})}}),_.w(_.Sc,{data:function(){var P;
return(P=B())==null?void 0:P.overlays}},{thumbnailHoverOverlayViewModel:YR,
thumbnailOverlayButtonViewModel:_.aQ4}))},"Ja");
_.jh.idomCompat=!0;var c$7=_.m(function(W){var B=W.data;var z=W.className;var G=W.useSmallLayout;W=W.useMediumText;var Y={};return _.w("yt-attribution-view-model",{el:_.TG(_.Qi(function(){var d;return(d=B())==null?void 0:d.rendererContext})),
class:_.kG(z,(Y.ytAttributionViewModelHost=!0,Y.ytAttributionViewModelMediumText=W,Y))},_.w(_.V,{cond:function(){return _.Dp(B().rendererContext)},
then:function(){return _.w("button",{class:"ytAttributionViewModelTappable"},_.w(v5T,{data:B,useSmallLayout:G}))},
else:function(){return _.w(v5T,{data:B,useSmallLayout:G})}}))},"Ka"),v5T=_.m(function(W){var B=W.data;
var z=W.useSmallLayout;var G=function(){return{size:(z==null?0:z())?16:24}};
return _.w(_.AW,null,_.w(_.Sc,{data:function(){return B().contentPreviewImage}},{contentPreviewImageViewModel:function(Y){return _.w(_.jh,{data:Y.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:G})}}),_.w(_.Sc,{data:function(){return B().badge}},{badgeViewModel:function(Y){return _.w(_.bM,{data:Y.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.w(_.V,{cond:function(){return B().text},
then:function(){return _.w(_.r0,{text:function(){return B().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.w(_.V,{cond:function(){return B().suffix},
then:function(){return _.w(_.r0,{text:function(){return B().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"La");
c$7.idomCompat=!0;var wiM,Vsu,J$R,g5H,tsD;wiM=_.m(function(W){var B=W.delimiter;var z=W.max;var G=W.index;var Y=W.isStandalone;return _.w(_.V,{cond:function(){return z()-1>G()},
then:function(){var d={};return _.w("span",{class:_.kG("yt-content-metadata-view-model__delimiter",(d["yt-content-metadata-view-model__delimiter--standalone"]=Y,d)),"aria-hidden":!0},B)}})},"Ma");
Vsu=_.m(function(W){var B=W.metadataPart;var z=W.maxLines;return _.w(_.r0,{text:function(){return B().text},
linkInheritColor:!0,className:function(){return Z5D(z())},
userInput:!0})},"Na");
J$R=_.m(function(W){var B=W.metadataPart;var z=W.maxLines;return _.w(_.V,{cond:function(){return B().tooltip},
then:function(G){return _.w("span",{title:G,role:"tooltip"},_.w(Vsu,{metadataPart:B,maxLines:z}))},
else:function(){return _.w(Vsu,{metadataPart:B,maxLines:z})}})},"Oa");
g5H=_.m(function(W){var B=W.metadataPart;var z=W.isOverlay;var G=W.useMediumText;var Y=W.hideAvatar;var d=function(){return B().maxLines!==void 0?B().maxLines:1};
return _.w(_.AW,null,_.w(_.Sc,{data:function(){return B().avatarStack}},{avatarStackViewModel:function(E){return _.w(_.Ae,{data:E.data,
isOverlay:z,useMediumText:G,hideAvatar:Y})},
badgeViewModel:_.bM}),_.w(_.V,{cond:function(){return B().leadingIcon},
then:function(E){return _.w(_.hY,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return E().name},
size:function(){return E().width}})}}),_.w(_.V,{cond:function(){return B().text},
then:function(){return _.w(J$R,{metadataPart:B,maxLines:d})}}),_.w(_.V,{cond:function(){return B().icon},
then:function(E){return _.w(_.hY,{className:"yt-content-metadata-view-model__icon",icon:function(){return E().name},
size:function(){return E().width}})}}))},"Pa");
tsD=_.m(function(W){var B=W.metadataRow;var z=W.isInline;var G=W.delimiter;var Y=W.isOverlay;var d=W.useMediumText;var E=W.extensions;var v=function(){var J,g=E==null?void 0:(J=E())==null?void 0:J.lockupMetadata;J=B();var t,P;return!!((g==null?0:(t=g.byline)==null?0:t.hideAvatar)&&((P=_.k(J,fsF))==null?void 0:P.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},c=function(){return B().metadataParts||[]};
W={};return _.w("div",{class:_.kG("yt-content-metadata-view-model__metadata-row",(W["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=z,W["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var J,g=E==null?void 0:(J=E())==null?void 0:J.lockupMetadata;J=B();var t,P;return!!((g==null?0:(t=g.byline)==null?0:t.addPadding)&&((P=_.k(J,fsF))==null?void 0:P.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},W["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var J;
return!!(E==null?0:(J=E())==null?0:J.lockupMetadata)&&B().badges&&!B().metadataParts},W))},_.w(_.Sc,{data:function(){return B().badges}},{badgeViewModel:function(J){return _.w("div",{class:"yt-content-metadata-view-model__badge"},_.w(_.bM,{data:J.data,
numBadgesInRow:function(){var g,t;return((g=B())==null?void 0:(t=g.badges)==null?void 0:t.length)||0}}))}}),_.w(_.IJ,{each:c},function(J,g){return _.w(_.AW,null,_.w(g5H,{metadataPart:J,
isOverlay:Y,useMediumText:d,hideAvatar:v}),_.w(wiM,{delimiter:G,max:function(){return c().length},
index:g,isStandalone:!1}))}),_.w(_.V,{cond:function(){return B().isSpacerRow&&!z()},
then:function(){return _.w("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Qa");
_.fY=_.m(function(W){W=_.EV(W,{layout:0,isOverlay:!1});var B=W.data,z=W.layout,G=W.isOverlay,Y=W.useMediumText,d=W.extensions,E=function(){return z()===0},v=function(){var J;
return((J=B().metadataRows)==null?void 0:J.filter(function(g){var t,P=d==null?void 0:(t=d())==null?void 0:t.lockupMetadata,Z,l;t=!!((P==null?0:(Z=P.description)==null?0:Z.hideDescription)&&((l=_.k(g,fsF))==null?void 0:l.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var b,O;return!((P==null?0:(b=P.spacer)==null?0:b.hideSpacer)&&((O=_.k(g,fsF))==null?void 0:O.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||t)}))||[]},c={};
return _.w("yt-content-metadata-view-model",{class:_.kG(W.className,"yt-content-metadata-view-model",(c["yt-content-metadata-view-model--inline"]=E,c["yt-content-metadata-view-model--tappable"]=function(){return _.Dp(B().rendererContext)},c["yt-content-metadata-view-model--medium-text"]=Y,c)),
el:_.TG(_.Qi(function(){return B().rendererContext}))},_.w(_.IJ,{each:v},function(J,g){return _.w(_.AW,null,_.w(tsD,{metadataRow:J,
isInline:E,delimiter:function(){return B().delimiter},
isOverlay:G,useMediumText:Y,extensions:d}),_.w(_.V,{cond:function(){return E()&&!J.isSpacerRow},
then:function(){return _.w(wiM,{delimiter:function(){return B().delimiter},
max:function(){return v().length},
index:g,isStandalone:!0})}}))}))},"Ra");
_.fY.idomCompat=!0;var so6=_.m(function(W){var B={};return _.w("yt-lockup-metadata-view-model",{class:_.kG("yt-lockup-metadata-view-model",function(){a:{var z=W.lockupStyle();if(z==null?0:z.isOverlay)z="yt-lockup-metadata-view-model--overlay";else switch(z==null?void 0:z.arrangement){case 1:z="yt-lockup-metadata-view-model--horizontal";break a;default:z="yt-lockup-metadata-view-model--vertical"}}return z},function(){a:{var z=W.lockupStyle();
if(z==null?0:z.isTiny)z="yt-lockup-metadata-view-model--tiny";else switch(z==null?void 0:z.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":z="yt-lockup-metadata-view-model--compact";break a;default:z="yt-lockup-metadata-view-model--standard"}}return z},(B["yt-lockup-metadata-view-model--overlay"]=function(){var z;
return(z=W.lockupStyle())==null?void 0:z.isOverlay},B["yt-lockup-metadata-view-model--card"]=function(){var z;
return(z=W.lockupStyle())==null?void 0:z.isCard},B["yt-lockup-metadata-view-model--centered"]=function(){var z;
return(z=W.lockupStyle())==null?void 0:z.isCentered},B["yt-lockup-metadata-view-model--typography-bump"]=function(){var z;
return(z=W.lockupStyle())==null?void 0:z.typographyBump},B["yt-lockup-metadata-view-model--legacy-typography"]=function(){var z;
return(z=W.lockupStyle())==null?void 0:z.useLegacyTypography},B["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var z;
return(z=W.lockupStyle())==null?void 0:z.useRichGridLegacyTypography},B))},_.w(_.Sc,{data:function(){return W.data().image}},{avatarStackViewModel:function(z){return _.w("div",{class:"yt-lockup-metadata-view-model__avatar"},_.w(_.Ae,{data:z.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(z){return _.w("div",{class:"yt-lockup-metadata-view-model__avatar"},_.w(_.ds,{data:z.data}))},
decoratedAvatarViewModel:function(z){return _.w("div",{class:"yt-lockup-metadata-view-model__avatar"},_.w(_.pY,{data:z.data}))}}),_.w("div",{class:"yt-lockup-metadata-view-model__text-container"},_.w("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var z;return(z=W.data().title)==null?void 0:z.content}},_.w(_.V,{cond:function(){return W.data().title},
then:function(z){return _.w(_.fL,{command:W.lockupCommand,className:"yt-lockup-metadata-view-model__title",ariaLabel:W.lockupAccessibilityLabel},_.w(_.r0,{text:z,userInput:!0}))}})),_.w("div",{class:"yt-lockup-metadata-view-model__metadata"},_.w(_.Sc,{data:function(){return W.data().metadata}},{contentMetadataViewModel:function(z){return _.w(_.fY,{data:z.data,
layout:1,useMediumText:function(){var G,Y;return((G=W.lockupStyle())==null?void 0:G.typographyBump)||((Y=W.lockupStyle())==null?void 0:Y.useRichGridLegacyTypography)},
extensions:function(){var G,Y,d,E;return{lockupMetadata:{byline:{hideAvatar:((G=W.lockupStyle())==null?void 0:G.arrangement)===0,addPadding:((Y=W.lockupStyle())==null?void 0:Y.arrangement)===1},description:{hideDescription:!((d=W.lockupStyle())==null||!d.compactMetadata)},spacer:{hideSpacer:!((E=W.lockupStyle())==null||!E.compactMetadata)}}}}})}})),_.w(_.Sc,{data:function(){return W.data().attribution}},{attributionViewModel:function(z){return _.w("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.w(c$7,{data:z.data,
useSmallLayout:!0}))}})),_.w("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.w(_.Sc,{data:function(){return W.data().menuButton}},{buttonViewModel:function(z){return _.w(_.ex,{data:z.data,
buttonOverrides:function(){var G;return((G=W.lockupStyle())==null?0:G.isOverlay)?{style:"overlay"}:void 0}})}})))},"Sa");
so6.idomCompat=!0;var Pl6=_.m(function(W){var B=_.LG("notification-multi-action-renderer");_.bk(function(){requestAnimationFrame(function(){_.UE(B.value)})});
var z={},G={},Y={};return _.w("notification-multi-action-renderer",{class:_.kG("ytNotificationMultiActionRendererHost",(z.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var d;return(d=W.useLegacyShelfStyle)==null?void 0:d.call(W)},z)),
el:B},_.w("span",{"aria-live":"polite",class:_.kG("ytNotificationMultiActionRendererTextContainer",(G.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var d;return(d=W.useLegacyShelfStyle)==null?void 0:d.call(W)},G))},_.w(_.r0,{text:function(){return W.data().responseText}})),_.w("div",{class:_.kG("ytNotificationMultiActionRendererButtonContainer",(Y.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var d;
return(d=W.useLegacyShelfStyle)==null?void 0:d.call(W)},Y))},_.w(_.Sc,{data:function(){var d;
return(d=W.data().buttons)==null?void 0:d.map(function(E){if(E=E.buttonRenderer){var v,c=Object,J=c.assign,g=(v=E.icon)==null?void 0:v.iconType;v=(v=E.command||E.serviceEndpoint||E.navigationEndpoint)?{innertubeCommand:v}:void 0;E={buttonViewModel:J.call(c,{},{iconName:g,onTap:v,trackingParams:E.trackingParams,titleFormatted:E.text?_.y2(E.text):void 0},kM8(E))}}else E=void 0;return E}).filter(function(E){return!!E})}},{buttonViewModel:function(d,E){return _.w("div",null,_.w(_.ex,{data:d.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var v;return((v=W.useModernStyles)==null?0:v.call(W))?{type:E()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ta");var ZPd=_.m(function(W){var B=_.LG("notification-text-renderer");_.bk(function(){requestAnimationFrame(function(){_.UE(B.value)})});
return _.w("notification-text-renderer",{el:B,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.w(_.r0,{text:function(){return W.data().successResponseText}}))},"Ua");_.Oi=_.m(function(W){var B=_.hg(wWR,function(){var G;return lQ2((G=W.contentId)==null?void 0:G.call(W))}),z=function(){var G;
return _.k((G=B())==null?void 0:G.command,_.QA)};
return _.w(_.V,{cond:function(){var G;if(!(G=z())){var Y;G=_.k((Y=B())==null?void 0:Y.command,BLQ)}return G},
then:function(){return _.w(_.V,{cond:z,then:function(){var G={};return _.w("div",{class:_.kG("ytDismissibleItemReplacedContent",function(){var Y;return CTX((Y=W.aspectRatio)==null?void 0:Y.call(W))})},_.w("div",{class:_.kG((G.ytDismissibleItemAspectRatioContainer=function(){var Y;
return((Y=W.aspectRatio)==null?void 0:Y.call(W))!==void 0},G))},_.w(_.Sc,{data:function(){var Y;
return(Y=z())==null?void 0:Y.item}},{notificationMultiActionRenderer:function(Y){return _.w(Pl6,{data:Y.data,
useModernStyles:W.useModernStyle,useLegacyShelfStyle:W.useLegacyShelfStyle})},
notificationTextRenderer:ZPd})))}})},
else:W.children})},"Va");_.r$R=_.m(function(W){var B=W.data;var z=W.customCommandResolver;W=_.TG(_.YF({visibilityCallback:function(d){var E,v=(E=B().interaction)==null?void 0:E.onFirstVisible;d&&v&&_.aB(v)},
showOption:_.he}));var G=function(){var d;return((d=B().interaction)==null?0:d.onTap)?function(E){var v;$YR(E,(v=B().interaction)==null?void 0:v.onTap,z)}:void 0},Y=function(){var d,E=B(),v=G(),c=(d=_.k(B().rendererContext,_.FB))==null?void 0:d.label;
a:switch(E.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":d=1;break a;default:d=0}return{size:hHr(E.size),type:d,onTap:v,accessibilityText:c}};
return _.w("ad-avatar-view-model",{class:function(){var d;return((d=B().interaction)==null?0:d.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:W},_.w(_.V,{cond:function(){return B().image},
then:function(d){return _.w(Ymu,{data:Y,image:d})}}))},"Wa");_.X7=_.m(function(W){var B=_.EV(W,{hasDot:!1,usedInMasthead:!1}),z=Object.assign({},B),G=B.data,Y=B.hasDot;W=B.customCommandResolver;var d=B.usedInMasthead,E=(delete z.data,delete z.hasDot,delete z.customCommandResolver,delete z.usedInMasthead,z);B=function(){return G().style};
B!==void 0&&B!==null||_.nx(Error("Kh"));W=_.N$(function(){return G().interaction},W);
return _.w("ad-badge-view-model",{class:_.kG(function(){var v;return((v=G().interaction)==null?0:v.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var v=E.adRenderingContextType(),c=d();
G();return v!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||c?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.TG(W)},_.w(_.vD,{data:function(){var v;G();return{type:2,text:(v=G().label)==null?void 0:v.content,adsIncludeDot:Y(),isOverlay:G().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xa");var k9M;_.KY=_.m(function(W){var B=W.data;var z=W.customCommandResolver;var G=W.adRenderingContextType;return _.w("ad-details-line-view-model",{class:function(){var Y;return((Y=B().interaction)==null?0:Y.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.TG(_.YF({visibilityCallback:function(Y){var d,E=(d=B().interaction)==null?void 0:d.onFirstVisible;Y&&E&&_.aB(E)},
showOption:_.he}),_.N$(function(){return B().interaction},z))},_.w(_.V,{cond:function(){return B().style},
then:function(Y){return _.w(_.IJ,{each:function(){var d;return((d=B())==null?void 0:d.attributes)||[]},
keyBy:"INDEX"},function(d){return _.w(k9M,{attribute:d,style:Y,adRenderingContextType:function(){return G()}})})}}))},"Ya");
k9M=_.m(function(W){var B=W.attribute;var z=W.style;var G=W.adRenderingContextType;return _.w(_.V,{cond:function(){return B().text},
then:function(Y){return _.w(_.r0,{text:Y,className:function(){var d=G();z();return d==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Za");var lz6=_.m(function(W){var B=W.data;var z=W.typographyBump;var G=function(){return B().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
W={};return _.w(_.AW,null,_.w("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.w(_.r0,{text:function(){return B().headline},
className:_.kG("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(W.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return G==null?void 0:G()},W.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(z==null?void 0:z())&&!(G==null?0:G())},W)),
linkInheritColor:!0}),_.w(_.V,{cond:function(){return B().description},
then:function(Y){var d={};return _.w(_.r0,{text:Y,className:_.kG("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(d.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return G==null?void 0:G()},d.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(z==null?void 0:z())&&!(G==null?0:G())},d)),
linkInheritColor:!0})}}),_.w(_.V,{cond:function(){return B().secondaryDescription},
then:function(Y){var d={};return _.w(_.r0,{text:Y,className:_.kG("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(d.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return z==null?void 0:z()},d)),
linkInheritColor:!0})}}),_.w("div",{class:function(){return G()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.w(_.V,{cond:function(){return B().adAvatar},
then:function(){return _.w("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.w(_.Sc,{data:function(){return B().adAvatar}},{adAvatarViewModel:_.r$R}))}}),_.w(_.Sc,{data:function(){return B().adBadge}},{adBadgeViewModel:function(Y){return _.w(_.X7,{data:Y.data,
hasDot:function(){return!!B().adDetailsLine},
adRenderingContextType:function(){return B().adRenderingContextType}})}}),_.w(_.Sc,{data:function(){return B().adDetailsLine}},{adDetailsLineViewModel:function(Y){return _.w(_.KY,{data:Y.data,
adRenderingContextType:function(){return B().adRenderingContextType}})}}))),_.w("div",{class:function(){return G()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.w(_.Sc,{data:function(){return B().menu}},{buttonViewModel:function(Y){return _.w(_.ex,{data:Y.data,
buttonOverrides:function(){a:switch(B().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var d="S";break a;default:d="M"}return{size:d}}})}})))},"$a"),Cl9=_.m(function(W){var B=W.data;
var z=W.noBottomMargin;var G=W.useVideoLockupTopPadding;var Y=W.typographyBump;W={};W=_.kG("ytwFeedAdMetadataViewModelHostMetadata",(W.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return z==null?void 0:z()},W.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return G==null?void 0:G()},W));
var d=function(){return B().adBadge};
d!==void 0&&d!==null||_.nx(Error("Lh"));d={};var E={};return _.w(_.AW,null,_.w(_.V,{cond:function(){return B().adAvatar},
then:function(){return _.w("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.w(_.Sc,{data:function(){return B().adAvatar}},{adAvatarViewModel:function(v){return _.w(_.r$R,{data:v.data})}}))}}),_.w("div",{class:W},_.w("div",{class:_.kG("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(d.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return Y==null?void 0:Y()},d.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(Y==
null?void 0:Y())&&_.r("web_enable_typography_bump_v2")},d))},_.w(_.r0,{text:function(){return B().headline},
linkInheritColor:!0})),_.w(_.V,{cond:function(){return B().description},
then:function(v){return _.w(_.r0,{text:v,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.w("div",{class:function(){return B().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.r("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.w(_.Sc,{data:function(){return B().adBadge}},
{adBadgeViewModel:function(v){return _.w(_.X7,{data:v.data,
hasDot:function(){return!!B().adDetailsLine},
adRenderingContextType:function(){return B().adRenderingContextType}})}}),_.w(_.Sc,{data:function(){return B().adDetailsLine}},{adDetailsLineViewModel:function(v){return _.w(_.KY,{data:v.data,
adRenderingContextType:function(){return B().adRenderingContextType}})}})),_.w(_.V,{cond:function(){return B().secondaryDescription},
then:function(v){return _.w(_.r0,{text:v,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.w("div",{class:_.kG("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(E.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return G==null?void 0:G()},E))},_.w(_.Sc,{data:function(){return B().menu}},{buttonViewModel:_.ex})))},"ab"),uM=_.m(function(W){var B=W.data;
var z=W.noBottomMargin;var G=W.listenToTapEvent;var Y=W.setTouchEndHandler;var d=W.useVideoLockupTopPadding;var E=W.typographyBump;W=_.YF({visibilityCallback:function(t){var P,Z=(P=B().interaction)==null?void 0:P.onFirstVisible;t&&Z&&_.aB(Z)},
showOption:_.he});var v=_.N$(function(){return B().interaction},void 0,function(){return G==null?void 0:G()}),c=_.A(_.g4(!1,void 0,"a2FSrb")),J=c.next().value,g=c.next().value;
c=_.lF(function(t){(Y==null?0:Y())&&!J()&&(t.currentTarget.click(),g(!0),setTimeout(function(){g(!1)},100));
return!1});
return _.w("feed-ad-metadata-view-model",{class:function(){var t;return((t=B().interaction)==null?0:t.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.TG(W,v),"on:touchend":c},_.w(_.HR,null,_.w(_.oJ,{when:function(){return B().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.w(lz6,{data:B,
typographyBump:E})}),_.w(_.oJ,{when:function(){return B().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.w(Cl9,{data:B,
noBottomMargin:z,useVideoLockupTopPadding:d,typographyBump:E})})))},"bb");var Iz6,o5F;Iz6=_.M$.inlinePreviewEnabledSelector;_.eh=_.m(function(W){return _.w("yt-lockup-view-model",{class:_.kG(W.className)},_.w(_.Oi,{contentId:function(){return W.data().contentId},
useModernStyle:!0,aspectRatio:function(){var B,z;return((B=W.containerType)==null?void 0:B.call(W))!==3?TMD(W.data().contentType,(z=W.force16By9ThumbnailAspectRatio)==null?void 0:z.call(W)):void 0}},function(){return _.w(o5F,Object.assign({},W))}))},"cb");
o5F=_.m(function(W){W=_.EV(W,{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 B=W.data,z=W.containerLayoutConfig,G=W.containerType,Y=W.sizing,d=W.protectBackground,E=W.typographyBump,v=W.force16By9ThumbnailAspectRatio,c=W.thumbnailFixedWidth,J=W.thumbnailTargetWidth,g=W.lockupExperiments,t=W.elementsPerRow;
W=_.TG(_.Qi(function(){var VR;return(VR=B())==null?void 0:VR.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 P=_.ny(Iz6),Z=_.dO().resolve(_.Y8(yd6)),l=Z?{}:void 0,b=function(){var VR,ux,X2;return(X2=(ux=_.k((VR=B())==null?void 0:VR.rendererContext,_.FB))==null?void 0:ux.label)!=null?X2:void 0},O=function(){var VR=z==null?void 0:z(),ux;
if(VR==null?0:VR.containerType){var X2=(ux=B())==null?void 0:ux.contentType;ux=g();var WQ=E(),XH=J(),wU=d();VR=Object.assign({},veR(AdQ(VR),dW8(VR.responsiveSize),WQ,X2,VR.force16By9ThumbnailAspectRatio,XH,wU,ux),{thumbnailFixedWidth:VR.contentPreviewWidth})}else VR=veR(G(),Y(),E(),(X2=B())==null?void 0:X2.contentType,v(),J(),d(),g());return VR};
Z&&l&&Z({enabled:function(){return P()},
itemPlaybackModel:function(){return B().itemPlayback},
thumbnailElRef:function(){return l.thumbnailElRef},
containerElRef:W,options:function(){var VR,ux=(VR=_.k(B().metadata,_.OL7))==null?void 0:VR.endorsement;VR=l.thumbnailOverlays||[];var X2;!ux||((X2=g())==null?0:X2.onFocusEffect)||VR.push(ux);var WQ,XH;return{thumbnail:l.thumbnail,thumbnailOverlays:VR,accessibilityText:b(),thumbnailSize:l.thumbnailSize,enableRounding:O().isCollection,containPlayerWithinThumbnail:O().isCollection,trackingParams:(WQ=_.k(B().rendererContext,_.bg))==null?void 0:(XH=WQ.loggingDirectives)==null?void 0:XH.trackingParams}}});
var K=0;Z=_.A(_.g4(!1,void 0,"GH4i8d"));var e=Z.next().value,a=Z.next().value;Z=_.A(_.g4(!1,void 0,"hS52Ob"));var q=Z.next().value,n=Z.next().value;Z=_.lF(function(){var VR=P()&&B().itemPlayback;q()?(_.fg.cancelJob(K),K=_.fg.addJob(function(){a(!VR)},8,32)):a(!VR);
return!0});
var L=_.lF(function(){K&&(_.fg.cancelJob(K),K=0);a(!1)});
_.fR(function(){K&&(_.fg.cancelJob(K),K=0)});
var By=oeu(function(){n(!0)}),gk=By.touchFeedbackEvents,vy=By.touchFeedbackOnPointerUp,lx=By.touchFeedbackOnPointerDown;
By=By.touchFeedbackOnPointerLeave;var Zv={};return _.w("div",{el:W,class:_.kG("yt-lockup-view-model",function(){a:{var VR=O();if(VR.isOverlay)VR="yt-lockup-view-model--overlay";else switch(VR.arrangement){case 1:VR="yt-lockup-view-model--horizontal";break a;default:VR="yt-lockup-view-model--vertical"}}return VR},function(){a:{var VR=O();
if(VR.isOverlay)VR="yt-lockup-view-model--overlay";else{switch(VR.collectionStackNumber){case 1:VR="yt-lockup-view-model--collection-stack-1";break a;case 2:VR="yt-lockup-view-model--collection-stack-2";break a}VR=void 0}}return VR},function(){var VR;
return _.rdk((VR=B())==null?void 0:VR.contentId)},(Zv["yt-lockup-view-model--card"]=function(){return O().isCard},Zv["yt-lockup-view-model--compact"]=function(){return O().isTiny||O().sizing!=="STANDARD"},Zv["yt-lockup-view-model--protect-background"]=d,Zv["yt-lockup-view-model--add-margins"]=function(){return O().addMarginForFullbleed},Zv["yt-lockup-view-model--centered"]=function(){return O().isCentered},Zv["yt-lockup-view-model--fullbleed"]=function(){return O().fullbleed},Zv["yt-lockup-view-model--single-column-grid"]=
function(){return t()===1&&G()===2},Zv["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var VR;
return(VR=g())==null?void 0:VR.useRichGridLegacyMargin},Zv)),
"on:mousedown":lx,"on:mouseleave":L,"on:mouseup":vy,"on:mouseover":Z,"on:touchstart":lx,"on:touchend":vy,"on:pointerleave":By},_.w(_.fL,{command:function(){var VR;return _.x2((VR=B())==null?void 0:VR.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return c()&&O().arrangement===1?"width: "+c():""}},_.w(_.Sc,{data:function(){var VR;
return(VR=B())==null?void 0:VR.contentImage}},{thumbnailViewModel:function(VR){return _.w(_.oW,{data:VR.data,
aspectRatio:function(){return O().aspectRatio},
disableRounding:function(){return O().disableRounding},
width:J,hovered:e,isClip:function(){var ux;return((ux=B())==null?void 0:ux.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:y2T(l),lockupExperiments:function(){return g()}})},
collectionThumbnailViewModel:function(VR){return _.w(YtU,{data:VR.data,aspectRatio:function(){return O().aspectRatio},
disableRounding:function(){return O().disableRounding},
width:J,doubleStack:function(){return O().collectionStackNumber===2},
hovered:e,playbackRef:y2T(l)})},
decoratedAvatarViewModel:_.pY})),_.w("div",{class:"yt-lockup-view-model__metadata"},_.w(_.Sc,{data:function(){var VR;return(VR=B())==null?void 0:VR.metadata}},{lockupMetadataViewModel:function(VR){return _.w(so6,{data:VR.data,
lockupStyle:O,lockupCommand:function(){var ux;return _.x2((ux=B())==null?void 0:ux.rendererContext)},
lockupAccessibilityLabel:function(){return b()}})},
feedAdMetadataViewModel:function(VR){return _.w(uM,{data:VR.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:E})}}),_.w(_.Sc,{data:function(){var VR;
return(VR=B())==null?void 0:VR.attachmentSlot}},{lockupAttachmentsViewModel:function(VR){return _.w(E5R,{data:VR.data,
lockupStyle:O})}})),_.w(_.O6,{model:function(){a:{switch(O().collectionStackNumber){case 1:var VR=8;
break a;case 2:VR=12;break a}VR=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:VR}},
pointerDownEvent:gk.pointerDownEvent,pointerUpEvent:gk.pointerUpEvent,pointerLeaveEvent:gk.pointerLeaveEvent}))},"db");
_.eh.idomCompat=!0;_.Vm(_.eh,"yt-lockup-view-model",{props:{data:_.kz,containerLayoutConfig:_.kz,containerType:_.kz,sizing:_.kz,protectBackground:_.kz,typographyBump:_.kz,thumbnailFixedWidth:_.kz,thumbnailTargetWidth:_.kz,force16By9ThumbnailAspectRatio:_.kz,className:_.kz,lockupExperiments:_.kz,elementsPerRow:_.kz}});var b5u,hh6=_.m(function(W){var B=_.EV(W,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),z=B.text,G=B.alwaysShowTruncationText;W=B.truncationText;var Y=B.onTextClick,d=B.maxLines,E=B.disableTextMask,v=B.textStyle,c=B.accessibilityLabel,J=B.textSize,g=B.alwaysTruncateAtMaxLines,t=B.expandOnClick;B=_.A(_.g4(!1,void 0,"EzA1q"));var P=B.next().value,Z=B.next().value;B=_.lF(function(){t()&&Z(!P());Y==null||Y()});
var l=function(){a:switch(J()){case "medium":var L=2;break a;case "large":L=2.2;break a;default:L=1.8}return L},b=O5u(z,function(){return P()?Infinity:d()},l,E,g,P),O=b.isTruncated;
z=b.displayText;g=b.contentRef;var K=b.hiddenRef,e=b.placeholderTruncationTextRef,a=b.hiddenTruncationTextRef;b=b.truncationTextRef;var q={},n={};return _.w("truncated-text",{class:_.kG((q["yt-truncated-text"]=!0,q["yt-truncated-text--overlay"]=function(){return v()==="overlay"},q["yt-truncated-text--medium-text"]=function(){return J()==="medium"},q["yt-truncated-text--large-text"]=function(){return J()==="large"},q["yt-truncated-text--primary-text"]=function(){return v()==="primary-text"},q)),
"on:click":B,style:function(){return"line-height: "+l()+"rem;"}},_.w("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:g,style:function(){return P()?"":"max-height: "+d()*l()+"rem;"}},_.w(_.r0,{text:z}),_.w("button",{"aria-disabled":!0,
disabled:!0,class:"yt-truncated-text__inline-button",el:e,style:function(){return"line-height: "+l()+"rem;"}},_.w(_.r0,{text:W}))),_.w("truncated-text-content",{class:_.kG("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:K,style:function(){return P()?"":"max-height: "+d()*l()+"rem;"},
"aria-hidden":"true"},_.w(_.r0,{text:z}),_.w("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:a,style:function(){return"line-height: "+l()+"rem;"}},_.w(_.r0,{text:W}))),_.w("button",{"aria-label":c,
class:_.kG((n["yt-truncated-text__absolute-button"]=function(){return!E()},n["yt-truncated-text__bottom-button"]=function(){return E()},n["yt-truncated-text--hidden"]=function(){return!(!P()&&(G!=null&&G()||O()))},n)),
el:b,style:function(){return"line-height: "+l()+"rem;"}},_.w(_.r0,{text:W})))},"eb");
hh6.idomCompat={callbacks:{onTextClick:!0}};var StD=_.m(function(W){var B=W.data;W=W.className;var z=_.r4(function(){return Kvx(B())},void 0,"uDhDke"),G=_.w(_.AW,null,_.w(_.V,{cond:function(){return B().heroText||B().image},
then:function(){return _.w(HP6,{data:B})}}),_.w(FYu,{data:B,
sizeSmall:function(){return B().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.w("yt-video-attribute-view-model",{class:W},_.w("div",{class:function(){var Y=B();a:switch(Y.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var d="yt-video-attribute-view-model--vertical";break a;default:d="yt-video-attribute-view-model--horizontal"}a:switch(Y.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var E="yt-video-attribute-view-model--image-small";break a;default:E="yt-video-attribute-view-model--image-large"}a:switch(Y.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var v=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":v="yt-video-attribute-view-model--image-avatar";break a;default:v=""}a:switch(Y.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var c="yt-video-attribute-view-model--metadata-header";break a;default:c=""}a:switch(Y.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var J="yt-video-attribute-view-model--container-card";break a;default:J=""}return["yt-video-attribute-view-model",d,E,
v,c,J,Kvx(Y)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.oK({"background-color":function(){var Y=B();if(Y.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var d="";else{d=Y.lightColorPalette;Y=Y.darkColorPalette;var E,v=((E=_.dO().resolve(_.Y8(_.YG)))==null?0:E())&&Y?Y:d;d=(d=v==null?void 0:v.section2Color)?_.aE(d):""}return d}})},_.w(_.V,{cond:z,
then:function(){return _.w(_.fL,{className:"yt-video-attribute-view-model__content-container",command:z,role:"group",ariaLabel:function(){return B().title}},G)},
else:function(){return _.w("div",{class:"yt-video-attribute-view-model__content-container"},G)}})))},"fb");
StD.idomCompat=!0;var HP6=_.m(function(W){var B=W.data;var z,G=(z=_.dO().resolve(_.Y8(_.YG)))==null?void 0:z(),Y=function(){return G&&B().darkThemeImage?B().darkThemeImage:B().image},d=_.r4(function(){return u0u(B())},void 0,"UDqj0b");
return _.w("div",{class:"yt-video-attribute-view-model__hero-section"},_.w(_.HR,null,_.w(_.oJ,{when:Y},function(){return _.w(_.iF,{data:function(){return Y()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.w(_.oJ,{when:function(){return B().heroText}},function(){return _.w("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.w("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return B().heroText}))})),_.w(_.V,{cond:function(){return B().overflowMenuOnTap},
then:function(){return _.w("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.w(_.uu,{data:d,iconName:"MORE_VERT"}))}}))},"gb");
HP6.idomCompat=!0;var FYu=_.m(function(W){var B=W.data;W=W.sizeSmall;var z=function(){return B().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},G=_.r4(function(){return MH(_.UV({innertubeCommand:Kvx(B())}))?"link":Kvx(B())?"button":"group"},void 0,"e2MmYe"),Y={};
return _.w("div",{class:_.kG("yt-video-attribute-view-model__metadata",(Y["yt-video-attribute-view-model--small-font"]=W,Y)),role:G},_.w("h1",{class:"yt-video-attribute-view-model__title"},function(){return B().title}),_.w(_.V,{cond:function(){return B().subtitle},
then:function(){return _.w("h4",{class:"yt-video-attribute-view-model__subtitle"},_.w(_.V,{cond:z,then:function(){return _.w(hh6,{text:function(){return Xar(B().subtitle)},
truncationText:function(){return Xar(B().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.w("span",null,function(){return B().subtitle})}}))}}),_.w(_.V,{cond:function(){return B().secondarySubtitle},
then:function(d){return _.w("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.w(_.r0,{text:function(){var E=d();if(E!=null&&E.attachmentRuns){for(var v=[],c=_.A(E.attachmentRuns),J=c.next();!J.done;J=c.next())J=J.value,J.element&&v.push(Object.assign({},J,{element:Object.assign({},J.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));E=Object.assign({},E,{attachmentRuns:v})}return E}}))}}),_.w(_.Sc,
{data:function(){return B().buttonViewModel}},{buttonViewModel:function(d){return _.w(_.ex,{data:d.data,
className:"yt-video-attribute-view-model__button"})}}))},"hb");
FYu.idomCompat=!0;_.Vm(StD,"yt-video-attribute-view-model",{props:{data:_.kz,className:_.kz}});var mJ=function(){var W=_.S.apply(this,arguments)||this;W.useHighlightStyling=_.r("web_enable_deeper_metadata_highlight_styling");W.isSearch=!1;W.JSC$15157_lastScrollContainerWidth=NaN;W.pageLoadingFromNavigation=!1;W.currentIndex=0;W.supportComponentResize=!1;return W};
_.C(mJ,_.S);_.p=mJ.prototype;
_.p.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}}}}}};
_.p.attached=function(){document.addEventListener("yt-page-type-changed",_.Co(this,this.onPageChange))};
_.p.detached=function(){document.removeEventListener("yt-page-type-changed",_.Co(this,this.onPageChange))};
_.p.getItemsPath=function(){return"data.cards"};
_.p.onIronResize=function(){this.updateListStyles()};
_.p.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var W;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(W=this.data)==null?void 0:W.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.r("problem_walkthrough_sd")&&!!this.centerItems};
_.p.computeCardListStyle=function(W){return W||null};
_.p.computeEmpty=function(W){return!this.get("cards.length",W)};
_.p.computeThumbnailStyle=function(W){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",W)||null};
_.p.computeHasSubtitle=function(W){return!!this.get("header.richListHeaderRenderer.subtitle",W)};
_.p.computeInitialCountNumber=function(W){return this.hasSquareMiniApp&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.p.computeUseFloorScrolling=function(W){return W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.p.computeHasGameCard=function(W){return(W=this.get("cards",W))?W.some(function(B){return B.gameCardRenderer}):!1};
_.p.computeCenterHeaderTitle=function(W){return!(W==null||!W.centerHeaderTitle)};
_.p.computeHasPortraitMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(B){return B.miniGameCardViewModel&&B.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.p.computeHasSquareMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(B){return B.miniGameCardViewModel&&B.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.p.computeHasSkinnyWidthPortraitMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(B){return B.miniGameCardViewModel&&B.miniGameCardViewModel.width===135}):!1};
_.p.computeCenterItems=function(W){return!!W};
_.p.computeHasInfoPanel=function(W){var B;return W==null?void 0:(B=W.cards)==null?void 0:B.some(function(z){return z.infoPanelContentRenderer})};
_.p.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.p.getItemByIndex=function(W){var B=this.items.children;return B&&B.length>W?B[W]:void 0};
_.p.onPageChange=function(){var W=this;this.pageLoadingFromNavigation=!0;_.fg.addJob(function(){W.pageLoadingFromNavigation=!1;_.wV(W.hostElement,"yt-terminate-video-preview-action")},8)};
_.p.updateListStyles=function(){if(_.r("problem_walkthrough_sd")&&this.JSC$15157_scrollContainer!==void 0){var W=this.JSC$15157_scrollContainer.clientWidth;W!==this.JSC$15157_lastScrollContainerWidth&&(this.JSC$15157_lastScrollContainerWidth=W,_.kw(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(W*.8,415)+"px"}),_.v0(this.hostElement,"iron-resize"))}};
_.G5.Object.defineProperties(mJ.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.r("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return!!((W=this.data)==null?0:(B=W.cards)==null?0:(z=B[0])==null?0:z.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return!!((W=this.data)==null?0:(B=W.cards)==null?0:(z=B[0])==null?0:z.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return _.r("enable_desktop_amsterdam_info_panels")&&!!((W=this.data)==null?0:(B=W.cards)==null?0:(z=B[0])==null?0:z.infoPanelContentRenderer)}}});
mJ.prototype.dataChanged=mJ.prototype.dataChanged;mJ.prototype.onIronResize=mJ.prototype.onIronResize;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.jv.YtdHorizontalListBehavior),_.y("design:type",Object)],mJ.prototype,"ytdHorizontalListBehavior",void 0);
_.Q([_.h(_.c$),_.y("design:type",Object)],mJ.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],mJ.prototype,"data",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],mJ.prototype,"useCustomColors",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],mJ.prototype,"useHighlightStyling",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.y("design:type",Object)],mJ.prototype,"cardListStyle",void 0);_.Q([_.F({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.y("design:type",Boolean)],mJ.prototype,"empty",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.y("design:type",Boolean)],mJ.prototype,"hasSubtitle",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.y("design:type",Boolean)],mJ.prototype,"thumbnailStyle",void 0);_.Q([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.y("design:type",Boolean)],mJ.prototype,"hasGameCard",void 0);_.Q([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.y("design:type",Boolean)],mJ.prototype,"centerHeaderTitle",void 0);
_.Q([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.y("design:type",Boolean)],mJ.prototype,"hasPortraitMiniApp",void 0);_.Q([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.y("design:type",Boolean)],mJ.prototype,"hasSquareMiniApp",void 0);_.Q([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.y("design:type",Boolean)],mJ.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.Q([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.y("design:type",Boolean)],mJ.prototype,"hasInfoPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],mJ.prototype,"isSearch",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],mJ.prototype,"inlineStructuredDescription",void 0);_.Q([_.Hf("#scroll-container"),_.y("design:type",HTMLDivElement)],mJ.prototype,"JSC$15157_scrollContainer",void 0);
_.Q([_.F({computed:"computeInitialCountNumber(data.style.type)"}),_.y("design:type",Number)],mJ.prototype,"initialCount",void 0);_.Q([_.F({computed:"computeUseFloorScrolling(data.style.type)"}),_.y("design:type",Boolean)],mJ.prototype,"useFloorScrolling",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.y("design:type",Boolean)],mJ.prototype,"centerItems",void 0);_.Q([_.F(),_.y("design:type",Object)],mJ.prototype,"pageLoadingFromNavigation",void 0);
_.Q([_.F(),_.y("design:type",Object)],mJ.prototype,"currentIndex",void 0);_.Q([_.F(),_.y("design:type",Number)],mJ.prototype,"scrollCount",void 0);_.Q([_.F(),_.y("design:type",Object)],mJ.prototype,"supportComponentResize",void 0);_.Q([_.Hf("#items"),_.y("design:type",HTMLDivElement)],mJ.prototype,"items",void 0);_.Q([_.IN("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mJ.prototype,"onIronResize",null);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mJ.prototype,"dataChanged",null);_.Q([_.F({reflectToAttribute:!0}),_.H("inlineStructuredDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],mJ.prototype,"hideNavigationButton",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],mJ.prototype,"modernChapters",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],mJ.prototype,"hasVideoAttributeViewModels",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],mJ.prototype,"modernInfoPanels",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],mJ);
_.D(mJ,"ytd-horizontal-card-list-renderer",function(){if(CTF!==void 0)return CTF;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return CTF=W},{mode:_.PJ("kevlar_poly_si_batch_j072")?1:2});var bP4=_.m(function(W){var B=W.data;var z={};return _.w("video-summary-content-view-model",{class:_.kG("videoSummaryContentViewModelHost",W.className,(z.videoSummaryContentViewModelHostIsSearch=W.isSearch,z))},_.w(_.IJ,{each:function(){var G=[],Y=B().paragraphs;if(Y==null||!Y.length)return[];for(var d=0;d<Y.length;d++){var E=_.k(Y[d],KfD),v=void 0;d>0&&(v=_.k(Y[d-1],KfD));v&&!!v.marker===!!E.marker?G[G.length-1].paragraphs.push(E):G.push({isList:!!E.marker,paragraphs:[E]})}return G},
keyBy:"INDEX"},function(G){return _.w(_.V,{cond:function(){return G().isList},
then:function(){return _.w("ul",{class:"videoSummaryContentViewModelList"},_.w(_.IJ,{each:function(){return G().paragraphs},
keyBy:"INDEX"},function(Y){return _.w("li",{class:"videoSummaryContentViewModelListItem"},_.w(_.r0,{text:function(){return Y().text}}))}))},
else:function(){return _.w(_.IJ,{each:function(){return G().paragraphs},
keyBy:"INDEX"},function(Y){return _.w("p",{class:"videoSummaryContentViewModelParagraph"},_.w(_.r0,{text:function(){return Y().text}}))})}})}),_.w(_.V,{cond:function(){return!!_.k(B().likeButtonViewModel,_.Y3)&&!!_.k(B().dislikeButtonViewModel,_.G3)},
then:function(){return _.w("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.w("div",{class:"videoSummaryContentViewModelLikeButton"},_.w(_.En,{data:function(){return _.k(B().likeButtonViewModel,_.Y3)},
disableIconAnimation:!0})),_.w(_.iq,{data:function(){return _.k(B().dislikeButtonViewModel,_.G3)}}))}}))},"ib");
bP4.idomCompat=!0;_.Vm(bP4,"video-summary-content-view-model",{props:{data:_.kz,isSearch:_.kz,className:_.kz}});var xR=function(){var W=_.S.apply(this,arguments)||this;var B,z;W.isExpanded=(z=(B=W.data)==null?void 0:B.isExpanded)!=null?z:!1;W.disableExpand=!1;W.showProminentLabel=!1;W.showRightSideLabel=!0;W.toggleExpandableContent=function(G){W.disableExpand||(G.stopPropagation(),_.Ag(_.AH(G),W.hostElement,["info","expanded-subtitle"])||(W.isExpanded=!W.isExpanded,W.ytRendererBehavior.logExplicitClick(W.data),W.JSC$15168_cardList&&!_.r("expandable_metadata_a11y_fix_ks")&&_.BM(W,function(){_.Lg(W.hostElement)})))};
W.useSquareThumbnail=!1;W.contentHiddenWithDisplayNone=_.r("web_expandable_metadata_content_hidden_with_display_none");W.startX=0;return W};
_.C(xR,_.S);_.p=xR.prototype;_.p.computeUseSquareThumbnail=function(){var W;return(W=this.data)==null?void 0:W.useSquareThumbnail};
_.p.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"}}}}};
_.p.dataChanged=function(){if(this.data){var W,B;this.isExpanded=(B=(W=this.data)==null?void 0:W.isExpanded)!=null?B:!1;var z,G,Y,d;if(W=this.isDarkTheme()?(z=this.data)==null?void 0:(G=z.colorData)==null?void 0:G.darkColorPalette:(Y=this.data)==null?void 0:(d=Y.colorData)==null?void 0:d.lightColorPalette){var E,v;if((E=this.data)==null?0:(v=E.colorData)==null?0:v.vibrantColorPalette)W.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Ky(this.hostElement,W)}}};
_.p.isExpandedChanged=function(){this.isExpanded&&this.JSC$15168_cardList&&_.v0(this.JSC$15168_cardList,"iron-resize")};
_.p.computeIsExpanded=function(W){return!!W.isExpanded};
_.p.computeShowProminentLabel=function(W,B){var z;return!!(W==null?0:(z=W.header)==null?0:z.showLeadingCollapsedLabel)&&!B};
_.p.computeShowRightSideLabel=function(W,B){var z;return!(W==null?0:(z=W.header)==null?0:z.showLeadingCollapsedLabel)&&!B};
_.p.captureContentClick=function(W){if(!this.disableExpand)if(_.r("expandable_metadata_fix_killswitch")){var B=W.target;_.Sb9(B,"ytd-macro-markers-list-item-renderer")||W.stopPropagation();(B==null?void 0:B.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Ag(_.AH(W),this.hostElement,["items"])||_.p2(_.AH(W),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.p.timestampClick=function(W){W.stopPropagation();var B,z;(W=(B=this.data)==null?void 0:(z=B.header)==null?void 0:z.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(W)};
_.p.onDown=function(W){W.stopPropagation();this.startX=W.detail?W.detail.x:0};
_.p.onUp=function(W){this.skipKeyInteraction(W)&&W.stopPropagation()};
_.p.skipKeyInteraction=function(W){var B=W.target;if((B==null?void 0:B.id)==="scroll-container"||(B==null?void 0:B.id)==="items"||W.detail&&W.detail.x!==this.startX)return!0;W=_.AH(W);W=_.A(W);for(B=W.next();!B.done;B=W.next()){B=B.value;if(B===this.hostElement)break;if(B.hasAttribute&&B.hasAttribute("skip-key-interaction"))return!0}return!1};
_.p.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.G5.Object.defineProperties(xR.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.k((W=this.data)==null?void 0:W.expandedContent,XdM)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.k((W=this.data)==null?void 0:W.expandedContent,_.X74)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var W,B;return!((W=this.data)==null||!W.useCustomColors)&&!((B=this.data)==null||!B.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var W,B;return!!((W=this.data)==null?0:(B=W.header)==null?0:B.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var W,B;return!!((W=this.data)==null?0:(B=W.header)==null?0:B.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,B;return!!((W=this.data)==null?0:(B=W.header)==null?0:B.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.r("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
xR.prototype.onUp=xR.prototype.onUp;xR.prototype.onDown=xR.prototype.onDown;xR.prototype.isExpandedChanged=xR.prototype.isExpandedChanged;xR.prototype.dataChanged=xR.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],xR.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],xR.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],xR.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],xR.prototype,"isExpanded",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],xR.prototype,"disableExpand",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],xR.prototype,"isSearch",void 0);
_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],xR.prototype,"isWatch",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.y("design:type",Object)],xR.prototype,"showProminentLabel",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.y("design:type",Object)],xR.prototype,"showRightSideLabel",void 0);
_.Q([_.F({value:!1,reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xR.prototype,"hasVideoSummary",null);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xR.prototype,"hasLockupViewModel",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data","isWatch"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xR.prototype,"useCustomColors",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xR.prototype,"showInfoButton",null);_.Q([_.H("data","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xR.prototype,"showTimestamp",null);_.Q([_.H("data","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xR.prototype,"showExpandedSubtitle",null);
_.Q([_.H("data","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xR.prototype,"showThumbnail",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],xR.prototype,"useVppShoppingDestinationStyle",null);_.Q([_.F(),_.y("design:type",Object)],xR.prototype,"toggleExpandableContent",void 0);_.Q([_.Hf("ytd-horizontal-card-list-renderer"),_.y("design:type",Object)],xR.prototype,"JSC$15168_cardList",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.y("design:type",Object)],xR.prototype,"useSquareThumbnail",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],xR.prototype,"contentHiddenWithDisplayNone",void 0);_.Q([_.H("isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xR.prototype,"contentHidden",null);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xR.prototype,"dataChanged",null);_.Q([_.oN("isExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xR.prototype,"isExpandedChanged",null);_.Q([_.IN("down"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],xR.prototype,"onDown",null);
_.Q([_.IN("up"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],xR.prototype,"onUp",null);_.Q([_.u({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],xR);
_.D(xR,"ytd-expandable-metadata-renderer",function(){if(jtT!==void 0)return jtT;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" 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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return jtT=W},{mode:1});var joM,fzu=function(){if(joM!==void 0)return joM;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return joM=W};_.Vm(_.Ae,"yt-avatar-stack-view-model",{props:{className:_.kz,data:_.kz,overrides:_.kz,isOverlay:_.kz,useMediumText:_.kz,decorations:_.kz,hideAvatar:_.kz}});_.eX("itemSectionRenderer","videoRenderer","ytd-video-renderer");var DS=function(){var W=_.S.apply(this,arguments)||this;W.disableExpand=!1;W.shouldShowChannelInfo=!1;W.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return W};
_.C(DS,_.S);_.p=DS.prototype;_.p.computeUseSearchUi=function(){var W,B;return this.isSearch||((W=this.data)==null?void 0:(B=W.style)==null?void 0:B.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.p.computeUseThreeLineTitle=function(){var W;return((W=this.data)==null?void 0:W.maxTitleLines)===3};
_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.r("polymer_video_renderer_defer_menu")&&!lTd?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"}}}};
_.p.attached=function(){_.Pf(this.hostElement,"blue-links",_.r("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Z8(_.tH(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var W=this.get("data.buttons.buttonRenderer.serviceEndpoint"),B;W&&((B=_.k(W.commandMetadata,_.$N))==null?0:B.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(W);this.updateInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15173_inlinePreviewHoverListener=q$({mediaRenderer:this,lockupElement:this.JSC$15173_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.p.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$15173_inlinePreviewHoverListener)==null||zH(W)};
_.p.onTextWrapperClick=function(W){var B,z,G=this.hideTranslation?(B=this.data)==null?void 0:B.untranslatedNavigationEndpoint:(z=this.data)==null?void 0:z.navigationEndpoint;B=_.Ag(_.AH(W),this.hostElement,["expandable-metadata"]);!G||B&&!_.r("expandable_metadata_fix_killswitch")||_.p2(_.AH(W),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.v0(this.hostElement,"yt-navigate",{endpoint:G})};
_.p.computeThumbnailWidth=function(W,B,z,G,Y){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:G?Y==="MASSIVE"?600:Y==="BIG"?500:Y==="MEDIUM"?450:420:z?360:B?128:W?210:246};
_.p.computeUseBiggerThumbs=function(W){return W&&_.r("enable_desktop_search_bigger_thumbs")};
_.p.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.p.computeVideoStyle=function(){if(_.r("enable_video_style")){var W,B;return(W=this.data)==null?void 0:(B=W.style)==null?void 0:B.value}};
_.p.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.p.handleHideItemSectionVideosByIdCommand=function(W){var B;W=(B=_.k(W,Y4u))==null?void 0:B.videoId;this.data&&this.data.videoId===W&&(this.isHidden=!0)};
_.p.getMetadataSnippetContainerClass=function(W){return W?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.p.computeTitleText=function(W,B,z){return W?z:B};
_.p.computeDescriptionSnippet=function(W,B,z){return W?z:B};
_.p.computeSnippetText=function(W,B,z){return W?z:B};
_.p.computeNavigationEndpoint=function(W,B){return W?B==null?void 0:B.untranslatedNavigationEndpoint:B==null?void 0:B.navigationEndpoint};
_.p.hideInlineTitleIcon=function(W,B){return W||!B};
_.G5.Object.defineProperties(DS.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 W;return(W=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?W:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return!!(this==null?0:(W=this.data)==null?0:(B=W.channelThumbnailSupportedRenderers)==null?0:(z=B.channelThumbnailWithLinkRenderer)==null?0:z.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.k((W=this.data)==null?void 0:W.avatar,Km9)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$15173_inlinePreviewHoverListener)==null?0:TX(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.G5.Object.defineProperties(DS,{template:{configurable:!0,enumerable:!0,get:function(){return fzu()}}});
DS.prototype.dataChanged=DS.prototype.dataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],DS.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],DS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],DS.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.h(_.P$),_.y("design:type",Object)],DS.prototype,"ytdLockupBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],DS.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],DS.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],DS.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],DS.prototype,"isBackstageVideo",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],DS.prototype,"isPostCompactVideo",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],DS.prototype,"isHistory",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],DS.prototype,"isRichGridVideoPost",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],DS.prototype,"isHidden",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],DS.prototype,"isSearch",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.y("design:type",Boolean)],DS.prototype,"useSearchUi",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.y("design:type",Boolean)],DS.prototype,"useThreeLineTitle",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.y("design:type",Boolean)],DS.prototype,"useBiggerThumbs",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.y("design:type",Object)],DS.prototype,"videoStyle",void 0);_.Q([_.F({computed:"computeDisableExpand(videoStyle)"}),_.y("design:type",Object)],DS.prototype,"disableExpand",void 0);
_.Q([_.F({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.y("design:type",Object)],DS.prototype,"shouldShowChannelInfo",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.EA("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],DS.prototype,"biggerThumbsStyle",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.y("design:type",String)],DS.prototype,"inlineTitleIcon",void 0);_.Q([_.F({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.y("design:type",Object)],DS.prototype,"computedNavigationEndpoint",void 0);_.Q([_.F({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(W,B){return _.P3(W.entities,"searchVideoResultEntity",B)}}),
_.y("design:type",Object)],DS.prototype,"searchVideoResultEntity",void 0);_.Q([_.Hf("ytd-thumbnail"),_.y("design:type",HTMLElement)],DS.prototype,"thumbnail",void 0);_.Q([_.Hf("#dismissible"),_.y("design:type",HTMLElement)],DS.prototype,"JSC$15173_dismissibleMedia",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DS.prototype,"dataChanged",null);
_.Q([_.H("searchVideoResultEntity"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],DS.prototype,"hideTranslation",null);_.Q([_.H("searchVideoResultEntity"),_.y("design:type",Array),_.y("design:paramtypes",[])],DS.prototype,"hiddenBadgeGroups",null);_.Q([_.H("data","useAvatar"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],DS.prototype,"shouldShowChannelThumbnail",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],DS.prototype,"useAvatar",null);
_.Q([_.H("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],DS.prototype,"isHovered",null);_.Q([_.u({is:"ytd-video-renderer",disableElementRegistration:!0})],DS);_.D(DS,"ytd-video-renderer",function(){return fzu()},{mode:_.PJ("kevlar_poly_si_batch_j047")?1:2});var Qv=function(){var W=_.S.apply(this,arguments)||this;W.editDialog=null;W.roundedContainer=!0;W.isLoading=!1;W.isRichGrid=!1;W.isRichGridRepost=!1;W.reduceSidePaddings=_.r("reduce_side_paddings_in_shelf");W.JSC$15180_spinnerEl=null;return W};
_.C(Qv,_.S);_.p=Qv.prototype;
_.p.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"}}}};
_.p.contentTextChanged=function(){this.expander.reset()};
_.p.dataChanged=function(){var W=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var B=0,z=this.data.actions&&this.data.actions.length;B<z;B++)this.openEditDialog(_.k(this.data.actions[B],NL7));if((B=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(B=this.get("buttonRenderer.hint.hintRenderer.hintId",B))&&B.startsWith("share-post-hint")){var G=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(G){_.j8.getInstance();var Y=fI(_.Bg(_.kq("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.fg.addLowPriorityJob(function(){_.Jr(W.hostElement,Y,G)})}}}};
_.p.updatePoll=function(W){W>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.p.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15180_spinnerEl||(this.JSC$15180_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.tH(this.hostElement).appendChild(this.JSC$15180_spinnerEl));this.JSC$15180_spinnerEl&&(this.JSC$15180_spinnerEl.active=this.isLoading)};
_.p.onYtNavigate=function(W){var B=this.get("updateCommentDialogEndpoint",W.detail.endpoint);B&&(this.openEditDialog(B),W.stopPropagation())};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null};
_.p.onYtCommentPollRevert=function(W,B){B&&this.updatePoll(B.selectedChoiceIndex)};
_.p.onYtServiceRequestSent=function(W,B){var z;B.endpoint&&(_.k(B.endpoint,NPM)||_.k(B.endpoint,n3M)&&((z=_.k(B.endpoint,n3M))==null||!z.clientActions))&&(this.isLoading=!0);if(B.actions)for(W=0;W<B.actions.length;W++)z=B.actions[W],_.k(z,n6)&&(z=this.get("updateBackstagePollAction.selectedChoiceIndex",z),z==void 0&&(z=-1),this.updatePoll(z))};
_.p.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.p.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.editDialogEl.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.p.computeIsPostHidden=function(W,B){return!!W||B};
_.p.computeSurfaceType=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.p.computeUsesCompactLockup=function(W){return W==="BACKSTAGE_SURFACE_TYPE_HOME"||W==="BACKSTAGE_SURFACE_TYPE_SEARCH"||W==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||W==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||W==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||W==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.p.computeShowWithoutToolbar=function(W){return!W.actionButtons&&!W.actionMenu};
_.p.computePostAttachment=function(W){if(W.backstageAttachment){if(_.k(W.backstageAttachment,I6Q))return"poll";if(_.k(W.backstageAttachment,E37))return"quiz";if(_.k(W.backstageAttachment,_.vO))return"video";if(_.k(W.backstageAttachment,TPR))return"uploaded-videos";if(_.k(W.backstageAttachment,t1R))return W.contentText?"image":"image-only";if(_.k(W.backstageAttachment,dG7))return"playlist"}return"none"};
_.p.computePostTabIndex=function(W){return W?0:-1};
_.p.computeButtonTooltipPosition=function(W){return this.computeUsesCompactLockup(W)?"top":"bottom"};
_.p.computeHasText=function(W){return!(W==null||!W.contentText)};
_.p.onTap=function(W){var B,z;if(((B=this.data)==null?0:B.navigationEndpoint)&&((z=this.data)==null?void 0:z.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var G;((G=this.data)==null?0:G.navigationEndpoint)&&!_.p2(_.AH(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.G5.Object.defineProperties(Qv.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.Bg("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,I6Q))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,TPR))}}});
Qv.prototype.onYtServiceRequestCompleted=Qv.prototype.onYtServiceRequestCompleted;Qv.prototype.onYtServiceRequestSent=Qv.prototype.onYtServiceRequestSent;Qv.prototype.onYtCommentPollRevert=Qv.prototype.onYtCommentPollRevert;Qv.prototype.onYtCommentboxDismiss=Qv.prototype.onYtCommentboxDismiss;Qv.prototype.onYtNavigate=Qv.prototype.onYtNavigate;Qv.prototype.isLoadingChanged=Qv.prototype.isLoadingChanged;Qv.prototype.dataChanged=Qv.prototype.dataChanged;Qv.prototype.contentTextChanged=Qv.prototype.contentTextChanged;
_.Q([_.h(_.c$),_.y("design:type",Object)],Qv.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Qv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Qv.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Qv.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],Qv.prototype,"editDialog",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Qv.prototype,"roundedContainer",void 0);_.Q([_.F(),_.y("design:type",Object)],Qv.prototype,"isLoading",void 0);_.Q([_.F({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.y("design:type",String)],Qv.prototype,"surface",void 0);
_.Q([_.F({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Qv.prototype,"usesCompactLockup",void 0);_.Q([_.F({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Qv.prototype,"showWithoutToolbar",void 0);_.Q([_.F({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.y("design:type",String)],Qv.prototype,"attachment",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Qv.prototype,"isRichGrid",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Qv.prototype,"isRichGridRepost",void 0);_.Q([_.F({reflectToAttribute:!0,value:_.r("use_better_post_dismissals")}),_.y("design:type",Boolean)],Qv.prototype,"useBetterPostDismissals",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Qv.prototype,"reduceSidePaddings",void 0);
_.Q([_.F({computed:"computeHasText(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Qv.prototype,"hasText",void 0);_.Q([_.Hf("#expander"),_.y("design:type",Object)],Qv.prototype,"expander",void 0);_.Q([_.Hf("#action-buttons"),_.y("design:type",Object)],Qv.prototype,"actionButtons",void 0);_.Q([_.Hf("#edit-dialog"),_.y("design:type",HTMLElement)],Qv.prototype,"editDialogEl",void 0);
_.Q([_.oN("data.contentText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Qv.prototype,"contentTextChanged",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Qv.prototype,"dataChanged",null);_.Q([_.oN("isLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Qv.prototype,"isLoadingChanged",null);
_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Qv.prototype,"onYtNavigate",null);_.Q([_.IN("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Qv.prototype,"onYtCommentboxDismiss",null);_.Q([_.IN("yt-comment-poll-revert"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Qv.prototype,"onYtCommentPollRevert",null);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],Qv.prototype,"onYtServiceRequestSent",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],Qv.prototype,"onYtServiceRequestCompleted",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Qv.prototype,"voteCount",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Qv.prototype,"commentCount",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Qv.prototype,"hasPoll",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Qv.prototype,"hasUploadedVideo",null);_.Q([_.u({is:"ytd-post-renderer",disableElementRegistration:!0})],Qv);
_.D(Qv,"ytd-post-renderer",function(){if(WKF!==void 0)return WKF;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return WKF=W},{mode:1});var OPM;var XiM;var yv=function(){return _.S.apply(this,arguments)||this};
_.C(yv,_.S);yv.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.jv.YtdHorizontalListBehavior),_.y("design:type",Object)],yv.prototype,"ytdHorizontalListBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],yv.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],yv.prototype,"data",void 0);
_.Q([_.F({value:"$.items.children"}),_.y("design:type",String)],yv.prototype,"itemsPath",void 0);_.Q([_.F({value:1}),_.y("design:type",Number)],yv.prototype,"initialCount",void 0);_.Q([_.F(),_.y("design:type",String)],yv.prototype,"surface",void 0);_.Q([_.u({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],yv);
_.D(yv,"ytd-post-multi-image-renderer",function(){if(XiM!==void 0)return XiM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return XiM=W},{mode:_.PJ("kevlar_poly_si_batch_j079")?1:2});var KYR={"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"}}},q2=function(){var W=_.S.apply(this,arguments)||this;W.hasInlineCommentSection=!1;W.editDialog=null;W.isLoading=!1;W.shouldHideAuthor=!1;W.shouldShowVideoTime=!1;
W.isInEngagementPanel=!1;W.hideBorder=!1;W.usesFullLockup=!1;W.shouldShowMenuInCompactView=!1;W.JSC$15196_spinnerEl=null;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.C(q2,_.S);_.p=q2.prototype;_.p.configureRendererStamper=function(){return KYR};
_.p.computeIsPollHeaderEnabled=function(W){return(W==null?void 0:W.pollMetadataIcon)!=null};
_.p.getPublishTimeStampString=function(W,B){B=new Date((Number(B)-60*((new Date).getTimezoneOffset()-(new Date(Number(B)*1E3)).getTimezoneOffset()))*1E3);B=(new Wg(10)).format(B);if(W&&W.runs&&W.runs.length)for(var z=0;z<W.runs.length;z++)W.runs[z].text&&(W.runs[z].text=W.runs[z].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",B));return W};
_.p.created=function(){this.JSC$15196_spinnerEl=null};
_.p.contentTextChanged=function(){this.expander.reset()};
_.p.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var W;if((W=this.data)==null?0:W.actions){W=_.A(this.data.actions);for(var B=W.next();!B.done;B=W.next())this.openEditDialog(_.k(B.value,NL7))}};
_.p.handleSignalActionOpenPostCommentDialogAction=function(){_.tH(this.hostElement).querySelector("#action-buttons").reply()};
_.p.updatePoll=function(W,B){B&&this.set("data.pollMetadataVoteCountText",B);this.hasInlineCommentSection&&(W=W>=0,B=_.tH(this.hostElement).querySelector("#action-buttons"),W?B.reply():B.hideReplyDialog())};
_.p.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15196_spinnerEl||(this.JSC$15196_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.tH(this.hostElement).appendChild(this.JSC$15196_spinnerEl));this.JSC$15196_spinnerEl&&(this.JSC$15196_spinnerEl.active=this.isLoading)};
_.p.onYtNavigate=function(W){var B=this.get("updateCommentDialogEndpoint",W.detail.endpoint);B&&(this.openEditDialog(B),W.stopPropagation())};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null};
_.p.onYtCommentPollRevert=function(W,B){B&&this.updatePoll(B.selectedChoiceIndex,B.totalVotes)};
_.p.onYtServiceRequestSent=function(W,B){W.stopPropagation();W=_.k(B.endpoint,n3M);if(_.k(B.endpoint,NPM)||W&&!W.clientActions)this.isLoading=!0;if(B.actions)for(W=0;W<B.actions.length;W++){var z=B.actions[W],G=_.k(z,n6);G&&(z=this.get("updateBackstagePollAction.selectedChoiceIndex",z),z===void 0&&(z=-1),this.updatePoll(z,G.totalVotes))}};
_.p.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.p.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.editDialogElement.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.p.computeIsBodyHidden=function(W,B){return!!W||B};
_.G5.Object.defineProperties(q2.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var W,B;if((W=this.data)==null?0:(B=W.pollMetadataIcon)==null?0:B.iconType)return _.lg(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.Bg("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,I6Q))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,E37))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,TPR))}}});
q2.prototype.onYtServiceRequestCompleted=q2.prototype.onYtServiceRequestCompleted;q2.prototype.onYtServiceRequestSent=q2.prototype.onYtServiceRequestSent;q2.prototype.onYtCommentPollRevert=q2.prototype.onYtCommentPollRevert;q2.prototype.onYtCommentboxDismiss=q2.prototype.onYtCommentboxDismiss;q2.prototype.onYtNavigate=q2.prototype.onYtNavigate;q2.prototype.isLoadingChanged=q2.prototype.isLoadingChanged;q2.prototype.dataChanged=q2.prototype.dataChanged;q2.prototype.contentTextChanged=q2.prototype.contentTextChanged;
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],q2.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],q2.prototype,"rendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],q2.prototype,"rendererstamperBehavior",void 0);_.Q([_.Hf("#contentTextExpander"),_.y("design:type",Object)],q2.prototype,"expander",void 0);
_.Q([_.Hf("#edit-dialog"),_.y("design:type",Element)],q2.prototype,"editDialogElement",void 0);_.Q([_.F(),_.y("design:type",Object)],q2.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],q2.prototype,"hasInlineCommentSection",void 0);_.Q([_.F(),_.y("design:type",Object)],q2.prototype,"editDialog",void 0);_.Q([_.F(),_.y("design:type",Object)],q2.prototype,"isLoading",void 0);
_.Q([_.F({computed:"computeIsPollHeaderEnabled(data)"}),_.y("design:type",Boolean)],q2.prototype,"isPollHeaderEnabled",void 0);_.Q([_.F(),_.y("design:type",Object)],q2.prototype,"shouldHideAuthor",void 0);_.Q([_.F(),_.y("design:type",Object)],q2.prototype,"shouldShowVideoTime",void 0);_.Q([_.F(),_.y("design:type",Object)],q2.prototype,"isInEngagementPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],q2.prototype,"hideBorder",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],q2.prototype,"usesFullLockup",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],q2.prototype,"shouldShowMenuInCompactView",void 0);_.Q([_.H("isInEngagementPanel"),_.y("design:type",Number),_.y("design:paramtypes",[])],q2.prototype,"postTextMaxLines",null);_.Q([_.H("data.icon.iconType"),_.y("design:type",Object),_.y("design:paramtypes",[])],q2.prototype,"pollIcon",null);
_.Q([_.oN("data.contentText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],q2.prototype,"contentTextChanged",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],q2.prototype,"dataChanged",null);_.Q([_.oN("isLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],q2.prototype,"isLoadingChanged",null);
_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],q2.prototype,"onYtNavigate",null);_.Q([_.IN("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],q2.prototype,"onYtCommentboxDismiss",null);_.Q([_.IN("yt-comment-poll-revert"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],q2.prototype,"onYtCommentPollRevert",null);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],q2.prototype,"onYtServiceRequestSent",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],q2.prototype,"onYtServiceRequestCompleted",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],q2.prototype,"voteCount",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],q2.prototype,"commentCount",null);_.Q([_.H("data.backstageAttachment"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],q2.prototype,"hasPoll",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],q2.prototype,"hasQuiz",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],q2.prototype,"hasUploadedVideo",null);
_.Q([_.u({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],q2);
_.D(q2,"ytd-backstage-post-renderer",function(){if(OPM!==void 0)return OPM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return OPM=W},{mode:1});var uvD;var nY=function(){var W=_.S.apply(this,arguments)||this;W.editDialog=null;W.showExpandButton=!1;W.isRichGrid=!1;W.usesFullLockup=!1;return W};
_.C(nY,_.S);_.p=nY.prototype;_.p.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"}}}};
_.p.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.p.computeShowExpandButton=function(W){return this.usesCompactLockup||W&&W.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.p.computeUsesCompactLockup=function(W){return!!W.condensedContent};
_.p.computeShowFullContentText=function(W){return!W};
_.p.onYtNavigate=function(W){W=this.get("updateCommentDialogEndpoint",W.detail.endpoint);this.openEditDialog(W)};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null};
_.p.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.repostEditDialogEl.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.p.onTap=function(W){if(this.data){var B=null;this.usesCompactLockup&&!_.p2(_.AH(W)||[],this.hostElement,["YT-IMG-SHADOW"])?B=this.get("navigationEndpoint",this.data):W.target===this.moreButtonEl&&(B=this.get("navigationEndpoint",W.target.data));B&&_.v0(this.hostElement,"yt-navigate",{endpoint:B})}};
nY.prototype.onYtCommentboxDismiss=nY.prototype.onYtCommentboxDismiss;nY.prototype.onYtNavigate=nY.prototype.onYtNavigate;nY.prototype.dataChanged=nY.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],nY.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],nY.prototype,"editDialog",void 0);_.Q([_.F({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],nY.prototype,"usesCompactLockup",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],nY.prototype,"showExpandButton",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],nY.prototype,"isRichGrid",void 0);
_.Q([_.F({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.y("design:type",Boolean)],nY.prototype,"showFullContentText",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],nY.prototype,"usesFullLockup",void 0);_.Q([_.Hf("#more"),_.y("design:type",Object)],nY.prototype,"moreButtonEl",void 0);_.Q([_.Hf("#repost-content-text"),_.y("design:type",HTMLElement)],nY.prototype,"repostContentTextEl",void 0);
_.Q([_.Hf("#repost-edit-dialog"),_.y("design:type",HTMLElement)],nY.prototype,"repostEditDialogEl",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nY.prototype,"dataChanged",null);_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nY.prototype,"onYtNavigate",null);
_.Q([_.IN("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nY.prototype,"onYtCommentboxDismiss",null);_.Q([_.u({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],nY);
_.D(nY,"ytd-shared-post-renderer",function(){if(uvD!==void 0)return uvD;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return uvD=W},{mode:1});var ehT;var mcU;var N2=function(){return _.S.apply(this,arguments)||this};
_.C(N2,_.S);N2.prototype.attached=function(){var W=this;this.networkStatusManager||(this.networkStatusManager=new _.ng,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){W.onlineHandler()}))};
N2.prototype.detached=function(){var W=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){W.onlineHandler()}),delete this.networkStatusManager)};
N2.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],N2.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],N2.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],N2);
_.D(N2,"ytd-reload-page-button-renderer",function(){if(mcU!==void 0)return mcU;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return mcU=W},{mode:1});var xc6={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"},$R=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.C($R,_.S);_.p=$R.prototype;_.p.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.p.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.p.computeHasBodyText=function(W){return!!W.bodyText};
_.p.computeButtons=function(W){var B=[];W.ctaButton&&B.push(W.ctaButton);W.secondaryButton&&B.push(W.secondaryButton);return B};
_.p.computeRendererStyle=function(W){return W.style?W.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():W.icon?"":"no-icon"};
_.p.getIconName=function(W,B){B=B===void 0?!1:B;if(W===void 0)return"";W=this.get("icon.iconType",W);var z;_.r("enable_hlp_client_icon_pick")?z=this.getThemedIcon(W,B):z=W;(B=xc6[z])||(B="yt-icons");return[B,z].join(":")};
_.p.getThemedIcon=function(W,B){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(W)?B?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(W)?B?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":W};
_.p.isThumbnail=function(W){return!!W.thumbnail};
_.p.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.p.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],$R.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$R.prototype,"data",void 0);
_.Q([_.F({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.y("design:type",String)],$R.prototype,"rendererStyle",void 0);_.Q([_.F({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.y("design:type",String)],$R.prototype,"iconName",void 0);_.Q([_.F({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],$R.prototype,"thumbnail",void 0);_.Q([_.F({computed:"computeButtons(data)"}),_.y("design:type",Array)],$R.prototype,"buttons",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],$R.prototype,"isDarkTheme",void 0);_.Q([_.F({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],$R.prototype,"hasBodyText",void 0);_.Q([_.u({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],$R);
_.D($R,"ytd-background-promo-renderer",function(){if(ehT!==void 0)return ehT;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ehT=W},{mode:1});var Dc9;var LY=function(){var W=_.S.apply(this,arguments)||this;W.collections=_.r("web_modern_collections_v2");return W};
_.C(LY,_.S);_.G5.Object.defineProperties(LY.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G,Y,d;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(B=W.thumbnail)==null?void 0:B.sampledThumbnailColor,vibrantColorPalette:(z=this.data)==null?void 0:(G=z.thumbnail)==null?void 0:G.vibrantColorPalette,darkColorPalette:(Y=this.data)==null?void 0:(d=Y.thumbnail)==null?void 0:d.darkColorPalette,experimentEnabled:this.collections}}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],LY.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],LY.prototype,"collections",void 0);_.Q([_.H("data","collections"),_.y("design:type",Object),_.y("design:paramtypes",[])],LY.prototype,"collectionStack",null);_.Q([_.u({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],LY);
_.D(LY,"ytd-compact-station-renderer",function(){if(Dc9!==void 0)return Dc9;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Dc9=W},{mode:1});var QoD;var Ui=function(){var W=_.S.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.C(Ui,_.S);Ui.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]]"}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ui.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ui.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ui.prototype,"isRichGrid",void 0);_.Q([_.u({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Ui);
_.D(Ui,"ytd-grid-channel-renderer",function(){if(QoD!==void 0)return QoD;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return QoD=W},{mode:1});var y$d;var M2=function(){return _.S.apply(this,arguments)||this};
_.C(M2,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],M2.prototype,"data",void 0);_.Q([_.u({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],M2);
_.D(M2,"ytd-grid-movie-playlist-renderer",function(){if(y$d!==void 0)return y$d;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return y$d=W},{mode:1});var qt6;var aW=function(){var W=_.S.apply(this,arguments)||this;W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.modernButtons=_.r("web_modern_buttons");W.useModernCollectionsV2=_.r("web_modern_collections_v2");return W};
_.C(aW,_.S);aW.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
aW.prototype.configureRendererStamper=function(){return{"data.menu":qV}};
aW.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
aW.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.r("woffle_playlist_renderer_killswitch")){var W,B=iLx(this.entityInfo,this.transferState,this.downloadProgress,(W=this.data)==null?void 0:W.playlistId,this.isOnline);W=B.viewPlaylistText;var z=B.badges;B=B.thumbnailOverlays;this.isDownloads=!!W||!!z;this.set("data.viewPlaylistText",W);z&&z.length>0&&this.set("data.badges",z);B&&B.length>0&&this.set("data.thumbnailOverlays",
B)}};
_.G5.Object.defineProperties(aW.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 W;return!((W=this.data)==null?0:W.menu)}}});
aW.prototype.transferStateChanged=aW.prototype.transferStateChanged;aW.prototype.dataChanged=aW.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],aW.prototype,"ytdLockupBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],aW.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F({selector:_.sqQ,selectorArgs:["data.playlistId"]}),_.y("design:type",Object)],aW.prototype,"downloadProgress",void 0);_.Q([_.F({selector:_.qM,selectorArgs:["data.playlistId"]}),_.y("design:type",Object)],aW.prototype,"transferState",void 0);_.Q([_.F({selector:t82,selectorArgs:["data.playlistId"]}),_.y("design:type",Object)],aW.prototype,"entityInfo",void 0);_.Q([_.F({selector:_.Qg}),_.y("design:type",Boolean)],aW.prototype,"isOnline",void 0);
_.Q([_.F(),_.y("design:type",Object)],aW.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],aW.prototype,"downloadRenderData",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],aW.prototype,"modernButtons",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],aW.prototype,"isDownloads",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],aW.prototype,"useModernCollectionsV2",void 0);
_.Q([_.H("transferState"),_.F({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],aW.prototype,"downloadState",null);_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],aW.prototype,"menuHidden",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aW.prototype,"dataChanged",null);
_.Q([_.jJ("transferState","downloadProgress","isOnline"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aW.prototype,"transferStateChanged",null);_.Q([_.u({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],aW);
_.D(aW,"ytd-grid-playlist-renderer",function(){if(qt6!==void 0)return qt6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return qt6=W},{mode:1});var n5d;var RW=function(){var W=_.S.apply(this,arguments)||this;W.collections=_.r("web_modern_collections_v2");return W};
_.C(RW,_.S);RW.prototype.configureRendererStamper=function(){return{"data.menu":qV,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.G5.Object.defineProperties(RW.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G,Y,d;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(B=W.thumbnail)==null?void 0:B.sampledThumbnailColor,vibrantColorPalette:(z=this.data)==null?void 0:(G=z.thumbnail)==null?void 0:G.vibrantColorPalette,darkColorPalette:(Y=this.data)==null?void 0:(d=Y.thumbnail)==null?void 0:d.darkColorPalette,experimentEnabled:this.collections}}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],RW.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],RW.prototype,"ytdLockupBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],RW.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],RW.prototype,"collections",void 0);_.Q([_.H("data","collections"),_.y("design:type",Object),_.y("design:paramtypes",[])],RW.prototype,"collectionStack",null);_.Q([_.u({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],RW);
_.D(RW,"ytd-grid-radio-renderer",function(){if(n5d!==void 0)return n5d;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return n5d=W},{mode:1});var NAM;var Wl=function(){var W=_.S.apply(this,arguments)||this;W.useModernCollectionsV2=_.r("web_modern_collections_v2");return W};
_.C(Wl,_.S);Wl.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Wl.prototype.computeNavigationEndpoint=function(W){return vNu(W==null?void 0:W.navigationEndpoint)};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Wl.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],Wl.prototype,"ytdLockupBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Wl.prototype,"data",void 0);_.Q([_.F({computed:"computeNavigationEndpoint(data)"}),_.y("design:type",Object)],Wl.prototype,"computedNavigationEndpoint",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Wl.prototype,"useModernCollectionsV2",void 0);_.Q([_.u({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Wl);
_.D(Wl,"ytd-grid-show-renderer",function(){if(NAM!==void 0)return NAM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return NAM=W},{mode:1});var $cR;_.Bl=function(W){this.playerClient=W};
_.LYM=function(W,B,z){z=z===void 0?{}:z;return W.playerClient.setOption("ad",B,z)};
_.Bl.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Bl.prototype.executeCommand=function(W,B){this.getOptions().includes("executeCommand")?_.LYM(this,"executeCommand",{command:W,layoutId:B}):_.Rn("Calling executeCommand when adModule is not loaded")};var zJ=function(){return _.S.apply(this,arguments)||this};
_.C(zJ,_.S);zJ.prototype.getLayoutId=function(){var W=_.q6("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
zJ.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var W=_.TN(),B=this.getLayoutId(),z=this.data.clickthroughEndpoint;W&&B&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(G){(new _.Bl(G)).executeCommand(z,B)}):_.v0(this.hostElement,"yt-navigate",{endpoint:z})}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],zJ.prototype,"data",void 0);_.Q([_.u({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],zJ);
_.D(zJ,"ytd-shopping-companion-item-renderer",function(){if($cR!==void 0)return $cR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $cR=W},{mode:1});var UcM;var GJ=function(){var W=_.S.apply(this,arguments)||this;W.isExpandableContent=!1;return W};
_.C(GJ,_.S);_.G5.Object.defineProperties(GJ.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return((W=this.data)==null?void 0:W.price)||((B=this.data)==null?void 0:(z=B.dealsData)==null?void 0:z.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var W,B;if((W=this.data)!=null&&W.dealsData&&((B=this.data)==null||!B.priceReplacementText)){W=this.data.dealsData;var z,G,Y;return((z=W.salesData)==null?void 0:z.originalPrice)||((G=W.priceDropData)==null?void 0:G.referencePrice)||((Y=W.promotionData)==null?void 0:Y.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var W,B;return(W=this.data)==null?void 0:(B=W.dealsData)==null?void 0:B.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],GJ.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],GJ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],GJ.prototype,"isExpandableContent",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GJ.prototype,"showCta",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GJ.prototype,"ctaText",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GJ.prototype,"hasPriceTopPosition",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GJ.prototype,"hasPriceBottomPosition",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GJ.prototype,"useNewStyle",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GJ.prototype,"showPriceReplacementText",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GJ.prototype,"priceValue",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GJ.prototype,"showDeal",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GJ.prototype,"showAffiliateDisclaimer",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GJ.prototype,"useSaleStyle",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GJ.prototype,"useFromBrandCtaStyle",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GJ.prototype,"useFromVendorCtaStyle",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GJ.prototype,"useShoppingCollectionCtaStyle",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],GJ);
_.D(GJ,"ytd-vertical-product-card-renderer",function(){if(UcM!==void 0)return UcM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return UcM=W},{mode:1});var Msu;var YD=function(){return _.S.apply(this,arguments)||this};
_.C(YD,_.S);YD.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],YD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],YD.prototype,"ytdLockupBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],YD.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],YD);
_.D(YD,"ytd-grid-movie-renderer",function(){if(Msu!==void 0)return Msu;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Msu=W},{mode:1});var azu;var dv=function(){var W=_.S.apply(this,arguments)||this;W.roundedFix=_.r("web_enable_merch_item_rounding_fix");W.itemStyle="small-item";return W};
_.C(dv,_.S);dv.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var W,B,z,G,Y=(B=_.k((W=this.data)==null?void 0:W.buttonCommand,_.DL))==null?void 0:(z=B.item)==null?void 0:(G=z.notificationTextRenderer)==null?void 0:G.successResponseText;Y&&_.eH2(this.hostElement,Y)}};
_.G5.Object.defineProperties(dv.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?void 0:W.isProductPlaceholder)!==void 0&&((B=this.data)==null?void 0:B.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],dv.prototype,"roundedFix",void 0);_.Q([_.F(),_.y("design:type",Object)],dv.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],dv.prototype,"itemStyle",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],dv.prototype,"hasPrice",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],dv.prototype,"hasPriceReplacementText",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],dv.prototype,"hasAdditionalFeesText",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],dv.prototype,"hasAffiliateDisclaimer",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],dv.prototype,"isProductPlaceholder",null);
_.Q([_.F(),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],dv.prototype,"hideOpenInNewIcon",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],dv.prototype,"ariaLabel",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],dv);
_.D(dv,"ytd-merch-shelf-item-renderer",function(){if(azu!==void 0)return azu;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return azu=W},{mode:1});var RhD=_.m(function(W){return _.w("button-card-view-model",{el:_.TG(_.Qi(function(){return W.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return W.data().title},
role:"button"},_.w(_.O6,{model:{}}),_.w("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.w("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.w(_.V,{cond:function(){return W.data().image},
then:function(B){return _.w(_.iF,{data:B,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.w("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return W.data().title})))},"jb");_.r("web_button_view_model_wcw_registration_killswitch")||_.Vm(RhD,"button-card-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){W=_.EV(W,{className:void 0});var B=W.data;W=W.className;var z=_.r4(function(){return B().onTapCommand},void 0,"SXkP9e");
return _.w("ytd-shopping-item-card",{class:_.kG("ytdShoppingItemCardHost",W)},_.w(_.fL,{command:z,className:"ytdShoppingItemCardHostLink"},_.w("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.w(_.Sc,{data:function(){return B().thumbnailViewModel}},{thumbnailViewModel:function(G){return _.w(_.oW,{data:G.data,
aspectRatio:3})}})),_.w("div",null,_.w("p",{class:"ytdShoppingItemCardHostItemTitle"},_.w(_.r0,{text:function(){return B().itemTitle}})),_.w("p",{class:"ytdShoppingItemCardHostPrice"},_.w(_.r0,{text:function(){return B().priceOrStatus}})))))},"kb"),"ytd-shopping-item-card",{props:{data:_.kz,
className:_.kz}});var WBd={isAdsVideo:!0},BT7={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},zK6={showPlayerControls:!1,videoPreviewDurationMs:15E3},GwR={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var Bk=null,mWR={};var QCR="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(" "),pd={},ydT=(pd.FEwhat_to_watch="home",pd.FEhashtag="hashtag",pd.FEtrending="trending",pd.FEhistory="history",pd.SPunlimited="premium",pd.FEmemberships_and_purchases="paid_memberships",pd.SPredeem_code="redeem",pd.SPverify_location="locate",pd.SPminor_moment="minor_moment",
pd.FEmini_app_container="mini_app",pd.FEnews_destination="news",pd.SPopen_in_app="open_in_app",pd.FEexplore="explore",pd.FEsubscriptions="subscriptions",pd.FEsfv_audio_pivot="sfv_audio_pivot",pd.FEplaylist_aggregation="playlist_aggregation",pd);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");_.gV("init");var YQd=function(){},iX4=_.m(function(W){var B=W.data;
var z=W.inlineMetadata;var G=W.aspectRatio;var Y=W.scrimStyle;var d=W.className;var E=W.useDefaultStyle;var v=W.titleStyle;var c=new YQd,J=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",g=_.r4(function(){return(E==null?0:E())?J==="SHORTS_LOCKUP_STYLE_SLIM":B().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),t=_.r4(function(){return _.XA(z)||g()||!1},void 0,"neizSe"),P=function(){return(Y==null?void 0:Y())!==void 0?Y==null?void 0:Y():1},
Z=_.r4(function(){return B().belowThumbnailMetadata||!t()},void 0,"HdmMMe");
W=_.YF({visibilityCallback:function(gk){var vy=B().onFirstVisible;gk&&vy&&_.aB(vy)},
showOption:{calledOnce:!0,state:"visible"}});var l=_.TG(),b={},O=_.kG(function(){return g(),"shortsLockupViewModelHostThumbnailContainer"},(b.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.XA(G)===1},b.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.XA(G)===2},b.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.r("web_shorts_2_by_3_lockups_study")&&!_.r("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
b)),K=_.r4(function(){if(_.XA(G)===1)return 1;
_.XA(G);return 2},void 0,"ZRUa3c"),e,a=function(){if(c){var gk;
(gk=e)==null||zH(gk);var vy;if(c.hostElement&&((vy=c.data)==null?0:vy.inlinePlayerData)){gk=Object.assign({},GwR);var lx,Zv;((lx=c.data)==null?void 0:(Zv=lx.inlinePlayerData)==null?void 0:Zv.maxPlaybackLengthSec)!==void 0&&(gk.videoPreviewDurationMs=c.data.inlinePlayerData.maxPlaybackLengthSec*1E3);e=q$({mediaRenderer:c,lockupElement:c.hostElement,thumbnailElement:l.value,videoPreviewOpts:gk})}}};
_.ja(function(){c&&(c.data=B(),a())},"c4oj4d");
var q=_.r4(function(){return B().thumbnail},void 0,"CJHyHc");
b=_.r4(function(){return B().badge},void 0,"g31PIe");
var n=_.r4(function(){return B().onTap},void 0,"CJCUBc"),L={},By={};
return _.w("ytm-shorts-lockup-view-model",{el:_.TG(function(gk){c&&(c.hostElement=gk)},a,W),
class:_.kG("shortsLockupViewModelHost",d)},_.w(_.AW,null,_.w(_.fL,{command:n,className:_.kG("shortsLockupViewModelHostEndpoint",(L.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!Z()},L),"reel-item-endpoint",""),
ariaHidden:function(){return!t()},
tabIndex:function(){return t()?0:-1}},_.w("div",{el:l,
class:_.kG("shortsLockupViewModelHostThumbnailParentContainer",(By.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!g()},By))},_.w(_.V,{cond:q,
then:function(){return _.w("div",{class:O},_.w(_.iF,{data:function(){var gk;return(gk=q==null?void 0:q())!=null?gk:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.w(_.Sc,{data:function(){return B().thumbnailViewModel}},{thumbnailViewModel:function(gk){return _.w(_.oW,{data:gk.data,
aspectRatio:function(){return K()},
disableRounding:function(){return g()}})}}),null),_.w(_.V,{cond:t,
then:function(){return _.w(dNH,{data:B,scrimStyle:P,useDefaultStyle:E,titleStyle:v})}}),_.w(_.Sc,{data:b},{badgeViewModel:function(gk){return _.w(_.bM,{data:gk.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.w(_.V,{cond:function(){return t()&&B().menuOnTap},
then:function(){return _.w(pvT,{data:B,inlineMetadata:!0})}}),_.w(_.V,{cond:Z,
then:function(){return _.w(AkD,{data:B,useDefaultStyle:E,inlineMetadata:t})}})))},"lb"),dNH=_.m(function(W){var B=W.data;
var z=W.scrimStyle;var G=W.useDefaultStyle;var Y=W.titleStyle;var d=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",E=G&&_.r("web_hide_primary_text_for_pivot_panel"),v=_.r4(function(){return(G==null?0:G())?d==="SHORTS_LOCKUP_STYLE_SLIM":B().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
W={};W=_.kG("shortsLockupViewModelHostInlineMetadata",(W.shortsLockupViewModelHostMetadataRounded=function(){return!v()},W.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(z==null?void 0:z())===3&&!_.r("enable_shorts_lockup_new_scrim")},W.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(z==null?void 0:z())===3&&_.r("enable_shorts_lockup_new_scrim")},W.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(z==null?void 0:z())===2||(z==null?void 0:
z())===4},W.shortsLockupViewModelHostShowOverPlayer=function(){return!0},W),"image-overlay-text");
var c={};return _.w("div",{class:W},_.w("h3",{class:_.kG("shortsLockupViewModelHostMetadataTitle",(c.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(z==null?void 0:z())===4},c.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return B().belowThumbnailMetadata},c.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(Y==null?void 0:Y())===1},c.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(Y==null?void 0:Y())===2},c)),
"aria-label":function(){return B().accessibilityText}},_.w(_.V,{cond:function(){var J;
return!((J=B().overlayMetadata)==null||!J.primaryText)&&!E},
then:function(){return _.w(_.r0,{text:function(){var J;return(J=B().overlayMetadata)==null?void 0:J.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.w(_.V,{cond:function(){var J;
return(J=B().overlayMetadata)==null?void 0:J.secondaryText},
then:function(){return _.w(EsQ,{data:B,scrimStyle:z,className:void 0})}}))},"mb"),AkD=_.m(function(W){var B=W.data;
var z=W.useDefaultStyle;var G=W.inlineMetadata;var Y=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",d=_.r4(function(){return(z==null?0:z())?Y==="SHORTS_LOCKUP_STYLE_SLIM":B().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),E=_.TG(),v;
W=_.lF(function(Z){if(_.mC(_.ec(Z),E.value,["AVATAR-VIEW-MODEL"]))return!1;var l;(l=v)==null||l.click();return!1});
var c=_.r4(function(){return B().belowThumbnailMetadata||B().overlayMetadata},void 0,"yJVuMb"),J=function(){return B().menuOnTap&&!G()},g=function(){var Z;
return(Z=c())==null?void 0:Z.avatar},t={},P={};
return _.w("div",{class:_.kG(function(){return d()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(t.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!g()},t.shortsLockupViewModelHostOutsideMetadataHasMenu=J,t)),
"on:click":W,el:E,role:"presentation"},_.w(_.Sc,{data:g},{avatarViewModel:function(Z){return _.w("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.w(_.ds,{data:Z.data}))}}),_.w("div",null,_.w("h3",{class:_.kG("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(P.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var Z,l;
return!((Z=c())==null?0:(l=Z.primaryText)==null?0:l.content)},P.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=G,P)),
role:"presentation"},_.w(_.fL,{ref:function(Z){return void(v=Z)},
command:function(){return B().onTap},
className:_.kG("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var Z,l;return(Z=c())==null?void 0:(l=Z.primaryText)==null?void 0:l.content},
"aria-label":function(){return B().accessibilityText}},_.w(_.V,{cond:function(){var Z;
return(Z=c())==null?void 0:Z.primaryText},
then:function(Z){return _.w(_.r0,{text:Z,noEndpoints:!0,noStyleRuns:!0})}}))),_.w(_.V,{cond:function(){var Z;
return(Z=c())==null?void 0:Z.secondaryText},
then:function(Z){return _.w("div",{class:_.kG("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.w(_.r0,{text:Z,noStyleRuns:!0}))}})),_.w(_.V,{cond:J,
then:function(){return _.w(pvT,{data:B,inlineMetadata:!1})}}))},"nb"),EsQ=_.m(function(W){var B=W.data;
var z=W.scrimStyle;W=W.className;var G={};return _.w("div",{class:_.kG((G.shortsLockupViewModelHostMetadataSubhead=function(){return(z==null?void 0:z())!==4},G.shortsLockupViewModelHostMetadataSubheadNew=_.r("enable_shorts_lockup_new_scrim"),G.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(z==null?void 0:z())===4},G),W),
"aria-hidden":"true"},_.w(_.r0,{text:function(){var Y;return(Y=B().overlayMetadata)==null?void 0:Y.secondaryText},
noStyleRuns:!0}))},"ob"),pvT=_.m(function(W){var B=W.data;
var z=W.inlineMetadata;W={};W=_.kG((W.shortsLockupViewModelHostInlineMetadataMenu=function(){return z()},W.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!z()},W.shortsLockupViewModelHostShowOverPlayer=function(){return!0},W),"image-overlay-text");
return _.w("div",{class:W},_.w(_.uu,{data:function(){return{style:z()?"overlay":"mono",accessibilityLabel:B().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(G){G.preventDefault();G.stopPropagation();var Y=_.UV({elementsCommand:B().menuOnTap,forceNewState:!0});if(Y==null?0:Y.onclick)Y.onclick(G)}}},
iconName:"MORE_VERT"}))},"pb");var TTU=_.m(function(W){var B=W.data;var z=W.inlineMetadata;var G=W.aspectRatio;var Y=W.scrimStyle;var d=W.className;var E=W.useDefaultStyle;W=_.r4(function(){var v=B().entityId;return v?v.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.w("ytm-shorts-lockup-view-model-v2",{class:_.kG("shortsLockupViewModelHost",d)},_.w(_.Oi,{contentId:W,aspectRatio:function(){return(G==null?void 0:G())===1?1:(G==null?void 0:G())===2?2:4}},function(){return _.w(iX4,{data:B,
inlineMetadata:z,aspectRatio:G,scrimStyle:Y,className:d,useDefaultStyle:E})}))},"qb");_.Vm(TTU,"ytm-shorts-lockup-view-model-v2",{props:{data:_.wS,inlineMetadata:_.wS,aspectRatio:_.wS,scrimStyle:_.wS,className:_.wS,useDefaultStyle:_.wS,titleStyle:_.wS}});var vsd=16/9*210,AT=function(){var W=_.S.apply(this,arguments)||this;W.isExpandableContent=!1;W.hideShelfHeader=!1;W.engagementPanel=!1;W.buttonClasses=["arrow"];W.isSearch=!1;W.disableScrollEventListener=!1;W.containsLockup=!1;W.overrideArrowPositionForProductCard=!1;W.overrideArrowPositionForShoppingItemCard=!1;W.overrideArrowPositionForReelItems=!1;W.overrideArrowPositionForGridMovie=!1;W.overrideArrowPositionToCenter=!1;W.isSearchPostShelf=!1;W.overrideArrowPositionForMixedShelf=!1;W.overrideArrowPositionForMixedShelfShortsOnly=
!1;W.hasBigThumbsReelItems=!1;W.shouldUseMixedListHeight=!1;W.shouldUseShortsListHeight=!1;W.gridVideoWidth=0;W.isSearchVodShelf=!1;W.disableWheelScroll=!1;W.sizing="COMPACT";W.shortsLockupAspectRatio=0;return W};
_.C(AT,_.S);_.p=AT.prototype;
_.p.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]]"}}}}};
_.p.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.r("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.p.computeInitialCountNumber=function(W){if(!W)return 6;var B=W.items.some(function(d){return!!d.topicRecommendationsChipRenderer}),z=W.items.some(function(d){return!!d.displayAdRenderer}),G=this.computeShouldListItemsHaveEqualHeight(W),Y=W.items.some(function(d){return!!d.gridPlaylistRenderer});
W=W.items.some(function(d){return!!d.shoppingItemCardViewModel});
return B?9:z?8:Y||G?10:W?7:6};
_.p.computeContainsPost=function(W){return!!W&&!!W.items&&W.items.some(function(B){return!!B.postRenderer})};
_.p.computeContainsLockup=function(){if(_.r("web_horizontal_list_lockup_arrow_killswitch"))return!1;var W,B;return(W=this.data)==null?void 0:(B=W.items)==null?void 0:B.some(function(z){return!!z.lockupViewModel})};
_.p.maybeUpdateLockupAspectRatio=function(){var W,B;if(this.computeContainsLockup()&&((W=this.data)==null?0:(B=W.items)==null?0:B.length)){var z;W=TMD((z=this.data.items[0].lockupViewModel)==null?void 0:z.contentType,this.data.force16By9ThumbnailAspectRatio);z=VeX(W);z=this.computeLockupWidth()/z;_.kw(this.hostElement,{"--yt-horizontal-list-content-height":z+"px"})}};
_.p.computeOverrideArrowPositionForProductCard=function(W){if(this.isExpandableContent)return!1;var B;return!!(W==null?0:(B=W.items)==null?0:B.some(function(z){return!!z.verticalProductCardRenderer}))};
_.p.computeOverrideArrowPositionForShoppingItemCard=function(W){var B;return!!(W==null?0:(B=W.items)==null?0:B.some(function(z){return!!z.shoppingItemCardViewModel}))};
_.p.computeOverrideArrowPositionForReelItemRenderer=function(W){return this.containsReelItemRenderer(W)};
_.p.computeHasBigThumbsReelItems=function(W,B){return W&&this.containsReelItemRenderer(B)};
_.p.computeShouldListItemsHaveEqualHeight=function(W){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(W==null?void 0:W.itemSizeConstraint)};
_.p.computeShouldListItemsHaveShortsHeight=function(W){return this.computeShouldListItemsHaveEqualHeight(W)&&!this.containsGridVideoRenderer(W)};
_.p.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.p.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.p.containsReelItemRenderer=function(W){var B;return!!(W==null?0:(B=W.items)==null?0:B.some(function(z){return!(!z.reelItemRenderer&&!z.shortsLockupViewModel)}))};
_.p.containsGridVideoRenderer=function(W){var B;return!!(W==null?0:(B=W.items)==null?0:B.some(function(z){return!!z.gridVideoRenderer||!!z.lockupViewModel}))};
_.p.computeContainsGridMovieRenderer=function(W){var B;return!!(W==null?0:(B=W.items)==null?0:B.some(function(z){return!!z.gridMovieRenderer}))};
_.p.computeOverrideArrowPositionToCenter=function(W){return this.computeIsSearchPostShelf(W)};
_.p.computeIsSearchPostShelf=function(W){var B;return!!(W==null?0:(B=W.items)==null?0:B.some(function(z){var G,Y;return((Y=(G=z.postRenderer)==null?void 0:G.surface)!=null?Y:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.p.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(W){var B;return!!(W==null?0:(B=W.items)==null?0:B.some(function(z){var G,Y,d;return((d=(G=z.backgroundPromoRenderer)==null?void 0:(Y=G.style)==null?void 0:Y.value)!=null?d:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.p.computeIsSearchVodShelf=function(W,B){return W&&this.containsGridVideoRenderer(B)};
_.p.computeDisableWheelScroll=function(W,B){return this.computeIsSearchVodShelf(W,B)};
_.p.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.p.computeShortsLockupAspectRatio=function(){return 1};
_.p.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.kw(this.hostElement,{"--ytd-reel-item-thumbnail-height":vsd+"px"})};
AT.prototype.dataChanged=AT.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],AT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.jv.YtdHorizontalListBehavior),_.y("design:type",Object)],AT.prototype,"ytdHorizontalListBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],AT.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],AT.prototype,"isExpandableContent",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"hideShelfHeader",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"engagementPanel",void 0);_.Q([_.F(),_.y("design:type",Array)],AT.prototype,"buttonClasses",void 0);_.Q([_.F(),_.y("design:type",Object)],AT.prototype,"isSearch",void 0);
_.Q([_.F(),_.y("design:type",Object)],AT.prototype,"disableScrollEventListener",void 0);_.Q([_.F({computed:"computeInitialCountNumber(data)"}),_.y("design:type",Number)],AT.prototype,"initialCount",void 0);_.Q([_.F({computed:"computeContainsPost(data)"}),_.y("design:type",Boolean)],AT.prototype,"supportComponentResize",void 0);_.Q([_.F({computed:"computeContainsPost(data)"}),_.y("design:type",Boolean)],AT.prototype,"containsPost",void 0);
_.Q([_.F({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"containsLockup",void 0);_.Q([_.F({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],AT.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.Q([_.F({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"overrideArrowPositionForProductCard",void 0);_.Q([_.F({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.Q([_.F({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"overrideArrowPositionForReelItems",void 0);_.Q([_.F({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"overrideArrowPositionForGridMovie",void 0);
_.Q([_.F({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"overrideArrowPositionToCenter",void 0);_.Q([_.F({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"isSearchPostShelf",void 0);_.Q([_.F({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.Q([_.F({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.Q([_.F({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"hasBigThumbsReelItems",void 0);
_.Q([_.F({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"shouldUseMixedListHeight",void 0);_.Q([_.F({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"shouldUseShortsListHeight",void 0);_.Q([_.F({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"gridVideoWidth",void 0);
_.Q([_.F({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"isSearchVodShelf",void 0);_.Q([_.F({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.y("design:type",Object)],AT.prototype,"disableWheelScroll",void 0);_.Q([_.F({computed:"computeSizing(isSearch)"}),_.y("design:type",Object)],AT.prototype,"sizing",void 0);
_.Q([_.F({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.y("design:type",Object)],AT.prototype,"shortsLockupAspectRatio",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],AT.prototype,"dataChanged",null);
_.D(AT,"yt-horizontal-list-renderer",function(){if(wp9===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);wp9=W}W=wp9;return W},{mode:1});var ckd;var wvH=[10,12,14,16,18,20,24,28,32,36],VGH=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],EG=function(){var W=_.S.apply(this,arguments)||this;W.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";W.hideOverflow=!1;W.useRoboto=!1;W.fontClass="";W.overflown=!1;W.actionMap={"yt-window-resized":"resize"};return W};
_.C(EG,_.S);_.p=EG.prototype;
_.p.attached=function(){var W=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.BM(this,function(){W.resize()});
if(!_.Js){var B,z,G;(B=document)==null||(z=B.fonts)==null||(G=z.ready)==null||G.then(function(){W.resize()})}};
_.p.dataChanged=function(){this.resize()};
_.p.guideIsExpandedChanged=function(){this.resize()};
_.p.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 W=this.getMaxNumLines(),B=this.getMinFont(),z=this.getMaxFont(),G=this.useRoboto?wvH:VGH;for(G=G.filter(function(d){return d<=z&&d>=B});G.length>1;){var Y=Math.floor(G.length/2);
this.updateFontSize(G[Y]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=W)G=G.slice(Y,G.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>W)G=G.slice(0,Y);else break}this.updateFontSize(G[G.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(W)}};
_.p.handleOverflow=function(W){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>W&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",W.toString()))};
_.p.updateFontSize=function(W){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+W;this.textNode.classList.add(this.fontClass)};
_.p.getMaxFont=function(){var W=this.useRoboto?wvH:VGH;W=W[W.length-1];return this.maxFontSize&&this.maxFontSize<=W?this.maxFontSize:W};
_.p.getMinFont=function(){var W=(this.useRoboto?wvH:VGH)[0];return this.minFontSize&&this.minFontSize>=W?this.minFontSize:W};
_.p.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.p.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.p.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.zR(this.text).split("\n").length-1:Infinity};
_.p.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("Mh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
EG.prototype.guideIsExpandedChanged=EG.prototype.guideIsExpandedChanged;EG.prototype.dataChanged=EG.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],EG.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],EG.prototype,"actionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],EG.prototype,"text",void 0);
_.Q([_.F(),_.y("design:type",String)],EG.prototype,"fontFamily",void 0);_.Q([_.F(),_.y("design:type",Number)],EG.prototype,"maxWidth",void 0);_.Q([_.F(),_.y("design:type",Number)],EG.prototype,"maxHeight",void 0);_.Q([_.F(),_.y("design:type",Number)],EG.prototype,"maxFontSize",void 0);_.Q([_.F(),_.y("design:type",Number)],EG.prototype,"minFontSize",void 0);_.Q([_.F(),_.y("design:type",Number)],EG.prototype,"maxLines",void 0);_.Q([_.F(),_.y("design:type",Object)],EG.prototype,"hideOverflow",void 0);
_.Q([_.F({selector:_.d1t}),_.y("design:type",Boolean)],EG.prototype,"guideIsExpanded",void 0);_.Q([_.Hf("#container"),_.y("design:type",HTMLElement)],EG.prototype,"containerNode",void 0);_.Q([_.Hf("#text"),_.y("design:type",HTMLElement)],EG.prototype,"textNode",void 0);_.Q([_.jJ("text"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],EG.prototype,"dataChanged",null);
_.Q([_.jJ("guideIsExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],EG.prototype,"guideIsExpandedChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],EG);
_.D(EG,"yt-dynamic-sizing-formatted-string",function(){if(ckd!==void 0)return ckd;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ckd=W},{mode:1});var Jku;_.gs4=function(W){_.zT.call(this,W)};
_.C(_.gs4,_.zT);var tG7=function(W){_.zT.call(this,W)};
_.C(tG7,_.gs4);var TJ=function(){return _.S.apply(this,arguments)||this};
_.C(TJ,_.S);TJ.prototype.onTapSuspendedChannel=function(){var W;if((W=this.data)!=null&&W.serviceEndpoint){var B,z;(W=(z=_.k((B=this.data)==null?void 0:B.serviceEndpoint,_.DD))==null?void 0:z.url)?_.zS(W,void 0,void 0,window.top):(B=new tG7("Did not handle suspended account tap. No appealUrl."),_.jy(B))}else B=new tG7("Did not handle suspended account tap. No serviceEndpoint."),_.jy(B)};
TJ.prototype.onTap=function(){var W=this,B=_.SK(),z,G=(z=_.FF(B,{veType:7116}))!=null?z:void 0;_.aK(B,{visualElement:G});_.Wf();this.saveRoleText();var Y;if((Y=this.data)==null?0:Y.youtubeSuspended)this.onTapSuspendedChannel();else{var d=!1,E,v;(B=(v=_.k((E=this.data)==null?void 0:E.serviceEndpoint,_.RN6))==null?void 0:v.supportedTokens)&&B.forEach(function(c){if(c.accountSigninToken)if(d=!0,W.onAccountItemTap)W.onAccountItemTap(c.accountSigninToken.signinUrl);else _.zS(c.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!d){if(E=this.get("serviceEndpoint",this.data))d=!0,this.ytComponentBehavior.resolveCommand(E);d||_.fG(new tG7("Did not handle account switch tap. No token."))}}};
TJ.prototype.saveRoleText=function(){if(this.data){var W=this.data,B=W.channelDelegationRole;if(B){var z,G=(z=_.k(W==null?void 0:W.serviceEndpoint,_.RN6))==null?void 0:z.supportedTokens;if(!G){var Y,d,E,v;G=(Y=_.k(W==null?void 0:W.serviceEndpoint,_.Nm))==null?void 0:(d=Y.popup)==null?void 0:(E=d.confirmDialogRenderer)==null?void 0:(v=E.confirmButton)==null?void 0:v.buttonRenderer;var c;G=(c=_.k(G==null?void 0:G.command,_.tr))==null?void 0:c.commands;if(!G)return;var J;G=(J=_.k(G[1],_.RN6))==null?
void 0:J.supportedTokens}if(G){c=void 0;J=_.A(G);for(G=J.next();!G.done;G=J.next())if(G=G.value,G.datasyncIdToken){c=G.datasyncIdToken.datasyncIdToken;break}if(c){var g;a:{if(_.Onu()&&(J=_.bAD(c+"::pom"))){J=new W7(J);break a}J=void 0}(g=J)==null||g.set("role_text",B);if(($V8?$V8:window.location).href.indexOf("studio")!==-1&&(g=XDR())){J=g.src?(new URL(g.src)).origin:"*";var t;(t=g.contentWindow)==null||t.postMessage({action:"save_pom_role",datasyncId:c,roleText:B},J)}}}}}};
_.G5.Object.defineProperties(TJ.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var W,B,z=(W=this.data)==null?void 0:(B=W.accountPhoto)==null?void 0:B.thumbnails;return z&&z.length>0&&(z[0].height===36||z[0].height===48)?z[0].height:40}}});
TJ.prototype.onTap=TJ.prototype.onTap;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],TJ.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],TJ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!1}),_.y("design:type",Function)],TJ.prototype,"onAccountItemTap",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],TJ.prototype,"enableRingForActiveAccount",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],TJ.prototype,"thumbnailSize",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TJ.prototype,"onTap",null);_.Q([_.u({is:"ytd-account-item-renderer",disableElementRegistration:!0})],TJ);
_.D(TJ,"ytd-account-item-renderer",function(){if(Jku!==void 0)return Jku;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Jku=W},{mode:1});var sL6;var vl=function(){return _.S.apply(this,arguments)||this};
_.C(vl,_.S);vl.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.dO().resolve(_.p4).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],vl.prototype,"data",void 0);_.Q([_.u({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],vl);
_.D(vl,"ytd-identity-chip-renderer",function(){if(sL6!==void 0)return sL6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return sL6=W},{mode:1});var P39;var ZXH;var rkd;var kwF;var cl=function(){var W=_.S.apply(this,arguments)||this;W.richItemMinWidth=_.iO("wn_grid_min_item_width",310);W.isShorts=!1;W.isWatchNext=!1;W.isExploreHub=!1;return W};
_.C(cl,_.S);_.G5.Object.defineProperties(cl.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var W=[],B=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.kw(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var z;if(((z=this.data)==null?0:z.rows)&&B)for(B*=this.data.rows,z=0;z<B;z++)W.push({});return W}}});
_.Q([_.h(_.TB),_.y("design:type",Object)],cl.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],cl.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.m8,value:3}),_.y("design:type",Number)],cl.prototype,"itemsPerRow",void 0);_.Q([_.F({selector:_.Yrk,value:6}),_.y("design:type",Number)],cl.prototype,"slimItemsPerRow",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Number)],cl.prototype,"richItemMinWidth",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.eL}),_.y("design:type",Boolean)],cl.prototype,"miniMode",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],cl.prototype,"isShorts",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],cl.prototype,"isWatchNext",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],cl.prototype,"isExploreHub",void 0);
_.Q([_.H("isExploreHub"),_.F({reflectToAttribute:!0}),_.y("design:type",Object),_.y("design:paramtypes",[])],cl.prototype,"shimmerAnimation",null);_.Q([_.H("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.y("design:type",Array),_.y("design:paramtypes",[])],cl.prototype,"cardItems",null);_.Q([_.u({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],cl);
_.ljH=_.sV()(cl,"ytd-ghost-grid-renderer",function(){if(kwF===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);kwF=W}W=kwF;return W},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Vm(_.m(function(W){var B=_.EV(W,{numberOfComments:3}).numberOfComments,z=_.EV(W,{isInitialLoad:!1}).isInitialLoad,G=_.EV(W,{engagementPanel:!1}).engagementPanel,Y=function(){return Math.min(Number(B==null?void 0:B())||20,20)};
return _.w("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.w(_.V,{cond:function(){return!(G==null?0:G())&&(z==null?void 0:z())},
then:function(){return _.w("div",{class:"ytGhostCommentsComments"},_.w("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.w("div",{class:_.kG("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.w("div",{class:_.kG("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.w("div",{class:"ytGhostCommentsGhostCard"},_.w("div",{class:"ytGhostCommentsAvatar"},_.w("div",{class:"ytGhostCommentsCircle"})),_.w("div",{class:"ytGhostCommentsComments"},_.w("div",{class:"ytGhostCommentsMeta"},
_.w("div",{class:_.kG("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.w("div",{class:_.kG("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.w("div",{class:"ytGhostCommentsComments"},_.w(_.IJ,{each:function(){return Array((Y==null?void 0:Y())||3)}},function(){return _.w("div",{class:"ytGhostCommentsGhostCard"},_.w("div",{class:"ytGhostCommentsAvatar"},_.w("div",{class:"ytGhostCommentsCircle"})),_.w("div",{class:"ytGhostCommentsHost"},_.w("div",{class:"ytGhostCommentsMeta"},
_.w("div",{class:_.kG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.w("div",{class:_.kG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.w("div",{class:_.kG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.w("div",{class:"ytGhostCommentsGhostLikeDislike"},_.w("div",{class:_.kG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.w("div",{class:_.kG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"rb"),"yt-ghost-comments",{props:{numberOfComments:_.kz,
isInitialLoad:_.kz,engagementPanel:_.kz}});_.eX("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var wv=function(){var W=_.S.apply(this,arguments)||this;W.isOverridable=!1;W.spinnerActive=!1;W.showButton=!1;W.isCommentsSection=!1;W.engagementPanel=!0;W.isShortsGrid=!1;W.isShortsPage=!1;W.isWatchPage=!1;W.ghostCardExperimentEnabled=_.r("show_ghost_comments_shorts_watch")||_.r("show_ghost_comments_desktop_watch");W.originalShowButton=!1;W.endOfList=!1;return W};
_.C(wv,_.S);_.p=wv.prototype;_.p.resetIntersectionObserver=function(){var W;(W=this.observer)==null||W.disconnect();this.observer=void 0};
_.p.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var W,B;((W=this.data)==null?void 0:W.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((B=this.data)==null?0:B.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.p.initializeIntersectionObserver=function(){var W=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(B){B=_.A(B);for(var z=B.next();!z.done;z=B.next())z.value.isIntersecting&&(W.triggerContinuation(),W.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.p.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]]"}}}}}};
_.p.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var W;((W=this.data)==null?0:W.continuationEndpoint)&&(W=_.k(this.data.continuationEndpoint,_.Ly))&&this.ytdReduxBehavior.dispatch(_.Tl({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:W}}))};
_.p.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.p.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.p.onServiceRequestCompleted=function(W,B){if(!_.r("kevlar_hide_spinner_on_empty_continuation_killswitch")){var z;(z=B.actions)!=null&&z.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.p.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.p.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.p.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.p.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var W=3;if(this.engagementPanel){var B,z,G;W=Math.floor(((((B=this.hostElement)==null?void 0:(z=B.parentElement)==null?void 0:(G=z.parentElement)==null?void 0:G.scrollHeight)||108)-108)/108);W=this.isInitialLoad?Math.max(W,3):3}B=[].concat(_.u7(this.hostElement.querySelectorAll("yt-ghost-comments")));B=_.A(B);for(z=B.next();!z.done;z=B.next())z=z.value,z.numberOfComments=W,z.isInitialLoad=this.isInitialLoad,z.engagementPanel=
this.engagementPanel}};
_.p.detached=function(){this.resetIntersectionObserver()};
_.G5.Object.defineProperties(wv.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.r("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.r("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
wv.prototype.numberOfGhostCommentsChanged=wv.prototype.numberOfGhostCommentsChanged;wv.prototype.continuationTriggerOffsetChanged=wv.prototype.continuationTriggerOffsetChanged;wv.prototype.showButtonChanged=wv.prototype.showButtonChanged;wv.prototype.onYtServiceRequestCompletedForButtonRenderer=wv.prototype.onYtServiceRequestCompletedForButtonRenderer;wv.prototype.onServiceRequestCompleted=wv.prototype.onServiceRequestCompleted;wv.prototype.onYtServiceRequestSentForButtonRenderer=wv.prototype.onYtServiceRequestSentForButtonRenderer;
wv.prototype.observeData=wv.prototype.observeData;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],wv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.tu.YtVisibilityBehavior),_.y("design:type",Object)],wv.prototype,"ytVisibilityBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],wv.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(_.TB),_.y("design:type",Object)],wv.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],wv.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],wv.prototype,"isOverridable",void 0);_.Q([_.F(),_.y("design:type",Object)],wv.prototype,"spinnerActive",void 0);_.Q([_.F(),_.y("design:type",Object)],wv.prototype,"showButton",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],wv.prototype,"isCommentsSection",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],wv.prototype,"engagementPanel",void 0);_.Q([_.F(),_.y("design:type",Object)],wv.prototype,"isShortsGrid",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.iIu}),_.y("design:type",Object)],wv.prototype,"isShortsPage",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.A5x}),_.y("design:type",Object)],wv.prototype,"isWatchPage",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],wv.prototype,"ghostCardExperimentEnabled",void 0);
_.Q([_.F(),_.y("design:type",Number)],wv.prototype,"continuationTriggerOffset",void 0);_.Q([_.F(),_.y("design:type",Object)],wv.prototype,"endOfList",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],wv.prototype,"isInitialLoad",void 0);_.Q([_.Hf("ytd-button-renderer"),_.y("design:type",_.HN)],wv.prototype,"buttonRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],wv.prototype,"buttonOverrides",void 0);
_.Q([_.F(),_.H("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.y("design:type",Object),_.y("design:paramtypes",[])],wv.prototype,"isShortsCommentsSection",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wv.prototype,"observeData",null);
_.Q([_.IN("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wv.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],wv.prototype,"onServiceRequestCompleted",null);
_.Q([_.IN("yt-service-request-completed-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wv.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.Q([_.jJ("showButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wv.prototype,"showButtonChanged",null);
_.Q([_.jJ("continuationTriggerOffset"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wv.prototype,"continuationTriggerOffsetChanged",null);_.Q([_.oN("isInitialLoad","engagementPanel"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wv.prototype,"numberOfGhostCommentsChanged",null);_.Q([_.u({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],wv);
_.D(wv,"ytd-continuation-item-renderer",function(){if(rkd!==void 0)return rkd;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return rkd=W},{mode:1});var C3U;var Vn=function(){var W=_.S.apply(this,arguments)||this;W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.downloadState="DOWNLOAD_STATE_UNKNOWN";W.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";W.offlineVideoPolicyExpirationTimestamp=0;W.downloadedVideoPlaybackPosition=0;return W};
_.C(Vn,_.S);Vn.prototype.dataChanged=function(){var W;this.videoData=_.k((W=this.data)==null?void 0:W.renderer,Spd);this.transferStateChanged()};
Vn.prototype.downloadProgressChanged=function(){if(this.entityInfo){var W=Object.assign({},this.videoData),B=Ez0(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),z=B.publishedTimeText,G=B.badges;W.shortViewCountText=B.shortViewCountText;W.publishedTimeText=z;W.badges=G;this.set("videoData",W)}};
Vn.prototype.transferStateChanged=function(){if(this.entityInfo){var W=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",B=_.H3(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!hq(this.entityInfo.policyEntity),z=Object.assign({},this.videoData),G=Ez0(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Y=G.publishedTimeText,d=G.badges;z.shortViewCountText=
G.shortViewCountText;z.publishedTimeText=Y;z.badges=d;z.isDisabled=B;z.isWatched=this.downloadedVideoPlaybackPosition>0;z.navigationEndpoint=B?void 0:ENx(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var E;W&&((E=this.videoData)==null?0:E.videoId)&&!_.r("dl_resume_click_killswitch")&&(z.isDisabled=!1,z.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});z.thumbnailOverlays=Aur(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",z)}};
Vn.prototype.transferStateChanged=Vn.prototype.transferStateChanged;Vn.prototype.downloadProgressChanged=Vn.prototype.downloadProgressChanged;Vn.prototype.dataChanged=Vn.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Vn.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Vn.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],Vn.prototype,"videoData",void 0);_.Q([_.F({selector:nA,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],Vn.prototype,"downloadProgress",void 0);_.Q([_.F(),_.y("design:type",Number)],Vn.prototype,"relativeDateReference",void 0);_.Q([_.F({selector:_.yg,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],Vn.prototype,"transferState",void 0);
_.Q([_.F({selector:HIr,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],Vn.prototype,"downloadState",void 0);_.Q([_.F({selector:wzk,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],Vn.prototype,"offlinePolicyAction",void 0);_.Q([_.F({selector:V8r,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],Vn.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.Q([_.F({selector:NM,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],Vn.prototype,"downloadedVideoPlaybackPosition",void 0);_.Q([_.F({selector:gUk,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],Vn.prototype,"entityInfo",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Vn.prototype,"isDownloading",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vn.prototype,"dataChanged",null);
_.Q([_.jJ("downloadProgress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vn.prototype,"downloadProgressChanged",null);_.Q([_.jJ("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vn.prototype,"transferStateChanged",null);
_.Q([_.u({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],Vn);
_.D(Vn,"ytd-downloaded-video-grid-video-renderer",function(){if(C3U!==void 0)return C3U;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return C3U=W},{mode:_.PJ("kevlar_poly_si_batch_j025")?1:2});var IjM;var JT=function(){};
JT.prototype.resolve=function(W,B){var z=this;return _.T(function(G){return G.yield(z.resolveCommand(W,B),0)})};var osM,gv;osM=W3y(function(W){return W.targetId},{shouldPersist:!1});
gv=osM.updateData;_.hKU=osM.useUpdatableData;var HXM,FBR;HXM=W3y(function(W){return W.targetId});
FBR=HXM.updateData;_.SQD=HXM.useUpdatableData;var bX7=$Wv.bind(null,gv),jLd=$Wv.bind(null,FBR);(function(W,B,z){var G=_.k(z==null?void 0:z.updatedRenderer,_.pOT);return G?W({targetId:B},function(){return G}):!1}).bind(null,gv);var tT=function(){};
_.C(tT,JT);tT.prototype.resolveCommand=function(W){var B;return _.T(function(z){B=_.k(W,_.pXk);if(!B)return z.return();bX7(B.targetId,B);_.HG(z)})};var sG=function(){var W=_.SJ.apply(this,arguments)||this;W.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return W};
_.C(sG,_.SJ);_.p=sG.prototype;_.p.configureContinuationPathMap=function(){return{}};
_.p.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.p.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.p.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.p.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.p.handleAppendContinuationItemsAction=function(W){var B=_.k(W,_.i_6);if(this.data&&this.data.targetId&&B&&this.continuationPathMap&&B.targetId===this.data.targetId){var z=$$t(W),G=z&&this.continuationPathMap[z];if(G&&z)if(W=this.get(G,this.data)){a:{for(z=0;z<W.length;z++){var Y=W[z],d=void 0,E=!!_.k((d=_.k(Y,$eR))==null?void 0:d.content,_.o36);if(_.k(Y,_.GH)||E)break a}z=W.length}G="data."+G;B.continuationItems?z===W.length-1?(this.pop(G),this.push.apply(this,[G].concat(_.u7(B.continuationItems)))):
z===W.length?this.push.apply(this,[G].concat(_.u7(B.continuationItems))):this.splice.apply(this,[G,z,1].concat(_.u7(B.continuationItems))):this.splice(G,z,1);(_.r("web_enable_voting_animation")||_.r("enable_music_web_cairo_voting_animation"))&&_.v0(this.hostElement,"yt-append-continuation-items-action-finished");_.v0(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Oc(new _.oX("append continuation items does not exist",z));else _.Oc(new _.oX("append continuation path does not exist",
z))}};
_.p.handleReloadContinuationItemsCommand=function(W){var B=_.k(W,_.pXk);if(this.data&&B){if(_.r("web_client_explore_hub")||_.r("web_explore_hub_on_hover")||_.r("web_client_explore_hub_on_hover"))try{_.dO().resolve(tT).resolveCommand(W)}catch(d){}if(this.data.targetId&&this.continuationPathMap&&B.targetId===this.data.targetId&&(!_.r("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||B.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var z,G=(z=B.slot)==null?void 0:
z.replace("RELOAD_CONTINUATION_SLOT_","");z=(W=$$t(W)+"-"+(G==null?void 0:G.toLowerCase()))&&this.continuationPathMap[W];if(!z||!W||!G)_.Oc(new _.oX("reload continuation path does not exist",W));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(B)){if(B.replaceWithFirstItem){var Y;this.set("data."+z,((Y=B.continuationItems)==null?0:Y.length)?B.continuationItems[0]:{})}else this.set("data."+z,B.continuationItems?B.continuationItems:[]);this.continuationIsReloading=
!1;_.v0(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.p.handleShowReloadUiCommand=function(W){W=_.k(W,lUU);var B;((B=this.data)==null?0:B.targetId)&&(W==null?0:W.targetId)&&W.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
sG.prototype.observeData=sG.prototype.observeData;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],sG.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],sG.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],sG.prototype,"data",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],sG.prototype,"continuationIsReloading",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sG.prototype,"observeData",null);_.Q([_.bP()],sG);_.Pl=[_.Ve.YtComponentBehavior,_.ye.YtActionHandlerBehavior,sG.prototype];_.ZY={};_.ZY.YtNextContinuationBehavior=[_.hu.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",_.Co(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Co(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(W,B){W.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,B,{}):(W={locationRetrieved:function(z){this.makeNextContinuationRequest_(z,B,{})}.bind(this)},_.v0(this.hostElement,"yt-retrieve-location",W))},
makeNextContinuationRequest_:function(W,B,z){_.xq("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();W=B(W);var G;this.canUseContextualNetworkManager_()&&(G=this.getNetworkManager());G||(G=_.dO().resolve(_.ns));B=_.RK.instance;if(_.eD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&B){G=_.dD([W.startsWith("/")?W.substr(1):W]);var Y,d;z=_.cz(B,{},G,z==null?void 0:(Y=z.context)==null?void 0:(d=Y.clickTracking)==null?void 0:d.clickTrackingParams).then(function(E){return{response:E}})}else z=
this.nextContinuation.usePost?G.postData(W,z):G.fetchData(W);
z.then(this.updateNextContinuationData_.bind(this,W));this.pendingContinuationRequest_=z;this.startListeningForNavigate_()},
updateNextContinuationData_:function(W,B){var z=this;_.xq("ncl");this.pendingContinuationRequest_=void 0;if(B){var G={};this.nextContinuation&&(G=this.nextContinuation);if(B.response&&B.response.continuationContents&&B.response.continuationContents[G.continuationType]){W=B.response.continuationContents[G.continuationType];var Y=G.header||"data.header",d=W[G.responseHeaderKey||"header"];d&&this.set(Y,d);Y=G.contentsArray||"data.contents";d=this.getContents_(W,G.responseContentsKey||"contents")||[];
this.pathExists_(Y)?(d.unshift(Y),this.push.apply(this,d)):this.set(Y,d);d&&(Lv8(_.SK(),B.response,this.hostElement,function(E){_.c0(z.hostElement,"yt-store-grafted-ve-action",[E])}),_.v0(this.hostElement,"yt-next-continuation-data-updated",{continuationData:B,
page:this,contentsArray:Y}));this.set(G.continuationsArray||"data.continuations",W[G.responseContinuationsKey||"continuations"]||[])}else B.reload?_.Oc(new _.oX("Reloading from continuation is unsupported")):B.responseContext&&B.responseContext.errors||(delete B.xsrf_token,delete B.timing,delete B.endpoint,delete B.csn,B.responseContext&&delete B.responseContext.serviceTrackingParams,Y={request:_.M6(W,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(B).sort()},B.response&&(Y.responseContentKeys=
Object.keys(B.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(Y.continuationType=this.nextContinuation.continuationType.substr(0,256)),B=new _.oX("Malformed continuation",Y),W.indexOf("/comment_service_ajax")==0?_.Oc(B):_.jy(B)),this.set(G.continuationsArray||"data.continuations",[])}else _.fG(new _.oX("Missing continuation response",W))},
getContents_:function(W,B){B=B.split(".");return _.mP.getValueByKeys(W,B)},
pathExists_:function(W){var B=this;W=W.toString().split(".");for(var z=0;z<W.length;z++)if(B=B[W[z]],B===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var fjH;var OXM;var rv=function(){var W=_.S.apply(this,arguments)||this;W.triggered_=!1;return W};
_.C(rv,_.S);_.p=rv.prototype;_.p.attached=function(){this.maybeTriggerAutoload()};
_.p.detached=function(){this.hasBeenTriggered_=!1};
_.p.onPrescanVisible=function(){this.onShow()};
_.p.onShow=function(){this.showButton||this.trigger()};
_.p.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.v0(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.p.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.p.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.p.computeLabel_=function(W,B){return W===void 0?null:W.label||!B?W.label:this.showMoreText_};
_.p.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.p.getContinuationUrl=function(W){var B={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(B.itct=this.data.clickTrackingParams);return _.aJ(W,B)};
_.p.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
rv.prototype.showButtonChanged_=rv.prototype.showButtonChanged_;rv.prototype.observeData_=rv.prototype.observeData_;_.Q([_.h(_.tu.YtVisibilityBehavior),_.y("design:type",Object)],rv.prototype,"ytVisibilityBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],rv.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],rv.prototype,"showButton",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],rv.prototype,"showIcon",void 0);_.Q([_.F({computed:"computeLabel_(data, showButton)"}),_.y("design:type",Object)],rv.prototype,"label",void 0);_.Q([_.F({value:_.Bg(_.kq("SHOW_MORE",void 0,"Show More"))}),_.y("design:type",Object)],rv.prototype,"showMoreText_",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],rv.prototype,"spinnerActive_",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],rv.prototype,"hasBeenTriggered_",void 0);
_.Q([_.F({value:void 0}),_.y("design:type",String)],rv.prototype,"observeVisibleOption",void 0);_.Q([_.F({value:void 0}),_.y("design:type",String)],rv.prototype,"observeHiddenOption",void 0);_.Q([_.F({value:"observe_once"}),_.y("design:type",Object)],rv.prototype,"observePrescanOption",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rv.prototype,"observeData_",null);
_.Q([_.oN("showButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rv.prototype,"showButtonChanged_",null);_.Q([_.NJ({is:"yt-next-continuation",disableElementRegistration:!0})],rv);
_.D(rv,"yt-next-continuation",function(){if(OXM===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;fjH===void 0&&(fjH=document.createElement("template"));var G=fjH;z.call(B,G.content.cloneNode(!0),W.content.firstChild);OXM=W}W=OXM;return W},{mode:2});var XvD;var KBD;var kD=function(){return _.S.apply(this,arguments)||this};
_.C(kD,_.S);kD.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],kD.prototype,"data",void 0);_.Q([_.NJ({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],kD);
_.D(kD,"yt-music-pass-small-feature-info-renderer",function(){if(KBD===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;XvD===void 0&&(XvD=document.createElement("template"));var G=XvD;z.call(B,G.content.cloneNode(!0),W.content.firstChild);KBD=W}W=KBD;return W},{mode:2});_.eX("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var ln=function(){var W=_.S.apply(this,arguments)||this;W.isCollapsible=!1;W.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return W};
_.C(ln,_.S);_.p=ln.prototype;_.p.computeIsCollapsible=function(W){return!!(((W==null?0:W.showMoreText)||(W==null?0:W.visibleRowCount))&&(W==null?0:W.isCollapsible))};
_.p.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"}}}};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.p.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.p.onIronResize=function(){var W=this;_.BJ(this,"updateGridInitItems",function(){W.maybeUpdateInitialItemsDisplayed()})};
_.p.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var W=this.getVisibleWidth();W!==0&&(W=Math.floor(W/214)*(this.data.visibleRowCount||2),W!==this.initialCount&&(this.initialCount=W,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.p.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.p.computeExpandVisible=function(W,B,z,G){return W&&B&&z&&!!G&&!!G.showMoreText};
_.p.computeShowMoreButton=function(W){return{text:W,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.p.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.p.initCollapsed=function(){var W=this;this.ytLazyListBehavior.canShowMore=!1;var B;(this.collapsed=!((B=this.data)==null||!B.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.BM(this,function(){_.wV(W.hostElement,"yt-refit-popups-action")})};
_.p.fillRestIfNotCollapsible=function(){var W=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!W||this.ytLazyListBehavior.fillRemainingListItems()};
_.p.computeViewAllHidden=function(W,B){return W||!B.viewAllEndpoint};
ln.prototype.fillRestIfNotCollapsible=ln.prototype.fillRestIfNotCollapsible;ln.prototype.initCollapsed=ln.prototype.initCollapsed;ln.prototype.onIronResize=ln.prototype.onIronResize;ln.prototype.persistentGuideChanged=ln.prototype.persistentGuideChanged;_.Q([_.h(_.Mp),_.y("design:type",Object)],ln.prototype,"ironResizableBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.bh.YtLazyListBehavior),_.y("design:type",Object)],ln.prototype,"ytLazyListBehavior",void 0);_.Q([_.h(_.ZY.YtNextContinuationBehavior),_.y("design:type",Object)],ln.prototype,"ytNextContinuationBehavior",void 0);_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],ln.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.h(_.Pl),_.y("design:type",Object)],ln.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ln.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],ln.prototype,"collapsed",void 0);_.Q([_.F(),_.y("design:type",Number)],ln.prototype,"initialCount",void 0);_.Q([_.F({computed:"computeShowMoreButton(data.showMoreText)"}),_.y("design:type",Object)],ln.prototype,"showMoreButton",void 0);
_.Q([_.F({computed:"computeIsCollapsible(data)"}),_.y("design:type",Object)],ln.prototype,"isCollapsible",void 0);_.Q([_.Hf("#items"),_.y("design:type",HTMLElement)],ln.prototype,"items",void 0);_.Q([_.jJ("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ln.prototype,"persistentGuideChanged",null);_.Q([_.IN("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ln.prototype,"onIronResize",null);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ln.prototype,"initCollapsed",null);_.Q([_.jJ("canShowMore"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ln.prototype,"fillRestIfNotCollapsible",null);_.Q([_.u({is:"ytd-grid-renderer",disableElementRegistration:!0})],ln);
_.D(ln,"ytd-grid-renderer",function(){if(IjM!==void 0)return IjM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return IjM=W},{mode:_.PJ("kevlar_poly_si_batch_j025")?1:2});var Cd=function(){return _.S.apply(this,arguments)||this};
_.C(Cd,_.S);
Cd.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"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Cd.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Cd.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Cd.prototype,"data",void 0);_.Q([_.u({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Cd);
_.D(Cd,"ytd-carousel-ad-renderer",function(){if(ZXH!==void 0)return ZXH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ZXH=W},{mode:1});var u86;var Ia=function(){return _.S.apply(this,arguments)||this};
_.C(Ia,_.S);_.p=Ia.prototype;_.p.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"}}}};
_.p.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Ia.JSC$15373_CLICK_LOCATION_ID_MAP))};
_.p.onSitelinkTap=function(W){W.stopPropagation();var B,z,G=W==null?void 0:(B=W.model)==null?void 0:(z=B.item)==null?void 0:z.onTap;G&&this.ytSparklesClickLocationBehavior.handleClick(G,W,!1)};
_.p.onTap=function(W){var B=this.data&&this.data.content&&this.data.content.navigationEndpoint;B&&this.ytSparklesClickLocationBehavior.handleClick(B,W,!1)};
_.p.sendImpression=function(){if(this.data&&this.data.content)for(var W=_.A(this.data.content.impressionEndpoints||[]),B=W.next();!B.done;B=W.next()){B=_.A(B.value.loggingUrls||[]);for(var z=B.next();!z.done;z=B.next())z=z.value,z.baseUrl&&qX(z.baseUrl,z.attributionSrcMode)}};
Ia.prototype.onTap=Ia.prototype.onTap;Ia.prototype.dataChanged=Ia.prototype.dataChanged;Ia.JSC$15373_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"]]);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ia.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Sv.YtSparklesClickLocationBehavior),_.y("design:type",Object)],Ia.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ia.prototype,"data",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ia.prototype,"dataChanged",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Ia.prototype,"onTap",null);_.Q([_.u({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Ia);
_.D(Ia,"ytd-promoted-sparkles-text-search-renderer",function(){if(u86!==void 0)return u86;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return u86=W},{mode:1});var eKD;var oa=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.C(oa,_.S);_.p=oa.prototype;
_.p.configureRendererStamper=function(){return{"data.menu":{id:_.r("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]]"}}}}}};
_.p.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.p.computeHasAdBadge=function(W){return!(W==null||!W.adBadge)};
_.p.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",oa.JSC$15382_DEFAULT_AD_BADGE_RENDERER),_.Pf(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,oa.JSC$15382_CLICK_LOCATION_ID_MAP))};
_.p.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var W;(((W=this.data)==null?void 0:W.impressionCommands)||[]).forEach(function(B){B=_.A(B.loggingUrls||[]);for(var z=B.next();!z.done;z=B.next())z=z.value,z.baseUrl&&qX(z.baseUrl,z.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.p.onTap=function(W){var B,z=(B=this.data)==null?void 0:B.navigationEndpoint,G;(B=(G=this.data)==null?void 0:G.thumbnailNavigationEndpoint)&&_.Ag(_.AH(W),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(B,W,!1):z&&this.ytSparklesClickLocationBehavior.handleClick(z,W,!1)};
_.p.handleMuteAd=function(){this.collapsed=!0};
_.p.attached=function(){var W=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.G5.Object.defineProperties(oa.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var W;return!(((W=this.data)==null?void 0:W.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var W;return!(((W=this.data)==null?void 0:W.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
oa.prototype.dataChanged=oa.prototype.dataChanged;
oa.JSC$15382_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"]]);
oa.JSC$15382_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.kq("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],oa.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.Q([_.h(E7),_.y("design:type",Object)],oa.prototype,"ytdActiveViewBehavior",void 0);
_.Q([_.h([_.ye.YtActionHandlerBehavior]),_.y("design:type",Object)],oa.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.Sv.YtSparklesClickLocationBehavior),_.y("design:type",Object)],oa.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],oa.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],oa.prototype,"collapsed",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],oa.prototype,"useBiggerThumbs",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.EA("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],oa.prototype,"biggerThumbsStyle",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.y("design:type",Boolean)],oa.prototype,"fixAlignmentSmallScreens",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs_square")}}),
_.y("design:type",Boolean)],oa.prototype,"useBiggerThumbsSquare",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data.mediaHoverOverlay"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oa.prototype,"hideHoverOverlay",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.promotedSparklesWebStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oa.prototype,"webSearchLayout",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oa.prototype,"webSearchLayoutLandscape",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oa.prototype,"webSearchLayoutSquare",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.promotedSparklesWebStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oa.prototype,"sparklesCtaNoBackground",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.actionButton"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oa.prototype,"hideActionButton",null);_.Q([_.F({computed:"computeButtonOverride(uiUpdate)"}),_.y("design:type",Object)],oa.prototype,"buttonOverride",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.y("design:type",Boolean)],oa.prototype,"hasNewAdBadge",void 0);_.Q([_.H("data.promotedSparklesWebStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oa.prototype,"useRoundedBadge",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oa.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],oa);
_.D(oa,"ytd-promoted-sparkles-web-renderer",function(){if(eKD!==void 0)return eKD;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return eKD=W},{mode:1});var mNU;var hT=function(){var W=_.S.apply(this,arguments)||this;W.isInlinePreviewTriggered=!1;W.enableMonoStyle=_.r("enable_default_mono_cta_migration_web_client");return W};
_.C(hT,_.S);_.p=hT.prototype;_.p.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]]"}}}}}};
_.p.computeShowCta=function(W){return!(W==null||!W.ctaRenderer)};
_.p.onCtaClick=function(){var W,B,z,G=(W=this.data)==null?void 0:(B=W.ctaRenderer)==null?void 0:(z=B.buttonRenderer)==null?void 0:z.command;G&&this.ytComponentBehavior.resolveCommand(G)};
_.p.onWatchButtonClick=function(){var W,B,z,G=(W=this.data)==null?void 0:(B=W.watchButtonRenderer)==null?void 0:(z=B.buttonRenderer)==null?void 0:z.command;G&&this.ytComponentBehavior.resolveCommand(G)};
_.p.onTap=function(){};
_.p.dataChanged=function(){if(this.data){var W;_.r("enable_inline_muted_playback_on_web_search")&&((W=this.data)==null?0:W.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",hT.JSC$15386_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",hT.JSC$15386_DEFAULT_CLICK_LOCATION_BEHAVIOR,hT.JSC$15386_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"))}};
_.p.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var W=_.A(this.data.impressionUrls),B=W.next();!B.done;B=W.next())B=B.value,jB0(B,O88(B));this.data.impressionsFired=!0}};
_.p.maybeComputeHref=function(){return null};
_.p.computeIsShortDR=function(W){return!(W==null||!W.watchButtonRenderer)&&!(W==null||!W.ctaRenderer)&&!!this.enableShortDR};
_.p.computeIsNewUiOrShortDr=function(W){return!!this.enableUiUpdate||this.computeIsShortDR(W)};
_.p.computeIsNewUiAndNotShortDr=function(W){return!!this.enableUiUpdate&&!this.computeIsShortDR(W)};
_.p.computeHideAvatar=function(W){return!((W==null?0:W.channelThumbnail)&&this.computeIsNewUiOrShortDr(W))};
_.p.onClick=function(W){var B,z=(B=this.data)==null?void 0:B.navigationEndpoint;if(this.enableShortDR&&z&&(_.k(z,_.W0)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(z,W,!!_.k(z,_.W0)),W.stopPropagation();else if(z&&_.k(z,_.W0))this.ytSparklesClickLocationBehavior.handleClick(z,W,!0),W.stopPropagation();else if(z){var G,Y;((G=this.data)==null?0:G.navigationEndpoint)&&((Y=this.data)==null?0:Y.adPlaybackContextParams)&&(B=this.data.navigationEndpoint,W=this.data.adPlaybackContextParams,
B.commandMetadata&&_.k(B.commandMetadata,_.Z4)&&_.k(B.commandMetadata,_.Z4).url&&(B=_.Uw(_.k(B.commandMetadata,_.Z4).url).adurl)&&_.Oix(B)&&_.Yq(_.Lt(B),{encoded_ad_playback_context:W}));this.ytComponentBehavior.resolveCommand(z)}};
_.p.computeButtonOverride=function(W){if(this.computeIsNewUiOrShortDr(W))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.p.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.p.onThumbnailContainerClick=function(W){this.onClick(W)};
_.p.computeThumbnailWidth=function(W,B){return W?B==="MASSIVE"?600:B==="BIG"?500:B==="MEDIUM"?450:420:360};
_.p.attached=function(){var W=this,B;_.r("enable_inline_muted_playback_on_web_search")&&((B=this.data)==null?0:B.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){var W;_.r("enable_inline_muted_playback_on_web_search")&&((W=this.data)==null?0:W.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15387_inlinePreviewHoverListener=q$({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:WBd})};
_.p.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$15387_inlinePreviewHoverListener)==null||zH(W)};
hT.prototype.dataChanged=hT.prototype.dataChanged;hT.prototype.onTap=hT.prototype.onTap;hT.JSC$15386_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.kq("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};hT.JSC$15386_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
hT.JSC$15386_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"}];_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],hT.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);_.Q([_.h(E7),_.y("design:type",Object)],hT.prototype,"ytdActiveViewBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],hT.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.Sv.YtSparklesClickLocationBehavior),_.y("design:type",Object)],hT.prototype,"ytSparklesClickLocationBehavior",void 0);
_.Q([_.Hf("#main-container"),_.y("design:type",HTMLElement)],hT.prototype,"mainContainer",void 0);_.Q([_.F(),_.y("design:type",Object)],hT.prototype,"isInlinePreviewTriggered",void 0);_.Q([_.F(),_.y("design:type",Object)],hT.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],hT.prototype,"useBiggerThumbs",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("enable_video_display_compact_button_group_for_desktop_search")}}),
_.y("design:type",Boolean)],hT.prototype,"enableShortDR",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("enable_vac_ui_update_for_desktop_search")}}),
_.y("design:type",Boolean)],hT.prototype,"enableUiUpdate",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.EA("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],hT.prototype,"biggerThumbsStyle",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.y("design:type",Boolean)],hT.prototype,"showCta",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.y("design:type",Boolean)],hT.prototype,"isShortDr",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.y("design:type",Boolean)],hT.prototype,"isShortDrOrNewUi",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.y("design:type",Boolean)],hT.prototype,"isNewUiAndNotShortDr",void 0);_.Q([_.F({computed:"computeButtonOverride(data)"}),_.y("design:type",Object)],hT.prototype,"buttonOverride",void 0);_.Q([_.F({computed:"computeSecondaryButtonOverride(data)"}),_.y("design:type",Object)],hT.prototype,"secondaryButtonOverride",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],hT.prototype,"enableMonoStyle",void 0);
_.Q([_.Hf("ytd-thumbnail"),_.y("design:type",HTMLElement)],hT.prototype,"thumbnail",void 0);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hT.prototype,"onTap",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hT.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],hT);
_.D(hT,"ytd-promoted-video-renderer",function(){if(mNU!==void 0)return mNU;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return mNU=W},{mode:1});var xN7;var Hl=function(){var W=_.S.apply(this,arguments)||this;W.useRoundedBadge=!0;W.sitelinkIds=[];return W};
_.C(Hl,_.S);_.p=Hl.prototype;
_.p.configureRendererStamper=function(){return{"data.menu":{id:_.r("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]]"}}}}}};
_.p.dataChanged=function(){var W;(W=this.data)!=null&&W.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Hl.JSC$15392_CLICK_LOCATION_ID_MAP)};
_.p.onTap=function(W){var B,z=(B=this.data)==null?void 0:B.navigationCommand;z&&!_.Ag(_.AH(W),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(z,W,!1)};
_.p.onSitelinkTap=function(W){var B,z,G=W==null?void 0:(B=W.model)==null?void 0:(z=B.item)==null?void 0:z.onTap;G&&this.ytSparklesClickLocationBehavior.handleClick(G,W,!1)};
_.p.configureSitelinkClickTargets=function(){var W=this,B,z,G=(B=this.data)==null?void 0:(z=B.clickLocationTargets)==null?void 0:z.find(function(Y){return Y.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
G&&_.tH(this.hostElement).querySelectorAll(".sitelink").forEach(function(Y){_.Pf(Y,"yt-simple-endpoint",!0);W.sitelinkIds.push(Y.id);var d,E;(d=W.ytSparklesClickLocationBehavior)==null||(E=d.clickTargetMap)==null||E.set(Y.id,G)})};
_.p.sendImpression=function(){var W,B,z=((W=this.data)==null?void 0:(B=W.impressionCommand)==null?void 0:B.loggingUrls)||[];W=_.A(z);for(B=W.next();!B.done;B=W.next())B=B.value,B.baseUrl&&qX(B.baseUrl,B.attributionSrcMode)};
_.p.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.G5.Object.defineProperties(Hl.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Hl.prototype.onTap=Hl.prototype.onTap;Hl.prototype.dataChanged=Hl.prototype.dataChanged;Hl.JSC$15392_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"]]);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Hl.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Sv.YtSparklesClickLocationBehavior),_.y("design:type",Object)],Hl.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Hl.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Hl.prototype,"showFavicon",null);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],Hl.prototype,"useBiggerThumbs",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.EA("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],Hl.prototype,"biggerThumbsStyle",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.y("design:type",Boolean)],Hl.prototype,"enableThumbnailScalingFix",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hl.prototype,"dataChanged",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Hl.prototype,"onTap",null);_.Q([_.u({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Hl);
_.D(Hl,"ytd-text-image-no-button-layout-renderer",function(){if(xN7!==void 0)return xN7;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return xN7=W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var DN9;var Fy=function(){var W=_.S.apply(this,arguments)||this;W.isInlinePlaybackState=!1;W.uiUpdate=_.r("web_modern_buttons");W.hideCta=_.r("hide_cta_for_home_web_video_ads");W.noBottomMargin=!1;W.animateInTimeStamp=_.iO("hide_cta_for_home_web_video_ads_animate_in_time");W.animateInCta=!1;W.isHovered=!1;W.enableMonoStyle=_.r("enable_default_mono_cta_migration_web_client");W.player=null;W.JSC$15399_playerEvents=new Map;W.JSC$15399_preventProgressSaveTimer=null;W.delayedCtaJobId=null;return W};
_.C(Fy,_.S);_.p=Fy.prototype;_.p.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]]"}}}}}};
_.p.attached=function(){this.JSC$15399_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15399_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.r("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.p.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15399_playerEvents)};
_.p.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Fy.JSC$15398_DEFAULT_CLICK_LOCATION_BEHAVIOR,Fy.JSC$15398_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.p.hoverChanged=function(){var W=this;this.delayedCtaJobId&&(_.fg.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.r("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.OM(_.fg,function(){W.buttonContainer.classList.add("show-delayed-buttons")},_.iO("delayed_cta_on_web_delay_milliseconds")))};
_.p.setPlayer=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return(B=_.wV(W.hostElement,"yt-get-inline-preview-player-action"))&&B[0]?z.yield(B[0].getPlayerPromise(),3):z.jumpTo(0);W.player=z.yieldResult;W.ytPlayerListenerBehavior.listenToPlayerEvents(W.player,W.JSC$15399_playerEvents);_.HG(z)})};
_.p.onPlaybackStart=function(){var W=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15399_preventProgressSaveTimer=_.P2(_.fg,function(){W.JSC$15399_preventProgressSaveTimer=null},1E4))};
_.p.onVideoProgress=function(W){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&W>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.p.resetPreventProgressSaveTimer=function(){_.fg.cancelJob(this.JSC$15399_preventProgressSaveTimer);this.JSC$15399_preventProgressSaveTimer=null};
_.p.getSimpleString=function(W){return _.zR(W)};
_.p.onClick=function(W){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var B,z=(B=this.data)==null?void 0:B.navigationEndpoint,G;B=(G=this.data)==null?void 0:G.channelEndpoint;var Y,d;((d=_.k((Y=this.data)==null?void 0:Y.adCtaButton,_.Ep))==null?0:d.command)&&_.Ag(_.AH(W),this.hostElement,["call-to-action"])||(B&&_.Ag(_.AH(W),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(B,W,!1):!_.Ag(_.AH(W),this.hostElement,
["secondary-button"])&&z&&(_.r("enable_short_dr_for_desktop_launchable")?(G=!!_.k(z,_.W0),this.isInlinePlaybackState&&G&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(z,W,G)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(z,W,!0))))}};
_.p.updateWatchEndpointStartTime=function(){var W,B;this.player&&((W=this.data)==null?0:W.inlinePlaybackEndpoint)&&((B=this.data)==null?0:B.navigationEndpoint)&&!this.JSC$15399_preventProgressSaveTimer&&(W=Math.floor(this.player.getCurrentTime()),_.k(this.data.navigationEndpoint,_.W0).startTimeSeconds=W,_.k(this.data.inlinePlaybackEndpoint,_.W0).startTimeSeconds=W)};
_.p.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.p.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.G5.Object.defineProperties(Fy.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.r("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var W,B;return!((W=this.data)==null||!W.watchButton)&&!((B=this.data)==null||!B.adCtaButton)}}});
Fy.prototype.hoverChanged=Fy.prototype.hoverChanged;Fy.prototype.dataChanged=Fy.prototype.dataChanged;
Fy.JSC$15398_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"]]);
Fy.JSC$15398_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"}];
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Fy.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.Sv.YtSparklesClickLocationBehavior),_.y("design:type",Object)],Fy.prototype,"ytSparklesClickLocationBehavior",void 0);
_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",_.kI)],Fy.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Fy.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fy.prototype,"isInlinePlaybackState",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Fy.prototype,"miniMode",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fy.prototype,"uiUpdate",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fy.prototype,"hideCta",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fy.prototype,"noBottomMargin",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fy.prototype,"animateInCta",void 0);_.Q([_.F({computed:"computeButtonOverride(uiUpdate)"}),_.y("design:type",Object)],Fy.prototype,"buttonOverride",void 0);
_.Q([_.F({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.y("design:type",Object)],Fy.prototype,"secondaryButtonOverride",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fy.prototype,"isHovered",void 0);_.Q([_.Hf("#button-container"),_.y("design:type",HTMLElement)],Fy.prototype,"buttonContainer",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Fy.prototype,"typographyBump",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("typographyBump"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Fy.prototype,"typographyBumpV2",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fy.prototype,"enableMonoStyle",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fy.prototype,"dataChanged",null);
_.Q([_.oN("isHovered"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fy.prototype,"hoverChanged",null);_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Fy.prototype,"isButtonGroup",null);_.Q([_.u({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Fy);
_.D(Fy,"ytd-ad-inline-playback-meta-block",function(){if(DN9!==void 0)return DN9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return DN9=W},{mode:_.PJ("kevlar_poly_si_batch_j065")?1:2});var QLM;var SM=function(){var W=_.S.apply(this,arguments)||this;W.noBottomMargin=!1;W.isInlinePreviewTriggered=!1;W.JSC$15404_activeViewMeasurementDataResolver=_.zN();return W};
_.C(SM,_.S);_.p=SM.prototype;_.p.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.attached=function(){var W=this;this.updateInlinePreviewHoverListeners();this.JSC$15404_activeViewMeasurementDataResolver.promise.then(function(B){W.ytdActiveViewBehavior.enableActiveViewMeasurement(B,15)});
_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){this.clearInlinePreviewHoverListeners();_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15404_inlinePreviewHoverListener=q$({mediaRenderer:this,lockupElement:this.JSC$15404_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:WBd})};
_.p.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$15404_inlinePreviewHoverListener)==null||zH(W)};
_.p.onDataChanged=function(){var W;((W=this.data)==null?0:W.activeView)&&this.JSC$15404_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",SM.JSC$15403_DEFAULT_CLICK_LOCATION_BEHAVIOR,SM.JSC$15403_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"));var B;if((B=this.data)==
null?0:B.forceImpAutoplay){var z;(z=this.JSC$15404_inlinePreviewHoverListener)==null||oCt(z)}};
_.p.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.p.onThumbnailContainerClick=function(W){if(this.data&&this.data.navigationEndpoint){var B,z=(B=this.data)==null?void 0:B.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(z,W,!!_.k(z,_.W0));W.stopPropagation()}};
_.p.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.p.impressionLog=function(){var W=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var B,z,G=(z=_.k((B=this.data)==null?void 0:B.onImpression,_.tr))==null?void 0:z.commands;G&&(G.forEach(function(Y){Y.clickTrackingParams&&delete Y.clickTrackingParams;W.ytComponentBehavior.resolveCommand(Y)}),this.data.impressionsFired=!0)}};
_.G5.Object.defineProperties(SM.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$15404_inlinePreviewHoverListener)==null?0:TX(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
SM.prototype.onTypographyBumpChanged=SM.prototype.onTypographyBumpChanged;SM.prototype.onDataChanged=SM.prototype.onDataChanged;SM.JSC$15403_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);SM.JSC$15403_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"}];
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],SM.prototype,"ytComponentBehavior",void 0);_.Q([_.h(E7),_.y("design:type",Object)],SM.prototype,"ytdActiveViewBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],SM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],SM.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.h(_.P$),_.y("design:type",Object)],SM.prototype,"ytdLockupBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],SM.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.Sv.YtSparklesClickLocationBehavior),_.y("design:type",Object)],SM.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],SM.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],SM.prototype,"noBottomMargin",void 0);
_.Q([_.F(),_.y("design:type",Object)],SM.prototype,"isInlinePreviewTriggered",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.eL}),_.y("design:type",Boolean)],SM.prototype,"miniMode",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],SM.prototype,"typographyBump",void 0);_.Q([_.Hf("ytd-thumbnail"),_.y("design:type",HTMLElement)],SM.prototype,"thumbnail",void 0);_.Q([_.Hf("#dismissible"),_.y("design:type",HTMLElement)],SM.prototype,"JSC$15404_dismissibleMedia",void 0);
_.Q([_.Hf("ytd-ad-inline-playback-meta-block"),_.y("design:type",HTMLElement)],SM.prototype,"adInlinePlaybackMetaBlock",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SM.prototype,"onDataChanged",null);_.Q([_.jJ("typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SM.prototype,"onTypographyBumpChanged",null);
_.Q([_.H("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],SM.prototype,"isHovered",null);_.Q([_.u({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],SM);
_.D(SM,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(QLM!==void 0)return QLM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return QLM=W},{mode:1});var ykU;var bn=function(){var W=_.S.apply(this,arguments)||this;W.isInlinePreviewTriggered=!1;W.JSC$15407_activeViewMeasurementDataResolver=_.zN();return W};
_.C(bn,_.S);_.p=bn.prototype;_.p.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.attached=function(){var W=this;this.updateInlinePreviewHoverListeners();this.JSC$15407_activeViewMeasurementDataResolver.promise.then(function(B){W.ytdActiveViewBehavior.enableActiveViewMeasurement(B,15)})};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15407_inlinePreviewHoverListener=q$({mediaRenderer:this,lockupElement:this.JSC$15407_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:WBd})};
_.p.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$15407_inlinePreviewHoverListener)==null||zH(W)};
_.p.onDataChanged=function(){var W;((W=this.data)==null?0:W.activeView)&&this.JSC$15407_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",bn.JSC$15406_DEFAULT_CLICK_LOCATION_BEHAVIOR,bn.JSC$15406_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"))};
_.p.onThumbnailContainerClick=function(W){if(this.data&&this.data.navigationEndpoint){var B,z=(B=this.data)==null?void 0:B.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(z,W,!0);W.stopPropagation()}};
_.p.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.p.impressionLog=function(){var W=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var B,z,G=(z=_.k((B=this.data)==null?void 0:B.onImpression,_.tr))==null?void 0:z.commands;G&&(G.forEach(function(Y){Y.clickTrackingParams&&delete Y.clickTrackingParams;_.dO().resolve(_.p4).resolveCommand(Y,{form:{element:W.hostElement}})}),this.data.impressionsFired=!0)}};
_.G5.Object.defineProperties(bn.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$15407_inlinePreviewHoverListener)==null?0:TX(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
bn.prototype.onDataChanged=bn.prototype.onDataChanged;bn.JSC$15406_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);bn.JSC$15406_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"}];_.Q([_.h(E7),_.y("design:type",Object)],bn.prototype,"ytdActiveViewBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],bn.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],bn.prototype,"ytdLockupBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],bn.prototype,"ytdReduxBehavior",void 0);
_.Q([_.h(_.Sv.YtSparklesClickLocationBehavior),_.y("design:type",Object)],bn.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],bn.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],bn.prototype,"isInlinePreviewTriggered",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.eL}),_.y("design:type",Boolean)],bn.prototype,"miniMode",void 0);_.Q([_.Hf("ytd-thumbnail"),_.y("design:type",HTMLElement)],bn.prototype,"thumbnail",void 0);
_.Q([_.Hf("#dismissible"),_.y("design:type",HTMLElement)],bn.prototype,"JSC$15407_dismissibleMedia",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bn.prototype,"onDataChanged",null);_.Q([_.H("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bn.prototype,"isHovered",null);_.Q([_.u({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],bn);
_.D(bn,"ytd-video-display-full-buttoned-renderer",function(){if(ykU!==void 0)return ykU;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ykU=W},{mode:1});var ie=function(W,B,z,G){G=G===void 0?!1:G;_.zT.call(this,W);this.adsClientErrorMessage=z;this.aggressivelySample=G;this.args=[];B&&this.args.push(B)};
_.C(ie,_.zT);var pk=function(W,B,z,G){G=G===void 0?!1:G;_.zT.call(this,W);this.adsClientErrorMessage=z;this.aggressivelySample=G;this.args=[];B&&this.args.push(B)};
_.C(pk,_.zT);var qQd=function(W){_.bA.call(this);var B=this;this.initializationFunction=W;this.instance=null;this.addOnDisposeCallback(function(){_.AI(B.instance);B.instance=null})};
_.C(qQd,_.bA);qQd.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Rn("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var G9X=function(){var W=new Map;[].forEach(function(B){W.set(B.JSC$30487_getType(),B)});
this.getters=W};new Promise(function(){});var aQr=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"]]),UW2=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"}]]),ns6=function(W){this.experimentApiProvider=W;W=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=W<.1};var jM=function(W,B,z,G){_.bA.call(this);this.adsControlFlowEventListeners=B;this.adEventLogger=z;this.experimentApiProvider=G;this.adsControlFlowManagerHelper=W(this,this,this,this,this);_.rH(this,this.adsControlFlowManagerHelper);W=_.A(B);for(B=W.next();!B.done;B=W.next())_.rH(this,B.value)};
_.C(jM,_.bA);var NT7=function(W,B,z,G){fd(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",B,z,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,G);W=_.A(W.adsControlFlowEventListeners);for(G=W.next();!G.done;G=W.next())NT7(G.value,B,z)};
_.p=jM.prototype;_.p.onOpportunityProcessedExternallyManaged=function(W,B,z,G){fd(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",W,z,B,void 0,void 0,void 0,void 0,void 0,void 0,void 0,G)};
_.p.onSlotReceivedExternallyManaged=function(W,B){OG(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",W,B)};
_.p.onSlotEntered=function(W){if(Xy(this.adsControlFlowManagerHelper,W)!=null){OG(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",W);this.adsControlFlowManagerHelper.onSlotEntered(W);for(var B=_.A(this.adsControlFlowEventListeners),z=B.next();!z.done;z=B.next())z.value.onSlotEntered(W);if(Xy(this.adsControlFlowManagerHelper,W)!=null&&Xy(this.adsControlFlowManagerHelper,W).isOccupyingSlotType()&&Kd(this.adsControlFlowManagerHelper,W)&&!$Nd(this.adsControlFlowManagerHelper,W)){var G;un(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",W,(G=Kd(this.adsControlFlowManagerHelper,W))!=null?G:void 0);W=Xy(this.adsControlFlowManagerHelper,W);W.slotLifecycleStage!=="entered"&&eM(W.slot,W.slotLifecycleStage,"enterLayoutForSlot");W.slotLifecycleStage="rendering";W.registeredLayoutRenderingAdapter.startRendering(W.layout)}}};
_.p.onSlotExited=function(W){if(Xy(this.adsControlFlowManagerHelper,W)!=null){OG(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",W);this.adsControlFlowManagerHelper.onSlotExited(W);for(var B=_.A(this.adsControlFlowEventListeners),z=B.next();!z.done;z=B.next())z.value.onSlotExited(W);Xy(this.adsControlFlowManagerHelper,W)!=null&&Xy(this.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests&&LBR(this,W)}};
_.p.onLayoutReceivedExternallyManaged=function(W,B,z){W.managerLayer!=="core"&&un(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",W,B,z)};
var UNH=function(W,B,z){if(Xy(W.adsControlFlowManagerHelper,B)!=null){un(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",B,z);W=_.A(W.adsControlFlowEventListeners);for(var G=W.next();!G.done;G=W.next())UNH(G.value,B,z)}};
jM.prototype.onLayoutExited=function(W,B,z){if(Xy(this.adsControlFlowManagerHelper,W)!=null){un(this.adEventLogger,M6Q(z),W,B);this.adsControlFlowManagerHelper.onLayoutExited(W,B);for(var G=_.A(this.adsControlFlowEventListeners),Y=G.next();!Y.done;Y=G.next())Y.value.onLayoutExited(W,B,z);(z=Kd(this.adsControlFlowManagerHelper,W))&&B.layoutId===z.layoutId&&MG4(this,W)}};
jM.prototype.disposeInternal=function(){var W=ajD(this.adsControlFlowManagerHelper);W=_.A(W);for(var B=W.next();!B.done;B=W.next())LBR(this,B.value);_.bA.prototype.disposeInternal.call(this)};
var LBR=function(W,B){if(Xy(W.adsControlFlowManagerHelper,B)!=null)if(Xy(W.adsControlFlowManagerHelper,B).JSC$30517_isSlotExitRequested()||Xy(W.adsControlFlowManagerHelper,B).JSC$30517_isLayoutExitRequested())Xy(W.adsControlFlowManagerHelper,B).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(Xy(W.adsControlFlowManagerHelper,B).isOccupyingSlotType())Xy(W.adsControlFlowManagerHelper,B).markedForUnscheduleAfterOutboundAdapterRequests=!0,MG4(W,B);else if(Xy(W.adsControlFlowManagerHelper,B).JSC$30517_isSlotFillRequested())Xy(W.adsControlFlowManagerHelper,
B).markedForUnscheduleAfterOutboundAdapterRequests=!0,Xy(W.adsControlFlowManagerHelper,B)!=null&&(OG(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",B),B=Xy(W.adsControlFlowManagerHelper,B),B.fulfillmentLifecycleStage="fill_cancel_requested",B.registeredFulfillmentAdapter.cancelSlotFilling());else{var z=Kd(W.adsControlFlowManagerHelper,B),G;W.experimentApiProvider.get();(G=_.r("h5_enable_layout_unscheduling_events"))&&(z?RKF(W,B,z):_.Rn(Error("Oh"),B,z,void 0,!1));OG(W.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",B);var Y=Xy(W.adsControlFlowManagerHelper,B),d=B.slotEntryTrigger,E=Y.registeredSlotEntryTriggerAdapters.get(d.triggerId);E&&(E.unregisterTrigger(d),Y.registeredSlotEntryTriggerAdapters.delete(d.triggerId));d=_.A(B.slotFulfillmentTriggers);for(E=d.next();!E.done;E=d.next()){E=E.value;var v=Y.registeredFulfillmentTriggerAdapters.get(E.triggerId);v&&(v.unregisterTrigger(E),Y.registeredFulfillmentTriggerAdapters.delete(E.triggerId))}d=_.A(B.slotExpirationTriggers);
for(E=d.next();!E.done;E=d.next())if(E=E.value,v=Y.registeredExpirationTriggerAdapters.get(E.triggerId))v.unregisterTrigger(E),Y.registeredExpirationTriggerAdapters.delete(E.triggerId);Y.hasLayout()&&(d=Y.layout,mn(Y,d.layoutExitNormalTriggers),mn(Y,d.layoutExitSkipTriggers),mn(Y,d.layoutExitMuteTriggers),mn(Y,d.layoutExitUserInputSubmittedTriggers),mn(Y,d.layoutExitUserCancelledTriggers));Y.registeredFulfillmentAdapter=void 0;Y.registeredSlotAdapter!=null&&(Y.registeredSlotAdapter.release(),Y.registeredSlotAdapter=
void 0);Y.registeredLayoutRenderingAdapter!=null&&(Y.registeredLayoutRenderingAdapter.release(),Y.registeredLayoutRenderingAdapter=void 0);Y=W.adsControlFlowManagerHelper;Xy(Y,B)&&(Y=WID(Y,B.slotType+"_"+B.slotPhysicalPosition))&&Y.delete(B.slotId);OG(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",B);W=_.A(W.adsControlFlowEventListeners);for(Y=W.next();!Y.done;Y=W.next())Y=Y.value,Y.onSlotUnscheduled(B),z&&!G&&RKF(Y,B,z)}},RKF=function(W,B,z){un(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
B,z);
un(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",B,z);W=_.A(W.adsControlFlowEventListeners);for(var G=W.next();!G.done;G=W.next())G=G.value,z&&RKF(G,B,z)},MG4=function(W,B){if(Xy(W.adsControlFlowManagerHelper,B)!=null&&Xy(W.adsControlFlowManagerHelper,B).isOccupyingSlotType()){var z=Kd(W.adsControlFlowManagerHelper,B);
if(z&&$Nd(W.adsControlFlowManagerHelper,B)){if(Xy(W.adsControlFlowManagerHelper,B)!=null){var G=W.adEventLogger,Y;var d=((Y=UW2.get("abandoned"))==null?void 0:Y.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";un(G,d,B,z);W=Xy(W.adsControlFlowManagerHelper,B);W.slotLifecycleStage!=="rendering"&&eM(W.slot,W.slotLifecycleStage,"exitLayout");W.slotLifecycleStage="rendering_stop_requested";W.registeredLayoutRenderingAdapter.stopRendering(z,"abandoned")}}else{OG(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
B);try{G=Xy(W.adsControlFlowManagerHelper,B);if(!G)throw new pk("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");G.slotLifecycleStage!=="enter_requested"&&G.slotLifecycleStage!=="entered"&&G.slotLifecycleStage!=="rendering"&&eM(G.slot,G.slotLifecycleStage,"exitSlot");G.slotLifecycleStage="exit_requested";if(G.registeredSlotAdapter===void 0)throw G.slotLifecycleStage="scheduled",new pk("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
G.registeredSlotAdapter.exit()}catch(E){E instanceof pk&&E.adsClientErrorMessage?(ByM(W.adEventLogger,E.adsClientErrorMessage,B),_.Rn(E,B,void 0,void 0,E.aggressivelySample)):(ByM(W.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",B),_.Rn(E,B))}}}};var xD=function(W,B,z,G,Y,d){_.bA.call(this);this.registry=W;this.experimentApiProvider=d;this.slotMap=new Map};
_.C(xD,_.bA);var WID=function(W,B){return(W=W.slotMap.get(B))?W:new Map},Xy=function(W,B){return WID(W,B.slotType+"_"+B.slotPhysicalPosition).get(B.slotId)},ajD=function(W){var B=[];
W.slotMap.forEach(function(z){z=_.A(z.values());for(var G=z.next();!G.done;G=z.next())B.push(G.value.slot)});
return B};
xD.prototype.onSlotEntered=function(W){W=Xy(this,W);W.slotLifecycleStage!=="enter_requested"&&eM(W.slot,W.slotLifecycleStage,"onSlotEntered");W.slotLifecycleStage="entered"};
var $Nd=function(W,B){W=Xy(W,B);return W.hasLayout()&&W.isRendering()},Kd=function(W,B){(W=Xy(W,B))?W.hasLayout()&&!W.layout&&_.Rn("Unexpected empty layout",B):_.Rn("Unexpected undefined slotState",B);
return(W==null?void 0:W.layout)||null};
xD.prototype.onSlotExited=function(W){W=Xy(this,W);W.slotLifecycleStage!=="exit_requested"&&eM(W.slot,W.slotLifecycleStage,"onSlotExited");W.slotLifecycleStage="scheduled"};
xD.prototype.onLayoutExited=function(W,B){W=Xy(this,W);W.isPrimaryLayout(B)&&(W.slotLifecycleStage!=="rendering_stop_requested"&&eM(W.slot,W.slotLifecycleStage,"onLayoutExited"),W.slotLifecycleStage="entered")};
var mn=function(W,B){B=_.A(B);for(var z=B.next();!z.done;z=B.next()){z=z.value;var G=W.registeredLayoutExitTriggerAdapters.get(z.triggerId);G&&(G.unregisterTrigger(z),W.registeredLayoutExitTriggerAdapters.delete(z.triggerId))}},eM=function(W,B,z){_.Rn("Slot stage was "+B+" when calling method "+z,W)};var GZR=function(W){_.bA.call(this);this.deps=W;this.JSC$15457_adsControlFlowManager=zJ6(this)};
_.C(GZR,_.bA);var zJ6=function(W){var B=new jM(function(z,G,Y,d){return new xD(W.deps.registry,z,G,Y,d,W.deps.experimentApiProvider)},new Set(zh0(W.deps.registry).concat(W.deps.listeners)),W.deps.adEventLogger,W.deps.experimentApiProvider);
_.rH(W,B);return B};var mju=function(){};var YxU=function(W,B){_.bA.call(this);this.experimentApiProvider=W;this.eventLoggingSettingsProvider=B;this.eventCount=0;this.premiumAdSeenEventLogger=xjR()()};
_.C(YxU,_.bA);YxU.prototype.logEvent=function(W){fd(this,W)};
var OG=function(W,B,z,G){fd(W,B,void 0,void 0,void 0,z,void 0,void 0,void 0,z.adSlotLoggingData,void 0,void 0,G)},un=function(W,B,z,G,Y){fd(W,B,void 0,void 0,void 0,z,G?G:void 0,void 0,void 0,z.adSlotLoggingData,G?G.adLayoutLoggingData:void 0,void 0,Y);
z=_.dO().resolve(_.Y8(Ig))==null?void 0:og();B=z==null?void 0:z.adsSeenHotConfig;z=z==null?void 0:z.adsHotConfig;(B==null?0:B.logOnAdsSeen)&&(z==null?0:z.webEnablePremiumAdsSeenLogging)&&d06(W,G?G:void 0,Y)},ByM=function(W,B,z){fd(W,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,z,void 0,void 0,void 0,z.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:B})},fd=function(W,B,z,G,Y,d,E,v,c,J,g,t,P){P=P===void 0?0:P;
psU(W.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+B,"slot:",d,"layout:",E,"ping:",v,"Opportunity:",{opportunityType:z,associatedSlotId:G,slotsFromOpportunity:Y,triggerBundle:c,adSlotLoggingData:J,adLayoutLoggingData:g});try{var Z=function(){W.experimentApiProvider.get();if(B!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){B||_.Rn("Empty PACF event type",d,E);var l=W.eventLoggingSettingsProvider.get();var b;(b=l.alwaysIncludeDebugData)||(l.experimentApiProvider.get(),b=
!1);l=b;b={eventType:B,eventOrder:++W.eventCount};var O={};d&&(O.slotData=WY2(l,d));if(E){var K={type:E.layoutType,controlFlowManagerLayer:aQr.get(E.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};l&&(K.debugData={layoutId:E.layoutId});O.layoutData=K}v&&(O.pingData={pingDispatchStatus:v.dispatchStatus,serializedAdPingMetadata:v.ping.serializedAdPingMetadata,pingIndex:v.index});c&&(O.triggerData=RH0(c.trigger,c.category));z&&(O.opportunityData=BAQ(l,z,G,Y));b.adClientData=O;J&&(b.serializedSlotAdServingData=
J.serializedSlotAdServingDataEntry);g&&(b.serializedAdServingData=g.serializedAdServingDataEntry);t&&(b.errorInfo=t);_.Sy("adsClientStateChange",{adsClientEvent:b})}};
P&&P>0?_.CG(_.FU(),function(){return Z()},P):Z()}catch(l){psU(W.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.CG(_.FU(),function(){_.Rn(l instanceof Error?l:String(l),d,E,{pacf_message:"exception during pacf logging"})})}},d06=function(W,B,z){if(B){var G=B.adLayoutLoggingData;
_.CG(_.FU(),function(){W.premiumAdSeenEventLogger!=null&&G&&_.Sy("adsSeenClientLogging",{serializedAdServingDataEntry:G.serializedAdServingDataEntry})},z!=null?z:0)}};var Am7=function(W,B){YxU.call(this,W,B)};
_.C(Am7,YxU);var iB4=function(){},psU=function(W,B){return _.r(B)};var TyF=function(){var W=new EmR;this.JSC$15482_adsControlFlowManager=(new GZR(W)).JSC$15457_adsControlFlowManager},EmR=function(){_.bA.call(this);
var W=this;this.experimentApiProvider=new qQd(function(){return new iB4});
var B=new qQd(function(){return new ns6(W.experimentApiProvider)});
this.adEventLogger=new Am7(this.experimentApiProvider,B);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.C(EmR,_.bA);var vmM=function(){},cm6,DY=function(){cm6||(cm6=new vmM);
return cm6},Qn=function(W){if(!W.JSC$15493_externallyManagedSlotAdapterCallback){var B=(new TyF).JSC$15482_adsControlFlowManager;
W.JSC$15493_externallyManagedSlotAdapterCallback=B}return W.JSC$15493_externallyManagedSlotAdapterCallback},wsM=function(W,B,z){var G=B.opportunityType,Y=Error("Ph");
if(G!==void 0){var d=Qn(W);NT7(d,G,void 0,z)}else _.Rn(Y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});d=[];if(B.adSlotAndLayoutMetadata!==void 0){B=_.A(B.adSlotAndLayoutMetadata);for(var E=B.next();!E.done;E=B.next()){var v=E.value;if(E=v.adSlotMetadata)if(d.push(E),W.onSlotReceivedExternallyManaged(E,z),v.adLayoutMetadata){v=_.A(v.adLayoutMetadata);for(var c=v.next();!c.done;c=v.next())W.onLayoutReceivedExternallyManaged(E,c.value,z)}else z>0&&_.Rn("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
G,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else z>0&&_.Rn("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+G,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else z>0&&_.Rn("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+G,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(G!==void 0)W.onOpportunityProcessedExternallyManaged(G,d,void 0,z);else _.Rn(Y,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
vmM.prototype.onSlotReceivedExternallyManaged=function(W,B){W=AE(W);if(W instanceof pk)_.Rn(W,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Qn(this).onSlotReceivedExternallyManaged(W,B)};
vmM.prototype.onLayoutReceivedExternallyManaged=function(W,B,z){W=AE(W);B=Ytk(B);if(W instanceof pk)_.Rn(W,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(B instanceof ie)_.Rn(B,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Qn(this).onLayoutReceivedExternallyManaged(W,B,z)};
vmM.prototype.onOpportunityProcessedExternallyManaged=function(W,B,z,G){var Y=[];B=_.A(B);for(var d=B.next();!d.done;d=B.next())d=AE(d.value),d instanceof pk?_.Rn(d,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):Y.push(d);Qn(this).onOpportunityProcessedExternallyManaged(W,Y,z,G)};
var VCM=function(W,B){B=AE(B);if(B instanceof pk)_.Rn(B,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var z=Qn(W);OG(z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",B);z=_.A(z.adsControlFlowEventListeners);for(var G=z.next();!G.done;G=z.next())G=Xy(G.value,B),G.slotLifecycleStage!=="not_scheduled"&&eM(G.slot,G.slotLifecycleStage,"onSlotScheduled"),G.slotLifecycleStage="scheduled";W=Qn(W);OG(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",B);W=_.A(W.adsControlFlowEventListeners);
for(z=W.next();!z.done;z=W.next())z.value.onSlotEntered(B)}},JmR=function(W,B){B=AE(B);
if(B instanceof pk)_.Rn(B,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var z=Qn(W);OG(z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",B);z=_.A(z.adsControlFlowEventListeners);for(var G=z.next();!G.done;G=z.next())G.value.onSlotExited(B);W=Qn(W);OG(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",B);W=_.A(W.adsControlFlowEventListeners);for(z=W.next();!z.done;z=W.next())z.value.onSlotUnscheduled(B)}},gmM=function(W,B,z){B=AE(B);
z=Ytk(z);if(B instanceof pk)_.Rn(B,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(z instanceof ie)_.Rn(z,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var G=Qn(W);un(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",B,z);G=_.A(G.adsControlFlowEventListeners);for(var Y=G.next();!Y.done;Y=G.next())Y.value.onLayoutScheduled(B,z);W=Qn(W);un(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",B,z);W=_.A(W.adsControlFlowEventListeners);
for(G=W.next();!G.done;G=W.next())UNH(G.value,B,z)}},yn=function(W,B,z){B=AE(B);
z=Ytk(z);if(B instanceof pk)_.Rn(B,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(z instanceof ie)_.Rn(z,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var G=Qn(W);un(G.adEventLogger,M6Q("normal"),B,z);G=_.A(G.adsControlFlowEventListeners);for(var Y=G.next();!Y.done;Y=G.next())Y.value.onLayoutExited(B,z,"normal");W=Qn(W);W=_.A(W.adsControlFlowEventListeners);for(G=W.next();!G.done;G=W.next())RKF(G.value,B,z)}};_.qU=_.m(function(W){var B=_.EV(W,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});W=Object.assign({},B);var z=B.data;B=B.customCommandResolver;var G=(delete W.data,delete W.customCommandResolver,W);W=_.YF({visibilityCallback:function(v,c){var J,g=(J=z().interaction)==null?void 0:J.onFirstVisible;v&&(g&&_.aB(g),G.setOnErrorHandler()&&dcu(c))},
showOption:_.he});B=_.N$(function(){return z().interaction},B,function(){var v;
return(v=G.listenToTapEvent)==null?void 0:v.call(G)});
var Y=_.A(_.g4(!1,void 0,"wAC0Lc")),d=Y.next().value,E=Y.next().value;Y=_.lF(function(v){var c;((c=G.setTouchEndHandler)==null?0:c.call(G))&&!d()&&(v.currentTarget.click(),E(!0),setTimeout(function(){E(!1)},100));
return!1});
return _.w("ad-image-view-model",{class:function(){var v,c=[((v=z().interaction)==null?0:v.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],J;((J=G.isGridViewEnabled)==null?0:J.call(G))&&c.push("ytwAdImageViewModelHostInGridView");return c.join(" ")},
el:_.TG(W,B),"on:touchend":Y},_.w("div",{class:"ytwAdImageViewModelHostImageContainer"},_.w(_.iF,{data:function(){var v;return{sources:z().imageSources,contentMode:(v=z().imageProperties)==null?void 0:v.contentMode}},
alt:function(){var v,c;return((v=z().interaction)==null?void 0:(c=v.accessibility)==null?void 0:c.label)||""},
targetHeight:G.targetHeight,targetWidth:G.targetWidth,preserveHeight:G.preserveHeight,preserveWidth:G.preserveWidth,useWidth:G.useWidth,style:function(){var v,c;return"vertical-align: bottom;"+(((v=z().background)==null?0:v.color)?"background-color:"+_.M_((c=z().background)==null?void 0:c.color)+";":"")},
className:function(){return G.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var v,c;return(c=(v=G.setDraggable)==null?void 0:v.call(G))!=null?c:void 0}})))},"sb");var tCH=_.m(function(W){var B=W.data,z=W.listenToTapEvent,G=function(){};
return _.w("ad-button-hover-overlay-view-model",{"on:click":_.lF(function(Y){if(_.r("enable_web_home_top_landscape_image_layout_legacy_click_command")){var d,E=(d=B().interaction)==null?void 0:d.onTap;E&&_.v0(Y.currentTarget,"yt-navigate",{endpoint:_.$B(E)})}}),
class:function(){var Y;return((Y=B().interaction)==null?0:Y.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.TG(_.YF({visibilityCallback:function(Y){var d,E=(d=B().interaction)==null?void 0:d.onFirstVisible;Y&&E&&_.aB(E)},
showOption:_.he}),_.N$(function(){return B().interaction},void 0,function(){return!_.r("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(z==null?void 0:z())}))},function(){return _.r("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.w(_.Sc,{data:function(){return B().button}},{adButtonViewModel:function(Y){return _.w(_.Sh,{data:Y.data,
customCommandResolver:G})}}):_.w(_.Sc,{data:function(){return B().button}},{adButtonViewModel:_.Sh})}())},"tb");var E_;_.Vm(_.m(function(W){var B=W.data;W=_.YF({visibilityCallback:function(v,c){if(v){var J;(v=(J=B().interaction)==null?void 0:J.onFirstVisible)&&_.aB(v);var g;if(J=(g=B().adLayoutData)==null?void 0:g.activeViewData)Tm(c,J),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&vk(c)})}else _.r("stop_av_measurement_on_detach")&&vk(c)},
showOption:_.he,hideOption:F7});var z=_.N$(function(){return B().interaction},void 0,function(){return!0}),G=_.A(_.g4(!1,void 0,"VNDDT")),Y=G.next().value,d=G.next().value;
G=_.lF(function(){d(!0)});
var E=_.lF(function(){d(!1)});
return _.w("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.TG(W,c$u,z),"on:mouseenter":G,"on:mouseleave":E},_.w("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.oK({"max-width":function(){return _.r("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.w("div",{class:function(){var v;
a:{var c;switch((v=_.k(B().thumbnailImage,woU))==null?void 0:(c=v.imageProperties)==null?void 0:c.renderingAspect){case "RENDERING_ASPECT_SQUARE":v="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":v="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}v=void 0}return v}},_.w(_.Sc,{data:function(){return B().thumbnailImage}},{adImageViewModel:function(v){return _.w(_.qU,
{data:v.data,
listenToTapEvent:!0,setTouchEndHandler:_.r("enable_top_landscape_image_experiment_dom_id_web")})}})),_.w("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.w(_.V,{cond:function(){var v,c,J;
return(v=_.k(B().thumbnailImage,woU))==null?void 0:(c=v.imageProperties)==null?void 0:(J=c.overlayIcon)==null?void 0:J.iconImage},
then:function(v){return _.w(_.iF,{data:v,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.w("div",{class:function(){return Y()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.w(_.Sc,{data:function(){return B().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(v){return _.w(tCH,
{data:v.data,
listenToTapEvent:!0})}}))),_.w("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.w(_.Sc,{data:function(){return B().feedAdMetadata}},{feedAdMetadataViewModel:function(v){return _.w(uM,{data:v.data,
listenToTapEvent:!0,setTouchEndHandler:_.r("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ub"),"compact-landscape-no-button-layout-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=W.data;W=_.YF({visibilityCallback:function(v,c){if(v){var J;(v=(J=B().interaction)==null?void 0:J.onFirstVisible)&&_.aB(v);var g;if(J=(g=B().adLayoutData)==null?void 0:g.activeViewData)Tm(c,J),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&vk(c)})}else _.r("stop_av_measurement_on_detach")&&vk(c)},
showOption:_.he,hideOption:F7});var z=_.ny(_.qE),G=_.N$(function(){return B().interaction}),Y={},d={},E={};
return _.w("square-image-layout-view-model",{class:_.kG("ytwSquareImageLayoutViewModelHost",(Y.ytwSquareImageLayoutViewModelHostColumn=z,Y)),el:_.TG(W,wit,G)},_.w("div",{class:_.kG("ytwSquareImageLayoutViewModelHostImage",(d.ytwSquareImageLayoutViewModelHostColumnImage=z,d))},function(){return _.w(_.Sc,{data:function(){return B().adImage}},{adImageViewModel:function(v){return _.w(_.qU,{data:v.data,
isGridViewEnabled:z,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.w("div",{class:_.kG("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(E.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=z,E))},_.w(_.Sc,{data:function(){return B().feedAdMetadata}},{feedAdMetadataViewModel:uM}),function(){return _.w(_.Sc,{data:function(){return B().adButton}},{adButtonViewModel:function(v){var c={};
return _.w(_.Sh,{data:v.data,className:_.kG((c.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,c.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=z,c))})}})}()))},"vb"),"square-image-layout-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=W.data;var z=W.noBottomMargin;var G=W.typographyBump;W=_.YF({visibilityCallback:function(t,P){if(t){var Z;(t=(Z=B().interaction)==null?void 0:Z.onFirstVisible)&&_.aB(t);var l;if(Z=(l=B().adLayoutData)==null?void 0:l.activeViewData)Tm(P,Z),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&vk(P)})}else _.r("stop_av_measurement_on_detach")&&vk(P)},
showOption:_.he,hideOption:F7});var Y=_.N$(function(){return B().interaction},void 0,function(){return _.r("enable_web_home_top_landscape_image_layout_level_click")}),d=function(){return B().interaction};
d!==void 0&&d!==null||_.nx(Error("Qh"));var E=function(){var t,P,Z;return(t=_.k(B().thumbnailImage,woU))==null?void 0:(P=t.background)==null?void 0:(Z=P.backgroundImageSource)==null?void 0:Z.imageSources};
d=_.A(_.g4(!1,void 0,"NFjwje"));var v=d.next().value,c=d.next().value;d=_.lF(function(){c(!0)});
var J=_.lF(function(){c(!1)}),g=function(){return v()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.w("top-landscape-image-layout-view-model",{class:function(){var t;return((t=B().interaction)==null?0:t.onTap)&&_.r("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.TG(W,VsD,Y),"on:mouseenter":d,"on:mouseleave":J},_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.w(_.V,{cond:function(){return E()&&E().length>0},
then:function(){return _.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.oK({top:"0","background-image":function(){return"url("+String(E()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.w(_.V,{cond:function(){return!!B().adButtonHoverOverlay},
then:function(){return _.w("div",{class:g},_.w(_.Sc,{data:function(){return B().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:tCH}))}}),_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.w(_.Sc,{data:function(){return B().thumbnailImage}},{adImageViewModel:function(t){return _.w(_.qU,{data:t.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.r("enable_web_home_top_landscape_image_layout_level_click")})}})),_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.w(_.iF,{data:{sources:[{clientResource:{imageName:_.r("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.w(_.Sc,{data:function(){return B().feedAdMetadata}},{feedAdMetadataViewModel:function(t){return _.w(uM,{data:t.data,
noBottomMargin:function(){return z==null?void 0:z()},
listenToTapEvent:function(){return _.r("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return G==null?void 0:G()}})}})))},"wb"),"top-landscape-image-layout-view-model",{props:{data:_.kz,
noBottomMargin:_.kz,typographyBump:_.kz}});var slM=_.m(function(W){var B=W.data,z=_.YF({visibilityCallback:function(Y){var d,E=(d=B().interaction)==null?void 0:d.onFirstVisible;Y&&E&&_.aB(E)},
showOption:_.he});W=_.N$(function(){return B().interaction},W.customCommandResolver);
var G={};return _.w("ad-text-image-view-model",{class:_.kG("ytwAdTextImageViewModelHost",(G.ytwAdTextImageViewModelHostDarkBackground=function(){return B().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},G)),
el:_.TG(z,W),"aria-label":function(){var Y,d;return(Y=B().interaction)==null?void 0:(d=Y.accessibility)==null?void 0:d.label}},_.w("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.w(_.r0,{text:function(){return B().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0})),_.w(_.V,{cond:function(){return B().overlayIcon},
then:function(Y){return _.w("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.w(_.iF,{data:Y,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"xb");var PsD=_.m(function(W){var B=W.data;return _.w("feed-ad-sitelink-view-model",{class:"ytwFeedAdSitelinkViewModelHost",el:_.TG(_.N$(function(){return B().interaction},W.customCommandResolver)),
"aria-label":function(){var z,G;return(z=B().interaction)==null?void 0:(G=z.accessibility)==null?void 0:G.label}},_.w(_.r0,{text:function(){return B().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"yb");var ZBd=_.m(function(W){var B=W.data;W={};return _.w("feed-ad-sitelinks-carousel-view-model",{el:_.TG(_.YF({visibilityCallback:function(z){var G,Y=(G=B().interaction)==null?void 0:G.onFirstVisible;z&&Y&&_.aB(Y)},
showOption:_.he})),class:_.kG("ytwFeedAdSitelinksCarouselViewModelHost",(W.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return B().style==="FEED_AD_SITELINKS_STYLE_NONE"},W))},_.w(_.Sc,{data:function(){return B().sitelinks}},{feedAdSitelinkViewModel:PsD}))},"zb");_.Vm(_.m(function(W){var B=W.data;W=_.YF({visibilityCallback:function(E,v){if(E){var c;(E=(c=B().interaction)==null?void 0:c.onFirstVisible)&&_.aB(E);var J;(c=(J=B().adLayoutData)==null?void 0:J.activeViewData)&&Tm(v,c)}},
showOption:_.he});var z=_.A(_.g4(!1,void 0,"BzPhl")),G=z.next().value,Y=z.next().value;z=_.lF(function(){Y(!0)});
var d=_.lF(function(){Y(!1)});
return _.w("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.TG(W),"on:mouseenter":z,"on:mouseleave":d},_.w("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.w("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.w(_.Sc,{data:function(){return B().textImage}},{adTextImageViewModel:slM})),_.w("div",{class:function(){return G()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.w(_.Sc,{data:function(){return B().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(E){return _.w(tCH,{data:E.data,
listenToTapEvent:!0})}}))),_.w("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.w(_.Sc,{data:function(){return B().feedAdMetadata}},{feedAdMetadataViewModel:function(E){return _.w(uM,{data:E.data,
listenToTapEvent:!0})}}),_.w(_.Sc,{data:function(){return B().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:ZBd})))},"Ab"),"text-image-no-button-layout-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=W.data;var z=W.typographyBump;return _.w("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.TG(_.YF({visibilityCallback:function(G,Y){if(G){var d;(G=(d=B().interaction)==null?void 0:d.onFirstVisible)&&_.aB(G);var E;(d=(E=B().adLayoutData)==null?void 0:E.activeViewData)&&Tm(Y,d)}},
showOption:_.he,hideOption:F7}))},_.w("div",null,_.w(_.Sc,{data:function(){return B().videoLockup}},{lockupViewModel:function(G){return _.w(_.eh,{data:G.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:z})}})))},"Bb"),"video-display-button-group-layout-view-model",{props:{data:_.kz,
noBottomMargin:_.kz,typographyBump:_.kz}});_.Vm(_.m(function(W){var B=W.data;var z=W.className;var G=W.typographyBump;return _.w("video-display-compact-button-group-layout-view-model",{el:_.TG(_.YF({visibilityCallback:function(Y,d){if(Y){var E;(Y=(E=B().interaction)==null?void 0:E.onFirstVisible)&&_.aB(Y);var v;(E=(v=B().adLayoutData)==null?void 0:v.activeViewData)&&Tm(d,E)}},
showOption:_.he})),class:_.kG("videoDisplayCompactButtonGroupLayoutViewModelHost",z)},_.w(_.Sc,{data:function(){return B().videoLockup}},{lockupViewModel:function(Y){return _.w(_.eh,{data:Y.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:G})}}))},"Cb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.kz,
className:_.kz,typographyBump:_.kz}});_.Vm(_.m(function(W){var B=W.data;var z=W.className;var G=W.typographyBump;return _.w("video-display-compact-buttoned-layout-view-model",{el:_.TG(_.YF({visibilityCallback:function(Y,d){if(Y){var E;(Y=(E=B().interaction)==null?void 0:E.onFirstVisible)&&_.aB(Y);var v;(E=(v=B().adLayoutData)==null?void 0:v.activeViewData)&&Tm(d,E)}},
showOption:_.he})),class:_.kG("videoDisplayCompactButtonedLayoutViewModelHost",z)},_.w(_.Sc,{data:function(){return B().videoLockup}},{lockupViewModel:function(Y){return _.w(_.eh,{data:Y.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:G})}}))},"Db"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.kz,
className:_.kz,typographyBump:_.kz}});_.Vm(_.m(function(W){var B=W.data;var z=W.className;var G=W.typographyBump;var Y=function(){return B().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},d=_.ny(_.qE);
W=_.YF({visibilityCallback:function(J,g){if(J){var t=B();J=t.adLayoutData;var P;(t=(P=t.interaction)==null?void 0:P.onFirstVisible)&&_.aB(t);(P=J==null?void 0:J.activeViewData)&&Tm(g,P)}},
showOption:_.he});var E=_.r4(function(){return{containerType:Y()&&d()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),v=_.r4(function(){return Y()&&d()?"":Y()?"168px":"50%"},void 0,"qNDzkb"),c=_.r4(function(){return Y()&&d()?9999:void 0},void 0,"Ikn8Kb");
return _.w("video-display-compact-layout-view-model",{el:_.TG(W),class:_.kG("videoDisplayCompactLayoutViewModelHost",z)},_.w(_.Sc,{data:function(){return B().videoLockup}},{lockupViewModel:function(J){return _.w(_.eh,{data:J.data,
containerLayoutConfig:E,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:v,thumbnailTargetWidth:c,typographyBump:G})}}))},"Eb"),"video-display-compact-layout-view-model",{props:{data:_.kz,
className:_.kz,typographyBump:_.kz}});_.Vm(_.m(function(W){var B=W.data;var z=W.typographyBump;return _.w("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.TG(_.YF({visibilityCallback:function(G,Y){if(G){var d;(G=(d=B().interaction)==null?void 0:d.onFirstVisible)&&_.aB(G);var E;(d=(E=B().adLayoutData)==null?void 0:E.activeViewData)&&Tm(Y,d)}},
showOption:_.he,hideOption:F7}))},_.w("div",null,_.w(_.Sc,{data:function(){return B().videoLockup}},{lockupViewModel:function(G){return _.w(_.eh,{data:G.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:z})}})))},"Fb"),"video-display-full-layout-view-model",{props:{data:_.kz,
noBottomMargin:_.kz,typographyBump:_.kz}});_.rmD=_.m(function(W){var B=W.data;W=_.LG("ad-card-badge-view-model");return _.w("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:W},_.w(_.V,{cond:function(){return B().imageBadge},
then:function(z){return _.w(_.iF,{data:z,alt:""})}}))},"Gb");var kZd=_.m(function(W){var B=W.data;var z=W.customCommandResolver;return _.w("carousel-ad-card-image-view-model",{class:function(){var G;return((G=B().interaction)==null?0:G.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.TG(_.YF({visibilityCallback:function(G){var Y,d=(Y=B().interaction)==null?void 0:Y.onFirstVisible;G&&d&&_.aB(d)},
showOption:_.he}),_.N$(function(){return B().interaction},z)),
"aria-label":function(){var G,Y;return(G=B().interaction)==null?void 0:(Y=G.accessibility)==null?void 0:Y.label}},_.w(_.Sc,{data:function(){return B().adImage}},{adImageViewModel:function(G){return _.w(_.qU,{data:G.data,
customCommandResolver:z})}}),_.w("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.w(_.Sc,{data:function(){return B().badge}},{adCardBadgeViewModel:_.rmD})),_.w(_.O6,{model:{color:4}}))},"Hb");var lW7=_.m(function(W){var B=_.A(_.g4(0,void 0,"JJ0QQc")),z=B.next().value;B.next();var G=B.next().value,Y=_.A(_.g4(!1,void 0,"f6YICe"));B=Y.next().value;var d=Y.next().value,E;_.fR(function(){clearTimeout(E)});
Y=_.lF(function(){var J;((J=W.animate)==null?0:J.call(W))?(d(!0),E=setTimeout(function(){d(!1);v()},200)):v();
return!1});
var v=function(){G(function(J){return(J+W.numShownItems())%W.data().length})},c={};
return _.w("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.w("div",{class:_.kG("ytwHorizontalCarouselCarouselWrapper")},_.w("div",{class:_.kG("ytwHorizontalCarouselCarouselInnerWrapper",(c.ytwHorizontalCarouselAnimating=B,c))},_.w(_.IJ,{each:W.data,keyBy:"INDEX"},function(J,g){return _.w("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.oK({"flex-basis":function(){return"calc((100% - (8px * "+(W.numShownItems()-1)+")) / "+W.numShownItems()+")"},
order:function(){var t=g-z();t<0&&(t+=W.data().length);return t}})},W.children(J,g))}))),_.w("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":Y},W.nextButton()))},"Ib");var Csu=_.m(function(W){var B=W.data;var z=W.customCommandResolver;var G=W.expansive;return _.w("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.TG(_.YF({visibilityCallback:function(Y){var d,E=(d=B().interaction)==null?void 0:d.onFirstVisible;Y&&E&&_.aB(E)},
showOption:_.he}))},_.w(lW7,{data:function(){var Y;return((Y=B())==null?void 0:Y.carouselAdCards)||[]},
nextButton:function(){return _.w(_.Sc,{data:function(){return B().nextButton}},{buttonViewModel:function(Y){var d=Y.data;
return _.w(_.ex,{data:function(){return(G==null?0:G())?Object.assign({},d(),{style:"mono"}):d()},
className:_.r("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(Y){return _.w(_.Sc,{data:Y},{carouselAdCardImageViewModel:function(d){return _.w(kZd,{data:d.data,customCommandResolver:z})}})}))},"Jb");var IW9=_.m(function(W){var B=W.data;var z=W.customCommandResolver;var G=W.className;var Y=W.buttonClassName;var d=W.animationEntityKey;var E=W.expansive;return _.w("carousel-button-view-model",{class:_.kG("ytwCarouselButtonViewModelHost",G)},_.w(_.Sc,{data:function(){return B().carousel}},{carouselAdCardCollectionViewModel:function(v){return _.w(Csu,{data:v.data,
customCommandResolver:z,expansive:E})}}),_.w(_.Sc,{data:function(){return B().button}},{adButtonViewModel:function(v){var c=v.data;
return _.w(_.Sh,{data:function(){return(E==null?0:E())?Object.assign({},c(),{style:"AD_BUTTON_STYLE_TONAL"}):c()},
className:Y,customCommandResolver:z,animationEntityKey:d})}}))},"Kb");_.omD=_.m(function(W){var B=W.data;W=W.className;var z=_.LG("pivot-button-view-model");_.jD(function(){var G;((G=B())==null?0:G.backgroundColor)&&z.value.setAttribute("data-background-color",String(B().backgroundColor))});
return _.w("pivot-button-view-model",{el:z,class:_.kG("ytwPivotButtonViewModelHost",W)},_.w(_.fL,{command:function(){var G=B();G=G.onClickCommand?_.$B(G.onClickCommand):G.contentDescription?_.ia(G.contentDescription):void 0;return G},
ariaLabel:function(){return B().contentDescription}},_.w(_.V,{cond:function(){return B().thumbnail},
then:function(G){return _.w(_.iF,{data:G,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.w(_.V,{cond:function(){return B().icon},
then:function(G){return _.w(_.hY,{icon:function(){return G().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Lb");_.hJ7=_.m(function(W){var B=W.data;var z=W.buttonShapeOverrideables;return _.w("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.w(_.Sc,{data:function(){return B().buttonViewModels}},{buttonViewModel:function(G){return _.w(_.ex,{data:G.data,
buttonOverrides:z})},
likeButtonViewModel:function(G){return _.w(_.En,{data:G.data,buttonShapeOverrideables:z})},
dislikeButtonViewModel:function(G){return _.w(_.iq,{data:G.data,buttonShapeOverrideables:z})},
toggleButtonViewModel:function(G){return _.w(_.Y1,{data:G.data,buttonShapeOverrides:z})}}))},"Mb");var HBF=_.m(function(W){var B=W.avatar;var z=W.headline;var G=W.badge;var Y=W.description;var d=W.expansive;W={};return _.w("yt-ad-metadata-shape",{class:_.kG("ytAdMetadataShapeHost",(W.ytAdMetadataShapeHostLarge=d,W))},_.w("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.w(_.V,{cond:B,then:function(E){return _.w(_.r$R,{data:function(){return(d==null?0:d())?Object.assign({},E(),{size:"AD_AVATAR_SIZE_M"}):E()}})}}),_.w("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.w(_.r0,{text:z,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.w(_.V,{cond:G,then:function(E){return _.w(_.X7,{data:function(){return(d==null?0:d())?Object.assign({},E(),{style:"AD_BADGE_STYLE_STARK"}):E()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.w("h2",{class:"ytAdMetadataShapeHostDescription"},_.w(_.r0,{text:Y,
linkInheritColor:!0,isHeadline:function(){return d==null?void 0:d()}})))},"Nb");var FI9=_.m(function(W){var B=W.data;var z=W.onShow;var G=W.expansive;W=_.N$(function(){return B().interaction});
_.jD(function(){var d,E=(d=B().animatedRenderingConfig)==null?void 0:d.delayedSecondsToVisible;if(E){var v=setTimeout(z,E*1E3);_.fR(function(){clearTimeout(v)})}});
var Y={};return _.w("reels-ad-card-buttoned-view-model",{class:_.kG(function(){var d;return((d=B().interaction)==null?0:d.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(Y.ytwReelsAdCardButtonedViewModelHostExpansive=G,Y)),
el:_.TG(W)},_.w(HBF,{avatar:function(){return _.k(B().avatar,TLF)},
headline:function(){return B().headline},
badge:function(){return _.k(B().adBadge,vXd)},
description:function(){return B().description},
expansive:G}),_.w(_.Sc,{data:function(){return B().ctaButton}},{adButtonViewModel:function(d){var E=d.data;
return _.w(_.Sh,{data:function(){return(G==null?0:G())?Object.assign({},E(),{style:"AD_BUTTON_STYLE_FILLED"}):E()}})}}))},"Ob");var SxT=_.m(function(W){var B=W.data;W=W.expansive;var z=_.r("web_ad_metadata_clickable")?_.N$(function(){return B().interaction},void 0,function(){return _.r("web_ad_metadata_clickable")}):void 0,G={};
G=_.uj("ytwReelsAdMetadataViewModelHost",(G.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.r("web_ad_metadata_clickable"),G));return _.w("reels-ad-metadata-view-model",{class:G,el:_.TG(z)},_.w(HBF,{avatar:function(){return _.k(B().avatar,TLF)},
headline:function(){return B().headline},
badge:function(){return _.k(B().adBadge,vXd)},
description:function(){return B().description},
expansive:W}))},"Pb");var bBR={iconPosition:"icon-with-label",size:"L"},jl7=_.m(function(W){var B=W.data;var z=W.overlayDensity;var G=W.extractOverlay;var Y=W.extractActionBar;W=_.LG("reels-player-overlay-layout-view-model");var d=_.ig(z,0),E=function(){var Z;return(Z=B().reelsAdCardButtonedEntityKey)!=null?Z:""},v=function(){return E()+"/ad_button"},c=_.hg(AO8,E),J=function(){var Z,l;
return(l=(Z=c())==null?void 0:Z.value)!=null?l:!1},g=_.ny(J$Q),t=function(){var Z;
return Object.assign({},bBR,(g()||!((Z=Y==null?void 0:Y())!=null&&Z))&&{style:"overlay-dark"})};
z={};var P={};return _.w("reels-player-overlay-layout-view-model",{class:_.kG("ytwReelsPlayerOverlayLayoutViewModelHost",(z.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!B().extension},z.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},z.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return d()===1&&!(G==null?0:G())},z.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var Z;
return(Z=G==null?void 0:G())!=null?Z:!1},z.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var Z;
return(Z=Y==null?void 0:Y())!=null?Z:!1},z)),
"overlay-density":function(){return String(d())},
el:W},_.w("div",{class:_.kG("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(P.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},P))},_.w("div",{"aria-hidden":function(){return J()},
class:_.kG("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return J()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.oK({"transition-duration":function(){return PlT(B())}})},_.w(_.Sc,{data:function(){return B().adMetadata}},{reelsAdMetadataViewModel:function(Z){return _.w(SxT,{data:Z.data,
expansive:function(){return d()===1}})}}),_.w(_.V,{cond:function(){return B().extension},
then:function(Z){return _.w("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.w(_.Sc,{data:Z},{adButtonViewModel:function(l){return _.w(_.Sh,{data:l.data,animationEntityKey:v,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(l){return _.w(IW9,{data:l.data,animationEntityKey:v,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return d()===1}})}}))}})),_.w("div",{"aria-hidden":function(){return!J()},
class:_.kG("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return J()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.oK({"transition-duration":function(){return PlT(B())}})},_.w(_.Sc,{data:function(){return B().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(Z){return _.w(FI9,{data:Z.data,
onShow:function(){_.AV(_.bj("booleanEntity",E(),{key:E(),value:!0}))},
expansive:function(){return d()===1}})}}))),_.w("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.w(_.Sc,{data:function(){return B().actions}},{reelActionBarViewModel:function(Z){return _.w(_.hJ7,{data:Z.data,
buttonShapeOverrideables:t})}}),_.w(_.Sc,{data:function(){return B().menu}},{buttonViewModel:function(Z){return _.w(_.ex,{data:Z.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},t(),{type:"tonal"})}})}}),_.w(_.Sc,{data:function(){return B().pivotButton}},{pivotButtonViewModel:function(Z){return _.w(_.omD,{data:Z.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Qb");_.Vm(jl7,"reels-player-overlay-layout-view-model",{props:{data:_.kz,overlayDensity:_.kz,extractOverlay:_.kz,extractActionBar:_.kz}});var nd=function(){var W=_.S.apply(this,arguments)||this;W.noBottomMargin=!1;W.overlayDensity=0;W.extractOverlay=!1;W.extractActionBar=!1;return W};
_.C(nd,_.S);_.p=nd.prototype;
_.p.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.r("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.p.ready=function(){var W=this;O$R(function(){W.isAttached&&Yl(W.JSC$15537_storedAdSlotMetadata,W.JSC$15537_storedAdLayoutMetadata,W.adSlotMetadata,W.adLayoutMetadata)&&yn(DY(),W.JSC$15537_storedAdSlotMetadata,W.JSC$15537_storedAdLayoutMetadata)})};
_.p.attached=function(){Yl(this.JSC$15537_storedAdSlotMetadata,this.JSC$15537_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gmM(DY(),this.JSC$15537_storedAdSlotMetadata,this.JSC$15537_storedAdLayoutMetadata)};
_.p.detached=function(){Yl(this.JSC$15537_storedAdSlotMetadata,this.JSC$15537_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&yn(DY(),this.JSC$15537_storedAdSlotMetadata,this.JSC$15537_storedAdLayoutMetadata)};
_.p.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.p.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15537_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15537_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15537_storedAdLayoutMetadata!==void 0&&this.JSC$15537_storedAdSlotMetadata!==void 0&&yn(DY(),this.JSC$15537_storedAdSlotMetadata,this.JSC$15537_storedAdLayoutMetadata),gmM(DY(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15537_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15537_storedAdSlotMetadata=this.adSlotMetadata)};
_.G5.Object.defineProperties(nd.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.adLayoutMetadata}}});
nd.prototype.onAdMetadataChanged=nd.prototype.onAdMetadataChanged;nd.prototype.onTypographyBumpChanged=nd.prototype.onTypographyBumpChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],nd.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],nd.prototype,"rendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],nd.prototype,"ytComponentBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],nd.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],nd.prototype,"noBottomMargin",void 0);_.Q([_.F(),_.y("design:type",Object)],nd.prototype,"overlayDensity",void 0);_.Q([_.F(),_.y("design:type",Object)],nd.prototype,"extractOverlay",void 0);_.Q([_.F(),_.y("design:type",Object)],nd.prototype,"extractActionBar",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],nd.prototype,"typographyBump",void 0);
_.Q([_.H("data.adLayoutMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],nd.prototype,"adLayoutMetadata",null);_.Q([_.F(),_.y("design:type",Object)],nd.prototype,"adSlotMetadata",void 0);_.Q([_.Hf("ytd-video-display-full-buttoned-and-button-group-renderer"),_.y("design:type",HTMLElement)],nd.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.Q([_.oN("typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nd.prototype,"onTypographyBumpChanged",null);_.Q([_.oN("adLayoutMetadata","adSlotMetadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nd.prototype,"onAdMetadataChanged",null);_.Q([_.u({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],nd);
_.D(nd,"ytd-in-feed-ad-layout-renderer",function(){if(P39!==void 0)return P39;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return P39=W},
{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var fWD;var OBD;_.Vm(_.X7,"ad-badge-view-model",{props:{data:_.kz,hasDot:_.kz,customCommandResolver:_.wS,adRenderingContextType:_.wS,usedInMasthead:_.wS}});_.Vm(_.Sh,"ad-button-view-model",{props:{data:_.kz,customCommandResolver:_.wS,className:_.wS,delayedClassName:_.wS,animationEntityKey:_.wS,isCompactWidth:_.wS,isContentWidth:_.wS}});var NU=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return W};
_.C(NU,_.S);_.p=NU.prototype;_.p.computeHasLiveDescription=function(W){return!(W==null||!W.liveDescription)};
_.p.computeHasByline=function(W){return!(W==null||!W.byline)};
_.p.computeUsesAdButtonViewModel=function(W){return!!_.k(W==null?void 0:W.cta,cGD)};
_.p.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.p.onYtToggleButton=function(W){var B,z=(B=this.data)==null?void 0:B.videoReminderEntityKey;z&&this.ytdReduxBehavior.dispatch(_.bj("upcomingEventReminderStateEntity",z,{key:z,state:W.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.p.attached=function(){this.updateChannelBanner()};
_.p.dataChanged=function(){this.updateChannelBanner()};
_.p.videoReminderStateChanged=function(){var W;this.videoReminderState&&_.k((W=this.data)==null?void 0:W.cta,_.T3)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.p.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var W=_.JY(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);W&&(W.startsWith("//")&&(W="https:"+W),this.hostElement.classList.add("channel-banner"),_.kw(this.hostElement,{"--ytvmh-channel-banner":"url("+W+")"}))}else _.r("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.p.onPlayerReady=function(){this.onIronResize()};
_.p.maybeFlushDebouncer=function(){_.r("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(W){var B;W=(B=W.getElementsByTagName("yt-attributed-string"))==null?void 0:B[0];GYv(W==null?void 0:W.polymerController)})};
_.p.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var W=_.tH(this.hostElement).querySelector("#live-description"),B;W&&((B=this.data)==null?0:B.shortLiveDescription)&&W.clientWidth<W.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
NU.prototype.onIronResize=NU.prototype.onIronResize;NU.prototype.videoReminderStateChanged=NU.prototype.videoReminderStateChanged;NU.prototype.dataChanged=NU.prototype.dataChanged;NU.prototype.onYtToggleButton=NU.prototype.onYtToggleButton;_.Q([_.h(_.Mp),_.y("design:type",Object)],NU.prototype,"ironResizableBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],NU.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],NU.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],NU.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],NU.prototype,"data",void 0);_.Q([_.F({selectorArgs:["data.videoReminderEntityKey"],selector:iFQ}),_.y("design:type",Object)],NU.prototype,"videoReminderState",void 0);
_.Q([_.F({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.y("design:type",Boolean)],NU.prototype,"rounded",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.y("design:type",Boolean)],NU.prototype,"hasLiveDescription",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.y("design:type",Boolean)],NU.prototype,"hasByline",void 0);
_.Q([_.F({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.y("design:type",String)],NU.prototype,"adRenderingContextType",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],NU.prototype,"isMasthead",void 0);_.Q([_.F({computed:"computeUsesAdButtonViewModel(data)"}),_.y("design:type",Boolean)],NU.prototype,"usesAdButtonViewModel",void 0);
_.Q([_.F({reflectToAttribute:!0,value:_.r("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.y("design:type",Boolean)],NU.prototype,"resizableAdBannerSafariFix",void 0);_.Q([_.F4("yt-formatted-string"),_.y("design:type",Array)],NU.prototype,"formattedStrings",void 0);_.Q([_.Hf("#cta-button"),_.y("design:type",HTMLElement)],NU.prototype,"ctaButton",void 0);
_.Q([_.IN("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],NU.prototype,"onYtToggleButton",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"dataChanged",null);_.Q([_.oN("videoReminderState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"videoReminderStateChanged",null);
_.Q([_.IN("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"onIronResize",null);_.Q([_.u({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],NU);
_.D(NU,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(OBD!==void 0)return OBD;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return OBD=W},{mode:1});var XsT;var $D=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};W.isLocked=!1;return W};
_.C($D,_.S);_.p=$D.prototype;_.p.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.p.onExpandedChanged=function(){this.expanded&&_.wV(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.p.onMouseOver=function(){this.maybeExpand()};
_.p.onTap=function(){this.maybeExpand()};
_.p.onExpandableTileExpanding=function(W){W!==this&&(this.expanded=!1)};
_.p.onExpandableTileLockAndCollapse=function(W){this.isLocked=!0;W!==this&&(this.expanded=!1)};
_.p.onExpandableTileUnlock=function(){this.isLocked=!1};
$D.prototype.onTap=$D.prototype.onTap;$D.prototype.onMouseOver=$D.prototype.onMouseOver;$D.prototype.onExpandedChanged=$D.prototype.onExpandedChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],$D.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$D.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],$D.prototype,"expanded",void 0);_.Q([_.jJ("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$D.prototype,"onExpandedChanged",null);_.Q([_.IN("mouseover"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$D.prototype,"onMouseOver",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$D.prototype,"onTap",null);
_.Q([_.u({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],$D);
_.D($D,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(XsT!==void 0)return XsT;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return XsT=W},{mode:1});var KI9;var Ld=function(){var W=_.S.apply(this,arguments)||this;W.buttonOverrides={style:"overlay"};W.useYtdPlayer=_.r("use_ytd_player_for_desktop_masthead");W.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};W.playbackFinished=!1;W.JSC$15551_playerManager=null;W.JSC$15551_mastheadCounter=new W67;return W};
_.C(Ld,_.S);_.p=Ld.prototype;_.p.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"}}}};
_.p.created=function(){this.JSC$15551_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15551_playerManager=new B7)};
_.p.ready=function(){var W=this;this.JSC$15551_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var B=_.tH(this.hostElement).querySelector("#player");this.useYtdPlayer?B.style.display="none":(this.ytdPlayer.style.display="none",KAT(this.JSC$15551_playerManager,B,function(){W.onPlaybackEnded()}),_.tH(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var z;
((z=W.data)==null?0:z.navigationEndpoint)&&_.v0(W.hostElement,"yt-navigate",{endpoint:W.data.navigationEndpoint})}))};
_.p.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15551_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.p.attached=function(){var W=this;_.WJ(function(){W.maybePlayVideo()})};
_.p.maybePlayVideo=function(){var W=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$15551_playerManager.playVideo(),this.getPlayerPromise().then(function(){W.JSC$15551_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.p.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15551_playerManager.stopVideo()};
_.p.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var W,B={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((W=this.data.playbackStartMs)!=null?W:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(B);this.setupYtdPlayer()}else enM(this.JSC$15551_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(uX6(this.JSC$15551_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.p.getPlayerPromise=function(){return this.JSC$15551_playerManager.getPlayerPromise()};
_.p.onYtToggleButton=function(W){this.useYtdPlayer?this.toggleMute(W.detail.toggled):W.detail.toggled?this.JSC$15551_playerManager.mute():this.JSC$15551_playerManager.unMute()};
_.p.onYtNavigate=function(W){var B=UVD(W.detail.endpoint),z=MZv(this.data.clickthroughReportingData);B&&z&&(W.detail.endpoint.watchEndpoint?W.detail.tempData=z:_.Yq(B,z,30))};
_.p.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.p.onExpandedChanged=function(){this.expanded?(_.wV(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.p.onMouseOver=function(){this.maybeExpand()};
_.p.onTap=function(){this.maybeExpand()};
_.p.onExpandableTileExpanding=function(W){W!==this&&(this.stopVideo(),this.expanded=!1)};
_.p.onExpandableTileLockAndCollapse=function(W){W!==this&&(this.isLocked=!0,this.expanded=!1)};
_.p.onExpandableTileUnlock=function(){this.isLocked=!1};
_.p.lockAndCollapseExpandableTiles=function(){_.c0(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.p.unlockExpandableTiles=function(){_.c0(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.p.setupYtdPlayer=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return z.yield(W.ytdPlayer.getPlayerPromise(),2);B=z.yieldResult;B.addEventListener("onStateChange",function(G){W.onPlayerStateChange(G)});
B.addEventListener("onCueRangeExit",function(G){W.onCueRangeExit(G)});
_.HG(z)})};
_.p.onPlayerStateChange=function(W){if(W===1&&(W=this.ytdPlayer.getPlayer())){var B=W.getCurrentTime(),z,G,Y=B+((G=(z=this.data)==null?void 0:z.playbackDurationMs)!=null?G:0)/1E3;W.addCueRange("playback",B,Y);this.JSC$15551_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.p.onCueRangeExit=function(W){W==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.p.toggleMute=function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(B.ytdPlayer.getPlayerPromise(),2);z=G.yieldResult;W?z.mute():z.unMute();_.HG(G)})};
Ld.prototype.onTap=Ld.prototype.onTap;Ld.prototype.onMouseOver=Ld.prototype.onMouseOver;Ld.prototype.onExpandedChanged=Ld.prototype.onExpandedChanged;Ld.prototype.onYtNavigate=Ld.prototype.onYtNavigate;Ld.prototype.onYtToggleButton=Ld.prototype.onYtToggleButton;Ld.prototype.dataChanged=Ld.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Ld.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ld.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ld.prototype,"expanded",void 0);_.Q([_.F(),_.y("design:type",Object)],Ld.prototype,"buttonOverrides",void 0);
_.Q([_.F(),_.y("design:type",Object)],Ld.prototype,"useYtdPlayer",void 0);_.Q([_.Hf("#ytd-player"),_.y("design:type",Object)],Ld.prototype,"ytdPlayer",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ld.prototype,"dataChanged",null);_.Q([_.IN("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Ld.prototype,"onYtToggleButton",null);
_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Ld.prototype,"onYtNavigate",null);_.Q([_.jJ("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ld.prototype,"onExpandedChanged",null);_.Q([_.IN("mouseover"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ld.prototype,"onMouseOver",null);
_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ld.prototype,"onTap",null);_.Q([_.u({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Ld);
_.D(Ld,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(KI9!==void 0)return KI9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return KI9=W},{mode:1});var ubM;var UG=function(){return _.S.apply(this,arguments)||this};
_.C(UG,_.S);UG.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
UG.prototype.onShow=function(){var W=_.tH(this.hostElement).querySelector("#live-description"),B;W&&((B=this.data)==null?0:B.shortLiveDescription)&&W.clientWidth<W.scrollWidth&&this.hostElement.classList.add("short-live-description")};
UG.prototype.onYtToggleButton=function(W){var B,z=(B=this.data)==null?void 0:B.videoReminderEntityKey;z&&this.ytdReduxBehavior.dispatch(_.bj("upcomingEventReminderStateEntity",z,{key:z,state:W.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
UG.prototype.videoReminderStateChanged=function(){var W;this.videoReminderState&&_.k((W=this.data)==null?void 0:W.cta,_.T3)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
UG.prototype.videoReminderStateChanged=UG.prototype.videoReminderStateChanged;UG.prototype.onYtToggleButton=UG.prototype.onYtToggleButton;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],UG.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],UG.prototype,"data",void 0);
_.Q([_.F({selectorArgs:["data.videoReminderEntityKey"],selector:iFQ}),_.y("design:type",Object)],UG.prototype,"videoReminderState",void 0);_.Q([_.IN("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],UG.prototype,"onYtToggleButton",null);_.Q([_.oN("videoReminderState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UG.prototype,"videoReminderStateChanged",null);
_.Q([_.u({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],UG);
_.D(UG,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(ubM!==void 0)return ubM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ubM=W},{mode:_.PJ("kevlar_poly_si_batch_j065")?1:2});var eJH;var MU=function(){var W=_.S.apply(this,arguments)||this;W.useYtdPlayer=_.r("use_ytd_player_for_desktop_masthead");W.buttonOverrides={style:"overlay"};W.JSC$15559_playerManager=null;W.JSC$15559_mastheadCounter=new W67;W.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return W};
_.C(MU,_.S);_.p=MU.prototype;_.p.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"}}}};
_.p.created=function(){this.JSC$15559_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15559_playerManager=new B7)};
_.p.ready=function(){var W=this;this.JSC$15559_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var B;(B=this.embeddedPlayer)==null||B.remove()}else{var z;(z=this.ytdPlayer)==null||z.remove();KAT(this.JSC$15559_playerManager,this.embeddedPlayer,function(){W.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){W.data&&W.data.navigationEndpoint&&_.v0(W.hostElement,"yt-navigate",{endpoint:W.data.navigationEndpoint})})}};
_.p.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15559_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.p.dataChanged=function(){var W=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var B=!this.data.disableAutoPlayback,z,G={autoplay:B,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((z=this.data.playbackStartMs)!=null?z:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(B?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(G);this.setupYtdPlayer()}else enM(this.JSC$15559_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(uX6(this.JSC$15559_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15559_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.c0(W.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");W.JSC$15559_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.p.getPlayerPromise=function(){return this.JSC$15559_playerManager.getPlayerPromise()};
_.p.onYtToggleButton=function(W){this.useYtdPlayer?this.toggleMute(W.detail.toggled):W.detail.toggled?this.JSC$15559_playerManager.mute():this.JSC$15559_playerManager.unMute()};
_.p.onYtNavigate=function(W){var B=UVD(W.detail.endpoint),z=MZv(this.data.clickthroughReportingData);B&&z&&(W.detail.endpoint.watchEndpoint?W.detail.tempData=z:_.Yq(B,z,30))};
_.p.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15559_playerManager.stopVideo()};
_.p.setupYtdPlayer=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return z.yield(W.ytdPlayer.getPlayerPromise(),2);B=z.yieldResult;B.addEventListener("onStateChange",function(G){W.onPlayerStateChange(G)});
B.addEventListener("onCueRangeExit",function(G){W.onCueRangeExit(G)});
_.HG(z)})};
_.p.onPlayerStateChange=function(W){if(W===1&&(W=this.ytdPlayer.getPlayer())){var B=W.getCurrentTime(),z,G,Y=B+((G=(z=this.data)==null?void 0:z.playbackDurationMs)!=null?G:0)/1E3;W.addCueRange("playback",B,Y);_.c0(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15559_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.p.onCueRangeExit=function(W){W==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.p.toggleMute=function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(B.ytdPlayer.getPlayerPromise(),2);z=G.yieldResult;W?z.mute():z.unMute();_.HG(G)})};
_.G5.Object.defineProperties(MU.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W,B;if(!((W=this.data)==null?0:(B=W.accessibilityData)==null?0:B.label))return"Ad primary link";var z,G;return _.kq("AD_TITLE",{title:(z=this.data)==null?void 0:(G=z.accessibilityData)==null?void 0:G.label})}}});
MU.prototype.onYtMastheadHidden=MU.prototype.onYtMastheadHidden;MU.prototype.onYtNavigate=MU.prototype.onYtNavigate;MU.prototype.onYtToggleButton=MU.prototype.onYtToggleButton;MU.prototype.dataChanged=MU.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],MU.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],MU.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],MU.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],MU.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],MU.prototype,"useYtdPlayer",void 0);_.Q([_.Hf("ytd-toggle-button-renderer"),_.y("design:type",Object)],MU.prototype,"muteButton",void 0);_.Q([_.F(),_.y("design:type",Object)],MU.prototype,"buttonOverrides",void 0);
_.Q([_.H("data.accessibilityData.label"),_.y("design:type",String),_.y("design:paramtypes",[])],MU.prototype,"titleAriaLabel",null);_.Q([_.Hf("#replay-button"),_.y("design:type",Object)],MU.prototype,"replayButton",void 0);_.Q([_.Hf("#player-container"),_.y("design:type",Object)],MU.prototype,"playerContainer",void 0);_.Q([_.Hf("#player"),_.y("design:type",Object)],MU.prototype,"embeddedPlayer",void 0);_.Q([_.Hf("#ytd-player"),_.y("design:type",Object)],MU.prototype,"ytdPlayer",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],MU.prototype,"dataChanged",null);_.Q([_.IN("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],MU.prototype,"onYtToggleButton",null);_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],MU.prototype,"onYtNavigate",null);
_.Q([_.IN("yt-masthead-hidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],MU.prototype,"onYtMastheadHidden",null);_.Q([_.u({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],MU);
_.D(MU,"ytd-video-masthead-ad-primary-video-renderer",function(){if(eJH!==void 0)return eJH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return eJH=W},{mode:2});var m0D;var aa=function(){var W=_.S.apply(this,arguments)||this;W.collapsed=!1;W.impressionResolver=_.zN();W.JSC$15563_activeViewMeasurementDataResolver=_.zN();W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.C(aa,_.S);_.p=aa.prototype;_.p.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"}}}};
_.p.ready=function(){var W=this;_.tH(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){W.expandAd()});
this.hostElement.addEventListener("yt-action",function(B){if(B.detail.actionName==="yt-service-request"){var z=B.detail.args[1];z.videoMastheadAdMuteCommand&&(W.collapseAd(z.videoMastheadAdMuteCommand.encryptedMastheadId),B.stopPropagation())}})};
_.p.attached=function(){var W=this;_.WJ(function(){W.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(B){if(!W.collapsed){B=_.A(B);for(var z=B.next();!z.done;z=B.next())z=z.value,qX(z.baseUrl,z.attributionSrcMode);W.data.impressionCommand=void 0}});
this.JSC$15563_activeViewMeasurementDataResolver.promise.then(function(B){W.ytdActiveViewBehavior.enableActiveViewMeasurement(B,15)});
_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.dataChanged=function(){var W;((W=this.data.impressionCommand)==null?0:W.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var B;((B=this.data)==null?0:B.activeView)&&this.JSC$15563_activeViewMeasurementDataResolver.resolve(this.data.activeView);(W=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(W.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.p.computeWidescreen=function(W){var B;return!!(W&&((B=_.k(W,dIR))==null?0:B.isWidescreen))};
_.p.computeExpandable=function(W){return!!(W&&W.length>0)};
_.p.onIronResize=function(){if(this.expandable){var W=_.tH(this.hostElement).querySelector("#expandable-tile-container :first-child");W&&!W.expanded&&(W.expanded=!0)}};
_.p.handleMuteAd=function(){this.collapseAd(null)};
_.p.restoreCollapsedState=function(W){this.collapsed=_.IP().get("HIDDEN_MASTHEAD_ID")===W};
_.p.collapseAd=function(W){if(W){var B=_.IP();B.set("HIDDEN_MASTHEAD_ID",W);B.save()}(W=_.tH(this.hostElement).querySelector("#video"))&&_.v0(W,"yt-masthead-hidden");this.collapsed=!0};
_.p.expandAd=function(){var W=_.IP();W.set("HIDDEN_MASTHEAD_ID",!1);W.save();location.reload()};
_.p.detached=function(){_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
aa.prototype.onIronResize=aa.prototype.onIronResize;aa.prototype.dataChanged=aa.prototype.dataChanged;_.Q([_.h(_.Mp),_.y("design:type",Object)],aa.prototype,"ironResizableBehavior",void 0);_.Q([_.h(E7),_.y("design:type",Object)],aa.prototype,"ytdActiveViewBehavior",void 0);_.Q([_.h(_.VO),_.y("design:type",Object)],aa.prototype,"ytdGridStateAwareBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],aa.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],aa.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],aa.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.y("design:type",Boolean)],aa.prototype,"widescreen",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.y("design:type",Boolean)],aa.prototype,"expandable",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],aa.prototype,"collapsed",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aa.prototype,"dataChanged",null);
_.Q([_.IN("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aa.prototype,"onIronResize",null);_.Q([_.u({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],aa);
_.D(aa,"ytd-video-masthead-ad-v3-renderer",function(){if(m0D!==void 0)return m0D;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return m0D=W},{mode:2});var Ra=function(){return _.S.apply(this,arguments)||this};
_.C(Ra,_.S);_.p=Ra.prototype;_.p.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.p.ready=function(){var W=this;O$R(function(){W.isAttached&&Yl(W.JSC$15568_storedAdSlotMetadata,W.JSC$15568_storedAdLayoutMetadata,W.adSlotMetadata,W.adLayoutMetadata)&&yn(DY(),W.JSC$15568_storedAdSlotMetadata,W.JSC$15568_storedAdLayoutMetadata)})};
_.p.attached=function(){Yl(this.JSC$15568_storedAdSlotMetadata,this.JSC$15568_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gmM(DY(),this.JSC$15568_storedAdSlotMetadata,this.JSC$15568_storedAdLayoutMetadata)};
_.p.detached=function(){Yl(this.JSC$15568_storedAdSlotMetadata,this.JSC$15568_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&yn(DY(),this.JSC$15568_storedAdSlotMetadata,this.JSC$15568_storedAdLayoutMetadata)};
_.p.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15568_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15568_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15568_storedAdLayoutMetadata!==void 0&&this.JSC$15568_storedAdSlotMetadata!==void 0&&yn(DY(),this.JSC$15568_storedAdSlotMetadata,this.JSC$15568_storedAdLayoutMetadata),gmM(DY(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15568_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15568_storedAdSlotMetadata=this.adSlotMetadata)};
_.G5.Object.defineProperties(Ra.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.adLayoutMetadata}}});
Ra.prototype.onAdMetadataChanged=Ra.prototype.onAdMetadataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Ra.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ra.prototype,"data",void 0);_.Q([_.H("data.adLayoutMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ra.prototype,"adLayoutMetadata",null);
_.Q([_.F(),_.y("design:type",Object)],Ra.prototype,"adSlotMetadata",void 0);_.Q([_.oN("adLayoutMetadata","adSlotMetadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ra.prototype,"onAdMetadataChanged",null);_.Q([_.u({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Ra);
_.D(Ra,"ytd-page-top-ad-layout-renderer",function(){if(fWD!==void 0)return fWD;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return fWD=
W},{mode:_.PJ("kevlar_poly_si_batch_j070")?1:2});var x0u;var Wm=function(){var W=_.S.apply(this,arguments)||this;W.noBottomMargin=!1;W.overlayDensity=0;W.typographyBump=!1;W.extractOverlay=!1;W.extractActionBar=!1;return W};
_.C(Wm,_.S);_.p=Wm.prototype;
_.p.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.p.ready=function(){var W=this;O$R(function(){W.isAttached&&W.adSlotMetadata&&JmR(DY(),W.adSlotMetadata)})};
_.p.attached=function(){if(this.adSlotMetadata){var W;if(this.adSlotMetadata===((W=this.data)==null?void 0:W.adSlotMetadata))VCM(DY(),this.adSlotMetadata);else{var B;_.Oc(Error("Rh`"+this.adSlotMetadata+"`"+((B=this.data)==null?void 0:B.adSlotMetadata)))}}};
_.p.detached=function(){this.adSlotMetadata&&JmR(DY(),this.adSlotMetadata)};
_.p.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.p.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&JmR(DY(),this.adSlotMetadata),VCM(DY(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.G5.Object.defineProperties(Wm.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var W,B,z=_.k((W=this.data)==null?void 0:(B=W.fulfillmentContent)==null?void 0:B.fulfilledLayout,_.AGH),G;return(W=(G=_.k(z==null?void 0:z.renderingContent,poT))==null?void 0:G.layout)?W.toLowerCase().replace(/_/g,"-"):""}}});
Wm.prototype.onAdSlotMetadataChanged=Wm.prototype.onAdSlotMetadataChanged;Wm.prototype.onTypographyBumpChanged=Wm.prototype.onTypographyBumpChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Wm.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Wm.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Wm.prototype,"rendererBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Wm.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Wm.prototype,"noBottomMargin",void 0);_.Q([_.F(),_.y("design:type",Object)],Wm.prototype,"overlayDensity",void 0);_.Q([_.F(),_.y("design:type",Object)],Wm.prototype,"typographyBump",void 0);_.Q([_.F(),_.y("design:type",Object)],Wm.prototype,"extractOverlay",void 0);_.Q([_.F(),_.y("design:type",Object)],Wm.prototype,"extractActionBar",void 0);
_.Q([_.Hf("ytd-in-feed-ad-layout-renderer"),_.y("design:type",HTMLElement)],Wm.prototype,"inFeedAdLayoutRenderer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",String),_.y("design:paramtypes",[])],Wm.prototype,"layout",null);_.Q([_.oN("typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wm.prototype,"onTypographyBumpChanged",null);
_.Q([_.oN("data.adSlotMetadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wm.prototype,"onAdSlotMetadataChanged",null);_.Q([_.u({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Wm);
_.D(Wm,"ytd-ad-slot-renderer",function(){if(x0u!==void 0)return x0u;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return x0u=W},{mode:_.PJ("kevlar_poly_si_batch_j077")?
1:2});var D0U;var Bm=function(){return _.S.apply(this,arguments)||this};
_.C(Bm,_.S);_.p=Bm.prototype;_.p.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"}}}};
_.p.maybeComputeHref=function(){return null};
_.p.onTap=function(){};
_.p.onThumbnailContainerClick=function(W){this.onClick(W)};
_.p.onClick=function(W){var B,z=(B=this.data)==null?void 0:B.navigationEndpoint;z&&_.k(z,_.W0)&&(this.ytSparklesClickLocationBehavior.handleClick(z,W,!1),W.stopPropagation())};
_.p.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var W=_.A(this.data.impressionUrls),B=W.next();!B.done;B=W.next())B=B.value,jB0(B,O88(B));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Bm.JSC$15576_DEFAULT_CLICK_LOCATION_BEHAVIOR,Bm.JSC$15576_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&
W.removeAttribute("href"))}};
_.p.attached=function(){var W=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.G5.Object.defineProperties(Bm.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Bm.prototype.dataChanged=Bm.prototype.dataChanged;Bm.prototype.onTap=Bm.prototype.onTap;Bm.JSC$15576_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Bm.JSC$15576_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"}];_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Bm.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.Q([_.h(E7),_.y("design:type",Object)],Bm.prototype,"ytdActiveViewBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Bm.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Bm.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.Sv.YtSparklesClickLocationBehavior),_.y("design:type",Object)],Bm.prototype,"ytSparklesClickLocationBehavior",void 0);
_.Q([_.F({selector:_.qE}),_.y("design:type",Object)],Bm.prototype,"isGridViewEnabled",void 0);_.Q([_.H("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Bm.prototype,"watchFeedBigThumbs",null);_.Q([_.H("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],Bm.prototype,"thumbnailWidth",null);_.Q([_.F(),_.y("design:type",Object)],Bm.prototype,"data",void 0);
_.Q([_.Hf("ytd-thumbnail"),_.y("design:type",HTMLElement)],Bm.prototype,"thumbnail",void 0);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bm.prototype,"onTap",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bm.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Bm);
_.D(Bm,"ytd-compact-promoted-video-renderer",function(){if(D0U!==void 0)return D0U;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return D0U=W},{mode:1});var QlF;_.eX("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var zQ=function(){return _.S.apply(this,arguments)||this};
_.C(zQ,_.S);zQ.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],zQ.prototype,"data",void 0);_.Q([_.u({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],zQ);
_.D(zQ,"ytd-search-pyv-renderer",function(){if(QlF!==void 0)return QlF;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return QlF=W},{mode:1});var ymT;_.eX("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var GQ=function(){var W=_.S.apply(this,arguments)||this;W.roundedContainer=!0;W.JSC$15584_handleOpenPostCommentDialogActionAfterStamp=!1;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.C(GQ,_.S);_.p=GQ.prototype;
_.p.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}}};
_.p.onStampFinished=function(){this.JSC$15584_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.p.handleSignalActionOpenPostCommentDialogAction=function(){var W=_.tH(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");W?W.openDialog():this.JSC$15584_handleOpenPostCommentDialogActionAfterStamp=!0};
_.p.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.p.computeHideBorder=function(){return this.isInEngagementPanel};
_.p.computeIsCompact=function(){return this.isInEngagementPanel};
_.p.computeUsesCompactLockup=function(W){return W==="BACKSTAGE_SURFACE_TYPE_HOME"||W==="BACKSTAGE_SURFACE_TYPE_SEARCH"||W==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||W==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||W==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||W==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.p.computeUsesFullLockup=function(){var W,B=(W=this.data)==null?void 0:W.post,z;W=(z=_.k(B,srM))==null?void 0:z.surface;var G;z=(G=_.k(B,rGM))==null?void 0:G.originalPost;var Y;if(G=W||((Y=_.k(z,srM))==null?void 0:Y.surface))return!this.computeUsesCompactLockup(G)&&this.useUpdatedRepostUi;var d;return((d=_.k(B,rGM))==null?void 0:d.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.G5.Object.defineProperties(GQ.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var W,B;return((B=_.k((W=this.data)==null?void 0:W.post,srM))==null?void 0:B.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.useUpdatedRepostUi}}});
GQ.prototype.onYtCommentModerationPanelEmpty=GQ.prototype.onYtCommentModerationPanelEmpty;GQ.prototype.onStampFinished=GQ.prototype.onStampFinished;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],GQ.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],GQ.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],GQ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],GQ.prototype,"roundedContainer",void 0);_.Q([_.F({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.y("design:type",Boolean)],GQ.prototype,"hideBorder",void 0);_.Q([_.F({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.y("design:type",Boolean)],GQ.prototype,"isCompact",void 0);
_.Q([_.F({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.y("design:type",Boolean)],GQ.prototype,"usesFullLockup",void 0);_.Q([_.IN("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GQ.prototype,"onStampFinished",null);
_.Q([_.IN("ytd-comment-moderation-panel-empty"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],GQ.prototype,"onYtCommentModerationPanelEmpty",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GQ.prototype,"isInEngagementPanel",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GQ.prototype,"useUpdatedRepostUi",null);
_.Q([_.u({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],GQ);
_.D(GQ,"ytd-backstage-post-thread-renderer",function(){if(ymT!==void 0)return ymT;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ymT=W},{mode:1});var qxH;var ED=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.C(ED,_.S);ED.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
ED.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var W=this.data.thumbnail.thumbnails;this.isDarkTheme&&(W=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(W=_.JY(W,24,void 0,"height"))?W:void 0}};
ED.prototype.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
ED.prototype.computeHasText=function(){var W;return!((W=this.data)==null||!W.text)};
_.G5.Object.defineProperties(ED.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.yN(this.bannerImageUrl))+'");'}}});
ED.prototype.computeHasText=ED.prototype.computeHasText;ED.prototype.computeBannerImageUrl=ED.prototype.computeBannerImageUrl;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],ED.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],ED.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],ED.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],ED.prototype,"isDarkTheme",void 0);_.Q([_.F(),_.y("design:type",String)],ED.prototype,"bannerImageUrl",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.y("design:type",Boolean)],ED.prototype,"hasText",void 0);_.Q([_.oN("data","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ED.prototype,"computeBannerImageUrl",null);
_.Q([_.oN("data.text"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ED.prototype,"computeHasText",null);_.Q([_.H("bannerImageUrl"),_.y("design:type",Object),_.y("design:paramtypes",[])],ED.prototype,"bannerStyle",null);_.Q([_.u({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],ED);
_.D(ED,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(qxH!==void 0)return qxH;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return qxH=W},{mode:1});var nmH;var TQ=function(){return _.S.apply(this,arguments)||this};
_.C(TQ,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],TQ.prototype,"data",void 0);_.Q([_.u({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],TQ);
_.D(TQ,"ytd-backstage-zero-state-renderer",function(){if(nmH!==void 0)return nmH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return nmH=W},{mode:1});var Ny9;var cm=function(){return _.S.apply(this,arguments)||this};
_.C(cm,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],cm.prototype,"data",void 0);_.Q([_.F({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],cm.prototype,"icon",void 0);_.Q([_.u({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],cm);
_.D(cm,"ytd-post-filter-zero-state-renderer",function(){if(Ny9!==void 0)return Ny9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Ny9=W},{mode:1});var $06;var LIu={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},wG=function(){return _.S.apply(this,arguments)||this};
_.C(wG,_.S);wG.prototype.configureRendererStamper=function(){return LIu};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],wG.prototype,"rendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],wG.prototype,"data",void 0);_.Q([_.F({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],wG.prototype,"icon",void 0);_.Q([_.u({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],wG);
_.D(wG,"ytd-post-scheduling-zero-state-renderer",function(){if($06!==void 0)return $06;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return $06=W},{mode:1});var U0Q;var V4=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return W};
_.C(V4,_.S);V4.prototype.onTabsActivate=function(W){this.data&&this.data.tabs&&_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[W.detail.selected].navigationEndpoint})};
V4.prototype.shouldShowTotalCount=function(W){return W&&W.totalCount!==void 0};
V4.prototype.handleUpdatePostsTotalCountAction=function(W){var B=this.get(["data.tabs",1,"totalCount"]),z=this.get("updatePostsTotalCountAction.updateType",W);W=this.get("updatePostsTotalCountAction.number",W);B!==void 0&&z!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&W&&(z==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(B)+W):z==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(B)-W))};
_.G5.Object.defineProperties(V4.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var W=0,B=this.data.tabs.length;W<B;W++)if(this.data.tabs[W].selected)return W;return 0}}});
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],V4.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],V4.prototype,"rendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],V4.prototype,"data",void 0);_.Q([_.H("data.tabs"),_.y("design:type",Number),_.y("design:paramtypes",[])],V4.prototype,"selected",null);_.Q([_.u({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],V4);
_.D(V4,"ytd-post-stream-filter-renderer",function(){if(U0Q!==void 0)return U0Q;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return U0Q=W},{mode:1});var MC6;var JU=function(){return _.S.apply(this,arguments)||this};
_.C(JU,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],JU.prototype,"kevlarBehaviors",void 0);_.Q([_.F(),_.y("design:type",Object)],JU.prototype,"data",void 0);_.Q([_.u({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],JU);
_.D(JU,"ytd-channel-age-gate-renderer",function(){if(MC6!==void 0)return MC6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return MC6=W},{mode:1});var aWU;_.eX("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var gG=function(){var W=_.S.apply(this,arguments)||this;W.data=null;return W};
_.C(gG,_.S);gG.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G5.Object.defineProperties(gG.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return((W=this.data)==null?0:(B=W.title)==null?0:(z=B.runs)==null?0:z.length)?147:160}}});
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],gG.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],gG.prototype,"imageSizePx",null);_.Q([_.u({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],gG);
_.D(gG,"ytd-channel-owner-empty-state-renderer",function(){if(aWU!==void 0)return aWU;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return aWU=W},{mode:1});var RJu;var WXH;var tU=function(){var W=_.S.apply(this,arguments)||this;W.boundSubmitSearch=function(){W.submitSearch()};
W.boundClearSearch=function(){W.clearSearch()};
return W};
_.C(tU,_.S);_.p=tU.prototype;_.p.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]]"}}}}}};
_.p.toggleClearButton=function(){this.hideClearButton=XY2||!this.input.value};
_.p.submitOnEnterKeyUp=function(W){W.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.p.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.p.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.p.submit=function(){_.v0(this.hostElement,"search-query-changed",this.input.value)};
tU.prototype.toggleClearButton=tU.prototype.toggleClearButton;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],tU.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],tU.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],tU.prototype,"hideClearButton",void 0);_.Q([_.F(),_.y("design:type",Object)],tU.prototype,"boundSubmitSearch",void 0);_.Q([_.F(),_.y("design:type",Object)],tU.prototype,"boundClearSearch",void 0);_.Q([_.Hf("#input"),_.y("design:type",Object)],tU.prototype,"input",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tU.prototype,"toggleClearButton",null);
_.Q([_.u({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],tU);
_.D(tU,"ytd-channel-switcher-search-box-renderer",function(){if(WXH!==void 0)return WXH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return WXH=W},{mode:1});var B96;var sD=function(){var W=_.S.apply(this,arguments)||this;W.boundSubmit=function(){W.submit()};
return W};
_.C(sD,_.S);_.p=sD.prototype;_.p.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"}}}}};
_.p.ready=function(){var W=this;this.form.addEventListener("submit",function(B){return W.onSubmit(B)})};
_.p.onSubmit=function(W){W.preventDefault();return!1};
_.p.toggleClearButton=function(){this.hideClearButton=XY2||!this.input.value};
_.p.submitOnEnterKeyUp=function(W){W.keyCode===13&&this.submit()};
_.p.submit=function(){var W=this.data.endpoint,B=(0,_.mP.unsafeClone)(W);_.k(B,_.oE)?_.k(B,_.oE).query=this.input.value:_.k(B,_.h8)&&(_.k(B,_.h8).query=this.input.value);var z=_.k(B.commandMetadata,_.Z4);(z==null?0:z.url)?(z.url=_.up(z.url,"query",this.input.value),_.v0(this.hostElement,"yt-navigate",{endpoint:B})):_.k(B,WaF)?(_.k(B,WaF).channelSwitcherQuery=this.input.value,_.dO().resolve(_.p4).resolveCommand(B,{form:{element:this.hostElement}})):(W=Error("Sh`"+JSON.stringify(W)),_.jy(W))};
_.p.getUrl=function(W){return this.get("commandMetadata.webCommandMetadata.url",W)};
sD.prototype.toggleClearButton=sD.prototype.toggleClearButton;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],sD.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sD.prototype,"hideClearButton",void 0);
_.Q([_.F(),_.y("design:type",Object)],sD.prototype,"boundSubmit",void 0);_.Q([_.Hf("#form"),_.y("design:type",HTMLFormElement)],sD.prototype,"form",void 0);_.Q([_.Hf("#input"),_.y("design:type",Object)],sD.prototype,"input",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sD.prototype,"toggleClearButton",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],sD);
_.D(sD,"ytd-search-box-renderer",function(){if(B96!==void 0)return B96;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return B96=W},{mode:2});var Pm=function(){var W=_.S.apply(this,arguments)||this;W.showSearchBox=!0;return W};
_.C(Pm,_.S);Pm.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Pm.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Pm.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Pm.prototype,"showSearchBox",void 0);_.Q([_.u({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Pm);
_.D(Pm,"ytd-channel-switcher-header-renderer",function(){if(RJu!==void 0)return RJu;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return RJu=W},{mode:1});var zuR;var GA4;var ZP=function(){var W=_.S.apply(this,arguments)||this;W.isDisplayed=!0;return W};
_.C(ZP,_.S);_.p=ZP.prototype;_.p.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.dataChanged=function(){this.isDisplayed=!0};
_.p.computeType=function(W){return W||"UNKNOWN"};
_.p.onYtServiceRequestCompleted=function(W){W.stopPropagation();this.isDisplayed=!1};
_.p.onClose=function(){this.isDisplayed=!1};
ZP.prototype.onYtServiceRequestCompleted=ZP.prototype.onYtServiceRequestCompleted;ZP.prototype.dataChanged=ZP.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ZP.prototype,"data",void 0);
_.Q([_.F({computed:"computeType(data.type)",reflectToAttribute:!0}),_.y("design:type",String)],ZP.prototype,"type",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],ZP.prototype,"isDisplayed",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZP.prototype,"dataChanged",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ZP.prototype,"onYtServiceRequestCompleted",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],ZP);
_.D(ZP,"ytd-alert-with-button-renderer",function(){if(GA4!==void 0)return GA4;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return GA4=W},{mode:1});var rG=function(){var W=_.S.apply(this,arguments)||this;W.noResult=!1;W.enableAlertBanner=!1;W.dismissedAlertBanner=!1;W.hideCreateChannelButton=!1;W.boundDismissAlertBanner=function(){W.dismissAlertBanner()};
W.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return W};
_.C(rG,_.S);_.p=rG.prototype;_.p.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.p.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.p.updateChannelSwitcherAction=function(W){var B;W=(B=_.k(W,Nd4))==null?void 0:B.page;_.k(W,ncd)!==void 0&&(this.data=_.k(W,ncd))};
_.p.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]]"}}}}}};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.p.searchQueryChanged=function(W,B){if(this.data&&this.data.contents&&this.data.contents.length){W=[];var z=[];this.hideCreateChannelButton=this.noResult=!1;for(var G=document.querySelectorAll("ytd-account-item-renderer"),Y=_.A(G),d=Y.next();!d.done;d=Y.next())d=d.value,z.push(d),d.style.display="block";this.resetRightBorder(z);if(B){this.hideCreateChannelButton=!0;for(z=1;z<this.data.contents.length;z++)if(d=this.data.contents[z],_.k(d,M77)){var E=void 0,v=void 0;Y=(E=_.k(d,M77))==null?void 0:(v=
E.accountName)==null?void 0:v.simpleText;v=E=void 0;d=(E=_.k(d,M77))==null?void 0:(v=E.channelHandle)==null?void 0:v.simpleText;(E=G[z-1])&&Y&&_.wk(Y,B)?W.push(E):_.r("enable_handle_search_on_channel_switcher")&&E&&d&&_.wk(d.toString(),B.toString())?W.push(E):E.style.display="none"}W.length===0&&(this.noResult=!0);this.resetRightBorder(W)}}};
_.p.resetRightBorder=function(W){for(var B=0;B<W.length;B++)W[B].style.borderRight=!this.hideCreateChannelButton&&(B+2)%3===0||this.hideCreateChannelButton&&(B+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.p.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.p.setShowSearchBox=function(W){if(W&&W.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var B=0;B<W.contents.length;B++)_.k(W.contents[B],_.GH)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.p.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.G5.Object.defineProperties(rG.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.contents)}}});
rG.prototype.onContinuationItemsUpdated=rG.prototype.onContinuationItemsUpdated;rG.prototype.searchQueryChanged=rG.prototype.searchQueryChanged;rG.prototype.onDataChanged=rG.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],rG.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],rG.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.Pl),_.y("design:type",Object)],rG.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],rG.prototype,"data",void 0);_.Q([_.Hf("ytd-channel-switcher-header-renderer"),_.y("design:type",Object)],rG.prototype,"channelSwitcherHeaderRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],rG.prototype,"noResult",void 0);
_.Q([_.F(),_.y("design:type",Object)],rG.prototype,"enableAlertBanner",void 0);_.Q([_.F(),_.y("design:type",Object)],rG.prototype,"dismissedAlertBanner",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],rG.prototype,"hideCreateChannelButton",void 0);_.Q([_.H("data.contents"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rG.prototype,"isLoading",null);_.Q([_.F(),_.y("design:type",Object)],rG.prototype,"boundDismissAlertBanner",void 0);
_.Q([_.F({computed:"computeButtonOverride()"}),_.y("design:type",Object)],rG.prototype,"buttonOverride",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rG.prototype,"onDataChanged",null);_.Q([_.IN("search-query-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,String]),_.y("design:returntype")],rG.prototype,"searchQueryChanged",null);
_.Q([_.IN("yt-next-continuation-data-updated"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],rG.prototype,"onContinuationItemsUpdated",null);_.Q([_.u({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],rG);
_.D(rG,"ytd-channel-switcher-page-renderer",function(){if(zuR!==void 0)return zuR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return zuR=W},{mode:1});var Y$u;var dxT;var kQ=function(){var W=_.S.apply(this,arguments)||this;W.images=[];W.selectedImageIndex=0;return W};
_.C(kQ,_.S);_.p=kQ.prototype;
_.p.ready=function(){_.ug(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.ug(this.JSC$15629_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.ug(this.JSC$15629_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.ug(this.JSC$15629_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.p.onThumbnailClick=function(W){if(W=W.event_.detail)this.selectedImageIndex=this.images.indexOf(W)};
_.p.updateImageThumbnails=function(W){W=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:W.event_.detail});this.images.splice(this.selectedImageIndex,1,W);this.images=[].concat(_.u7(this.images))};
_.p.cancelImageRepositions=function(){this.selectedImageIndex=0;_.v0(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.p.saveImageRepositions=function(){this.selectedImageIndex=0;_.v0(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.G5.Object.defineProperties(kQ.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var W=this;return(this.images||[]).map(function(B,z){return{image:B,selected:z===W.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.Hf("ytd-backstage-image-preview-renderer"),_.y("design:type",Object)],kQ.prototype,"JSC$15629_imagePreviewContainer",void 0);_.Q([_.Hf(".thumbnail-images-container"),_.y("design:type",HTMLElement)],kQ.prototype,"thumbnailImagesContainer",void 0);_.Q([_.F(),_.y("design:type",Array)],kQ.prototype,"images",void 0);
_.Q([_.F(),_.y("design:type",Object)],kQ.prototype,"repositionInstructions",void 0);_.Q([_.F(),_.y("design:type",Object)],kQ.prototype,"selectedImageIndex",void 0);_.Q([_.H("images","selectedImageIndex"),_.y("design:type",Array),_.y("design:paramtypes",[])],kQ.prototype,"thumbnailRendererDatas",null);_.Q([_.H("images","selectedImageIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],kQ.prototype,"selectedImageData",null);
_.Q([_.u({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],kQ);
_.D(kQ,"ytd-backstage-multi-image-reposition-renderer",function(){if(dxT!==void 0)return dxT;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dxT=W},{mode:1});var l4=function(W,B){_.Ka.call(this);this.uploadUrl=W;this.channelId=B;this.imagesUploadData=[]};
_.C(l4,_.Ka);l4.prototype.getAllUploadStatuses=function(){var W=this,B,z,G;return _.T(function(Y){if(Y.nextAddress==1)return Y.yield(pxT(W),2);B=Y.yieldResult;z=B.get("succeed");G=B.get("failed");return Y.return(z.concat(G))})};
var ieT=function(W){var B,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(pxT(W),2);B=G.yieldResult;z=B.get("failed");z.length>0&&ARD(W,z);return G.return(W.getAllUploadStatuses())})},pxT=function(W){var B,z,G,Y,d,E,v;
return _.T(function(c){if(c.nextAddress==1)return B=new Map,c.yield(Promise.allSettled(W.imagesUploadData.map(function(J){return J.uploadPromise})),2);
z=c.yieldResult;G=[];Y=_.A(z);for(d=Y.next();!d.done;d=Y.next())E=d.value,E.status==="fulfilled"&&G.push(E.value);v=W.imagesUploadData.map(function(J){return J.image}).filter(function(J){return G.every(function(g){return g.id!==J.id})});
B.set("succeed",G);B.set("failed",v);return c.return(B)})},ARD=function(W,B){B=_.A(B);
for(var z=B.next();!z.done;z=B.next()){var G=W;z=z.value;EV6(G,z.id)>=0&&G.cancel(z.id);var Y=new T9F(z),d=_.eCR(G.uploadUrl,{"X-YouTube-ChannelId":G.channelId},z.imageBlob);Y.transfer=d;Y.uploadPromise=vVM(d,z);G.imagesUploadData.push(Y);d.run()}};
l4.prototype.cancel=function(W){var B=EV6(this,W);B!==-1&&((B=this.imagesUploadData[B].transfer)&&B.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(z){return z.image.id!==W}))};
var EV6=function(W,B){return W.imagesUploadData.findIndex(function(z){return z.image.id===B})},vVM=function(W,B){return new Promise(function(z,G){W.listen("l",function(){var Y=W.getResponseText();
Y?(Y=JSON.parse(Y).encryptedBlobId,B.encryptedBlobId=Y,z(B)):G("upload failed")});
W.listen("n",function(){G("upload failed")})})},T9F=function(W){this.image=W};var ZPR=function(W,B,z,G,Y){this.id=W;this.imageBlob=B;this.localImageSrc=z;this.naturalWidth=G;this.naturalHeight=Y;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 cR6=[".jpeg",".jpg",".png"],CM=function(){var W=_.S.apply(this,arguments)||this;W.showImagesPreview=!1;W.pollOptions=[];W.errorMessage="";W.optionPlaceholderText="";W.optionDefaultText="";W.JSC$15640_imageId=0;W.maxFileSizeMb=0;W.maxAspectRatio=0;W.invalidFileSizeError="";W.invalidAspectRatioError="";W.invalidFileTypeError="";W.imageSelector=new f6(null,"single_file",cR6);return W};
_.C(CM,_.S);_.p=CM.prototype;_.p.ready=function(){_.ug(this.imageSelector,"j",this.onImageSelect,!1,this);_.ug(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.ug(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.p.dataChanged=function(){var W,B,z=_.k((W=this.data)==null?void 0:(B=W.cellTemplate)==null?void 0:B.onEmptyCellTap,PJD);if(z&&z.uploadUrl&&z.channelId){var G;this.maxFileSizeMb=((G=z.imageValidationInfo)==null?void 0:G.maxFileSizeMb)||0;var Y;this.maxAspectRatio=((Y=z.imageValidationInfo)==null?void 0:Y.allowedMaxAspectRatio)||0;var d;this.invalidFileSizeError=this.getSimpleString((d=this.data)==null?void 0:d.invalidFileSizeError);var E;this.invalidAspectRatioError=this.getSimpleString((E=this.data)==
null?void 0:E.invalidAspectRatioError);var v;this.invalidFileTypeError=this.getSimpleString((v=this.data)==null?void 0:v.invalidFileTypeError);this.uploadManager=new l4(z.uploadUrl,z.channelId)}};
_.p.onEditorInfoChange=function(){this.optionPlaceholderText=_.zR(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.zR(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.p.observeAddImageError=function(){this.errorMessage!==""&&_.v0(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.p.onPollOptionsChange=function(){for(var W=!1,B=[],z=0;z<this.pollOptions.length;z++){var G=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(z+1);this.pollOptions[z].placeholderText!==G?(W=!0,B.push(Object.assign({},this.pollOptions[z],{placeholderText:G}))):B.push(this.pollOptions[z])}W&&(this.pollOptions=B);this.isValid()?_.v0(this.hostElement,"yt-commentbox-post-enable"):_.v0(this.hostElement,"yt-commentbox-post-disable")};
_.p.createPollOptions=function(W){var B=[],z;W=(z=W==null?void 0:W.minPollOptions)!=null?z:0;for(z=0;z<W;z++)B.push(this.createPollOption());return B};
_.p.onImageSelect=function(W){var B=this,z,G,Y,d,E,v;return _.T(function(c){if(c.nextAddress==1){if(B.selectedImageIndex===void 0)return c.jumpTo(0);z=W.files[0];B.errorMessage="";G=B.validateImage(z);if(G!=="")return B.errorMessage=G,c.return();Y=new rP(B.maxAspectRatio,!1,!0);return c.yield(Y.transform(z),3)}if(c.nextAddress!=4)return d=c.yieldResult,d.transformedData?d.invalidAspectRatio?(B.errorMessage=B.invalidAspectRatioError,c.return()):c.yield(r$x(B.JSC$15640_imageId,W.files[0],d.transformedData),
4):(B.errorMessage=B.invalidFileTypeError,c.return());E=c.yieldResult;B.JSC$15640_imageId++;ARD(B.uploadManager,[E]);v=Object.assign({},B.pollOptions[B.selectedImageIndex],{image:E});B.pollOptions.splice(B.selectedImageIndex,1,v);B.refreshPollOptions();_.v0(B.hostElement,"yt-backstage-poll-image-select");_.HG(c)})};
_.p.validateImage=function(W){return W.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.p.refreshPollOptions=function(){this.pollOptions=[].concat(_.u7(this.pollOptions))};
_.p.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.u7(this.pollOptions),[this.createPollOption()]))};
_.p.onRemovePollOption=function(W){var B=this.pollOptions[W.model.index];B&&B.image&&this.uploadManager.cancel(B.image.id);this.pollOptions.splice(W.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.v0(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.p.onTextInput=function(){this.refreshPollOptions()};
_.p.onImageButtonClick=function(W){this.selectedImageIndex=W.model.index;this.imageSelector.click()};
_.p.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.p.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.p.saveImageRepositions=function(W){W=W.event_.detail;for(var B=0,z=[],G=_.A(this.pollOptions),Y=G.next();!Y.done;Y=G.next())Y=Y.value,Y.image!==void 0?(Y=Object.assign({},Y,{image:W[B]}),z.push(Y),B++):z.push(Y);this.showImagesPreview=!1;this.pollOptions=[].concat(_.u7(z))};
_.p.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 W=0,B=_.A(this.pollOptions),z=B.next();!z.done;z=B.next())if(z=z.value,z.optionText.trim()!==""||z.image!==void 0){if(!z.image||this.hasCustomOptionText&&z.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;W++}return W>=Number(this.editorInfo.minPollOptions)};
_.p.getAllUploadStatuses=function(){var W=this,B,z,G,Y;return _.T(function(d){if(d.nextAddress==1)return d.yield(W.uploadManager.getAllUploadStatuses(),2);B=d.yieldResult;z=_.A(B);for(G=z.next();!G.done;G=z.next())if(Y=G.value,Y.encryptedBlobId===void 0)return d.return(ieT(W.uploadManager));return d.return(B)})};
_.p.getPostCreateOptions=function(){for(var W=[],B=_.A(this.pollOptions),z=B.next();!z.done;z=B.next())z=z.value,z.image!==void 0&&W.push({text:this.hasCustomOptionText?z.optionText:z.placeholderText,image:z.image});return W};
_.p.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.p.createButtonRenderer=function(W,B){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:W,accessibilityData:{accessibilityData:{label:this.getSimpleString(W)}},isDisabled:B}};
_.p.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.p.computeThumbnailRendererData=function(W){return W?{image:W,selected:!1}:void 0};
_.p.getSimpleString=function(W){return _.zR(W)};
_.p.updateOptionTextFromBinding=function(W){if(W.target){var B=Array.from(_.tH(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(W.target);if(B>=0){var z;this.pollOptions[B].optionText=(z=W.detail.value)!=null?z:""}}};
_.G5.Object.defineProperties(CM.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var W,B;return this.pollOptions.length<((B=(W=this.editorInfo)==null?void 0:W.maxPollOptions)!=null?B:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(W){return W.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(W){return W.image}).map(function(W){return W.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(W){return W.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var W,B=(W=this.data)==null?void 0:W.addOptionButtonText;return B?this.createButtonRenderer(B,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var W,B=(W=this.data)==null?void 0:W.repositionImagesButtonLabel;return B?this.createButtonRenderer(B,!this.hasImages):void 0}}});
CM.prototype.onPollOptionsChange=CM.prototype.onPollOptionsChange;CM.prototype.observeAddImageError=CM.prototype.observeAddImageError;CM.prototype.onEditorInfoChange=CM.prototype.onEditorInfoChange;CM.prototype.dataChanged=CM.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],CM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.Hf("ytd-backstage-multi-image-reposition-renderer"),_.y("design:type",Object)],CM.prototype,"imageRepositionContainer",void 0);
_.Q([_.F(),_.y("design:type",Object)],CM.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],CM.prototype,"editorInfo",void 0);_.Q([_.F(),_.y("design:type",l4)],CM.prototype,"uploadManager",void 0);_.Q([_.F(),_.y("design:type",Object)],CM.prototype,"showImagesPreview",void 0);_.Q([_.F(),_.y("design:type",Array)],CM.prototype,"pollOptions",void 0);_.Q([_.F(),_.y("design:type",Object)],CM.prototype,"errorMessage",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CM.prototype,"dataChanged",null);_.Q([_.jJ("editorInfo"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CM.prototype,"onEditorInfoChange",null);_.Q([_.oN("errorMessage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CM.prototype,"observeAddImageError",null);
_.Q([_.jJ("pollOptions"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CM.prototype,"onPollOptionsChange",null);_.Q([_.H("pollOptions","editorInfo"),_.y("design:type",Object),_.y("design:paramtypes",[])],CM.prototype,"isAllowedToAddOption",null);_.Q([_.H("pollOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],CM.prototype,"hasImages",null);
_.Q([_.H("pollOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],CM.prototype,"imagesToReposition",null);_.Q([_.H("pollOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],CM.prototype,"hasCustomOptionText",null);_.Q([_.H("data","isAllowedToAddOption"),_.y("design:type",Object),_.y("design:paramtypes",[])],CM.prototype,"addOptionButton",null);_.Q([_.H("data","hasImages"),_.y("design:type",Object),_.y("design:paramtypes",[])],CM.prototype,"repositionImagesButton",null);
_.Q([_.u({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],CM);
_.D(CM,"ytd-backstage-image-poll-editor-renderer",function(){if(Y$u!==void 0)return Y$u;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Y$u=W},{mode:2});var wxQ={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 V_M;var Ib=function(){var W=_.S.apply(this,arguments)||this;W.a11yConfig=wxQ;W.imageDisplayOffsetTop=0;W.imageDisplayOffsetLeft=0;W.pickerDisplayOffsetTop=0;W.pickerDisplayOffsetLeft=0;W.showPreviewContainer=!0;W.startPicker=!1;W.repositionOptional=!1;W.editOnlyMode=!1;W.savedImageDisplayOffsetTop=0;W.savedImageDisplayOffsetLeft=0;return W};
_.C(Ib,_.S);_.p=Ib.prototype;_.p.created=function(){_.p6.requestAvailability()};
_.p.ready=function(){};
_.p.onArrowKeysDown=function(W){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){W.detail.keyboardEvent.preventDefault();var B=0,z=0,G="";switch(W.detail.keyboardEvent.key){case "ArrowUp":k90(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?G=this.a11yConfig.reachBottomOfImage:B=this.imageHeight*.05*-1;break;case "ArrowDown":k90(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?G=this.a11yConfig.reachTopOfImage:
B=this.imageHeight*.05;break;case "ArrowLeft":k90(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?G=this.a11yConfig.reachRightOfImage:z=this.imageWidth*.05*-1;break;case "ArrowRight":k90(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?G=this.a11yConfig.reachLeftOfImage:z=this.imageWidth*.05}G&&_.kq(G)&&_.v0(this.hostElement,"iron-announce",{text:_.kq(G)});if(z||B)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+B)),W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),W=_.kq(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+z)),W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),W=_.kq(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})),W&&_.v0(this.hostElement,"iron-announce",{text:W})}};
_.p.getPreviewPosition=function(W,B,z,G){return Math.round(100*(W+B*.5-z)/G)};
_.p.calculateDisplayPosition=function(){var W=this.imageData.naturalWidth,B=this.imageData.naturalHeight;this.displayScale=Math.max(200/W,200/B);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var z=W*this.displayScale*this.imageData.previewCoordinates.left,G=B*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=B>W?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-z;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=W>B?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-G;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=W*this.displayScale;this.imageHeight=B*this.displayScale};
_.p.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.p.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.p.getSignedPosition=function(W,B,z){return B==="X"&&_.eD("HTML_DIR")==="rtl"?z==="-"?W+"px":W*-1+"px":z==="-"?W*-1+"px":W+"px"};
_.p.pickerMove=function(W){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var B=this.pickerOffsetX-W.clientX,z=this.pickerOffsetY-W.clientY;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
z)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-B))}};
_.p.pickerMoveStart=function(W){this.startPicker=!0;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY};
_.p.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var W=this.generateCropPreview();W&&_.v0(this.hostElement,"ytd-backstage-image-preview-coordinates-update",W)};
_.p.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.v0(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.p.deleteImage=function(){_.v0(this.hostElement,"ytd-backstage-image-preview-delete")};
_.p.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.p.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var W=this.generateCropPreview();W&&_.v0(this.hostElement,"ytd-backstage-image-preview-coordinates-save",W)};
_.p.getPreviewOffset=function(W,B,z){return B&&W?(z==="X"&&_.eD("HTML_DIR")==="rtl"?300/B*W:300/B*W*-1)+"px":"0px"};
_.p.getSimpleText=function(W){return W?_.zR(W):""};
_.p.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}};
_.G5.Object.defineProperties(Ib.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.kq(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.kq(this.a11yConfig.verticalRepositionInstruction)}W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.kq(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.kq(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 W,B,z=(W=this.instruction)==null?void 0:(B=W.previewInstruction)==null?void 0:B.editButtonLabel;return z?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:z,accessibilityData:{accessibilityData:{label:this.getSimpleText(z)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G,Y=this.editOnlyMode?(W=this.instruction)==null?void 0:(B=W.editInstruction)==null?void 0:B.saveImagesButtonLabel:(z=this.instruction)==null?void 0:(G=z.editInstruction)==null?void 0:G.saveButtonLabel;return Y?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Y,accessibilityData:{accessibilityData:{label:this.getSimpleText(Y)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var W,B,z=(W=this.instruction)==null?void 0:(B=W.previewInstruction)==null?void 0:B.deleteButtonLabel;return z?{size:"SIZE_SMALL",text:z,accessibilityData:{accessibilityData:{label:this.getSimpleText(z)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var W,B,z=(W=this.instruction)==null?void 0:(B=W.editInstruction)==null?void 0:B.cancelButtonLabel;W=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return z?{style:W,size:"SIZE_SMALL",text:z,accessibilityData:{accessibilityData:{label:this.getSimpleText(z)}}}: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"}}});
Ib.prototype.onEditOnlyModeUpdate=Ib.prototype.onEditOnlyModeUpdate;Ib.prototype.onImageChange=Ib.prototype.onImageChange;_.Q([_.F(),_.y("design:type",ZPR)],Ib.prototype,"imageData",void 0);_.Q([_.F(),_.y("design:type",Object)],Ib.prototype,"instruction",void 0);_.Q([_.F(),_.y("design:type",Object)],Ib.prototype,"a11yConfig",void 0);_.Q([_.F(),_.y("design:type",Number)],Ib.prototype,"imageWidth",void 0);_.Q([_.F(),_.y("design:type",Number)],Ib.prototype,"imageHeight",void 0);
_.Q([_.F(),_.y("design:type",Number)],Ib.prototype,"displayScale",void 0);_.Q([_.F(),_.y("design:type",Object)],Ib.prototype,"imageDisplayOffsetTop",void 0);_.Q([_.F(),_.y("design:type",Object)],Ib.prototype,"imageDisplayOffsetLeft",void 0);_.Q([_.F(),_.y("design:type",Object)],Ib.prototype,"pickerDisplayOffsetTop",void 0);_.Q([_.F(),_.y("design:type",Object)],Ib.prototype,"pickerDisplayOffsetLeft",void 0);_.Q([_.F(),_.y("design:type",Object)],Ib.prototype,"showPreviewContainer",void 0);
_.Q([_.F(),_.y("design:type",Object)],Ib.prototype,"startPicker",void 0);_.Q([_.F(),_.y("design:type",Number)],Ib.prototype,"pickerOffsetX",void 0);_.Q([_.F(),_.y("design:type",Number)],Ib.prototype,"pickerOffsetY",void 0);_.Q([_.F(),_.y("design:type",Object)],Ib.prototype,"repositionOptional",void 0);_.Q([_.F(),_.y("design:type",Object)],Ib.prototype,"editOnlyMode",void 0);_.Q([_.Hf("#picker-container"),_.y("design:type",HTMLElement)],Ib.prototype,"JSC$15653_pickerContainer",void 0);
_.Q([_.Hf("#picker"),_.y("design:type",HTMLElement)],Ib.prototype,"picker",void 0);_.Q([_.Hf("#preview-clipper"),_.y("design:type",HTMLElement)],Ib.prototype,"previewClipper",void 0);_.Q([_.Hf("#image-in-picker-background"),_.y("design:type",HTMLImageElement)],Ib.prototype,"JSC$15653_imageInBackground",void 0);_.Q([_.Hf("#image-in-picker"),_.y("design:type",HTMLImageElement)],Ib.prototype,"JSC$15653_imageInPicker",void 0);
_.Q([_.Hf("#image-in-preview-clipper"),_.y("design:type",HTMLImageElement)],Ib.prototype,"JSC$15653_imageInPreviewClipper",void 0);_.Q([_.H("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],Ib.prototype,"altLabelForImage",null);_.Q([_.H("imageHeight","imageWidth"),_.y("design:type",Number),_.y("design:paramtypes",[])],Ib.prototype,"pickerSize",null);
_.Q([_.H("imageHeight","imageWidth"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ib.prototype,"imageOrientationStyle",null);_.Q([_.H("instruction"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ib.prototype,"editButton",null);_.Q([_.H("instruction","editOnlyMode"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ib.prototype,"saveButton",null);_.Q([_.H("instruction"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ib.prototype,"deleteButton",null);
_.Q([_.H("instruction","editOnlyMode"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ib.prototype,"cancelButton",null);_.Q([_.H("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.y("design:type",Number),_.y("design:paramtypes",[])],Ib.prototype,"cropOffsetTop",null);_.Q([_.H("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.y("design:type",Number),_.y("design:paramtypes",[])],Ib.prototype,"cropOffsetLeft",null);
_.Q([_.H("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],Ib.prototype,"pickerBackgroundStyle",null);_.Q([_.H("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],Ib.prototype,"pickerDisplayStyle",null);_.Q([_.H("cropOffsetLeft","cropOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],Ib.prototype,"imageInPickerStyle",null);
_.Q([_.H("cropOffsetLeft","cropOffsetTop","pickerSize"),_.y("design:type",String),_.y("design:paramtypes",[])],Ib.prototype,"previewClipperStyle",null);_.Q([_.jJ("imageData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ib.prototype,"onImageChange",null);_.Q([_.jJ("editOnlyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ib.prototype,"onEditOnlyModeUpdate",null);
_.Q([_.H("showPreviewContainer"),_.y("design:type",String),_.y("design:paramtypes",[])],Ib.prototype,"pickerModeStyle",null);_.Q([_.u({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Ib);
_.D(Ib,"ytd-backstage-image-preview-renderer",function(){if(V_M!==void 0)return V_M;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return V_M=W},{mode:1});var JR9;var gVH={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 t_H;var sSF;var ob=function(){var W=_.S.apply(this,arguments)||this;W.a11yConfig=gVH;W.imageDisplayOffsetTop=0;W.imageDisplayOffsetLeft=0;W.pickerDisplayOffsetTop=0;W.pickerDisplayOffsetLeft=0;W.cropCoordinatesSaved=!1;W.previewSize=0;W.startPicker=!1;W.repositionOptional=!1;return W};
_.C(ob,_.S);_.p=ob.prototype;_.p.created=function(){_.p6.requestAvailability()};
_.p.ready=function(){};
_.p.onArrowKeysDown=function(W){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){W.detail.keyboardEvent.preventDefault();var B=0,z=0,G="";switch(W.detail.keyboardEvent.key){case "ArrowUp":lzT(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?G=this.a11yConfig.reachBottomOfImage:B=this.imageHeight*.05*-1;break;case "ArrowDown":lzT(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?G=this.a11yConfig.reachTopOfImage:
B=this.imageHeight*.05;break;case "ArrowLeft":lzT(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?G=this.a11yConfig.reachRightOfImage:z=this.imageWidth*.05*-1;break;case "ArrowRight":lzT(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?G=this.a11yConfig.reachLeftOfImage:z=this.imageWidth*.05}G&&_.kq(G)&&_.v0(this.hostElement,"iron-announce",{text:_.kq(G)});if(z||B)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+B)),W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),W=_.kq(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+z)),W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),W=_.kq(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})),W&&_.v0(this.hostElement,"iron-announce",{text:W})}};
_.p.getPreviewPosition=function(W,B,z,G){return Math.round(100*(W+B*.5-z)/G)};
_.p.displayImage=function(){var W=this.JSC$15664_pickerContainer.getBoundingClientRect().width,B=this.JSC$15664_pickerContainer.getBoundingClientRect().height,z=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),G=this.JSC$15664_imageInBackground.naturalWidth,Y=this.JSC$15664_imageInBackground.naturalHeight;this.displayScale=Math.max(z/G,z/Y);this.imageWidth=G*this.displayScale;this.imageHeight=Y*this.displayScale;this.pickerDisplayOffsetLeft=(W-z)/2;this.pickerDisplayOffsetTop=
(B-z)/2;this.imageDisplayOffsetLeft=Y>G?this.pickerDisplayOffsetLeft:(W-this.imageWidth)/2;this.imageDisplayOffsetTop=G>Y?this.pickerDisplayOffsetTop:(B-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.p.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15664_imageInBackground.src=this.imageData.toString(),this.JSC$15664_imageInPicker.src=this.imageData.toString(),this.JSC$15664_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.p.getSignedPosition=function(W,B,z){return B==="X"&&_.eD("HTML_DIR")==="rtl"?z==="-"?W+"px":W*-1+"px":z==="-"?W*-1+"px":W+"px"};
_.p.pickerMove=function(W){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var B=this.pickerOffsetX-W.clientX,z=this.pickerOffsetY-W.clientY;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
z)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-B))}};
_.p.pickerMoveStart=function(W){this.startPicker=!0;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY};
_.p.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.p.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.v0(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.p.getPreviewOffset=function(W,B,z,G){return B&&W&&z?(G==="X"&&_.eD("HTML_DIR")==="rtl"?z/B*W:z/B*W*-1)+"px":"0px"};
_.p.getSimpleText=function(W){return W?_.zR(W):""};
_.p.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var W=this.cropOffsetTop/this.imageHeight,B=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,z=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,G=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.tH(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.v0(this.hostElement,"yt-img-crop-coordinates-update",{top:W,right:B,bottom:z,left:G})}};
_.G5.Object.defineProperties(ob.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.kq(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.kq(this.a11yConfig.verticalRepositionInstruction)}W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.kq(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.kq(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 W,B=(W=this.learnMore.runs[0])==null?void 0:W.navigationEndpoint,z;return((z=_.k(B,_.DD))==null?void 0:z.url)||void 0}}}});
ob.prototype.onImageDataChange=ob.prototype.onImageDataChange;_.Q([_.F(),_.y("design:type",Object)],ob.prototype,"imageData",void 0);_.Q([_.F(),_.y("design:type",Object)],ob.prototype,"instruction",void 0);_.Q([_.F(),_.y("design:type",Object)],ob.prototype,"a11yConfig",void 0);_.Q([_.F(),_.y("design:type",Number)],ob.prototype,"imageWidth",void 0);_.Q([_.F(),_.y("design:type",Number)],ob.prototype,"imageHeight",void 0);_.Q([_.F(),_.y("design:type",Number)],ob.prototype,"displayScale",void 0);
_.Q([_.F(),_.y("design:type",Object)],ob.prototype,"imageDisplayOffsetTop",void 0);_.Q([_.F(),_.y("design:type",Object)],ob.prototype,"imageDisplayOffsetLeft",void 0);_.Q([_.F(),_.y("design:type",Object)],ob.prototype,"pickerDisplayOffsetTop",void 0);_.Q([_.F(),_.y("design:type",Object)],ob.prototype,"pickerDisplayOffsetLeft",void 0);_.Q([_.F(),_.y("design:type",Object)],ob.prototype,"cropCoordinatesSaved",void 0);_.Q([_.F(),_.y("design:type",Object)],ob.prototype,"previewSize",void 0);
_.Q([_.F(),_.y("design:type",Object)],ob.prototype,"startPicker",void 0);_.Q([_.F(),_.y("design:type",Number)],ob.prototype,"pickerOffsetX",void 0);_.Q([_.F(),_.y("design:type",Number)],ob.prototype,"pickerOffsetY",void 0);_.Q([_.F(),_.y("design:type",Object)],ob.prototype,"repositionOptional",void 0);_.Q([_.Hf("#picker-container"),_.y("design:type",HTMLElement)],ob.prototype,"JSC$15664_pickerContainer",void 0);_.Q([_.Hf("#picker"),_.y("design:type",HTMLElement)],ob.prototype,"picker",void 0);
_.Q([_.Hf("#image-in-picker-background"),_.y("design:type",HTMLImageElement)],ob.prototype,"JSC$15664_imageInBackground",void 0);_.Q([_.Hf("#image-in-picker"),_.y("design:type",HTMLImageElement)],ob.prototype,"JSC$15664_imageInPicker",void 0);_.Q([_.Hf("#image-in-preview-clipper"),_.y("design:type",HTMLImageElement)],ob.prototype,"JSC$15664_imageInPreviewClipper",void 0);_.Q([_.Hf("#full-image-as-preview"),_.y("design:type",HTMLImageElement)],ob.prototype,"imageAsPreview",void 0);
_.Q([_.H("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],ob.prototype,"altLabelForImage",null);_.Q([_.H("imageHeight","imageWidth"),_.y("design:type",Number),_.y("design:paramtypes",[])],ob.prototype,"pickerSize",null);_.Q([_.H("imageHeight","imageWidth"),_.y("design:type",Object),_.y("design:paramtypes",[])],ob.prototype,"imageOrientationStyle",null);
_.Q([_.H("instruction.previewInstruction.editButtonLabel"),_.y("design:type",Object),_.y("design:paramtypes",[])],ob.prototype,"editButton",null);_.Q([_.H("instruction.editInstruction.saveButtonLabel"),_.y("design:type",Object),_.y("design:paramtypes",[])],ob.prototype,"saveButton",null);_.Q([_.H("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.y("design:type",Number),_.y("design:paramtypes",[])],ob.prototype,"cropOffsetTop",null);
_.Q([_.H("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.y("design:type",Number),_.y("design:paramtypes",[])],ob.prototype,"cropOffsetLeft",null);_.Q([_.H("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],ob.prototype,"pickerBackgroundStyle",null);_.Q([_.H("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],ob.prototype,"pickerDisplayStyle",null);
_.Q([_.H("cropOffsetLeft","cropOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],ob.prototype,"imageInPickerStyle",null);_.Q([_.H("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.y("design:type",String),_.y("design:paramtypes",[])],ob.prototype,"previewClipperStyle",null);_.Q([_.oN("imageData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ob.prototype,"onImageDataChange",null);
_.Q([_.H("cropCoordinatesSaved"),_.y("design:type",String),_.y("design:paramtypes",[])],ob.prototype,"pickerModeStyle",null);_.Q([_.H("instruction.editInstruction.learnMore"),_.y("design:type",Object),_.y("design:paramtypes",[])],ob.prototype,"learnMore",null);_.Q([_.H("learnMore"),_.y("design:type",Object),_.y("design:paramtypes",[])],ob.prototype,"learnMoreUrl",null);_.Q([_.NJ({is:"yt-img-crop-picker",disableElementRegistration:!0})],ob);
_.D(ob,"yt-img-crop-picker",function(){if(sSF===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;t_H===void 0&&(t_H=document.createElement("template"));var G=t_H;z.call(B,G.content.cloneNode(!0),W.content.firstChild);sSF=W}W=sSF;return W},{mode:2});var hU=function(){var W=_.S.apply(this,arguments)||this;W.errorMessage="";W.hasPreview=!1;W.isBackstagePost=!1;W.dismissButtonOverrides={size:"XS"};return W};
_.C(hU,_.S);_.p=hU.prototype;_.p.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"}}}};
_.p.detached=function(){this.removeOverlay()};
_.p.setPreview=function(W){_.tH(this.hostElement).querySelector("#preview-picker").imageData=W;this.hasPreview=!0;_.v0(this.hostElement,"yt-backstage-image-select-preview")};
_.p.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var W=_.tH(this.hostElement).querySelector("#dropzone");W.classList.remove("dragover");W.classList.remove("error");_.v0(this.hostElement,"yt-backstage-image-select-cancel")};
_.p.setupOverlay=function(){var W=this.imageUploadEndpoint;this.removeOverlay();if(W&&W.imageValidationInfo){var B=_.tH(this.hostElement).querySelector("#dropzone"),z=_.tH(this.hostElement).querySelector("#select");this.overlay=new li(W.uploadUrl,W.channelId,W.imageValidationInfo.maxFileSizeMb,W.imageValidationInfo.allowedMaxAspectRatio,B,z,!0);_.ug(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.ug(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.ug(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.ug(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.ug(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.p.removeOverlay=function(){this.overlay&&(_.Xn(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Xn(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Xn(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Xn(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Xn(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.p.onDragOver=function(W){var B=_.tH(this.hostElement).querySelector("#dropzone");_.Pf(B,"dragover",W.value)};
_.p.onPreview=function(W){this.setPreview(W.value)};
_.p.onImageError=function(W){if(W.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var B;W=(B=this.data)==null?void 0:B.fileSizeError}else if(W.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var z;W=(z=this.data)==null?void 0:z.invalidError}else if(W.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var G;W=(G=this.data)==null?void 0:G.invalidAspectRatioError}else return;this.errorMessage=_.zR(W);_.tH(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.p.onImageAlert=function(W){this.onImageError(W)};
_.p.uploadPromise=function(){var W=this,B=this.overlay&&this.overlay.uploadPromise();if(B)return B.catch(function(){throw Error(W.data?_.zR(W.data.uploadFailureError):"");})};
_.G5.Object.defineProperties(hU.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var W,B;if((W=this.data)==null?0:(B=W.icon)==null?0:B.iconType)return _.lg(this.data.icon.iconType)}}});
hU.prototype.setupOverlay=hU.prototype.setupOverlay;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],hU.prototype,"rendererStamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],hU.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],hU.prototype,"imageUploadEndpoint",void 0);_.Q([_.F(),_.y("design:type",Object)],hU.prototype,"errorMessage",void 0);
_.Q([_.F(),_.y("design:type",li)],hU.prototype,"overlay",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],hU.prototype,"hasPreview",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],hU.prototype,"isBackstagePost",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],hU.prototype,"selectionCancel",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],hU.prototype,"previewCancel",null);
_.Q([_.H("data.icon.iconType"),_.y("design:type",Object),_.y("design:paramtypes",[])],hU.prototype,"icon",null);_.Q([_.F(),_.y("design:type",Object)],hU.prototype,"dismissButtonOverrides",void 0);_.Q([_.oN("imageUploadEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hU.prototype,"setupOverlay",null);_.Q([_.u({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],hU);
_.D(hU,"ytd-backstage-image-select-renderer",function(){if(JR9!==void 0)return JR9;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return JR9=W},{mode:1});var PbR;var ZeF;var Hm=function(){var W=_.S.apply(this,arguments)||this;W.selected=!1;return W};
_.C(Hm,_.S);_.p=Hm.prototype;_.p.computeSelected=function(W){return W==null?void 0:W.selected};
_.p.computeTransform=function(W,B,z){var G,Y,d=(Y=(G=this.imageContainer)==null?void 0:G.getBoundingClientRect())!=null?Y:{width:0,height:0};G=Math.max(d.width/B,d.height/z);z=z*G*W.top;return"translateX("+this.getSignedPosition(B*G*W.left,"X","-")+") translateY("+this.getSignedPosition(z,"Y","-")+")"};
_.p.getSignedPosition=function(W,B,z){return B==="X"&&_.eD("HTML_DIR")==="rtl"?z==="-"?W+"px":W*-1+"px":z==="-"?W*-1+"px":W+"px"};
_.p.onClick=function(){var W;_.v0(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(W=this.data)==null?void 0:W.image)};
_.p.onKeyPress=function(W){if(W.keyCode===13)this.onClick()};
_.G5.Object.defineProperties(Hm.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?void 0:(B=W.image)==null?void 0:B.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.image){var B;W=(B=this.data)==null?void 0:B.image;return W.previewCoordinates.top!==0||W.previewCoordinates.left!==0?(B=this.computeTransform(W.previewCoordinates,W.naturalWidth,W.naturalHeight),W.naturalHeight>=W.naturalWidth?"width:inherit;transform:"+B+";":"height:inherit;transform:"+B+";"):W.naturalHeight>=W.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Hm.prototype.onKeyPress=Hm.prototype.onKeyPress;_.Q([_.Hf(".image-container"),_.y("design:type",HTMLElement)],Hm.prototype,"imageContainer",void 0);_.Q([_.F(),_.y("design:type",Object)],Hm.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.y("design:type",Object)],Hm.prototype,"selected",void 0);_.Q([_.H("data.image"),_.y("design:type",Object),_.y("design:paramtypes",[])],Hm.prototype,"thumbnailUrl",null);
_.Q([_.H("data.image","data.image.previewCoordinates"),_.y("design:type",Object),_.y("design:paramtypes",[])],Hm.prototype,"thumbnailStyle",null);_.Q([_.IN("keypress"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Hm.prototype,"onKeyPress",null);_.Q([_.u({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Hm);
_.D(Hm,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(ZeF!==void 0)return ZeF;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ZeF=W},{mode:2});var Ff=function(W,B,z){z=z===void 0?!1:z;_.Ka.call(this);var G=this;this.dropZoneOverlay=new j9(W);this.selectOverlay=z?new f6(B,"multiple_file",["image/*"]):new f6(B,"single_file",["image/*"]);this.handler=new _.T5(this);_.rH(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(B,"click",function(){G.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.C(Ff,_.Ka);Ff.prototype.onChange=function(W){var B;(B=W.files)!=null&&B.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:W.files}))};var SV=function(){var W=_.S.apply(this,arguments)||this;W.addImageErrorMessage="";W.errorMessage="";W.images=[];W.selectedImageIndex=0;W.modern=_.r("web_modern_buttons");W.maxNumImagesPerPost=_.iO("max_num_images_per_post_web_ui");W.JSC$15679_imageId=0;return W};
_.C(SV,_.S);_.p=SV.prototype;_.p.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.v0(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.p.observeDragToReorder=function(){var W=this;if(this.showImagesPreview){var B,z=HM7(_.j8.getInstance(),(B=this.data)==null?void 0:B.dragToReorderTooltip);_.fg.addLowPriorityJob(function(){_.Jr(W.hostElement,z,W.thumbnailDragDropArea)})}};
_.p.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}}};
_.p.computeThumbnail=function(W){return(W==null?void 0:W.localImageSrc)||void 0};
_.p.onRendererstamperFinished=function(){_.gfQ(this.ytReorderableBehavior,_.tH(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.tH(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.p.handleDrop=function(W){var B=W.currDragItem;if(B!=null&&B.data){W=this.images[this.selectedImageIndex];var z=B.data.image,G=this.images.indexOf(z)||0;B=_.mr(B.parentNode.children,B);this.images.splice(G,1);this.images.splice(B,0,z);this.images=[].concat(_.u7(this.images));this.selectedImageIndex=this.images.indexOf(W)}};
_.p.setUpImagePicker=function(){var W=this.imageUploadEndpoint;W&&W.imageValidationInfo&&(this.uploadManager=new l4(W.uploadUrl,W.channelId),this.initialPicker||(this.initialPicker=new Ff(this.dropzone,this.selectLink,!0),_.ug(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Ff(this.addImageButtonContainer,this.addImageSelectButton),_.ug(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.ug(this.JSC$15679_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.ug(this.JSC$15679_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.ug(_.tH(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.p.detached=function(){this.initialPicker&&(_.Xn(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Xn(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.p.onInitialSelectImages=function(W){var B=this;return _.T(function(z){return z.yield(B.onSelectImages(W,!1),0)})};
_.p.onAddImage=function(W){var B=this;return _.T(function(z){return z.yield(B.onSelectImages(W,!0),0)})};
_.p.onSelectImages=function(W,B){var z=this,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a,q,n,L;return _.T(function(By){switch(By.nextAddress){case 1:B?z.addImageErrorMessage="":(z.images=[],z.errorMessage="");G=W.detail;Y=z.validateImages([].concat(_.u7(G)));if(Y!=="")return B?z.addImageErrorMessage=Y:z.errorMessage=Y,By.return();d=[].concat(_.u7(G)).map(function(gk){return(new rP(z.maxAspectRatio,!1,!0)).transform(gk)});
return By.yield(Promise.allSettled(d),2);case 2:E=By.yieldResult,v=_.A(E.entries()),c=v.next();case 3:if(c.done){By.jumpTo(5);break}J=c.value;g=_.A(J);t=g.next().value;P=g.next().value;Z=t;l=P;if(l.status!=="fulfilled"){K=O=b=void 0;B?z.addImageErrorMessage=_.zR((b=z.data)==null?void 0:b.invalidError):z.errorMessage=z.errorMessage===""?_.zR((O=z.data)==null?void 0:O.invalidError):_.zR((K=z.data)==null?void 0:K.multiFileError);By.jumpTo(4);break}e=l.value;e.cropped&&_.v0(z.hostElement,"yt-backstage-multi-image-cropped");
if(e.invalidAspectRatio){n=q=a=void 0;B?z.addImageErrorMessage=_.zR((a=z.data)==null?void 0:a.invalidAspectRatioError):z.errorMessage=z.errorMessage===""?_.zR((q=z.data)==null?void 0:q.invalidAspectRatioError):_.zR((n=z.data)==null?void 0:n.multiFileError);By.jumpTo(4);break}return By.yield(r$x(z.JSC$15679_imageId,W.detail[Z],e.transformedData),8);case 8:L=By.yieldResult,z.images.push(L),z.JSC$15679_imageId++;case 4:c=v.next();By.jumpTo(3);break;case 5:if(z.errorMessage!==""||z.addImageErrorMessage!==
"")return By.return();B?ARD(z.uploadManager,[z.images[z.images.length-1]]):ARD(z.uploadManager,z.images);z.images=[].concat(_.u7(z.images));z.selectedImageIndex=B?Math.max(z.images.length-1,0):0;_.v0(z.hostElement,"yt-backstage-multi-image-select");_.HG(By)}})};
_.p.onThumbnailClick=function(W){if(W=W.event_.detail)this.selectedImageIndex=this.images.indexOf(W)};
_.p.validateImages=function(W){if(W.length>this.maxNumImagesPerPost){var B;return _.zR((B=this.data)==null?void 0:B.multiImageExceedMaxImageCountError)}var z=1048576*this.maxFileSizeMb;W=W.filter(function(d){return d.size>z}).length;
if(W===0)return"";var G,Y;W=W>1?(G=this.data)==null?void 0:G.multiFileError:(Y=this.data)==null?void 0:Y.fileSizeError;return _.zR(W)};
_.p.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.u7(this.images));this.selectedImageIndex=0};
_.p.repositionImage=function(W){this.images[this.selectedImageIndex].previewCoordinates=W.event_.detail;this.images=[].concat(_.u7(this.images))};
_.p.getAllUploadStatuses=function(){var W=this,B,z,G,Y;return _.T(function(d){if(d.nextAddress==1)return d.yield(W.uploadManager.getAllUploadStatuses(),2);B=d.yieldResult;z=_.A(B);for(G=z.next();!G.done;G=z.next())if(Y=G.value,Y.encryptedBlobId===void 0)return d.return(ieT(W.uploadManager));return d.return(B)})};
_.p.hasImages=function(){return this.images.length>0};
_.p.cancel=function(){for(var W=this.uploadManager,B=_.A(W.imagesUploadData),z=B.next();!z.done;z=B.next())W.cancel(z.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.v0(this.hostElement,"yt-backstage-multi-image-cancel")};
_.G5.Object.defineProperties(SV.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.imageUploadEndpoint)==null?void 0:(B=W.imageValidationInfo)==null?void 0:B.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.imageUploadEndpoint)==null?void 0:(B=W.imageValidationInfo)==null?void 0:B.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var W,B;if((W=this.data)==null?0:(B=W.icon)==null?0:B.iconType)return _.lg(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.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 W=this;return(this.images||[]).map(function(B,z){return{renderer:{image:B,selected:z===W.selectedImageIndex}}})}}});
SV.prototype.setUpImagePicker=SV.prototype.setUpImagePicker;SV.prototype.onRendererstamperFinished=SV.prototype.onRendererstamperFinished;SV.prototype.observeDragToReorder=SV.prototype.observeDragToReorder;SV.prototype.observeAddImageError=SV.prototype.observeAddImageError;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],SV.prototype,"rendererStamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.toQ),_.y("design:type",Object)],SV.prototype,"ytReorderableBehavior",void 0);_.Q([_.Hf("#dropzone"),_.y("design:type",HTMLElement)],SV.prototype,"dropzone",void 0);_.Q([_.Hf("#select-link"),_.y("design:type",HTMLElement)],SV.prototype,"selectLink",void 0);_.Q([_.Hf("#thumbnail-drag-drop-area"),_.y("design:type",HTMLElement)],SV.prototype,"thumbnailDragDropArea",void 0);_.Q([_.Hf("#add-image-button-container"),_.y("design:type",HTMLElement)],SV.prototype,"addImageButtonContainer",void 0);
_.Q([_.Hf("#add-image-button"),_.y("design:type",HTMLElement)],SV.prototype,"addImageSelectButton",void 0);_.Q([_.Hf("#image-preview-container"),_.y("design:type",Object)],SV.prototype,"JSC$15679_imagePreviewContainer",void 0);_.Q([_.F(),_.y("design:type",Object)],SV.prototype,"addImageErrorMessage",void 0);_.Q([_.F(),_.y("design:type",Object)],SV.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],SV.prototype,"errorMessage",void 0);
_.Q([_.F(),_.y("design:type",Object)],SV.prototype,"imageUploadEndpoint",void 0);_.Q([_.F(),_.y("design:type",Array)],SV.prototype,"images",void 0);_.Q([_.F(),_.y("design:type",Ff)],SV.prototype,"initialPicker",void 0);_.Q([_.F(),_.y("design:type",Ff)],SV.prototype,"addImagePicker",void 0);_.Q([_.F(),_.y("design:type",l4)],SV.prototype,"uploadManager",void 0);_.Q([_.F(),_.y("design:type",Object)],SV.prototype,"selectedImageIndex",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SV.prototype,"modern",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SV.prototype,"maxNumImagesPerPost",void 0);_.Q([_.H("imageUploadEndpoint"),_.y("design:type",Number),_.y("design:paramtypes",[])],SV.prototype,"maxAspectRatio",null);_.Q([_.H("imageUploadEndpoint"),_.y("design:type",Number),_.y("design:paramtypes",[])],SV.prototype,"maxFileSizeMb",null);
_.Q([_.H("data.icon.iconType"),_.y("design:type",Object),_.y("design:paramtypes",[])],SV.prototype,"dropIcon",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],SV.prototype,"selectionCancel",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],SV.prototype,"previewCancel",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],SV.prototype,"dataForAddImageButton",null);
_.Q([_.H("errorMessage"),_.y("design:type",String),_.y("design:paramtypes",[])],SV.prototype,"dropzoneClass",null);_.Q([_.H("images"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],SV.prototype,"showImagesPreview",null);_.Q([_.H("images"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],SV.prototype,"containMaxImages",null);_.Q([_.oN("addImageErrorMessage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SV.prototype,"observeAddImageError",null);
_.Q([_.oN("showImagesPreview"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SV.prototype,"observeDragToReorder",null);_.Q([_.H("images","selectedImageIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],SV.prototype,"selectedImageData",null);_.Q([_.H("images","selectedImageIndex"),_.y("design:type",Array),_.y("design:paramtypes",[])],SV.prototype,"thumbnailRenderers",null);
_.Q([_.IN("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SV.prototype,"onRendererstamperFinished",null);_.Q([_.oN("imageUploadEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SV.prototype,"setUpImagePicker",null);_.Q([_.u({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],SV);
_.D(SV,"ytd-backstage-multi-image-select-renderer",function(){if(PbR!==void 0)return PbR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return PbR=W},{mode:1});var rRM;var kAU;var lt6;var b4=function(){var W=_.S.apply(this,arguments)||this;W.boundCaptureFocus=function(B){W.onCaptureFocus(B)};
return W};
_.C(b4,_.S);_.p=b4.prototype;_.p.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.p.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.p.onCaptureFocus=function(W){_.AH(W).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.p.getIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.p.onSelect=function(){var W;if((W=this.data)==null?0:W.onSelectCommand)if(_.r("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var B;((B=_.k(this.data.onSelectCommand.commandMetadata,_.Z4))==null?0:B.url)?_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.dO().resolve(_.p4).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.G5.Object.defineProperties(b4.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.zR(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}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],b4.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],b4.prototype,"data",void 0);_.Q([_.Hf("#item"),_.y("design:type",HTMLElement)],b4.prototype,"item",void 0);_.Q([_.H("data.label"),_.y("design:type",String),_.y("design:paramtypes",[])],b4.prototype,"label",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],b4.prototype,"value",null);_.Q([_.u({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],b4);
_.D(b4,"ytd-privacy-dropdown-item-renderer",function(){if(lt6!==void 0)return lt6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return lt6=W},{mode:1});var jV=function(){var W=_.S.apply(this,arguments)||this;W.value="";W.label="";W.disabled=!1;return W};
_.C(jV,_.S);_.p=jV.prototype;_.p.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"}}}};
_.p.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.p.dataChanged=function(){this.reset()};
_.p.valueChanged=function(){var W;if(this.value&&(W=this.data)!=null&&W.entries){W=_.A(this.data.entries);for(var B=W.next();!B.done;B=W.next())if((B=this.getRendererForEntry(B.value))&&this.getItemRendererValue(B)===this.value){this.label=this.ytComponentBehavior.getSimpleString(B.label);break}}};
_.p.setInitialLabel=function(){if(this.data&&this.data.entries)for(var W=_.A(this.data.entries),B=W.next();!B.done;B=W.next())if(B=this.getRendererForEntry(B.value)){if(B.isSelected){this.label=this.ytComponentBehavior.getSimpleString(B.label);break}this.data.label&&(this.label=this.data.label)}};
_.p.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var W=_.A(this.data.entries),B=W.next();!B.done;B=W.next()){B=this.getRendererForEntry(B.value);var z=void 0;if((z=B)==null?0:z.isSelected)return this.getItemRendererValue(B)||-1}return-1};
_.p.getItemRendererValue=function(W){return"stringValue"in W||"int32Value"in W?W.stringValue||W.int32Value||null:null};
_.p.getRendererForEntry=function(W){return W.dropdownItemRenderer||W.privacyDropdownItemRenderer||W.navigationDropdownItemRenderer||null};
_.p.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("value-changed",this.value))};
_.p.updateValueFromBinding=function(W){this.value=W.detail.value};
jV.prototype.valueChangedForBinding=jV.prototype.valueChangedForBinding;jV.prototype.valueChanged=jV.prototype.valueChanged;jV.prototype.dataChanged=jV.prototype.dataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],jV.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],jV.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],jV.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],jV.prototype,"value",void 0);_.Q([_.F(),_.y("design:type",Object)],jV.prototype,"label",void 0);_.Q([_.Hf("#entries"),_.y("design:type",Object)],jV.prototype,"entries",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jV.prototype,"disabled",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jV.prototype,"dataChanged",null);
_.Q([_.jJ("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jV.prototype,"valueChanged",null);_.Q([_.oN("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jV.prototype,"valueChangedForBinding",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],jV);
_.D(jV,"ytd-flat-dropdown-renderer",function(){if(kAU!==void 0)return kAU;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return kAU=W},{mode:1});var Cb7;var fM=function(){var W=_.S.apply(this,arguments)||this;W.quizOptions=[];W.explanationPlaceholderText="";W.optionPlaceholderText="";W.correctAnswerIndex=-1;W.isMarkAnswerTooltipShown=!1;W.timer=0;return W};
_.C(fM,_.S);_.p=fM.prototype;_.p.dataChanged=function(){this.optionPlaceholderText=_.zR(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.zR(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.p.onMarkCorrectAnswer=function(W){var B,z=((B=this.quizOptions[this.correctAnswerIndex])==null?void 0:B.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[W.model.index]=Object.assign({},this.quizOptions[W.model.index],{explanationText:z,isCorrect:!0});this.correctAnswerIndex=W.model.index;this.quizOptions=[].concat(_.u7(this.quizOptions))};
_.p.updatePlaceholderTexts=function(){for(var W=!1,B=[],z=0;z<this.quizOptions.length;z++){var G=this.optionPlaceholderText+" "+(z+1),Y=void 0;((Y=this.quizOptions[z])==null?void 0:Y.placeholderText)!==G?(W=!0,B.push(Object.assign({},this.quizOptions[z],{placeholderText:G}))):B.push(this.quizOptions[z])}W&&(this.quizOptions=B);this.isValid()?_.v0(this.hostElement,"yt-commentbox-post-enable"):_.v0(this.hostElement,"yt-commentbox-post-disable")};
_.p.getSimpleString=function(W){return _.zR(W)};
_.p.createQuizOptions=function(W){var B=[],z;W=(z=W==null?void 0:W.minQuizOptions)!=null?z:0;for(z=0;z<W;z++)B.push(this.createQuizOption());return B};
_.p.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.u7(this.quizOptions),[this.createQuizOption()]))};
_.p.onInput=function(){this.quizOptions=[].concat(_.u7(this.quizOptions))};
_.p.onExplanationInput=function(){_.v0(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.p.onRemoveQuizOption=function(W){this.quizOptions.splice(W.model.index,1);W.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:W.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.u7(this.quizOptions));this.quizOptions.length===0&&_.v0(this.hostElement,"yt-quiz-attachment-dismiss")};
_.p.updateHintRenderer=function(){var W=this;clearTimeout(this.timer);this.timer=setTimeout(function(){W.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.p.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var W=0,B=0,z=_.A(this.quizOptions),G=z.next();!G.done;G=z.next()){G=G.value;var Y=void 0;if(((Y=G.optionText)==null?void 0:Y.trim())!==""||G.isCorrect){G.isCorrect&&B++;Y=void 0;if(this.hasCustomOptionText&&((Y=G.optionText)==null?void 0:Y.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;W++}}return W>=
Number(this.editorInfo.minQuizOptions)&&B===1};
_.p.getPostCreateOptions=function(){for(var W=[],B=_.A(this.quizOptions),z=B.next();!z.done;z=B.next()){z=z.value;var G=void 0;((G=z.optionText)==null?void 0:G.trim())!==""&&W.push({pollOption:{text:z.optionText,explanation:z.explanationText},isCorrect:z.isCorrect})}return W};
_.p.getExplanationText=function(){var W;return((W=this.quizOptions[this.correctAnswerIndex])==null?void 0:W.explanationText)||""};
_.p.maybeDisplayMarkAnswerEduToolTip=function(){var W,B,z,G,Y,d,E;this.shouldShowMarkAnswerTooltip()&&((W=this.editorInfo)==null?0:(B=W.markAnswerButton)==null?0:(z=B.buttonRenderer)==null?0:(G=z.hint)==null?0:(Y=G.hintRenderer)==null?0:(d=Y.content)==null?0:(E=d.bubbleHintRenderer)==null?0:E.text)&&(_.j8.getInstance(),W=fI(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,(W==null?void 0:W.length)>0&&this.optionSelectors&&_.oB(W[0],this.optionSelectors[0]))};
_.p.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var W=0,B=_.A(this.quizOptions),z=B.next();!z.done;z=B.next()){z=z.value;var G=void 0;((G=z.optionText)==null?void 0:G.trim())!==""&&W++;if(z.isCorrect)return!1}return W<2?!1:!0};
_.p.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.p.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.p.updateOptionTextFromBinding=function(W){if(W.target){var B=Array.from(_.tH(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(W.target);if(B>=0){var z;this.quizOptions[B].optionText=(z=W.detail.value)!=null?z:""}}};
_.G5.Object.defineProperties(fM.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var W,B,z=(W=this.editorInfo)==null?void 0:(B=W.addOptionButton)==null?void 0:B.buttonRenderer;z&&(z.style="STYLE_SUGGESTIVE",z.size="SIZE_SMALL",z.isDisabled=!this.isAllowedToAddOption);return(z==null?0:z.text)?z:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var W,B;return this.quizOptions.length<((B=(W=this.editorInfo)==null?void 0:W.maxQuizOptions)!=null?B:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(W){var B;return(B=W.optionText)==null?void 0:B.trim()})}}});
fM.prototype.updatePlaceholderTexts=fM.prototype.updatePlaceholderTexts;fM.prototype.dataChanged=fM.prototype.dataChanged;_.Q([_.F(),_.y("design:type",Object)],fM.prototype,"editorInfo",void 0);_.Q([_.F(),_.y("design:type",Array)],fM.prototype,"quizOptions",void 0);_.Q([_.F(),_.y("design:type",Object)],fM.prototype,"explanationPlaceholderText",void 0);_.Q([_.F4(".option-selector-button"),_.y("design:type",Array)],fM.prototype,"optionSelectors",void 0);
_.Q([_.jJ("editorInfo"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fM.prototype,"dataChanged",null);_.Q([_.H("editorInfo","isAllowedToAddOption","quizOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],fM.prototype,"addAnswerButton",null);_.Q([_.H("editorInfo","quizOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],fM.prototype,"isAllowedToAddOption",null);
_.Q([_.jJ("quizOptions"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fM.prototype,"updatePlaceholderTexts",null);_.Q([_.H("quizOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],fM.prototype,"hasCustomOptionText",null);_.Q([_.u({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],fM);
_.D(fM,"ytd-backstage-quiz-editor-renderer",function(){if(Cb7!==void 0)return Cb7;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Cb7=W},{mode:2});var ItT;var oVM=(kl.FIRSTDAYOFWEEK+1)%7;var huF;var HeR=[],FXM=0,S$H=0;FXM=0;S$H=24;if(.25*(S$H-FXM)<0)huF=[];else{for(var beU=FXM;beU<S$H;beU+=.25)HeR.push(beU);huF=HeR}var jSQ=huF.map(function(W){W=W*60*60;return{secondsSinceMidnight:W,text:(new Wg(7)).format(new Date(0,0,0,0,0,W))}});var ftQ;var OD=function(){var W=_.S.apply(this,arguments)||this;W.skipNextOpenDialog=!1;W.errorMessage="";W.previousMonthLabel=_.kq("PREVIOUS_MONTH_LABEL");W.nextMonthLabel=_.kq("NEXT_MONTH_LABEL");return W};
_.C(OD,_.S);_.p=OD.prototype;_.p.attached=function(){var W=this,B=new MutationObserver(function(){W.JSC$15722_calendarMain.scrollHeight>0&&(B.disconnect(),W.calendarConfig&&W.calendarConfig.selectedDate&&W.scrollToDate())});
B.observe(this.JSC$15722_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){B.disconnect()},1E3)};
_.p.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.p.onDateTextChange=function(){if(this.calendarConfig){var W=this.validateDateText();W.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(W.details)):this.textbox.setAttribute("invalid","")}};
_.p.handleDayClick=function(W){W.model.day.date&&(this.commitDate(W.model.day.date),this.dialog.close())};
_.p.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var W=jo0(this.calendarConfig.selectedDate,this.renderData);W!==void 0&&this.JSC$15722_calendarMain.scrollToIndex(W)}};
_.p.scrollToNextMonth=function(){this.JSC$15722_calendarMain.scrollToIndex(this.JSC$15722_calendarMain.firstVisibleIndex+1)};
_.p.scrollToPrevMonth=function(){this.JSC$15722_calendarMain.firstVisibleIndex===0&&this.JSC$15722_calendarMain.scrollTo(0,0);this.JSC$15722_calendarMain.scrollToIndex(this.JSC$15722_calendarMain.firstVisibleIndex-1)};
_.p.onFormSubmit=function(W){W.preventDefault();this.calendarConfig&&(W=this.validateDateText(),W.isValid&&(this.commitDate(W.details),this.dialog.close()))};
_.p.onEscOrClickingOutside=function(W){W=W.detail.path&&!!W.detail.path.length&&W.detail.path[0];if(W.classList.contains("ytd-calendar-date-picker")){W===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var B=0;B<this.dropdownButton.children.length;B++)this.dropdownButton.children[B]===W&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}W=this.textbox.value!==this.dateText;B=this.validateDateText();W&&B.isValid&&this.commitDate(B.details);this.dialog.close();this.textbox.value=
this.dateText};
_.p.commitDate=function(W){this.calendarConfig&&(this.set("calendarConfig.selectedDate",W),_.v0(this.hostElement,"ytd-calendar-date-selected",W))};
_.p.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var W=this.textbox.value;var B=new Date;W=(new azD(2)).parse(W,B,{validate:!0})===W.length?St8(B):void 0;if(!W)return this.errorMessage=_.kq("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};B=this.calendarConfig.start;var z=this.calendarConfig.end;if(IzT(W,B))return this.errorMessage=_.kq("ENTER_DATE_OR_LATER",{allowed_date:FYD(B)}),{isValid:!1,details:void 0};if(IzT(z,W))return this.errorMessage=
_.kq("ENTER_DATE_OR_EARLIER",{allowed_date:FYD(z)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:W}};
_.G5.Object.defineProperties(OD.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?FYD(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var W=this.calendarConfig,B=[],z=0;z<7;z++)B.push(kl.NARROWWEEKDAYS[(z+oVM)%7]);z=[];for(var G=new Date(W.start.year,W.start.month);G.getFullYear()<W.end.year||G.getFullYear()===W.end.year&&G.getMonth()<=W.end.month;){var Y=z,d=Y.push,E=G.getFullYear(),v=G.getMonth(),c=W,J=void 0,g=[],t=Object.freeze({extraCssClass:"invisible",debugClass:""}),P=new Date(E,v),Z=St8(P);P=P.getDay();for(var l=St8(new Date);Z.month===
v;){P!==oVM&&J||(J=Array.from({length:7}).fill(t),g.push(J));var b={date:{year:E,month:v,day:Z.day},extraCssClass:"",debugClass:""};c.selectedDate&&b.date&&Clv(b.date,c.selectedDate)&&(b.extraCssClass+=" selected");if(IzT(Z,c.start)||IzT(c.end,Z))b.extraCssClass+=" disabled";Clv(Z,l)&&(b.extraCssClass+=" today");b.extraCssClass=b.extraCssClass.trim();J[(P-oVM+7)%7]=b;Z=hhT(Z);P=(P+1)%7}d.call(Y,{weeks:g,monthLabel:kl.SHORTMONTHS[v]+" "+E,year:E,month:v,monthLabelExtraCssClass:g[0][2]===t?"shift-down-label":
""});G.setMonth(G.getMonth()+1)}return{months:z,daysOfWeekLabel:B}}}}});
OD.prototype.onEscOrClickingOutside=OD.prototype.onEscOrClickingOutside;OD.prototype.scrollToDate=OD.prototype.scrollToDate;_.Q([_.F(),_.y("design:type",Object)],OD.prototype,"calendarConfig",void 0);_.Q([_.F(),_.y("design:type",Object)],OD.prototype,"skipNextOpenDialog",void 0);_.Q([_.F(),_.y("design:type",Object)],OD.prototype,"errorMessage",void 0);_.Q([_.F(),_.y("design:type",Object)],OD.prototype,"previousMonthLabel",void 0);
_.Q([_.F(),_.y("design:type",Object)],OD.prototype,"nextMonthLabel",void 0);_.Q([_.Hf("#textbox"),_.y("design:type",HTMLInputElement)],OD.prototype,"textbox",void 0);_.Q([_.Hf("#calendar-dialog"),_.y("design:type",Object)],OD.prototype,"dialog",void 0);_.Q([_.Hf("#calendar-main"),_.y("design:type",Object)],OD.prototype,"JSC$15722_calendarMain",void 0);_.Q([_.Hf("#date-picker"),_.y("design:type",HTMLElement)],OD.prototype,"dropdownButton",void 0);
_.Q([_.H("calendarConfig.selectedDate"),_.y("design:type",String),_.y("design:paramtypes",[])],OD.prototype,"dateText",null);_.Q([_.H("calendarConfig","calendarConfig.selectedDate"),_.y("design:type",Object),_.y("design:paramtypes",[])],OD.prototype,"renderData",null);_.Q([_.oN("renderData","calendarConfig.selectedDate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],OD.prototype,"scrollToDate",null);
_.Q([_.IN("iron-overlay-canceled"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],OD.prototype,"onEscOrClickingOutside",null);_.Q([_.NJ({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],OD);
_.D(OD,"ytd-calendar-date-picker",function(){if(ftQ!==void 0)return ftQ;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ftQ=W},{mode:2});var OeT=_.kq("UTC_OFFSET_FORMAT",{utc_offset:(new Wg("Z")).format(new Date)}),Xx7=(new Date).getTimezoneOffset()*-60,KXQ=new Date,uKM,euM=R_(KXQ.getTimezoneOffset());uKM=mJ6(DJF(euM,KXQ));var mxd=_.kq("LOCAL_TIME_GMT_LABEL",{gmt_text:uKM.replace("+0","+").replace("-0","-").replace(":00","")}),Xf=function(){var W=_.S.apply(this,arguments)||this;W.selectedTimeIndex=0;W.selectedTimezoneIndex=0;W.timeOfDayOptions=jSQ;return W};
_.C(Xf,_.S);_.p=Xf.prototype;_.p.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var W=HPT();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=W,this.selectedTimeIndex=0;else{var B=bPr(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},W,{selectedDate:B.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(z){return z.secondsSinceMidnight===B.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.p.onDatePicked=function(W){this.selectedDate=W.detail};
_.p.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.v0(this.hostElement,"ytd-date-time-selection-cancelled")};
_.p.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var W=this.selectedDate;W=new Date(W.year,W.month,W.day);_.v0(this.hostElement,"ytd-date-time-selection-update",Math.floor(W.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+W.getTimezoneOffset()*60))}};
_.p.getTimezoneFormat=function(W){return W.localizedDisplayText?W.localizedDisplayText:_.kq("TIMEZONE_FORMAT",{utc_offset_text:""+W.localizedUtcOffset,city_name:""+W.localizedName})};
_.p.updateSelectedTimeIndexFromBinding=function(W){this.selectedTimeIndex=W.detail.value};
_.p.updateSelectedTimezoneIndexFromBinding=function(W){this.selectedTimezoneIndex=W.detail.value};
_.G5.Object.defineProperties(Xf.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data.timezoneOptions;var B={name:"Etc/Unknown",localizedName:_.kq("LOCAL_TIME_LABEL"),localizedUtcOffset:OeT,utcOffsetSec:""+Xx7,localizedDisplayText:mxd};W?W.length&&W[0].name!==B.name&&(W[0].localizedDisplayText||(B.localizedDisplayText=""),W.unshift(B)):W=[B];return W}}},
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]}}});
Xf.prototype.onDateTimeTimezoneChange=Xf.prototype.onDateTimeTimezoneChange;Xf.prototype.onDatePicked=Xf.prototype.onDatePicked;Xf.prototype.updateDefaultSelectedValue=Xf.prototype.updateDefaultSelectedValue;_.Q([_.F(),_.y("design:type",Object)],Xf.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Xf.prototype,"calendarConfig",void 0);_.Q([_.F(),_.y("design:type",Object)],Xf.prototype,"selectedDate",void 0);_.Q([_.F(),_.y("design:type",Object)],Xf.prototype,"selectedTimeIndex",void 0);
_.Q([_.F(),_.y("design:type",Object)],Xf.prototype,"selectedTimezoneIndex",void 0);_.Q([_.Hf("#time-listbox"),_.y("design:type",Object)],Xf.prototype,"timeListBox",void 0);_.Q([_.Hf("#timezone-listbox"),_.y("design:type",Object)],Xf.prototype,"timezoneListBox",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Xf.prototype,"rendererStamperBehavior",void 0);_.Q([_.H("data.timezoneOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xf.prototype,"timeZones",null);
_.Q([_.jJ("data","timeZones"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xf.prototype,"updateDefaultSelectedValue",null);_.Q([_.H("selectedTimezoneIndex","timeZones"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xf.prototype,"selectedTimezone",null);_.Q([_.H("selectedTimeIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xf.prototype,"selectedTime",null);
_.Q([_.IN("ytd-calendar-date-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Xf.prototype,"onDatePicked",null);_.Q([_.oN("selectedTimezone","selectedTime","selectedDate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xf.prototype,"onDateTimeTimezoneChange",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Xf);
_.D(Xf,"ytd-date-time-picker-renderer",function(){if(ItT!==void 0)return ItT;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ItT=W},{mode:1});var xxd;var KM=function(){var W=_.S.apply(this,arguments)||this;W.boundOnTapDismissButton=function(){W.dismissTapHandler()};
W.dismissButtonOverrides={size:"XS"};return W};
_.C(KM,_.S);KM.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}}}}}};
KM.prototype.dismissTapHandler=function(){_.v0(this.hostElement,"yt-backstage-attachment-dismissed")};
KM.prototype.computeAttachmentType=function(W){return W?W.backstageImageRenderer?"image":W.videoRenderer?"video":"none":"none"};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],KM.prototype,"attachmentPreview",void 0);_.Q([_.F(),_.y("design:type",Object)],KM.prototype,"dismissButton",void 0);_.Q([_.F(),_.y("design:type",Object)],KM.prototype,"boundOnTapDismissButton",void 0);
_.Q([_.F(),_.y("design:type",Object)],KM.prototype,"dismissButtonOverrides",void 0);_.Q([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.y("design:type",String)],KM.prototype,"attachmentType",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],KM);
_.D(KM,"ytd-backstage-dismissable-attachment",function(){if(xxd!==void 0)return xxd;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return xxd=W},{mode:1});var Dx4;var u4=function(){var W=_.S.apply(this,arguments)||this;W.selectedVideoId=void 0;W.picker=void 0;W.dismissButtonOverrides={size:"XS"};W.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return W};
_.C(u4,_.S);_.p=u4.prototype;_.p.onServiceRequestCompleted=function(W){W.stopPropagation()};
_.p.handleAddVideoPreviewAction=function(W){W=this.get("addVideoPreviewAction",W);this.onGetVideoPreviewSuccess(W)};
_.p.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}}}}}};
_.p.onLaunchVideoPicker=function(W){var B=this,z=_.zR(this.get("addVideoLinkAction.title",W)),G=this.get("addVideoLinkAction.onePickHostId",W);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",W);G&&(this.picker||(z=_.jXu(_.W5v(G).setTitle(z).addView(H47()).addView(htM()),function(Y){B.onPickVideo(Y)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",W)||z.addView("youtube"),this.picker=z.build()),this.picker.setVisible(!0))};
_.p.onPickVideo=function(W){if(W)if(W.action==="cancel")_.v0(this.hostElement,"yt-video-link-button-cancel");else if(W.action==="picked"){W=W.docs;if(!W||W.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(W=(W==null?0:W.length)?W[0]:void 0)?W.id:void 0;this.setVideoPreview()}};
_.p.setVideoPreview=function(){var W=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){W.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.p.onGetVideoPreviewSuccess=function(W){if(W&&W.videoPreview&&W.cancelButton)this.videoPreview=W.videoPreview,this.cancelButton=W.cancelButton,_.v0(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.p.onGetVideoPreviewError=function(){this.cancel()};
_.p.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.v0(this.hostElement,"yt-video-link-cancel")};
_.p.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
u4.prototype.onServiceRequestCompleted=u4.prototype.onServiceRequestCompleted;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],u4.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],u4.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],u4.prototype,"videoPreview",void 0);_.Q([_.F(),_.y("design:type",Object)],u4.prototype,"cancelButton",void 0);_.Q([_.F(),_.y("design:type",Object)],u4.prototype,"getVideoPreviewCommand",void 0);_.Q([_.F(),_.y("design:type",Object)],u4.prototype,"dismissButtonOverrides",void 0);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],u4.prototype,"onServiceRequestCompleted",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],u4);
_.D(u4,"ytd-backstage-video-link-attachment",function(){if(Dx4!==void 0)return Dx4;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Dx4=W},{mode:1});var QSR;var yR9;var q$M;var eV=function(){return _.S.apply(this,arguments)||this};
_.C(eV,_.S);eV.prototype.dataChanged=function(){this.active=!1};
eV.prototype.onTap=function(){_.v0(this.hostElement,"yt-select-emoji-suggestion",this.data)};
eV.prototype.identity=function(W){return W};
_.G5.Object.defineProperties(eV.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G;if((W=this.data)==null?0:(B=W.image)==null?0:(z=B.thumbnails)==null?0:(G=z[0])==null?0:G.url)return W=this.data.image.thumbnails[0].url,W.startsWith("data:image/svg+xml")?Km(W):_.yN(W)}}});
eV.prototype.dataChanged=eV.prototype.dataChanged;_.Q([_.F(),_.y("design:type",Object)],eV.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],eV.prototype,"active",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eV.prototype,"dataChanged",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],eV.prototype,"imageSrc",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],eV);
_.D(eV,"ytd-emoji-suggestion",function(){if(q$M!==void 0)return q$M;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return q$M=W},{mode:1});var nVU=/.*([:@#].*?)$/,mW=function(){var W=_.S.apply(this,arguments)||this;W.suggestions=[];W.suggestionIndex=-1;W.JSC$15750_lastSuggestionRange=null;return W};
_.C(mW,_.S);_.p=mW.prototype;_.p.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.p.getSuggestions=function(W){var B=[],z=scd(this.emojiManager,W.substr(0,3));if(z)for(var G in z)if(G.toLocaleLowerCase().indexOf(W)===0){var Y=z[G];if(Y&&Y.emojiId){Y=JP(this.emojiManager,Y.emojiId);var d=void 0,E=void 0,v=void 0,c=void 0,J=((d=Y)==null?0:d.isCustomEmoji)?(E=Y)==null?void 0:(v=E.shortcuts)==null?void 0:v[0]:(c=Y)==null?void 0:c.emojiId;d=void 0;B.push({suggestion:{image:(d=Y)==null?void 0:d.image,alt:J,text:G}});if(B.length>=64)break}}return B?B.sort(function(g,t){return t.suggestion.text<
g.suggestion.text?-1:t.suggestion.text===g.suggestion.text?0:1}):null};
_.p.insertSuggestion=function(W){_.v0(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15750_lastSuggestionRange,text:W.alt});this.dropdown.opened=!1};
_.p.updateSuggestionsAtCaret=function(W){this.updateSuggestions(W,this.retrieveTextBeforeRange(W))};
_.p.offsetStartOfRangeBy=function(W,B){W.startOffset>=B&&W.setStart(W.startContainer,W.startOffset-B)};
_.p.updateSuggestions=function(W,B){var z=this;this.JSC$15750_lastSuggestionRange&&(this.JSC$15750_lastSuggestionRange.detach(),this.JSC$15750_lastSuggestionRange=null);if((B=nVU.exec(B))&&B.length&&(B=B[B.length-1].toLocaleLowerCase(),B.length>2||B===":_")&&(this.offsetStartOfRangeBy(W,B.length),this.JSC$15750_lastSuggestionRange=W,(W=this.getSuggestions(B))&&W.length)){this.suggestions=W;_.BM(this,function(){z.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(W.length-1);return}this.dropdown.opened=!1};
_.p.onKeyDown=function(W){if(this.dropdown.opened)switch(W.key){case "Escape":this.dropdown.opened=!1;W.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);W.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);W.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),W.preventDefault()}};
_.p.onKeyUp=function(W,B){switch(W.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(B);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(B)}};
_.p.onKeyPress=function(W){W.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),W.preventDefault())};
_.p.changeSuggestionIndex=function(W){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(W+this.suggestions.length)%this.suggestions.length,W=this.dropdownContent.children[this.suggestionIndex],W.active=!0,this.dropdownContent.scrollTop=W.offsetTop)};
_.p.retrieveTextBeforeRange=function(W){var B=W.startContainer;return B&&B.nodeType===Node.TEXT_NODE?B.textContent.substr(0,W.startOffset):""};
mW.prototype.onKeyPress=mW.prototype.onKeyPress;mW.prototype.onKeyUp=mW.prototype.onKeyUp;mW.prototype.onKeyDown=mW.prototype.onKeyDown;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],mW.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Array)],mW.prototype,"suggestions",void 0);_.Q([_.F(),_.y("design:type",_.wN)],mW.prototype,"emojiManager",void 0);_.Q([_.F(),_.y("design:type",Number)],mW.prototype,"verticalSuggestionsOffset",void 0);
_.Q([_.Hf("#dropdown"),_.y("design:type",Object)],mW.prototype,"dropdown",void 0);_.Q([_.Hf("#dropdown-content"),_.y("design:type",HTMLDivElement)],mW.prototype,"dropdownContent",void 0);_.Q([_.IN("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],mW.prototype,"onKeyDown",null);_.Q([_.IN("keyup"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent,Range]),_.y("design:returntype")],mW.prototype,"onKeyUp",null);
_.Q([_.IN("keypress"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],mW.prototype,"onKeyPress",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-emoji-input"})],mW);
_.D(mW,"ytd-emoji-input",function(){if(yR9!==void 0)return yR9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return yR9=W},{mode:2});var N9u;var xQ=function(){var W=_.S.apply(this,arguments)||this;W.hasMaxOptions=!1;return W};
_.C(xQ,_.S);_.p=xQ.prototype;_.p.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.p.setPrefilledChoices=function(W){var B=this;this.set("pollOptions",[]);var z;for(z=0;z<Math.min(W.length,this.data.maxPollOptions);z++)this.push("pollOptions",W[z].substring(0,this.data.maxPollOptionChars));for(;z<this.data.minPollOptions;z++)this.push("pollOptions","");this.hasMaxOptions=z>=this.data.maxPollOptions;_.BM(this,function(){for(var G=B.pollOptions,Y=_.tH(B.hostElement).querySelectorAll(".poll-option-input"),d=0;d<Y.length;d++)Y[d].value=G[d]})};
_.p.focusChanged=function(){_.kw(this.hostElement)};
_.p.onInput=function(){var W=this;_.BJ(this,"onInput",function(){W.isValid()?_.v0(W.hostElement,"yt-commentbox-post-enable"):_.v0(W.hostElement,"yt-commentbox-post-disable")},300)};
_.p.setPollOptions=function(){var W=[],B,z=((B=this.data)==null?0:B.minPollOptions)?this.data.minPollOptions:0;for(B=0;B<z;B++)W.push("");return W};
_.p.addPollOption=function(){var W=this;_.v0(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.fg.addLowPriorityJob(function(){var B;(B=_.tH(W.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||B.focus()})};
_.p.onRemovePollOption=function(W){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.v0(this.hostElement,"yt-poll-attachment-dismiss")):(W=this.repeat.indexForElement(W.target.parentNode),W!==null&&(this.splice("pollOptions",W,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.v0(this.hostElement,"yt-commentbox-post-enable"))))};
_.p.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.p.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var W=0,B=this.pollOptions.length;W<B;W++)if(this.pollOptions[W].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.p.getPollOptions=function(){return this.pollOptions};
_.p.setPollOptionsFromInputs=function(){for(var W=_.tH(this.hostElement).querySelectorAll(".poll-option-input"),B=0;B<W.length;B++)this.pollOptions[B]=W[B].value.trim()};
_.p.clearPollOptions=function(){var W=_.tH(this.hostElement).querySelectorAll(".poll-option-input");W=_.A(W);for(var B=W.next();!B.done;B=W.next())B.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.p.getSimpleString=function(W){return _.zR(W)};
_.p.updateValueFromBinding=function(W){if(W.target&&this.pollOptions){var B=Array.from(_.tH(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(W.target);if(B>=0){var z;this.pollOptions[B]=(z=W.detail.value)!=null?z:"";this.notifyPath("pollOptions."+B)}}};
xQ.prototype.dataChanged=xQ.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],xQ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],xQ.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Array)],xQ.prototype,"pollOptions",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],xQ.prototype,"hasMaxOptions",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],xQ.prototype,"enableCreationBox",void 0);
_.Q([_.Hf("#repeat"),_.y("design:type",QU)],xQ.prototype,"repeat",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xQ.prototype,"dataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-poll-attachment"})],xQ);
_.D(xQ,"ytd-poll-attachment",function(){if(N9u!==void 0)return N9u;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return N9u=W},{mode:2});var $xH;var LXU;var Uxd;var M_F;var DP=function(){return _.S.apply(this,arguments)||this};
_.C(DP,_.S);_.G5.Object.defineProperties(DP.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],DP.prototype,"rendererBehaviors",void 0);_.Q([_.F(),_.y("design:type",Object)],DP.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],DP.prototype,"focused",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("focused"),_.y("design:type",Object),_.y("design:paramtypes",[])],DP.prototype,"ariaSelected",null);_.Q([_.NJ({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],DP);
_.D(DP,"yt-user-mention-suggestion-renderer",function(){if(M_F===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Uxd===void 0&&(Uxd=document.createElement("template"));var G=Uxd;z.call(B,G.content.cloneNode(!0),W.content.firstChild);M_F=W}W=M_F;return W},{mode:2});var at7;var Ru7;var Q4=function(){var W=_.S.apply(this,arguments)||this;W.focusedSuggestionIndex=-1;return W};
_.C(Q4,_.S);_.p=Q4.prototype;_.p.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.p.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.p.setFocusedSuggestionIndex=function(W){!this.data||!this.data.suggestions||W<0||W>=this.data.suggestions.length||(this.focusedSuggestionIndex=W,W=this.getSuggestionId(W),this._setFocusedSuggestionId(W))};
_.p.advanceSuggestion=function(W){this.focusedSuggestionIndex===-1||W!==-1&&W!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+W),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.p.ensureSuggestionVisible=function(W){W=this.getSuggestionId(W);W=_.tH(this.hostElement).querySelector("[id="+W+"]");W!=null&&(W.offsetTop<this.hostElement.scrollTop?W.scrollIntoView(!0):W.offsetTop+W.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&W.scrollIntoView(!1))};
_.p.getSuggestionId=function(W){return"user-mention-suggestion-"+W};
_.p.onSuggestionTap=function(W){var B=_.k(W.model.item,vU9);this.ytRendererBehavior.logExplicitClick(B);_.v0(this.hostElement,"yt-user-mention-suggestion-selected",{data:B,index:W.model.index})};
_.p.onSuggestionMouseMove=function(W){W.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(W.model.index)};
_.p.isSuggestionFocused=function(W,B){return W===B};
_.p.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.p.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("focused-suggestion-id-changed",this.focusedSuggestionId))};
Q4.prototype.focusedSuggestionIdChangedForBinding=Q4.prototype.focusedSuggestionIdChangedForBinding;Q4.prototype.onDomChange=Q4.prototype.onDomChange;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Q4.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Q4.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Q4.prototype,"focusedSuggestionIndex",void 0);_.Q([_.F({readOnly:!0}),_.y("design:type",String)],Q4.prototype,"focusedSuggestionId",void 0);
_.Q([_.IN("dom-change"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Q4.prototype,"onDomChange",null);_.Q([_.oN("focusedSuggestionId"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Q4.prototype,"focusedSuggestionIdChangedForBinding",null);_.Q([_.NJ({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Q4);
_.D(Q4,"yt-user-mention-suggestions-dropdown",function(){if(Ru7===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;at7===void 0&&(at7=document.createElement("template"));var G=at7;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Ru7=W}W=Ru7;return W},{mode:2});var y4=function(){var W=_.S.apply(this,arguments)||this;W.suggestionsResponse=null;W.activeMention=null;W.selectionChangeListener=W.onSelectionChange.bind(W);W.handlesEnabled=_.r("enable_handles_in_mention_suggest_posts");W.handlesInMentionSuggestionsEnabled=_.r("handles_in_mention_suggest_posts");W.zeroPrefixMentionSuggestionEnabled=_.r("enable_zero_prefix_mention_suggestion_web");W.pendingQuery=null;W.flowNonce=null;return W};
_.C(y4,_.S);_.p=y4.prototype;_.p.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.p.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.p.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.p.hasSuggestions=function(W){return!!(W&&W.suggestions&&W.suggestions.length>0)};
_.p.onInput=function(){var W=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var B=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),z=this.activeMention.JSC$11349_getText().slice(-1)===" ",G=this.activeMention.JSC$11349_getText().slice(-2,-1)===" ",Y="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11349_getText().slice(-2,
-1))>=0;Y=this.zeroPrefixMentionSuggestionEnabled&&Y;if(this.activeMention.isCollapsed()||(B||G||Y)&&z)this.cancelActiveMention();else{var d=this.activeMention.JSC$11349_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.BJ(this,"requestSuggestions",function(){W.requestSuggestions(d)},100)}}}};
_.p.onServiceRequestSent=function(W){W.stopPropagation()};
_.p.onServiceRequestCompleted=function(W){W.stopPropagation();W=W.detail.data;W.query&&(!this.pendingQuery||this.pendingQuery!==W.query)||!this.zeroPrefixMentionSuggestionEnabled&&W.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=W,this.hasSuggestions(W)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.p.onServiceRequestError=function(W){W.stopPropagation()};
_.p.onUserMentionSuggestionSelected=function(W){this.selectSuggestion(W.detail.data,W.detail.index)};
_.p.onSelectionChange=function(){if(this.activeMention){var W=_.tE(),B=this.activeMention.JSC$11349_containsRange(W);W=W&&this.containsHelper(this.dropdown,W.getContainer());B||W||this.cancelActiveMention()}};
_.p.containsHelper=function(W,B){var z;if(((z=window.ShadyDOM)==null?void 0:z.noPatch)===!0)return W.contains(B);for(;B;){if(B===W)return!0;B=B instanceof ShadowRoot?B.host:B.parentNode}return!1};
_.p.maybeStartSuggest=function(){var W=_.tE();if(W&&W.isCollapsed()){var B=W.JSC$11349_getStartNode(),z=W.JSC$11349_getStartOffset();if(B instanceof Text&&!(z<1)){var G=B.textContent;!(G=G&&G.charAt(z-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(G)<0||(this.activeMention=_.Gk(B,z-1,W.JSC$11349_getEndNode(),W.JSC$11349_getEndOffset()),this.flowNonce=Kt(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.p.updateActiveMention=function(){if(this.activeMention){var W=_.tE();W&&W.isCollapsed()&&(this.activeMention=_.Gk(this.activeMention.JSC$11349_getStartNode(),this.activeMention.JSC$11349_getStartOffset(),W.JSC$11349_getEndNode(),W.JSC$11349_getEndOffset()))}};
_.p.requestSuggestions=function(W){if(this.activeMention){var B={suggestions_query:W};this.pendingQuery=W;_.V0(this.hostElement,[this.suggestionsEndpoint,B])}};
_.p.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()};
_.p.focusPreviousSuggestion=function(W){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),W.preventDefault())};
_.p.focusNextSuggestion=function(W){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),W.preventDefault())};
_.p.selectFocusedSuggestion=function(W){if(this.hasSuggestions(this.suggestionsResponse)){var B=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.k(B,vU9)&&(this.selectSuggestion(_.k(B,vU9),this.dropdown.focusedSuggestionIndex),W.preventDefault())}};
_.p.selectSuggestion=function(W,B){if(W){var z=this.activeMention;if(z){var G=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&W.handle?_.$i(G,"\u00a0\u2068@"+W.handle+"\u2069\u00a0"):this.handlesEnabled?_.$i(G,"\u00a0"+W.displayName+"\u00a0"):_.$i(G,"\u00a0@"+W.displayName+"\u00a0");$h(G,"/channel/"+W.channelId);G.classList.add("yt-formatted-string","yt-simple-endpoint");G.setAttribute("spellcheck","false");z.isCollapsed()||z.JSC$11349_removeContents();z.insertNode(G,!0);W=document.createTextNode(" ");
G.parentNode.insertBefore(W,G.nextSibling);window.getSelection().collapse(W,1);B={suggestionSelected:{suggestionIndex:B}};if(this.zeroPrefixMentionSuggestionEnabled){var Y;B.suggestionSelected.isZeroPrefix=((Y=this.suggestionsResponse)==null?void 0:Y.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",B);this.cancelActiveMention();_.v0(this.hostElement,"yt-mention-inserted")}}};
_.p.getPositionTarget=function(W){return W&&W.getBrowserRangeObject()};
_.p.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.p.onFocusedSuggestionIdChanged=function(W){var B=_.GJR(this.hostElement)[0];B&&(W.detail.value?B.setAttribute("aria-activedescendant",W.detail.value):B.removeAttribute("aria-activedescendant"))};
_.p.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.p.logGELEvent=function(W,B){W={eventType:W,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};B&&(W=Object.assign(W,B));_.Sy("userMentionAutoCompleteBoxEvent",W)};
y4.prototype.onDomChange=y4.prototype.onDomChange;y4.prototype.onUserMentionSuggestionSelected=y4.prototype.onUserMentionSuggestionSelected;y4.prototype.onServiceRequestError=y4.prototype.onServiceRequestError;y4.prototype.onServiceRequestCompleted=y4.prototype.onServiceRequestCompleted;y4.prototype.onServiceRequestSent=y4.prototype.onServiceRequestSent;y4.prototype.onInput=y4.prototype.onInput;_.Q([_.h(_.DM),_.y("design:type",Object)],y4.prototype,"ironA11yKeysBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],y4.prototype,"suggestionsEndpoint",void 0);_.Q([_.F(),_.y("design:type",Object)],y4.prototype,"suggestionsResponse",void 0);_.Q([_.F(),_.y("design:type",Object)],y4.prototype,"activeMention",void 0);_.Q([_.Hf("#dropdown"),_.y("design:type",Object)],y4.prototype,"dropdown",void 0);_.Q([_.Hf("#iron-dropdown"),_.y("design:type",Object)],y4.prototype,"ironDropdown",void 0);
_.Q([_.IN("input"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],y4.prototype,"onInput",null);_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],y4.prototype,"onServiceRequestSent",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],y4.prototype,"onServiceRequestCompleted",null);
_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],y4.prototype,"onServiceRequestError",null);_.Q([_.IN("yt-user-mention-suggestion-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],y4.prototype,"onUserMentionSuggestionSelected",null);
_.Q([_.IN("dom-change"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],y4.prototype,"onDomChange",null);_.Q([_.NJ({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],y4);
_.D(y4,"yt-user-mention-autosuggest-input",function(){if(LXU===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;$xH===void 0&&($xH=document.createElement("template"));var G=$xH;z.call(B,G.content.cloneNode(!0),W.content.firstChild);LXU=W}W=LXU;return W},{mode:2});var qh=null;
_.D8({is:"ytd-commentbox",_template:function(){if(QSR!==void 0)return QSR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return QSR=W},
behaviors:[_.Odv.YtHostElementBehavior,_.DM,_.ye.YtActionHandlerBehavior,_.Ve.YtComponentBehavior,_.bu.YtRendererstamperBehavior,_.uoQ.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(W,B){return _.P3(W.entities,"aadcGuidelinesStateEntityPayload",B)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(W,B){return _.P3(W.entities,"commentboxStateEntity",B)},
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 _.gN}},
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:_.r("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.r("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",_.Co(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(W){this.fire(W?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(W){this.set("submitButtonDisabled",void 0);this.clear();W&&this.computeIsEmojiButtonDisplayed_(W)&&(W=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&W.updateEmojiCategories()},
observePrefilledImage_:function(W,B,z){this.isValidPrefilledImage_(W,B,z)&&(this.prefilledAttachment_="image",this.prefilledImageData_=B,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(W,B){this.isValidPrefilledVideo_(W,B)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(W){W&&W.pollData&&W.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(W.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.jY();this.focus()},
detached:function(){document.removeEventListener("tap",_.Co(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(W){W=W.detail;W=W.isCustomEmoji?W.shortcuts[0]:W.emojiId;var B=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(B,W);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var W=_.tE();if(W){W=W.getBrowserRangeObject();for(var B=W.commonAncestorContainer;B;){if(B===this.getEditableTextArea_())return W;B=B.parentNode}}W=this.getEditableTextArea_();W=_.zk(W,W.childNodes.length);W.select();return W.getBrowserRangeObject()},
insertTextWithEmojis_:function(W,B,z){(B=this.emojiManager.createDocumentFragment(B,!0,!1,z===void 0?!0:z))&&B.childNodes.length!==0&&(W.collapsed||W.deleteContents(),z=B.lastChild,W.insertNode(B),_.AH4(z).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var W=_.tE();if(W){var B=W.JSC$11349_getStartNode(),z=W.JSC$11349_getEndNode();if(fzD(B)&&fzD(z)){var G=W.JSC$11349_getStartOffset(),Y;if(_.P8&&B.nodeType===Node.ELEMENT_NODE&&(Y=_.AKU(B)))_.zk(Y,0).select();else{Y=VQ(B)?B:_.n3(B,VQ);var d=VQ(z)?z:_.n3(z,VQ);if(Y||d)if(W.isCollapsed()){if(B.nodeType===Node.TEXT_NODE){W=!0;G===B.length&&(W=!1);if(qh==="end"||qh==="right")W=!1;B=B.parentNode;W=[].concat(_.u7(B.parentNode.childNodes)).indexOf(B)+(W?0:1);_.zk(B.parentNode,
W).select()}}else Y?Y.previousSibling&&Y.previousSibling.length>0?_.Gk(z,W.JSC$11349_getEndOffset(),Y.previousSibling,Y.previousSibling.length-1).select():(B=document.createTextNode("\u200b"),Y.parentNode.insertBefore(B,Y),_.Gk(z,W.JSC$11349_getEndOffset(),B,0).select()):d&&(d.nextSibling&&d.nextSibling.length>0?_.Gk(B,W.JSC$11349_getStartOffset(),d.nextSibling,1).select():(z=document.createTextNode("\u200b"),d.parentNode.insertBefore(z,d.nextSibling),_.Gk(B,W.JSC$11349_getStartOffset(),z,z.length).select()));
qh=null}}else qh=null}else qh=null},
leftKeyPressed_:function(){qh="left"},
rightKeyPressed_:function(){qh="right"},
endKeyPressed_:function(){qh="end"},
maybeDeleteChip_:function(){var W=mck(!0);if(W){var B=_.tE(),z=B.JSC$11349_getStartNode();B=B.JSC$11349_getStartOffset();_.Mz(z,B,W,W.childNodes.length).select()}},
maybeBackspaceChip_:function(){var W=mck(!1);if(W){var B=_.tE(),z=B.JSC$11349_getStartNode();B=B.JSC$11349_getStartOffset();_.Mz(z,B,W,0).select()}},
maybeBackspaceChipWordMode_:function(W){var B=_.tE();if(B.isCollapsed()){var z=B.JSC$11349_getStartNode();B=B.JSC$11349_getStartOffset();var G=xcT(z,B,!0);G&&(_.Mz(z,B,G,0).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(W){var B=_.tE();if(B.isCollapsed()){var z=B.JSC$11349_getStartNode();B=B.JSC$11349_getStartOffset();var G=xcT(z,B,!1);G&&(_.Mz(z,B,G,G.childNodes.length).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
onTap_:function(W){if(!W.defaultPrevented&&(W.currentTarget.tagName==="YTD-COMMENTBOX"&&VQ(W.target)&&W.preventDefault(),this.isEmojiPickerDisplayed)){var B=this.$$("#emojis"),z=this.$$("#emoji-button"),G=this.getEditableTextArea_();if((W=W.path?W.path:W.composedPath&&W.composedPath())&&!W.includes(B)&&!W.includes(G)&&!W.includes(z))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(W,B,z){return W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&B!==void 0&&B.encryptedBlobId!==null&&B.sourceExternalVideoId!==null&&z!==void 0&&z.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(W,B){return W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!B&&!!B.videoRenderer&&!!B.videoRenderer.videoId},
isValidPrefilledAttachment_:function(W,B,z){return this.isValidPrefilledImage_(W,B,z)||this.isValidPrefilledVideo_(W,z)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.r("enable_multi_image_post_creation")){var W=this.$$("ytd-backstage-multi-image-select-renderer");W&&W.hasImages()&&W.cancel()}else(W=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&W.cancel();(W=this.$["poll-attachment"])&&this.hasPoll_&&W.clearPollOptions();(W=this.$["image-poll-attachment"])&&this.hasImagePoll_&&W.resetPollOptions();(W=this.$["quiz-attachment"])&&this.hasQuiz_&&W.resetQuizOptions();
(W=this.$["video-link-attachment"])&&this.hasVideo_&&W.cancel();(W=this.$["access-restrictions-selector"].firstElementChild)&&W.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 _.tH(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.tH(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(W,B){W=Xi0(W,this.emojiManager,B).cloneNode(!0);for(B=W.firstChild;B;)if(B.nodeType!==1)B=B.nextSibling;else switch(B.tagName){case "BR":var z=_.DF();_.JKd(z,B);B=z.nextSibling;break;case "DIV":(z=B.lastChild)&&B.nextSibling&&_.nf(_.DF(),z);B.previousSibling&&(B.previousSibling.nodeType===1||B.previousSibling.nodeType===3&&!B.previousSibling.textContent.endsWith("\n"))&&_.qD(_.DF(),B);z&&z.nodeName==="BR"&&_.o0(z);z=B;B.hasChildNodes()?(B=B.firstChild,
_.gYQ(z)):(B=B.nextSibling,_.o0(z));break;default:B=B.nextSibling}return Dcv(W)},
onAddImageError_:function(W){W.stopPropagation();this.errorMessage_=_.Bg(W.detail)},
setTextAreaValue_:function(W){W||(W="");var B=this.getEditableFormattedString_();B.text="";this.getEditableTextArea_().innerText="";typeof W==="string"&&(W={runs:[{text:W}]});B.text=W},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();qh=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var W=this.getEditableTextArea_();W&&(_.zk(W,W.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.eD("HTML_DIR")==="rtl"){var W=this.getEditableTextArea_(),B=this.getTextAreaValue()!==""?"auto":"rtl";W.setAttribute("dir",B)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var W;return fqX((W=this.$["quiz-attachment"])==null?void 0:W.getExplanationText())||fqX(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var W=null;if(this.isEmojiButtonDisplayed){var B=this.getInputRange_();B&&(W=this.emojiInput.retrieveTextBeforeRange(B))}this.insertText_(W,!0);this.updateCharCount_();this.setSubmitButton_();W=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=W.scrollHeight>W.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var W=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:W})},
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(W){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(W)},
onPasteEmoji_:function(W){W.preventDefault();W.stopImmediatePropagation();W=W.clipboardData.getData("text/plain");this.insertText_(W,!1,!1)},
insertText_:function(W,B,z){B=B===void 0?!1:B;z=z===void 0?!0:z;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&W){var G=this.getInputRange_().cloneRange();this.emojiManager&&G&&(B&&this.emojiInput.offsetStartOfRangeBy(G,W.length),this.insertTextWithEmojis_(G,W,z),OPt(this.getEditableTextArea_().lastChild)||(G=this.getInputRange_().cloneRange()),G&&(this.emojiInput.updateSuggestions(G,W),this.updateSuggestionOffset_(G)))}},
setSubmitButton_:function(){if(this.data){var W=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",B=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(W||B){var z=this.getTextAreaValue().trim();B=z===this.previousText_;z=!z||this.aboveCharLimit_;W&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(z=this.aboveCharLimit_);this.submitButtonDisabled=
B||z||!this.getTextLength();W&&_.r("enable_post_scheduling")&&(this.submitButtonDisabled=B&&!this.scheduledPublishTimeSec_||z)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.zR,computeCreationBoxClass_:function(W){return W?"focused":"not-focused"},
computeFooterMessageClass_:function(W,B){return B?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(W,B){return B?B:W},
computeFooterMessageHidden_:function(W,B){return!B&&!W},
computePlaceholderText_:function(W,B,z){return(z==="video"||z==="image")&&(W==null?0:W.prefilledPlaceholderText)?W==null?void 0:W.prefilledPlaceholderText:B==="poll"||B==="image-poll"?W==null?void 0:W.pollPostPlaceholderText:B==="quiz"?W==null?void 0:W.quizPostPlaceholderText:B==="image"?W==null?void 0:W.imagePostPlaceholderText:W==null?void 0:W.placeholderText},
computeHideAttachmentButtons_:function(W,B,z,G){return W===void 0?!1:G&&this.getSimpleString(G)===this.getSimpleString(W.rateLimitErrorMessage)?!0:B!=="none"||z!=="none"||!W.videoLinkButton&&!W.pollButton&&!W.imagePollButton&&!W.quizButton&&!W.imageButton},
computeHideDismissableAttachment_:function(W){return W!=="image"&&W!=="video"},
computeHasVideo_:function(W){return W==="video"},
computeHasImage_:function(W){return W==="image"},
computeHasPoll_:function(W){return W==="poll"},
computeHasImagePoll_:function(W){return W==="image-poll"},
computeHasQuiz_:function(W){return W==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(W){return W&&W.backstageAttachment?W.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!W.backstageAttachment.quizRenderer&&!W.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(W){if(this.isValidPrefilledAttachment_(W.purpose,W.prefilledImageData,W.backstageAttachment))return W.backstageAttachment},
computeEditAttachment_:function(W){if(this.computePrefilledContent_(W)===void 0)return W.backstageAttachment},
computeAuthorThumbnailDimension_:function(W,B){return W&&!B?24:40},
computeImageUploadEndpoint_:function(W){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",W)},
computeRateLimitErrorCommands_:function(W){var B,z;return W==null?void 0:(B=W.advancedTierFeatures)==null?void 0:(z=B.rateLimit)==null?void 0:z.rateLimitCommands},
computeIsBackstageComment_:function(W){return!(!W||W!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(W){return this.get("submitButton.buttonRenderer.serviceEndpoint",W)||this.get("replyButton.buttonRenderer.serviceEndpoint",W)||this.get("postButton.buttonRenderer.serviceEndpoint",W)},
computeSubmitButtonOverride:function(){if(_.r("web_modern_buttons")){var W,B;return{segmentedPosition:this.dropdownSchedulePanel_||!((W=this.data)==null?0:(B=W.postOptionsMenu)==null?0:B.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.r("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(W,B){W=this.get("submitButton.buttonRenderer",W)||this.get("replyButton.buttonRenderer",W)||this.get("postButton.buttonRenderer",W);B&&(W=B);W&&(W=Object.assign({},W),W.serviceEndpoint=void 0,W.isDisabled=this.submitButtonDisabled);return W},
computeHasExternalLinksAccess_:function(W){if(_.r("enable_rfa_external_links")){var B,z,G;return(G=W==null?void 0:(B=W.advancedTierFeatures)==null?void 0:(z=B.externalLinks)==null?void 0:z.allowExternalLinks)!=null?G:!0}return!0},
computeIsEmojiButtonDisplayed_:function(W){return W.emojiButton&&W.emojiPicker&&W.emojiPicker.emojiPickerRenderer&&W.emojiPicker.emojiPickerRenderer.categories?W.emojiPicker.emojiPickerRenderer.categories.find(function(B){return B.emojiPickerCategoryRenderer?B.emojiPickerCategoryRenderer.emojiIds&&B.emojiPickerCategoryRenderer.emojiIds.length>0:B.emojiPickerUpsellCategoryRenderer?B.emojiPickerUpsellCategoryRenderer.emojis&&B.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(W){return W.charLimit?W.charLimit:null},
computeDropdownSchedulingPanel_:function(W,B){if(W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&B)return B},
computeInlineSchedulingPanel_:function(W,B){if(W==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&B)return B},
computeHideAuthorThumbnail_:function(W,B){return W||this.computeUseIdentityChip_(B)},
computeHideIdentityChipRenderer_:function(W,B){return W||!this.computeUseIdentityChip_(B)},
computeUseIdentityChip_:function(W){return!!W&&!!W.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(W){var B,z,G,Y;(W==null?0:(B=W.detail)==null?0:(z=B.endpoint)==null?0:z.ypcGetOffersEndpoint)||(W==null?0:(G=W.detail)==null?0:(Y=G.endpoint)==null?0:Y.ypcOffersEndpoint)?(W.stopPropagation(),_.V0(this,[W.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",W)&&(W.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(W){this.addedAttachment="video";this.selectedVideoId_=W.detail.videoId},
commentboxStateEntityChanged_:function(W){var B=this;(W==null?void 0:W.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(W==null?void 0:W.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){B.focus()})},
onYtServiceRequestSent_:function(W,B){if(B.actions)for(W=_.A(B.actions),B=W.next();!B.done;B=W.next())B.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(W){this.isLoading=!1;var B=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",W),z,G,Y,d=W==null?void 0:(z=W.detail)==null?void 0:(G=z.data)==null?void 0:(Y=G.actionResult)==null?void 0:Y.commentboxStateEntityKey;if(B)this.errorMessage_=B;else if(d){var E;this.dismissData_=W==null?void 0:(E=W.detail)==null?void 0:E.data;this.commentboxStateKey_=d}else{this.clear();var v;this.fire("yt-commentbox-dismiss",W==null?void 0:(v=W.detail)==
null?void 0:v.data)}},
onYtServiceRequestError_:function(W){W.stopPropagation();this.isLoading=!1;var B,z;if(((B=this.data)==null?void 0:B.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((z=this.data)==null?void 0:z.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(B=this.get("detail.error.args",W)||[],B.length>1&&B[1].message){this.handlePostsServiceRequestError_(B[1].message);return}(W=this.get("detail.error.message",W))?this.errorMessage_=this.data.errorMessage||_.Bg(W):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(W){if(_.r("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var B=_.A(this.rateLimitErrorCommands),z=B.next();!z.done;z=B.next())if(z=z.value,z.errorLabel===W){_.oB(z.command,this.hostElement);return}this.errorMessage_=_.Bg(W)},
submitIfNotBackstagePost_:function(W){if(!this.isBackstagePost)this.onSubmit_(W)},
onSubmit_:function(W){var B=this,z,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O;return _.T(function(K){switch(K.nextAddress){case 1:W.stopPropagation();if(!B.serviceEndpoint||!B.isValidInput_())return K.return();if(B.shouldShowPostAadcNotice_())return B.showPostAadcNotice_(),K.return();if(B.shouldShowCommentAadcNotice_())return B.showCommentAadcNotice_(),K.return();if(!(B.$$("ytd-backstage-multi-image-select-renderer")&&B.hasImage_&&_.r("enable_multi_image_post_creation"))){K.jumpTo(2);break}z=B.$$("ytd-backstage-multi-image-select-renderer");
return K.yield(z.getAllUploadStatuses(),3);case 3:G=K.yieldResult;if(!G)return K.return();Y=_.A(G);for(d=Y.next();!d.done;d=Y.next())if(E=d.value,E.encryptedBlobId===void 0)return B.isLoading=!1,c=v=void 0,B.errorMessage_=(c=(v=B.imageUploadEndpoint_)==null?void 0:v.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?c:null,K.return();return K.return(B.submitForm_(void 0,void 0,void 0,void 0,z.images,B.taggedVideoId_));case 2:if(!B.hasImagePoll_||!B.$["image-poll-attachment"]){K.jumpTo(4);
break}return K.yield(B.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:J=K.yieldResult;if(!J)return K.return();g=_.A(J);for(t=g.next();!t.done;t=g.next())if(P=t.value,!P.encryptedBlobId)return B.isLoading=!1,Z=void 0,B.errorMessage_=(Z=B.data.errorMessage)!=null?Z:null,K.return();case 4:b=(l=B.$$("ytd-backstage-image-select-renderer"))&&l.uploadPromise(),O=B.getSharedPostId_(),b?b.then(function(){B.submitForm_.apply(B,_.u7(_.nm.apply(0,arguments)))}).catch(function(e){B.isLoading=!1;
B.errorMessage_=_.Bg(e.message)}):B.selectedVideoId_?B.submitForm_(void 0,B.selectedVideoId_):B.prefilledAttachment_==="image"?B.submitForm_(B.prefilledImageData_.encryptedBlobId,void 0,void 0,B.prefilledImageData_.sourceExternalVideoId,void 0,B.taggedVideoId_):B.prefilledAttachment_==="video"?B.submitForm_(void 0,B.data.backstageAttachment.videoRenderer.videoId):O?B.submitForm_(void 0,void 0,O):B.taggedVideoId_!==void 0?B.submitForm_(void 0,void 0,void 0,void 0,void 0,B.taggedVideoId_):B.submitForm_(),
_.HG(K)}})},
openSchedulingPanel:function(W){W&&W.scheduleButton&&W.scheduleButton.buttonRenderer&&(this.scheduleButton_=W.scheduleButton.buttonRenderer);W&&W.dateTimePicker&&this.set("data.schedulingDateTimePicker",W.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(W){W.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(W){W.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(W){W.stopPropagation();W.detail.alertMessage&&(this.alertMessage_=W.detail.alertMessage)},
onImageSelected_:function(W){W.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(W){W.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(W){W.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(W.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(W){W.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(W){var B=this.$["video-link-attachment"];B&&B.onLaunchVideoPicker(W)},
onAttachmentDismiss_:function(W){W.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"&&_.r("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.r("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 W;if(this.addedAttachment==="image-poll"&&((W=this.$["image-poll-attachment"])==null||!W.isValid()))return!1;var B;if(this.addedAttachment==="quiz"&&((B=this.$["quiz-attachment"])==null||!B.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;W=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(W=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")W=!0;return W||!!this.getTextAreaValue().trim()},
submitForm_:function(W,B,z,G,Y,d){var E=this.getTextAreaValue().trim(),v={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&E===this.previousText_&&(E=void 0);E!==void 0&&(v.comment_text=E);this.isLoading=!0;d!=void 0&&(v.tagged_video_id=d);W?(v.image_blob_id=W,this.imagePreviewCoordinates_&&(v.image_preview_coordinates=this.imagePreviewCoordinates_)):B?v.attached_video_id=B:z?v.shared_post_id=z:Y&&Y.length>0&&(v.images_data=Y.map(function(c){return{encryptedBlobId:c.encryptedBlobId,
previewCoordinates:c.previewCoordinates}}));
G&&(v.source_video_id=G);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(v.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(v.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(v.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.r("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(v.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.r("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(v.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.V0(this,[this.serviceEndpoint,v])},
onIsInputFocusChanged_:function(W,B){W?this.fire("yt-autonav-pause-focus"):B!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(W){var B=this.getEditableTextArea_();[].concat(_.u7(W.dataTransfer.items)).forEach(function(z){z.kind==="string"&&z.type.match("^text/plain")&&z.getAsString(function(G){B.appendChild(document.createTextNode(G))})});
W.preventDefault()},
preventDefault_:function(W){W.preventDefault()},
onSuggestionInsert_:function(W){this.insertTextWithEmojis_(W.detail.range,W.detail.text)},
onEmojiSuggestionClick_:function(W){this.emojiInput.insertSuggestion(W.detail)},
computeSubmitButtonClass_:function(W,B){return!B||W?"":"with-options"},
updateSuggestionOffset_:function(W){if(this.emojiInput&&_.tH(this.emojiInput).querySelector("#dropdown")){var B=this.getEditableTextArea_().getBoundingClientRect().bottom,z=W.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(B-z)+5;B=this.getEditableTextArea_().getBoundingClientRect().left;W=W.getBoundingClientRect().left-B;_.tH(this.emojiInput).querySelector("#dropdown").style.marginLeft=W+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(W){if(_.r("enable_post_scheduling")&&this.data&&this.data.purpose){W=W.detail;if(Math.floor(Date.now()/1E3)>=W)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var B=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(B)||B!==W?this.scheduledPublishTimeSec_=W:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=W;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var W=["image-button","image-poll-button","poll-button"];_.r("enable_quiz_creation")&&W.push("quiz-button");_.r("auto_convert_posts_video_tag")||W.push("video-link-button");return W},
getButtonRenderer:function(W,B){if(W)switch(B){case "video-link-button":var z;return((z=W.videoLinkButton)==null?void 0:z.buttonRenderer)||void 0;case "image-button":var G;return((G=W.imageButton)==null?void 0:G.buttonRenderer)||void 0;case "poll-button":var Y;return((Y=W.pollButton)==null?void 0:Y.buttonRenderer)||void 0;case "image-poll-button":var d;return((d=W.imagePollButton)==null?void 0:d.buttonRenderer)||void 0;case "quiz-button":var E;return((E=W.quizButton)==null?void 0:E.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var W;return(W=this.data)==null||!W.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var W,B;return!((W=this.data)==null||!W.openAadcDialog)&&!((B=this.aadcGuidelinesState_)==null||!B.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.eD("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var W;((W=this.data)==null?0:W.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.el("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(W){W.clickTrackingParams&&_.SK().clickCommand(W);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.c0(this,"yt-close-popup-action")},
onHideIdentityChip:function(W){var B;this.set("data.placeholderText",(B=W.hideIdentityChipAction)==null?void 0:B.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var nM=function(){var W=_.S.apply(this,arguments)||this;W.isOpen=!1;W.modern=_.r("web_modern_buttons");W.roundedContainer=!0;W.dropdownButtonOverride=_.r("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;W.inPopupContainer=!1;W.isCommentboxLoading=!1;var B=["image-button","image-poll-button","poll-button"];_.r("enable_quiz_creation")&&B.push("quiz-button");_.r("auto_convert_posts_video_tag")||B.push("video-link-button");W.attachmentButtonIds=B;W.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 W};
_.C(nM,_.S);_.p=nM.prototype;_.p.computeButtonOverride=function(){var W;return((W=this.data)==null?0:W.postOptionsMenu)&&_.r("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.p.configureRendererStamper=function(){var W={"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]]"}}}}};_.r("auto_convert_posts_video_tag")||(W["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return W};
_.p.ready=function(){var W=this,B=_.tH(this.hostElement).querySelector("#placeholder-area"),z=function(G){W.onOpen(G)};
B.addEventListener("tap",z);B.addEventListener("keypress",z)};
_.p.showButtonEduTooltip=function(){var W,B,z,G,Y,d,E;if(_.r("enable_quiz_creation")&&((W=this.data)==null?0:(B=W.quizButton)==null?0:(z=B.buttonRenderer)==null?0:(G=z.hint)==null?0:(Y=G.hintRenderer)==null?0:(d=Y.content)==null?0:(E=d.bubbleHintRenderer)==null?0:E.text)&&(_.j8.getInstance(),W=fI(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(W==null?void 0:
W.length)>0)){this.ytComponentBehavior.resolveCommand(W[0],{form:{element:this.quizButton}});return}var v;if((v=this.data)==null?0:v.imagePollButtonTooltip)if(_.j8.getInstance(),v=fI(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(v==null?void 0:v.length)>0){this.ytComponentBehavior.resolveCommand(v[0],{form:{element:this.imagePollButton}});return}var c;_.r("enable_multi_image_post_creation")&&
((c=this.data)==null?0:c.multiImageButtonTooltip)&&(_.j8.getInstance(),c=fI(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(c==null?void 0:c.length)>0&&this.ytComponentBehavior.resolveCommand(c[0],{form:{element:this.imageButton}}))};
_.p.onCreatePollAction=function(W){_.k(W,qZ7)&&(this.JSC$15805_commentbox.addedAttachment="poll",this.openDialog())};
_.p.onAddVideoLinkAction=function(W){if(_.k(W,xIQ))this.JSC$15805_commentbox.onAddVideoLink(W)};
_.p.onShowSchedulingPanelCommand=function(W){(W=_.k(W,JGR))&&this.openSchedulingPanel(W)};
_.p.onCreateImagePollCommand=function(W){_.k(W,AwR)&&(this.JSC$15805_commentbox.openImagePollComponent(),this.openDialog())};
_.p.onCreateQuizCommand=function(W){_.k(W,iSM)&&(this.JSC$15805_commentbox.openQuizComponent(),this.openDialog())};
_.p.openSchedulingPanel=function(W){_.r("enable_post_scheduling")&&(this.openDialog(),this.JSC$15805_commentbox.openSchedulingPanel(W))};
_.p.onCreateCommentAction=function(W){this.get("createCommentAction.contents",W)&&(this.JSC$15805_commentbox.clear(),this.closeDialog())};
_.p.onOpen=function(W){W instanceof KeyboardEvent&&W.type==="keypress"&&W.keyCode!==13&&W.keyCode!==32||(this.data.prepareAccountEndpoint?_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.p.onYtCommentboxDismiss=function(){this.closeDialog()};
_.p.onYtCommentboxLoadingStart=function(W){W.stopPropagation();this.isCommentboxLoading=!0};
_.p.onYtCommentboxLoadingEnd=function(W){W.stopPropagation();this.isCommentboxLoading=!1};
_.p.onYtVideoLinkButtonCancel=function(W){W.stopPropagation();this.onOpen(W)};
_.p.onYtVideoLinkSelected=function(W){W.stopPropagation();this.onOpen(W)};
_.p.onIronSelect=function(W){W.stopPropagation();W.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=W.detail.item.value&&(this.accessRestriction?(this.accessRestriction=W.detail.item.value,this.onOpen(W)):this.accessRestriction=W.detail.item.value)};
_.p.onYtNavigate=function(W){this.get("detail.endpoint.backstageImageUploadEndpoint",W)&&(this.JSC$15805_commentbox.addedAttachment="image",this.JSC$15805_commentbox.submitButtonDisabled=!0,this.onOpen(W))};
_.p.onRequestSent=function(W){if(_.r("web_button_rework"))for(var B=_.A(W.detail),z=B.next();!z.done;z=B.next())_.k(z.value,PJD)&&(this.JSC$15805_commentbox.addedAttachment="image",this.JSC$15805_commentbox.submitButtonDisabled=!0,this.onOpen(W))};
_.p.openDialog=function(){this.JSC$15805_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15805_commentbox.focus()};
_.p.onPopupClosed=function(){_.j8.getInstance()};
_.p.computeCreationDisabled=function(W){return!!W};
_.p.computeIsCreationDialog=function(W){return!!W&&W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.p.computeDisabledPostButton=function(W){if(!W)return null;W.isDisabled=!0;return W};
_.p.computeIsCreationDialogWithHeader=function(W){return!this.inPopupContainer&&!!W&&!!W.authorText&&W.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.p.computeIsHeaderHidden=function(W,B){return!W||B};
_.p.computeDropdownRendererClasses=function(W){return W?["text-secondary-style"]:[]};
_.p.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var W=_.tH(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;W&&W.reset()};
nM.prototype.onPopupClosed=nM.prototype.onPopupClosed;nM.prototype.onRequestSent=nM.prototype.onRequestSent;nM.prototype.onYtNavigate=nM.prototype.onYtNavigate;nM.prototype.onIronSelect=nM.prototype.onIronSelect;nM.prototype.onYtVideoLinkSelected=nM.prototype.onYtVideoLinkSelected;nM.prototype.onYtVideoLinkButtonCancel=nM.prototype.onYtVideoLinkButtonCancel;nM.prototype.onYtCommentboxLoadingEnd=nM.prototype.onYtCommentboxLoadingEnd;nM.prototype.onYtCommentboxLoadingStart=nM.prototype.onYtCommentboxLoadingStart;
nM.prototype.onYtCommentboxDismiss=nM.prototype.onYtCommentboxDismiss;nM.prototype.showButtonEduTooltip=nM.prototype.showButtonEduTooltip;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],nM.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],nM.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],nM.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],nM.prototype,"isOpen",void 0);_.Q([_.F({computed:"computeButtonOverride(data)"}),_.y("design:type",Object)],nM.prototype,"buttonOverride",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],nM.prototype,"modern",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],nM.prototype,"roundedContainer",void 0);_.Q([_.F(),_.y("design:type",Object)],nM.prototype,"dropdownButtonOverride",void 0);_.Q([_.F({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.y("design:type",Boolean)],nM.prototype,"creationDisabled",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],nM.prototype,"enableCreationBox",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.y("design:type",Boolean)],nM.prototype,"isCreationDialog",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],nM.prototype,"inPopupContainer",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.y("design:type",Boolean)],nM.prototype,"isCreationDialogWithHeader",void 0);_.Q([_.F(),_.y("design:type",Object)],nM.prototype,"accessRestriction",void 0);
_.Q([_.F({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.y("design:type",Array)],nM.prototype,"dropdownRendererClasses",void 0);_.Q([_.F(),_.y("design:type",Object)],nM.prototype,"isCommentboxLoading",void 0);_.Q([_.F(),_.y("design:type",Array)],nM.prototype,"attachmentButtonIds",void 0);_.Q([_.Hf("#image-button"),_.y("design:type",HTMLElement)],nM.prototype,"imageButton",void 0);
_.Q([_.Hf("#image-poll-button"),_.y("design:type",HTMLElement)],nM.prototype,"imagePollButton",void 0);_.Q([_.Hf("#quiz-button"),_.y("design:type",HTMLElement)],nM.prototype,"quizButton",void 0);_.Q([_.Hf("#commentbox"),_.y("design:type",Object)],nM.prototype,"JSC$15805_commentbox",void 0);_.Q([_.oN("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nM.prototype,"showButtonEduTooltip",null);
_.Q([_.IN("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nM.prototype,"onYtCommentboxDismiss",null);_.Q([_.IN("yt-commentbox-loading-start"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nM.prototype,"onYtCommentboxLoadingStart",null);
_.Q([_.IN("yt-commentbox-loading-end"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nM.prototype,"onYtCommentboxLoadingEnd",null);_.Q([_.IN("yt-video-link-button-cancel"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nM.prototype,"onYtVideoLinkButtonCancel",null);
_.Q([_.IN("yt-video-link-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nM.prototype,"onYtVideoLinkSelected",null);_.Q([_.IN("iron-select"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nM.prototype,"onIronSelect",null);_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nM.prototype,"onYtNavigate",null);
_.Q([_.IN("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nM.prototype,"onRequestSent",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nM.prototype,"onPopupClosed",null);_.Q([_.u({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],nM);
_.D(nM,"ytd-backstage-post-dialog-renderer",function(){if(rRM!==void 0)return rRM;var W=document.createElement("template");_.I(W,'\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 class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return rRM=W},{mode:1});var W_u;var B6H;var Nh=function(){return _.S.apply(this,arguments)||this};
_.C(Nh,_.S);_.p=Nh.prototype;_.p.computeHeartButtonStyle=function(W){return(W==null?0:W.styleType)?W.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.p.onYtButtonTap=function(){if(this.data.isEnabled){var W=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(W=this.getEndpoint(W))&&_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}})}else(W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(W)};
_.p.toggle=function(W){this.set("data.isHearted",W!==void 0?W:!this.data.isHearted)};
_.p.getEndpoint=function(W){var B,z=(B=this.data)==null?void 0:B.heartEndpoint,G;B=(G=this.data)==null?void 0:G.unheartEndpoint;if(z&&B)return W?B:z};
_.p.computeButtonAccessibility=function(W,B){var z,G,Y=W==null?void 0:(z=W.heartedAccessibility)==null?void 0:(G=z.accessibilityData)==null?void 0:G.label,d,E;W=W==null?void 0:(d=W.unheartedAccessibility)==null?void 0:(E=d.accessibilityData)==null?void 0:E.label;return B?Y:W};
_.G5.Object.defineProperties(Nh.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 W;return _.r("kevlar_system_icons")&&!((W=this.data)==null||!W.isHearted)}}});
Nh.prototype.onYtButtonTap=Nh.prototype.onYtButtonTap;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],Nh.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Nh.prototype,"data",void 0);_.Q([_.H("data.isHearted"),_.y("design:type",Object),_.y("design:paramtypes",[])],Nh.prototype,"heartTooltip",null);
_.Q([_.H("data.isHearted"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nh.prototype,"iconFilled",null);_.Q([_.F({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.y("design:type",String)],Nh.prototype,"buttonAccessibility",void 0);_.Q([_.F({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.y("design:type",String)],Nh.prototype,"heartButtonStyle",void 0);
_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nh.prototype,"onYtButtonTap",null);_.Q([_.u({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Nh);
_.D(Nh,"ytd-creator-heart-renderer",function(){if(B6H!==void 0)return B6H;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return B6H=W},{mode:1});var $Q=function(){var W=_.S.apply(this,arguments)||this;W.hasCreatorReply=!1;W.buttonOverrides={size:"S",iconPosition:"icon-only"};W.replyButtonOverrides={size:"S",type:"text"};W.forceIconButton=!_.r("web_modern_buttons");W.modern=_.r("web_modern_buttons");W.buttonTooltipPosition="bottom";W.systemIcons=_.r("kevlar_system_icons");W.replyDialog=null;return W};
_.C($Q,_.S);_.p=$Q.prototype;
_.p.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]]"}}}}}};
_.p.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.p.dataChange=function(){this.replyDialog&&_.tH(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var W,B,z;this.isLiked=this.systemIcons&&!!((W=this.data)==null?0:(B=W.likeButton)==null?0:(z=B.toggleButtonRenderer)==null?0:z.isToggled)};
_.p.computeShowVoteCountBeginning=function(W,B){return W===void 0||B===void 0?!0:W.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!B&&this.ytRendererBehavior.getSimpleString(B)!=="0"};
_.p.computeShowVoteCountEnd=function(W,B){return W===void 0||B===void 0?!0:W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!B&&this.ytRendererBehavior.getSimpleString(B)!=="0"};
_.p.computeShowCommentCount=function(W,B){return W===void 0||B===void 0?!0:W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!B&&this.ytRendererBehavior.getSimpleString(B)!=="0"};
_.p.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.p.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.p.showReplyDialog=function(W){W&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.tH(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=W,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.p.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.p.onRequestSent=function(W){if(_.r("web_button_rework")){W=_.A(W.detail);for(var B=W.next();!B.done;B=W.next())(B=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",B.value))&&this.showReplyDialog(B)}};
_.p.onYtNavigate=function(W){var B,z;(W=(B=_.k(W.detail.endpoint,_.rLF))==null?void 0:(z=B.dialog)==null?void 0:z.commentReplyDialogRenderer)&&this.showReplyDialog(W)};
_.p.onYtServiceRequestSent=function(W,B){W.stopPropagation();if(B.actions)for(W=0;W<B.actions.length;W++){var z=_.k(B.actions[W],M16);z&&this.handleUpdateCommentVoteAction(z)}};
_.p.handleUpdateCommentVoteAction=function(W){this.voteCount=W.voteCount||_.Bg("0");W.voteStatus==="LIKE"?this.JSC$15816_ytdDislikeToggleButtonRenderer.toggle(!1):W.voteStatus==="DISLIKE"?this.JSC$15816_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15816_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15816_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.p.computeReplyButtonHidden=function(W){return W};
_.p.computeReplyButtonBeginning=function(W){return(W==null?0:W.replyButton)&&W.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?W.replyButton:void 0};
_.p.computeReplyButtonEnd=function(W){return(W==null?0:W.replyButton)&&W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?W.replyButton:void 0};
_.p.computeActionButtonStyle=function(W){return(W==null?0:W.style)?W.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.p.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.p.onYtToggleButton=function(W){var B,z;this.isLiked=this.systemIcons&&!!((B=W.detail)==null?0:(z=B.actions)==null?0:z.like)};
$Q.prototype.onYtToggleButton=$Q.prototype.onYtToggleButton;$Q.prototype.onButtonTooltipPositionChanged=$Q.prototype.onButtonTooltipPositionChanged;$Q.prototype.onYtServiceRequestSent=$Q.prototype.onYtServiceRequestSent;$Q.prototype.onYtNavigate=$Q.prototype.onYtNavigate;$Q.prototype.onRequestSent=$Q.prototype.onRequestSent;$Q.prototype.onYtCommentboxDismiss=$Q.prototype.onYtCommentboxDismiss;$Q.prototype.dataChange=$Q.prototype.dataChange;
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$Q.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],$Q.prototype,"voteCount",void 0);_.Q([_.F(),_.y("design:type",Object)],$Q.prototype,"commentCount",void 0);_.Q([_.F(),_.y("design:type",Object)],$Q.prototype,"replyThumbnail",void 0);
_.Q([_.F(),_.y("design:type",Object)],$Q.prototype,"hasCreatorReply",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],$Q.prototype,"enableCreationBox",void 0);_.Q([_.F({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.y("design:type",String)],$Q.prototype,"actionButtonsStyle",void 0);_.Q([_.F({computed:"computeReplyButtonBeginning(data)"}),_.y("design:type",Object)],$Q.prototype,"replyButtonBeginning",void 0);
_.Q([_.F({computed:"computeReplyButtonEnd(data)"}),_.y("design:type",Object)],$Q.prototype,"replyButtonEnd",void 0);_.Q([_.F(),_.y("design:type",Object)],$Q.prototype,"buttonOverrides",void 0);_.Q([_.F(),_.y("design:type",Object)],$Q.prototype,"replyButtonOverrides",void 0);_.Q([_.F(),_.y("design:type",Object)],$Q.prototype,"forceIconButton",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],$Q.prototype,"useCommentIcon",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],$Q.prototype,"modern",void 0);_.Q([_.F(),_.y("design:type",Object)],$Q.prototype,"buttonTooltipPosition",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],$Q.prototype,"systemIcons",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],$Q.prototype,"isLiked",void 0);_.Q([_.Hf("ytd-button-renderer"),_.y("design:type",Object)],$Q.prototype,"ytdReplyButtonRenderer",void 0);
_.Q([_.Hf("#like-button"),_.y("design:type",Object)],$Q.prototype,"JSC$15816_ytdLikeToggleButtonRenderer",void 0);_.Q([_.Hf("#dislike-button"),_.y("design:type",Object)],$Q.prototype,"JSC$15816_ytdDislikeToggleButtonRenderer",void 0);_.Q([_.Hf("#reply-dialog"),_.y("design:type",HTMLElement)],$Q.prototype,"replyDialogElement",void 0);_.Q([_.Hf("#reply-button"),_.y("design:type",HTMLElement)],$Q.prototype,"replyButtonElement",void 0);
_.Q([_.Hf("#reply-button-end"),_.y("design:type",HTMLElement)],$Q.prototype,"replyButtonEndElement",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$Q.prototype,"dataChange",null);_.Q([_.IN("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$Q.prototype,"onYtCommentboxDismiss",null);
_.Q([_.IN("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$Q.prototype,"onRequestSent",null);_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$Q.prototype,"onYtNavigate",null);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],$Q.prototype,"onYtServiceRequestSent",null);_.Q([_.oN("buttonTooltipPosition"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$Q.prototype,"onButtonTooltipPositionChanged",null);
_.Q([_.IN("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$Q.prototype,"onYtToggleButton",null);_.Q([_.u({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],$Q);
_.D($Q,"ytd-comment-action-buttons-renderer",function(){if(W_u!==void 0)return W_u;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return W_u=W},{mode:1});var zzM;var LM=function(){return _.S.apply(this,arguments)||this};
_.C(LM,_.S);LM.prototype.focus=function(){_.tH(this.hostElement).querySelector("#commentbox").focus()};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],LM.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],LM.prototype,"zeroStepChannelCreationRenderer",void 0);_.Q([_.u({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],LM);
_.D(LM,"ytd-comment-dialog-renderer",function(){if(zzM!==void 0)return zzM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return zzM=W},{mode:1});var GbM;var UD=function(){var W=_.S.apply(this,arguments)||this;W.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.r("enable_web_delhi_icons")};W.replyButtonOverrides={size:"S",type:"text"};return W};
_.C(UD,_.S);_.p=UD.prototype;_.p.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.p.detached=function(){this.replyBox&&this.replyBox.remove()};
_.p.showReplyDialog=function(W){if(W){var B=this.replyBox;B||(B=document.createElement("ytd-comment-reply-dialog-renderer"),B.id="replybox",_.tH(this.replyDialogDiv).appendChild(B));B.data=W;this.replyDialogDiv.hidden=!1;B.openDialog()}};
_.p.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.p.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var W,B=_.k((W=this.toolbarSurface)==null?void 0:W.subscribersOnlyDisclaimerSnackbarCommand,_.NH);B&&_.v0(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:B})}};
_.p.onYtServiceRequestSent=function(W,B){W.stopPropagation();if(B.actions)for(var z=0;z<B.actions.length;z++){var G=_.k(B.actions[z],M16);G?this.handleUpdateCommentVoteAction(G):W.target===this.heartButton&&this.toggleHeartState()}};
_.p.handleUpdateCommentVoteAction=function(W){var B;(B=this.toolbarState)!=null&&B.key&&this.ytdReduxBehavior.dispatch(_.ue("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:W.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":W.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.p.toggleHeartState=function(){var W;(W=this.toolbarState)!=null&&W.key&&this.ytdReduxBehavior.dispatch(_.ue("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.G5.Object.defineProperties(UD.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return(((W=this.toolbarState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(B=this.toolbarData)==null?void 0:B.likeCountLiked:(z=this.toolbarData)==null?void 0:z.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand)!==void 0&&!_.r("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,B=_.k((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand,_.NH),z,G,Y,d,E,v,c,J,g;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((z=this.toolbarSharedData)==null||!z.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((G=this.toolbarState)==null?void 0:G.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:B!=null?B:_.k((Y=this.toolbarSurface)==null?void 0:Y.likeCommand,_.NH),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:B!=null?B:_.k((d=this.toolbarSurface)==null?void 0:d.unlikeCommand,_.NH),defaultCommand:this.isVisiblyDisabled?_.k((E=this.toolbarSurface)==null?void 0:E.commentDisabledActionCommand,_.NH):void 0,defaultTooltip:(v=this.toolbarData)==null?void 0:v.likeInactiveTooltip,toggledTooltip:(c=this.toolbarData)==null?void 0:c.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(J=this.toolbarData)==null?void 0:J.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(g=this.toolbarSharedData)==null?void 0:g.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,B=_.k((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand,_.NH),z,G,Y,d,E,v,c,J,g,t;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((z=this.toolbarSharedData)==null||!z.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((G=this.toolbarState)==null?void 0:G.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:B!=null?B:_.k((Y=this.toolbarSurface)==null?void 0:Y.dislikeCommand,_.NH),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:B!=null?B:_.k((d=this.toolbarSurface)==null?void 0:d.undislikeCommand,_.NH),defaultCommand:this.isVisiblyDisabled?_.k((E=this.toolbarSurface)==null?void 0:E.commentDisabledActionCommand,_.NH):void 0,defaultTooltip:(v=this.toolbarData)==null?void 0:v.dislikeInactiveTooltip,toggledTooltip:(c=this.toolbarData)==null?void 0:
c.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(J=this.toolbarSharedData)==null?void 0:J.dislikeReplyButtonA11y:(g=this.toolbarSharedData)==null?void 0:g.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(t=this.toolbarSharedData)==null?void 0:t.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var W,B,z;if(((W=this.toolbarState)==null?void 0:W.heartState)!==void 0&&((B=this.toolbarState)==null?void 0:B.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((z=this.toolbarState)==null?void 0:z.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var G,Y,d,E,v,c,J,g,t,P,Z,l,b,O;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(G=this.toolbarData)==null?void 0:G.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((Y=this.toolbarState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((d=this.toolbarState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((E=this.toolbarState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((v=this.toolbarState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.k((c=this.toolbarSurface)==null?void 0:c.heartCommand,
_.NH),unheartEndpoint:this.isVisiblyDisabled?void 0:_.k((J=this.toolbarSurface)==null?void 0:J.unheartCommand,_.NH),disabledEndpoint:this.isVisiblyDisabled?_.k((g=this.toolbarSurface)==null?void 0:g.commentDisabledActionCommand,_.NH):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(t=this.toolbarData)==null?void 0:t.heartActiveTooltip,unheartedTooltip:(P=this.toolbarData)==null?void 0:P.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((Z=
this.toolbarState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(l=this.toolbarSharedData)==null?void 0:l.unheartButtonA11y:(b=this.toolbarSharedData)==null?void 0:b.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(O=this.toolbarSharedData)==null?void 0:O.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.toolbarSurface)==null||!W.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(W=this.commentStrings)==null?void 0:W.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.k((B=this.toolbarSurface)==null?void 0:B.replyCommand,_.NH),command:this.isVisiblyDisabled?_.k((z=this.toolbarSurface)==null?
void 0:z.commentDisabledActionCommand,_.NH):this.isSubsOnlyCommentsIneligibleUser?_.k((G=this.toolbarSurface)==null?void 0:G.subscribersOnlySnackbarCommand,_.NH):void 0}}}});
UD.prototype.onYtServiceRequestSent=UD.prototype.onYtServiceRequestSent;UD.prototype.hideReplyDialogDiv=UD.prototype.hideReplyDialogDiv;_.Q([_.F(),_.y("design:type",Object)],UD.prototype,"commentStrings",void 0);_.Q([_.F(),_.y("design:type",Boolean)],UD.prototype,"isReply",void 0);_.Q([_.F(),_.y("design:type",Object)],UD.prototype,"toolbarData",void 0);_.Q([_.F(),_.y("design:type",Object)],UD.prototype,"toolbarSharedData",void 0);
_.Q([_.F(),_.y("design:type",String)],UD.prototype,"toolbarStateKey",void 0);_.Q([_.F(),_.y("design:type",String)],UD.prototype,"toolbarSurfaceKey",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],UD.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],UD.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.oY),_.y("design:type",Object)],UD.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.Hf("#reply-dialog"),_.y("design:type",HTMLElement)],UD.prototype,"replyDialogDiv",void 0);_.Q([_.Hf("#replybox"),_.y("design:type",Object)],UD.prototype,"replyBox",void 0);_.Q([_.Hf("ytd-creator-heart-renderer"),_.y("design:type",Object)],UD.prototype,"heartButton",void 0);_.Q([_.F({selector:function(W,B){return _.P3(W.entities,"engagementToolbarStateEntityPayload",B)},
selectorArgs:["toolbarStateKey"]}),_.y("design:type",Object)],UD.prototype,"toolbarState",void 0);_.Q([_.F({selector:EfX,selectorArgs:["toolbarSurfaceKey"]}),_.y("design:type",Object)],UD.prototype,"toolbarSurface",void 0);_.Q([_.F(),_.y("design:type",Object)],UD.prototype,"buttonOverrides",void 0);_.Q([_.IN("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UD.prototype,"hideReplyDialogDiv",null);
_.Q([_.H("toolbarData","toolbarState"),_.y("design:type",String),_.y("design:paramtypes",[])],UD.prototype,"likeCount",null);_.Q([_.H("likeCount"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],UD.prototype,"showLikeCount",null);_.Q([_.H("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],UD.prototype,"isVisiblyDisabled",null);_.Q([_.H("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],UD.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.Q([_.H("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],UD.prototype,"isSubsOnlyCommentsEligibleUser",null);_.Q([_.H("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],UD.prototype,"hasPrepareAccountCommand",null);_.Q([_.H("toolbarData","toolbarState","toolbarSurface"),_.y("design:type",Object),_.y("design:paramtypes",[])],UD.prototype,"likeToggleButtonRenderer",null);
_.Q([_.H("isReply","toolbarData","toolbarState","toolbarSurface"),_.y("design:type",Object),_.y("design:paramtypes",[])],UD.prototype,"dislikeToggleButtonRenderer",null);_.Q([_.H("toolbarData","toolbarState","toolbarSurface"),_.y("design:type",Object),_.y("design:paramtypes",[])],UD.prototype,"creatorHeartSupportedRenderer",null);_.Q([_.H("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],UD.prototype,"hasReplyCommand",null);
_.Q([_.H("toolbarSurface","commentStrings","isVisiblyDisabled"),_.y("design:type",Object),_.y("design:paramtypes",[])],UD.prototype,"replyButtonRenderer",null);_.Q([_.F(),_.y("design:type",Object)],UD.prototype,"replyButtonOverrides",void 0);_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],UD.prototype,"onYtServiceRequestSent",null);_.Q([_.u({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],UD);
_.D(UD,"ytd-comment-engagement-bar",function(){if(GbM!==void 0)return GbM;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return GbM=W},{mode:1});var YaR;var Mh=function(){return _.S.apply(this,arguments)||this};
_.C(Mh,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Mh.prototype,"data",void 0);_.Q([_.u({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],Mh);
_.D(Mh,"ytd-comment-inline-thumbnail-renderer",function(){if(YaR!==void 0)return YaR;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return YaR=W},{mode:1});var da7;var ab=function(){return _.S.apply(this,arguments)||this};
_.C(ab,_.S);ab.prototype.onMessageTap=function(){if(this.onTapCommand){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);W&&this.ytdOpenPopupBehavior.openPopup(W)}};
_.G5.Object.defineProperties(ab.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return(W=this.data)==null?void 0:(B=W.button)==null?void 0:(z=B.buttonRenderer)==null?void 0:z.command}}});
_.Q([_.h(_.oY),_.y("design:type",Object)],ab.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ab.prototype,"data",void 0);_.Q([_.H("data.button.buttonRenderer.command"),_.y("design:type",Object),_.y("design:paramtypes",[])],ab.prototype,"onTapCommand",null);_.Q([_.u({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],ab);
_.D(ab,"ytd-comment-pause-composer-renderer",function(){if(da7!==void 0)return da7;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return da7=W},{mode:1});var pwu;var ASR;var Rb=function(){var W=_.S.apply(this,arguments)||this;W.isOpen=!1;return W};
_.C(Rb,_.S);_.p=Rb.prototype;_.p.dataChanged=function(){this.isOpen=!1};
_.p.onTap=function(){this.data&&(this.data.navigationEndpoint?_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.p.focus=function(){this.JSC$15846_commentbox.focus()};
_.p.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.p.openDialog=function(){this.isOpen=!0;this.JSC$15846_commentbox.focus();this.JSC$15846_commentbox.maybeHeightChanged()};
Rb.prototype.onYtCommentboxDismiss=Rb.prototype.onYtCommentboxDismiss;Rb.prototype.dataChanged=Rb.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Rb.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Rb.prototype,"isOpen",void 0);_.Q([_.Hf("#commentbox"),_.y("design:type",Object)],Rb.prototype,"JSC$15846_commentbox",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Rb.prototype,"dataChanged",null);_.Q([_.IN("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Rb.prototype,"onYtCommentboxDismiss",null);_.Q([_.u({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],Rb);
_.D(Rb,"ytd-comment-reply-dialog-renderer",function(){if(ASR!==void 0)return ASR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ASR=W},{mode:1});var ibR;var WZ=function(){return _.S.apply(this,arguments)||this};
_.C(WZ,_.S);_.G5.Object.defineProperties(WZ.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var W,B,z=(W=this.data)==null?void 0:(B=W.icon)==null?void 0:B.iconType;return z?"yt-icons:"+z.toLowerCase():null}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],WZ.prototype,"data",void 0);_.Q([_.F(),_.H("data.icon"),_.y("design:type",Object),_.y("design:paramtypes",[])],WZ.prototype,"icon",null);_.Q([_.u({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],WZ);
_.D(WZ,"ytd-pinned-comment-badge-renderer",function(){if(ibR!==void 0)return ibR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ibR=W},{mode:1});var ECR;var T69={},vC4={input:!0,meta:!0,br:!0,link:!0,img:!0},BZ=null;T69.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(){BZ==null&&(BZ=document.createElement("tp-yt-paper-tooltip"),BZ.offset=8,BZ.fitToVisibleBounds=!0)},
onMouseOver_:function(W){if(W=_.n3(W.target,function(Y){return Y==this||Y.getAttribute&&Y.getAttribute("shared-tooltip-text")}.bind(this),!0)){var B=W.getAttribute("shared-tooltip-text");
if(B){var z=this,G=null;W!=this&&(W.tagName.toLowerCase()in vC4?z=W.parentElement:z=W,W.id&&(G=W.id));this.polymerController.createTooltipIfRequired_();if(BZ.parentElement!=z||BZ.for!=G)(0,_.r5)(BZ).textContent=B,_.tH(z).appendChild(BZ),BZ.for=G,BZ.animationDelay=this.polymerController.sharedTooltipAnimationDelay,BZ.position=this.polymerController.sharedTooltipPosition}}}};var zY=function(){return _.S.apply(this,arguments)||this};
_.C(zY,_.S);zY.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]]"}}}}}};
zY.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var W;((W=this.data)==null?0:W.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
zY.prototype.colorChanged=function(){var W,B,z,G=(W=this.data)==null?void 0:(B=W.color)==null?void 0:(z=B.basicColorPaletteData)==null?void 0:z.foregroundBodyColor;G&&(this.rgbBadgeColor=_.M_(G));_.tH(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
zY.prototype.tooltipChanged=function(){var W;((W=this.data)==null?0:W.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
zY.prototype.tooltipChanged=zY.prototype.tooltipChanged;zY.prototype.colorChanged=zY.prototype.colorChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(T69.YtSharedTooltipBehavior),_.y("design:type",Object)],zY.prototype,"ytSharedTooltipBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],zY.prototype,"data",void 0);
_.Q([_.F({value:"#4285F4"}),_.y("design:type",String)],zY.prototype,"rgbBadgeColor",void 0);_.Q([_.oN("data.color"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zY.prototype,"colorChanged",null);_.Q([_.oN("data.tooltip"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zY.prototype,"tooltipChanged",null);_.Q([_.u({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],zY);
_.D(zY,"ytd-sponsor-comment-badge-renderer",function(){if(ECR!==void 0)return ECR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ECR=W},{mode:1});var cSM;var ww4;var GY=function(){return _.S.apply(this,arguments)||this};
_.C(GY,_.S);GY.prototype.computeState=function(W){switch(W==null?void 0:W.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"}};
GY.prototype.updateStateIdentifier=function(W){if(this.viewModel.triStateKey){var B=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.ue("triStateButtonStateEntityPayload",B,{key:B,stateIdentifier:W}))}};
GY.prototype.onClick=function(){var W=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(){W.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){W.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.G5.Object.defineProperties(GY.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 W;return((W=this.data)==null?void 0:W.buttonText)||""}}});
_.Q([_.F(),_.y("design:type",Object)],GY.prototype,"viewModel",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],GY.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],GY.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.Q([_.F({selector:TFk,selectorArgs:["viewModel.triStateKey"]}),_.y("design:type",Object)],GY.prototype,"triStateButtonStateEntity",void 0);
_.Q([_.F({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.y("design:type",String)],GY.prototype,"state",void 0);_.Q([_.H("viewModel","state"),_.y("design:type",Object),_.y("design:paramtypes",[])],GY.prototype,"data",null);_.Q([_.H("data"),_.y("design:type",String),_.y("design:paramtypes",[])],GY.prototype,"buttonText",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],GY);
_.D(GY,"ytd-tri-state-button-view-model",function(){if(ww4!==void 0)return ww4;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ww4=W},{mode:1});var VU4;var JSU;var Y4=function(){var W=_.S.apply(this,arguments)||this;W.defaultIconToFilled=!_.r("kevlar_fill_comment_chip_icon_killswitch");return W};
_.C(Y4,_.S);Y4.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Y4.prototype.dataChanged=function(){if(this.data){var W,B;((W=this.data.chipColorPalette)==null?0:W.backgroundColor)&&((B=this.data.chipColorPalette)==null?0:B.foregroundTitleColor)&&_.kw(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.aE(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.aE(this.data.chipColorPalette.foregroundTitleColor)});var z;((z=this.data)==null?0:z.command)?(_.kw(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.kw(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}};
Y4.prototype.onTap=function(){var W;if(this.data&&(W=this.data)!=null&&W.command){var B;this.ytComponentBehavior.resolveCommand((B=this.data)==null?void 0:B.command)}};
Y4.prototype.getIconSize=function(){return _.r("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Y4.prototype.onTap=Y4.prototype.onTap;Y4.prototype.dataChanged=Y4.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Y4.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.DM),_.y("design:type",Object)],Y4.prototype,"ironA11yKeysBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Y4.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],Y4.prototype,"basePriceText",void 0);_.Q([_.F(),_.y("design:type",Object)],Y4.prototype,"chipIcon",void 0);_.Q([_.F(),_.y("design:type",Object)],Y4.prototype,"defaultIconToFilled",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Y4.prototype,"dataChanged",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Y4.prototype,"onTap",null);
_.Q([_.NJ({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Y4);
_.D(Y4,"yt-pdg-comment-chip-renderer",function(){if(JSU===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;VU4===void 0&&(VU4=document.createElement("template"));var G=VU4;z.call(B,G.content.cloneNode(!0),W.content.firstChild);JSU=W}W=JSU;return W},{mode:2});var d$=function(){var W=_.S.apply(this,arguments)||this;W.useSmallAvatars=_.r("small_avatars_for_comments");W.webWatchCompactComments=_.r("web_watch_compact_comments");W.editDialog=null;return W};
_.C(d$,_.S);_.p=d$.prototype;_.p.onShow=function(){_.xq("cmv",void 0,"wn_comments")};
_.p.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"}}}};
_.p.detached=function(){this.editDialog=null;this.expander.reset()};
_.p.updateBackgroundColor=function(){if(this.backgroundColor){var W={"--ytd-comment-paid-background-color":_.aE(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.kw(this.hostElement,W)}else _.kw(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.p.resetExpander=function(){var W;(W=this.expander)==null||W.reset()};
_.p.openEditDialog=function(W){W.dialog&&(this.editDialog=W.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.p.onYtNavigate=function(W){var B=W.detail.endpoint;if(B=_.k(B,_.kaM)||_.k(B,_.lLH))W.stopPropagation(),this.openEditDialog(B)};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null;_.kw(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.p.onAuthorThumbnailClicked=function(){_.r("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.p.onYtCommentboxResize=function(W){var B;(W==null?0:(B=W.detail)==null?0:B.height)&&_.kw(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":W.detail.height+"px"})};
_.G5.Object.defineProperties(d$.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 W,B=(W=this.commentEntity)==null?void 0:W.author;return B&&(B.isCreator||B.isVerified||B.isArtist)?{renderer:{authorEndpoint:B.channelPageEndpoint?_.k(B.channelPageEndpoint,_.NH):_.k(B.channelCommand,_.NH),authorText:{runs:[{text:B.displayName}]},color:B.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:B.isArtist?{iconType:"AUDIO_BADGE"}:
B.isVerified?{iconType:B.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:B.isArtist||B.isVerified?B.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var W,B=(W=this.commentEntity)==null?void 0:W.author;return B!=null&&B.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:B.sponsorBadgeUrl}]},tooltip:B.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return _.k((W=this.commentSurfaceEntity)==null?void 0:W.pdgCommentChip,_.aL4)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var W;return this.voiceReplyContainerViewModel&&((W=this.voiceReplyContainerViewModel)==null?void 0:W.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return _.k((W=this.commentSurfaceEntity)==null?void 0:W.voiceReplyContainerViewModel,prR)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var W;return this.voiceReplyContainerViewModel&&(W=this.voiceReplyContainerViewModel)!=null&&W.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var W,B;return(B=(W=this.commentSurfaceEntity)==null?void 0:W.commentBackgroundColor)!=null?B:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.r("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var W,B;return(((W=this.commentEntity)==null?void 0:(B=W.properties)==null?void 0:B.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var W,B;if(_.r("enable_profile_cards_on_comments")&&((W=this.commentEntity)==null?0:(B=W.author)==null?0:B.profileCardEndpoint)&&this.viewModel.allowProfileCard){var z,G;return _.k((z=this.commentEntity)==null?void 0:(G=z.author)==null?void 0:G.profileCardEndpoint,_.NH)}var Y,d;return _.k((Y=this.commentEntity)==null?void 0:(d=Y.avatar)==null?void 0:d.endpoint,_.NH)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var W,B;if(_.r("enable_profile_cards_on_comments")&&((W=this.commentEntity)==null?0:(B=W.author)==null?0:B.channelPageEndpoint)){var z,G;return _.k((z=this.commentEntity)==null?void 0:(G=z.author)==null?void 0:G.channelPageEndpoint,_.NH)}var Y,d;return _.k((Y=this.commentEntity)==null?void 0:(d=Y.avatar)==null?void 0:d.endpoint,_.NH)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G,Y=(W=this.commentEntity)==null?void 0:(B=W.avatar)==null?void 0:(z=B.image)==null?void 0:(G=z.sources)==null?void 0:G[0];return Y?{thumbnails:[{url:Y.url,width:Y.width,height:Y.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.commentEntity)==null?0:(B=W.author)==null?0:B.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.commentEntity)==null?void 0:(B=W.author)==null?void 0:B.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.commentEntity)==null?void 0:(B=W.properties)==null?void 0:B.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var W;return _.k((W=this.commentSurfaceEntity)==null?void 0:W.publishedTimeCommand,_.NH)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var W,B;if(((W=this.commentEntity)==null?0:W.translatedContent)&&((B=this.translateButtonState)==null?void 0:B.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var z;if((z=this.voiceReplyContainerViewModel)==null?0:z.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var G,Y;return((G=this.commentEntity)==null?void 0:(Y=G.properties)==null?void 0:Y.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.commentSharedEntity)==null?void 0:(B=W.strings)==null?void 0:B.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.commentSharedEntity)==null?void 0:(B=W.strings)==null?void 0:B.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.commentEntity)==null||!W.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var W,B,z=(B=_.k((W=this.viewModel)==null?void 0:W.translateButton,deR))!=null?B:{},G,Y,d,E,v,c,J,g,t,P,Z;return Object.assign({},z,{untoggledStateData:Object.assign({},z.untoggledStateData,{buttonText:(G=this.commentEntity)==null?void 0:(Y=G.translateData)==null?void 0:Y.text}),togglingStateData:Object.assign({},z.togglingStateData,{buttonText:(d=this.commentSharedEntity)==null?
void 0:(E=d.strings)==null?void 0:E.translatingText}),toggledStateData:Object.assign({},z.toggledStateData,{buttonText:(v=this.commentSharedEntity)==null?void 0:(c=v.strings)==null?void 0:c.seeOriginalText}),transitionCommand:((J=this.commentEntity)==null?0:J.translatedContent)?void 0:_.k((g=this.commentEntity)==null?void 0:(t=g.translateData)==null?void 0:t.translateComment,_.NH),triStateKey:(P=this.commentEntity)==null?void 0:(Z=P.properties)==null?void 0:Z.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return((B=_.k(_.k((W=this.toolbarSurface)==null?void 0:W.menuCommand,_.NH),CJM))==null?void 0:(z=B.menu)==null?void 0:z.menuRenderer)||null}}});
d$.prototype.onYtCommentboxResize=d$.prototype.onYtCommentboxResize;d$.prototype.onYtCommentboxDismiss=d$.prototype.onYtCommentboxDismiss;d$.prototype.onYtNavigate=d$.prototype.onYtNavigate;d$.prototype.resetExpander=d$.prototype.resetExpander;d$.prototype.updateBackgroundColor=d$.prototype.updateBackgroundColor;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],d$.prototype,"ytdReduxBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],d$.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.Hf("#author-thumbnail > button"),_.y("design:type",HTMLElement)],d$.prototype,"authorThumbnailAnchor",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("viewModel"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d$.prototype,"linked",null);
_.Q([_.H("viewModel","linked"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"linkedCommentBadge",null);_.Q([_.F({reflectToAttribute:!0}),_.H("viewModel"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d$.prototype,"pinned",null);_.Q([_.H("viewModel","pinned"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"pinnedCommentBadge",null);
_.Q([_.H("commentEntity","commentSharedEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"authorCommentBadge",null);_.Q([_.F({reflectToAttribute:!0}),_.H("authorCommentBadge"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"hasAuthorBadge",null);_.Q([_.H("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"sponsorCommentBadge",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("sponsorCommentBadge"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"hasSponsorBadge",null);_.Q([_.H("commentSurfaceEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"pdgCommentChipRenderer",null);_.Q([_.F({reflectToAttribute:!0}),_.H("voiceReplyContainerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"hasVoiceReply",null);
_.Q([_.H("commentSurfaceEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"voiceReplyContainerViewModel",null);_.Q([_.H("voiceReplyContainerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"voiceReplyUnavailableText",null);_.Q([_.F(),_.y("design:type",Object)],d$.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"viewModel",null);
_.Q([_.F({selector:function(W,B){return _.P3(W.entities,"commentSharedEntityPayload",B)},
selectorArgs:["viewModel.sharedKey"]}),_.y("design:type",Object)],d$.prototype,"commentSharedEntity",void 0);_.Q([_.F({selector:function(W,B){return _.P3(W.entities,"commentEntityPayload",B)},
selectorArgs:["viewModel.commentKey"]}),_.y("design:type",Object)],d$.prototype,"commentEntity",void 0);_.Q([_.F({selector:function(W,B){return _.P3(W.entities,"commentSurfaceEntityPayload",B)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.y("design:type",Object)],d$.prototype,"commentSurfaceEntity",void 0);_.Q([_.F({selector:EfX,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.y("design:type",Object)],d$.prototype,"toolbarSurface",void 0);_.Q([_.F({selector:TFk,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.y("design:type",Object)],d$.prototype,"translateButtonState",void 0);
_.Q([_.H("commentSurfaceEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"backgroundColor",null);_.Q([_.F({reflectToAttribute:!0}),_.H("viewModel"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d$.prototype,"optimalReadingWidthComments",null);_.Q([_.Hf("ytd-expander"),_.y("design:type",Object)],d$.prototype,"expander",void 0);
_.Q([_.oN("backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d$.prototype,"updateBackgroundColor",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],d$.prototype,"useSmallAvatars",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],d$.prototype,"webWatchCompactComments",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"isReply",null);
_.Q([_.H("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"authorThumbnailEndpoint",null);_.Q([_.H("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"authorNameEndpoint",null);_.Q([_.H("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"authorThumbnail",null);_.Q([_.H("commentEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],d$.prototype,"authorTextClass",null);
_.Q([_.H("commentEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],d$.prototype,"authorChannelName",null);_.Q([_.H("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"publishedTime",null);_.Q([_.H("commentSurfaceEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"publishedTimeCommand",null);
_.Q([_.H("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"contentText",null);_.Q([_.oN("contentText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d$.prototype,"resetExpander",null);_.Q([_.H("commentEntity"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d$.prototype,"shouldShowReadMoreInitially",null);
_.Q([_.H("commentSharedEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],d$.prototype,"expandText",null);_.Q([_.H("commentSharedEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],d$.prototype,"collapseText",null);_.Q([_.H("commentEntity"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d$.prototype,"shouldShowTranslateButton",null);
_.Q([_.H("commentEntity","commentSharedEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"translateButton",null);_.Q([_.H("toolbarSurface"),_.y("design:type",Object),_.y("design:paramtypes",[])],d$.prototype,"overflowMenuRenderer",null);_.Q([_.F(),_.y("design:type",Object)],d$.prototype,"editDialog",void 0);_.Q([_.Hf("ytd-comment-dialog-renderer"),_.y("design:type",Object)],d$.prototype,"editCommentDialogContainer",void 0);
_.Q([_.Hf("ytd-comment-reply-dialog-renderer"),_.y("design:type",Object)],d$.prototype,"editReplyDialogContainer",void 0);_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],d$.prototype,"onYtNavigate",null);_.Q([_.IN("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],d$.prototype,"onYtCommentboxDismiss",null);
_.Q([_.IN("yt-commentbox-resize"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],d$.prototype,"onYtCommentboxResize",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-comment-view-model"})],d$);
_.D(d$,"ytd-comment-view-model",function(){if(cSM!==void 0)return cSM;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return cSM=W},{mode:_.PJ("kevlar_poly_si_batch_j025")?1:2});var pD=function(){var W=_.S.apply(this,arguments)||this;W.modern=_.r("web_modern_buttons");W.commentThreadingEnabled=_.r("web_delhi_comment_threads");W.isWatchGrid=_.r("kevlar_watch_grid");W.buttonOverrides=W.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};W.JSC$15892_spinnerEl=null;return W};
_.C(pD,_.S);_.p=pD.prototype;_.p.configureContinuationPathMap=function(){return _.r("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.p.shouldShowExpandedThreads=function(W,B){return this.commentThreadingEnabled&&B&&(W==null?void 0:W.length)>0};
_.p.shouldShowCollapsedThreads=function(W,B){return this.commentThreadingEnabled&&!B&&W};
_.p.computeThreadRenderer=function(W){return _.k(W,akU)};
_.p.computeIsContinuationItem=function(W){return!!this.computeContinuationItemRenderer(W)};
_.p.computeButtonRenderer=function(W){return _.k(W,_.Ep)};
_.p.computeContinuationItemRenderer=function(W){return _.k(W,_.GH)};
_.p.computeShowButton=function(W){var B;return!((B=this.computeContinuationItemRenderer(W))==null||!B.button)};
_.p.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]]"}}}}}};
_.p.attached=function(){this.isShowRepliesVisible=!0};
_.p.dataChanged=function(){var W=this.expanderContents;W&&(W.hidden=!0);this.isLoading=!1};
_.p.endsInContinuation=function(W){return!!W&&W.length>0&&!!this.computeContinuationItemRenderer(W[W.length-1])};
_.p.computeShouldShowHideRepliesButton=function(W,B){return!W&&B};
_.p.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.p.isLoadingChanged=function(){this.isLoading&&!this.JSC$15892_spinnerEl&&(this.JSC$15892_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.tH(this.expanderContents).appendChild(this.JSC$15892_spinnerEl));this.JSC$15892_spinnerEl&&(this.JSC$15892_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var W;(W=this.contents)==null||W.classList.remove("reloading")}};
_.p.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var W=_.k(this.data.viewReplies,_.Ep);W&&this.ytRendererBehavior.logExplicitClick(W);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.p.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var W=_.k(this.data.hideReplies,_.Ep);W&&this.ytRendererBehavior.logExplicitClick(W);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.p.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var W=_.tH(this.hostElement).querySelector("#expander-contents");W&&(W.hidden=this.isShowRepliesVisible)}};
_.p.computeAlign=function(){if(this.modern){var W;return!((W=this.data)==null?0:W.viewRepliesCreatorThumbnail)}};
_.G5.Object.defineProperties(pD.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var W,B;return this.endsInContinuation((W=this.data)==null?void 0:W.contents)||this.commentThreadingEnabled&&this.endsInContinuation((B=this.data)==null?void 0:B.subThreads)}}});
pD.prototype.isShowMoreChanged=pD.prototype.isShowMoreChanged;pD.prototype.isLoadingChanged=pD.prototype.isLoadingChanged;pD.prototype.triggerFirstContinuation=pD.prototype.triggerFirstContinuation;pD.prototype.dataChanged=pD.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.Pl),_.y("design:type",Object)],pD.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],pD.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],pD.prototype,"modern",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],pD.prototype,"commentThreadingEnabled",void 0);_.Q([_.F(),_.y("design:type",Boolean)],pD.prototype,"expanded",void 0);
_.Q([_.F(),_.y("design:type",Function)],pD.prototype,"toggleExpanded",void 0);_.Q([_.F(),_.y("design:type",Array)],pD.prototype,"teasers",void 0);_.Q([_.F(),_.y("design:type",Boolean)],pD.prototype,"isLoading",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],pD.prototype,"isShowRepliesVisible",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],pD.prototype,"useNewFormatting",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],pD.prototype,"isWatchGrid",void 0);
_.Q([_.F(),_.y("design:type",Object)],pD.prototype,"buttonOverrides",void 0);_.Q([_.Hf("#expander-contents"),_.y("design:type",HTMLElement)],pD.prototype,"expanderContents",void 0);_.Q([_.Hf("ytd-continuation-item-renderer"),_.y("design:type",Object)],pD.prototype,"continuationItemRenderer",void 0);_.Q([_.Hf("#contents"),_.y("design:type",HTMLElement)],pD.prototype,"contents",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pD.prototype,"dataChanged",null);_.Q([_.H("data.contents","data.subThreads.*"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],pD.prototype,"hasContinuation",null);_.Q([_.IN("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pD.prototype,"triggerFirstContinuation",null);
_.Q([_.oN("isLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pD.prototype,"isLoadingChanged",null);_.Q([_.oN("isShowRepliesVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pD.prototype,"isShowMoreChanged",null);_.Q([_.u({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],pD);
_.D(pD,"ytd-comment-replies-renderer",function(){if(pwu!==void 0)return pwu;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[teasers]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </div>\n    </div>\n  </template>\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n          <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n          </div>\n          <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n        </template>\n        <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return pwu=W},{mode:1});var gCM;var An=function(){var W=_.S.apply(this,arguments)||this;W.isOpen=!1;W.commentDialog=null;W.useSmallAvatars=_.r("small_avatars_for_comments");W.useSmallAvatarsEngagementPanelOnly=_.r("small_avatars_for_comments_ep");W.placeholderFocusListener=null;W.hasOpenedDialog=!1;W.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return W};
_.C(An,_.S);_.p=An.prototype;_.p.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]]"}}}}}};
_.p.ready=function(){var W=this,B=_.tH(this.hostElement).querySelector("#placeholder-area"),z=_.tH(this.hostElement).querySelector("#simplebox-placeholder"),G=function(Y){Y.stopPropagation();Y instanceof KeyboardEvent&&Y.type==="keypress"&&Y.keyCode!==13&&Y.keyCode!==32||W.openDialog()};
this.placeholderFocusListener=G;z.addEventListener("focus",this.placeholderFocusListener);B.addEventListener("tap",G);B.addEventListener("keypress",G)};
_.p.maybeRemoveFocusEventListener=function(){var W;(W=this.data)!=null&&W.prepareAccountEndpoint&&!_.r("web_comments_simplebox_modal_focus_on_tap_ks")&&(W=_.tH(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(W.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.p.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.p.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.r("web_comment_simplebox_resolve_polymer_command_ks")?_.IB.instance.resolveCommand(this.data.prepareAccountEndpoint):_.oB(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);W&&this.ytdOpenPopupBehavior.openPopup(W);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.tH(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.p.onYtCommentboxDismiss=function(W){W.stopPropagation();this.isOpen=!1};
_.p.onCreateCommentAction=function(W){this.get("createCommentAction.contents",W)&&(this.isOpen=!1)};
_.p.computeCommentDialog=function(W){return{placeholderText:W.placeholderText,authorThumbnail:W.authorThumbnail,submitButton:W.submitButton,imageButton:W.imageButton,cancelButton:W.cancelButton,emojiButton:W.emojiButton,emojis:W.emojis,emojiPicker:W.emojiPicker,aadcGuidelinesStateEntityKey:W.aadcGuidelinesStateEntityKey,openAadcDialog:W.openAadcDialog,unicodeEmojisUrl:W.unicodeEmojisUrl}};
_.p.onHideIdentityChip=function(W){_.k(W,nXu)&&this.set("data.placeholderText",_.k(W,nXu).placeholderText)};
An.prototype.onYtCommentboxDismiss=An.prototype.onYtCommentboxDismiss;An.prototype.dataChanged=An.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],An.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],An.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],An.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],An.prototype,"isOpen",void 0);_.Q([_.F(),_.y("design:type",Object)],An.prototype,"commentDialog",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],An.prototype,"engagementPanel",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],An.prototype,"useSmallAvatars",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],An.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],An.prototype,"enableCreationBox",void 0);_.Q([_.F(),_.y("design:type",Boolean)],An.prototype,"showCreateDialog",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],An.prototype,"dataChanged",null);_.Q([_.IN("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],An.prototype,"onYtCommentboxDismiss",null);_.Q([_.u({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],An);
_.D(An,"ytd-comment-simplebox-renderer",function(){if(gCM!==void 0)return gCM;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return gCM=W},{mode:1});var tUH;_.eX("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var iS=function(){var W=_.S.apply(this,arguments)||this;W.addHoverEffect=_.r("swatcheroo_comments_hover_effect");W.useSmallAvatars=_.r("small_avatars_for_comments");W.threadHovered=!1;W.expanded=!1;W.removed=!1;W.teasers=[];W.actionMap=W.configureActionMap();W.toggleExpanded=function(){W.expanded=!W.expanded;!W.expanded&&_.r("web_comment_threading_scroll_on_collapse")&&_.c0(W.hostElement,"yt-scroll-to-watch-element",[W.commentElement])};
return W};
_.C(iS,_.S);_.p=iS.prototype;_.p.configureActionMap=function(){return _.r("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.p.createCommentReplyAction=function(W){W=_.k(W,yGu);if(W!=null&&W.contents){var B=W.replyToCommentId,z=W.parentCommentId,G,Y=(G=this.commentViewModel)==null?void 0:G.commentId;(Y===B||Y===z&&!B)&&this.attachReply(W.contents)}};
_.p.attachReply=function(W){var B;((B=this.data)==null?0:B.replies)?(B=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+B+".continuationItemRenderer")?B===0?this.push("teasers",W):this.splice("data.replies.commentRepliesRenderer.subThreads",B,0,W):this.push("data.replies.commentRepliesRenderer.subThreads",W)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[W]}}),this.toggleExpanded())};
_.p.onAppendContinuationItemsActionFinished=function(){this.teasers.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.u7(this.teasers))),this.set("teasers",[]))};
_.p.removeCommentAction=function(W){W=_.k(W,LaR);var B=W==null?void 0:W.commentId,z;B&&((z=this.commentViewModel)==null?void 0:z.commentId)===B&&this.maybeRemoveComment(W.actionResult)};
_.p.banAuthorAction=function(W){W=_.k(W,DI9);var B=W==null?void 0:W.commentId,z;B&&((z=this.commentViewModel)==null?void 0:z.commentId)===B&&this.maybeRemoveComment(W.actionResult)};
_.p.hideReportedCommentAction=function(W){W=_.k(W,Tdd);var B=W==null?void 0:W.commentId,z;B&&((z=this.commentViewModel)==null?void 0:z.commentId)===B&&this.maybeRemoveComment(W.actionResult)};
_.p.maybeRemoveComment=function(W){W&&W.status==="STATUS_SUCCEEDED"&&(this.feedbackText=W.feedbackText||_.Aq("Reply removed"),this.removed=!0)};
_.p.onTap=function(W){if(this.addHoverEffect&&!this.engagementPanel&&!_.p2(_.AH(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var B;((B=window.getSelection())==null?0:B.toString().length)||_.oB({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.p.attached=function(){var W=this;this.isSubThread&&(this.expanded=!0);var B;(B=this.commentThreadHitbox)==null||B.addEventListener("mouseover",function(){W.threadHovered=!0});
var z;(z=this.commentThreadHitbox)==null||z.addEventListener("mouseout",function(){W.threadHovered=!1});
var G;(G=this.commentThreadHitbox)==null||G.addEventListener("click",function(){W.toggleExpanded()})};
_.G5.Object.defineProperties(iS.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.commentViewModel)return _.k(this.data.commentViewModel,Y5Q)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return _.r("web_delhi_comment_threads")&&!!((W=this.data)==null?0:(B=W.replies)==null?0:(z=B.commentRepliesRenderer)==null?0:z.subThreads)}}});
iS.prototype.onTap=iS.prototype.onTap;iS.prototype.onAppendContinuationItemsActionFinished=iS.prototype.onAppendContinuationItemsActionFinished;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],iS.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],iS.prototype,"addHoverEffect",void 0);_.Q([_.F(),_.y("design:type",Object)],iS.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],iS.prototype,"useSmallAvatars",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],iS.prototype,"isSubThread",void 0);_.Q([_.Hf(".thread-hitbox"),_.y("design:type",HTMLElement)],iS.prototype,"commentThreadHitbox",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],iS.prototype,"threadHovered",void 0);_.Q([_.Hf("#comment"),_.y("design:type",HTMLElement)],iS.prototype,"commentElement",void 0);_.Q([_.F(),_.y("design:type",Object)],iS.prototype,"expanded",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],iS.prototype,"removed",void 0);_.Q([_.F(),_.y("design:type",Object)],iS.prototype,"feedbackText",void 0);_.Q([_.F(),_.y("design:type",Array)],iS.prototype,"teasers",void 0);
_.Q([_.IN("yt-append-continuation-items-action-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iS.prototype,"onAppendContinuationItemsActionFinished",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],iS.prototype,"commentViewModel",null);_.Q([_.H("data.replies"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iS.prototype,"hasSubThreading",null);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],iS.prototype,"engagementPanel",void 0);_.Q([_.IN("tap"),_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],iS.prototype,"onTap",null);_.Q([_.u({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],iS);
_.D(iS,"ytd-comment-thread-renderer",function(){if(tUH!==void 0)return tUH;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer data="[[data.replies.commentRepliesRenderer]]" expanded="[[expanded]]" teasers="[[teasers]]" toggle-expanded="[[toggleExpanded]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tUH=W},{mode:_.PJ("kevlar_poly_si_batch_j025")?1:2});var sMM;var Ee=function(){var W=_.S.apply(this,arguments)||this;W.modernTypography=_.r("web_modern_typography");W.compactHeader=_.r("web_watch_compact_comments_header");W.hidePanelButton=!1;W.isPostSchedulingEnabled=_.r("enable_post_scheduling");W.hasFinishedStamping=!1;W.JSC$15915_handleOpenPostCommentDialogActionAfterStamp=!1;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.C(Ee,_.S);_.p=Ee.prototype;
_.p.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"}}}};
_.p.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.p.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15915_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.p.onYtServiceRequestSent=function(W,B){if(!_.r("kevlar_command_handler")&&B.actions)for(W=0;W<B.actions.length;W++){var z=B.actions[W];_.k(z,JGR)&&_.tH(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.k(z,JGR))}};
_.p.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var W;if(this.getPrefilledBackstagePostDialog((W=this.data)==null?void 0:W.actions)){_.tH(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var B=_.tH(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;B&&_.BM(this,function(){B.focus();B.openDialog&&B.openDialog()})}}else this.hasActionsChange=!0};
_.p.computeIsBackstage=function(W){return W};
_.p.onYtCommentboxDismiss=function(){_.tH(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.p.removePrefilledDialog=function(W){if(W==null?0:W.actions){for(var B=W.actions.length-1;B>=0;B--){var z=void 0;((z=_.k(W.actions[B],Z6d))==null?0:z.dialog)&&delete W.actions[B]}this.set("data",void 0);this.set("data",W)}};
_.p.getPrefilledBackstagePostDialog=function(W){if(W)for(var B=0;B<W.length;B++){var z=W[B],G=void 0;if((G=_.k(z,Z6d))==null?0:G.dialog)return _.k(z,Z6d).dialog}return null};
_.p.computeBackstagePostDialog=function(W){return W&&(this.getPrefilledBackstagePostDialog(W.actions)||W.createRenderer)};
_.p.dataChanged=function(){if(this.data){var W=this.data.customEmojis,B=this.data.unicodeEmojisUrl;_.gN.clear();B&&_.wI9(_.gN,B);W&&_.gN.load(W)}};
_.p.handleSignalActionOpenPostCommentDialogAction=function(){var W=_.tH(this.hostElement).querySelector("ytd-comment-simplebox-renderer");W?W.openDialog():this.JSC$15915_handleOpenPostCommentDialogActionAfterStamp=!0};
_.p.onPostHeaderTap=function(){var W;((W=this.data)==null?0:W.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.G5.Object.defineProperties(Ee.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.r("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G,Y,d,E;return!this.hidePanelButton&&_.r("kevlar_watch_comments_panel_button")&&((E=_.k((W=this.data)==null?void 0:(B=W.sortMenu)==null?void 0:(z=B.sortFilterSubMenuRenderer)==null?void 0:(G=z.subMenuItems)==null?void 0:(Y=G[0])==null?void 0:(d=Y.serviceEndpoint)==null?void 0:d.commandMetadata,_.Z4))==null?void 0:E.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.kq("MINIPLAYER_EXPAND_LABEL"),text:_.Bg(_.kq("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Ee.prototype.dataChanged=Ee.prototype.dataChanged;Ee.prototype.onYtCommentboxDismiss=Ee.prototype.onYtCommentboxDismiss;Ee.prototype.observePrefilledBackstagePostDialog=Ee.prototype.observePrefilledBackstagePostDialog;Ee.prototype.onYtServiceRequestSent=Ee.prototype.onYtServiceRequestSent;Ee.prototype.onStampFinished=Ee.prototype.onStampFinished;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Ee.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Ee.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ee.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ee.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ee.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ee.prototype,"modernTypography",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ee.prototype,"compactHeader",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ee.prototype,"engagementPanel",void 0);_.Q([_.F(),_.y("design:type",Object)],Ee.prototype,"hidePanelButton",void 0);_.Q([_.F({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Ee.prototype,"isBackstage",void 0);
_.Q([_.F({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.y("design:type",Object)],Ee.prototype,"backstagePostDialog",void 0);_.Q([_.F(),_.y("design:type",Object)],Ee.prototype,"isPostSchedulingEnabled",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data","showCommentsPanelButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ee.prototype,"useSpaceBetween",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data","hidePanelButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ee.prototype,"showCommentsPanelButton",null);_.Q([_.H("data","showCommentsPanelButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ee.prototype,"commentsPanelButtonData",null);_.Q([_.IN("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ee.prototype,"onStampFinished",null);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],Ee.prototype,"onYtServiceRequestSent",null);_.Q([_.oN("data.actions"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ee.prototype,"observePrefilledBackstagePostDialog",null);
_.Q([_.IN("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Ee.prototype,"onYtCommentboxDismiss",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ee.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Ee);
_.D(Ee,"ytd-comments-header-renderer",function(){if(sMM!==void 0)return sMM;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return sMM=W},{mode:1});var PGR;var TY=function(){return _.S.apply(this,arguments)||this};
_.C(TY,_.S);_.Q([_.F(),_.y("design:type",Object)],TY.prototype,"data",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.Q([_.u({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],TY);
_.D(TY,"ytd-destination-button-renderer",function(){if(PGR!==void 0)return PGR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return PGR=W},{mode:1});var ZbH;var vZ=function(){var W=_.S.apply(this,arguments)||this;W.isRichGrid=!1;W.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};W.modernTypography=_.r("web_modern_typography");return W};
_.C(vZ,_.S);_.p=vZ.prototype;_.p.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.p.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.p.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.p.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var W;if((W=this.data)==null||!W.isExpanded){W=this.hostElement.clientWidth;var B;if(W&&(B=this.data)!=null&&B.destinationButtons){B=Math.floor((W+4)/214);W=this.data.destinationButtons.length;var z=Math.ceil(W/B);this.fullyVisibleRows=W%B===1&&z===2?1:Math.min(z,2);this.isShowMoreVisible=this.fullyVisibleRows<z}}}};
_.p.updateRichGridDestinationButtonsVisibility=function(){var W,B;if(this.isRichGrid&&((W=this.data)==null||!W.isExpanded)&&(B=this.data)!=null&&B.destinationButtons){W=this.richGridItemsPerRow+1;B=this.data.destinationButtons.length;var z=Math.ceil(B/W);this.fullyVisibleRows=B%W===1&&z===2?1:Math.min(z,2);this.isShowMoreVisible=this.fullyVisibleRows<z}};
_.p.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
vZ.prototype.updateRichGridDestinationButtonsVisibility=vZ.prototype.updateRichGridDestinationButtonsVisibility;_.Q([_.F(),_.y("design:type",Object)],vZ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Number)],vZ.prototype,"fullyVisibleRows",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],vZ.prototype,"isShowMoreVisible",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],vZ.prototype,"isRichGrid",void 0);
_.Q([_.F({selector:_.m8,value:0}),_.y("design:type",Number)],vZ.prototype,"richGridItemsPerRow",void 0);_.Q([_.F(),_.y("design:type",Object)],vZ.prototype,"gridStateActionMap",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],vZ.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],vZ.prototype,"ytdReduxBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],vZ.prototype,"modernTypography",void 0);_.Q([_.oN("data","richGridItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vZ.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.Q([_.u({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],vZ);
_.D(vZ,"ytd-destination-shelf-renderer",function(){if(ZbH!==void 0)return ZbH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ZbH=W},{mode:1});var rSH;var cZ=function(){return _.S.apply(this,arguments)||this};
_.C(cZ,_.S);cZ.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"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],cZ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],cZ.prototype,"data",void 0);_.Q([_.u({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],cZ);
_.D(cZ,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(rSH!==void 0)return rSH;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return rSH=W},{mode:1});var kb7;var w$=function(){var W=_.S.apply(this,arguments)||this;W.disableAnimation=!1;W.isSlimlineSurvey=!1;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;return W};
_.C(w$,_.S);w$.prototype.onTap=function(W){W.preventDefault();this.data&&_.v0(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.G5.Object.defineProperties(w$.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 W,B,z,G,Y;return((W=this.data)==null?0:W.checked)?(B=this.data)==null?void 0:(z=B.onStateIcon)==null?void 0:z.iconType:(G=this.data)==null?void 0:(Y=G.defaultStateIcon)==null?void 0:Y.iconType}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],w$.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],w$.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],w$.prototype,"disableAnimation",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],w$.prototype,"isSlimlineSurvey",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],w$.prototype,"isSlimlineSurveyFollowUp",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],w$.prototype,"isShortsStyle",void 0);_.Q([_.H("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],w$.prototype,"isAnimatedIcon",null);
_.Q([_.H("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.y("design:type",Number),_.y("design:paramtypes",[])],w$.prototype,"iconSize",null);_.Q([_.H("isShortsStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],w$.prototype,"isDarkTheme",null);_.Q([_.H("data.checked"),_.y("design:type",Object),_.y("design:paramtypes",[])],w$.prototype,"icon",null);_.Q([_.u({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],w$);
_.D(w$,"ytd-rating-survey-option-renderer",function(){if(kb7!==void 0)return kb7;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return kb7=W},{mode:2});var lZM;var Vu=function(){var W=_.S.apply(this,arguments)||this;W.firstResponseText=null;W.lastResponseText=null;W.selectedNonStarOption=null;W.hideOptions=!1;W.hideUndoButton=!0;W.disableAnimation=!1;W.showResponseRangeText=!1;W.selectedRatingIndex=-1;W.isSlimlineSurvey=!1;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;W.slimlineSurveyRatingSelectedIndex=-1;return W};
_.C(Vu,_.S);_.p=Vu.prototype;_.p.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.p.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.p.onOptionChange=function(W,B){var z=this;W=B.onStateIcon&&B.defaultStateIcon&&B.onStateIcon.iconType===B.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(E,v){E.responseText===B.responseText?z.isSlimlineSurvey?(z.selectedRatingIndex=v,z.ytdReduxBehavior.dispatch(VMR(v))):(z.setSurveyOptionValue(v,!0,"checked"),z.setSurveyOptionValue(v,!0,"selected")):(z.setSurveyOptionValue(v,!1,"checked"),z.setSurveyOptionValue(v,
!1,"selected"))});
else if(W)this.selectedNonStarOption=B,this.hideOptions=!0;else{var G=this.ytRendererBehavior.getSimpleString(B.responseText),Y=!0;this.getOptionRenderers().forEach(function(E,v){z.setSurveyOptionValue(v,Y,"checked");z.setSurveyOptionValue(v,!1,"selected");z.ytRendererBehavior.getSimpleString(E.responseText)===G&&(Y=!1,z.setSurveyOptionValue(v,!0,"selected"))})}W=B.responseEndpoint;
var d;B.followUpCommand&&(d=_.k(B.followUpCommand,Zw6));this.isSlimlineSurvey?(this.resetComponent(),_.c0(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.c0(this.hostElement,"ytd-inline-survey-rating-select-action",[W,d])};
_.p.showSelectedOption=function(){var W=this;_.fg.addJob(function(){var B=W.getOptionRenderers()[W.slimlineSurveyRatingSelectedIndex];W.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),B)},8,100)};
_.p.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(W){var B;return(B=_.k(W,kuR))!=null?B:{}}):[]};
_.p.onUndoClick=function(){this.resetComponent();_.c0(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.p.setSurveyOptionValue=function(W,B,z){this.notifyPath("data.ratings."+W+".ratingSurveyOptionRenderer."+z);this.set("data.ratings."+W+".ratingSurveyOptionRenderer."+z,B)};
_.p.resetComponent=function(){var W=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var B=this.getOptionRenderers(),z,G;this.firstResponseText=(G=(z=B[0])==null?void 0:z.responseText)!=null?G:null;var Y,d;this.lastResponseText=(d=(Y=B[B.length-1])==null?void 0:Y.responseText)!=null?d:null;B.forEach(function(E,v){W.setSurveyOptionValue(v,!1,"checked");W.setSurveyOptionValue(v,!1,"selected")})};
_.G5.Object.defineProperties(Vu.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Vu.prototype.onOptionChange=Vu.prototype.onOptionChange;Vu.prototype.dataChanged=Vu.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Vu.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Vu.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Vu.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],Vu.prototype,"firstResponseText",void 0);_.Q([_.F(),_.y("design:type",Object)],Vu.prototype,"lastResponseText",void 0);_.Q([_.F(),_.y("design:type",Object)],Vu.prototype,"selectedNonStarOption",void 0);_.Q([_.F(),_.y("design:type",Object)],Vu.prototype,"hideOptions",void 0);_.Q([_.F(),_.y("design:type",Object)],Vu.prototype,"hideUndoButton",void 0);_.Q([_.F(),_.y("design:type",Object)],Vu.prototype,"disableAnimation",void 0);
_.Q([_.F(),_.y("design:type",Object)],Vu.prototype,"showResponseRangeText",void 0);_.Q([_.F(),_.y("design:type",Object)],Vu.prototype,"selectedRatingIndex",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Vu.prototype,"isSlimlineSurvey",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Vu.prototype,"isSlimlineSurveyFollowUp",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Vu.prototype,"isShortsStyle",void 0);_.Q([_.F({selector:function(W){return W.ui.slimlineSurveyRatingSelectedIndex}}),
_.y("design:type",Object)],Vu.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.Q([_.H("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Vu.prototype,"isSingleSelect",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vu.prototype,"dataChanged",null);
_.Q([_.IN("ytd-rating-survey-option-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Vu.prototype,"onOptionChange",null);_.Q([_.u({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Vu);
_.D(Vu,"ytd-rating-survey-renderer",function(){if(lZM!==void 0)return lZM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return lZM=W},{mode:1});var CG6;var IZ6;var oCM;var LYt=(kl.FIRSTDAYOFWEEK+1)%7,hzd=function(W,B,z,G){var Y="";if(G.selection&&qtT(G.selection))Pk(W,G.selection)&&(Y+=" selected");else if(G.selection&&n5R(G.selection)){var d=G.selection.selectionState||"START_DATE";Pk(W,G.selection.start)&&(Y+=" period-start ",d==="START_DATE"&&(Y+="selected"));Pk(W,G.selection.end)&&(Y+=" period-end ",d==="END_DATE"&&(Y+="selected"));ZK(W,G.selection.start)||ZK(G.selection.end,W)||(Y+=" highlighted")}if(ZK(B,G.start)||ZK(G.end,B))Y+=" disabled";G.circleToday&&
Pk(B,z)&&(Y+=" today");return Y};var Jn=function(){return _.S.apply(this,arguments)||this};
_.C(Jn,_.S);_.p=Jn.prototype;_.p.attached=function(){var W=this;_.BM(this,function(){W.JSC$15949_calendarMain.scrollHeight>0&&(W.calendarConfig.selection?W.scrollToDate(NAt(W.calendarConfig.selection)):W.scrollToDate(W.calendarConfig.end))})};
_.p.updateSelection=function(W){W=Uc0(Object.assign({},this.calendarConfig,{selection:W}),hzd);this.splice.apply(this,["renderData.months",0,W.length].concat(_.u7(W)))};
_.p.scrollToDate=function(W){this.renderData&&(W=MsD(W,this.renderData),W!==void 0&&this.JSC$15949_calendarMain.scrollToIndex(W))};
_.p.scrollToNextMonth=function(){this.JSC$15949_calendarMain.scrollToIndex(this.JSC$15949_calendarMain.firstVisibleIndex+1)};
_.p.scrollToPrevMonth=function(){this.JSC$15949_calendarMain.firstVisibleIndex===0&&this.JSC$15949_calendarMain.scrollTo(0,0);this.JSC$15949_calendarMain.scrollToIndex(this.JSC$15949_calendarMain.firstVisibleIndex-1)};
_.p.handleDayClick=function(W){_.c0(this.hostElement,"ytd-calendar-date-clicked",[W.model.day.date])};
_.p.handleDayMouseDown=function(W){W.preventDefault();_.c0(this.hostElement,"ytd-calendar-date-mousedown",[W.model.day.date])};
_.p.handleDayMouseUp=function(W){_.c0(this.hostElement,"ytd-calendar-date-mouseup",[W.model.day.date])};
_.p.handleDayMouseEnter=function(W){W.preventDefault();_.c0(this.hostElement,"ytd-calendar-date-mouseenter",[W.model.day.date])};
_.p.handleDayMouseLeave=function(W){_.c0(this.hostElement,"ytd-calendar-date-mouseleave",[W.model.day.date])};
_.G5.Object.defineProperties(Jn.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var W=this.calendarConfig,B=hzd;B=B===void 0?hzd:B;for(var z=[],G=0;G<7;G++)z.push(kl.NARROWWEEKDAYS[(G+LYt)%7]);return{months:Uc0(W,B),daysOfWeekLabel:z}}}});
_.Q([_.F(),_.y("design:type",Object)],Jn.prototype,"calendarConfig",void 0);_.Q([_.Hf("#calendar-main"),_.y("design:type",Object)],Jn.prototype,"JSC$15949_calendarMain",void 0);_.Q([_.H("calendarConfig"),_.y("design:type",Object),_.y("design:paramtypes",[])],Jn.prototype,"renderData",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Jn);
_.D(Jn,"ytd-scrollable-calendar",function(){if(oCM!==void 0)return oCM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return oCM=W},{mode:2});var Hb4;var F_R;var g$=function(){var W=_.S.apply(this,arguments)||this;W.hideCharCounter=!1;W.hideLabel=!1;W.noLabelFloat=!1;W.autoValidate=!0;W.invalid=!1;W.disabled=!1;W.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return W};
_.C(g$,_.S);_.p=g$.prototype;_.p.reset=function(W){this.value=W&&this.data?this.data.value=W:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.p.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.p.focusTextInput=function(){this.input.focus()};
_.p.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()};
_.p.valueChanged=function(){var W,B;if(((W=this.data)==null?0:W.value)||((B=this.data)==null?void 0:B.value)==="")this.value=this.data.value;else{var z;((z=this.data)==null?void 0:z.value)!==void 0||this.value||(this.value="")}};
_.p.computeLabel=function(W,B){return B?"":_.zR(W)};
_.p.computeAriaLabel=function(W,B){return B?_.zR(W):""};
_.p.computeErrorMessage=function(W,B,z,G){!W&&B?W=z||this.strings.REQUIRED_LABEL:(W=_.zR(G),W=_.cy(W,"&")?"document"in _.Yt?R8u(W):W4R(W):W);return W};
_.p.computeType=function(W){return W==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.p.onTextValueChanged=function(W){this.value=W.detail.value;var B;(B=this.onValueChanged)==null||B.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.p.handleUpdateTextInputFormFieldRendererCommand=function(W){(W=_.k(W,De6))&&this.data&&this.data.id===W.id&&(W.invalid!==void 0&&(this.invalid=W.invalid),W.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",W.invalidValueErrorMessage))};
_.p.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("value-changed",this.value))};
_.p.updateInvalidFromBinding=function(W){this.invalid=W.detail.value};
_.G5.Object.defineProperties(g$.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var W;return!((W=this.data)==null||!W.isMultiline)}}});
g$.prototype.valueChangedForBinding=g$.prototype.valueChangedForBinding;g$.prototype.valueChanged=g$.prototype.valueChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],g$.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],g$.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],g$.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],g$.prototype,"value",void 0);_.Q([_.F(),_.y("design:type",String)],g$.prototype,"pattern",void 0);_.Q([_.F(),_.y("design:type",String)],g$.prototype,"errorMessage",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],g$.prototype,"componentStyle",void 0);_.Q([_.F(),_.y("design:type",Object)],g$.prototype,"hideCharCounter",void 0);
_.Q([_.F(),_.y("design:type",Object)],g$.prototype,"hideLabel",void 0);_.Q([_.F(),_.y("design:type",Object)],g$.prototype,"noLabelFloat",void 0);_.Q([_.F(),_.y("design:type",Function)],g$.prototype,"onValueChanged",void 0);_.Q([_.F(),_.y("design:type",Boolean)],g$.prototype,"isMultilineOverride",void 0);_.Q([_.F(),_.y("design:type",Object)],g$.prototype,"autoValidate",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],g$.prototype,"invalid",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],g$.prototype,"disabled",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],g$.prototype,"enableOverlayTheme",void 0);_.Q([_.F({value:{REQUIRED_LABEL:_.kq("REQUIRED_LABEL",void 0,"Required")}}),_.y("design:type",Object)],g$.prototype,"strings",void 0);_.Q([_.Hf("#input"),_.y("design:type",Object)],g$.prototype,"input",void 0);
_.Q([_.H("data","isMultilineOverride"),_.y("design:type",Object),_.y("design:paramtypes",[])],g$.prototype,"isMultiline",null);_.Q([_.jJ("data.value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],g$.prototype,"valueChanged",null);_.Q([_.oN("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],g$.prototype,"valueChangedForBinding",null);_.Q([_.NJ({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],g$);
_.D(g$,"yt-text-input-form-field-renderer",function(){if(F_R===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Hb4===void 0&&(Hb4=document.createElement("template"));var G=Hb4;z.call(B,G.content.cloneNode(!0),W.content.firstChild);F_R=W}W=F_R;return W},{mode:2});var tn=function(){var W=_.S.apply(this,arguments)||this;W.data=void 0;W.selectionState="START_DATE";W.isStartDateInvalid=!1;W.isEndDateInvalid=!1;W.autoapply=!1;W.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 W};
_.C(tn,_.S);_.p=tn.prototype;_.p.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"}}}}};
_.p.focus=function(){this.startDateInput.focus()};
_.p.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:rh(this.data.selection.start),end:rh(this.data.selection.end)})};
_.p.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.p.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.qT(this.selectionState)}};
_.p.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.p.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.p.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.p.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var W=this.calendar.calendarConfig,B=W.end;W=Rh8({start:W.start,end:this.endDate||B},this.startDateInput.value||"");this.isStartDateInvalid=!W.isValid;W.isValid&&(W=W.value,this.selection=this.endDate?{start:W,end:this.endDate}:W,this.calendar.scrollToDate(W));this.updateInvalidState()}};
_.p.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var W=this.calendar.calendarConfig,B=W.start;W=Rh8({start:this.startDate||B,end:W.end},this.endDateInput.value||"");this.isEndDateInvalid=!W.isValid;W.isValid&&(W=W.value,this.selection={start:this.startDate,end:W},this.calendar.scrollToDate(W));this.updateInvalidState()}};
_.p.handleCalendarDateClicked=function(W){var B=this.selection&&NAt(this.selection),z=this.selection&&$cx(this.selection);B&&!ZK(W,B)&&this.selectionState==="END_DATE"?(this.selection={start:B,end:W},this.selectionState="START_DATE"):(z&&!ZK(z,W)?this.selection={start:W,end:z}:this.selection=W,this.selectionState="END_DATE")};
_.p.handleCalendarDateMouseDown=function(W){this.selection&&!qtT(this.selection)&&(this.dragPivot=Pk(W,this.selection.start)?this.selection.end:Pk(W,this.selection.end)?this.selection.start:W)};
_.p.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.p.handleCalendarDateMouseEnter=function(W){this.dragPivot&&(this.selection={start:function(B,z){return ZK(B,z)?B:z}(this.dragPivot,W),
end:function(B,z){return ZK(B,z)?z:B}(this.dragPivot,W)},this.dragPivot||(this.selectionState="START_DATE"))};
_.p.handleCalendarDateMouseLeave=function(){};
_.p.handleCalendarSubmitDateRange=function(){this.selection&&!qtT(this.selection)&&_.c0(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.p.updateInvalidState=function(){var W=function(B,z){z?B.setAttribute("invalid",""):B.removeAttribute("invalid")};
W(this.startDateInput,this.isStartDateInvalid);W(this.endDateInput,this.isEndDateInvalid)};
_.p.updateDateStrings=function(){this.selection&&(qtT(this.selection)?y$R(this.selection):(y$R(this.selection.start),y$R(this.selection.end)))};
_.p.updateCalendarSelection=function(W){this.calendar.updateSelection(Object.assign({},W,{selectionState:this.selectionState}))};
_.p.updateIsStartDateInvalidFromBinding=function(W){this.isStartDateInvalid=W.detail.value};
_.p.updateIsEndDateInvalidFromBinding=function(W){this.isEndDateInvalid=W.detail.value};
_.p.updateStartDateStringFromBinding=function(){};
_.p.updateEndDateStringFromBinding=function(){};
_.G5.Object.defineProperties(tn.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:rh(this.data.dateRangeStart),end:rh(this.data.dateRangeEnd),selection:{start:rh(this.data.selection.start),end:rh(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&NAt(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&$cx(this.selection)}}});
tn.prototype.resetTextboxes=tn.prototype.resetTextboxes;tn.prototype.observeSelection=tn.prototype.observeSelection;tn.prototype.dataChanged=tn.prototype.dataChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],tn.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],tn.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.Hf("#calendar"),_.y("design:type",Object)],tn.prototype,"calendar",void 0);
_.Q([_.Hf("#start-date"),_.y("design:type",Object)],tn.prototype,"startDateInput",void 0);_.Q([_.Hf("#end-date"),_.y("design:type",Object)],tn.prototype,"endDateInput",void 0);_.Q([_.F(),_.y("design:type",Object)],tn.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],tn.prototype,"selection",void 0);_.Q([_.F(),_.y("design:type",String)],tn.prototype,"selectionState",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],tn.prototype,"calendarConfig",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],tn.prototype,"errorMessage",null);_.Q([_.H("selection"),_.y("design:type",Object),_.y("design:paramtypes",[])],tn.prototype,"startDate",null);_.Q([_.H("selection"),_.y("design:type",Object),_.y("design:paramtypes",[])],tn.prototype,"endDate",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tn.prototype,"dataChanged",null);
_.Q([_.oN("selection","selectionState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tn.prototype,"observeSelection",null);_.Q([_.oN("selectionState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tn.prototype,"resetTextboxes",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],tn);
_.D(tn,"ytd-date-period-picker-renderer",function(){if(IZ6!==void 0)return IZ6;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return IZ6=W},{mode:1});var se=function(){var W=_.S.apply(this,arguments)||this;var B={};W.actionMap=(B["ytd-date-period-picker-apply"]="handleDateRangeUpdated",B);return W};
_.C(se,_.S);se.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
se.prototype.handleDateRangeUpdated=function(){};
_.Q([_.F(),_.y("design:type",Object)],se.prototype,"data",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],se.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],se.prototype,"rendererstamperBehavior",void 0);_.Q([_.u({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],se);
_.D(se,"ytd-report-history-section-header-renderer",function(){if(CG6!==void 0)return CG6;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return CG6=W},{mode:1});var SaD;var bbQ;var jMH;var PZ=function(){return _.S.apply(this,arguments)||this};
_.C(PZ,_.S);_.G5.Object.defineProperties(PZ.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?0:(B=W.icon)==null?0:B.iconType)?_.lg(this.data.icon.iconType):""}}});
_.Q([_.F(),_.y("design:type",Object)],PZ.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",String),_.y("design:paramtypes",[])],PZ.prototype,"icon",null);_.Q([_.u({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],PZ);
_.D(PZ,"ytd-report-history-table-text-cell-renderer",function(){if(jMH!==void 0)return jMH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return jMH=W},{mode:1});var ZT=function(){return _.S.apply(this,arguments)||this};
_.C(ZT,_.S);ZT.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],ZT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ZT.prototype,"data",void 0);_.Q([_.u({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],ZT);
_.D(ZT,"ytd-report-history-table-reason-cell-renderer",function(){if(bbQ!==void 0)return bbQ;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return bbQ=W},{mode:1});var r$=function(){return _.S.apply(this,arguments)||this};
_.C(r$,_.S);r$.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"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],r$.prototype,"rendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],r$.prototype,"data",void 0);_.Q([_.u({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],r$);
_.D(r$,"ytd-report-history-table-cell-renderer",function(){if(SaD!==void 0)return SaD;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return SaD=W},{mode:1});var fZ6;var k4=function(){var W=_.S.apply(this,arguments)||this;W.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 W};
_.C(k4,_.S);k4.prototype.onDataChanged=function(){var W;if((W=this.data)==null?0:W.style)this.componentStyle=this.getStyleName(this.data.style)};
k4.prototype.getCellForColumn=function(W){return this.cells.find(function(B){var z;return((z=_.k(B==null?void 0:B.cell,Iqd)||_.k(B==null?void 0:B.cell,CNR))==null?void 0:z.columnId)===W.type})};
k4.prototype.getClassForColumn=function(W){switch(W){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
k4.prototype.getStyleName=function(W){switch(W){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.G5.Object.defineProperties(k4.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.cells)||[]).map(function(B){return _.k(B,lq7)})}}});
k4.prototype.onDataChanged=k4.prototype.onDataChanged;_.Q([_.F(),_.y("design:type",Object)],k4.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Array)],k4.prototype,"columnRenderData",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],k4.prototype,"componentStyle",void 0);_.Q([_.H("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],k4.prototype,"cells",null);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],k4.prototype,"onDataChanged",null);_.Q([_.u({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],k4);
_.D(k4,"ytd-report-history-table-row-renderer",function(){if(fZ6!==void 0)return fZ6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return fZ6=W},{mode:1});var Ob9;var XwR;var WBR={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},BTu={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var lS=function(){return _.S.apply(this,arguments)||this};
_.C(lS,_.S);lS.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"}}}}}};
lS.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.G5.Object.defineProperties(lS.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.columns)?pvR(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return YQR(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var W=this.tableSpec,B=WBR;B=B===void 0?BTu:B;B=dN2(W.columnDimensions,W.columnsToShow||[],B);W=0;B=_.A(B);for(var z=B.next();!z.done;z=B.next())z=z.value,W+=z.minWidth+z.paddingLeft+z.paddingRight;return W}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.Q([_.h(_.Pl),_.y("design:type",Object)],lS.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],lS.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],lS.prototype,"tableSpec",null);_.Q([_.H("tableSpec"),_.y("design:type",Array),_.y("design:paramtypes",[])],lS.prototype,"columnRenderData",null);
_.Q([_.H("tableSpec"),_.y("design:type",Number),_.y("design:paramtypes",[])],lS.prototype,"totalMinWidth",null);_.Q([_.H("totalMinWidth"),_.y("design:type",String),_.y("design:paramtypes",[])],lS.prototype,"tableWidthStyle",null);_.Q([_.u({is:"ytd-table-renderer",disableElementRegistration:!0})],lS);
_.D(lS,"ytd-table-renderer",function(){if(XwR!==void 0)return XwR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return XwR=W},{mode:1});var CD=function(){return _.S.apply(this,arguments)||this};
_.C(CD,_.S);CD.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}}}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],CD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],CD.prototype,"data",void 0);_.Q([_.u({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],CD);
_.D(CD,"ytd-report-reason-history-modal-renderer",function(){if(Ob9!==void 0)return Ob9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Ob9=W},{mode:1});var K_M;var udQ;var ezF;var I4=function(){return _.S.apply(this,arguments)||this};
_.C(I4,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],I4.prototype,"data",void 0);_.Q([_.u({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],I4);
_.D(I4,"ytd-profile-column-stats-entry-renderer",function(){if(ezF!==void 0)return ezF;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ezF=W},{mode:1});var maR;var o4=function(){return _.S.apply(this,arguments)||this};
_.C(o4,_.S);o4.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],o4.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],o4.prototype,"data",void 0);_.Q([_.u({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],o4);
_.D(o4,"ytd-profile-column-stats-renderer",function(){if(maR!==void 0)return maR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return maR=W},{mode:1});var xaM;var hn=function(){return _.S.apply(this,arguments)||this};
_.C(hn,_.S);_.G5.Object.defineProperties(hn.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.useThumbnailSize)return 80;var B,z;W=(B=this.data)==null?void 0:(z=B.thumbnail)==null?void 0:z.thumbnails;var G;return W&&((G=W[0])==null?void 0:G.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.useThumbnailSize)return 80;var B,z;W=(B=this.data)==null?void 0:(z=B.thumbnail)==null?void 0:z.thumbnails;var G;return W&&((G=W[0])==null?void 0:G.height)||80}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],hn.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],hn.prototype,"componentStyle",void 0);_.Q([_.H("data.useThumbnailSize"),_.y("design:type",Object),_.y("design:paramtypes",[])],hn.prototype,"thumbnailWidth",null);
_.Q([_.H("data.useThumbnailSize"),_.y("design:type",Object),_.y("design:paramtypes",[])],hn.prototype,"thumbnailHeight",null);_.Q([_.u({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],hn);
_.D(hn,"ytd-profile-column-user-info-renderer",function(){if(xaM!==void 0)return xaM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return xaM=W},{mode:1});var HZ=function(){return _.S.apply(this,arguments)||this};
_.C(HZ,_.S);HZ.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]]"}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],HZ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],HZ.prototype,"componentStyle",void 0);_.Q([_.u({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],HZ);
_.D(HZ,"ytd-profile-column-renderer",function(){if(udQ!==void 0)return udQ;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return udQ=W},{mode:1});var FX=function(){var W=_.S.apply(this,arguments)||this;W.componentStyle="NON_CENTERED_PROFILE";return W};
_.C(FX,_.S);FX.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
FX.prototype.getIcon=function(W){return W?"settings:"+W.toLowerCase():null};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],FX.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],FX.prototype,"data",void 0);_.Q([_.u({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],FX);
_.D(FX,"ytd-page-introduction-renderer",function(){if(K_M!==void 0)return K_M;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return K_M=W},{mode:1});var DaU;var Sq=function(){return _.S.apply(this,arguments)||this};
_.C(Sq,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Sq.prototype,"data",void 0);_.Q([_.u({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Sq);
_.D(Sq,"ytd-report-description-renderer",function(){if(DaU!==void 0)return DaU;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return DaU=W},{mode:1});var QMR;var ySH;var bS=function(){return _.S.apply(this,arguments)||this};
_.C(bS,_.S);bS.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],bS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],bS.prototype,"data",void 0);_.Q([_.u({is:"ytd-video-report-renderer",disableElementRegistration:!0})],bS);
_.D(bS,"ytd-video-report-renderer",function(){if(ySH!==void 0)return ySH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ySH=W},{mode:1});var qaR;_.eX("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.eX("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var jq=function(){return _.S.apply(this,arguments)||this};
_.C(jq,_.S);jq.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]]"}}}}}};
jq.prototype.computeMessageStyle=function(W){return W};
jq.prototype.computeButtonOverride=function(W){var B;if((W==null?0:(B=W.style)==null?0:B.value)&&W.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],jq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],jq.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],jq.prototype,"shelf",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],jq.prototype,"panel",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.y("design:type",Boolean)],jq.prototype,"componentStyle",void 0);_.Q([_.F({computed:"computeButtonOverride(data)"}),_.y("design:type",Object)],jq.prototype,"buttonOverride",void 0);_.Q([_.u({is:"ytd-message-renderer",disableElementRegistration:!0})],jq);
_.D(jq,"ytd-message-renderer",function(){if(qaR!==void 0)return qaR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return qaR=W},{mode:1});var fD=function(){return _.S.apply(this,arguments)||this};
_.C(fD,_.S);fD.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"}}}};
fD.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
fD.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.G5.Object.defineProperties(fD.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var W,B;return!!(((W=this.data)==null?0:W.header)&&((B=this.data)==null?0:B.table))}}});
fD.prototype.onRequestError=fD.prototype.onRequestError;_.Q([_.h(_.Pl),_.y("design:type",Object)],fD.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],fD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],fD.prototype,"data",void 0);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],fD.prototype,"isUnifiedReportHistory",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fD.prototype,"onRequestError",null);_.Q([_.u({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],fD);
_.D(fD,"ytd-report-history-section-renderer",function(){if(QMR!==void 0)return QMR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return QMR=W},{mode:1});var nCF;var Oe=function(){var W=_.S.apply(this,arguments)||this;W.answerExpanded=!1;return W};
_.C(Oe,_.S);Oe.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Oe.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Oe.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Oe.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Oe.prototype,"answerExpanded",void 0);_.Q([_.u({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Oe);
_.D(Oe,"ytd-handles-claiming-faq-renderer",function(){if(nCF!==void 0)return nCF;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return nCF=W},{mode:1});var N6F;var $aU=function(){return _.S.apply(this,arguments)||this};
_.C($aU,_.S);_.Q([_.F(),_.y("design:type",Object)],$aU.prototype,"data",void 0);_.Q([_.u({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],$aU);
_.D($aU,"ytd-handles-claiming-faq-section-renderer",function(){if(N6F!==void 0)return N6F;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return N6F=W},{mode:1});var L_T;var XX=function(){var W=_.S.apply(this,arguments)||this;W.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";W.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";W.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";W.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";W.leftSquiggly=W.leftSquigglyLight;W.rightSquiggly=W.rightSquigglyLight;
W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return W};
_.C(XX,_.S);_.p=XX.prototype;_.p.updateLeftSquigglyStyle=function(){_.kw(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.p.updateRightSquigglyStyle=function(){_.kw(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.p.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
_.p.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),W?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
XX.prototype.updateRightSquigglyStyle=XX.prototype.updateRightSquigglyStyle;XX.prototype.updateLeftSquigglyStyle=XX.prototype.updateLeftSquigglyStyle;_.Q([_.F(),_.y("design:type",Object)],XX.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],XX.prototype,"isDarkTheme",void 0);_.Q([_.F(),_.y("design:type",String)],XX.prototype,"leftSquiggly",void 0);_.Q([_.F(),_.y("design:type",String)],XX.prototype,"rightSquiggly",void 0);
_.Q([_.oN("leftSquiggly"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],XX.prototype,"updateLeftSquigglyStyle",null);_.Q([_.oN("rightSquiggly"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],XX.prototype,"updateRightSquigglyStyle",null);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],XX.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],XX.prototype,"actionButtonOverride",void 0);_.Q([_.u({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],XX);
_.D(XX,"ytd-handles-claiming-header-renderer",function(){if(L_T!==void 0)return L_T;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return L_T=W},{mode:1});var UaH;var KD=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";W.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";W.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";W.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
W.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";W.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";W.image0SquigglyBackground=W.image0LightSquigglyBackground;W.image1SquigglyBackground=W.image1LightSquigglyBackground;W.image3SquigglyBackground=W.image3LightSquigglyBackground;return W};
_.C(KD,_.S);_.p=KD.prototype;_.p.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.p.onDataChanged=function(){this.updateTitleAndImages()};
_.p.onThemeChanged=function(){this.updateTitleAndImages()};
_.p.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.p.updateImage0SquigglyBackground=function(){_.kw(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.p.updateImage1SquigglyBackground=function(){_.kw(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.p.updateImage3SquigglyBackground=function(){_.kw(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.p.updateTitleAndImages=function(){var W,B;((W=this.data)==null?void 0:(B=W.titleImages)==null?void 0:B.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))};
KD.prototype.updateImage3SquigglyBackground=KD.prototype.updateImage3SquigglyBackground;KD.prototype.updateImage1SquigglyBackground=KD.prototype.updateImage1SquigglyBackground;KD.prototype.updateImage0SquigglyBackground=KD.prototype.updateImage0SquigglyBackground;KD.prototype.onThemeChanged=KD.prototype.onThemeChanged;KD.prototype.onDataChanged=KD.prototype.onDataChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],KD.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],KD.prototype,"isDarkTheme",void 0);_.Q([_.F(),_.y("design:type",Object)],KD.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],KD.prototype,"title0",void 0);_.Q([_.F(),_.y("design:type",Object)],KD.prototype,"title1",void 0);_.Q([_.F(),_.y("design:type",Object)],KD.prototype,"title2",void 0);_.Q([_.F(),_.y("design:type",Object)],KD.prototype,"title3",void 0);
_.Q([_.F(),_.y("design:type",Object)],KD.prototype,"title4",void 0);_.Q([_.F(),_.y("design:type",Object)],KD.prototype,"image0",void 0);_.Q([_.F(),_.y("design:type",Object)],KD.prototype,"image1",void 0);_.Q([_.F(),_.y("design:type",Object)],KD.prototype,"image2",void 0);_.Q([_.F(),_.y("design:type",Object)],KD.prototype,"image3",void 0);_.Q([_.F(),_.y("design:type",Object)],KD.prototype,"image4",void 0);_.Q([_.F(),_.y("design:type",String)],KD.prototype,"image0SquigglyBackground",void 0);
_.Q([_.F(),_.y("design:type",String)],KD.prototype,"image1SquigglyBackground",void 0);_.Q([_.F(),_.y("design:type",String)],KD.prototype,"image3SquigglyBackground",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KD.prototype,"onDataChanged",null);_.Q([_.oN("isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KD.prototype,"onThemeChanged",null);
_.Q([_.oN("image0SquigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KD.prototype,"updateImage0SquigglyBackground",null);_.Q([_.oN("image1SquigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KD.prototype,"updateImage1SquigglyBackground",null);
_.Q([_.oN("image3SquigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KD.prototype,"updateImage3SquigglyBackground",null);_.Q([_.u({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],KD);
_.D(KD,"ytd-handles-claiming-title-images-section-renderer",function(){if(UaH!==void 0)return UaH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return UaH=W},{mode:1});var MUT;var uS=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.C(uS,_.S);uS.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
uS.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W)};
uS.prototype.onCopyButtonClick=function(){var W=this,B,z,G;return _.T(function(Y){return(B=W.data)!=null&&B.primaryChannelUrl?Y.yield(navigator.clipboard.writeText(((z=W.data)==null?0:z.encodedChannelUrl)?W.data.encodedChannelUrl:"https://"+_.zR((G=W.data)==null?void 0:G.primaryChannelUrl)),0):Y.jumpTo(0)})};
_.Q([_.F(),_.y("design:type",Object)],uS.prototype,"data",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],uS.prototype,"ytComponentBehavior",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],uS.prototype,"isDarkTheme",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],uS.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.u({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],uS);
_.D(uS,"ytd-handles-claiming-update-social-renderer",function(){if(MUT!==void 0)return MUT;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return MUT=W},{mode:1});var aZR;var eq=function(){var W=_.S.apply(this,arguments)||this;W.JSC$16043_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";W.JSC$16043_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.squigglyBackground=W.JSC$16043_squigglyBackgroundLight;return W};
_.C(eq,_.S);eq.prototype.updateSquigglyBackgroundStyle=function(){_.kw(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
eq.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.squigglyBackground=W?this.JSC$16043_squigglyBackgroundDark:this.JSC$16043_squigglyBackgroundLight};
eq.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),this.squigglyBackground=W?this.JSC$16043_squigglyBackgroundDark:this.JSC$16043_squigglyBackgroundLight)};
eq.prototype.updateSquigglyBackgroundStyle=eq.prototype.updateSquigglyBackgroundStyle;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],eq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],eq.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],eq.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],eq.prototype,"isDarkTheme",void 0);_.Q([_.F(),_.y("design:type",String)],eq.prototype,"squigglyBackground",void 0);_.Q([_.oN("squigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eq.prototype,"updateSquigglyBackgroundStyle",null);_.Q([_.u({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],eq);
_.D(eq,"ytd-handles-claiming-vanity-info-renderer",function(){if(aZR!==void 0)return aZR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return aZR=W},{mode:1});var RzF;var mA=function(){var W=_.S.apply(this,arguments)||this;W.JSC$16046_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";W.JSC$16046_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";W.squigglyBackground=W.JSC$16046_squigglyBackgroundLight;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.C(mA,_.S);_.p=mA.prototype;_.p.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
_.p.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),this.squigglyBackground=W?this.JSC$16046_squigglyBackgroundDark:this.JSC$16046_squigglyBackgroundLight)};
_.p.updateSquigglyBackgroundStyle=function(){_.kw(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.p.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.p.detached=function(){this.stop()};
_.p.stop=function(){this.playerElement.stop()};
_.p.setupVideoPlayer=function(){var W=this,B,z;return _.T(function(G){B=W.data.videoId;z="http://i1.ytimg.com/vi/"+B+"/maxresdefault.jpg";W.playerElement.loadVideoWithPlayerVars({video_id:B,iurlhq:z});_.HG(G)})};
mA.prototype.onDataChanged=mA.prototype.onDataChanged;mA.prototype.updateSquigglyBackgroundStyle=mA.prototype.updateSquigglyBackgroundStyle;_.Q([_.F({value:!1}),_.y("design:type",Boolean)],mA.prototype,"isDarkTheme",void 0);_.Q([_.F(),_.y("design:type",String)],mA.prototype,"squigglyBackground",void 0);_.Q([_.Hf("#player"),_.y("design:type",Object)],mA.prototype,"playerElement",void 0);_.Q([_.F(),_.y("design:type",Object)],mA.prototype,"data",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],mA.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.oN("squigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mA.prototype,"updateSquigglyBackgroundStyle",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mA.prototype,"onDataChanged",null);
_.Q([_.u({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],mA);
_.D(mA,"ytd-handles-claiming-video-item-renderer",function(){if(RzF!==void 0)return RzF;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return RzF=W},{mode:1});var WpR;var DT=function(){var W=_.SJ.apply(this,arguments)||this;W.dragging=!1;W.dragMouseStart=0;W.dragOffsetStart=0;W.containerWidthDiff=0;W.boundPrevClick=function(){W.set("offset",x4(W,W.offset-(W.scrollDistance||320)))};
W.boundNextClick=function(){W.set("offset",x4(W,W.offset+(W.scrollDistance||320)))};
W.boundScrollContainerMouseDown=function(B){W.dragMouseStart=B.clientX;W.dragOffsetStart=W.offset;W.dragging=!0};
W.boundScrollContainerDrag=function(B){W.dragging&&W.set("offset",x4(W,W.dragOffsetStart-(B.clientX-W.dragMouseStart)))};
W.boundMouseUp=function(){W.onMouseUp()};
W.boundWheelScroll=function(B){var z=0;Math.abs(B.deltaX)>=Math.abs(B.deltaY)?z=B.deltaX:B.shiftKey&&(z=B.deltaY);z!==0&&(W.offset+=z,B.stopPropagation(),B.preventDefault())};
W.boundChipCloudChipScrollIntoView=function(B){(B=B.detail)&&W.scrollChipIntoView(B)};
return W};
_.C(DT,_.SJ);DT.prototype.attached=function(){var W=_.tH(this.hostElement).querySelector("#scroll-container");W.addEventListener("wheel",this.boundWheelScroll);W.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);W.style.touchAction="pan-y";W.addEventListener("pointerdown",this.boundScrollContainerMouseDown);W.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
DT.prototype.detached=function(){var W=_.tH(this.hostElement).querySelector("#scroll-container");W.removeEventListener("wheel",this.boundWheelScroll);W.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);W.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);W.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
DT.prototype.reset=function(){this.set("offset",0);_.BM(this,this.setContainerWidthDiff);Qu(this)};
var x4=function(W,B){return Math.min(Math.max(B,0),W.containerWidthDiff)};
DT.prototype.onMouseUp=function(){this.dragging=!1};
DT.prototype.transformContainer=function(){this.offset=x4(this,this.offset);var W=_.eD("HTML_DIR")==="rtl"?"":"-";_.tH(this.hostElement).querySelector("#chips").style.transform="translateX("+W+this.offset+"px)";Qu(this)};
var Qu=function(W){_.BM(W,W.setButtonsState)};
DT.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=x4(this,this.offset));this.atStart=this.offset<=0};
DT.prototype.setContainerWidthDiff=function(){var W=_.tH(this.hostElement).querySelector("#scroll-container"),B=_.tH(this.hostElement).querySelector("#chips");W&&B&&(this.containerWidthDiff=B.clientWidth-W.clientWidth)};
DT.prototype.scrollChipIntoView=function(W){var B=_.tH(this.hostElement).querySelector("#scroll-container");if(B){var z=this.atStart?0:106,G=this.atEnd?0:106;W.offsetLeft<this.offset+z?this.offset=x4(this,W.offsetLeft-z):W.offsetLeft+W.clientWidth>this.offset+B.clientWidth-G&&(this.offset=x4(this,W.offsetLeft+W.clientWidth+G-B.clientWidth))}};
DT.prototype.transformContainer=DT.prototype.transformContainer;_.Q([_.F({value:0}),_.y("design:type",Number)],DT.prototype,"offset",void 0);_.Q([_.F({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],DT.prototype,"atStart",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],DT.prototype,"atEnd",void 0);_.Q([_.F(),_.y("design:type",Number)],DT.prototype,"scrollDistance",void 0);
_.Q([_.oN("offset"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DT.prototype,"transformContainer",null);_.Q([_.bP()],DT);var BKu;var ziu;var dBH=_.m(function(W){var B=W.data;W=_.A(_.g4(!1,void 0,"icHmSe"));var z=W.next().value,G=W.next().value;W={};W=_.kG("ytChipShapeChip",function(){a:switch(B==null?void 0:B().state){case 0:var d="ytChipShapeActive";break a;case 1:d="ytChipShapeDisabled";break a;default:d="ytChipShapeInactive"}return d},function(){var d=B().type===1||B().type===2,E=B();
return d||E!=null&&E.startIcon?E==null||!E.startIcon||E!=null&&E.text?d?"ytChipShapeEndIconPadding":(E==null?0:E.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(W.ytChipShapeFocused=function(){var d;
return z()&&((d=B())==null?void 0:d.state)!==1},W));
var Y=function(d){if((B==null?void 0:B().state)!==1){var E,v;(v=(E=B()).onTap)==null||v.call(E,d)}};
return _.w("chip-shape",{class:"ytChipShapeHost","on:focusin":_.lF(function(){var d=_.dO().resolve(_.Y8(_.jx));if(d){G(d.isKeyBoardInUse());var E,v;(v=(E=B()).onFocusIn)==null||v.call(E)}return!1}),
"on:focusout":_.lF(function(){G(!1);return!1})},_.w(GD6,{shouldWrapInButton:function(){return B().type!==2},
selected:function(){return B().state===0},
onClick:Y,isDropdown:function(){return B().type===1},
accessibilityLabel:function(){return B().type===1?void 0:B().accessibilityLabel}},_.w("div",{class:W},_.w(_.V,{cond:function(){return B().startIcon},
then:function(){return _.w(_.hY,{icon:function(){var d;return(d=B())==null?void 0:d.startIcon},
className:function(){return B().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return B().text},_.w(YPD,{shape:B,
onClick:Y}),_.w(_.O6,{model:{borderRadius:"8px"}}))))},"Rb");
dBH.idomCompat=!0;var GD6=_.m(function(W){var B=_.lF(function(z){W.onClick(z);return!1});
return _.w(_.V,{cond:W.shouldWrapInButton,then:function(){return _.w("button",{class:"ytChipShapeButtonReset","on:click":B,role:function(){return W.isDropdown()?"combobox":"tab"},
"aria-label":W.accessibilityLabel,"aria-selected":W.selected},W.children)},
else:function(){return W.children}})},"Sb"),YPD=_.m(function(W){var B=W.shape;
var z=W.onClick;var G=_.lF(function(Y){z(Y);return!1});
return _.w(_.HR,null,_.w(_.oJ,{when:function(){return B().type===1}},function(){return _.w(_.hY,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.w(_.oJ,{when:function(){return B().type===2}},function(){return _.w("button",{class:"ytChipShapeButtonReset",
"on:click":G},_.w(_.hY,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.w(_.oJ,{when:function(){return B().type===0}},function(){return _.w(_.AW,null)}))},"Tb");_.Vm(dBH,"chip-shape",{props:{data:_.kz}});var yu=function(){var W=_.S.apply(this,arguments)||this;W.disableDeselectEvent=!1;W.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return W};
_.C(yu,_.S);_.p=yu.prototype;_.p.onSelectChipCommand=function(W){if(!this.selected&&this.data&&(W=_.k(W,jA4),W.targetId&&W.targetId===this.data.targetId))this.onTap()};
_.p.onFilterChipTransformCommand=function(W){if(!this.selected&&this.data){var B;(W=(B=_.k(W,IkM))==null?void 0:B.chipUniqueId)&&W===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.p.dataChanged=function(){var W=this;_.BM(this,function(){W.data&&W.data.isSelected&&!W.selected&&(W.scrollChipIntoView(),W.onTap())})};
_.p.computeChipStyle=function(W){return W!=null?W:"STYLE_DEFAULT"};
_.p.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.c0(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.c0(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.p.onFocus=function(){var W=_.dO().resolve(_.Y8(_.jx));W&&W.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.p.scrollChipIntoView=function(){_.v0(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.G5.Object.defineProperties(yu.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return ckR({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
yu.prototype.onFocus=yu.prototype.onFocus;yu.prototype.onTap=yu.prototype.onTap;yu.prototype.dataChanged=yu.prototype.dataChanged;_.Q([_.h(_.qp),_.y("design:type",Object)],yu.prototype,"ironButtonState",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],yu.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],yu.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.DM),_.y("design:type",Object)],yu.prototype,"ironA11yKeysBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],yu.prototype,"disableDeselectEvent",void 0);_.Q([_.F(),_.y("design:type",Object)],yu.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data.icon"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],yu.prototype,"hasIcon",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.uniqueId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],yu.prototype,"isGnomeChip",null);_.Q([_.F({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.y("design:type",String)],yu.prototype,"chipStyle",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],yu.prototype,"selected",void 0);
_.Q([_.H("data","selected"),_.y("design:type",Object),_.y("design:paramtypes",[])],yu.prototype,"chipShapeData",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yu.prototype,"dataChanged",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yu.prototype,"onTap",null);
_.Q([_.IN("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yu.prototype,"onFocus",null);_.Q([_.NJ({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],yu);
_.D(yu,"yt-chip-cloud-chip-renderer",function(){if(ziu===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;BKu===void 0&&(BKu=document.createElement("template"));var G=BKu;z.call(B,G.content.cloneNode(!0),W.content.firstChild);ziu=W}W=ziu;return W},{mode:2});var qo=function(){var W=_.S.apply(this,arguments)||this;W.isDarkTheme=!1;W.notSticky=!1;W.transparentBackground=!1;W.shouldHide=!1;W.disableSticky=!1;W.fluidWidth=!1;W.isClipList=!1;W.defaultChipIndex=0;W.isPlaylist=!1;W.playlistVotingAnimationEnabled=_.r("web_enable_voting_animation");W.toolbarHeight=0;W.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return W};
_.C(qo,_.S);_.p=qo.prototype;
_.p.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}}}}}};
_.p.attached=function(){var W=this;document.addEventListener("scroll",_.Co(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var B;this.toolbarHeight=((B=document.querySelector("ytd-masthead"))==null?void 0:B.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(z){W.handleIntersect(z)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){W.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.p.detached=function(){var W;(W=this.intersectionObserver)==null||W.disconnect();var B;(B=this.resizeObserver)==null||B.disconnect();document.removeEventListener("scroll",_.Co(this,this.updateChipBarWidthAndTop))};
_.p.dataChanged=function(){var W=this,B,z,G;((G=_.k((B=this.data)==null?void 0:(z=B.contents)==null?void 0:z[0],HSu))==null?void 0:G.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var Y=this.findSelectedChipIndex();this.selectedIndex!==Y&&(this.selectedIndex=-1);_.BM(this,function(){W.selectedIndex=Y;W.updating=!1;W.ytScrollableChipCloudBehavior.reset()})};
_.p.findSelectedChipIndex=function(){var W;if((W=this.data)==null||!W.contents)return 0;W=this.data.contents;for(var B=0;B<W.length;B++){var z=void 0;if((z=_.k(W[B],HSu))==null?0:z.isSelected)return B}return 0};
_.p.computeStyle=function(W){return W};
_.p.handleChipCloudChipSelectAction=function(W){W=this.JSC$16067_chipsSelector.indexOf(W);W>-1&&this.JSC$16067_chipsSelector.selectIndex(W)};
_.p.handleChipCloudChipDeselectAction=function(){if(_.r("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var W,B,z,G=(z=_.k((W=this.data)==null?void 0:(B=W.contents)==null?void 0:B[0],HSu))==null?void 0:z.navigationEndpoint;G&&_.c0(this.hostElement,"yt-browse-section-list-reload-endpoint",[G]);this.JSC$16067_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.p.onGuideIsExpandedChanged=function(){var W=this.ytScrollableChipCloudBehavior;_.BM(W,W.setContainerWidthDiff);Qu(this.ytScrollableChipCloudBehavior)};
_.p.onResize=function(){var W=this.ytScrollableChipCloudBehavior;_.BM(W,W.setContainerWidthDiff);Qu(this.ytScrollableChipCloudBehavior)};
_.p.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.p.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.p.handleIntersect=function(W){this.notSticky=this.isChannelPageGrid||this.disableSticky||W[0].intersectionRatio===1};
_.p.updateDimensions=function(){var W=this.ytRendererBehavior.parentComponent;if(W){var B,z=(B=W.headerElement)!=null?B:W;_.kw(this.hostElement,{"--ytd-rich-grid-chips-bar-width":z.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.p.updateSelectedIndexFromBinding=function(W){this.selectedIndex=W.detail.value};
_.p.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var W;(W=this.sortFilterHeaderRendererElement)==null||W.setAttribute("is-playlist-page-with-filters","")}};
_.p.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(tMH(!this.notSticky))};
_.G5.Object.defineProperties(qo.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 W,B,z=(W=this.data)==null?void 0:(B=W.contents)==null?void 0:B.find(function(G){return _.k(G,f6H)});
return{sortFilterHeaderRenderer:_.k(z,f6H)}}}});
qo.prototype.dispatchChipBarIsSticky=qo.prototype.dispatchChipBarIsSticky;qo.prototype.isPlaylistPageChanged=qo.prototype.isPlaylistPageChanged;qo.prototype.updateChipBarWidthAndTop=qo.prototype.updateChipBarWidthAndTop;qo.prototype.onResize=qo.prototype.onResize;qo.prototype.onGuideIsExpandedChanged=qo.prototype.onGuideIsExpandedChanged;qo.prototype.dataChanged=qo.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],qo.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],qo.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],qo.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.Mp),_.y("design:type",Object)],qo.prototype,"ironResizableBehavior",void 0);_.Q([_.h(),_.y("design:type",DT)],qo.prototype,"ytScrollableChipCloudBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],qo.prototype,"ytdReduxBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],qo.prototype,"data",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],qo.prototype,"selectedIndex",void 0);_.Q([_.F({value:320}),_.y("design:type",Number)],qo.prototype,"scrollDistance",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],qo.prototype,"isDarkTheme",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],qo.prototype,"notSticky",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],qo.prototype,"transparentBackground",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.y("design:type",String)],qo.prototype,"componentStyle",void 0);_.Q([_.F({selector:_.d1t}),_.y("design:type",Boolean)],qo.prototype,"guideIsExpanded",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],qo.prototype,"shouldHide",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],qo.prototype,"disableSticky",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],qo.prototype,"fluidWidth",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],qo.prototype,"isClipList",void 0);_.Q([_.F(),_.y("design:type",Object)],qo.prototype,"defaultChipIndex",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],qo.prototype,"isPlaylist",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],qo.prototype,"playlistVotingAnimationEnabled",void 0);_.Q([_.Hf("#chips"),_.y("design:type",Object)],qo.prototype,"JSC$16067_chipsSelector",void 0);_.Q([_.Hf("ytd-sort-filter-header-renderer"),_.y("design:type",HTMLElement)],qo.prototype,"sortFilterHeaderRendererElement",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],qo.prototype,"updating",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qo.prototype,"dataChanged",null);_.Q([_.oN("guideIsExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qo.prototype,"onGuideIsExpandedChanged",null);_.Q([_.IN("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qo.prototype,"onResize",null);
_.Q([_.jJ("isChannelPageGrid","disableSticky","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qo.prototype,"updateChipBarWidthAndTop",null);_.Q([_.H("componentStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qo.prototype,"isChannelPageGrid",null);_.Q([_.H("componentStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qo.prototype,"isHashtagLandingPage",null);
_.Q([_.oN("isPlaylistPage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qo.prototype,"isPlaylistPageChanged",null);_.Q([_.H("componentStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qo.prototype,"isPlaylistPage",null);_.Q([_.H("componentStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qo.prototype,"isDisableDeselectEvent",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],qo.prototype,"sortFilterHeaderRendererData",null);_.Q([_.F({reflectToAttribute:!0,selector:_.c5y}),_.y("design:type",String)],qo.prototype,"frostedGlassMode",void 0);_.Q([_.oN("notSticky"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qo.prototype,"dispatchChipBarIsSticky",null);_.Q([_.u({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],qo);
_.D(qo,"ytd-feed-filter-chip-bar-renderer",function(){if(WpR!==void 0)return WpR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return WpR=W},{mode:1});var pFM;var A_U=_.m(function(W){var B=W.data;var z=W.buttonIndex;var G=W.selectedIndex;var Y=W.onSelect;var d=function(){return z()===G()},E=function(){var v,c;
return(c=(v=B().text)==null?void 0:v.content)!=null?c:""};
W=_.Tg0();return _.w("yt-toggleable-image-button-view-model",{class:function(){var v={};v=(v.toggleableImageButtonViewModelHost=!0,v[""]=!0,v.toggleableImageButtonViewModelSemiTransparent=G()!==-1&&!d(),v);return _.uj(v)},
tabindex:0,"aria-label":E,"aria-pressed":d,role:"button","on:keydown":W,"on:click":_.lF(function(){Y(B().onSubmitCommand);return!1})},_.w(_.V,{cond:function(){return B().logo},
then:function(v){return _.w(_.iF,{data:v,className:function(){var c={};c=(c.toggleableImageButtonViewModelImage=!0,c.toggleableImageButtonViewModelCircularRadius=!(!B().backgroundColor||!B().backgroundColorDarkMode),c.toggleableImageButtonViewModelGradientRing=!!(d()&&B().backgroundColor&&B().backgroundColorDarkMode),c);return _.uj(c)},
alt:E,useWidth:!1,style:function(){if(d()&&B().backgroundColor&&B().backgroundColorDarkMode){var c=RE(Number(B().backgroundColorDarkMode),"1");var J=RE(Number(B().backgroundColor),"1");c="background: linear-gradient(180deg,"+c+","+J+") border-box;"}else c="";return c}})}}),_.w(_.O6,{model:{borderRadius:"16px"}}),_.w("p",{class:function(){var v={};
v=(v.toggleableImageButtonViewModelLabel=!0,v.toggleableImageButtonViewModelBoldText=d(),v);return _.uj(v)}},_.w(_.r0,{text:function(){return B().text}})))},"Ub");
A_U.idomCompat=!0;var Evu=_.m(function(W){var B=W.data;W=_.A(_.g4({index:-1,command:{}},void 0,"GM3umb"));var z=W.next().value,G=W.next().value;return _.w("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.w("div",{class:"nudgeFormViewModelFormOptions"},_.w(_.Sc,{data:function(){return B().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(Y,d){return _.w(A_U,{data:Y.data,buttonIndex:d,selectedIndex:function(){return z().index},
onSelect:function(E){G({index:d(),command:E})}})}})),_.w(_.r0,{text:function(){return B().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.w("div",{class:"nudgeFormViewModelSubmit"},_.w(_.Sc,{data:function(){return B().submitButton}},{buttonViewModel:function(Y){return _.w(iEu,{data:Y.data,
isDisabled:function(){return z().index===-1},
onClick:function(){_.aB(z().command)}})}})))},"Vb");
Evu.idomCompat=!0;var iEu=_.m(function(W){var B=_.r4(function(){return Object.assign({},W.data(),{state:W.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.w(_.ex,{data:B,onClick:W.onClick})},"Wb");_.Vm(Evu,"yt-nudge-form-view-model",{props:{data:_.kz}});var nD=function(){var W=_.S.apply(this,arguments)||this;W.roundedContainer=!0;W.buttonUpdate=_.r("web_modern_buttons");W.isDarkMode=!1;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return W};
_.C(nD,_.S);_.p=nD.prototype;_.p.computeNudgeStyle=function(W){return W?"modernized-nudge":""};
_.p.handleDarkModeToggledAction=function(W){this.isDarkMode=W};
_.p.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.p.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"}}}};
_.p.computeIsHorizontalButtons=function(W){return W?!!W.applyModernizedStyle&&!!W.enableHorizontalButtons&&!!W.secondaryButton:!1};
_.G5.Object.defineProperties(nD.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var W,B;return(B=(W=this.data)==null?void 0:W.backgroundStyle)!=null?B:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var W,B;return(B=(W=this.data)==null?void 0:W.contentsLocation)!=null?B:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.lightIconImage)}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],nD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],nD.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],nD.prototype,"actionHandlerBehavior",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("isHideEnclosingAction"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],nD.prototype,"isHidden",null);_.Q([_.F(),_.y("design:type",Object)],nD.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],nD.prototype,"roundedContainer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],nD.prototype,"buttonUpdate",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.y("design:type",String)],nD.prototype,"nudgeStyle",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data.trimStyle"),_.y("design:type",String),_.y("design:paramtypes",[])],nD.prototype,"trimStyle",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.backgroundStyle"),_.y("design:type",String),_.y("design:paramtypes",[])],nD.prototype,"backgroundStyle",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.contentsLocation"),_.y("design:type",String),_.y("design:paramtypes",[])],nD.prototype,"contentsLocation",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.disableDropShadow"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],nD.prototype,"noShadow",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.lightIconImage"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],nD.prototype,"noIcon",null);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.y("design:type",Boolean)],nD.prototype,"isHorizontalButtons",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Object)],nD.prototype,"isDarkMode",void 0);_.Q([_.u({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],nD);
_.D(nD,"ytd-feed-nudge-renderer",function(){if(pFM!==void 0)return pFM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return pFM=W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var TKF;var vvM;var No=function(){var W=_.S.apply(this,arguments)||this;W.collapsed=!1;W.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return W};
_.C(No,_.S);No.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"}}}};
No.prototype.handleRatingSelect=function(){var W;((W=this.data)==null?0:W.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
No.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],No.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],No.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],No.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.c$),_.y("design:type",Object)],No.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],No.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],No.prototype,"collapsed",void 0);_.Q([_.u({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],No);
_.D(No,"ytd-slimline-survey-renderer",function(){if(vvM!==void 0)return vvM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return vvM=W},{mode:1});var c_Q;var $4=function(){return _.S.apply(this,arguments)||this};
_.C($4,_.S);$4.prototype.maybeGetBackgroundColor=function(W){return this.isDarkMode?W.section2Color:W.section3Color};
$4.prototype.colorPaletteChanged=function(){var W=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;W&&(W==null?0:W.secondaryTitleColor)&&this.maybeGetBackgroundColor(W)?(this.hostElement.style.backgroundColor=_.M_(this.maybeGetBackgroundColor(W)),this.hostElement.style.color=_.M_(W.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
$4.prototype.colorPaletteChanged=$4.prototype.colorPaletteChanged;_.Q([_.h(_.TB),_.y("design:type",Object)],$4.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$4.prototype,"data",void 0);_.Q([_.F({selector:function(W){return W.ui.darkModeIsEnabled}}),
_.y("design:type",Boolean)],$4.prototype,"isDarkMode",void 0);_.Q([_.F(),_.y("design:type",Object)],$4.prototype,"lightColorPalette",void 0);_.Q([_.F(),_.y("design:type",Object)],$4.prototype,"darkColorPalette",void 0);_.Q([_.oN("darkColorPalette","lightColorPalette","data","isDarkMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$4.prototype,"colorPaletteChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],$4);
_.D($4,"ytd-endorsement-header-renderer",function(){if(c_Q!==void 0)return c_Q;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return c_Q=W},{mode:1});_.Vm(_.pY,"yt-decorated-avatar-view-model",{props:{data:_.kz,className:_.kz}});_.LD=new _.t1("VIEW_TRANSITION_MANAGER_TOKEN");var Ue=function(){var W=_.S.apply(this,arguments)||this;W.fullHeight=_.r("web_rich_grid_media_full_height");W.showChannelAvatar=!0;W.hasPlaylistThumbnail=!1;W.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};W.registerThumbnailForPageTransition=function(){_.r("web_thumbnail_to_watch_transition")&&_.wFQ(_.dO().resolve(_.LD),W.thumbnail)};
return W};
_.C(Ue,_.S);_.p=Ue.prototype;
_.p.configureRendererStamper=function(){return{lazyLoadMenu:qV,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"}}}};
_.p.attached=function(){this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.shouldLazyLoadMenu=function(){var W=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.r("kevlar_modern_downloads_page")||!W};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16092_inlinePreviewHoverListener=q$({mediaRenderer:this,lockupElement:this.JSC$16092_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.p.getVideoPreviewOpts=function(){var W={},B;if((B=this.data)==null?0:B.multipleInlinePlaybackEndpoint)W=zK6;this.isRadio&&(W=BT7);return W};
_.p.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$16092_inlinePreviewHoverListener)==null||zH(W)};
_.p.getOwner=function(){var W,B,z;return((W=this.data)==null?void 0:(B=W.channelThumbnailSupportedRenderers)==null?void 0:B.channelThumbnailWithLinkRenderer)||_.k((z=this.data)==null?void 0:z.showProviderChannelThumbnail,KaM)};
_.p.updateLockupSize=function(){var W;((W=this.getOwner())==null?0:W.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.p.getFeedbackEndpoint=function(W){if(_.k(W,_.fQ))return W;var B,z;W=(z=(B=_.k(W,_.tr))==null?void 0:B.commands)!=null?z:[];B=_.A(W);for(z=B.next();!z.done;z=B.next())if(z=this.getFeedbackEndpoint(z.value))return z;return null};
_.p.computeNavigationEndpoint=function(W){return vNu(W==null?void 0:W.navigationEndpoint)};
_.p.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var W=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(W)!==JSON.stringify(this.data)&&this.set("data",W)}};
_.p.onDataChanged=function(){var W=this,B=this.getOwner();if(B){this.set("data.owner",B);var z,G,Y,d,E,v=((z=this.data)==null?void 0:(G=z.shortBylineText)==null?void 0:(Y=G.runs)==null?void 0:(d=Y[0])==null?void 0:d.text)||((E=B.name)==null?void 0:E.simpleText);this.set("data.owner.title",v)}var c,J,g,t,P,Z;B=((c=this.data)==null?void 0:(J=c.thumbnailRenderer)==null?void 0:J.playlistVideoThumbnailRenderer)||((g=this.data)==null?void 0:(t=g.thumbnailRenderer)==null?void 0:t.playlistCustomThumbnailRenderer)||
((P=this.data)==null?void 0:(Z=P.thumbnailRenderer)==null?void 0:Z.showCustomThumbnailRenderer);var l;((l=this.data)==null?0:l.thumbnail)||!B||this.set("data.thumbnail",B.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){W.updateLockupSize()});
var b;if(c=((b=this.data)==null?void 0:b.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(c);var O;((O=this.dismissActionToReplayEntity)==null?0:O.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.p.onHiddenChanged=function(){this.updateLockupSize()};
_.p.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.c0(this.hostElement,"yt-terminate-video-preview-action");else{var W;(W=this.videoTitleLink)==null||W.focus()}};
_.p.metadataColorChanged=function(){var W;if(this.metadataColor&&((W=this.videoTitle)==null?0:W.style))this.videoTitle.style.color=_.M_(this.metadataColor);else{var B,z;!this.metadataColor&&((B=this.videoTitle)==null?0:(z=B.style)==null?0:z.color)&&(this.videoTitle.style.color="")}};
_.p.onDetailsClick=function(W){var B=this.computedNavigationEndpoint;B&&(_.p2(_.AH(W),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.v0(this.hostElement,"yt-navigate",{endpoint:B}))};
_.p.onRendererTap=function(){this.registerThumbnailForPageTransition();var W,B,z=((W=this.data)==null?void 0:W.serviceEndpoint)||this.getFeedbackEndpoint((B=this.data)==null?void 0:B.navigationEndpoint);z&&_.k(z,_.fQ)&&this.ytComponentBehavior.resolveCommand(z)};
_.p.onMouseDown=function(W){var B=W.target,z=this.computedNavigationEndpoint,G;W=B.href||((G=_.k(z==null?void 0:z.commandMetadata,_.Z4))==null?void 0:G.url);G=B.data||z;W&&G&&BBu(W,G)};
_.p.computeVideoTitleText=function(){var W;if((W=this.data)==null?0:W.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.p.computeHasPlaylistThumbnail=function(W){var B,z,G,Y,d;if((((B=W.thumbnailRenderer)==null?0:B.playlistVideoThumbnailRenderer)||((z=W.thumbnailRenderer)==null?0:z.playlistCustomThumbnailRenderer)||((G=W.thumbnailRenderer)==null?0:G.showCustomThumbnailRenderer)||((Y=W.thumbnailRenderer)==null?0:Y.playlistVideoThumbnailRenderer)||((d=W.thumbnailRenderer)==null?0:d.playlistCustomThumbnailRenderer))&&W.thumbnailOverlays)for(B=0;B<W.thumbnailOverlays.length;B++)if(z=void 0,(z=W.thumbnailOverlays[B])==
null?0:z.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.G5.Object.defineProperties(Ue.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.r("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var W;return(W=this.data)==null?void 0:W.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var W;return(W=this.data)==null?void 0:W.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$16092_inlinePreviewHoverListener)==null?0:TX(W))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.la(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?void 0:W.videoId)||((B=this.data)==null?void 0:B.playlistId)||""}}});
Ue.prototype.onMouseDown=Ue.prototype.onMouseDown;Ue.prototype.metadataColorChanged=Ue.prototype.metadataColorChanged;Ue.prototype.onIsDismissedChanged=Ue.prototype.onIsDismissedChanged;Ue.prototype.onHiddenChanged=Ue.prototype.onHiddenChanged;Ue.prototype.onDataChanged=Ue.prototype.onDataChanged;Ue.prototype.handleReloadDownloadsInfo=Ue.prototype.handleReloadDownloadsInfo;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ue.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Ue.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],Ue.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],Ue.prototype,"ytdLockupBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Ue.prototype,"ytdReduxBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Ue.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],Ue.prototype,"entitySelectorType",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Ue.prototype,"noEndpoints",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Ue.prototype,"isRadio",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.eL}),_.y("design:type",Boolean)],Ue.prototype,"miniMode",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ue.prototype,"fullHeight",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],Ue.prototype,"showDarkVideoMetadata",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Ue.prototype,"showLightVideoMetadata",void 0);_.Q([_.F(),_.y("design:type",Number)],Ue.prototype,"metadataColor",void 0);_.Q([_.F(),_.y("design:type",Object)],Ue.prototype,"showChannelAvatar",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Ue.prototype,"hidden",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],Ue.prototype,"showYtInteraction",void 0);
_.Q([_.F(),_.y("design:type",String)],Ue.prototype,"dismissedContentId",void 0);_.Q([_.F({selectorArgs:["dismissedContentId"],selector:wWR}),_.y("design:type",Object)],Ue.prototype,"dismissActionToReplayEntity",void 0);
_.Q([_.F({selectorArgs:["entitySelectorType","mediaId"],selector:function(W,B,z){if(_.r("kevlar_modern_downloads_page")&&z&&B&&B!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(B){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var G=gUk(W,z);if(G){B=_.yg(W,z);var Y=nA(W,z),d=HIr(W,z);W=NM(W,z);var E=Ez0(G,B,Y,d);Y=E.shortViewCountText;var v=E.publishedTimeText;E=E.badges;var c=W>0;d=Aur(G,B,d,W);G=_.H3(B)||B==="TRANSFER_STATE_FAILED"||B==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!hq(G.policyEntity)?
void 0:ENx(z,W,G.videoEntity.lengthSeconds);B==="TRANSFER_STATE_PAUSED_BY_USER"&&z&&!_.r("dl_resume_click_killswitch")&&(G={offlineVideoEndpoint:{videoId:z,action:"ACTION_RESUME"}});z={shortViewCountText:Y,publishedTimeText:v,badges:E,isWatched:c,navigationEndpoint:G,thumbnailOverlays:d}}else z=void 0;return z;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(B=t82(W,z))if(G=_.qM(W,z),d=_.sqQ(W,z),G!=="TRANSFER_STATE_UNKNOWN"){z=iLx(B,G,d,z,_.Qg(W));break a}z=void 0}return z;default:_.Oc(new _.oX("Error: entitySelectorType defined but not matched in selector.",
W,B))}}}),
_.y("design:type",Object)],Ue.prototype,"entityDrivenState",void 0);_.Q([_.F({computed:"computeVideoTitleText(data)"}),_.y("design:type",Object)],Ue.prototype,"videoTitleText",void 0);_.Q([_.F({computed:"computeHasPlaylistThumbnail(data)"}),_.y("design:type",Object)],Ue.prototype,"hasPlaylistThumbnail",void 0);_.Q([_.F({computed:"computeNavigationEndpoint(data)"}),_.y("design:type",Object)],Ue.prototype,"computedNavigationEndpoint",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Ue.prototype,"typographyBump",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("typographyBump"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ue.prototype,"typographyBumpV2",null);_.Q([_.Hf("#video-title"),_.y("design:type",HTMLElement)],Ue.prototype,"videoTitle",void 0);_.Q([_.Hf("#video-title-link"),_.y("design:type",HTMLElement)],Ue.prototype,"videoTitleLink",void 0);
_.Q([_.Hf("#thumbnail"),_.y("design:type",HTMLElement)],Ue.prototype,"thumbnail",void 0);_.Q([_.Hf("#dismissible"),_.y("design:type",HTMLElement)],Ue.prototype,"JSC$16092_dismissibleMedia",void 0);_.Q([_.H("data.menu"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ue.prototype,"lazyLoadMenu",null);_.Q([_.H("data.menu"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ue.prototype,"immediateLoadMenu",null);
_.Q([_.jJ("entityDrivenState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ue.prototype,"handleReloadDownloadsInfo",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ue.prototype,"onDataChanged",null);_.Q([_.jJ("hidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ue.prototype,"onHiddenChanged",null);
_.Q([_.oN("isDismissed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ue.prototype,"onIsDismissedChanged",null);_.Q([_.oN("metadataColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ue.prototype,"metadataColorChanged",null);_.Q([_.IN("mousedown"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Ue.prototype,"onMouseDown",null);
_.Q([_.H("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ue.prototype,"isHovered",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ue.prototype,"useAvatar",null);_.Q([_.H("data","entitySelectorType"),_.y("design:type",String),_.y("design:paramtypes",[])],Ue.prototype,"mediaId",null);_.Q([_.u({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Ue);
var Vu6=_.sV()(Ue,"ytd-rich-grid-media",function(){if(TKF!==void 0)return TKF;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return TKF=W},{mode:_.PJ("kevlar_poly_si_batch_j072")?1:2});var J_M;var Mo=function(){var W=_.S.apply(this,arguments)||this;W.removeMaxWidth=!0;W.insetMetadata=!1;return W};
_.C(Mo,_.S);_.p=Mo.prototype;_.p.configureRendererStamper=function(){return{innerMenu:qV,outerMenu:Object.assign({},qV,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.onDataChanged=function(){var W,B=((W=this.data)==null?void 0:W.trackingParams)||"";B&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(B));var z;((z=this.dismissActionToReplayEntity)==null?0:z.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.p.attached=function(){this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16097_inlinePreviewHoverListener=q$({mediaRenderer:this,lockupElement:this.JSC$16097_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:GwR})};
_.p.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$16097_inlinePreviewHoverListener)==null||zH(W)};
_.p.onRendererTap=function(){var W,B,z=(W=this.data)==null?void 0:(B=W.serviceEndpoints)==null?void 0:B[0];_.k(z,_.fQ)&&this.componentBehavior.resolveCommand(z)};
_.p.onDetailsClick=function(W){var B,z=(B=this.data)==null?void 0:B.navigationEndpoint;z&&(_.p2(_.AH(W),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(z))};
_.p.onShow=function(){var W=this.data;W.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(W.onFirstVisibleCommand),delete W.onFirstVisibleCommand)};
_.G5.Object.defineProperties(Mo.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var W;return this.insetMetadata?void 0:(W=this.data)==null?void 0:W.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var W;return this.insetMetadata?(W=this.data)==null?void 0:W.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var W=this.data;if(W!=null&&W.badge&&(W=_.k(W.badge,rwu))){var B,z,G;return[{metadataBadgeRenderer:{label:((B=W.label)==null?void 0:(z=B.runs)==null?void 0:z[0].text)||((G=W.label)==null?void 0:G.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var W=this.data;return Object.assign({},W.headline,{accessibility:W.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return this.isSlimShort?(W=this.computedTitle)==null?void 0:(B=W.accessibility)==null?void 0:(z=B.accessibilityData)==null?void 0:z.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.r("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$16097_inlinePreviewHoverListener)==null?0:TX(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Mo.prototype.onDataChanged=Mo.prototype.onDataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Mo.prototype,"componentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Mo.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],Mo.prototype,"ytdLockupBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Mo.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.c$),_.y("design:type",Object)],Mo.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Mo.prototype,"ytdReduxBehavior",void 0);_.Q([_.Hf("ytd-thumbnail"),_.y("design:type",HTMLElement)],Mo.prototype,"thumbnail",void 0);_.Q([_.Hf("#dismissible"),_.y("design:type",HTMLElement)],Mo.prototype,"JSC$16097_dismissibleMedia",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mo.prototype,"removeMaxWidth",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mo.prototype,"insetMetadata",void 0);_.Q([_.F(),_.y("design:type",String)],Mo.prototype,"dismissedContentId",void 0);_.Q([_.F({selectorArgs:["dismissedContentId"],selector:wWR}),_.y("design:type",Object)],Mo.prototype,"dismissActionToReplayEntity",void 0);_.Q([_.H("insetMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],Mo.prototype,"thumbnailObjectFit",null);
_.Q([_.H("data","insetMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],Mo.prototype,"innerMenu",null);_.Q([_.H("data","insetMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],Mo.prototype,"outerMenu",null);_.Q([_.F(),_.y("design:type",Object)],Mo.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.eL}),_.y("design:type",Boolean)],Mo.prototype,"miniMode",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mo.prototype,"onDataChanged",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Mo.prototype,"shortsBadges",null);_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mo.prototype,"isShort",null);
_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mo.prototype,"isSlimShort",null);_.Q([_.H("data","isShort"),_.y("design:type",Object),_.y("design:paramtypes",[])],Mo.prototype,"computedTitle",null);_.Q([_.H("isSlimShort","computedTitle"),_.y("design:type",Object),_.y("design:paramtypes",[])],Mo.prototype,"computedAccessibilityLabel",null);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mo.prototype,"shouldForce2By3",null);_.Q([_.H("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mo.prototype,"isHovered",null);_.Q([_.u({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],Mo);
_.D(Mo,"ytd-rich-grid-slim-media",function(){if(J_M!==void 0)return J_M;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return J_M=W},{mode:_.PJ("kevlar_poly_si_batch_j063")?1:2});var gvF;var tu9;var a4=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(a4,_.S);a4.prototype.computeIcon=function(W){return W&&W.iconType?"yt-sys-icons:"+W.iconType.toLowerCase():""};
a4.prototype.onMouseEnter=function(){this.isHovered=!0};
a4.prototype.onMouseLeave=function(){this.isHovered=!1};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],a4.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],a4.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],a4.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],a4.prototype,"isHovered",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],a4.prototype,"darkerDarkTheme",void 0);_.Q([_.u({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],a4);
_.D(a4,"ytd-expand-on-hover-card-renderer",function(){if(tu9!==void 0)return tu9;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tu9=W},{mode:1});var sz4,PcU=function(){if(sz4!==void 0)return sz4;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return sz4=W};_.eX("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var R4=function(){var W=_.S.apply(this,arguments)||this;W.compactStyle=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.C(R4,_.S);_.p=R4.prototype;_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.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"}}}};
_.p.computeHideDot=function(W){return!(W&&W.subscriberCountText&&W.videoCountText)||this.compactStyle};
_.p.hasDualButtons=function(W){return W&&W.purchaseButton&&W.subscribeButton};
_.p.backgroundColorChanged=function(){if(this.data!==void 0){var W=this.data.backgroundColor;this.isDarkTheme&&(W=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=W!=null?_.M_(W):"transparent"}};
_.p.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.p.onTap=function(W){var B,z,G=((B=this.data)==null?void 0:B.navigationEndpoint)||((z=this.data)==null?void 0:z.serviceEndpoint);_.k(G,_.Gm)&&(G&&_.dO().resolve(_.p4).resolveCommand(G,{form:{element:this.hostElement}}),W.preventDefault())};
_.p.computeChannelEndpoint=function(W){return _.k(W,_.Gm)?null:W};
_.p.computeHrefEndpoint=function(W){return _.k(W,_.Gm)?null:this.componentBehavior.computeHref_(W)};
_.p.computeChannelRendererStyle=function(W){return W};
_.p.computeIconSize=function(W){return W?108:136};
_.G5.Object.defineProperties(R4,{template:{configurable:!0,enumerable:!0,get:function(){return PcU()}}});
R4.prototype.backgroundColorChanged=R4.prototype.backgroundColorChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],R4.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],R4.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],R4.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],R4.prototype,"componentBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],R4.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],R4.prototype,"isDarkTheme",void 0);_.Q([_.F({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.y("design:type",String)],R4.prototype,"channelRendererStyle",void 0);_.Q([_.F({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],R4.prototype,"dualButtons",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],R4.prototype,"useBiggerThumbs",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.EA("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],R4.prototype,"biggerThumbStyle",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],R4.prototype,"compactStyle",void 0);_.Q([_.oN("data","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],R4.prototype,"backgroundColorChanged",null);_.Q([_.u({is:"ytd-channel-renderer",disableElementRegistration:!0})],R4);_.D(R4,"ytd-channel-renderer",function(){return PcU()},{mode:1});var ZE9;var r_d;_.eX("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var WB=function(){var W=_.S.apply(this,arguments)||this;W.displayItemCount=2;W.collections=_.r("web_modern_collections_v2");W.hasPlaylistThumbnail=!1;W.stackThumbnailSize="large";return W};
_.C(WB,_.S);_.p=WB.prototype;_.p.attached=function(){this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.p.computeFirstVideos=function(W,B){return W&&B?W.slice(0,B):[]};
_.p.computeThumbnailWidth=function(W,B){return W?B==="BIG"?500:B==="MASSIVE"?600:B==="MEDIUM"?450:420:360};
_.p.computeThumbnailHeight=function(W,B){return W?B==="BIG"?280:B==="MASSIVE"?337:234:202};
_.p.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$16110_inlinePreviewHoverListener)==null||zH(W)};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16110_inlinePreviewHoverListener=q$({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:zK6,thumbnailElement:this.thumbnail})};
_.p.computeHasPlaylistThumbnail=function(W){var B,z;if((((B=W.thumbnailRenderer)==null?0:B.playlistVideoThumbnailRenderer)||((z=W.thumbnailRenderer)==null?0:z.playlistCustomThumbnailRenderer))&&W.thumbnailOverlays)for(B=0;B<W.thumbnailOverlays.length;B++)if(z=void 0,(z=W.thumbnailOverlays[B])==null?0:z.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.G5.Object.defineProperties(WB.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$16110_inlinePreviewHoverListener)==null?0:TX(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
WB.prototype.dataChanged=WB.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],WB.prototype,"ytdLockupBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],WB.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],WB.prototype,"displayItemCount",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],WB.prototype,"useBiggerThumbs",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.EA("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],WB.prototype,"biggerThumbsStyle",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],WB.prototype,"collections",void 0);_.Q([_.F({computed:"computeHasPlaylistThumbnail(data)"}),_.y("design:type",Object)],WB.prototype,"hasPlaylistThumbnail",void 0);_.Q([_.F(),_.y("design:type",String)],WB.prototype,"stackThumbnailSize",void 0);_.Q([_.Hf("ytd-thumbnail"),_.y("design:type",HTMLElement)],WB.prototype,"thumbnail",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],WB.prototype,"dataChanged",null);_.Q([_.H("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],WB.prototype,"isHovered",null);_.Q([_.u({is:"ytd-radio-renderer",disableElementRegistration:!0})],WB);
_.D(WB,"ytd-radio-renderer",function(){if(r_d!==void 0)return r_d;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return r_d=W},{mode:_.PJ("kevlar_poly_si_batch_j058")?1:2});var kDT;_.eX("itemSectionRenderer","showRenderer","ytd-show-renderer");var BB=function(){return _.S.apply(this,arguments)||this};
_.C(BB,_.S);BB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
BB.prototype.computeThumbnailWidth=function(W){return W?360:246};
BB.prototype.computeUseProminentThumbs=function(W){return W};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],BB.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],BB.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],BB.prototype,"isSearch",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.y("design:type",Boolean)],BB.prototype,"useProminentThumbs",void 0);_.Q([_.u({is:"ytd-show-renderer",disableElementRegistration:!0})],BB);
_.D(BB,"ytd-show-renderer",function(){if(kDT!==void 0)return kDT;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return kDT=W},{mode:1});_.eX("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var zn=function(){var W=_.S.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.C(zn,_.S);zn.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"}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],zn.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],zn.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],zn.prototype,"isRichGrid",void 0);_.Q([_.u({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],zn);
_.D(zn,"ytd-feed-entry-renderer",function(){if(ZE9!==void 0)return ZE9;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ZE9=W},{mode:1});var l7U;var Gn=function(){return _.S.apply(this,arguments)||this};
_.C(Gn,_.S);Gn.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.Q([_.h(_.TB),_.y("design:type",Object)],Gn.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Gn.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Gn.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.m8,value:3}),_.y("design:type",Number)],Gn.prototype,"itemsPerRow",void 0);
_.Q([_.u({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Gn);
_.D(Gn,"ytd-link-card-renderer",function(){if(l7U!==void 0)return l7U;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return l7U=W},{mode:1});var CcH;var Yj=function(){return _.S.apply(this,arguments)||this};
_.C(Yj,_.S);_.p=Yj.prototype;_.p.configureRendererStamper=function(){return{"data.menu":qV,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.onRendererTap=function(W){if(!this.ytdDismissibleItemBehavior.isDismissed){var B,z=(B=this.data)==null?void 0:B.navigationEndpoint;z&&!_.p2(_.AH(W),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(z)?_.p2(_.AH(W),this.hostElement,["A"])||_.v0(this.hostElement,"yt-navigate",{endpoint:z}):this.ytComponentBehavior.resolveCommand(z,{}))}};
_.p.maybeComputeHref=function(W){return this.ytComponentBehavior.computeHref_(W,!0)};
_.p.getNavigationCommand=function(W){return this.isNavigationCommand(W)?W:null};
_.p.isNavigationCommand=function(W){return W?_.k(W,_.oE)||_.k(W,_.W0)||_.k(W,_.DD)?!0:!1:!1};
Yj.prototype.onRendererTap=Yj.prototype.onRendererTap;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Yj.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],Yj.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Yj.prototype,"ytComponentBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Yj.prototype,"data",void 0);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Yj.prototype,"onRendererTap",null);_.Q([_.u({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Yj);
_.D(Yj,"ytd-lumiere-promo-item-image-renderer",function(){if(CcH!==void 0)return CcH;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return CcH=W},{mode:1});var I7M;var dX=function(){return _.S.apply(this,arguments)||this};
_.C(dX,_.S);dX.prototype.computeLandscapeThumbnail=function(){var W;return((W=this.data)==null?void 0:W.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],dX.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],dX.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.eL}),_.y("design:type",Boolean)],dX.prototype,"miniMode",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.m8}),_.y("design:type",Number)],dX.prototype,"itemsPerRow",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.y("design:type",Boolean)],dX.prototype,"landscapeThumbnail",void 0);_.Q([_.u({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],dX);
_.D(dX,"ytd-lumiere-shelf-details-renderer",function(){if(I7M!==void 0)return I7M;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return I7M=W},{mode:_.PJ("kevlar_poly_si_batch_j076")?1:2});var ov7;var pq=function(){return _.S.apply(this,arguments)||this};
_.C(pq,_.S);pq.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],pq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],pq.prototype,"data",void 0);_.Q([_.u({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],pq);
_.D(pq,"ytd-primetime-promo-details-renderer",function(){if(ov7!==void 0)return ov7;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ov7=W},{mode:1});var hiU;var AA=function(){return _.S.apply(this,arguments)||this};
_.C(AA,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],AA.prototype,"data",void 0);_.Q([_.u({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],AA);
_.D(AA,"ytd-panel-show-style-metadata-renderer",function(){if(hiU!==void 0)return hiU;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return hiU=W},{mode:1});var HEd;var iC=function(){return _.S.apply(this,arguments)||this};
_.C(iC,_.S);_.p=iC.prototype;_.p.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.p.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.p.computeThumbnail=function(W){if(W)return W.smallFormFactorBackgroundThumbnail||W.largeFormFactorBackgroundThumbnail};
_.p.maybeComputeHref=function(W){return this.ytComponentBehavior.computeHref_(W,!0)};
_.p.isNavigationCommand=function(W){return W?_.k(W,_.oE)||_.k(W,_.W0)||_.k(W,_.DD)?!0:!1:!1};
_.p.getNavigationCommand=function(W){return this.isNavigationCommand(W)?W:null};
iC.prototype.onPanelTap=iC.prototype.onPanelTap;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],iC.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],iC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],iC.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],iC.prototype,"roundedContainer",void 0);_.Q([_.F({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.y("design:type",Boolean)],iC.prototype,"modernButtons",void 0);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iC.prototype,"onPanelTap",null);_.Q([_.u({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],iC);
_.D(iC,"ytd-primetime-promo-panel-renderer",function(){if(HEd!==void 0)return HEd;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return HEd=W},{mode:1});_.Vm(_.m(function(W){W=_.EV(W,{data:{},useFullWidth:!1});var B=W.data,z=W.useFullWidth;W={};return _.w("teaser-card-view-model",{class:_.kG("ytTeaserCardViewModelHost",(W.ytTeaserCardViewModelUseFullWidth=function(){return z()},W))},_.w(_.V,{cond:function(){return B().onTap},
then:function(G){return _.w(_.fL,{className:"ytTeaserCardViewModelLink",command:G},_.w("div",{class:"ytTeaserCardViewModelImageContainer"},_.w(_.V,{cond:function(){return B().image},
then:function(Y){return _.w(_.iF,{data:Y,className:"ytTeaserCardViewModelImage",alt:""})}})),_.w("p",{class:"ytTeaserCardViewModelCaption"},function(){return B().caption}))}}))},"Xb"),"teaser-card-view-model",{props:{data:_.kz,
useFullWidth:_.kz}});var FpH=new _.t1("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Vm(_.m(function(W){var B=W.data;var z=W.showYtInteractionInContent;var G=function(){return!!B().selectableFeedback};
W=_.A(_.g4(!1,void 0,"qxtgaf"));var Y=W.next().value,d=W.next().value;_.jD(function(){var P=_.k(B().primaryButton,_.Jw);(P==null?0:P.isToggled)&&d(P.isToggled)});
W=_.lF(function(P){if(!G())return!1;if(Y()){var Z;var l=(Z=B().selectableFeedback)==null?void 0:Z.onDeselect}else{var b;l=(b=B().selectableFeedback)==null?void 0:b.onSelect}l&&_.aB(l,{form:{element:P.target}});d(!Y());if(P=_.k(B().primaryButton,_.Jw))P.isToggled=Y();return!1});
var E=function(){if(!G()){var P,Z=(P=B().loggingDirectives)==null?void 0:P.trackingParams;Z&&_.x3(_.dO().resolve(_.Gz),Z)}},v=_.vJD(),c=function(){var P;
return G()?(P=B().selectableFeedback)==null?void 0:P.a11yLabel:void 0},J=function(){return G()?{toggled:Y()}:{}},g=_.dO().resolve(_.Y8(FpH)),t={};
return _.w("yt-feedback-item-renderer",{class:_.kG("ytFeedbackItemRendererHost",(t.ytFeedbackItemRendererSelectableFeedback=G,t)),"on:click":W,"on:keydown":v,title:c,"aria-label":c,"aria-pressed":function(){return G()?Y():void 0},
tabindex:function(){return G()?0:void 0},
role:function(){return G()?"button":void 0}},_.w("div",{class:"ytFeedbackItemRendererContentContainer"},_.w(_.Sc,{data:function(){return B().content}},{videoRenderer:function(P){return _.w(g,{data:P.data,
showYtInteraction:z})},
lockupViewModel:function(P){return _.w(_.eh,{data:P.data,containerType:2})}})),_.w("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.w(_.Sc,{data:function(){return B().primaryButton}},{toggleButtonViewModel:function(P){return _.w(_.Y1,{data:P.data,
buttonShapeOverrides:J,disableExplicitClickLogging:!0,onToggle:E})}})))},"Yb"),"yt-feedback-item-renderer",{props:{data:_.kz,
showYtInteractionInContent:_.kz}});var Ef=function(){var W=_.S.apply(this,arguments)||this;W.isShortsGrid=!1;W.isCompactGrid=!1;W.isShortsPanelGrid=!1;W.renderedFromRichGrid=!1;W.isInFirstColumn=!1;W.noGutterMargins=!1;W.noBottomMargin=!1;W.halfBottomMargin=!1;W.isInlineGroupItem=!1;W.insetMetadata=!1;W.noBottomMarginInAds=!0;W.force16By9ThumbnailAspectRatio=!1;W.useCompactList=!1;W.containerType=2;W.thumbnailTargetWidth=9999;W.isResponsiveGrid=!1;W.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};W.hoverListener=
W.hover.bind(W);W.leaveListener=W.leave.bind(W);W.highlighted=!1;W.JSC$16144_unsubscribeFromInlinePreviewIsActive=function(){};
return W};
_.C(Ef,_.S);_.p=Ef.prototype;_.p.computeContainerType=function(){return this.useCompactList?3:2};
_.p.computeThumbnailTargetWidth=function(){var W;return(W=this.itemWidth)!=null?W:9999};
_.p.updateIsInFirstColumn=function(){var W;this.isInFirstColumn=((W=this.data)==null?void 0:W.colIndex)===0};
_.p.observerContainerType=function(){if(this.lockup){var W=this.lockup;W.containerType=this.containerType;W.sizing=this.sizing;W.typographyBump=this.typographyBump;W.itemWidth=this.itemWidth}this.richGridMedia&&_.r("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.r("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.p.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]]"}}}}}};
_.p.leave=function(W){W=W.relatedTarget;var B=document.querySelector("ytd-video-preview");W&&B&&_.sR(B).contains(W)||this.removeAndCleanupHighlight()};
_.p.hover=function(){var W;!this.highlighted&&(W=this.data)!=null&&W.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(W=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:W,boxShadow:"0 0 0 10px "+W})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.p.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};
_.p.registerHoverHighlightListeners=function(){var W=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16144_unsubscribeFromInlinePreviewIsActive=_.NG(_.Y_(),_.EUr,function(B){W.highlighted&&!B&&W.removeAndCleanupHighlight()})};
_.p.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16144_unsubscribeFromInlinePreviewIsActive()};
_.p.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.p.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.p.getBackgroundColor=function(){var W,B,z=(W=this.data)==null?void 0:(B=W.onFocusEffect)==null?void 0:B.onFocusColor;if(z){if(document.documentElement.hasAttribute("dark")&&(z==null?0:z.darkTheme))return _.M_(z==null?void 0:z.darkTheme);if(z==null?0:z.lightTheme)return _.M_(z==null?void 0:z.lightTheme)}};
_.p.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var W=_.m1(),B,z,G;W&&((B=this.data)==null?0:B.trackingParams)&&((z=this.data)==null?void 0:z.colIndex)!=null&&((G=this.data)==null?void 0:G.rowIndex)!=null&&_.B3(W,_.XF(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.p.isSlimMediaRenderer=function(W){return!!_.k(W==null?void 0:W.content,_.aMR)||!!_.k(W==null?void 0:W.content,M3R)||!!_.k(W==null?void 0:W.content,_.ii)||!!_.k(W==null?void 0:W.content,sHH)};
_.p.isPostRenderer=function(){var W,B;return!!_.k((W=this.data)==null?void 0:W.content,ZaU)||!!_.k((B=this.data)==null?void 0:B.content,rGM)};
_.p.computeIsGameCardShelf=function(){var W;return!!_.k((W=this.data)==null?void 0:W.content,bwu)};
_.p.computeIsMiniGameCardShelf=function(){var W,B;return!!_.k((W=this.data)==null?void 0:W.content,nLM)||!!_.k((B=this.data)==null?void 0:B.content,NR9)};
_.p.computeIsTeaserCard=function(){var W;return!!_.k((W=this.data)==null?void 0:W.content,NR9)};
_.p.computeIsSelectableFeedbackItem=function(){var W,B;return!((B=_.k((W=this.data)==null?void 0:W.content,_.L7M))==null||!B.selectableFeedback)};
_.p.computeContainsLumierePosters=function(){var W,B;return((B=_.k((W=this.data)==null?void 0:W.content,ba4))==null?void 0:B.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.p.computeIsExpandOnHoverCardShelf=function(){var W;return!!_.k((W=this.data)==null?void 0:W.content,SZF)};
_.p.computeIsLinkCardShelf=function(){var W;return!!_.k((W=this.data)==null?void 0:W.content,SsQ)};
_.p.computeIsReelItemStyleAvatarCircle=function(W){var B;return((B=_.k(W==null?void 0:W.content,_.ii))==null?void 0:B.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.p.computeIsLinkCardFullWidth=function(W,B){var z;return((z=_.k(W==null?void 0:W.content,SsQ))==null?void 0:z.useFullWidth)||B<=2};
_.G5.Object.defineProperties(Ef.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&&_.r("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.onFocusEffect)||_.r("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var W;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:(W=this.data)==null?void 0:W.onFocusEffect}}}});
Ef.prototype.richGridHoverHighlightChanged=Ef.prototype.richGridHoverHighlightChanged;Ef.prototype.observerContainerType=Ef.prototype.observerContainerType;Ef.prototype.updateIsInFirstColumn=Ef.prototype.updateIsInFirstColumn;_.Q([_.h(_.TB),_.y("design:type",Object)],Ef.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ef.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Ef.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],Ef.prototype,"ytdLockupBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ef.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.y("design:type",Boolean)],Ef.prototype,"isPost",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.y("design:type",Boolean)],Ef.prototype,"containsLumierePosters",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.y("design:type",Boolean)],Ef.prototype,"isSlimMedia",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.y("design:type",Boolean)],Ef.prototype,"isGameCardShelf",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.y("design:type",Boolean)],Ef.prototype,"isMiniGameCardShelf",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.y("design:type",Boolean)],Ef.prototype,"isTeaserCard",void 0);_.Q([_.F({computed:"computeIsSelectableFeedbackItem(data)"}),_.y("design:type",Boolean)],Ef.prototype,"isSelectableFeedbackItem",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ef.prototype,"isShortsGrid",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ef.prototype,"isSlimGrid",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ef.prototype,"isCompactGrid",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ef.prototype,"isShortsPanelGrid",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.y("design:type",Boolean)],Ef.prototype,"isExpandOnHoverCardShelf",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.y("design:type",Boolean)],Ef.prototype,"isLinkCardShelf",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.m8,value:3}),_.y("design:type",Number)],Ef.prototype,"itemsPerRow",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ef.prototype,"renderedFromRichGrid",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ef.prototype,"isInFirstColumn",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ef.prototype,"noGutterMargins",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ef.prototype,"noBottomMargin",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ef.prototype,"halfBottomMargin",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ef.prototype,"isInlineGroupItem",void 0);_.Q([_.F(),_.y("design:type",Object)],Ef.prototype,"insetMetadata",void 0);_.Q([_.F(),_.y("design:type",Object)],Ef.prototype,"noBottomMarginInAds",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ef.prototype,"isShelfItem",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.y("design:type",Boolean)],Ef.prototype,"isReelItemStyleAvatarCircle",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.y("design:type",Boolean)],Ef.prototype,"isLinkCardFullWidth",void 0);_.Q([_.F(),_.y("design:type",Object)],Ef.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ef.prototype,"useCompactList",void 0);_.Q([_.F(),_.y("design:type",String)],Ef.prototype,"sizing",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Ef.prototype,"typographyBump",void 0);_.Q([_.F(),_.y("design:type",Number)],Ef.prototype,"itemWidth",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Ef.prototype,"isHomeShelf",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Ef.prototype,"isHomeGrid",void 0);
_.Q([_.Hf("yt-lockup-view-model"),_.y("design:type",HTMLElement)],Ef.prototype,"lockup",void 0);_.Q([_.Hf("ytd-rich-grid-media"),_.y("design:type",HTMLElement)],Ef.prototype,"richGridMedia",void 0);_.Q([_.Hf("ytd-ad-slot-renderer"),_.y("design:type",HTMLElement)],Ef.prototype,"adSlotRenderer",void 0);_.Q([_.F({computed:"computeContainerType(useCompactList)"}),_.y("design:type",Object)],Ef.prototype,"containerType",void 0);
_.Q([_.F({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.y("design:type",Object)],Ef.prototype,"thumbnailTargetWidth",void 0);_.Q([_.H("showYtInteractionOnRichItem"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ef.prototype,"showYtInteractionOnRichGridMedia",null);_.Q([_.H("isSelectableFeedbackItem","richGridHoverHighlight"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ef.prototype,"showYtInteractionOnRichItem",null);
_.Q([_.H("typographyBump","isHomeGrid"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ef.prototype,"richTypographyBump",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data","isShortsGrid","isCompactGrid"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ef.prototype,"richGridHoverHighlight",null);_.Q([_.H("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.y("design:type",Number),_.y("design:paramtypes",[])],Ef.prototype,"shortsLockupViewModelAspectRatio",null);
_.Q([_.H("isInlineGroupItem"),_.y("design:type",Number),_.y("design:paramtypes",[])],Ef.prototype,"shortsLockupViewModelScrimStyle",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ef.prototype,"updateIsInFirstColumn",null);_.Q([_.oN("containerType","sizing","typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ef.prototype,"observerContainerType",null);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ef.prototype,"isResponsiveGrid",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ef.prototype,"lockupExperiments",null);_.Q([_.oN("richGridHoverHighlight"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ef.prototype,"richGridHoverHighlightChanged",null);_.Q([_.u({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Ef);
_.SPD=_.sV()(Ef,"ytd-rich-item-renderer",function(){if(gvF===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);gvF=W}W=gvF;return W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var ZX2={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var fj2=_.Bg(_.kq("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var kwX={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},C3k={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},Ij0={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var bE9;var Tn=function(){var W=_.S.apply(this,arguments)||this;W.useResponsiveGrid=!1;W.hidden=!1;W.isShowMoreHidden=!1;W.isShowLessHidden=!0;W.hasExpansionButton=!1;W.isInnerShelf=!1;W.allVideosCount=0;W.allPlaylistCount=0;W.haveSmartDownloadsCompleted=!1;W.restrictContentsOverflow=!1;W.firstShownIndex=0;W.horizontalOffset=0;W.atEnd=!0;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
W.nextClick=function(){var B;(B=W.data)!=null&&B.contents&&(W.firstShownIndex+=W.currentElementsPerRow,W.updateHorizontalOffset(),W.updateHorizontalItemVisibility())};
W.previousClick=function(){var B;(B=W.data)!=null&&B.contents&&(W.firstShownIndex-=W.currentElementsPerRow,W.updateHorizontalOffset(),W.updateHorizontalItemVisibility())};
return W};
_.C(Tn,_.S);_.p=Tn.prototype;
_.p.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.eD("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.p.attached=function(){this.requestElementsPerRow()};
_.p.refreshGridLayoutNew=function(){var W;if((W=this.data)!=null&&W.contents&&this.containerWidth){var B;((B=this.data.responsiveContainerConfiguration)==null?0:B.responsiveSize)?(W=_.KB8(this.data.responsiveContainerConfiguration,this.containerWidth),W=_.$2(Object.assign({},W,{standardUnitMinWidth:this.standardUnitMinWidth}))):W=_.$2({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=W.typographyBump;if(this.elementsPerRow!==
W.numItems||this.gutter!==W.gutter)this.elementsPerRow=W.numItems,this.gutter=W.gutter,this.itemWidth=W.itemWidth,_.kw(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":W.gutter+"px"})}};
_.p.computeSizing=function(){if(!this.isLumiere){var W=_.pa8(this.data);return W?W:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.p.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.p.computeButton=function(W){var B=_.k(W,_.Ep);W=Object.assign({},_.k(W,_.Ep));return B?(W.text||(W.text={simpleText:W.tooltip}),W.style="STYLE_MONO_OUTLINE",W.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",W):B};
_.p.onRowIndexChange=function(){var W=_.m1(),B,z;((B=this.data)==null?0:B.trackingParams)&&((z=this.data)==null?void 0:z.rowIndex)!=null&&W&&_.B3(W,_.XF(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.p.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var W,B=((W=this.getRichItemRenderers()[0])==null?void 0:W.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*B;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.p.requestElementsPerRow=function(){_.v0(this.hostElement,"yt-request-elements-per-row")};
_.p.onUpdateElementsPerRowAction=function(W,B,z,G,Y,d){if(this.containerWidth!==d&&(this.containerWidth=d,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&W&&B&&z&&G&&Y&&(this.elementsPerRow!==W||this.postsPerRow!==B||this.slimItemsPerRow!==z||this.gameCardsPerRow!==G||this.miniGameCardsPerRow!==Y)&&(this.elementsPerRow=W,this.postsPerRow=B,this.slimItemsPerRow=z,this.gameCardsPerRow=G,this.miniGameCardsPerRow=Y,this.updateItemVisibility())};
_.p.isExpandedChanged=function(){var W=this.getRichItemRenderers(),B=this.isExpanded;W.forEach(function(z){z.halfBottomMargin=B})};
_.p.isCollapsedChanged=function(){var W=this.getRichItemRenderers(),B=this.isCollapsed;W.forEach(function(z){z.noBottomMargin=B})};
_.p.getRichItemRenderers=function(){return _.tH(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.p.updateItemVisibility=function(){var W=this;if(this.data&&this.data.contents){var B=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(G,Y){var d;((d=W.data)==null?0:d.isExpanded)?(G.hidden=Y>B-1,G.ytRendererBehavior.markDirty()):G.hidden=Y>W.currentElementsPerRow-1||Y>B-1});
var z=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||z||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||z||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.p.setHeightToSingleRow=function(){var W=this.getRichItemRenderers(),B=Number.parseInt(getComputedStyle(W[0]).marginBottom,10)||0;W=W.slice(0,this.currentElementsPerRow).reduce(function(z,G){return Math.max(z,G.getBoundingClientRect().height+B)},0);
this.contents.style.height=W+"px"};
_.p.focusNextExpandedItem=function(){var W;((W=this.data)==null?0:W.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.p.focusItem=function(W,B){var z=this.getRichItemRenderers();if(z[W]&&(W=z[W].querySelector(".focus-on-expand"))){if(B){var G;(G=z[this.currentElementsPerRow])==null||G.scrollIntoView({behavior:"smooth",block:"center"})}W.focus({preventScroll:!0})}};
_.p.onDataChange=function(){var W=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var B;if((B=this.data)==null?0:B.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.BM(this,function(){W.updateItemVisibility()});
var z;if((z=this.data)==null?0:z.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.kw(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),B=0;B<this.data.contents.length;B++)z=_.k(this.data.contents[B],_.L6)||{},z.colIndex=B,z.rowIndex=this.data.rowIndex};
_.p.handleRerenderDownloadsData=function(){_.r("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())};
_.p.blockInlinePreview=function(W){var B=this,z;return _.T(function(G){(z=B.inlinePreviewIsEnabled)&&B.ytdReduxBehavior.dispatch(_.gDR(!1));return G.return(new Promise(function(Y){W(function(){z&&B.ytdReduxBehavior.dispatch(_.gDR(!0));Y()})}))})};
_.p.expandShelf=function(){var W=this;if(this.data){var B,z=(B=_.k(this.data.showMoreButton,_.Ep))==null?void 0:B.trackingParams;z&&_.x3(_.SK(),z);this.set("data.isExpanded",!0);this.blockInlinePreview(function(G){W.setHeightToSingleRow();W.updateItemVisibility();W.contents.style.height=W.contents.scrollHeight+"px";_.fg.addJob(function(){W.contents.style.height="auto";W.focusNextExpandedItem();G()},2,200)})}};
_.p.collapseShelf=function(){var W=this;return _.T(function(B){if(B.nextAddress==1){if(!W.data)return B.return();W.set("data.isExpanded",!1);return B.yield(W.blockInlinePreview(function(z){W.contents.style.height=W.contents.scrollHeight+"px";W.setHeightToSingleRow();_.fg.addJob(function(){W.updateItemVisibility();W.contents.style.height="auto";z()},2,200)}),2)}_.v0(W.hostElement,"yt-rich-shelf-renderer-collapse",W.data.trackingParams);
W.focusItem(0,!1);_.HG(B)})};
_.p.updateArrowButtonStatus=function(){var W=this.getRichItemRenderers().length;if(!_.r("web_rich_shelf_renderer_use_data_contents_killswitch")){var B,z;W=((B=this.data)==null?void 0:(z=B.contents)==null?void 0:z.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=W};
_.p.onChildElementFocus=function(W){this.hasChevronButtons&&(W=W.target.closest("#contents > *"),this.contents.contains(W)&&(W.offsetLeft<this.horizontalOffset?this.previousClick():W.offsetLeft+W.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.p.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.eD("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.p.updateHorizontalOffset=function(){var W=this.getRichItemRenderers(),B=W.length;if(!_.r("web_rich_shelf_renderer_use_data_contents_killswitch")){var z,G;B=((z=this.data)==null?void 0:(G=z.contents)==null?void 0:G.length)||0}var Y;W=((Y=W[0])==null?void 0:Y.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>B?this.firstShownIndex=B-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*W};
_.p.isSlimMediaShelfRenderer=function(){var W,B,z,G=(z=_.k((W=this.data)==null?void 0:(B=W.contents)==null?void 0:B[0],_.L6))==null?void 0:z.content;return!!(_.k(G,_.aMR)||_.k(G,M3R)||_.k(G,_.ii)||_.k(G,sHH))};
_.p.isGameCardShelf=function(){var W,B,z,G=(z=_.k((W=this.data)==null?void 0:(B=W.contents)==null?void 0:B[0],_.L6))==null?void 0:z.content;return!!_.k(G,bwu)};
_.p.isGnomeShelf=function(){var W,B,z,G=(z=_.k((W=this.data)==null?void 0:(B=W.contents)==null?void 0:B[0],_.L6))==null?void 0:z.content;return!!_.k(G,_.L7M)};
_.p.isMiniGameCardShelf=function(){var W,B,z,G=(z=_.k((W=this.data)==null?void 0:(B=W.contents)==null?void 0:B[0],_.L6))==null?void 0:z.content;return!!_.k(G,nLM)||!!_.k(G,NR9)};
_.p.hasGameBoxArtAvatarStyle=function(){var W;return((W=this.data)==null?void 0:W.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.p.hasRoundedGameBoxArtAvatarStyle=function(){var W;return((W=this.data)==null?void 0:W.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.p.isShortsShelf=function(){var W,B,z,G=(z=_.k((W=this.data)==null?void 0:(B=W.contents)==null?void 0:B[0],_.L6))==null?void 0:z.content;return!!_.k(G,_.ii)||!!_.k(G,sHH)};
_.p.isPostShelfRenderer=function(){var W,B,z,G=(z=_.k((W=this.data)==null?void 0:(B=W.contents)==null?void 0:B[0],_.L6))==null?void 0:z.content;return!(!_.k(G,ZaU)&&!_.k(G,rGM))};
_.p.isLumiereShelf=function(){var W,B,z=_.k((W=this.data)==null?void 0:(B=W.contents)==null?void 0:B[0],_.L6);return!!_.k(z==null?void 0:z.content,ba4)};
_.p.isLumiereShelfWithPosters=function(){var W,B,z=_.k((W=this.data)==null?void 0:(B=W.contents)==null?void 0:B[0],_.L6),G;return((G=_.k(z==null?void 0:z.content,ba4))==null?void 0:G.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.p.isExpandOnHoverCardShelf=function(){var W,B,z,G=(z=_.k((W=this.data)==null?void 0:(B=W.contents)==null?void 0:B[0],_.L6))==null?void 0:z.content;return!!_.k(G,SZF)};
_.p.computeHasFeaturedBadge=function(){var W,B,z=_.k((W=this.data)==null?void 0:(B=W.badges)==null?void 0:B[0],_.Ued);return z?z.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.p.computeHasPaygatedFeaturedBadge=function(){var W,B,z=_.k((W=this.data)==null?void 0:(B=W.badges)==null?void 0:B[0],_.Ued);return z?(z==null?void 0:z.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.p.computeHeaderHidden=function(){var W,B,z,G,Y,d;return!((W=this.data)==null?0:W.icon)&&!((B=this.data)==null?0:B.title)&&!((z=this.data)==null?0:z.subtitle)&&!((G=this.data)==null?0:G.thumbnail)&&!((Y=this.data)==null?0:Y.badges)&&!((d=this.data)==null?0:d.menu)};
_.p.showCtaButton=function(){var W;return!((W=this.data)==null||!W.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.p.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.p.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.p.computeForce16By9ThumbnailAspectRatio=function(){var W,B;return((W=this.data)==null?void 0:(B=W.responsiveContainerConfiguration)==null?void 0:B.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.p.onSectionReactiveDismissal=function(W,B,z){var G,Y;var d=(G=this.data)==null?void 0:(Y=G.targetingContext)==null?void 0:Y.targetGroupId;this&&d&&B.targetGroupId&&d.includes(B.targetGroupId)?(G=this.rowIndex,W=G===void 0?!1:!(B.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&G<=W)):W=!1;W&&(this.hidden=z)};
_.G5.Object.defineProperties(Tn.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var W=this.elementsPerRow;this.isPostShelfRenderer()?W=this.postsPerRow:this.isSlimMediaShelfRenderer()?W=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?W=this.slimItemsPerRow-1:this.isGameCardShelf()?W=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(W=this.miniGameCardsPerRow);return W}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.r("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var W,B;return!((W=this.data)==null||!W.previousButton)&&!((B=this.data)==null||!B.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 W;return((W=_.dO().resolve(_.ij).getCurrentPage())==null?void 0:W.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G;return!((W=this.data)==null?0:(B=W.thumbnail)==null?0:(z=B.accessibility)==null?0:(G=z.accessibilityData)==null?0:G.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Tn.prototype.onChildElementFocus=Tn.prototype.onChildElementFocus;Tn.prototype.handleRerenderDownloadsData=Tn.prototype.handleRerenderDownloadsData;Tn.prototype.onDataChange=Tn.prototype.onDataChange;Tn.prototype.isCollapsedChanged=Tn.prototype.isCollapsedChanged;Tn.prototype.isExpandedChanged=Tn.prototype.isExpandedChanged;Tn.prototype.onRowIndexChange=Tn.prototype.onRowIndexChange;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],Tn.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Tn.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Tn.prototype,"ytdReduxBehavior",void 0);
_.Q([_.F({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.y("design:type",Object)],Tn.prototype,"useResponsiveGrid",void 0);_.Q([_.F(),_.y("design:type",Object)],Tn.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Number)],Tn.prototype,"standardUnitMinWidth",void 0);_.Q([_.F({reflectToAttribute:!0,value:3}),_.y("design:type",Number)],Tn.prototype,"elementsPerRow",void 0);_.Q([_.F({value:3}),_.y("design:type",Number)],Tn.prototype,"postsPerRow",void 0);
_.Q([_.F({value:6}),_.y("design:type",Number)],Tn.prototype,"slimItemsPerRow",void 0);_.Q([_.F({value:6}),_.y("design:type",Number)],Tn.prototype,"gameCardsPerRow",void 0);_.Q([_.F({value:6}),_.y("design:type",Number)],Tn.prototype,"miniGameCardsPerRow",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Tn.prototype,"hidden",void 0);_.Q([_.F(),_.y("design:type",Object)],Tn.prototype,"isShowMoreHidden",void 0);
_.Q([_.F(),_.y("design:type",Object)],Tn.prototype,"isShowLessHidden",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Tn.prototype,"hasExpansionButton",void 0);_.Q([_.H("data.isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Tn.prototype,"isExpanded",null);_.Q([_.H("data.isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Tn.prototype,"isCollapsed",null);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Tn.prototype,"isInnerShelf",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.y("design:type",Boolean)],Tn.prototype,"isShorts",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.y("design:type",Boolean)],Tn.prototype,"isLumiere",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.y("design:type",Boolean)],Tn.prototype,"hasBoxArtThumbnailStyle",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.y("design:type",Boolean)],Tn.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.y("design:type",Boolean)],Tn.prototype,"hasFeaturedBadge",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.y("design:type",Boolean)],Tn.prototype,"hasPaygatedFeaturedBadge",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.y("design:type",Boolean)],Tn.prototype,"isHeaderHidden",void 0);_.Q([_.F({selector:_.J5T}),_.y("design:type",Object)],Tn.prototype,"allVideosCount",void 0);_.Q([_.F({selector:Xv8}),_.y("design:type",Object)],Tn.prototype,"allPlaylistCount",void 0);_.Q([_.F({selector:I$X}),_.y("design:type",Object)],Tn.prototype,"haveSmartDownloadsCompleted",void 0);
_.Q([_.F({selectorArgs:["entitySelectorType"],selector:function(W,B){if(_.r("kevlar_modern_downloads_page")&&B&&B!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var z=W.entities;switch(B){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":B=_.XN(z);W=Ck(B);var G=_.FN(B);z=_.ud(z);z=_.Aq(hKk(G,z,B.length));return{contents:W,subtitle:z};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return z=_.XN(z),{contents:Ck(z)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return z=
_.KA(z),{contents:Ck(z)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return z=_.n3t(z),{contents:Ck(z)};default:_.Oc(new _.oX("Error: entitySelectorType defined but not matched in selector.",W,B))}}}}),
_.y("design:type",Object)],Tn.prototype,"entityDrivenRichShelfData",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.y("design:type",Boolean)],Tn.prototype,"hasTopCtaButton",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.y("design:type",Boolean)],Tn.prototype,"hasBottomCtaButton",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.y("design:type",Boolean)],Tn.prototype,"force16By9ThumbnailAspectRatio",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Tn.prototype,"restrictContentsOverflow",void 0);_.Q([_.F({selector:_.TWt}),_.y("design:type",Boolean)],Tn.prototype,"inlinePreviewIsEnabled",void 0);_.Q([_.F({computed:"computeSizing(data)"}),_.y("design:type",String)],Tn.prototype,"sizing",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],Tn.prototype,"typographyBump",void 0);_.Q([_.F(),_.y("design:type",Number)],Tn.prototype,"itemWidth",void 0);_.Q([_.F(),_.y("design:type",Object)],Tn.prototype,"firstShownIndex",void 0);_.Q([_.F(),_.y("design:type",Object)],Tn.prototype,"horizontalOffset",void 0);_.Q([_.F(),_.y("design:type",Object)],Tn.prototype,"atEnd",void 0);_.Q([_.Hf("#contents"),_.y("design:type",HTMLElement)],Tn.prototype,"contents",void 0);
_.Q([_.oN("data.rowIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tn.prototype,"onRowIndexChange",null);_.Q([_.oN("isExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tn.prototype,"isExpandedChanged",null);_.Q([_.oN("isCollapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tn.prototype,"isCollapsedChanged",null);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tn.prototype,"onDataChange",null);_.Q([_.oN("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tn.prototype,"handleRerenderDownloadsData",null);_.Q([_.IN("focusin"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Tn.prototype,"onChildElementFocus",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data","isHomePage"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Tn.prototype,"isTruncated",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Tn.prototype,"showBottomDivider",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Tn.prototype,"hasChevronButtons",null);
_.Q([_.H("firstShownIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],Tn.prototype,"previousButtonOverride",null);_.Q([_.H("atEnd"),_.y("design:type",Object),_.y("design:paramtypes",[])],Tn.prototype,"nextButtonOverride",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Tn.prototype,"isHomePage",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Tn.prototype,"thumbnailAriaHidden",null);
_.Q([_.H("data"),_.y("design:type",String),_.y("design:paramtypes",[])],Tn.prototype,"entitySelectorType",null);_.Q([_.u({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Tn);
_.jzQ=_.sV()(Tn,"ytd-rich-shelf-renderer",function(){if(bE9===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);bE9=W}W=bE9;return W},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var f7R;_.Vm(_.bM,"yt-badge-view-model",{props:{data:_.kz,class:_.kz,workaroundShortsIsThumbnailBadge:_.kz,modern:_.kz,numBadgesInRow:_.kz}});_.Vm(iP4,"yt-slimline-survey-view-model",{props:{data:_.kz}});var vB=function(){var W=_.S.apply(this,arguments)||this;W.tileLottieAnimationRef={};W.backgroundLottieAnimationRef={};W.isOnHoverBehaviorForLottieEnabled=!0;W.useBiggerShowcaseImage=_.r("enable_desktop_search_bigger_thumbs");W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return W};
_.C(vB,_.S);_.p=vB.prototype;_.p.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.p.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.p.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var W=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);W!==this.hasTile&&this.set("hasTile",W);W=this.hasLogo(this.data)||!!this.data.badgeText;W!==this.hasMetadata&&this.set("hasMetadata",W);W=this.data.overflowButton?!1:W;W!==this.showLogoImage&&this.set("showLogoImage",W);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.p.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.p.currentColorChanged=function(){this.updateButtonPalette()};
_.p.computeBackgroundStyle=function(W){if(W&&this.data){var B=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var z=_.gS((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);z&&B.push('background-image: url("'+z+'");')}var G;((G=W.basicColorData)==null?void 0:G.backgroundColor)!==void 0&&B.push("background-color: "+_.aE(W.basicColorData.backgroundColor)+";");return B.join("")}};
_.p.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W)};
_.p.getCurrentLogo=function(W,B){if(W)return B?W.darkLogoImage:W.lightLogoImage};
_.p.getCurrentStaticTileImage=function(W,B){if(this.hasStaticTile(W))return W.darkTileImage?B?W.darkTileImage:W.tileImage:W.tileImage};
_.p.computeTitleStyle=function(W){if(this.data&&this.data.title&&W&&W.basicColorData&&W.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.M_(W.basicColorData.foregroundTitleColor)+";"};
_.p.computeSubtitleStyle=function(W){if(this.data&&this.data.subtitle&&W&&W.basicColorData&&W.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.M_(W.basicColorData.foregroundBodyColor)+";"};
_.p.computeSupplementalStyle=function(W){if(this.data&&this.data.supplementalText&&W&&W.supplementalTextColor!==void 0)return W=_.M_(W.supplementalTextColor),"color:"+W+";--yt-endpoint-color:"+W+";--yt-endpoint-hover-color:"+W+";--yt-endpoint-visited-color:"+W+";--yt-formatted-string-bold-font-weight:700;"};
_.p.computeDismissIconStyle=function(W){var B,z;if((W==null?0:(B=W.dismissButtonColorData)==null?0:B.foregroundTitleColor)&&(W==null?0:(z=W.dismissButtonColorData)==null?0:z.backgroundColor))return"--yt-button-color:"+_.aE(W.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.aE(W.dismissButtonColorData.backgroundColor)+";"};
_.p.computeOverflowIconStyle=function(W){var B,z;if((W==null?0:(B=W.dismissButtonColorData)==null?0:B.foregroundTitleColor)&&(W==null?0:(z=W.dismissButtonColorData)==null?0:z.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.aE(W.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.aE(W.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.aE(W.dismissButtonColorData.foregroundTitleColor)+";"};
_.p.computeBannerStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.p.computeLocation=function(W){switch(W==null?void 0:W.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.p.shouldShowTileSection=function(W,B,z){return!this.shouldExpandLogo(W,B,z)&&B};
_.p.shouldShowExpandedLogoSection=function(W,B,z){return this.shouldExpandLogo(W,B,z)&&W!==void 0&&this.hasLogo(W)};
_.p.shouldExpandLogo=function(W,B,z){return W&&B?!1:z>=2};
_.p.hasStaticTile=function(W){return!(W==null||!W.tileImage)};
_.p.hasTileLottie=function(W){var B;return!!(W==null?0:(B=W.tileLottie)==null?0:B.url)};
_.p.hasLogo=function(W){return this.getCurrentLogo(W,this.isDarkTheme)!==void 0};
_.p.getLogoHeight=function(W){return this.logoWithPadding(W)?"26":"20"};
_.p.getExpandedLogoHeight=function(W){return this.logoWithPadding(W)?"31":"24"};
_.p.getLogoImageId=function(W){return this.logoWithPadding(W)?"logo-image-with-padding":"logo-image"};
_.p.getMaxTitleFontSize=function(W){return W.overrideTitleMaxFontSize?String(W.overrideTitleMaxFontSize):"36"};
_.p.hasBackgroundLottie=function(W){var B;return!!(W==null?0:(B=W.backgroundLottie)==null?0:B.url)};
_.p.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var W,B;(W=this.tileLottieAnimationRef)==null||(B=W.lottieEl)==null||B.play();var z,G;(z=this.backgroundLottieAnimationRef)==null||(G=z.lottieEl)==null||G.play()}};
_.p.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var W,B;(W=this.tileLottieAnimationRef)==null||(B=W.lottieEl)==null||B.pause();var z,G;(z=this.backgroundLottieAnimationRef)==null||(G=z.lottieEl)==null||G.pause()}};
_.p.pauseLottie=function(){var W,B;(W=this.tileLottieAnimationRef)==null||(B=W.lottieEl)==null||B.pause();var z,G;(z=this.backgroundLottieAnimationRef)==null||(G=z.lottieEl)==null||G.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.p.performPrimaryButtonAction=function(){var W,B,z;((W=this.data)==null?0:(B=W.primaryButton)==null?0:(z=B.buttonRenderer)==null?0:z.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.p.requestElementsPerRow=function(){_.v0(this.hostElement,"yt-request-elements-per-row")};
_.p.updateButtonPalette=function(){if(this.data&&this.currentColorData){var W;((W=this.data.dismissButton)==null?0:W.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 B;if((B=this.data.primaryButton)==null?0:B.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 z;if((z=this.data.secondaryButton)==
null?0:z.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 G;((G=this.data.primaryButton)==null?0:G.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var Y;((Y=this.data.secondaryButton)==null?0:Y.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var d;((d=this.data.primaryButton)==null?0:d.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.p.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var W=this.getTileLottieDataBasedOnTheme(),B,z;if(W.url!==((B=this.tileLottiePlayerProps)==null?void 0:(z=B.animationConfig)==null?void 0:z.path)){var G,Y;(G=this.tileLottieAnimationRef)==null||(Y=G.lottieEl)==null||Y.destroy();var d;this.isOnHoverBehaviorForLottieEnabled=!((d=W.settings)==null?0:d.autoplay);var E,v;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(v=(E=W.settings)==null?void 0:E.autoplay)!=null?v:!1,loop:this.getLottieLoopValue(W.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof W.url==="string"?this.tileLottiePlayerProps.animationConfig.path=W.url:this.tileLottiePlayerProps.animationConfig.animationData=W.url}}};
_.p.getOverflowButton=function(W){return _.k(W.overflowButton,l6u)};
_.p.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var W=this.getBackgroundLottieDataBasedOnTheme(),B,z;if(W.url!==((B=this.backgroundLottiePlayerProps)==null?void 0:(z=B.animationConfig)==null?void 0:z.path)){var G,Y;(G=this.backgroundLottieAnimationRef)==null||(Y=G.lottieEl)==null||Y.destroy();var d;this.isOnHoverBehaviorForLottieEnabled=!((d=W.settings)==null?0:d.autoplay);var E,v;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(v=(E=W.settings)==null?void 0:E.autoplay)!=null?v:!1,loop:this.getLottieLoopValue(W.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof W.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=W.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
W.url}}};
_.p.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var W;((W=this.tileLottieAnimationRef)==null?void 0:W.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var B;((B=this.backgroundLottieAnimationRef)==null?void 0:B.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.p.getTileLottieDataBasedOnTheme=function(){var W;if(this.isDarkTheme&&((W=this.data)==null?0:W.darkThemeTileLottie))return this.data.darkThemeTileLottie;var B;return((B=this.data)==null?0:B.tileLottie)?this.data.tileLottie:{}};
_.p.getBackgroundLottieDataBasedOnTheme=function(){var W;if(this.isDarkTheme&&((W=this.data)==null?0:W.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var B;return((B=this.data)==null?0:B.backgroundLottie)?this.data.backgroundLottie:{}};
_.p.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
_.p.getLottieLoopValue=function(W){return W?W.loop!==void 0?W.loop:W.loopCount?W.loopCount-1:!0:!0};
_.p.logoWithPadding=function(W){var B,z,G;return(W=(B=this.getCurrentLogo(W,this.isDarkTheme))==null?void 0:(z=B.thumbnails)==null?void 0:(G=z[0])==null?void 0:G.height)&&W%31===0?!0:!1};
vB.prototype.currentColorChanged=vB.prototype.currentColorChanged;vB.prototype.themeChanged=vB.prototype.themeChanged;vB.prototype.dataChanged=vB.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],vB.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],vB.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],vB.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],vB.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],vB.prototype,"primaryButton",void 0);_.Q([_.F(),_.y("design:type",Object)],vB.prototype,"secondaryButton",void 0);
_.Q([_.F({reflectToAttribute:!0,value:3}),_.y("design:type",Number)],vB.prototype,"elementsPerRow",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],vB.prototype,"isDarkTheme",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],vB.prototype,"hasTile",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],vB.prototype,"hasMetadata",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],vB.prototype,"showLogoImage",void 0);_.Q([_.F(),_.y("design:type",Object)],vB.prototype,"currentColorData",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.y("design:type",String)],vB.prototype,"bannerStyle",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.y("design:type",String)],vB.prototype,"location",void 0);
_.Q([_.F(),_.y("design:type",Object)],vB.prototype,"tileLottiePlayerProps",void 0);_.Q([_.F(),_.y("design:type",Object)],vB.prototype,"tileLottieAnimationRef",void 0);_.Q([_.F(),_.y("design:type",Object)],vB.prototype,"backgroundLottiePlayerProps",void 0);_.Q([_.F(),_.y("design:type",Object)],vB.prototype,"backgroundLottieAnimationRef",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],vB.prototype,"useBiggerShowcaseImage",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],vB.prototype,"isHideEnclosingAction",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vB.prototype,"dataChanged",null);_.Q([_.jJ("isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vB.prototype,"themeChanged",null);
_.Q([_.jJ("currentColorData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vB.prototype,"currentColorChanged",null);_.Q([_.u({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],vB);
_.D(vB,"ytd-statement-banner-renderer",function(){if(f7R!==void 0)return f7R;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return f7R=W},{mode:1});var OEU;var cB=function(){var W=_.S.apply(this,arguments)||this;W.isSearch=!1;W.hideShelfHeader=!1;W.engagementPanel=!1;W.disableMouseScroll=!0;W.useFloorScrolling=!0;W.modernTypography=_.r("web_modern_typography");return W};
_.C(cB,_.S);cB.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.kq("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.kq("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
cB.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
cB.prototype.onDataChanged=cB.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],cB.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],cB.prototype,"isSearch",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],cB.prototype,"hideShelfHeader",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],cB.prototype,"engagementPanel",void 0);_.Q([_.F(),_.y("design:type",Object)],cB.prototype,"disableMouseScroll",void 0);_.Q([_.F(),_.y("design:type",Object)],cB.prototype,"useFloorScrolling",void 0);_.Q([_.F(),_.y("design:type",Object)],cB.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],cB.prototype,"modernTypography",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cB.prototype,"onDataChanged",null);_.Q([_.u({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],cB);
_.D(cB,"ytd-reel-shelf-renderer",function(){if(OEU!==void 0)return OEU;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return OEU=W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var XF7;var KpM;KpM=_.ak(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.uTM=_.sY(KpM);var ei7=_.m(function(W){var B=W.data;W=W.useSmallFont;var z={},G={};return _.w("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.w(_.V,{cond:function(){return B().favicon},
then:function(Y){return _.w(_.iF,{data:Y,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.w("div",{class:"ytChannelExternalLinkViewModelContainer"},_.w(_.r0,{text:function(){return B().title},
className:_.kG("ytChannelExternalLinkViewModelTitle",(z.ytChannelExternalLinkViewModelTitleSmallFont=W,z)),ellipsisTruncate:!0,userInput:!0}),_.w(_.r0,{text:function(){return B().link},
className:_.kG("ytChannelExternalLinkViewModelLink",(G.ytChannelExternalLinkViewModelLinkSmallFont=W,G)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Zb");
ei7.idomCompat=!0;_.Vm(ei7,"yt-channel-external-link-view-model",{props:{data:_.kz,useSmallFont:_.kz}});_.eX("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var wX=function(){var W=_.S.apply(this,arguments)||this;W.revealButtonClass="button";W.businessEmailDisplayState="HIDE_SECTION";return W};
_.C(wX,_.S);_.p=wX.prototype;_.p.refit=function(){var W=this;_.WJ(function(){_.wV(W.hostElement,"yt-refit-popups-action")});
_.BM(this,function(){_.wV(W.hostElement,"yt-refit-popups-action")})};
_.p.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.NO(_.uTM),this.businessEmailDisplayState="CAPTCHA")};
_.p.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"};
_.p.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.p.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"}}}};
_.p.computeEmailHref=function(W){return"mailto:"+W};
_.p.computeSafeUrl=function(W){if(W)return _.yN(W)};
_.p.linkEndpoint=function(W){return _.k(W.onTap,_.NH)};
_.p.linkEndpointToHref=function(W){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(W))};
_.p.onYtServiceRequestCompleted=function(W){var B;if((B=W.detail.data)==null?0:B.businessEmail)this.businessEmail=W.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var z;if((z=W.detail.data)==null?0:z.errorMessage)this.businessEmailErrorMessage=W.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.p.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var W=this.JSC$16258_captchaTextarea.value;if(W){W={recaptcha_response_token:W,channel_id:this.metadata.channelId};var B=_.k(this.metadata.onBusinessEmailRevealClickCommand,_.NH);B&&this.ytComponentBehavior.resolveCommand(B,{form:W})}}};
_.p.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.G5.Object.defineProperties(wX.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var W;return _.k((W=this.data)==null?void 0:W.metadata,Xo6)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.k(this.metadata.businessEmailRevealButton,_.wP)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var W=new URL(this.metadata.canonicalChannelUrl);return W.host+W.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 _.k(this.metadata.learnMoreOnTap,_.NH)}}});
wX.prototype.onYtServiceRequestCompleted=wX.prototype.onYtServiceRequestCompleted;wX.prototype.businessEmailMetadataChanged=wX.prototype.businessEmailMetadataChanged;wX.prototype.refit=wX.prototype.refit;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],wX.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],wX.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.Hf("#g-recaptcha-response"),_.y("design:type",HTMLTextAreaElement)],wX.prototype,"JSC$16258_captchaTextarea",void 0);_.Q([_.F(),_.y("design:type",Object)],wX.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],wX.prototype,"revealButtonClass",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],wX.prototype,"metadata",null);
_.Q([_.H("metadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],wX.prototype,"revealButton",null);_.Q([_.H("metadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],wX.prototype,"channelDisplayUrl",null);_.Q([_.jJ("metadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wX.prototype,"refit",null);_.Q([_.H("metadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],wX.prototype,"formattedDescription",null);
_.Q([_.H("metadata","learnMoreCommand"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wX.prototype,"shouldRendereVerifiedPhoneStatus",null);_.Q([_.H("metadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],wX.prototype,"learnMoreCommand",null);_.Q([_.F(),_.y("design:type",String)],wX.prototype,"businessEmailDisplayState",void 0);_.Q([_.F(),_.y("design:type",String)],wX.prototype,"businessEmail",void 0);
_.Q([_.F(),_.y("design:type",String)],wX.prototype,"businessEmailErrorMessage",void 0);_.Q([_.jJ("metadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wX.prototype,"businessEmailMetadataChanged",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],wX.prototype,"onYtServiceRequestCompleted",null);_.Q([_.u({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],wX);
_.D(wX,"ytd-about-channel-renderer",function(){if(XF7!==void 0)return XF7;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return XF7=W},{mode:1});var mB6;var Vk=function(){return _.S.apply(this,arguments)||this};
_.C(Vk,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Vk.prototype,"data",void 0);_.Q([_.u({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Vk);
_.D(Vk,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(mB6!==void 0)return mB6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return mB6=W},{mode:1});var xBH;var JA=function(){return _.S.apply(this,arguments)||this};
_.C(JA,_.S);JA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],JA.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],JA.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],JA.prototype,"aligment",void 0);_.Q([_.u({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],JA);
_.D(JA,"ytd-channel-list-sub-menu-renderer",function(){if(xBH!==void 0)return xBH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return xBH=
W},{mode:1});var DBT;var gX=function(){return _.S.apply(this,arguments)||this};
_.C(gX,_.S);gX.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}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],gX.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],gX.prototype,"data",void 0);_.Q([_.u({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],gX);
_.D(gX,"ytd-channel-sub-menu-renderer",function(){if(DBT!==void 0)return DBT;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return DBT=W},{mode:1});var Qz9;var y_U;var tA=function(){var W=_.S.apply(this,arguments)||this;W.isCompact=!1;return W};
_.C(tA,_.S);_.G5.Object.defineProperties(tA.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var W,B;return((B=_.k((W=this.data)==null?void 0:W.endpoint,_.DD))==null?void 0:B.target)==="TARGET_NEW_WINDOW"}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],tA.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],tA.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],tA.prototype,"isCompact",void 0);_.Q([_.H("isCompact"),_.y("design:type",Number),_.y("design:paramtypes",[])],tA.prototype,"thumbnailWidth",null);
_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tA.prototype,"openNewWindow",null);_.Q([_.u({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],tA);
_.D(tA,"ytd-media-lockup-renderer",function(){if(y_U!==void 0)return y_U;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return y_U=W},{mode:1});var qPT;var sf=function(){return _.S.apply(this,arguments)||this};
_.C(sf,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],sf.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],sf.prototype,"data",void 0);_.Q([_.u({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],sf);
_.D(sf,"ytd-structured-description-channel-lockup-renderer",function(){if(qPT!==void 0)return qPT;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return qPT=W},{mode:1});var nvM;var PB=function(){var W=_.S.apply(this,arguments)||this;W.isCompact=!1;W.collections=_.r("web_modern_collections_v2");W.collectionsStackColor=_.r("modernize_structured_description_playlist_lockups_v2");return W};
_.C(PB,_.S);PB.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:_.r("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.G5.Object.defineProperties(PB.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G,Y,d;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(W=this.data)==null?void 0:(B=W.thumbnail)==null?void 0:B.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(z=this.data)==null?void 0:(G=z.thumbnail)==null?void 0:G.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(Y=this.data)==null?void 0:(d=Y.thumbnail)==
null?void 0:d.vibrantColorPalette:void 0}}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],PB.prototype,"componentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],PB.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],PB.prototype,"showSidePanelThumbnailOverlay",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PB.prototype,"isCompact",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],PB.prototype,"collections",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PB.prototype,"collectionsStackColor",void 0);_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],PB.prototype,"twoLineTitle",null);
_.Q([_.H("data","collections","collectionsStackColor"),_.y("design:type",Object),_.y("design:paramtypes",[])],PB.prototype,"collectionStack",null);_.Q([_.u({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],PB);
_.D(PB,"ytd-structured-description-playlist-lockup-renderer",function(){if(nvM!==void 0)return nvM;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return nvM=W},{mode:1});var NKR;var ZC=function(){return _.S.apply(this,arguments)||this};
_.C(ZC,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],ZC.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ZC.prototype,"data",void 0);_.Q([_.u({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],ZC);
_.D(ZC,"ytd-structured-description-video-lockup-renderer",function(){if(NKR!==void 0)return NKR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return NKR=W},{mode:2});var rX=function(){return _.S.apply(this,arguments)||this};
_.C(rX,_.S);
rX.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}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],rX.prototype,"data",void 0);_.Q([_.u({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],rX);
_.D(rX,"ytd-compact-infocard-renderer",function(){if(Qz9!==void 0)return Qz9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Qz9=W},{mode:1});var $BM;var kj=function(){var W=_.S.apply(this,arguments)||this;W.useModernCollectionsV2=_.r("web_modern_collections_v2");return W};
_.C(kj,_.S);kj.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.G5.Object.defineProperties(kj.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],kj.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],kj.prototype,"ytdReduxBehavior",void 0);_.Q([_.F({selector:_.qE}),_.y("design:type",Object)],kj.prototype,"isGridViewEnabled",void 0);
_.Q([_.H("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],kj.prototype,"watchFeedBigThumbs",null);_.Q([_.H("isGridViewEnabled","data"),_.F({reflectToAttribute:!0,value:"168"}),_.y("design:type",String),_.y("design:paramtypes",[])],kj.prototype,"thumbnailWidth",null);_.Q([_.H("isGridViewEnabled","data"),_.F({reflectToAttribute:!0,value:"94"}),_.y("design:type",String),_.y("design:paramtypes",[])],kj.prototype,"customThumbnailSize",null);
_.Q([_.F(),_.y("design:type",Object)],kj.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],kj.prototype,"useModernCollectionsV2",void 0);_.Q([_.u({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],kj);
_.D(kj,"ytd-compact-playlist-renderer",function(){if($BM!==void 0)return $BM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $BM=W},{mode:1});var Lpd;var lC=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");W.roundedContainer=!0;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return W};
_.C(lC,_.S);_.p=lC.prototype;_.p.attached=function(){this.requestElementsPerRow()};
_.p.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"}}}};
_.p.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.p.computeViewStyle=function(W){return W.style?W.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.p.onUpdateElementsPerRowAction=function(W){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&W===1};
_.p.requestElementsPerRow=function(){_.v0(this.hostElement,"yt-request-elements-per-row")};
lC.prototype.dataChanged=lC.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],lC.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],lC.prototype,"actionHandlerBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],lC.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],lC.prototype,"hideThumbnail",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.y("design:type",String)],lC.prototype,"viewStyle",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],lC.prototype,"darkerDarkTheme",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],lC.prototype,"roundedContainer",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lC.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],lC);
_.D(lC,"ytd-compact-promoted-item-renderer",function(){if(Lpd!==void 0)return Lpd;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Lpd=W},{mode:1});var UB6;var Cq=function(){var W=_.S.apply(this,arguments)||this;W.collections=_.r("web_modern_collections_v2");return W};
_.C(Cq,_.S);Cq.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Cq.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Cq.prototype.onYtNavigate=function(W,B){var z=this;if(B.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",B)){var G=this.get("watchEndpoint.videoId",B.endpoint),Y=_.wV(this.hostElement,"yt-get-current-video-id-action")[0];_.r("kevlar_mix_handle_first_endpoint_different")&&G&&Y&&G!==Y||(W.stopPropagation(),_.vA().getPlayerPromise().then(function(d){if(d.getPlayerState()===0&&z.data.secondaryNavigationEndpoint)var E=z.data.secondaryNavigationEndpoint;else{E=
Object.assign({},B.endpoint);var v=_.k(E.commandMetadata,_.Z4);v&&(d=Math.floor(d.getCurrentTime()),v.url=_.aJ(v.url,{t:d}),!_.r("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(v=_.k(E,_.W0)))&&(v.startTimeSeconds=d)}_.v0(z.hostElement,"yt-navigate",{endpoint:E})}))}};
_.G5.Object.defineProperties(Cq.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G,Y,d;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(B=W.thumbnail)==null?void 0:B.sampledThumbnailColor,vibrantColorPalette:(z=this.data)==null?void 0:(G=z.thumbnail)==null?void 0:G.vibrantColorPalette,darkColorPalette:(Y=this.data)==null?void 0:(d=Y.thumbnail)==null?void 0:d.darkColorPalette,experimentEnabled:this.collections}}}});
Cq.prototype.onYtNavigate=Cq.prototype.onYtNavigate;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Qe.YtEndpointBehavior),_.y("design:type",Object)],Cq.prototype,"ytEndpointBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Cq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],Cq.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.h(_.P$),_.y("design:type",Object)],Cq.prototype,"ytdLockupBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Cq.prototype,"ytdReduxBehavior",void 0);_.Q([_.F({selector:_.qE}),_.y("design:type",Object)],Cq.prototype,"isGridViewEnabled",void 0);_.Q([_.H("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Cq.prototype,"watchFeedBigThumbs",null);
_.Q([_.H("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],Cq.prototype,"thumbnailWidth",null);_.Q([_.F(),_.y("design:type",Object)],Cq.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Cq.prototype,"collections",void 0);_.Q([_.H("data","collections"),_.y("design:type",Object),_.y("design:paramtypes",[])],Cq.prototype,"collectionStack",null);
_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Cq.prototype,"onYtNavigate",null);_.Q([_.u({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Cq);
_.D(Cq,"ytd-compact-radio-renderer",function(){if(UB6!==void 0)return UB6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return UB6=W},{mode:1});var Muu;var Ih=function(){return _.S.apply(this,arguments)||this};
_.C(Ih,_.S);Ih.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Ih.prototype.computeRendererStyle=function(W){return W.style?W.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.Q([_.F(),_.y("design:type",Object)],Ih.prototype,"data",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ih.prototype,"rendererBehavior",void 0);_.Q([_.F({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.y("design:type",String)],Ih.prototype,"rendererStyle",void 0);_.Q([_.u({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Ih);
_.D(Ih,"ytd-compact-text-promo-renderer",function(){if(Muu!==void 0)return Muu;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Muu=W},{mode:1});var a77;var oh=function(){var W=_.S.apply(this,arguments)||this;W.isShortsStyle=!1;return W};
_.C(oh,_.S);_.p=oh.prototype;_.p.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"}}}};
_.p.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.v0(this.hostElement,"yt-disable-lockup-interaction"):_.v0(this.hostElement,"yt-enable-lockup-interaction"))};
_.p.isMetaBlockEmpty=function(W){return!W||!W.longBylineText&&!W.shortBylineText&&!W.shortViewCountText&&!W.viewCountText};
_.p.computeHasOneLineTitle=function(W){return this.forceOneLineTitle||!(W==null||!W.buttons)};
_.p.computeDisableInteraction=function(){var W;return!((W=this.data)==null?0:W.navigationEndpoint)};
_.p.hasSingularTopStandaloneBadge=function(){var W;return!((W=this.data)==null||!W.topStandaloneBadge)};
_.G5.Object.defineProperties(oh.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("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 W;return this.hasSingularTopStandaloneBadge()?[(W=this.data)==null?void 0:W.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var W;return this.shouldShowTopBadges?((W=this.data)==null?void 0:W.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
oh.prototype.disableInteractionChanged=oh.prototype.disableInteractionChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],oh.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],oh.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],oh.prototype,"ytdLockupBehavior",void 0);
_.Q([_.h(_.TB),_.y("design:type",Object)],oh.prototype,"ytdReduxBehavior",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.y("design:type",Boolean)],oh.prototype,"metaBlockEmpty",void 0);_.Q([_.F({selector:_.qE}),_.y("design:type",Object)],oh.prototype,"isGridViewEnabled",void 0);_.Q([_.H("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oh.prototype,"watchFeedBigThumbs",null);
_.Q([_.H("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],oh.prototype,"thumbnailWidth",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"isShortsStyle",void 0);_.Q([_.F(),_.y("design:type",Object)],oh.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.y("design:type",Boolean)],oh.prototype,"hasOneLineTitle",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],oh.prototype,"hideThumbnail",void 0);_.Q([_.F(),_.y("design:type",Boolean)],oh.prototype,"forceOneLineTitle",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.y("design:type",Boolean)],oh.prototype,"disableInteraction",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],oh.prototype,"musicMetadataVideoLockup",void 0);
_.Q([_.oN("disableInteraction"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oh.prototype,"disableInteractionChanged",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oh.prototype,"shouldShowTopBadges",null);_.Q([_.H("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],oh.prototype,"topBadges",null);
_.Q([_.H("shouldShowTopBadges","data"),_.y("design:type",Array),_.y("design:paramtypes",[])],oh.prototype,"inlineMetadataBadges",null);_.Q([_.H("shouldShowTopBadges"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oh.prototype,"shouldShowBadgesBelowMetadata",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],oh.prototype,"compactTitleClass",null);_.Q([_.u({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],oh);
_.D(oh,"ytd-compact-video-renderer",function(){if(a77!==void 0)return a77;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return a77=W},{mode:_.PJ("kevlar_poly_si_batch_j067")?1:2});var RiR;_.eX("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var hA=function(){return _.S.apply(this,arguments)||this};
_.C(hA,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],hA.prototype,"data",void 0);_.Q([_.u({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],hA);
_.D(hA,"ytd-counterfactual-renderer",function(){if(RiR!==void 0)return RiR;var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return RiR=W},{mode:1});var WZD;var HB=function(){var W=_.S.apply(this,arguments)||this;W.hidden=!1;return W};
_.C(HB,_.S);HB.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.dO().resolve(_.p4).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
HB.prototype.computeHidden=function(W){return!!W};
_.G5.Object.defineProperties(HB.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}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],HB.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.y("design:type",Object)],HB.prototype,"hidden",void 0);_.Q([_.H("data.label"),_.y("design:type",String),_.y("design:paramtypes",[])],HB.prototype,"label",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],HB.prototype,"value",null);
_.Q([_.u({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],HB);
_.D(HB,"ytd-dropdown-item-renderer",function(){if(WZD!==void 0)return WZD;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return WZD=W},{mode:1});var BrH;var zUH;var F1=function(){return _.S.apply(this,arguments)||this};
_.C(F1,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],F1.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],F1.prototype,"data",void 0);_.Q([_.F({computed:"getSimpleString(data.label)"}),_.y("design:type",String)],F1.prototype,"label",void 0);_.Q([_.u({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],F1);
_.D(F1,"ytd-navigation-dropdown-item-renderer",function(){if(zUH!==void 0)return zUH;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return zUH=W},{mode:1});var SB=function(){var W=_.S.apply(this,arguments)||this;W.disabled=!1;W.value="";W.noLabelFloat=!1;W.noUnderline=!1;W.usePrimaryColor=!1;W.hasBackground=!1;W.verticalAlign="top";W.autosize=!1;W.minAutosizeWidth=100;W.autosizeFont="14px Roboto";return W};
_.C(SB,_.S);_.p=SB.prototype;_.p.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"}}}};
_.p.open=function(){this.inputEl.open()};
_.p.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.p.dataChanged=function(){this.reset()};
_.p.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("value-changed",this.value))};
_.p.stopPropagation=function(W){W.stopPropagation()};
_.p.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var W=this.canvas.getContext("2d");W&&(W.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(W.measureText(this.inputEl.value).width)+24)+"px")}};
_.p.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var W=0,B=this.data.entries.length;W<B;W++){var z=this.data.entries[W],G;for(G in z)if(z.hasOwnProperty(G)){var Y=z[G];if("isSelected"in Y&&Y.isSelected)return"stringValue"in Y?Y.stringValue||"":"int32Value"in Y?Y.int32Value||0:0}}return null};
_.p.updateValueFromBinding=function(W){this.value=W.detail.value};
_.G5.Object.defineProperties(SB.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 W=0,B=this.data.entries.length;W<B;W++){var z=this.data.entries[W],G;for(G in z)if(z.hasOwnProperty(G)){var Y=z[G];if("isSelected"in Y&&Y.isSelected&&"label"in Y)return this.ytRendererBehavior.getSimpleString(Y.label)}}return null}}});
SB.prototype.autoSizeLabel=SB.prototype.autoSizeLabel;SB.prototype.stopPropagation=SB.prototype.stopPropagation;SB.prototype.valueChangedForBinding=SB.prototype.valueChangedForBinding;SB.prototype.dataChanged=SB.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],SB.prototype,"ytRendererStamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],SB.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SB.prototype,"disabled",void 0);_.Q([_.F(),_.y("design:type",Object)],SB.prototype,"value",void 0);_.Q([_.F(),_.y("design:type",Object)],SB.prototype,"noLabelFloat",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SB.prototype,"noUnderline",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],SB.prototype,"theme",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SB.prototype,"usePrimaryColor",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SB.prototype,"hasBackground",void 0);_.Q([_.F(),_.y("design:type",Object)],SB.prototype,"verticalAlign",void 0);_.Q([_.F(),_.y("design:type",Object)],SB.prototype,"autosize",void 0);_.Q([_.F(),_.y("design:type",Object)],SB.prototype,"minAutosizeWidth",void 0);_.Q([_.F(),_.y("design:type",Object)],SB.prototype,"autosizeFont",void 0);
_.Q([_.Hf("#entries"),_.y("design:type",Object)],SB.prototype,"entries",void 0);_.Q([_.Hf("#input"),_.y("design:type",Object)],SB.prototype,"inputEl",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SB.prototype,"dataChanged",null);_.Q([_.jJ("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SB.prototype,"valueChangedForBinding",null);
_.Q([_.IN("iron-overlay-opened"),_.IN("iron-overlay-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],SB.prototype,"stopPropagation",null);_.Q([_.IN("iron-select"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SB.prototype,"autoSizeLabel",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],SB.prototype,"label",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],SB);
_.D(SB,"ytd-dropdown-renderer",function(){if(BrH!==void 0)return BrH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return BrH=W},{mode:1});var GgD;var bC=function(){var W=_.S.apply(this,arguments)||this;W.isConstrainedList=!1;return W};
_.C(bC,_.S);bC.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"}}}};
bC.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
bC.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
bC.prototype.computeViewAllHidden=function(W,B){return W||!B.viewAllEndpoint};
bC.prototype.fillRestIfNoShowMore=bC.prototype.fillRestIfNoShowMore;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],bC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.bh.YtLazyListBehavior),_.y("design:type",Object)],bC.prototype,"ytLazyListBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],bC.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],bC.prototype,"isConstrainedList",void 0);_.Q([_.jJ("data","canShowMore"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bC.prototype,"fillRestIfNoShowMore",null);_.Q([_.u({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],bC);
_.D(bC,"ytd-expanded-shelf-contents-renderer",function(){if(GgD!==void 0)return GgD;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return GgD=W},{mode:_.PJ("kevlar_poly_si_batch_j025")?1:2});var YUd;var jB=function(){return _.S.apply(this,arguments)||this};
_.C(jB,_.S);jB.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}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],jB.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],jB.prototype,"data",void 0);_.Q([_.u({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],jB);
_.D(jB,"ytd-feed-channel-filter-header-renderer",function(){if(YUd!==void 0)return YUd;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return YUd=W},{mode:1});var dPR;var pEu;var AxR;var fq=function(){return _.S.apply(this,arguments)||this};
_.C(fq,_.S);_.p=fq.prototype;_.p.onClick=function(W){var B,z=(B=this.data)==null?void 0:B.sectionEndpoint;!_.p2(_.AH(W),this.hostElement,["A".toString()])&&z&&_.v0(this.hostElement,"yt-navigate",{endpoint:z})};
_.p.computeHasSectionEndpoint=function(W){return(W==null?void 0:W.sectionEndpoint)!==void 0};
_.p.computeShowHeaderAsLink=function(W){return(W==null?void 0:W.header)!==void 0&&(W==null?void 0:W.sectionEndpoint)!==void 0};
_.p.computeShowSubheaderAsLink=function(W){return(W==null?void 0:W.subheader)!==void 0&&(W==null?void 0:W.sectionEndpoint)!==void 0&&(W==null?void 0:W.header)===void 0};
_.p.getHeaderAsLinkClass=function(W){var B=[],z;(W==null?0:(z=W.headerIcon)==null?0:z.iconType)&&B.push("header-link-active");return B.join(" ")};
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],fq.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],fq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],fq.prototype,"data",void 0);
_.Q([_.F({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],fq.prototype,"hasSectionEndpoint",void 0);_.Q([_.F({computed:"computeShowHeaderAsLink(data)"}),_.y("design:type",Boolean)],fq.prototype,"showHeaderAsLink",void 0);_.Q([_.F({computed:"computeShowSubheaderAsLink(data)"}),_.y("design:type",Boolean)],fq.prototype,"showSubheaderAsLink",void 0);_.Q([_.u({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],fq);
_.D(fq,"ytd-medical-panel-section-renderer",function(){if(AxR!==void 0)return AxR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return AxR=W},{mode:1});var Of=function(){var W=_.S.apply(this,arguments)||this;W.isExpanded=!1;W.roundedContainer=!0;W.skipRoundingTop=!1;W.toggleExpandableSection=function(){W.isExpanded=!W.isExpanded};
return W};
_.C(Of,_.S);
Of.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]]"}}}}}};
Of.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Of.prototype.dataChanged=Of.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Of.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Of.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Of.prototype,"isExpanded",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Of.prototype,"roundedContainer",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Of.prototype,"skipRoundingTop",void 0);_.Q([_.F(),_.y("design:type",Object)],Of.prototype,"toggleExpandableSection",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Of.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Of);
_.D(Of,"ytd-medical-panel-content-renderer",function(){if(pEu!==void 0)return pEu;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return pEu=W},{mode:1});_.eX("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var X1=function(){var W=_.S.apply(this,arguments)||this;W.roundedContainer=!0;W.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");W.hasTitle=!1;W.linkIcon="OPEN_IN_NEW";W.isDismissed=!1;return W};
_.C(X1,_.S);
X1.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"}}}};
X1.prototype.computeHasTitle=function(W){return!(W==null||!W.title)};
X1.prototype.onClick=function(W){var B,z=(B=this.data)==null?void 0:B.headerEndpoint;!_.p2(_.AH(W),this.hostElement,["BUTTON".toString()])&&z&&this.ytComponentBehavior.resolveCommand(z)};
_.G5.Object.defineProperties(X1.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 W;return((W=this.data)==null?void 0:W.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?void 0:W.disableBottomDivider)||!((B=this.data)==null?0:B.title)}}});
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],X1.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],X1.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],X1.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],X1.prototype,"roundedContainer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],X1.prototype,"amsterdamEnabled",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.y("design:type",Object)],X1.prototype,"hasTitle",void 0);
_.Q([_.F({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.H("data.background"),_.y("design:type",Object),_.y("design:paramtypes",[])],X1.prototype,"background",null);_.Q([_.F({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.H("data.titleStyle"),_.y("design:type",Object),_.y("design:paramtypes",[])],X1.prototype,"titleStyle",null);
_.Q([_.F({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.H("data.titleStyle"),_.y("design:type",Object),_.y("design:paramtypes",[])],X1.prototype,"showLinkIcon",null);_.Q([_.F(),_.y("design:type",String)],X1.prototype,"linkIcon",void 0);_.Q([_.F({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],X1.prototype,"hideDivider",null);
_.Q([_.F({selectorArgs:["data.dismissStateEntityKey"],selector:function(W,B){W=_.P3(W.entities,"dismissState",B);return(W==null?void 0:W.isDismissed)||(W==null?void 0:W.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(W==null?void 0:W.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.y("design:type",Object)],X1.prototype,"isDismissed",void 0);_.Q([_.u({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],X1);
_.D(X1,"ytd-info-panel-container-renderer",function(){if(dPR!==void 0)return dPR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dPR=W},{mode:1});var iU7;_.eX("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var Kq=function(){var W=_.S.apply(this,arguments)||this;W.modernTypography=_.r("web_modern_typography");return W};
_.C(Kq,_.S);Kq.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Kq.prototype.computeStyle=function(W){return W?W:""};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Kq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Kq.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.y("design:type",String)],Kq.prototype,"titleStyle",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Kq.prototype,"modernTypography",void 0);_.Q([_.u({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],Kq);
_.D(Kq,"ytd-item-section-header-renderer",function(){if(iU7!==void 0)return iU7;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return iU7=W},{mode:1});var EWQ;var TrF,vW9=function(){return TrF!==void 0?TrF:TrF=document.createElement("template")};
document.head.appendChild(vW9().content);var cxD;_.uC=new _.t1("VOTING_ANIMATION_CONTROLLER_TOKEN");var VbH=_.m(function(W){var B=W.data;var z=_.LG("div"),G=_.LG("div");W=_.A(_.g4("VOTE_STATUS_NONE",void 0,"YPH5mf"));var Y=W.next().value,d=W.next().value,E=_.hg(u8T,function(){var P;return(P=B())==null?void 0:P.entityKey}),v=_.r("web_enable_voting_animation")||_.r("enable_music_web_cairo_voting_animation");
_.jD(function(){var P;((P=B().initialState)==null?0:P.status)&&d(B().initialState.status)});
var c=function(){var P,Z,l=(Z=(P=B().initialState)==null?void 0:P.votes)!=null?Z:0,b;P=(b=B().initialState)==null?void 0:b.status;return P==="VOTE_STATUS_UPVOTED"?l-1:P==="VOTE_STATUS_DOWNVOTED"?l+1:l},J=function(){return Y()==="VOTE_STATUS_UPVOTED"?c()+1:Y()==="VOTE_STATUS_DOWNVOTED"?c()-1:c()},g=function(P){var Z=P?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
d(Z);var l=J(),b=_.dO().resolve(_.Y8(_.uC)),O=E();O&&(P&&(O==null?0:O.upvoteDefaultButtonOnTap)?_.aB(O.upvoteDefaultButtonOnTap,{form:{element:z.value},disableClickTracking:!0}):(O==null?0:O.upvoteToggledButtonOnTap)&&_.aB(O.upvoteToggledButtonOnTap,{form:{element:z.value},disableClickTracking:!0}));var K;P=(K=O==null?void 0:O.enableOptimisticReordering)!=null?K:B().enableOptimisticReordering;v&&b&&B().itemId&&P&&wED(b,B().itemId,l,Z)},t=function(P){var Z=P?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
d(Z);var l=J(),b=_.dO().resolve(_.Y8(_.uC)),O=E();O&&(P&&(O==null?0:O.downvoteDefaultButtonOnTap)?_.aB(O.downvoteDefaultButtonOnTap,{form:{element:G.value},disableClickTracking:!0}):(O==null?0:O.downvoteToggledButtonOnTap)&&_.aB(O.downvoteToggledButtonOnTap,{form:{element:G.value},disableClickTracking:!0}));var K;P=(K=O==null?void 0:O.enableOptimisticReordering)!=null?K:B().enableOptimisticReordering;v&&b&&B().itemId&&P&&wED(b,B().itemId,l,Z)};
W={};W=_.kG("ytVotingViewModelVoteCount",(W.ytVotingViewModelVoteCountDisabled=function(){return B().isDisabled},W));
return _.w("voting-view-model",{class:"ytVotingViewModelHost"},_.w("div",{el:z},_.w(_.Sc,{data:function(){var P=_.k(B().upvoteButton,_.Jw);return{toggleButtonViewModel:Object.assign({},P,{isToggled:Y()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(P){return _.w(_.Y1,{data:P.data,
onToggle:g})}})),_.w("div",{class:W},function(){var P,Z,l;
return Y()==="VOTE_STATUS_UPVOTED"?(P=B().initialState)==null?void 0:P.compactVotesUpvoted:Y()==="VOTE_STATUS_DOWNVOTED"?(Z=B().initialState)==null?void 0:Z.compactVotesDownvoted:(l=B().initialState)==null?void 0:l.compactVotes}),_.w("div",{el:G},_.w(_.Sc,{data:function(){var P=_.k(B().downvoteButton,_.Jw);
return{toggleButtonViewModel:Object.assign({},P,{isToggled:Y()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(P){return _.w(_.Y1,{data:P.data,
onToggle:t})}})))},"$b");_.Vm(_.m(function(W){var B=W.data;return _.w("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.w("div",{class:_.kG("ytEngagementBarViewModelEngagementBarWrapper",W.className)},_.w(_.Sc,{data:function(){return B().actions}},{votingViewModel:VbH})))},"ac"),"engagement-bar-view-model",{props:{data:_.kz,
className:_.kz}});var eB=function(){var W=_.S.apply(this,arguments)||this;W.playlistVotingAnimationEnabled=_.r("web_enable_voting_animation");W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.downloadState="DOWNLOAD_STATE_UNKNOWN";W.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";W.offlineVideoPolicyExpirationTimestamp=0;return W};
_.C(eB,_.S);_.p=eB.prototype;_.p.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"}}}};
_.p.canReorderChanged=function(){this.persistentDragHandle=_.r("kevlar_playlist_drag_handles")&&this.canReorder};
_.p.onDrag=function(){if(this.thumbnail){var W=_.tH(this.thumbnail).querySelector("yt-image");W&&(W.shouldRenderLazy=!1)}};
_.p.onMenuOverlayChanged=function(W,B){this.menuOpened=B};
_.p.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.p.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.p.onContentsTap=function(W){var B,z=(B=this.data)==null?void 0:B.serviceEndpoints;if(z&&z.length===1&&_.k(z[0],qmR)&&!_.p2(_.AH(W),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(z[0]);else{var G;(B=(G=this.data)==null?void 0:G.navigationEndpoint)&&_.r("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Jx6(_.dO().resolve(_.Qb),B):(_.qG().playlistSuggestionsShelfActivation=
!0,_.gW7(_.dO().resolve(_.Qb),B)):B&&!_.p2(_.AH(W),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.r("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.v0(this.hostElement,"yt-navigate",{endpoint:B}):this.ytComponentBehavior.resolveCommand(B))}};
_.p.computeStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.p.computeThumbnailWidth=function(W){return W==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.p.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=Ez0(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))}};
_.p.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.p.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.p.dataChanged=function(){if(this.data){var W,B,z,G=((W=this.downloadRenderData)==null?void 0:W.badges)&&((B=this.downloadRenderData)==null?void 0:B.badges)!==((z=this.data)==null?void 0:z.badges),Y,d,E;W=((Y=this.downloadRenderData)==null?void 0:Y.thumbnailOverlays)&&((d=this.downloadRenderData)==null?void 0:d.thumbnailOverlays)!==((E=this.data)==null?void 0:E.thumbnailOverlays);(!this.downloadRenderData||G||W)&&this.downloadStateChanged()}};
_.p.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var W,B,z=(W=this.data.menu)==null?void 0:(B=W.menuRenderer)==null?void 0:B.items;if(z)for(W=_.A(z),B=W.next();!B.done;B=W.next())if(B=B.value,z=void 0,_.k((z=B.menuServiceItemRenderer)==null?void 0:z.serviceEndpoint,_.pS)){var G=z=void 0,Y=void 0;B=(z=B)==null?void 0:(G=z.menuServiceItemRenderer)==null?void 0:(Y=G.serviceEndpoint)==null?void 0:Y.playlistEditEndpoint;Y=G=void 0;if(z=(G=B)==null?void 0:(Y=G.actions)==null?void 0:
Y[0])G=void 0,z.setVideoId=(G=this.data)==null?void 0:G.setVideoId;Y=G=z=void 0;if(B=(z=B)==null?void 0:(G=z.clientActions)==null?void 0:(Y=G[0])==null?void 0:Y.playlistRemoveVideosAction)z=void 0,B.setVideoIds=[(z=this.data)==null?void 0:z.setVideoId]}}};
_.G5.Object.defineProperties(eB.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
eB.prototype.setVideoIdChanged=eB.prototype.setVideoIdChanged;eB.prototype.dataChanged=eB.prototype.dataChanged;eB.prototype.downloadStateChanged=eB.prototype.downloadStateChanged;eB.prototype.onMenuOverlayChanged=eB.prototype.onMenuOverlayChanged;eB.prototype.canReorderChanged=eB.prototype.canReorderChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],eB.prototype,"ytdReduxBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],eB.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],eB.prototype,"ytdLockupBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],eB.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],eB.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],eB.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],eB.prototype,"canReorder",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],eB.prototype,"menuOpened",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],eB.prototype,"handleIsHovered",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],eB.prototype,"persistentDragHandle",void 0);_.Q([_.F(),_.y("design:type",Object)],eB.prototype,"downloadRenderData",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],eB.prototype,"styleType",void 0);_.Q([_.F({computed:"computeThumbnailWidth(data.style)"}),_.y("design:type",Number)],eB.prototype,"thumbnailWidth",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],eB.prototype,"isDownloads",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],eB.prototype,"playlistVotingAnimationEnabled",void 0);
_.Q([_.F({selector:nA,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],eB.prototype,"downloadProgress",void 0);_.Q([_.F(),_.y("design:type",Number)],eB.prototype,"relativeDateReference",void 0);_.Q([_.F({selector:_.yg,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],eB.prototype,"transferState",void 0);_.Q([_.F({selector:HIr,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],eB.prototype,"downloadState",void 0);
_.Q([_.F({selector:wzk,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],eB.prototype,"offlinePolicyAction",void 0);_.Q([_.F({selector:V8r,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],eB.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.Q([_.F({selector:gUk,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],eB.prototype,"entityInfo",void 0);_.Q([_.F({selector:_.xO}),_.y("design:type",Boolean)],eB.prototype,"miniplayerIsActive",void 0);
_.Q([_.H("data"),_.y("design:type",String),_.y("design:paramtypes",[])],eB.prototype,"playlistVideoId",null);_.Q([_.Hf("#thumbnail"),_.y("design:type",Object)],eB.prototype,"thumbnail",void 0);_.Q([_.jJ("canReorder"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eB.prototype,"canReorderChanged",null);
_.Q([_.IN("yt-menu-overlay-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Boolean]),_.y("design:returntype")],eB.prototype,"onMenuOverlayChanged",null);_.Q([_.jJ("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eB.prototype,"downloadStateChanged",null);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eB.prototype,"dataChanged",null);_.Q([_.jJ("data.setVideoId"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eB.prototype,"setVideoIdChanged",null);_.Q([_.u({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],eB);
_.D(eB,"ytd-playlist-video-renderer",function(){if(cxD!==void 0)return cxD;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);W.content.insertBefore(vW9().content.cloneNode(!0),W.content.firstChild);return cxD=W},{mode:1});var tbQ;var mU=function(){return _.S.apply(this,arguments)||this};
_.C(mU,_.S);_.Q([_.F(),_.y("design:type",Object)],mU.prototype,"data",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],mU.prototype,"rendererBehavior",void 0);_.Q([_.u({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],mU);
_.D(mU,"ytd-premium-browse-footer-renderer",function(){if(tbQ!==void 0)return tbQ;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tbQ=W},{mode:1});var sQD;var xj=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return W};
_.C(xj,_.S);_.p=xj.prototype;_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.handleDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.p.computeHeaderLogoThumbnail=function(W,B){if(W)return B?W.darkLogo:W.lightLogo};
_.p.computeHeaderLogoHeight=function(W,B){var z,G,Y;return(W=(z=this.computeHeaderLogoThumbnail(W,B))==null?void 0:(G=z.thumbnails)==null?void 0:(Y=G[0])==null?void 0:Y.height)&&W%31===0?"31":"24"};
_.p.computeHeaderLogoMarginBottom=function(W,B){return this.computeHeaderLogoHeight(W,B)==="24"?"0":"-7"};
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],xj.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],xj.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],xj.prototype,"isDarkTheme",void 0);_.Q([_.F({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.y("design:type",Object)],xj.prototype,"themeLogo",void 0);
_.Q([_.F({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.y("design:type",String)],xj.prototype,"logoHeight",void 0);_.Q([_.F({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.y("design:type",String)],xj.prototype,"logoMarginBottom",void 0);_.Q([_.u({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],xj);
_.D(xj,"ytd-primetime-promo-header-renderer",function(){if(sQD!==void 0)return sQD;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return sQD=W},{mode:1});var PZH;var rxM=_.m(function(W){var B=_.lF(function(Y){var d;(d=W.onClick)==null||d.call(W,Y)}),z={},G={};
return _.w("yt-shelf-header-layout",{class:_.kG("yt-shelf-header-layout",(z["yt-shelf-header-layout--disable-horizontal-padding"]=W.disableHorizontalPadding,z["yt-shelf-header-layout--disable-vertical-padding"]=W.disableVerticalPadding,z["yt-shelf-header-layout--responsive"]=W.useResponsiveLayout,z["yt-shelf-header-layout--narrow"]=function(){var Y,d;return((Y=W.useResponsiveLayout)==null?void 0:Y.call(W))&&((d=W.forceSmallLayout)==null?void 0:d.call(W))},z["yt-shelf-header-layout--is-overlay"]=W.isOverlay,
z["yt-shelf-header-layout--tappable"]=W.isInteractive,z)),
"on:click":B,tabindex:function(){var Y;return((Y=W.isInteractive)==null?0:Y.call(W))?0:void 0}},_.w(_.V,{cond:W.leadingIcon,
then:function(Y){return _.w("div",{class:"yt-shelf-header-layout__leading-icon"},_.w(_.hY,{icon:Y}))},
else:function(){return _.w(_.V,{cond:W.hasLeadingImage,then:function(){var Y,d={};return _.w("div",{class:_.kG("yt-shelf-header-layout__leading-image",(d["yt-shelf-header-layout__leading-image--circular-image"]=W.circularImage,d))},(Y=W.leadingImage)==null?void 0:Y.call(W))}})}}),_.w("div",{class:"yt-shelf-header-layout__label-container"},_.w(_.V,{cond:W.hasSuperlabel,
then:function(){var Y;return _.w("div",{class:"yt-shelf-header-layout__superlabel"},(Y=W.superlabel)==null?void 0:Y.call(W))}}),_.w("div",{class:"yt-shelf-header-layout__title-row"},_.w(ZUU,{text:W.title,
className:_.kG("yt-shelf-header-layout__title",(G["yt-shelf-header-layout__title--small-title"]=W.forceSmallLayout,G)),tagLevel:W.tagLevel}),_.w(_.V,{cond:W.hasDetail,then:function(){var Y;return _.w("div",{class:"yt-shelf-header-layout__detail"},(Y=W.detail)==null?void 0:Y.call(W))}})),_.w(_.V,{cond:W.hasSublabel,
then:function(){var Y;return _.w("div",{class:"yt-shelf-header-layout__sublabel"},(Y=W.sublabel)==null?void 0:Y.call(W))}})),_.w(_.V,{cond:W.hasTrailingActions,
then:function(){var Y;return _.w("div",{class:"yt-shelf-header-layout__trailing-actions"},(Y=W.trailingActions)==null?void 0:Y.call(W))}}))},"bc");
rxM.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var ZUU=_.m(function(W){var B=W.text;var z=W.className;var G=W.tagLevel;return _.w(_.HR,null,_.w(_.oJ,{when:function(){return(G==null?void 0:G())===0}},function(){return _.w("h2",{class:z},B())}),_.w(_.oJ,{when:function(){return(G==null?void 0:G())===1}},function(){return _.w("h3",{class:z},B())}),_.w(_.oJ,{when:function(){return(G==null?void 0:G())===2}},function(){return _.w("h4",{class:z},B())}),_.w(_.hW,null,function(){return _.w("h2",{class:z},B())}))},"cc");var CZH,kg6,lyM;_.DC=_.m(function(W){var B=W.className;var z=W.data;var G=W.disableHorizontalPadding;var Y=W.disableVerticalPadding;var d=W.forceSmallLayout;var E=W.useResponsiveLayout;W=W.isOverlay;return _.w("yt-section-header-view-model",{class:_.kG("ytSectionHeaderViewModelHost",B),style:_.oK({"background-color":function(){return I6(z().backgroundColor)?_.aE(I6(z().backgroundColor)):void 0}})},_.w(rxM,{hasDetail:!1,
title:function(){return _.w(_.r0,{text:function(){return z().headline}})},
hasTitle:!0,sublabel:function(){return _.w(kg6,{data:z})},
hasSublabel:function(){return!!z().sublabel||!!z().bottomBadge},
superlabel:function(){return _.w(lyM,{data:z})},
hasSuperlabel:function(){return!!z().superlabel||!!z().topBadge},
leadingImage:function(){return _.w(CZH,{leadingAccessory:function(){return z().leadingAccessory}})},
hasLeadingImage:function(){return!!z().leadingAccessory},
trailingActions:function(){return _.w(_.Sc,{data:function(){return z().trailingActions}},{flexibleActionsViewModel:_.AB})},
hasTrailingActions:function(){return!!z().trailingActions},
disableHorizontalPadding:G,disableVerticalPadding:Y,forceSmallLayout:d,useResponsiveLayout:E,isOverlay:W,isInteractive:function(){return!!_.x2(z().rendererContext)},
onClick:function(v){if(_.Dp(z().rendererContext)){var c=_.x2(z().rendererContext);c&&_.L8(c,{form:{element:v.target,event:v}})}}}))},"dc");
CZH=_.m(function(W){var B=W.leadingAccessory;return _.w(_.AW,null,_.w(_.V,{cond:function(){var z;return(z=B().image)!=null?z:_.UM(B().themedImage)},
then:function(z){return _.w(_.iF,{data:z,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.w(_.V,{cond:function(){return _.k(B().avatar,_.yi)},
then:function(z){return _.w(_.ds,{data:z})}}))},"ec");
kg6=_.m(function(W){var B=W.data;return _.w(_.AW,null,_.w(_.V,{cond:function(){return _.k(B().bottomBadge,Fm4)},
then:function(z){var G={};return _.w(_.bM,{data:z,class:_.kG((G.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!z()&&!!B().sublabel},G))})}}),_.w(_.V,{cond:function(){return B().sublabel},
then:function(z){return _.w(_.r0,{text:z})}}))},"fc");
lyM=_.m(function(W){var B=W.data;return _.w(_.AW,null,_.w(_.V,{cond:function(){return _.k(B().topBadge,Fm4)},
then:function(z){var G={};return _.w(_.bM,{data:z,class:_.kG((G.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!z()&&!!B().superlabel},G))})}}),_.w(_.V,{cond:function(){return B().superlabel},
then:function(z){return _.w(_.r0,{text:z})}}))},"gc");_.Vm(_.DC,"yt-section-header-view-model",{props:{data:_.kz,className:_.kz,disableHorizontalPadding:_.kz,disableVerticalPadding:_.kz,forceSmallLayout:_.kz,useResponsiveLayout:_.kz,isOverlay:_.kz}});_.eX("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Qk=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return W};
_.C(Qk,_.S);_.p=Qk.prototype;_.p.attached=function(){this.requestElementsPerRow()};
_.p.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"}}}};
_.p.onDataChange=function(){var W=this;_.BM(this,function(){W.updateItemVisibility()})};
_.p.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W,this.updateItemVisibility())};
_.p.updateItemVisibility=function(){var W=this;this.data&&this.data.panels&&_.tH(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(B,z){B.hidden=z>W.elementsPerRow-1})};
_.p.requestElementsPerRow=function(){_.v0(this.hostElement,"yt-request-elements-per-row")};
Qk.prototype.onDataChange=Qk.prototype.onDataChange;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Qk.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],Qk.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Qk.prototype,"actionHandlerBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Qk.prototype,"data",void 0);_.Q([_.F({value:3}),_.y("design:type",Number)],Qk.prototype,"elementsPerRow",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Qk.prototype,"onDataChange",null);_.Q([_.u({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Qk);
_.D(Qk,"ytd-primetime-promo-renderer",function(){if(PZH!==void 0)return PZH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return PZH=W},{mode:1});var IyF;var yk=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return W};
_.C(yk,_.S);yk.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
yk.prototype.handleButtonRefreshAction=function(W){if(W=_.k(W,zW9))this.set("data.button",W.membershipButton),this.notifyPath("data.button")};
_.G5.Object.defineProperties(yk.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?void 0:(B=W.avatars)==null?void 0:B.slice(0,8))||[]}}});
_.Q([_.F(),_.y("design:type",Object)],yk.prototype,"data",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],yk.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],yk.prototype,"rendererBehavior",void 0);_.Q([_.H("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],yk.prototype,"avatars",null);
_.Q([_.u({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],yk);
_.D(yk,"ytd-recognition-shelf-renderer",function(){if(IyF!==void 0)return IyF;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return IyF=W},{mode:1});var oWM;var hUT;var qQ=function(){var W=_.S.apply(this,arguments)||this;W.modernButtons=_.r("web_modern_buttons");return W};
_.C(qQ,_.S);_.p=qQ.prototype;
_.p.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]]"}}}}}};
_.p.dataChanged=function(){this.collapsed=!0};
_.p.computeVisibleItems=function(W,B){return W!==void 0&&W.items?B?W.items.slice(0,this.data.collapsedItemCount):W.items:[]};
_.p.computeHideShowMore=function(W,B,z){return W>=B||!z};
_.p.computeHideShowAll=function(W,B,z){return!(W&&B)||z};
_.p.onMoreClick=function(){this.collapsed=!1};
_.G5.Object.defineProperties(qQ.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.r("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.EA("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.r("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
qQ.prototype.dataChanged=qQ.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],qQ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],qQ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],qQ.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],qQ.prototype,"isSearch",void 0);
_.Q([_.F({computed:"computeVisibleItems(data,collapsed)"}),_.y("design:type",Array)],qQ.prototype,"visibleItems",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],qQ.prototype,"collapsed",void 0);_.Q([_.F({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.y("design:type",Boolean)],qQ.prototype,"hideShowMore",void 0);
_.Q([_.F({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.y("design:type",Boolean)],qQ.prototype,"hideShowAll",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],qQ.prototype,"modernButtons",void 0);_.Q([_.H("isSearch"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qQ.prototype,"typographyBump",null);
_.Q([_.H("isSearch"),_.y("design:type",Object),_.y("design:paramtypes",[])],qQ.prototype,"lockupExperiments",null);_.Q([_.H("isSearch"),_.y("design:type",String),_.y("design:paramtypes",[])],qQ.prototype,"thumbnailWidth",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qQ.prototype,"dataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],qQ);
_.D(qQ,"ytd-vertical-list-renderer",function(){if(hUT!==void 0)return hUT;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return hUT=W},{mode:1});var HUM=_.ak(["#"]);_.eX("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var nq=function(){var W=_.S.apply(this,arguments)||this;W.isConstrainedList=!1;W.modernTypography=_.r("web_modern_typography");return W};
_.C(nq,_.S);_.p=nq.prototype;
_.p.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"}}}};
_.p.computeThumbnailStyle=function(W){return W||""};
_.p.computePlaceAnnotationUnderTitle=function(){var W;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((W=this.data)==null?void 0:W.thumbnailStyle)||"")};
_.p.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W)||_.BjQ(HUM)};
_.p.computeIsPromoShelf=function(W){var B;return(W=W==null?void 0:(B=W[0])==null?void 0:B.metadataBadgeRenderer)?W.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.p.computePlaceBadgeBesideTitle=function(W){var B;return(W==null?0:(B=W[0])==null?0:B.metadataBadgeRenderer)?!this.computeIsPromoShelf(W):!1};
_.p.computeMenuIcon=function(W){return this.computeIsPromoShelf(W)?"yt-icons:more_vert":"yt-icons:more"};
_.p.onDataChange=function(){var W,B;((W=this.data)==null?0:(B=W.content)==null?0:B.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.p.onLockupRequested=function(W){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&W.detail&&W.detail.videoIds){for(var B=this.data.content.gridRenderer.items,z=new Set,G=_.A(W.detail.videoIds),Y=G.next();!Y.done;Y=G.next())z.add(Y.value);W.detail.returnValue=B.filter(function(d){return d.gridVideoRenderer&&d.gridVideoRenderer.videoId&&z.has(d.gridVideoRenderer.videoId)}).map(function(d){return d.gridVideoRenderer})}};
_.p.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
nq.prototype.onLockupRequested=nq.prototype.onLockupRequested;nq.prototype.onDataChange=nq.prototype.onDataChange;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],nq.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],nq.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.Mp),_.y("design:type",Object)],nq.prototype,"ironResizableBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],nq.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],nq.prototype,"isSearch",void 0);_.Q([_.F(),_.y("design:type",Object)],nq.prototype,"isConstrainedList",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("kevlar_fluid_dismiss")}}),
_.y("design:type",Boolean)],nq.prototype,"enableFluidDismiss",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.y("design:type",String)],nq.prototype,"thumbnailStyle",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],nq.prototype,"modernTypography",void 0);_.Q([_.F({computed:"computeMenuIcon(data.badges)"}),_.y("design:type",String)],nq.prototype,"menuIcon",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nq.prototype,"onDataChange",null);_.Q([_.IN("yt-lockup-requested"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nq.prototype,"onLockupRequested",null);_.Q([_.u({is:"ytd-shelf-renderer",disableElementRegistration:!0})],nq);
_.D(nq,"ytd-shelf-renderer",function(){if(oWM!==void 0)return oWM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return oWM=W},{mode:1});var FZ9;var NQ=function(){return _.S.apply(this,arguments)||this};
_.C(NQ,_.S);NQ.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.G5.Object.defineProperties(NQ.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],NQ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],NQ.prototype,"data",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],NQ.prototype,"isPlaylist",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],NQ.prototype,"isClipList",void 0);
_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],NQ.prototype,"isPlaylistPageWithFilters",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],NQ.prototype,"hasTitle",null);_.Q([_.F(),_.H("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.y("design:type",Object),_.y("design:paramtypes",[])],NQ.prototype,"isRightAligned",null);
_.Q([_.u({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],NQ);
_.D(NQ,"ytd-sort-filter-header-renderer",function(){if(FZ9!==void 0)return FZ9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return FZ9=W},{mode:1});var SUu;var Lq=function(){var W=_.S.apply(this,arguments)||this;W.enableRightArrowHidden=_.r("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return W};
_.C(Lq,_.S);Lq.prototype.attached=function(){var W=this;this.enableRightArrowHidden&&(this.JSC$16387_throttledOnResize=new _.an(function(){var B;(B=W.ytdHorizontalListBehavior)==null||B.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var B;
(B=W.JSC$16387_throttledOnResize)==null||B.fire()}),this.resizeObserver.observe(this.hostElement))};
Lq.prototype.detached=function(){if(this.enableRightArrowHidden){var W;(W=this.resizeObserver)==null||W.disconnect();var B;(B=this.JSC$16387_throttledOnResize)==null||B.dispose()}};
Lq.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]]"}}}}}};
Lq.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.G5.Object.defineProperties(Lq.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.r("enable_creator_details_shelf_m2")){var W=[],B;((B=this.data)==null?0:B.creatorVideosButton)&&W.push(this.data.creatorVideosButton);var z;((z=this.data)==null?0:z.creatorAboutButton)&&W.push(this.data.creatorAboutButton);B=_.A(this.data.creatorCustomUrlButtons||[]);for(z=B.next();!z.done;z=B.next())W.push(z.value);return W}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.r("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Lq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.jv.YtdHorizontalListBehavior),_.y("design:type",Object)],Lq.prototype,"ytdHorizontalListBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Lq.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Lq.prototype,"engagementPanel",void 0);
_.Q([_.F(),_.y("design:type",Object)],Lq.prototype,"enableRightArrowHidden",void 0);_.Q([_.H("enableRightArrowHidden","atEnd"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Lq.prototype,"hideRightArrow",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Lq.prototype,"creatorCustomUrlButtons",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data","creatorCustomUrlButtons"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Lq.prototype,"showCreatorCustomUrlButtons",null);_.Q([_.H("showCreatorCustomUrlButtons"),_.y("design:type",Number),_.y("design:paramtypes",[])],Lq.prototype,"channelAvatarSize",null);_.Q([_.u({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],Lq);
_.D(Lq,"ytd-video-description-infocards-section-renderer",function(){if(SUu!==void 0)return SUu;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return SUu=W},{mode:_.PJ("kevlar_poly_si_batch_j067")?1:2});var bUR;var Uf=function(){return _.S.apply(this,arguments)||this};
_.C(Uf,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Uf.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Uf.prototype,"data",void 0);_.Q([_.F({computed:"computeIcon_(data.infoIcon)"}),_.y("design:type",Object)],Uf.prototype,"infoIcon",void 0);_.Q([_.u({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Uf);
_.D(Uf,"ytd-eom-settings-disclaimer-renderer",function(){if(bUR!==void 0)return bUR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return bUR=W},{mode:1});var jQ6;var MQ=function(){return _.S.apply(this,arguments)||this};
_.C(MQ,_.S);_.G5.Object.defineProperties(MQ.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.suppressPaddingDisclaimer)}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],MQ.prototype,"componentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],MQ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],MQ.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],MQ.prototype,"suppressPaddingDisclaimer",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],MQ);
_.D(MQ,"ytd-product-list-header-renderer",function(){if(jQ6!==void 0)return jQ6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return jQ6=W},{mode:1});var fyR;var ah=function(){return _.S.apply(this,arguments)||this};
_.C(ah,_.S);ah.prototype.computeThumbnailStyle=function(W){if(W&&(W=_.M_(W)))return"background-color:"+W+";"};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ah.prototype,"rendererBehaviors",void 0);_.Q([_.F(),_.y("design:type",Object)],ah.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],ah);
_.D(ah,"ytd-hashtag-tile-renderer",function(){if(fyR!==void 0)return fyR;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return fyR=W},{mode:1});var OUH;var Rh=function(){return _.S.apply(this,arguments)||this};
_.C(Rh,_.S);Rh.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}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Rh.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Rh);
_.D(Rh,"ytd-sponsorships-alert-renderer",function(){if(OUH!==void 0)return OUH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return OUH=W},{mode:1});var XE6;var WU=function(){return _.S.apply(this,arguments)||this};
_.C(WU,_.S);WU.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.G5.Object.defineProperties(WU.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.Q([_.h(_.c$),_.y("design:type",Object)],WU.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],WU.prototype,"ytdLockupBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],WU.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.Q([_.F({selector:_.qE}),_.y("design:type",Object)],WU.prototype,"isGridViewEnabled",void 0);
_.Q([_.H("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],WU.prototype,"watchFeedBigThumbs",null);_.Q([_.H("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],WU.prototype,"thumbnailWidth",null);_.Q([_.F(),_.y("design:type",Object)],WU.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],WU);
_.D(WU,"ytd-compact-movie-renderer",function(){if(XE6!==void 0)return XE6;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return XE6=W},{mode:1});var KZF;var uDR;var eUR=_.eD("HTML_DIR")==="rtl",BU=function(){var W=_.S.apply(this,arguments)||this;W.engagementPanel=!1;W.maxLines=2;W.expandButtonOffset=0;W.showExpandButton=!1;W.isTruncated=!1;W.isExpanded=!1;W.currentSnippetType=2;W.alwaysShowExpandButton=!1;W.JSC$16404_lastWidth=NaN;W.observer=null;W.left=0;W.right=0;W.mid=0;W.longestSnippetLength=0;W.isFinalSnippet=!1;W.isFirstMutation=!1;W.isResetMutation=!1;W.OVERFLOW_THRESHOLD=5;return W};
_.C(BU,_.S);_.p=BU.prototype;_.p.onClick=function(W){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.p2(_.AH(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var B;if((B=window.getSelection())==null||!B.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.p.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.p.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.p.updateTextOnSnippetTypeChange=function(){_.r("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.p.setUpBinarySearch=function(W){W=W*this.maxLines/8;this.left=0;var B,z;this.right=Math.min(W*2,(z=(B=this.simpleText)==null?void 0:B.length)!=null?z:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.p.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.p.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Oc(new _.oX("AttributedSnippet is empty when the description is not empty",this.text))};
_.p.mutationCallback=function(){if(this.observer!=null){var W=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var B=Math.floor(W*this.maxLines/8);this.setSnippetText(this.text,B);B!==0||this.attributedTextIsEmpty()||_.Oc(new _.oX("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;W=W*this.maxLines/8;this.left=0;var z;this.right=Math.min(W*2,(z=(B=this.simpleText)==null?void 0:B.length)!=null?z: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)}}};
_.p.mutationObserve=function(W){var B=this;this.observer||(this.observer=new MutationObserver(function(){B.mutationCallback()}));
this.observer.observe(W,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.p.attached=function(){var W=this;_.BM(this,function(){W.resize()})};
_.p.isExpandedChanged=function(){_.v0(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.p.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)};
_.p.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var W="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((eUR?"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",W);this.snippetContainer.style.setProperty("mask-image",
W)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(eUR?"right":"left",this.expandButtonOffset+"px")};
_.p.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.p.setSnippetText=function(W,B){W||(W={});if(_.dS(W)){var z=GG(W,B);z.attachmentRuns||z.commandRuns||z.decorationRuns||z.styleRuns||z.alignment||z.lineBreakMode?this.attributedSnippetTextEl?(_.r("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=GG(W,B),this.attributedSnippetTextEl.headerRuns=JcT(B,this.headerRuns)):this.attributedSnippetText={data:GG(W,B),headerRuns:JcT(B,this.headerRuns)},this.currentSnippetType=0):_.Oc(new _.oX("Tried to set snippet text when HTML element was null",
W)):(this.plainSnippetText.textContent=B2(W.content||"",B),this.currentSnippetType=2)}else{a:{z=eK8(W,B);if(z.runs){z=_.A(z.runs);for(var G=z.next();!G.done;G=z.next())if(G=G.value,G.bold||G.deemphasize||G.italics||G.strikethrough||G.textColor||G.navigationEndpoint||_.k(G,qH)){z=!0;break a}}z=!1}z?this.formattedSnippetText?(this.formattedSnippetText.text=eK8(W,B),this.currentSnippetType=1):_.Oc(new _.oX("Tried to set snippet text when HTML element was null",W)):(this.plainSnippetText.textContent=
B2(_.zR(W),B),this.currentSnippetType=2)}};
_.p.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.p.attributedTextIsEmpty=function(){var W=this.text;if(!_.dS(W))return!0;var B;return((B=W.content)==null?void 0:B.length)===0?!0:!1};
_.p.resize=function(W){if(this.snippetText){if(W===void 0?0:W)this.JSC$16404_lastWidth=NaN;var B=this.hostElement.offsetWidth;if(B!==this.JSC$16404_lastWidth&&!this.isExpanded)if(this.JSC$16404_lastWidth=B,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;W=0;var z,G;B=Math.min(B*this.maxLines/8*2,(G=(z=this.simpleText)==null?void 0:z.length)!=null?G:0)-1;for(z=0;W<=B;)G=Math.floor(W+(B-W)/2),this.setSnippetText(this.text,G),this.isOverflowing()?B=G-1:(W=G+1,z=G);this.setSnippetText(this.text,z);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.p.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.p.onExpandClick=function(){var W=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.r("inline_expander_reset_focus_killswitch")||_.BM(this,function(){var B;((B=_.dO().resolve(_.Y8(_.jx)))==null?0:B.isKeyBoardInUse())&&_.Lg(W.hostElement)});
_.v0(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.p.onCollapseClick=function(){this.collapse();_.v0(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.p.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.p.computeExpandButtonOffset=function(){var W=this.expandSizer;return W?eUR?W.offsetParent?W.offsetParent.offsetWidth-W.offsetWidth-W.offsetLeft:0:W.offsetLeft:0};
_.G5.Object.defineProperties(BU.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.dS(this.text)?this.text.content||"":_.zR(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 _.dS(this.text)?!0:this.text&&_.r("web_replace_formatted_with_attributed_string")&&xLu(this.text)?(this.text=_.y2(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}}});
BU.prototype.onTextChanged=BU.prototype.onTextChanged;BU.prototype.updateMaskAndExpandButtonOffset=BU.prototype.updateMaskAndExpandButtonOffset;BU.prototype.updateSnippetContainerMaxHeight=BU.prototype.updateSnippetContainerMaxHeight;BU.prototype.isExpandedChanged=BU.prototype.isExpandedChanged;BU.prototype.updateTextOnSnippetTypeChange=BU.prototype.updateTextOnSnippetTypeChange;BU.prototype.updateIsFormattedExpanded=BU.prototype.updateIsFormattedExpanded;BU.prototype.updateIsAttributedExpanded=BU.prototype.updateIsAttributedExpanded;
BU.prototype.onClick=BU.prototype.onClick;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],BU.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],BU.prototype,"text",void 0);_.Q([_.F(),_.y("design:type",Array)],BU.prototype,"headerRuns",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],BU.prototype,"engagementPanel",void 0);_.Q([_.F(),_.y("design:type",Object)],BU.prototype,"maxLines",void 0);
_.Q([_.F(),_.y("design:type",String)],BU.prototype,"expandLabel",void 0);_.Q([_.F(),_.y("design:type",String)],BU.prototype,"collapseLabel",void 0);_.Q([_.F(),_.y("design:type",Object)],BU.prototype,"expandCommand",void 0);_.Q([_.F(),_.y("design:type",Object)],BU.prototype,"expandButtonOffset",void 0);_.Q([_.H("text"),_.y("design:type",String),_.y("design:paramtypes",[])],BU.prototype,"simpleText",null);
_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],BU.prototype,"onClick",null);_.Q([_.H("text","isExpanded"),_.y("design:type",Object),_.y("design:paramtypes",[])],BU.prototype,"expandedText",null);_.Q([_.H("headerRuns","isExpanded"),_.y("design:type",Object),_.y("design:paramtypes",[])],BU.prototype,"expandedHeaderRuns",null);
_.Q([_.H("text"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],BU.prototype,"hasAttributedStringText",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],BU.prototype,"showExpandButton",void 0);_.Q([_.H("collapseLabel","isExpanded"),_.y("design:type",Object),_.y("design:paramtypes",[])],BU.prototype,"showCollapseButton",null);_.Q([_.F(),_.y("design:type",Object)],BU.prototype,"isTruncated",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],BU.prototype,"isExpanded",void 0);_.Q([_.F(),_.y("design:type",Boolean)],BU.prototype,"isAttributedExpanded",void 0);_.Q([_.oN("isExpanded","hasAttributedStringText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BU.prototype,"updateIsAttributedExpanded",null);_.Q([_.F(),_.y("design:type",Boolean)],BU.prototype,"isFormattedExpanded",void 0);
_.Q([_.oN("isExpanded","hasAttributedStringText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BU.prototype,"updateIsFormattedExpanded",null);_.Q([_.F(),_.y("design:type",Number)],BU.prototype,"currentSnippetType",void 0);_.Q([_.H("currentSnippetType"),_.y("design:type",Object),_.y("design:paramtypes",[])],BU.prototype,"useAttributedSnippet",null);
_.Q([_.H("currentSnippetType"),_.y("design:type",Object),_.y("design:paramtypes",[])],BU.prototype,"useFormattedSnippet",null);_.Q([_.H("currentSnippetType"),_.y("design:type",Object),_.y("design:paramtypes",[])],BU.prototype,"usePlainSnippet",null);_.Q([_.F(),_.y("design:type",Object)],BU.prototype,"alwaysShowExpandButton",void 0);_.Q([_.oN("currentSnippetType"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BU.prototype,"updateTextOnSnippetTypeChange",null);
_.Q([_.F(),_.y("design:type",Object)],BU.prototype,"attributedSnippetText",void 0);_.Q([_.Hf("#snippet"),_.y("design:type",HTMLElement)],BU.prototype,"snippetContainer",void 0);_.Q([_.Hf("#snippet-text"),_.y("design:type",HTMLElement)],BU.prototype,"snippetText",void 0);_.Q([_.Hf("#plain-snippet-text"),_.y("design:type",HTMLElement)],BU.prototype,"plainSnippetText",void 0);_.Q([_.Hf("#formatted-snippet-text"),_.y("design:type",Object)],BU.prototype,"formattedSnippetText",void 0);
_.Q([_.Hf("#attributed-snippet-text"),_.y("design:type",Object)],BU.prototype,"attributedSnippetTextEl",void 0);_.Q([_.Hf("#expand"),_.y("design:type",HTMLElement)],BU.prototype,"expandButton",void 0);_.Q([_.Hf("#expand-sizer"),_.y("design:type",HTMLElement)],BU.prototype,"expandSizer",void 0);_.Q([_.jJ("isExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BU.prototype,"isExpandedChanged",null);
_.Q([_.oN("isExpanded","maxLines"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BU.prototype,"updateSnippetContainerMaxHeight",null);_.Q([_.oN("isTruncated","showExpandButton","expandButtonOffset"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BU.prototype,"updateMaskAndExpandButtonOffset",null);
_.Q([_.jJ("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BU.prototype,"onTextChanged",null);_.Q([_.u({is:"ytd-text-inline-expander",disableElementRegistration:!0})],BU);
_.D(BU,"ytd-text-inline-expander",function(){if(uDR===void 0){var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);uDR=W}W=uDR;return W},{mode:2});var z$=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return W};
_.C(z$,_.S);z$.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
z$.prototype.handleUpdateDescriptionAction=function(W){if(W=_.k(W,_.zvM))if(W.attributedDescription)this.set("data.attributedDescriptionBodyText",W.attributedDescription);else if(W.description){var B;((B=this.data)==null?0:B.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.y2(W.description)):this.set("data.descriptionBodyText",W.description)}};
_.G5.Object.defineProperties(z$.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var W,B;return!((W=this.data)==null||!W.attributedDescriptionBodyText)||!((B=this.data)==null||!B.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.collapsedLineCount){var B;return(B=this.data)==null?void 0:B.collapsedLineCount}W=_.iO("web_watch_description_collapsed_default_lines",12);if(_.r("ww_desc_line_page_size_ks"))return W;B=Math.round(_.Ft().height*_.iO("web_watch_description_screen_height_percentage",.5)/20);return Math.max(B,W)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return(z=(W=this.data)==null?void 0:W.descriptionBodyText)!=null?z:(B=this.data)==null?void 0:B.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.sourceAttributions}}});
z$.prototype.panelContentVisibleChanged=z$.prototype.panelContentVisibleChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],z$.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],z$.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],z$.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],z$.prototype,"panelContentVisible",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],z$.prototype,"engagementPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],z$.prototype,"shortsPanel",void 0);_.Q([_.Hf("#inline-expander"),_.y("design:type",Object)],z$.prototype,"inlineExpander",void 0);
_.Q([_.oN("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],z$.prototype,"panelContentVisibleChanged",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],z$.prototype,"hasDescriptionText",null);_.Q([_.H("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],z$.prototype,"collapsedLines",null);
_.Q([_.H("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.y("design:type",Object),_.y("design:paramtypes",[])],z$.prototype,"descriptionText",null);_.Q([_.H("data","data.headerRuns"),_.y("design:type",Object),_.y("design:paramtypes",[])],z$.prototype,"headerRuns",null);_.Q([_.H("data","data.sourceAttributions"),_.y("design:type",Object),_.y("design:paramtypes",[])],z$.prototype,"sourceAttributions",null);
_.Q([_.u({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],z$);
_.D(z$,"ytd-expandable-video-description-body-renderer",function(){if(KZF!==void 0)return KZF;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return KZF=W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var mPM;var xPM=_.m(function(W){var B=W.data;return _.w("factoid-renderer",{class:"ytwFactoidRendererHost"},_.w("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return B().accessibilityText}},_.w("span",{class:"ytwFactoidRendererValue"},_.w(_.r0,{text:function(){return B().value}})),_.w("span",{class:"ytwFactoidRendererLabel"},_.w(_.r0,{text:function(){return B().label}}))))},"hc");_.Vm(xPM,"factoid-renderer",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=W.data;return _.w("upload-time-factoid-renderer",null,_.w(_.Sc,{data:function(){return B().factoid}},{factoidRenderer:xPM}))},"ic"),"upload-time-factoid-renderer",{props:{data:_.wS}});_.Vm(_.m(function(W){var B=W.data;return _.w("view-count-factoid-renderer",null,_.w(_.Sc,{data:function(){return B().factoid}},{factoidRenderer:xPM}))},"jc"),"view-count-factoid-renderer",{props:{data:_.wS}});var G$=function(){var W=_.S.apply(this,arguments)||this;W.shortsPanel=!1;W.engagementPanel=!1;W.watchWhileSdp=_.r("shorts_desktop_watch_while_sdp");return W};
_.C(G$,_.S);G$.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"}}}}};
_.G5.Object.defineProperties(G$.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var W;return(W=this.data)==null?void 0:W.channel}}});
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],G$.prototype,"componentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],G$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],G$.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],G$.prototype,"shortsPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],G$.prototype,"engagementPanel",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],G$.prototype,"watchWhileSdp",void 0);_.Q([_.H("shortsPanel","engagementPanel","data.channel"),_.y("design:type",Object),_.y("design:paramtypes",[])],G$.prototype,"showChannelInfo",null);_.Q([_.u({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],G$);
_.D(G$,"ytd-video-description-header-renderer",function(){if(mPM!==void 0)return mPM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return mPM=W},{mode:1});var DP9;var Yu=function(){return _.S.apply(this,arguments)||this};
_.C(Yu,_.S);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Yu.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Yu.prototype,"noPadding",void 0);_.Q([_.F(),_.y("design:type",Object)],Yu.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Yu);
_.D(Yu,"ytd-list-item-view-model",function(){if(DP9!==void 0)return DP9;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return DP9=W},{mode:1});var QQM;var yxH;var qUR;var nWM;var dQ=function(){var W=_.S.apply(this,arguments)||this;W.adaptiveFullWidth=!1;W.modernButtons=_.r("web_modern_buttons");W.buttonOverrides={style:"call-to-action",type:"filled"};W.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return W};
_.C(dQ,_.S);dQ.prototype.handleSetTimestamp_=function(W){this.data&&this.data.shortUrl&&(_.tH(this.hostElement).querySelector("#share-url").value=W.isSet?_.zE(this.data.shortUrl,"t",W.timestamp):this.data.shortUrl)};
dQ.prototype.handleSignalActionCopyShareUrl_=function(W,B){(_.r("killswitch_copy_link_target_check")||_.tH(this.hostElement).querySelector("#copy-button")===B)&&this.copyUrlToClipboard()};
dQ.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.tH(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
dQ.prototype.computeStyle_=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],dQ.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],dQ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.y("design:type",String)],dQ.prototype,"rendererStyle",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],dQ.prototype,"adaptiveFullWidth",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],dQ.prototype,"modernButtons",void 0);_.Q([_.F(),_.y("design:type",Object)],dQ.prototype,"buttonOverrides",void 0);_.Q([_.NJ({is:"yt-copy-link-renderer",disableElementRegistration:!0})],dQ);
_.D(dQ,"yt-copy-link-renderer",function(){if(nWM===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;qUR===void 0&&(qUR=document.createElement("template"));var G=qUR;z.call(B,G.content.cloneNode(!0),W.content.firstChild);nWM=W}W=nWM;return W},{mode:2});_.eX("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var pJ=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return W};
_.C(pJ,_.S);_.p=pJ.prototype;_.p.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.p.attached=function(){this.keyboardFocused=!1};
_.p.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var W=_.dO().resolve(_.Y8(_.jx));W&&(this.keyboardFocused=W.isKeyBoardInUse())}};
_.p.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.p.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}};
_.p.onChange_=function(){if(this.data){var W=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;W&&this.ytComponentBehavior.resolveCommand(W);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.p.handleUpdateToggleAction_=function(W){(W=_.k(W,hAT))&&this.data&&W.targetId==this.data.targetId&&this.set("data.toggled",W.toggled)};
_.p.toBoolean_=function(W){return!!W};
_.p.reset=function(){};
_.p.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("data-changed",this.data))};
_.p.updateDataToggledFromBinding=function(W){this.set("data.toggled",W.detail.value)};
pJ.prototype.dataChangedForBinding=pJ.prototype.dataChangedForBinding;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],pJ.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],pJ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],pJ.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],pJ.prototype,"data",void 0);_.Q([_.F({computed:"computeDescription_(data.*)"}),_.y("design:type",Object)],pJ.prototype,"description_",void 0);_.Q([_.F({value:function(){return!!_.dO().resolve(_.Y8(_.jx))&&_.r("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.y("design:type",Boolean)],pJ.prototype,"useKeyboardFocused",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],pJ.prototype,"keyboardFocused",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pJ.prototype,"dataChangedForBinding",null);_.Q([_.NJ({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],pJ);
_.D(pJ,"yt-toggle-form-field-renderer",function(){if(yxH===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;QQM===void 0&&(QQM=document.createElement("template"));var G=QQM;z.call(B,G.content.cloneNode(!0),W.content.firstChild);yxH=W}W=yxH;return W},{mode:2});var NrH;var $PU;var Al=function(){var W=_.S.apply(this,arguments)||this;W.isDarkTheme=!1;W.isSearch=!1;W.darkerDarkTheme=_.r("web_darker_dark_theme");W.noTopMargin=_.r("kevlar_watch_no_top_margin");W.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 W};
_.C(Al,_.S);_.p=Al.prototype;_.p.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}}}}}};
_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.p.dataChanged=function(){var W=this.getSelectedIndex();if(W>0)this.selected=W;else{this.selected=0;var B,z;(B=this.ytScrollableChipCloudBehavior)==null||(z=B.reset)==null||z.call(B)}};
_.p.getSelectedIndex=function(){var W;if((W=this.data)==null||!W.chips)return-1;W=-1;for(var B,z=0;z<((B=this.data)==null?void 0:B.chips.length);z++){var G=void 0,Y=void 0;if((G=this.data)==null?0:(Y=G.chips[z].chipCloudChipRenderer)==null?0:Y.isSelected){W=z;break}}return W};
_.p.onResize=function(){var W=this.ytScrollableChipCloudBehavior;_.BM(W,W.setContainerWidthDiff);Qu(this.ytScrollableChipCloudBehavior)};
_.p.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.p.handleRelatedChipCommand=function(W,B){W=this.JSC$16431_chipsSelector.indexOf(B);W!==-1&&this.JSC$16431_chipsSelector.selectIndex(W)};
_.p.handleChipCloudChipSelectAction=function(W){W=this.JSC$16431_chipsSelector.indexOf(W);W>-1&&this.JSC$16431_chipsSelector.selectIndex(W)};
_.p.handleChipCloudChipDeselectAction=function(){var W=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16431_chipsSelector&&((W==null?0:W.continuationCommand)?_.V0(this.hostElement,[W]):(W==null?0:W.searchEndpoint)?this.ytComponentBehavior.resolveCommand(W):W&&_.Jr(this.hostElement,[W],this.hostElement),this.JSC$16431_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.p.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
Al.prototype.onResize=Al.prototype.onResize;Al.prototype.dataChanged=Al.prototype.dataChanged;Al.prototype.isSearchChanged=Al.prototype.isSearchChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Al.prototype,"actionHandlerBehavior",void 0);
_.Q([_.h(_.Mp),_.y("design:type",Object)],Al.prototype,"ironResizableBehavior",void 0);_.Q([_.h(),_.y("design:type",DT)],Al.prototype,"ytScrollableChipCloudBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Al.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Al.prototype,"data",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],Al.prototype,"selected",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Al.prototype,"isDarkTheme",void 0);_.Q([_.F({value:160}),_.y("design:type",Number)],Al.prototype,"scrollDistance",void 0);_.Q([_.F(),_.y("design:type",Object)],Al.prototype,"isSearch",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Al.prototype,"darkerDarkTheme",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Al.prototype,"noTopMargin",void 0);
_.Q([_.Hf("#chips"),_.y("design:type",Object)],Al.prototype,"JSC$16431_chipsSelector",void 0);_.Q([_.oN("isSearch"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Al.prototype,"isSearchChanged",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Al.prototype,"dataChanged",null);_.Q([_.IN("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Al.prototype,"onResize",null);
_.Q([_.NJ({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Al);
_.D(Al,"yt-chip-cloud-renderer",function(){if($PU===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;NrH===void 0&&(NrH=document.createElement("template"));var G=NrH;z.call(B,G.content.cloneNode(!0),W.content.firstChild);$PU=W}W=$PU;return W},{mode:2});var LZ6,UPQ=function(){return LZ6!==void 0?LZ6:LZ6=document.createElement("template")};
document.head.appendChild(UPQ().content);var MbR;var ayQ=document.head,RUM=ayQ.appendChild,WqR;if(MbR===void 0){var BxR=document.createElement("template");_.I(BxR,"");BxR.content.insertBefore(UPQ().content.cloneNode(!0),BxR.content.firstChild);MbR=BxR}WqR=MbR;RUM.call(ayQ,WqR.content);var zVT=_.m(function(W){var B=W.data;return _.w("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.w("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.w("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.w(_.V,{cond:function(){return _.UM(B().image)},
then:function(z){return _.w("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.w(_.iF,{data:z,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.w("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.w(_.r0,{text:function(){return B().title}})),_.w("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.w(_.r0,{text:function(){return B().subtitle}})))),_.w(_.V,{cond:function(){var z;
return(z=B())==null?void 0:z.hasBottomDivider},
then:function(){return _.w("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"kc");var GhT=_.m(function(W){var B=W.data;return _.w("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.w("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.w(_.Sc,{data:function(){var z;return(z=B().offerPlanDetailsItem)!=null?z:[]}},{offerPlanDetailsItemViewModel:function(z){return _.w("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.w(zVT,{data:z.data}))}})),_.w("div",null,_.w(_.V,{cond:function(){return B().hasBottomDivider},
then:function(){return _.w("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.w("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.w("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.w("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.w("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"lc");var YOR=_.m(function(W){var B=W.data;W=_.A(_.g4(!1,void 0,"OHF6Ec"));var z=W.next().value,G=W.next().value,Y=_.lF(function(){G(!z());return!1}),d=function(){var E;
return(E=B().offerPlanDetailsContainer)!=null?E:[]};
return _.w("lp-complex-offer-card-details-view-model",null,_.w("div",null,_.w(_.V,{cond:function(){return z()},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.w("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":Y,"aria-expanded":z},_.w(_.r0,{text:function(){return B().expandedTitle}})),_.w("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.w(_.Sc,{data:d},{offerPlanDetailsContainerViewModel:function(E){return _.w("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.w(GhT,{data:E.data}))}})),_.w("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.w(_.r0,{text:function(){return B().legalText}})))},
else:function(){return _.w("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":Y,"aria-expanded":z},_.w(_.r0,{text:function(){return B().collapsedTitle}}),_.w("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.w(_.hY,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"mc");var db4=_.m(function(W){var B=W.data;return _.w("lp-complex-offer-card-option-view-model",null,_.w("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.w(_.V,{cond:function(){return B().topDividerText},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.w("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.w("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.w("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.w(_.r0,{text:function(){return B().topDividerText}}))))}}),_.w(_.V,{cond:function(){return B().description},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.w(_.r0,{text:function(){return B().description}}))}}),_.w(_.V,{cond:function(){return B().planPricingPrimary},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.w(_.r0,{text:function(){return B().planPricingPrimary}}))}}),_.w(_.V,{cond:function(){return B().planPricingSecondary},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.w(_.r0,{text:function(){return B().planPricingSecondary}}))}}),_.w(_.V,{cond:function(){return B().primaryButton},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.w(_.Sc,{data:function(){return B().primaryButton}},{buttonViewModel:function(z){return _.w(_.ex,{data:z.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"nc");var pjQ=_.m(function(W){var B=W.data;var z=function(){var d;return((d=B())==null?void 0:d.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
W={};var G={},Y={};return _.w("ytm-lp-complex-offer-card-view-model",null,_.w("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.w("div",{class:_.kG((W.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=z,W),"ytmLpComplexOfferCardViewModelCardContainer")},_.w(_.V,{cond:function(){var d;return(d=B())==null?void 0:d.bannerText},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.w("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.w(_.r0,{text:function(){return B().bannerText}})))}}),_.w(_.V,{cond:function(){return _.UM(B().logo)},
then:function(d){var E={};return _.w("div",{class:_.kG((E.ytmLpComplexOfferCardViewModelLogoAlignLeft=z,E),"ytmLpComplexOfferCardViewModelLogo")},_.w(_.iF,{data:d,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.w("div",{class:_.kG((G.ytmLpComplexOfferCardViewModelTitleAlignLeft=z,G),"ytmLpComplexOfferCardViewModelTitle")},_.w(_.r0,{text:function(){return B().title}})),_.w(_.V,{cond:function(){var d;
return(d=B())==null?void 0:d.subtitle},
then:function(){var d={};return _.w("div",{class:_.kG((d.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=z,d),"ytmLpComplexOfferCardViewModelSubtitle")},_.w(_.r0,{text:function(){return B().subtitle}}))}}),_.w(_.V,{cond:function(){return B().planPricingPrimary},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.w(_.r0,{text:function(){return B().planPricingPrimary}}))}}),_.w(_.V,{cond:function(){return B().planPricingSecondary},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.w(_.r0,{text:function(){return B().planPricingSecondary}}))}}),_.w(_.V,{cond:function(){return B().purchaseButton},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.w(_.Sc,{data:function(){return B().purchaseButton}},{buttonViewModel:function(d){return _.w(_.ex,{data:d.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.w(_.V,{cond:function(){var d;
return(d=B())==null?void 0:d.offerOptions},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.w(_.Sc,{data:function(){return B().offerOptions}},{lpComplexOfferCardOptionViewModel:db4}))}}),_.w("div",{class:_.kG((Y.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=z,Y),"ytmLpComplexOfferCardViewModelLegalText")},_.w(_.r0,{text:function(){return B().legalText}})),_.w(_.V,{cond:function(){var d;
return(d=B())==null?void 0:d.offerCardDetails},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.w(_.Sc,{data:function(){return B().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:YOR}))}}))))},"oc");var Ahd=_.m(function(W){var B=W.data;var z=function(){var E;return((E=B())==null?void 0:E.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
W={};var G={},Y={},d={};return _.w("ytm-lp-complex-offer-card-section-view-model",null,_.w("div",{class:_.kG("ytmLpComplexOfferCardSectionViewModelHost")},_.w("div",{class:_.kG((W.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=z,W),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.w("div",{class:_.kG((G.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=z,G),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.w("h2",{class:_.kG((Y.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
z,Y),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.w(_.r0,{text:function(){return B().title}}))),_.w(_.V,{cond:function(){var E;
return(E=B())==null?void 0:E.subtitle},
then:function(){var E={},v={};return _.w("div",{class:_.kG((E.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=z,E),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.w("div",{class:_.kG((v.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=z,v),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.w(_.r0,{text:function(){return B().subtitle}})))}}),_.w("div",{class:_.kG((d.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=z,d),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.w(_.Sc,{data:function(){var E;
return(E=B().offerPlans)!=null?E:[]}},{lpComplexOfferCardViewModel:function(E){return _.w("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.w(pjQ,{data:E.data}))}})))))},"pc");var iHM=_.m(function(W){return _.w("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.w("div",{class:"ytLpCouponBannerViewModelIcon"},_.w(_.hY,{icon:function(){return"price_tag"}})),_.w("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.w("div",{class:"ytLpCouponBannerViewModelContent"},_.w("div",{class:"ytLpCouponBannerViewModelHeading"},_.w(_.r0,{text:function(){var B;
return(B=W.data())==null?void 0:B.title}})),_.w("div",{class:"ytLpCouponBannerViewModelBody"},_.w(_.r0,{text:function(){var B;
return(B=W.data())==null?void 0:B.subtitle}})))))},"qc");
iHM.idomCompat=!0;_.i$=rDQ.getInstance();var Ek7;Ek7=_.m(function(W){return _.w("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":W.shouldAriaHideContent},_.w("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:W.questionId},_.w(_.r0,{text:W.question})))},"rc");
_.Tx7=_.m(function(W){var B=W.data;var z=W.themeOverride;W=_.A(_.g4(!1,void 0,"pNli2b"));var G=W.next().value,Y=W.next().value;W=_.lF(function(){Y(!G());return!1});
var d=function(){return G()?"EXPAND_LESS":"EXPAND_MORE"},E=("faq-container"+_.L_(_.i$)).toString(),v="faq-question-and-answers-section-question"+_.L_(_.i$),c={},J={};
return _.w("faq-entry-view-model",null,_.w("div",{class:_.kG("ytLpFaqEntryViewModelHost",(c.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return z==null?void 0:z().useDarkTheme},c))},_.w("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":W,role:"button","aria-expanded":G,"aria-labelledby":v.toString(),"tab-index":"0"},_.w(Ek7,{question:function(){return B().question},
questionId:v,shouldAriaHideContent:!0}),_.w(_.V,{cond:function(){return G()!==void 0},
then:function(){return _.w("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.w(_.hY,{icon:d,ariaHidden:!0}),_.w("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.w("div",{class:_.kG("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(J.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!G()},J))},_.w("div",{id:E},_.w(_.IJ,{each:function(){return B().answers||[]}},function(g){return _.w("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.w(_.r0,
{text:g}))})))))},"sc");
_.Tx7.idomCompat=!0;var vkF=_.m(function(W){var B=W.data;var z=W.themeOverride;W={};return _.w("lp-faq-section-view-model",null,_.w("div",{class:_.kG("yt-lp-faq-section-view-model",(W["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return B().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},W["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(z==null||!z().useDarkTheme)},W))},_.w("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.w(_.V,{cond:function(){return B().header},
then:function(G){return _.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.w(_.r0,{text:G}))}}),_.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.w(_.Sc,{data:function(){return B().faqs}},{faqEntryViewModel:function(G){return _.w(_.Tx7,{data:G.data,
themeOverride:z})}})),_.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.w(_.IJ,{each:function(){return B().footers||[]}},function(G){return _.w(_.r0,{text:G})})),_.w(_.V,{cond:function(){return B().legal},
then:function(G){return _.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.w(_.r0,{text:G}))}}))))},"tc");
vkF.idomCompat=!0;var chM=_.m(function(W){var B=W.data;var z=W.themeOverride;_.jD(function(){var E=B().gtmId;E&&_.zr(E,_.eD("GL",""))});
var G={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var E,v,c;return(c=(E=B().logo)==null?void 0:(v=E.accessibilityData)==null?void 0:v.label)!=null?c:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},Y=_.dO().resolve(_.Y8(_.YG)),d=function(){return Y&&Y()||(z==null?void 0:z().useDarkTheme)};
return _.w("lp-header-section-view-model",null,_.w("div",{class:function(){var E=B().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",v=B().marginType==="LP_SECTION_MARGIN_TYPE_TOP",c=z==null?void 0:z().useDarkTheme,J=["lp-header-section-view-model"];E&&J.push("lp-header-section-view-model--ptc-layout-type");v&&J.push("lp-header-section-view-model__lp-header-section-margin");c&&J.push("lp-header-section-view-model--premium-force-dark-mode");return J.join(" ")}},_.w(_.V,{cond:function(){return B().logo},
then:function(){return _.w("div",null,_.w(_.V,{cond:d,then:function(){return _.w(_.V,{cond:function(){var E;return(E=B().logo)==null?void 0:E.imageDark},
then:function(E){return _.w(_.iF,Object.assign({},{data:E},G))}})},
else:function(){return _.w(_.V,{cond:function(){var E;return(E=B().logo)==null?void 0:E.imageLight},
then:function(E){return _.w(_.iF,Object.assign({},{data:E},G))}})}}))}}),_.w(_.V,{cond:function(){return B().title},
then:function(E){return _.w("div",{class:"lp-header-section-view-model__lp-header-title"},_.w(_.r0,{text:E}))}}),_.w("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.w(_.V,{cond:function(){return B().subtitles},
then:function(E){return _.w(_.IJ,{each:E},function(v){return _.w("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.w(_.r0,{text:v}))})}})),_.w(_.V,{cond:function(){return B().additionalInfo},
then:function(E){return _.w("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.w(_.r0,{text:E}))}}),_.w("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.w(_.V,{cond:function(){return B().primaryButton},
then:function(E){return _.w("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.w(_.Sc,{data:E},{buttonViewModel:_.ex}))}}),_.w(_.V,{cond:function(){return B().secondaryButton},
then:function(E){return _.w("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.w(_.Sc,{data:E},{buttonViewModel:_.ex}))}})),_.w(_.V,{cond:function(){return B().otherOffersInfo},
then:function(E){return _.w("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.w(_.r0,{text:E}))}}),_.w("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.w(_.V,{cond:function(){return B().billingInfo},
then:function(E){return _.w(_.IJ,{each:E},function(v){return _.w("div",null,_.w(_.r0,{text:v}))})}}))))},"uc");
chM.idomCompat=!0;var wjD=_.m(function(W){var B=W.data;var z=_.ig(W.themeOverride,{useDarkTheme:!1});W={};W=_.kG("ytmLpHeadlineSectionViewModelHost",(W.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return z().useDarkTheme},W));
return _.w("lp-headline-section-view-model",null,_.w("div",{class:W},_.w("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.w(_.r0,{text:function(){return B().title}})),_.w(_.V,{cond:function(){return B().subtitle},
then:function(G){return _.w("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.w(_.r0,{text:G}))}})))},"vc");var VA4=_.m(function(W){var B=W.data;var z=W.themeOverride;var G=_.dO().resolve(_.Y8(_.YG)),Y=function(){return G&&G()||(z==null?void 0:z().useDarkTheme)},d=function(){var J,g;
var t=Y()?(J=B().textBackgroundImage)==null?void 0:J.imageDark:(g=B().textBackgroundImage)==null?void 0:g.imageLight;return u_u((t==null?void 0:t.sources)||[])},E=function(){var J,g;
return Y()?(J=B().featureImage)==null?void 0:J.imageDark:(g=B().featureImage)==null?void 0:g.imageLight},v=function(){return B().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},c=function(){var J,g;
return Y()?(J=B().logo)==null?void 0:J.imageDark:(g=B().logo)==null?void 0:g.imageLight};
return _.w("ytm-lp-large-feature-section-view-model",null,_.w("div",{class:function(){var J=B().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",g=B().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",t=(B().index||0)%2===1,P=z==null?void 0:z().useDarkTheme,Z=["yt-lp-large-feature-section-view-model"];J?Z.push("yt-lp-large-feature-section-view-model--music-feature-type"):g?Z.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):t||Z.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
P&&Z.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return Z.join(" ")}},_.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.w(_.V,{cond:E,
then:function(){return _.w(_.iF,{data:function(){return E()},
alt:function(){var J,g,t;return(t=(J=B().featureImage)==null?void 0:(g=J.accessibilityData)==null?void 0:g.label)!=null?t:""},
contentMode:v})}})),_.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var J;return((J=d())==null?0:J.url)?"background-image: url("+_.yN(d().url)+");":""}},_.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.w(_.V,{cond:c,
then:function(){return _.w(_.iF,{data:function(){return c()},
alt:function(){var J,g,t;return(t=(J=B().logo)==null?void 0:(g=J.accessibilityData)==null?void 0:g.label)!=null?t:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.w(_.V,{cond:function(){return B().eyebrowText},
then:function(){return _.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.w(_.r0,{text:function(){return B().eyebrowText}}))}}),_.w(_.V,{cond:function(){return B().title},
then:function(){return _.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.w(_.r0,{text:function(){return B().title}}))}}),_.w(_.V,{cond:function(){return B().subtitles},
then:function(){return _.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.w(_.IJ,{each:function(){return B().subtitles||[]}},function(J){return _.w(_.r0,{text:J})}))}})))))},"wc");
VA4.idomCompat=!0;var JhU=_.m(function(W){return _.w("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.w("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.w(_.hY,{icon:function(){var B;return(B=W.data())==null?void 0:B.iconType},
className:function(){var B;switch((B=W.data())==null?void 0:B.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var B;return((B=W.data())==null?void 0:B.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.w("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.w(_.r0,{text:function(){var B;
return(B=W.data())==null?void 0:B.text},
className:function(){var B;return((B=W.data())==null?void 0:B.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"xc");var gkD=_.m(function(W){W=_.EV(W,{config:void 0,themeOverride:void 0});var B=W.data,z=W.config,G=W.themeOverride;W={};W=_.kG("ytmLpOfferCardOptionViewModelHost",(W.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var v;return(v=G())==null?void 0:v.useDarkTheme},W));
var Y=_.lF(function(){var v,c;(v=z())==null||(c=v.handleRadioButtonClick)==null||c.call(v,B());return!1}),d=function(){var v;
return(v=z())==null?void 0:v.shouldDisplayRadioButton},E=function(){var v;
return(v=B().featureListItems)!=null?v:[]};
return _.w("ytm-lp-offer-card-option-view-model",null,_.w("div",{class:W,"on:click":_.lF(function(){if(d()){var v,c;(v=z())==null||(c=v.handleRadioButtonClick)==null||c.call(v,B())}return!1})},_.w(_.V,{cond:d,
then:function(){return _.w("div",null,_.w("input",{type:"radio","on:click":Y,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var v;return!((v=z())==null||!v.isOptionSelected)}}))}}),_.w("div",null,_.w("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.w(_.r0,{text:function(){return B().eyebrowText}})),_.w("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.w(_.r0,{text:function(){return B().title}})),_.w("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.w(_.r0,
{text:function(){return B().subtitle}})),_.w(_.V,{cond:function(){return E().length>0},
then:function(){return _.w("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.w(_.Sc,{data:E},{lpFeatureListItemViewModel:JhU}))}}),_.w("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.w(_.r0,{text:function(){return B().description}})))))},"yc");
gkD.idomCompat=!0;var tAu=_.m(function(W){var B=W.data;var z=W.themeOverride;W=_.A(_.IK(function(){var d,E=(d=B().offerOptions)==null?void 0:d[0];return _.k(E,cwQ)||{}}));
var G=W.next().value,Y=W.next().value;W={};return _.w("ytm-lp-offer-card-view-model",null,_.w("div",{class:_.kG("ytmLpOfferCardViewModelHost",(W.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(z==null||!z().useDarkTheme)},W))},_.w("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.w(_.V,{cond:function(){return B().titleIconType},
then:function(){return _.w("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.w(_.hY,{icon:function(){var d;return((d=B().titleIconType)==null?void 0:d.toString())||""}}))}}),_.w("div",{class:"ytmLpOfferCardViewModelTitleText"},_.w(_.r0,{text:function(){return B().title}})),_.w(_.Sc,{data:function(){return B().titleBadge}},{badgeViewModel:function(d){return _.w("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.w(_.bM,{data:d.data}))}})),_.w("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.w(_.Sc,{data:function(){return B().offerOptions}},{lpOfferCardOptionViewModel:function(d){var E=d.data;
return _.w(_.AW,null,_.w("div",{class:"ytmLpOfferCardViewModelDivider"}),_.w(gkD,{data:E,config:function(){var v;return{shouldDisplayRadioButton:(B().offerOptions||[]).length>1,isOptionSelected:E().id===((v=G())==null?void 0:v.id),handleRadioButtonClick:function(c){return void Y(c)}}},
themeOverride:z}))}})),_.w("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.w(_.Sc,{data:function(){var d;
return(d=G())==null?void 0:d.purchaseButtonOverride}},{buttonViewModel:_.ex}))))},"zc");
tAu.idomCompat=!0;var s5R=_.m(function(W){var B=W.data;var z=W.themeOverride;W={};W=_.kG("ytmLpOfferCardSectionViewModelHost",(W.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var G;return z==null?void 0:(G=z())==null?void 0:G.useDarkTheme},W));
return _.w("ytm-lp-offer-card-section-view-model",null,_.w("div",{class:W},_.w(_.V,{cond:function(){return B().title!==void 0},
then:function(){return _.w("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.w("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.w(_.r0,{text:function(){return B().title}})),_.w(_.V,{cond:function(){return B().subtitle},
then:function(){return _.w("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.w(_.r0,{text:function(){return B().subtitle}}))}}))}}),_.w("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.w(_.Sc,{data:function(){return B().offerCards}},{lpOfferCardViewModel:function(G){return _.w("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.w(tAu,{data:G.data,
themeOverride:z}))}})),_.w(_.V,{cond:function(){return B().footer},
then:function(){return _.w("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.w(_.r0,{text:function(){return B().footer}}))}})))},"Ac");var PIu=_.m(function(W){var B=W.data;return _.w("lp-offer-table-cell-content-view-model",null,_.w("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.w(_.HR,null,_.w(_.oJ,{when:function(){return B().title}},function(){return _.w(_.r0,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return B().title}})}),_.w(_.oJ,{when:function(){return B().subTitle}},function(){return _.w(_.r0,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return B().subTitle}})}),_.w(_.oJ,{when:function(){return B().featureDescription}},function(){return _.w(_.r0,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return B().featureDescription}})}),_.w(_.oJ,{when:function(){return B().description}},function(){return _.w(_.r0,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return B().description}})}),_.w(_.oJ,{when:function(){return B().iconType}},function(){return _.w("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.w(_.hY,{icon:function(){return B().iconType.toString()}}))}),_.w(_.oJ,{when:function(){return B().purchaseButton}},function(){return _.w(_.Sc,{data:function(){return B().purchaseButton}},{buttonViewModel:function(z){return _.w("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.w(_.ex,
{data:z.data}))}})}),_.w(_.oJ,{when:function(){return B().note}},function(){return _.w(_.r0,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return B().note}})}),_.w(_.oJ,{when:function(){return B().featureDetail}},function(){return _.w(_.r0,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return B().featureDetail}})}),_.w(_.oJ,{when:function(){return B().badge}},function(){return _.w(_.Sc,{data:function(){return B().badge}},{badgeViewModel:_.bM})}))))},"Bc");
PIu.idomCompat=!0;var ZH6=_.m(function(W){var B=W.data;return _.w("lp-offer-table-cell-view-model",null,_.w("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(B().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.w(_.Sc,{data:function(){return B().contents}},{lpOfferTableCellContentViewModel:PIu})))},
"Cc");
ZH6.idomCompat=!0;var rhD=_.m(function(W){var B=W.data;var z=W.lpTableIsFirstRow;var G=W.lpTableIsLastRow;var Y=function(){return(z==null?0:z())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},d=function(){return(z==null?0:z())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(G==null?0:G())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.w("ytm-lp-offer-table-row-view-model",null,_.w("div",{class:"ytLpOfferTableRowViewModelHost"},_.w(_.Sc,{data:function(){return B().rowHeaderCell}},{lpOfferTableCellViewModel:function(E){return _.w("div",{class:Y},_.w(ZH6,{data:E.data}))}}),_.w(_.Sc,{data:function(){return B().contentCells}},{lpOfferTableCellViewModel:function(E){return _.w("div",{class:d},_.w(ZH6,{data:E.data}))}})))},"Dc");
rhD.idomCompat=!0;var kh4=_.m(function(W){var B=W.data;var z=W.themeOverride;var G=_.dO().resolve(_.Y8(_.YG)),Y=function(){return _.k(B().logo,jY9)||{}};
W={};return _.w("ytm-lp-offer-table-section-view-model",null,_.w("div",{class:"ytLpOfferTableViewModelHost"},_.w(_.V,{cond:function(){var d,E;return G&&G()||(z==null?0:z().useDarkTheme)?(d=Y())==null?void 0:d.imageDark:(E=Y())==null?void 0:E.imageLight},
then:function(d){return _.w(_.iF,{data:d,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var E,v,c;return(c=(E=Y())==null?void 0:(v=E.accessibilityData)==null?void 0:v.label)!=null?c:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.w("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.w(_.r0,{text:function(){return B().title}})),_.w("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.w(_.r0,{text:function(){return B().subtitle}})),_.w(_.V,{cond:function(){return B().disclaimers},
then:function(d){return _.w("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.w(_.IJ,{each:d},function(E){return _.w("div",null,_.w(_.r0,{text:E}))}))}}),_.w("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.w(_.Sc,{data:function(){return B().rows}},{lpOfferTableRowViewModel:function(d,E){return _.w(rhD,{data:d.data,
lpTableIsFirstRow:function(){return E()===0},
lpTableIsLastRow:function(){return E()===B().rows.length-1}})}})),_.w("div",{class:_.kG((W.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return B().hasFooterBackground},W))},_.w(_.V,{cond:function(){return B().footer},
then:function(){return _.w("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.w(_.r0,{text:function(){return B().footer}}))}}),_.w(_.V,{cond:function(){return B().footerTitle},
then:function(){return _.w("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.w(_.r0,{text:function(){return B().footerTitle}}))}}),_.w(_.V,{cond:function(){return B().footerDescription},
then:function(){return _.w("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.w(_.r0,{text:function(){return B().footerDescription}}))}}),_.w(_.V,{cond:function(){return B().footerDescriptions},
then:function(d){return _.w("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.w(_.IJ,{each:d},function(E){return _.w("div",null,_.w(_.r0,{text:E}))}))}}))))},"Ec");
kh4.idomCompat=!0;var lhU=_.m(function(W){var B=W.data;var z=W.themeOverride;var G=_.dO().resolve(_.Y8(_.YG)),Y=function(){var v;return z==null?void 0:(v=z())==null?void 0:v.useDarkTheme},d=function(){var v,c;
return G&&G()||Y()?(v=B().image)==null?void 0:v.imageDark:(c=B().image)==null?void 0:c.imageLight};
W={};W=_.kG("ytmLpSmallFeatureSectionViewModelHost",(W.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=Y,W));var E=function(){var v,c,J;return(J=(v=B().image)==null?void 0:(c=v.accessibilityData)==null?void 0:c.label)!=null?J:""};
return _.w("ytm-lp-small-feature-section-view-model",{class:W},_.w(_.V,{cond:function(){return d()&&!Sm8},
then:function(){return _.w("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.w(_.iF,{data:function(){return d()},
alt:E,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.w("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.w("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.w(_.V,{cond:function(){return B().title},
then:function(v){return _.w(_.r0,{text:v})}})),_.w("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.w(_.r0,{text:function(){return B().description}}))))},"Fc");
lhU.idomCompat=!0;var CIQ=_.m(function(W){var B=W.data;var z=W.themeOverride;W={};return _.w("ytm-lp-small-feature-section-group-view-model",null,_.w("div",{class:_.kG("ytmLpSmallFeatureSectionGroupViewModelHost",(W.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(z==null||!z().useDarkTheme)},W))},_.w("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.w(_.Sc,{data:function(){return B().smallFeatures}},{lpSmallFeatureSectionViewModel:function(G){return _.w("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.w(lhU,{data:G.data,
themeOverride:z}))}}))))},"Gc");
CIQ.idomCompat=!0;_.Vm(_.m(function(W){var B=W.data;var z=function(){return B().forcedTheme==="USER_INTERFACE_THEME_DARK"},G=function(){return B().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},Y=function(){var E="",v,c;
var J=_.dO().resolve(_.Y8(_.YG));J=z()||(J==null?0:J())?(v=B().themedImageViewModel)==null?void 0:v.imageDark:(c=B().themedImageViewModel)==null?void 0:c.imageLight;(v=u_u((J==null?void 0:J.sources)||[]))&&v.url&&(E=G()?"background-image: linear-gradient(to bottom, transparent, "+(B().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.yN(v.url)+");":"background-image: url("+_.yN(v.url)+");");return E},d=function(){return{useDarkTheme:z()}};
W={};return _.w("yt-section-group-view-model",null,_.w("div",{class:_.kG("yt-lp-section-group-view-model",(W["yt-lp-section-group-view-model--premium-force-dark-mode"]=z,W["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return B().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},W))},_.w(_.V,{cond:function(){return Y().length},
then:function(){var E={};return _.w("div",{class:_.kG("yt-lp-section-group-view-model__bg-image",(E["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=G,E)),style:Y})}}),_.w("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.w(_.Sc,{data:function(){return B().sections}},{lpFaqSectionViewModel:function(E){return _.w(vkF,{data:E.data,
themeOverride:d})},
lpHeaderSectionViewModel:function(E){return _.w(chM,{data:E.data,themeOverride:d})},
lpHeadlineSectionViewModel:function(E){return _.w(wjD,{data:E.data,themeOverride:d})},
lpLargeFeatureSectionViewModel:function(E){return _.w(VA4,{data:E.data,themeOverride:d})},
lpOfferCardSectionViewModel:function(E){return _.w(s5R,{data:E.data,themeOverride:d})},
lpComplexOfferCardSectionViewModel:function(E){return _.w(Ahd,{data:E.data})},
lpOfferTableSectionViewModel:function(E){return _.w(kh4,{data:E.data,themeOverride:d})},
lpSmallFeatureSectionGroupViewModel:function(E){return _.w(CIQ,{data:E.data,themeOverride:d})},
lpCouponBannerViewModel:function(E){return _.w(iHM,{data:E.data})}}))))},"Hc"),"yt-section-group-view-model",{props:{data:_.kz}});var DNv=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Ih4=_.m(function(W){function B(){if(DNv.has(W.data().displayType)){var J=!G(),g;if((g=W.disableDeselection)==null||!g.call(W)||J){W.data().selected=J;g=Object.assign({},E(),{selected:J});v(g);var t;(t=W.callback)==null||t.call(W,g,J)}}}
var z=_.LG("chip-view-model"),G=function(){var J,g;return!!(((J=W.selected)==null?void 0:J.call(W))!==void 0?(g=W.selected)==null?0:g.call(W):E().selected)},Y=_.A(_.IK(W.data)),d=Y.next().value;
Y=Y.next().value;var E=d,v=Y,c=_.hg(xNu,function(){return W.data().chipEntityKey||""});
return _.w("chip-view-model",{class:"ytChipViewModelHost",el:z},_.w(dBH,{data:function(){var J,g=Object.assign({},E(),{selected:G()}),t=c(),P=(J=W.disableDeselection)==null?void 0:J.call(W);a:switch(g.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":J=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":J=3;break a;default:J=0}return{text:(t==null?void 0:t.text)||g.text,state:g.disabled?1:g.selected?0:2,type:J,onTap:QL0(g,z,B,P),
accessibilityLabel:g.accessibilityLabel||g.text}}}))},"Ic");
_.Ih4.idomCompat={callbacks:{callback:!0}};_.okM=_.m(function(W){var B=_.hg(mNk,function(){var E;return(E=W.data())==null?void 0:E.chipBarStateEntityKey}),z=function(){return W.data().disableDeselection},G=_.A(_.IK(function(){var E;
if(((E=B())==null?void 0:E.selectedIndex)!=void 0)return B().selectedIndex;var v,c;E=_.A(((v=W.data())==null?void 0:(c=v.chips)==null?void 0:c.entries())||[]);for(v=E.next();!v.done;v=E.next()){v=_.A(v.value);c=v.next().value;v=v.next().value;var J=void 0;if((J=_.k(v,_.VP))==null?0:J.selected)return c}return-1})),Y=G.next().value,d=G.next().value;
return _.w("chip-bar-view-model",{class:_.kG("ytChipBarViewModelHost",W.className),role:"tablist"},_.w(_.Sc,{data:function(){return W.data().chips}},{chipViewModel:function(E,v){return _.w("div",{class:"ytChipBarViewModelChipWrapper"},_.w(_.Ih4,{data:E.data,
selected:function(){return v()===Y()},
callback:function(c,J){c=!!J;J=v();d(c?J:-1);var g,t=(g=W.data())==null?void 0:g.chipBarStateEntityKey;t&&c&&_.AV(_.bj("chipBarStateEntity",t,{key:t,selectedIndex:J}))},
disableDeselection:W.disableDeselection||z}))}}))},"Jc");_.Vm(_.okM,"chip-bar-view-model",{props:{data:_.wS,className:_.wS,disableDeselection:_.wS}});_.hVu=_.m(function(W){var B=W.data;W={};return _.w("divider-view-model",{class:_.kG("dividerViewModelHost",(W.dividerViewModelInsetThinPadding=function(){return B().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},W))},_.w("div",{class:_.kG("dividerViewModelBaseDivider",function(){return ykk(B().dividerStyle)}),
style:_.oK({"background-color":function(){return B().backgroundColor?_.M_(B().backgroundColor):void 0}})}))},"Kc");
_.hVu.idomCompat=!0;_.Vm(_.hVu,"divider-view-model",{props:{data:_.kz}});var hE=new Map,o6=new Map,NTu=0,Hk;var WI8=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],GZx={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var HH6,FqD;HH6=function(W){return function(B){return function(){return(B==null?void 0:B())!==void 0?String(B())+W:void 0}}};
_.EJ=HH6("px");FqD=HH6("s");var SOM=W3y(function(W){return W.targetGroupId}).useUpdatableData;var j5T=_.m(function(W){function B(By){return function(){var gk=b().numItemsPerGridRow,vy=By()*gk;gk=vy+gk;var lx,Zv;return(Zv=(lx=G().contents)==null?void 0:lx.slice(vy,gk))!=null?Zv:[]}}
var z=_.EV(W,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),G=z.data,Y=z.layoutContainerWidth,d=z.shouldUseOwnContainerSize,E=z.marginSettings,v=SBt(),c=_.A(SOM(function(){var By,gk;return{targetGroupId:(By=G().targetingContext)==null?void 0:(gk=By.targetGroupId)==null?void 0:gk[0]}})).next().value;
z=_.A(_.g4(!0,void 0,"AA2Ctc"));var J=z.next().value,g=z.next().value,t=function(){var By,gk=(By=_.k(G().showMoreButton,_.wP))==null?void 0:By.trackingParams;gk&&_.x3(_.SK(),gk);g(!1)},P=function(){var By,gk=(By=_.k(G().showLessButton,_.wP))==null?void 0:By.trackingParams;
gk&&_.x3(_.SK(),gk);g(!0)};
z=_.LG("grid-shelf-view-model");var Z=_.d0T(z,{canHaveZeroSize:!1}),l=function(){var By;return(By=G().contentAspectRatio)!=null?By:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},b=_.r4(function(){var By=_.$2({containerWidth:d()&&Z.width()>0?Z.width()||Y():Y(),
sizing:"EXTRA_COMPACT",marginSettings:E(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:By.maxContainerWidth,numItemsPerGridRow:By.numItems,contentPadding:d()?By.margin:By.contentMargin,itemWidth:By.itemWidth,itemMargin:By.gutter/2}},void 0,"IZAnPe"),O=function(){if(G().enableVerticalExpansion){if(J())return K();
var By,gk,vy=(gk=(By=G().contents)==null?void 0:By.length)!=null?gk:0;return Math.ceil(vy/b().numItemsPerGridRow)}return b().numItemsPerGridRow<=2?2:1},K=function(){var By;
return Math.ceil(((By=G().minCollapsedItemCount)!=null?By:1)/b().numItemsPerGridRow)},e=function(){return G().enableVerticalExpansion&&G().showLessButton&&!J()&&O()>K()},a=function(){var By,gk;
return G().enableVerticalExpansion&&G().showMoreButton&&J()&&((gk=(By=G().contents)==null?void 0:By.length)!=null?gk:0)>b().numItemsPerGridRow*K()},q=function(){return!e()},n=function(){return!a()},L={};
return _.w("grid-shelf-view-model",{class:_.kG("ytGridShelfViewModelHost",W.className,(L.ytGridShelfViewModelHostHasBottomButton=function(){return e()||a()},L.ytGridShelfViewModelHostIsDismissed=function(){var By,gk=(By=c())!=null?By:{};
By=gk.behavior;var vy=gk.isDismissed,lx=gk.stamperContextTargetId;gk=gk.stamperIndex;if(!(_.r("mweb_see_fewer_shorts_group_dismissal")&&vy&&By&&lx))return!1;var Zv;vy=v;for(var VR,ux,X2=((VR=vy)==null?0:VR.targetId)?_.XA((ux=vy)==null?void 0:ux.targetId):void 0;((Zv=vy)==null?0:Zv.parent)&&X2!==lx;)vy=vy.parent,ux=VR=void 0,X2=((VR=vy)==null?0:VR.targetId)?_.XA((ux=vy)==null?void 0:ux.targetId):void 0;Zv=X2===lx?vy:void 0;if(!Zv)return!1;var WQ;lx=Zv==null?void 0:(WQ=Zv.stamperIndex)==null?void 0:
WQ.call(Zv);return By==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||By==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&lx!=null&&gk!=null&&lx>gk},L)),
el:z,style:_.oK({"margin-left":(0,_.EJ)(function(){return b().contentPadding}),
"margin-right":(0,_.EJ)(function(){return b().contentPadding})})},_.w(_.V,{cond:function(){return _.k(G().header,yuM)},
then:function(By){return _.w(_.DC,{data:By,disableHorizontalPadding:!0})}}),_.w("div",null,_.w(_.IJ,{each:function(){return Array(O())}},function(By,gk){return _.w(bHM,{className:W.className,
items:B(gk),responsiveGridShelfLayout:b,contentAspectRatio:l})})),_.w("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.w(_.Sc,{data:function(){return G().showMoreButton}},{buttonViewModel:function(By){return _.w("div",{hidden:n},_.w(_.ex,{data:By.data,
onClick:t}))}}),_.w(_.Sc,{data:function(){return G().showLessButton}},{buttonViewModel:function(By){return _.w("div",{hidden:q},_.w(_.ex,{data:By.data,
onClick:P}))}})))},"Lc");
j5T.idomCompat=!0;var bHM=_.m(function(W){var B=W.items;var z=W.responsiveGridShelfLayout;var G=W.contentAspectRatio;W=W.className;var Y=_.LG("div");nsT(Y,function(){a:{var E=Y.value;for(var v=B(),c=[],J=0;J<v.length;J++){var g=_.k(v[J],sHH);if(!g||g==null||!g.inlinePlayerData){E=null;break a}var t=E.children.item(J);if(!t){E=null;break a}c.push({thumbnailElement:t,videoData:g})}E={gridVideoPreviewData:{gridItems:c}}}return E});
var d=(0,_.EJ)(function(){return-z().itemMargin});
return _.w("div",{el:Y,class:_.kG("ytGridShelfViewModelGridShelfRow",W),style:_.oK({"margin-left":d,"margin-right":d})},_.w(_.Sc,{data:B,replacementWrapper:function(E){return _.w(fhQ,{responsiveGridShelfLayout:z},E)}},{shortsLockupViewModel:function(E){return _.w(fhQ,{responsiveGridShelfLayout:z},_.w(TTU,{data:E.data,
aspectRatio:function(){return G()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.r("mweb_enable_one_line_title_on_shorts")?1:_.r("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))}}))},"Mc"),fhQ=_.m(function(W){return _.w("div",{style:_.oK({width:(0,_.EJ)(function(){return W.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+W.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},W.children)},"Nc");
j5T.idomCompat=!0;_.Vm(j5T,"grid-shelf-view-model",{props:{data:_.kz,layoutContainerWidth:_.kz,shouldUseOwnContainerSize:_.kz,marginSettings:_.kz,className:_.kz}});_.OHF=_.m(function(W){var B=_.A(_.g4(!1,void 0,"FVl30c")),z=B.next().value,G=B.next().value;B={};return _.w("yt-alert-banner-view-model",{class:_.kG("ytAlertBannerViewModelHost",W.className,function(){var Y;a:switch((Y=W.data())==null?void 0:Y.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":Y="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":Y="ytAlertBannerViewModelWarning";break a;default:Y="ytAlertBannerViewModelInformational"}return Y},(B.ytAlertBannerViewModelDismissed=
z,B.ytAlertBannerViewModelFullbleed=W.fullbleed,B.ytAlertBannerViewModelNarrow=W.narrow,B.ytAlertBannerViewModelIsInRichGrid=W.isInRichGrid,B))},_.w(_.V,{cond:function(){var Y;
return!((Y=W.data())==null?0:Y.hideIcon)},
then:function(){return _.w("div",{class:"ytAlertBannerViewModelIcon"},_.w(_.hY,{icon:function(){return"info_circle"}}))}}),_.w("div",{class:"ytAlertBannerViewModelOuterContainer"},_.w("div",{class:"ytAlertBannerViewModelContainer"},_.w("div",{class:"ytAlertBannerViewModelContent"},_.w("div",{class:"ytAlertBannerViewModelHeading"},_.w(_.r0,{text:function(){var Y;
return(Y=W.data())==null?void 0:Y.heading}})),_.w("div",{class:"ytAlertBannerViewModelBody"},_.w(_.r0,{text:function(){var Y;
return(Y=W.data())==null?void 0:Y.body}})))),_.w(_.Sc,{data:function(){var Y;
return(Y=W.data())==null?void 0:Y.actionButton}},{buttonViewModel:function(Y){return _.w(_.ex,{data:Y.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.w(_.Sc,{data:function(){var Y;
return(Y=W.data())==null?void 0:Y.dismissButton}},{buttonViewModel:function(Y){return _.w(_.ex,{data:Y.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var d;((d=W.data())==null?0:d.disableLocalDismissBehavior)||G(!0)}})}}))},"Oc");_.Vm(_.OHF,"yt-alert-banner-view-model",{props:{data:_.kz,fullbleed:_.kz,narrow:_.kz,isInRichGrid:_.kz,className:_.kz}});_.T$=_.m(function(W){var B=W.data;var z=W.callback;var G=W.selectionBehavior;var Y=W.disableChipsScrollAnimation;var d=_.ag("div");W=_.A(_.g4(!0,void 0,"aUEsOc"));var E=W.next().value,v=W.next().value;W=_.A(_.g4(!1,void 0,"V0aKld"));var c=W.next().value,J=W.next().value,g=!1,t=0;_.bk(function(){v(l());J(b())});
W=_.A(_.IK(function(){var By={};return B().autoselectedChipIndex!=null?(By[B().autoselectedChipIndex]=!0,By):{}}));
var P=W.next().value,Z=W.next().value,l=function(){var By=d.value;return By==null||By.scrollLeft-1<=0},b=function(){var By=d.value;
return By==null?!1:By.scrollLeft+1>=(By==null?NaN:By.scrollWidth)-(By==null?NaN:By.clientWidth)},O=function(){return B().isHorizontallyScrollable},K=function(By){d.value!=null&&(_.eD("HTML_DIR")==="rtl"&&(By=-By),d.value.scrollBy({left:By,
behavior:(Y==null?0:Y())?"instant":"smooth"}))},e=function(){K(-320)},a=function(){K(320)},q=_.lF(function(By){g=!0;
t=By.clientX}),n=_.lF(function(By){if(g){By=By.clientX;
var gk=By-t;t=By;var vy;(vy=d.value)==null||vy.scrollBy({left:-gk})}}),L=_.lF(function(){var By=l(),gk=b();
By!==E()&&v(By);gk!==c()&&J(gk)});
zp("pointerup",function(){g&&(g=!1)});
return _.w("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.w(_.Oi,{contentId:function(){return B().contentId},
useModernStyle:!0},function(){var By={},gk={};return _.w("div",null,_.w(_.V,{cond:function(){return B().title},
then:function(){return _.w("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.w("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return B().title}),_.w(_.Sc,{data:function(){return B().overflowButton}},{buttonViewModel:_.ex}))}}),_.w("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.w(_.V,{cond:function(){return B().previousButton},
then:function(){var vy={};return _.w("div",{class:_.kG("ytChipsShelfViewModelLeftArrowContainer",(vy.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return E()},vy))},_.w(_.Sc,{data:function(){return B().previousButton}},{buttonViewModel:function(lx){return _.w(_.ex,{data:lx.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:e})}}))}}),_.w("div",{el:d,
"on:pointerdown":q,"on:pointermove":n,"on:scroll":L,class:_.kG("ytChipsShelfViewModelChipsScrollContainer",(By.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=O,By))},_.w("div",{class:_.kG("ytChipsShelfViewModelChipsContainer",(gk.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=O,gk.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,gk)),role:"tablist"},_.w(_.Sc,{data:function(){return B().contents}},{chipViewModel:function(vy,lx){return _.w("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.w(_.Ih4,{data:vy.data,
callback:function(Zv,VR){var ux=lx(),X2,WQ=(X2=G==null?void 0:G())!=null?X2:0;WQ===1||WQ===2?(X2={},Z((X2[ux]=VR,X2))):(X2={},Z(Object.assign({},P(),(X2[ux]=VR,X2))));z==null||z(Zv,VR,ux)},
disableDeselection:function(){return(G==null?void 0:G())===1},
selected:function(){return!!P()[lx()]}}))}}))),_.w(_.V,{cond:function(){return B().nextButton},
then:function(){var vy={};return _.w("div",{class:_.kG("ytChipsShelfViewModelRightArrowContainer",(vy.ytChipsShelfViewModelRightArrowContainerIsHidden=c,vy))},_.w(_.Sc,{data:function(){return B().nextButton}},{buttonViewModel:function(lx){return _.w(_.ex,{data:lx.data,
className:"ytChipsShelfViewModelRightArrow",onClick:a})}}))}})))}))},"Pc");
_.T$.idomCompat={callbacks:{callback:!0}};_.Vm(_.T$,"chips-shelf-view-model",{props:{data:_.kz,callback:_.wS,selectionBehavior:_.kz,disableChipsScrollAnimation:_.kz}});_.Vm(_.m(function(W){return _.w("yt-comment-filter-context-view-model",{class:_.kG("ytCommentFilterContextHost",W.className)},_.w(_.r0,{text:function(){return W.data().text}}))},"Qc"),"yt-comment-filter-context-view-model",{props:{data:_.kz,
className:_.wS}});var XjR=_.m(function(W){W=_.EV(W,{disabled:!1});var B=W.active,z=W.disabled;W={};W=_.kG("ytSwitchShapeTrack",(W.ytSwitchShapeTrackActive=function(){return B()},W.ytSwitchShapeTrackDisabled=function(){return z()},W));
var G={};G=_.kG("ytSwitchShapeKnob",(G.ytSwitchShapeKnobActive=function(){return B()},G));
return _.w("switch-shape",{class:"ytSwitchShapeHost"},_.w("div",{class:W}),_.w("div",{class:G}))},"Rc");var KqU=_.m(function(W){var B=_.EV(W,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),z=B.data;W=B.className;var G=B.handleOnTapEventInParent,Y=B.parentActive,d=B.onTap;B=_.A(_.IK(function(){var P;return(P=Y())!=null?P:z().switchedOnByDefault||!1}));
var E=B.next().value,v=B.next().value,c=function(){return z().isDisabled},J=_.LG("button");
B=_.lF(function(P){return P.key==="Enter"?(P.preventDefault(),J.value.click(),!1):!0});
var g=_.lF(function(P){if(z().handleOnTapEventInParent||G())return!0;if(c())return!1;if(d)return d(P),!0;Amu(z(),E(),P);v(!E());return!1}),t={};
t=_.kG("ytSwitchButtonViewModelButton",(t.ytSwitchButtonViewModelTappable=function(){return!c()},t));
return _.w("switch-button-view-model",{class:_.kG("ytSwitchButtonViewModelHost",W)},_.w("button",{el:J,class:t,"on:click":g,"on:keydown":B,"aria-label":function(){return E()?z().a11yLabelSwitchedOn:z().a11yLabelSwitchedOff},
"aria-checked":E,"aria-disabled":c,role:"switch"},_.w(XjR,{active:E,disabled:c})))},"Sc");var uzR=_.m(function(W){var B=W.data;var z=W.isLeading;var G=W.hideSelectionTextChevron;var Y=W.isToggled;var d=function(){return z()?B().leadingImage:B().trailingImage},E=function(){a:switch(B().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var g="expand_more";
break a;default:g="chevron_right"}return g};
W={};var v=_.kG("yt-list-item-view-model__image-container",(W["yt-list-item-view-model__leading"]=z,W["yt-list-item-view-model__trailing"]=function(){return!z()},W)),c=_.kG("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
W={};var J=_.kG("yt-list-item-view-model__accessory",(W["yt-list-item-view-model__leading"]=z,W["yt-list-item-view-model__trailing"]=function(){return!z()},W));
return _.w(_.V,{cond:function(){var g=B(),t=z();return!!(t&&(g.leadingImage||g.leadingAccessory)||!t&&(g.trailingImage||g.trailingButton||g.trailingButtons||g.selectionText))},
then:function(){return _.w(_.AW,null,_.w(_.V,{cond:d,then:function(g){return _.w("div",{class:v,"aria-hidden":"true"},_.w(_.iF,{data:g,alt:"",preserveWidth:!0,preserveHeight:!0,className:c,isToggled:Y}))}}),_.w(_.V,{cond:function(){return z()&&B().leadingAccessory},
then:function(){return _.w("div",{class:v},_.w(_.Sc,{data:function(){return B().leadingAccessory}},{avatarViewModel:function(g){return _.w(_.ds,{data:g.data,
avatarButtonCustomClassName:c})},
collectionThumbnailViewModel:function(g){return _.w(YtU,{data:g.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.w(_.V,{cond:function(){return!z()&&B().trailingButton},
then:function(){return _.w("div",{class:"yt-list-item-view-model__button-container"},_.w(_.Sc,{data:function(){return B().trailingButton}},{buttonViewModel:function(g){return _.w(_.ex,{data:g.data,
className:J})}}))}}),_.w(_.V,{cond:function(){var g;
return!z()&&((g=B().trailingButtons)==null?void 0:g.buttons)},
then:function(){return _.w("div",{class:"yt-list-item-view-model__button-container"},_.w(_.Sc,{data:function(){var g;return(g=B().trailingButtons)==null?void 0:g.buttons}},{buttonViewModel:function(g){return _.w(_.ex,{data:g.data,
className:J})},
accountLinkButtonViewModel:function(g){return _.w($9d,{data:g.data,className:J})},
switchButtonViewModel:function(g){return _.w(KqU,{data:g.data,className:J})},
subscribeButtonViewModel:function(g){return _.w(_.dJ,{data:g.data,isOverlay:!1,animateWidth:!1,className:J})},
toggleButtonViewModel:function(g){return _.w(_.Y1,{data:g.data,className:J})}}))}}),_.w(_.V,{cond:function(){return!z()&&!!B().selectionText},
then:function(){return _.w(_.AW,null,_.w(_.r0,{text:function(){return B().selectionText},
className:_.kG("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.w(_.V,{cond:function(){return!(G==null?0:G())},
then:function(){return _.w(_.hY,{icon:E,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Tc");var eVR=_.m(function(W){function B(){var Z,l;c((l=(Z=Y)==null?void 0:Z.isKeyBoardInUse())!=null?l:!1)}
function z(){c(!1)}
function G(){var Z;return v()?(Z=W.focusedClassName)==null?void 0:Z.call(W):""}
var Y=_.dO().resolve(_.Y8(_.jx)),d=_.A(_.g4(!1,void 0,"zbdw0d")),E=d.next().value;d=d.next().value;var v=E,c=d,J=function(){var Z,l;return((Z=W.toggleable)==null?0:Z.call(W))?(l=W.toggled)==null?void 0:l.call(W):void 0},g=_.lF(function(Z){var l,b=(l=W.command)==null?void 0:l.call(W);
b&&_.dO().resolve(_.p4).resolveCommand(b);var O;(O=W.onClick)==null||O.call(W,Z)}),t=_.lF(B),P=_.lF(z);
return _.w(_.V,{cond:function(){var Z;if(Z=W.command){Z=W.command();Z=LSv(Z);var l=Z.href;Z=!(!Z.navigatingCommand||!l)}return Z},
then:function(){return _.w(_.fL,Object.assign({},{command:W.command,style:W.style,ariaDescribedby:W.ariaDescribedby,ariaHidden:W.ariaHidden,ariaLabel:W.ariaLabel,ariaLabelledby:W.ariaLabelledby,ariaSelected:W.ariaSelected,disabled:W.disabled,dir:W.dir,tabIndex:W.tabIndex,target:W.target,title:W.title,onClick:W.onClick},{className:_.kG("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",W.className,function(){return G()}),
onFocusin:B,onFocusout:z,ariaCurrent:function(){var Z,l;return(l=(Z=W.ariaCurrent)==null?void 0:Z.call(W))!=null?l:J()}}),W.children)},
else:function(){return _.w("button",{"on:click":g,"on:focusin":t,"on:focusout":P,class:_.kG("ytButtonOrAnchorHost","ytButtonOrAnchorButton",W.className,function(){return G()}),
style:W.style,"aria-describedby":W.ariaDescribedby,"aria-hidden":W.ariaHidden,"aria-label":W.ariaLabel,"aria-labelledby":W.ariaLabelledby,"aria-pressed":J,dir:W.dir,disabled:W.disabled,tabindex:W.tabIndex,title:W.title},W.children)}})},"Uc");var mbD=_.m(function(W){var B=W.data;var z=W.useButtonOrAnchor;var G=W.onTap;var Y=W.isTappableWithoutSelect;var d=W.isToggled;return _.w(_.V,{cond:function(){return B().title||B().subtitle},
then:function(){return _.w("div",{class:"yt-list-item-view-model__text-wrapper"},_.w(_.V,{cond:function(){return B().title},
then:function(E){return _.w("div",{class:"yt-list-item-view-model__title-wrapper"},_.w(_.V,{cond:function(){return(z==null?void 0:z())&&(Y==null?void 0:Y())},
then:function(){return _.w(eVR,{command:function(){return _.x2(B().rendererContext)},
onClick:G,className:"yt-list-item-view-model__button-or-anchor",toggleable:d!==void 0,toggled:d},_.w(_.r0,{text:E,className:"yt-list-item-view-model__title"}))},
else:function(){return _.w(_.r0,{text:E,className:"yt-list-item-view-model__title"})}}))}}),_.w(_.V,{cond:function(){return B().subtitle},
then:function(E){return _.w(_.r0,{text:E,className:"yt-list-item-view-model__subtitle"})}}))}})},"Vc");var xbd=_.m(function(W){var B=W.data;var z=W.hideSelectionTextChevron;var G=W.TrailingAccessory;var Y=W.isToggled;var d=W.disabled;var E=W.isSelectItem;var v=W.isCompact;var c=W.inPopup;var J=W.disableHorizontalPadding;var g=W.isTappableWithoutSelect;var t=W.useButtonOrAnchor;W=W.onTap;var P={};return _.w("div",{class:_.kG("yt-list-item-view-model__label",(P["yt-list-item-view-model__container"]=function(){return!(E==null?0:E())},P["yt-list-item-view-model__container--disabled"]=function(){return!!B().isDisabled||
!(d==null||!d())},P["yt-list-item-view-model__container--has-subtitle"]=function(){return!!B().subtitle},P["yt-list-item-view-model__container--compact"]=v,P["yt-list-item-view-model__container--tappable"]=g,P["yt-list-item-view-model__container--in-popup"]=c,P["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(J==null?void 0:J())&&!(E==null?0:E())},P))},_.w(uzR,{data:B,
isLeading:!0,hideSelectionTextChevron:z,isToggled:Y}),_.w(mbD,{data:B,onTap:W,useButtonOrAnchor:t,isTappableWithoutSelect:g,isToggled:Y}),_.w(_.V,{cond:function(){return!!G},
then:function(){return _.w("div",{class:"yt-list-item-view-model__trailing"},G&&_.w(G,null))},
else:function(){return _.w(uzR,{data:B,isLeading:!1,hideSelectionTextChevron:z,isToggled:Y})}}))},"Wc");var Q5U=_.m(function(W){var B=_.EV(W,{checked:!1});W=B.name;var z=B.onChange,G=B.onClick,Y=B.checked,d=B.labelRenderable,E=B.hasLeadingLabel,v=B.labelClass,c=B.isCompact,J=B.selectElementClass;B=B.disableHorizontalPadding;var g="checkbox"+_.L_(_.i$),t=_.lF(function(l){G==null||G(l);return!1}),P=_.lF(function(l){z==null||z(l);
return!1}),Z={};
return _.w("checkbox-shape",null,_.w("label",{class:_.kG("ytCheckboxShapeHost",v,(Z.ytCheckboxShapeHostCompact=c,Z.ytCheckboxShapeDisableHorizontalPadding=B,Z))},_.w("input",{class:"ytCheckboxShapeInput",id:g,checked:Y,name:W,type:"checkbox","prop:checked":Y,"on:change":P,"on:click":t}),_.w(_.V,{cond:function(){return!(E==null?0:E())},
then:function(){return _.w(Dbd,{isLeading:!0,selectElementClass:J})}}),_.w(_.V,{cond:function(){return!!d},
then:function(){return _.w("div",{class:"ytCheckboxShapeLabel"},d==null?void 0:d())}}),_.w(_.V,{cond:E,
then:function(){return _.w(Dbd,{isLeading:!1,selectElementClass:J})}})))},"Xc");
Q5U.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Dbd=_.m(function(W){var B=W.selectElementClass;W={};return _.w("div",{class:_.kG("ytCheckboxShapeCheckbox",B,(W.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(B==null?0:B())},W)),
"aria-hidden":"true"},_.w(_.hY,{icon:_.r("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.w(_.hY,{icon:_.r("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Yc");_.vU=_.m(function(W){var B=W.name;var z=W.onChange;var G=W.onClick;var Y=W.checked;var d=W.labelRenderable;var E=W.useCheckIcon;var v=W.hasLeadingLabel;var c=W.labelClass;var J=W.isCompact;var g=W.selectElementClass;var t=W.ariaLabel;W=W.className;var P="radio"+_.L_(_.i$),Z=_.LG("input"),l=_.lF(function(L){Z.value.checked=!(Y==null||!Y());z==null||z(L);return!1}),b=_.lF(function(L){G==null||G(L);
return!1}),O=_.lF(function(L){_.r("enable_ios_webview_radio_button_responsiveness")&&(L.preventDefault(),Z.value.click())}),K=_.A(_.g4(!1,void 0,"TcCZlf")),e=K.next().value,a=K.next().value;
K=_.lF(function(){var L;((L=_.dO().resolve(_.Y8(_.jx)))==null?0:L.isKeyBoardInUse())&&a(!0)});
var q=_.lF(function(){a(!1)}),n={};
return _.w("radio-shape",{class:_.kG("yt-radio-shape",W)},_.w("input",{el:Z,class:"yt-radio-shape__input",id:P,"prop:checked":Y,name:B,type:"radio","on:change":l,"on:click":b,"aria-label":t,"on:focusin":K,"on:focusout":q}),_.w("label",{class:_.kG("yt-radio-shape__label-container",c,(n["yt-radio-shape--compact"]=J,n["yt-radio-shape__label-container--keyboard-focused"]=e,n)),for:P,"on:click":O},_.w(_.V,{cond:function(){return!(v==null?0:v())},
then:function(){return _.w(yhM,{checked:Y,useCheckIcon:E,isLeading:!0,selectElementClass:g})}}),_.w(_.V,{cond:function(){return!!d},
then:function(){return _.w("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(t==null?0:t())?"true":"false"}},d==null?void 0:d())}}),_.w(_.V,{cond:v,
then:function(){return _.w(yhM,{checked:Y,useCheckIcon:E,isLeading:!1,selectElementClass:g})}})))},"Zc");
_.vU.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var yhM=_.m(function(W){var B=W.useCheckIcon;var z=W.selectElementClass;W=function(){return(B==null?0:B())?"CHECK":_.r("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var G={};return _.w("div",{class:_.kG("yt-radio-shape__radio",z,(G["yt-radio-shape__radio--check-icon"]=B,G["yt-radio-shape__radio--radio-default-style"]=function(){return!(z==null?0:z())},G)),
"aria-hidden":"true"},_.w(_.hY,{icon:W}),_.w(_.hY,{icon:W,active:function(){return!(B==null?0:B())}}))},"$c");_.cU=_.m(function(W){var B=W.data;var z=W.isMenuItem;var G=W.isCompact;var Y=W.onTap;var d=W.trailingAccessory;var E=W.hideSelectionTextChevron;var v=W.disabled;var c=W.inPopup;var J=W.disableHorizontalPadding;var g=W.isOverlay;var t=W.isToggled;var P=W.ariaLabel;W=W.ariaPressed;var Z=_.ny(function(VR){return TyX(VR,B())}),l=function(){return _.r("enable_web_shorts_captions_language_command")?Object.assign({},B(),Z()):B()},b=cmT(function(){return l().rendererContext}),O=function(){return!(l().isSelected===
void 0||!l().selectionStyle||l().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},K=function(){return(_.Dp(l().rendererContext)||Y)&&!O()},e={},a=_.kG("yt-list-item-view-model__container",(e["yt-list-item-view-model__container--tappable"]=function(){return _.Dp(l().rendererContext)||O()},e["yt-list-item-view-model__container--compact"]=G,e["yt-list-item-view-model__container--in-popup"]=c,e["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(J==null?void 0:
J())&&O()},e)),q=function(){return l().leadingImage||l().leadingAccessory},n=_.kG("yt-list-item-view-model__image-container",function(){return q()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
e=_.lF(function(VR){Zv||Y==null||Y(VR)});
var L=_.Tg0(),By=_.A(_.g4(!1,void 0,"T3mHdc")),gk=By.next().value,vy=By.next().value,lx=function(){return _.w(xbd,{data:l,hideSelectionTextChevron:E,TrailingAccessory:d,isToggled:t,disabled:v,isSelectItem:O,isCompact:G,inPopup:c,disableHorizontalPadding:J,isTappableWithoutSelect:K,useButtonOrAnchor:Zv,onTap:Y})},Zv=_.r("web_button_or_anchor_list_item");
By={};return _.w("yt-list-item-view-model",{el:_.TG(_.Qi(function(){return l().rendererContext},void 0,void 0,Zv?["A".toString(),
"BUTTON".toString()]:[]),Zv&&Y?vm0(Y):void 0,CW0(function(){return K==null?void 0:K()},{focusin:function(){var VR;
((VR=_.dO().resolve(_.Y8(_.jx)))==null?0:VR.isKeyBoardInUse())&&vy(!0)},
focusout:function(){vy(!1)}})),
class:_.kG("yt-list-item-view-model",(By["yt-list-item-view-model--is-overlay"]=g,By["yt-list-item-view-model--keyboard-focused"]=gk,By)),role:function(){return(z==null?0:z())?"menuitem":"listitem"},
tabindex:function(){var VR=K();VR=Zv?void 0:Y||VR?0:void 0;return VR},
"on:keydown":L,"on:click":e,"aria-label":function(){var VR;return(P==null?void 0:P())||((VR=b())==null?void 0:VR.label)},
"aria-pressed":W},_.w(_.V,{cond:O,then:function(){return _.w(_.HR,null,_.w(_.oJ,{when:function(){return l().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.w(Q5U,{labelRenderable:lx,
isCompact:G,checked:function(){return l().isSelected},
hasLeadingLabel:function(){return!!q()},
labelClass:a,selectElementClass:n,disableHorizontalPadding:J})}),_.w(_.oJ,{when:function(){return l().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.w(_.vU,{labelRenderable:lx,
isCompact:G,checked:function(){return l().isSelected},
hasLeadingLabel:function(){return!!q()},
labelClass:a,selectElementClass:n})}),_.w(_.oJ,{when:function(){return l().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.w(_.vU,{labelRenderable:lx,
isCompact:G,checked:function(){return l().isSelected},
hasLeadingLabel:function(){return!!q()},
labelClass:a,selectElementClass:n,useCheckIcon:!0})}),_.w(_.hW,null,lx))},
else:lx}))},"ad");
_.cU.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.qOT=_.m(function(W){var B=W.data;var z=W.onTap;var G=W.onSwitch;var Y=W.overrideDisabled;W=W.disableHorizontalPadding;var d=_.A(_.IK(function(){var Z;return((Z=Emx(t()))==null?void 0:Z.switchedOnByDefault)||!1})),E=d.next().value,v=d.next().value;
d=_.A(_.g4(!1,void 0,"ZHBkbb"));var c=d.next().value,J=d.next().value,g=_.r("web_button_or_anchor_list_item"),t=function(){var Z;if(!(Z=B().switchButton)){var l=B();Z=Y==null?void 0:Y();l={switchOnCommand:l.switchOnCommand,switchOffCommand:l.switchOffCommand,switchedOnByDefault:l.switchedOnByDefault,isDisabled:l.isDisabled,handleOnTapEventInParent:!g,a11yLabelSwitchedOn:l.a11yLabelSwitchedOn,a11yLabelSwitchedOff:l.a11yLabelSwitchedOff};Z!==void 0&&(l.isDisabled=Z);Z={switchButtonViewModel:l}}return Z},
P=function(Z){var l=Emx(t());
!l||l.isDisabled||B().ignoreTapUntilCommandCompletes&&c()||(z==null||z(Z),Amu(l,E(),Z,B().ignoreTapUntilCommandCompletes,J),v(!E()),G==null||G(E()))};
return _.w("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.w(_.cU,{data:function(){return{title:B().title,subtitle:B().attributedSubtitle,leadingImage:B().leadingImage,leadingAccessory:B().leadingAccessory,isDisabled:B().isDisabled}},
onTap:P,isToggled:g?E:void 0,trailingAccessory:function(){return _.w(_.Sc,{data:t},{switchButtonViewModel:function(Z){return _.w(KqU,{data:Z.data,parentActive:E,handleOnTapEventInParent:!!z&&!g,onTap:g?P:void 0})}})},
disableHorizontalPadding:W}))},"bd");var nkU=_.m(function(W){var B=_.A(_.IK(function(){var Y,d;return!!((Y=W.data())==null?0:(d=Y.initialState)==null?0:d.isToggled)})),z=B.next().value,G=B.next().value;
B=_.lF(function(){G(!z())});
return _.w("toggleable-list-item-view-model",{el:_.TG(_.Qi(function(){return W.data().rendererContext})),
class:_.kG("toggleableListItemViewModelHost",W.className),"on:click":B},_.w(_.V,{cond:function(){if(z()){var Y=W.data().toggledListItem;Y=_.k(Y,_.f2)}else Y=W.data().defaultListItem,Y=_.k(Y,_.f2);return Y},
then:function(Y){return _.w(_.cU,{data:Y,isToggled:z,ariaLabel:function(){var d=z()?W.data().toggledListItem:W.data().defaultListItem,E;d=(E=_.k(d,_.f2))==null?void 0:E.rendererContext;var v;return(v=_.k(d,_.FB))==null?void 0:v.label},
ariaPressed:function(){return z()}})}}))},"cd");var NxR=_.kq("DOWNLOAD",{},"Download"),$bQ=_.kq("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),Lqu=_.kq("RETRY",{},"Retry"),Ub4=_.kq("PAUSE_DOWNLOADING",{},"Pause downloading"),MAD=_.kq("RESUME_DOWNLOAD",{},"Resume download"),ws0={text:NxR,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Sg={text:$bQ,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},gmt={text:Lqu,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
VCt={text:Ub4,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Jmx={text:MAD,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var ahM=_.m(function(W){var B=function(){var v=W.data();v=_.x2(v.rendererContext);var c;return(c=_.k(v,_.C2))==null?void 0:c.videoId},z=_.ny(function(v){var c=B(),J=Ps8(W.data());
return c?_.yg(v,c):J?_.qM(v,J):"TRANSFER_STATE_UNKNOWN"}),G=_.hg(_.h7t,B),Y=_.ny(function(v){return _.ZIy(v,B(),Ps8(W.data()))}),d=function(){return slt(z(),G(),_.x2(W.data().rendererContext),!!Ps8(W.data()))},E=function(){return Y()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.w("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:E},_.w(_.V,{cond:function(){return!E()},
then:function(){return _.w(_.V,{cond:d,then:function(v){return _.w(_.IJ,{each:v},function(c){return _.w(_.cU,{data:c,isCompact:W.isCompact,isMenuItem:W.isMenuItem,inPopup:W.inPopup,disableHorizontalPadding:W.disableHorizontalPadding})})}})}}))},"dd");
ahM.idomCompat=!0;_.RV4=_.m(function(W){var B=W.data;var z=W.isCompact;var G=W.hideSelectionTextChevron;var Y=W.inPopup;var d=W.isOverlay;var E=W.disableHorizontalPadding;var v=function(){return ZBR(B())&&(Y==null?void 0:Y())};
W={};return _.w("yt-list-view-model",{class:_.kG("ytListViewModelHost",(W.ytListViewModelHostKaiosSpatNav=Sm8&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",W.ytListViewModelCollectionThumbnailClass=function(){return lWu(B())},W)),
role:function(){return v()?"menu":"list"},
style:_.oK({"max-height":function(){var c,J=(c=B())==null?void 0:c.visibleElementCount;if(J)return lWu(B())?(J+.5)*48+"px":(J+.5)*40+"px"}})},_.w(_.Sc,{data:function(){return B().listItems}},{listItemViewModel:function(c){return _.w(_.cU,{data:c.data,
isMenuItem:v,isCompact:z,hideSelectionTextChevron:G,inPopup:Y,isOverlay:d,disableHorizontalPadding:E})},
toggleableListItemViewModel:function(c){return _.w(nkU,{data:c.data})},
downloadListItemViewModel:function(c){return _.w(ahM,{data:c.data,isMenuItem:v,isCompact:z,inPopup:Y,disableHorizontalPadding:E})},
switchListItemViewModel:function(c){return _.w(_.qOT,{data:c.data,disableHorizontalPadding:E})}}))},"ed");
_.RV4.idomCompat=!0;var WoH=_.m(function(W){var B=W.data;var z=W.isOverlay;W={};return _.w("yt-course-perks-view-model",{class:_.kG("ytwCoursePerksViewModelHost",(W.ytwCoursePerksViewModelHostOverlay=z,W))},_.w("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.w(_.r0,{text:function(){return B().title}})),_.w("div",null,_.w(_.V,{cond:function(){return B().perks},
then:function(G){return _.w(_.RV4,{data:function(){return{listItems:G()}},
isCompact:!0,isOverlay:z})}})))},"fd");_.Vm(WoH,"yt-course-perks-view-model",{props:{data:_.wS,isOverlay:_.wS}});_.Vm(_.m(function(W){var B=W.data;return _.w("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.w("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.w(_.r0,{text:function(){return B().title}})),_.w("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.w(_.r0,{text:function(){return B().progressSummary}})),_.w("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.w("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.oK({width:function(){return B().progressPercentage*100+"%"}})})))},"gd"),"yt-course-progress-view-model",{props:{data:_.kz}});var BzM=_.m(function(W){var B={};return _.w("yt-progress-view-model",{class:_.kG("ytwProgressViewModelHost",(B.ytwProgressViewModelHostOverlay=_.ig(W.isOverlay,!1),B))},_.w(_.V,{cond:function(){return W.data().progressSummary},
then:function(z){return _.w("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.w(_.r0,{text:z}))}}),_.w("div",{class:"ytwProgressViewModelHostProgressContainer"},_.w(_.V,{cond:function(){return W.data().leadingLabel},
then:function(z){return _.w("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.w(_.r0,{text:z}))}}),_.w("div",{class:"ytwProgressViewModelHostProgressBar"},_.w("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(W.data().progressPercentage||0)*100+"%"}}))))},"hd");var wQ=_.m(function(W){var B=W.starNumber;var z=W.data;var G=function(){var Y;return((Y=z())==null?void 0:Y.rating)||0};
return _.w(_.V,{cond:function(){return B()},
then:function(Y){return _.w(_.HR,null,_.w(_.oJ,{when:function(){return G()>=Y()-.25}},function(){return _.w("div",{class:"ytStarRatingViewModelHostStar"},_.w(_.hY,{icon:"STAR_FILLED"}))}),_.w(_.oJ,{when:function(){return G()>=Y()-.75}},function(){return _.w("div",{class:"ytStarRatingViewModelHostStar"},_.w(_.hY,{icon:"STAR_HALF"}))}),_.w(_.hW,null,function(){return _.w("div",{class:"ytStarRatingViewModelHostStar"},_.w(_.hY,{icon:"STAR_BORDER"}))}))}})},"id"),zeR=_.m(function(W){W=W.data;
return _.w("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.w(wQ,{starNumber:1,data:W}),_.w(wQ,{starNumber:2,data:W}),_.w(wQ,{starNumber:3,data:W}),_.w(wQ,{starNumber:4,data:W}),_.w(wQ,{starNumber:5,data:W}))},"jd");_.Vm(_.m(function(W){var B=_.EV(W,{}).data;return _.w("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.w("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.w(_.r0,{text:function(){var z;return(z=B())==null?void 0:z.title}})),_.w("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.w(_.V,{cond:function(){return B().starProgressViewModels},
then:function(z){return _.w("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.w(_.Sc,{data:z},{progressViewModel:BzM}))}}),_.w("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.w("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.w(_.r0,{text:function(){var z;
return(z=B())==null?void 0:z.averageRatingLabel}})),_.w(_.V,{cond:function(){return B().zeroStateText},
then:function(z){return _.w("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.w(_.r0,{text:z}))}}),_.w(_.V,{cond:function(){return B().starRatingViewModel},
then:function(z){return _.w("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.w(_.Sc,{data:z},{starRatingViewModel:zeR}))}}),_.w("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.w(_.r0,{text:function(){var z;
return(z=B())==null?void 0:z.totalRatingsCountLabel}})))))},"kd"),"yt-course-ratings-view-model",{props:{data:_.wS}});var GK7;GK7={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.YCF=_.m(function(W){var B=_.LG("yt-learning-journey-loader-view-model"),z=_.k2();_.bk(function(){requestAnimationFrame(function(){var Y;(Y=z.lottieEl)==null||Y.addEventListener("DOMLoaded",function(){var d;(d=W.onLottieLoaded)==null||d.call(W)})});
var G=W.data().browseEndpoint;G&&_.aB(G)});
return _.w("yt-learning-journey-loader-view-model",{class:_.kG("learningJourneyLoaderViewModelHost",W.className),"data-target-id":function(){var G;return((G=W.data)==null?void 0:G.call(W).targetId)||""},
el:B},_.w(_.q8,{className:_.kG("learningJourneyLoaderViewModelLoader",W.className),animationName:function(){return GK7.animationConfig.name},
data:GK7,animationRef:z}))},"ld");_.Vm(_.YCF,"yt-learning-journey-loader-view-model",{props:{data:_.kz,className:_.wS,onLottieLoaded:_.wS}});var IWv=new Set,CsD=null;var pKU=_.m(function(W){var B=void 0,z=function(){return W.data()},G=function(){var Z=z();
var l=_.dO().resolve(_.Y8(_.YG));Z=l!=null&&l()?Z.darkThemeColorPalette:Z.lightThemeColorPalette;return{primaryTextColor:jg(Z,0),secondaryTextColor:jg(Z,1),optionColor:jg(Z,2),backgroundColor:jg(Z,3),videoBackgroundColor:jg(Z,4)}},Y=function(){return!!G().optionColor},d=_.A(_.g4(-1,void 0,"FNv5Ne")),E=d.next().value,v=d.next().value,c=function(Z){return z().correctAnswerIndex===Z},J=function(){return E()!==-1};
d=_.A(_.g4("",void 0,"LFzaYe"));var g=d.next().value,t=d.next().value,P=function(Z){return E()===z().correctAnswerIndex&&c(Z)};
return _.w("learning-journey-quiz-view-model",{class:_.kG("learningJourneyQuizViewModelHost","learningJourneyQuizYoututorHost",W.className),style:_.oK({background:function(){return G().backgroundColor}})},_.w("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},g),_.w(_.V,{cond:function(){return!!z().video},
then:function(){return _.w("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.oK({background:function(){return G().videoBackgroundColor}})},_.w(_.Sc,{data:function(){return z().video}},{lockupViewModel:function(Z){return _.w(_.eh,{data:Z.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.w("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.w("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.w("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.w(_.V,{cond:function(){return!!z().aiGeneratedQuizLabel},
then:function(){return _.w("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.w(_.r0,{text:function(){return z().aiGeneratedQuizLabel}}))}}),_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.oK({"align-items":function(){return z().overflowMenu?"start":"center"}})},_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.oK({"min-height":function(){return z().overflowMenu?"48px":"26px"}})},_.w("div",{class:"learningJourneyQuizYoututorText",
style:_.oK({color:function(){return G().primaryTextColor}})},_.w(_.r0,{text:function(){return z().questionHeaderText}})))),_.w("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.oK({color:function(){return G().secondaryTextColor}})},_.w(_.r0,{text:function(){var Z=z();
return J()?Z.explanationText:Z.questionSubheaderText}}))),_.w("div",{role:"group",
class:_.kG("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.w(_.IJ,{each:function(){return z().optionsData||[]}},function(Z,l){var b={};
return _.w("button",{class:_.kG("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(b.learningJourneyQuizViewModelHostQuizHover=function(){return!J()},b.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=Y,b.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return J()&&c(l())},b.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var O;
if(O=E()!==z().correctAnswerIndex)O=l(),O=E()===O;return O},b)),
"on:click":_.lF(function(){if(J())return!1;v(l());var O,K;t(c(l())?((O=z().successTitle)==null?void 0:O.content)||"":((K=z().failureTitle)==null?void 0:K.content)||"");return!1}),
style:_.oK({background:"transparent"}),"aria-description":function(){var O,K;return J()?c(l())?(O=z().successTitle)==null?void 0:O.content:(K=z().failureTitle)==null?void 0:K.content:""},
"aria-disabled":J,el:_.TG(function(O){_.be(271905,O,B,function(K){B=K})}),
"client-ve-type":271905},_.w("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.w(_.r0,{text:Z.optionText}),_.w(_.V,{cond:function(){var O=l(),K;if(K=J())K=E()===O||c(O);return K},
then:function(){return _.w(d4H,{isOptionCorrect:c,optionIndex:l,isOptionSelectedAndCorrect:P,colors:G})}})))}),_.w(_.V,{cond:J,
then:function(){return _.w("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.w("div",{class:"learningJourneyQuizYoututorExplanationText"},_.w(_.r0,{text:function(){return z().explanationHeaderText}})),_.w(_.r0,{text:function(){return z().optionsData[E()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"md"),d4H=_.m(function(W){var B={};
return _.w("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.kG("learningJourneyQuizYoututorOptionIconTrailing",(B.learningJourneyQuizViewModelHostQuizPulse=function(){return W.isOptionSelectedAndCorrect(W.optionIndex())},B.learningJourneyQuizYoututorIconIncorrectFill=function(){return!W.isOptionSelectedAndCorrect(W.optionIndex())&&!W.isOptionCorrect(W.optionIndex())},B.learningJourneyQuizYoututorIconCorrectFill=function(){return W.isOptionCorrect(W.optionIndex())},
B))},_.w("path",{d:function(){var z=W.optionIndex();
return W.isOptionCorrect(z)?"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":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"nd");
pKU.idomCompat=!0;var Apd;_.iv9=_.m(function(W){var B=null,z=null,G=null,Y=function(){return W.data()},d=function(){var q=Y();
var n=_.dO().resolve(_.Y8(_.YG));q=n!=null&&n()?q.darkThemeColorPalette:q.lightThemeColorPalette;return{primaryTextColor:fk(q,0),secondaryTextColor:fk(q,1),optionColor:fk(q,2),backgroundColor:fk(q,3),videoBackgroundColor:fk(q,4)}},E=function(){return!!d().optionColor},v=_.A(_.g4(-1,void 0,"QDu8Oe")),c=v.next().value,J=v.next().value,g=function(q){return c()===q},t=function(q){return Y().correctAnswerIndex===q},P=function(){return c()!==-1},Z=function(){return c()===Y().correctAnswerIndex},l=function(){var q=
Y(),n=P(),L=Z();
return n?L?q.successTitle:q.failureTitle:q.questionHeaderText},b=function(){var q=P(),n=Z();
return q?n?264685:264684:264683},O=function(){var q=Y();
return P()?q.explanationText:q.questionSubheaderText},K=function(){return!!Y().video},e=function(q){return Z()&&t(q)},a=_.lF(function(){J(-1);
return!1});
return _.w(_.V,{cond:function(){return Y().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.w(pKU,{data:function(){return Y()}})},
else:function(){return _.w("learning-journey-quiz-view-model",{class:_.kG("learningJourneyQuizViewModelHost",W.className),style:_.oK({background:function(){return d().backgroundColor}})},_.w(_.V,{cond:K,
then:function(){return _.w("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.oK({background:function(){return d().videoBackgroundColor}})},_.w(_.Sc,{data:function(){return Y().video}},{lockupViewModel:function(q){return _.w(_.eh,{data:q.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.w("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.w("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.w("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.w(_.V,{cond:function(){return!!Y().aiGeneratedQuizLabel},
then:function(){return _.w("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.w(_.r0,{text:function(){return Y().aiGeneratedQuizLabel}}))}}),_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.oK({"align-items":function(){return Y().overflowMenu?"start":"center"}})},_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.oK({"min-height":function(){return Y().overflowMenu?"48px":"26px"}})},_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.TG(function(q){_.be(b(),q,B,function(n){B=n})}),
style:_.oK({color:function(){return d().primaryTextColor}}),
"client-ve-type":b},_.w(_.r0,{text:l}))),_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.w(_.V,{cond:P,then:function(){return _.w("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.TG(function(q){_.be(264687,q,z,function(n){z=n})}),
"on:click":a,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.w("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.oK({fill:function(){return d().primaryTextColor}})},_.w("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.w(_.Sc,{data:function(){return Y().overflowMenu}},{buttonViewModel:function(q){return _.w(_.ex,{data:q.data})}}))),_.w("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.TG(function(q){_.be(264688,q,G,function(n){G=n})}),
style:_.oK({color:function(){return d().secondaryTextColor}}),
"client-ve-type":264688},_.w(_.r0,{text:O}))),_.w("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.w(_.IJ,{each:function(){return Y().optionsData||[]}},function(q,n){var L={};
return _.w("button",{class:_.kG("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(L.learningJourneyQuizViewModelHostQuizHover=function(){return!P()},L.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=E,L.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return e(n())},L.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!Z()&&g(n())},L.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return P()&&
!g(n())},L)),
"on:click":_.lF(function(){if(P())return!1;J(n());return!1}),
style:_.oK({background:function(){var By=n();return P()&&g(By)?"":E()?d().optionColor:"transparent"}}),
"aria-disabled":P,"client-ve-type":264686},_.w("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.w(_.V,{cond:P,then:function(){return _.w(Apd,{isOptionCorrect:t,optionIndex:n,isOptionSelectedAndCorrect:e,colors:d})}}),_.w(_.r0,{text:q.optionText})))})))))}})},"od");
Apd=_.m(function(W){var B={};return _.w("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var z=W.optionIndex();return W.isOptionCorrect(z)?"0 0 24 24":"0 -960 960 960"},
class:_.kG("learningJourneyQuizViewModelHostQuizOptionIconLeading",(B.learningJourneyQuizViewModelHostQuizPulse=function(){return W.isOptionSelectedAndCorrect(W.optionIndex())},B)),
style:_.oK({fill:function(){return W.colors().primaryTextColor}})},_.w("path",{d:function(){var z=W.optionIndex();
return W.isOptionCorrect(z)?"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"}}))},"pd");
_.iv9.idomCompat=!0;_.Vm(_.iv9,"learning-journey-quiz-view-model",{props:{data:_.kz,className:_.kz}});var EdM=_.m(function(W){var B=_.A((0,_.hKU)(function(){var E;return{targetId:(E=W.data().config)==null?void 0:E.suspenseKey,contents:[W.data()]}})).next().value,z=_.dO().resolve(_.p4),G=function(){var E=B().contents.length>0?B().contents[0]:void 0;
return E==null?void 0:E.config},Y=function(){var E;
return(E=G())==null?void 0:E.entityTriggerConfig},d=_.hg(uk2,function(){var E,v;
return(v=(E=Y())==null?void 0:E.entityKey)!=null?v:""});
_.ja(function(){var E,v,c,J=(c=Number((E=Y())==null?void 0:(v=E.invalidationTimestamp)==null?void 0:v.seconds))!=null?c:0,g,t,P;if(((P=Number((g=d())==null?void 0:(t=g.lastUpdated)==null?void 0:t.seconds))!=null?P:0)>J){var Z;(E=(Z=G())==null?void 0:Z.continuationCommand)&&z.resolveCommand(E)}},"FaC8z");
return _.w("yt-suspense-view-model",{class:_.kG("ytSuspenseViewModelHost")},_.w(_.Sc,{data:function(){var E;return(E=G())==null?void 0:E.contents}},{lockupViewModel:_.eh}))},"qd");var TzU=_.m(function(W){var B=_.EV(W,{palette:void 0,isLastItem:!1}),z=B.palette,G=B.isLastItem,Y=function(){return W.data().isHighlighted},d=function(){var c;
return hJu((c=z())==null?void 0:c.iconDisabledColor)},E=function(){var c;
return hJu((c=z())==null?void 0:c.primaryTitleColor)},v=function(){var c;
return hJu((c=z())==null?void 0:c.secondaryTitleColor)};
B={};return _.w("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.TG(_.Qi(function(){return W.data().rendererContext}))},_.w(_.Sc,{data:function(){return W.data().thumbnail}},{thumbnailViewModel:_.oW}),_.w("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.w("div",{class:_.kG("ytMacroMarkerListItemViewModelTimeDescription",(B.ytMacroMarkerListItemViewModelHighlighted=Y,B)),
style:_.oK({"background-color":function(){return Y()?E():d()},
color:function(){return Y()?"":v()}})},_.w(_.r0,{text:function(){return W.data().timestamp}})),_.w("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.oK({"background-color":function(){return G()?"transparent":d()}})}),_.w("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(Y()?E():v())}},_.w(_.r0,{text:function(){return W.data().title}}))))},"rd");_.VC=_.m(function(W){function B(pu){e("transform:translateX("+(_.eD("HTML_DIR")==="rtl"?"":"-")+pu+"px)")}
function z(pu){return Math.min(Math.max(pu,0),K()-By())}
function G(){var pu=n()+Zv();return Y()?(Math.round(By()/pu)||1)*pu:0}
var Y=function(){return W.data().items||[]},d=function(){return W.data().previousButton},E=function(){return W.data().nextButton},v=function(){var pu,BQ;
return(BQ=(pu=W.disableArrows)==null?void 0:pu.call(W))!=null?BQ:!1},c=function(){var pu;
return!((pu=W.forceNarrowLayout)==null||!pu.call(W))},J=_.r4(function(){var pu;
return!((pu=W.centerAlignItems)==null||!pu.call(W))&&K()<=By()},void 0,"Uto0kc"),g=_.LG("horizontal-shelf-view-model"),t=_.LG("div"),P=_.A(_.g4(0,void 0,"G0xZB")),Z=P.next().value,l=P.next().value;
P=_.A(_.g4(0,void 0,"kqCYFf"));var b=P.next().value,O=P.next().value,K=b;b=_.A(_.g4("",void 0,"Hh6Uye"));P=b.next().value;var e=b.next().value;b=_.A(_.g4(0,void 0,"yMGBKb"));var a=b.next().value,q=b.next().value,n=a;b=_.A(_.g4(0,void 0,"VChthd"));a=b.next().value;var L=b.next().value,By=a;b=_.A(_.g4(!1,void 0,"qJlhhe"));var gk=b.next().value,vy=b.next().value;b=_.A(_.g4(0,void 0,"x7H94"));a=b.next().value;var lx=b.next().value,Zv=a;b=_.A(_.g4(0,void 0,"ksuUee"));var VR=b.next().value,ux=b.next().value;
b=_.A(_.g4("50%",void 0,"uxCxde"));var X2=b.next().value,WQ=b.next().value,XH=function(){var pu,BQ=(pu=W.data())==null?void 0:pu.responsiveContainerConfiguration,Z9,cn;return BQ?dW8(BQ==null?void 0:BQ.responsiveSize):(cn=(Z9=W.sizing)==null?void 0:Z9.call(W))!=null?cn:"STANDARD"};
b=_.r4(function(){return!v()&&Z()>0},void 0,"XK60w");
a=_.r4(function(){return!v()&&Z()<K()-By()},void 0,"D22LVd");
var wU=function(){l(z(Z()-G()));B(Z())},RD=function(){l(z(Z()+G()));
B(Z())},sF=function(){g.value!==null&&bR()},Vd;
_.jD(function(){bR();window.ResizeObserver?(Vd=new ResizeObserver(_.O8(sF,0)),Vd.observe(g.value)):window.addEventListener("resize",sF)});
_.fR(function(){if(window.ResizeObserver){var pu;(pu=Vd)==null||pu.disconnect()}else window.removeEventListener("resize",sF)});
var bR=function(){var pu=g.value.clientWidth,BQ=W.includeMargin!==void 0?W.includeMargin():!1,Z9;var cn=W.hasPeek!==void 0?W.hasPeek():!((Z9=W.data())==null||!Z9.hasPeek);pu=_.$2({containerWidth:pu,hasPeek:cn,sizing:XH(),marginSettings:BQ?c()?4:1:0});lx(pu.gutter);ux(pu.margin);q(pu.itemWidth);vy(pu.maxContainerWidth<528||c());L(pu.maxContainerWidth);Y()&&O((pu.itemWidth+pu.gutter)*Y().length-pu.gutter);if(Y()){var rU;if(((rU=W.thumbnailAspectRatio)==null?void 0:rU.call(W))!==void 0){var Gq;WQ(n()/
cNT((Gq=W.thumbnailAspectRatio)==null?void 0:Gq.call(W))/2+"px")}else WQ("50%")}},Sf={},UF={};
return _.w("horizontal-shelf-view-model",{class:_.kG("ytwHorizontalShelfViewModelHost",W.className),el:g},_.w(_.V,{cond:function(){var pu;return W.data().header&&!((pu=W.horizontalShelfExperiments)==null?0:pu.call(W).hideHeader)},
then:function(){return _.w("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.oK({width:function(){return By()+"px"},
padding:function(){return"0 "+VR()+"px"}})},_.w(_.Sc,{data:function(){return W.data().header}},{sectionHeaderViewModel:function(pu){return _.w(_.DC,{data:pu.data,
disableHorizontalPadding:!0,forceSmallLayout:gk,useResponsiveLayout:!0})}}))}}),_.w("div",{class:_.kG("ytwHorizontalShelfViewModelOuterContainer",(Sf.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return J()},Sf)),
style:_.oK({"margin-top":function(){var pu,BQ=W.data().header&&!((pu=W.horizontalShelfExperiments)==null?0:pu.call(W).hideHeader),Z9;return(((Z9=W.ensureMarginTop)==null?0:Z9.call(W))&&!BQ?12:0)+"px"}})},_.w("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.oK({width:function(){return By()+"px"},
padding:function(){return"0 "+VR()+"px"},
overflow:function(){return v()?"auto":"hidden"}})},_.w("div",{class:_.kG("ytwHorizontalShelfViewModelItems",(UF.ytwHorizontalShelfViewModelCenterAlignItems=function(){return J()},UF)),
el:t,style:P},_.w(_.Sc,{data:Y},{macroMarkerListItemViewModel:function(pu,BQ){return _.w("div",{style:_.oK({width:function(){return n()+"px"},
"margin-right":function(){return(BQ()===Y().length-1?0:Zv())+"px"}})},_.w(TzU,{data:pu.data,
palette:_.ig(W.palette),isLastItem:function(){return BQ()===Y().length-1}}))},
lockupViewModel:function(pu,BQ){var Z9=pu.data;return _.w("div",{style:_.oK({width:function(){return n()+"px"},
"margin-right":function(){return(BQ()===Y().length-1?0:Zv())+"px"}})},_.w(_.eh,{data:Z9,
containerType:4,sizing:XH,protectBackground:W.protectBackground,thumbnailFixedWidth:function(){return HBX(Z9())+"px"},
thumbnailTargetWidth:function(){return HBX(Z9())}}))},
suspenseViewModel:function(pu,BQ){return _.w("div",{style:_.oK({width:function(){return n()+"px"},
"margin-right":function(){return(BQ()===Y().length-1?0:Zv())+"px"}})},_.w(EdM,{data:pu.data}))}}))),_.w(_.V,{cond:b,
then:function(){return _.w("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.oK({top:function(){return X2()}})},_.w(_.Sc,{data:d},{buttonViewModel:function(pu){return _.w(_.ex,{data:pu.data,
onClick:wU})}}))}}),_.w(_.V,{cond:a,
then:function(){return _.w("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.oK({top:function(){return X2()}})},_.w(_.Sc,{data:E},{buttonViewModel:function(pu){return _.w(_.ex,{data:pu.data,
onClick:RD})}}))}})))},"sd");
_.VC.idomCompat=!0;var vd6=_.m(function(W){var B=function(){return W.data().targetId||""},z=function(){var b;
return((b=W.data())==null?void 0:b.expansionEntityKey)||""},G=_.hg(_.$G,z),Y=!0,d=function(){var b;
return((b=G())==null?void 0:b.value)===B()},E=function(b){_.AV(_.bj("stringEntity",z(),{key:z(),
value:b?B():""}))};
_.bk(function(){Y=!1;W.data().isExpanded&&E(!0)});
var v=function(){if(d()){var b=!0;W.onCollapse!==void 0&&(b=W.onCollapse());b&&E(!1)}else E(!0)},c=_.lF(v),J=function(){var b;
return(((b=W.accordionStyle)==null?void 0:b.call(W))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},g=_.LG("div"),t=function(){var b,O;
return(O=(b=_.k(W.data().rendererContext,_.FB))==null?void 0:b.label)!=null?O:""},P=function(){var b,O;
return{disabled:(b=W.hideIfNotExpanded)==null?void 0:b.call(W),ariaHidden:(O=W.hideIfNotExpanded)==null?void 0:O.call(W)}},Z={},l={};
return _.w("yt-accordion-item-view-model",{class:_.kG("ytAccordionItemViewModelHost",W.className,(Z.ytAccordionItemViewModelExpanded=function(){return d()},Z.ytAccordionItemViewModelHidden=function(){var b;
return(b=W.hideIfNotExpanded)==null?void 0:b.call(W)},Z.ytAccordionItemViewModelMini=J,Z)),
"data-target-id":B},_.w("div",{class:"ytAccordionItemViewModelContainer"},_.w("div",{class:"ytAccordionItemViewModelLeftSection","on:click":c,title:t,"aria-hidden":function(){var b;return(b=W.hideIfNotExpanded)==null?void 0:b.call(W)}},_.w(_.r0,{text:function(){return W.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:t})),_.w("div",{class:"ytAccordionItemViewModelRightSection"},_.w(_.Sc,{data:function(){return d()?W.data().expandButton:W.data().collapseButton}},{buttonViewModel:function(b){return _.w(_.ex,{data:b.data,
className:"ytAccordionItemViewModelToggleButton",onClick:v,buttonOverrides:P})}}))),_.w("div",{class:"ytAccordionItemViewModelContainer"},_.w("div",{class:_.kG("ytAccordionItemViewModelContent",(l.ytAccordionItemViewModelExpandedSubtitle=function(){return d()},l)),
el:g,style:_.oK({"max-height":function(){return Y?"auto":d()?g.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!d()}},_.w(_.V,{cond:function(){return!J()},
then:function(){return _.w(_.r0,{text:function(){return W.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.w(_.Sc,{data:function(){return W.data().content}},{horizontalShelfViewModel:function(b){return _.w(_.VC,{data:b.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"td");_.cp7=_.m(function(W){var B=_.A((0,_.hKU)(W.data)).next().value,z=function(){return W.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},G=function(){return z()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Y=_.A(_.g4(!0,void 0,"AbejLb")),d=Y.next().value,E=Y.next().value,v=function(){return G()&&d()},c=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){E(!d())}}},J=_.lF(function(){B().onTitleTap&&_.aB(B().onTitleTap||{})});
Y={};return _.w("yt-accordion-view-model",{class:_.kG("ytAccordionViewModelHost",(Y.ytAccordionViewModelMinimized=function(){return v()},Y)),
"data-target-id":function(){return W.data().targetId||""}},_.w(_.V,{cond:function(){return G()||!!B().title},
then:function(){return _.w("div",{class:"ytAccordionViewModelHeader"},_.w("div",{class:"ytAccordionViewModelTitleSection"},_.w("div",{class:"ytAccordionViewModelTitleWrapper"},_.w(_.V,{cond:function(){return!!W.data().headerIcon},
then:function(){return _.w(_.hY,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var g;return(g=W.data().headerIcon)==null?void 0:g.iconType}})}}),_.w("div",{class:"ytAccordionViewModelTitle",
"on:click":J},_.w(_.r0,{className:"ytAccordionViewModelTitleText",text:function(){return B().title}})))),_.w("div",{class:"ytAccordionViewModelButtonSection"},_.w(_.V,{cond:G,
then:function(){return _.w(_.uu,{data:c,iconName:function(){return v()?"chevron_down":"chevron_collapse"}})}})))}}),_.w("div",{class:"ytAccordionViewModelContent"},_.w(_.Sc,{data:function(){return B().contents}},{accordionItemViewModel:function(g){return _.w(vd6,{data:g.data,
className:"ytAccordionViewModelRow",accordionStyle:z,hideIfNotExpanded:v,onCollapse:function(){return G()?(E(!0),!1):!0}})}})),_.w("div",null,_.w(_.V,{cond:function(){return!G()&&(!!B().disclaimerFooter||!!B().footer)},
then:function(){return _.w("div",{class:"ytAccordionViewModelFooter"},_.w(_.r0,{text:function(){return B().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.w(_.Sc,{data:function(){return W.data().footer}},{flexibleActionsViewModel:function(g){return _.w(_.AB,{data:g.data,
layout:0})}}))}})))},"ud");_.Vm(_.cp7,"yt-accordion-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=null,z=null,G,Y=(G=_.dO().resolve(_.Y8(_.YG)))==null?void 0:G(),d=_.A(_.g4(!1,void 0,"h3atzd"));G=d.next().value;var E=d.next().value;d=_.A(_.g4(!0,void 0,"UTh8db"));var v=d.next().value,c=d.next().value,J=_.LG("textarea",function(O){_.be(264503,O,B,function(K){B=K})}),g=function(O){E(!0);
O={learningJourneyFormData:{query:O}};_.aB(W.data().searchEndpoint||{},{form:{formData:O}});return!1},t=_.lF(function(O){O.target.closest("button-view-model")&&E(!0)});
d=_.lF(function(){c(J.value.value.length===0)});
var P=_.lF(function(O){if(O.key==="Enter"&&!O.shiftKey&&!v()){var K=O.target;O.preventDefault();g(K.value)}}),Z={},l={},b={};
return _.w("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.w("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.w(_.iF,{data:function(){return W.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.w("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.w("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.w("div",{class:_.kG("ytLearningJourneyZeroStateSearchBar",(Z.ytLearningJourneyZeroStateSearchBarDark=Y,Z))},_.w("textarea",{class:_.kG("ytLearningJourneyZeroStateTextInput",(l.ytLearningJourneyZeroStateTextInputDark=Y,l)),el:J,"on:keyup":d,"on:keydown":P,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.w("div",{class:_.kG("ytLearningJourneyZeroStateSearchButtonContainer",(b.ytLearningJourneyZeroStateSearchButtonContainerDark=Y,b))},_.w(_.ex,{data:function(){return _.k(W.data().searchButton,_.wP)},
className:"search-button",onClick:function(){return g(J.value.value)},
buttonOverrides:function(){return{disabled:v(),style:Y?"mono-inverse":"mono",size:"XL"}}}))),_.w(_.V,{cond:function(){return!!W.data().errorBanner},
then:function(){return _.w("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.TG(function(O){_.be(264617,O,z,function(K){z=K})})},_.w(_.Sc,{data:function(){return W.data().errorBanner}},{alertBannerViewModel:function(O){return _.w(_.OHF,{data:O.data,
"client-ve-type":264617})}}))}})),_.w(_.V,{cond:G,
then:function(){return _.w("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.w(_.Sc,{data:function(){return W.data().loader}},{learningJourneyLoaderViewModel:function(O){return _.w(_.YCF,{data:O.data})}}))},
else:function(){return _.w("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.w(_.V,{cond:function(){return!!W.data().learningJourneyShelf},
then:function(){return _.w("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.w("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return W.data().learningJourneySectionTitle}),_.w(_.Sc,{data:function(){return W.data().learningJourneyShelf}},{horizontalShelfViewModel:function(O){return _.w(_.VC,{data:O.data,
centerAlignItems:!0})}}))}}),_.w("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.w("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return W.data().suggestedJourneySectionTitle}),_.w("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":t},_.w(_.Sc,{data:function(){return W.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(O){return _.w(_.AB,{data:O.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"vd"),"yt-learning-journey-zero-state",{props:{data:_.kz}});var wKd=_.m(function(W){var B=W.data;return _.w("ytvl-live-leaderboard-item-action-content-view-model",{class:_.kG("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.w(_.r0,{text:function(){var z;return(z=B())==null?void 0:z.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.w(_.Sc,{data:function(){return B().actionButton}},{buttonViewModel:function(z){return _.w(_.ex,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:z.data})}}))},"wd");var VnT=_.m(function(W){var B=W.data;return _.w("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.kG("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.w(_.r0,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var z;return(z=B())==null?void 0:z.displayName},
ellipsisTruncate:!0}),_.w(_.Sc,{data:function(){return B().badge}},{buttonViewModel:function(z){return _.w(_.ex,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:z.data})}}))},"xd");_.Vm(_.m(function(W){var B=W.data;return _.w("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.w("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.w(_.r0,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var z;return(z=B())==null?void 0:z.rank}})),_.w("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.w(_.Sc,{data:function(){return B().avatar}},{avatarViewModel:_.ds})),_.w("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.w(_.Sc,{data:function(){return B().content}},{liveLeaderboardItemChannelContentViewModel:VnT,
liveLeaderboardItemActionContentViewModel:wKd})),_.w(_.r0,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var z;return(z=B())==null?void 0:z.points}}))},"yd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=W.data;return _.w("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.w(_.r0,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var z,G;return(z=B())==null?void 0:(G=z.ranking)==null?void 0:G.rank}}),_.w("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.w(_.Sc,{data:function(){return B().avatar}},{avatarViewModel:_.ds})),_.w(_.r0,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var z,G;return(z=B())==null?void 0:(G=z.channelContent)==null?void 0:G.channelName}}),_.w(_.r0,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var z;return(z=B())==null?void 0:z.points}}))},"zd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.kz}});var JpR=_.m(function(W){W=_.EV(W,{wrapper:!1}).wrapper;return _.w(_.V,{cond:W,then:function(){return _.w("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.w("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.w("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ad");
JpR.idomCompat=!0;var gd7=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],tnU=_.m(function(W){var B=W.data;var z=_.TG(),G=_.r4(function(){return B().command},void 0,"fyYsT");
_.ja(function(){G()&&_.L8(G(),{form:{element:z.value}})},"B0nxdb");
return _.w("div",{el:z,class:"YtQrCodeRendererHostContainer"},_.w(_.V,{cond:function(){return B().qrCodeImage},
then:function(Y){return _.w(_.iF,{data:Y,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.w(_.V,{cond:function(){return B().spinner},
then:function(){return _.w(JpR,null)}})}}),_.w(_.V,{cond:function(){return B().label},
then:function(Y){return _.w(_.r0,{text:Y,className:"YtQrCodeRendererHostLabel"})}}),_.w(_.V,{cond:function(){return B().labels},
then:function(Y){return _.w("div",{class:"YtQrCodeRendererHostLabels"},_.w(_.IJ,{each:Y},function(d){return _.w(_.r0,{text:d})}))}}))},"Cd");_.Vm(_.m(function(W){var B=W.data;var z=_.r4(function(){return B().qrEntityKey},void 0,"M0PrY"),G=_.r4(function(){return B().deleteEntityOnDismiss},void 0,"QZa4g"),Y=_.r4(function(){return B().command},void 0,"wEOxUe"),d=_.hg(izr,z);
W=_.r4(function(){return B().qrCodeImage},void 0,"UO5oub");
var E=_.r4(function(){return B().style&&gd7.includes(B().style)},void 0,"Op9kZd"),v=_.YF({visibilityCallback:function(c){c&&Y()&&_.L8(Y())},
showOption:{calledOnce:!0,state:"visible"}});_.jD(function(){_.fR(function(){G()&&z()&&_.p8().dispatch(_.bj("qrCodeEntity",z()))})});
return _.w("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.TG(v)},_.w(_.V,{cond:E,then:function(){return _.w(_.V,{cond:d,then:function(c){return _.w(tnU,{data:c})}})}}),_.w(_.V,{cond:W,
then:function(c){return _.w(_.iF,{data:c,alt:""})}}))},"Bd"),"yt-qr-code-renderer",{props:{data:_.kz}});var P64=_.m(function(W){var B=function(){return _.aE(1728053247&(W.barColor!==void 0?I6(W.barColor()):4278190080))};
return _.w("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.w(s7U,{animationDelay:0,percentWidth:100,barColor:function(){return B()}}),_.w("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.w("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+B()}})),_.w(s7U,{animationDelay:0,
percentWidth:100,barColor:function(){return B()}}),_.w(s7U,{animationDelay:600,
percentWidth:60,barColor:function(){return B()}}))},"Dd"),s7U=_.m(function(W){return _.w("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+W.percentWidth()+"%"}},_.w("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var B=W.animationDelay(),z=W.barColor();return"animation-delay:"+B+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+z+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ed");var ZvH;_.rp7=_.m(function(W){function B(O){E(O)}
var z=W.data;var G=_.LG("yt-video-overview-view-model"),Y=_.ag("div");W=_.A(_.g4(-1,void 0,"qaDSu"));var d=W.next().value,E=W.next().value;W=_.A(_.g4(0,void 0,"Vz681c"));var v=W.next().value,c=W.next().value,J={},g=_.hg(FIv,function(){return z().asyncDataEntityKey}),t=function(){var O;
if((O=g())==null?0:O.videoOverviewViewModel){var K;return _.k((K=g())==null?void 0:K.videoOverviewViewModel,eN7)}return z()};
_.jD(function(){c(Math.min((G.value.clientWidth-24)/4-8,72))});
var P=function(O){E(O);(Y==null?0:Y.value)&&Y.value.children[O]&&Y.value.children[O].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
nsT(G,function(){var O;if((O=t())==null||!O.inlinePlaybackEndpoint)return null;var K;O=J==null?void 0:(K=J.thumbnailElRef)==null?void 0:K.value;if(!O)return null;var e;K=(e=t())==null?void 0:e.inlinePlaybackEndpoint;e=_.k(K,iw4);return{multipleVideoPreviewData:{data:(e==null?0:e.playerDescriptors)&&(e==null?0:e.playerDescriptors.length)?e.playerDescriptors:[],thumbnailElement:O,trackingParams:"test",callbacks:{onPlaybackStarted:P},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var Z=function(){var O;return((O=t())==null?void 0:O.headerSubtext)!==void 0?!0:!1},l=function(){var O,K=I6((O=t())==null?void 0:O.titleColor);
return K?"color: "+_.aE(K)+";":void 0},b=function(){var O,K=I6((O=t())==null?void 0:O.subtextColor);
return K?"color: "+_.aE(K)+";":void 0};
return _.w("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:G,style:function(){var O,K=I6((O=t())==null?void 0:O.backgroundColor);return K?"background-color: "+_.aE(K)+";":void 0}},_.w(_.V,{cond:function(){var O;
return(O=t())==null?void 0:O.isLoading},
then:function(){return _.w(P64,{barColor:function(){var O;return(O=t())==null?void 0:O.titleColor}})},
else:function(){return _.w(_.AW,null,_.w("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.w("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return l()}},_.w(_.r0,{text:function(){var O;
return(O=t())==null?void 0:O.headerText}})),_.w(_.V,{cond:Z,
then:function(){return _.w("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.w("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return b()}},_.w(_.hY,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.w("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return b()}},_.w(_.r0,{text:function(){var O;
return(O=t())==null?void 0:O.headerSubtext}})))}})),_.w("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.w(_.Sc,{data:function(){var O;
return(O=t())==null?void 0:O.thumbnail}},{thumbnailViewModel:function(O){return _.w(_.oW,{data:O.data,
aspectRatio:0,playbackRef:y2T(J)})}})),_.w(_.V,{cond:function(){var O,K,e,a;
return((O=t())==null?void 0:(K=O.listItems)==null?void 0:K.length)!==void 0&&((e=t())==null?void 0:(a=e.listItems)==null?void 0:a.length)>0?!0:!1},
then:function(){return _.w("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:Y},_.w(_.IJ,{each:function(){var O;return(O=t())==null?void 0:O.listItems}},function(O,K){return _.w(ZvH,{image:O.image,
index:K,isSelected:function(){return K()===d()},
onClick:B,itemWidth:v})}))}}),_.w("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.w("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return l()}},_.w(_.r0,{text:function(){var O,K,e,a,q,n,L;
return(L=(O=t())==null?void 0:(K=O.listItems)==null?void 0:(e=K[d()])==null?void 0:e.headline)!=null?L:(a=t())==null?void 0:(q=a.listItems)==null?void 0:(n=q[0])==null?void 0:n.headline}})),_.w("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return b()}},_.w(_.r0,{text:function(){var O,K,e,a,q,n,L;
return(L=(O=t())==null?void 0:(K=O.listItems)==null?void 0:(e=K[d()])==null?void 0:e.subtext)!=null?L:(a=t())==null?void 0:(q=a.listItems)==null?void 0:(n=q[0])==null?void 0:n.subtext}}))))}}))},"Fd");
ZvH=_.m(function(W){var B=W.image;var z=W.itemWidth;var G=W.index;var Y=W.isSelected;var d=W.onClick;W=_.lF(function(){G!==void 0&&d!==void 0&&d(G());return!1});
var E={};return _.w("div",{class:_.kG("ytGenAiVideoOverviewViewModelCarouselItem",(E.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return Y==null?void 0:Y()},E)),
style:function(){return"width: "+z()+"px;"},
"on:click":W},_.w(_.iF,{data:B,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.w(_.V,{cond:function(){return Y==null?void 0:Y()},
then:function(){return _.w("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.w("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Gd");
_.rp7.idomCompat=!0;_.Vm(_.rp7,"yt-video-overview-view-model",{props:{data:_.kz}});_.kKR=_.m(function(W){var B=W.data;var z=W.topbarOffset;var G,Y=((G=_.dO().resolve(_.Y8(_.YG)))==null?void 0:G())||!1;return _.w("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var d=B();var E,v,c=Y?(E=d.config)==null?void 0:E.darkThemeBackgroundColor:(v=d.config)==null?void 0:v.lightThemeBackgroundColor;d=c?_.M_(c):void 0;d="background-color: "+d+";";z!==void 0&&(d+="top: -"+z()+"px;");return d},
"aria-hidden":!0},_.w(_.V,{cond:function(){var d,E,v;return!!((d=B().backgroundImageConfig)==null?0:(E=d.image)==null?0:(v=E.sources)==null?0:v.length)},
then:function(){return _.w(_.iF,{data:function(){var d;return(d=B().backgroundImageConfig)==null?void 0:d.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.w("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+SxR(Y,B().gradientColorConfig)+";"}}))},"Hd");
_.kKR.idomCompat=!0;var Jl=_.m(function(W){var B=W.className;var z=W.data;var G=W.isOverlay;var Y=W.maxLinesOverride;var d=W.useMediumText;var E=function(){return z().alwaysShowTruncationText},v=function(){return z().truncationText},c=function(){return d!==void 0&&d()?"medium":"small"},J=function(){return G!==void 0&&G()?"overlay":"default"},g=function(){var l,b;
return(b=(l=_.k(z().rendererContext,_.FB))==null?void 0:l.label)!=null?b:""};
W=_.A(_.g4(!1,void 0,"OKr1o"));var t=W.next().value,P=W.next().value;W=_.lF(function(){z().expandOnTap&&P(!t());return!1});
var Z={};return _.w("yt-description-preview-view-model",{el:_.TG(_.Qi(function(){return z().rendererContext})),
class:_.kG("ytDescriptionPreviewViewModelHost",B,(Z.ytDescriptionPreviewViewModelClickable=function(){var l;return!((l=_.k(z().rendererContext,r2x))==null||!l.onTap)},Z.ytDescriptionPreviewViewModelIsOverlay=G,Z)),
"on:click":W},_.w(_.V,{cond:function(){return z().description},
then:function(l){return _.w(_.V,{cond:t,then:function(){var b={};return _.w("div",{class:_.kG("ytDescriptionPreviewViewModelDescription",(b.ytDescriptionPreviewViewModelDescriptionMediumText=d,b))},_.w(_.r0,{text:l}))},
else:function(){return _.w(hh6,{text:l,alwaysShowTruncationText:E,truncationText:v,maxLines:function(){var b;return(b=Y==null?void 0:Y())!=null?b:z().maxLines},
textStyle:J,accessibilityLabel:g,textSize:c})}})}}))},"Id");
Jl.idomCompat=!0;var llU=_.m(function(W){var B=W.data;var z=W.isOverlay;return _.w("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.w("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.w(_.Sc,{data:function(){return B().header}},{sectionHeaderViewModel:function(G){return _.w(_.DC,{data:G.data,
isOverlay:z})}})),_.w("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.w(_.Sc,{data:function(){return B().channelInfoButtons}},{flexibleActionsViewModel:_.AB})),_.w("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.w(_.Sc,{data:function(){return B().description}},{descriptionPreviewViewModel:function(G){return _.w(Jl,{data:G.data,
isOverlay:z})}})))},"Jd");
llU.idomCompat=!0;var C6R=_.m(function(W){var B=W.data;var z={};return _.w("factoid-view-model",{class:_.kG("ytwFactoidViewModelHost",(z.ytwFactoidViewModelHostOverlay=W.isOverlay,z))},_.w(_.r0,{text:function(){return B().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.w(_.r0,{text:function(){return B().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Kd");
C6R.idomCompat=!0;var Ild=_.m(function(W){var B=W.data;var z=W.isOverlay;return _.w("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.w(_.Sc,{data:function(){return B().factoids}},{factoidViewModel:function(G){return _.w(C6R,{data:G.data,
isOverlay:z})}}))},"Ld");
Ild.idomCompat=!0;_.odQ=_.m(function(W){var B=W.data;var z=W.isOverlay;return _.w("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.w(_.Sc,{data:function(){return B().items}},{channelInfoViewModel:function(G){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(llU,{data:G.data,
isOverlay:z}))},
coursePerksViewModel:function(G){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(WoH,{data:G.data,isOverlay:z}))},
descriptionPreviewViewModel:function(G){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(Jl,{data:G.data,isOverlay:z}))},
factoidsRowViewModel:function(G){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(Ild,{data:G.data,isOverlay:z}))},
progressViewModel:function(G){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(BzM,{data:G.data,isOverlay:z}))}}))},"Md");var heu=_.m(function(W){return _.w("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.w(_.Sc,{data:function(){return W.data().content}},{courseMetadataViewModel:function(B){return _.w(_.odQ,{data:B.data,
isOverlay:W.isOverlay})},
progressViewModel:function(B){return _.w(BzM,{data:B.data})}}))},"Nd");var Hv9=_.m(function(W){var B=W.data;W=W.className;var z=function(){var Y;return _.Dp((Y=B())==null?void 0:Y.rendererContext)},G={};
G=(G.dynamicTextViewModelHost=!0,G.dynamicTextViewModelHostTappable=function(){return z()},G);
return _.w("yt-dynamic-text-view-model",{el:_.TG(_.Qi(function(){var Y;return(Y=B())==null?void 0:Y.rendererContext})),
role:function(){return z()?"link":void 0},
tabindex:function(){return z()?0:void 0},
class:_.kG(W,G)},_.w("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var Y,d,E;return(E=(d=_.k((Y=B())==null?void 0:Y.rendererContext,_.FB))==null?void 0:d.label)!=null?E:""}},_.w(_.r0,{text:function(){return B().text},
userInput:!0})))},"Od");
Hv9.idomCompat=!0;_.gQ=_.m(function(W){var B=W.data;var z=W.isPositionRelative;var G=_.jlu("(max-width: 527.9px)"),Y=function(){var d,E;return(E=(d=B())==null?void 0:d.style)!=null?E:"IMAGE_BANNER_STYLE_FULL_BLEED"};
W={};return _.w("yt-image-banner-view-model",{el:_.TG(_.Qi(function(){var d;return(d=B())==null?void 0:d.rendererContext})),
class:_.kG((W.ytImageBannerViewModelHost=!0,W.ytImageBannerViewModelInset=function(){return fW8(Y())},W.ytImageBannerViewModelPositionAbsolute=function(){return _.XA(!0)&&!(z==null?0:z())},W.ytImageBannerViewModelSmallInset=function(){return fW8(Y())&&G()},W.ytImageBannerViewModelTappable=function(){var d;
return _.Dp((d=B())==null?void 0:d.rendererContext)},W))},_.w(_.V,{cond:function(){var d;
return(d=B())==null?void 0:d.image},
then:function(){return _.w(_.iF,{data:function(){return B().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.w(_.Sc,{data:function(){var d;
return(d=B())==null?void 0:d.overlays}},{thumbnailHoverOverlayViewModel:YR}))},"Pd");
_.gQ.idomCompat=!0;var FoR;FoR=_.m(function(W){var B=W.condition;var z=W.content;return _.w(_.V,{cond:B,then:function(){return _.w("div",{class:"yt-page-header-view-model__scroll-container"},z())},
else:function(){return z()}})},"Qd");
_.SCR=_.m(function(W){var B=W.data;var z=W.noPadding;var G=W.enableBanner;var Y=W.cinematicContainerTopbarOffset;var d=W.allowCinematicContainerOverflow;var E=W.displayAsSidebar;var v=W.displayAsPanel;var c=W.alwaysUseMediumTextDescription;var J=OB8(),g=function(){return!!B().image||!!B().animatedImage},t=function(){return!!B().background},P=function(){return(E==null?0:E())||(v==null?0:v())?1:J()},Z=function(){return P()===1},l=function(){return Z()||P()===2},b=function(){return P()===4},O=function(){var VR=
B();
var ux=!!B().heroImage;var X2=P(),WQ=XsR(B()),XH=E==null?void 0:E(),wU=!VR.metadata,RD;if(RD=ux?_.k(VR.heroImage,S6R):_.k(VR.animatedImage||VR.image,S6R)){VR=RD.style;var sF=RD.layoutMode;if(sF!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(RD=PTx(sC2(RD)),ux)ux=bBx(X2,VR,sF,RD,XH);else b:if(wU)ux=X2===1?{size:48}:{size:72};else switch(X2){case 1:ux={size:72};break b;case 2:ux={size:120};break b;default:ux=WQ<4?{size:120}:{size:160}}else ux=void 0}else ux={size:0};return ux};
W={};W=_.kG((W["yt-page-header-view-model"]=!0,W["yt-page-header-view-model--no-padding"]=function(){return!(z==null||!z())},W["yt-page-header-view-model--small-top-padding"]=function(){return Z()&&!B().actions&&!(v==null?0:v())||P()===2&&!(g()||B().heroImage)},W["yt-page-header-view-model--small-bottom-padding"]=function(){return l()&&!B().actions&&!(v==null?0:v())},W["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(d==null?0:d())},W["yt-page-header-view-model--display-as-sidebar"]=
E,W));
var K={},e=_.kG((K["yt-page-header-view-model__page-header-headline"]=!0,K["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var VR;return(VR=O())==null?void 0:VR.allowFullWidth},K)),a=function(){var VR;
return l()&&!((VR=O())==null?0:VR.allowFullWidth)},q=function(){return Z()&&(!!B().heroImage||g())&&XsR(B())>0},n=function(){return q()&&(v==null?void 0:v())};
K={};var L=_.kG((K["yt-page-header-view-model__page-header-title"]=!0,K["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!q()},K["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return q()&&!n()},K["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=n,K["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=t,K));
K={};var By=_.kG((K["yt-page-header-view-model__page-header-headline-image"]=!0,K["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!B().heroImage&&l()},K));
K={};var gk=_.kG((K["yt-page-header-view-model__page-header-banner-container"]=G,K["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var VR;return(G==null?void 0:G())&&((VR=_.k(B().banner,_.jT4))==null?void 0:VR.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},K));
K={};var vy=_.kG((K["yt-page-header-view-model__page-header-content-metadata"]=!0,K["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=t,K));K={};var lx=_.kG((K["yt-page-header-view-model__page-header-flexible-actions"]=!0,K["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!B().metadata||l()},K["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!l()},K));
K={};var Zv=_.kG((K["yt-page-header-view-model__page-header-attribution"]=!0,K["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=t,K));return _.w("yt-page-header-view-model",{class:W},_.w(_.V,{cond:t,then:function(){return _.w("div",{class:"yt-page-header-view-model__page-header-background"},_.w(_.Sc,{data:function(){return B().background}},{cinematicContainerViewModel:function(VR){return _.w(_.kKR,{data:VR.data,
topbarOffset:Y})}}))}}),_.w(FoR,{condition:function(){return!(E==null||!E())},
content:function(){return _.w("div",{class:"yt-page-header-view-model__page-header-content"},_.w(_.V,{cond:function(){return(G==null?void 0:G())&&B().banner},
then:function(){return _.w("div",{class:gk},_.w(_.Sc,{data:function(){return B().banner}},{imageBannerViewModel:_.gQ}))}}),_.w("div",{class:e},_.w(_.V,{cond:g,
then:function(){return _.w(_.Sc,{data:function(){var VR;if(!(VR=B().animatedImage)){VR=B();if(g()){var ux=VR=Object.assign({},VR),X2=P(),WQ=XsR(B()),XH=ux.image,wU=_.k(XH,bL4),RD=wU==null?void 0:wU.avatar,sF=_.k(RD,_.yi);if(XH&&RD&&sF){switch(X2){case 1:sF.avatarImageSize="AVATAR_SIZE_XL";break;case 2:sF.avatarImageSize="AVATAR_SIZE_XXL";break;default:WQ<4?sF.avatarImageSize="AVATAR_SIZE_XXL":sF.avatarImageSize="AVATAR_SIZE_XXXL"}_.Q2(RD,_.yi,Object.assign({},sF));wU.avatar=Object.assign({},RD);_.Q2(XH,
bL4,Object.assign({},wU));ux.image=Object.assign({},XH)}}VR=VR.image}return VR}},{contentPreviewImageViewModel:function(VR){return _.w(_.jh,{data:VR.data,
className:By,imageSizeConfig:O})},
decoratedAvatarViewModel:function(VR){return _.w(_.pY,{data:VR.data,className:By})}})}}),_.w(_.V,{cond:function(){return!!B().heroImage&&!a()},
then:function(){return _.w(_.Sc,{data:function(){return B().heroImage}},{contentPreviewImageViewModel:function(VR){return _.w(_.jh,{data:VR.data,
className:By,imageSizeConfig:O})}})}}),_.w("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.w(_.V,{cond:function(){return!!B().heroImage&&a()},
then:function(){return _.w("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.w(_.Sc,{data:function(){return B().heroImage}},{contentPreviewImageViewModel:function(VR){return _.w(_.jh,{data:VR.data,
className:By,imageSizeConfig:O})}}))}}),_.w(_.Sc,{data:function(){return B().title}},{dynamicTextViewModel:function(VR){return _.w(Hv9,{data:VR.data,
className:L})}}),_.w(_.Sc,{data:function(){return B().metadata}},{contentMetadataViewModel:function(VR){return _.w(_.fY,{data:VR.data,
layout:function(){return Z()?1:0},
className:vy,isOverlay:t,useMediumText:b})}}),_.w(_.V,{cond:function(){return B().description&&!Z()},
then:function(){return _.w(_.Sc,{data:function(){return B().description}},{descriptionPreviewViewModel:function(VR){return _.w(Jl,{data:VR.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:t,maxLinesOverride:function(){return Z()?void 0:1},
useMediumText:function(){return(c==null?void 0:c())||b()}})}})}}),_.w(_.V,{cond:function(){return B().attribution&&!l()},
then:function(){return _.w(_.Sc,{data:function(){return B().attribution}},{attributionViewModel:function(VR){return _.w(c$7,{data:VR.data,
className:Zv,useMediumText:b})}})}}),_.w(_.V,{cond:function(){return B().actions&&!l()},
then:function(){return _.w(_.Sc,{data:function(){return B().actions}},{flexibleActionsViewModel:function(VR){return _.w(_.AB,{data:VR.data,
layout:function(){return KIv(P())},
className:lx})}})}}))),_.w("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.w(_.V,{cond:function(){return B().description&&Z()},
then:function(){return _.w(_.Sc,{data:function(){return B().description}},{descriptionPreviewViewModel:function(VR){return _.w(Jl,{data:VR.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:t,maxLinesOverride:function(){return Z()?void 0:1},
useMediumText:function(){return(c==null?void 0:c())||b()}})}})}}),_.w(_.V,{cond:function(){return B().attribution&&l()},
then:function(){return _.w(_.Sc,{data:function(){return B().attribution}},{attributionViewModel:function(VR){return _.w(c$7,{data:VR.data,
className:Zv,useMediumText:b})}})}}),_.w(_.V,{cond:function(){return B().actions&&l()},
then:function(){return _.w(_.Sc,{data:function(){return B().actions}},{flexibleActionsViewModel:function(VR){return _.w(_.AB,{data:VR.data,
layout:function(){return KIv(P())},
className:lx})}})}})),_.w("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.w(_.Sc,{data:function(){return B().bottomMetadataFlexibleContainer}},{flexibleContainer:function(VR){return _.w(heu,{data:VR.data,
isOverlay:t})}})))}}))},"Rd");
_.SCR.idomCompat=!0;_.Vm(_.m(function(W){var B=_.A(_.g4(!1,void 0,"vvzTj")),z=B.next().value,G=B.next().value;return _.w("yt-official-card-view-model",{class:_.kG("ytOfficialCardViewModelHost",W.className),style:_.oK({"background-color":function(){var Y,d=I6((Y=W.data())==null?void 0:Y.backgroundColor);return d?_.aE(d):void 0}})},_.w(_.Sc,{data:function(){return W.data().header}},{pageHeaderViewModel:function(Y){return _.w(_.SCR,{data:Y.data,
noPadding:!0})}}),_.w(_.Sc,{data:function(){return W.data().contents}},{horizontalShelfViewModel:function(Y){return _.w(_.VC,{data:Y.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.w(_.V,{cond:z,
then:function(){return _.w("div",{class:"ytOfficialCardViewModelExpandedContent"},_.w(_.Sc,{data:function(){return W.data().expandedContents}},{horizontalShelfViewModel:function(Y){return _.w(_.VC,{data:Y.data,
sizing:"MINI"})}}),_.w("div",{class:"ytOfficialCardViewModelCollapseButton"},_.w(_.Sc,{data:function(){return W.data().collapseButton}},{buttonViewModel:function(Y){return _.w(_.ex,{data:Y.data,
onClick:function(){G(!z())}})}})))},
else:function(){return _.w("div",{class:"ytOfficialCardViewModelExpandButton"},_.w(_.Sc,{data:function(){return W.data().expandButton}},{buttonViewModel:function(Y){return _.w(_.ex,{data:Y.data,
onClick:function(){G(!z())}})}}))}}))},"Sd"),"yt-official-card-view-model",{props:{data:_.kz,
className:_.kz}});var bvd=_.m(function(W){var B,z=(B=_.dO().resolve(_.Y8(_.YG)))==null?void 0:B();return _.w("ytw-search-friction-view-model",{class:_.kG("ytwSearchFrictionViewModelHost",W.className)},_.w("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.w("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.w(_.V,{cond:function(){return z&&W.data().darkThemeImage?W.data().darkThemeImage:W.data().image},
then:function(G){return _.w(_.iF,{data:G,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.w(_.Sc,{data:function(){return W.data().overflowMenuButton}},{buttonViewModel:function(G){return _.w(_.ex,{data:G.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.w(_.r0,{text:function(){return W.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.w(_.IJ,{each:function(){return W.data().bodyText||[]}},function(G){return _.w(_.r0,{text:G,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.w(_.Sc,{data:function(){return W.data().actions}},{buttonViewModel:function(G){return _.w(_.ex,{data:G.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.w(_.r0,{text:function(){return W.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.w(_.r0,{text:function(){return W.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Td");
bvd.idomCompat=!0;_.Vm(bvd,"ytw-search-friction-view-model",{props:{data:_.kz,className:_.kz}});_.tl=_.m(function(W){var B=_.LG("markdown-div"),z,G=(z=_.dO().resolve(_.Y8(_.YG)))==null?void 0:z();_.ja(function(){var Y=B.value;var d=new UTF,E=new Map(d.JSC$9302_sanitizerTable.globalAttributePolicies);E.set("style",{policyAction:4});d.JSC$9302_sanitizerTable=new XV(d.JSC$9302_sanitizerTable.allowedElements,d.JSC$9302_sanitizerTable.elementPolicies,d.JSC$9302_sanitizerTable.allowedGlobalAttributes,E,d.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes);var v=["data-time"];if(v===void 0)E=
new Set(d.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes),E.add("data-"),d.JSC$9302_sanitizerTable=new XV(d.JSC$9302_sanitizerTable.allowedElements,d.JSC$9302_sanitizerTable.elementPolicies,d.JSC$9302_sanitizerTable.allowedGlobalAttributes,d.JSC$9302_sanitizerTable.globalAttributePolicies,E);else{E=new Set(d.JSC$9302_sanitizerTable.allowedGlobalAttributes);v=_.A(v);for(var c=v.next();!c.done;c=v.next()){c=c.value;if(c.indexOf("data-")!==0)throw Error("ma`"+c);E.add(c)}d.JSC$9302_sanitizerTable=
new XV(d.JSC$9302_sanitizerTable.allowedElements,d.JSC$9302_sanitizerTable.elementPolicies,E,d.JSC$9302_sanitizerTable.globalAttributePolicies,d.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes)}E=new Set(d.JSC$9302_sanitizerTable.allowedGlobalAttributes);E.add("class");d.JSC$9302_sanitizerTable=new XV(d.JSC$9302_sanitizerTable.allowedElements,d.JSC$9302_sanitizerTable.elementPolicies,E,d.JSC$9302_sanitizerTable.globalAttributePolicies,d.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes);
_.A6(Y,_.qFT(d.build(),eJ2(W.text())));m08(B.value)},"OZ439c");
z={};return _.w("div",null,_.w("markdown-div",{class:_.kG("ytwMarkdownDivHost",(z.ytwMarkdownDivDark=G,z.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var Y;return((Y=W.isSmallText)==null?void 0:Y.call(W))||!1},z.ytwMarkdownDivHostWrapCodeBlocks=function(){var Y;
return((Y=W.wrapCodeBlocks)==null?void 0:Y.call(W))||!1},z.ytwMarkdownDivHostEnableDefaultStyling=function(){var Y;
return!((Y=W.disableDefaultStyling)==null?0:Y.call(W))},z)),
el:B}))},"Ud");
_.tl.idomCompat=!0;var j7d=_.m(function(W){var B=W.imageData;var z=_.ig(W.isInList,!1),G=function(){return z()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.w("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.w(_.V,{cond:function(){return B().image},
then:function(Y){return _.w(_.iF,{data:Y,alt:function(){return G().alt},
contentMode:function(){return G().contentMode},
targetWidth:function(){return G().targetWidth},
targetHeight:function(){return G().targetHeight},
className:function(){return G().className}})}}),_.w("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.w("div",{class:_.kG("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.w(_.r0,{text:function(){return B().title}})),_.w(_.IJ,{each:function(){var Y;
return(Y=B().description)!=null?Y:[]}},function(Y){return _.w("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.w(sJ,{content:Y}))})))},"Vd"),fld=_.m(function(W){var B=W.list;
var z=function(){var G;return(G=B().items)!=null?G:[]};
return _.w("div",{class:"ytwGenAiRichTextViewModelListContent"},_.w(_.V,{cond:function(){return B().title},
then:function(G){return _.w("div",{class:_.kG("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.w(_.r0,{text:G}))}}),_.w(_.V,{cond:function(){return B().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.w("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.w(_.IJ,{each:z},function(G){return _.w("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.w(sJ,{content:G,isInList:!0}))}))}}),_.w(_.V,{cond:function(){return B().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.w("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.w(_.IJ,{each:z},function(G){return _.w("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.w(sJ,{content:G,isInList:!0}))}))}}),_.w(_.V,{cond:function(){return B().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.w("div",{class:"ytwGenAiRichTextViewModelImageList"},_.w(_.IJ,{each:z},function(G){return _.w("div",{class:"ytwGenAiRichTextViewModelListItem"},_.w(sJ,{content:G,isInList:!0}))}))}}))},"Wd"),Ovd=_.m(function(W){var B=W.table;
return _.w("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.w("thead",null,_.w("tr",null,_.w(_.IJ,{each:function(){var z,G;return(G=(z=B().header)==null?void 0:z.cells)!=null?G:[]}},function(z){return _.w("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.w(_.IJ,{each:function(){return z.contents}},function(G){return _.w(sJ,{content:G})}))}))),_.w("tbody",null,_.w(_.IJ,{each:function(){var z;
return(z=B().rows)!=null?z:[]}},function(z){return _.w("tr",null,_.w(_.IJ,{each:function(){return z.cells}},function(G){return _.w("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.w(_.IJ,{each:function(){return G.contents}},function(Y){return _.w(sJ,{content:Y})}))}))})))},"Xd"),sJ=_.m(function(W){var B=W.content;
var z=_.ig(W.isInList,!1),G=function(){var Y,d;return(d=(Y=B().contentBlock)==null?void 0:Y.contents)!=null?d:[]};
return _.w("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.w(_.V,{cond:function(){return B().text},
then:function(Y){return _.w(_.r0,{className:"ytwGenAiRichTextViewModelText",text:Y})}}),_.w(_.V,{cond:function(){return B().image},
then:function(Y){return _.w(j7d,{imageData:Y,isInList:z})}}),_.w(_.V,{cond:function(){return B().list},
then:function(Y){return _.w(fld,{list:Y})}}),_.w(_.V,{cond:function(){return B().contentBlock},
then:function(){return _.w("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.w(_.IJ,{each:G},function(Y){return _.w(sJ,{content:Y,isInList:!1})}))}}),_.w(_.V,{cond:function(){return B().table},
then:function(Y){return _.w(Ovd,{table:Y})}}))},"Yd"),XKM=_.m(function(W){var B={};
B=_.uj("ytwGenAiRichTextViewModelHost",(B.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.EA("search_overview_link_style")),B));return _.w("gen-ai-rich-text-view-model",{class:B},_.w(sJ,{content:function(){return W.data().content}}))},"Zd");_.KoR=_.m(function(W){var B=W.data;var z=function(){var b;return((b=B().loadingUi)!=null?b:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},G=function(){return B().isLoading&&(z()==="UNSPECIFIED"||z()==="GHOST_CARD")},Y=function(){return!B().isLoading},d=function(){return!!B().content&&!B().contents},E=function(){return!!B().contents},v=function(){return!!B().nextQueryButtons},c=function(){return B().isLoading&&z()==="INVISIBLE"},J=function(){var b,O;
return(O=(b=B().headerIcon)==null?void 0:b.iconType)!=null?O:""},g=function(){var b;
return(b=B().content)!=null?b:""},t=function(){return!!B().sourcesSection},P,Z=!((P=_.dO().resolve(_.Y8(_.YG)))==null||!P()),l=_.r4(function(){var b=[],O=B().contents;
if(O)for(var K=0;K<O.length;K++){var e=_.k(O&&O[K],uhH);e&&b.push(e)}return b},void 0,"gcCsZb");
_.jD(function(){B().isLoading||_.mj("so_re",void 0,"search_overview_answer")});
return _.w("ytd-overview-answer-view-model",{class:function(){var b={};b=(b.ytdOverviewAnswerViewModelHost=!0,b.ytdOverviewAnswerViewModelDarkBackground=Z&&!c(),b.ytdOverviewAnswerViewModelLightBackground=!Z&&!c(),b);return _.uj(b)}},_.w(_.V,{cond:function(){return!c()},
then:function(){return _.w(_.AW,null,_.w("h2",null,_.w("div",{class:"ytdOverviewAnswerViewModelHeader"},_.w(_.V,{cond:J,then:function(b){return _.w("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.w(_.hY,{icon:b}))}}),_.w("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.w("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return B().headerText}),_.w("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.w(_.r0,{text:function(){return B().headerSubtext}}))))),_.w(_.V,{cond:G,
then:function(){return _.w(x0D,null)}}),_.w(_.V,{cond:Y,
then:function(){return _.w(_.AW,null,_.w(_.V,{cond:d,then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelText"},_.w(_.tl,{text:g,isSmallText:!0}))}}),_.w(_.V,{cond:E,
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelRichText"},_.w(_.IJ,{each:l},function(b){return _.w(XKM,{data:b})}))}}),_.w(_.V,{cond:v,
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.w(_.Sc,{data:function(){return B().nextQueryButtons}},{buttonViewModel:function(b){return _.w(_.ex,{data:b.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.VC}))}}),_.w("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.w("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.w(_.V,{cond:function(){return!!_.k(B().likeButtonViewModel,_.Y3)&&!!_.k(B().dislikeButtonViewModel,_.G3)},
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.w(_.En,{data:function(){return _.k(B().likeButtonViewModel,_.Y3)},
disableIconAnimation:!0}),_.w(_.iq,{data:function(){return _.k(B().dislikeButtonViewModel,_.G3)}}))}})),_.w(_.V,{cond:function(){var b;
return(b=B().sourcesSection)==null?void 0:b.headerText},
then:function(b){return _.w("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.w(_.r0,{text:b}))}})),_.w(_.V,{cond:t,
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelSources"},_.w(_.Sc,{data:function(){var b;return(b=B().sourcesSection)==null?void 0:b.sourcesShelf}},{buttonViewModel:_.ex,
horizontalShelfViewModel:function(b){return _.w(_.VC,{data:b.data,includeMargin:!0,hasPeek:!0})}}))}}),_.w(_.V,{cond:function(){return B().disclaimerText},
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.w(_.r0,{text:function(){return B().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"$d");var uxu=_.m(function(W){var B=W.data;var z=W.active;var G=_.LG("transcript-segment-view-model");_.ja(function(){var Y,d,E,v=((Y=_.dO().resolve(_.Y8(_.YG)))==null?0:Y())?(d=B())==null?void 0:d.darkThemeColorPalette:(E=B())==null?void 0:E.lightThemeColorPalette;v&&(v.additiveBackground&&G.value.style.setProperty("--timestamp-active-background-color",_.aE(v.additiveBackground)),v.textSecondary&&G.value.style.setProperty("--timestamp-active-color",_.M_(v.textSecondary)))},"TnVCnb");
W={};return _.w("transcript-segment-view-model",{class:_.kG("ytwTranscriptSegmentViewModelHost",(W.ytwTranscriptSegmentViewModelHostActive=z,W.ytwTranscriptSegmentViewModelHostModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),W)),el:G},_.w(_.V,{cond:function(){var Y;return(Y=B())==null?void 0:Y.timestamp},
then:function(Y){var d={};return _.w("div",{class:_.kG("ytwTranscriptSegmentViewModelTimestamp",(d.ytwTranscriptSegmentViewModelTimestampActive=z,d)),"aria-label":function(){var E=Y().split(":").map(Number),v=_.A(E.reverse());E=v.next().value;var c=v.next().value;v=v.next().value;return _.OIR({hours:v,minutes:c,seconds:E})}},Y)}}),_.w(_.r0,{text:function(){var Y,d,E;
return(E=(Y=B())==null?void 0:Y.attributedText)!=null?E:{content:(d=B())==null?void 0:d.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"ae");var eeu=_.m(function(W){var B=W.data;return _.w("div",{class:"videoAttributesSectionViewModelHeader"},_.w("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.w("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return B().headerTitle}),_.w(_.V,{cond:function(){return B().headerInfoButton},
then:function(){return _.w(_.Sc,{data:function(){return B().headerInfoButton}},{buttonViewModel:function(z){return _.w(_.ex,{data:z.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.w(_.V,{cond:function(){return B().headerSubtitle},
then:function(){return _.w("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return B().headerSubtitle})}}))},"be"),m4Q=_.m(function(W){function B(b){return Math.max(Math.min(b,0),J()-v())}
var z=W.data;var G;W=_.LG("div",function(b){var O=function(){g(b.clientWidth)};
O();window.ResizeObserver&&(G=new ResizeObserver(O),G.observe(b))});
var Y=_.LG("div",function(b){c(b.scrollWidth)}),d=_.A(_.g4(0,void 0,"C3XQAe")),E=d.next().value;
d=d.next().value;var v=E,c=d;d=_.A(_.g4(0,void 0,"db7y3"));E=d.next().value;d=d.next().value;var J=E,g=d;E=_.A(_.g4(0,void 0,"RchC7"));var t=E.next().value,P=E.next().value;_.fR(function(){var b;(b=G)==null||b.disconnect()});
var Z=function(){P(B(t()+J()))},l=function(){P(B(t()-J()))};
return _.w("yt-video-attributes-section-view-model",null,_.w("div",{class:"videoAttributesSectionViewModelHost"},_.w(_.V,{cond:function(){return z().headerTitle},
then:function(){return _.w(eeu,{data:z})}}),_.w("div",{class:_.kG("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:W},_.w("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.oK({transform:function(){var b=t();_.eD("HTML_DIR")==="rtl"&&(b*=-1);return"translateX("+b+"px)"}}),
el:Y},_.w(_.Sc,{data:function(){return z().videoAttributeViewModels}},{videoAttributeViewModel:StD}))),_.w(_.Sc,{data:function(){return z().footerButton}},{buttonViewModel:function(b){return _.w(_.ex,{data:b.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.w(_.V,{cond:function(){return t()<0&&z().previousButton},
then:function(){return _.w("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.w(_.Sc,{data:function(){return z().previousButton}},{buttonViewModel:function(b){return _.w(_.ex,{data:b.data,
onClick:Z})}}))}}),_.w(_.V,{cond:function(){return t()>J()-v()&&z().nextButton},
then:function(){return _.w("div",{class:"videoAttributesSectionViewModelRightArrow"},_.w(_.Sc,{data:function(){return z().nextButton}},{buttonViewModel:function(b){return _.w(_.ex,{data:b.data,
onClick:l})}}))}})))},"ce");
m4Q.idomCompat=!0;var x4d=_.m(function(W){var B=W.data;var z=W.active;var G={},Y={};return _.w("timeline-item-view-model",{class:_.kG("ytwTimelineItemViewModelHost",(G.ytwTimelineItemViewModelHostChapterChild=W.chapterChild,G.ytwTimelineItemViewModelModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),G))},_.w("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.w("div",{class:_.kG("ytwTimelineItemViewModelTimestamp",(Y.ytwTimelineItemViewModelTimestampActive=
z,Y))},function(){return B().timestamp})),_.w("div",{class:"ytwTimelineItemViewModelContentItems"},_.w(_.Sc,{data:function(){return B().contentItems}},{transcriptSegmentViewModel:function(d){return _.w(uxu,{data:d.data,
active:z})},
videoAttributesSectionViewModel:m4Q})))},"de");var D4M=_.m(function(W){var B=W.data;W={};return _.w("timeline-chapter-view-model",{class:_.kG("ytwTimelineChapterViewModelHost")},_.w("div",{class:_.kG("ytwTimelineChapterViewModelTitle",(W.ytwTimelineChapterViewModelModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),W))},function(){return B().title}),_.w(_.Sc,{data:function(){return B().contents}},{timelineItemViewModel:function(z){return _.w(x4d,{data:z.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(z){return _.w(m4Q,{data:z.data})}}))},"ee");var Q7M=_.m(function(W){var B=W.data;var z=_.LG("macro-markers-panel-item-view-model"),G=_.hg(_.GOT,function(){var d;return(d=B().markersEngagementPanelSyncEntityKey)!=null?d:""}),Y=function(){var d;
return((d=G())==null?void 0:d.activeItemIndex)===B().index};
W=_.lF(function(d){var E,v,c,J,g;return _.T(function(t){if(t.nextAddress==1)return d.stopPropagation(),_.mC(_.ec(d),z.value,["A".toString(),"BUTTON".toString()])?t.return():(E=_.$B(B().onTap))?t.yield(_.Zp(),2):t.return();v=t.yieldResult;J=(c=_.k(E,_.W0))==null?void 0:c.startTimeSeconds;J===void 0||(g=v)!=null&&g.seekTo(J,!0);_.HG(t)})});
return _.w("macro-markers-panel-item-view-model",{class:_.kG("ytwMacroMarkersPanelItemViewModelHost",{"is-active":Y}),el:z,"on:click":W,tabindex:0},_.w(_.Sc,{data:function(){var d;return(d=B())==null?void 0:d.item}},{timelineChapterViewModel:function(d){return _.w(D4M,{data:d.data,
active:Y})},
timelineItemViewModel:function(d){return _.w(x4d,{data:d.data,active:Y})},
videoAttributeViewModel:StD}))},"fe");
Q7M.idomCompat=!0;_.Vm(Q7M,"macro-markers-panel-item-view-model",{props:{data:_.kz}});_.Vm(m4Q,"yt-video-attributes-section-view-model",{props:{data:_.kz}});var yp6=_.m(function(W){var B=function(){var z,G,Y;return(Y=(z=W.data().leadingLogoAccessibility)==null?void 0:(G=z.accessibilityData)==null?void 0:G.label)!=null?Y:""};
return _.w("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.w(_.V,{cond:function(){return W.data().leadingLogo},
then:function(z){return _.w(_.iF,{className:"ytwFantasySectionHeaderViewModelLogo",data:z,alt:B})}}),_.w("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.w(_.r0,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return W.data().title}}),_.w(_.r0,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return W.data().subtitle}})),_.w(_.Sc,{data:function(){return W.data().trailingButton}},{buttonViewModel:function(z){return _.w(_.ex,{data:z.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"ge");var qCU=_.m(function(W){var B={};B=_.kG("ytwFantasyTeamViewModelHost",(B.ytwFantasyTeamViewModelCompact=function(){var Y;return!((Y=W.compact)==null||!Y.call(W))},B.ytwFantasyTeamViewModelUser=function(){return W.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},B.ytwFantasyTeamViewModelOpponent=function(){return W.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},B));
var z=function(){var Y,d,E;return(E=(Y=W.data().teamLogoAccessibility)==null?void 0:(d=Y.accessibilityData)==null?void 0:d.label)!=null?E:""},G=_.hg(dvR,function(){return W.data().teamEntityKey});
return _.w("ytw-fantasy-team-view-model",{class:B},_.w(_.V,{cond:function(){return W.data().teamLogo},
then:function(Y){return _.w(_.iF,{className:"ytwFantasyTeamViewModelLogo",data:Y,alt:z})}}),_.w("div",{class:"ytwFantasyTeamViewModelMetadata"},_.w("div",{class:"ytwFantasyTeamViewModelHeader"},_.w(_.r0,{className:"ytwFantasyTeamViewModelScore",
text:function(){var Y;return(Y=G())==null?void 0:Y.score}}),_.w(_.hY,{icon:function(){var Y;
return(Y=G())==null?void 0:Y.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.w(_.r0,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var Y;return(Y=G())==null?void 0:Y.projectedScore}})),_.w(_.r0,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return W.data().primaryText}}),_.w(_.r0,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return W.data().secondaryText}}),_.w(_.r0,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return W.data().tertiaryText}})),_.w(_.r0,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var Y;return(Y=G())==null?void 0:Y.score}}))},"he");_.Vm(_.m(function(W){return _.w("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.w("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.w(_.Sc,{data:function(){return W.data().summaryHeader}},{fantasySectionHeaderViewModel:yp6})),_.w(_.Sc,{data:function(){return W.data().userTeam}},{fantasyTeamViewModel:qCU}),_.w(_.Sc,{data:function(){return W.data().opponentTeam}},{fantasyTeamViewModel:qCU}))},"ie"),"fantasy-league-summary-view-model",{props:{data:_.kz}});var ndD=_.m(function(W){var B=_.EV(W,{shape:{},useCustomTabRenderable:!1}),z=B.shape;B=B.useCustomTabRenderable;var G=W.customTabRenderable,Y=function(){return z().disabled},d=function(){return z().selected},E=function(){return z().title},v=function(){return z().icon},c=_.LG("yt-tab-shape");
W=_.lF(function(t){var P;if(!Y()&&((P=z().aTagConfig)==null?0:P.onclick))z().aTagConfig.onclick(t);return!1});
var J=_.lF(function(t){if(t.key==="Enter"||t.key==="ArrowUp"||t.key==="ArrowDown")t.preventDefault(),c.value.click();return!1}),g={};
return _.w("yt-tab-shape",{class:_.kG("yt-tab-shape",function(){return z().className},(g["yt-tab-shape__tab--last-tab"]=function(){return z().isLastTab},g["yt-tab-shape--host-disabled"]=Y,g["yt-tab-shape--host-clickable"]=!G,g)),
role:G?void 0:"tab","aria-selected":d!=null?d:!1,"aria-disabled":Y,tabindex:G?void 0:0,"on:click":W,"on:keydown":J,el:c,"tab-identifier":function(){return z().identifier},
"tab-title":E},_.w(_.V,{cond:B,then:function(){return G()},
else:function(){var t={},P={};return _.w(_.AW,null,_.w("div",{class:_.kG("yt-tab-shape__tab",(t["yt-tab-shape__tab--tab-selected"]=d,t))},_.w(_.V,{cond:v,then:function(Z){return _.w(_.hY,{className:"yt-tab-shape__tab-icon",icon:function(){return Z().iconType}})}}),E),_.w("div",{class:_.kG("yt-tab-shape__tab-bar",(P["yt-tab-shape__tab-bar--tab-bar-selected"]=d,P))}))}}))},"je");
ndD.idomCompat={callbacks:{customTabRenderable:!0}};_.$4T=_.m(function(W){var B=W.shape;W=_.A(_.g4(48,void 0,"rCewuf"));var z=W.next().value,G=W.next().value;W=_.A(_.g4(0,void 0,"aUUTWe"));var Y=W.next().value,d=W.next().value,E=function(){return B().tabs},v=_.LG("yt-tab-group-shape"),c=function(){var J,g;
return(g=(J=E())==null?void 0:J.findIndex(function(t){return t.selected}))!=null?g:-1};
_.jD(function(){var J=v.value.querySelectorAll("yt-tab-shape"),g=c()>-1?J[c()]:void 0;_.fg.addJob(function(){G((g==null?void 0:g.getBoundingClientRect().width)||0)},8,0)});
_.ja(function(){var J=c(),g=_.fg.addJob(function(){var t,P=((t=v.value)==null?void 0:t.querySelectorAll("yt-tab-shape"))||[],Z;G(((Z=J>-1?P[J]:void 0)==null?void 0:Z.getBoundingClientRect().width)||0);for(Z=t=0;Z<J;Z++)t+=P[Z].offsetWidth+24;_.eD("HTML_DIR")==="rtl"&&(t=-t);d(t)},8,0);
_.fR(function(){_.fg.cancelJob(g)})},"DAb5Qb");
W={};return _.w("yt-tab-group-shape",{class:_.kG("tabGroupShapeHost",(W.tabGroupShapeOverflowHidden=function(){return B().isOverflowHidden},W)),
el:v},_.w(_.V,{cond:E,then:function(J){return _.w(_.AW,null,_.w("div",{class:"tabGroupShapeTabs",role:"tablist"},_.w(_.IJ,{each:J},function(g,t){return _.w(ndD,{shape:function(){return Object.assign({},g,{isLastTab:t()===J().length-1})},
customTabRenderable:g.customTabRenderable,useCustomTabRenderable:!!g.customTabRenderable})})),_.w(NzU,{width:z,
sliderOffset:Y}))}}))},"ke");
_.$4T.idomCompat=!0;var NzU=_.m(function(W){var B=_.ig(W.sliderOffset,0),z=W.width;return _.w("div",{class:"tabGroupShapeSlider",style:_.oK({width:function(){return z()+"px"},
transform:function(){return"translateX("+B()+"px)"}})})},"le");var Lo4=_.m(function(W){var B=function(){var d,E,v;return(v=(d=W.data().playerLogoAccessibility)==null?void 0:(E=d.accessibilityData)==null?void 0:E.label)!=null?v:""},z=_.hg(p9x,function(){return W.data().playerEntityKey}),G={};
G=_.kG("ytwFantasyPlayerViewModelHost",(G.ytwFantasyPlayerViewModelPlaying=function(){var d;return!((d=z())==null||!d.isPlayerPlaying)},G.ytwFantasyPlayerViewModelOnField=function(){var d;
return((d=z())==null?void 0:d.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},G.ytwFantasyPlayerViewModelRedZone=function(){var d;
return((d=z())==null?void 0:d.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},G));
var Y=function(){var d,E,v,c=((d=_.dO().resolve(_.Y8(_.YG)))==null?0:d())?(E=W.data().playerLogoBackgroundColor)==null?void 0:E.darkTheme:(v=W.data().playerLogoBackgroundColor)==null?void 0:v.lightTheme;return c===void 0?"":_.aE(c)};
return _.w("ytw-fantasy-player-view-model",{class:G},_.w(_.V,{cond:function(){return W.data().playerLogo},
then:function(d){return _.w("div",{class:"ytwFantasyPlayerViewModelLogo"},_.w("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.w(_.iF,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.oK({"background-color":Y}),data:d,alt:B})),_.w("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.w(_.hY,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.w("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.w("div",{class:"ytwFantasyPlayerViewModelHeader"},_.w(_.r0,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var d;return(d=W.data())==null?void 0:d.playerNameText}}),_.w(_.r0,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var d;return(d=W.data())==null?void 0:d.playerDescriptionText}})),_.w("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.w(_.r0,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var d;return(d=z())==null?void 0:d.gamePeriodText}}),_.w(_.r0,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var d;return(d=W.data())==null?void 0:d.opponentTeamText}}),_.w(_.r0,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var d;return(d=z())==null?void 0:d.gameStatusText}}),_.w(_.r0,{className:_.kG("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var d;return(d=z())==null?void 0:d.playerStatusText}})),_.w("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.w(_.r0,{text:function(){var d;
return(d=z())==null?void 0:d.playerStatsText}}))),_.w(_.r0,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var d;return(d=z())==null?void 0:d.fantasyScore}}))},"me");var U4R=_.m(function(W){return _.w("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.w(_.V,{cond:function(){return W.data().players},
then:function(B){return _.w(_.Sc,{data:B},{fantasyPlayerViewModel:Lo4})}}))},"ne");var MnH=_.m(function(W){var B=_.A(_.IK(function(){var Y;return(Y=W.data().selectedTabIdentifierKey)!=null?Y:""})),z=B.next().value,G=B.next().value;
_.bk(function(){var Y;(Y=W.setSelectedTabSignal)==null||Y.call(W,z)});
return _.w("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.w("div",{class:"ytTabbedViewModelTabGroup"},_.w(_.$4T,{shape:function(){var Y=W.data(),d=[],E={tabs:d};if(!Y.tabs)return E;Y=_.A(Y.tabs);for(var v=Y.next(),c={};!v.done;c={tabViewModel:void 0},v=Y.next())if(c.tabViewModel=_.k(v.value,RPM),c.tabViewModel){var J=v=void 0;d.push({aTagConfig:{onclick:function(g){return function(){var t;G((t=g.tabViewModel.tabIdentifier)!=null?t:"")}}(c)},
identifier:c.tabViewModel.tabIdentifier,selected:z()===c.tabViewModel.tabIdentifier,title:(J=(v=c.tabViewModel.title)==null?void 0:v.content)!=null?J:""})}return E}})),_.w(_.Sc,{data:function(){var Y,d=_.A((Y=W.data().tabs)!=null?Y:[]);
for(Y=d.next();!Y.done;Y=d.next())if((Y=_.k(Y.value,RPM))&&Y.tabIdentifier===z())return Y.content}},{fantasyRosterViewModel:U4R}))},"oe");_.Vm(_.m(function(W){var B=_.A(D0k()),z=B.next().value,G=B.next().value;return _.w("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.w(_.r0,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return W.data().title}}),_.w(_.V,{cond:function(){return W.data().tabbedViewModel},
then:function(Y){return _.w(_.Sc,{data:Y},{tabbedViewModel:function(d){return _.w(MnH,{data:d.data,setSelectedTabSignal:G})}})}}),_.w(_.V,{cond:function(){var Y,d=(Y=_.k(W.data().tabbedViewModel,WhQ))==null?void 0:Y.tabs;
Y=_.k(d==null?void 0:d[0],RPM);d=_.k(d==null?void 0:d[1],RPM);var E=Y==null?void 0:Y.tabIdentifier;if(z()===E){var v,c;if(!((v=_.k(Y==null?void 0:Y.content,PNR))==null?0:(c=v.players)==null?0:c.length))return W.data().noUserTeamPlayersText}else{var J,g;if(!((J=_.k(d==null?void 0:d.content,PNR))==null?0:(g=J.players)==null?0:g.length))return W.data().noOpponentTeamPlayersText}},
then:function(Y){return _.w(_.r0,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:Y})}}))},"pe"),"ytw-fantasy-matchup-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){return _.w("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.w(_.r0,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return W.data().title}}),_.w(_.V,{cond:function(){return W.data().matchupTeamPairs},
then:function(B){return _.w(_.IJ,{each:B,keyBy:"INDEX"},function(z){return _.w("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.w(_.Sc,{data:function(){return[z().firstTeam,z().secondTeam]}},{fantasyTeamViewModel:function(G){return _.w(qCU,{data:G.data,
compact:!0})}}))})}}))},"qe"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=function(){var Y,d,E;return(E=(Y=W.data().userLogoAccessibility)==null?void 0:(d=Y.accessibilityData)==null?void 0:d.label)!=null?E:""},z=function(){var Y,d,E;
return(E=(Y=W.data().opponentLogoAccessibility)==null?void 0:(d=Y.accessibilityData)==null?void 0:d.label)!=null?E:""},G=_.hg(Y9r,function(){return W.data().entityKey});
return _.w("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.w("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.w(_.V,{cond:function(){return W.data().userLogo},
then:function(Y){return _.w(_.iF,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Y,alt:B})}}),_.w("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.w(_.r0,{text:function(){return W.data().title}})),_.w(_.V,{cond:function(){return W.data().opponentLogo},
then:function(Y){return _.w(_.iF,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Y,alt:z})}})),_.w("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.w("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.w(_.r0,{text:function(){var Y;
return(Y=G())==null?void 0:Y.userWinNumberLabel}})),_.w("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.w("div",{class:_.kG("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.oK({flex:function(){var Y,d;return(d=(Y=G())==null?void 0:Y.userWinNumber)!=null?d:50}})}),_.w("div",{class:_.kG("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.oK({flex:function(){var Y,d;return(d=(Y=G())==null?void 0:Y.opponentWinNumber)!=null?d:50}})})),_.w("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.w(_.r0,{text:function(){var Y;
return(Y=G())==null?void 0:Y.opponentWinNumberLabel}}))))},"re"),"fantasy-win-probability-view-model",{props:{data:_.kz}});var alR={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},ReH=_.m(function(W){return _.w(_.Sc,{data:W.button},{buttonViewModel:function(B){return _.w(_.ex,{data:B.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"se"),WVU=_.m(function(W){return _.w("ytd-backstage-locked-post-view-model",{class:_.kG("ytdBackstageLockedPostViewModelHost",W.className)},_.w("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.w("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.w(_.Sc,
{data:function(){return W.data().authorAvatar}},{decoratedAvatarViewModel:_.pY})),_.w("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.w("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.w(_.r0,{text:function(){return W.data().authorText}})),_.w("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.w(_.r0,{text:function(){return W.data().publishedTimeText}}),_.w(_.Sc,{data:function(){return W.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(B){return _.w(vJu,
{data:B.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.w("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.w(_.r0,{text:function(){return W.data().contentText}})),_.w(_.HR,null,_.w(_.oJ,{when:function(){return W.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.w("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.w(_.iF,{data:alR,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.w(_.r0,{text:function(){return W.data().lockedText}}))}),_.w(_.oJ,{when:function(){return W.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.w("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.w("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.w(_.iF,{data:alR,
alt:""})),_.w(_.r0,{text:function(){return W.data().lockedText}}))})),_.w("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.w(ReH,{button:function(){return W.data().likeButton}}),_.w("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return W.data().voteCountA11y}},_.w(_.r0,{text:function(){return W.data().voteCount}})),_.w(ReH,{button:function(){return W.data().dislikeButton}}),_.w(ReH,{button:function(){return W.data().commentButton}}),_.w("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return W.data().commentCountA11y}},_.w(_.r0,{text:function(){return W.data().commentCount}}))))},"te");
WVU.idomCompat=!0;_.Vm(WVU,"ytd-backstage-locked-post-view-model",{props:{data:_.kz,className:_.kz}});_.eX("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var PU=function(){var W=_.S.apply(this,arguments)||this;W.darkerPanels=_.r("web_watch_darker_panels");W.commentsHidePanelButton=!1;W.isWatchGrid=!1;W.continuationShowButton=!1;W.isSearch=!1;W.isConstrainedList=!1;W.isWatch=!1;W.eligibleToSwitchToGrid=!1;W.useBigThumbs=!1;W.notSticky=!1;W.epRestyle=!1;W.isCarouselInFeed=!0;W.topSpacingZero=!1;W.continuationIsInitialLoad=!0;W.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");W.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");
W.mastheadHeight=0;W.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};W.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return W};
_.C(PU,_.S);_.p=PU.prototype;_.p.updateLockupContainerTypes=function(W){if(this.eligibleToSwitchToGrid){var B;(B=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||B.forEach(function(z){z.containerType=W})}};
_.p.getItemsPath=function(){return"data.contents"};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.p.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
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:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",
showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",
unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",
primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",
listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.r("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.r("kevlar_low_priority_continuation")}}};
_.p.created=function(){};
_.p.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.p.handleIntersect=function(W){this.notSticky=W[0].intersectionRatio===1};
_.p.attached=function(){var W=this,B=_.r("web_item_section_sticky_header_use_scroll_as_fallback");B||document.addEventListener("scroll",_.Co(this,this.updateHeaderState));var z;this.mastheadHeight=((z=document.querySelector("ytd-masthead"))==null?void 0:z.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(G){W.handleIntersect(G)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):B&&document.addEventListener("scroll",_.Co(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){W.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.p.detached=function(){document.removeEventListener("scroll",_.Co(this,this.updateHeaderState));var W;(W=this.intersectionObserver)==null||W.disconnect();var B;(B=this.resizeObserver)==null||B.disconnect()};
_.p.updated=function(W){W.has("data")&&this.updateHeaderState()};
_.p.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(tMH(!this.notSticky))};
_.p.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var W=_.tH(this.hostElement).querySelector("ytd-comments-header-renderer");W&&(W.hidePanelButton=this.commentsHidePanelButton)}};
_.p.onRetrieveLocation=function(W,B){this.containsComments()&&(this.firstCommentsLoaded=B.hasComments=!0)};
_.p.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.p.onLoadReloadContinuation=function(W,B){var z=this;W.stopPropagation();this.isReloading=!0;_.v0(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(G){var Y=_.dO().resolve(_.ns);G=B(G);Y.postData(G).then(function(d){z.onReloadContinuationData(d)})}})};
_.p.onReloadContinuationData=function(W){if(W=this.get("response.continuationContents.itemSectionContinuation",W)||this.get("response.contents.itemSectionRenderer",W)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",W)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",W))this.set("data.contents",W.contents||W.results),W.header&&this.set("data.header",W.header),this.set("data.continuations",
W.continuations||[]);this.isReloading=!1};
_.p.computeContentsClass=function(W){return W?"reloading":""};
_.p.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.p.computeSectionIdentifier=function(W){return W==null?void 0:W.sectionIdentifier};
_.p.computeFitContainer=function(W){return(W==null?void 0:W.sectionIdentifier)==="youchat-item-section"};
_.p.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.r("kevlar_disable_comments_auto_load")};
_.p.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.p.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.p.computeHasDestinationShelfRenderer=function(W){var B,z;return!!(W==null?0:(B=W.contents)==null?0:(z=B[0])==null?0:z.destinationShelfRenderer)};
_.p.computeHasSectionGroupViewModel=function(W){var B,z;return!!(W==null?0:(B=W.contents)==null?0:(z=B[0])==null?0:z.sectionGroupViewModel)};
_.p.computeHasQrCodeRenderer=function(W){var B,z;return!!(W==null?0:(B=W.contents)==null?0:(z=B[0])==null?0:z.qrCodeRenderer)};
_.p.computeStaticCommentsHeader=function(W){return W&&this.containsComments()};
_.p.computeEpRestyle=function(W){return _.r("web_ep_restyling")&&W&&this.containsComments()};
_.p.computeIsContinuationCommentSection=function(W){return(W==null?void 0:W.targetId)==="shorts-engagement-panel-comments-section"||(W==null?void 0:W.targetId)==="comments-section"||(W==null?void 0:W.targetId)==="engagement-panel-comments-section"};
_.p.computeSuppressPaddingDisclaimer=function(){var W,B,z,G;return!!((W=this.data)==null?0:(B=W.contents)==null?0:(z=B[0])==null?0:(G=z.productListHeaderRenderer)==null?0:G.suppressPaddingDisclaimer)};
_.p.computeHeaderStyle=function(W){switch(W==null?void 0:W.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.p.dataChanged=function(){this.firstCommentsLoaded=!1};
_.p.observeDataContentsLength=function(){var W,B;((W=this.data)==null?0:(B=W.contents)==null?0:B.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.p.onYtDismissibleItemDismissedChange=function(W){this._setItemDismissed(W.type==="yt-dismissible-item-dismissed")};
_.p.triggerContinuations=function(){for(var W=_.tH(this.hostElement).querySelector("#continuations").children,B=0;B<W.length;B++)W[B].trigger()};
_.p.triggerInitialContinuations=function(){for(var W=_.tH(this.hostElement).querySelector("#continuations").children,B=0;B<W.length;B++)W[B].triggerIfNotPreviouslyTriggered()};
_.p.handleYtItemSectionContinuation=function(W,B){var z;B&&((z=this.data)==null?void 0:z.sectionIdentifier)!==B||(this.set("data.continuations",[W]),this.triggerContinuations())};
_.p.handleYtItemSectionReplace=function(W,B){var z;B&&((z=this.data)==null?void 0:z.sectionIdentifier)!==B||(this.set("data.contents",W),this.set("data.continuations",[]))};
_.p.computeUseHeightHack=function(W){return W&&!_.r("kevlar_disable_height_hack")};
_.p.computeTopSpacingZero=function(W){return W};
_.p.continuationShowButtonChanged=function(){var W=_.tH(this.hostElement).querySelector("ytd-continuation-item-renderer");W&&(W.showButton=this.continuationShowButton)};
_.p.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("data-changed",this.data))};
_.G5.Object.defineProperties(PU.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.r("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.r("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return!!((W=this.data)==null?0:(B=W.contents)==null?0:(z=B[0])==null?0:z.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G,Y,d,E;return!!((W=this.data)==null?0:(B=W.contents)==null?0:(z=B[0])==null?0:(G=z.shelfRenderer)==null?0:(Y=G.content)==null?0:(d=Y.gridRenderer)==null?0:(E=d.targetId)==null?0:E.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return!!((W=this.data)==null?0:(B=W.contents)==null?0:(z=B[0])==null?0:z.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return!!((W=this.data)==null?0:(B=W.contents)==null?0:(z=B[0])==null?0:z.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.EA("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.r("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.r("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
PU.prototype.dataChangedForBinding=PU.prototype.dataChangedForBinding;PU.prototype.continuationShowButtonChanged=PU.prototype.continuationShowButtonChanged;PU.prototype.onYtDismissibleItemDismissedChange=PU.prototype.onYtDismissibleItemDismissedChange;PU.prototype.observeDataContentsLength=PU.prototype.observeDataContentsLength;PU.prototype.dataChanged=PU.prototype.dataChanged;PU.prototype.onServiceRequestCompleted=PU.prototype.onServiceRequestCompleted;PU.prototype.onLoadReloadContinuation=PU.prototype.onLoadReloadContinuation;
PU.prototype.onRetrieveLocation=PU.prototype.onRetrieveLocation;PU.prototype.commentsHidePanelButtonChanged=PU.prototype.commentsHidePanelButtonChanged;PU.prototype.dispatchChipBarIsSticky=PU.prototype.dispatchChipBarIsSticky;PU.prototype.updateLockupContainerTypes=PU.prototype.updateLockupContainerTypes;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],PU.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],PU.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.bh.YtLazyListBehavior),_.y("design:type",Object)],PU.prototype,"ytLazyListBehavior",void 0);_.Q([_.h(_.ZY.YtNextContinuationBehavior),_.y("design:type",Object)],PU.prototype,"ytNextContinuationBehavior",void 0);
_.Q([_.h(_.Pl),_.y("design:type",Object)],PU.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],PU.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],PU.prototype,"ytdReduxBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PU.prototype,"darkerPanels",void 0);_.Q([_.F(),_.y("design:type",Object)],PU.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],PU.prototype,"engagementPanel",void 0);_.Q([_.F(),_.y("design:type",Object)],PU.prototype,"commentsHidePanelButton",void 0);_.Q([_.F(),_.y("design:type",Object)],PU.prototype,"isWatchGrid",void 0);_.Q([_.F(),_.y("design:type",Object)],PU.prototype,"continuationShowButton",void 0);_.Q([_.F({computed:"computeIsContinuationCommentSection(data)"}),_.y("design:type",Boolean)],PU.prototype,"continuationIsCommentsSection",void 0);
_.Q([_.F({value:!0}),_.y("design:type",Boolean)],PU.prototype,"autoFill",void 0);_.Q([_.F(),_.y("design:type",Boolean)],PU.prototype,"continuationDisablePrescanVisibility",void 0);_.Q([_.F(),_.y("design:type",Boolean)],PU.prototype,"isReloading",void 0);_.Q([_.F(),_.y("design:type",Object)],PU.prototype,"isSearch",void 0);_.Q([_.F(),_.y("design:type",Object)],PU.prototype,"isConstrainedList",void 0);_.Q([_.F(),_.y("design:type",Object)],PU.prototype,"isWatch",void 0);
_.Q([_.F(),_.y("design:type",Object)],PU.prototype,"eligibleToSwitchToGrid",void 0);_.Q([_.F(),_.y("design:type",Object)],PU.prototype,"useBigThumbs",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PU.prototype,"notSticky",void 0);_.Q([_.F({selector:_.qE}),_.y("design:type",Object)],PU.prototype,"isGridViewEnabled",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.y("design:type",Object)],PU.prototype,"epRestyle",void 0);_.Q([_.H("isWatch"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],PU.prototype,"hideShortsShelfHeader",null);_.Q([_.H("isSearch","isWatch"),_.y("design:type",String),_.y("design:paramtypes",[])],PU.prototype,"thumbnailWidth",null);
_.Q([_.H("isSearch","containerWidth"),_.y("design:type",Object),_.y("design:paramtypes",[])],PU.prototype,"thumbnailTargetWidth",null);_.Q([_.H("isSearch","isWatch"),_.y("design:type",String),_.y("design:paramtypes",[])],PU.prototype,"sizing",null);_.Q([_.H("isWatch","isGridViewEnabled","useBigThumbs","data"),_.F({reflectToAttribute:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],PU.prototype,"lockupContainerType",null);
_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],PU.prototype,"hasHeader",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],PU.prototype,"expFixPlaylistHeader",null);_.Q([_.oN("lockupContainerType","data"),_.y("design:type",Function),_.y("design:paramtypes",[Number]),_.y("design:returntype")],PU.prototype,"updateLockupContainerTypes",null);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],PU.prototype,"pageSubtype",void 0);_.Q([_.F({computed:"computeContainerWidth()"}),_.y("design:type",Number)],PU.prototype,"containerWidth",void 0);_.Q([_.F(),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],PU.prototype,"isPlaylist",null);_.Q([_.F(),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],PU.prototype,"isClipList",null);_.Q([_.F(),_.y("design:type",Object)],PU.prototype,"isCarouselInFeed",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],PU.prototype,"isPlaylistVideoContainer",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],PU.prototype,"isSearchFrictionPage",null);_.Q([_.F({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.y("design:type",Boolean)],PU.prototype,"useHeightHack",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.y("design:type",Object)],PU.prototype,"topSpacingZero",void 0);_.Q([_.F({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.y("design:type",Boolean)],PU.prototype,"showButton",void 0);_.Q([_.F(),_.y("design:type",Boolean)],PU.prototype,"firstCommentsLoaded",void 0);_.Q([_.F(),_.y("design:type",Object)],PU.prototype,"continuationIsInitialLoad",void 0);
_.Q([_.F({reflectToAttribute:!0,readOnly:!0}),_.y("design:type",Boolean)],PU.prototype,"itemDismissed",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.y("design:type",String)],PU.prototype,"sectionIdentifier",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.y("design:type",String)],PU.prototype,"fitContainer",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.y("design:type",Boolean)],PU.prototype,"hasDestinationShelfRenderer",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.y("design:type",Boolean)],PU.prototype,"staticCommentsHeader",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PU.prototype,"enableSqueezebackPanels",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PU.prototype,"enableAnchoredPanel",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.y("design:type",Boolean)],PU.prototype,"hasSectionGroupViewModel",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.y("design:type",Boolean)],PU.prototype,"hasQrCodeRenderer",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.y("design:type",Boolean)],PU.prototype,"suppressDisclaimerSeparator",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.y("design:type",String)],PU.prototype,"headerStyle",void 0);_.Q([_.H("isSearch"),_.y("design:type",Object),_.y("design:paramtypes",[])],PU.prototype,"lockupExperiments",null);
_.Q([_.H("isSearch"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],PU.prototype,"typographyBump",null);_.Q([_.Hf("#header"),_.y("design:type",HTMLElement)],PU.prototype,"header",void 0);_.Q([_.oN("notSticky"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PU.prototype,"dispatchChipBarIsSticky",null);
_.Q([_.oN("commentsHidePanelButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PU.prototype,"commentsHidePanelButtonChanged",null);_.Q([_.IN("yt-retrieve-location"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],PU.prototype,"onRetrieveLocation",null);
_.Q([_.IN("yt-load-reload-continuation"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Function]),_.y("design:returntype")],PU.prototype,"onLoadReloadContinuation",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PU.prototype,"onServiceRequestCompleted",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PU.prototype,"dataChanged",null);
_.Q([_.jJ("data.contents.length"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PU.prototype,"observeDataContentsLength",null);_.Q([_.IN("yt-dismissible-item-dismissed"),_.IN("yt-dismissible-item-undismissed"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],PU.prototype,"onYtDismissibleItemDismissedChange",null);
_.Q([_.oN("continuationShowButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PU.prototype,"continuationShowButtonChanged",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PU.prototype,"dataChangedForBinding",null);_.Q([_.u({is:"ytd-item-section-renderer",disableElementRegistration:!0})],PU);
_.D(PU,"ytd-item-section-renderer",function(){if(EWQ!==void 0)return EWQ;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return EWQ=W},{mode:1});var BC9;var qx2=_.Bg(_.kq("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var zTd={},ymR=(zTd[0]={title:_.Aq(_.kq("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Aq(_.kq("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.dc("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},zTd[1]={title:_.Aq(_.kq("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.dc("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},zTd);_.eX("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Zc=function(){var W=_.S.apply(this,arguments)||this;W.allVideosCount=0;W.allPlaylistCount=0;W.isOnline=!1;W.shouldRenderDownloadsBanner=!1;W.shouldRenderDownloadsBannerUpsell=!1;W.hasOptedIntoSmartDownloads=!1;W.areAllSmartDownloadsDeleted=!1;W.smartDownloadsCompleted=!1;return W};
_.C(Zc,_.S);Zc.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Zc.prototype.attached=function(){this.downloadsToRenderChanged()};
Zc.prototype.detached=function(){this.set("renderableData",{})};
Zc.prototype.downloadsToRenderChanged=function(){var W=_.Y_().getState().entities,B=_.XN(W),z=_.r("kevlar_playlist_dl_page_killswitch")?z7Q(W):_.KA(W),G=_.LxR(W),Y=_.RNT(W),d=_.FN(B);W=_.ud(W);this.set("renderableData",Nyv(z,B,G,Y,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,d,W))};
Zc.prototype.downloadsToRenderChanged=Zc.prototype.downloadsToRenderChanged;_.Q([_.h(_.TB),_.y("design:type",Object)],Zc.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Zc.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Zc.prototype,"renderableData",void 0);_.Q([_.F({selector:_.J5T}),_.y("design:type",Object)],Zc.prototype,"allVideosCount",void 0);_.Q([_.F({selector:Xv8}),_.y("design:type",Object)],Zc.prototype,"allPlaylistCount",void 0);_.Q([_.F({selector:_.Qg}),_.y("design:type",Object)],Zc.prototype,"isOnline",void 0);_.Q([_.F({selector:_.k10}),_.y("design:type",Object)],Zc.prototype,"shouldRenderDownloadsBanner",void 0);
_.Q([_.F({selector:_.oUR}),_.y("design:type",Object)],Zc.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.Q([_.F({selector:_.l$Q}),_.y("design:type",Object)],Zc.prototype,"hasOptedIntoSmartDownloads",void 0);_.Q([_.F({selector:_.C1y}),_.y("design:type",Object)],Zc.prototype,"areAllSmartDownloadsDeleted",void 0);_.Q([_.F({selector:I$X}),_.y("design:type",Object)],Zc.prototype,"smartDownloadsCompleted",void 0);
_.Q([_.jJ("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zc.prototype,"downloadsToRenderChanged",null);_.Q([_.u({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Zc);
_.D(Zc,"ytd-offline-item-section-renderer",function(){if(BC9!==void 0)return BC9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return BC9=W},
{mode:1});var GeM;var YHT;var rQ=function(){return _.S.apply(this,arguments)||this};
_.C(rQ,_.S);
rQ.prototype.onDataChanged=function(){if(this.JSC$16695_lastData){var W=this.getFilterClass(this.JSC$16695_lastData.status);W&&this.hostElement.classList.remove(W)}var B;(W=this.getFilterClass((B=this.data)==null?void 0:B.status))&&this.hostElement.classList.add(W);W==="selected"?_.tH(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.tH(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");W==="disabled"?_.tH(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.tH(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16695_lastData=this.data};
rQ.prototype.getFilterClass=function(W){switch(W){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
rQ.prototype.onDataChanged=rQ.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],rQ.prototype,"data",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rQ.prototype,"onDataChanged",null);_.Q([_.u({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],rQ);
_.D(rQ,"ytd-search-filter-renderer",function(){if(YHT!==void 0)return YHT;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return YHT=W},{mode:_.PJ("kevlar_poly_si_batch_j075")?1:2});var ku=function(){return _.S.apply(this,arguments)||this};
_.C(ku,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ku.prototype,"data",void 0);_.Q([_.u({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],ku);
_.D(ku,"ytd-search-filter-group-renderer",function(){if(GeM!==void 0)return GeM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return GeM=W},{mode:_.PJ("kevlar_poly_si_batch_j075")?1:2});var dyT;var l$=function(){return _.S.apply(this,arguments)||this};
_.C(l$,_.S);l$.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.jY());this.isCollapsed=!this.isCollapsed};
l$.prototype.navigateToAboutTheseResultsPage=function(){var W=_.DR("https://www.youtube.com/howyoutubeworks/product-features/search/");W?_.BG(window,W,"_blank"):_.xr(Error("Xh"))};
l$.prototype.dataChanged=function(){this.isCollapsed=!0};
l$.prototype.computeShowBottomBorder=function(){var W,B,z;return!!((W=this.data)==null?0:(B=W.button)==null?0:B.toggleButtonRenderer)||!((z=this.data)==null||!z.aboutTheseResultsButton)};
l$.prototype.dataChanged=l$.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],l$.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.y("design:type",Boolean)],l$.prototype,"showBottomBorder",void 0);_.Q([_.F(),_.y("design:type",Boolean)],l$.prototype,"renderCollapsibleMenu",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],l$.prototype,"isCollapsed",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l$.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],l$);
_.D(l$,"ytd-search-sub-menu-renderer",function(){if(dyT!==void 0)return dyT;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dyT=W},{mode:1});var pYQ;var A3d=new _.t1("SECTION_LIST_RENDERER_TOKEN");var iTR;var CJ=function(){return _.S.apply(this,arguments)||this};
_.C(CJ,_.S);CJ.prototype.computeStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],CJ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],CJ.prototype,"headerStyle",void 0);_.Q([_.u({is:"ytd-text-header-renderer",disableElementRegistration:!0})],CJ);
_.D(CJ,"ytd-text-header-renderer",function(){if(iTR!==void 0)return iTR;var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return iTR=W},{mode:1});var ESd;var I$=function(){return _.S.apply(this,arguments)||this};
_.C(I$,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],I$.prototype,"data",void 0);_.Q([_.u({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],I$);
_.D(I$,"ytd-minor-moment-header-renderer",function(){if(ESd!==void 0)return ESd;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ESd=W},{mode:1});var TCU;var o$=function(){return _.S.apply(this,arguments)||this};
_.C(o$,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],o$.prototype,"data",void 0);_.Q([_.u({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],o$);
_.D(o$,"ytd-minor-moment-setting-alert-renderer",function(){if(TCU!==void 0)return TCU;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return TCU=W},{mode:1});var vS7;var c3H;var hl=function(){var W=_.S.apply(this,arguments)||this;W.booleanSettingById=!1;W.smartDownloadsEnabledVE=_.PA(128287);W.smartDownloadsDisabledVE=_.PA(128286);W.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return W};
_.C(hl,_.S);_.p=hl.prototype;_.p.attachSmartDownloadsSettingVes=function(){var W;this.activeVeForLogging||((W=this.data)==null?void 0:W.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.ui(_.SK(),this.smartDownloadsEnabledVE),_.ui(_.SK(),this.smartDownloadsDisabledVE))};
_.p.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.v0(this.hostElement,"yt-settings-switch-ready")};
_.p.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.p.onSwitchChange=function(W){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(W=_.iP(W).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.r("kevlar_settings_switch_resolve_command_killswitch")?_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(W)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.p.handleUpdateSettingsSwitch=function(W){(W=_.k(W,meR))&&this.data&&this.data.id===W.id&&this.set("data.enabled",!!W.enabled)};
_.p.onToggleSettingsSwitch=function(W,B){this.data&&this.data.id===W&&this.set("data.enabled",B!=null?B:!this.data.enabled)};
_.p.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.oH.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.p.maybeLogSmartDownloadsSettingVisibility=function(){var W=_.m1(),B;W&&((B=this.data)==null?void 0:B.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Mj(W,[this.smartDownloadsEnabledVE]),_.aP(W,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Mj(W,[this.smartDownloadsDisabledVE]),_.aP(W,[this.smartDownloadsEnabledVE])))};
_.p.maybeLogSmartDownloadsSettingClick=function(){var W;((W=this.data)==null?void 0:W.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.mx(_.SK(),this.activeVeForLogging)};
_.p.updateDataEnabledFromBinding=function(W){this.set("data.enabled",W.detail.value)};
_.G5.Object.defineProperties(hl.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!W&&(W=this.ytRendererBehavior.getSimpleString(this.data.title));return W}}});
hl.prototype.dataChanged=hl.prototype.dataChanged;_.Q([_.h(_.TB),_.y("design:type",Object)],hl.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],hl.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],hl.prototype,"ytComponentBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],hl.prototype,"data",void 0);_.Q([_.F({selector:function(W,B){if(Object.keys(W==null?void 0:W.entities).length)switch(B){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return G1r(W.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.y("design:type",Object)],hl.prototype,"booleanSettingById",void 0);_.Q([_.F(),_.y("design:type",uy)],hl.prototype,"activeVeForLogging",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],hl.prototype,"toggleAriaLabel",null);_.Q([_.jJ("data"),_.jJ("booleanSettingById"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hl.prototype,"dataChanged",null);
_.Q([_.u({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],hl);
_.D(hl,"ytd-settings-switch-renderer",function(){if(c3H!==void 0)return c3H;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return c3H=W},{mode:1});var HU=function(){return _.S.apply(this,arguments)||this};
_.C(HU,_.S);HU.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}}}}};
_.G5.Object.defineProperties(HU.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var W=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(W+=" remove-left-margin");this.data.extraBottomSpace&&(W+=" extra-bottom-space");return W}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],HU.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],HU.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],HU.prototype,"contentsClassName",null);_.Q([_.u({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],HU);
_.D(HU,"ytd-minor-moment-setting-section-renderer",function(){if(vS7!==void 0)return vS7;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return vS7=W},{mode:1});var wYQ;var FS=function(){return _.S.apply(this,arguments)||this};
_.C(FS,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],FS.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],FS.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],FS);
_.D(FS,"ytd-empty-product-details-renderer",function(){if(wYQ!==void 0)return wYQ;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return wYQ=W},{mode:1});var VOU;var J3M;var Sp=function(){var W=_.S.apply(this,arguments)||this;W.expanded=!0;return W};
_.C(Sp,_.S);Sp.prototype.getBadgeRowClass=function(W,B,z){for(var G=_.A(this.hostElement.querySelectorAll("yt-img-shadow")),Y=G.next();!Y.done;Y=G.next())Y.value.onShow();W=W.selected;return z?W!==-1?W===B?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(W!==void 0?W:0)===B?"badge-line":"badge-hidden"};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Sp.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Sp.prototype,"expanded",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Sp);
_.D(Sp,"ytd-sponsorships-loyalty-badges-renderer",function(){if(J3M!==void 0)return J3M;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return J3M=W},{mode:1});var gSF;var b$=function(){var W=_.S.apply(this,arguments)||this;W.expanded=!0;return W};
_.C(b$,_.S);b$.prototype.getContainerClasses=function(W,B){W=W?"expanded":"collapsed";B&&(W+=" item");return W};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],b$.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],b$.prototype,"expanded",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],b$);
_.D(b$,"ytd-sponsorships-perk-renderer",function(){if(gSF!==void 0)return gSF;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return gSF=W},{mode:1});var tOQ;var jp=function(){var W=_.S.apply(this,arguments)||this;W.expanded=!0;return W};
_.C(jp,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],jp.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],jp.prototype,"expanded",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],jp);
_.D(jp,"ytd-sponsorships-perks-renderer",function(){if(tOQ!==void 0)return tOQ;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tOQ=W},{mode:1});var fJ=function(){var W=_.S.apply(this,arguments)||this;W.isCollapsed=!1;return W};
_.C(fJ,_.S);fJ.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
fJ.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
fJ.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var W;this.expandCollapseButton=_.k((W=this.data)==null?void 0:W.expandButton,_.Ep)}else{var B;this.expandCollapseButton=_.k((B=this.data)==null?void 0:B.collapseButton,_.Ep)}};
fJ.prototype.updateExpandCollapseButton=fJ.prototype.updateExpandCollapseButton;fJ.prototype.onDataChanged=fJ.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],fJ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],fJ.prototype,"isCollapsed",void 0);_.Q([_.F(),_.y("design:type",Object)],fJ.prototype,"expandCollapseButton",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fJ.prototype,"onDataChanged",null);_.Q([_.jJ("data","isCollapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fJ.prototype,"updateExpandCollapseButton",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],fJ);
_.D(fJ,"ytd-sponsorships-expandable-perks-renderer",function(){if(VOU!==void 0)return VOU;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return VOU=W},{mode:1});var siU;var OJ=function(){return _.S.apply(this,arguments)||this};
_.C(OJ,_.S);OJ.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],OJ.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],OJ.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],OJ);
_.D(OJ,"ytd-sponsorships-actionable-message-renderer",function(){if(siU!==void 0)return siU;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return siU=W},{mode:1});var PvD;var XS=function(){return _.S.apply(this,arguments)||this};
_.C(XS,_.S);_.p=XS.prototype;_.p.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.p.getExpansionIcon=function(W){return W?"COLLAPSE":"EXPAND"};
_.p.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.p.computeMessageContainerStyle=function(W){var B=W.expandableItems?" style-clickable":"";return W.messageContainerStyle?W.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+B:"style-unspecified"+B};
_.p.isSinglePerk=function(W){return!!W.messageContainerStyle&&(W.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||W.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.p.onExpandedChanged=function(){var W=this;if(this.expanded)for(var B=_.A(this.hostElement.querySelectorAll("yt-img-shadow")),z=B.next();!z.done;z=B.next())z.value.onShow();_.BM(this,function(){_.v0(W.hostElement,"yt-refit")})};
_.p.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
XS.prototype.onDataChanged=XS.prototype.onDataChanged;XS.prototype.onExpandedChanged=XS.prototype.onExpandedChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],XS.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],XS.prototype,"expanded",void 0);
_.Q([_.oN("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],XS.prototype,"onExpandedChanged",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],XS.prototype,"onDataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],XS);
_.D(XS,"ytd-sponsorships-expandable-message-renderer",function(){if(PvD!==void 0)return PvD;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return PvD=W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var ZTR;var KJ=function(){return _.S.apply(this,arguments)||this};
_.C(KJ,_.S);KJ.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"}}}}};
KJ.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.k(this.data.endButton,_.Ep).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
KJ.prototype.onDataChanged=KJ.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],KJ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],KJ.prototype,"data",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KJ.prototype,"onDataChanged",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],KJ);
_.D(KJ,"ytd-sponsorships-heading-renderer",function(){if(ZTR!==void 0)return ZTR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ZTR=W},{mode:1});var r3Q;var u$=function(){return _.S.apply(this,arguments)||this};
_.C(u$,_.S);_.Q([_.F(),_.y("design:type",Object)],u$.prototype,"data",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],u$);
_.D(u$,"ytd-sponsorships-links-renderer",function(){if(r3Q!==void 0)return r3Q;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return r3Q=W},{mode:1});var keR;var ep=function(){return _.S.apply(this,arguments)||this};
_.C(ep,_.S);_.p=ep.prototype;_.p.onDataChanged=function(){if(this.data&&this.data.expandableItems){var W;(W=_.tH(this.hostElement).querySelector("tp-yt-paper-button"))==null||W.setAttribute("role","button")}else{var B;(B=_.tH(this.hostElement).querySelector("tp-yt-paper-button"))==null||B.removeAttribute("role")}};
_.p.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.p.getExpansionIcon=function(W){return W?"COLLAPSE":"EXPAND"};
_.p.getTileClasses=function(W){return W?"tile expandable-tile":"tile"};
_.p.getButtonDisabled=function(W){return W?void 0:""};
ep.prototype.onDataChanged=ep.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ep.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],ep.prototype,"expanded",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ep.prototype,"onDataChanged",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],ep);
_.D(ep,"ytd-sponsorships-list-tile-renderer",function(){if(keR!==void 0)return keR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return keR=W},{mode:1});var lwQ;var CvR;var mS=function(){return _.S.apply(this,arguments)||this};
_.C(mS,_.S);mS.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],mS.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],mS);
_.D(mS,"ytd-sponsorships-promotion-renderer",function(){if(CvR!==void 0)return CvR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return CvR=W},{mode:1});var IwR;var xu=function(){return _.S.apply(this,arguments)||this};
_.C(xu,_.S);xu.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],xu.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],xu);
_.D(xu,"ytd-sponsorships-purchase-option-renderer",function(){if(IwR!==void 0)return IwR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return IwR=W},{mode:1});var oSH;var hT4;var HTQ=function(){return _.S.apply(this,arguments)||this};
_.C(HTQ,_.S);_.Q([_.F(),_.y("design:type",Object)],HTQ.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],HTQ);
_.D(HTQ,"ytd-ypc-offer-promo-renderer",function(){if(hT4!==void 0)return hT4;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return hT4=W},{mode:1});var Dc=function(){return _.S.apply(this,arguments)||this};
_.C(Dc,_.S);_.p=Dc.prototype;
_.p.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"}}}}};
_.p.expansionCTA=function(W,B){return W&&(B?W.collapseCallToAction:W.expansionCallToAction)};
_.p.getExpansionIcon=function(W){return W?"COLLAPSE":"EXPAND"};
_.p.expansionCallToActionTap=function(){var W=this;this.expanded=!this.expanded;_.BM(this,function(){_.v0(W.hostElement,"yt-refit")})};
_.p.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var W,B=(W=this.data)==null?void 0:W.onVisible;B&&this.ytComponentBehavior.resolveCommand(B)};
_.p.computeDisplayTitle=function(W){return!(!W||this.titledisplaystatus!=="show")};
_.p.computeDisplaySeparator=function(){return!1};
_.p.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Dc.prototype.onDataChanged=Dc.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Dc.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Dc.prototype,"data",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Dc.prototype,"expanded",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Dc.prototype,"purchaseButtonClicked",void 0);_.Q([_.F({reflectToAttribute:!0,value:"show"}),_.y("design:type",String)],Dc.prototype,"titledisplaystatus",void 0);_.Q([_.F({computed:"computeDisplayTitle(data.title)"}),_.y("design:type",Boolean)],Dc.prototype,"displayTitle",void 0);
_.Q([_.F({computed:"computeDisplaySeparator(data)"}),_.y("design:type",Boolean)],Dc.prototype,"displaySeparator",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Dc.prototype,"onDataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Dc);
_.D(Dc,"ytd-sponsorships-tier-renderer",function(){if(oSH!==void 0)return oSH;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return oSH=W},{mode:2});var QC=function(){return _.S.apply(this,arguments)||this};
_.C(QC,_.S);
QC.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"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],QC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],QC.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],QC);
_.D(QC,"ytd-sponsorships-management-renderer",function(){if(lwQ!==void 0)return lwQ;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return lwQ=W},{mode:1});var FVR;var yC=function(){return _.S.apply(this,arguments)||this};
_.C(yC,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],yC.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],yC);
_.D(yC,"ytd-open-in-native-app-view-model",function(){if(FVR!==void 0)return FVR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return FVR=W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var SHT;var bTF;var jiR=_.ak(["top-"]),fwd=_.ak(["bottom-"]),OT6=_.ak(["left-"]),XYH=_.ak(["right-"]),KVd={},uYR=function(W,B,z){W.removeAttribute("top-"+z);W.removeAttribute("bottom-"+z);W.removeAttribute("left-"+z);W.removeAttribute("right-"+z);B&&(B.top&&_.i7([_.w3(jiR)],W,"top-"+z,B.top),B.bottom&&_.i7([_.w3(fwd)],W,"bottom-"+z,B.bottom),B.left&&_.i7([_.w3(OT6)],W,"left-"+z,B.left),B.right&&_.i7([_.w3(XYH)],W,"right-"+z,B.right))};
KVd.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(W){var B,z=_.tH((B=this.hostElement)!=null?B:this),G;B=this.cardItemBoxBehaviorMarginTargetId&&z?z.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(G=this.hostElement)!=null?G:this;uYR(B,W,"margin")},
cardItemContainerPaddingChanged_:function(W){var B,z=_.tH((B=this.hostElement)!=null?B:this),G;B=this.cardItemBoxBehaviorPaddingTargetId&&z?z.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(G=this.hostElement)!=null?G:this;uYR(B,W,"padding")}}];var qL={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 eTH;var myD;var nJ=function(){return _.S.apply(this,arguments)||this};
_.C(nJ,_.S);nJ.prototype.textColorChanged_=function(){this.hostElement.style.color=qL[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
nJ.prototype.textColorChanged_=nJ.prototype.textColorChanged_;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],nJ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(KVd.YtCardItemBoxBehavior),_.y("design:type",Object)],nJ.prototype,"ytCardItemBoxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],nJ.prototype,"data",void 0);_.Q([_.oN("data.textColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nJ.prototype,"textColorChanged_",null);
_.Q([_.NJ({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],nJ);
_.D(nJ,"yt-card-item-text-renderer",function(){if(myD===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;eTH===void 0&&(eTH=document.createElement("template"));var G=eTH;z.call(B,G.content.cloneNode(!0),W.content.firstChild);myD=W}W=myD;return W},{mode:2});var xyu;var DyM;var NL=function(){return _.S.apply(this,arguments)||this};
_.C(NL,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],NL.prototype,"data",void 0);_.Q([_.NJ({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],NL);
_.D(NL,"yt-card-item-badge-renderer",function(){if(DyM===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;xyu===void 0&&(xyu=document.createElement("template"));var G=xyu;z.call(B,G.content.cloneNode(!0),W.content.firstChild);DyM=W}W=DyM;return W},{mode:2});var QiM;var y3U;var $u=function(){return _.S.apply(this,arguments)||this};
_.C($u,_.S);$u.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$u.prototype,"data",void 0);_.Q([_.NJ({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],$u);
_.D($u,"yt-card-item-text-collection-renderer",function(){if(y3U===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;QiM===void 0&&(QiM=document.createElement("template"));var G=QiM;z.call(B,G.content.cloneNode(!0),W.content.firstChild);y3U=W}W=y3U;return W},{mode:2});var qH9;var nSU;var LJ=function(){return _.S.apply(this,arguments)||this};
_.C(LJ,_.S);LJ.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]]"}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],LJ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],LJ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Number)],LJ.prototype,"iconSize",void 0);_.Q([_.NJ({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],LJ);
_.D(LJ,"yt-card-item-text-with-button-renderer",function(){if(nSU===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;qH9===void 0&&(qH9=document.createElement("template"));var G=qH9;z.call(B,G.content.cloneNode(!0),W.content.firstChild);nSU=W}W=nSU;return W},{mode:2});var UJ=function(){return _.S.apply(this,arguments)||this};
_.C(UJ,_.S);UJ.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"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],UJ.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],UJ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],UJ.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],UJ);
_.D(UJ,"ytd-commerce-cart-summary-line-item-renderer",function(){if(bTF!==void 0)return bTF;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return bTF=W},{mode:1});_.eX("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var ML=function(){var W=_.S.apply(this,arguments)||this;W.hidden=!1;return W};
_.C(ML,_.S);_.p=ML.prototype;_.p.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"}}}}};
_.p.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.p.updateSummary=function(){var W=this.commerceCartCheckoutButtonEntity,B;if(((B=this.data)==null?0:B.cartButton)&&W.checkoutSummaryText){var z,G=XB((z=this.data)==null?void 0:z.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+G+".cardItemTextRenderer.text",Kk(W.checkoutSummaryText));if(W.checkoutDetailText){var Y;z=XB((Y=this.data)==null?void 0:Y.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+z+".cardItemTextRenderer.text",Kk(W.checkoutDetailText))}if(W.checkoutAdditionalMetadataText){var d;
Y=XB((d=this.data)==null?void 0:d.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+Y+".cardItemTextRenderer.text",Kk(W.checkoutAdditionalMetadataText))}}else W.estimatedTotalPrice&&(d=XB((G=this.data)==null?void 0:G.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+d+".cardItemTextRenderer.text",Kk(W.estimatedTotalPrice)))};
_.p.updateIsHidden=function(){var W,B=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isHidden;B!==void 0&&(this.hidden=B)};
_.p.updateCheckoutButton=function(){var W,B=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isDisabled;B!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",B);var z;W=(z=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:z.innertubeCommand;W!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",W);var G;z=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.checkoutButtonText;z!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:z})};
ML.prototype.entityChanged=ML.prototype.entityChanged;_.Q([_.h(_.TB),_.y("design:type",Object)],ML.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],ML.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],ML.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],ML.prototype,"fullWidth",void 0);_.Q([_.F(),_.y("design:type",Object)],ML.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],ML.prototype,"compact",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],ML.prototype,"hidden",void 0);
_.Q([_.F({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:vfu}),_.y("design:type",Object)],ML.prototype,"commerceCartCheckoutButtonEntity",void 0);_.Q([_.oN("commerceCartCheckoutButtonEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ML.prototype,"entityChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],ML);
_.D(ML,"ytd-commerce-cart-checkout-button-renderer",function(){if(SHT!==void 0)return SHT;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return SHT=W},{mode:2});var NC7;_.$y4={};
_.$y4.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",_.Co(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Co(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(W){!this.tappableItemBehaviorTapEnabled||W.keyCode!==13&&W.keyCode!==32||W.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var W=this.data.onTap;W.ypcGetCartEndpoint?(_.V0(this.hostElement,[W]),this.tappableItemBehaviorTapEnabled=!1):W.ypcOffersEndpoint?_.V0(this.hostElement,[W]):_.Jr(this.hostElement,[W],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(W){this.tappableItemBehaviorTapEnabled=!!W},
tappableItemBehaviorOnTapEnabledChanged_:function(){var W=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(W.setAttribute("tabIndex",0),W.setAttribute("role","button")):(W.removeAttribute("tabIndex"),W.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(W){W.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var LVH;var Uy6;var a$=function(){return _.S.apply(this,arguments)||this};
_.C(a$,_.S);a$.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.mT("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.mT("sharingToggleButtonAndDefaultButton")}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],a$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],a$.prototype,"data",void 0);_.Q([_.NJ({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],a$);
_.D(a$,"yt-card-item-actions-renderer",function(){if(Uy6===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;LVH===void 0&&(LVH=document.createElement("template"));var G=LVH;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Uy6=W}W=Uy6;return W},{mode:2});var MOT;var aw4;var RTH;var Wyd;var B_u;var z9H;var R$=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return W};
_.C(R$,_.S);R$.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
R$.prototype.handleDarkModeToggledAction_=function(W){this.isDarkTheme_=W};
R$.prototype.computeThemeImage_=function(W,B){if(!W||!W.imageLight)return!1;this.isCircular_=W.isCircular;W.imageWidth&&(this.hostElement.style.width=W.imageWidth+"px");W.imageHeight&&(this.hostElement.style.height=W.imageHeight+"px");W.borderWidth&&(this.image.style.borderWidth=W.borderWidth+"px",this.image.style.borderStyle="solid");W.borderColor&&(this.image.style.borderColor=_.aE(W.borderColor));return B&&W.imageDark?W.imageDark:W.imageLight};
R$.prototype.computeThemeIcon_=function(W){var B,z;if(!(W==null?0:(B=W.themedIcon)==null?0:(z=B.icon)==null?0:z.iconType))return!1;this.icon.style.color=qL[W.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(W.imageWidth||18)+"px";this.icon.style.height=(W.imageHeight||18)+"px";return _.lg(W.themedIcon.icon.iconType)};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(KVd.YtCardItemBoxBehavior),_.y("design:type",Object)],R$.prototype,"ytCardItemBoxBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],R$.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],R$.prototype,"data",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],R$.prototype,"fit",void 0);_.Q([_.F(),_.y("design:type",Boolean)],R$.prototype,"isDarkTheme_",void 0);_.Q([_.F({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.y("design:type",Object)],R$.prototype,"themeImage_",void 0);_.Q([_.F({computed:"computeThemeIcon_(data)"}),_.y("design:type",Object)],R$.prototype,"themeIcon_",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Object)],R$.prototype,"isCircular_",void 0);
_.Q([_.Hf("#image"),_.y("design:type",Object)],R$.prototype,"image",void 0);_.Q([_.Hf("#icon"),_.y("design:type",Object)],R$.prototype,"icon",void 0);_.Q([_.NJ({is:"yt-themed-image-renderer",disableElementRegistration:!0})],R$);
_.D(R$,"yt-themed-image-renderer",function(){if(z9H===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;B_u===void 0&&(B_u=document.createElement("template"));var G=B_u;z.call(B,G.content.cloneNode(!0),W.content.firstChild);z9H=W}W=z9H;return W},{mode:2});var W6=function(){return _.S.apply(this,arguments)||this};
_.C(W6,_.S);W6.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"}}}}};
W6.prototype.computeImagePlacement_=function(W){return W||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],W6.prototype,"data",void 0);_.Q([_.F({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.y("design:type",String)],W6.prototype,"imagePlacement",void 0);
_.Q([_.NJ({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],W6);
_.D(W6,"yt-card-item-text-with-image-renderer",function(){if(Wyd===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;RTH===void 0&&(RTH=document.createElement("template"));var G=RTH;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Wyd=W}W=Wyd;return W},{mode:2});var B6=function(){return _.S.apply(this,arguments)||this};
_.C(B6,_.S);B6.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"}}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],B6.prototype,"data",void 0);_.Q([_.NJ({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],B6);
_.D(B6,"yt-card-item-error-renderer",function(){if(aw4===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;MOT===void 0&&(MOT=document.createElement("template"));var G=MOT;z.call(B,G.content.cloneNode(!0),W.content.firstChild);aw4=W}W=aw4;return W},{mode:2});var Gcu;var YS6;_.eX("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var zV=function(){return _.S.apply(this,arguments)||this};
_.C(zV,_.S);_.p=zV.prototype;
_.p.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"}}}}};
_.p.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.p.backgroundColorChanged_=function(){var W,B=(W=this.data)==null?void 0:W.backgroundColor;W=qL[B||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.tH(this.hostElement).querySelector("#main-content").style.backgroundColor=W};
_.p.headerPromoBackgroundColorChanged_=function(){var W,B=(W=this.data)==null?void 0:W.headerPromoBackgroundColor;W=qL[B||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.tH(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=W};
_.p.errorRendererVisibilityChanged_=function(){var W=this.isExpanded_,B;this.isErrorRendererVisible_=!((B=this.data)==null||!B.errorRenderer)&&!W};
_.p.onYtToggleButton_=function(W,B){this.isExpanded_=B.toggled};
zV.prototype.onYtToggleButton_=zV.prototype.onYtToggleButton_;zV.prototype.errorRendererVisibilityChanged_=zV.prototype.errorRendererVisibilityChanged_;zV.prototype.headerPromoBackgroundColorChanged_=zV.prototype.headerPromoBackgroundColorChanged_;zV.prototype.backgroundColorChanged_=zV.prototype.backgroundColorChanged_;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],zV.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(KVd.YtCardItemBoxBehavior),_.y("design:type",Object)],zV.prototype,"ytCardItemBoxBehavior",void 0);_.Q([_.h(_.$y4.YtTappableItemBehavior),_.y("design:type",Object)],zV.prototype,"ytTappableItemBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],zV.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],zV.prototype,"isExpanded_",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],zV.prototype,"isErrorRendererVisible_",void 0);_.Q([_.oN("data.backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zV.prototype,"backgroundColorChanged_",null);_.Q([_.oN("data.headerPromoBackgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zV.prototype,"headerPromoBackgroundColorChanged_",null);
_.Q([_.oN("data.errorRenderer","isExpanded_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zV.prototype,"errorRendererVisibilityChanged_",null);_.Q([_.IN("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[Event,Object]),_.y("design:returntype")],zV.prototype,"onYtToggleButton_",null);_.Q([_.NJ({is:"yt-card-item-renderer",disableElementRegistration:!0})],zV);
_.D(zV,"yt-card-item-renderer",function(){if(YS6===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Gcu===void 0&&(Gcu=document.createElement("template"));var G=Gcu;z.call(B,G.content.cloneNode(!0),W.content.firstChild);YS6=W}W=YS6;return W},{mode:2});_.eX("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var GV=function(){var W=_.S.apply(this,arguments)||this;W.hidden=!1;return W};
_.C(GV,_.S);_.p=GV.prototype;_.p.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.p.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.p.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var W,B=(W=this.commerceCartHeaderEntity)==null?void 0:W.isHidden;B!==void 0&&(this.hidden=B)}};
_.p.updateTitle=function(){var W=this.commerceCartHeaderEntity.isDisabled,B,z,G=(z=_.k((B=this.data)==null?void 0:B.item,hvU))==null?void 0:z.headingRenderer;G&&(B=XB(G,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+B+".0.cardItemTextRenderer.textColor",W?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.p.updateSummaryText=function(){var W=this.commerceCartHeaderEntity;if(this.compact){var B,z,G=(z=_.k((B=this.data)==null?void 0:B.item,hvU))==null?void 0:z.headingRenderer;G&&(B=XB(G,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+B+".1.cardItemTextRenderer.text",W.shortHeaderSummaryText?Kk(W.shortHeaderSummaryText):W.headerSummaryText?Kk(W.headerSummaryText):""))}else{var Y;if(B=(Y=_.k((G=this.data)==null?void 0:G.item,hvU))==null?void 0:Y.additionalInfoRenderer)B=XB(B,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+B+".text",W.headerSummaryText?Kk(W.headerSummaryText):"")}};
_.p.updateCheckoutButton=function(){var W=this.commerceCartHeaderEntity,B,z,G=(z=_.k((B=this.data)==null?void 0:B.item,hvU))==null?void 0:z.additionalInfoRenderer;B=XB(G,"buttonRenderer");var Y;z=(Y=this.commerceCartHeaderEntity)==null?void 0:Y.isButtonDisabled;var d;Y=(d=this.commerceCartHeaderEntity)==null?void 0:d.isButtonHidden;z!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+B+".buttonRenderer.isDisabled",z);Y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
Y);var E;W=(E=W.checkoutButtonCommand)==null?void 0:E.innertubeCommand;W!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+B+".buttonRenderer.command",W)};
GV.prototype.entityChanged=GV.prototype.entityChanged;_.Q([_.h(_.TB),_.y("design:type",Object)],GV.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],GV.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],GV.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],GV.prototype,"compact",void 0);_.Q([_.F({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(W,B){return _.P3(W.entities,"commerceCartHeaderEntity",B)}}),
_.y("design:type",Object)],GV.prototype,"commerceCartHeaderEntity",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],GV.prototype,"hidden",void 0);_.Q([_.oN("commerceCartHeaderEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GV.prototype,"entityChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],GV);
_.D(GV,"ytd-commerce-cart-header-renderer",function(){if(NC7!==void 0)return NC7;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return NC7=W},{mode:1});var dt9;var pud=_.O8(function(W,B){var z;return(z=W.onChangeCallback)==null?void 0:z.call(W,B)},1E3),AFQ=_.m(function(W){var B=W.data;
var z=W.iconMinus;W=W.iconPlus;var G=function(){return!!B().disabled},Y=_.A(_.g4(0,void 0,"mKh0af")),d=Y.next().value,E=Y.next().value;
Y=_.lF(function(){if(d()===1){var t,P;(P=(t=B()).onRemoveCommand)==null||P.call(t)}t=d()>B().maxValue?B().maxValue:d()-1;E(t);pud(B(),t);return!1});
var v=_.lF(function(){if(d()===B().maxValue)return!1;var t=d()+1;E(t);pud(B(),t);return!1});
_.bk(function(){E(B().value)});
var c={},J={},g={};return _.w("quantity-incrementer-shape",null,_.w("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.w("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return d()===(B().onRemoveCommand?0:1)||G()},
"aria-label":function(){return d()!==1?B().minusLabel:B().minimumReachedLabel},
"on:click":Y},_.w(_.O6,{model:{circular:!0}}),_.w("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.w("div",{class:_.kG("ytSpecQuantityIncrementerShapeIcon",(c.ytSpecQuantityIncrementerShapeIconDisabled=function(){return G()||d()===(B().onRemoveCommand?0:1)},c))},z()))),_.w("div",{class:_.kG("ytSpecQuantityIncrementerShapeText",(J.ytSpecQuantityIncrementerShapeTextInvalid=function(){return d()>B().maxValue},J.ytSpecQuantityIncrementerShapeTextDisabled=G,J))},d),_.w("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return d()>=B().maxValue||G()},
"aria-label":function(){return d()!==B().maxValue?B().plusLabel:B().maximumReachedLabel},
"on:click":v},_.w(_.O6,{model:{circular:!0}}),_.w("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.w("div",{class:_.kG("ytSpecQuantityIncrementerShapeIcon",(g.ytSpecQuantityIncrementerShapeIconDisabled=function(){return d()>=B().maxValue||G()},g))},W())))))},"ue");_.Vm(_.m(function(W){function B(){z().onRemoveCommand&&_.aB(z().onRemoveCommand)}
var z=W.data;var G=_.hg(NpR,function(){return z().quantityIncrementerEntityKey});
return _.w("yt-quantity-incrementer-view-model",null,_.w(AFQ,{data:function(){var Y=z(),d;var E=G()?!((d=G())==null||!d.disabled):!1;var v;d=G()?(v=G())==null?void 0:v.quantity:z().quantity;return U0y(Y,E,B,d)},
iconMinus:function(){return _.w(_.hY,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.w(_.hY,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"ve"),"yt-quantity-incrementer-view-model",{props:{data:_.kz}});var Yp=function(){var W=_.S.apply(this,arguments)||this;W.compact=!1;W.hasQuantityIncrementer=!1;return W};
_.C(Yp,_.S);Yp.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"}}}};
Yp.prototype.computeHasQuantityIncrementer=function(){var W;return!!_.k((W=this.data)==null?void 0:W.picker,bjU)};
Yp.prototype.onLabelClick=function(){var W;(W=this.dropdownEl)==null||W.open()};
_.Q([_.Hf("ytd-dropdown-renderer"),_.y("design:type",Object)],Yp.prototype,"dropdownEl",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Yp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Yp.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],Yp.prototype,"quantityColor",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Yp.prototype,"compact",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.y("design:type",Object)],Yp.prototype,"hasQuantityIncrementer",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Yp);
_.D(Yp,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(dt9!==void 0)return dt9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dt9=W},{mode:1});var i9R;var EKu;var dZ=function(){return _.S.apply(this,arguments)||this};
_.C(dZ,_.S);dZ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
dZ.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
dZ.prototype.updateTitle=function(){var W=this.disabledCartItemEntity;W.disableActionName&&this.set("data.title",Kk(W.disableActionName))};
dZ.prototype.updateButton=function(){var W,B=(W=this.disabledCartItemEntity.undoCommand)==null?void 0:W.innertubeCommand;B!==void 0&&(this.set("data.actionButton.buttonRenderer.command",B),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
dZ.prototype.entityChanged=dZ.prototype.entityChanged;_.Q([_.h(_.TB),_.y("design:type",Object)],dZ.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(W,B){return _.P3(W.entities,"disabledCartItemEntity",B)}}),
_.y("design:type",Object)],dZ.prototype,"disabledCartItemEntity",void 0);_.Q([_.F(),_.y("design:type",Object)],dZ.prototype,"data",void 0);_.Q([_.oN("disabledCartItemEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dZ.prototype,"entityChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],dZ);
_.D(dZ,"ytd-disabled-cart-item-renderer",function(){if(EKu!==void 0)return EKu;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return EKu=W},{mode:1});_.eX("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var p0=function(){var W=_.S.apply(this,arguments)||this;W.compact=!1;W.hidden=!1;W.errorHidden=!1;W.noOnTap=!1;return W};
_.C(p0,_.S);_.p=p0.prototype;
_.p.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"}}}};
_.p.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.p.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var W=this.firstButtonElement;W.alignByText=!0;W.iconAlignByText=!0}};
_.p.computeNoOnTap=function(W){return!W};
_.p.updateQuantityColor=function(){if(this.pickerElement){var W,B=(W=this.commerceCartItemEntity)==null?void 0:W.quantityColor;this.pickerElement.quantityColor=B}};
_.p.updateTotalPriceColor=function(){var W,B=(W=this.commerceCartItemEntity)==null?void 0:W.totalPriceColor;if(B){var z;W=_.k((z=this.data)==null?void 0:z.quantityPicker,FhT);if(z=_.k(W==null?void 0:W.price,HjM))z.textColor=B}};
_.p.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var W,B=(W=this.commerceCartItemEntity)==null?void 0:W.isHidden;B!==void 0&&(this.hidden=B)}};
_.p.updateHideErrorMessage=function(){var W,B=(W=this.commerceCartItemEntity)==null?void 0:W.hideErrorMessage;B!==void 0&&(this.errorHidden=B)};
_.p.updateQuantity=function(){var W=this,B,z=(B=this.commerceCartItemEntity)==null?void 0:B.quantity,G;B=(G=this.commerceCartItemEntity)==null?void 0:G.totalPrice;if(z){this.updateTotalPriceColor();this.updateQuantityColor();var Y;G=_.k((Y=this.data)==null?void 0:Y.quantityPicker,FhT);if(Y=_.k(G==null?void 0:G.price,HjM))Y.text=B?{simpleText:B.content}:void 0;if(B=_.k(G==null?void 0:G.picker,bjU))B.quantity=z;var d;if(Y=(d=_.k(G==null?void 0:G.picker,Fx9))==null?void 0:d.entries){d=!1;B=void 0;Y=
_.A(Y);for(G=Y.next();!G.done;G=Y.next())G=G.value,G.dropdownItemRenderer&&(B||(B=G.dropdownItemRenderer),G.dropdownItemRenderer.isSelected=!1,z===G.dropdownItemRenderer.int32Value&&(d=!0,G.dropdownItemRenderer.isSelected=!0));!d&&B&&(B.isSelected=!0)}_.BM(this,function(){var E;W.set("data.quantityPicker",_.mP.unsafeClone((E=W.data)==null?void 0:E.quantityPicker))})}};
p0.prototype.onYtRendererstamperFinished=p0.prototype.onYtRendererstamperFinished;p0.prototype.entityChanged=p0.prototype.entityChanged;_.Q([_.F(),_.y("design:type",Object)],p0.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],p0.prototype,"compact",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],p0.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],p0.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(W,B){return _.P3(W.entities,"commerceCartItemEntity",B)}}),
_.y("design:type",Object)],p0.prototype,"commerceCartItemEntity",void 0);_.Q([_.F(),_.y("design:type",Object)],p0.prototype,"quantityPicker",void 0);_.Q([_.F(),_.y("design:type",Object)],p0.prototype,"compactQuantityPicker",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],p0.prototype,"hidden",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],p0.prototype,"errorHidden",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.y("design:type",Object)],p0.prototype,"noOnTap",void 0);_.Q([_.Hf("ytd-commerce-cart-item-quantity-picker-renderer"),_.y("design:type",Object)],p0.prototype,"pickerElement",void 0);_.Q([_.Hf("yt-button-renderer"),_.y("design:type",Element)],p0.prototype,"firstButtonElement",void 0);
_.Q([_.oN("commerceCartItemEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],p0.prototype,"entityChanged",null);_.Q([_.IN("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],p0.prototype,"onYtRendererstamperFinished",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],p0);
_.D(p0,"ytd-commerce-cart-item-renderer",function(){if(i9R!==void 0)return i9R;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return i9R=W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var T_u;var vK6;var Ac=function(){return _.S.apply(this,arguments)||this};
_.C(Ac,_.S);Ac.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}}}}}};
Ac.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
Ac.prototype.updateCheckoutLineItems=function(){var W,B=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.checkoutLineItems;B&&(W=B.map(function(z){a:{var G=z.price,Y=z.description;switch(z.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":z={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Kk(Y),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:Kk(G),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:z={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Kk(Y),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:Kk(G),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 z}),this.set("data.summaryLineItems",W))};
Ac.prototype.updateIsHidden=function(){var W,B=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isHidden;B!==void 0&&(this.hostElement.hidden=B)};
Ac.prototype.entityChanged=Ac.prototype.entityChanged;_.Q([_.h(_.TB),_.y("design:type",Object)],Ac.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Ac.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ac.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Ac.prototype,"data",void 0);_.Q([_.F({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:vfu}),_.y("design:type",Object)],Ac.prototype,"commerceCartCheckoutButtonEntity",void 0);_.Q([_.oN("commerceCartCheckoutButtonEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ac.prototype,"entityChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],Ac);
_.D(Ac,"ytd-commerce-cart-summary-renderer",function(){if(vK6!==void 0)return vK6;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return vK6=W},{mode:1});var cFQ={};cFQ.InjectBehavior=[bdR.InjectBehavior];var wuR;var Vz4;var iD=function(){return _.S.apply(this,arguments)||this};
_.C(iD,_.S);
iD.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:_.mT("menuRenderer")}}};
iD.prototype.onMenuTap=function(W){W.stopPropagation()};
_.G5.Object.defineProperties(iD.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 W,B;return!(((W=this.data)==null||!W.sectionHeading)&&((B=this.data)==null?void 0:B.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var W,B;return!(((W=this.data)==null||!W.image)&&((B=this.data)==null?void 0:B.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var W,B;return!(((W=this.data)==null||!W.menu)&&((B=this.data)==null?void 0:B.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.$y4.YtTappableItemBehavior),_.y("design:type",Object)],iD.prototype,"ytTappableItemBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],iD.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.accessibilityData"),_.y("design:type",String),_.y("design:paramtypes",[])],iD.prototype,"ariaLabel",null);_.Q([_.H("data.sectionHeading","data.layout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iD.prototype,"sectionHeadingVisible",null);_.Q([_.H("data.image","data.layout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iD.prototype,"imageVisible",null);
_.Q([_.H("data.menu","data.layout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iD.prototype,"menuVisible",null);_.Q([_.NJ({is:"yt-activity-item-renderer",disableElementRegistration:!0})],iD);
_.D(iD,"yt-activity-item-renderer",function(){if(Vz4===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;wuR===void 0&&(wuR=document.createElement("template"));var G=wuR;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Vz4=W}W=Vz4;return W},{mode:2});var JFQ;var gK7;var tz7;var syU;var E1=function(){return _.S.apply(this,arguments)||this};
_.C(E1,_.S);
E1.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"}}}}};
E1.prototype.backgroundColorChanged_=function(){var W,B=(W=this.data)==null?void 0:W.backgroundColor;this.hostElement.style.backgroundColor=qL[B||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
E1.prototype.backgroundColorChanged_=E1.prototype.backgroundColorChanged_;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],E1.prototype,"data",void 0);
_.Q([_.oN("data.backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],E1.prototype,"backgroundColorChanged_",null);_.Q([_.NJ({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],E1);
_.D(E1,"yt-offer-item-upsell-renderer",function(){if(syU===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;tz7===void 0&&(tz7=document.createElement("template"));var G=tz7;z.call(B,G.content.cloneNode(!0),W.content.firstChild);syU=W}W=syU;return W},{mode:2});_.eX("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var TV=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};W.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return W};
_.C(TV,_.S);_.p=TV.prototype;
_.p.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:_.mT("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.p.computeContainerStyle_=function(W){return W};
_.p.computeContainerIsHidden_=function(W){return W&&!!W.isHidden};
_.p.computeShowSpinner_=function(W,B){return W&&B==="in-progress"};
_.p.computeShowMoreContentsButton_=function(W,B,z,G,Y){return!(!(G&&G.length||Y&&Y.length&&z)||!W||B)};
_.p.onToggleButton_=function(W){var B=this;W.stopPropagation();this.isExpanded_=W.detail&&W.detail.toggled;var z,G;this.isExpanded_&&!this.data.continuationSection.length&&((z=this.data)==null?0:(G=z.continuation)==null?0:G.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.v0(this.hostElement,"yt-load-next-continuation",function(Y){return B.getContinuationUrl_(B.data.continuation.onClickContinuationData,Y)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.V0(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.p.onShowMoreContentsButtonClicked_=function(W){var B=this;W.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.v0(this.hostElement,"yt-load-next-continuation",function(z){return B.getContinuationUrl_(B.data.continuations[0].nextContinuationData,z)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.V0(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.p.getContinuationUrl_=function(W,B){var z=W.continuation;W=W.clickTrackingParams;var G=_.m1();W&&G&&_.RP(G,_.XF(W));return _.aJ(B,{continuation:z})};
_.p.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var W=_.tH(this.hostElement).querySelector("#continuation-section");W&&(W=W.querySelectorAll("ytmusic-item-section-renderer"))&&W.forEach(function(B){return B.classList.add("memberships-and-purchases")})};
_.p.dataChanged_=function(){var W;this.isExpanded_=!((W=this.data)==null||!W.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.p.updateCardOnClickCommand_=function(W){W=_.k(W,PUM);var B,z;this.data&&((B=this.data)==null?0:B.targetId)&&W&&W.targetId===((z=this.data)==null?void 0:z.targetId)&&W.onClickCommand&&(this.data.onClickCommand=W.onClickCommand,this.isOnClickCommand_=!0)};
_.p.backgroundColorChanged_=function(){var W,B=(W=this.data)==null?void 0:W.backgroundColor;this.hostElement.style.backgroundColor=qL[B||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
TV.prototype.backgroundColorChanged_=TV.prototype.backgroundColorChanged_;TV.prototype.dataChanged_=TV.prototype.dataChanged_;TV.prototype.nextContinuationDataUpdated_=TV.prototype.nextContinuationDataUpdated_;TV.prototype.onToggleButton_=TV.prototype.onToggleButton_;_.Q([_.h(_.Pl),_.y("design:type",Object)],TV.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],TV.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ZY.YtNextContinuationBehavior),_.y("design:type",Object)],TV.prototype,"ytNextContinuationBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.Q([_.h(cFQ.InjectBehavior),_.y("design:type",Object)],TV.prototype,"injectBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],TV.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],TV.prototype,"compact",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],TV.prototype,"isExpanded_",void 0);_.Q([_.F({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.y("design:type",String)],TV.prototype,"containerStyle_",void 0);_.Q([_.F({value:"not-started"}),_.y("design:type",String)],TV.prototype,"continuationStatus_",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.y("design:type",Boolean)],TV.prototype,"showSpinner_",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],TV.prototype,"isOnClickCommand_",void 0);_.Q([_.F({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.y("design:type",Boolean)],TV.prototype,"showMoreContentsButton_",void 0);
_.Q([_.F({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(W,B){return!B||W.entities?null:_.P3(W.entities,"cardItemContainerEntity",B)}}),
_.y("design:type",Object)],TV.prototype,"cardItemContainerEntity_",void 0);_.Q([_.IN("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],TV.prototype,"onToggleButton_",null);_.Q([_.IN("yt-next-continuation-data-updated"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TV.prototype,"nextContinuationDataUpdated_",null);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TV.prototype,"dataChanged_",null);_.Q([_.oN("data.backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TV.prototype,"backgroundColorChanged_",null);_.Q([_.NJ({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],TV);
_.D(TV,"yt-card-item-container-renderer",function(){if(gK7===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;JFQ===void 0&&(JFQ=document.createElement("template"));var G=JFQ;z.call(B,G.content.cloneNode(!0),W.content.firstChild);gK7=W}W=gK7;return W},{mode:2});var v6=function(){return _.S.apply(this,arguments)||this};
_.C(v6,_.S);v6.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"}}}};
v6.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
v6.prototype.computeLoadingHidden=function(){var W;return!((W=this.commerceCartPageStateEntity)==null?0:W.cartActionInProgress)};
v6.prototype.updateNotification=function(){var W,B=(W=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:W.summaryText;B&&this.set("data.cartNotification",Kk(B))};
v6.prototype.notificationEntityChanged=v6.prototype.notificationEntityChanged;_.Q([_.h(_.TB),_.y("design:type",Object)],v6.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],v6.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],v6.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],v6.prototype,"data",void 0);_.Q([_.F({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(W,B){return _.P3(W.entities,"commerceCartExpandableNotificationEntity",B)}}),
_.y("design:type",Object)],v6.prototype,"commerceCartExpandableNotificationEntity",void 0);_.Q([_.F({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(W,B){return _.P3(W.entities,"commerceCartPageStateEntity",B)}}),
_.y("design:type",Object)],v6.prototype,"commerceCartPageStateEntity",void 0);_.Q([_.Hf("#spinner"),_.y("design:type",HTMLElement)],v6.prototype,"spinner",void 0);_.Q([_.oN("commerceCartExpandableNotificationEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],v6.prototype,"notificationEntityChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],v6);
_.D(v6,"ytd-commerce-cart-renderer",function(){if(T_u!==void 0)return T_u;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return T_u=W},{mode:1});var PmR;var c6=function(){var W=_.S.apply(this,arguments)||this;W.bigImage=!1;return W};
_.C(c6,_.S);_.G5.Object.defineProperties(c6.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.placeholderImageUrl}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],c6.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],c6.prototype,"bigImage",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],c6.prototype,"placeholderImageUrl",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],c6);
_.D(c6,"ytd-empty-product-shelf-renderer",function(){if(PmR!==void 0)return PmR;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return PmR=W},{mode:1});var Z94;var wZ=function(){var W=_.S.apply(this,arguments)||this;W.itemStyle="link-item";W.watchMetadataRefresh=!1;W.skinnyMode=!1;W.metaPanel=!1;W.inStructuredDescription=!1;W.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};W.updateOnResizeDebouncer=null;return W};
_.C(wZ,_.S);_.p=wZ.prototype;_.p.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.p.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"}}}}};
_.p.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.p.attachVEs=function(W){W.trackingParams&&_.SK().graftServerVe(W.trackingParams)};
_.p.handleUpdateMerchShelfAction=function(W){var B=this,z=_.k(W.updateMerchandiseShelfAction.merchandiseShelf,_.UpQ);z&&(z.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){B.attachVEs(z);B.data=z},Number(z.renderDelayMs))):(this.attachVEs(z),this.data=z))};
_.p.updateOnResize=function(){if(this.JSC$16863_scrollContainer!==void 0&&this.JSC$16863_scrollContainer.clientWidth!==0&&this.items!==void 0){var W=this.JSC$16863_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-W));this.ytdHorizontalListBehavior.reposition_();var B;switch((B=this.data)==null?void 0:B.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var z,
G;((z=this.data)==null?void 0:(G=z.items)==null?void 0:G.length)===1?this.itemStyle="cta-item":this.itemStyle=W>=740?"large-item":"small-item"}}};
_.p.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.hf(this.updateOnResizeDebouncer,_.Jf.after(100),this.updateOnResize)};
wZ.prototype.debouncedUpdateOnResize=wZ.prototype.debouncedUpdateOnResize;wZ.prototype.dataChanged=wZ.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.jv.YtdHorizontalListBehavior),_.y("design:type",Object)],wZ.prototype,"ytdHorizontalListBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],wZ.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],wZ.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],wZ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],wZ.prototype,"itemStyle",void 0);_.Q([_.F({value:6}),_.y("design:type",Number)],wZ.prototype,"initialCount",void 0);
_.Q([_.F({value:"data.items"}),_.y("design:type",String)],wZ.prototype,"itemsPath",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],wZ.prototype,"watchMetadataRefresh",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],wZ.prototype,"skinnyMode",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],wZ.prototype,"metaPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],wZ.prototype,"inStructuredDescription",void 0);
_.Q([_.Hf("#items"),_.y("design:type",HTMLDivElement)],wZ.prototype,"items",void 0);_.Q([_.Hf("#scroll-container"),_.y("design:type",HTMLDivElement)],wZ.prototype,"JSC$16863_scrollContainer",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wZ.prototype,"dataChanged",null);_.Q([_.IN("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wZ.prototype,"debouncedUpdateOnResize",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],wZ);
_.D(wZ,"ytd-merch-shelf-renderer",function(){if(Z94!==void 0)return Z94;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Z94=W},{mode:2});var rF7;var V9=function(){var W=_.S.apply(this,arguments)||this;W.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 W};
_.C(V9,_.S);_.p=V9.prototype;
_.p.addBackstagePostAction=function(W){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(W=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",W))&&(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:W}):this.set("data.contents",[{backstagePostThreadRenderer:W}]))};
_.p.addBackstageCommentAction=function(W){var B=this.get("addBackstageCommentAction.parentId",W);W=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",W);if(B&&W){B=this.postIdToIndices(B);for(var z=0;z<B.length;z++){var G=B[z];if(G<0)break;G="data.contents."+G+".backstagePostThreadRenderer.comments";this.get(G)&&(this.get(G+".backstageCommentsRenderer.contents")&&this.push(G+".backstageCommentsRenderer.contents",{commentThreadRenderer:W}),this.get(G+".backstageCommentsRenderer.teaserContents")?
this.push(G+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:W}):this.set(G+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:W}]))}}};
_.p.addBackstageReplyAction=function(W){var B=this.get("addBackstageReplyAction.parentId",W);W=this.get("addBackstageReplyAction.renderer.commentRenderer",W);B&&W&&this.setCreatorReply(B,W)};
_.p.banAuthorAction=function(W){var B=this.get("banAuthorAction.commentId",W);B&&(W=this.get("banAuthorAction.parentCommentId",W)||this.getParentPostId(B),this.removeFromStream(B,W))};
_.p.hideReportedCommentAction=function(W){var B=this.get("hideReportedCommentAction.commentId",W);B&&((W=this.get("hideReportedCommentAction.parentCommentId",W))||(W=this.getParentPostId(B)),this.removeFromStream(B,W))};
_.p.replaceBackstageCommentAction=function(W){var B=this.get("replaceBackstageCommentAction.commentId",W),z=this.get("replaceBackstageCommentAction.parentId",W);W=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",W);if(B&&z&&W){z=this.postIdToIndices(z);for(var G=0;G<z.length;G++){var Y=z[G];if(Y<0)break;var d=this.commentIdToIndex(B,Y,!1);if(d>=0){var E=this.get("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+d+".commentThreadRenderer.replies.commentRepliesRenderer");
E&&(W.replies={commentRepliesRenderer:E});this.splice("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",d,1,{commentThreadRenderer:W})}d=this.commentIdToIndex(B,Y,!0);if(d>=0){if(E=this.get("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(d+".commentThreadRenderer.replies.commentRepliesRenderer")))W.replies={commentRepliesRenderer:E};this.splice("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
d,1,{commentThreadRenderer:W})}}}};
_.p.replaceBackstagePostAction=function(W){var B=this.get("replaceBackstagePostAction.itemId",W);if(B){B=this.postIdToIndices(B);for(var z=0;z<B.length;z++){var G=B[z];if(G<0)break;var Y=this.getPostRendererType(G),d=this.get("replaceBackstagePostAction.renderer."+Y,W);if(!d&&Y!=="sharedPostRenderer")break;var E=!1;d||(E=!0,d=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",W));if(!d)break;var v={};E?(_.Q2(v,srM,d),this.set("data.contents."+G+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
v)):(_.Q2(v,new _.J1(Y),d),this.set("data.contents."+G+".backstagePostThreadRenderer.post",v))}}};
_.p.replaceBackstageReplyAction=function(W){var B=this.get("replaceBackstageReplyAction.replyId",W),z=this.get("replaceBackstageReplyAction.parentId",W);W=this.get("replaceBackstageReplyAction.renderer.commentRenderer",W);B&&W&&z&&this.setCreatorReply(z,W)};
_.p.removeCommentAction=function(W){var B=this.get("removeCommentAction.commentId",W);if(B){var z=this.get("removeCommentAction.parentCommentId",W);z&&this.get("removeCommentAction.isCreatorReply",W)?this.setCreatorReply(z,void 0):(z||(z=this.getParentPostId(B)),this.removeFromStream(B,z))}};
_.p.setCreatorReply=function(W,B){var z=this.getParentPostId(W);if(z){z=this.postIdToIndices(z);for(var G=0;G<z.length;G++){var Y=z[G];if(Y<0)break;var d=this.commentIdToIndex(W,Y,!1);if(d>=0){var E="data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+d;d=E+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";E+=".commentThreadRenderer.replies";B==void 0?(this.set(E,{}),this.set(d,!1)):(this.set(E,{commentRepliesRenderer:{teaserContents:[{commentRenderer:B}]}}),
this.set(E+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(d,!0))}d=this.commentIdToIndex(W,Y,!0);d>=0&&(d="data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+d,Y=d+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",d+=".commentThreadRenderer.replies",B==void 0?(this.set(d,{}),this.set(Y,!1)):(this.set(d,{commentRepliesRenderer:{teaserContents:[{commentRenderer:B}]}}),this.set(Y,!0)))}}};
_.p.removeFromStream=function(W,B){if(B){B=this.postIdToIndices(B);for(var z=0;z<B.length;z++){var G=B[z];if(G<0)break;var Y=this.commentIdToIndex(W,G,!1);Y>=0&&this.splice("data.contents."+G+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Y,1);Y=this.commentIdToIndex(W,G,!0);Y>=0&&this.splice("data.contents."+G+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",Y,1);G="data.contents."+G+".backstagePostThreadRenderer.post.backstagePostRenderer";
Y=G+".backstageAttachment.pollRenderer.votedCommentId";this.get(Y)===W&&(this.set(Y,null),this.set(G+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(B=this.postIdToIndices(W).reverse(),z=0;z<B.length;z++){G=B[z];if(G<0)break;Y=this.getPostRendererType(G);var d=this.get("backstagePostThreadRenderer.post."+Y,this.data.contents[G]);d.postId===W?this.splice("data.contents",G,1):Y==="sharedPostRenderer"&&this.set("data.contents."+G+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);d.scheduledPublishTimeSec&&_.c0(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.p.postIdToIndices=function(W){for(var B=[],z=0;z<this.data.contents.length;z++){var G=this.getPostRendererType(z);this.get("backstagePostThreadRenderer.post."+G+".postId",this.data.contents[z])===W&&B.push(z);if(G==="sharedPostRenderer"){var Y=this.get("backstagePostThreadRenderer.post."+G+".originalPost.backstagePostRenderer.postId",this.data.contents[z]);G=this.get("backstagePostThreadRenderer.post."+G+".originalPost.postRenderer.postId",this.data.contents[z]);Y!==W&&G!==W||B.push(z)}}return B};
_.p.commentIdToIndex=function(W,B,z){if(B<0)return-1;var G,Y,d,E,v=_.k((G=this.data)==null?void 0:(Y=G.contents)==null?void 0:(d=Y[B])==null?void 0:(E=d.backstagePostThreadRenderer)==null?void 0:E.comments,gXR);return(B=z?v==null?void 0:v.teaserContents:v==null?void 0:v.contents)&&B.length?B.findIndex(function(c){return _.k(c,akU).comment.commentRenderer.commentId===W}):-1};
_.p.getParentPostId=function(W){W=W.split(".");if(W[1])return W[0]};
_.p.getPostRendererType=function(W){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[W])?"sharedPostRenderer":"backstagePostRenderer"};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],V9.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],V9.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-backstage-items"})],V9);
_.D(V9,"ytd-backstage-items",function(){if(rF7!==void 0)return rF7;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return rF7=
W},{mode:1});var kcH;var lmR={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},Jc=function(){var W=_.S.apply(this,arguments)||this;W.disablePrescanVisibility=!0;W.canScheduleJobs=!0;W.engagementPanel=!1;W.hidePanelButton=!1;W.isWatchGrid=
!1;W.hasShownSubscribersOnlyDisclaimer=!1;W.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return W};
_.C(Jc,_.S);_.p=Jc.prototype;_.p.created=function(){this.initCommentsCsi_();_.r("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_")};
_.p.contentsChanged_=function(){var W;(W=this.data)!=null&&W.contents&&this.tickForCommentsTimer_("cml")};
_.p.headerChanged_=function(){var W;(W=this.data)!=null&&W.header&&this.tickForCommentsTimer_("cmhl")};
_.p.initCommentsCsi_=function(){_.e4("wn_comments");var W=_.m1();W&&_.Ki({clientScreenNonce:W},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.p.createCommentAction_=function(W){W=_.mP.unsafeClone(W);var B,z;if(W=(B=_.k(W,QrH))==null?void 0:(z=B.contents)==null?void 0:z.commentThreadRenderer){var G,Y,d,E,v,c;!this.isBackstage&&((G=this.data)==null?0:(Y=G.header)==null?0:(d=Y.commentsHeaderRenderer)==null?0:(E=d.createRenderer)==null?0:(v=E.commentSimpleboxRenderer)==null?0:(c=v.zeroStep)==null?0:c.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var J,
g,t;this.isBackstage&&_.k((J=this.data)==null?void 0:(g=J.header)==null?void 0:(t=g.commentsHeaderRenderer)==null?void 0:t.zeroStateMessage,PKM)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(W)}};
_.p.doReplyInsert_=function(W,B,z,G){G?this.splice(W,G,0,B):this.push(W,B)};
_.p.getRepliesPath_=function(W){return"data.contents."+W+".commentThreadRenderer.replies"};
_.p.getRepliesContentsPath_=function(W,B){W=this.getRepliesPath_(W);return B?W+".commentRepliesRenderer.teaserContents":W+".commentRepliesRenderer.contents"};
_.p.showSubscribersOnlyDisclaimer_=function(W){(W=W.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&(_.c0(this.hostElement,"yt-open-popup-action",[W,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.p.createCommentReplyAction_=function(W){W=_.mP.unsafeClone(W);var B=_.k(W,yGu);if(W=B==null?void 0:B.contents){var z=this.commentIdToIndex_(B==null?void 0:B.parentCommentId);if(!(z<0)){var G=this.getRepliesPath_(z);if(this.get(G)){B=B.replyToCommentId;G=this.getRepliesContentsPath_(z,!1);if(this.get(G)){var Y=this.get(G).length,d=G+"."+(Y-1)+".continuationItemRenderer";this.get(d+".button")?(d=this.replyIdToIndex_(B,z,!1),this.doReplyInsert_(G,W,d,Y-1)):this.get(d)||(Y=this.replyIdToIndex_(B,z,
!1),this.doReplyInsert_(G,W,Y,null))}G=this.getRepliesContentsPath_(z,!0);this.get(G)?(z=this.replyIdToIndex_(B,z,!0),(!B||z>=0)&&this.doReplyInsert_(G,W,z,null)):this.set(G,[W])}else this.set(G,{commentRepliesRenderer:{teaserContents:[W]}})}}};
_.p.hideReportedCommentAction_=function(W){var B=_.k(W,Tdd);if(W=B==null?void 0:B.commentId)(B=this.get("parentCommentId",B))||(B=this.getParentCommentId_(W)),this.remove_(W,B)};
_.p.getParentCommentId_=function(W){W=W.split(".");if(W[1])return W[0]};
_.p.removeCommentAction_=function(W){var B=_.k(W,LaR);if(W=B==null?void 0:B.commentId)B=(B==null?void 0:B.parentCommentId)||this.getParentCommentId_(W),this.remove_(W,B)};
_.p.pinCommentAction_=function(W){W=_.mP.unsafeClone(W);var B=_.k(W,$ID);B!=null&&B.commentId&&(W=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",W))&&(this.remove_(B.commentId),this.insert_(W,!0))};
_.p.unpinCommentAction_=function(W){W=_.mP.unsafeClone(W);W=_.k(W,UIQ);if(W!=null&&W.commentId){var B,z,G=(B=W.actionResult)==null?void 0:(z=B.update)==null?void 0:z.commentThreadRenderer;G&&(this.remove_(W.commentId),this.insert_(G))}};
_.p.banAuthorAction_=function(W){var B=_.k(W,DI9);B!=null&&B.commentId&&(W=B.commentId,B=B.parentCommentId||this.getParentCommentId_(W),this.remove_(W,B))};
_.p.commentIdToIndex_=function(W){var B;return W&&(B=this.data)!=null&&B.contents?this.data.contents.findIndex(function(z){z=z.commentThreadRenderer;var G;return W===((z==null?void 0:z.commentViewModel)&&((G=_.k(z.commentViewModel,Y5Q))==null?void 0:G.commentId))}):-1};
_.p.insert_=function(W,B){B=B===void 0?!1:B;var z,G;if((z=this.data)==null?0:(G=z.contents)==null?0:G.some(function(d){return!!d.commentThreadRenderer}))for(z=0,G=this.data.contents.length;z<G;z++){var Y=this.data.contents[z].commentThreadRenderer;
if(lmR[W.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=lmR[Y.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){B&&lmR[W.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===lmR[Y.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",z,1,{commentThreadRenderer:W}):this.splice("data.contents",z,0,{commentThreadRenderer:W});break}}else this.set("data.contents",[{commentThreadRenderer:W}])};
_.p.doReplyRemove_=function(W,B,z){W=this.replyIdToIndex_(W,B,z);W<0||(B=this.getRepliesContentsPath_(B,z),this.splice(B,W,1))};
_.p.remove_=function(W,B){B=this.commentIdToIndex_(B);B<0?(B=this.commentIdToIndex_(W),B<0||this.splice("data.contents",B,1)):_.r("web_delhi_comment_threads")||(this.doReplyRemove_(W,B,!1),this.doReplyRemove_(W,B,!0))};
_.p.replyIdToIndex_=function(W,B,z){if(B<0)return-1;B=this.getRepliesContentsPath_(B,z);B=this.get(B);if(!B||!B.length)return-1;z=0;for(var G=B.length;z<G;z++){var Y=void 0,d=void 0;if(((Y=B[z])==null?void 0:(d=Y.commentViewModel)==null?void 0:d.commentId)===W)return z}return-1};
_.p.tickForCommentsTimer_=function(W){_.xq(W,void 0,"wn_comments")};
_.p.reloadComments_=function(W){W=_.k(W,zAM);_.k(W==null?void 0:W.command,_.Ly)&&_.V0(this.hostElement,[W==null?void 0:W.command])};
_.G5.Object.defineProperties(Jc.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return!!((W=this.data)==null?0:(B=W.header)==null?0:(z=B.commentsHeaderRenderer)==null?0:z.isBackstageContent)}}});
_.G5.Object.defineProperties(Jc,{template:{configurable:!0,enumerable:!0,get:function(){if(kcH===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);kcH=W}W=kcH;return W}}});
Jc.prototype.showSubscribersOnlyDisclaimer_=Jc.prototype.showSubscribersOnlyDisclaimer_;Jc.prototype.headerChanged_=Jc.prototype.headerChanged_;Jc.prototype.contentsChanged_=Jc.prototype.contentsChanged_;_.Q([_.h(_.oY),_.y("design:type",Object)],Jc.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(_.Odv.YtHostElementBehavior),_.y("design:type",Object)],Jc.prototype,"ytHostElementBehavior",void 0);
_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",Function)],Jc.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Jc.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Jc.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.header.commentsHeaderRenderer.isBackstageContent"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Jc.prototype,"isBackstage",null);_.Q([_.F(),_.y("design:type",Object)],Jc.prototype,"disablePrescanVisibility",void 0);_.Q([_.F(),_.y("design:type",Object)],Jc.prototype,"canScheduleJobs",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Jc.prototype,"engagementPanel",void 0);
_.Q([_.F(),_.y("design:type",Object)],Jc.prototype,"hidePanelButton",void 0);_.Q([_.F(),_.y("design:type",Object)],Jc.prototype,"isWatchGrid",void 0);_.Q([_.F(),_.y("design:type",Object)],Jc.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.Q([_.oN("data.contents"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Jc.prototype,"contentsChanged_",null);
_.Q([_.oN("data.header"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Jc.prototype,"headerChanged_",null);_.Q([_.IN("yt-show-subscribers-only-disclaimer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Jc.prototype,"showSubscribersOnlyDisclaimer_",null);_.Q([_.u({is:"ytd-comments"})],Jc);var gZ=function(){return _.SJ.apply(this,arguments)||this};
_.C(gZ,_.SJ);_.p=gZ.prototype;_.p.bindIf=function(W,B,z){return W?B:z};
_.p.bindIfDefined=function(W,B){return W!==void 0?W:B};
_.p.booleanString=function(W){return(!!W).toString()};
_.p.equals=function(){for(var W=_.nm.apply(0,arguments),B=W[0],z=1;z<W.length;z++)if(B!=W[z])return!1;return!0};
_.p.isGreaterThan=function(W,B){return W>B};
_.p.isLessThan=function(W,B){return W<B};
_.p.logicalAND=function(){for(var W=_.nm.apply(0,arguments),B=!!W[0],z=1;z<W.length;z++)B=B&&!!W[z];return B};
_.p.logicalOR=function(){for(var W=_.nm.apply(0,arguments),B=!!W[0],z=1;z<W.length;z++)B=B||!!W[z];return B};
_.p.toBool=function(W){return!!W};
gZ.prototype.toBool=gZ.prototype.toBool;gZ.prototype.logicalOR=gZ.prototype.logicalOR;gZ.prototype.logicalAND=gZ.prototype.logicalAND;gZ.prototype.isLessThan=gZ.prototype.isLessThan;gZ.prototype.isGreaterThan=gZ.prototype.isGreaterThan;gZ.prototype.equals=gZ.prototype.equals;gZ.prototype.booleanString=gZ.prototype.booleanString;gZ.prototype.bindIfDefined=gZ.prototype.bindIfDefined;gZ.prototype.bindIf=gZ.prototype.bindIf;_.Q([_.bP()],gZ);_.CmT=[gZ.prototype];var ImT;var oKT;var tc=function(){return _.S.apply(this,arguments)||this};
_.C(tc,_.S);tc.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
tc.prototype.onBackIconTap_=function(){window.history.back()};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],tc.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],tc.prototype,"data",void 0);_.Q([_.NJ({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],tc);
_.D(tc,"yt-header-with-back-renderer",function(){if(oKT===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;ImT===void 0&&(ImT=document.createElement("template"));var G=ImT;z.call(B,G.content.cloneNode(!0),W.content.firstChild);oKT=W}W=oKT;return W},{mode:2});var h9M;var H9u;var s1=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.C(s1,_.S);_.p=s1.prototype;_.p.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.p.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W,this.setUrl())};
_.p.dataChanged=function(){var W=this;if(this.data){var B=this.setUrl();B&&_.ww({destination:window,iframe:this.iframe,origin:_.Bo7(B.toString()),channelName:"yt-iframe",onMessage:function(z){(z=W.getCommunicationCommand(z.data))&&W.ytComponentBehavior.resolveCommand(z)},
onEstablished:function(){}})}};
_.p.setUrl=function(){if(this.data&&this.data.iframeUrl){var W=_.OE(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(W)return _.WG(this.iframe,W),W}};
_.p.getCommunicationCommand=function(W){var B;if((B=this.data)!=null&&B.onCommunicationCommandsMap){B=this.data.onCommunicationCommandsMap.find(function(Y){return Y.key===W});
if(B==null?0:B.value)return B==null?void 0:B.value;try{var z=TNu(_.aD(W)),G=this.data.onCommunicationCommandsMap.find(function(Y){return Y.key===(z==null?void 0:z.getMethodName())});
if(G==null?0:G.value)return G==null?void 0:G.value}catch(Y){}}};
s1.prototype.dataChanged=s1.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],s1.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],s1.prototype,"actionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],s1.prototype,"data",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],s1.prototype,"isDarkTheme",void 0);_.Q([_.Hf("#iframe"),_.y("design:type",HTMLIFrameElement)],s1.prototype,"iframe",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],s1.prototype,"dataChanged",null);_.Q([_.NJ({is:"yt-iframe-renderer",disableElementRegistration:!0})],s1);
_.D(s1,"yt-iframe-renderer",function(){if(H9u===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;h9M===void 0&&(h9M=document.createElement("template"));var G=h9M;z.call(B,G.content.cloneNode(!0),W.content.firstChild);H9u=W}W=H9u;return W},{mode:2});_.P6=function(W){_.bA.call(this);this.callback=W;this.bezier=new MKd(0,0,.4,0,.2,1,1,1);this.delay=new _.pt(this.next,window,this);this.JSC$16902_animating=!1;_.rH(this,this.delay)};
_.C(_.P6,_.bA);_.P6.prototype.isAnimating=function(){return this.JSC$16902_animating};
_.P6.prototype.start=function(W,B,z){this.config={from:W,to:B,duration:z,startTime:(0,_.Yb)()};this.JSC$16902_animating=!0;this.next()};
_.P6.prototype.stop=function(){this.delay.stop();this.JSC$16902_animating=!1;this.config=void 0};
_.P6.prototype.next=function(){if(this.config){var W=this.config,B=W.from,z=W.to,G=W.duration;W=W.startTime;var Y=(0,_.Yb)()-W;W=this.bezier;G=RqM(W,Y/G);if(G==0)W=W.y0;else if(G==1)W=W.y3;else{Y=Kf(W.y0,W.y1,G);var d=Kf(W.y1,W.y2,G);W=Kf(W.y2,W.y3,G);Y=Kf(Y,d,G);d=Kf(d,W,G);W=Kf(Y,d,G)}W=_.eT(W,0,1);this.callback(B+(z-B)*W);W<1?this.delay.start():this.JSC$16902_animating=!1}};_.ZX=new _.t1("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var FyH={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},b9M=function(W,B,z,G){_.bA.call(this);this.JSC$16913_miniAppId=W;this.localReleaseId=B;this.derivedDeviceInterface=z;this.isForeground=G;this.JSC$16913_playNonceResolver=new _.sl;this.playPingTimerId=NaN;this.playPingIntervalMs=_.iO("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.iO("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.r("enable_displaying_ppn");this.JSC$16913_miniAppClientDataProvider=_.dO().resolve(_.ZX);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;SSH(this);var Y=setTimeout(function(){_.Oc(new _.oX("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16913_playNonceResolver.promise.then(function(){clearTimeout(Y)})};
_.C(b9M,_.bA);var fmR=function(W,B){W.JSC$16913_playNonceResolver.resolve(B!=null?B:Kt(8));W.enableDisplayingPpn&&jy6(W).then(function(z){W.JSC$16913_miniAppClientDataProvider.clientData.set("post_play_nonce",z)})},jy6=function(W){return _.T(function(B){return B.nextAddress==1?B.yield(W.JSC$16913_playNonceResolver.promise,2):B.return(B.yieldResult)})},SSH=function(W){var B,z;
_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$16913_playNonceResolver.promise,2);B=G.yieldResult;z={miniAppInfo:{externalPostId:W.JSC$16913_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:B,derivedDeviceInterface:W.derivedDeviceInterface}};_.Ki(z);_.HG(G)})},Xud=function(W){W.state!==0?_.Oc(new _.oX("[MiniAppPlayLogger] recordPlayStart failed with state "+FyH[W.state])):(W.state=1,rZ(W,"ma_cl"),kp(W,"PLAY_EVENT_TYPE_PLAY_START"),O9d(W))},KyU=function(W){W.isForeground=!1;
kp(W,"PLAY_EVENT_TYPE_PLAY_PAUSE")},ujR=function(W){W.state!==1&&W.state!==2?_.Oc(new _.oX("[MiniAppPlayLogger] recordPlayEnd failed with state "+FyH[W.state])):(W.state=3,window.clearInterval(W.playPingTimerId),W.playPingTimerId=NaN,hxX(),kp(W,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},e97=function(W,B){W.state===2&&W.gameReady&&(W.firstClickRecorded?Date.now()-W.clickRecordedMs<W.playClickIntervalMs||(W.clickRecordedMs=Date.now(),kp(W,"PLAY_EVENT_TYPE_PLAY_CLICK")):B&&(rZ(W,"ma_fua"),kp(W,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),W.firstClickRecorded=!0,W.clickRecordedMs=Date.now()))};
b9M.prototype.logError=function(W){var B=this,z;_.T(function(G){if(G.nextAddress==1)return W.metadata.externalPostId=B.JSC$16913_miniAppId,z=W.metadata,G.yield(Promise.race([B.JSC$16913_playNonceResolver.promise,new Promise(function(Y){setTimeout(function(){Y("")},3E4)})]),2);
z.postPlayNonce=G.yieldResult;W.metadata.localReleaseId=B.localReleaseId;W.loggingError.level="WARNING";_.jy(W.loggingError,W.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:W.metadata});_.HG(G)})};
var mtR=function(W,B,z,G){var Y,d,E,v,c,J;_.T(function(g){if(g.nextAddress==1)return g.yield(W.JSC$16913_playNonceResolver.promise,2);Y=g.yieldResult;d={externalPostId:W.JSC$16913_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:Y,sdkVersion:z,api:B};G!==void 0&&(d.networkRequestsMeasurement={networkRequests:_.cC(G,1),cachedRequests:_.cC(G,2),transferredBytes:_.cC(G,3)},(E=G)==null?0:_.IO(E,sz,6))&&(d.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((v=_.AD(G,
sz,6))==null?void 0:em(v,1))||"0",cacheHits:((c=_.AD(G,sz,6))==null?void 0:em(c,2))||"0",cachedBytes:((J=_.AD(G,sz,6))==null?void 0:em(J,3))||"0"});_.Sy("miniAppSdkUsage",d);_.HG(g)})},Dtu=function(W,B,z){var G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e;
_.T(function(a){if(a.nextAddress==1)return a.yield(W.JSC$16913_playNonceResolver.promise,2);G=a.yieldResult;Y={externalPostId:W.JSC$16913_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:G,sdkVersion:z,measurementWindow:{startTimestampMs:String(OL(B,1)),endTimestampMs:String(OL(B,2))},frameRate:{averageFrameTimeDeltaMs:XP(B,3),averageFrameIdleTimeMs:XP(B,4)}};_.IO(B,Pt,5)&&(Y.networkRequests={networkRequests:(d=oZ(B))==null?void 0:_.cC(d,1),cachedRequests:(E=oZ(B))==null?void 0:_.cC(E,2),transferredBytes:(v=
oZ(B))==null?void 0:_.cC(v,3),sameOriginStatusCodeToCounts:xtD((c=oZ(B))==null?void 0:F08(c,4)),crossOriginStatusCodeToCounts:xtD((J=oZ(B))==null?void 0:F08(J,5))},(g=oZ(B))==null?0:_.IO(g,sz,6))&&(Y.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((t=oZ(B))==null?void 0:(P=_.AD(t,sz,6))==null?void 0:em(P,1))||"0",cacheHits:((Z=oZ(B))==null?void 0:(l=_.AD(Z,sz,6))==null?void 0:em(l,2))||"0",cachedBytes:((b=oZ(B))==null?void 0:(O=_.AD(b,sz,6))==null?void 0:em(O,3))||"0"});_.IO(B,
coQ,7)&&(Y.gameCapture={averageFrameTimeDeltaMs:(K=_.AD(B,coQ,7))==null?void 0:XP(K,1),averageFrameIdleTimeMs:(e=_.AD(B,coQ,7))==null?void 0:XP(e,2)});_.Sy("miniAppPerformanceMetrics",Y);_.HG(a)})},QyR=function(W,B){var z,G;
return _.T(function(Y){if(Y.nextAddress==1)return Y.yield(W.JSC$16913_playNonceResolver.promise,2);z=Y.yieldResult;G={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:W.JSC$16913_miniAppId,postPlayNonce:z,miniAppReleaseId:W.localReleaseId},derivedDeviceInterface:W.derivedDeviceInterface,adTriggerType:B,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.Sy("miniAppAdEvent",G);_.HG(Y)})};
b9M.prototype.disposeInternal=function(){_.bA.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var kp=function(W,B,z,G){z=z===void 0?{}:z;G=G===void 0?!1:G;var Y,d,E,v;_.T(function(c){if(c.nextAddress==1)return Y=W.isForeground,d=W.beforeReady,c.yield(W.JSC$16913_playNonceResolver.promise,2);E=c.yieldResult;v={externalPostId:W.JSC$16913_miniAppId,localReleaseId:W.localReleaseId,derivedDeviceInterface:W.derivedDeviceInterface,postPlayNonce:E,type:B};z.sequenceGroup=E;v.playState=d?"PLAY_STATE_NOT_READY":Y?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Sy("miniAppPlayEvent",v,
z);G&&_.bp();_.HG(c)})},rZ=function(W,B){var z;
_.T(function(G){if(G.nextAddress==1)return z=(0,_.Yb)(),G.yield(W.JSC$16913_playNonceResolver.promise,2);_.mj(B,z);_.HG(G)})},O9d=function(W){isNaN(W.playPingTimerId)&&(W.playPingTimerId=_.VW(function(){W.state!==1&&W.state!==2?_.Oc(new _.oX("[MiniAppPlayLogger] reportPlayPing failed with state "+FyH[W.state])):kp(W,"PLAY_EVENT_TYPE_PLAY_PING")},W.playPingIntervalMs))},xtD=function(W){return Array.from(W.entries()).map(function(B){var z=_.A(B);
B=z.next().value;z=z.next().value;return{key:B,value:z}})};var yFQ=function(){},qSF=function(W,B){W.showMiniAppAdCommand=B.showMiniAppAdCommand;
W.isEmbeddedInWebview=B.isEmbeddedInWebview;W.playLogger=B.playLogger},N_H=function(W,B){var z;
return _.T(function(G){if(G.nextAddress==1){if(!W.showMiniAppAdCommand||!W.isEmbeddedInWebview)return G.return(nKT(W,B));W.adResolver=new _.sl;var Y=new Mm;z=_.i2(Y,3,B);xl(W.showMiniAppAdCommand,y1H(z));return G.yield(W.adResolver.promise,2)}return G.return(G.yieldResult)})};
yFQ.prototype.onAdFinished=function(W){W=ysR(W);var B;(B=this.adResolver)==null||B.resolve(W)};
var nKT=function(W,B){var z;return _.T(function(G){if(G.nextAddress==1)G=G.yield((z=W.playLogger)==null?void 0:QyR(z,GAr(B)),2);else{var Y=G.return;var d=new QOR;d=_.i2(d,1,2);G=Y.call(G,d)}return G})};var $tD=new _.t1("INNERTUBE_MANAGER_TOKEN");var LyM=function(){this.callbacks={}};
LyM.prototype.initialize=function(W){var B=this;this.callbacks=W;window.youtubewebview?window.youtubewebview.onmessage=function(z){UtD(B,z)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(z){UtD(B,z)})};
var UtD=function(W,B){if(B.data)try{var z=TNu(B.data);if(_.l9(_.CV(z,1))!=null){var G=u57(_.KV(z,2));switch(z.getMethodName()){case "yt-mini-app-load-audio-state":var Y,d;(d=(Y=W.callbacks).onAudioStateLoaded)==null||d.call(Y,_.fV(G,ZD(G,Uz,1)));break;case "yt-mute-mini-app":var E,v;(v=(E=W.callbacks).onMuteMiniApp)==null||v.call(E);break;case "yt-unmute-mini-app":var c,J;(J=(c=W.callbacks).onUnmuteMiniApp)==null||J.call(c);break;case "yt-playable-exit":var g,t;(t=(g=W.callbacks).onExit)==null||t.call(g);
break;case "yt-post-play-nonce":var P,Z;(Z=(P=W.callbacks).onPostPlayNonceReceived)==null||Z.call(P,mw(G,2,Uz));break;case "yt-confirm-exit-mini-app":var l,b;(b=(l=W.callbacks).confirmExitMiniApp)==null||b.call(l);break;case "yt-confirm-exit-mini-app-edu":var O,K;(K=(O=W.callbacks).confirmExitMiniAppEdu)==null||K.call(O);break;case "yt-benchmarking-response":var e,a;(a=(e=W.callbacks).onNativeBenchmarkingMessageReceived)==null||a.call(e,mw(G,2,Uz));break;case "yt-mini-app-load-3p-consent-state":var q,
n;(n=(q=W.callbacks).multiplayer3pAckStateLoaded)==null||n.call(q,_.fV(G,ZD(G,Uz,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var L,By;(By=(L=W.callbacks).exitMiniAppSeenStateLoaded)==null||By.call(L,_.fV(G,ZD(G,Uz,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var gk,vy;(vy=(gk=W.callbacks).onNavigateToNewMiniApp)==null||vy.call(gk);break;case "yt-game-data-available":var lx,Zv;(Zv=(lx=W.callbacks).onGameDataAvailable)==null||Zv.call(lx,mw(G,2,Uz));break;case "yt-pause-mini-app":var VR,
ux;(ux=(VR=W.callbacks).onPauseMiniApp)==null||ux.call(VR);break;case "yt-resume-mini-app":var X2,WQ;(WQ=(X2=W.callbacks).onResumeMiniApp)==null||WQ.call(X2);break;case "yt-playable-ad-finished":var XH,wU;(wU=(XH=W.callbacks).onAdFinished)==null||wU.call(XH,mw(G,2,Uz))}}else _.Oc(Error("Yh"))}catch(RD){_.jy(Error("Zh"))}else _.Oc(Error("$h"))};var dxR=function(W){this.rpcErrorCode=W};var lD=function(W,B,z){this.intervalMs=W;this.apiFunc=B;this.type=z;this.schedulerReady=!0};
lD.prototype.call=function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1){if(B.type!==1&&W===B.cachedValue)return G.return();B.pendingApiRequestResolver||(B.pendingApiRequestResolver=new _.sl);z=B.pendingApiRequestResolver.promise;B.cachedValue=W;return G.yield(MzM(B),2)}return G.return(z)})};
lD.prototype.flush=function(W){W=W===void 0?!1:W;var B=this;return _.T(function(z){return B.cachedValue===void 0?z.return():z.yield(B.apiFunc(B.cachedValue,W),0)})};
var MzM=function(W){var B,z,G;return _.T(function(Y){switch(Y.nextAddress){case 1:if(!W.schedulerReady||!W.pendingApiRequestResolver)return Y.return();W.schedulerReady=!1;B=W.pendingApiRequestResolver;W.pendingApiRequestResolver=void 0;_.kA(Y,2);if(W.cachedValue===void 0){Y.jumpTo(4);break}return Y.yield(W.apiFunc(W.cachedValue),5);case 5:z=Y.yieldResult,B.resolve(z);case 4:_.Nn(Y,3);break;case 2:G=_.h6(Y),B.reject(G);case 3:setTimeout(function(){return _.T(function(d){W.schedulerReady=!0;return d.yield(MzM(W),
0)})},W.intervalMs),_.HG(Y)}})};var ieR=window.location.origin+"/miniapp_cloudsaves",pxR=[400,401],amU=_.iO("cloud_save_game_data_rate_limit_ms",3E3),Bmd=function(W){var B=this;this.JSC$16957_miniAppId=W;this.loadAttempts=0;this.cloudSaveIntervalMs=amU;this.initialDownloadDataSucceeded=!1;this.JSC$16957_playNonceResolver=new _.sl;this.scottyUploadRateLimiter=new lD(this.cloudSaveIntervalMs,function(z,G){return R97(B,z,G)},2);
this.downloadDataPromise=WcU(this);this.downloadDataPromise.then(function(){B.initialDownloadDataSucceeded=!0}).catch(function(){})},z0T=function(W,B){B.then(function(z){return W.JSC$16957_playNonceResolver.resolve(z)})},G0d=function(W){return _.T(function(B){return W.cachedData===void 0?B.return(W.downloadDataPromise):B.return(W.cachedData)})},YNQ=function(W,B){return _.T(function(z){W.cachedData=B;
if(!W.initialDownloadDataSucceeded)throw Error("ai");return z.yield(W.scottyUploadRateLimiter.call(B),0)})},dq7=function(){return new Promise(function(W){setTimeout(W,1E3,"")})},pPd=function(W,B){var z,G;
return _.T(function(Y){if(Y.nextAddress==1)return z=W.JSC$16957_miniAppId,Y.yield(Promise.race([W.JSC$16957_playNonceResolver.promise,dq7()]),2);G={"X-YouTube-MiniAppId":z,"X-YouTube-PostPlayNonce":Y.yieldResult};"DELEGATED_SESSION_ID"in _.Xq&&RYX(B,G);return Y.return(G)})},R97=function(W,B,z){z=z===void 0?!1:z;
return _.T(function(G){return Y$D()?_.r("enable_cloud_save_error_popup_after_retry")?G.return(new Promise(function(Y,d){var E,v,c,J,g;return _.T(function(t){switch(t.nextAddress){case 1:E=0,v=!0,J=c=null;case 2:if(!(v&&E++<2)){t.jumpTo(4);break}_.kA(t,5);return t.yield(AJM(W,B,z),7);case 7:c=t.yieldResult;v=c.ok?!1:!pxR.includes(c.status);_.Nn(t,2);break;case 5:J=g=_.h6(t);v=AR8(J);t.jumpTo(2);break;case 4:c?c.ok?(C0(W,amU),Y()):(C0(W,W.cloudSaveIntervalMs*2),d(Error("bi`"+String(c.status),{cause:{rpcErrorCode:c.status}}))):
(C0(W,W.cloudSaveIntervalMs*2),d(J||Error("ci"))),_.HG(t)}})})):G.return(new Promise(function(Y,d){var E,v;
return _.T(function(c){if(c.nextAddress==1){if(W.JSC$16957_miniAppId==="")return d(Error("di")),c.return();_.kA(c,2);return c.yield(AJM(W,B,z),4)}if(c.nextAddress!=2)return E=c.yieldResult,E.ok?(C0(W,amU),Y()):(C0(W,W.cloudSaveIntervalMs*2),d(Error("bi`"+String(E.status),{cause:{rpcErrorCode:E.status}}))),_.Nn(c,0);v=_.h6(c);C0(W,W.cloudSaveIntervalMs*2);d(v);_.HG(c)})})):G.return()})},AJM=function(W,B,z){z=z===void 0?!1:z;
var G,Y,d;return _.T(function(E){if(E.nextAddress==1)return G=_.Ob((new TextEncoder).encode(B)),Y=EVT(),E.yield(pPd(W,Y),2);d=E.yieldResult;return E.return(fetch(Y,{method:"POST",body:new Blob([G]),headers:d,keepalive:z}))})},WcU=function(W){var B,z;
return _.T(function(G){if(G.nextAddress==1){if(!Y$D())return G.return("");if(W.JSC$16957_miniAppId==="")throw Error("di");if(W.loadAttempts>2)return G.return(W.downloadDataPromise);_.kA(G,2);return G.yield(iCU(W),4)}if(G.nextAddress!=2)return B=G.yieldResult,G.return(B);z=_.h6(G);if(AR8(z)&&++W.loadAttempts<2)return G.return(WcU(W));throw z;})},iCU=function(W){var B,z,G,Y,d;
return _.T(function(E){switch(E.nextAddress){case 1:return _.kA(E,2),B=EVT(),E.yield(pPd(W,B),4);case 4:return z=E.yieldResult,E.yield(fetch(B,{method:"GET",headers:z}),5);case 5:return G=E.yieldResult,G.ok?E.yield(G.text(),6):E.return(Promise.reject(Error("ei`"+String(G.status),{cause:new dxR(G.status)})));case 6:return Y=E.yieldResult,E.return((new TextDecoder).decode(_.aD(Y)));case 2:return d=_.h6(E),E.return(Promise.reject(d))}})},C0=function(W,B){W.cloudSaveIntervalMs=B;
W.scottyUploadRateLimiter.intervalMs=W.cloudSaveIntervalMs};
Bmd.prototype.flush=function(){var W=this;return _.T(function(B){return W.initialDownloadDataSucceeded?B.yield(W.scottyUploadRateLimiter.flush(!0),0):B.return()})};var E96=C6(lJ(1),rE(1)),TmU=C6(lJ(1),rE(3)),I2=function(W){this.callbacks=W};
_.p=I2.prototype;_.p.onAudioToggled=function(W,B){(B===void 0||B)&&_.Da("yt-mini-app-is-audio-enabled",W,2592E3)};
_.p.onPause=function(){this.onAudioToggled(!1,!1)};
_.p.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.p.returnNativeBenchmarkingMessage=function(){};
_.p.sendGameData=function(){};
_.p.sendStartGameFrameCapture=function(){};
var T9X=function(W,B,z){this.callbacks=W;var G=this;this.sdkVersion=new _.sl;this.channel=new dRd(_.ww({destination:window,iframe:B,origin:(new URL(z.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var Y=o2;var d=lJ(5);var E=new RZH;E=_.DJ(E,1,1E4);d=_.hZ(d,4,Ao7,E);Y(G,d);G.onAudioToggled(G.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){G.sdkVersion.resolve("")},1E4)};
_.C(T9X,I2);_.p=T9X.prototype;_.p.onAudioToggled=function(W,B){I2.prototype.onAudioToggled.call(this,W,B===void 0?!0:B);B=o2;var z=lJ(2),G=new Mmu;W=_.gH(G,1,W);W=_.hZ(z,3,Ao7,W);B(this,W)};
_.p.onPause=function(){I2.prototype.onPause.call(this);o2(this,lJ(3))};
_.p.onResume=function(){I2.prototype.onResume.call(this);o2(this,lJ(4))};
_.p.returnNativeBenchmarkingMessage=function(W){var B=o2,z=lJ(6);var G=rE(_.IO(W,pa,1)?1:2);W=_.IO(W,pa,1)?W:null;G=_.hZ(G,5,kN,W);B(this,C6(z,G))};
_.p.sendGameData=function(W){var B=o2,z=lJ(7);W=_.hZ(z,5,Ao7,W);B(this,W)};
_.p.sendStartGameFrameCapture=function(){o2(this,lJ(9))};
var hc=function(W,B,z){var G,Y,d;return _.T(function(E){if(E.nextAddress==1)return G=W.callbacks,Y=G.onSdkCalled,d=B,E.yield(W.sdkVersion.promise,2);Y.call(G,d,E.yieldResult,z);_.HG(E)})};
T9X.prototype.onMessage=function(){var W=this;return iu6(hL,function(B){var z,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a,q,n,L,By,gk,vy,lx,Zv,VR,ux,X2,WQ,XH,wU,RD,sF,Vd,bR,Sf,UF,pu,BQ,Z9,cn,rU,Gq,Td,Bn;return _.T(function(T6){switch(T6.nextAddress){case 1:if(!gi7(B.data))return _.Oc(Error("fi")),T6.return();z=_.u0(B.data,1);_.r("enable_iframe_message_get_type_via_fields")&&(G=B.data,z=Y=_.u0(G,1));switch(z){case 8:if(B.data.hasMetadata()){var $M=W.sdkVersion,Pn=$M.resolve;var FH=B.data.getMetadata();FH=_.KV(FH,
1);Pn.call($M,FH);clearTimeout(W.sdkVersionTimeoutId)}break;case 6:return T6.jumpTo(2);case 16:if(!_.oO(B.data,TwT,14,Ht))return T6.return();d=_.xT(B.data,TwT,14,Ht);(v=(E=W.callbacks).onGameFrameReceived)==null||v.call(E,d);return T6.return();case 17:if(!_.oO(B.data,EiQ,15,Ht))return T6.return();(J=(c=W.callbacks).onGameAudioReceived)==null||J.call(c,_.xT(B.data,EiQ,15,Ht));return T6.return();case 1:if($M=_.xT(B.data,zCF,2,Ht))switch(_.u0($M,1)){case 1:W.callbacks.onFirstFrameReady();if(_.r("enable_network_request_logging_on_game_events")&&
_.IO($M,Pt,4)){hc(W,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.AD($M,Pt,4));break}hc(W,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(FH=(Pn=W.callbacks).onGameReady)==null||FH.call(Pn);if(_.r("enable_network_request_logging_on_game_events")&&_.IO($M,Pt,4)){hc(W,"MINI_APP_SDK_API_GAME_READY",_.AD($M,Pt,4));break}hc(W,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.oO($M,ZL,3,GIu))W.callbacks.onResourceLoaded(_.xT($M,ZL,3,GIu))}return T6.return();case 3:return T6.jumpTo(3);case 4:return T6.jumpTo(4);
case 2:return T6.jumpTo(5);case 9:return T6.jumpTo(6);case 10:return W.callbacks.onClick(),T6.return();case 5:return T6.jumpTo(7);case 11:if(!_.oO(B.data,gE,9,Ht))return T6.return();g=_.xT(B.data,gE,9,Ht);(P=(t=W.callbacks).onBenchmarkingMessageReceived)==null||P.call(t,g);$M=B.reply;Pn=lJ(1);FH=rE(1);var C7=new gE;var tK=new Uint8Array(lmQ(g,ZD(g,nTF,6))|0);C7=JX(C7,5,nTF,_.HQ(tK,!1));FH=_.hZ(FH,5,kN,C7);$M.call(B,C6(Pn,FH));return T6.return();case 12:return T6.jumpTo(8);case 13:return T6.jumpTo(9);
case 15:if(!_.r("enable_open_yt_content"))return B.reply(TmU),T6.return();if(!_.oO(B.data,ifu,12,Ht))return B.reply(C6(lJ(1),rE(2))),T6.return();$M=_.xT(B.data,ifu,12,Ht);Z=_.KV($M,1);W.callbacks.onOpenYTContent(Z);B.reply(E96);return T6.return();case 14:return T6.jumpTo(10);default:return T6.return()}T6.jumpTo(0);break;case 2:if(!_.oO(B.data,IZ,5,Ht))return T6.return();Pn=B.data;$M=ZD(Pn,Ht,5);Pn=Pn.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l=fix(Pn,Pn[_.AM]|0,IZ,$M)||IZ[XQx]||(IZ[XQx]=
K40(IZ));$M=_.TP(l,tL,1,_.vC());b=_.A($M);O=b.next();case 12:if(O.done){T6.jumpTo(14);break}K=O.value;e=new _.oX;e.level=_.u0(K,2)===1?"WARNING":"ERROR";a=cRT(K.getSource());return T6.yield(W.sdkVersion.promise,15);case 15:q={source:a,sdkVersion:T6.yieldResult};_.zq(_.CV(K,6))!=null?(e.message=K.getMessage(),e.stack=_.KV(K,5),q.sdkErrorType=wxy(_.u0(K,6)),_.zq(_.CV(K,7))!=null&&(q.sdkApi=V_t(_.u0(K,7)))):e.stack=void 0;L=n=void 0;(L=(n=W.callbacks).onError)==null||L.call(n,{loggingError:e,metadata:q});
O=b.next();T6.jumpTo(12);break;case 14:return T6.return();case 3:return _.kA(T6,16),$M=T6.yield,Pn=W.callbacks,FH=Pn.onSave,C7=_.xT(B.data,aJF,4,Ht),C7=_.KV(C7,1),$M.call(T6,FH.call(Pn,C7),18);case 18:B.reply(E96);_.Nn(T6,17);break;case 16:return By=_.h6(T6),gk=DK,vy=By,lx=W.callbacks,Zv="MINI_APP_SDK_API_SAVE_DATA",T6.yield(W.sdkVersion.promise,19);case 19:gk(vy,lx,Zv,T6.yieldResult),B.reply(TmU);case 17:return T6.yield(hc(W,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return T6.return();case 4:return _.kA(T6,
21),T6.yield(W.callbacks.onLoad(),23);case 23:VR=T6.yieldResult;$M=B.reply;Pn=lJ(1);FH=rE(1);C7=new aJF;C7=_.f3(C7,1,VR);FH=_.hZ(FH,3,kN,C7);$M.call(B,C6(Pn,FH));_.Nn(T6,22);break;case 21:return ux=_.h6(T6),X2=DK,WQ=ux,XH=W.callbacks,wU="MINI_APP_SDK_API_LOAD_DATA",T6.yield(W.sdkVersion.promise,24);case 24:X2(WQ,XH,wU,T6.yieldResult),B.reply(TmU);case 22:return T6.yield(hc(W,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return T6.return();case 5:_.kA(T6,26);W.callbacks.onSendHighScore(xx(_.xT(B.data,
V74,3,Ht).getValue()));B.reply(C6(lJ(1),rE(1)));_.Nn(T6,27);break;case 26:return RD=_.h6(T6),sF=DK,Vd=RD,bR=W.callbacks,Sf="MINI_APP_SDK_API_SEND_SCORE",T6.yield(W.sdkVersion.promise,28);case 28:sF(Vd,bR,Sf,T6.yieldResult),B.reply(TmU);case 27:return T6.yield(hc(W,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return T6.return();case 6:if(!_.oO(B.data,Jo9,8,Ht)){T6.jumpTo(30);break}$M=T6.yield;Pn=_.xT(B.data,Jo9,8,Ht);Pn=_.u0(Pn,1);return $M.call(T6,hc(W,V_t(Pn)),30);case 30:return T6.return();case 7:return $M=
B.reply,Pn=lJ(1),FH=rE(1),C7=W.callbacks.getLanguage(),FH=JX(FH,4,kN,ri(C7)),$M.call(B,C6(Pn,FH)),T6.yield(hc(W,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return T6.return();case 8:if(!_.oO(B.data,wqR,10,Ht))return T6.return();UF=_.xT(B.data,wqR,10,Ht);pu=W.callbacks;BQ=pu.onSdkPerformanceUpdate;return T6.yield(W.sdkVersion.promise,33);case 33:return BQ.call(pu,UF,T6.yieldResult),T6.return();case 9:$M=B.data;Pn=ZD($M,Ht,11);if(_.l9(_.CV($M,Pn))==null)return B.reply(C6(lJ(1),rE(2))),T6.return();
Z9=mw(B.data,11,Ht);W.callbacks.onShareInviteCode(Z9);B.reply(E96);return T6.yield(hc(W,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return T6.return();case 10:if(_.oO(B.data,UiF,13,Ht)){T6.jumpTo(35);break}return T6.yield(W.callbacks.onShowMiniAppAd(2),36);case 36:return cn=T6.yieldResult,B.reply(C6(lJ(1),dD6(cn))),T6.yield(hc(W,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return T6.return();case 35:$M=_.xT(B.data,UiF,13,Ht);a:switch(_.u0($M,1)){case 1:$M={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:$M={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:$M={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}rU=$M;Gq=rU.adType;Td=rU.sdkApi;$M=T6.yield;Pn=W.callbacks;FH=Pn.onShowMiniAppAd;C7=_.xT(B.data,UiF,13,Ht);C7=_.KV(C7,2);return $M.call(T6,FH.call(Pn,Gq,C7||void 0),38);case 38:return Bn=T6.yieldResult,B.reply(C6(lJ(1),dD6(Bn))),T6.yield(hc(W,Td),39);case 39:return T6.return()}})})};
var o2=function(W,B){_.T(function(z){W.channel.send(B);_.HG(z)})},QQ=function(W,B,z){this.callbacks=W;
var G=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;W=nhQ(B,(new URL(z.toString())).origin);this.gameSnacks=new r0M(W);this.gameSnacks.page.onReady(function(){G.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){G.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var Y,d;(d=(Y=G.callbacks).onGameReady)==null||d.call(Y)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(Y,d){try{G.callbacks.onSendHighScore(d)}catch(E){DK(E,G.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(Y,d){var E;return _.T(function(v){if(v.nextAddress==1)return _.kA(v,2),v.yield(G.callbacks.onSave(G.decoder.decode(d)),4);if(v.nextAddress!=2)return _.Nn(v,0);E=_.h6(v);DK(E,G.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return v.return()})});
this.gameSnacks.storage.onLoad(function(){var Y,d;return _.T(function(E){if(E.nextAddress==1)return _.kA(E,2),E.yield(G.callbacks.onLoad(),4);if(E.nextAddress!=2)return Y=E.yieldResult,E.return(G.encoder.encode(Y));d=_.h6(E);DK(d,G.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return E.return(G.encoder.encode(""))})});
this.gameSnacks.init()};
_.C(QQ,I2);QQ.prototype.onAudioToggled=function(W,B){I2.prototype.onAudioToggled.call(this,W,B===void 0?!0:B);var z;(z=this.gameSnacks)==null||z.audio.update(W)};
QQ.prototype.onPause=function(){I2.prototype.onPause.call(this);var W;(W=this.gameSnacks)==null||W.game.pause()};
QQ.prototype.onResume=function(){I2.prototype.onResume.call(this);var W;(W=this.gameSnacks)==null||W.game.resume()};var v9M=JRv,cJQ=_.m(function(W){var B=W.data;var z=W.loadingProgress;var G=W.forPaused;W=_.A(_.g4("",void 0,"LYYTdd"));var Y=W.next().value,d=W.next().value;W=_.A(_.g4(!1,void 0,"K0waae"));var E=W.next().value,v=W.next().value,c=[],J=function(){return"transform: scaleX("+(_.XA(z)||0)+")"},g=null,t=function(){return B()&&g!==null&&g!==void 0?g:g=B().showAnniversaryAnimation?6:v9M()};
_.ja(function(){var b;if(B().timeOutMessages&&((b=B().timeOutMessages)==null?0:b.length)){g=null;b=_.A(c);for(var O=b.next();!O.done;O=b.next())clearTimeout(O.value);c.length=0;gV2(B().timeOutMessages,c,d,v)}},"BNu9j");
var P=function(){return!!B().persistentErrorMessageTitle},Z=function(){return z!==void 0},l=function(){return B().title};
return _.w("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.w("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.w("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.w("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var b,O=(b=B().backgroundImage)==null?void 0:b.sources,K;return(O==null?0:O.length)?"background-image: url("+((K=O[0])==null?void 0:K.url)+")":""}}),_.w("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.w(_.V,{cond:function(){return!P()&&!(G==null?0:G())},
then:function(){var b={};return _.w("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.w("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.w(_.q8,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+t()},
data:function(){var O="loading_animation_"+t();return{animationConfig:{name:O,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+O+".json",loop:!0,autoplay:!0}}}})),_.w("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.w(_.V,{cond:l,
then:function(){return _.w("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},l)}}),_.w("p",{class:_.kG("miniAppSplashScreenViewModelTimeoutMessage",(b.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return E()},b)),
"aria-live":"polite"},Y),_.w(_.V,{cond:Z,then:function(){return _.w("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.w("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:J}))}})))}}),_.w(_.V,{cond:P,
then:function(){return _.w("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.w("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return B().persistentErrorMessageTitle}),_.w(_.V,{cond:function(){return!!B().persistentErrorMessageDescription},
then:function(){return _.w("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return B().persistentErrorMessageDescription})}}))}}),_.w(_.V,{cond:G,
then:function(){return _.w("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.w("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.w("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},l))}})))},"we");var wP9=new _.t1("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var VPR=zW;zW=function(W){function B(z){if(z){var G,Y;(G=z.__spec)==null||(Y=G.didUnmount)==null||Y.call(G);for(G=0;G<z.childNodes.length;G++)B(z.childNodes[G])}}
VPR==null||VPR(W);xB(function(){for(var z=0;z<W.length;z++)B(W[z])})};var JJ9=_.m(function(W){var B=W.data;var z=W.score;var G=W.formattedScore;var Y=W.onScoreChanged;var d=W.isEmbeddedInWebview;var E=_.ag("yt-mini-app-score-button-view-model"),v=function(){var Z;return _.k(B==null?void 0:(Z=B())==null?void 0:Z.buttonViewModel,_.wP)},c=function(){var Z;
return(z==null?void 0:z())||Number(B==null?void 0:(Z=B())==null?void 0:Z.lastScore)||0},J=function(){var Z;
return(G==null?void 0:G())||((Z=v())==null?void 0:Z.title)||""},g,t=1;
if(W=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))W=Number(W),t=isNaN(W)?1:W/100;_.ja(function(){Y==null||Y(c());var Z;var l=_.$B((Z=v())==null?void 0:Z.onTap);if(l){Z=_.k(l,IsU);var b,O,K;Z=_.k(Z==null?void 0:(b=Z.panelLoadingStrategy)==null?void 0:(O=b.inlineContent)==null?void 0:(K=O.dialogViewModel)==null?void 0:K.customContent,qT4)}else Z=void 0;if(b=Z)b.score=J()},"Aekez");
W=_.lF(function(){var Z,l,b=B==null?void 0:(Z=B())==null?void 0:(l=Z.loggingDirectives)==null?void 0:l.trackingParams;b&&_.x3(_.dO().resolve(_.Gz),b);return!1});
_.jD(function(){if(E.value){var Z=E.value.querySelector("button"),l=v();Z&&l&&t_2(Z,l);zp("yt-share-playable-with-high-score",function(){var b=c().toString(),O=B==null?void 0:B().onShareHighScoreCommand,K=B==null?void 0:B().highScoreShareClientParamIdentifier,e=d==null?void 0:d();O&&(e?(K=new iI7,b=_.f3(K,2,b),xl(O,b.JSC$12372_serializeBinary())):K&&(_.dO().resolve(wP9).clientParams.set(K,{miniAppClientParams:{highScore:b}}),RJD(O,!1)))})}});
var P=function(){var Z=v();Z&&(z==null?0:z())&&Z.accessibilityText&&(Z.accessibilityText=Z.accessibilityText.replace(g,J()));g=J();return{numberValue:c(),numberText:J(),heightPx:36,fontSizeMultiplier:t,shouldAnimate:!(z==null||!z())&&!0}};
return _.w("yt-mini-app-score-button-view-model",{class:function(){var Z={};return _.uj("miniAppScoreButtonViewModelHost",(Z.miniAppScoreButtonViewModelIsVisible=c()!==0,Z))},
el:E,"on:click":W},rDy(!1,function(){return _.w("span",{style:"display:none;"},c)}),_.w(_.Sc,{data:function(){var Z;
return B==null?void 0:(Z=B())==null?void 0:Z.buttonViewModel}},{buttonViewModel:function(Z){return _.w(_.ex,{data:Z.data,
animatedTextProps:P})}}))},"xe");var ZCF=_.m(function(W){var B,z=(B=_.QL("yt-mini-app-is-theater-mode-enabled"))!=null?B:!1,G=_.r("enable_playable_container_save_button"),Y=_.r("enable_play_next_destination_page_in_toolbar");B={};return _.w("ytm-mini-app-top-bar-view-model",null,_.w("div",{class:_.kG("yt-mini-app-top-bar-view-model",(B["yt-mini-app-top-bar-view-model--mobile"]=!1,B["yt-mini-app-top-bar-view-model--desktop"]=!0,B))},_.w("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.w(_.V,{cond:function(){var d;return!!W.data().backButtonEdu&&
!((d=W.isExitMiniAppSeen)==null?0:d.call(W))},
then:function(){return _.w(_.Sc,{data:function(){return W.data().backButtonEdu}},{buttonViewModel:_.ex})},
else:function(){return _.w(_.Sc,{data:function(){return W.data().backButton}},{buttonViewModel:_.ex})}}),_.w(_.V,{cond:function(){return W.data().viewAllButton&&!0},
then:function(){return _.w(_.Sc,{data:function(){return W.data().viewAllButton}},{buttonViewModel:_.ex})}}),_.w(_.V,{cond:function(){return W.data().title&&!0},
then:function(){return _.w("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return W.data().title})}})),_.w("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.w(_.V,{cond:function(){var d;
return(d=W.isDesktopPlayPage)==null?void 0:d.call(W)},
then:function(){return _.w(_.AW,null,_.w(g9M,{highScoreButton:function(){return W.data().highScoreButton},
score:W.score,formattedScore:W.formattedScore,onScoreChanged:W.onScoreChanged,isEmbeddedInWebview:W.isEmbeddedInWebview}),_.w(tPR,{enableSaveButton:function(){return _.XA(G)},
saveButton:function(){return W.data().saveButton},
isSaved:W.isSaved,onSaveToggled:function(){return W.onSaveToggled}}),_.w(smR,{menuButton:function(){return W.data().menuButton}}))},
else:function(){return _.w(_.V,{cond:function(){return!1},
then:function(){return _.w(_.Sc,{data:function(){return W.data().playPageButton}},{buttonViewModel:function(d){return _.w(_.ex,{data:d.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.w(g9M,{highScoreButton:function(){return W.data().highScoreButton},
score:W.score,formattedScore:W.formattedScore,onScoreChanged:W.onScoreChanged,isEmbeddedInWebview:W.isEmbeddedInWebview})}})}})),_.w("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.w(_.Sc,{data:function(){return W.data().muteButton}},{toggleButtonViewModel:function(d){var E=d.data;
return _.w(_.Y1,{data:function(){var v,c;return Object.assign({},E(),{isToggled:(c=(v=W.isAudioEnabled)==null?void 0:v.call(W))!=null?c:!0})},
onToggle:W.onAudioToggled,useOutlinedIcon:!0})}}),_.w(_.Sc,{data:function(){return W.data().theatreModeButton}},{toggleButtonViewModel:function(d){var E=d.data;
return _.w("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.w(_.Y1,{data:function(){return Object.assign({},E(),{isToggled:z})},
useOutlinedIcon:!0}))}}),_.w(P5R,{fullscreenButton:function(){return W.data().fullscreenButton}}),_.w(_.V,{cond:function(){return _.XA(Y)&&W.data().viewAllButton&&!1},
then:function(){return _.w(_.Sc,{data:function(){return W.data().viewAllButton}},{buttonViewModel:_.ex})}}),_.w(_.V,{cond:function(){var d;
return!((d=W.isDesktopPlayPage)==null?0:d.call(W))},
then:function(){return _.w(_.AW,null,_.w(tPR,{enableSaveButton:function(){return _.XA(G)},
saveButton:function(){return W.data().saveButton},
isSaved:W.isSaved,onSaveToggled:function(){return W.onSaveToggled}}),_.w(smR,{menuButton:function(){return W.data().menuButton}}))}}))))},"ye");
ZCF.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var smR=_.m(function(W){return _.w(_.Sc,{data:W.menuButton},{buttonViewModel:_.ex})},"ze"),tPR=_.m(function(W){var B=W.enableSaveButton;
var z=W.saveButton;var G=W.isSaved;var Y=W.onSaveToggled;return _.w(_.V,{cond:function(){return B()&&!(z==null||!z())},
then:function(){return _.w(_.Sc,{data:function(){var d=_.k(z==null?void 0:z(),_.Jw),E;return{toggleButtonViewModel:Object.assign({},d,{isToggled:(E=G==null?void 0:G())!=null?E:!(d==null||!d.isToggled)})}}},{toggleButtonViewModel:function(d){return _.w(_.Y1,{data:d.data,
onToggle:Y})}})}})},"Ae"),g9M=_.m(function(W){var B=W.highScoreButton;
var z=W.score;var G=W.formattedScore;var Y=W.onScoreChanged;var d=W.isEmbeddedInWebview;return _.w(_.Sc,{data:B},{miniAppScoreButtonViewModel:function(E){return _.w(JJ9,{data:E.data,score:z,formattedScore:G,onScoreChanged:Y,isEmbeddedInWebview:d})}})},"Be"),P5R=_.m(function(W){W=W.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.w(_.AW,null):_.w(_.Sc,{data:W},{buttonViewModel:_.ex})},"Ce");_.rJ6=new _.t1("DESKTOP_CURRENT_PAGE");var h0Q=_.m(function(W){var B=W.data;var z=_.r("force_active_time_logging_webview"),G=!1,Y=new LyM,d=void 0,E=void 0,v=_.dO().resolve($tD),c=new yFQ,J=void 0,g=void 0,t=[],P=void 0,Z=void 0,l=!1,b=!1,O=!1,K=!1,e=new _.sl,a=_.dO().resolve(wP9),q=_.dO().resolve(_.ZX),n=_.dO().resolve(_.Y8(nW)),L,By=(L=_.dO().resolve(_.Y8(_.rJ6)))==null?void 0:L.getCurrentPage(),gk=!1,vy=0,lx=function(NR){NR.preventDefault();return NR.returnValue=""},Zv;
W=_.A(_.g4(!((Zv=_.QL("yt-mini-app-is-audio-enabled"))!=null&&!Zv),void 0,"WhYQTd"));var VR=W.next().value,ux=W.next().value,X2;Zv=_.A(_.g4(!((X2=_.QL("exit-mini-app-seen-state"))==null||!X2),void 0,"jxhCJb"));var WQ=Zv.next().value,XH=Zv.next().value;X2=_.A(_.g4(!1,void 0,"MuvDfe"));var wU=X2.next().value,RD=X2.next().value;X2=_.A(_.g4(void 0,void 0,"u9DLoc"));var sF=X2.next().value,Vd=X2.next().value;X2=_.A(_.g4(void 0,void 0,"rykyJb"));var bR=X2.next().value,Sf=X2.next().value;X2=_.A(_.g4(!0,void 0,
"d8FUvf"));var UF=X2.next().value,pu=X2.next().value;X2=_.A(_.g4(!1,void 0,"x9XwUb"));var BQ=X2.next().value,Z9=X2.next().value;X2=_.A(_.g4(!1,void 0,"bcquyc"));var cn=X2.next().value,rU=X2.next().value;X2=_.A(_.g4(void 0,void 0,"FMAC5b"));var Gq=X2.next().value,Td=X2.next().value;X2=_.A(_.g4(0,void 0,"HUGJEb"));var Bn=X2.next().value,T6=X2.next().value,$M=_.LG("mini-app-container-view-model"),Pn=function(){return B().isEmbeddedInWebview},FH=function(){return B().hasPlayNextShelf};
zp("yt-page-type-changed",function(NR){if(_.r("enable_is_mini_app_page_active_bugfix"))NR.detail.newPageSubtype==="mini_app"&&NR.detail.newPageType==="ytd-browse"||!UF()||a3();else if(NR=_.ner()==="mini_app",NR!==UF())if(pu(NR),NR){var Zi;NR=(Zi=B().playableId)==null?void 0:Zi.toString();NR!==void 0&&window.location.href.includes(NR)&&!b&&(K=!0,C7(),ZR.value&&Hc(ZR.value))}else NR||a3()});
zp("yt-action",function(NR){NR.detail.actionName==="yt-engagement-panel-visible-changed"&&NR.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&NR.detail.args[2]==="PAmini_app_panel"&&a3();_.r("enable_is_mini_app_page_active_bugfix")?NR.detail.actionName==="yt-history-load"&&!UF()&&(By==null?0:By.active)?(pu(!0),C7(),ZR.value&&Hc(ZR.value)):NR.detail.actionName==="yt-history-load"&&UF()&&!B().isEmbeddedInWebview&&D9():UF()&&NR.detail.actionName==="yt-history-load"&&(K?K=!1:B().isEmbeddedInWebview||
D9())});
_.fR(function(){tK()});
_.ja(function(){C7()},"bLMzme");
var C7=function(){var NR=B().playableId,Zi=B().localReleaseId,oj=B().derivedDeviceInterface;if(b)_.Oc(new _.oX("[MiniAppContainerViewModel] onEnter was called more than once"));else{b=!0;d=new b9M(NR,Zi,oj,document.visibilityState==="visible");Xud(d);E=new Bmd(NR);k0d(v,NR);qSF(c,{showMiniAppAdCommand:B().showMiniAppAdCommand,isEmbeddedInWebview:B().isEmbeddedInWebview,playLogger:d});ejX()&&(Z=document.body.style.backgroundColor,_.U8(document.body,"background-color","black"));nG();X6();e=new _.sl;
if(B().isEmbeddedInWebview){if(NR=(new URLSearchParams(window.location.search)).get("postPlayNonce"))fmR(d,NR),gk=!0;Y.initialize({onAudioStateLoaded:function(AK){hj(AK)},
onMuteMiniApp:function(){hj(!1)},
onUnmuteMiniApp:function(){hj(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(AK){gk||(fmR(d,AK),gk=!0)},
confirmExitMiniApp:function(){var AK,Jv,UY;return _.T(function(DG){if(DG.nextAddress==1)return B().confirmExitMiniAppCommand?DG.yield(Promise.race([e.promise,Promise.resolve(!1)]),2):DG.return();(AK=DG.yieldResult)?!B().confirmExitMiniAppCommandEdu||(UY=(Jv=WQ)==null?void 0:Jv())!=null&&UY?VY(B().confirmExitMiniAppCommand):(VY(B().confirmExitMiniAppCommandEdu),_.Da("exit-mini-app-seen-state","true",2592E6)):VY(B().closeMiniAppCommand);_.HG(DG)})},
onNativeBenchmarkingMessageReceived:function(AK){AK=$iR(_.atu(AK));if(_.oO(AK,_.eg,3,qLF)){var Jv=_.xT(AK,_.eg,3,qLF),UY=WX2();var DG=xx(UY.getSeconds())-xx(Jv.getSeconds());Jv=_.cC(UY,2)-_.cC(Jv,2);DG<0&&Jv>0?(DG+=1,Jv-=1E9):DG>0&&Jv<0&&(--DG,Jv+=1E9);DG=(new pa).setSeconds(DG);DG=_.Wb(DG,2,_.YY(Jv),0);_.o3(AK,1,DG)}var W2;(W2=g)==null||W2.returnNativeBenchmarkingMessage(AK)},
multiplayer3pAckStateLoaded:function(AK){D9(AK)},
exitMiniAppSeenStateLoaded:function(AK){B().confirmExitMiniAppCommandEdu&&XH(AK)},
onNavigateToNewMiniApp:function(){VY(B().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(AK){AK=new URLSearchParams(AK);var Jv=void 0;AK.has("invite_code")&&(Jv=new Bwu,AK=AK.get("invite_code"),Jv=_.f3(Jv,1,AK));if(AK=Jv){var UY;(UY=g)==null||UY.sendGameData(AK)}},
onPauseMiniApp:function(){G=!0;wi()},
onResumeMiniApp:function(){G=!0;jw()},
onAdFinished:function(AK){c.onAdFinished(AK)}});
B().showMultiplayer3pConsentDialogCommand||e.resolve(!0);VY(B().onContainerReadyCommand)}else fmR(d),e.resolve(!0);z0T(E,jy6(d));jy6(d).then(function(AK){AK={miniAppPlayData:{postPlayNonce:AK}};var Jv,UY=(Jv=B().loggingDirectives)==null?void 0:Jv.trackingParams;UY&&_.SK().stateChanged(UY,AK)});
NR=B().showSignInDialogCommand;!Y$D()&&NR&&(_.Da("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),VY(NR));B().confirmExitMiniAppCommand&&n&&(NR=MCT(B().confirmExitMiniAppCommand))&&(n.customConfirmationCommand=NR)}},tK=function(){Z&&_.U8(document.body,"background-color",Z);
l=!1;P&&P.release();E.flush().catch(function(NR){_.Oc(NR)});
v.flush().catch(function(NR){_.Oc(NR)});
ujR(d);G2();g=void 0;lOD(a)},a3=function(){pu(!1);
tK();RD(!1);Td(void 0);Vd(void 0);Sf(void 0);vy=0;T6(0);b=!1},wi=function(){var NR;
(NR=g)==null||NR.onPause();P&&P.release();E.flush().catch(function(Zi){_.Oc(Zi)});
v.flush().catch(function(Zi){_.Oc(Zi)});
KyU(d);Z9(!0)},jw=function(){var NR;
(NR=g)==null||NR.onResume();X6();NR=d;NR.isForeground=!0;kp(NR,"PLAY_EVENT_TYPE_PLAY_RESUME");Z9(!1)},hj=function(NR){var Zi;
(Zi=g)==null||Zi.onAudioToggled(NR);ux(NR)},D9=function(NR){B().showMultiplayer3pConsentDialogCommand&&(B().isEmbeddedInWebview&&NR!==void 0&&e.resolve(NR),!NR&&_.ner()==="mini_app"&&VY(B().showMultiplayer3pConsentDialogCommand))},kY=function(){var NR,Zi,oj,AK;
return _.T(function(Jv){if(Jv.nextAddress==1){!B().isLivestream||B().disableVideoCapture||(NR=g)!=null&&NR.sendStartGameFrameCapture();Zi=(new URL(window.location.href)).searchParams;if(Zi.has("invite_code")){var UY=new Bwu,DG=Zi.get("invite_code");oj=_.f3(UY,1,DG);(AK=g)==null||AK.sendGameData(oj)}wU()||(RD(!0),UY=d,UY.state!==1?_.Oc(new _.oX("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+FyH[UY.state])):(_.T4("mini_app_ids_without_game_ready").includes(UY.JSC$16913_miniAppId)&&(UY.gameReady=
!0),UY.state=2,UY.beforeReady=!1,rZ(UY,"ma_ffr"),kp(UY,"PLAY_EVENT_TYPE_PLAY_READY")));return Jv.yield(e.promise,2)}VY(B().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();B().isEmbeddedInWebview||D9();_.HG(Jv)})},nO=function(){var NR=d;
NR.gameReady=!0;rZ(NR,"ma_gr")},lQ=function(NR){var Zi;
return _.T(function(oj){if(oj.nextAddress==1)return _.kA(oj,2),oj.yield(YNQ(E,NR),4);if(oj.nextAddress!=2)return _.Nn(oj,0);Zi=_.h6(oj);VY(B().showSavingErrorPopupCommand);throw Zi;})},ql=function(){var NR,Zi;
return _.T(function(oj){if(oj.nextAddress==1)return _.kA(oj,2),oj.yield(G0d(E),4);if(oj.nextAddress!=2)return NR=oj.yieldResult,oj.return(NR);Zi=_.h6(oj);VY(B().showLoadingErrorDialogCommand);throw Zi;})},Qc=function(NR){d.logError(NR)},H_=function(NR,Zi,oj){mtR(d,NR,Zi,oj)},QB=function(NR,Zi){Dtu(d,NR,Zi)},d3=function(){!z&&B().isEmbeddedInWebview||_.zi();
e97(d,!0);l||(window.addEventListener("beforeunload",lx,{capture:!0}),l=!0)},A8=function(NR){var Zi,oj,AK,Jv,UY,DG,W2;
return _.T(function(on){if(on.nextAddress==1)return v&&(!J||J<NR)&&NR>0?on.yield(C5U(v,NR),3):on.jumpTo(0);Zi=on.yieldResult;oj=_.A(Zi);AK=oj.next().value;Jv=oj.next().value;UY=AK;DG=Jv;((W2=UY)==null?0:W2.displayString)&&DG&&(Vd(DG),Sf(UY.displayString));_.HG(on)})},h0=function(NR){var Zi=B().onBenchmarkingMessageReceivedCommand;
if(Zi){var oj=WX2();_.hZ(NR,3,qLF,oj);xl(Zi,LwQ(NR))}},eQ=function(NR){var Zi=B().onGameFrameReceivedCommand;
if(Zi){var oj=new Mm;var AK=new mrd;var Jv=OL(NR,1);AK=_.kE(AK,1,Jv);NR=_.KV(NR,2);NR=_.f3(AK,2,NR);oj=_.o3(oj,2,NR);xl(Zi,y1H(oj))}},nu=function(NR){var Zi=B().onGameAudioDataReceivedCommand;
if(Zi){var oj=new Mm;var AK=new DrQ;NR=_.KV(NR,1);AK=_.f3(AK,1,NR);oj=_.o3(oj,4,AK);xl(Zi,y1H(oj))}},gU=function(){var NR=new URLSearchParams(window.location.search);
if(B().isEmbeddedInWebview&&NR&&NR.get("override_hl")==="true"&&NR.get("hl"))return NR.get("hl");NR=document.documentElement.lang;return NR!==""?NR:$O},Vr=function(NR){var Zi=B().onShareInviteCodeCommand;
if(Zi)if(B().isEmbeddedInWebview){var oj=new iI7;NR=_.f3(oj,1,NR);xl(Zi,TWM(NR))}else oj=B().inviteCodeShareClientParamIdentifier,a.clientParams.set(oj,{miniAppClientParams:{inviteCode:NR}}),VY(Zi)},fm=function(NR){var Zi,oj,AK;
return _.T(function(Jv){if(Jv.nextAddress==1)return Zi=B().onMiniAppOpenYtContentRequested,v&&_.r("enable_open_yt_content")&&Zi?Jv.yield(IOF(v,NR),3):Jv.jumpTo(0);oj=Jv.yieldResult;if(oj==="OK")if(B().isEmbeddedInWebview){var UY=new X1T;AK=JX(UY,2,Uz,ri(NR));xl(Zi,eQd(AK))}else q.clientData.set("video_id",NR),VY(Zi);_.HG(Jv)})},Ij=function(NR){vy+=_.cC(NR,3);
NR=Math.min(Math.log(1+vy/15E6*9)/Math.log(10),.99);T6(NR);lR(NR)},lR=_.O8(function(NR){var Zi=B().updateLoadingProgressCommand;
if(Zi){var oj=new X1T;NR=JX(oj,3,Uz,_.n7(NR));xl(Zi,eQd(NR))}},100),kM=function(NR){return N_H(c,NR)},X6=function(){var NR,Zi;
((NR=_.Fp2())==null?void 0:(Zi=NR.wakeLock)==null?void 0:Zi.request)!=null&&_.Fp2().wakeLock.request("screen").then(function(oj){P=oj}).catch(function(){})},ZR=_.ag("iframe");
_.ja(function(){B().isSupportedCountry&&(Y$D()||_.r("enable_sign_in_promo")||!B().showSignInDialogCommand?ZR.value&&Hc(ZR.value):VY(B().onMiniAppReadyCommand))},"ASuFde");
var tM=function(){return _.w("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return wU()?0:-1},
el:ZR})},Hc=function(NR,Zi){Zi=Zi===void 0?!1:Zi;
var oj=Kx();oj&&(Zi||oj.toString()!==NR.getAttribute("src"))&&(g=vVt(B().source,{isAudioEnabled:VR,onFirstFrameReady:kY,onGameReady:nO,onSave:lQ,onLoad:ql,onError:Qc,onSdkCalled:H_,onSdkPerformanceUpdate:QB,onClick:d3,onSendHighScore:A8,onBenchmarkingMessageReceived:h0,getLanguage:gU,onShareInviteCode:Vr,onResourceLoaded:Ij,onOpenYTContent:fm,onShowMiniAppAd:kM,onGameFrameReceived:eQ,onGameAudioReceived:nu},NR,oj),f8(NR,"load",function(){rZ(d,"ma_il");f8(NR,"load",function(){Hc(NR,!0)})}),_.WG(NR,
oj))},Kx=function(){var NR=B().url;
if(NR&&(NR=_.OE(NR),NR!==null)){if(B().source&&B().source==="MINI_APP_SOURCE_GAMESNACKS")NR=_.Pc(NR,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.r("enable_origin_query_parameter_bugfix")){var Zi=_.Hh(_.DsR(NR.toString()));Zi=new URLSearchParams(Zi||"");Zi.set("origin",window.location.origin);Zi=Zi.toString();NR=_.jN(NR).toString();NR=_.bQ(MR7.exec(NR)[0]+(Zi.trim()?"#"+Zi:""))}return NR}},eN=function(){var NR={};
NR=_.kG("yt-mini-app-container-view-model__loading-screen",(NR["yt-mini-app-container-view-model__loading-screen--fade-out"]=wU,NR));var Zi=function(){return wU()?1:Bn()};
return _.w("div",{class:NR},_.w(_.Sc,{data:function(){return B().splashScreen}},{miniAppSplashScreenViewModel:function(oj){return _.w(cJQ,{data:oj.data,
loadingProgress:Zi})}}))},yB=function(){var NR={};
return _.w("div",{class:_.kG("yt-mini-app-container-view-model__pause-interstitial",(NR["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!BQ()},NR["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=BQ,NR))},_.w(_.Sc,{data:function(){return B().splashScreen}},{miniAppSplashScreenViewModel:function(Zi){return _.w(cJQ,{data:Zi.data,
forPaused:!0})}}))},nG=function(){t=[];
t.push(_.ug(window,"visibilitychange",function(){O||G&&Pn()||(document.visibilityState==="visible"?jw():wi())}));
t.push(_.ug(window,"pagehide",function(){tK()}));
t.push(_.ug(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&$M.value.dispatchEvent(new Event("tap"))},0)}));
t.push(_.ug($M.value,"pointerdown",function(){e97(d,!1)},!0));
t.push(_.ug($M.value,"pause",function(){O=!0;wi()}));
t.push(_.ug($M.value,"play",function(){O=!1;jw()}));
t.push(_.ug($M.value,"exit",function(){tK()}));
var NR=navigator.keyboard,Zi=NR&&NR.lock;t.push(_.ug(window,T5d,function(){rU(cHd());cHd()?(B().hasPlayNextShelf&&Cc("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),HH("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),Zi&&NR.lock(["Escape"])):(B().hasPlayNextShelf&&HH("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Cc("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),Zi&&NR.unlock())}));
B().showMultiplayer3pConsentDialogCommand&&t.push(_.ug(window,"yt-playables-ack-3p-data-usage",function(){o9d(v)}));
B().confirmExitMiniAppCommandEdu&&t.push(_.ug(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Da("exit-mini-app-seen-state","true",2592E6)}));
B().onGameAudioDataReceivedCommand&&t.push(_.ug(window,"message",function(oj){oj=oj.event_;var AK,Jv=(AK=ZR.value)==null?void 0:AK.src;if(Jv&&oj.origin===(new URL(Jv)).origin&&oj.data&&oj.data.type==="GAME_AUDIO"&&oj.data.audio&&oj.data.audio.length>0)if(_.r("enable_sending_unwrapped_game_audio_as_serialized_metadata"))zux(B().onGameAudioDataReceivedCommand,oj.data.audio);else{var UY=new FileReader;UY.onload=function(){var DG=new Mm;var W2=new DrQ;W2=_.f3(W2,1,UY.result);DG=_.o3(DG,4,W2);xl(B().onGameAudioDataReceivedCommand,
y1H(DG))};
UY.readAsDataURL(new Blob([oj.data.audio]))}}))},G2=function(){t.forEach(function(NR){OV(NR)});
window.removeEventListener("beforeunload",lx,{capture:!0})},VY=function(NR){NR&&RJD(NR,B().isEmbeddedInWebview||!1)},HH=function(NR,Zi){NR=_.A($M.value.getElementsByClassName(NR));
for(var oj=NR.next();!oj.done;oj=NR.next())oj.value.classList.add(Zi)},Cc=function(NR,Zi){NR=_.A($M.value.getElementsByClassName(NR));
for(var oj=NR.next();!oj.done;oj=NR.next())oj.value.classList.remove(Zi)};
return function(){var NR={};NR=_.kG("yt-mini-app-container-view-model",(NR["yt-mini-app-container-view-model--desktop"]=!0,NR["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return B().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},NR["yt-mini-app-container-view-model--ios-web-view"]=ejX(),NR["yt-mini-app-container-view-model--no-top-bar"]=function(){return!B().topBar},NR["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return B().hasPlayNextShelf},NR["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return B().hasPlayNextShelf},NR["yt-mini-app-container-view-model--show-peek-below"]=function(){return!cn()&&B().hasPlayNextShelf},NR));
var Zi={};Zi=_.kG("yt-mini-app-container-view-model__content",(Zi["yt-mini-app-container-view-model__content--desktop-content"]=!0,Zi["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return B().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Zi["yt-mini-app-container-view-model--desktop-play-page"]=function(){return B().hasPlayNextShelf},Zi));
return _.w("mini-app-container-view-model",{el:$M},_.w("div",{class:NR},_.w(_.V,{cond:function(){return B().topBar&&!cn()},
then:function(){return _.w(_.Sc,{data:function(){return B().topBar}},{miniAppTopBarViewModel:function(oj){return _.w(ZCF,{data:oj.data,
isAudioEnabled:VR,onAudioToggled:function(AK){hj(AK)},
score:sF,formattedScore:bR,onScoreChanged:function(AK){J=AK},
isEmbeddedInWebview:Pn,isSaved:Gq,onSaveToggled:function(AK){Td(AK)},
isExitMiniAppSeen:WQ,isDesktopPlayPage:FH})}})}}),_.w("div",{class:Zi},_.w(_.V,{cond:UF,
then:function(){return tM()}}),_.w(_.V,{cond:function(){return B().isLivestream},
then:function(){return yB()}}),_.w(_.V,{cond:function(){return!B().isEmbeddedInWebview},
then:function(){return eN()}}))))}()},"De");
h0Q.idomCompat=!0;_.Vm(h0Q,"mini-app-container-view-model",{props:{data:_.kz}});var HCM=_.m(function(W){var B=W.data;return _.w("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.w("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.lF(function(){var z=B().onTap;z&&_.aB(z)})},_.w(_.V,{cond:function(){return B().icon},
then:function(z){return _.w(_.hY,{icon:function(){return z().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.w("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return B().title})))},"Ee");
HCM.idomCompat=!0;var Fc6=_.m(function(W){var B=_.LG("div"),z=_.A(_.g4(void 0,void 0,"dg3xff")),G=z.next().value,Y=z.next().value;z=_.A(_.g4(void 0,void 0,"AgHNfc"));var d=z.next().value,E=z.next().value;z=_.A(_.g4(void 0,void 0,"fuTKCc"));var v=z.next().value,c=z.next().value,J=function(){var K=G();return K!==void 0?Math.abs(K):void 0},g=function(){var K=J();
return K===void 0||K<=3},t=function(){var K=J();
var e=d(),a=v();K=K!==void 0&&e!==void 0&&a!==void 0?e-a-K:void 0;return K===void 0||K<=3},P=function(K){B.value&&B.value.scrollBy({top:0,
left:(_.eD("HTML_DIR")==="rtl"?-1:1)*K*B.value.clientWidth,behavior:"smooth"})},Z=function(){var K;
Y((K=B.value)==null?void 0:K.scrollLeft);var e;E((e=B.value)==null?void 0:e.scrollWidth);var a;c((a=B.value)==null?void 0:a.clientWidth)},l=function(){P(-.5)},b=function(){P(.5)};
z=_.lF(function(){Z()});
_.bk(function(){Z();if(B.value&&window.ResizeObserver){var K=new ResizeObserver(Z);K.observe(B.value);_.fR(function(){K.disconnect()})}});
var O={};return _.w("yt-sponsorships-scrollable-shelf",{class:_.kG("ytdSponsorshipsScrollableShelfHost",W.className)},_.w("div",{class:_.kG("ytdSponsorshipsScrollableShelfContent",(O.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return W.data().previousButton&&W.data().nextButton&&!g()&&!t()},O.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return W.data().previousButton&&!g()&&t()},O.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return W.data().nextButton&&
g()&&!t()},O)),
el:B,"on:scroll":z},W.children),_.w(_.V,{cond:function(){return!g()},
then:function(){return _.w(_.Sc,{data:function(){return W.data().previousButton}},{buttonViewModel:function(K){return _.w(_.ex,{data:K.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:l})}})}}),_.w(_.V,{cond:function(){return!t()},
then:function(){return _.w(_.Sc,{data:function(){return W.data().nextButton}},{buttonViewModel:function(K){return _.w(_.ex,{data:K.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:b})}})}}))},"Fe");
Fc6.idomCompat=!0;var bCT=_.m(function(W){var B=W.data;W={};return _.w("yt-sponsorships-hub",{class:_.kG("ytdSponsorshipsHubHost",(W.ytdSponsorshipsHubHostIndented=function(){return B().indented},W))},_.w("div",{class:"ytdSponsorshipsHubHeader"},_.w("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.w("div",{class:"ytdSponsorshipsHubAvatar"},_.w(_.Sc,{data:function(){return B().avatar}},{avatarViewModel:_.ds})),_.w(_.V,{cond:function(){return B().badgeImage},
then:function(z){return _.w("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.w("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.w("div",{class:"ytdSponsorshipsHubBadge"},_.w(_.iF,{data:z,targetWidth:24,targetHeight:24,alt:""}))))}})),_.w("div",{class:"ytdSponsorshipsHubDetails"},_.w("div",{class:"ytdSponsorshipsHubTierName"},function(){return B().tierName}),_.w("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return B().membershipType}),_.w("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return B().membershipDurationOrExpiry})),_.w("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.w(_.Sc,{data:function(){return B().manageButton}},{buttonViewModel:function(z){return _.w(_.ex,{data:z.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.w(_.Sc,{data:function(){return B().actionMenuButton}},{buttonViewModel:function(z){return _.w(_.ex,{data:z.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.w("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return B().perksTitle}),_.w(Fc6,{data:function(){return{previousButton:B().previousPerkButton,
nextButton:B().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.w("div",{class:"ytdSponsorshipsHubPerkCards"},_.w(_.Sc,{data:function(){return B().perkCards}},{sponsorshipsHubPerkCardViewModel:HCM}),_.w(_.V,{cond:function(){return B().viewAllPerksButton},
then:function(z){return _.w(SNR,{data:z})}}))))},"Ge");
bCT.idomCompat=!0;var SNR=_.m(function(W){var B=W.data;return _.w("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.w(_.Sc,{data:function(){return B().button}},{buttonViewModel:_.ex}),_.w("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.w("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return B().title}),_.w("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return B().subtitle})))},"He");
SNR.idomCompat=!0;_.Vm(bCT,"yt-sponsorships-hub",{props:{data:_.kz}});_.jmH=_.m(function(W){var B=W.data;return _.w("yt-dual-avatar-view-model",{class:_.kG("ytDualAvatarViewModelHost",W.className),style:_.oK({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var z;return((z=B().badgeCutoutRadius)!=null?z:14)+"px"}})},_.w("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.w(_.Sc,{data:function(){return B().startAvatar}},{avatarViewModel:_.ds}),_.w(_.Sc,{data:function(){return B().endAvatar}},{avatarViewModel:_.ds})),_.w(_.Sc,{data:function(){return B().badge}},
{contentPreviewImageViewModel:function(z){return _.w("div",{class:"ytDualAvatarViewModelBadge"},_.w(_.jh,{data:z.data}))}}))},"Ie");
_.jmH.idomCompat=!0;var OCD=_.m(function(W){var B=W.data;var z,G=!((z=_.dO().resolve(_.Y8(_.YG)))==null||!z());W=_.r4(function(){var g,t,P=G?(g=B().header)==null?void 0:g.backgroundColorDarkMode:(t=B().header)==null?void 0:t.backgroundColorLightMode;if(P!==void 0)return _.aE(P)},void 0,"TDdh7d");
z=_.r4(function(){var g,t;return G?(g=B().header)==null?void 0:g.backgroundImagePart1Dark:(t=B().header)==null?void 0:t.backgroundImagePart1Light},void 0,"X0peMe");
var Y=_.r4(function(){var g,t;return G?(g=B().header)==null?void 0:g.backgroundImagePart2Dark:(t=B().header)==null?void 0:t.backgroundImagePart2Light},void 0,"an0Hzd"),d=_.r4(function(){return _.eD("HTML_DIR")==="rtl"},void 0,"BltEgb"),E=_.LG("yt-sponsorships-perks-list"),v=!1,c=function(){var g=E.value;
if(g&&!v){var t,P=(t=g.parentElement)==null?void 0:t.parentElement;if(P)for(g=g.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),t=0;t<g.length;++t){var Z=g[t];if(Z instanceof HTMLElement){P.scrollTo({top:Z.offsetTop+Z.clientHeight/2-P.clientHeight/2,behavior:"smooth"});v=!0;break}}}};
_.jD(function(){var g=E.value;if(g&&window.ResizeObserver){var t=new ResizeObserver(c);t.observe(g);_.fR(function(){t.disconnect()})}});
var J={};return _.w("yt-sponsorships-perks-list",{el:E,class:_.kG("ytdSponsorshipsPerksListHost",(J.ytdSponsorshipsPerksListHorizontalPadding=function(){return B().horizontalPaddingEnabled},J))},_.w("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.w("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.oK({"background-color":W})},_.w("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.w(_.V,{cond:z,then:function(g){var t={};return _.w("div",{class:_.kG((t.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=G,t.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!G,t.ytdSponsorshipsPerksListFlipped=d,t))},_.w(_.iF,{data:g,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.w("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.w(_.V,{cond:Y,
then:function(g){var t={};return _.w("div",{class:_.kG((t.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=G,t.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!G,t.ytdSponsorshipsPerksListFlipped=d,t))},_.w(_.iF,{data:g,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.w("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.w(_.Sc,{data:function(){var g;
return(g=B().header)==null?void 0:g.dualAvatar}},{dualAvatarViewModel:_.jmH})))),_.w("div",{class:"ytdSponsorshipsPerksListBody"},_.w("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return B().title}),_.w(_.V,{cond:function(){return B().perks},
then:function(g){return _.w(_.IJ,{each:g},function(t,P){var Z={};return _.w("div",{class:_.kG("ytdSponsorshipsPerksListPerkContainer",(Z.ytdSponsorshipsPerksListSelectedPerk=function(){var l=P(),b=B().selectedPerkIndex;return l===b},Z))},_.w(_.V,{cond:function(){return P()>0},
then:function(){return _.w("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.w("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.w(_.V,{cond:function(){return t.icon},
then:function(l){return _.w(_.hY,{icon:function(){return l().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.w("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.w("div",{class:"ytdSponsorshipsPerksListPerkTitle"},t.title),_.w("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.w(_.r0,{text:t.description})),_.w(_.V,{cond:function(){return t.instructions},
then:function(){var l,b;return _.w("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.w("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(l=t.instructions)==null?void 0:l.title),_.w("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.w(_.r0,{text:(b=t.instructions)==null?void 0:b.text})))}}))),_.w(_.V,{cond:function(){return t.emoji},
then:function(l){return _.w("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.w(_.IJ,{each:function(){return l()}},function(b){return _.w(_.iF,{data:b,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.w(fOM,{data:t}))})}})))},"Je");
OCD.idomCompat=!0;var fOM=_.m(function(W){var B=W.data;var z=function(E,v){return E===v},G=function(){var E=B();
E=_.k(E==null?void 0:E.badgesShelf,V84);return E!==void 0&&E!==null?E:{previousButton:{},nextButton:{}}},Y=_.ag("div"),d=function(){var E=Y.value;
if(E){var v=E.parentElement;if(v){E=E.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var c=0;c<E.length;++c){var J=E[c];if(J instanceof HTMLElement){v.scrollTo({left:J.offsetLeft+J.clientWidth/2-v.clientWidth/2,behavior:"instant"});break}}}}};
_.jD(function(){var E=Y.value;if(E){var v=new ResizeObserver(d);v.observe(E);_.fR(function(){v.disconnect()})}});
return _.w("div",null,_.w(_.V,{cond:function(){return B().badges},
then:function(E){return _.w(Fc6,{data:G},_.w("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:Y},_.w(_.IJ,{each:function(){return E()}},function(v,c){var J={},g={},t={};
return _.w("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.w(_.V,{cond:function(){return c()>0},
then:function(){return _.w("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.w("div",{class:_.kG("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(J.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return z(c(),B().currentBadgeIndex)},J.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!z(c(),B().currentBadgeIndex)},J))},_.w("div",{class:_.kG("ytdSponsorshipsPerksListLoyaltyBadge",(g.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return z(c(),
B().currentBadgeIndex)},g.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!z(c(),B().currentBadgeIndex)},g))},_.w(_.V,{cond:function(){return v.image},
then:function(P){var Z={};return _.w("div",{class:_.kG((Z.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return z(c(),B().currentBadgeIndex)},Z.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!z(c(),B().currentBadgeIndex)},Z))},_.w(_.iF,{data:P,
alt:""}))}})),_.w("div",{class:_.kG("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(t.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return z(c(),B().currentBadgeIndex)},t))},v.title)))})))}}))},"Ke");
fOM.idomCompat=!0;_.Vm(OCD,"yt-sponsorships-perks-list",{props:{data:_.kz}});_.Vm(_.m(function(W){return _.w("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.w(_.V,{cond:function(){return W.data().image},
then:function(B){return _.w(_.iF,{className:"ytwFantasyEmptyStateViewModelImage",data:B,ariaHidden:!0,alt:""})}}),_.w(_.r0,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return W.data().title}}),_.w(_.r0,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return W.data().subtitle}}),_.w(_.Sc,{data:function(){return W.data().primaryButton}},{buttonViewModel:function(B){return _.w(_.ex,{data:B.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Le"),"ytw-fantasy-empty-state-view-model",{props:{data:_.kz}});var XPM;var KcH=_.m(function(W){var B=W.data;var z=W.uniqueId;var G=W.overrides;W=_.r4(function(){var Y,d=((Y=B().timedAnimationData)==null?void 0:Y.animationTiming)||[];return{uniqueId:z(),timings:d,experimentEnabled:d.length>0,enabled:d.length>0}},void 0,"hiuXI");
return _.w("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.w(H1u,{settings:W},_.w(_.Sc,{data:function(){return B().buttonRenderer}},{buttonRenderer:function(Y){return _.w(_.rs,{data:Y.data,
buttonOverrides:G})}})))},"Me");
KcH.idomCompat=!0;_.Vm(KcH,"timed-animation-button-renderer",{props:{data:_.kz,uniqueId:_.kz,overrides:_.kz}});var H6=function(){var W=_.S.apply(this,arguments)||this;W.hideJoinButtonBeforeSubscribed=_.r("hide_join_button_before_subscribed");W.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return W};
_.C(H6,_.S);_.p=H6.prototype;_.p.hasShowDialogCommand=function(W){return!!_.k(W,IsU)};
_.p.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"}}}};
_.p.updateJoinButtonOverrides=function(){var W,B;(W=_.tH(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(B=W.polymerController)==null||B.set("overrides",this.joinButtonOverrides);if(W=_.tH(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))W.overrides=this.joinButtonOverrides};
_.p.handleButtonRefreshAction=function(W){if(W=_.k(W,zW9))this.set("data.membershipButton",W.membershipButton),this.notifyPath("data.membershipButton")};
_.p.onYtServiceRequestError=function(W){_.Wk(this.hostElement,W.detail.error.message)};
_.p.onKeydown=function(W){if(W.key==="Enter"){var B;(B=this.data)!=null&&B.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.p.handleUnsubscribeAction=function(){var W,B,z;((W=this.data)==null?void 0:(B=W.membershipButton)==null?void 0:(z=B.buttonRenderer)==null?void 0:z.style)==="STYLE_PRIMARY"&&_.tH(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.G5.Object.defineProperties(H6.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.subscriptionStateEntity)==null||!W.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var W,B=(W=this.data)==null?void 0:W.membershipButton,z;W=(B==null?void 0:B.buttonRenderer)||_.k(B==null?void 0:(z=B.timedAnimationButtonRenderer)==null?void 0:z.buttonRenderer,_.Ep);return(W==null?void 0:W.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(W==null?void 0:W.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(W==null?void 0:W.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var W;if(this.hasShowDialogCommand((W=this.data)==null?void 0:W.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var W;if(this.hasShowDialogCommand((W=this.data)==null?void 0:W.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.attributedTitle)}}});
H6.prototype.onYtServiceRequestError=H6.prototype.onYtServiceRequestError;H6.prototype.updateJoinButtonOverrides=H6.prototype.updateJoinButtonOverrides;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],H6.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],H6.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.TB),_.y("design:type",Object)],H6.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],H6.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.R9),_.y("design:type",Object)],H6.prototype,"ironButtonState",void 0);_.Q([_.F(),_.y("design:type",Object)],H6.prototype,"data",void 0);_.Q([_.H("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],H6.prototype,"hideJoin",null);
_.Q([_.F(),_.y("design:type",String)],H6.prototype,"subscribeKey",void 0);_.Q([_.F({selectorArgs:["subscribeKey"],selector:pW8}),_.y("design:type",Object)],H6.prototype,"subscriptionStateEntity",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],H6.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.Q([_.H("subscriptionStateEntity"),_.F({reflectToAttribute:!0}),_.y("design:type",Object),_.y("design:paramtypes",[])],H6.prototype,"subscribed",null);
_.Q([_.H("subscribed","data.membershipButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],H6.prototype,"joinButtonOverrides",null);_.Q([_.H("data.navigationEndpoint"),_.y("design:type",Object),_.y("design:paramtypes",[])],H6.prototype,"channelNameTabIndex",null);_.Q([_.H("data.navigationEndpoint"),_.y("design:type",Object),_.y("design:paramtypes",[])],H6.prototype,"channelNameRole",null);
_.Q([_.H("data.attributedTitle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],H6.prototype,"hasAttributedTitle",null);_.Q([_.oN("joinButtonOverrides"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],H6.prototype,"updateJoinButtonOverrides",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],H6.prototype,"onYtServiceRequestError",null);
_.Q([_.u({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],H6);
var ulu=_.sV()(H6,"ytd-video-owner-renderer",function(){if(XPM===void 0){var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" hidden="[[!hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);XPM=W}W=XPM;return W},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.Vm(_.m(function(W){var B=W.data;var z;W=_.A(_.g4(!((z=_.QL("yt-mini-app-is-theater-mode-enabled"))==null||!z),void 0,"i2pjVd"));var G=W.next().value,Y=W.next().value;z=_.A(_.g4(!1,void 0,"ga7V5c"));var d=z.next().value,E=z.next().value;_.jD(function(){var J=_.ug(window,T5d,function(){E(cHd())});
_.fR(function(){OV(J)})});
var v;z=(v=_.dO().resolve(_.Y8(A3d)))!=null?v:function(){return _.w("div",null)};
_.$E("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){Y(!0);_.Da("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.$E("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){Y(!1);_.Da("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
v={};W={};var c={};return _.w("mini-app-play-page-renderer",{class:_.kG("miniAppPlayPageRendererHost",(v.miniAppPlayPageRendererHostDetailsView=function(){return!G()},v))},_.w("div",{class:_.kG("miniAppPlayPageRendererGameContainer",(W.miniAppPlayPageRendererGameContainerDetailsView=function(){return!G()},W))},_.w(_.Sc,{data:function(){return B().containerViewModel}},{miniAppContainerViewModel:h0Q}),_.w(_.V,{cond:function(){return B().channel&&B().subscribeButton},
then:function(){var J={};return _.w("div",{class:_.kG("miniAppPlayPageRendererChannelContainer",(J.miniAppPlayPageRendererHideVisibility=function(){return d()},J))},_.w(_.Sc,{data:function(){return B().channel}},{videoOwnerRenderer:function(g){return _.w(ulu,{data:g.data})}}),_.w(_.Sc,{data:function(){return B().subscribeButton}},{subscribeButtonViewModel:function(g){return _.w(_.dJ,{data:g.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.w(_.V,{cond:function(){return!G()&&B().description},
then:function(){var J={};return _.w("div",{class:_.kG("miniAppPlayPageRendererMiniAppDescriptionWrapper",(J.miniAppPlayPageRendererHideVisibility=function(){return d()},J))},_.w("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return B().description}))}})),_.w("div",{class:_.kG("miniAppPlayPageRendererPlayNextContainer",(c.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!G()},c.miniAppPlayPageRendererHideVisibility=function(){return d()},c))},_.w(_.Sc,{data:function(){return B().sectionList}},
{sectionListRenderer:z})))},"Ne"),"mini-app-play-page-renderer",{props:{data:_.kz}});var F_=function(){var W=_.S.apply(this,arguments)||this;W.isSearch=!1;W.isConstrainedList=!1;W.hasChipsBar=!1;W.inReplyPanel=!1;W.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"}};W.monitorScroll=!0;W.SCROLL_ANIMATION_DURATION_MS=300;W.nextContinuation={continuationType:"sectionListContinuation"};return W};
_.C(F_,_.S);_.p=F_.prototype;
_.p.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(W){switch(W.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.r("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.r("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.p.created=function(){var W=this;this.JSC$17053_scrollAnimation=new _.P6(function(B){W.hostElement.scrollTop=B})};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.p.getItemsPath=function(){return"data.contents"};
_.p.replacePrimaryContent=function(W){this.set("data.contents",W)};
_.p.computeHasSortFilter=function(W){return!!W&&!!W.sortFilterSubMenuRenderer};
_.p.computeShouldScrollInPanel=function(W){var B;return!!(W==null?0:(B=W.scrollPaneStyle)==null?0:B.scrollable)};
_.p.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Pf(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.p.scrollToTop=function(){this.hostElement.scrollTop=0};
_.p.scrollToItemSection=function(W){if(W=this.getItemByIdentifier(W))W=this.getScrollPositionForItem(W),this.hostElement.scrollTop!==W&&this.JSC$17053_scrollAnimation.start(this.hostElement.scrollTop,W,this.SCROLL_ANIMATION_DURATION_MS)};
_.p.getItemByIdentifier=function(W){var B=this.contents.querySelectorAll("ytd-item-section-renderer");if(B&&B.length!==0){var z=Array.from(B).findIndex(function(G){return G.sectionIdentifier===W});
return B[z===-1?0:z]}};
_.p.getScrollPositionForItem=function(W){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===W)return 0;W=_.qd(W).y+this.hostElement.scrollTop-_.qd(this.hostElement).y;return Math.min(W,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.G5.Object.defineProperties(F_.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.targetId)==="browse-feedFEclips"}}});
F_.prototype.onScroll=F_.prototype.onScroll;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.bh.YtLazyListBehavior),_.y("design:type",Object)],F_.prototype,"ytLazyListBehavior",void 0);_.Q([_.h(_.ZY.YtNextContinuationBehavior),_.y("design:type",Object)],F_.prototype,"ytNextContinuationBehavior",void 0);
_.Q([_.h(_.CmT),_.y("design:type",Object)],F_.prototype,"ytBooleanLogicBehavior",void 0);_.Q([_.h(_.Pl),_.y("design:type",Object)],F_.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],F_.prototype,"data",void 0);_.Q([_.F({value:2}),_.y("design:type",Number)],F_.prototype,"initialCount",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],F_.prototype,"autoFill",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.y("design:type",Boolean)],F_.prototype,"hasSortFilter",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.y("design:type",Boolean)],F_.prototype,"hideBottomSeparator",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.y("design:type",Boolean)],F_.prototype,"shouldScrollInPanel",void 0);
_.Q([_.F(),_.y("design:type",Object)],F_.prototype,"isSearch",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],F_.prototype,"isConstrainedList",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],F_.prototype,"responsiveSizing",void 0);_.Q([_.F(),_.y("design:type",Object)],F_.prototype,"hasChipsBar",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],F_.prototype,"pageSubtype",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],F_.prototype,"engagementPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],F_.prototype,"liveChatEngagementPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],F_.prototype,"inReplyPanel",void 0);_.Q([_.Hf("#action-button"),_.y("design:type",HTMLElement)],F_.prototype,"actionButton",void 0);_.Q([_.F(),_.y("design:type",Object)],F_.prototype,"scrollUpButtonData",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],F_.prototype,"engagementPanelDropdown",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],F_.prototype,"engagementPanelDialog",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],F_.prototype,"isClipList",null);_.Q([_.Hf("#contents"),_.y("design:type",HTMLElement)],F_.prototype,"monitorScrollElement",void 0);_.Q([_.Hf("#contents"),_.y("design:type",HTMLElement)],F_.prototype,"contents",void 0);
_.Q([_.IN("scroll"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],F_.prototype,"onScroll",null);_.Q([_.u({is:"ytd-section-list-renderer",disableElementRegistration:!0})],F_);
var e0u=_.sV()(F_,"ytd-section-list-renderer",function(){if(pYQ===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);pYQ=W}W=pYQ;return W},{mode:1});var mqM;var xqM;var Dqu;var QmD;var S5=function(){return _.S.apply(this,arguments)||this};
_.C(S5,_.S);S5.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
S5.prototype.onLikeButtonClick=function(W){W.stopPropagation();W.preventDefault()};
_.G5.Object.defineProperties(S5.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.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)})}}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],S5.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],S5.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],S5.prototype,"ytRendererStamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],S5.prototype,"data",void 0);
_.Q([_.F({selectorArgs:["data.likeStatusEntityKey"],selector:NE}),_.y("design:type",Object)],S5.prototype,"likeStatusEntity",void 0);_.Q([_.H("data","likeStatusEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],S5.prototype,"likeButtonRenderer",null);_.Q([_.u({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],S5);
_.D(S5,"ytd-slim-metadata-toggle-button-renderer",function(){if(QmD!==void 0)return QmD;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return QmD=W},{mode:1});var bD=function(){var W=_.S.apply(this,arguments)||this;W.minimizePipBreakages=_.r("web_pip_minimize_breakages");W.showEqualizer=_.r("web_enable_playlist_video_lockup_equalizer");W.watchColorUpdate=_.r("kevlar_watch_color_update");W.actionMap={};return W};
_.C(bD,_.S);_.p=bD.prototype;_.p.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"}}}};
_.p.computeEditableClass=function(W){return W&&W.menu?"editable":""};
_.p.computeSelected=function(W){return!(W==null||!W.selected)};
_.p.computeUseColorPalette=function(W){return!!((W==null?0:W.lightColorPalette)&&(W==null?0:W.darkColorPalette))};
_.p.computeLargerPlaylistThumbs=function(W,B){return _.r("web_enable_playlist_bigger_thumbnails")&&!B};
_.p.computeShowPlayIcon=function(W){return!!W&&_.r("web_use_play_icon_for_playlist_panel_video_renderer")};
_.p.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.p.onYtServiceRequestSent=function(W,B){B.endpoint&&this.isHideEnclosingAction(B.endpoint)&&!this.selected&&$UD(_.sr(),this.data.videoId)};
_.p.isHideEnclosingAction=function(W){var B=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",W);W=this.get("likeEndpoint.status",W)==="INDIFFERENT";return B||W};
_.p.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.p.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.G5.Object.defineProperties(bD.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var W;return!!(this.withinMiniplayer&&((W=this.data)==null?0:W.actionButtons))}}});
bD.prototype.onYtServiceRequestSent=bD.prototype.onYtServiceRequestSent;bD.prototype.canReorderChanged=bD.prototype.canReorderChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],bD.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.P$),_.y("design:type",Object)],bD.prototype,"ytdLockupBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],bD.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],bD.prototype,"withinMiniplayer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],bD.prototype,"minimizePipBreakages",void 0);_.Q([_.F({computed:"computeSelected(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],bD.prototype,"selected",void 0);
_.Q([_.F({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],bD.prototype,"useColorPalette",void 0);_.Q([_.F({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.y("design:type",Boolean)],bD.prototype,"largerPlaylistThumbs",void 0);_.Q([_.F(),_.y("design:type",Object)],bD.prototype,"showEqualizer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],bD.prototype,"canReorder",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],bD.prototype,"touchPersistentDragHandle",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],bD.prototype,"handleIsHovered",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],bD.prototype,"watchColorUpdate",void 0);_.Q([_.F(),_.y("design:type",String),_.y("design:paramtypes",[])],bD.prototype,"reorderIcon",null);
_.Q([_.F({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.y("design:type",Boolean)],bD.prototype,"showPlayIcon",void 0);_.Q([_.F(),_.y("design:type",String),_.y("design:paramtypes",[])],bD.prototype,"playIcon",null);_.Q([_.H("largerPlaylistThumbs"),_.y("design:type",Number),_.y("design:paramtypes",[])],bD.prototype,"thumbnailWidth",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bD.prototype,"showActionButtons",null);
_.Q([_.jJ("canReorder"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bD.prototype,"canReorderChanged",null);_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],bD.prototype,"onYtServiceRequestSent",null);_.Q([_.u({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],bD);
_.D(bD,"ytd-playlist-panel-video-renderer",function(){if(Dqu!==void 0)return Dqu;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[showPlayIcon]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Dqu=W},{mode:2});var j5=function(){return _.S.apply(this,arguments)||this};
_.C(j5,_.S);j5.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],j5.prototype,"data",void 0);_.Q([_.u({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],j5);
_.D(j5,"ytd-playlist-panel-supported-items",function(){if(xqM!==void 0)return xqM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return xqM=
W},{mode:1});VKU=!0;j6R("\\P{N}");var PbQ;var yJ4=_.kq("END_OF_PLAYLIST",void 0,"End of playlist"),qNQ=_.kq("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),f0=function(){var W=_.S.apply(this,arguments)||this;W.minimizePipBreakages=_.r("web_pip_minimize_breakages");W.updatedCoursePanel=_.r("course_hide_playlist_panel_shuffle_and_loop_buttons");W.hideHeaderText=!1;W.useColorPalette=!1;W.collapsed=!1;W.collapsedPreServerOverride="not_tracked";W.isHovered=!1;W.modernPanels=_.r("kevlar_watch_modern_panels");
W.expandLabel=_.kq("MINIPLAYER_EXPAND_LABEL");W.collapseLabel=_.kq("MINIPLAYER_COLLAPSE_LABEL");W.isFloating=!1;W.metaPanel=!1;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};W.currentIndex=void 0;return W};
_.C(f0,_.S);_.p=f0.prototype;
_.p.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"}}}};
_.p.created=function(){this.scrollThrottle=new _.an(this.onThrottledScroll,1E3,this)};
_.p.onMouseEnter=function(){this.isHovered=!0};
_.p.onMouseLeave=function(){this.isHovered=!1};
_.p.computeOverflowMenuData=function(W){return W&&W.menu?W.menu:null};
_.p.computeCollapsible=function(W){return!W};
_.p.computeHasPlaylistButtons=function(W){return!(!W||!W.playlistButtons)};
_.p.computeHasSeparateSaveButton=function(W){return!(!W||!W.saveButton)};
_.p.computeHasToolbarButton=function(W,B){return!(!W||!(B||W.saveButton||W.menu))};
_.p.computePlaylistType=function(W){if(W&&W.playlistId)return W.playlistId.substring(0,4)};
_.p.computeCanReorder=function(W){return W?W.playlistId&&W.playlistId.startsWith("TLPQ")?!0:!!W.isEditable&&!W.isInfinite:!1};
_.p.attached=function(){var W=this;try{_.dO().resolve(_.wW).setPlaylistComponent(this.hostElement)}catch(B){if(_.r("kevlar_park_on_playlist_token_killswitch"))throw B;_.J5().parkOrScheduleJob(function(){_.dO().resolve(_.wW).setPlaylistComponent(W.hostElement)},2,"ci")}_.iH(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.p.detached=function(){_.E2(this.hostElement)};
_.p.computeTrailingIcon=function(W,B,z){return z?B?"yt-icons:collapse":"yt-icons:close":B?"yt-icons:expand":_.r("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.p.computeIndexMessage=function(W,B){return kAk(W+1)+" / "+kAk(B)};
_.p.onRenderStamperFinished=function(){if(this.scrollForStampDom){var W=!0;this.isHovered&&(W=!1);if(this.collapsed||this.hidden)W=!1;W&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.p.collapseChanged=function(){var W=this;this.collapsed||(_.gn(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.p.hiddenChanged=function(){var W=this;this.hidden||_.gn(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.scrollToCurrentVideo()})};
_.p.setupReordering=function(){var W=_.tH(this.hostElement).querySelector("#items");lTd?_.gfQ(this.ytReorderableBehavior,W,W,"playlist-drag-handle"):_.gfQ(this.ytReorderableBehavior,W,W)};
_.p.scrollToCurrentVideo=function(){var W=this;_.fg.addJob(function(){var B=_.tH(W.hostElement).querySelector("#items");if(B){B.style.setProperty("padding-bottom","");var z=_.tH(W.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(z){B=z.parentElement||_.mk(document);var G=B||_.mk(document);var Y=_.qd(z),d=_.qd(G),E=_.Df4(G);if(G==_.mk(document)){var v=Y.x-G.scrollLeft;Y=Y.y-G.scrollTop}else v=Y.x-d.x-E.left,Y=Y.y-d.y-E.top;z=u64(z);d=G.clientHeight-
z.height;E=G.scrollLeft;var c=G.scrollTop;E+=v-(G.clientWidth-z.width)/2;G=new _.De(E,c+(Y-d/2));B.scrollLeft=G.x;B.scrollTop=G.y}}},8)};
_.p.dataChanged=function(){var W=this;_.JbR(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.BM(this,function(){_.CG(W.ytTaskEmitterBehavior.getTaskManager(),function(){W.ytRendererBehavior.markDirty();W.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.p.onFullBleedPlayerChanged=function(){_.r("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.p.onFullscreenChanged=function(){_.r("web_watch_imax_theater_mode")||_.r("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.p.updateNowPlayingOverlay=function(){_.r("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.p.onPlaylistLockupNowPlaying=function(W,B){B&&(this.activeNowPlayingRenderer=B);this.updateNowPlayingOverlay()};
_.p.onScroll=function(){this.scrollThrottle.fire()};
_.p.onThrottledScroll=function(){var W=this;_.CG(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.ytRendererBehavior.markDirty()})};
_.p.onToggleExpanded=function(W){!this.collapsible||W&&(_.iP(W).tagName==="A"||_.p2(_.AH(W),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.p.setCollapsed=function(W){this.collapsible&&(this.collapsed=W,_.wV(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.p.handleCollapsedFromData=function(W){if(W){var B=W.playlistPanelCollapseState;B==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||B==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),B=B==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==B&&this.setCollapsed(B)):this.currentPlaylistId!==W.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(B=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==B&&this.setCollapsed(B),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=W.playlistId}};
_.p.handleDrop=function(W){var B=W.currDragItem;W=B.data.playlistSetVideoId;var z=_.mr(B.parentNode.childNodes,B),G=void 0;z>0&&(G=B.parentNode.childNodes[z-1].data.playlistSetVideoId);B=_.sr();if(B.responsePlaylistData&&B.responsePlaylistData.contents){var Y=Hj0(W,B.responsePlaylistData);B.responsePlaylistData=(0,_.mP.unsafeClone)(B.responsePlaylistData);SXX(B.responsePlaylistData.contents,Y,z);B.queueProxy?lYH(B.queueProxy,Y,z,W,G):B.playlistProxy&&lYH(B.playlistProxy,Y,z,W,G);_.Pz(B,_.Z$(B,B.response?
B.response.autoplayRenderer:void 0))}};
_.p.handleDarkModeChange=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.p.colorPaletteChanged=function(){var W,B=((W=this.data)==null?void 0:W.contents)||[],z;W=_.A(B);for(B=W.next();!B.done;B=W.next()){B=B.value;var G=void 0;if((G=B.playlistPanelVideoRenderer)==null?0:G.selected){W=B.playlistPanelVideoRenderer;G=B=void 0;(z=this.isDarkTheme?(B=W)==null?void 0:B.darkColorPalette:(G=W)==null?void 0:G.lightColorPalette)&&_.Ky(this.hostElement,z);break}}this.useColorPalette=!!z};
_.G5.Object.defineProperties(f0.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var W,B;return!((W=this.data)==null||!W.playlistId)&&!((B=this.data)==null||!B.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var W=_.dO().resolve(_.Y8(_.wW)),B;if(((B=this.data)==null?0:B.contents)&&(W==null?0:W.hasAutoplayData())){var z;if(((z=this.playlistLoopStateEntity)==null?void 0:z.state)==="PLAYLIST_LOOP_STATE_ONE"){if(W=this.data.currentIndex,W!==void 0){var G,Y;var d=(G=this.data.contents[W])==null?void 0:(Y=G.playlistPanelVideoRenderer)==null?void 0:Y.title}}else{var E,v=(E=_.k(W.getAutoplayEndpoint(),_.W0))==null?void 0:E.videoId,c,J;d=(c=this.data.contents.find(function(g){var t;
return((t=g.playlistPanelVideoRenderer)==null?void 0:t.videoId)===v}))==null?void 0:(J=c.playlistPanelVideoRenderer)==null?void 0:J.title}return d}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)!=null&&W.nextVideoLabel?this.nextVideoTitle?_.zR(this.data.nextVideoLabel)+":":yJ4:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?0:W.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.r("web_mix_long_byline_from_data"))return _.Bg(qNQ);var B;return(B=this.data)==null?void 0:B.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G=(W=this.data)==null?void 0:(B=W.playlistButtons)==null?void 0:(z=B.menuRenderer)==null?void 0:z.topLevelButtons;if(G)for(W=_.A(G),B=W.next();!B.done;B=W.next())if(B=B.value,B.playlistLoopButtonRenderer)return B.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var W;return!!(this.collapsed&&((W=this.data)==null?0:W.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.r("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
f0.prototype.colorPaletteChanged=f0.prototype.colorPaletteChanged;f0.prototype.onPlaylistLockupNowPlaying=f0.prototype.onPlaylistLockupNowPlaying;f0.prototype.updateNowPlayingOverlay=f0.prototype.updateNowPlayingOverlay;f0.prototype.onFullscreenChanged=f0.prototype.onFullscreenChanged;f0.prototype.onFullBleedPlayerChanged=f0.prototype.onFullBleedPlayerChanged;f0.prototype.dataChanged=f0.prototype.dataChanged;f0.prototype.hiddenChanged=f0.prototype.hiddenChanged;f0.prototype.collapseChanged=f0.prototype.collapseChanged;
f0.prototype.onRenderStamperFinished=f0.prototype.onRenderStamperFinished;f0.prototype.onMouseLeave=f0.prototype.onMouseLeave;f0.prototype.onMouseEnter=f0.prototype.onMouseEnter;_.Q([_.h(_.Mp),_.y("design:type",Object)],f0.prototype,"ironResizableBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(wWd.YtPlaylistPanelBehavior),_.y("design:type",Object)],f0.prototype,"ytPlaylistPanelBehavior",void 0);_.Q([_.h(_.hu.YtTaskEmitterBehavior),_.y("design:type",Object)],f0.prototype,"ytTaskEmitterBehavior",void 0);_.Q([_.h(_.toQ),_.y("design:type",Object)],f0.prototype,"ytReorderableBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],f0.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],f0.prototype,"ytdReduxBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],f0.prototype,"actionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],f0.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],f0.prototype,"autoplayData",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],f0.prototype,"withinMiniplayer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],f0.prototype,"minimizePipBreakages",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],f0.prototype,"updatedCoursePanel",void 0);_.Q([_.F({computed:"setMenuData_(data)"}),_.y("design:type",Object)],f0.prototype,"menuRendererData",void 0);_.Q([_.F({computed:"computeOverflowMenuData(data)"}),_.y("design:type",Object)],f0.prototype,"overflowMenuDataTopRow",void 0);_.Q([_.F({computed:"computeOverflowMenuData(data)"}),_.y("design:type",Object)],f0.prototype,"overflowMenuData",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],f0.prototype,"hideHeaderText",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],f0.prototype,"useColorPalette",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.y("design:type",Boolean)],f0.prototype,"collapsible",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],f0.prototype,"collapsed",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],f0.prototype,"hidden",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.y("design:type",Boolean)],f0.prototype,"hasPlaylistButtons",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.y("design:type",Boolean)],f0.prototype,"hasSeparateSaveButton",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.y("design:type",Boolean)],f0.prototype,"hasToolbar",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.y("design:type",String)],f0.prototype,"playlistType",void 0);_.Q([_.F(),_.y("design:type",Object)],f0.prototype,"isHovered",void 0);_.Q([_.F({selectorArgs:["playlistLoopStateEntityKey"],selector:_.cby}),_.y("design:type",Object)],f0.prototype,"playlistLoopStateEntity",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],f0.prototype,"modernPanels",void 0);_.Q([_.F({value:56}),_.y("design:type",Number)],f0.prototype,"scrollMargin",void 0);_.Q([_.F({computed:"computeCanReorder(data)"}),_.y("design:type",Boolean)],f0.prototype,"canReorder",void 0);_.Q([_.F(),_.y("design:type",Object)],f0.prototype,"expandLabel",void 0);_.Q([_.F(),_.y("design:type",Object)],f0.prototype,"collapseLabel",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],f0.prototype,"isFloating",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],f0.prototype,"metaPanel",void 0);_.Q([_.F({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.y("design:type",String)],f0.prototype,"trailingIcon",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],f0.prototype,"isDarkTheme",void 0);
_.Q([_.F({selector:_.xO}),_.y("design:type",Boolean)],f0.prototype,"miniplayerIsActive",void 0);_.Q([_.F({selector:function(W){return W.watch.playerState}}),
_.y("design:type",Number)],f0.prototype,"playerState",void 0);_.Q([_.F({selector:_.ym}),_.y("design:type",Boolean)],f0.prototype,"isFullscreen",void 0);_.Q([_.F({selector:_.Qm}),_.y("design:type",Boolean)],f0.prototype,"isTheaterMode",void 0);_.Q([_.F(),_.y("design:type",Object)],f0.prototype,"activeNowPlayingRenderer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],f0.prototype,"moveThreeDotMenuToTopRow",null);
_.Q([_.H("data","autoplayData","playlistLoopStateEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],f0.prototype,"nextVideoTitle",null);_.Q([_.H("data","nextVideoTitle"),_.y("design:type",String),_.y("design:paramtypes",[])],f0.prototype,"nextVideoLabel",null);_.Q([_.H("collapsed"),_.y("design:type",String),_.y("design:paramtypes",[])],f0.prototype,"buttonAriaLabel",null);
_.Q([_.H("data","playlistId","longBylineText"),_.y("design:type",Object),_.y("design:paramtypes",[])],f0.prototype,"mixLongByLine",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],f0.prototype,"playlistLoopStateEntityKey",null);_.Q([_.IN("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f0.prototype,"onMouseEnter",null);
_.Q([_.IN("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f0.prototype,"onMouseLeave",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data","collapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],f0.prototype,"showNextVideoHeader",null);_.Q([_.IN("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f0.prototype,"onRenderStamperFinished",null);
_.Q([_.oN("collapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f0.prototype,"collapseChanged",null);_.Q([_.oN("hidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f0.prototype,"hiddenChanged",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f0.prototype,"dataChanged",null);
_.Q([_.H("isTheaterMode","isFullscreen"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],f0.prototype,"isFullBleedPlayer",null);_.Q([_.oN("isTheaterMode","isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f0.prototype,"onFullBleedPlayerChanged",null);_.Q([_.oN("isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f0.prototype,"onFullscreenChanged",null);
_.Q([_.oN("playerState","miniplayerIsActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f0.prototype,"updateNowPlayingOverlay",null);_.Q([_.IN("yt-playlist-lockup-now-playing-active"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],f0.prototype,"onPlaylistLockupNowPlaying",null);
_.Q([_.oN("data","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f0.prototype,"colorPaletteChanged",null);_.Q([_.u({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],f0);
_.n9F=_.sV()(f0,"ytd-playlist-panel-renderer",function(){if(mqM===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);mqM=W}W=mqM;return W},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var Nm7;var O1=function(){var W=_.S.apply(this,arguments)||this;W.modern=_.r("web_button_rework");return W};
_.C(O1,_.S);O1.prototype.computeShouldButtonBeVertical=function(W,B){return W||B};
O1.prototype.onYtServiceRequestSent=function(W,B){(W=_.k(B.endpoint,_.yQ))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.bj("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:W.status})):this.handleLikeEndpoint(W))};
O1.prototype.computelikeStatusEntityKey=function(W){return W==null?void 0:W.likeStatusEntityKey};
O1.prototype.handleLikeEndpoint=function(W){W.status==="LIKE"?this.JSC$17079_ytdDislikeToggleButtonRenderer.toggle(!1):W.status==="DISLIKE"?this.JSC$17079_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17079_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17079_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.G5.Object.defineProperties(O1.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var W;return oVt(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(W=this.likeStatusEntity)==null?void 0:W.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var W;if(this.data&&((W=this.data)==null||!W.hideDislikeButton)){var B;return oVt(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(B=this.likeStatusEntity)==null?void 0:B.likeStatus)}}}});
O1.prototype.onYtServiceRequestSent=O1.prototype.onYtServiceRequestSent;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],O1.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],O1.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],O1.prototype,"vertical",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],O1.prototype,"textTransform",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],O1.prototype,"useShortsIcon",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],O1.prototype,"underIconLabel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],O1.prototype,"modern",void 0);_.Q([_.F({value:"left"}),_.y("design:type",String)],O1.prototype,"buttonTooltipPosition",void 0);
_.Q([_.F(),_.y("design:type",Object)],O1.prototype,"overrides",void 0);_.Q([_.Hf("#like-button"),_.y("design:type",Object)],O1.prototype,"JSC$17079_ytdLikeToggleButtonRenderer",void 0);_.Q([_.Hf("#dislike-button"),_.y("design:type",Object)],O1.prototype,"JSC$17079_ytdDislikeToggleButtonRenderer",void 0);_.Q([_.H("data","likeStatusEntity.likeStatus","useShortsIcon"),_.y("design:type",Object),_.y("design:paramtypes",[])],O1.prototype,"likeButton",null);
_.Q([_.H("data","likeStatusEntity.likeStatus","useShortsIcon"),_.y("design:type",Object),_.y("design:paramtypes",[])],O1.prototype,"dislikeButton",null);_.Q([_.F({computed:"computelikeStatusEntityKey(data)"}),_.y("design:type",String)],O1.prototype,"likeStatusEntityKey",void 0);_.Q([_.F({selectorArgs:["likeStatusEntityKey"],selector:NE}),_.y("design:type",Object)],O1.prototype,"likeStatusEntity",void 0);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],O1.prototype,"onYtServiceRequestSent",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],O1);
var $qR=_.sV()(O1,"ytd-like-button-renderer",function(){if(Nm7===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);Nm7=W}W=Nm7;return W},{mode:1});_.Lc7={};
_.Lc7.YtConditionalRendererBehavior=[_.U.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(W,B){var z=this,G,Y;return _.T(function(d){switch(d.nextAddress){case 1:if(!B)return z.hidden=!0,z.showSpinner=!1,d.return();if((G=W)==null?0:(Y=G.visibilityCondition)==null?0:Y.mode)switch(W.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return d.jumpTo(5);default:return d.jumpTo(6)}z.showSpinner=
!1;z.hidden=!0;return d.yield(z.shouldShow_(W),4);case 4:z.hidden=!d.yieldResult;d.jumpTo(0);break;case 5:return d.yield(z.shouldShow_(W),8);case 8:z.showSpinner=d.yieldResult;z.hidden=!1;d.jumpTo(0);break;case 6:return z.showSpinner=!1,d.yield(z.shouldShow_(W),9);case 9:z.hidden=!d.yieldResult,_.HG(d)}})},
shouldShow_:function(W){return W&&W.supportedDatas&&W.supportedDatas.rendererVisibilityConditionData&&W.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(W.supportedDatas.rendererVisibilityConditionData.showIf):W&&W.visibilityCondition&&W.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(W.visibilityCondition.showIf):W&&W.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(W.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(W){switch(W){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(W){switch(W){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var W=_.c0(this.hostElement,"yt-get-mdx-status");return W.length==1&&W[0].connected},
isLocationPermissionGranted_:function(){var W;return _.T(function(B){return B.nextAddress==1?navigator.permissions?B.yield(navigator.permissions.query({name:"geolocation"}),3):B.jumpTo(2):B.nextAddress!=2?(W=B.yieldResult,B.return(Promise.resolve(W.state==="granted"))):B.return(Promise.resolve(!1))})}}];var UqM=function(W,B){B=B===void 0?{}:B;var z=function(G){var Y=document.createElement(W),d;var E=(d=Y.polymerController)!=null?d:Y;lCQ(Y,E,G,B);return Y};
z.debugName=W+" (CoW wrapped)";return z}("yt-icon",{callbackProps:["onKeydown"]}),MPF=_.r("kevlar_use_wil_icons")?_.m(function(W){var B=W.icon;
var z=W.active;var G=W.className;var Y=W.style;var d=W.dataSelected;var E=W.dataDisabled;var v=W.role;var c=W.themeOverride;var J=W.animateIcon;var g=W.ariaHidden;var t=W.ariaExpanded;var P=W.ariaLabel;var Z=W.tabindex;var l=W.id;var b=W.iconFilter;var O=W.onKeydown;var K=function(){var q=B==null?void 0:B(),n=null,L=void 0;q&&(q=npM(q),q=MBX(q),q.length&&(n=q[1],L=q[0]));return{iconName:n,iconSetName:L}},e=function(){return NZM(K().iconName,z==null?void 0:z(),void 0,void 0,K().iconSetName,_.dO().resolve(_.C8))},
a=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:b==null?void 0:b()}};
return _.w(_.V,{cond:J,then:function(){return _.w(UqM,{icon:B,active:z,className:G,style:Y,dataSelected:d,dataDisabled:E,role:v,themeOverride:c,ariaHidden:g,ariaExpanded:t,ariaLabel:P,tabindex:Z,id:l,iconFilter:b,onKeydown:O})},
else:function(){return _.w(_.V,{cond:e,then:function(q){return _.w("span",{class:_.kG("ytIconWrapperHost",G),role:v,"aria-label":P,"aria-hidden":g,tabindex:function(){return isNaN(Number(Z==null?void 0:Z()))?void 0:Number(Z==null?void 0:Z())},
id:l,style:Y,"on:keydown":_.lF(function(n){return void(O==null?void 0:O(n))})},_.w(rO2,{data:q,
options:a}))}})}})},"Oe"):UqM;var aO9=function(W){var B=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];p2R();_.BV("ytglobal.ytUtilActivityCallback_",function(){_.wV(W,"yt-user-activity")});
new BT(function(){return B.JSC$17095_onMouseMove});
document.addEventListener("scroll",function(){return B.onScroll});
window.addEventListener("resize",function(){return B.onResize})},R0T=function(W,B,z){B in W.eventJobIds||(z=_.FU().addLowPriorityJob(function(){_.zi();
delete W.eventJobIds[B]},z),W.eventJobIds[B]=z)};
aO9.prototype.onScroll=function(W){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):W.target===document&&R0T(this,"scroll",200)};
aO9.prototype.onResize=function(){R0T(this,"resize",200)};
aO9.prototype.JSC$17095_onMouseMove=function(){R0T(this,"mousemove",100)};
_.H$=function(W){W.scrollEventsToIgnore+=1;W.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){W.scrollEventsToIgnore--},500))};var Wr6=function(W){this.element=W;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
Wr6.prototype.showFeedbackDialog=function(W,B,z,G){var Y=Bkb();if(!Y)return!1;var d=uK0();d.productId=Y;B&&(d.flow="submit",d.report={description:B});z&&(Bkb()==="59"?d.callback=_.D5(function(){_.Sy("userFeedbackEvent",{});z()}):d.callback=_.D5(z));
d.bucket=G||_.eD("GOOGLE_FEEDBACK_BUCKET","Other");z8Y(d);W=GT0(this,"GFEEDBACK",W);try{_.q8u(d,W)}catch(E){return _.xr(E),!1}return!0};
Wr6.prototype.showHelpDialog=function(W,B,z){var G=this,Y=Bkb();if(!Y)return!1;var d={helpCenterPath:"/youtube",productData:GT0(this,"GUIDED_HELP",z)};z8Y(d);var E=uK0();E.context=W||d.productData.context||"default";E.defaultHelpArticleId=B;E.enableSendFeedback=!0;(_.q6("gapi.load")||function(v,c){return c()})("client",function(){try{var v=g$4(Y,d);
if(_.r("web_always_load_chat_support")&&!G.chatSupportLoaded)try{v.JSC$9976_loadChatSupport(E),G.chatSupportLoaded=!0}catch(c){}v.startHelp(E)}catch(c){_.xr(c)}})};
var Bkb=function(){var W=_.eD("GOOGLE_FEEDBACK_PRODUCT_ID");W||_.xr(Error("ji"));return W},z8Y=function(W){W&&(W.locale=_.r("kevlar_help_use_locale")?_.eD("INNERTUBE_CONTEXT_HL","en"):_.eD("HTML_LANG","en"))},GT0=function(W,B,z){var G=W.productData;
delete G.origin;G.device=_.Py();var Y;a:{if(Y=document.createElement("canvas")){var d=Y.getContext("experimental-webgl",{stencil:!0});if(d){var E=d.getExtension("WEBGL_debug_renderer_info");if(E){Y=d.getParameter(E.UNMASKED_RENDERER_WEBGL);break a}}if(d=Y.getContext("webgl")){Y=d.getParameter(d.RENDERER);break a}}Y=null}G.gpu=Y;G.isSDC=!!_.eD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(Y=_.eD("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.mP.extend(G,Y);_.Xxu(B,G);_.KXy(G);(W=_.wV(W.element,"yt-get-autonav-pause-debug-state"))&&
W.length&&(G.autonav_pause_state=W[0]);W=_.Fi();G.browser_resolution=W.width+"\u00d7"+W.height+"@"+(window.devicePixelRatio||1)+"x";z&&_.mP.extend(G,z);return G};
Wr6.prototype.resetProductData=function(){this.productData={}};var YX1=function(W){this.feedbackManager=new Wr6(W)};
YX1.prototype.showFeedbackDialog=function(W,B,z,G){return this.feedbackManager.showFeedbackDialog(W,B,z,G)};
YX1.prototype.showHelpDialog=function(W,B,z){return this.feedbackManager.showHelpDialog(W,B,z)};var dRr=function(){this.baseUrl="";this.aTag=document.createElement("a")},ZZU=function(W,B,z){z=z===void 0?{}:z;
z.pbj||(z.pbj=1);z=_.ygX(B,z);W.baseUrl&&z&&!_.RJ(z)[1]&&!_.WS(z)&&(B=W.baseUrl,ix(B,"/")&&(B=B.slice(0,-1)),_.A0(z,"/")&&(z=z.slice(1)),z=B+"/"+z);$h(W.aTag,_.DR(z||""));return W.aTag.href};
dRr.prototype.fetchData=function(W){return _.FXt(W)};
dRr.prototype.postData=function(W,B){var z={method:"POST"};if(B){for(var G=_.A(Object.keys(B)),Y=G.next();!Y.done;Y=G.next()){Y=Y.value;var d=B[Y];_.$t(d)&&(B[Y]=JSON.stringify(d))}z.postParams=B}return _.FXt(W,z)};
_.rNR=function(W,B,z,G,Y){W=ZZU(W,B,z);if(!W)throw G=Error("ki"),Object.assign(G,{params:B}),G;return _.FXt(W,Y,G)};
dRr.prototype.requestDataForServiceEndpoint=function(W,B){if(_.k(W,_.Wev))return this.fetchData("/getAccountSwitcherEndpoint");B=B||{};var z=_.k(W,QHH);z?B.se=z.base64EncodedServiceEndpoint:B.sej=JSON.stringify(W);(z=_.m1())&&_.r("enable_service_ajax_csn")&&(B.csn=z);B.theme=_.Ks();_.k(W,adv)&&_.eD("DELEGATION_CONTEXT")&&(B.delegation_context=JSON.stringify(_.eD("DELEGATION_CONTEXT")));z=null;for(var G in W)if(ix(G,"Endpoint")||ix(G,"Command")){z=G;break}if(!z){var Y=Error("li");Object.assign(Y,{params:W});
_.x$y(Y,"WARNING");return new _.Vx(function(E,v){v(Y)})}G={name:z};
var d;(z=(d=_.k(W,_.P0))==null?void 0:d.signal)&&(G.signal=z);(d=_.Uw(window.location.href))&&d.internalcountrycode&&(G.internalcountrycode=d.internalcountrycode);d="/service_ajax";_.r("debug_forward_web_query_parameters")&&(d=_.Glu(d,window.location.search));d=_.aJ(d,G);W.clickTrackingParams&&_.Yq(d,{itct:W.clickTrackingParams});return this.postData(d,B)};_.pyO=new _.t1("GFEEDBACK_TOKEN");var A0r;var iuq;var Etr;var Tkb;var X_=function(){var W=_.S.apply(this,arguments)||this;W.compact=!1;W.dismissButtonDisabled=!1;return W};
_.C(X_,_.S);X_.prototype.computeHasIcon_=function(W){return!!W};
X_.prototype.isSignInIcon_=function(W){return W=="yt-icons:prompted_sign_in"};
X_.prototype.onDismissButtonClick=function(){var W;this.data.disableOnClick&&!this.dismissButtonDisabled&&(W=this.data.dismissButton)!=null&&W.buttonRenderer&&(this.dismissButtonDisabled=!0)};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Lc7.YtConditionalRendererBehavior),_.y("design:type",Object)],X_.prototype,"ytConditionalRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],X_.prototype,"data",void 0);_.Q([_.F({computed:"computeIcon_(data.icon)"}),_.y("design:type",Object)],X_.prototype,"icon_",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.y("design:type",Boolean)],X_.prototype,"hasIcon_",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.y("design:type",Boolean)],X_.prototype,"signInIcon_",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],X_.prototype,"compact",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],X_.prototype,"dismissButtonDisabled",void 0);
_.Q([_.NJ({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],X_);
_.D(X_,"yt-player-error-message-renderer",function(){if(Tkb===void 0){var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Etr===void 0&&(Etr=document.createElement("template"));var G=Etr;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Tkb=W}W=Tkb;return W},{mode:2});var vtj;var c0q;var K0=function(){return _.S.apply(this,arguments)||this};
_.C(K0,_.S);K0.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
K0.prototype.computeIcon_=function(W){return W?"yt-icons:"+W.iconType.toLowerCase():"error_outline"};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],K0.prototype,"data",void 0);_.Q([_.F({computed:"computeIcon_(data.icon)"}),_.y("design:type",Object)],K0.prototype,"icon_",void 0);_.Q([_.NJ({is:"yt-player-kav-renderer",disableElementRegistration:!0})],K0);
_.D(K0,"yt-player-kav-renderer",function(){if(c0q===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;vtj===void 0&&(vtj=document.createElement("template"));var G=vtj;z.call(B,G.content.cloneNode(!0),W.content.firstChild);c0q=W}W=c0q;return W},{mode:2});var xxR=_.ak(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.Vm(_.m(function(W){var B=_.LG("div"),z=_.A(_.g4(0,void 0,"jxh75d")),G=z.next().value,Y=z.next().value;z=_.A(_.g4(null,void 0,"F5Zm8"));var d=z.next().value,E=z.next().value;_.jD(function(){Dxr(B.value,Y,E);B.value.scrollIntoView()});
z=QSx.bind(null,W.data,G);zp("resize",function(){var v=d();if(G()===1&&v!==null){var c;(c=window.grecaptcha)==null||c.reset(v)}});
return _.w("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.w("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.w("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var v,c;return(v=W.data().accessibility)==null?void 0:(c=v.accessibilityData)==null?void 0:c.label}),_.w(_.r0,{text:z,
className:_.kG("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.w("div",{el:B,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Pe"),"yt-player-captcha-view-model",{props:{data:_.wS}});var yRv=!1;_.wy6=_.m(function(W){var B=W.data;return _.w("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.w(_.V,{cond:function(){return B().icon},
then:function(z){return _.w("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.w(_.iF,{data:z,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.w(_.V,{cond:function(){return B().title},
then:function(z){return _.w("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.w(_.r0,{text:z}))}}),_.w(_.V,{cond:function(){return B().description},
then:function(z){return _.w("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.w(_.r0,{text:z}))}}),_.w(_.Sc,{data:function(){return B().primaryButton}},{buttonViewModel:function(z){return _.w(_.ex,{data:z.data,
className:"interstitialViewModelFlexItem"})}}),_.w(_.Sc,{data:function(){return B().secondaryButton}},{buttonViewModel:function(z){return _.w(_.ex,{data:z.data,
className:"interstitialViewModelFlexItem"})}}))},"Qe");
_.wy6.idomCompat=!0;var VQn=_.m(function(W){var B=W.data;_.$l();return _.w("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.w("div",{class:"playerInterstitialRendererScrim"},_.w(_.Sc,{data:function(){return B().content}},{interstitialViewModel:_.wy6})))},"Re");
VQn.idomCompat=!0;_.Vm(VQn,"yt-player-interstitial-renderer",{props:{data:_.kz}});var uD=function(){var W=_.S.apply(this,arguments)||this;W.noBackground=!1;W.compact=!1;W.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return W};
_.C(uD,_.S);uD.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"}}}};
uD.prototype.onUpdatePlayerErrorMessageCommand_=function(W){if(_.k(W,zN6)){var B;if(W=(B=_.k(W,zN6))==null?void 0:B.newPlayerErrorMessageRenderer)this.data=W}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],uD.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],uD.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],uD.prototype,"status",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],uD.prototype,"noBackground",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],uD.prototype,"compact",void 0);_.Q([_.NJ({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],uD);
var J0j=_.sV()(uD,"yt-playability-error-supported-renderers",function(){if(iuq===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;A0r===void 0&&(A0r=document.createElement("template"));var G=A0r;z.call(B,G.content.cloneNode(!0),W.content.firstChild);iuq=W}W=iuq;return W},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var q$t=void 0,N9D=void 0;var UxR=new B4R;var gtr=function(W){this.store=W;this.u5S=new _.YdF},heD=function(W,B,z){var G,Y;
if(!(Y=((G=B.playabilityStatus)==null?void 0:G.status)!=="OK")){W=W.store;var d;Y=B.offlineState&&((d=B.videoDetails)==null?0:d.videoId)?_.r("enable_pl_r_c_cd")?Piv(W.getState().entities,B.videoDetails.videoId):!!NPt(W.getState().entities,B.videoDetails.videoId):!1}if(Y)return!0;Y=B62(B);if(Y===1){if(_.r("ab_v_vid_sig")){var E,v=(E=B.videoDetails)==null?void 0:E.videoId;if(!v||!z||v!==z){var c;B=new _.oX("282054944_vid",{p4h:z,oSk:(c=B.videoDetails)==null?void 0:c.videoId});_.jy(B)}}return!0}vIT=
0;var J,g;c=(v=B.auxiliaryUi)==null?void 0:(J=v.messageRenderers)==null?void 0:(g=J.bkaEnforcementMessageViewModel)==null?void 0:g.displayType;if(Y!==3&&(c==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||c==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;c={reason:_.Aq(_.kq("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.r("ks_something_wrong_learn_more")?gsr("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Aq(_.kq("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:_.Aq("282054944")};tQK(B,{playerErrorMessageRenderer:c});return!1},Hvv=function(W,B){if(HWu(B)){_.k_(1,!0);
var z=(z=HWu(B))&&_.nVk()?z:void 0;z?(tQK(B,{enforcementMessageViewModel:z}),W.u5S.increment("IN_PLAYER"),_.k_(5)):(W.u5S.increment("SKIP_DISPLAY"),_.k_(2))}},tQK=function(W,B){W.playabilityStatus=Object.assign({},W.playabilityStatus,{status:"ERROR",
errorScreen:B});W.videoDetails=void 0};
gtr.prototype.handleResponse=function(W,B){if(W.playabilityStatus){var z,G,Y,d=(B==null?void 0:(z=B.innerTubeRequest)==null?void 0:z.videoId)||(B==null?void 0:(G=B.innerTubeRequest)==null?void 0:(Y=G.playerRequest)==null?void 0:Y.videoId);heD(this,W,d)&&Hvv(this,W)}};
gtr[gR]=[ir];var IlR=new _.t1("ADBLOCK_DETECTION_SERVICE_TOKEN");var a6=function(W){this.p1X=W};
a6.prototype.bindInnertubeChallengeFetcher=function(W){this.p1X.bicf(W)};
a6.prototype.registerChallengeFetchedCallback=function(W){this.p1X.bcr(W)};
a6.prototype.getLatestChallengeResponse=function(){return this.p1X.blc()};var sDK;sDK=_.ak(["https://static.doubleclick.net/instream/ad_status.js"]);_.Px0=_.sY(sDK);var lvb;_.e5=function(W,B,z){var G=this;this.network=W;this.options=B;this.networkStatusManager=z;this.f9=null;if(B.useBotguardEverywhere){var Y=new _.sl;this.f9=Y.promise;_.Yt.ytAtRC&&_.OM(_.fg,function(){var d,E;return _.T(function(v){if(v.nextAddress==1){if(!_.Yt.ytAtRC)return v.return();d=ZuO(null);return v.yield(G.fT(d),2)}E=v.yieldResult;_.Yt.ytAtRC&&_.Yt.ytAtRC(JSON.stringify(E));_.HG(v)})});
pwD().then(function(d){var E,v,c,J;return _.T(function(g){if(g.nextAddress==1)return d.bindInnertubeChallengeFetcher(function(t){return G.fT(ZuO(t))}),g.yield(jJy(),2);
E=g.yieldResult;v=d.getLatestChallengeResponse();c=v.challenge;if(!c)throw Error("mi");J={challenge:c,nD:MF(c),vm:E,bgChallenge:new Lk};Y.resolve(J);d.registerChallengeFetchedCallback(function(t){t=t.challenge;if(!t)throw Error("ni");t={challenge:t,nD:MF(t),vm:E,bgChallenge:new Lk};G.f9=Promise.resolve(t)});
_.HG(g)})})}else B.preload&&r0Y(this,new Promise(function(d){_.CG(_.fg,function(){d(kTq(G))},0)}))};
lvb=function(W){var B={preload:!0,useBotguardEverywhere:!0},z=!1;if(typeof B==="boolean")var G={preload:B};else typeof B==="undefined"?G={preload:!0}:(G=B,z=!!B.tQh);B=z?void 0:new _.ng;_.e5.instance=new _.e5(W,G,B);return _.e5.instance};
_.e5.prototype.yeK=function(){var W=this;return _.T(function(B){return B.nextAddress==1?B.yield(Promise.race([W.f9,null]),2):B.return(!!B.yieldResult)})};
_.e5.prototype.poX=function(W,B,z){var G=this,Y,d,E;return _.T(function(v){G.f9===null&&r0Y(G,kTq(G));Y=!1;d={};E=function(){var c,J,g;return _.T(function(t){switch(t.nextAddress){case 1:return t.yield(G.f9,2);case 2:c=t.yieldResult;d.challenge=c.challenge;if(!c.vm){"c1a"in c.nD&&(d.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");t.jumpTo(3);break}J=Object.assign({},{c:c.challenge,e:W},B);_.kA(t,4);Y=!0;return t.yield(c.vm.snapshot({ym:J}),6);case 6:(g=t.yieldResult)?d.webResponse=g:d.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.Nn(t,3);break;case 4:_.h6(t),d.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(W==="ENGAGEMENT_TYPE_PLAYBACK"){var P=c.nD,Z={};if(P.c6a){var l=Number(_.eD("DCLKSTAT",0));Z.reportingStatus=String(Number(P.c)^(isNaN(l)?0:l))}P.c6b&&(Z.broadSpectrumDetectionResult=String(Number(P.c)^Number(_.eD("CATSTAT",0))));d.adblockReporting=Z}return t.return(d)}})};
return v.return(Promise.race([E(),Cx1(z,function(){var c=Object.assign({},d);Y&&(c.error="ATTESTATION_ERROR_VM_TIMEOUT");return c})]))})};
var ZuO=function(W){var B={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};W&&(B.interpreterHash=W);return B},kTq=function(W,B){B=B===void 0?0:B;
var z,G,Y,d,E,v,c,J,g,t,P,Z;return _.T(function(l){switch(l.nextAddress){case 1:z=ZuO(d5F().kok);if(_.r("att_fet_ks"))return _.kA(l,7),l.yield(W.fT(z),9);_.kA(l,4);return l.yield(Iv6(W,z),6);case 6:E=l.yieldResult;Y=E.xOh;d=E.gok;G=E;_.Nn(l,3);break;case 4:return _.h6(l),_.Oc(Error("oi`"+B)),otO(W,864E5),l.return({challenge:"",nD:{},vm:void 0,bgChallenge:void 0});case 9:G=l.yieldResult;if(!G)throw Error("pi");if(!G.challenge)throw Error("qi");Y=G.challenge;d=MF(Y);if("c1a"in d&&(!G.bgChallenge||!G.bgChallenge.program))throw Error("ri");
_.Nn(l,3);break;case 7:v=_.h6(l);_.Oc(v);B++;if(B>=5)return _.Oc(Error("oi`"+B)),otO(W,864E5),l.return({challenge:"",nD:{},vm:void 0,bgChallenge:void 0});c=1E3*Math.pow(2,B-1)+Math.random()*1E3;return l.return(new Promise(function(b){_.CG(_.fg,function(){b(kTq(W,B))},c)}));
case 3:J=dau(d);otO(W,J*1E3);g=void 0;if(!("c1a"in d&&G.bgChallenge)){l.jumpTo(10);break}t=YaQ(G.bgChallenge);_.kA(l,11);return l.yield(AID(d5F(),t),13);case 13:_.Nn(l,12);break;case 11:return P=_.h6(l),_.Oc(P),l.return({challenge:Y,nD:d,vm:g,bgChallenge:t});case 12:return _.kA(l,14),g=new _.La({challenge:t,iCq:{dz:"aGIf"}}),l.yield(g.aAZ,16);case 16:_.Nn(l,10);break;case 14:Z=_.h6(l),_.Oc(Z),g=void 0;case 10:return l.return({challenge:Y,nD:d,vm:g,bgChallenge:t})}})};
_.e5.prototype.fT=function(W){var B=this,z;return _.T(function(G){z=B.networkStatusManager;if(!z||z.isNetworkAvailable())return G.return(B.network.fT(W));_.D4("att_pna",void 0,"attestation_challenge_fetch");return G.return(new Promise(function(Y){z.listenOnce("publicytnetworkstatus-online",function(){B.network.fT(W).then(Y)})}))})};
var h81=function(W){if(!W)throw Error("pi");if(!W.challenge)throw Error("qi");var B=W.challenge,z=MF(B);if("c1a"in z&&(!W.bgChallenge||!W.bgChallenge.program))throw Error("ri");return Object.assign({},W,{xOh:B,gok:z})},Iv6=function(W,B){var z,G,Y,d,E;
return _.T(function(v){switch(v.nextAddress){case 1:z=void 0,G=0,Y={};case 2:if(!(G<5)){v.jumpTo(4);break}if(!(G>0)){v.jumpTo(5);break}Y.bPF=1E3*Math.pow(2,G-1)+Math.random()*1E3;return v.yield(new Promise(function(c){return function(J){_.CG(_.fg,function(){J(void 0)},c.bPF)}}(Y)),5);
case 5:return _.kA(v,7),v.yield(W.fT(B),9);case 9:return d=v.yieldResult,v.return(h81(d));case 7:z=E=_.h6(v),E instanceof Error&&_.Oc(E);case 8:G++;Y={bPF:void 0};v.jumpTo(2);break;case 4:throw z;}})},r0Y=function(W,B){W.f9=B},Huq=function(W){var B,z,G;
return _.T(function(Y){if(Y.nextAddress==1)return Y.yield(Promise.race([W.f9,null]),2);B=Y.yieldResult;var d=kTq(W);W.f9=d;(z=B)==null||(G=z.vm)==null||G.dispose();_.HG(Y)})},otO=function(W,B){var z=Date.now()+B,G=function(){var Y;
return _.T(function(d){Y=z-Date.now();return Y<1E3?d.yield(Huq(W),0):(_.CG(_.fg,G,Math.min(Y,6E4)),d.jumpTo(0))})};
G()},Cx1=function(W,B){return new Promise(function(z){_.CG(_.fg,function(){z(B())},W)})};var Fr1=function(){};
Fr1.prototype.processContext=function(W){var B=_.e5.instance;if(!B)return _.Z6();var z=cSt(W);return z?new PO(B.poX(z,ECx(W),500).then(function(G){var Y;(W==null?0:(Y=W.innerTubeRequest)==null?0:Y.context)||(W.innerTubeRequest.context={});Y=W.innerTubeRequest.context;Y.request||(Y.request={});Y.request.attestationResponseData=G})):_.Z6()};var SXb=function(W){this.innertubeTransportService=W};
SXb.prototype.fT=function(W){_.D4("att_fsr",void 0,"attestation_challenge_fetch");return _.cz(this.innertubeTransportService,W,_.dD(_.p$R)).then(function(B){_.D4("att_frr",void 0,"attestation_challenge_fetch");return B})};_.bur=function(W){this.innertubeTransportService=W};var jDY=new _.t1("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var fvK=function(){},Xyf=function(W,B,z,G,Y){var d=_.eD("YPC_MB_URL");
_.MUR(d).then(function(){Oui(d,W,B,z,G,Y)})},Oui=function(W,B,z,G,Y,d){try{var E=payments.business.integration,v=payments.business.integration.Style.create().withMaterialDesignStyle(),c=E.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.r("enable_window_constrained_buy_flow_dialog")&&(c=c.usingPopupStyle("windowConstrained"));d&&(c=c.usingCloseCallback(d));var J=z?z:_.eD("YPC_GB_LANGUAGE"),g=_.eD("SESSION_INDEX");E.bootstrap.fromPaymentsUrl(W);E.bootstrap.asMashupMode(c).usingGaiaIndex(g).usingLocale(J).usingStyle(v).usingDefaultActivityStatusChangeHandler().inStandaloneContext(E.standaloneContextAuthId.forGaia()).purchaseManager(B,function(t){G&&G(t)}).load(void 0,Y)}catch(t){throw Y&&Y(t),_.jy(t),t;
}};var Krq=new _.t1("PURCHASE_MANAGER_TOKEN");var u2n=function(){var W=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return W.videos},
getContinuationsPresent:function(){return W.continuationsPresent},
setVideos:function(B){W.videos=B},
getRecommendedVideos:function(){return W.recommendedVideos},
setRecommendedVideos:function(B){W.recommendedVideos=B}}};
u2n.prototype.addVideos=function(W){W&&(this.videos=W.filter(function(B){return!!_.VUr(B)}).map(function(B){var z=_.VUr(B);
a:{var G;if(B.playlistVideoRenderer&&((G=B.playlistVideoRenderer)==null?0:G.voteSortTiebreaker))var Y=B.playlistVideoRenderer.voteSortTiebreaker;else{if(_.k(B,Wh)){var d;if(G=(Y=_.k(B,Wh))==null?void 0:(d=Y.playlistItemData)==null?void 0:d.voteSortTiebreaker){Y=G;break a}}Y=""}}return{itemId:z,videoId:_.tU2(B),voteCount:_.sMt(B),voteSortTiebreaker:Y}}),this.continuationsPresent=!!_.k(W[W.length-1],_.GH))};
var e8b=function(W,B){return W.videos.findIndex(function(z){return z.itemId===B})},mRi=function(W,B){return W.recommendedVideos.findIndex(function(z){return z.itemId===B})},xR0=function(W){W={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:W}}}}};_.dO().resolve(_.p4).resolveCommand(W)};var DRn=function(){u2n.apply(this,arguments)};
_.C(DRn,u2n);
var wED=function(W,B,z,G){if(!W.parentElem)throw Error("wi");var Y=e8b(W,B);Y===-1&&(Y=mRi(W,B),Y=Y!==-1?Y+W.videos.length:-1);if(Y===-1)throw Error("xi");var d=Y>=W.videos.length?W.recommendedVideos[Y-W.videos.length]:W.videos[Y];d.voteCount=z;d.voteSortTiebreaker=Date.now().toString();Y>=W.videos.length?W.recommendedVideos.splice(Y-W.videos.length,1):W.videos.splice(Y,1);var E=W.videos;for(var v=0,c=E.length-1;v<=c;){var J=Math.floor((v+c)/2);if(E[J].voteCount<d.voteCount)c=J-1;else if(E[J].voteCount>d.voteCount)v=
J+1;else{a:{var g=d.voteSortTiebreaker;var t=E[J].voteSortTiebreaker;if(g.length!==t.length)g=g.length>t.length;else{for(var P=0;P<g.length;P++){var Z=g.charCodeAt(P),l=t.charCodeAt(P);if(Z>l){g=!0;break a}if(Z<l)break}g=!1}}g?c=J-1:v=J+1}}E=v;if(E===-1)throw Error("yi");W.videos.splice(E,0,d);Y!==E&&QD0(W,Y,E,B,z,G)},QD0=function(W,B,z,G,Y,d){var E,v=(E=W.parentElem)==null?void 0:E.children,c=Math.min(B,z),J=Math.max(B,z);
if(v)for(E=c;E<=J;E++)v[E].style.viewTransitionName="item-"+String(E);document.startViewTransition(function(){if(W.parentElem){var g=W.parentElem.children;if(!(!g||B<0||B>=g.length||z<0||z>=g.length)){var t=g[B];if(t){t.remove();W.showRefreshPill=z>=W.videos.length-1&&W.continuationsPresent;if(!W.showRefreshPill){g=g[z]||null;var P;(P=W.parentElem)==null||P.insertBefore(t,g)}_.v0(W.parentElem,"yt-update-video-data-voting-animation",{toIdx:z,itemId:G,newVoteCount:Y,voteStatus:d,hideItem:W.showRefreshPill})}}}}).finished.then(function(){if(v)for(var g=
c;g<=J;g++)v[g].style.viewTransitionName="";
if(W.showRefreshPill)xR0(_.kq("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var t;if(t=g=(t=W.parentElem)==null?void 0:t.children[z])t=g.getBoundingClientRect(),g=t.bottom,t=!(t.top>=0&&g<=W.clientHeight);t&&(t=_.lH(B>z?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(B-z)),xR0(t))}})};var ntY=function(W,B){var z=this;W?this.innertubeTransportServicePromise=Promise.resolve(W):B&&(this.innertubeTransportServicePromise=B(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new lD(3E3,function(G){return y06(z,G)},0);
this.validateMiniAppVideoIdRateLimiter=new lD(3E3,function(G){return qX0(z,G)},1)},k0d=function(W,B){W.JSC$17208_miniAppId=B;
W.reportMiniAppValueRateLimiter=new lD(3E3,function(z){return y06(W,z)},0);
W.validateMiniAppVideoIdRateLimiter=new lD(3E3,function(z){return qX0(W,z)},1)},C5U=function(W,B){var z;
return _.T(function(G){if(G.nextAddress==1)return G.yield(W.reportMiniAppValueRateLimiter.call(B),2);z=G.yieldResult;return G.return([z,B])})},y06=function(W,B){var z,G,Y,d,E,v,c;
return _.T(function(J){switch(J.nextAddress){case 1:return J.yield(W.innertubeTransportServicePromise,2);case 2:return z=J.yieldResult,G=_.dD(cBT),Y=Date.now(),d={externalPostId:W.JSC$17208_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(Y/1E3),nanos:Math.round(Y%1E3*1E6)},intValue:""+B}},_.kA(J,3),J.yield(_.cz(z,d,G),5);case 5:E=J.yieldResult;_.Nn(J,4);break;case 3:throw v=_.h6(J),v;case 4:if(E){if("error"in E&&E.error)throw E.error;if(E.errorMetadata)throw Error("zi`"+
E.errorMetadata.status);if(c=E.userStatResult)return J.return(c);throw Error("Ai");}throw Error("Bi");}})},o9d=function(W){var B,z,G,Y,d;
_.T(function(E){switch(E.nextAddress){case 1:return E.yield(W.innertubeTransportServicePromise,2);case 2:return B=E.yieldResult,z=_.dD(cBT),G={externalPostId:W.JSC$17208_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.kA(E,3),E.yield(_.cz(B,G,z),5);case 5:Y=E.yieldResult;_.Nn(E,4);break;case 3:throw d=_.h6(E),d;case 4:if(Y==null)throw Error("Bi");if("error"in Y&&Y.error)throw Y.error;if(Y.errorMetadata)throw Error("zi`"+Y.errorMetadata.status);_.HG(E)}})};
ntY.prototype.flush=function(){var W=this;return _.T(function(B){return B.nextAddress==1?B.yield(W.reportMiniAppValueRateLimiter.flush(),2):B.yield(W.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var IOF=function(W,B){return _.T(function(z){return z.nextAddress==1?z.yield(W.validateMiniAppVideoIdRateLimiter.call(B),2):z.return(z.yieldResult)})},qX0=function(W,B){var z,G,Y,d,E,v;
return _.T(function(c){switch(c.nextAddress){case 1:return c.yield(W.innertubeTransportServicePromise,2);case 2:return z=c.yieldResult,G=_.dD(YnD),Y={videoId:B},_.kA(c,3),c.yield(_.cz(z,Y,G),5);case 5:d=c.yieldResult;_.Nn(c,4);break;case 3:throw E=_.h6(c),E;case 4:if(d){if("error"in d&&d.error)throw d.error;if(d.errorMetadata)throw Error("zi`"+d.errorMetadata.status);if(v=d.playabilityStatus)return c.return(v.status);throw Error("Ci");}throw Error("Bi");}})};
ntY[gR]=[_.Y8(_.N_),_.Y8(ebU)];var Nk0=function(){this.clientData=new Map};
Nk0.prototype.getData=function(W){return this.clientData.get(W)};var $RK=function(W){this.store=W};
$RK.prototype.handleResponse=function(W){(W=_.k(W.frameworkUpdates,Y2))&&_.CA(W,this.store)};
$RK[gR]=[_.v7];var Lri=new _.t1("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var URn={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var MQb=new _.t1("ICON_SET_TOKEN"),avn=new _.t1("ICON_URL_PROVIDER_TOKEN"),R8j=new _.t1("PREFETCH_ICONS_TOKEN"),W4f=new _.t1("ICON_MAP_FN_TOKEN");var ml={},BUi=(ml.ACCESS_TIME="clock",ml.ACCOUNT_BOX="person_account",ml.ACCOUNT_BOX_CAIRO="person_account_cairo",ml.ACCOUNT_CIRCLE="person_circle",ml.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",ml.ACCOUNT_LINKED="account_link_success",ml.ACCOUNT_UNLINKED="account_link",ml.ADD_FRIEND="people",ml.ADD_MODERATOR="shield_add",ml.ADD_TO_LIBRARY="bookmark",ml.ADD_TO_PLAYLIST="add",ml.ADD_TO_QUEUE_TAIL="list_queue",ml.ADD_TO_REMOTE_QUEUE="list_music",ml.ADD_TO_WATCH_LATER="clock",ml.ADD_VIDEO_LINK="film_strip_add",
ml.ALERT_WARN_RED="alert_triangle",ml.ARROW_BACK="arrow_left",ml.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",ml.ARROW_DROP_DOWN="chevron_down",ml.ARROW_DROP_UP="chevron_up",ml.ARROW_FORWARD="arrow_right",ml.AUDIOTRACK="audio",ml.AUTO_AWESOME="sparkle",ml.AVATAR_ANONYMOUS="person_circle",ml.AVATAR_LOGGED_OUT="person_circle",ml.BACK="arrow_left",ml.BAR_CHART="bar_graph",ml.BLOCK="slash_circle_left",ml.BLOCK_USER="slash_circle_left",ml.BOOKMARK_BORDER="bookmark",ml.BREAKING_NEWS_ALT_1="article_alert",
ml.BROADCAST_CAIRO="podcast_cairo",ml.BUG_REPORT="bug",ml.CAMERA_ALT="camera",ml.CAMPAIGN="megaphone",ml.CANCEL="x_circle",ml.CAPTIONS="closed_caption",ml.CAST_OUTLINE="chromecast",ml.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",ml.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",ml.CHAT="message_bubble_left",ml.CHAT_BUBBLE="message_bubble_empty",ml.CHAT_SPARK="spark_message_bubble_left",ml.CHECK_BOX_OUTLINE_BLANK="box_empty",ml.CHECK_CIRCLE_OUTLINE="check_circle",ml.CHECK_CIRCLE_THICK="check_circle",ml.CLARIFY=
"article_clarify",ml.CLOSED_CAPTION_SELECTED="closed_caption",ml.CLOSE="x_mark",ml.CLOUD_UPLOAD="cloud_arrow_up",ml.COLLAPSE="chevron_up",ml.COLLAPSE_CAIRO="chevron_up_cairo",ml.COLLECTION="layers",ml.COLOR_LENS="palette",ml.COMMENT="message_bubble_right",ml.CONSENT_SHIELD="person_shield",ml.CONTENT_CUT="scissors",ml.CONTENT_CUT_CAIRO="scissors_cairo",ml.COURSE=_.r("web_enable_course_icon_update")?"creator_academy":"lightbulb",ml.COURSE_CAIRO=_.r("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",ml.CREATION_LIVE="radar_live",ml.CREATION_POST="box_pencil",ml.CREATION_UPLOAD="my_videos",ml.CREATION_UPLOAD_RED="upload",ml.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",ml.CREATOR_STUDIO="youtube_studio",ml.DASHBOARD="grid_asymmetrical",ml.DELETE="trash_can",ml.DELETE_SWEEP="trash_can",ml.DESKTOP="laptop",ml.DISLIKE="thumb_down",ml.DISLIKE_SELECTED="thumb_down",ml.DISMISSAL="x_mark",ml.DISMISS_QUEUE="list_remove",ml.DONE_ALL="check_double",ml.DOWN_ARROW="arrow_down",ml.DO_NOT_DISTURB=
"slash_circle_left",ml.DRAFT="paper_corner_folded",ml.DRAG_HANDLE="bars_2",ml.EDIT="pencil",ml.EMOJI="face_very_happy",ml.EMOJI_FLAGS="flag",ml.EMOJI_OBJECTS="lightbulb",ml.EMOJI_PEOPLE="face_very_happy",ml.EMOJI_RECENT="clock",ml.EMPTY_HEART="heart",ml.EMPTY_LIKE="thumb_up",ml.ERROR_BLACK="alert_circle",ml.ERROR_OUTLINE="alert_circle",ml.EXIT_APP="arrow_in",ml.EXIT_TO_APP="arrow_in",ml.EXPAND="chevron_down",ml.EXPAND_ALL="chevron_expand",ml.EXPAND_CAIRO="chevron_down_cairo",ml.EXPAND_LESS="chevron_up",
ml.EXPAND_MORE="chevron_down",ml.EXPLORE="compass",ml.EXPLORE_DESTINATION="compass",ml.EXTERNAL_LINK="open_new",ml.FAB_UPLOAD="upload",ml.FACE_HAPPY_OUTLINE="face_happy",ml.FACT_CHECK="article_check",ml.FASHION_LOGO="fashion",ml.FASHION_LOGO_CAIRO="fashion_cairo",ml.FAVORITE="heart",ml.FEEDBACK="message_bubble_alert",ml.FEEDBACK_CAIRO="message_bubble_alert_cairo",ml.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",ml.FILL_ARROW_SOLID_UP_16="arrow_solid_up",ml.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
ml.FILTER="menu_filter",ml.FIRST_PAGE="chevron_first",ml.FLAG="flag",ml.FULL_HEART="heart",ml.GAME_CONSOLE_DPAD="game_console_dpad",ml.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",ml.GAMING_LOGO="gaming",ml.GAMING_LOGO_CAIRO="gaming_cairo",ml.GO_TO_PAGE="arrow_right",ml.GROUPS="people_group",ml.HAPPY="face_happy",ml.HEALTH_AND_SAFETY="shield_plus",ml.HELP="question_circle",ml.HELP_CAIRO="question_circle_cairo",ml.HELP_OUTLINE="question_circle",ml.HIDE="slash_circle_left",ml.IMAGE="image",
ml.INFINITY_ICON="infinity",ml.INFO="info_circle",ml.INFO_OUTLINE="info_circle",ml.INSERT_CHART="bar_graph_box_vertical",ml.INSERT_CHART_OUTLINED="bar_graph_box_vertical",ml.INSERT_PHOTO="image",ml.KEEP="pin",ml.KEEP_OFF="pin_off",ml.KEYBOARD="keyboard",ml.KEYBOARD_ARROW_DOWN="chevron_down",ml.KEYBOARD_ARROW_UP="chevron_up",ml.KIDS_BLOCK="slash_circle_left",ml.LANGUAGE="globe",ml.LAST_PAGE="chevron_last",ml.LAUNCH="open_new",ml.LEARNING="lightbulb",ml.LEARNING_CAIRO="lightbulb_cairo",ml.LIBRARY_ADD=
kbu("library_add"),ml.LIBRARY_OUTLINE="library",ml.LIBRARY_REMOVE=kbu(),ml.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",ml.LIKES_PLAYLIST="thumb_up",ml.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",ml.LIKE="thumb_up",ml.LIKE_SELECTED="thumb_up",ml.LIVE="radar_live",ml.LIVE_CAIRO="radar_live_cairo",ml.LIVE_UNLISTED="link",ml.LOCATION_ON="location_point",ml.LOCATION_PIN="location_point",ml.LOOP="arrow_repeat",ml.LOOP_ACTIVE="arrow_repeat",ml.LOOP_ONE="arrow_repeat_1",ml.LOOP_ONE_ACTIVE="arrow_repeat_1",ml.MEH=
"face_meh",ml.MEMBERS_ONLY_MODE_OFF="message_bubble_left",ml.MESSAGE="message_bubble_left",ml.MICROPHONE_ON="mic",ml.MIX="youtube_mix",ml.MONETIZATION_ON="dollar_sign_circle",ml.MONEY_FILL="dollar_sign_container",ml.MONEY_FILL_JPY="yen_sign_container",ml.MONEY_HEART="dollar_sign_heart",ml.MORE_HORIZ="overflow_horizontal",ml.MORE_VERT="overflow_vertical",ml.MUSIC="audio",ml.MUSIC_CAIRO="audio_cairo",ml.MUSIC_NOTE_SYMBOL="music",ml.MUSIC_SHUFFLE="arrow_shuffle",ml.MY_CHANNEL="person_circle",ml.MY_LOCATION=
"location_point",ml.NEWS_STORY="news",ml.NEXT="chevron_right",ml.NOTIFICATIONS="bell",ml.NOTIFICATIONS_ACTIVE="bell_on",ml.NOTIFICATIONS_CAIRO="bell_cairo",ml.NOTIFICATIONS_DONE_CHECKMARK="check",ml.NOTIFICATIONS_INBOX="bell",ml.NOTIFICATIONS_NONE="bell",ml.NOTIFICATIONS_OFF="bell_off",ml.NOT_INTERESTED="slash_circle_left",ml.OFFICIAL_ARTIST_BADGE="audio",ml.OFFLINE_CLOUD="cloud_off",ml.OFFLINE_DOWNLOAD="download",ml.OFFLINE_DOWNLOAD_CAIRO="download_cairo",ml.OFFLINE_PAUSE="pause",ml.OPEN_IN_NEW=
"open_new",ml.OUTLINE_ADJUST="adjust",ml.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",ml.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",ml.OUTLINE_BAG="bag",ml.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",ml.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",ml.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",ml.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",ml.PAID="dollar_sign",ml.PAUSE_OUTLINED="pause",ml.PAYMENT="credit_card",ml.PERSON_RADAR_FILLED="person_radar",ml.PHONE_DOWNLOAD="mobile_download",
ml.PLAYABLES_LOGO="tic_tac_toe",ml.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",ml.PLAYLISTS="list_play_arrow",ml.PLAYLISTS_CAIRO="list_play_arrow_cairo",ml.PLAYLIST_ADD=kbu("list_add"),ml.PLAYLIST_ADD_CHECK=kbu("list_check"),ml.PLAYLIST_PLAY="list_play_arrow",ml.PLAY_ALL="play_arrow",ml.PLAY_CIRCLE="play_arrow_circle",ml.PLAY_OUTLINED="play_arrow_circle",ml.PRIVACY_INFO="shield",ml.PRIVACY_PRIVATE="lock",ml.PRIVACY_PUBLIC="earth",ml.PRIVACY_UNLISTED="link",ml.PROMOTE="megaphone",ml.PURCHASES="price_tag",
ml.PURCHASE_SUPER_CHAT="super_chat",ml.PURCHASE_SUPER_STICKER="super_sticker",ml.QUESTION_ANSWER="message_bubble_question",ml.QUEUE_PLAY_LAST="list_queue_last",ml.QUEUE_PLAY_NEXT="list_play_arrow",ml.REMIX_FILLED="youtube_shorts_remix",ml.REMOVE="bar_circle",ml.REMOVE_CIRCLE="bar_circle",ml.REMOVE_CIRCLE_OUTLINE="bar_circle",ml.REMOVE_DONE="check_double_off",ml.REMOVE_FROM_HISTORY="bar_circle",ml.REMOVE_FROM_PLAYLIST="bar_circle",ml.REMOVE_MODERATOR="shield_off",ml.REPLAY="arrow_circle",ml.REPLAY_10=
"skip_back_10",ml.REPORT_PROBLEM="alert_triangle",ml.SAD="face_sad",ml.SAVE_PLAYLIST="bookmark",ml.SCHEDULE="clock",ml.SCHOOL="creator_academy",ml.SCREEN_FULLSCREEN="screen_full",ml.SEARCH_HISTORY="arrow_time",ml.SELL="price_tag",ml.SETTINGS="gear",ml.SETTINGS_CAIRO="gear_cairo",ml.SETTINGS_LIGHT="gear",ml.SETTINGS_MATERIAL="gear",ml.SHARE_ARROW="share",ml.SHIELD_WITH_AVATAR="person_shield",ml.SHOPPING_BAG="bag",ml.SHOPPING_BAG_CAIRO="bag_cairo",ml.SHOPPING_CART="cart",ml.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
ml.SHORTS_DISLIKE="youtube_shorts_thumb_down",ml.SHORTS_LIKE="youtube_shorts_thumb_up",ml.SHORTS_SHARE="youtube_shorts_share",ml.SHUFFLE="arrow_shuffle",ml.SLOW_MODE_OFF="message_bubble_left",ml.SOCIAL="people",ml.SORT="menu_sort",ml.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",ml.SPEED_1X="1x",ml.SPEED_1_POINT_2X="1_point_2x",ml.SPEED_1_POINT_5X="1_point_5x",ml.SPEED_1_POINT_8X="1_point_8x",ml.SPEED_2X="2x",ml.SPEED_POINT_2X="point_2x",ml.SPEED_POINT_8X="point_8x",ml.SPONSORSHIP_STAR="star_circle",
ml.STAFF_PICK="spotlight",ml.START_DVR="add",ml.STAR_BORDER="star",ml.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",ml.STICKER_EMOTICON="face_happy",ml.STOP_DVR="stop",ml.SUBSCRIBE="youtube_logo_icon",ml.SUBSCRIBE_PLUS="add_cairo",ml.SUBSCRIPTION_MANAGER="gear",ml.SUPERVISOR_ACCOUNT="people",ml.SUPER_CHAT_FOR_GOOD="hands_heart",ml.SWAP_HORIZ="arrow_swap_horizontal",ml.SWITCH_ACCOUNTS="person_account",ml.TAB_ACCOUNT="person",ml.TAB_ACTIVITY="bell",ml.TAB_BOOKMARK="bookmark",ml.TAB_EXPLORE="compass",
ml.TAB_HOME="home",ml.TAB_HOME_CAIRO="home_cairo",ml.TAB_INBOX="mail",ml.TAB_LIKED="thumb_up",ml.TAB_MUSIC_PREMIUM="youtube_music",ml.TAB_SHORTS="youtube_shorts",ml.TAB_SHORTS_CAIRO="youtube_shorts_cairo",ml.TAB_SUBSCRIPTIONS="subscriptions",ml.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",ml.TAB_TRENDING="fire",ml.TIMER="stopwatch",ml.TRAILER="youtube_originals",ml.TRENDING="fire",ml.TRENDING_CAIRO="fire_cairo",ml.TRENDING_UP="rating_up",ml.TROPHY="trophy",ml.TROPHY_CELEBRATIONS="fireworks",ml.TUNE=
"adjust",ml.UNBLOCK_USER="bar_circle",ml.UNLIMITED="youtube_logo_icon",ml.UNPLUGGED_LIVE_GUIDE="radar_live",ml.UNPLUGGED_SPORTS="eye_off",ml.UPLOADS="library",ml.UP_ARROW="arrow_up",ml.VERTICAL_ALIGN_BOTTOM="download",ml.VERY_HAPPY="face_very_happy",ml.VERY_SAD="face_very_sad",ml.VIDEOGAME_ASSET="gaming",ml.VIDEOS="play_arrow_circle",ml.VIDEO_CALL="video_camera_add",ml.VIDEO_LIBRARY_WHITE="library",ml.VIDEO_YOUTUBE="youtube_logo_icon",ml.VIEW_LIST="list_view",ml.VIEW_LIST_CAIRO="list_view_cairo",
ml.VISIBILITY="eye",ml.VISIBILITY_OFF="eye_off",ml.VOLUME_MUTE="volume_off",ml.VOLUME_UP="volume_on",ml.WALLPAPER="image",ml.WARNING="alert_triangle",ml.WATCH_HISTORY="arrow_time",ml.WATCH_HISTORY_CAIRO="arrow_time_cairo",ml.WATCH_LATER="clock",ml.WATCH_LATER_CAIRO="clock_cairo",ml.WATCH_RELATED_MIX="youtube_mix",ml.WHAT_TO_WATCH="home",ml.YOUTUBE_MUSIC_MONOCHROME="youtube_music",ml.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",ml.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
ml.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",ml.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",ml.YT_OUTLINE_MUSIC_24="music",ml);var xp={},zDn=(xp.ACCESS_TIME="clock",xp.ACCOUNT_BOX="person_square",xp.ACCOUNT_BOX_CAIRO="person_square",xp.ACCOUNT_CIRCLE="person_circle",xp.ACCOUNT_CIRCLE_CAIRO="person_circle",xp.ACCOUNT_LINKED="account_link",xp.ACCOUNT_UNLINKED="account_link",xp.ADD_CIRCLE="add_circle",xp.ADD_CIRCLE_OUTLINE="add_circle",xp.ADD_FRIEND="person_child",xp.ADD_MODERATOR="shield_add",xp.ADD_TO_LIBRARY="bookmark",xp.ADD_TO_PLAYLIST="add",xp.ADD_TO_QUEUE_TAIL="queue",xp.ADD_TO_REMOTE_QUEUE="playlist_audio",xp.ADD_TO_WATCH_LATER=
"clock",xp.ADD_VIDEO_LINK="film_strip_add",xp.ADMIN_PANEL_SETTINGS="person_gear",xp.ALERT_WARN_RED="alert_triangle",xp.ALIGN_LEFT="text_align_left",xp.ARROWS_ALERT="arrow_split_alert",xp.ARROW_BACK="arrow_left",xp.ARROW_CIRCLE="arrow_counterclockwise",xp.ARROW_CIRCLE_PLAY="replay",xp.ARROW_CIRCLE_RIGHT="arrow_clockwise",xp.ARROW_DIAGONAL="arrow_up_left",xp.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",xp.ARROW_DROP_DOWN="triangle_down",xp.ARROW_DROP_UP="triangle_up",xp.ARROW_FORWARD="arrow_right",xp.ARROW_PAUSE=
"pause_history",xp.ARROW_UNDO="undo",xp.ARTICLE="text_page",xp.ARTICLE_ALERT="text_page_alert",xp.ARTICLE_CHECK="text_page_check",xp.ARTICLE_CLARIFY="text_page_info",xp.AUDIOTRACK="audio",xp.AUDIO_BADGE="audio_badge",xp.AUDIO_SURROUND="surround_sound",xp.AUTO_AWESOME="sparkles",xp.AVATAR_ANONYMOUS="person_circle",xp.AVATAR_LOGGED_OUT="person_circle",xp.BACK="arrow_left",xp.BAR_CHART="chart_bar",xp.BAR_CIRCLE="minus_circle",xp.BAR_HORIZONTAL="minus",xp.BLOCK="circle_slash",xp.BLOCK_USER="circle_slash",
xp.BOOKMARK_BORDER="bookmark",xp.BOX_OPEN_CHECK="quiz",xp.BOX_PENCIL="square_pencil",xp.BOX_STACK_3="square3_stack",xp.BREAKING_NEWS_ALT_1="text_page_alert",xp.BROADCAST="podcast",xp.BROADCAST_CAIRO="podcast",xp.BUG_REPORT="bug",xp.CAMERA_ALT="camera",xp.CAMPAIGN="megaphone",xp.CANCEL="x_circle",xp.CAPTIONS="closed_captions",xp.CAST_ICON="chromecast",xp.CAST_OUTLINE="chromecast",xp.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",xp.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",xp.CHAT="text_bubble",
xp.CHAT_BUBBLE="bubble",xp.CHECK_BOX="check_square",xp.CHECK_BOX_OUTLINE_BLANK="square",xp.CHECK_CIRCLE_FILLED="check_circle",xp.CHECK_CIRCLE_OUTLINE="check_circle",xp.CHECK_CIRCLE_THICK="check_circle",xp.CHECK_DOUBLE="check_done",xp.CHECK_DOUBLE_OFF="check_done_slash",xp.CHEVRON_LEFT="chevron_left",xp.CHEVRON_RIGHT="chevron_right",xp.CHEVRON_RIGHT_CAIRO="chevron_right",xp.CIRCLES_OVERLAP="account_link",xp.CLAPPERBOARD_CAIRO="clapperboard",xp.CLARIFY="text_page_info",xp.CLOCK_ARROWS="clock_split",
xp.CLOCK_ARROWS_ALERT="clock_split_alert",xp.CLOSED_CAPTION="closed_captions",xp.CLOSED_CAPTION_SELECTED="closed_captions",xp.CLOSE="x",xp.CLOUD_UPLOAD="cloud_arrow_up",xp.COLLAPSE="chevron_up",xp.COLLAPSE_CAIRO="chevron_up",xp.COLLECTION="square3d_stack",xp.COLOR_LENS="paint_palette",xp.COMMENT="text_bubble",xp.CONSENT_SHIELD="person_shield",xp.CONTENT_CUT="scissors",xp.CONTENT_CUT_CAIRO="scissors",xp.COURSE="graduation_cap",xp.COURSE_CAIRO="graduation_cap",xp.CREATION_LIVE="live",xp.CREATION_POST=
"square_pencil",xp.CREATION_UPLOAD="video",xp.CREATION_UPLOAD_RED="upload",xp.CREATOR_ACADEMY="graduation_cap",xp.CREATOR_STUDIO="youtube_studio",xp.DARK_THEME="theme",xp.DELETE="trash_can",xp.DELETE_SWEEP="trash_can",xp.DESKTOP="laptop",xp.DISLIKE="thumb_down",xp.DISLIKE_SELECTED="thumb_down",xp.DISMISSAL="x",xp.DISMISS_QUEUE="playlist_x",xp.DOGFOOD="pawprint",xp.DOLLAR_SIGN="dollar_sign_circle",xp.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",xp.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",xp.DOWN_ARROW=
"arrow_down",xp.DO_NOT_DISTURB="circle_slash",xp.DRAFT="document",xp.DRAG_HANDLE="equal",xp.EARTH="globe",xp.EDIT="pencil",xp.EMOJI="face_very_happy",xp.EMOJI_FLAGS="flag",xp.EMOJI_OBJECTS="lightbulb",xp.EMOJI_PEOPLE="face_very_happy",xp.EMOJI_RECENT="clock",xp.EMPTY_HEART="heart",xp.EMPTY_LIKE="thumb_up",xp.ERROR_BLACK="alert_circle",xp.ERROR_OUTLINE="alert_circle",xp.ERROR_WHITE="alert_circle",xp.EXIT_APP="arrow_in",xp.EXIT_TO_APP="arrow_in",xp.EXPAND="chevron_down",xp.EXPAND_ALL="chevron_expand",
xp.EXPAND_CAIRO="chevron_down",xp.EXPAND_LESS="chevron_up",xp.EXPAND_MORE="chevron_down",xp.EXPLORE="compass",xp.EXPLORE_DESTINATION="compass",xp.EXTERNAL_LINK="arrow_up_right",xp.EYE_OFF="eye_slash",xp.FAB_UPLOAD="upload",xp.FACE_HAPPY_OUTLINE="face_happy",xp.FACE_MEH="face_neutral",xp.FACT_CHECK="text_page_check",xp.FASHION_LOGO="fashion",xp.FASHION_LOGO_CAIRO="fashion",xp.FAVORITE="thumb_up",xp.FEEDBACK="alert_bubble",xp.FEEDBACK_CAIRO="alert_bubble",xp.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
xp.FILL_ARROW_SOLID_UP_16="arrow_solid_up",xp.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",xp.FLAG_CAIRO="flag",xp.FLASH_OFF="flash_slash",xp.FLASH_ON="flash",xp.FULL_HEART="heart",xp.GAMING_LOGO="gaming",xp.GAMING_LOGO_CAIRO="gaming",xp.GO_TO_PAGE="arrow_right",xp.GROUPS="person3",xp.HAND_SWIPE_LEFT="gesture_swipe_left",xp.HAND_SWIPE_RIGHT="gesture_swipe_right",xp.HAPPY="face_happy",xp.HEALTH_AND_SAFETY="shield_health",xp.HEART_BOX="heart_cube",xp.HELP="help_circle",xp.HELP_CAIRO="help_circle",
xp.HELP_OUTLINE="help_circle",xp.HIDE="circle_slash",xp.INCOGNITO_CAIRO="incognito",xp.INFINITY_ICON="infinity",xp.INFO="info_circle",xp.INFO_OUTLINE="info_circle",xp.INSERT_CHART="chart_bar_square",xp.INSERT_CHART_OUTLINED="chart_bar_square",xp.INSERT_PHOTO="image",xp.KEEP="pin",xp.KEEP_OFF="pin_slash",xp.KEYBOARD="keyboard",xp.KEYBOARD_ARROW_DOWN="chevron_down",xp.KEYBOARD_ARROW_UP="chevron_up",xp.KIDS_BLOCK="circle_slash",xp.LANGUAGE="globe",xp.LAUNCH="arrow_up_right",xp.LEARNING="lightbulb",xp.LEARNING_CAIRO=
"lightbulb",xp.LIBRARY_ADD="bookmark",xp.LIBRARY_IMAGE="image_stack",xp.LIBRARY_MUSIC="audio_square_stack",xp.LIBRARY_OUTLINE="play_square_stack",xp.LIBRARY_REMOVE="bookmark",xp.LIBRARY_SAVED="check_square_stack",xp.LIKES_PLAYLIST="thumb_up",xp.LIKES_PLAYLIST_CAIRO="thumb_up",xp.LIKE="thumb_up",xp.LIKE_SELECTED="thumb_up",xp.LIST_QUEUE="queue",xp.LIVE_CAIRO="live",xp.LIVE_UNLISTED="link",xp.LOCATION_ON="location_pin",xp.LOCATION_PIN="location_pin",xp.LOCATION_POINT="location_pin",xp.LOOP="repeat",
xp.LOOP_ACTIVE="repeat",xp.LOOP_ONE="repeat1",xp.LOOP_ONE_ACTIVE="repeat1",xp.MEET="google_meet",xp.MEH="face_neutral",xp.MEMBERSHIPS="memberships",xp.MEMBERS_ONLY_MODE_OFF="text_bubble",xp.MENU_FILTER="filter",xp.MESSAGE="text_bubble",xp.MESSAGE_BUBBLE_GEAR="bubble_gear",xp.MESSAGE_BUBBLE_LEFT="text_bubble",xp.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",xp.MESSAGE_BUBBLE_OVERLAP="bubble_stack",xp.MESSAGE_BUBBLE_QUESTION="help_bubble",xp.MICROPHONE_ON="mic",xp.MONETIZATION_ON="dollar_sign_circle",
xp.MONEY_FILL="dollar_sign_rectangle",xp.MONEY_FILL_JPY="yen_sign_rectangle",xp.MONEY_HAND="dollar_sign_circle_hand",xp.MONEY_HEART="dollar_sign_heart",xp.MOON_Z="sleep_timer",xp.MORE_HORIZ="overflow_horizontal",xp.MORE_VERT="overflow_vertical",xp.MUSIC="audio",xp.MUSIC_CAIRO="audio",xp.MUSIC_EXPLICIT_BADGE="explicit",xp.MUSIC_NEW_RELEASE="audio_badge",xp.MUSIC_NOTE_SYMBOL="audio",xp.MUSIC_SCISSORS="audio_scissors",xp.MUSIC_SHUFFLE="shuffle",xp.MY_CHANNEL="person_circle",xp.MY_LOCATION="location_pin",
xp.MY_VIDEOS="video",xp.MY_VIDEOS_CAIRO="video",xp.NEWS_CAIRO="news",xp.NEWS_STORY="news",xp.NEXT="chevron_right",xp.NOTE_ADD="bubble_pencil",xp.NOTIFICATIONS="bell",xp.NOTIFICATIONS_ACTIVE="bell_waves",xp.NOTIFICATIONS_CAIRO="bell",xp.NOTIFICATIONS_DONE_CHECKMARK="check",xp.NOTIFICATIONS_INBOX="bell",xp.NOTIFICATIONS_NONE="bell",xp.NOTIFICATIONS_OFF="bell_slash",xp.NOT_INTERESTED="circle_slash",xp.OFFICIAL_ARTIST_BADGE="audio",xp.OFFLINE_CLOUD="cloud_slash",xp.OFFLINE_DOWNLOAD="download",xp.OFFLINE_DOWNLOAD_CAIRO=
"download",xp.OFFLINE_PAUSE="pause",xp.OPEN_IN_NEW="arrow_up_right",xp.OUTLINE_ADJUST="adjust",xp.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",xp.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",xp.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",xp.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",xp.OUTLINE_BAG="bag",xp.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",xp.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",xp.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",xp.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",xp.PAID=
"dollar_sign_circle",xp.PAUSE_OUTLINED="pause",xp.PAYMENT="credit_card",xp.PEOPLE="person_child",xp.PEOPLE_2="person2_rectangle",xp.PEOPLE_GROUP="person3",xp.PEOPLE_NOTE="bubble_asterisk",xp.PERSON_2="person2",xp.PERSON_ACCOUNT="person_square_stack",xp.PERSON_MINUS="person_x",xp.PERSON_MUSIC="person_audio",xp.PERSON_RADAR="person_waves",xp.PERSON_RADAR_FILLED="person_waves",xp.PERSON_SETTING="person_gear",xp.PHONE="phone",xp.PHONE_DOWNLOAD="mobile_arrow_down",xp.PICTURE_IN_PICTURE="picture_in_picture",
xp.PLAYABLES_LOGO="playables",xp.PLAYABLES_LOGO_CAIRO="playables",xp.PLAYLISTS="playlist",xp.PLAYLISTS_CAIRO="playlist",xp.PLAYLIST_ADD_CHECK="bookmark",xp.PLAY_ALL="play",xp.PLAY_ARROW="play",xp.PLAY_ARROW_CIRCLE="play_circle",xp.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",xp.PLAY_CIRCLE="play_circle",xp.PLAY_OUTLINED="play_circle",xp.PODCAST_ADD="podcast_add",xp.PODCAST_CHECK="podcast_check",xp.PRIVACY_INFO="shield_x",xp.PRIVACY_PRIVATE="lock",xp.PRIVACY_PUBLIC="globe",xp.PRIVACY_UNLISTED=
"link",xp.PROMOTE="megaphone",xp.PURCHASES="price_tag",xp.PURCHASE_SUPER_CHAT="super_chat",xp.PURCHASE_SUPER_STICKER="super_sticker",xp.QUESTION_ANSWER="help_bubble",xp.QUESTION_CIRCLE="help_circle",xp.QUEUE_PLAY_LAST="queue_last",xp.QUEUE_PLAY_NEXT="queue_next",xp.QUOTATION_MARK="quote",xp.RADAR_LIVE="live",xp.REMOVE="minus_circle",xp.REMOVE_CIRCLE="minus_circle",xp.REMOVE_CIRCLE_OUTLINE="minus_circle",xp.REMOVE_FROM_HISTORY="minus_circle",xp.REMOVE_FROM_PLAYLIST="minus_circle",xp.REMOVE_MODERATOR=
"shield_slash",xp.REPLAY="arrow_counterclockwise",xp.REPLAY_10="skip10_back",xp.REPLAY_ARROW="replay",xp.REPORT_PROBLEM="alert_triangle",xp.RSS_OFF="rss_slash",xp.SAD="face_sad",xp.SAVE_PLAYLIST="bookmark",xp.SCHEDULE="clock",xp.SCHOOL="graduation_cap",xp.SCREEN_DEFAULT="player_default",xp.SCREEN_FULLSCREEN="player_full_enter",xp.SCREEN_LIGHT="ambient_mode",xp.SCREEN_ROTATION="rotate_portrait",xp.SCREEN_SWITCH="player_switch",xp.SCREEN_THEATRE="player_theater",xp.SEARCH_CAIRO="search",xp.SEARCH_HISTORY=
"history",xp.SELL="price_tag",xp.SETTINGS="gear",xp.SETTINGS_CAIRO="gear",xp.SETTINGS_LIGHT="gear",xp.SETTINGS_MATERIAL="gear",xp.SETTINGS_REMOTE="remote_waves",xp.SHARE="share",xp.SHARE_ARROW="share",xp.SHARE_CAIRO="share",xp.SHIELD="shield_x",xp.SHIELD_OFF="shield_slash",xp.SHIELD_WITH_AVATAR="person_shield",xp.SHOPPING_BAG="bag",xp.SHOPPING_BAG_CAIRO="bag",xp.SHOPPING_CART="cart",xp.SHORTS_COMMENT="text_bubble",xp.SHORTS_DISLIKE="thumb_down",xp.SHORTS_LIKE="thumb_up",xp.SHORTS_SHARE="share",xp.SKIP_FORWARD_30=
"skip30_forward",xp.SLASH_CIRCLE_RIGHT="circle_slash",xp.SLOW_MODE="bubble_slow",xp.SLOW_MODE_OFF="text_bubble",xp.SOCIAL="person_child",xp.SPARKLE="sparkles",xp.SPARK_IMAGE="image_spark",xp.SPARK_RADAR="spark_waves",xp.SPARK_VIDEO="video_spark",xp.SPEAKER_GROUP="speaker_stack",xp.SPEAKER_OFF="speaker_slash",xp.SPEED_1X="n1x",xp.SPEED_1_POINT_2X="n1point2x",xp.SPEED_1_POINT_5X="n1point5x",xp.SPEED_1_POINT_8X="n1point8x",xp.SPEED_2X="n2x",xp.SPONSORSHIP_STAR="star_circle",xp.SPORTS="basketball",xp.SPOTLIGHT=
"spotlight",xp.STAFF_PICK="spotlight",xp.START_DVR="add",xp.STAR_BORDER="star",xp.STAR_CIRCLE_RIBBON="memberships_gift",xp.STAR_HALF="star_half_filled",xp.STAR_SHOOTING="hype",xp.STICKER="sticker",xp.STICKER_EMOTICON="face_happy",xp.STOP_DVR="stop",xp.SUBSCRIBE="youtube",xp.SUBSCRIBE_PLUS="add",xp.SUBSCRIPTION_MANAGER="gear",xp.SUPERSTAR="super_star",xp.SUPERVISOR_ACCOUNT="person_child",xp.SUPER_CHAT_FOR_GOOD="hands_heart",xp.SWAP_HORIZ="arrow_swap_horizontal",xp.SWITCH_ACCOUNTS="person_square_stack",
xp.TAB_ACCOUNT="person",xp.TAB_ACTIVITY="bell",xp.TAB_BOOKMARK="bookmark",xp.TAB_EXPLORE="compass",xp.TAB_HOME="home",xp.TAB_HOME_CAIRO="home",xp.TAB_INBOX="mail",xp.TAB_LIKED="thumb_up",xp.TAB_MUSIC_PREMIUM="youtube_music",xp.TAB_SHORTS="shorts",xp.TAB_SHORTS_CAIRO="shorts",xp.TAB_SUBSCRIPTIONS="subscriptions",xp.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",xp.TAB_TRENDING="trending",xp.TARGET="target",xp.TARGET_ADD="target_add",xp.TEMPLATE_ADD="template_add",xp.TEXT="font",xp.TIMER="stopwatch",xp.TRENDING_CAIRO=
"trending",xp.TRENDING_UP="arrow_trend_up",xp.TROPHY_CAIRO="trophy",xp.TROPHY_CELEBRATIONS="fireworks",xp.TROPHY_STAR="star_trophy",xp.TUNE="adjust",xp.TV_OFF="tv_slash",xp.UNBLOCK_USER="minus_circle",xp.UNFAVORITE="thumb_down",xp.UNLIMITED="youtube",xp.UNPLUGGED_LIVE_GUIDE="live",xp.UNPLUGGED_SPORTS="eye_slash",xp.UPLOADS="play_square_stack",xp.UP_ARROW="arrow_up",xp.VERTICAL_ALIGN_BOTTOM="chevron_down_end",xp.VERTICAL_ALIGN_TOP="chevron_up_end",xp.VERY_HAPPY="face_very_happy",xp.VERY_SAD="face_very_sad",
xp.VIDEOS="play_circle",xp.VIDEO_CALL="video_camera_add",xp.VIDEO_LIBRARY_WHITE="play_square_stack",xp.VIDEO_QUALITY_4K="n4k",xp.VIDEO_QUALITY_8K="n8k",xp.VIDEO_YOUTUBE="youtube",xp.VIEW_LIST_CAIRO="view_list",xp.VIEW_MODULE="view_column3_row2",xp.VISIBILITY="eye",xp.VISIBILITY_OFF="eye_slash",xp.VOLUME_DOWN="volume_min",xp.VOLUME_MUTE="volume_mute",xp.VOLUME_OFF="volume_mute",xp.VOLUME_STABLE="stable_volume",xp.VOLUME_UP="volume_max",xp.WALLPAPER="image",xp.WARNING="alert_triangle",xp.WATCH_HISTORY=
"history",xp.WATCH_HISTORY_CAIRO="history",xp.WATCH_LATER="clock",xp.WATCH_LATER_CAIRO="clock",xp.WATCH_RELATED_MIX="mix",xp.WHAT_TO_WATCH="home",xp.YOUTUBE_LINKED_TV="tv_mobile",xp.YOUTUBE_MUSIC_MONOCHROME="youtube_music",xp.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",xp.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",xp.YOUTUBE_SHORTS_ARROW_UP="arrow_up",xp.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",xp.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",xp.YOUTUBE_SHORTS_OUTLINE_24="shorts",
xp);var G6Y={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,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,
3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,
6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,
1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,
1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,
1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,
24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,
2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,
48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,14,24],[1,14,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],
shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,
2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],
uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_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,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],
x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[1,8,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,
1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,
5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var YFf={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],
eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,
4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,
1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,
1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],
hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,
8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,
1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],
live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,13,18],[0,13,24],[0,13,48],
[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,
1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],
overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,
24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,
1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,
1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,4,12],[1,4,18],[1,4,24],[1,4,48]],playlist_add:[[1,2,18],[1,2,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],
playlist_x:[[1,2,18],[1,2,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],
queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,
2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,
24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,
1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,
2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],
star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,
1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],
text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,
4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,
2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,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,
3,24],[1,3,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,8,24],[1,8,18],[1,8,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,
2,24],[1,2,24]]};var dT9={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},DX=function(W){this.iconUrlProvider=W};
DX.prototype.resolveIcon=function(W,B){var z=dT9[W.iconName.toUpperCase()];z&&(W.iconName=z);var G=W.iconName;G=G.replace(/-/g,"_");W=Object.assign({},W,{iconName:this.mapIconTypeToStandardName(G,!!z)||G.toLowerCase()});if(_.r("enable_web_delhi_icons")||z){var Y;return Zb2(YFf,W,((Y=this.iconUrlProvider)==null?void 0:Y.getYtStandardUrl)||CGT,B)}var d;return Zb2(G6Y,W,((d=this.iconUrlProvider)==null?void 0:d.getYtStandardUrl)||lZ0,B)};
DX.prototype.mapIconTypeToStandardName=function(W,B){return _.r("enable_web_delhi_icons")||B?zDn[W.toUpperCase()]:BUi[W.toUpperCase()]};
DX[gR]=[_.Y8(avn)];var pQr=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),AM9=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),i7j=function(W){this.urlProvider=this.iconUrlProvider=W};
_.C(i7j,DX);
i7j.prototype.resolveIcon=function(W,B){W.iconName==="youtube_logo"&&(W.iconName="yt-logo-updated");if(W.iconName==="youtube_premium_logo"||W.iconName==="youtube_red_logo")W.iconName="yt-logo-red-updated";var z=Object.assign({},W);W.iconName==="menu"&&(_.r("enable_web_delhi_icons")||(z.iconName="bars_3"),z.iconStyle="youtube_outline");W.iconSetName==="socialNetworksRound"&&(W.iconName==="mail"&&(z.iconName="email"),W.iconName==="embed"&&(z.iconSize=60));W.iconName==="more"&&(z.iconName="overflow_horizontal");
W.iconName==="fullscreen"&&(z.iconName="screen_full");W.iconName==="premium_standalone"&&(z.iconName="premium_standalone_cairo");_.r("enable_connect_icon_update_web")&&W.iconName==="account_linked"&&(z.iconName="circles_overlap_check",z.iconStyle="youtube_fill");_.r("enable_connect_icon_update_web")&&W.iconName==="account_unlinked"&&(z.iconName="circles_overlap",z.iconStyle="youtube_outline");pQr.has(W.iconName)&&(z.iconStyle="youtube_fill");_.r("enable_web_delhi_icons")&&(W.iconName==="playlist_add"&&
(z.iconName="bookmark"),W.iconName==="offline_pin"&&(z.iconName="arrow_down_circle",z.iconStyle="youtube_fill"),AM9.has(W.iconName)&&(z.iconName+="_updated"));W=Object.assign({},z,{iconName:(DX.prototype.mapIconTypeToStandardName.call(this,z.iconName)||z.iconName).toLowerCase()});var G;return(W=Zb2(URn,W,((G=this.urlProvider)==null?void 0:G.getUrl)||IZT,B))?W:DX.prototype.resolveIcon.call(this,z,B)};
i7j[gR]=[_.Y8(avn)];_.EM1=1;var Q9=function(W,B){this.JSC$17239_commandHandler=W;this.innertubeTransportService=B};
_.C(Q9,JT);Q9.prototype.resolveCommand=function(W,B){var z=this,G,Y,d;return _.T(function(E){return(G=_.k(W,Lku))?E.return(TUf(z,G,(Y=B)==null?void 0:(d=Y.form)==null?void 0:d.element)):E.return()})};
var TUf=function(W,B,z){B={profileCardContext:B.profileCardContext,profileOwnerExternalChannelId:B.profileOwnerExternalChannelId};var G=_.dD(D7T);return _.cz(W.innertubeTransportService,B,G).then(function(Y){if(!Y)throw new _.oX("GetProfileCard failed");if(Y=Y.popupCommand){W.JSC$17239_commandHandler.resolveCommand(Y,{form:{element:z}});_.KS(_.SK(),66557);Y=Y==null?void 0:Y.clickTrackingParams;var d=_.et();Y&&d&&_.SK().graftServerVe(Y,d)}})};
Q9[gR]=[_.p4,_.N_];var y9=function(){};
_.C(y9,JT);y9.prototype.resolveCommand=function(W){var B,z;return _.T(function(G){B=_.k(W,GEM);if(!B)return G.return();z=Number(B.enableDelayedPacfLoggingTvMs);if(isNaN(z)){var Y=DY();wsM(Y,B,0)}else wsM(DY(),B,z);_.HG(G)})};_.q3=function(){};
_.C(_.q3,JT);
_.q3.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v,c,J;return _.T(function(g){G=_.k(W,YZ9);d=(Y=B.form)==null?void 0:Y.element;v=(E=d)==null?void 0:E.closest("ytd-enforcement-message-view-model");if(!G||!v)return g.return();z.allowAdsAction||(c=G.fundingChoiceInstructionPageUrl,z.allowAdsAction=new Zxd(window,_.OE(c)));var t=z.allowAdsAction;t.wallElement=v;t.allowAdsPopup.style.setProperty("display","flex","important");var P=t.scrollManager;P.originalBodyOverflow=P.JSC$10000_domHelper.JSC$9327_document_.body.style.overflow;P.JSC$10000_domHelper.JSC$9327_document_.body.style.overflow=
"hidden";t.wallElement.style.setProperty("display","none","important");bRF(t.accessibilityManager,t.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((J=z.allowAdsAction.allowAdsPopup)&&J instanceof HTMLElement)for(t=_.A(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),P=t.next();!P.done;P=t.next()){var Z=_.A(P.value);P=Z.next().value;Z=Z.next().value;J.style.setProperty(P,Z)}_.HG(g)})};
_.q3.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var n0=function(){};
_.C(n0,JT);n0.prototype.resolveCommand=function(W){var B;return _.T(function(z){B=_.k(W,a6F);if(!B)return z.return();Y1Q(W);_.HG(z)})};var N3=function(W){this.JSC$17254_commandHandler=W};
_.C(N3,JT);
N3.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E,v,c,J;return _.T(function(g){if(g.nextAddress==1){z=_.k(W,oNT);if((G=z)==null||!G.text||!navigator.clipboard)return g.return();_.kA(g,2);return g.yield(navigator.clipboard.writeText(z.text),4)}if(g.nextAddress!=2){if(!z.successActions||z.successActions.length===0)return g.return();Y=_.A(z.successActions);for(d=Y.next();!d.done;d=Y.next())E=d.value,B.JSC$17254_commandHandler.resolveCommand(E);return _.Nn(g,0)}_.h6(g);if(!z.failureActions||z.failureActions.length===
0)return g.return();v=_.A(z.failureActions);for(c=v.next();!c.done;c=v.next())J=c.value,B.JSC$17254_commandHandler.resolveCommand(J);_.HG(g)})};
N3[gR]=[_.p4];var $p=function(W){this.JSC$17258_commandHandler=W};
_.C($p,JT);
$p.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v,c,J,g,t,P;return _.T(function(Z){switch(Z.nextAddress){case 1:G=_.k(W,d1M);if(!G)return Z.return();_.kA(Z,2);if(!G.imageBytes&&!G.imageUrl)throw Error("Di");if(!G.imageUrl){if(G.imageBytes){d=G.imageBytes;E=d.replace(/-/g,"+").replace(/_/g,"/");var l=Hbr(E);Y=_.qZ(l)}Z.jumpTo(4);break}return Z.yield(fetch(G.imageUrl),5);case 5:return v=Z.yieldResult,Z.yield(v.blob(),6);case 6:c=Z.yieldResult,Y=_.qZ(c);case 4:t=(J=B)==null?void 0:(g=J.form)==
null?void 0:g.element;P=document.createElement("a");$h(P,Y);t.appendChild(P);P.download="";P.click();t.removeChild(P);URL.revokeObjectURL(_.mF(Y));G.successCommand&&z.JSC$17258_commandHandler.resolveCommand(G.successCommand);_.Nn(Z,0);break;case 2:_.h6(Z),G.errorCommand&&z.JSC$17258_commandHandler.resolveCommand(G.errorCommand),_.HG(Z)}})};
$p[gR]=[_.p4];var L0=function(W){this.store=W};
_.C(L0,JT);L0.prototype.resolveCommand=function(W){var B=this,z,G,Y;return _.T(function(d){G=(z=_.k(W,_.c1u))==null?void 0:z.entityBatchUpdate;if(!G)return d.jumpTo(0);Y=Object.assign({},G,{mutations:[].concat(_.u7(G.mutations||[]))});return d.yield(_.CA(Y,B.store),0)})};var vM0=function(W){this.JSC$17265_commandHandler=W;this.feedbackDialogMap=new Map};
vM0.prototype.openDialog=function(W,B){(W=this.feedbackDialogMap.get(W))&&this.JSC$17265_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:W}},B)};
vM0[gR]=[_.p4];var U1=new _.t1("FEEDBACK_CONTROLLER_TOKEN");var M3=new _.t1("APP_STORE_TOKEN");var a2=function(W,B){this.store=W;this.controller=B};
_.C(a2,JT);a2.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a,q;return _.T(function(n){if(n.nextAddress==1){G=_.k(W,_.fQ);if(d=(Y=G)==null?void 0:Y.contentId)for(v=_.A(((E=G)==null?void 0:E.actions)||[]),c=v.next();!c.done;c=v.next())J=c.value,cMi(z,J,d);P=(g=B)==null?void 0:(t=g.form)==null?void 0:t.element;return n.yield(_.V0(P,[W,{impression:(Z=B)==null?void 0:Z.disableClickTracking}]).catch(function(){}),2)}l=n.yieldResult;
((b=l)==null?0:(O=b.data)==null?0:(K=O.feedbackResponses)==null?0:K.length)&&(a=(e=l.data.feedbackResponses[0])==null?void 0:e.followUpDialog)&&d&&(q=z.controller)!=null&&q.feedbackDialogMap.set(d,a);_.HG(n)})};
var cMi=function(W,B,z){var G=_.k(B,_.tr);if(G){G=_.A(G.commands||[]);for(var Y=G.next();!Y.done;Y=G.next())cMi(W,Y.value,z)}_.k(B,_.QA)&&W.store.dispatch(_.bj("commandEntity",lQ2(z),{key:z,command:B}));_.k(B,BLQ)&&W.store.dispatch(_.bj("commandEntity",lQ2(z),{key:z,command:B}))};
a2[gR]=[M3,U1];var R2=function(W){this.controller=W};
_.C(R2,JT);R2.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E;return _.T(function(v){G=_.k(W,_.mE);d=(Y=G)==null?void 0:Y.targetId;if(((E=G)==null?void 0:E.signal)!=="TELL_US_WHY"||!d)return v.return();z.controller.openDialog(d,B);_.HG(v)})};
R2[gR]=[U1];var WL=function(W){this.store=W};
_.C(WL,JT);WL.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v,c,J;return _.T(function(g){G=_.k(W,VAr);d=(Y=G)==null?void 0:Y.contentId;c=(E=B)==null?void 0:(v=E.form)==null?void 0:v.element;J=_.V0(c,[W]);d&&z.undo(d);return g.yield(J,0)})};
WL.prototype.undo=function(W){this.store.dispatch(_.bj("commandEntity",lQ2(W),{key:W,command:void 0}))};
WL[gR]=[M3];var BL=function(W){this.JSC$17280_commandHandler=W};
_.C(BL,JT);BL.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E,v,c,J;return _.T(function(g){z=_.k(W,Hw6);G=z.flowStateKey;Y=z.validationFailureCommand;d=z.submitValidFormCommand;E=ODx(_.Bh,[G||""]);v=_.k(E,STU);((c=v)==null?0:c.isValid)&&d&&B.JSC$17280_commandHandler.resolveCommand(d);((J=v)==null?0:J.isValid)||!Y||B.JSC$17280_commandHandler.resolveCommand(Y);_.HG(g)})};
BL[gR]=[_.p4];var zv=function(W){this.innertubeTransportService=W};
_.C(zv,JT);zv.prototype.resolveCommand=function(W,B){var z=this,G;return _.T(function(Y){return Y.yield(_.BA(z.innertubeTransportService,W,(G=B)==null?void 0:G.form).then(function(d){var E,v;B==null||(E=B.commandController)==null||(v=E.onSuccess)==null||v.call(E,W,d)},function(d){var E,v;
B==null||(E=B.commandController)==null||(v=E.onServerError)==null||v.call(E,W,d)}),0)})};
zv[gR]=[_.N_];var Gv=function(){};
_.C(Gv,JT);Gv.prototype.resolveCommand=function(W){var B,z,G,Y;return _.T(function(d){if(B=_.k(W,_.sYR)){if(z=B.gtmId)G=_.eD("GL",""),_.zr(z,G);(Y=B.gtmData)&&_.Gr(Y)}_.HG(d)})};var YZ=function(W,B,z){this.innertubeTransportService=W;this.JSC$17291_actionRouter=B;this.JSC$17291_screenManager=z};
_.C(YZ,JT);YZ.prototype.resolveCommand=function(W){var B=this,z,G;return _.T(function(Y){z=_.k(W,oXH);if(!z)return Y.return();G=z.command;if(!G)return Y.return();B.JSC$17291_actionRouter.triggerAction("yt-insert-rich-section-action",z);return Y.yield(_.BA(B.innertubeTransportService,G,{disableCache:!0}).then(function(d){W.clickTrackingParams&&(d==null?0:d.trackingParams)&&B.JSC$17291_screenManager.graftServerVe(d.trackingParams,_.XF(W.clickTrackingParams))}),0)})};
YZ[gR]=[_.N_,IH,_.Gz];Sa8.bind(null,gv);var wQi=Sa8.bind(null,FBR);jM2.bind(null,gv);var VRr=jM2.bind(null,FBR);Obv.bind(null,gv);var JMY=Obv.bind(null,FBR);var dt=function(){};
_.C(dt,JT);
dt.prototype.resolveCommand=function(W){var B,z,G,Y,d,E,v,c,J,g;return _.T(function(t){B=_.k(W,vc4);if(!B)return t.return();G=((z=B.operations)==null?void 0:z.operations)||[];Y=_.A(G);for(d=Y.next();!d.done;d=Y.next())if(E=d.value,E.insertItemSectionContent){var P=E.insertItemSectionContent,Z=P.contents||[];P.insertByPositionInSection?wQi(P.insertByPositionInSection.sectionTargetId,Z,P.insertByPositionInSection.position):P.insertByRelativePositionInSection&&P.insertByRelativePositionInSection.sectionTargetId&&P.insertByRelativePositionInSection.itemTargetId&&
VRr(P.insertByRelativePositionInSection.sectionTargetId,P.insertByRelativePositionInSection.itemTargetId,Z,P.insertByRelativePositionInSection.relativePosition)}else E.replaceSection?(P=E.replaceSection,Z={},P.replaceByTargetId?Z=P.replaceByTargetId:P.replaceByGroupId&&(Z={targetId:P.replaceByGroupId.groupId,newContent:P.replaceByGroupId.newContent,undoKey:""}),Z.newContent&&jLd(Z.targetId,{continuationItems:[Z.newContent]})):E.removeItem?(P=E.removeItem,P.removeByTargetId&&P.sectionTargetId&&JMY(P.sectionTargetId,
P.removeByTargetId.targetIds||[])):E.removeSection&&(E.removeSection.removeByTargetId?(v=void 0,gM9(((v=E.removeSection)==null?void 0:v.removeByTargetId.targetIds)||[])):E.removeSection.removeByGroupId&&(c=void 0,gM9(((c=E.removeSection)==null?void 0:c.removeByGroupId.groupIds)||[])));g=((J=B.operations)==null?void 0:J.scrollConfig)||{};tRq(g);_.HG(t)})};
var gM9=function(W){W=_.A(W);for(var B=W.next();!B.done;B=W.next())jLd(B.value,{continuationItems:[]})},tRq=function(W){if(W.scrollToItem){var B=W.scrollToItem.item||{},z=B.itemTargetId;
B=B.sectionTargetId;if(z&&B){var G=document.querySelector("[data-target-id="+B+"]"),Y=G==null?void 0:G.querySelector("[data-target-id="+z+"]");G&&Y&&setTimeout(function(){var d=Y.offsetTop-G.offsetTop,E;if(((E=W.scrollToItem)==null?void 0:E.scrollPosition)==="SCROLL_POSITION_CENTER")d-=G.offsetHeight/2,d+=Y.offsetHeight/2;else{var v;((v=W.scrollToItem)==null?void 0:v.scrollPosition)==="SCROLL_POSITION_END"&&(d-=G.offsetHeight,d+=Y.offsetHeight)}G.scroll({top:d,behavior:"smooth"})},100)}}};var pc=new _.t1("CLIENT_NAME_TOKEN");var suj=new _.t1("DEFAULT_STORE_EXPIRATION_TOKEN");var ody=new _.t1("CLIENT_LOCATION_SERVICE_TOKEN");var Ai=function(W,B,z){this.clientName=W||_.eD("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=B||_.m9.getInstance();this.JSC$17319_commandHandler=z||_.IB.instance};
_.C(Ai,JT);Ai.prototype.resolveCommand=function(W){var B=this,z,G;return _.T(function(Y){G=(z=_.k(W,Dz9))==null?void 0:z.onComplete;B.clientLocationService.clearLocationPlayabilityToken(B.clientName);G&&B.JSC$17319_commandHandler.resolveCommand(G);_.HG(Y)})};
Ai[gR]=[pc,ody,_.p4];var iX=function(W){this.innertubeTransportService=W};
_.C(iX,JT);iX.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E;return _.T(function(v){d=(G=B)==null?void 0:(Y=G.form)==null?void 0:Y.element;return v.yield(_.BA(z.innertubeTransportService,W,(E=B)==null?void 0:E.form).then(function(c){naR(d,new CustomEvent("yt-service-request-completed"),{data:c},_.eD("openPopupConfig"))}),0)})};
iX[gR]=[_.N_];var Eu=function(){};
_.C(Eu,JT);Eu.prototype.resolveCommand=function(W){var B,z;return _.T(function(G){B=_.k(W,OwU);z=document.querySelector("mini-app-container-view-model");if(!B||!z)return G.return();B.isPlaying?z.dispatchEvent(new Event("play")):z.dispatchEvent(new Event("pause"));_.HG(G)})};var Tv=function(){};
_.C(Tv,JT);Tv.prototype.resolveCommand=function(W){var B,z,G,Y,d,E,v;return _.T(function(c){B=_.k(W,cP6);if((z=B)==null||!z.paramKeys)return c.return();G=B.paramKeys;Y=_.Uk(window.location.href);d=_.A(G);for(E=d.next();!E.done;E=d.next())v=E.value,Y.JSC$10032_queryData_.remove(v);window.history.replaceState(window.history.state,document.title,Y.toString());_.HG(c)})};var PRq=function(){this.dropdownMap=new Map};_.Z7f=new _.t1("DROPDOWN_CONTROLLER_TOKEN");var vL=function(W){this.controller=W};
_.C(vL,JT);vL.prototype.resolveCommand=function(W){var B=this,z,G,Y,d;return _.T(function(E){z=_.k(W,q6R);if(!z)return E.return();G=z;Y=G.dropdownId;d=G.selectedOptionIndex;if(Y===void 0||d===void 0)return E.return();var v=B.controller.dropdownMap.get(Y);v&&v(d);_.HG(E)})};
vL[gR]=[_.Z7f];var cL=function(W){this.controller=W};
_.C(cL,JT);cL.prototype.resolveCommand=function(W){var B=this,z;return _.T(function(G){return(z=_.k(W,zx4))?G.yield(B.controller.closeDialog(),0):G.return()})};
cL[gR]=[_.zo];var wt=function(W){this.controller=W};
_.C(wt,JT);wt.prototype.resolveCommand=function(W){var B=this,z,G;return _.T(function(Y){z=_.k(W,exR);if(!z)return Y.return();var d,E=z.panelIdentifier||((d=z.identifier)==null?void 0:d.tag);if(!E)throw Error("Ei");return(G=E)?Y.yield(B.controller.hidePanel(G),0):Y.jumpTo(0)})};
wt[gR]=[_.WD];var VT=function(W){this.controller=W};
_.C(VT,JT);VT.prototype.resolveCommand=function(W){var B=this,z;return _.T(function(G){return(z=_.k(W,ls7))?G.yield(B.controller.closeSheet(),0):G.return()})};
VT[gR]=[_.BD];var Ji=function(W,B){this.innertubeTransportService=W;this.controller=B};
_.C(Ji,JT);Ji.prototype.resolveCommand=function(W){var B=this,z,G,Y,d;return _.T(function(E){if(E.nextAddress==1)return z=_.k(W,mpd),(G=z)!=null&&G.panelId?E.yield(B.controller.getReloadContinuation(z.panelId),2):E.return();if(E.nextAddress!=3)return(Y=E.yieldResult)?E.yield(_.BA(B.innertubeTransportService,W,{continuation:Y}),3):E.return();d=E.yieldResult;return E.yield(B.controller.updatePanel(z.panelId,d.content,!1),0)})};
Ji[gR]=[_.N_,_.WD];var gt=function(W,B,z){this.innertubeTransportService=W;this.JSC$17359_screenManager=B;this.JSC$17359_commandHandler=z};
_.C(gt,JT);
gt.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E,v;return _.T(function(c){if(c.nextAddress==1){z=_.k(W,_.FGR);if(!z)return c.return();if(z.commands)for(G=_.A(z.commands),Y=G.next();!Y.done;Y=G.next())d=Y.value,B.JSC$17359_commandHandler.resolveCommand(d,{disableClickTracking:!0});E=_.XF(W.clickTrackingParams);_.KS(B.JSC$17359_screenManager,21760,E,{layer:7,parentLayer:0});return c.yield(_.BA(B.innertubeTransportService,W),2)}v=c.yieldResult;if(!v)return c.return();B.JSC$17359_screenManager.graftServerVe(v.trackingParams,E,
7);_.HG(c)})};
gt[gR]=[_.N_,_.Gz,_.p4];var ti=new _.t1("PANEL_LOADING_STRATEGY_TOKEN");var su=function(W,B){this.controller=W;this.panelLoadingStrategy=B};
_.C(su,JT);
su.prototype.resolveCommand=function(W,B){var z=this,G,Y,d;return _.T(function(E){G=_.k(W,IsU);if((Y=G)==null||!Y.panelLoadingStrategy)return E.return();d=function(v){var c,J,g,t,P,Z,l,b,O,K;return _.T(function(e){J=_.k((c=v.dialogViewModel)==null?void 0:c.header,nz6);g={viewModel:v.dialogViewModel};t={};if(l=_.r("web_enable_dialog_header_label")?(P=J)==null?void 0:(Z=P.headline)==null?void 0:Z.content:void 0)t.ariaLabel=l;G.dismissOnBackgroundTap===!1&&(t.isModal=!0);return v.dialogViewModel?e.yield(z.controller.openDialog(g,
(K=(b=B)==null?void 0:(O=b.form)==null?void 0:O.element)!=null?K:document.body,t),0):e.return()})};
return E.yield(z.panelLoadingStrategy.execute({command:W,data:G.panelLoadingStrategy,renderFn:d,createScreenConfig:{layer:4}}),0)})};
su[gR]=[_.zo,ti];var PL=function(W,B,z){this.innertubeTransportService=W;this.controller=B;this.JSC$17379_screenManager=z};
_.C(PL,JT);
PL.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v,c,J,g,t,P,Z,l;return _.T(function(b){switch(b.nextAddress){case 1:G=_.k(W,_.jT);if(!G)return b.return();var O,K=G.panelIdentifier||((O=G.identifier)==null?void 0:O.tag);if(!K)throw Error("Ei");Y=K;return b.yield(z.controller.isVisible(Y,!0),2);case 2:if((d=b.yieldResult)&&G.blockIfPanelOpen)return b.return();c=(v=(E=z.controller).getPanelContent)==null?void 0:v.call(E,Y);if(!(O=c))if(G){var e;O=((e=G.globalConfiguration)==null?void 0:
e.initialState)||G.engagementPanel;if(e=!O)e=!!(G==null?0:(K=G.engagementPanelPresentationConfigs)==null?0:K.engagementPanelPopupPresentationConfig);e&&(O=_.XwQ(G.panelIdentifier,G.identifier))}else O=void 0;J=O;g=G.engagementPanelPresentationConfigs;t=G.engagementPanelExtras;return b.yield(z.controller.showPanel(Y,J,g,t,(P=B)==null?void 0:(Z=P.form)==null?void 0:Z.element),3);case 3:if(!G.globalConfiguration){b.jumpTo(0);break}_.KS(z.JSC$17379_screenManager,32633);return b.yield(_.BA(z.innertubeTransportService,
W),5);case 5:return l=b.yieldResult,z.JSC$17379_screenManager.graftServerVe(l.trackingParams),b.yield(z.controller.updatePanel(Y,l.content,!0,t,void 0,l.updatePanelContinuationData),0)}})};
PL[gR]=[_.N_,_.WD,_.Gz];var Zu=function(W,B){this.controller=W;this.panelLoadingStrategy=B};
_.C(Zu,JT);Zu.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v,c;return _.T(function(J){G=_.k(W,_.jc);if((Y=G)==null||!Y.panelLoadingStrategy)return J.return();v=rMi(z.controller,(d=B)==null?void 0:(E=d.form)==null?void 0:E.element);c=function(g){return _.T(function(t){return g.sheetViewModel?t.yield(z.controller.openSheet({viewModel:g.sheetViewModel},v),0):t.return()})};
return J.yield(z.panelLoadingStrategy.execute({command:W,data:G.panelLoadingStrategy,renderFn:c,createScreenConfig:{layer:0}}),0)})};
Zu[gR]=[_.BD,ti];var rt=function(W,B){this.controller=W;this.JSC$17386_commandHandler=B};
_.C(rt,JT);rt.prototype.resolveCommand=function(W,B){var z=this,G,Y,d;return _.T(function(E){if(E.nextAddress==1){G=_.k(W,y7M);var v=_.k(G.showCommand,_.jT),c,J,g=(J=v==null?void 0:v.panelIdentifier)!=null?J:v==null?void 0:(c=v.identifier)==null?void 0:c.tag;if(!g)throw Error("Fi");Y=g;return E.yield(z.controller.isVisible(Y),2)}return(d=E.yieldResult)?E.yield(z.controller.hidePanel(Y),0):E.yield(z.JSC$17386_commandHandler.resolveCommand(G.showCommand,B),0)})};
rt[gR]=[_.WD,_.p4];var kZ=function(W,B,z){this.innertubeTransportService=W;this.controller=B;this.JSC$17389_screenManager=z};
_.C(kZ,JT);
kZ.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a,q,n,L,By;return _.T(function(gk){switch(gk.nextAddress){case 1:return G=z=_.k(W,qzH),Y=G.targetPanelIdentifier,d=G.contentSourcePanelIdentifier,E=G.globalConfiguration,((v=Y)==null?0:v.tag)&&((c=d)==null?0:c.tag)?E?gk.yield(B.controller.showPanel(Y.tag,_.XwQ(Y.tag,Y),void 0,void 0,void 0),5):gk.yield((P=(t=B.controller).getPanel)==null?void 0:P.call(t,d.tag),4):gk.return();case 4:Z=gk.yieldResult;J=(l=Z)==null?
void 0:(O=(b=l).getPanelContent)==null?void 0:O.call(b);gk.jumpTo(3);break;case 5:return gk.yield(_.BA(B.innertubeTransportService,W),6);case 6:K=gk.yieldResult,((e=K)==null?0:e.trackingParams)&&B.JSC$17389_screenManager.graftServerVe(K.trackingParams),J=(a=K)==null?void 0:a.content,g=(q=K)==null?void 0:q.updatePanelContinuationData;case 3:if(L=(n=J)==null?void 0:n.engagementPanelSectionListRenderer)return gk.yield(B.controller.showPanel(Y.tag,void 0,void 0,void 0,void 0,{content:L.content,secondaryHeaderContent:(By=
L.header)!=null?By:{},targetId:L.targetId},g),0);gk.jumpTo(0)}})};
kZ[gR]=[_.N_,_.WD,_.Gz];var lX=function(){};
_.C(lX,JT);lX.prototype.resolveCommand=function(W){var B,z,G;return _.T(function(Y){if(Y.nextAddress==1)return(B=_.k(W,a3F))?Y.yield(_.Zp(),2):Y.return();z=Y.yieldResult;if(!z)return Y.return();var d=z,E=(G=B)==null?void 0:G.languageCode,v;(d==null?0:(v=d.isReady)==null?0:v.call(d))&&(E=K_t(d,E))&&d.setAudioTrack(E);_.HG(Y)})};var IV=function(){};
_.C(IV,JT);var k6b=function(W){var B;return _.T(function(z){B=_.eD("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;W.JSC$17398_mainAppPlayer=new lh(B);document.addEventListener("yt-page-data-updated",W.JSC$17398_pauseOnNavigation.bind(W));_.HG(z)})};
IV.prototype.JSC$17398_pauseOnNavigation=function(){var W=this,B,z;return _.T(function(G){if(G.nextAddress==1)return B=W.JSC$17398_mainAppPlayer,G.yield(B.api,2);z=G.yieldResult;z.pauseVideo();_.HG(G)})};
var l9f=function(W,B,z){var G;return _.T(function(Y){G=W.JSC$17398_mainAppPlayer;return Y.yield(G.loadVideoWithPlayerVars({videoId:B,audio_only:"1",player_params:z}),0)})};
IV.prototype.pauseVideo=function(){var W=this,B,z;return _.T(function(G){if(G.nextAddress==1)return B=W.JSC$17398_mainAppPlayer,G.yield(B.api,2);z=G.yieldResult;z.pauseVideo();_.HG(G)})};
IV.prototype.playVideo=function(){var W=this,B,z;return _.T(function(G){if(G.nextAddress==1)return B=W.JSC$17398_mainAppPlayer,G.yield(B.api,2);z=G.yieldResult;z.playVideo();_.HG(G)})};
var CRK=function(W){var B,z;return _.T(function(G){if(G.nextAddress==1)return B=W.JSC$17398_mainAppPlayer,G.yield(B.api,2);z=G.yieldResult;z.mute();_.HG(G)})},I9Y=function(W){var B,z;
return _.T(function(G){if(G.nextAddress==1)return B=W.JSC$17398_mainAppPlayer,G.yield(B.api,2);z=G.yieldResult;z.unMute();_.HG(G)})},oM6=function(W,B){return _.T(function(z){switch(z.nextAddress){case 1:switch(B){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return z.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return z.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return z.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return z.jumpTo(5)}z.jumpTo(0);break;case 2:return z.yield(W.playVideo(),7);case 7:z.jumpTo(0);break;case 3:return z.yield(W.pauseVideo(),8);case 8:z.jumpTo(0);break;case 4:return z.yield(CRK(W),9);case 9:z.jumpTo(0);break;case 5:return z.yield(I9Y(W),10);case 10:z.jumpTo(0)}})};
IV.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E,v,c,J,g,t,P;return _.T(function(Z){return Z.nextAddress==1?(z=_.k(W,FLR),((G=z)==null?0:G.newPlaybackParams)||((Y=z)==null?0:Y.controlAction)?B.JSC$17398_mainAppPlayer?Z.jumpTo(2):Z.yield(k6b(B),2):Z.return()):((d=z)==null?0:d.newPlaybackParams)?(c=(E=z)==null?void 0:(v=E.newPlaybackParams)==null?void 0:v.externalVideoId,P=(t=(J=z)==null?void 0:(g=J.newPlaybackParams)==null?void 0:g.playerParams)!=null?t:"",c?Z.yield(l9f(B,c,P),0):Z.return()):
Z.yield(oM6(B,z.controlAction),0)})};var oV=function(W){this.JSC$17405_commandHandler=W};
_.C(oV,JT);
oV.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E,v;return _.T(function(c){if(c.nextAddress==1)return(z=_.k(W,Rd6))?c.yield(_.Zp(),2):c.return();G=c.yieldResult;if(!G)return c.return();var J=G,g=(Y=z)==null?void 0:Y.languageCode,t=(d=z)==null?void 0:d.isAutoTranslated;J.getVideoData&&_.ezX(J).length&&((g=xa0(J,g,t))?J.setOption("captions","track",g):(J.setOption("captions","stickyLoading",{}),J.setOption("captions","track",{})));E=G.isSubtitlesOn()?_.kq("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.kq("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");v=_.ia(E);B.JSC$17405_commandHandler.resolveCommand(v);_.HG(c)})};
oV[gR]=[_.p4];var hi=function(W,B){this.shortsPlayerPromise=W;this.JSC$17409_commandHandler=B};
_.C(hi,JT);
hi.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E,v,c,J;return _.T(function(g){if(g.nextAddress==1)return(z=_.k(W,t9H))?g.yield(B.shortsPlayerPromise,2):g.return();G=g.yieldResult;var t=Dak(G);t!=null&&t.length||(G.loadModule("captions"),t=Dak(G));Y=t;if((d=Y)==null||!d.length)return E=_.kq("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),v=_.ia(E),B.JSC$17409_commandHandler.resolveCommand(v),g.return();G.toggleSubtitles();c=G.isSubtitlesOn()?_.kq("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.kq("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");J=_.ia(c);B.JSC$17409_commandHandler.resolveCommand(J);_.HG(g)})};
hi[gR]=[_.EDd,_.p4];var HL=function(W){this.JSC$17412_actionRouter=W;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(B,z){B.triggerAction("yt-dismiss-shopping-timely-shelf-action",z)}]])};
_.C(HL,JT);HL.prototype.resolveCommand=function(W){var B=this,z,G,Y;return _.T(function(d){z=_.k(W,GkT);if((G=z)==null||!G.overlayId)return d.return();Y=B.dismissPlayerOverlayActions.get(z.overlayId);if(!Y)throw Error("Gi`"+z.overlayId);Y(B.JSC$17412_actionRouter,z);_.HG(d)})};
HL[gR]=[IH];var Fa=function(W){this.JSC$17416_playerPromise=W};
_.C(Fa,JT);Fa.prototype.resolveCommand=function(W){var B=this,z,G,Y,d;return _.T(function(E){if(E.nextAddress==1)return(z=_.k(W,Dp6))?E.yield(B.JSC$17416_playerPromise,2):E.return();G=E.yieldResult;Y=G.getVideoData().video_id;z.videoId===Y&&(d=Number(z.offsetFromVideoStartMilliseconds),d>=0&&G.seekTo(d/1E3));_.HG(E)})};
Fa[gR]=[_.Jg];var hDi=_.sg("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),S2=function(W){this.store=W};
_.C(S2,JT);
var H7r=function(W){var B,z,G,Y;return _.T(function(d){if(d.nextAddress==1)return B=_.eD("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,z=_.eD("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,G=B||z,W.JSC$17420_mainAppPlayer=new lh(G),d.yield(W.JSC$17420_mainAppPlayer.api,2);Y=d.yieldResult;Y.addEventListener("onStateChange",W.JSC$17420_playerStateChangeListener.bind(W));document.addEventListener("yt-page-data-updated",W.JSC$17420_pauseOnNavigation.bind(W));window.addEventListener("state-navigatestart",
W.JSC$17420_pauseOnNavigation.bind(W));_.HG(d)})};
S2.prototype.JSC$17420_playerStateChangeListener=function(W){switch(W){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"}F4q(this)};
var F4q=function(W){W.store.dispatch(_.bj("sfvAudioItemCurrentlyPlayingEntity",hDi,{key:hDi,externalVideoId:W.externalVideoId,sfvAudioItemPlaybackState:W.playbackState,nowPlayingEntityValue:W.nowPlayingEntityValue}))};
S2.prototype.JSC$17420_pauseOnNavigation=function(){var W=this,B,z,G,Y;return _.T(function(d){if(d.nextAddress==1){if(!W.JSC$17420_mainAppPlayer){var E=new _.oX("Error: mainAppPlayer is unavailable",W.JSC$17420_mainAppPlayer);_.jy(E);return d.return()}return d.yield(W.JSC$17420_mainAppPlayer.api,2)}B=d.yieldResult;G=(z=B)==null?void 0:z.getPlayerState();G!==1||(Y=B)!=null&&Y.pauseVideo();_.HG(d)})};
S2.prototype.playVideo=function(W,B,z){var G=this,Y,d;return _.T(function(E){if(E.nextAddress==1)return E.yield((Y=G.JSC$17420_mainAppPlayer)==null?void 0:Y.api,2);d=E.yieldResult;if(!G.JSC$17420_mainAppPlayer||!d){var v=new _.oX("Error: mainAppPlayer is unavailable",G.JSC$17420_mainAppPlayer);_.jy(v);return E.return()}return E.yield(G.JSC$17420_mainAppPlayer.loadVideoWithPlayerVars({videoId:G.externalVideoId,audio_only:"1",start:W/1E3,end:W/1E3+B,player_params:z}),0)})};
S2.prototype.pauseVideo=function(){var W=this,B,z;return _.T(function(G){if(G.nextAddress==1){if(!W.JSC$17420_mainAppPlayer){var Y=new _.oX("Error: mainAppPlayer is unavailable",W.JSC$17420_mainAppPlayer);_.jy(Y);return G.return()}return G.yield(W.JSC$17420_mainAppPlayer.api,2)}B=G.yieldResult;(z=B)==null||z.pauseVideo();_.HG(G)})};
S2.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a,q;return _.T(function(n){if(n.nextAddress==1)return z=_.k(W,wOQ),Y=(G=z)==null?void 0:G.nowPlayingEntityValue,E=(d=z)==null?void 0:d.externalVideoId,t=Number((g=(v=z)==null?void 0:(c=v.defaultStartPoints)==null?void 0:(J=c[0])==null?void 0:J.offsetMs)!=null?g:"0"),K=Number((O=(P=z)==null?void 0:(Z=P.defaultStartPoints)==null?void 0:(l=Z[0])==null?void 0:(b=l.duration)==null?void 0:b.seconds)!=null?O:"15"),q=(a=
(e=z)==null?void 0:e.playerParams)!=null?a:"",Y&&E?B.JSC$17420_mainAppPlayer?n.jumpTo(2):n.yield(H7r(B),2):n.return();if(n.nextAddress!=6){if(B.nowPlayingEntityValue&&Y===B.nowPlayingEntityValue)return B.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?n.yield(B.pauseVideo(),0):n.yield(B.playVideo(t,K,q),0);B.externalVideoId=E;B.nowPlayingEntityValue=Y;B.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return n.yield(B.playVideo(t,K,q),6)}F4q(B);return n.jumpTo(0)})};
S2[gR]=[ir];var bX=function(W){this.JSC$17438_commandHandler=W};
_.C(bX,JT);bX.prototype.resolveCommand=function(W,B){var z=this,G,Y,d;return _.T(function(E){if(E.nextAddress==1)return(G=_.k(W,Wf4))?E.yield(_.Zp(),2):E.return();Y=E.yieldResult;if(!Y)return E.return();(d=QMQ(Y))&&z.JSC$17438_commandHandler.resolveCommand(d,B);_.HG(E)})};
bX[gR]=[_.p4];var j2=function(W){this.JSC$17444_commandHandler=W};
_.C(j2,JT);j2.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v;return _.T(function(c){if(c.nextAddress==1)return(G=_.k(W,B1M))?c.yield(_.Zp(),2):c.return();Y=c.yieldResult;if(!Y)return c.return();(d=$ak(Y))?z.JSC$17444_commandHandler.resolveCommand(d,B):(E=_.kq("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),v=_.ia(E),z.JSC$17444_commandHandler.resolveCommand(v));_.HG(c)})};
j2[gR]=[_.p4];var fc=function(W){this.JSC$17447_playerPromise=W};
_.C(fc,JT);fc.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E;return _.T(function(v){if(v.nextAddress==1){z=_.k(W,Q96);if(!z)return v.return();G=z.overlayRenderer;return G?(Y=_.k(G,APM))?v.yield(B.JSC$17447_playerPromise,3):v.jumpTo(0):v.return()}d=v.yieldResult;d.renderChapterSeekingAnimation(1,_.zR(Y.text),(E=Y.icon)==null?void 0:E.iconType);_.HG(v)})};
fc[gR]=[_.Jg];var Ou=function(W){this.store=W};
_.C(Ou,JT);
Ou.prototype.resolveCommand=function(W){var B=this,z,G,Y;return _.T(function(d){if(d.nextAddress==1){z=_.k(W,S5M);if(!z)return d.return();G="";(Y=B.store.getState().collabInviteLink)&&z.id===Y.playlistId?G=Y.inviteLinkURL:z.shortUrl&&(G=z.shortUrl);return G?d.yield(navigator.clipboard.writeText(G),3):d.jumpTo(0)}var E={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.kq("COPY_LINK_SUCCESS_TOAST")}}}}};_.dO().resolve(_.p4).resolveCommand(E);_.HG(d)})};
Ou[gR]=[M3];var Xa=function(W,B){this.innertubeTransportService=W;this.JSC$17457_commandHandler=B};
_.C(Xa,JT);Xa.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v,c,J,g,t,P;return _.T(function(Z){if(Z.nextAddress==1)return(G=_.k(W,_.cO))?Z.yield(_.BA(z.innertubeTransportService,W,(Y=B)==null?void 0:Y.form),2):Z.return();(d=Z.yieldResult)&&d.errorMetadata&&(E=d,v=_.ia(E.error.message),z.JSC$17457_commandHandler.resolveCommand(v));c=d;if((J=c)==null?0:J.actions)for(g=_.A(c.actions),t=g.next();!t.done;t=g.next())P=t.value,z.JSC$17457_commandHandler.resolveCommand(P);_.HG(Z)})};
Xa[gR]=[_.N_,_.p4];var Kc=function(){};
_.C(Kc,JT);Kc.prototype.resolveCommand=function(W){var B;return _.T(function(z){B=_.k(W,Z_u);if(!B)return z.return();(new And(B)).show();_.HG(z)})};_.uX=new _.t1("PLAYLIST_EDIT_CONTROLLER_TOKEN");var e2=function(W,B,z,G){this.store=W;this.innertubeTransportService=B;this.controller=z;this.JSC$17465_commandHandler=G};
_.C(e2,JT);
e2.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a,q,n,L,By,gk,vy,lx,Zv,VR;return _.T(function(ux){if(ux.nextAddress==1){G=_.k(W,_.pS);if(!G)return ux.return();if(G.clientActions){Y=_.A(G.clientActions);for(d=Y.next();!d.done;d=Y.next())E=d.value,z.JSC$17465_commandHandler.resolveCommand(E);var X2,WQ=B==null?void 0:(X2=B.form)==null?void 0:X2.element;WQ&&_.v0(WQ,"yt-dismissible-item-action",G.clientActions)}return ux.yield(_.BA(z.innertubeTransportService,W,(v=
B)==null?void 0:v.form),2)}if(c=ux.yieldResult)c.errorMetadata?(J=c,g=_.ia(J.error.message),z.JSC$17465_commandHandler.resolveCommand(g),"error"in c&&((t=B)==null?0:(P=t.commandController)==null?0:P.onServerError)&&((Z=B)==null||(l=Z.commandController)==null||l.onServerError(W,c))):(b=B)==null||(O=b.commandController)==null||(e=(K=O).onSuccess)==null||e.call(K,W,c);a=c;((q=a)==null?0:q.collaborationInviteLink)&&G.playlistId&&(_.r("web_enable_invite_collaborators_link")||_.r("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
z.store.dispatch(_.Tl({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:G.playlistId,inviteLinkUrl:a.collaborationInviteLink}}));((n=a)==null?0:n.redirectEndpoint)&&z.JSC$17465_commandHandler.resolveCommand(a.redirectEndpoint);((L=a)==null?0:(By=L.newHeader)==null?0:By.playlistHeaderRenderer)?SFi(z.controller,a.newHeader.playlistHeaderRenderer):((gk=a)==null?0:(vy=gk.newHeader)==null?0:vy.musicEditablePlaylistDetailHeaderRenderer)&&SFi(z.controller,a.newHeader.musicEditablePlaylistDetailHeaderRenderer);
z.controller.playlistVideoListElement&&((lx=a)==null?0:(Zv=lx.playlistEditResults)==null?0:(VR=Zv[0])==null?0:VR.playlistEditVideoAddedResultData)&&((WQ=z.controller.playlistVideoListElement)==null||WQ.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:a.playlistEditResults[0].playlistEditVideoAddedResultData})));_.HG(ux)})};
e2[gR]=[M3,_.N_,_.uX,_.p4];var m$=function(W,B){this.controller=W;this.JSC$17475_commandHandler=B};
_.C(m$,JT);m$.prototype.resolveCommand=function(W,B){var z=this,G,Y,d;return _.T(function(E){G=_.k(W,b_u);z.controller.showRefreshPill&&((Y=G)==null?0:Y.command)&&(z.JSC$17475_commandHandler.resolveCommand((d=G)==null?void 0:d.command,B),z.controller.showRefreshPill=!1);_.HG(E)})};
m$[gR]=[_.uC,_.p4];var xZ=function(W,B){this.store=W;this.JSC$17479_commandHandler=B||_.IB.instance};
_.C(xZ,JT);xZ.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v,c,J,g,t,P;return _.T(function(Z){G=_.k(W,q59);Y=z.store.getState().radioButtonGroup;if((d=G)==null?0:d.command)z.JSC$17479_commandHandler.resolveCommand((E=G)==null?void 0:E.command,B);else if(Y&&((v=G)==null?void 0:v.formId)===Y.currentFormId)for(c=Object.values(Y.commandsMap),J=_.A(c),g=J.next();!g.done;g=J.next())t=g.value,(P=_.$B(t))&&z.JSC$17479_commandHandler.resolveCommand(P,B);_.HG(Z)})};
xZ[gR]=[_.v7];var Du=new _.t1("USER_PREFS");var QT=function(W){this.JSC$17484_prefCookie=W};
_.C(QT,JT);QT.prototype.resolveCommand=function(W){var B=this,z;return _.T(function(G){(z=_.k(W,c4R))&&typeof z.useListView==="boolean"&&(_.oP(0,155,z.useListView),B.JSC$17484_prefCookie.save());_.HG(G)})};
QT[gR]=[Du];var yT=function(W){this.JSC$17488_prefCookie=W};
_.C(yT,JT);yT.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E;return _.T(function(v){z=_.k(W,k2F);if((G=z)==null||!G.gl)return v.return();Y=z.gl;d={persist_gl:"1",gl:Y};B.JSC$17488_prefCookie.set("gl",Y);B.JSC$17488_prefCookie.save();E=imU(d);_.zS(E);_.HG(v)})};
yT[gR]=[Du];var qS=function(W){this.JSC$17492_prefCookie=W};
_.C(qS,JT);qS.prototype.resolveCommand=function(W){var B=this,z,G;return _.T(function(Y){z=_.k(W,fU6);if(!z)return Y.return();G=!1;z.flagNum&&typeof z.value==="boolean"?(_.oP(0,z.flagNum,z.value),G=!0):z.key&&typeof z.stringValue==="string"&&(B.JSC$17492_prefCookie.set(z.key,z.stringValue),G=!0);G&&B.JSC$17492_prefCookie.save();_.HG(Y)})};
qS[gR]=[Du];var nc=new _.t1("PREF_STORAGE_PROMISE_TOKEN");var NS=function(W){this.JSC$17496_prefStoragePromise=W};
_.C(NS,JT);NS.prototype.resolveCommand=function(W){var B=this,z,G;return _.T(function(Y){if(Y.nextAddress==1)return(z=_.k(W,Xru))?Y.yield(B.JSC$17496_prefStoragePromise,2):Y.return();G=Y.yieldResult;return G===void 0||z.key===void 0||z.value===void 0?Y.return():Y.yield(G.set(z.key,z.value),0)})};
NS[gR]=[nc];var b7f=function(W){this.innertubeTransportService=W};
_.C(b7f,JT);b7f.prototype.resolveCommand=function(W,B){var z=this,G,Y;return _.T(function(d){(G=_.k(W,_.KxR))&&G&&G.isFirstRequest&&(_.e4("search_overview_answer"),_.mj("so_rq",void 0,"search_overview_answer"));return d.yield(_.BA(z.innertubeTransportService,W,(Y=B)==null?void 0:Y.form),0)})};
b7f[gR]=[_.N_];var ju0=function(){};
_.C(ju0,JT);
ju0.prototype.resolveCommand=function(W){var B,z,G,Y,d,E,v,c,J;return _.T(function(g){B=_.k(W,xpF);if((z=B)==null?0:z.sectionIdentifier){if(B.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(Y=(G=document.getElementsByTagName(B.sectionIdentifier))==null?void 0:G.item(0))Y.scrollIntoView({behavior:"smooth"}),(d=arx(Y))&&d.focus({preventScroll:!0});return g.return()}E=document.querySelector("[section-identifier="+B.sectionIdentifier+"]");v=document.querySelector("[section-identifier="+B.referenceSectionIdentifier+
"]");if(!E)return g.return();c=B.verticalScrollOffsetDp?B.verticalScrollOffsetDp:0;v&&(c-=v.offsetTop);window.scrollTo({top:E.offsetTop+c,behavior:"smooth"});(J=arx(E))&&J.focus({preventScroll:!0})}_.HG(g)})};var $Z=function(W){this.JSC$17508_commandHandler=W};
_.C($Z,JT);
$Z.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E,v,c;return _.T(function(J){if(J.nextAddress==1){z=_.k(W,pzH);if(!z||!z.imageBytes||!navigator.clipboard)return J.return();if(z.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.jy(Error("Ii")),J.return();_.kA(J,2);Y=(G=z)==null?void 0:G.imageBytes;d=Y.replace(/-/g,"+").replace(/_/g,"/");E=Hbr(d);v={};c=[new ClipboardItem((v[E.type]=E,v))];return J.yield(navigator.clipboard.write(c),4)}if(J.nextAddress!=2)return z.successCommand&&
B.JSC$17508_commandHandler.resolveCommand(z.successCommand),_.Nn(J,0);_.h6(J);z.errorCommand&&B.JSC$17508_commandHandler.resolveCommand(z.errorCommand);_.HG(J)})};
$Z[gR]=[_.p4];var Lc=function(W,B){this.innertubeTransportService=W;this.JSC$17512_commandHandler=B};
_.C(Lc,JT);Lc.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v;return _.T(function(c){if(c.nextAddress==1)return(G=_.k(W,A5R))?c.yield(_.BA(z.innertubeTransportService,W,(Y=B)==null?void 0:Y.form),2):c.return();(d=c.yieldResult)&&d.errorMetadata&&G.onFailureCommand&&z.JSC$17512_commandHandler.resolveCommand(G.onFailureCommand);E=d;((v=E)==null?0:v.shareCommand)&&z.JSC$17512_commandHandler.resolveCommand(E.shareCommand,B);_.HG(c)})};
Lc[gR]=[_.N_,_.p4];var Uu=function(){};
_.C(Uu,JT);Uu.prototype.resolveCommand=function(W){var B,z;return _.T(function(G){B=_.k(W,H_R);if(!B||!navigator.share)return G.return();z={url:B.url};try{return G.return(navigator.share(z))}catch(Y){}_.HG(G)})};var MS=function(){};
_.C(MS,JT);MS.prototype.resolveCommand=function(){return _.T(function(W){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.HG(W)})};var aV=function(W){this.JSC$17522_navigationConfirmationService=W};
_.C(aV,JT);aV.prototype.resolveCommand=function(){var W=this;return _.T(function(B){W.JSC$17522_navigationConfirmationService.cancelPendingNavigation();_.HG(B)})};
aV[gR]=[nW];var RV=function(W){this.JSC$17525_screenManager=W};
_.C(RV,JT);RV.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v,c,J;return _.T(function(g){Y=(G=B.form)==null?void 0:G.event;E=(d=B.form)==null?void 0:d.element;if(!Y)throw new _.oX("Event not passed in when resolving command");v=_.A(Y.composedPath());for(c=v.next();!c.done;c=v.next())if(J=c.value,J.tagName==="YT-COPY-LINK-RENDERER")return J.copyUrlToClipboard(),E&&_.aK(z.JSC$17525_screenManager,E),g.return();_.HG(g)})};
RV[gR]=[_.Gz];var WI=function(){this.JSC$17529_miniAppClientDataProvider=_.dO().resolve(_.ZX)};
_.C(WI,JT);WI.prototype.resolveCommand=function(){var W=this,B,z;return _.T(function(G){if(W.JSC$17529_miniAppClientDataProvider.clientData.has("video_id")){var Y=W.JSC$17529_miniAppClientDataProvider,d=Y.clientData.get("video_id");d&&Y.clientData.delete("video_id");B="https://youtube.com/watch?v="+d;z=_.DR(B);if(z===void 0)throw Error("Ji`"+B);_.BG(window,z)}_.HG(G)})};var BI=function(){};
_.C(BI,JT);BI.prototype.resolveCommand=function(){return _.T(function(W){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.HG(W)})};var z7=function(){};
_.C(z7,JT);z7.prototype.resolveCommand=function(){var W;return _.T(function(B){if(B.nextAddress==1)return B.yield(_.jxr(window.document.documentElement),2);(W=document.querySelector("mini-app-container-view-model iframe"))&&W.focus();_.HG(B)})};var G7=function(W){this.JSC$17536_navigationConfirmationService=W};
_.C(G7,JT);
G7.prototype.resolveCommand=function(){var W=this;return _.T(function(B){var z=W.JSC$17536_navigationConfirmationService,G=_.dO().resolve(_.M1),Y;if(((Y=z.navigateParams)==null?void 0:Y.data)!==void 0){var d;_.Tp6(G,z.navigateParams.endpoint,z.navigateParams.data,(d=z.navigateParams.navigationType)!=null?d:1,z.navigateParams.tempData,z.navigateParams.isMiniplayer,void 0,!0);z.navigateParams=void 0;z.customConfirmationCommand=void 0}else z.navigateParams&&(G.navigate(z.navigateParams.endpoint,z.navigateParams.reload,
z.navigateParams.params,z.navigateParams.tempData,z.navigateParams.requestType,z.navigateParams.createScreenConfig,!0),z.navigateParams=void 0,z.customConfirmationCommand=void 0);_.HG(B)})};
G7[gR]=[nW];var Ya=function(){};
_.C(Ya,JT);Ya.prototype.resolveCommand=function(){return _.T(function(W){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.HG(W)})};var dl=function(W){this.JSC$17541_prefStorage=W};
_.C(dl,JT);dl.prototype.resolveCommand=function(){var W=this,B,z;return _.T(function(G){switch(G.nextAddress){case 1:return G.yield(W.JSC$17541_prefStorage,2);case 2:return(B=G.yieldResult)?G.yield(B.set("sfvle",!1),3):G.return();case 3:return G.yield(B.set("sfvles",!0),4);case 4:z=_.IP(),_.oP(0,203,!1),_.oP(0,204,!0),z.save(),_.HG(G)}})};
dl[gR]=[nc];var pZ=function(W){this.JSC$17544_prefStorage=W};
_.C(pZ,JT);pZ.prototype.resolveCommand=function(){var W=this,B,z;return _.T(function(G){switch(G.nextAddress){case 1:return G.yield(W.JSC$17544_prefStorage,2);case 2:return(B=G.yieldResult)?G.yield(B.set("sfvle",!0),3):G.return();case 3:return G.yield(B.set("sfvles",!0),4);case 4:z=_.IP(),_.oP(0,203,!0),_.oP(0,204,!0),z.save(),_.HG(G)}})};
pZ[gR]=[nc];_.f9K=new _.t1("SNACKBAR_CONTROLLER_TOKEN");_.O7i=new _.t1("SHOULD_SHOW_PIVOT_BAR_TOKEN");var AN=function(W){this.controller=W};
_.C(AN,JT);AN.prototype.resolveCommand=function(W){var B=this,z;return _.T(function(G){z=_.k(W,CuF);if(!z)return G.return();var Y=B.controller;Y.closeSnackbarFn&&Y.closeSnackbarFn();_.HG(G)})};
AN[gR]=[_.f9K];var i8=function(W,B){this.controller=W;this.sheetController=B};
_.C(i8,JT);i8.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v,c;return _.T(function(J){G=_.k(W,ozD);if(!G)return J.return();E=rMi(z.sheetController,(Y=B)==null?void 0:(d=Y.form)==null?void 0:d.element);v=_.k(G.content,x8d);if(!v)return J.return();var g=z.controller,t=v,P=(c=G.animationStyle)!=null?c:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(g.showSnackbarFn)g.showSnackbarFn({snackbarViewModel:t,animationStyle:P,durationMs:G.durationSeconds*1E3,target:E});else throw Error("sj");_.HG(J)})};
i8[gR]=[_.f9K,_.BD];var EB=function(){};
_.C(EB,JT);EB.prototype.resolveCommand=function(W){var B;return _.T(function(z){B=_.k(W,O_U);if(!B||typeof B.key!=="string"||typeof B.value!=="string")return z.return();window.localStorage.setItem(B.key,B.value);_.HG(z)})};var T7=function(W){this.store=W};
_.C(T7,JT);T7.prototype.resolveCommand=function(W){var B=this,z;return _.T(function(G){z=_.k(W,wj8);if(!z||!z.stepId||!z.token)return G.return();B.store.dispatch(cTM({stepId:z.stepId,token:z.token,isSelected:!1}));_.HG(G)})};
T7[gR]=[M3];var vI=function(W,B,z){this.innertubeTransportService=W;this.store=B;this.JSC$17563_screenManager=z};
_.C(vI,JT);
vI.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a,q,n,L,By,gk;return _.T(function(vy){z=_.k(W,hW6);if(!z||(G=z.stepIds)==null||!G.length)return vy.return();Y=B.store.getState().talkToRecs;d=[];E=[];v=_.A(z.stepIds);for(c=v.next();!c.done;c=v.next())for(J=c.value,g=void 0,(t=(g=Y.stepStates[J])==null?void 0:g.userQuery)&&E.push({userQuery:t.userQuery,userQueryToken:t.token}),P=void 0,Z=(P=Y.stepStates[J])==null?void 0:P.selectionStates,l=_.A(Object.entries(Z)),b=
l.next();!b.done;b=l.next())O=b.value,K=_.A(O),e=K.next().value,a=K.next().value,q=e,n=a,n.isSelected&&d.push(q);L={selectedChipTokens:d,userQueries:E,submittedStepIds:z.stepIds};By={browseTalk2recsFormData:L};z.browseEndpoint?(gk=W,_.Q2(gk,_.oE,z.browseEndpoint)):z.command&&(gk=z.command);return gk?vy.yield(_.BA(B.innertubeTransportService,gk,{formData:By,disableCache:!0}).then(function(lx){(lx==null?0:lx.trackingParams)&&B.JSC$17563_screenManager.graftServerVe(lx==null?void 0:lx.trackingParams)}),
0):vy.return()})};
vI[gR]=[_.N_,M3,_.Gz];var cI=function(W){this.store=W};
_.C(cI,JT);cI.prototype.resolveCommand=function(W){var B=this,z;return _.T(function(G){z=_.k(W,ch0);if(!z||!z.stepId||!z.token)return G.return();B.store.dispatch(cTM({stepId:z.stepId,token:z.token,isSelected:!0}));_.HG(G)})};
cI[gR]=[M3];var wl=function(W){this.store=W};
_.C(wl,JT);wl.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v;return _.T(function(c){G=_.k(W,HaR);if(!G||!G.stepId||!G.userQueryToken)return c.return();v=(E=(Y=B)==null?void 0:(d=Y.form)==null?void 0:d.userQuery)!=null?E:"";z.store.dispatch(_.Tl({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:G.stepId,userQueryToken:G.userQueryToken,userQuery:v}}));_.HG(c)})};
wl[gR]=[M3];_.XQ9=new _.t1("TIMELY_ACTIONS_CONTROLLER_TOKEN");var VZ=function(W){this.controller=W};
_.C(VZ,JT);VZ.prototype.resolveCommand=function(W){var B=this,z,G,Y,d;return _.T(function(E){z=_.k(W,uJU);if(!z)return E.return();G=z;Y=G.id;d=G.isVisible;if(Y===void 0||d===void 0)return E.return();var v;(v=B.controller.timelyActionsMap.get(Y))==null||v(Y,d);_.HG(E)})};
VZ[gR]=[_.XQ9];var K4K=function(){this.timelyActionsMap=new Map};var JN=function(W){this.JSC$17589_commandHandler=W};
_.C(JN,JT);JN.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E;return _.T(function(v){z=_.k(W,_.DL);if(!z)return v.return();d=(G=z.item)==null?void 0:(Y=G.notificationTextRenderer)==null?void 0:Y.successResponseText;if(!d)return v.return();E=_.ps(d);B.JSC$17589_commandHandler.resolveCommand(E);_.HG(v)})};
JN[gR]=[_.p4];var gl=function(W,B){this.innertubeTransportService=W;this.JSC$17594_playerApiPromise=B};
_.C(gl,JT);
gl.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E,v,c,J,g;return _.T(function(t){if(t.nextAddress==1)return t.yield(B.JSC$17594_playerApiPromise,2);z=t.yieldResult;G=z.getOption("captions","track");Y=Object.assign({},_.k(W,_.zQ4));(E=(d=z.getVideoData())==null?void 0:d.video_id)?Y.externalVideoId=E:_.nx(Error("Ki"));if((v=G)==null?0:v.languageCode)Y.languageCode=G.languageCode;if((c=G)==null?0:c.kind)Y.kind=G.kind;if((J=G)==null?0:J.name)Y.name=G.name;g=Object.assign({},W,{getTranscriptEndpoint:Y});return t.yield(_.BA(B.innertubeTransportService,
g),0)})};
gl[gR]=[_.N_,_.Jg];var tN=function(){};
_.C(tN,JT);tN.prototype.resolveCommand=function(W){var B,z,G,Y,d,E,v,c;return _.T(function(J){B=_.k(W,y4M);if((z=B)==null||!z.paramKeyValuePairs)return J.return();G=window.location.href;Y=_.A(B.paramKeyValuePairs);for(d=Y.next();!d.done;d=Y.next())E=d.value,E.key&&E.value&&(v={},G=_.M6(G,(v[E.key]=E.value,v)));c=_.dO().resolve(_.QO);_.DH(c,G);_.HG(J)})};var sB=function(W,B){this.JSC$17601_commandHandler=W;this.innertubeTransportService=B};
_.C(sB,JT);
sB.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a;return _.T(function(q){switch(q.nextAddress){case 1:return(d=(G=B)==null?void 0:(Y=G.form)==null?void 0:Y.element)&&_.nk(d),E=_.IP().get("hl"),v="",_.kA(q,2),q.yield(aZx(E),4);case 4:v=q.yieldResult;_.Nn(q,3);break;case 2:return _.h6(q),d&&_.NF(d),_.jy(Error("Mi"),"ERROR"),q.return();case 3:c=_.k(W,JPD);if(!c)return d&&_.NF(d),q.return();(t=(J=c.commerceActionConfig)==null?void 0:(g=J.commandLifeCycleConfig)==null?
void 0:g.onStartCommand)&&z.JSC$17601_commandHandler.resolveCommand(t);return q.yield(_.BA(z.innertubeTransportService,W,{client_data:{paymentsClientToken:{token:v}}}),5);case 5:(P=q.yieldResult)?(d&&_.NF(d),((O=P)==null?0:O.command)&&z.JSC$17601_commandHandler.resolveCommand(P.command),(a=(K=c.commerceActionConfig)==null?void 0:(e=K.commandLifeCycleConfig)==null?void 0:e.onSuccessCommand)&&z.JSC$17601_commandHandler.resolveCommand(a)):(d&&_.NF(d),_.jy(Error("Ni")),(b=(Z=c.commerceActionConfig)==
null?void 0:(l=Z.commandLifeCycleConfig)==null?void 0:l.onFailureCommand)&&z.JSC$17601_commandHandler.resolveCommand(b)),_.HG(q)}})};
sB[gR]=[_.p4,_.N_];var PI=function(W,B,z){this.store=W;this.JSC$17617_commandHandler=B;this.innertubeTransportService=z};
_.C(PI,JT);
PI.prototype.resolveCommand=function(W,B){var z=this,G,Y,d,E,v,c,J,g,t;return _.T(function(P){G=_.k(W,g19);Y=G.googlePaymentPayload;G.onStartCommand&&z.JSC$17617_commandHandler.resolveCommand(G.onStartCommand);d=Y.encryptedPurchaseParams;E=Y.ypcLogWalletAnalyticDataEndpoint;v=G.serializedTransactionFlowLoggingParams;c=Y.serializedPaymentsClientParams;J=G.ypcCujContext;t=BKD(z.innertubeTransportService,(g=B)==null?void 0:g.form,d,E,v,c,J);return P.return(t.then(function(Z){RzX(B==null?void 0:B.form,
!1);var l=z.store,b=z.JSC$17617_commandHandler,O=Z.integratorData;O==null||O===""||Z.error!=null?(String(Z.error)==="-1"&&G.onDismissCommand?b.resolveCommand(G.onDismissCommand):String(Z.error)!=="-1"&&G.onFailureCommand&&b.resolveCommand(G.onFailureCommand),String(Z.error)!=="-1"&&String(Z.error)!=="132"&&_.jy(Error("Oi"),"ERROR")):(G.googlePaymentEntityKey&&l.dispatch(_.bj("commerceAcquisitionClientPayloadEntity",G.googlePaymentEntityKey,{key:G.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:O,
fundsGuaranteeCallbackClientData:Z.integratorClientCallbackData}}})),G.onSuccessCommand&&b.resolveCommand(G.onSuccessCommand));_.gV()},function(Z){RzX(B==null?void 0:B.form,!1);
_.jy(Z,"ERROR");G.onFailureCommand&&z.JSC$17617_commandHandler.resolveCommand(G.onFailureCommand)}))})};
PI[gR]=[ir,_.p4,_.N_];var Zf=function(W,B){this.JSC$17621_commandHandler=W;this.purchaseManager=B};
_.C(Zf,JT);
Zf.prototype.resolveCommand=function(W){var B=this,z,G,Y,d,E,v,c,J,g;return _.T(function(t){z=_.k(W,tSM);((G=z)==null?0:(Y=G.commandLifeCycleConfig)==null?0:Y.onStartCommand)&&B.JSC$17621_commandHandler.resolveCommand(z.commandLifeCycleConfig.onStartCommand);if(!((d=z)==null?0:(E=d.googlePaymentPurchaseManagerPayload)==null?0:E.securePayloadBytes))return _.jy(Error("Pi"),"ERROR"),t.return();v=eSd(_.aD(z.googlePaymentPurchaseManagerPayload.securePayloadBytes));c=_.IP().get("hl");J=_.zN();Xyf(v.serialize(),
c,function(P){J.resolve(P)},function(P){J.reject(P)},J.resolve);
g=J.promise;return t.return(g.then(function(P){if(P)if(P==null?0:P.errorCode){_.jy(Error("Qi`"+P.errorCode),"ERROR");var Z,l;((Z=z)==null?0:(l=Z.commandLifeCycleConfig)==null?0:l.onFailureCommand)&&B.JSC$17621_commandHandler.resolveCommand(z.commandLifeCycleConfig.onFailureCommand)}else if(P==null?0:P.isCancelled){var b,O;((b=z)==null?0:(O=b.commandLifeCycleConfig)==null?0:O.onCancelCommand)&&B.JSC$17621_commandHandler.resolveCommand(z.commandLifeCycleConfig.onCancelCommand)}else{var K,e;((K=z)==
null?0:(e=K.commandLifeCycleConfig)==null?0:e.onSuccessCommand)&&B.JSC$17621_commandHandler.resolveCommand(z.commandLifeCycleConfig.onSuccessCommand)}},function(P){_.jy(P,"ERROR");
var Z,l;((Z=z)==null?0:(l=Z.commandLifeCycleConfig)==null?0:l.onFailureCommand)&&B.JSC$17621_commandHandler.resolveCommand(z.commandLifeCycleConfig.onFailureCommand)}))})};
Zf[gR]=[_.p4,Krq];var uH1=function(W,B){this.JSC$17629_commandHandler=W;this.commandAllowlistOverride=B;var z;this.commandAllowlist=(z=this.commandAllowlistOverride)!=null?z:GN};
uH1.prototype.handleResponse=function(W,B,z){var G,Y=B==null?void 0:(G=B.config)==null?void 0:G.command;if(!Y||this.commandAllowlist.some(function(d){return!!_.k(Y,d)})){B=void 0;
z!==void 0&&(B={form:{element:z}});W.onResponseReceivedCommand&&this.JSC$17629_commandHandler.resolveCommand(W.onResponseReceivedCommand,B);W.onResponseReceivedAction&&this.JSC$17629_commandHandler.resolveCommand(W.onResponseReceivedAction,B);W.onResponseReceivedEndpoint&&this.JSC$17629_commandHandler.resolveCommand(W.onResponseReceivedEndpoint,B);W.command&&this.JSC$17629_commandHandler.resolveCommand(W.command,B);if(W.onResponseReceivedCommands)for(z=_.A(W.onResponseReceivedCommands),G=z.next();!G.done;G=
z.next())this.JSC$17629_commandHandler.resolveCommand(G.value,B);if(W.onResponseReceivedActions)for(z=_.A(W.onResponseReceivedActions),G=z.next();!G.done;G=z.next())this.JSC$17629_commandHandler.resolveCommand(G.value,B);if(W.onResponseReceivedEndpoints)for(z=_.A(W.onResponseReceivedEndpoints),G=z.next();!G.done;G=z.next())this.JSC$17629_commandHandler.resolveCommand(G.value,B);if(W.actions)for(W=_.A(W.actions),z=W.next();!z.done;z=W.next())this.JSC$17629_commandHandler.resolveCommand(z.value,B)}};
uH1[gR]=[_.p4,_.Y8(YIv)];var eDq=new _.t1("INNERTUBE_TOKEN_SERVICE");var mTj=new _.t1("SCHEDULER_TOKEN");var xTi=function(W){this.scheduler=W;W={};this.tokenMap=(W.app={},W.user={},W)};
xTi.prototype.handleResponse=function(W,B){if(!B)throw Error("Ri");var z;if(W=(z=W.responseContext)==null?void 0:z.innertubeTokenJar){if(W.appTokens){var G,Y,d;z=(G=B.innerTubeRequest.context)==null?void 0:(Y=G.request)==null?void 0:(d=Y.innertubeTokenJar)==null?void 0:d.appTokens;DTY(this,W.appTokens,this.tokenMap.app,z)}if(W.userTokens){var E,v,c;B=(E=B.innerTubeRequest.context)==null?void 0:(v=E.request)==null?void 0:(c=v.innertubeTokenJar)==null?void 0:c.userTokens;DTY(this,W.userTokens,this.tokenMap.user,
B)}}};
xTi.prototype.processContext=function(W){W.request||(W.request={});var B=Object.keys(this.tokenMap.app).length,z=Object.keys(this.tokenMap.user).length;if(B||z)W.request.innertubeTokenJar={},B&&(W.request.innertubeTokenJar.appTokens=[].concat(_.u7(Object.values(this.tokenMap.app).flat()))),z&&(W.request.innertubeTokenJar.userTokens=[].concat(_.u7(Object.values(this.tokenMap.user).flat())))};
var DTY=function(W,B,z,G){B=_.A(B);for(var Y=B.next(),d={};!Y.done;d={token$jscomp$139:void 0},Y=B.next()){d.token$jscomp$139=Y.value;if(d.token$jscomp$139.type===void 0)throw new _.oX("InnerTube token has no type",d.token$jscomp$139);if(d.token$jscomp$139.clearTokens)z[d.token$jscomp$139.type]=[];else if(d.token$jscomp$139.value!==void 0){z[d.token$jscomp$139.type]||(z[d.token$jscomp$139.type]=[]);if(G!==void 0&&G.length){Y=_.A(G);for(var E=Y.next(),v={};!E.done;v={requestToken:void 0},E=Y.next())v.requestToken=
E.value,E=z[d.token$jscomp$139.type].findIndex(function(c){return function(J){return J===c.requestToken||(0,_.mP.equals)(J,c.requestToken)}}(v)),E>-1&&z[d.token$jscomp$139.type].splice(E,1)}z[d.token$jscomp$139.type].push(d.token$jscomp$139);
d.token$jscomp$139.maxAgeSeconds&&Number(d.token$jscomp$139.maxAgeSeconds)>0&&W.scheduler.addLowPriorityJob(function(c){return function(){var J=z[c.token$jscomp$139.type].indexOf(c.token$jscomp$139);J>-1&&z[c.token$jscomp$139.type].splice(J,1)}}(d),Number(d.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.oX("InnerTube token has no value",d.token$jscomp$139);
}};
xTi[gR]=[mTj];var Qur=new _.t1("LOCAL_INNERTUBE_ROUTER_TOKEN"),yM0=new _.t1("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var rl=function(W){this.serviceMap=W};
rl.prototype.shouldPreferLocalResponse=function(W,B){return(W=qFf(this,W))?W.shouldPreferLocalResponse(B):!1};
rl.prototype.localInnertubeResponse=function(W,B){var z=this,G;return _.T(function(Y){return(G=qFf(z,W))?Y.return(G.localInnertubeResponse(B)):Y.return(Promise.reject(Error("Si")))})};
rl.prototype.canProvideFallbackResponse=function(W,B){return(W=qFf(this,W))?W.canProvideFallbackResponse(B):!1};
rl.prototype.localFallbackInnertubeResponse=function(W,B){var z=this,G;return _.T(function(Y){return(G=qFf(z,W))?Y.return(G.localFallbackInnertubeResponse(B)):Y.return(Promise.reject(Error("Si")))})};
var qFf=function(W,B){B=_.gO(B);return B?(W=W.serviceMap[B])?W:null:null};
rl[gR]=[yM0];var CQ=function(){};
CQ.prototype.shouldPreferLocalResponse=function(){return!1};
CQ.prototype.localInnertubeResponse=function(){return _.T(function(W){return W.return(Promise.reject(Error("Ti")))})};
CQ.prototype.canProvideFallbackResponse=function(){return!0};
CQ.prototype.localFallbackInnertubeResponse=function(){var W,B,z;return _.T(function(G){W=le("CLOSE_POPUP");B={openPopupAction:GDT()};z={actions:[W,B]};return G.return(z)})};var GhR=function(W,B){this.JSC$17679_upliftPromise=W;this.store=B};
_.p=GhR.prototype;_.p.shouldPreferLocalResponse=function(W){var B=W.videoId,z;if(z=B)z=Piv(this.store.getState().entities,W.videoId);return z&&ZST(this.store.getState().entities,B)?dB2(this.store.getState().entities,W.playlistId):!1};
_.p.localInnertubeResponse=function(W){var B=this,z;return _.T(function(G){return(z=B.getPlayerResponse(W))?G.return(Promise.resolve(z)):G.return(Promise.reject(Error("Ui")))})};
_.p.canProvideFallbackResponse=function(W){return!!W.videoId};
_.p.localFallbackInnertubeResponse=function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(B.JSC$17679_upliftPromise,2);z=B.getPlayerResponse(W);var Y;z?Y=G.return(Promise.resolve(z)):Y=bd(B.store.getState().entities,W.videoId)?G.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Aq(_.kq("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:tGu()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
G.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Aq(_.kq("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:gsr()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return Y})};
_.p.getPlayerResponse=function(W){return NPt(this.store.getState().entities,W.videoId)};var lr=function(W,B){this.localPlayerService=W;this.localWatchNextService=B};
lr.prototype.shouldPreferLocalResponse=function(W){var B=W.playerRequest;W=W.watchNextRequest;return!!(B&&this.localPlayerService.shouldPreferLocalResponse(B)&&W&&this.localWatchNextService.shouldPreferLocalResponse(W))};
lr.prototype.localInnertubeResponse=function(W){var B=this,z,G,Y,d;return _.T(function(E){if(E.nextAddress==1){z=W.playerRequest;G=W.watchNextRequest;if(!z||!G)throw new _.oX("Missing streaming request",W);return E.yield(B.localPlayerService.localInnertubeResponse(z),2)}if(E.nextAddress!=3)return Y=E.yieldResult,E.yield(B.localWatchNextService.localInnertubeResponse(G),3);d=E.yieldResult;return E.return({playerResponse:Y,watchNextResponse:d})})};
lr.prototype.canProvideFallbackResponse=function(W){var B=W.playerRequest;W=W.watchNextRequest;return!!(B&&this.localPlayerService.canProvideFallbackResponse(B)&&W&&this.localWatchNextService.canProvideFallbackResponse(W))};
lr.prototype.localFallbackInnertubeResponse=function(W){var B=this,z,G,Y,d;return _.T(function(E){if(E.nextAddress==1)return z=W.playerRequest,G=W.watchNextRequest,z&&G?E.yield(B.localPlayerService.localFallbackInnertubeResponse(z),2):E.return(Promise.reject(new _.oX("Missing streaming request",W)));if(E.nextAddress!=3)return Y=E.yieldResult,E.yield(B.localWatchNextService.localFallbackInnertubeResponse(G),3);d=E.yieldResult;return E.return({playerResponse:Y,watchNextResponse:d})})};var Z0=function(W){this.JSC$17689_persistentStorePromiseAccessor=W};
Z0.prototype.shouldPreferLocalResponse=function(){return!1};
Z0.prototype.localInnertubeResponse=function(){return _.T(function(W){return W.return(Promise.reject(Error("Vi")))})};
Z0.prototype.canProvideFallbackResponse=function(){return!0};
Z0.prototype.localFallbackInnertubeResponse=function(){var W=this,B,z;return _.T(function(G){return G.nextAddress==1?G.yield(W.JSC$17689_persistentStorePromiseAccessor(),2):G.nextAddress!=3?(B=G.yieldResult)?G.yield(B.get("service:guide:fallback"),3):G.return(Promise.reject(Error("Wi"))):(z=G.yieldResult)&&_.pQ(z)?G.return(pF0(_.pQ(z))):G.return(Promise.reject(Error("Xi")))})};var Ik=function(){};
Ik.prototype.shouldPreferLocalResponse=function(){return!1};
Ik.prototype.localInnertubeResponse=function(){return _.T(function(W){return W.return(Promise.reject(Error("Yi")))})};
Ik.prototype.canProvideFallbackResponse=function(){return!0};
Ik.prototype.localFallbackInnertubeResponse=function(){var W,B,z;return _.T(function(G){W=le("CLOSE_POPUP");B={openPopupAction:GDT()};z={actions:[W,B]};return G.return(z)})};var Ph=function(){this.urlMap=nMb;this.fallbackCommand=_.nS};
Ph.prototype.shouldPreferLocalResponse=function(W){return(W=W.url)?!!NUf(this,W):!1};
Ph.prototype.localInnertubeResponse=function(W){var B=this,z;return _.T(function(G){return(z=W.url)?G.return($Tq(W,NUf(B,z))):G.return(Promise.reject(Error("Zi")))})};
Ph.prototype.canProvideFallbackResponse=function(){return!0};
Ph.prototype.localFallbackInnertubeResponse=function(W){var B=this,z,G,Y,d,E,v,c;return _.T(function(J){z=W.url;if(!z)return J.return($Tq(W,B.fallbackCommand));if(G=NUf(B,z))return J.return($Tq(W,G));Y=void 0;d=_.gO(z);d==="/watch"&&(E=_.$x(z,"v"))&&(c=(v=_.$x(z,"list"))!=null?v:void 0,Y=_.pA(E,c));Y||(Y=B.fallbackCommand);return J.return($Tq(W,Y))})};
var NUf=function(W,B){if(B)return W.urlMap[_.Lt(B)]},$Tq=function(W,B){B&&W.parentTrackingParams&&(B.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:W.parentTrackingParams}},B.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:B})};var rn=function(W,B,z){this.JSC$17699_upliftPromise=W;this.store=B;this.JSC$17699_persistentStorePromiseAccessor=z};
rn.prototype.shouldPreferLocalResponse=function(){return!1};
rn.prototype.localInnertubeResponse=function(){return _.T(function(W){return W.return(Promise.reject(Error("$i")))})};
rn.prototype.canProvideFallbackResponse=function(){return!0};
rn.prototype.localFallbackInnertubeResponse=function(){var W=this;return _.T(function(B){return B.return(L4n(W))})};
var L4n=function(W){var B,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(dn(W.JSC$17699_upliftPromise,W.store),2);B=G.yieldResult;z={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[YP8(B)]}}}};return G.return(UTb(W,z))})},UTb=function(W,B){var z,G;
return _.T(function(Y){if(Y.nextAddress==1)return Y.yield(W.JSC$17699_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return z=Y.yieldResult,Y.yield(At(z),3);G=Y.yieldResult;return Y.return({responseContext:{},contents:B,topbar:G})})};var tt=function(W,B,z){this.JSC$17706_upliftPromise=W;this.store=B;this.JSC$17706_persistentStorePromiseAccessor=z};
tt.prototype.shouldPreferLocalResponse=function(W){var B=W.videoId;return B&&Piv(this.store.getState().entities,B)&&ZST(this.store.getState().entities,B)?dB2(this.store.getState().entities,W.playlistId):!1};
tt.prototype.localInnertubeResponse=function(W){var B=this,z,G;return _.T(function(Y){if(Y.nextAddress==1)return(z=W.videoId)?Y.yield(B.JSC$17706_upliftPromise,2):Y.return(Promise.reject(Error("aj")));if(Y.nextAddress!=3)return Y.yield(MRO(B,W,z),3);G=Y.yieldResult;return Y.return(a9i(B,G,z))})};
tt.prototype.canProvideFallbackResponse=function(W){return W.videoId?!0:!1};
tt.prototype.localFallbackInnertubeResponse=function(W){var B=this,z,G,Y,d;return _.T(function(E){switch(E.nextAddress){case 1:return(z=W.videoId)?E.yield(B.JSC$17706_upliftPromise,2):E.return(Promise.reject(Error("aj")));case 2:return E.yield(MRO(B,W,z),3);case 3:G=E.yieldResult;if(bd(B.store.getState().entities,z)){E.jumpTo(4);break}return E.yield(dn(B.JSC$17706_upliftPromise,B.store),5);case 5:return Y=E.yieldResult,E.return(RDr(G,Y));case 4:return Piv(B.store.getState().entities,z)&&ZST(B.store.getState().entities,
z)?E.return(a9i(B,G,z)):(d={title:_.Aq(_.kq("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:tGu()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},E.return(RDr(G,d)))}})};
var MRO=function(W,B,z){var G,Y,d,E,v;return _.T(function(c){if(c.nextAddress==1)return G=B.playlistId,Y=_.pA(z,G),c.yield(W.JSC$17706_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3)return d=c.yieldResult,c.yield(At(d),3);E=c.yieldResult;v={responseContext:{},currentVideoEndpoint:Y,topbar:E};return c.return(v)})},a9i=function(W,B,z){if(W=bd(W.store.getState().entities,z)){var G;
z=W.videoEntity;var Y,d={title:id(z.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Eg((G=z.localizedStrings)==null?void 0:G.viewCount),viewCount:_.Eg((Y=z.localizedStrings)==null?void 0:Y.viewCount)}}};z.publishedTimestampMillis&&(d.dateText=_.Eg(D1u(new Date(Number(z.publishedTimestampMillis)))));G={videoPrimaryInfoRenderer:d};Y=W.videoEntity;W=W.channelEntity;W={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:id(_.kq("SHOW_MORE",void 0,"Show more")),
showLessText:id(_.kq("SHOW_LESS",void 0,"Show less")),description:Y.formattedDescription,owner:{videoOwnerRenderer:{title:id(W.title),thumbnail:W.avatar}}}};B.contents={twoColumnWatchNextResults:{results:{results:{contents:[G,W]}}}}}return B},RDr=function(W,B){W.contents={singleColumnWatchNextResults:{results:{results:{contents:[YP8(B)]}}}};
return W};var kn=function(W,B,z){this.JSC$17711_upliftPromise=W;this.store=B;this.JSC$17711_persistentStorePromiseAccessor=z};
kn.prototype.shouldPreferLocalResponse=function(){return!1};
kn.prototype.localInnertubeResponse=function(){return _.T(function(W){return W.return(Promise.reject(Error("bj")))})};
kn.prototype.canProvideFallbackResponse=function(){return!0};
kn.prototype.localFallbackInnertubeResponse=function(){var W=this,B,z,G,Y;return _.T(function(d){switch(d.nextAddress){case 1:return d.yield(W.JSC$17711_persistentStorePromiseAccessor(),2);case 2:return B=d.yieldResult,d.yield(At(B),3);case 3:return z=d.yieldResult,G={responseContext:{},topbar:z},d.yield(W.JSC$17711_upliftPromise,4);case 4:return d.yield(dn(W.JSC$17711_upliftPromise,W.store),5);case 5:return Y=d.yieldResult,G.watchStatus={backgroundPromoRenderer:Y},d.return(G)}})};_.W0i=new _.t1("ENDPOINT_MAP");var Bii=function(){var W=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return W.sequenceMap}}},pIM=function(W,B,z){var G,Y=(G=B.config)==null?void 0:G.sequenceStrategy;
if(!Y)return z();W.sequenceMap.has(Y.sequenceKey)||W.sequenceMap.set(Y.sequenceKey,[]);W=W.sequenceMap.get(Y.sequenceKey);switch(Y.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return z1O(W,B,z);case "REQUEST_SEQUENCE_TYPE_REPLACE":return Gq1(W,B,z);default:throw new _.oX("Request could not be sequenced",B);}},z1O=function(W,B,z){var G,Y,d;
return _.T(function(E){W.length>0?(Y=W[W.length-1],G=Y.responsePromise.then(function(){return z()})):G=z();
d={request:B,responsePromise:G};W.push(d);YbY(W,d);return E.return(d.responsePromise)})},Gq1=function(W,B,z){z=z();
if(W.length>0)for(var G=_.A(W),Y=G.next();!Y.done;Y=G.next())Y.value.responsePromise=z;var d={request:B,responsePromise:z};W.push(d);YbY(W,d);return Promise.resolve().then(function(){return W.indexOf(d)>0?d.responsePromise.then(function(E){return Object.assign({},E,{sequenceMetaData:{skipProcessing:!0}})}):d.responsePromise})},YbY=function(W,B){B.responsePromise.then(function(){var z=W.indexOf(B);
z>-1&&W.splice(z,1)})};var dfY=new _.t1("REQUEST_SEQUENCING");var ka=function(){};
_.C(ka,xU);ka.prototype.getApiPaths=function(){return[]};
ka.prototype.getExtension=function(W){return _.k(W,Nwd)};
ka.prototype.JSC$13114_buildRequest=function(W,B){W.recaptchaToken=B.recaptchaToken};
ka.prototype.getApiUrl=function(){return"/das_captcha"};var l8=function(){};
_.C(l8,xU);l8.prototype.getApiPaths=function(){return w$6};
l8.prototype.getExtension=function(W){return _.k(W,kEM)};
l8.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;B.createBackstagePostParams&&(W.createBackstagePostParams=B.createBackstagePostParams);z.comment_text&&(W.commentText=z.comment_text);if(z.attached_video_id)W.videoAttachment={videoId:z.attached_video_id};else if(z.image_poll_options)W.pollAttachmentData={options:z.image_poll_options};else if(z.poll_options)W.pollAttachment={choices:z.poll_options};else if(z.quiz_options)W.quizAttachmentData={options:z.quiz_options};else if(z.image_blob_id)W.imageAttachment=
{encryptedBlobId:z.image_blob_id},z.source_video_id&&(W.imageAttachment.sourceExternalVideoId=z.source_video_id),z.image_preview_coordinates&&(W.imageAttachment.previewCoordinates=JSON.parse(z.image_preview_coordinates));else if(z.images_data)W.imagesAttachment={imagesData:z.images_data};else if(z.clip_external_video_id!==void 0||z.clip_offset_ms!==void 0||z.clip_duration_ms!==void 0){var G,Y,d,E,v;W.clipAttachment={externalVideoId:(d=z.clip_external_video_id)!=null?d:"",offsetMs:(E=(G=z.clip_offset_ms)==
null?void 0:G.toString())!=null?E:"",durationMs:(v=(Y=z.clip_duration_ms)==null?void 0:Y.toString())!=null?v:""}}else z.shared_post_id&&(W.sharedPostAttachment={postId:z.shared_post_id});z.tagged_video_id&&(W.postCreationData={taggedVideoId:z.tagged_video_id});z.access_restrictions&&(typeof z.access_restrictions==="number"&&(B=z.access_restrictions,W.accessRestrictions={restriction:B!==1&&B===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof z.access_restrictions==="string"&&
(W.accessRestrictionsParams=z.access_restrictions));z.scheduled_publish_time_sec&&(W.scheduledPublishTimeSec=z.scheduled_publish_time_sec.toString())};var CZ=function(){};
_.C(CZ,xU);CZ.prototype.getApiPaths=function(){return ZW4};
CZ.prototype.getExtension=function(W){return _.k(W,v3M)};
CZ.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;B.decorateMessageParams&&(W.params=B.decorateMessageParams);z.text&&(W.text=z.text)};var Ic=function(){};
_.C(Ic,xU);Ic.prototype.getApiPaths=function(){return x77};
Ic.prototype.getExtension=function(W){return _.k(W,lkM)};
Ic.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;z.video_id&&(W.videoId=z.video_id)};var oc=function(){};
_.C(oc,xU);oc.prototype.getApiPaths=function(){return nIR};
oc.prototype.getExtension=function(W){return _.k(W,_.P0)};
oc.prototype.JSC$13114_buildRequest=function(W,B,z){z.suggestions_query&&(W.input=z.suggestions_query)};var hN=function(){};
_.C(hN,xU);hN.prototype.getApiPaths=function(){return Ib7};
hN.prototype.getExtension=function(W){return _.k(W,CKR)};
hN.prototype.JSC$13114_buildRequest=function(W,B,z){z.comment_text!==void 0&&(W.commentText=z.comment_text);z.scheduled_publish_time_sec&&(W.scheduledPublishTimeSec=z.scheduled_publish_time_sec.toString());W.updateBackstagePostParams=B.updateBackstagePostParams};var HI=function(){};
_.C(HI,xU);HI.prototype.getApiPaths=function(){return R6};
HI.prototype.getExtension=function(W){return _.k(W,_.Ly)};
HI.prototype.JSC$13114_buildRequest=function(W,B,z){z.formData&&(W.formData=z.formData);B.token?W.continuation=B.token:B.continuationTokenKey&&(z=_.Y_().getState(),B=_.P3(z.entities,"continuationTokenEntity",B.continuationTokenKey))&&(W.continuation=String(B.continuationToken))};
var pn9=function(){};
_.C(pn9,xU);_.p=pn9.prototype;_.p.getApiPaths=function(){return R6};
_.p.getExtension=function(W){return _.k(W,_.oE)};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$13121_getStoreKey=function(W){if((W=this.getExtension(W))&&W.browseId){var B={browseId:W.browseId};W.browseEndpointContextSupportedConfigs&&(B.browseEndpointContextSupportedConfigs=JSON.stringify(W.browseEndpointContextSupportedConfigs));W.params&&(B.params=W.params);W.query&&(B.query=W.query);return _.Rd("browse",B)}};
_.p.JSC$13114_buildRequest=function(W,B,z){B.browseId&&(W.browseId=B.browseId);B.params&&(W.params=B.params);B.query&&(W.query=B.query);z.formData?W.formData=z.formData:B.formData&&(W.formData=B.formData);B.browseId==="FEsubscriptions"&&_.IP().getFlag(155)&&(W.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");B.browseId==="SPaccount_playback"&&(z=_.IP(),W.formData||(W.formData={}),W.formData.accountSettingsFormData={flagCaptionsDefaultOff:z.getFlag(65),flagAutoCaptionsDefaultOn:z.getFlag(66),
flagDisableInlinePreview:z.getFlag(186),flagAudioDescriptionDefaultOn:z.getFlag(198)});if(B.browseId==="FEwhat_to_watch"){z=_.IP();var G=z.getFlag(196);z.getFlag(197)&&(W.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:G}}})}B.browseId==="FEwhat_to_watch"&&(B=_.IP().getFlag(186),W.inlineSettingStatus=B?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.p.getRequestConfig=function(W,B){B=B===void 0?{}:B;var z={};if(W=this.JSC$13121_getStoreKey(W,B))z.storeStrategy={storeKey:W,disableCache:B.disableCache};_.r("web_log_browse_ticks_ks")||(z.requestTick="br_s",z.responseTick="br_r");return z};var F9=function(){};
_.C(F9,xU);F9.prototype.getApiPaths=function(){return AaM};
F9.prototype.getExtension=function(W){return _.k(W,RA4)};
F9.prototype.JSC$13114_buildRequest=function(W,B,z){W.legacyYoutubeChannelUsername=z.legacyYouTubeChannelUsername||"";W.legacyYoutubeChannelPassword=z.legacyYouTubeChannelPassword||""};var Se=function(){};
_.C(Se,xU);Se.prototype.getApiPaths=function(){return VZM};
Se.prototype.getExtension=function(W){return _.k(W,jrM)};
Se.prototype.JSC$13114_buildRequest=function(W,B,z){z.recaptcha_response_token&&(W.recaptchaResponseToken=z.recaptcha_response_token);z.channel_id&&(W.channelId=z.channel_id)};var b8=function(){};
_.C(b8,xU);b8.prototype.getApiPaths=function(){return oPd};
b8.prototype.getExtension=function(W){return _.k(W,eWF)};
b8.prototype.JSC$13114_buildRequest=function(W,B,z){B.externalChannelId&&(W.externalChannelId=B.externalChannelId);z.handle&&(W.handleUpdate={handle:z.handle},B.handleEditSource&&(W.handleUpdate.handleEditSource=B.handleEditSource))};var je=function(){};
_.C(je,xU);je.prototype.getApiPaths=function(){return Snd};
je.prototype.getExtension=function(W){return _.k(W,A4R)};
je.prototype.JSC$13114_buildRequest=function(W,B,z){B.request&&(W.channelId=B.request.channelId);var G;if(z==null?0:(G=z.uploadDefaults)==null?0:G.emojiReactionSet)W.uploadDefaultsRequest||(W.uploadDefaultsRequest={}),W.uploadDefaultsRequest.emojiReactionSet=z.uploadDefaults.emojiReactionSet};var fZ=function(){};
_.C(fZ,xU);fZ.prototype.getApiPaths=function(){return fbF};
fZ.prototype.getExtension=function(W){return _.k(W,fkF)};
fZ.prototype.JSC$13114_buildRequest=function(W,B,z){B.externalChannelId&&(W.externalChannelId=B.externalChannelId);B.channelHandleEntityKey&&(W.channelHandleEntityKey=B.channelHandleEntityKey);B.handleEditSource&&(W.handleEditSource=B.handleEditSource);z.handle?W.handle=z.handle:z.name&&(W.name=z.name)};var OB=function(){};
_.C(OB,xU);OB.prototype.getApiPaths=function(){return Te6};
OB.prototype.getExtension=function(W){return _.k(W,n3M)};
OB.prototype.JSC$13114_buildRequest=function(W,B){B.actions?W.actions=B.actions:B.action&&(W.actions=[B.action])};var X9=function(){};
_.C(X9,xU);X9.prototype.getApiPaths=function(){return vI6};
X9.prototype.getExtension=function(W){return _.k(W,_.Ly)};
X9.prototype.JSC$13114_buildRequest=function(W,B){B.token&&(W.continuation=B.token)};var KZ=function(){};
_.C(KZ,xU);KZ.prototype.getApiPaths=function(){return eMU};
KZ.prototype.getExtension=function(W){return _.k(W,_.Ly)};
KZ.prototype.JSC$13114_buildRequest=function(W,B){W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";B.token&&(W.fetchCommentsParams={continuation:B.token})};var u8=function(){};
_.C(u8,xU);u8.prototype.getApiPaths=function(){return gIM};
u8.prototype.getExtension=function(W){return _.k(W,qpu)};
u8.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;B.createReplyParams&&(W.createReplyParams=B.createReplyParams);B.commentText&&(W.commentText=_.zR(B.commentText));z.comment_text&&(W.commentText=z.comment_text);z.image_blob_id&&(W.imageAttachment={encryptedBlobId:z.image_blob_id});z.botguard_response&&(W.botguardResponse=z.botguard_response)};
_.G5.Object.defineProperties(u8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ee=function(){};
_.C(ee,xU);ee.prototype.getApiPaths=function(){return tvM};
ee.prototype.getExtension=function(W){return _.k(W,_.yw4)};
ee.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;B.createCommentParams&&(W.createCommentParams=B.createCommentParams);B.commentText&&(W.commentText=_.zR(B.commentText));B.videoPositionMention&&(W.videoPositionMention=B.videoPositionMention);B.sources&&(W.sources=B.sources);z.comment_text&&(W.commentText=z.comment_text);z.attached_video_id?W.videoAttachment={videoId:z.attached_video_id}:z.poll_options?W.pollAttachment={choices:z.poll_options}:z.image_blob_id?W.imageAttachment=
{encryptedBlobId:z.image_blob_id}:z.shared_post_id&&(W.sharedPostAttachment={postId:z.shared_post_id});z.access_restrictions&&typeof z.access_restrictions==="number"&&(B=z.access_restrictions,W.accessRestrictions={restriction:B!==1&&B===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});z.botguard_response&&(W.botguardResponse=z.botguard_response)};
_.G5.Object.defineProperties(ee.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mM=function(){};
_.C(mM,xU);mM.prototype.getApiPaths=function(){return haF};
mM.prototype.getExtension=function(W){return _.k(W,$G9)};
mM.prototype.JSC$13114_buildRequest=function(W,B,z){B.commentText&&(W.replyText=_.zR(B.commentText));z.comment_text&&(W.replyText=z.comment_text);W.updateReplyParams=B.updateReplyParams};
_.G5.Object.defineProperties(mM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xa=function(){};
_.C(xa,xU);xa.prototype.getApiPaths=function(){return HnU};
xa.prototype.getExtension=function(W){return _.k(W,NPM)};
xa.prototype.JSC$13114_buildRequest=function(W,B,z){B.commentText&&(W.commentText=_.zR(B.commentText));z.comment_text&&(W.commentText=z.comment_text);W.updateCommentParams=B.updateCommentParams};
_.G5.Object.defineProperties(xa.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Df=function(){};
_.C(Df,xU);Df.prototype.getApiPaths=function(){return F5M};
Df.prototype.getExtension=function(W){return _.k(W,G29)};
Df.prototype.JSC$13114_buildRequest=function(W,B){B.settings&&(W.settings=B.settings)};var QZ=function(){};
_.C(QZ,xU);QZ.prototype.getApiPaths=function(){return bWQ};
QZ.prototype.getExtension=function(W){return _.k(W,Oa7)};
QZ.prototype.JSC$13114_buildRequest=function(W,B){B.channelCreationToken&&(W.channelCreationToken=B.channelCreationToken);B.source&&(W.source=B.source)};var yZ=function(){};
_.C(yZ,xU);yZ.prototype.getApiPaths=function(){return JaM};
yZ.prototype.getExtension=function(W){return _.k(W,unR)};
yZ.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;if(z.name&&(z.given_name||z.family_name))W=new _.oX("channel creation cannot set both GAIA and YouTube names",B),_.jy(W);else{if(B.zeroStepChannelCreationParams){if(!z.comment_text){W=new _.oX("zero_step_create_comment_params but no zero_step_texts",B);_.jy(W);return}W.zeroStepChannelCreationParams=B.zeroStepChannelCreationParams;W.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(W.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
z.comment_text,z.botguard_response&&(W.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=z.botguard_response))}W.channelCreationToken=B.channelCreationToken;z.given_name&&(W.givenName=z.given_name);z.family_name&&(W.familyName=z.family_name);B.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(W.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(z.name||z.handle||z.avatar_url||z.encryptedBlobId||z.isNameChanged!==void 0||z.isHandleChanged!==void 0||z.isDefaultProfilePhoto!==
void 0||z.obakeImageSource)W.overrideChannelCreationParams={},z.name&&(W.overrideChannelCreationParams.name=z.name),z.handle&&(W.overrideChannelCreationParams.handle=z.handle),z.avatar_url&&(W.overrideChannelCreationParams.avatarUrl=z.avatar_url),z.encryptedBlobId&&(W.overrideChannelCreationParams.blobEncryptionId=z.encryptedBlobId),z.enableIdentityForAllChannelCreationDialog&&(z.encryptedBlobId?W.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
z.isDefaultProfilePhoto!==void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=z.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),z.isNameChanged!==void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationNameTag=z.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),z.isHandleChanged!==
void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=z.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),z.obakeImageSource&&(W.overrideChannelCreationParams.obakeImageSourceType=z.obakeImageSource))}};var qu=function(){};
_.C(qu,xU);qu.prototype.getApiPaths=function(W){return(W=this.getExtension(W))&&W.status==="DISLIKE"?Ch9:W&&W.status==="INDIFFERENT"?EPu:Mv4};
qu.prototype.getExtension=function(W){return _.k(W,_.yQ)};
qu.prototype.JSC$13114_buildRequest=function(W,B){B.target&&(W.target=B.target);if(B=this.getParams(B))W.params=B};
qu.prototype.getParams=function(W){switch(W==null?void 0:W.status){case "DISLIKE":return W.dislikeParams;case "INDIFFERENT":return W.removeLikeParams;default:return W==null?void 0:W.likeParams}};var nZ=function(){};
_.C(nZ,xU);nZ.prototype.getApiPaths=function(){return PqH};
nZ.prototype.getExtension=function(W){return _.k(W,WtU)};
nZ.prototype.JSC$13114_buildRequest=function(W,B){B.settingItemId&&(W.settingItemId=B.settingItemId);B.stringValue!=null&&B.stringValue!==void 0?W.newValue={stringValue:B.stringValue}:B.intValue?W.newValue={intValue:B.intValue}:B.boolValue!==null&&B.boolValue!==void 0?W.newValue={boolValue:B.boolValue}:(W=new _.oX("Unknown value type for SetSettingEndpoint.",B),_.jy(W))};var Nu=function(){};
_.C(Nu,xU);Nu.prototype.getApiPaths=function(){return koU};
Nu.prototype.getExtension=function(W){return _.k(W,t8H)||void 0};
Nu.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;B.channelIds&&(W.channelIds=B.channelIds);B.siloName&&(W.siloName=B.siloName);B.params&&(W.params=B.params);z.botguardResponse&&(W.botguardResponse=z.botguardResponse);z.feature&&(W.clientFeature=z.feature)};
_.G5.Object.defineProperties(Nu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $a=function(){};
_.C($a,xU);$a.prototype.getApiPaths=function(){return CqH};
$a.prototype.getExtension=function(W){return _.k(W,BWd)||void 0};
$a.prototype.JSC$13114_buildRequest=function(W,B){B.channelIds&&(W.channelIds=B.channelIds);B.siloName&&(W.siloName=B.siloName);B.params&&(W.params=B.params)};
_.G5.Object.defineProperties($a.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LZ=function(W){this.shareClientParamsProvider=W};
_.C(LZ,xU);LZ.prototype.getApiPaths=function(){return T6v};
LZ.prototype.getExtension=function(W){return _.k(W,H67)||_.k(W,_.FGR)||_.k(W,hg4)};
LZ.prototype.JSC$13114_buildRequest=function(W,B){B.serializedShareEntity&&(W.serializedSharedEntity=B.serializedShareEntity);if(B.clientParamIdentifier){var z;if((z=this.shareClientParamsProvider)==null?0:z.clientParams.has(B.clientParamIdentifier)){z=this.shareClientParamsProvider;B=B.clientParamIdentifier;var G=z.clientParams.get(B);G&&z.clientParams.delete(B);W.clientParams=G}}};
LZ[gR]=[wP9];var UB=function(){};
_.C(UB,xU);UB.prototype.getApiPaths=function(){return Y7T};
UB.prototype.getExtension=function(W){return _.k(W,ELH)};
UB.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params)};var Mu=function(){};
_.C(Mu,xU);Mu.prototype.getApiPaths=function(){return IHM};
Mu.prototype.getExtension=function(W){return _.k(W,p1T)};
Mu.prototype.JSC$13114_buildRequest=function(W,B){B.dismissal&&(W.items=[B.dismissal])};
_.G5.Object.defineProperties(Mu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ac=function(){};
_.C(ac,xU);ac.prototype.getApiPaths=function(){return LOR};
ac.prototype.getExtension=function(W){return _.k(W,_.fQ)||void 0};
ac.prototype.JSC$13114_buildRequest=function(W,B,z){W.feedbackTokens=[];B.feedbackToken&&W.feedbackTokens.push(B.feedbackToken);if(B=B.cpn||z.cpn)W.feedbackContext={cpn:B};W.isFeedbackTokenUnencrypted=!!z.is_feedback_token_unencrypted;W.shouldMerge=!1;z.extra_feedback_tokens&&(W.shouldMerge=!0,W.feedbackTokens=W.feedbackTokens.concat(z.extra_feedback_tokens))};
_.G5.Object.defineProperties(ac.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Rc=function(){};
_.C(Rc,xU);Rc.prototype.getApiPaths=function(){return LOR};
Rc.prototype.getExtension=function(W){return _.k(W,_.P0)};
Rc.prototype.JSC$13114_buildRequest=function(W,B,z){z.feedback_tokens&&(W.feedbackTokens=z.feedback_tokens,W.shouldMerge=!0)};
_.G5.Object.defineProperties(Rc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var W9=function(){};
_.C(W9,xU);W9.prototype.getApiPaths=function(){return LOR};
W9.prototype.getExtension=function(W){return _.k(W,VAr)};
W9.prototype.JSC$13114_buildRequest=function(W,B){B.undoToken&&(W.feedbackTokens=[B.undoToken]);B.isUndoTokenUnencrypted&&(W.isFeedbackTokenUnencrypted=B.isUndoTokenUnencrypted)};
_.G5.Object.defineProperties(W9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var B9=function(){};
_.C(B9,xU);B9.prototype.getApiPaths=function(){return On7};
B9.prototype.getExtension=function(W){return _.k(W,GuQ)};
B9.prototype.JSC$13114_buildRequest=function(W,B){B.nextEndpoint&&_.k(B.nextEndpoint,_.DD)?W.nextEndpoint={urlEndpoint:_.k(B.nextEndpoint,_.DD)}:B.nextEndpoint&&_.k(B.nextEndpoint,_.W0)&&(W.nextEndpoint={watchEndpoint:_.k(B.nextEndpoint,_.W0)});B.setRacy&&(W.setRacy=B.setRacy);B.setControvercy&&(W.setControvercy=B.setControvercy)};var zO=function(W){this.JSC$17892_storeWithEntities=W};
_.C(zO,xU);zO.prototype.getApiPaths=function(){return hMT};
zO.prototype.getExtension=function(W){return _.k(W,hQR)};
zO.prototype.JSC$13114_buildRequest=function(W,B){B.flowId&&(W.flowId=B.flowId);B.targetId&&(W.targetId=B.targetId);B.continuation&&(W.continuation=B.continuation);var z=B.flowStateEntityKey;if(B.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&z&&this.JSC$17892_storeWithEntities){var G;if(B=(G=this.JSC$17892_storeWithEntities.getState())==null?void 0:G.entities)if(G=_.c3(z).entityType,G=_.P3(B,G,z))W.flowState=G,W.flowStateEntityKey=z}};
_.G5.Object.defineProperties(zO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
zO[gR]=[ir];var AKi=function(){};
_.C(AKi,xU);_.p=AKi.prototype;_.p.getApiPaths=function(){return $7T};
_.p.JSC$13121_getStoreKey=function(){return _.Rd("guide")};
_.p.getRequestConfig=function(){var W=this.JSC$13121_getStoreKey(),B;W&&(B={storeStrategy:{storeKey:W}});return B};
_.p.isNavigationCommand=function(){return!0};
_.p.getExtension=function(W){return _.k(W,_.P0)};
_.p.JSC$13114_buildRequest=function(W){W.fetchLiveState=!0};var GO=function(){};
_.C(GO,xU);GO.prototype.getApiPaths=function(){return iW4};
GO.prototype.getExtension=function(W){return _.k(W,xGd)};
GO.prototype.JSC$13114_buildRequest=function(){};var Yo=function(){};
_.C(Yo,xU);Yo.prototype.getApiPaths=function(){return EIF};
Yo.prototype.getExtension=function(W){return _.k(W,DG4)};
Yo.prototype.JSC$13114_buildRequest=function(){};var dB=function(){};
_.C(dB,xU);dB.prototype.getApiPaths=function(){return GB6};
dB.prototype.getExtension=function(W){return _.k(W,_.Ly)};
dB.prototype.JSC$13114_buildRequest=function(W,B){B.token&&(W.continuation=B.token);var z,G;W==null||(z=W.context)==null||(G=z.user)==null||delete G.onBehalfOfUser};
dB.prototype.getRequestConfig=function(W){var B={},z;if(((z=this.getExtension(W))==null?void 0:z.sessionIndex)!==void 0){var G;B={authStrategy:{sessionIndex:(G=this.getExtension(W))==null?void 0:G.sessionIndex}}}return B};var pz=function(){};
_.C(pz,xU);pz.prototype.JSC$13114_getRequest=function(W){var B=this.getExtension(W),z=W="";if(B==null?0:B.popup)W="true";if(B==null?0:B.disableSignout)z="true";B={};return{input:"/getAccountSwitcherEndpoint",requestShell:ad("/getAccountSwitcherEndpoint","GET",(B["X-YouTube-Delegation-Context"]=_.eD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),B["X-YouTube-Account-Switcher-Popup"]=W,B["X-YouTube-Account-Switcher-Disable-Signout"]=z,B)),innerTubeRequest:{}}};
pz.prototype.getApiPaths=function(){return[]};
pz.prototype.getExtension=function(W){return _.k(W,_.Wev)};
pz.prototype.JSC$13114_buildRequest=function(){};var AO=function(){};
_.C(AO,xU);AO.prototype.JSC$13114_getRequest=function(W){var B="/cross_account_channel_transfer";(W=this.getExtension(W))&&(B=jPD(B,{target_session:W.targetSessionIndex,source_rapt:W.sourceRapt,rapt:W.targetRapt}));return{input:B,requestShell:ad(B,"GET"),innerTubeRequest:{}}};
AO.prototype.getApiPaths=function(){return[]};
AO.prototype.getExtension=function(W){return _.k(W,RCR)};
AO.prototype.JSC$13114_buildRequest=function(){};var iw=function(){};
_.C(iw,xU);iw.prototype.getApiPaths=function(){return HW7};
iw.prototype.isNavigationCommand=function(){return!0};
iw.prototype.getExtension=function(W){return _.k(W,_.P0)};
iw.prototype.JSC$13114_buildRequest=function(W){var B=_.IP().get("gsml","");B&&(W.safetyModeLockerObfuscatedGaiaId=B);W.userInterfaceTheme=_.Ks(!0);_.ua()?W.deviceTheme="DEVICE_THEME_SELECTED":_.$7R()?W.deviceTheme="DEVICE_THEME_SUPPORTED":W.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var E9=function(){};
_.C(E9,xU);E9.prototype.getApiPaths=function(){return GB6};
E9.prototype.getExtension=function(W){return _.k(W,WaF)};
E9.prototype.JSC$13114_buildRequest=function(W,B){if(B&&B.requestType&&(W.requestType=B.requestType,B.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||B.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var z=B.nextUrl;z&&(_.Oix(z)||z4(z))&&(W.nextNavendpoint={urlEndpoint:{url:z}})}B&&B.channelSwitcherQuery&&(W.channelSwitcherQuery=B.channelSwitcherQuery);B&&B.triggerChannelCreation&&(W.triggerChannelCreation=B.triggerChannelCreation);var G;if(B==null?0:(G=B.contentOwnerConfig)==
null?0:G.externalContentOwnerId)W.contentOwnerConfig=B.contentOwnerConfig;W.callCircumstance=B&&B.requestType&&B.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var Y,d;B=W==null?void 0:(Y=W.context)==null?void 0:(d=Y.user)==null?void 0:d.onBehalfOfUser;if(B!==void 0){W.obfuscatedSelectedGaiaId=B;var E,v;W==null||(E=W.context)==null||(v=E.user)==null||delete v.onBehalfOfUser}var c,J;if(Y=W==null?void 0:(c=W.context)==null?void 0:(J=c.user)==null?
void 0:J.serializedDelegationContext)W.selectedSerializedDelegationContext=Y};var TO=function(){};
_.C(TO,xU);TO.prototype.getApiPaths=function(){return d7R};
TO.prototype.getExtension=function(W){return _.k(W,SzD)};
TO.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params)};var v9=function(){};
_.C(v9,xU);v9.prototype.getApiPaths=function(){return Vv7};
v9.prototype.getExtension=function(W){return _.k(W,_.q4U)};
v9.prototype.JSC$13114_buildRequest=function(W,B){if(B=B.createBroadcastRequest)W.useMasks=B.useMasks,W.broadcastType=B.broadcastType,W.broadcastSource=B.broadcastSource,W.broadcastMetadata=B.broadcastMetadata,W.broadcastMetadataMask=B.broadcastMetadataMask,W.videoMetadata=B.videoMetadata,W.videoMetadataMask=B.videoMetadataMask,W.liveChatSettingsUpdate=B.liveChatSettingsUpdate,W.liveChatSettingsUpdateMask=B.liveChatSettingsUpdateMask,W.cloneVideoId=B.cloneVideoId,W.cloneWithOverrides=B.cloneWithOverrides,
W.targetEntity=B.targetEntity,W.scheduledRedirectMetadata=B.scheduledRedirectMetadata};var c9=function(){};
_.C(c9,xU);c9.prototype.getApiPaths=function(){return spR};
c9.prototype.getExtension=function(W){return _.k(W,KN7)};
c9.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;B.params&&(W.params=B.params);z.questionText&&(W.questionText=z.questionText);z.optionText&&z.optionText.length>0&&(W.optionText=z.optionText)};var wB=function(){};
_.C(wB,xU);wB.prototype.getApiPaths=function(){return raR};
wB.prototype.getExtension=function(W){return _.k(W,OhU)};
wB.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params)};var V6=function(){};
_.C(V6,xU);V6.prototype.getApiPaths=function(){return fH6};
V6.prototype.getExtension=function(W){return _.k(W,SWH)};
V6.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params)};var JO=function(){};
_.C(JO,xU);JO.prototype.getApiPaths=function(){return X$M};
JO.prototype.getExtension=function(W){return _.k(W,bh9)};
JO.prototype.JSC$13114_buildRequest=function(W,B,z){B.params&&(W.params=B.params);B.continuation&&(W.continuation=B.continuation);z.currentPlayerState&&z.currentPlayerState.playerOffsetMs&&(W.currentPlayerState={playerOffsetMs:z.currentPlayerState.playerOffsetMs.toString()})};var gB=function(){};
_.C(gB,xU);gB.prototype.getApiPaths=function(){return KOQ};
gB.prototype.getExtension=function(W){return _.k(W,FNR)};
gB.prototype.JSC$13114_buildRequest=function(W,B,z){B.params&&(W.params=B.params);z.continuation&&(W.continuation=z.continuation);"hidden"in z&&(W.webClientInfo={isDocumentHidden:z.hidden});z.isInvalidationTimeoutRequest&&(W.isInvalidationTimeoutRequest=z.isInvalidationTimeoutRequest);z.invalidationPayload&&(B=HhF(_.aD(G4(z.invalidationPayload))),W.invalidationPayloadLastPublishAtUsec=em(B,2));z.reloadActionPanel&&(W.reloadActionPanel=z.reloadActionPanel);z.fullReload&&(W.fullReload=z.fullReload);
z.currentPlayerState&&(W.currentPlayerState=z.currentPlayerState)};var tO=function(){};
_.C(tO,xU);tO.prototype.getApiPaths=function(){return aHR};
tO.prototype.getExtension=function(W){return _.k(W,X4Q)};
tO.prototype.JSC$13114_buildRequest=function(W,B){W.params=B.params};var s9=function(){};
_.C(s9,xU);s9.prototype.getApiPaths=function(){return OW7};
s9.prototype.getExtension=function(W){return _.k(W,NEU)};
s9.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params)};var ov=function(){};
_.C(ov,xU);ov.prototype.getApiPaths=function(){return urd};
ov.prototype.getExtension=function(W){return _.k(W,$m9)};
ov.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params)};var hO=function(){};
_.C(hO,xU);hO.prototype.getApiPaths=function(){return RM6};
hO.prototype.getExtension=function(W){return _.k(W,uu6)};
hO.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params)};var H9=function(){};
_.C(H9,xU);H9.prototype.getApiPaths=function(){return BJ7};
H9.prototype.getExtension=function(W){return _.k(W,ed4)};
H9.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params)};var Fk=function(){};
_.C(Fk,xU);Fk.prototype.getApiPaths=function(){return TJ6};
Fk.prototype.getExtension=function(W){return _.k(W,fLD)};
Fk.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params)};var SI=function(){};
_.C(SI,xU);SI.prototype.getApiPaths=function(){return tZD};
SI.prototype.getExtension=function(W){return _.k(W,_.mz6)};
SI.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;B.params&&(W.params=B.params);z.client_message_id&&(W.clientMessageId=z.client_message_id);z.recaptcha_token&&(W.recaptchaToken=z.recaptcha_token);z.rich_message&&z.rich_message.text_segments?(B=z.rich_message.text_segments.map(function(G){var Y={};G.text&&(Y.text=G.text);G.emoji_id&&(Y.emojiId=G.emoji_id);return Y}),W.richMessage={textSegments:B}):z.message&&(W.message=z.message);
z.currentPlayerState&&(W.currentPlayerState=z.currentPlayerState)};var bw=function(){};
_.C(bw,xU);bw.prototype.getApiPaths=function(){return sFD};
bw.prototype.getExtension=function(W){return _.k(W,xzU)};
bw.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params)};var jI=function(){};
_.C(jI,xU);jI.prototype.getApiPaths=function(){return lb4};
jI.prototype.getExtension=function(W){return _.k(W,QxD)};
jI.prototype.JSC$13114_buildRequest=function(W,B,z){B.isUserInitiated&&(W.isUserInitiated=B.isUserInitiated);B.initiationSource&&(W.initiationSource=B.initiationSource);z.locationInfo&&(W.context.client.locationInfo=z.locationInfo)};var fz=function(){};
_.C(fz,xU);fz.prototype.getApiPaths=function(){return W59};
fz.prototype.getExtension=function(W){return _.k(W,n0R)};
fz.prototype.JSC$13114_buildRequest=function(W,B,z){B.metadataUpdateRequest&&(B=B.metadataUpdateRequest,W.encryptedVideoId=B.encryptedVideoId,B.liveChat&&(B=B.liveChat,W.liveChat||(W.liveChat={}),B.performAsExternalChannelId&&(W.liveChat.performAsExternalChannelId=B.performAsExternalChannelId),B.source&&(W.liveChat.source=B.source)));var G;if(z==null?0:(G=z.liveChat)==null?0:G.liveChatSettings)W.liveChat||(W.liveChat={}),z=z.liveChat.liveChatSettings,W.liveChat.newLiveChatSettings=z,W.liveChat.newLiveChatSettingsMask||
(W.liveChat.newLiveChatSettingsMask={}),z.emojiReactionSet&&(W.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var O9=function(){};
_.C(O9,xU);O9.prototype.getApiPaths=function(){return jFD};
O9.prototype.getExtension=function(W){return _.k(W,_.z7R)};
O9.prototype.JSC$13114_buildRequest=function(W,B,z){z.continuation?W.continuation=z.continuation:B.videoId&&(W.videoId=B.videoId);z.clientParams&&(W.clientParams=z.clientParams)};var Xk=function(){};
_.C(Xk,xU);Xk.prototype.getApiPaths=function(){return eMU};
Xk.prototype.getExtension=function(W){return _.k(W,_.dP)};
Xk.prototype.JSC$13114_buildRequest=function(W,B){W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";W.fetchCommentsParams={};B.videoId&&(W.fetchCommentsParams.encryptedVideoId=B.videoId);B.postId&&(W.fetchCommentsParams.postId=B.postId);B.externalChannelId&&(W.fetchCommentsParams.externalChannelId=B.externalChannelId);B.linkedCommentId&&(W.fetchCommentsParams.linkedCommentId=B.linkedCommentId);(0,_.mP.isEmpty)(W.fetchCommentsParams)&&delete W.fetchCommentsParams};var Kz=function(){};
_.C(Kz,xU);Kz.prototype.getApiPaths=function(){return R6};
Kz.prototype.JSC$13114_buildRequest=function(W){W.browseId="FEnotifications_inbox"};
Kz.prototype.getExtension=function(W){return _.k(W,_.P0)};var uw=function(){};
_.C(uw,xU);uw.prototype.getApiPaths=function(){return eMU};
uw.prototype.JSC$13114_buildRequest=function(W,B){B.signal==="GET_NOTIFICATIONS_MENU"&&(W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");B.ctoken&&(W.ctoken=B.ctoken)};
var iOi=function(){};
_.C(iOi,uw);iOi.prototype.getExtension=function(W){return _.k(W,_.P0)};
var EYi=function(){};
_.C(EYi,uw);EYi.prototype.getExtension=function(W){return _.k(W,W7R)};var eI=function(){};
_.C(eI,xU);eI.prototype.getApiPaths=function(){return q76};
eI.prototype.getExtension=function(W){return _.k(W,_.P0)};
eI.prototype.JSC$13114_buildRequest=function(){};var mi=function(){};
_.C(mi,xU);mi.prototype.getApiPaths=function(){return zaM};
mi.prototype.getExtension=function(W){return _.k(W,Mdd)||void 0};
mi.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params);B.secondaryParams&&(W.secondaryParams=B.secondaryParams)};var xo=function(){};
_.C(xo,xU);xo.prototype.getApiPaths=function(){return GoD};
xo.prototype.getExtension=function(W){return _.k(W,b6Q)};
xo.prototype.JSC$13114_buildRequest=function(W,B){B.undo&&(W.undo=B.undo);B.serializedOptOut&&(W.serializedOptOut=B.serializedOptOut);B.serializedRecordInteractionsRequest&&(W.serializedRecordInteractionsRequest=B.serializedRecordInteractionsRequest)};var Dd=function(){};
_.C(Dd,xU);Dd.prototype.getApiPaths=function(){return pDd};
Dd.prototype.getExtension=function(W){return _.k(W,jZd)};
Dd.prototype.JSC$13114_buildRequest=function(W,B){B.serializedInteractionsRequest&&(W.serializedRecordNotificationInteractionsRequest=B.serializedInteractionsRequest)};var Q6=function(){};
_.C(Q6,xU);Q6.prototype.getApiPaths=function(){return vCr};
Q6.prototype.getExtension=function(W){return _.k(W,i$r)};
Q6.prototype.JSC$13114_buildRequest=function(W,B,z){B=B===void 0?{}:B;z=z===void 0?{}:z;B.videoId?W.videoId=B.videoId:B.playlistId&&(W.playlistId=B.playlistId);var G,Y=(G=B.offlineWebClientEligibility)!=null?G:z.offlineWebClientEligibility;Y&&(W.offlineWebClientEligibility=Y);var d;if(G=(d=B.preferredFormatType)!=null?d:z.preferredFormatType)W.preferredFormatType=G;var E;if(d=(E=B.lastOfflineQualitySettingsSavedMs)!=null?E:z.lastOfflineQualitySettingsSavedMs)W.lastOfflineQualitySettingsSavedMs=d;
B.params&&(W.params=B.params)};var y6=function(){};
_.C(y6,xU);y6.prototype.getApiPaths=function(){return CS};
y6.prototype.getExtension=function(W){return _.k(W,_.Ly)};
y6.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;B.token&&(W.continuation=B.token);z.formData&&(W.formData=z.formData)};var qv=function(){};
_.C(qv,xU);qv.prototype.getApiPaths=function(){return CS};
qv.prototype.getExtension=function(W){return _.k(W,mpd)};
qv.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;W.continuation=z.continuation};var nz=function(){};
_.C(nz,xU);nz.prototype.getApiPaths=function(){return CS};
nz.prototype.getExtension=function(W){return _.k(W,_.jT)};
nz.prototype.JSC$13114_buildRequest=function(W,B){var z,G=B.panelIdentifier||((z=B.identifier)==null?void 0:z.tag);G&&(W.panelId=G);var Y;if((Y=B.globalConfiguration)==null?0:Y.params){var d;W.params=(d=B.globalConfiguration)==null?void 0:d.params}};
_.G5.Object.defineProperties(nz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Nv=function(){};
_.C(Nv,xU);Nv.prototype.getApiPaths=function(){return CS};
Nv.prototype.getExtension=function(W){return _.k(W,IsU)};
Nv.prototype.JSC$13114_buildRequest=function(W,B){B.panelLoadingStrategy&&TKX(W,B.panelLoadingStrategy)};var $o=function(){};
_.C($o,xU);$o.prototype.getApiPaths=function(){return CS};
$o.prototype.getExtension=function(W){return _.k(W,yL9)};
$o.prototype.JSC$13114_buildRequest=function(W,B){B.loadingStrategy&&TKX(W,B.loadingStrategy)};var Lz=function(){};
_.C(Lz,xU);Lz.prototype.getApiPaths=function(){return CS};
Lz.prototype.getExtension=function(W){return _.k(W,_.jc)};
Lz.prototype.JSC$13114_buildRequest=function(W,B){B.panelLoadingStrategy&&TKX(W,B.panelLoadingStrategy)};var U9=function(){};
_.C(U9,xU);U9.prototype.getApiPaths=function(){return CS};
U9.prototype.getExtension=function(W){return _.k(W,qzH)};
U9.prototype.JSC$13114_buildRequest=function(W,B){var z,G=(z=B.contentSourcePanelIdentifier)==null?void 0:z.tag;G&&(W.panelId=G);var Y;if((Y=B.globalConfiguration)==null?0:Y.params){var d;W.params=(d=B.globalConfiguration)==null?void 0:d.params}};var Mv=function(){};
_.C(Mv,xU);Mv.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
Mv.prototype.getExtension=function(W){return _.k(W,nNM)};
Mv.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params)};var av=function(){};
_.C(av,xU);av.prototype.getApiPaths=function(){return bnM};
av.prototype.getExtension=function(W){return _.k(W,LG9)};
av.prototype.JSC$13114_buildRequest=function(W,B){B.externalChannelId&&(W.externalChannelId=B.externalChannelId);B.superChatAction&&(W.superChatAction=B.superChatAction);B.superStickersAction&&(W.superStickersAction=B.superStickersAction)};var Rv=function(){};
_.C(Rv,xU);Rv.prototype.getApiPaths=function(){return FO7};
Rv.prototype.getExtension=function(W){return _.k(W,mGQ)||_.k(W,TfD)};
Rv.prototype.JSC$13114_buildRequest=function(W,B){B.videoIds?W.videoIds=B.videoIds:B.videoId&&(W.videoIds=[B.videoId]);B.playlistId&&(W.playlistId=B.playlistId);B.params&&(W.params=B.params);W.excludeWatchLater=!1};var WX=function(){};
_.C(WX,xU);WX.prototype.getApiPaths=function(){return Phd};
WX.prototype.getExtension=function(W){return _.k(W,_.cO)};
WX.prototype.JSC$13114_buildRequest=function(W,B,z){z.create_playlist_title?W.title=z.create_playlist_title:B.title&&(W.title=B.title);if(z.create_playlist_privacy_status&&typeof z.create_playlist_privacy_status==="number"){a:{var G=z.create_playlist_privacy_status;if(G!==0){if(G===1){G="PUBLIC";break a}if(G===2){G="UNLISTED";break a}}G="PRIVATE"}W.privacyStatus=G}else B.privacyStatus&&(W.privacyStatus=B.privacyStatus);z.create_playlist_description&&(W.description=z.create_playlist_description);B.videoIds&&
(W.videoIds=B.videoIds);B.params&&(W.params=B.params);B.sourcePlaylistId&&(W.sourcePlaylistId=B.sourcePlaylistId)};var BX=function(){};
_.C(BX,xU);BX.prototype.getApiPaths=function(){return kBH};
BX.prototype.getExtension=function(W){return _.k(W,LxT)};
BX.prototype.JSC$13114_buildRequest=function(W,B){W.playlistId=B.playlistId};var zx=function(){};
_.C(zx,xU);zx.prototype.getApiPaths=function(){return m7u};
zx.prototype.getExtension=function(W){return _.k(W,ILT)};
zx.prototype.JSC$13114_buildRequest=function(W,B){B.playlistId&&(W.playlistId=B.playlistId);B.params&&(W.params=B.params)};var Gx=function(){};
_.C(Gx,xU);Gx.prototype.getApiPaths=function(){return dV4};
Gx.prototype.getExtension=function(W){return _.k(W,_.pS)||void 0};
Gx.prototype.JSC$13114_buildRequest=function(W,B){B.actions&&(W.actions=B.actions);B.params&&(W.params=B.params);B.playlistId&&(W.playlistId=B.playlistId)};var Y7=function(){};
_.C(Y7,xU);_.p=Y7.prototype;_.p.getApiPaths=function(){return AB6};
_.p.getExtension=function(W){return _.k(W,_.SW)};
_.p.JSC$13114_buildRequest=function(W,B){B.videoId&&(W.playerRequest={videoId:B.videoId},B.playerParams&&(W.playerRequest.params=B.playerParams),B.racyCheckOk&&(W.playerRequest.racyCheckOk=!!B.racyCheckOk),B.contentCheckOk&&(W.playerRequest.contentCheckOk=!!B.contentCheckOk));B.params&&(W.params=B.params);B.inputType&&(W.inputType=B.inputType);W.disablePlayerResponse=!0};
_.p.getRequestConfig=function(W){var B;(W=this.JSC$13121_getStoreKey(W))&&(B={storeStrategy:{storeKey:W}});_.r("web_log_reels_ticks")&&(B=B||{},B.requestTick="r_wrs",B.responseTick="r_wrr");return B};
_.p.JSC$13121_getStoreKey=function(W){W=this.getExtension(W);if(W!=null&&W.videoId){var B={videoId:W.videoId};W.params&&(B.params=W.params);return _.Rd("reel_item_watch",B)}};var df=function(){};
_.C(df,xU);_.p=df.prototype;_.p.getApiPaths=function(){return inF};
_.p.getExtension=function(W){return _.k(W,_.SW)};
_.p.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;W.sequenceParams=B.sequenceParams;var G;((G=z)==null?0:G.contentPlaybackContext)&&_.r("web_shorts_prefetch_service_enabled")&&(W.playbackContext={contentPlaybackContext:z.contentPlaybackContext})};
_.p.JSC$13121_getStoreKey=function(W){if(_.r("web_enable_delay_shorts_sequence_call")||_.r("shorts_controller_retrieve_seedless_sequence_v2"))if(W=this.getExtension(W),W==null?0:W.sequenceParams)return _.Rd("reel_watch_sequence",{sequenceParams:W.sequenceParams})};
_.p.getRequestConfig=function(W){W=this.JSC$13121_getStoreKey(W);var B;W&&(B={storeStrategy:{storeKey:W}});_.r("reel_watch_sequence_request_log_ticks")&&(B=B||{},B.requestTick="r_wsrs",B.responseTick="r_wsrr",B.processorTick="r_wsrp");return B};
var p$=function(){};
_.C(p$,xU);p$.prototype.getApiPaths=function(){return inF};
p$.prototype.getExtension=function(W){return _.k(W,_.Ly)};
p$.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;B.token&&(W.continuation=B.token);var G;((G=z)==null?0:G.contentPlaybackContext)&&_.r("web_shorts_prefetch_service_enabled")&&(W.playbackContext={contentPlaybackContext:z.contentPlaybackContext})};
p$.prototype.getRequestConfig=function(W){W=this.JSC$13121_getStoreKey(W);var B;W&&(B={storeStrategy:{storeKey:W}});_.r("reel_watch_sequence_request_log_ticks")&&(B=B||{},B.requestTick="r_wsrs",B.responseTick="r_wsrr",B.processorTick="r_wsrp");return B};var AQ=function(){};
_.C(AQ,xU);AQ.prototype.getApiPaths=function(){return oIR};
AQ.prototype.getExtension=function(W){return _.k(W,_.oLu)};
AQ.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;B.flagAction&&(W.action=B.flagAction);B.flagRequestType&&(W.flagRequestType=B.flagRequestType);B.additionalDetailCheckboxChecked&&(W.additionalDetailCheckboxChecked=B.additionalDetailCheckboxChecked);B.legalCheckboxChecked&&(W.legalCheckboxChecked=B.legalCheckboxChecked);B={};z.flag_issue_type!==void 0&&(B.issue=z.flag_issue_type);z.flag_affiliation!==void 0&&(B.affiliation=z.flag_affiliation);z.flag_full_name&&(B.fullName=z.flag_full_name);
Object.keys(B).length&&(W.legalReportDetails=B);if(z.flag_description||z.text)W.userComments=z.flag_description||z.text;B={};z.minutes!==void 0&&z.seconds!==void 0&&(B.minutes=z.minutes,B.seconds=z.seconds);z.vss_id&&(B.vssId=z.vss_id);Object.keys(B).length&&(W.videoReportDetails=B);B={};z.video_ids&&(B.videoIds=z.video_ids);z.impersonated_channel_url&&(B.impersonatedChannelUrl=z.impersonated_channel_url);Object.keys(B).length&&(W.channelAbuseReportDetails=B)};
_.G5.Object.defineProperties(AQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var iB=function(){};
_.C(iB,xU);iB.prototype.getApiPaths=function(){return jpM};
iB.prototype.getExtension=function(W){return _.k(W,aqM)};
iB.prototype.JSC$13114_buildRequest=function(W,B){B.blockedForKidsContent&&(W.blockedForKidsContent=B.blockedForKidsContent)};var EI=function(){};
_.C(EI,xU);EI.prototype.getApiPaths=function(){return vPd};
EI.prototype.getExtension=function(W){return _.k(W,E7D)};
EI.prototype.JSC$13114_buildRequest=function(W,B,z){W.params=B.params;z.impersonated_channel_url&&(W.impersonatedChannelUrl=z.impersonated_channel_url)};var Tx=function(){};
_.C(Tx,xU);Tx.prototype.getApiPaths=function(){return U74};
Tx.prototype.getExtension=function(W){return _.k(W,_.RQR)};
Tx.prototype.JSC$13114_buildRequest=function(W,B){B.items&&(W.items=B.items);B.kidGaiaId&&(W.kidGaiaId=B.kidGaiaId)};var vX=function(){};
_.C(vX,xU);vX.prototype.getApiPaths=function(){return S7d};
vX.prototype.getExtension=function(W){return _.k(W,_.KxR)};
vX.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params);B.targetId&&(W.targetId=B.targetId)};var cX=function(){};
_.C(cX,xU);cX.prototype.getApiPaths=function(){return JB7};
cX.prototype.getExtension=function(W){return _.k(W,BRT)};
cX.prototype.JSC$13114_buildRequest=function(W,B){B.externalVideoId&&(W.externalVideoId=B.externalVideoId);B.query&&(W.query=B.query);B.sourceTimelines&&(W.sourceTimelines=B.sourceTimelines)};var wf=function(){};
_.C(wf,xU);wf.prototype.getApiPaths=function(){return gPR};
wf.prototype.getExtension=function(W){return _.k(W,_.Ly)||void 0};
wf.prototype.JSC$13114_buildRequest=function(W,B){B.token&&(W.continuation=B.token)};
_.TiY=function(){};
_.C(_.TiY,xU);_.p=_.TiY.prototype;_.p.getApiPaths=function(){return gPR};
_.p.getExtension=function(W){return _.k(W,_.h8)||void 0};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$13121_getStoreKey=function(W,B){B=B===void 0?{}:B;if(!B.disableCache&&(W=this.getExtension(W))&&W.query)return B={query:W.query},W.params&&(B.params=W.params),_.Rd("search",B)};
_.p.JSC$13114_buildRequest=function(W,B,z){B.query&&(W.query=B.query);B.params&&(W.params=B.params);if(!_.r("web_forward_suggest_stats_killswitch")){var G=_.k(B,sZR);G&&(W.suggestStats=G)}var Y;!_.r("kevlar_searchbox_stats_killswitch")&&((Y=z.tempData)==null?0:Y.gs_l)&&!_.k(B,sZR)&&(W.webSearchboxStatsUrl="/search?oq="+(z.tempData.oq||"")+"&gs_l="+z.tempData.gs_l);var d;if((d=z.tempData)==null?0:d.entityMid)B=W.suggestionSearchParams||{},B.entityMid=z.tempData.entityMid,W.suggestionSearchParams=B;
if(_.r("enable_desktop_vdcbg_components")||_.r("enable_inline_muted_playback_on_web_search"))z=_.IP().getFlag(186),W.inlineSettingStatus=z?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.p.getRequestConfig=function(W,B){B=B===void 0?{}:B;W=this.JSC$13121_getStoreKey(W,B);var z;W&&(z={storeStrategy:{storeKey:W}});_.r("web_log_search_ticks_ks")||(z=z||{},z.requestTick="sr_s",z.responseTick="sr_r");return z};var Vo=function(){};
_.C(Vo,xU);Vo.prototype.getApiPaths=function(){return QpR};
Vo.prototype.getExtension=function(W){return _.k(W,A5R)};
Vo.prototype.JSC$13114_buildRequest=function(W,B){B.serializedGetSharingProviderDataParams&&(W.serializedGetSharingProviderDataParams=B.serializedGetSharingProviderDataParams)};var JQ=function(){};
_.C(JQ,xU);JQ.prototype.getApiPaths=function(){return yad};
JQ.prototype.getExtension=function(W){return _.k(W,r1U)};
JQ.prototype.JSC$13114_buildRequest=function(W,B){B.endpoint&&(W.endpoint=B.endpoint);B.action&&(W.action=B.action)};var gf=function(){};
_.C(gf,xU);gf.prototype.getApiPaths=function(){return lHH};
gf.prototype.getExtension=function(W){return _.k(W,UGu)};
gf.prototype.JSC$13114_buildRequest=function(W,B){W.videoId=B.videoId;B.scheduledRedirectMetadataSourceVideoId&&(W.scheduledRedirectMetadata={sourceVideoId:B.scheduledRedirectMetadataSourceVideoId})};var tQ=function(){};
_.C(tQ,xU);tQ.prototype.getApiPaths=function(){return ZnT};
tQ.prototype.getExtension=function(W){return _.k(W,_.Mx4)};
tQ.prototype.JSC$13114_buildRequest=function(W,B){W.params=B.params;W.correctionText=B.correctionText};var sI=function(){};
_.C(sI,xU);sI.prototype.getApiPaths=function(){return ibQ};
sI.prototype.getExtension=function(W){return _.k(W,_.zQ4)};
sI.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params);W.searchQuery=B.searchQuery;W.languageCode=B.languageCode;W.kind=B.kind;W.name=B.name;W.externalVideoId=B.externalVideoId};var PX=function(){};
_.C(PX,xU);PX.prototype.getApiPaths=function(){return K5R};
PX.prototype.getExtension=function(W){return _.k(W,v14)};
PX.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.params=B.params)};var ZB=function(W){this.JSC$18163_storeWithEntities=W};
_.C(ZB,xU);ZB.prototype.getApiPaths=function(){return ca7};
ZB.prototype.getExtension=function(W){return _.k(W,wNM)||_.k(W,JPD)};
ZB.prototype.JSC$13114_buildRequest=function(W,B,z){z.client_data&&(W.clientData=z.client_data);if(B.commerceActionConfig){var G=B.commerceActionConfig;B=G.actionId;G=G.commerceActionParams;B&&(W.actionId=B);G&&(W.commerceActionParams=G)}else{var Y=B.actionId,d=B.commerceActionParams;z=B.entityKeys;Y&&(W.actionId=Y);d&&(W.commerceActionParams=d);var E;B=(G=this.JSC$18163_storeWithEntities)==null?void 0:(E=G.getState())==null?void 0:E.entities;if(z&&B){G=[];E=_.A(z);for(z=E.next();!z.done;z=E.next())if(Y=
z.value,z=_.c3(Y).entityType,Y=_.P3(B,z,Y))d={},G.push((d[z]=Y,d));W.entityMutationPayloads=G}}};
ZB.prototype.getRequestConfig=function(W){var B,z=(B=_.k(W,wNM))==null?void 0:B.requestSequenceType;if(z&&W.clickTrackingParams&&z!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:W.clickTrackingParams,sequenceType:z}}};
ZB[gR]=[ir];var rf=function(){};
_.C(rf,xU);rf.prototype.getApiPaths=function(){return uZ6};
rf.prototype.getExtension=function(W){return _.k(W,_.fVD)};
rf.prototype.JSC$13114_buildRequest=function(W,B){B.feedbackData&&(W.feedbackData=B.feedbackData);B.params&&(W.itemParams=B.params)};
_.G5.Object.defineProperties(rf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var k7=function(){};
_.C(k7,xU);k7.prototype.getApiPaths=function(){return eaR};
k7.prototype.getExtension=function(W){return _.k(W,OjM)};
k7.prototype.JSC$13114_buildRequest=function(W,B,z){z.payments_payload&&(W.paymentsPayload=z.payments_payload);z.offer_params&&(W.offerParams=z.offer_params);B.transactionParams&&(W.transactionParams=B.transactionParams)};var lB=function(){};
_.C(lB,xU);lB.prototype.getApiPaths=function(){return mV4};
lB.prototype.getExtension=function(W){return _.k(W,_.XNM)};
lB.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;B.buybucketParams&&(W.buybucketData={params:B.buybucketParams},B.stickerParams?W.buybucketData.stickerParams=B.stickerParams:(z.rich_chat_message?W.buybucketData.richChatMessage=z.rich_chat_message:z.chat_message_text&&(W.buybucketData.chatMessageText=z.chat_message_text),z.purchase_price_micros&&(W.buybucketData.purchasePriceMicros=z.purchase_price_micros.toString())));B.donationAmountMicros&&(W.tipAmountMicros=B.donationAmountMicros,
B.tipParams&&(W.tipParams=B.tipParams));B.offerParams&&(W.offerParams=B.offerParams);B.productData&&(W.productData=B.productData);B.transactionParams&&(W.transactionParams=B.transactionParams)};var C$=function(){};
_.C(C$,xU);C$.prototype.getApiPaths=function(){return xVM};
C$.prototype.getExtension=function(W){return _.k(W,ev7)};
C$.prototype.JSC$13114_buildRequest=function(W,B){B.updateFopParams&&(W.updateFopParams=B.updateFopParams)};var IG=function(){};
_.C(IG,xU);IG.prototype.getApiPaths=function(){return DVT};
IG.prototype.getExtension=function(W){return _.k(W,_.Gm)};
IG.prototype.JSC$13114_buildRequest=function(W,B){B.couponCode&&(W.couponCode=B.couponCode);B.params&&(W.itemParams=B.params)};var oG=function(){};
_.C(oG,xU);oG.prototype.getApiPaths=function(){return QFF};
oG.prototype.getExtension=function(W){return _.k(W,_.VSH)};
oG.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;B.params&&(W.params=B.params);z.ctk&&(W.clientToken=z.ctk)};var hQ=function(W){this.JSC$18198_storeWithEntities=W};
_.C(hQ,xU);hQ.prototype.getApiPaths=function(){return yBd};
hQ.prototype.getExtension=function(W){return _.k(W,_.gP)};
hQ.prototype.JSC$13114_buildRequest=function(W,B,z){z.purchase_price_micros&&(W.productData={pdgData:{purchasePriceMicros:z.purchase_price_micros.toString()}},z.rich_chat_message&&(W.productData.pdgData.richChatMessage=z.rich_chat_message),z.currency_code&&(W.productData.pdgData.currencyCode=z.currency_code));B.transactionParams&&(W.transactionParams=B.transactionParams);B.clientLocationContext&&(W.clientLocationContext=B.clientLocationContext);z.payments_payload&&(W.paymentsPayload=z.payments_payload);
z.funds_guarantee_callback_client_data&&(W.fundsGuaranteeCallbackClientData=z.funds_guarantee_callback_client_data);var G,Y;z=(G=this.JSC$18198_storeWithEntities)==null?void 0:(Y=G.getState())==null?void 0:Y.entities;if(B.entityKeys&&z){G=[];B=_.A(B.entityKeys);for(Y=B.next();!Y.done;Y=B.next()){var d=Y.value;Y=_.c3(d).entityType;if(d=_.P3(z,Y,d)){var E={};G.push((E[Y]=d,E))}}W.entityMutationPayloads=G}};
hQ[gR]=[ir];var HX=function(){};
_.C(HX,xU);HX.prototype.getApiPaths=function(){return qnM};
HX.prototype.getExtension=function(W){return _.k(W,KhM)};
HX.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;z.backend_analytics&&(W.serializedBackendAnalyticsEvent=z.backend_analytics);B.offerParams&&(W.offerParams=B.offerParams)};var Fo=function(){};
_.C(Fo,xU);Fo.prototype.getApiPaths=function(){return DVT};
Fo.prototype.getExtension=function(W){return _.k(W,qmR)};
Fo.prototype.JSC$13114_buildRequest=function(W,B){B.params&&(W.itemParams=B.params)};var Si=function(){};
_.C(Si,xU);Si.prototype.getApiPaths=function(){return nPR};
Si.prototype.getExtension=function(W){return _.k(W,_.ZjH)};
Si.prototype.JSC$13114_buildRequest=function(W,B,z){z.resume_time_ms&&(W.resumeTimeMs=z.resume_time_ms);B.pauseParams&&(W.pauseParams=B.pauseParams)};var bB=function(){};
_.C(bB,xU);bB.prototype.getApiPaths=function(){return NJM};
bB.prototype.getExtension=function(W){return _.k(W,_.uwD)};
bB.prototype.JSC$13114_buildRequest=function(W,B,z){z=z===void 0?{}:z;z.c&&(W.redeemCode=z.c);z.rd&&(W.riskData=z.rd);z.ctk&&(W.clientToken=z.ctk)};var ji=function(){};
_.C(ji,xU);ji.prototype.getApiPaths=function(){return $VD};
ji.prototype.getExtension=function(W){return _.k(W,_.rPH)};
ji.prototype.JSC$13114_buildRequest=function(W,B){B.resumeParams&&(W.resumeParams=B.resumeParams)};var f$=function(W,B){this.clientName=W;this.defaultExpirationDelayMs=B};
f$.prototype.put=function(W,B){var z=this,G;return _.T(function(Y){G=Object.assign({},B.data);G.key=W;G.clientName=z.clientName;G.expireTimestampMs===void 0&&(G.expireTimestampMs=(Math.round((0,_.Yb)())+z.defaultExpirationDelayMs).toString());return Y.return(z.putInternal(W,G))})};
f$[gR]=[pc,suj];var vYr=function(){f$.apply(this,arguments);this.JSC$18228_responseStore=new Map};
_.C(vYr,f$);_.p=vYr.prototype;_.p.get=function(W){var B=this;return _.T(function(z){return z.return(mO(B,W))})};
_.p.putInternal=function(W,B){var z=this,G,Y,d;return _.T(function(E){G=z.defaultExpirationDelayMs;B.expireTimestampMs&&(G=Number(B.expireTimestampMs)-Math.round((0,_.Yb)()),Y=_.iO("mweb_override_response_store_expiration_ms"),Y>0&&Y<G&&(G=Y));d=setTimeout(function(){z.remove(W)},G);
z.JSC$18228_responseStore.set(W,{entryData:B,timer:d});_.HG(E)})};
_.p.remove=function(W){var B=this;return _.T(function(z){cK1(B,W);_.HG(z)})};
_.p.removeAll=function(){var W=this;return _.T(function(B){W.JSC$18228_responseStore.forEach(function(z){clearTimeout(z.timer)});
W.JSC$18228_responseStore.clear();_.HG(B)})};
_.p.has=function(W){return!!this.JSC$18228_responseStore.get(W)};
_.p.getKeys=function(){return this.JSC$18228_responseStore.keys()};
var mO=function(W,B){if(W=W.JSC$18228_responseStore.get(B))return new _.ev(W.entryData)},cK1=function(W,B){var z=W.JSC$18228_responseStore.get(B);
z&&(clearTimeout(z.timer),W.JSC$18228_responseStore.delete(B))};var vv0;var VuT=function(W,B,z){f$.call(this,W,B);this.token=z};
_.C(VuT,f$);_.p=VuT.prototype;_.p.get=function(W){var B=this,z,G;return _.T(function(Y){return Y.nextAddress==1?Y.yield(wFy(B.token),2):Y.nextAddress!=3?(z=Y.yieldResult,Y.yield(z.get("ResponseStore",[W,B.clientName]),3)):(G=Y.yieldResult)?Y.return(new _.ev(G)):Y.return(void 0)})};
_.p.putInternal=function(W,B){var z=this,G;return _.T(function(Y){if(Y.nextAddress==1)return Y.yield(wFy(z.token),2);G=Y.yieldResult;return Y.yield(G.put("ResponseStore",B),0)})};
_.p.remove=function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(wFy(B.token),2);z=G.yieldResult;return G.return(z.delete("ResponseStore",[W,B.clientName]))})};
_.p.removeAll=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return z.yield(wFy(W.token),2);B=z.yieldResult;return z.yield(OlD(B,IDBKeyRange.only(W.clientName)),0)})};
_.p.has=function(){throw Error("cj");};_.OI=new _.t1("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var wnY=function(W){var B;this.stateTagsData=(B=W.responseContext)==null?void 0:B.stateTags},VfK=function(W){var B;
return((B=W.stateTagsData)==null?void 0:B.stateTagsModified)||[]};var JKr;JKr=function(W){this.JSC$18241_responseStore=W};
_.Ng=function(W,B,z){if(!_.r("state_tags_killswitch")){var G=new wnY(B);if(VfK(G).length>0){var Y=W.JSC$18241_responseStore.getKeys();Y=_.A(Y);for(var d=Y.next();!d.done;d=Y.next()){d=d.value;var E=mO(W.JSC$18241_responseStore,d);if(E){var v=_.pQ(E);a:{var c=void 0;E=VfK(G);v=((c=(new wnY(v)).stateTagsData)==null?void 0:c.relevantStateTags)||[];c=_.A(v);for(v=c.next();!v.done;v=c.next())if(v=v.value,v.stateTag!=null&&E.includes(v.stateTag)&&v.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){E=
!0;break a}E=!1}E&&cK1(W.JSC$18241_responseStore,d)}}}}var J;G=(J=B.responseContext)==null?void 0:J.maxAgeSeconds;z&&G&&Number(G)>0&&(B=tg(B,G),W.JSC$18241_responseStore.put(z,new _.ev(B)))};
JKr.prototype.handleResponse=function(W,B){if(!B)throw Error("dj");var z,G;B=(z=B.config)==null?void 0:(G=z.storeStrategy)==null?void 0:G.storeKey;_.Ng(this,W,B)};
JKr[gR]=[_.uh];_.kKx=new _.t1("STORE_RESPONSE_PROCESSOR_TOKEN");var gYn=function(W){this.JSC$18244_responseStore=W};
gYn.prototype.handleResponse=function(W,B){if(B.input.match(_.dD(inF))){var z;if(W==null?0:(z=W.entries)==null?0:z.length)for(W=_.A(W.entries),B=W.next();!B.done;B=W.next()){z=B.value.command;var G=void 0;B=(G=_.k(z,_.SW))==null?void 0:G.unserializedPrefetchData;if(!z||!B)break;G=(new Y7).JSC$13121_getStoreKey(z);var Y=_.k(B,ZS6),d=void 0,E=void 0,v=void 0,c=_.iO("web_shorts_prefetch_service_ttl_seconds")>0?_.iO("web_shorts_prefetch_service_ttl_seconds"):Number((v=(d=Y)==null?void 0:(E=d.responseContext)==
null?void 0:E.maxAgeSeconds)!=null?v:3600);G&&c>0&&(Y=tg(Y,c),this.JSC$18244_responseStore.put(G,new _.ev(Y)));z=(new Qh).JSC$13121_getStoreKey(z);B=_.k(B,YpF);d=Y=G=void 0;E=_.iO("web_shorts_prefetch_service_ttl_seconds")>0?_.iO("web_shorts_prefetch_service_ttl_seconds"):Number((d=(G=B)==null?void 0:(Y=G.responseContext)==null?void 0:Y.maxAgeSeconds)!=null?d:3600);z&&E>0&&(B=tg(B,E),this.JSC$18244_responseStore.put(z,new _.ev(B)))}}};
gYn[gR]=[_.uh];var tff=function(W){this.innertubeTransportService=W};
tff.prototype.submitForm=function(W,B,z,G,Y){var d=this,E,v,c,J;return _.T(function(g){if(g.nextAddress==1)return E={submitId:W,formData:B,submitBehavior:z,params:G},v=_.dD(rBU),g.yield(_.cz(d.innertubeTransportService,E,v,Y),2);c=g.yieldResult;if(!c)return g.return(Promise.reject(new _.oX("Submit API returned an undefined response. Submit ID: "+W)));J=c;return g.return(J)})};
tff[gR]=[_.N_,_.p4];var Xo=function(){this.scheduler=_.FU()},sj0;
Xo.prototype.pause=function(){throw Error("ej");};
Xo.prototype.resume=function(){throw Error("ej");};
Xo.prototype.queue=function(W){var B=this,z=_.zN(),G=_.CG(this.scheduler,function(){try{var Y;if(_.IB.instance)var d=_.IB.instance;else{var E=new _.oX("Error: Unexpected uninitialized CommandHandler.");_.jy(E);d=void 0}(Y=d)==null||Y.resolveCommand(W.command);z.resolve()}catch(v){z.reject(v)}});
z.promise.thenCatch(function(Y){Y instanceof _.qF&&B.scheduler.cancelJob(G)});
return z.promise};
Xo.prototype.queueAll=function(W){var B=new Map;W=_.A(W);for(var z=W.next();!z.done;z=W.next())z=z.value,B.set(z.id,this.queue(z));return B};var ZOi=function(W,B){var z=this;this.taskModel=W;this.onTaskCancelledCallback=B;this.resolver=_.zN();W=W.proto.prefetchConfig;if(!W)throw Error("fj");if(!W.prefetchAction)throw Error("gj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(G){G instanceof _.qF&&(P9f(z,z.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),z.onTaskCancelledCallback(z.taskModel.id,z.jobId),z.tick("pcc"));
throw G;});
this.timerName=this.taskModel.id;_.e4(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
ZOi.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var P9f=function(W,B){_.Ki({prefetchInfo:{cancellationReason:B}},W.timerName)};
ZOi.prototype.tick=function(W){_.mj(W,void 0,this.timerName)};var uB=function(){var W=this;this.scheduler=_.FU();this.maxInflightTasks=_.iO("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.iO("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new w2M;this.onTaskCancelled=function(B,z){z&&W.scheduler.cancelJob(z);rKi(W,B);K$(W,3)}},kq1=function(){uB.instance||(uB.instance=new uB);
return uB.instance};
uB.prototype.pause=function(){this.prefetchCoordinatorState=0};
uB.prototype.resume=function(){K$(this,0)};
uB.prototype.queue=function(W){W=lin(this,W);K$(this,1);return W};
uB.prototype.queueAll=function(W){var B=new Map;W=_.A(W);for(var z=W.next();!z.done;z=W.next())z=z.value,B.set(z.id,lin(this,z));K$(this,1);return B};
var lin=function(W,B){var z=W.allPrefetchTasks.get(B.id);if(z)return z.cancellablePromise;try{var G=new ZOi(B,W.onTaskCancelled)}catch(d){return _.mR(d)}z=G;z.tick("pcq");var Y={prefetchInfo:{taskId:z.taskModel.id,isPrefetch:!0,fetchAction:z.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:z.taskModel.command.clickTrackingParams}};z.taskModel.csn&&(Y.clientScreenNonce=z.taskModel.csn);_.Ki(Y,z.timerName);W.allPrefetchTasks.set(B.id,G);W.drainingHeap.insert(-G.getPriority(),G);return G.cancellablePromise},
K$=function(W,B){W.prefetchCoordinatorState===B&&(W.prefetchCoordinatorState=2,C99(W))},C99=function(W){for(var B={};W.prefetchCoordinatorState!==0;B={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(W.inflightPrefetchTasks.size>=W.maxInflightTasks){W.prefetchCoordinatorState=3;break}B.prefetchTask$jscomp$1=W.drainingHeap.remove();if(!B.prefetchTask$jscomp$1){W.prefetchCoordinatorState=1;break}B.taskId$jscomp$3=B.prefetchTask$jscomp$1.taskModel.id;if(W.allPrefetchTasks.has(B.taskId$jscomp$3)){var z=-1;W.coordinatorTimeoutMs>0&&(z=_.CG(W.scheduler,function(G){return function(){ei(W,G.taskId$jscomp$3,Error("hj"))}}(B),W.coordinatorTimeoutMs));
W.inflightPrefetchTasks.set(B.taskId$jscomp$3,z);if(!W.JSC$18264_commandHandler){if(!_.IB.instance){ei(W,B.taskId$jscomp$3,Error("ij"));continue}W.JSC$18264_commandHandler=_.IB.instance}a:switch(B.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":z=1;break a;default:z=0}B.prefetchTask$jscomp$1.jobId=W.scheduler.addJob(function(G){return function(){G.prefetchTask$jscomp$1.tick("pcr");try{W.JSC$18264_commandHandler.resolveCommand(G.prefetchTask$jscomp$1.taskModel.command)||
ei(W,G.taskId$jscomp$3,Error("jj"))}catch(Y){ei(W,G.taskId$jscomp$3,Y)}}}(B),z,0)}}},Iiq=function(W,B){(B=rKi(W,B))!=null&&(B.resolver.resolve(),B.tick("pce"));
K$(W,3)},ei=function(W,B,z){(B=rKi(W,B,z))!=null&&(B.resolver.reject(z),B.tick("pcc"),P9f(B,"CANCELLATION_REASON_ERROR"),Math.random()<=_.iO("prefetch_coordinator_error_logging_sampling_rate")&&(z=new _.oX("Prefetch Command failed.",B.taskModel.id,z.message),_.jy(z)));
K$(W,3)},rKi=function(W,B,z){var G=W.allPrefetchTasks.get(B);
G?((z=W.inflightPrefetchTasks.get(B))&&z!==-1&&W.scheduler.cancelJob(z),W.inflightPrefetchTasks.delete(B),W.allPrefetchTasks.delete(B)):_.Oc(new _.oX("Unexpected missing prefetch task when deleting task.",B,z==null?void 0:z.message));return G};var oY1=function(W,B,z,G,Y){this.id=W;this.triggerOn=B;this.cancelOn=z;this.command=G;this.proto=Y};
_.G5.Object.defineProperties(oY1.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var h19=function(){this.JSC$18269_prefetchCoordinator=kq1();sj0||(sj0=new Xo);this.defaultCoordinator=sj0},HOi;
h19.getInstance=function(){HOi||(HOi=new h19);return HOi};
h19.prototype.get=function(W){switch(W){case 0:return this.JSC$18269_prefetchCoordinator;default:return this.defaultCoordinator}};var me=function(){this.coordinatorSupplier=h19.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},bOj=function(W){var B=_.m1()||void 0,z=Object.keys(F01)[0];
if(z){var G=W.taskIdByTriggerId.get(z);if(G!=null){W.taskIdByTriggerId.delete(z);z=[];G=_.A(G);for(var Y=G.next();!Y.done;Y=G.next())if(Y=W.tasks.get(Y.value))B!=="UNDEFINED_CSN"&&(Y.csn=B),z.push(Y);z=tuv(z);B=[];z=_.A(z);for(G=z.next();!G.done;G=z.next()){Y=_.A(G.value);G=Y.next().value;Y=Y.next().value;G=W.coordinatorSupplier.get(G).queueAll(Y);G=_.A(G);var d=G.next();for(Y={};!d.done;Y={taskId$jscomp$9:void 0},d=G.next()){var E=_.A(d.value);d=E.next().value;E=E.next().value;Y.taskId$jscomp$9=
d;d=E;B.push(Y.taskId$jscomp$9);W.queuedPromisesByTask.set(Y.taskId$jscomp$9,_.xX(d,function(v){return function(){Sbi(W,v.taskId$jscomp$9)}}(Y)))}}}}else _.Oc(new _.oX("Unexpected malformed TriggerEvent."))};
me.prototype.trigger=function(W,B){var z=this,G=this.tasks.get(W);if(!G||this.queuedPromisesByTask.has(W))return!1;jj9(this,W,G.triggerOn);B!=="UNDEFINED_CSN"&&(G.csn=B);B=this.coordinatorSupplier.get(G.taskType).queue(G);this.queuedPromisesByTask.set(W,_.xX(B,function(){Sbi(z,W)}));
return!0};
me.prototype.cancel=function(W){var B=this.queuedPromisesByTask.get(W);if(B)B.cancel();else return Sbi(this,W)};
var Sbi=function(W,B){W.queuedPromisesByTask.delete(B);var z=W.tasks.get(B);if(!z)return!1;W.tasks.delete(B);jj9(W,B,z.triggerOn);(z=gvX(z.cancelOn))&&(W=W.taskIdByCancelId.get(z))&&W.delete(B);return!0},jj9=function(W,B,z){(z=Object.keys(z)[0])&&(W=W.taskIdByTriggerId.get(z))&&W.delete(B)};var F01={taskRegistered:{}},x7=function(){me.instance||(me.instance=new me);this.JSC$18278_taskManager=me.instance};
_.C(x7,JT);
x7.prototype.resolveCommand=function(W){var B=this,z,G;return _.T(function(Y){z=_.k(W,sqR);if((G=z)==null||!G.tasks){var d=new _.oX("RegisterTasksCommand is missing tasks.");_.jy(d);return Y.return()}d=B.JSC$18278_taskManager;for(var E=_.A(z.tasks),v=E.next();!v.done;v=E.next())if(v=v.value,v=v.id&&v.triggerOn&&v.cancelOn&&v.command?new oY1(v.id,v.triggerOn,v.cancelOn,v.command,v):void 0,v){var c=Object.keys(v.triggerOn)[0];if(c){var J=gvX(v.cancelOn);J?(d.tasks.set(v.id,v),d.taskIdByTriggerId.has(c)||d.taskIdByTriggerId.set(c,
new Set),d.taskIdByTriggerId.get(c).add(v.id),d.taskIdByCancelId.has(J)||d.taskIdByCancelId.set(J,new Set),d.taskIdByCancelId.get(J).add(v.id)):_.Oc(new _.oX("Unexpected malformed cancelOn field."))}else _.Oc(new _.oX("Unexpected malformed triggerOn field."))}else _.Oc(new _.oX("Unexpected malformed Task proto."));bOj(B.JSC$18278_taskManager);_.HG(Y)})};var fi9={},OOO=(fi9.rendered={priority:_.r("web_adaptive_early_init")?8:0,callback:function(){var W={};W.numCpu=navigator.hardwareConcurrency;var B={};B.ramGb=_.Yt.navigator.deviceMemory;var z={staticContext:{}};B.ramGb&&qIX(B.ramGb)&&(z.staticContext.memoryTotalKbytes=(B.ramGb*1048576).toString());W.numCpu&&qIX(W.numCpu)&&(z.staticContext.cpuCores=W.numCpu);if(_.r("web_enable_adaptive_appl_signal")){W={};B=RdT();B=B.length>0?B[0]:void 0;var G,Y=(G=_.Q0("rses_dpj"))!=null?G:B==null?void 0:B.tick.rses_dpj,
d;G=(d=_.Q0("rsef_dpj"))!=null?d:B==null?void 0:B.tick.rsef_dpj;Y&&Number(Y)>0&&G&&Number(G)>0&&(d=Math.ceil(Number(G)-Number(Y)),d>0&&(W.loadLatency=d));W.loadLatency&&qIX(W.loadLatency)&&(z.appL=W.loadLatency.toString())}_.Sy("applicationStarted",z);n7r=z;_.r("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",Nf0)}},fi9);var Xnj=new _.t1("WINDOW_ON_ERROR"),K0i=new _.t1("ERROR_WEIGHT_MAPS"),u60=new _.t1("INIT_ERROR");var e1j={},mf0=(e1j.initialized={priority:10,callback:function(W){W.injector.resolve(u60)()}},e1j);var xf0=function(){},Df0=function(){var W=_.q6("meta_logger_impl");
W||(W=new xf0,_.BV("meta_logger_impl",W));return W},Qjn=function(){Df0().csiSubscriptionKey=Hor("meta_logging_csi_event",function(W){var B=W.timerName;
if(W=W.timelineData){_.e4(B,{startTime:W.startTime},B);W.infos&&_.Ki(W.infos,B);for(var z=_.A(Object.keys(W.ticks)),G=z.next();!G.done;G=z.next())G=G.value,_.mj(G,W.ticks[G],B)}})};
xf0.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&bo2(this.csiSubscriptionKey)};var yKj={},qbj=(yKj.initialized={priority:10,callback:function(){Qjn()}},yKj);var nYj=function(W,B){this.innertubeClientName=W;this.JSC$18289_prefCookie=B};
nYj.prototype.record=function(){if(_.r("web_li_record_binary_eval_tick")){var W=_.Q0("rsef_dpj");var B=_.Q0("rses_dpj");W=W!==void 0&&B!==void 0?Math.round(W-B):void 0;if(W!==void 0&&W>0){B=_.QL(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var z=this.poolSize;if(!(B.valuesSeen>=1E9)){if(B.valuesSample.length<z)B.valuesSample.push(W);else{var G=Math.floor(Math.random()*(B.valuesSeen+1));G<z&&(B.valuesSample[G]=W)}B.valuesSeen+=1}_.Da(this.storagePrefix+"-"+this.innertubeClientName,
B,2592E3);W=B.valuesSample;B=szr(W);W=W.length<this.poolSize?void 0:B<400?1:B<1700?2:3;W!==void 0&&(this.JSC$18289_prefCookie.set(this.cookiePrefix+this.innertubeClientName,W),this.JSC$18289_prefCookie.save())}}else _.yL(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18289_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18289_prefCookie.save()};
nYj[gR]=[pc,Du];var Ni0=function(){nYj.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.C(Ni0,nYj);var $fK=new _.t1("PAGE_LOAD_TIME_TOKEN");var L0K=function(W){this.signal=W;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;W.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.CG(_.fg,this.disableLoggingAndSendPayload,1E4)};
L0K.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.fg.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),Ufn(this))};
var Ufn=function(W){var B=_.et();if(B){var z={webClientComponentsData:{components:Array.from(W.ids,function(G){return{id:G}})}};
W.ids.clear();_.SK().visualElementStateChanged(B,z)}};var Mff=_.xG({a11y:_.Bv7});_.ai1=_.DN(Mff)(Mff.a11y,{ephemeralActionSelector:function(W){return W.ephemeralAction||null}});var R1n=_.xG({continuation:_.YGM});var WF0=_.DN(R1n)(R1n.continuation,{continuationCommandSelector:function(W){return W.continuationCommand}});var BoO=new _.t1("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var DB=function(W,B){this.JSC$18318_storeWithEntities=W;this.JSC$18318_commandHandler=B;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
DB.prototype.start=function(){this.JSC$18318_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
DB.prototype.observeDownloadingEntities=function(){var W=_.Vdu(this.JSC$18318_storeWithEntities.getState().entities).map(function(G){return JwR(G)});
if(W.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var B={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:sLT()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Aq(_.kq("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18318_commandHandler.resolveCommand(B)}this.downloadingEntities=W}else if(this.downloadingEntities.length){var z=wOy(this.JSC$18318_storeWithEntities.getState().entities).map(function(G){return JwR(G)});
this.downloadingEntities.filter(function(G){return z.includes(G)}).length&&(W={openPopupAction:ziD()},this.JSC$18318_commandHandler.resolveCommand(W));
this.downloadingEntities=[]}};
DB[gR]=[ir,_.p4];var zmi;_.Qo=function(W,B,z,G,Y,d,E,v){this.JSC$18321_playerApiPromise=W;this.JSC$18321_commandHandler=B;this.JSC$18321_screenManager=z;this.offlineWebClientEligibility=G;this.JSC$18321_prefStorage=Y;this.JSC$18321_actionRouter=d;this.entityTypeMap=E;this.JSC$18321_persistentStorePromiseAccessor=v;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
zmi=function(){var W=_.dO().resolve(_.Qo),B;_.T(function(z){if(z.nextAddress==1)return W.downloadFailureListenerBound?z.return():z.yield(W.JSC$18321_playerApiPromise,2);B=z.yieldResult;B.addEventListener("onOfflineOperationFailure",function(G){if(G.failureReason&&G.entityKey&&G.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(G.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var Y=_.c3(G.entityKey).entityId;Y&&W.JSC$18321_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
Y)}else if(_.r("kevlar_woffle")){Y=W.JSC$18321_commandHandler;var d=Y.resolveCommand;G=G.failureReason;var E=_.kq("TRANSFER_FAILED",void 0,"Download failed");G==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(E=_.kq("STORAGE_FULL",void 0,"Storage full"));d.call(Y,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Aq(E),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
W.downloadFailureListenerBound=!0;_.HG(z)})};
_.Qo.prototype.deleteVideo=function(W,B){var z=this,G,Y,d;return _.T(function(E){if(E.nextAddress==1)return E.yield(z.JSC$18321_playerApiPromise,2);G=E.yieldResult;d={offlineLoggingData:{offlineDeleteReason:(Y=B)!=null?Y:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return E.yield(G.queueOfflineAction(W,z.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",d),0)})};
_.Qo.prototype.pauseVideoDownload=function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(B.JSC$18321_playerApiPromise,2);z=G.yieldResult;z.pauseVideoDownload(W);_.HG(G)})};
_.Qo.prototype.resumeVideoDownload=function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(B.JSC$18321_playerApiPromise,2);z=G.yieldResult;return G.yield(z.resumeVideoDownload(W),0)})};
_.Qo[gR]=[_.Jg,_.p4,_.Gz,BoO,nc,IH,aSD,D$];var G_i=new _.t1("DOWNLOAD_STATE_STORE_TOKEN");var YKr=function(W,B){this.JSC$18341_persistentStorePromiseAccessor=W;this.store=B;this.upliftCompletionResolver=new _.sl},AZn=function(){var W=_.dO().resolve(dZi),B;
_.T(function(z){switch(z.nextAddress){case 1:if(W.upliftImplPromise)return z.return(W.upliftImplPromise);_.kA(z,2);W.upliftImplPromise=pb1(W);return z.yield(W.upliftImplPromise,4);case 4:W.upliftCompletionResolver.resolve();_.Nn(z,3);break;case 2:throw B=_.h6(z),W.upliftCompletionResolver.reject(B),B;case 3:return z.return(W.upliftImplPromise)}})},pb1=function(W){var B,z,G;
return _.T(function(Y){switch(Y.nextAddress){case 1:return _.md("LOGGED_IN")?Y.yield(W.JSC$18341_persistentStorePromiseAccessor(),2):Y.return();case 2:B=Y.yieldResult;if(!B)return _.mj("vdeur"),Y.return();_.mj("vdeus");_.kA(Y,3);return Y.yield(imi(B),5);case 5:z=Y.yieldResult;W.store.dispatch(RgQ(z));B.observe(function(d){Wx2(W.store,d)});
_.Nn(Y,4);break;case 3:throw G=_.h6(Y),_.mj("vdeur"),G;case 4:_.mj("vdeuc"),_.HG(Y)}})},imi=function(W){var B;
return _.T(function(z){if(z.nextAddress==1)return z.yield(Cc2(W),2);B=z.yieldResult;return z.return(B.reduce(function(G,Y){if(!Y.data||!Y.key||!Y.entityType)return G;G[Y.entityType]||(G[Y.entityType]={});G[Y.entityType][Y.key]=Y.data;return G},{}))})};
YKr[gR]=[D$,_.v7];var dZi;dZi=new _.t1("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.yo=new _.t1("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var qs=function(W,B){this.JSC$18344_persistentStorePromiseAccessor=W;this.transportService=B};
qs.prototype.refresh=function(){var W=this,B,z,G,Y;return _.T(function(d){if(d.nextAddress==1)return _.md("LOGGED_IN")?d.yield(W.JSC$18344_persistentStorePromiseAccessor(),2):d.return();if(d.nextAddress!=3)return(B=d.yieldResult)?d.yield(iED(B),3):d.return();if((z=d.yieldResult)&&!(Number(z.data.refreshTimestampMs||0)<(0,_.Yb)()))return d.return();G={browseId:"SPaccount_downloads"};Y=_.dD(R6);_.cz(W.transportService,G,Y).then(function(E){var v;if(B&&(E==null?void 0:(v=E.responseContext)==null?void 0:
v.maxAgeSeconds)!==0){var c;v=(E==null?void 0:(c=E.responseContext)==null?void 0:c.maxAgeSeconds)||604800;c=String(Math.floor((0,_.Yb)())+v*1E3);B.put("service:downloads_settings:fallback",new _.ev({innertubeResponse:E,refreshTimestampMs:c}))}});
_.HG(d)})};
qs[gR]=[_.OI,_.N_];var n$=function(W,B){this.JSC$18348_playerPromise=W;this.store=B;this.started=!1};
n$.prototype.start=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return W.started?z.return():z.yield(W.JSC$18348_playerPromise,2);B=z.yieldResult;B.addEventListener("onOrchestrationBecameLeader",W.updateIsLeader.bind(W,!0));B.addEventListener("onOrchestrationLostLeader",W.updateIsLeader.bind(W,!1));if(B.isOrchestrationLeader)W.updateIsLeader(B.isOrchestrationLeader());else{var G=new _.oX("Function isOrchestrationLeader is undefined",{"player.isReady":B.isReady(),"player.playVideo":B.playVideo?
"defined":"undefined"});_.jy(G);W.updateIsLeader(!1)}W.started=!0;_.HG(z)})};
n$.prototype.updateIsLeader=function(W){this.store.dispatch(_.Tl({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:W}}))};
n$[gR]=[_.Jg,_.v7];var Eh1=function(W,B){this.networkStatusManager=W;this.JSC$18351_prefStoragePromise=B;this.redirectsToPreload=["https://youtube.com"]},ToK=function(){var W=_.dO().resolve(Eh1),B,z,G,Y,d,E;
_.T(function(v){switch(v.nextAddress){case 1:return v.yield(W.JSC$18351_prefStoragePromise,2);case 2:B=v.yieldResult;if(!(z=B)){v.jumpTo(3);break}return v.yield(B.get("yt-redirect-prefetch-id"),4);case 4:z=v.yieldResult;case 3:if(z||!W.networkStatusManager.isNetworkAvailable())return v.return();G={cache:"reload",redirect:"manual"};Y=_.A(W.redirectsToPreload);d=Y.next();case 5:if(d.done){if(!B){v.jumpTo(0);break}return v.yield(B.set("yt-redirect-prefetch-id",!0,86400),0)}E=d.value;_.kA(v,8);return v.yield(_.Yt.fetch(E,
G),10);case 10:_.Nn(v,6);break;case 8:_.h6(v);case 6:d=Y.next(),v.jumpTo(5)}})};var Ns=function(W){W?(this.container=W,this.containerWasInjected=!0):this.containerWasInjected=!1};
Ns.prototype.openDialog=function(W,B,z){var G=this,Y;return _.T(function(d){(Y=G.container)==null||Y.openDialog(W,B,z);_.HG(d)})};
Ns.prototype.closeDialog=function(){var W=this,B;return _.T(function(z){(B=W.container)==null||B.closeDialog();_.HG(z)})};
Ns.prototype.isDialogOpen=function(){var W=this,B,z;return _.T(function(G){return G.return((z=(B=W.container)==null?void 0:B.isDialogOpen())!=null?z:!1)})};
Ns[gR]=[_.Y8(fgQ)];_.vhq=new _.t1("POPUP_CONTROLLER_TOKEN");var cZ0=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
cZ0.prototype.registerPanel=function(W,B){if(W){this.panelMap.set(W,B);var z=this.pendingPanelResolvers.get(W);z&&(z.resolve(B),this.pendingPanelResolvers.delete(W))}};
cZ0.prototype.getPanel=function(W){var B=this,z;return _.T(function(G){return(z=B.panelMap.get(W))?G.return(z):G.return(wb0(B,W))})};
var wb0=function(W,B){var z,G;return _.T(function(Y){if(z=W.pendingPanelResolvers.get(B))return Y.return(z.promise);G=new _.sl;W.pendingPanelResolvers.set(B,G);return Y.return(G.promise)})},VNn=function(W,B){cZ0.call(this);
var z=this;this.popupController=W;this.persistentPanelController=B;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return z.panelMap.size}}};
_.C(VNn,cZ0);_.p=VNn.prototype;_.p.getReloadContinuation=function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(B.getPanel(W),2);z=G.yieldResult;return G.return(z.getReloadContinuation())})};
_.p.showPanel=function(W,B,z,G,Y,d,E){var v=this,c,J,g,t;return _.T(function(P){if(P.nextAddress==1){E&&v.updatePanelContinuationDatas.set(W,E);if((c=z)==null?0:(J=c.engagementPanelPopupPresentationConfig)==null?0:J.popupType)if(g=z.engagementPanelPopupPresentationConfig.popupType,Y===void 0&&(Y=document.body),g==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!v.persistentPanelController)return _.Oc(new _.oX("Persistent panel controller is not available.")),P.return();var Z=v.persistentPanelController;
Z.persistentPanelIdentifiers.has(W)||(Z.persistentPanelWrapper.appendChild(Z.engagementPanelElement({panelIdentifier:W},{isPersistentPanel:!0})),Z.persistentPanelIdentifiers.add(W));var l=_.M$.currentPageSubTypeSelector(Z.store.getState());a:switch(l){case "watch":var b=Z.persistentPanelContainerMap.get(0);break a;default:b=Z.persistentPanelContainerMap.get(1)}b?(b.appendChild(Z.persistentPanelWrapper),Z.store.dispatch(zbU(!0))):_.Oc(new _.oX("Persistent panel container not found for page type "+
l+"."))}else{if(g==="PANEL_POPUP_TYPE_DIALOG"||g==="PANEL_POPUP_TYPE_DROPDOWN"){Z=P.return;l=v.popupController;b=l.openPopup;a:switch(g){case "PANEL_POPUP_TYPE_DIALOG":var O="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":O="DROPDOWN";break a;default:throw Error("lj`"+g);}return Z.call(P,b.call(l,W,B,O,Y))}_.Oc(new _.oX("Popup type "+g+" not supported in PanelController."))}return P.yield(v.getPanel(W),2)}t=P.yieldResult;(B||d)&&t.updatePanel(B,!1,G,d);t.showPanel(G);_.HG(P)})};
_.p.hidePanel=function(W){var B=this,z,G;return _.T(function(Y){if(Y.nextAddress==1)return Y.yield(B.getPanel(W),2);z=Y.yieldResult;z.hidePanel();B.popupController.closePopup(W);(G=B.persistentPanelController)!=null&&G.persistentPanelIdentifiers.has(W)&&G.store.dispatch(zbU(!1));_.HG(Y)})};
_.p.isVisible=function(W,B){var z=this,G;return _.T(function(Y){if(Y.nextAddress==1)return B&&!z.panelMap.has(W)?Y.return(!1):Y.yield(z.getPanel(W),2);G=Y.yieldResult;return Y.return(G.isVisible())})};
_.p.updatePanel=function(W,B,z,G,Y,d){z=z===void 0?!1:z;var E=this,v;return _.T(function(c){if(c.nextAddress==1){if(!B&&!Y)return c.return();d&&E.updatePanelContinuationDatas.set(W,d);return c.yield(E.getPanel(W),2)}v=c.yieldResult;v.updatePanel(B,z,G,Y);_.HG(c)})};
_.p.registerPanelContent=function(W,B){W&&this.panelContentMap.set(W,B)};
_.p.unregisterPanelContent=function(W){this.panelContentMap.delete(W)};
_.p.getPanelContent=function(W){return this.panelContentMap.get(W)};
_.p.getUpdatePanelContinuationData=function(W){return this.updatePanelContinuationDatas.get(W)};
VNn[gR]=[_.vhq,_.Y8(_.Go)];var $7=function(W,B){this.innertubeTransportService=W;this.JSC$18368_screenManager=B},JZi=function(W){var B;
return!((B=W.panelLoadingStrategy)==null||!B.requestTemplate)};
$7.prototype.makeRequest=function(W){var B=this,z,G;return _.T(function(Y){switch(Y.nextAddress){case 1:if(!JZi(B)){Y.jumpTo(2);break}_.kA(Y,3);return Y.yield(_.BA(B.innertubeTransportService,W),5);case 5:return z=Y.yieldResult,z?Y.return(z.content):(_.jy(Error("mj")),Y.return(void 0));case 3:G=_.h6(Y),_.jy(G);case 2:return Y.return(void 0)}})};
$7.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
$7.prototype.execute=function(W){var B=this,z,G,Y,d,E,v,c,J,g,t;return _.T(function(P){if(P.nextAddress==1){z=W;G=z.data;Y=z.fallbackVe;d=z.parentVe;E=z.createScreenConfig;v=z.renderFn;c=z.command;B.panelLoadingStrategy=G;var Z,l,b=((Z=B.panelLoadingStrategy)==null?0:Z.screenVe)?(l=B.panelLoadingStrategy)==null?void 0:l.screenVe:Y;b&&_.KS(B.JSC$18368_screenManager,b,d,E);return(J=B.getContent())?P.yield(v(J),2):P.jumpTo(2)}return P.nextAddress!=4?JZi(B)?P.yield(B.makeRequest(c),4):P.return():(t=g=
P.yieldResult)?P.yield(v(t),0):P.return()})};
$7[gR]=[_.N_,_.Gz];var ghn=function(W,B){this.engagementPanelElement=W;this.store=B;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
ghn[gR]=[O1M,_.v7];var L$=function(){};
L$.prototype.getContainer=function(){return _.pi()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
L$.prototype.openSheet=function(W,B){var z=this,G,Y,d,E,v,c;return _.T(function(J){switch(J.nextAddress){case 1:return G={stack:[],error:void 0,hasError:!1},_.kA(J,2,3),Y=Gt,J.yield(z.isSheetOpen(),5);case 5:d=J.yieldResult;iTx(G,h3R(Y));if(d){if(_.r("web_close_sheet_if_same_target_killswitch")&&B&&z.currentTarget===B)return(E=z.getContainer())==null||E.closeSheet(),J.return();z.pendingData={data:W,target:rMi(z,B)};return J.return()}W.viewModel&&(W={viewModel:W.viewModel});(v=z.getContainer())==null||
v.openSheet(W,B);z.currentTarget=B;case 3:_.CN(J);ESR(G);_.oR(J,0);break;case 2:c=_.h6(J),G.error=c,G.hasError=!0,J.jumpTo(3)}})};
L$.prototype.closeSheet=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return z.yield((B=W.getContainer())==null?void 0:B.closeSheet(),2);if(z.nextAddress!=4)return W.currentTarget=void 0,W.pendingData?z.yield(W.openSheet(W.pendingData.data,W.pendingData.target),4):z.jumpTo(0);W.pendingData=void 0;_.HG(z)})};
L$.prototype.isSheetOpen=function(){var W=this,B,z;return _.T(function(G){return G.return((z=(B=W.getContainer())==null?void 0:B.isSheetOpen())!=null?z:!1)})};
var rMi=function(W,B){if(!_.r("web_parent_target_for_sheets"))return B;var z,G;return(G=(z=W.getContainer())==null?void 0:z.getParentTarget(B))!=null?G:B};var Eo=window.documentPictureInPicture;var Kp0=_.ak(["dark"]),uT0=_.ak(["system-icons"]),eiu=_.ak(["typography"]),mBT=_.ak(["lang"]),xB2=_.ak(["style"]),jzy=_.ak(["dir"]),f7x=_.ak(["rounded-container"]),OEk=_.ak(["style"]),Qzv=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],UI=function(W){this.JSC$18385_clientRoot=W;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
UI.prototype.openWindow=function(W){var B=this,z,G;return _.T(function(Y){switch(Y.nextAddress){case 1:if(!window.documentPictureInPicture||!_.F2()||B.currentPipWindow)return Y.return(!1);_.kA(Y,2);return Y.yield((G=Eo?Eo:null)==null?void 0:G.requestWindow(W),4);case 4:z=Y.yieldResult;_.Nn(Y,3);break;case 2:return _.h6(Y),Y.return(!1);case 3:if(!z)return Y.return(!1);z.addEventListener("pagehide",function(){tNr(B)});
z.addEventListener("resize",B.handlePipWindowResize);B.pipWindowResizeDelay=new _.pt(function(){B.currentPipWindow&&_.c0(B.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.hv(B.currentPipWindow.innerWidth,B.currentPipWindow.innerHeight)])},z);
DBR(z);qPR(z);return Y.yield(bEv(z),5);case 5:if(!HER())return Y.return(!1);B.currentPipWindow=z;B.JSC$18385_eventForwarder=y_k(z,B.JSC$18385_clientRoot);B.pipWindowResizeDelay.start();return Y.return(!0)}})};
UI.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var tNr=function(W){if(W.currentPipWindow){var B,z;(B=Eo?Eo:null)==null||(z=B.window)==null||z.close();W.currentPipWindow.removeEventListener("resize",W.handlePipWindowResize);var G;(G=W.pipWindowResizeDelay)==null||G.dispose();W.pipWindowResizeDelay=void 0;var Y;(Y=W.JSC$18385_eventForwarder)==null||Y.stop();W.JSC$18385_eventForwarder=void 0;B=_.A(W.onCloseCallbacks);for(z=B.next();!z.done;z=B.next())z=z.value,z();W.onCloseCallbacks=[];W.currentPipWindow=null}};
UI.prototype.getWindow=function(){return this.currentPipWindow};
var s3O=function(W,B){var z;(z=W.onCloseCallbacks)==null||z.push(B)};
UI.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.F2()};
_.G5.Object.defineProperties(UI.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
UI[gR]=[MoD];var PQi=new _.t1("PICTURE_IN_PICTURE_CONTROLLER");var nvt=function(W,B){this.lengthY=this.lengthX=0;this.lengthX=B.x-W.x;this.lengthY=B.y-W.y};var Zm6=function(){},SFi=function(W,B){var z;
(z=W.headerElement)==null||z.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:B}))};var rZ6=function(){};
rZ6.prototype.openPopup=function(W,B,z,G){var Y=this,d;return _.T(function(E){if(!Y.container)return E.return();d={openPopupAction:{popup:B,popupType:z,uniqueId:W}};return E.return(Y.container.handleOpenPopupAction(d,G))})};
rZ6.prototype.closePopup=function(W){this.container&&this.container.closePopup(W)};var k_K=function(){this.openTunnels=new Map},MiR=function(W,B,z){if(a7u(z)){var G=_.$x(z,"gclid");
z={handleEvent:function(v){B&&!B.closed&&typeof B.postMessage==="function"&&v&&v.origin&&v.source===B&&v.data&&v.data.action==="gcl_setup"&&B.postMessage(Object.assign({},{action:"gcl_transfer"},G&&{gclid:G},{gadSource:2}),v.origin)}};
for(var Y=_.A(W.openTunnels),d=Y.next();!d.done;d=Y.next()){var E=_.A(d.value);d=E.next().value;E=E.next().value;if(d.closed)try{window.removeEventListener("message",E),W.openTunnels.delete(d)}catch(v){_.jy(v)}}B&&W.openTunnels.size<15&&(W.openTunnels.set(B,z),window.addEventListener("message",z))}};var lRj=function(){this.clientParams=new Map},lOD=function(W){for(var B=_.A(W.clientParams.keys()),z=B.next();!z.done;z=B.next())z=z.value,z.startsWith("yt-mini-app-share")&&W.clientParams.delete(z)};var IRi=function(W){_.bA.call(this);this.JSC$18407_shortsController=W;CQj(this);this.addOnDisposeCallback(this.removeAudioTrackEventListener.bind(this))};
_.C(IRi,_.bA);var CQj=function(W){var B,z;(B=W.JSC$18407_shortsController)==null||(z=B.playerApi)==null||z.then(function(G){G&&(G.addEventListener("onPlaybackAudioChange",function(){ohq(W,G)}),ohq(W,G))})};
IRi.prototype.removeAudioTrackEventListener=function(){var W=this,B,z;(B=this.JSC$18407_shortsController)==null||(z=B.playerApi)==null||z.then(function(G){G&&G.removeEventListener("onPlaybackAudioChange",function(){ohq(W,G)})})};
var ohq=function(W,B){B=(B==null?void 0:B.getAvailableAudioTracks().length)>1&&(B==null?void 0:B.getAudioTrack())||void 0;var z;(z=W.JSC$18407_shortsController)==null||hm0(z,B)};var FFf=function(W){_.bA.call(this);this.JSC$18410_shortsController=W;Hm0(this);this.addOnDisposeCallback(this.removeCaptionTrackEventListener.bind(this))};
_.C(FFf,_.bA);var Hm0=function(W){W.JSC$18410_shortsController.playerApi.then(function(B){B&&(B.addEventListener("captionschanged",function(){SKj(W,B)}),SKj(W,B))})};
FFf.prototype.removeCaptionTrackEventListener=function(){var W=this;this.JSC$18410_shortsController.playerApi.then(function(B){B&&B.removeEventListener("captionschanged",function(){SKj(W,B)})})};
var SKj=function(W,B){B=B==null?void 0:B.getOption("captions","track");bm6(W.JSC$18410_shortsController,B)};var j3i=function(W,B){_.bA.call(this);var z=this;this.JSC$18413_shortsController=W;this.storeWithShorts=B;W=_.NG(this.storeWithShorts,_.ts8,function(G){if(G){var Y,d=(Y=z.JSC$18413_shortsController.getRoot())==null?void 0:Y.getPlayer(),E;(Y=(E=z.JSC$18413_shortsController.alternativePlayerContainerElement)==null?void 0:E.getPlayerContainer())&&(d==null||d.appendTo(Y))}else{var v;E=(v=z.JSC$18413_shortsController.alternativePlayerContainerElement)==null?void 0:v.getPlayerContainer().querySelector("#player");
Y=z.JSC$18413_shortsController.activeIndex;(v=(d=z.JSC$18413_shortsController.getRoot())==null?void 0:d.querySelector('ytd-reel-video-renderer[id="'+Y+'"] #player-container'))&&(E==null||E.appendTo(v,void 0,!0))}});
this.addOnDisposeCallback(W)};
_.C(j3i,_.bA);var Ms=function(W,B,z,G,Y){var d=this;this.storeWithShorts=W;this.ephemeralResponseStore=B;this.store=z;this.innertubeTransportService=G;this.innertubeTransportLoader=Y;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.ny(_.ck);this.isShortsPipActive=_.ny(_.wh);this.nextReelVe=_.PA(56921);this.prevReelVe=_.PA(56922);this.backButtonVe=_.PA(22156);this.TEST_ONLY={getActiveModules:function(){return d.activeModules}}},fRY=function(W){W.unsubscribeFromStore=
_.NG(W.storeWithShorts,_.g52,function(B){W.initOrDisposeActiveModules(B);
!B&&W.storeWithShorts.getState().shorts.isFullscreen&&(_.Ar(document.documentElement),W.storeWithShorts.dispatch(_.dUU(!1)))});
W.initOrDisposeActiveModules(_.g52(W.storeWithShorts.getState()))},GY9,YeM,OmY,bm6,hm0;
Ms.prototype.initOrDisposeActiveModules=function(W){W?this.activeModules.push.apply(this.activeModules,[new j3i(this,this.storeWithShorts)].concat(_.u7(_.r("web_shorts_audio_track_picker")?[new IRi(this)]:[]),_.u7(_.r("enable_web_shorts_captions_language_command")?[new FFf(this)]:[]))):(_.iA(this.activeModules),this.activeModules.length=0)};
Ms.prototype.registerRootElement=function(W){this.rootElement=W;fRY(this)};
Ms.prototype.getRoot=function(){return this.rootElement};
Ms.prototype.setActiveIndex=function(W){this.activeIndex=W};
_.MVH=function(W,B){var z,G,Y,d,E,v,c;return _.T(function(J){switch(J.nextAddress){case 1:return z=new Y7,(G=z.JSC$13121_getStoreKey(B))&&W.ephemeralResponseStore.has(G)?J.yield(W.ephemeralResponseStore.get(G),7):J.yield(OmY(W,B),4);case 4:Y=J.yieldResult;if(!G){J.jumpTo(3);break}d=tg(Y,3600);return J.yield(W.ephemeralResponseStore.put(G,new _.ev(d)),3);case 7:Y=(E=J.yieldResult)==null?void 0:_.pQ(E);case 3:return((v=Y)==null?0:v.replacementEndpoint)&&(c=_.k(Y.replacementEndpoint,_.SW))&&Y.sequenceContinuation&&
(c.sequenceParams=Y.sequenceContinuation),J.return(Y)}})};
GY9=function(W,B){B=(new df).JSC$13121_getStoreKey(B);return!!B&&W.ephemeralResponseStore.has(B)};
YeM=function(W,B,z){var G,Y,d,E,v;_.T(function(c){if(c.nextAddress==1){G=new df;Y=G.JSC$13121_getStoreKey(B);if(!Y)return c.return();if(z.reelWatchSequenceResponse)return d=tg(z.reelWatchSequenceResponse,3600),W.ephemeralResponseStore.put(Y,new _.ev(d)),c.jumpTo(0);if(!W.ephemeralResponseStore.has(Y))return c.jumpTo(0);v=z;return c.yield(W.ephemeralResponseStore.get(Y),4)}v.reelWatchSequenceResponse=(E=c.yieldResult)==null?void 0:_.pQ(E);_.HG(c)})};
OmY=function(W,B){var z=z===void 0?{}:z;var G,Y,d;return _.T(function(E){switch(E.nextAddress){case 1:if(W.innertubeTransportService){G=W.innertubeTransportService;E.jumpTo(2);break}if(!W.innertubeTransportLoader){_.xr(Error("oj"));E.jumpTo(2);break}return E.yield(W.innertubeTransportLoader(),4);case 4:G=E.yieldResult;case 2:return E.yield((Y=G)==null?void 0:_.BA(Y,B,z),5);case 5:return d=E.yieldResult,E.return(d)}})};
bm6=function(W,B){_.CG(_.FU(),function(){var z=_.sg("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(B){var G,Y=(G=_.hg(_.$G,z)())==null?void 0:G.value,d;G=typeof(B==null?void 0:B.translationLanguage)==="object"&&((d=B.translationLanguage)==null?void 0:d.languageName)||B.displayName||"";Y!==G&&W.store.dispatch(_.bj("stringEntity",z,{key:z,value:G.toString()}))}else W.store.dispatch(_.bj("stringEntity",z,{key:z,value:"CAPTIONS_UNAVAILABLE"}))})};
hm0=function(W,B){_.CG(_.FU(),function(){var z=_.sg("/youtube/app/player_audio_track_entity_key","stringEntity",2);if(B){var G,Y=(G=_.hg(_.$G,z)())==null?void 0:G.value;G=B.getLanguageInfo().getName();Y!==G&&W.store.dispatch(_.bj("stringEntity",z,{key:z,value:G.toString()}))}else W.store.dispatch(_.bj("stringEntity",z,{key:z,value:"ALTERNATE_AUDIO_TRACK_UNAVAILABLE"}))})};
_.G5.Object.defineProperties(Ms.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
Ms[gR]=[DhR,_.uh,ir,_.Y8(_.N_),_.Y8(ebU)];_.Xb6=new _.t1("STORAGE_MANAGER_TOKEN");var TrX=["touchmove","scroll"];var KFi=!1;var YUR=!1;var vWv={onSpanEnd:function(W){W.parentId==null&&(KFi||(zU2(),setInterval(zU2,6E5),KFi=!0),dPx(W,"web_tracing_action"))}};var uMn=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},em0;
uMn.prototype.enqueue=function(W,B){B===1?this.currentPersistentToast=W:this.queue.push(W);this.openToast()};
uMn.prototype.openToast=function(){var W;(W=this.currentToast)!=null&&W.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.aG=new _.t1("TOAST_MANAGER_TOKEN");var mZq=new _.t1("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var xZr=new _.t1("VIEW_TRANSITION_COORDINATOR_TOKEN");var DZj=function(W){this.config=W;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;W=_.A(W.transitionConfigs);for(var B=W.next();!B.done;B=W.next())B=_.A(B.value).next().value,this.transitionTasksMap.set(B,[])};
DZj.prototype.registerElement=function(W,B,z){z=z===void 0?!1:z;for(var G=_.A(Object.keys(B)),Y=G.next(),d={};!Y.done;d={viewTransitionName:void 0},Y=G.next()){Y=Y.value;d.viewTransitionName=B[Y];var E=this.elementTasksMap.get(W),v=void 0;if((v=E)==null?0:v.has(Y)){_.fG(new _.oX("Element already registered for transition",W.tagName,Y));break}E=E||new Map;E.set(Y,{beforeTransition:function(c){return function(){W.style.viewTransitionName=c.viewTransitionName}}(d),
afterTransition:function(){W.style.viewTransitionName&&(W.style.viewTransitionName="")},
runOnce:z});this.elementTasksMap.set(W,E)}};
_.n2=function(W,B){var z=W.elementTasksMap.get(B);z&&(z.clear(),z.size===0&&W.elementTasksMap.delete(B))};
DZj[gR]=[mZq];var Q3i;_.yZ6=_.m(function(W){return _.w("basic-content-view-model",{class:_.kG("ytBasicContentViewModelHost",_.ig(W.className))},_.w(_.V,{cond:function(){return W.data().headline},
then:function(B){return _.w("div",{class:"ytBasicContentViewModelHeadline"},_.w(_.r0,{text:B}))}}),_.w(_.IJ,{each:function(){return W.data().paragraphs||[]},
keyBy:"INDEX"},function(B){return _.w("div",{class:"ytBasicContentViewModelParagraph"},_.w(_.V,{cond:function(){var z=B();return!!(z.header||z.customHeader||z.headline)},
then:function(){return _.w(Q3i,{paragraph:B})}}),_.w(_.V,{cond:function(){return B().asset||B().text},
then:function(){return _.w("div",{class:"ytBasicContentViewModelParagraphContent"},_.w(_.V,{cond:function(){return B().asset},
then:function(z){return _.w("div",{class:"ytBasicContentViewModelParagraphAsset"},_.w(_.Sc,{data:z},{contentPreviewImageViewModel:_.jh}))}}),_.w(_.V,{cond:function(){return B().text},
then:function(z){return _.w("div",{class:"ytBasicContentViewModelParagraphText"},_.w(_.r0,{text:z}))}}))}}))}))},"Se");
Q3i=_.m(function(W){var B=W.paragraph;return _.w(_.AW,null,_.w(_.V,{cond:function(){return B().headline},
then:function(z){return _.w(_.r0,{text:z,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.w(_.Sc,{data:function(){return B().header||B().customHeader}},{sectionHeaderViewModel:function(z){return _.w(_.DC,{data:z.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Te");var nhf=_.m(function(W){var B=_.LG("yt-expandable-metadata-header-view-model"),z=_.lF(function(G){if(!_.mC(_.ec(G),B.value,["A".toString(),"BUTTON".toString()])){var Y;(Y=W.expandedCallback)==null||Y.call(W,!1)}});
return _.w("yt-expandable-metadata-header-view-model",{el:B,class:"ytExpandableMetadataHeaderViewModelHost"},_.w(_.V,{cond:function(){return W.expanded()},
then:function(){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":z},_.w("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.w(_.V,{cond:function(){return W.data().expandedTitleImage},
then:function(G){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.w(_.iF,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:G}))}}),_.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.w(_.r0,{text:function(){return W.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.w(_.r0,{text:function(){return W.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.w(_.r0,{text:function(){return W.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.w("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.w(_.Sc,{data:function(){return W.data().infoButton}},{buttonViewModel:_.ex}),_.w(_.Sc,{data:function(){return W.data().collapseButton}},{buttonViewModel:function(G){return _.w(_.ex,{data:G.data,
onClick:function(){var Y;(Y=W.expandedCallback)==null||Y.call(W,!1)}})}})))},
else:function(){return _.w(qKb,Object.assign({},W))}}))},"Ue"),Noj=_.m(function(W){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.w(_.V,{cond:function(){return W.data().collapsedLabelImage},
then:function(B){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.w(_.iF,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:B,alt:""}))}}),_.w(_.r0,{text:function(){return W.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ve"),qKb=_.m(function(W){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.lF(function(){var B;return void((B=W.expandedCallback)==null?void 0:B.call(W,!0))})},_.w("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.w(_.V,{cond:function(){return W.data().collapsedImage},
then:function(B){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.w(_.iF,{height:20,preserveHeight:!0,preserveWidth:!0,data:B,alt:""}))}}),_.w(_.V,{cond:function(){return W.data().showLeadingCollapsedLabel},
then:function(){return _.w(Noj,Object.assign({},W))}}),_.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.w(_.r0,{text:function(){return W.data().collapsedTitle}}))),_.w("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.w(_.V,{cond:function(){return!W.data().showLeadingCollapsedLabel},
then:function(){return _.w(Noj,Object.assign({},W))}}),_.w(_.Sc,{data:function(){return W.data().infoButton}},{buttonViewModel:_.ex}),_.w(_.Sc,{data:function(){return W.data().expandButton}},{buttonViewModel:function(B){return _.w(_.ex,{data:B.data,
onClick:function(){var z;(z=W.expandedCallback)==null||z.call(W,!0)}})}})))},"We");_.$Z1=_.m(function(W){var B=_.A(_.IK(function(){return W.data().initiallyExpanded})),z=B.next().value,G=B.next().value,Y,d=(Y=_.dO().resolve(_.Y8(_.YG)))==null?void 0:Y(),E=function(){var v=W.data().colorData;
if(v)return d?v==null?void 0:v.darkColorPalette:v==null?void 0:v.lightColorPalette};
return _.w("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.oK({"background-color":function(){var v=E();return(v==null?0:v.section2Color)?_.aE(v.section2Color):""}})},_.w(_.Sc,{data:function(){return W.data().header}},{expandableMetadataHeaderViewModel:function(v){return _.w(nhf,{data:v.data,
expanded:function(){return!!z()},
expandedCallback:function(c){G(c)}})}}),_.w(_.V,{cond:function(){return z()},
then:function(){return _.w("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.w(_.Sc,{data:function(){return W.data().expandedContent}},{horizontalShelfViewModel:function(v){return _.w(_.VC,{data:v.data,
includeMargin:!0,forceNarrowLayout:!0,palette:E})},
videoSummaryContentViewModel:function(v){return _.w(bP4,{data:v.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(v){return _.w(_.eh,{data:v.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(v){return _.w(_.yZ6,{data:v.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.w(_.Sc,{data:function(){return W.data().expandedBottomButtons}},{buttonViewModel:function(v){return _.w("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.w(_.ex,{data:v.data}))}}))}}))},"Xe");var LFf=_.m(function(W){var B=W.text;var z=W.marqueeSpacing;var G=W.scrollDelay;var Y=W.scrollDuration;var d=W.enableMarqueeScroll;W=W.large;var E=_.A(_.g4(!1,void 0,"WyNYFf")),v=E.next().value,c=E.next().value,J=_.A(_.g4(0,void 0,"OoTdhe"));E=J.next().value;var g=J.next().value,t=_.LG("marquee-scroll");J=_.LG("div");var P=_.LG("span"),Z=_.dO().resolve(_.py);_.ja(function(){if(d()){var O=P.value.getBoundingClientRect().width,K=t.value.getBoundingClientRect().width;if(O>K){var e=(Z==="ltr"?-1:1)*(O+
(z?z():16));Promise.resolve().then(function(){c(!0);g(e)})}}},"dv0Anf");
var l={},b={};return _.w("marquee-scroll",{class:_.kG("ytMarqueeScrollHost",(l.ytMarqueeScrollHostLarge=W,l)),el:t},_.w("div",{id:"marquee-scroll-inner-container",class:_.kG("ytMarqueeScrollInnerContainer",(b.ytMarqueeScrollAnimationEnabled=function(){return v()},b)),
el:J,style:_.oK({gap:z?(0,_.EJ)(z):"16px","animation-duration":Y?FqD(Y):"16s","animation-delay":G?FqD(G):"3s","--marquee-translate":(0,_.EJ)(E)})},_.w("span",{el:P,dir:"auto"},_.w(_.r0,{text:B,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.w(_.V,{cond:v,then:function(){return _.w("span",{"aria-hidden":"true",dir:"auto"},_.w(_.r0,{text:B,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Ye");_.UZj=_.m(function(W){var B=W.data;var z=W.overlayDensity;W=_.lF(function(){B().onTapCommand&&_.aB(B().onTapCommand);return!1});
var G=_.Tg0(),Y=function(){return(z==null?void 0:z())===1?22:16},d={};
return _.w("reel-sound-metadata-view-model",{class:_.kG("ytReelSoundMetadataViewModelHost",(d.ytReelSoundMetadataViewModelHostLarge=function(){return(z==null?void 0:z())===1},d)),
"on:click":W,tabindex:0,role:"button","on:keydown":G},_.w("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.w(_.V,{cond:function(){return B().musicIcon},
then:function(E){return _.w(_.iF,{data:E,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:Y})}}),_.w("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.w(LFf,{text:function(){return B().soundMetadata},
enableMarqueeScroll:function(){return!!B().enableMarqueeScroll},
large:function(){return(z==null?void 0:z())===1}}))))},"Ze");var MNf,aR0,RG,z6b,Y0f,Bjf,A6r,pGi;MNf=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];aR0=_.iO("wil_icon_max_concurrent_fetches",Infinity);
RG=function(W,B,z){var G=this;this.iconSet=W;this.appDirection=B;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Yt.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.r("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.r("wil_icon_network_first");this.renderWhenIdle=_.r("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.r("wil_icon_load_immediately");this.isPurging=!1;W=function(){G.cacheStorageAvailable&&(G.cacheStorageAsync=_.Yt.caches.open("yt-icons").then(function(d){return G.cacheStorageSync=d}).catch(function(){G.cacheStorageAvailable=!1}))};
z=(z==null?void 0:z())||{};z=_.A(Object.entries(z));for(B=z.next();!B.done;B=z.next()){var Y=_.A(B.value);B=Y.next().value;Y=Y.next().value;Y=Z5(Y);Rmr(Y);this.iconCache[B]=Y.cloneNode(!0)}this.isPurging=WDj(this);this.isPurging instanceof Promise?this.isPurging.then(W):W()};
_.Pwx=function(W,B){var z=W.resolveIcon(B);return z?W.renderingMode===1?Bjf(W,z,W.renderingMode):(B=W.iconCache[z.url])?(B=B.cloneNode(!0),z6b(W,B),Bjf(W,z,W.renderingMode,B)):_.Gdn(W,z).then(function(G){var Y=G?0:1;z6b(W,G);return Bjf(W,z,Y,G)}):(_.fG(new _.oX("Icon not found",{iconShape:B})),function(){})};
z6b=function(W,B){if(B){W.counter+=1;W="_yt"+W.counter;B=[B].concat(_.u7(B.getElementsByTagName("*")));B=_.A(B);for(var z=B.next();!z.done;z=B.next())if(z=z.value,z.tagName==="style"&&z.textContent)z.textContent=Y0f(z.textContent,W,!0);else for(var G=_.A(z.attributes),Y=G.next();!Y.done;Y=G.next()){Y=Y.value;Y.name==="id"&&(Y.value+=W);["mask","fill","clip-path"].includes(Y.name)&&(Y.value=Y0f(Y.value,W));if(Y.name==="style"){var d=z.style;try{d.cssText=Y0f(d.cssText,W,!0)}catch(g){var E=void 0,v=
void 0,c=void 0,J=void 0;WW({error:((E=g)==null?void 0:(c=(v=E).toString)==null?void 0:c.call(v))||"",el:z.outerHTML,style:!!d,cssText:(J=d)==null?void 0:J.cssText})}}Y.name==="xlink:href"&&(Y.value=Y.value.replace(/#(.*)/,"#$1"+W))}}};
Y0f=function(W,B,z){var G=/url\(["']?#(.*?)["']?\)/;(z===void 0?0:z)&&(G=/url\(["']?#(.*?)["']?\)/g);return W.replace(G,"url(#$1"+B+")")};
Bjf=function(W,B,z,G){return function(Y,d){var E=Object.assign({},{iconColor:"currentcolor",iconWidth:B.size+"px",iconHeight:B.size+"px",iconDisplay:"block"},d);d=_.I0("DIV");var v=E.iconColor,c=E.iconFilter;E="width: "+E.iconWidth+"; height: "+E.iconHeight+"; display: "+E.iconDisplay+";";c&&(E+=" filter: "+c+";");z===0&&(E+=" fill: "+v+";");z===1&&(c=B.url,E+=" -webkit-mask: url("+c+") no-repeat center / cover; mask: url("+(c+") no-repeat center / cover; background-color: ")+v);B.allowMirroring&&
W.appDirection==="rtl"&&(E+=" transform: scale(-1, 1); transform-origin: center center;");d.setAttribute("style",E);z===0&&G&&d.appendChild(G);Y.appendChild(d)}};
_.Gdn=function(W,B){var z,G,Y;return _.T(function(d){z=function(E){return MZ(E)};
G=B.url;if(!dkO(G))throw Error("qj");Y=pGi(W,G);return d.return(Y.then(function(E){return E.clone().text()}).then(function(E){var v=z(E);
E=B.size;var c=_.I0("DIV");_.A6(c,v);v=_.o0(c.firstElementChild!==void 0?c.firstElementChild:_.tfT(c.firstChild,!0));E=Rmr(v,E);W.iconCache[G]=E.cloneNode(!0);delete W.responsePromises[G];return E}).catch(function(){}))})};
A6r=function(W){var B,z=(B=W.requestAninmationFrameResolver)==null?void 0:B.promise;z||(W.requestAninmationFrameResolver=new _.sl,z=W.requestAninmationFrameResolver.promise,_.Yt.requestAnimationFrame(function(){var G;(G=W.requestAninmationFrameResolver)==null||G.resolve();W.requestAninmationFrameResolver=null}));
return z};
pGi=function(W,B){var z,G;return _.T(function(Y){if(Y.nextAddress==1)return W.waitForAnimationFrame?Y.yield(A6r(W),2):Y.jumpTo(2);z=W.responsePromises[B];z||(G=function(){var d,E,v;return _.T(function(c){switch(c.nextAddress){case 1:if(!W.cacheStorageAvailable){d=void 0;c.jumpTo(2);break}if(E=W.cacheStorageSync){c.jumpTo(3);break}return c.yield(W.cacheStorageAsync,4);case 4:E=c.yieldResult;case 3:d=E;case 2:return v=d,W.isNetworkFirstStrategy?c.return(W.fetchAndUpdateCache(B,v).catch(W.getCacheStorageResponse.bind(W,
B,v))):c.return(W.getCacheStorageResponse(B,v).catch(W.fetchAndUpdateCache.bind(W,B,v)))}})},z=W.renderWhenIdle?new Promise(function(d,E){_.CG(_.fg,function(){G().then(d).catch(E)},10)}):G(),W.responsePromises[B]=z);
return Y.return(z.catch(function(d){delete W.responsePromises[B];WW({error:(d==null?0:d.toString)?d.toString():"",url:B});throw d;}))})};
RG.prototype.fetchAndUpdateCache=function(W,B){var z=this;return _.T(function(G){return G.return(iN9(z,W).then(function(Y){EAj(z,W,Y,B);return Y}))})};
var iN9=function(W,B){var z;return _.T(function(G){if(W.numFetches<aR0)return W.numFetches+=1,G.return(Tjj(W,B).finally(function(){--W.numFetches;if(Object.keys(W.queuedResponseResolvers).length){var Y=Object.keys(W.queuedResponseResolvers)[0],d=W.queuedResponseResolvers[Y];delete W.queuedResponseResolvers[Y];d.resolve(iN9(W,Y))}}));
z=new _.sl;W.queuedResponseResolvers[B]=z;return G.return(z.promise)})},Tjj=function(W,B,z){z=z===void 0?2:z;
var G;return _.T(function(Y){G={credentials:"same-origin",priority:"low"};return Y.return(_.Yt.fetch(B,G).then(function(d){return d.ok?d:Promise.reject(Error("rj`"+d.status+"`"+d.statusText))}).catch(function(d){if(z>0)return Tjj(W,B,z-1);
throw d;}))})},EAj=function(W,B,z,G){_.T(function(Y){return G?Y.return(new Promise(function(d){_.CG(_.fg,function(){var E,v;
return _.T(function(c){switch(c.nextAddress){case 1:if(!W.isNetworkFirstStrategy){E=void 0;c.jumpTo(2);break}return c.yield(G.match(B).catch(function(){}),3);
case 3:E=c.yieldResult;case 2:if(v=E){c.jumpTo(4);break}return c.yield(G.put(B,z.clone()).catch(function(J){WW({error:(J==null?0:J.toString)?J.toString():"",url:B})}),4);
case 4:d(),_.HG(c)}})},50)})):Y.return()})};
RG.prototype.getCacheStorageResponse=function(W,B){return _.T(function(z){return B?z.return(B.match(W).then(function(G){return G&&G.ok?G:Promise.reject()})):z.return(Promise.reject())})};
var Rmr=function(W,B){B===void 0||W.getAttribute("viewBox")||W.setAttribute("viewBox","0 0 "+B+" "+B);W.setAttribute("focusable","false");W.setAttribute("aria-hidden","true");try{W.style.pointerEvents="none",W.style.display="inherit",W.style.width="100%",W.style.height="100%"}catch(Y){var z;WW({error:((z=Y)==null?0:z.toString)?Y.toString():""});try{W.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(d){var G;WW({error:((G=d)==null?0:G.toString)?d.toString():
""})}}return W},dkO=function(W){for(var B=_.A(MNf),z=B.next();!z.done;z=B.next())if(W.startsWith(z.value)&&W.endsWith(".svg"))return!0;
return!1};
RG.prototype.resolveIcon=function(W){return this.iconSet.resolveIcon(W)};
var WW=function(W){_.Oc(new _.oX("Error in IconManager",W))},WDj=function(W){if(_.r("wil_icons_cache_purge_killswitch"))return!1;
try{var B=_.Yt.localStorage}catch(d){return!1}if(!B||!W.cacheStorageAvailable)return!1;var z=function(d){try{var E;(E=B)==null||E.setItem("yt-icons-last-purged",d.toString())}catch(c){var v;WW({error:((v=c)==null?0:v.toString)?c.toString():""})}},G=Number(B.getItem("yt-icons-last-purged"));
if(!G)return G=new Date,G=G.setDate(G.getDate()-Math.floor(Math.random()*90+1)),z(G),!1;if(function(d,E){d=new Date(d);E=new Date(E);return E.getMonth()-d.getMonth()+12*(E.getFullYear()-d.getFullYear())}(G,Date.now())<3)return!1;
try{return _.Yt.caches.delete("yt-icons").then(function(d){d&&z(Date.now());return d}).catch(function(){return!1}).finally(function(){W.isPurging=!1})}catch(d){var Y;
WW({error:((Y=d)==null?0:Y.toString)?d.toString():""});return!1}};
RG[gR]=[MQb,_.py,_.Y8(W4f)];_.BW=function(W,B){this.iconManager=W;this.iconsToFetch=B};
_.BW[gR]=[_.C8,_.Y8(R8j)];var vAr=function(){};var c6n=function(W,B,z){this.requestKey=W;this.faK=B;this.rZu=z;this.n3N=function(){return new XMLHttpRequest};
this.zJJ=void 0;this.xX7=[]};
c6n.prototype.getLatestChallengeResponse=function(){return this.rZu};
var Zp7=function(W,B,z){var G,Y,d,E;return _.T(function(v){if(v.nextAddress==1){_.e4("attestation_challenge_fetch");_.mj("att_fs",void 0,"attestation_challenge_fetch");if(!W.zJJ)throw new _.Qy(9,"Missing fetcher");return v.yield(W.zJJ(B,z),2)}G=v.yieldResult;d=(Y=G)==null?void 0:Y.bgChallenge;if(!d)throw new _.Qy(15,"Missing field");W.rZu=G;W.xX7.forEach(function(c){c(G)});
E=YaQ(d);_.mj("att_fc",void 0,"attestation_challenge_fetch");uH("attestation_challenge_fetch");return v.return(E)})},Q04=function(W,B){var z,G,Y,d,E;
return _.T(function(v){switch(v.nextAddress){case 1:z=new tI(100,3E5,.25,2),G=void 0;case 2:if(!(z.currBackoffCount_<10)){v.jumpTo(4);break}_.kA(v,5);if(!(z.currBackoffCount_>0)){v.jumpTo(7);break}return v.yield(wE8(z.getValue()),7);case 7:return v.yield(wGi(W,B),9);case 9:return Y=v.yieldResult,v.return(Y);case 5:d=_.h6(v);d instanceof _.Qy?G=d:(E=d instanceof Error?d.message:"Unknown",G=new _.Qy(9,E));S0F(z);v.jumpTo(2);break;case 4:if(G)throw G;throw new _.Qy(9,"Unknown error");}})},wGi=function(W,
B){B=ExM(TH9(new ipU,B),W.requestKey);
var z=new _.sl,G=W.n3N();G.open("POST",W.faK);G.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");G.setRequestHeader("Content-Type","application/json+protobuf");G.onload=function(){if(_.LjQ(G)){var Y=swT(G.responseText);z.resolve(Y)}else z.reject(new _.Qy(_.R_8(_.vS(G)),G.statusText))};
G.onerror=function(){z.reject(new _.Qy(_.R_8(_.vS(G)),G.statusText))};
G.send(B.serialize());return z.promise};var J6i=function(W){this.networkStatusManager=W;this.isDownloaded=EvD===void 0?function(){return!1}:EvD;
this.isReady=!1;this.q5A=VF0(this)},VF0=function(W){var B;
return _.T(function(z){if(z.nextAddress==1)return z.yield(jJy(),2);if(z.nextAddress!=3)return B=z.yieldResult,z.yield(fRM(B),3);W.xA=z.yieldResult;JxT(W.xA).then(function(){W.isReady=!0});
return z.return(W.xA)})},gAf=function(W,B,z){W.xA?(W=W.xA.nbX({ym:z,
s1k:!0,txB:!0}),B.serviceIntegrityDimensions={poToken:W}):_.jy(Error("tj"))};
J6i.prototype.processContext=function(W){var B=this;if(!W.input.match(_.dD(YnD)))return _.Z6();var z=W.innerTubeRequest,G=z.videoId;return!G||this.isDownloaded(z)||this.networkStatusManager&&!this.xA&&!this.networkStatusManager.isNetworkAvailable()?_.Z6():this.xA?this.isReady?(gAf(this,z,G),_.Z6()):new PO(JxT(this.xA).then(function(){gAf(B,z,G)})):new PO(this.q5A.then(function(Y){return _.T(function(d){if(d.nextAddress==1)return d.yield(JxT(Y),2);
gAf(B,z,G);_.HG(d)})}))};var tF9=new _.t1("WEB_PO_CONTEXT_PROCESSOR");var sRf=function(W,B){var z=this;this.fsK=0;var G;this.oHi=(G=B==null?void 0:B.oHi)!=null?G:window;this.networkStatusManagerPromise=B==null?void 0:B.networkStatusManagerPromise;var Y;this.requestKey=(Y=B==null?void 0:B.requestKey)!=null?Y:_.EA("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var d;this.xn4=(d=B==null?void 0:B.xn4)!=null?d:function(c){return new UZ(c)};
var E;G=(E=B==null?void 0:B.bTv)!=null?E:function(c,J,g){return new c6n(c,J,g)};
this.bgChallenge=YaQ(W.bgChallenge);this.ttlSeconds=dau(MF(W.challenge||""));this.xZ=G(this.requestKey,_.r("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Yt.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",W);this.pIm=B==null?void 0:B.pIm;Vb2(this.xZ);var v;this.y5t=(v=B==null?void 0:B.y5t)!=null?v:function(c){_.ug(z.oHi.document,"visibilitychange",
function(){z.oHi.document.visibilityState==="visible"&&c()})}},ZNf=function(W){if(!W.vm){var B={maxAttempts:5,
gCK:W.ttlSeconds*1E3};gWu(W.oHi);W.vm=W.xn4({xZ:W.xZ,iCq:{disable:_.r("html5_web_po_disable_remote_logging"),dz:"aGIf",odU:yr2("html5_web_po_experiment_ids"),tym:_.r("wpo_dis_lfdms")?0:1E3,ebq:function(G){var Y=dhQ.get(G);Y||(Y=new YDQ(G),Y=new kx(Y),dhQ.set(G,Y));return Y}},
ytY:B,laq:W.bgChallenge,xHb:tby});W.fsK=Date.now();JI6(W.vm,function(){W.fsK=Date.now()});
Kdt(W.vm,function(){return _.T(function(G){return G.return(P7b(W))})});
var z=W.xb4.bind(W);W.networkStatusManagerPromise&&W.ttlSeconds>0&&W.networkStatusManagerPromise.then(function(G){G.listen("publicytnetworkstatus-online",z)});
W.y5t(z)}};
sRf.prototype.xb4=function(){if(Date.now()>this.fsK+this.ttlSeconds*1E3){var W;(W=this.vm)==null||VkF(W)}};
var P7b=function(W){if(W.maO)return W.maO;if(!W.vm)throw Error("uj");W.maO=new Wr({vm:W.vm,xZ:W.xZ,t2u:!0,onError:tby,ytY:W.pIm});return W.maO},PZ2=function(W,B){W=new sRf(W,B);
ZNf(W);P7b(W)};var r6b=_.ai1.ephemeralActionSelector,z8=function(W,B){this.store=W;this.queue=[];B==null||B.addEventListener("yt-navigate-start",this.reset.bind(this))};
z8.prototype.enqueue=function(W){var B=W.command,z=W.durationMs,G=W.elementToFocus;var Y=W.label;var d=W.elementToFocus;W.command?Y=_.kq("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:Y,shortcut:_.kq("SHIFT_PLUS_ENTER")}):d&&(W=Y+". "+_.kq("SHIFT_PLUS_ENTER")+" for more information.",Y=_.kq("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:Y,shortcut:_.kq("SHIFT_PLUS_ENTER")},W));z={announcement:Y,durationMs:z!=null?z:8E3};B?z.command=B:G&&(G.classList.add("ephemeral-action-focusable-element"),z.selector=G.tagName+
".ephemeral-action-focusable-element");this.queue.push(z);kdf(this)};
z8.prototype.activate=function(W){var B=r6b(this.store.getState());if(B){if(B==null?0:B.command)_.L8(B.command),this.store.dispatch(WnF(null));if(B==null?0:B.selector)B=document.querySelector(B.selector),_.O4D(B);W.preventDefault()}};
var kdf=function(W){if(!r6b(W.store.getState())&&W.queue.length){var B=W.queue.shift();B&&(W.previousAnnouncement===B.announcement&&(B.announcement+="\u00a0"),W.store.dispatch(WnF(B)),W.previousAnnouncement=B.announcement,W.timeoutId=setTimeout(function(){if(B.selector){var z;(z=document.querySelector(B.selector))==null||z.classList.remove("ephemeral-action-focusable-element")}W.store.dispatch(WnF(null));kdf(W)},B.durationMs))}};
z8.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(WnF(null));this.queue.length=0;this.timeoutId=void 0};
z8[gR]=[_.v7,_.Y8(_.M1)];_.G8=new _.t1("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var l1Y=window.AbortController||S_y;var C71=new _.t1("AUTH_SERVICE_TOKEN");var kgT=_.ak(["about:blank"]),rxt;var I1K=new _.t1("API_IFRAME_TOKEN"),oAO=new _.t1("FETCH_FN_TOKEN"),h69=new _.t1("PARSE_FN_TOKEN"),HNn=new _.t1("WINDOW_REQUEST_TOKEN"),FDq=new _.t1("TEXT_DECODER_TOKEN");var ryu;ryu=new _.t1("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.S0b=new _.t1("MISC_UI_SHARED_FLAGS_TOKEN");var bNf=function(){};
bNf.prototype.getFlag=function(W){if(W.configType!==2)throw Error("vj");return jRn(W)};
var jRn=function(W){switch(W.flagType){case "bool":return _.r(W.flagName);case "int":return _.OF(_.iO(W.flagName));case "double":return _.iO(W.flagName);case "string":return _.EA(W.flagName);case "int32_list":return yr2(W.flagName);case "int64_list":return yr2(W.flagName).map(function(B){return _.OF(B)});
case "string_list":return _.T4(W.flagName);default:throw Error("wj");}};var Yf=function(W,B,z){B=B===void 0?{}:B;a1.call(this,z===void 0?"uninitialized":z);this.env=W;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}];B.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=B.shouldWaitOnAsyncImmediate)};
_.C(Yf,a1);Yf.prototype.init=function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1)return B.processPluginOptions.shouldWaitOnAsyncImmediate?G.yield(W(B.env),2):(W(B.env),G.jumpTo(2));if(G.nextAddress!=4)return B.jobSet?G.yield(B.jobSet.completedResolver.promise,4):G.jumpTo(4);z=_.J5();z.parkOrScheduleJob(function(){B.transition("rendering")},10,"ci");
_.HG(G)})};
Yf.prototype.initialRender=function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1)return B.processPluginOptions.shouldWaitOnAsyncImmediate?G.yield(W(B.env),2):(W(B.env),G.jumpTo(2));if(G.nextAddress!=4)return B.jobSet?G.yield(B.jobSet.completedResolver.promise,4):G.jumpTo(4);z=_.J5();z.parkOrScheduleJob(function(){B.transition("rendered")},10,"cr");
_.HG(G)})};
Yf.prototype.afterRenderImmediate=function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1)return B.processPluginOptions.shouldWaitOnAsyncImmediate?G.yield(W(B.env),2):(W(B.env),G.jumpTo(2));if(G.nextAddress!=4)return B.jobSet?G.yield(B.jobSet.completedResolver.promise,4):G.jumpTo(4);z=_.J5();z.parkOrScheduleJob(function(){B.transition("after-render-deferred")},10,"carml");
_.HG(G)})};
Yf.prototype.afterRenderDeferred=function(W){var B=this;return _.T(function(z){W(B.env);_.HG(z)})};var f10;_.uk("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});f10={};_.ONf=(f10.CSI=HU0(),f10.ECATCHER=hUR(),f10);var XGf={},KDi=(XGf.rendered={priority:0,callback:function(W){B8T(W.injector.resolve(Ig))}},XGf);var s7k=new _.t1("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),upY=new _.t1("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var e6f=function(W){this.callbackFnMap=W;this.configMap={}};
e6f.prototype.handleResponse=function(W){var B;if(W=(B=W.responseContext)==null?void 0:B.serviceTrackingParams)for(B=_.A(W),W=B.next();!W.done;W=B.next()){W=W.value;var z=W.params,G=W.service;if(z&&G){this.configMap[G]||(this.configMap[G]=new jbM);W=this.configMap[G];var Y=void 0,d=(Y=this.callbackFnMap)==null?void 0:Y[G];z=_.A(z);for(G=z.next();!G.done;G=z.next())Y=G.value,G=Y.key,Y=Y.value,G&&Y&&(W.set(G,Y),d&&d(G,Y))}}};
e6f[gR]=[_.Y8(upY)];var mk6=!1,fyQ=0,FZv=null,jQT=null;var xkO=new _.t1("NETWORK_SLI_TOKEN");var Dkn=function(W,B,z,G,Y){this.networkSli=W;this.fetchFn=B;this.parseFn=z;this.requestFn=G;this.JSC$18522_textDecoder=Y};
Dkn.prototype.fetch=function(W,B,z){var G=this,Y,d,E;return _.T(function(v){Y=QR1(G,W,B);E=(d=G.fetchFn)!=null?d:fetch;return v.return(E(Y).then(function(c){return G.handleResponse(c,z)}).catch(function(c){_.Oc(c);
if((z==null?0:z.expectJsonStrict)&&c instanceof $U&&c.errorType===1)return Promise.reject(c)}))})};
var duR=function(W,B,z,G){var Y,d,E,v,c,J,g;return _.T(function(t){switch(t.nextAddress){case 1:return Y=QR1(W,B,z),_.kA(t,2),t.yield(fetch(Y),4);case 4:d=t.yieldResult;_.Nn(t,3);break;case 2:throw _.h6(t),new $U(2,"Failed to parse streaming response",Y.url);case 3:if(!d.redirected&&!d.ok)throw(E=W.networkSli)==null||E.failure(),new _.oX("Streaming fetch request not ok",Y.url);if(!d.body)throw new _.oX("No response body in streaming response",Y.url);v={};if(_.r("web_streaming_fast"))return c=d.body.getReader(),
t.return(y6n(W,c,v,G));J=d.body.pipeThrough(new TextDecoderStream).getReader();g=new _.o9;return t.return(q0q(W,J,g,Qv0,v,G))}})},QR1=function(W,B,z){if(W.networkSli){var G=_.gO(_.dV(B,"key"))||"/UNKNOWN_PATH";
W.networkSli.start(G)}G=z;_.r("wug_networking_gzip_request")&&(G=zqX(z));var Y;return new ((Y=W.requestFn)!=null?Y:window.Request)(B,G)},y6n=function(W,B,z,G){var Y,d,E,v,c,J,g,t,P,Z,l;
return _.T(function(b){switch(b.nextAddress){case 1:Y=W.JSC$18522_textDecoder?new W.JSC$18522_textDecoder("utf-8"):new TextDecoder("utf-8"),d="",E=function(O){O=O.trim();O.length!==0&&O!=="]"&&O!=="["?(O.startsWith("[")&&(O=O.substring(1)),O.endsWith("]")&&(O=O.slice(0,-1)),O.endsWith(",")&&(O=O.slice(0,-1)),O=O.trim()):O=void 0;if(O)try{var K=JSON.parse(O);Qv0(z,K);G==null||G(z,K)}catch(e){throw new $U(1,"Failed to parse streaming response",O);}},_.kA(b,2,3);
case 5:return b.yield(B.read(),8);case 8:v=b.yieldResult;c=v.value;if(J=v.done)return d.length>0&&E(d),g=void 0,(g=W.networkSli)==null||g.success(),b.return(z);d+=Y.decode(c,{stream:!0});t=d.split("\n");d=t.pop()||"";P=_.A(t);for(Z=P.next();!Z.done;Z=P.next())l=Z.value,E(l);b.jumpTo(5);break;case 3:_.CN(b);B.releaseLock();_.oR(b,0);break;case 2:throw _.h6(b),new $U(1,"Failed to parse streaming response");}})},q0q=function(W,B,z,G,Y,d){var E,v,c,J,g,t,P,Z,l;
return _.T(function(b){if(b.nextAddress==1)return b.yield(B.read(),2);E=b.yieldResult;v=E.value;if(c=E.done)return(J=W.networkSli)==null||J.success(),b.return(Y);try{g=z.parse(v)}catch(O){throw new $U(1,"Failed to parse streaming response",v);}if(g!=null)for(t=_.A(g),P=t.next();!P.done;P=t.next())Z=P.value,G(Y,Z),l=void 0,(l=d)==null||l(Y,Z);return b.return(q0q(W,B,z,G,Y,d))})};
Dkn.prototype.handleResponse=function(W,B){var z,G=(z=this.parseFn)!=null?z:JSON.parse;z=W.text().then(function(Y){if((B==null?0:B.jspbResponseCtor)&&W.ok)return DZD(B.jspbResponseCtor,Y);Y=Y.replace(")]}'","");if((B==null?0:B.expectJsonStrict)&&Y)try{var d=G(Y)}catch(v){throw new $U(1,"JSON parsing failed after fetch");}var E;return(E=d)!=null?E:G(Y)});
W.redirected||W.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),z=z.then(function(Y){_.Oc(new _.oX("Error: API fetch failed",W.status,W.url,Y));return Object.assign({},Y,{errorMetadata:{status:W.status}})}));
return z};
Dkn[gR]=[_.Y8(xkO),_.Y8(oAO),_.Y8(h69),_.Y8(HNn),_.Y8(FDq)];var nA9=new _.t1("NETWORK_MANAGER_TOKEN");var NjO=[1,2,4,8,16,30],LDn=function(W){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=W.maxTimeMs;this.maxFrameCount=W.maxFrameCount===void 0?Math.ceil(60*W.maxTimeMs/1E3):W.maxFrameCount;W=_.A(NjO);for(var B=W.next();!B.done;B=W.next())this.brokenFrameSummarizers.push(new $kq(B.value/60*1E3))},Uki=function(W){var B=W.frameCountInternal>=W.maxFrameCount;
return W.elapsedTimeMs>=W.maxTimeMs||B};
LDn.prototype.summarize=function(){for(var W=[],B=_.A(this.brokenFrameSummarizers),z=B.next();!z.done;z=B.next())z=z.value,z=z.brokenFrameCount!==0?{severityMs:Math.round(z.targetFrameTimeMs),eventCount:z.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(z.averageDurationBetweenEventsMs)}:void 0,z&&W.push(z);return{summaries:W,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.G5.Object.defineProperties(LDn.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 $kq=function(W){this.targetFrameTimeMs=W;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.G5.Object.defineProperties($kq.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var MF9=function(){};
MF9.prototype.start=function(W,B){var z=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var G=new LDn({maxTimeMs:W});this.monitor=G;this.lastSummaryInternal=void 0;this.metadataToLog=B;return new Promise(function(Y){var d=function(E){if(E===void 0)z.stop(),Y(void 0);else if(z.monitor!==G)E=Object.assign({},G.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),Y(E);else{var v=z.monitor;if(!Uki(v)){v.frameCountInternal++;if(v.prevTime===
void 0)v.startTime=E;else for(var c=E-v.prevTime,J=_.A(v.brokenFrameSummarizers),g=J.next();!g.done;g=J.next()){g=g.value;var t=g.currTimeMs;g.currTimeMs+=c;c>g.targetFrameTimeMs+2&&(g.brokenFrameCount++,g.timeOfFirstBrokenFrameMs===void 0&&(g.timeOfFirstBrokenFrameMs=t),g.timeOfLastBrokenFrameMs=t)}v.prevTime=E}Uki(z.monitor)?Y(z.stop()):_.fg.addJob(d,5,0)}};
_.fg.addJob(d,5,0)})};
MF9.prototype.stop=function(W){if(!this.monitor)return this.lastSummaryInternal;var B=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(B.monitoringDurationMs){W=W!=null?W:this.metadataToLog;var z={droppedFramesSummary:B,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};W&&(z[W.type]=W.data);_.Sy("manualSmoothnessMeasurement",z)}this.monitor=void 0;this.lastSummaryInternal=B;this.metadataToLog=void 0;return B};_.a1f=new _.t1("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var R69;R69=function(W){this.JSC$18545_expiringStorage=new HS(W)};
_.WPj=function(W){if(_.OU2()&&(W=_.j_Q(_.C4()+"::"+W)))return new R69(W)};
R69.prototype.set=function(W,B,z){z=z!==void 0?Date.now()+z:void 0;this.JSC$18545_expiringStorage.set(W,B,z)};
R69.prototype.get=function(W){return this.JSC$18545_expiringStorage.get(W)};
R69.prototype.remove=function(W){this.JSC$18545_expiringStorage.remove(W)};var B39=new _.t1("SESSION_STORAGE");_.dF=function(){};
_.dF.getInstance=function(){var W=_.q6("ytglobal.storage_");W||(W=new _.dF,_.BV("ytglobal.storage_",W));return W};
_.dF.prototype.estimate=function(){var W,B,z;return _.T(function(G){W=navigator;return((B=W.storage)==null?0:B.estimate)?G.return(W.storage.estimate()):((z=W.webkitTemporaryStorage)==null?0:z.queryUsageAndQuota)?G.return(XET()):G.return()})};
_.BV("ytglobal.storageClass_",_.dF);var QQ0=0;var UPy=!1;var zkf=_.ak(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),GFj=_.ak(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var nMb={"/":_.nS,"/?feature=ytca":_.nS,"/feed/downloads":_.VG2};var YYi=WF0.continuationCommandSelector,so=function(W,B,z){this.JSC$18561_upliftPromise=W;this.store=B;this.JSC$18561_persistentStorePromiseAccessor=z};
so.prototype.shouldPreferLocalResponse=function(W){return W.browseId==="FEdownloads"||W.browseId==="FEsmart_downloads"&&_.r("kevlar_modern_downloads_page")?!0:!1};
so.prototype.localInnertubeResponse=function(W){var B=this;return _.T(function(z){return W.browseId==="FEdownloads"?_.r("kevlar_modern_downloads_page")?z.return(dd0(B)):z.return(pci(B)):W.browseId==="FEsmart_downloads"&&_.r("kevlar_modern_downloads_page")?z.return(Avr(B)):z.return(Promise.reject(Error("yj")))})};
so.prototype.canProvideFallbackResponse=function(){return!0};
so.prototype.localFallbackInnertubeResponse=function(W){var B=this,z,G,Y;return _.T(function(d){switch(d.nextAddress){case 1:return d.yield(B.JSC$18561_persistentStorePromiseAccessor(),2);case 2:z=d.yieldResult;if(W.browseId!=="SPaccount_downloads"||!z){d.jumpTo(3);break}return d.yield(iED(z),4);case 4:if(G=d.yieldResult)return d.return(_.pQ(G));case 3:return W.browseId==="FEwhat_to_watch"?d.return(i3n(B)):(Y=_.r("web_offline_continuation_automatic_retry")||_.r("web_offline_continuation_retry_button"))&&
W.continuation?d.return(EH6(B)):d.return(T36(B))}})};
var i3n=function(W){var B;return _.T(function(z){if(z.nextAddress==1)return z.yield(W.JSC$18561_upliftPromise,2);B=_.n3t(W.store.getState().entities);return B.length?z.return(vHq(W,B)):z.return(T36(W))})},pci=function(W){var B,z;
return _.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$18561_upliftPromise,2);if(G.nextAddress!=3)return B=cv6([{offlineItemSectionRenderer:{}}]),G.yield(wcj(W,B),3);z=G.yieldResult;z.onResponseReceivedActions=[le("REFRESH_DOWNLOADS")];return G.return(z)})},dd0=function(W){var B,z,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O;
return _.T(function(K){if(K.nextAddress==1)return K.yield(W.JSC$18561_upliftPromise,2);if(K.nextAddress!=3)return B=W.store.getState(),z=B.entities,G=_.XN(z),Y=_.KA(z),d=_.l$Q(B),E=_.k10(B),v=_.C1y(B),c=_.LxR(z),J=_.FN(G),g=_.ud(z),t=_.RNT(z),P=_.oUR(B),Z=_.Qg(B),l={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.FBQ(G,Y,c,t,d,E,J,g,v,P,Z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},b="",_.r("kevlar_modern_downloads_skip_downloads_title")||
(b=_.kq("DOWNLOADS",void 0,"Downloads")),K.yield(Vw1(W,l,b),3);O=K.yieldResult;O.onResponseReceivedActions=[le("REFRESH_DOWNLOADS")];return K.return(O)})},Avr=function(W){var B,z,G,Y,d,E,v,c,J;
return _.T(function(g){if(g.nextAddress==1)return g.yield(W.JSC$18561_upliftPromise,2);if(g.nextAddress!=3)return B=W.store.getState(),z=B.entities,G=_.XN(z),Y=_.FN(G),d=_.ud(z),E={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.bXu(G),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},v=_.kq("SMART_DOWNLOADS",void 0,"Smart downloads"),c=hKk(Y,d),g.yield(Vw1(W,E,v,c),3);J=g.yieldResult;J.onResponseReceivedActions=
[le("REFRESH_DOWNLOADS")];return g.return(J)})},T36=function(W){var B,z;
return _.T(function(G){if(G.nextAddress==1)return G.yield(dn(W.JSC$18561_upliftPromise,W.store),2);B=G.yieldResult;z=cv6([YP8(B)]);return G.return(wcj(W,z))})},EH6=function(W){var B,z,G,Y;
return _.T(function(d){if(d.nextAddress==1)return B={},z=YYi(W.store.getState()),_.Q2(B,_.Ly,z),d.yield(dn(W.JSC$18561_upliftPromise,W.store,B,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);G=d.yieldResult;Y={};_.Q2(Y,_.i_6,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:G}}}],targetId:"browse-feedFEwhat_to_watch"});return d.return({responseContext:{},onResponseReceivedActions:[Y]})})},cv6=function(W){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:W}}}}]}}},vHq=function(W,B){var z,G;
return _.T(function(Y){var d={contents:Ck(B)};z=d&&d.contents?d:{};_.r("kevlar_modern_downloads_page")&&(z=Object.assign({},_.jLR(B),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));G={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:z}}}]}};return Y.return(wcj(W,G))})},wcj=function(W,B){var z,G;
return _.T(function(Y){if(Y.nextAddress==1)return Y.yield(W.JSC$18561_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return z=Y.yieldResult,Y.yield(At(z),3);G=Y.yieldResult;return Y.return({responseContext:{},contents:B,topbar:G})})},Vw1=function(W,B,z,G){var Y,d;
return _.T(function(E){if(E.nextAddress==1)return E.yield(W.JSC$18561_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3)return Y=E.yieldResult,E.yield(At(Y),3);d=E.yieldResult;var v=E.return;var c=z;var J=G;c=c===void 0?"":c;J=J===void 0?"":J;c={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:c}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.kq("SETTINGS",void 0,"Settings"),accessibilityText:_.kq("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:_.dc("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:J}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:c};
return v.call(E,{responseContext:{},contents:B,topbar:d,header:{pageHeaderRenderer:c}})})};var Jvn=function(){this.moduleRegistry={};this.fetchCount=0};
Jvn.prototype.isFetching=function(){return this.fetchCount>0};
var yb=function(W,B){W.moduleRegistry[B.toString()]={asyncId:B,isFetching:!1};return W};
Jvn.prototype.JSC$18572_loadModules=function(){for(var W=this,B=new Map,z=[],G=_.A(_.nm.apply(0,arguments)),Y=G.next();!Y.done;Y=G.next()){Y=Y.value;var d=this.moduleRegistry[Y];d?d.resolver?B.set(Y,d.resolver):(d.resolver=new _.sl,B.set(Y,d.resolver),z.push(d.asyncId),d.isFetching=!0):(d=new _.sl,B.set(Y,d),d.resolve(void 0))}z.length&&(this.fetchCount+=1,_.xX(_.u1.getMultipleAsync.apply(_.u1,_.u7(z)).then(function(E){for(var v=0;v<z.length;v++){var c=E[v],J=W.moduleRegistry[z[v].toString()];J.isFetching=
!1;J.resolver.resolve(c)}}).catch(function(E){for(var v=_.A(z),c=v.next();!c.done;c=v.next()){c=c.value;
var J=W.moduleRegistry[c.toString()];J.resolver=void 0;J.isFetching=!1;B.get(c.toString()).reject(E)}}),function(){--W.fetchCount}));
return Promise.all([].concat(_.u7(B.values())).map(function(E){return E.promise}))};_.qg=new _.t1("MODULE_REGISTRY_TOKEN");var gHO={},tw1=(gHO.rendered={priority:0,callback:function(W){a:{var B=void 0;try{var z;b:{if(_.Onu()){var G=_.bAD(_.C4()+"::pom");if(G){var Y=new W7(G);break b}}Y=void 0}var d=(z=Y)==null?void 0:z.get("role_text");if(!d)break a;B={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:d}]}}}}}}catch(c){}B&&W.injector.resolve(_.p4).resolveCommand(B)}try{var E=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(E){var v=JSON.parse(E);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
v&&W.injector.resolve(_.p4).resolveCommand(v)}}catch(c){}}},gHO);var s8i,PfY={},Z3K=(PfY.initialized={priority:10,callback:function(){s8i=ht()}},PfY.rendering={callback:function(W){var B;
return _.T(function(z){if(z.nextAddress==1)return z.yield(s8i,2);B=z.yieldResult;if(!B.endpoint)throw Error("Aj`"+_.Yt.location.href);br(W,B);_.HG(z)})}},PfY);var rv6={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(_.u7(_.r("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(W){var B=W.stack;if(B.includes("chrome://")||B.includes("chrome-extension://")||W.message.includes("chrome-extension://")||B.includes("moz-extension://")||B.includes("local.adguard.org")||B.includes("auctioneer3.50million.club")||B.includes("youtubedownloader")||B.includes("youtube_home_page")||B.includes("is_youtube_video_no_longer_available")||
B.includes("switchScreenSizeHack")||B.includes("yt_main_big_banner.js")||B.includes("YouTubeCenter.js")||B.includes("/mytube.js")||B.includes("JSON.parseWrapper")||B.includes("/inj_js/common.js")||B.includes("firebug-lite")||B.includes(".repl.co/")||B.includes("linkfix")||B.includes("playAfterAd")||W.message.includes("Access is denied for this document")&&B.includes("<anonymous>")||W.fileName==="user-script"||W.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
B.includes("<anonymous>"))return!0;if(B.includes("https://www.youtube.com"))return!1;W=B.split("\n");if(!W.length)return!1;if(W.length<=3&&B.includes("s.onloadeddata"))return!0;B=0;for(var z=_.A(W),G=z.next();!G.done;G=z.next())G=G.value,(G.includes("https://")||G.includes("http://"))&&B++;return B/W.length>.95},
weight:0},{callback:function(W){return W.message==="Unknown Error"&&W.name.indexOf("NS_")===0},
weight:100},{callback:function(W){if(!_.Js)return!1;var B=W.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||W.message.includes("available to complete this operation"),z=W.stack.includes("webcomponents")&&W.message==="Object doesn't support this action";W=W.message.includes("object that does not implement interface Element");return B||z||W},
weight:0},{callback:function(W){return W.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(W){return W.message==="Operation is not supported"&&(W.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(W){return W.stack.includes("eval code (eval (code:1:1)")||W.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(W){return W.message.includes("Permission denied")&&W.stack.includes("this.domHandler")?!0:W.name.includes("TypeError")&&W.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(W){if(!W.stack)return!1;var B=W.stack.trim().split("\n");B.length&&B[0].endsWith("Error: "+W.message)&&B.shift();B.length&&B[B.length-1].includes("at window.onerror (")&&B.pop();if(!B.length)return!0;if(W.message==="Script error.")return B[0].includes("www.youtube.com")||B.length>=2&&B[0].startsWith("at new")&&B[1].startsWith("at window.onerror");if(W.message==="Unexpected token")return!0;W=_.A(B);for(B=W.next();!B.done;B=W.next())if(B=B.value,!(B.includes("<anonymous>")||
B.startsWith("load@")||B.startsWith("global code@")||B.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(W){return W.message==="Cannot read property 'experiments'"&&W.stack.includes("/s/player/")},
weight:500},{callback:function(W){return W.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(W){return W.stack.includes("/embed.js")?(W.params&&W.params&&(W.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.r("use_error_suppression"))var W=_.eD("SUPPRESS_CLIENT_ERRORS",!1);else{if(W=_.ZJ)W=/Chrome\/(\d+)/.exec(_.Py()),W=(W?parseFloat(W[1]):NaN)>=66;W=!(W||_.P8&&_.sL(65)||_.mH&&_.sL(12.1)||RX&&_.sL(79))}return W},
weight:500}]};var kFb={},le0=(kFb.initialized={priority:10,callback:function(W){W.injector.addProvider({provide:MoD,useValue:W.root});W.injector.addProvider({provide:Xnj,useValue:o2R});W.injector.addProvider({provide:K0i,useValue:rv6});var B={};W.injector.addProvider((B.provide=u60,B.useFactory=function(z,G){return function(){r_R(z,G)}},B[gR]=[Xnj,
K0i],B));W.injector.addProvider({provide:yO,useClass:yO})}},kFb);var Cfi={},Ieb=(Cfi.initialized={priority:3,callback:function(){var W;if(W=CdR()){W=W.replace("/",".");var B=_.IP();B.set("tz",W);B.save();W=!0}else W=!1;W||(W=_.IP(),W.set("utco",-Math.floor((new Date).getTimezoneOffset())),W.save())}},Cfi);var oHn={},hkY=(oHn.initialized={priority:10,callback:function(W){W.injector.resolve(yO).start();W=_.GS();var B=_.md("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.md("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.md("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.md("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.wn(_.dz0(),{mainAppWeb:Object.assign({},W,{pageType:B})});_.wn(Afr(),{mainAppWeb:Object.assign({},W,{pageType:B})});
_.wn(ihD(),{mainAppWeb:W});_.wn(Eyt(),{mainAppWeb:W});w_D(function(){_.Vb(ihD(),"FAILURE");_.Vb(Eyt(),"FAILURE")});
Txu();vkX();Cq2()}},oHn);var H3j={},FPn=(H3j.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.mj("dl"),_.J5().processSignal("pcl");else{var W=function(){_.mj("dl");_.J5().processSignal("pcl");window.removeEventListener("load",W)};
window.addEventListener("load",W)}}},H3j);var SYb={},b31=(SYb.rendering={priority:0,callback:function(){var W=_.J5();W.parkOrScheduleJob(function(){W.processSignal("eocs")},10,"eor",5E3)}},SYb);var j8Y=function(){};
_.C(j8Y,JT);
j8Y.prototype.resolveCommand=function(W,B){var z,G,Y,d,E,v,c,J;return _.T(function(g){Y=(z=_.k(W,_.rLF))==null?void 0:(G=z.dialog)==null?void 0:G.commentReplyDialogRenderer;if(!Y)throw new _.oX("No dialog in createCommentReplyDialogEndpoint");E=(d=B.form)==null?void 0:d.event;if(!E)throw new _.oX("Event not passed in when resolving command");v=_.A(E.composedPath());for(c=v.next();!c.done;c=v.next())if(J=c.value,J.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||J.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return J.showReplyDialog(Y),g.return();
_.HG(g)})};var pF=function(W){this.pageRequestService=W;this.JSC$18587_prefetchCoordinator=kq1()};
_.C(pF,JT);pF.prototype.resolveCommand=function(W){var B=this,z,G,Y,d;return _.T(function(E){if(E.nextAddress==1){z=_.k(W,BP4);if((G=z)==null||!G.taskId)throw Error("Bj");Y=z.taskId;_.kA(E,2);return E.yield(_.B$R(B.pageRequestService,W,{},"").then(function(v){if(!v)throw Error("Cj");},function(v){throw Error("Dj`"+v);
}),4)}if(E.nextAddress!=2)return Iiq(B.JSC$18587_prefetchCoordinator,Y),_.Nn(E,0);
d=_.h6(E);ei(B.JSC$18587_prefetchCoordinator,Y,d);_.HG(E)})};
pF[gR]=[ok];var Ab=function(W,B){this.innertubeTransportService=W;this.JSC$18591_commandHandler=B};
_.C(Ab,JT);Ab.prototype.resolveCommand=function(W){var B=this,z,G,Y;return _.T(function(d){if(d.nextAddress==1){z=_.k(W,WtU);if(z.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||z.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")G=z.boolValue?2:1,_.oH.getInstance().setState(G,!0,!0);return d.yield(_.BA(B.innertubeTransportService,W),2)}Y=d.yieldResult;feq(B,Y);_.HG(d)})};
var feq=function(W,B){B.actions&&B.actions.forEach(function(z){W.JSC$18591_commandHandler.resolveCommand(z)})};
Ab[gR]=[_.N_,_.p4];var iV={},O31=(iV.addToPlaylistEndpoint=YO(iX),iV.addToToastAction=YO(JN),iV.adsControlFlowOpportunityReceivedCommand=YO(y9),iV.audioTrackSelectActionCommand=YO(lX),iV.backgroundAudioPlaybackCommand=YO(IV),iV.captionLanguageSelectActionCommand=YO(oV),iV.captionPickerEndpoint=YO(hi),iV.changeMiniAppPlayStateCommand=YO(Eu),iV.changeTimelyActionVisibilityCommand=YO(VZ),iV.channelCreationFormEndpoint=YO(zv),iV.clearLocationCommand=YO(Ai),iV.clearUrlParamCommand=YO(Tv),iV.copyLinkCommand=YO(Ou),iV.copyTextEndpoint=
YO(N3),iV.createCommentReplyDialogEndpoint=ALD(j8Y),iV.createPlaylistServiceEndpoint=YO(Xa),iV.dismissDialogEndpoint=YO(cL),iV.dismissPlayerOverlayCommand=YO(HL),iV.entityUpdateCommand=YO(L0),iV.feedbackEndpoint=YO(a2),iV.getAnswerCommand=YO(b7f),iV.getPaymentsClientTokenCommand=YO(sB),iV.getTranscriptEndpoint=YO(gl),iV.googlePaymentBillingCommand=YO(PI),iV.googlePaymentPurchaseManagerCommand=YO(Zf),iV.hideEngagementPanelEndpoint=YO(wt),iV.hideSheetCommand=YO(VT),iV.hideSnackbarCommand=YO(AN),iV.insertRichSectionCommand=
YO(YZ),iV.listMutationCommand=YO(dt),iV.logGtmCommand=YO(Gv),iV.notifyDropdownOptionSelectedCommand=YO(vL),iV.openAdAllowlistInstructionCommand=YO(_.q3),iV.openOnePickAddVideoModalCommand=YO(Kc),iV.persistSubscriptionsDisplayPreferencesCommand=YO(QT),iV.pingingEndpoint=YO(n0),iV.playlistEditEndpoint=YO(e2),iV.playlistVotingRefreshPopupCommand=YO(m$),iV.profileCardCommand=YO(Q9),iV.refreshPanelEndpoint=YO(Ji),iV.saveImageToDeviceEndpoint=YO($p),iV.scrollToSectionEndpoint=ALD(ju0),iV.seekToVideoTimestampCommand=
YO(Fa),iV.selectCountryCommand=YO(yT),iV.setCookieCommand=YO(qS),iV.setLocalStorageCommand=YO(EB),iV.setPrefStorageEntryCommand=YO(NS),iV.setSettingEndpoint=YO(Ab),iV.sfvAudioItemPlaybackCommand=YO(S2),iV.shareImageCommand=YO($Z),iV.sharingProviderDataCommand=YO(Lc),iV.showAudioTrackPickerActionCommand=YO(bX),iV.showCaptionLanguageSelectActionCommand=YO(j2),iV.showDialogCommand=YO(su),iV.showEngagementPanelEndpoint=YO(PL),iV.showSheetCommand=YO(Zu),iV.showSnackbarCommand=YO(i8),iV.showTransientPlayerScrimOverlayCommand=
YO(fc),iV.submitFormWithValidationFlowCommand=YO(BL),iV.talkToRecsDeselectCommand=YO(T7),iV.talkToRecsNextCommand=YO(vI),iV.talkToRecsSelectCommand=YO(cI),iV.talkToRecsUpdateTextCommand=YO(wl),iV.toggleEngagementPanelCommand=YO(rt),iV.undoFeedbackEndpoint=YO(WL),iV.updateEngagementPanelContentCommand=YO(kZ),iV.updateUrlParamCommand=YO(tN),iV.verifyCommand=YO(zv),iV.webNativeShareCommand=YO(Uu),iV.webSubmitFormCommand=YO(xZ),iV.ACK_PLAYABLES_3P_DATA_CONSENT=YO(MS),iV.CANCEL_NAVIGATION=YO(aV),iV.COPY_SHARE_URL=
YO(RV),iV.MINI_APP_EXIT_DIALOG_SEEN=YO(BI),iV.MINI_APP_OPEN_URL=YO(WI),iV.REQUEST_MINI_APP_FULLSCREEN=YO(z7),iV.RESUME_NAVIGATION=YO(G7),iV.SHARE_PLAYABLE_WITH_HIGH_SCORE=YO(Ya),iV.TELL_US_WHY=YO(R2),iV);_.r("web_enable_prefetching_videos_on_home")&&(O31.prefetchWatchCommand=YO(pF),O31.registerTasksCommand=YO(x7));_.r("enable_share_panel_navigation_logging_fix_on_web")&&(O31.shareEntityServiceEndpoint=YO(gt));var vRF=Object.assign({},O31);var Xc1={},KPb=(Xc1.initialized={priority:10,callback:gk8},Xc1);var uir={},ekO=(uir.initialized={callback:function(W){var B={},z={};fBQ().install((B.document_disposed={callback:function(){_.r("finalize_all_timelines")?hxX():XO();SUD("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.$sD();var G=W.injector.resolve(yO);G.intervalId!==void 0&&(G.intervalId&&_.fg.cancelJob(G.intervalId),G.intervalId=void 0,--G.currentPartitionIndex,G=xCR(G),G>0&&Lh7({mainAppWeb:_.GS(),survivalSli:{partitionMinute:G,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));xK9(tw);sp!=null&&
sp.flush();wD&&wD.snapshotAndFlush();G=_.A(dhQ.values());for(var Y=G.next();!Y.done;Y=G.next())Y.value.snapshotAndFlush()}},B),(z.flush_logs={callback:function(){_.bp()}},z))}},uir);var mdb={},xd6=(mdb.rendered={priority:0,callback:function(){var W=new Rfu;W.increment("STARTED");if(_.eD("LOGGED_IN")&&!_.eD("IS_DBSC",!1)&&_.eD("SERVER_VERSION")!=="test"&&_.eD("SERVER_VERSION")!=="dev"&&!f9M()&&!ju4()){W.increment("EXECUTING");var B=document.createElement("iframe");B.style.display="none";_.A6R(B,2,_.yN("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.eD("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(B);W.increment("DONE")}}},
mdb);var Dd0={},Q89=(Dd0.rendered={callback:function(){kq1().resume()}},Dd0);var yv0={acknowledgeChannelTouStrikeCommand:ba(UB),addToPlaylistServiceEndpoint:ba(Rv),addToPlaylistEndpoint:ba(Rv),addUpcomingEventReminderEndpoint:ba(TO),browseEndpoint:ba(pn9),channelCreationFormEndpoint:ba(QZ),channelCreationServiceEndpoint:ba(yZ),claimLegacyYoutubeChannelEndpoint:ba(F9),clearSearchHistoryEndpoint:ba(GO),clearWatchHistoryEndpoint:ba(Yo),commerceActionCommand:jW(ZB),createBackstagePostEndpoint:ba(l8),createBroadcastCommand:ba(v9),createCommentEndpoint:ba(ee),createCommentReplyEndpoint:ba(u8),
createLiveChatPollEndpoint:ba(c9),createPlaylistServiceEndpoint:ba(WX),crossAccountChannelTransferEndpoint:ba(AO),deleteLiveChatMessageCommand:ba(wB),deletePlaylistEndpoint:ba(BX),deleteVideoEndpoint:ba(gf),dismissalEndpoint:ba(Mu),feedbackEndpoint:ba(ac),flagEndpoint:ba(AQ),getAccountSwitcherEndpoint:ba(pz),verifyCommand:ba(ka),getAccountsListInnertubeEndpoint:ba(E9),getCommentsFromInboxCommand:ba(Xk),getDownloadActionCommand:ba(Q6),getFlowCommand:jW(zO),getKidsBlocklistPickerCommand:ba(iB),getNotificationMenuEndpoint:ba(EYi),
getPaymentInstrumentsParamsCommand:ba(oG),getPaymentsClientTokenCommand:jW(ZB),getPdgBuyFlowCommand:ba(Mv),getReportFormEndpoint:ba(EI),getSearchInVideoCommand:ba(cX),getAnswerCommand:ba(vX),getSurveyCommand:ba(JQ),getTranscriptEndpoint:ba(sI),getPostVideoPreviewEndpoint:ba(Ic),decorateMessageEndpoint:ba(CZ),likeEndpoint:ba(qu),liveChatActionEndpoint:ba(tO),liveChatEndpoint:ba(gB),liveChatItemContextMenuEndpoint:ba(V6),liveChatPurchaseMessageEndpoint:ba(s9),liveChatReplayEndpoint:ba(JO),manageLiveChatUserEndpoint:ba(hO),
metadataUpdateCommand:ba(fz),moderateLiveChatEndpoint:ba(H9),modifyChannelNotificationPreferenceEndpoint:ba(mi),notificationOptOutEndpoint:ba(xo),openSuperStickerBuyFlowCommand:ba(ov),performCommentActionEndpoint:ba(OB),playlistEditEndpoint:ba(Gx),playlistEditorEndpoint:ba(zx),recordNotificationInteractionsEndpoint:ba(Dd),reelWatchEndpoint:ba(Y7),refreshPanelEndpoint:ba(qv),removeUpcomingEventReminderEndpoint:ba(Fk),resolveLocationCommand:ba(jI),revealBusinessEmailCommand:ba(Se),searchEndpoint:ba(_.TiY),
sendLiveChatMessageEndpoint:ba(SI),sendLiveChatVoteEndpoint:ba(bw),setSettingEndpoint:ba(nZ),shareEntityServiceEndpoint:jW(LZ),sharingProviderDataCommand:ba(Vo),showEngagementPanelEndpoint:ba(nz),showMoreDrawerCommand:ba($o),showSheetCommand:ba(Lz),showDialogCommand:ba(Nv),subscribeEndpoint:ba(Nu),transcriptSubmitCaptionCorrectionCommand:ba(tQ),undoFeedbackEndpoint:ba(W9),unsubscribeEndpoint:ba($a),updateBackstagePostEndpoint:ba(hN),updateCommentEndpoint:ba(xa),updateCommentReplyEndpoint:ba(mM),updateCommentsSettingsEndpoint:ba(Df),
updateCreatorChannelInnertubeCommand:ba(je),updateKidsBlacklistEndpoint:ba(Tx),updateEngagementPanelContentCommand:ba(U9),updatePdgFeatureEnablementCommand:ba(av),updatedMetadataEndpoint:ba(O9),validateChannelHandleCommand:ba(fZ),updateChannelPageSettingsEndpoint:ba(b8),verifyAgeEndpoint:ba(B9),watchEndpoint:jW(Qh),whitelistEditEndpoint:ba(PX),ypcCancelRecurrenceEndpoint:ba(rf),ypcCompleteTransactionEndpoint:ba(k7),ypcFixInstrumentEndpoint:ba(C$),ypcGetCartEndpoint:ba(lB),ypcGetOffersEndpoint:ba(IG),
ypcHandleTransactionEndpoint:jW(hQ),ypcLogWalletAnalyticDataEndpoint:ba(HX),ypcOffersEndpoint:ba(Fo),ypcPauseSubscriptionCommand:ba(Si),ypcRedeemCodeEndpoint:ba(bB),ypcResumeSubscriptionCommand:ba(ji),ypcUpdateFopEndpoint:ba(C$)},Eq={},qY0=(Eq.GET_ACCOUNT_MENU=ba(iw),Eq.GET_NOTIFICATIONS_MENU=ba(iOi),Eq.GET_NOTIFICATIONS_INBOX=ba(Kz),Eq.GET_UNSEEN_NOTIFICATION_COUNT=ba(eI),Eq.GET_USER_MENTION_SUGGESTIONS=ba(oc),Eq.LOAD_GUIDE=ba(AKi),Eq.SUBMIT_FEEDBACK=ba(Rc),Eq),T8={},nH9=(T8.CONTINUATION_REQUEST_TYPE_BROWSE=
ba(HI),T8.CONTINUATION_REQUEST_TYPE_SEARCH=ba(wf),T8.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=ba(q1),T8.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=ba(dB),T8.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=ba(KZ),T8.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=ba(X9),T8.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=ba(p$),T8.CONTINUATION_REQUEST_TYPE_GET_PANEL=ba(y6),T8),N3j={player:jW(Qh),watchNext:ba(yh)},$dY={player:jW(Qh),reelItemWatch:ba(Y7),reelWatchSequence:ba(df)},LPn={watchEndpoint:jW(nI)},Udj=
{commandEndpointMap:yv0,signalEndpointMap:qY0,continuationEndpointMap:nH9,watchEndpointMap:N3j,reelWatchEndpointMap:$dY,streamingEndpointMap:LPn};var Mw6,ae6,Rkn;_.Wb1=((ae6=(Mw6=window).matchMedia)==null?void 0:(Rkn=ae6.call(Mw6,"(prefers-reduced-motion: reduce)"))==null?void 0:Rkn.matches)||!document.startViewTransition;var BH6={},zfK={disableAllTransitions:_.Wb1,ignoredErrors:(BH6.DOCUMENT_HIDDEN=!0,BH6.WINDOW_SIZE_CHANGED=!0,BH6.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,BH6),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var GP1=_.ak("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),Yk0=function(W){this.viewTransitionCoordinator=W;this.isBrowseTransitionEnabled=_.EA("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.r("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.r("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.r("enable_plj_landing_page");this.lockupToWatchPlayerTransitionType=_.EA("web_thumbnail_to_watch_player_transition_type");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){W=
_.iO("web_page_transition_exit_ms");var B=_.iO("web_page_transition_wait_ms"),z=_.iO("web_page_transition_enter_ms"),G=_.iO("web_page_transition_watch_exit_ms"),Y=_.iO("web_page_transition_watch_wait_ms"),d=_.iO("web_page_transition_watch_enter_ms");if(!isNaN(W)||!isNaN(B)||!isNaN(z))if(W=O38(GP1,W,B,z,G,Y,d))B=document.createElement("style"),B.textContent=c6y(W),document.head.appendChild(B)}};
Yk0.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var W={};this.viewTransitionCoordinator.registerElement(document.documentElement,(W.slide="root-slide",W["lockup-to-watch"]="root-lockup-to-watch",W["learning-journey"]="root-learning-journey",W))}};
_.wFQ=function(W,B){W.isLockupToWatchTransitionEnabled&&W.isLockupThumbnailRegistrationEnabled&&(W.registeredLockupThumbnail?W.lockupThumbnailRegisteredFromWatchEndpoint?_.Oc(new _.oX("Lockup thumbnail registration order is incorrect.")):_.Oc(new _.oX("Lockup thumbnail already registered.")):(W.registeredLockupThumbnail=B,_.d5b(W,B)))};
_.d5b=function(W,B){var z={};W.viewTransitionCoordinator.registerElement(B,(z["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",z),!0)};
Yk0[gR]=[xZr];var tAD={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 PID=["videoPrimaryInfoRenderer","title"],ZHT=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var pCq;pCq=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.AI1=_.m(function(W){W=_.EV(W,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var B=W.data,z=W.playlistData,G=W.expanded,Y=W.onExpandClick,d=W.isReadyToResume,E=function(){var g;return!((g=z())==null||!g.contents)},v=function(){var g=z();
return g&&g.totalVideos&&g.currentIndex!==void 0?g.currentIndex+1+" / "+g.totalVideos:""};
W=_.lF(function(){_.vW(_.dO().resolve(_.Qb));return!1});
var c=_.lF(function(){E()&&Y&&Y()}),J={};
return _.w("ytd-miniplayer-info-bar",{class:_.kG("ytdMiniplayerInfoBarHost",(J.ytdMiniplayerInfoBarHasPlaylistData=E,J)),"on:click":c},_.w("div",{class:"ytdMiniplayerInfoBarContent"},_.w("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":W},_.w(_.r0,{text:function(){var g=B();var t=z();if(t==null?0:t.contents){var P;g=(P=_.bjk(t))==null?void 0:P.title}else g=g==null?void 0:g.miniplayerTitle;return rh8(g)},
noEndpoints:!0,ellipsisTruncate:!0})),_.w("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.w(_.V,{cond:d,then:function(){return _.w(RO9,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:pCq})}}),_.w("h1",null,_.w(_.r0,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var g=B();var t=z();g=d()?{simpleText:_.kq("CONTINUE_WATCHING",void 0,"Continue watching")}:(t==null?0:t.contents)?t.titleText:g==null?void 0:g.miniplayerSubtitle;return rh8(g)},
noEndpoints:!0,ellipsisTruncate:!0})),_.w(_.V,{cond:function(){return!!v()&&!d()},
then:function(){return _.w("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.w("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.w("span",null,v))}}))),_.w(_.V,{cond:E,
then:function(){return _.w("div",{class:"ytdMiniplayerInfoBarExpand"},_.w(_.uu,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(g){Y&&(Y(),g.stopPropagation())}}},
iconName:function(){return G()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"$e");var ipi;ipi=_.m(function(W){return _.w("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.w(_.uu,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:W.onTap}},
iconName:"yt-icons:close"}))},"af");
_.ExK=_.m(function(W){W=_.EV(W,{playabilityStatus:void 0,isDisabled:!1});var B=W.size,z=W.playabilityStatus,G=W.isDisabled,Y=_.LG("div");W=_.A(_.g4(void 0,void 0,"y6THVb"));var d=W.next().value,E=W.next().value;W=_.ny(_.wh);var v=!1,c=function(){return B().height<=0};
_.ja(function(){var P=B(),Z=c(),l=d();l&&!Z&&l.setInternalSize(P.width,P.height)},"qu2eI");
_.bk(function(){var P,Z,l;return _.T(function(b){if(b.nextAddress==1){P=_.dO().resolve(_.Qb);Z=P.getPlayerElement();if(!P.isMiniplayerActive()||!Z||!Y.value)return b.return();Z.appendTo(Y.value);return b.yield(Z.getPlayerPromise(),2)}l=b.yieldResult;l.setSizeStyle(!1,!0);E(l);_.HG(b)})});
_.fR(function(){J()});
_.ja(function(){var P=d();if(P)if(G()){var Z=P.getPlayerState();(v=Z===-1||Z===1||Z===3)&&P.pauseVideo()}else J()},"mCtQKc");
var J=function(){if(v){v=!1;var P;(P=d())==null||P.playVideo()}},g=_.lF(function(){_.vW(_.dO().resolve(_.Qb))}),t={};
return _.w("ytd-miniplayer-player-container",{class:_.kG("ytdMiniplayerPlayerContainerHost",(t.ytdMiniplayerPlayerContainerHidden=c,t.ytdMiniplayerPlayerContainerHostShortsPip=W,t)),style:_.oK({width:function(){return B().width+"px"},
height:function(){return B().height+"px"}})},_.w("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:Y}),_.w(_.V,{cond:function(){return!!z()&&!_.LpR(z())},
then:function(){return _.w(J0j,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var P;return((P=z())==null?void 0:P.errorScreen)||null},
status:function(){var P;return((P=z())==null?void 0:P.status)||null}})}}),_.w(_.V,{cond:G,
then:function(){return _.w("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":g},_.w(ipi,{onTap:function(){_.dO().resolve(_.Qb).close()}}))}}))},"bf");_.THi=_.m(function(W){var B=W.toastData;var z=_.LG("ytd-miniplayer-toast");W=_.A(_.IK(function(){return!!B()}));
var G=W.next().value,Y=W.next().value;W=_.A(_.g4(!1,void 0,"BvfNQe"));var d=W.next().value,E=W.next().value,v=function(){var g;return _.zR((g=B())==null?void 0:g.data.title)};
_.jD(function(){_.p6.requestAvailability();B()&&Y(!1)});
var c,J;_.ja(function(){G()&&(_.v0(z.value,"iron-announce",{text:B().label+" "+v()}),c&&_.fg.cancelJob(c),c=_.fg.addLowPriorityJob(function(){E(!0)},2500))},"no1dZb");
_.ja(function(){d()&&(J&&_.fg.cancelJob(J),J=_.fg.addLowPriorityJob(function(){Y(!1);E(!1)},300))},"G3yPNe");
W={};return _.w("ytd-miniplayer-toast",{el:z,class:_.kG("ytdMiniplayerToastHost",(W.ytdMiniplayerToastOpening=function(){return G()},W.ytdMiniplayerToastClosing=function(){return d()},W))},_.w(_.V,{cond:function(){var g;
return(g=B())==null?void 0:g.data},
then:function(g){return _.w(i5H,{className:"ytdMiniplayerToastThumbnail",data:g,width:78})}}),_.w("div",{class:"ytdMiniplayerToastInfo"},_.w("div",{class:"ytdMiniplayerToastLabel"},function(){var g;
return(g=B())==null?void 0:g.label}),_.w("div",{class:"ytdMiniplayerToastTitle"},v)))},"cf");var bH0;var OHX=null;var cIr=_.m(function(W){var B=W.progressState;var z=W.multiMarkersPlayerBarRenderer;var G=W.progressBarWidth;var Y=function(){return eVQ(z())},d=function(){return DbR(B())},E=function(){return G()*(B().playedTime/B().videoDuration)};
return _.w("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.w(_.IJ,{each:Y},function(v,c){return _.w(vx9,{modifiedProps:d,chapters:Y,index:c,playedProgressWidth:E,backgroundGradientPosition:function(){var J=d(),g=Y(),t=c(),P=E();return(J.playedTime-xn(_.k(g[t],mQ)))/J.playedTime*P}})}))},"df"),vx9=_.m(function(W){var B=W.modifiedProps;
var z=W.chapters;var G=W.index;var Y=W.playedProgressWidth;var d=W.backgroundGradientPosition;W={};W=_.kG("ytChapteredProgressBarChapteredPlayerBarChapter",(W.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return E().isScrubbing},W.ytChapteredProgressBarHoveredMacroMarker=function(){return E().scrubberHovering},W.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return E().videoPosition==="seen"},W));
var E=function(){return Q5k(B(),z(),G())},v=function(){var c=B();
var J=z(),g=G();if(Q5k(c,J,g).videoPosition!=="active")c=0;else{var t=xn(_.k(J[g],mQ));c=(c.playedTime-t)/((xn(_.k(J[g+1],mQ))||c.videoDuration)-t)}return c};
return _.w("div",{class:W,style:_.oK({width:function(){var c=B(),J=z(),g=G(),t=_.k(J[g],mQ);J=_.k(J[g+1],mQ);return(J?xn(J)-xn(t):c.videoDuration-xn(t))/c.videoDuration*100+"%"},
"background-color":function(){a:{var c=E();switch(c.videoPosition){case "pending":c=c.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":c=c.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:c=""}}return c},
"background-size":function(){return(yh0(E())?Y():"")+"px"},
"background-position-x":function(){return(yh0(E())?d():"")+"px"}})},_.w("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var c=B(),J=z(),g=G();if(Q5k(c,J,g).videoPosition==="seen")var t=0;else t=xn(_.k(J[g],mQ)),J=xn(_.k(J[g+1],mQ))||c.videoDuration,c=c.videoDuration*c.percentLoaded,t=J<=c?1:t>=c?0:(c-t)/(J-t);return"width: "+t*100+"%"}}),_.w("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.oK({width:function(){return v()*100+"%"},
"background-size":function(){return(yh0(E(),v())?Y():"")+"px"},
"background-position-x":function(){return(yh0(E(),v())?d():"")+"px"}})}))},"ef");var wCK=function(W,B){B=B===void 0?b2M:B;var z,G=[],Y,d=!1;return function(){var E=_.nm.apply(0,arguments);if(d&&z===this&&B(E,G))return Y;Y=W.apply(this,E);d=!0;z=this;G=E;return Y}}(function(W){var B=W.heatMarkers,z=W.minHeightDp===void 0?0:W.minHeightDp,G=W.maxHeightDp===void 0?60:W.maxHeightDp;
var Y=Y===void 0?!1:Y;var d=1E3/B.length;W=[];W.push({x:0,y:100});for(var E=0;E<B.length;E++){var v=void 0,c=((v=_.k(B[E],pN7))==null?void 0:v.heatMarkerIntensityScoreNormalized)||0;v=(E+.5)*d;c=100-_.eT(c*100,z/321*100,G/321*100);E!==0||Y||W.push({x:0,y:c});W.push({x:v,y:c});E===B.length-1&&W.push({x:1E3,y:c})}W.push({x:1E3,y:100});B="";for(z=0;z<W.length;z++)Y=W[z],z===0?Y="M "+Y.x.toFixed(1)+","+Y.y.toFixed(1):(G=NKx(W[z-1],W[z-2],Y),d=NKx(Y,W[z-1],W[z+1],!0),Y=" C "+(G.x.toFixed(1)+","+G.y.toFixed(1)+
" "+d.x.toFixed(1)+","+d.y.toFixed(1)+" "+Y.x.toFixed(1)+","+Y.y.toFixed(1))),B+=Y;return B});var Vkb=_.m(function(W){var B=W.progressBarProps;var z=W.config;var G={};W=_.kG("ytHeatSeekerHost",(G.ytHeatSeekerHighContrast=W.highContrast,G));var Y=function(){return okt(z().chapterData)};
return _.w("yt-progress-bar-heatseeker",{class:W,style:function(){var d;return"height: 320px; display: "+(B().isDragging&&((d=Y())==null?0:d.heatMarkers)?"block":"none")}},_.w(_.V,{cond:Y,
then:function(d){return _.w(_.V,{cond:function(){return d().heatMarkers},
then:function(){return _.w("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.w("path",{d:function(){return wCK(d())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"ff");var JIq=_.m(function(W){var B=W.progressBarProps;var z=W.config;W={};W=_.kG("ytProgressBarLineProgressBarLine",(W.ytProgressBarLineProgressBarLineRounded=function(){return z().rounded},W.ytProgressBarLineProgressBarLineBottomInset=function(){return z().position===2},W));
return _.w("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.w("div",{class:W},_.w("div",{class:"ytProgressBarLineProgressBarBackground"}),_.w("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+B().percentLoaded*100+"%"}}),_.w("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var G=B();return"width: "+(G.videoDuration?_.eT(G.hoveredTime/G.videoDuration,0,1):0)*100+"%"}}),_.w("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+lhk(B())*100+"%"}})))},"gf");
JIq.idomCompat=!0;var gxO=_.m(function(W){var B=W.progressBarProps;var z=W.playheadData;var G=W.interpolateDotPosition;var Y=W.hidePlayhead;W={};var d=_.kG("ytProgressBarPlayheadProgressBarPlayheadDot",(W.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return B().isDragging},W.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!B().isDragging&&Y()},W));
return _.w("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.oK({"margin-left":function(){return CIy(B())*100+"%"},
transform:function(){return"translateX(-"+(G()?CIy(B())*12:6)+"px)"}})},_.w(_.V,{cond:function(){var E;
return(E=_.ig(z)())==null?void 0:E.playheadImage},
then:function(E){var v={};return _.w("div",{class:_.kG("ytProgressBarPlayheadProgressBarPlayheadCustom",(v.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return B().isDragging},v.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!B().isDragging&&Y()},v)),
style:_.oK({"transform-origin":function(){return(G()?CIy(B())*20:10)+"px center"}})},_.w(_.iF,{data:E,
alt:"","aria-hidden":"true"}))},
else:function(){return _.w("div",{class:d,style:_.oK({"transform-origin":function(){return(G()?CIy(B())*12:6)+"px center"}})})}}))},"hf");
gxO.idomCompat=!0;var cW=function(W,B,z,G,Y,d){this.getProgressBarRect=W;this.updateProgressBarRect=B;this.getFilmstripYPosition=z;this.setFineScrubbingDraggedTime=G;this.updateFilmStripDraggedYDistance=Y;this.resetFilmStripYOffset=d;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.an(this.onThrottledSeek,100,this)},tki=function(W,B,z){return function(G){W.handleClick(G,B(),z())}},ZpO=function(W,B){return function(z){s0i(W,
z,PA1(z),B())}},rIi=function(W,B){return function(z){s0i(W,z,{x:z.clientX,
y:z.clientY},B())}},lGb=function(W,B,z){return function(G){var Y=B(),d=z();
kPi(W,G,PA1(G),Y,d,!0);if(d.onTouchMove)d.onTouchMove(Y)}},IGb=function(W,B,z){return function(G){CAq(W,G,B(),z())}},ox6=function(W,B){return function(){W.handleMouseLeave(B())}},hfj=function(W,B,z){return function(){var G=B(),Y=z();
wF(W,G,Y);if(Y.onTouchEnd)Y.onTouchEnd(G)}},HpK=function(W,B,z){return function(){var G=B(),Y=z();
wF(W,G,Y);if(Y.onTouchEnd)Y.onTouchEnd(G)}},Fbq=function(W,B,z){return function(){wF(W,B(),z())}},SkO=function(W){return function(B){if(B.keyCode===39||B.keyCode===38){var z,G;
(z=W())==null||(G=z.playerApi)==null||G.seekBy(5,void 0,void 0,72)}else if(B.keyCode===37||B.keyCode===40){var Y,d;(Y=W())==null||(d=Y.playerApi)==null||d.seekBy(-5,void 0,void 0,71)}}},bp1=function(W,B,z){return function(G){!z().disableScrubbing&&W.startPosition&&CAq(W,G,B(),z())}},j09=function(W,B,z){return function(){if(!z().disableScrubbing)if(W.startPosition){var G=B(),Y=z();
wF(W,B(),z());if(Y.onTouchEnd)Y.onTouchEnd(G)}else B().setState({isDragging:!1})}},PA1=function(W){W=W.touches[0];
return{x:W.clientX,y:W.clientY}},CAq=function(W,B,z,G){if(B.buttons!==1){if(B.movementX||B.movementY)B.preventDefault(),B.stopPropagation(),W=fG0(W,z,B.clientX),z.setState({isHovering:!0,
hoveredTime:W*z.videoDuration})}else Opf(z),kPi(W,B,{x:B.clientX,y:B.clientY},z,G,!1)};
cW.prototype.handleMouseLeave=function(W){Opf(W)};
var Opf=function(W){W.isHovering&&W.setState({isHovering:!1,hoveredTime:0})},s0i=function(W,B,z,G){W.startPosition||(W.startPosition=z,W.updateProgressBarRect(),W.controlsWereVisibleBeforeDragging=G.controlsVisible,B.stopPropagation(),_.r("medium_progress_bar_modification")||B.preventDefault())},kPi=function(W,B,z,G,Y,d){if(W.startPosition)if(d&&Y.isInlinePlayback&&W.startPosition&&!W.hasDraggedTheMinimumDistance&&Math.abs(z.y-W.startPosition.y)>Math.abs(z.x-W.startPosition.x))wF(W,G,Y);
else if(B.preventDefault(),B.stopPropagation(),G.videoDuration&&(W.startPosition&&!W.hasDraggedTheMinimumDistance&&(W.hasDraggedTheMinimumDistance=Math.abs(z.x-W.startPosition.x)>=1),Y.enableFineScrubbing&&(W.startPosition&&(W.isDraggedForFineScrubbing=-(z.y-W.startPosition.y)>=60),!W.startPosition||z.y>=W.startPosition.y||(G.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:qOR(G.draggedTime,G,Y.chapterData)}),W.setFineScrubbingDraggedTime(G.draggedTime),W.updateFilmStripDraggedYDistance(W.startPosition.y,
z.y,G))),W.hasDraggedTheMinimumDistance)){B=fG0(W,G,z.x);if(W.isDraggedForFineScrubbing){var E;(E=G.playerApi)==null||E.pauseVideo();G.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:G.draggedTime,filmStripXDistance:qOR(B*G.videoDuration,G,Y.chapterData)})}Y.enableFineScrubbing&&(!Y.enableFineScrubbing||W.getFilmstripYPosition(G)<68)||G.setState({draggedTime:B*G.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:W.controlsWereVisibleBeforeDragging});var v;(v=
Y.cancelAutohideControlsFn)==null||v.call(Y)}},wF=function(W,B,z){var G=z.enableFineScrubbing&&B.fineScrubbingActiveState!=="off";
if(B.isDragging||G){G={isDragging:!1,playedTime:B.draggedTime,controlsVisible:W.controlsWereVisibleBeforeDragging};z.enableFineScrubbing&&B.fineScrubbingActiveState!=="on"&&(W.resetFilmStripYOffset(),G.fineScrubbingActiveState="off");var Y=Y===void 0?OHX:Y;var d=_.m1(0);if(d&&Y){var E=Math.round(B.playedTime*1E3),v=Math.round(B.draggedTime*1E3);E>2147483647||v>2147483647||_.W3(d,Y,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(E),endMediaTimeMs:String(v),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}B.setState(G);
W.seekThrottle.fire(B.draggedTime,B,7);_.r("mweb_new_progress_bar_play_on_seek")&&W.resumeVideo(B);z.unmuteOnSeek&&(z=B.playerApi,B.volumeMuted&&(z==null||z.unMute()))}else B.setState({controlsVisible:!B.controlsVisible}),(d=z.triggerAutohideControlsAfterDelayFn)==null||d.call(z);W.startPosition=null;W.hasDraggedTheMinimumDistance=!1;W.isDraggedForFineScrubbing=!1;W.controlsWereVisibleBeforeDragging=!1};
cW.prototype.handleClick=function(W,B,z){this.updateProgressBarRect();W.stopPropagation();W=fG0(this,B,W.clientX)*B.videoDuration;B.setState({playedTime:W});if(B.playerState!==2){var G;(G=z.triggerAutohideControlsAfterDelayFn)==null||G.call(z)}this.seekThrottle.fire(W,B,7)};
var fG0=function(W,B,z){W=W.getProgressBarRect(B);return _.eT(0,(z-W.left)/W.width,1)};
cW.prototype.resumeVideo=function(W){if(W.draggedTime<W.videoDuration){var B;(B=W.playerApi)==null||B.playVideo()}};
cW.prototype.onThrottledSeek=function(W,B,z){if(B=B.playerApi){var G;if((G=B.getVideoData())==null?0:G.isLive)G=this.getProgressState(B),W+=(G==null?void 0:G.seekableStart)||0;B.seekTo(W,void 0,void 0,void 0,z)}};
cW.prototype.getProgressState=function(W){var B=W==null?void 0:W.getPresentingPlayerType();return W==null?void 0:W.getProgressState(B)};var ucj,Kbb,efK,x5i,XC0,D5f,Q00,yIi,qki;ucj=_.m(function(W){var B=W.progressBarProps;var z=W.config;var G=W.progressBarWidthPx;var Y=W.chapterData;var d=Ubr(B,function(){return z().isShortsPage}),E=function(){return!B().isHovering&&!z().isShortsPage};
W={};var v=_.kG("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(W.ytPlayerStoryboardHostMwebShorts=function(){return z().isShortsPage&&!1},W));
return _.w("yt-player-storyboard",null,_.w(_.V,{cond:function(){return B().isDragging||B().isHovering},
then:function(){return _.w(_.V,{cond:d,then:function(c){return _.w(_.V,{cond:E,then:function(){return _.w("div",{class:v,"aria-hidden":"true"},_.w(XC0,{props:B,config:z,isBigboard:!0,chapterData:Y}))},
else:function(){return _.w(Kbb,{props:B,frame:c,config:z,progressBarWidthPx:G,chapterData:Y})}})}})}}))},"jf");
_.m5r=_.m(function(W){var B=W.progressBarProps;var z=Ubr(B,W.isShortsPage);return _.w("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.w(_.V,{cond:function(){return B().isDragging||B().isHovering},
then:function(){return _.w(_.V,{cond:z,then:function(G){return _.w(efK,{frame:G,props:B,isBigboard:!0})}})}}))},"kf");
Kbb=_.m(function(W){var B=W.props;var z=W.frame;var G=W.config;var Y=W.progressBarWidthPx;W=W.chapterData;var d={};d=_.kG("ytPlayerStoryboardHost",(d.ytPlayerStoryboardHostMwebShorts=function(){return G().isShortsPage&&!1},d.ytPlayerStoryboardHostInlinePlayer=function(){return G().isInlinePlayer},d.ytPlayerStoryboardHostFadeIn=function(){return G().useFadeInAnimation},d));
return _.w("div",{class:d,"aria-hidden":"true",style:function(){var E=B(),v=nkk(z()),c=Y();E=Nxx(E)/E.videoDuration;var J=c*E,g=v/2+6;v=c-(v/2+6);return"left: "+(J<=g?g/c*100:J>=v?v/c*100:E*100)+"%"}},_.w(_.V,{cond:function(){var E=B();
return!(G().isShortsPage&&E.videoDuration<15)},
then:function(){return _.w(efK,{frame:z,props:B,isBigboard:!1})}}),_.w(XC0,{props:B,
config:G,isBigboard:!1,chapterData:W}))},"lf");
efK=_.m(function(W){var B=W.frame;var z=W.props;var G=W.isBigboard;var Y=function(){var v,c;return(c=(v=z().playerApi)==null?void 0:v.getVideoContentRect())!=null?c:{width:0,height:0}},d=function(){return nkk(B())},E=function(){var v=B();
return v?v.height/v.rows:0};
W={};W=_.kG((W.ytPlayerStoryboardBigboardImageWrapper=G,W.ytPlayerStoryboardStoryboardImageWrapper=function(){return!G()},W));
return _.w("div",{class:W,style:function(){return"width: "+(G()?Y().width:d())+"px; height: "+(G()?Y().height:E())+"px;"}},_.w(x5i,{frame:B,
storyboardWidth:d,storyboardHeight:E,storyboardScale:function(){return(G()?Y().width:d())/d()}}))},"mf");
x5i=_.m(function(W){var B=W.frame;var z=W.storyboardWidth;var G=W.storyboardHeight;var Y=W.storyboardScale;var d=function(){var E=B().row,v=B().column,c=z(),J=G(),g=Y();return{left:-v*c*g,top:-E*J*g}};
return _.w("img",{src:function(){return B().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+d().left+"px; top: "+d().top+"px; width: "+B().width*Y()+"px; height: "+B().height*Y()+"px;"}})},"nf");
XC0=_.m(function(W){var B=W.props;var z=W.config;var G=W.isBigboard;var Y=W.chapterData;W={};W=_.kG("ytPlayerStoryboardMetadata",(W.ytPlayerStoryboardMetadataBigboard=G,W));return _.w("div",{class:W},_.w(_.V,{cond:G,then:function(){return _.w(_.AW,null,_.w(D5f,{props:B,config:z}),_.w(_.V,{cond:function(){a:{var d=B();var E=z(),v=Y(),c;if((E==null?0:E.activeChapter)&&((c=_.k(E==null?void 0:E.activeChapter,mQ))==null?0:c.title))d=!0;else{E=_.A(hVD(v));for(E=E.next();!E.done;E=E.next()){d=(E=_.k(E.value,
iju))&&$by(d,E);break a}d=!1}}return d},
then:function(){return _.w(Q00,{props:B,config:z,isBigboard:!0,chapterData:Y})}}))},
else:function(){return _.w(_.AW,null,_.w(Q00,{props:B,config:z,isBigboard:!0,chapterData:Y}),_.w(D5f,{props:B,config:z}))}}))},"of");
D5f=_.m(function(W){var B=W.props;var z=W.config;W={};W=_.kG("ytPlayerStoryboardTimestamp",(W.ytPlayerStoryboardTimestampShorts=function(){return z().isShortsPage},W.ytPlayerStoryboardTimestampIsHovering=function(){return B().isHovering||z().isShortsPage&&!0},W));
return _.w("div",{class:W},_.w(_.AW,null,function(){return _.LqD(Nxx(B()))}))},"pf");
Q00=_.m(function(W){var B=W.props;var z=W.config;var G=W.isBigboard;var Y=W.chapterData;W={};G=_.kG("ytPlayerStoryboardTitle",(W.ytPlayerStoryboardTitleBigboard=G,W));return _.w("div",{class:G},_.w(_.V,{cond:function(){return!z().isShortsPage},
then:function(){return _.w(yIi,{props:B,activeChapter:function(){return z().activeChapter},
chapterData:Y})}}))},"qf");
yIi=_.m(function(W){var B=W.props;var z=W.activeChapter;var G=W.chapterData;return _.w(_.AW,null,_.w(_.IJ,{each:function(){return hVD(G())},
keyBy:"INDEX"},function(Y){return _.w(_.AW,null,_.w(_.V,{cond:function(){return _.k(Y(),iju)&&$by(B(),_.k(Y(),iju))},
then:function(){return _.w(qki,{timedMarker:function(){return _.k(Y(),iju)}})}}))}),_.w(_.V,{cond:function(){var Y;
return z()&&((Y=_.k(z(),mQ))==null?void 0:Y.title)},
then:function(Y){return _.w(_.r0,{text:Y,noPreWrap:!0})}}))},"rf");
qki=_.m(function(W){var B=W.timedMarker;return _.w(_.AW,null,_.w("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.w(_.hY,{icon:function(){return B().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.w(_.r0,{text:function(){return B().label},
noPreWrap:!0}))},"sf");_.nxf=_.m(function(W){var B=W.progressBarProps;var z=W.playheadData;var G=W.config;W=_.LG("yt-progress-bar");var Y=_.LG("div"),d=_.LG("div"),E=_.A(_.g4({width:0,left:0},void 0,"WloVn")),v=E.next().value,c=E.next().value,J=function(){d.value&&c(d.value.getBoundingClientRect())},g=function(){v().width<=0&&J();
return v()};
zp("resize",J);var t=new cW(g,function(){},function(){return 0},function(){},function(){},function(){}),P=function(){return B()};
E=_.A(_.g4(!1,void 0,"u8BZZb"));var Z=E.next().value,l=E.next().value;E=_.lF(function(){l(!0);G().position===2?setTimeout(function(){J()},100):J()});
var b=_.lF(function(){l(!1);ox6(t,P)()}),O=_.lF(function(X2){G().doSeekOnClick&&tki(t,P,G)(X2);
return!1}),K=_.lF(function(X2){ZpO(t,P)(X2);
return!1}),e=_.lF(function(X2){rIi(t,P)(X2);
return!1}),a=_.lF(function(X2){lGb(t,P,G)(X2);
return!1}),q=_.lF(function(X2){IGb(t,P,G)(X2);
return!1}),n=_.lF(function(){hfj(t,P,G)();
return!1}),L=_.lF(function(){HpK(t,P,G)();
return!1}),By=_.lF(function(){Fbq(t,P,G)();
return!1}),gk=_.lF(function(X2){SkO(P)(X2);
return!1});
zp("mousemove",bp1(t,P,G));zp("mouseup",j09(t,P,G));_.jD(function(){Xjx(Y.value);l(!1);J();j09(t,P,G)()});
var vy={};vy=_.kG("ytPlayerProgressBarHost",function(){return G().className},(vy.ytPlayerProgressBarHostReadOnly=function(){return G().disableScrubbing},vy.ytPlayerProgressBarHostHidden=function(){return G().hideProgressBar&&!Z()},vy.ytPlayerProgressBarHostLowerPlayer=function(){return G().position===0},vy.ytPlayerProgressBarHostBottomEdge=function(){return G().position===1},vy.ytPlayerProgressBarHostBottomInset=function(){return G().position===2},vy.ytPlayerProgressBarHostCustom=function(){return G().position===
3},vy));
var lx={},Zv=_.kG("ytPlayerProgressBarBackground",(lx.ytPlayerProgressBarBackgroundHide=function(){return G().position===2&&!Z()&&!B().isDragging},lx));
lx={};lx=_.kG("ytPlayerProgressBarDragContainer",(lx.ytPlayerProgressBarDragContainerBottomEdge=function(){return G().position===1},lx));
var VR={};VR=_.kG("ytPlayerProgressBarProgressBar",(VR.ytPlayerProgressBarProgressBarInset=function(){return G().position===2},VR.ytPlayerProgressBarProgressBarInsetMinimized=function(){return G().position===2&&!Z()&&!B().isDragging},VR));
var ux=function(){return Math.floor(lhk(B())*100)};
return _.w("yt-progress-bar",{el:W,class:vy},_.w(_.V,{cond:function(){return G().position===2},
then:function(){return _.w("div",{class:Zv})}}),_.w("div",{el:Y,
"on:click":O,"on:touchstart":K,"on:touchmove":a,"on:mouseenter":E,"on:mousedown":e,"on:mouseleave":b,"on:mousemove":q,"on:mouseup":L,"on:touchend":n,"on:touchcancel":By,"on:keydown":gk,class:lx,role:"slider","aria-valuenow":ux,"aria-valuetext":function(){return ux()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return B().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.kq("SEEK_SLIDER")},_.w("div",{el:d,class:VR},_.w(Vkb,{progressBarProps:B,config:G,highContrast:function(){return!!G().isInlinePlayback}}),_.w(_.V,{cond:function(){return G().chapterData&&HHT(G().chapterData)},
then:function(){return _.w(cIr,{progressState:B,multiMarkersPlayerBarRenderer:function(){return G().chapterData},
progressBarWidth:function(){return v().width}})},
else:function(){return _.w(JIq,{progressBarProps:B,config:G})}}),_.w(gxO,{progressBarProps:B,
playheadData:z,interpolateDotPosition:function(){return G().position!==2},
hidePlayhead:function(){return G().playheadDotBehavior===1&&!Z()}}))),_.w(ucj,{progressBarProps:B,
config:function(){return{activeChapter:xbR(B(),G().chapterData),getProgressBarWidthPx:function(){return g().width},
isShortsPage:!!G().isShortsPage,isInlinePlayer:!!G().isInlinePlayback,useFadeInAnimation:!!G().isInlinePlayback}},
progressBarWidthPx:function(){return v().width},
chapterData:function(){return G().chapterData}}))},"tf");
_.nxf.idomCompat=!0;Object.assign({},_.Fq8(),{setState:function(){},
domMeasurements:{},appApi:_.khr(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var NHj;
_.$5i=_.m(function(){var W,B=(W=_.D0(MA8().playerApi))!=null?W:void 0;W=_.A(_.g4(!1,void 0,"Z9NQ1b"));var z=W.next().value,G=W.next().value;W=_.A(_.g4(!1,void 0,"HoVJXe"));var Y=W.next().value,d=W.next().value;W=_.A(_.g4(!1,void 0,"DWCY3"));var E=W.next().value,v=W.next().value;W=_.A(_.g4(!1,void 0,"g4C2Zd"));var c=W.next().value,J=W.next().value;W=_.A(_.g4(0,void 0,"lmVfFb"));var g=W.next().value,t=W.next().value;W=_.A(_.g4(0,void 0,"mFLbzb"));var P=W.next().value,Z=W.next().value;W=_.A(_.g4(!1,void 0,
"hQN4Wb"));var l=W.next().value,b=W.next().value;W=_.A(_.g4(0,void 0,"WWU0fb"));var O=W.next().value,K=W.next().value;W=_.A(_.g4(0,void 0,"MJ7LMd"));var e=W.next().value,a=W.next().value;W=_.A(_.g4("",void 0,"hnomOe"));var q=W.next().value,n=W.next().value;W=_.A(_.g4(-1,void 0,"ARe3pf"));var L=W.next().value,By=W.next().value,gk=_.r4(function(){var vy={controlsVisible:z(),isOverlayHidden:Y(),shouldWaitToHideControls:E(),isDragging:c(),isHovering:l(),videoDuration:O(),playedTime:e(),videoId:q(),draggedTime:P(),
hoveredTime:g(),playerState:L()};return Object.assign({},_.Fq8(),vy,{domMeasurements:{},setState:function(lx){lx.controlsVisible!==void 0&&G(lx.controlsVisible);lx.isOverlayHidden!==void 0&&d(lx.isOverlayHidden);lx.shouldWaitToHideControls!==void 0&&v(lx.shouldWaitToHideControls);lx.isDragging!==void 0&&J(lx.isDragging);lx.isHovering!==void 0&&b(lx.isHovering);lx.draggedTime!==void 0&&Z(lx.draggedTime);lx.hoveredTime!==void 0&&t(lx.hoveredTime);lx.videoDuration!==void 0&&K(lx.videoDuration);lx.playedTime!==
void 0&&a(lx.playedTime);lx.videoId!==void 0&&n(lx.videoId);lx.playerState!==void 0&&By(lx.playerState)},
appApi:_.khr(),playerApi:B})},void 0,"Au4PIf");
_.bk(function(){B==null||B.addEventListener("onVideoProgress",fhy(gk));B==null||B.addEventListener("onVideoDataChange",j5R(gk));B==null||B.addEventListener("onStateChange",SOt(gk))});
_.fR(function(){if(B==null?0:B.isReady())B==null||B.removeEventListener("onVideoProgress",fhy(gk)),B==null||B.removeEventListener("onVideoDataChange",j5R(gk)),B==null||B.removeEventListener("onStateChange",SOt(gk))});
return _.w("desktop-shorts-player-controls",null,_.w(NHj,{playerControlsProps:gk}))},"uf");
NHj=_.m(function(W){var B=W.playerControlsProps;return _.w("div",{class:"desktopShortsPlayerControlsHost"},_.w(_.nxf,{progressBarProps:B,config:function(){return{isShortsPage:!0,hideProgressBar:B().videoDuration<30&&B().playerState!==2&&!B().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"vf");_.Lbb=_.m(function(W){function B(vy){vy!==0||t()?vy>50&&(t()||!Z())?(P(!1),l(!0)):vy<=50&&(t()||Z())&&(P(!1),l(!1)):P(!0)}
function z(vy,lx){var Zv;return _.T(function(VR){if(VR.nextAddress==1)return VR.yield(_.Zp(),2);Zv=VR.yieldResult;lx&&Zv?(Zv.unMute(!0),vy&&(RVr(vy,Zv.getVolume()),O(Zv.getVolume()))):Zv&&(Zv.mute(!0),vy&&RVr(vy,0));_.HG(VR)})}
function G(vy){var lx,Zv;return _.T(function(VR){if(VR.nextAddress==1)return VR.yield(_.Zp(),2);lx=VR.yieldResult;Zv=50;lx&&(Zv=lx.getVolume(),lx.isMuted()?RVr(vy,0):RVr(vy,Zv));O(Zv);_.HG(VR)})}
var Y=W.orientation;W=_.LG("desktop-shorts-volume-controls");var d=_.LG("button"),E=_.ag("input"),v=_.A(_.g4(!1,void 0,"MvN0Tc")),c=v.next().value,J=v.next().value,g=_.A(_.g4(!1,void 0,"aSjsEb"));v=g.next().value;g=g.next().value;var t=v,P=g;g=_.A(_.g4(!0,void 0,"FUh46d"));v=g.next().value;g=g.next().value;var Z=v,l=g;v=_.A(_.g4(50,void 0,"yPke4d"));var b=v.next().value,O=v.next().value;v=_.r4(function(){var vy=t();return _.r("web_shorts_keyboard_enable_mute_shortcut")?vy?_.kq("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.kq("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):vy?_.kq("UNMUTE_VOLUME",void 0,"Unmute"):_.kq("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
g=_.r4(function(){var vy=t(),lx=Z();return{sources:[{clientResource:{imageName:vy?_.r("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":lx?_.r("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.r("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var K=_.r4(function(){var vy=b();return t()?vy+"% volume muted":vy+"% volume"},void 0,"xZsRmc"),e=_.r4(function(){return Y()==="vertical_down"},void 0,"FVqYmb");
_.jD(function(){function vy(){J(!0)}
function lx(){J(!1)}
E&&E.value&&(E.value.addEventListener("focus",vy),E.value.addEventListener("focusout",lx),G(E.value).then(function(){B(Number(Wo2(E.value)))}));
d&&d.value&&(d.value.addEventListener("focus",vy),d.value.addEventListener("focusout",lx));_.fR(function(){var Zv;E==null||(Zv=E.value)==null||Zv.removeEventListener("focus",vy);var VR;E==null||(VR=E.value)==null||VR.removeEventListener("focusout",lx);var ux;d==null||(ux=d.value)==null||ux.removeEventListener("focus",vy);var X2;d==null||(X2=d.value)==null||X2.removeEventListener("focusout",lx)})});
var a=_.lF(function(){if(E&&E.value){var vy=Number(Wo2(E.value));aht(vy);O(vy);E.value.style.setProperty("--gradient-percent",vy+"%");B(vy)}return!1}),q=_.lF(function(){J(!0)}),n=_.lF(function(){E&&E.value&&(z(E.value,t()),P(!t()));
return!1}),L={},By={},gk={};
return _.w("desktop-shorts-volume-controls",{"on:pointerleave":_.lF(function(){J(!1)}),
class:_.kG("ytdDesktopShortsVolumeControlsHost",(L.ytdDesktopShortsVolumeControlsHostVertical=e,L.ytdDesktopShortsVolumeControlsHostExpanded=c,L)),el:W},_.w(_.V,{cond:function(){return!e()},
then:function(){var vy={};return _.w("div",{class:_.kG("ytdDesktopShortsVolumeControlsBackgroundScrim",(vy.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=c,vy))})}}),_.w("div",{class:_.kG((By.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=e,By))},_.w("button",{"aria-label":v,
title:v,el:d,"on:click":n,"on:pointerenter":q,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},g?_.w(_.iF,{data:g,alt:v,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.w("div",{class:_.kG("ytdDesktopShortsVolumeControlsSliderContainer",(gk.ytdDesktopShortsVolumeControlsSliderContainerExpanded=c,gk.ytdDesktopShortsVolumeControlsSliderContainerVertical=e,gk.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=e,gk.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return c()&&e()},gk))},_.w("input",{"aria-label":_.kq("VOLUME"),
title:_.kq("VOLUME"),el:E,"on:input":a,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":b,"aria-valuetext":K,"aria-valuemin":0,"aria-valuemax":100})))},"wf");_.U5n=_.m(function(W){var B=W.data;return _.w("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.w(_.fL,{command:function(){return B().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.w(_.V,{cond:function(){return B().iconName},
then:function(z){return _.w(_.hY,{icon:z})}}),_.w("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return B().text}),_.w(_.V,{cond:function(){return B().showEndChevron},
then:function(){return _.w(_.hY,{icon:"CHEVRON_RIGHT"})}})))},"xf");var Mk1=_.m(function(W){var B=W.data;var z=W.overlayDensity;W={};return _.w("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.w(_.Sc,{data:function(){return B().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(G){var Y=G.data;
return _.w(_.pY,{data:function(){return(z==null?void 0:z())===1?Object.assign({},Y(),{avatar:{avatarViewModel:Object.assign({},_.k(Y().avatar,_.yi),{avatarImageSize:"AVATAR_SIZE_M"})}}):Y()}})}}),_.w(_.Sc,{data:function(){return B().avatarStackViewModel}},{avatarStackViewModel:function(G){return _.w(_.Ae,{data:G.data})}}),_.w(_.r0,{className:_.kG("ytReelChannelBarViewModelChannelName",(W.ytReelChannelBarViewModelChannelNameLarge=function(){return(z==null?void 0:z())===1},W)),
text:function(){return B().channelName},
linkInheritColor:!0,userInput:!0}),_.w("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.w(_.Sc,{data:function(){return B().subscribeButtonViewModel}},{subscribeButtonViewModel:function(G){var Y=G.data;
return _.w(_.dJ,{data:function(){return(z==null?void 0:z())===1?Object.assign({},Y(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},Y().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):Y()},
isOverlay:!1})},
buttonViewModel:_.ex})),_.w("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.w(_.Sc,{data:function(){var G,Y;return(Y=_.k((G=B())==null?void 0:G.sponsorButtonViewModel,Pi9))==null?void 0:Y.sponsorButton}},{buttonViewModel:function(G){return _.w(_.ex,{data:G.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"yf");var aGi=_.m(function(W){var B=function(){var G;return(W==null?void 0:(G=W.overlayDensity)==null?void 0:G.call(W))===1?22:16},z={};
return _.w("yt-reel-multi-format-link-view-model",{class:_.kG("ytReelMultiFormatLinkViewModelHost",(z.ytReelMultiFormatLinkViewModelHostTall=!0,z.ytReelMultiFormatLinkViewModelHostLarge=function(){var G;return((G=W.overlayDensity)==null?void 0:G.call(W))===1},z))},_.w(_.fL,{ariaLabel:function(){return W.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return W.data().command}},_.w("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.w(_.V,{cond:function(){return W.data().icon},
then:function(G){return _.w(_.iF,{data:G,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:B})}}),_.w(_.r0,{text:function(){return W.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"zf");
aGi.idomCompat=!0;var Rfj=_.m(function(W){var B=W.data;var z=W.overlayDensity;var G=_.LG("yt-shorts-suggested-action-view-model");W=_.A(_.g4(!1,void 0,"XwMNzb"));var Y=W.next().value,d=W.next().value;W=_.A(_.g4(!1,void 0,"ZysOx"));var E=W.next().value,v=W.next().value,c=function(){return B().isMultiLineSa},J=_.hg(AO8,function(){var q,n;
return(n=(q=B().toggleableContent)==null?void 0:q.entityKey)!=null?n:""}),g=function(){var q,n,L;
return(L=B().toggleableContent)!=null&&L.entityKey?(n=(q=J())==null?void 0:q.value)!=null?n:!1:!1},t=function(){var q,n,L,By,gk,vy,lx,Zv,VR,ux,X2;
return B().toggleableContent?g()?(q=B().toggleableContent)==null?void 0:q.toggledData:(n=B().toggleableContent)==null?void 0:n.untoggledData:{primaryText:(Zv=(L=B().defaultContent)==null?void 0:L.primaryText)!=null?Zv:B().text,secondaryText:(By=B().defaultContent)==null?void 0:By.secondaryText,onTapCommand:(VR=(gk=B().defaultContent)==null?void 0:gk.onTapCommand)!=null?VR:B().onTapCommand,icon:(ux=(vy=B().defaultContent)==null?void 0:vy.icon)!=null?ux:B().icon,image:(X2=(lx=B().defaultContent)==null?
void 0:lx.image)!=null?X2:B().image}},P=function(){return c()?B().trailingTapTarget:void 0},Z=function(q,n){return function(){return Y()?n:q}},l=function(){return{leadingSection:Z("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(z==null?void 0:z())===1?Z("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):Z("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:Z("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:Z("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
W={};W=_.kG((W.ytShortsSuggestedActionViewModelStaticHost=function(){return!c()},W.ytShortsSuggestedActionViewModelDynamicHost=c,W.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return c()&&E()},W.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return c()&&!E()},W));
_.jD(function(){if(c()){var q=0,n;if((n=B().animationParams)==null?0:n.shouldExpand){var L,By;q=((By=(L=B().animationParams)==null?void 0:L.expansionDelaySecs)!=null?By:0)*1E3}var gk,vy=((gk=B().animationParams)==null?0:gk.shouldExpand)?setTimeout(function(){d(!0)},q):void 0,lx,Zv;
q=((lx=B().animationParams)==null?0:lx.visibilityDelaySecs)?((Zv=B().animationParams)==null?NaN:Zv.visibilityDelaySecs)*1E3:0;var VR=setTimeout(function(){v(!0)},q);
_.fR(function(){vy&&clearTimeout(vy);clearTimeout(VR)})}});
var b=function(q){_.aB(q,Object.assign({},{form:{element:G.value}}))},O=_.lF(function(){var q,n=(q=t())==null?void 0:q.onTapCommand;
n&&b(n)}),K=_.lF(function(){var q,n;
if(q=(n=P())==null?void 0:n.onTapCommand)return b(q),!1}),e=_.oK({"vertical-align":"bottom",
"border-radius":function(){var q;return c()?((q=B().defaultContent)==null?0:q.isCircleImage)?"50%":"4px":"0px"},
width:function(){var q,n,L;return c()&&((q=B().defaultContent)==null?0:q.imageSize)?((L=(n=B().defaultContent)==null?void 0:n.imageSize)!=null?L:24)+"px":null},
height:function(){var q,n,L;return c()&&((q=B().defaultContent)==null?0:q.imageSize)?((L=(n=B().defaultContent)==null?void 0:n.imageSize)!=null?L:24)+"px":null}}),a={};
return _.w("yt-shorts-suggested-action-view-model",{class:W,el:G},_.w("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.w("button",{class:_.kG(function(){return c()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var q;
return(q=B().useFullRoundedBorder)!=null&&q?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!P()&&c()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":c()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var q;
return(q=B().disableFixedHeight)!=null&&q?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(a.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(z==null?void 0:z())===1},a)),
"on:click":O},_.w(_.O6,{model:{color:4}}),_.w("div",{class:_.kG(function(){return c()?l().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.w(_.V,{cond:function(){var q;
return(q=t())==null?void 0:q.image},
then:function(q){return _.w(_.iF,{data:q,alt:"",className:function(){return c()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:e})}}),_.w(_.V,{cond:function(){var q,n;
return(q=t())==null?void 0:(n=q.icon)==null?void 0:n.iconType},
then:function(q){return _.w(_.hY,{icon:q,active:g,className:function(){return c()?Y()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.w("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.w(_.V,{cond:function(){var q;
return(q=t())==null?void 0:q.primaryText},
then:function(q){return _.w("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.w(_.r0,{text:q}))}}),_.w(_.V,{cond:function(){var q;
return(q=t())==null?void 0:q.secondaryText},
then:function(q){return _.w("div",{class:function(){return l().secondaryText()}},_.w(_.r0,{text:q}))}}))),_.w(_.V,{cond:P,
then:function(q){return _.w("div",{class:function(){return l().trailingSection()},
"aria-label":function(){var n;return(n=q().a11yLabel)!=null?n:""},
"on:click":K,role:"button",tabindex:0},_.w(_.O6,{model:{color:4}}),_.w(_.hY,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Af");var W6O=_.m(function(W){var B=W.data;var z=W.overlayDensity;var G=_.LG("yt-shorts-video-title-view-model");W=_.lF(function(E){if(_.mC(_.ec(E),G.value,["A".toString()]))return!1;(E=B().truncatedTextOnTapCommand)&&_.aB(E);return!1});
var Y={},d={};return _.w("yt-shorts-video-title-view-model",{el:G,class:_.kG("ytShortsVideoTitleViewModelHost",(Y.ytShortsVideoTitleViewModelHostClickable=function(){return!!B().truncatedTextOnTapCommand},Y)),
"on:click":W},_.w("h2",{class:_.kG("ytShortsVideoTitleViewModelShortsVideoTitle",(d.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(z==null?void 0:z())===1},d))},_.w(_.r0,{text:function(){return B().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0})))},"Bf");_.B4f=_.m(function(W){var B=W.data;var z=W.overlayDensity;var G=function(){return(z==null?void 0:z())===1};
return _.w("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.w(_.Sc,{data:function(){return B().metadataItems}},{badgeViewModel:function(Y){Y=Y.data;
return _.w("div",{class:_.kG(function(){return G()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.w(_.bM,{data:Y}))},
playerDisclosureViewModel:function(Y){Y=Y.data;return _.w("div",{class:_.kG(function(){return G()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.w(_.U5n,{data:Y}))},
shortsSuggestedActionViewModel:function(Y){Y=Y.data;return _.w("div",{class:_.kG(function(){return G()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.w(Rfj,{data:Y,
overlayDensity:z}))},
reelChannelBarViewModel:function(Y){Y=Y.data;var d={};return _.w("div",{class:_.kG("ytReelMetapanelViewModelMetapanelItem",(d.ytReelMetapanelViewModelExpansive=function(){return G()},d))},_.w(Mk1,{data:Y,
overlayDensity:z}))},
reelMultiFormatLinkViewModel:function(Y){Y=Y.data;var d={};return _.w("div",{class:_.kG("ytReelMetapanelViewModelMetapanelItem",(d.ytReelMetapanelViewModelExpansive=function(){return G()},d))},_.w(aGi,{data:Y,
overlayDensity:z}))},
shortsVideoTitleViewModel:function(Y){Y=Y.data;var d={};return _.w("div",{class:_.kG("ytReelMetapanelViewModelMetapanelItem",(d.ytReelMetapanelViewModelExpansive=function(){return G()},d))},_.w(W6O,{data:Y,
overlayDensity:z}))},
reelSoundMetadataViewModel:function(Y){Y=Y.data;var d={};return _.w("div",{class:_.kG("ytReelMetapanelViewModelMetapanelItem",(d.ytReelMetapanelViewModelExpansive=function(){return G()},d))},_.w(_.UZj,{data:Y,
overlayDensity:z}))},
toggleButtonViewModel:function(Y){Y=Y.data;var d={};return _.w("div",{class:_.kG("ytReelMetapanelViewModelMetapanelItem",(d.ytReelMetapanelViewModelExpansive=function(){return G()},d))},_.w(_.Y1,{data:Y}))}}))},"Cf");var zof=_.m(function(W){var B=_.EV(W,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),z=B.size,G=B.onTap,Y=B.disabled,d=B.tooltipText;return _.w("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.w(_.uu,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:z(),disabled:Y(),tooltipText:d(),onTap:G}},
iconName:W.iconType}))},"Df"),Gtf=_.m(function(W){function B(g){g.stopPropagation();
g.code==="ArrowUp"?(g.preventDefault(),GKu(v.value)):g.code==="ArrowDown"?(g.preventDefault(),YCX(v.value)):g.code==="KeyM"?Bz0():(g.code==="KeyK"||g.code==="Space")&&zex(c())}
var z=_.EV(W,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});W=z.previousButtonDisabled;var G=z.nextButtonDisabled,Y=z.data,d=z.playabilityStatus,E=z.previewThumbnail,v=_.LG("ytd-shorts-miniplayer-overlay"),c=_.ny(_.vUv),J;_.bk(function(){(J=_.yY(v.value))&&J.addEventListener("keydown",B)});
_.fR(function(){var g;(g=J)==null||g.removeEventListener("keydown",B)});
z=function(){var g,t,P;return(g=Y())==null?void 0:(t=g.reelPlayerOverlayRenderer)==null?void 0:(P=t.likeButton)==null?void 0:P.likeButtonRenderer};
return _.w("ytd-shorts-miniplayer-overlay",{el:v,class:"ytdShortsMiniplayerOverlayHost"},_.w("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.oK({"background-image":function(){var g=E();return g?'url("'+_.gS(g.thumbnails)+'")':""}})}),_.w("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.w("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.w(zof,{iconType:function(){var g=c();
return g===2||g===-1||g===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){zex(c())},
tooltipText:function(){var g=c();return g===1||g===3?_.kq("PLAYER_LABEL_PAUSE"):_.kq("PLAYER_LABEL_PLAY")}}),_.w(_.Lbb,{orientation:"horizontal_right"})),_.w("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.w(zof,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:W,onTap:function(){GKu(v.value)},
tooltipText:_.kq("PREVIOUS_VIDEO_LABEL")}),_.w(zof,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:G,onTap:function(){YCX(v.value)},
tooltipText:_.kq("NEXT_VIDEO_LABEL")}),_.r("web_shorts_pip_like_button")?_.w("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.w($qR,{buttonTooltipPosition:"left",data:z,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.w("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.w(_.V,{cond:function(){var g,t;return _.k((g=Y())==null?void 0:(t=g.reelPlayerOverlayRenderer)==null?void 0:t.metapanel,
_.JwT)},
then:function(g){return _.w("div",{class:_.kG("ytdShortsMiniplayerOverlayInteractive")},_.w(_.B4f,{data:g}))}})),_.w("div",{class:_.kG("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var g;return!((g=Y())==null||!g.adsOverlay)||d()&&!$B0(d())}},_.w("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.w(_.$5i,null)))),_.w(_.V,{cond:function(){var g=Y(),t,P;
g=_.k(g==null?void 0:(t=g.adsOverlay)==null?void 0:(P=t.fulfillmentContent)==null?void 0:P.fulfilledLayout,iaU);return _.k(g==null?void 0:g.renderingContent,V1R)},
then:function(g){return _.w("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.w(jl7,{data:g}))}}))},"Ef");var d42=_.m(function(){var W=_.A(_.g4(new _.hv(NaN,NaN),void 0,"hq9Bjf")),B=W.next().value,z=W.next().value;W=_.A(_.g4(!1,void 0,"Mu3aZc"));var G=W.next().value,Y=W.next().value,d=_.A(_.g4(!1,void 0,"LGtoFb"));W=d.next().value;var E=d.next().value,v=_.dO().resolve(_.Qb).miniplayerPropSignalMap[0],c=v.data,J=v.shortsData,g=v.nextButtonDisabled,t=v.shortsPreviewThumbnail,P=v.previousButtonDisabled,Z=v.externalPlaylistData;d=v.toastData;var l=v.playabilityStatus,b=v.isDisabled,O=v.playerVe,K=v.closeVe;
v=_.ny(_.wh);_.$E("yt-pip-window-resized",function(n){z(n)});
_.$E("yt-activate-pip-miniplayer",function(){return _.T(function(n){E(!0);_.HG(n)})});
var e=function(){var n;return!((n=Z())==null||!n.contents)&&G()},a=function(){var n=B(),L=!!c(),By=e();
n=n.clone();L&&(n.height-=76);By&&(n.height-=285);return n},q=function(){Y(!G())};
_.ja(function(){var n=O(),L=_.m1(11),By=_.et(11);L&&By&&n&&(_.$q(L,By,n),By=K())&&(_.Li(L,n,[By]),_.Mj(L,[By]))},"fHkmfb");
return _.w("ytd-pip-container",{class:"ytdPipContainerHost"},_.w(_.V,{cond:W,then:function(){return _.w(_.ExK,{isDisabled:b,playabilityStatus:l,size:a})}}),_.w(_.V,{cond:c,
then:function(){return _.w(_.AI1,{data:c,expanded:G,onExpandClick:q,playlistData:Z})}}),_.w(_.V,{cond:e,
then:function(){return _.w("div",{class:"ytdPipContainerPlaylistPanel"},_.w(_.n9F,{data:Z,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.w(_.V,{cond:v,
then:function(){return _.w(Gtf,{data:J,nextButtonDisabled:g,previousButtonDisabled:P,playabilityStatus:l,previewThumbnail:t})}}),_.w("div",{class:"ytdPipContainerToast"},_.w(_.THi,{toastData:d})))},"Ff");var Vw=function(W,B){var z=this;this.pipController=W;this.JSC$18725_clientRoot=B;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=s5Q();this.watchPipEnabled=_.r("web_watch_pip");this.shortsPipEnabled=_.r("web_shorts_pip");this.JSC$18725_watchWhileEnabled=_.r("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;_.NG(_.Y_(),pz2,function(G){z.isSingleOptionSurveyActive=G});
this.JSC$18725_onPlayerPlayVideo=this.JSC$18725_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);_.yx(_.Qx.getInstance(),this.miniplayerServiceActionMap,this.JSC$18725_clientRoot);W.pictureInPictureSupported()&&_.Sy("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},zOF,w50,E$1,Va9,Jyf,Jx6;
Vw.prototype.handleMediaSessionPipActivation=function(){var W=this,B;return _.T(function(z){_.qG().mediaSessionPipActivation=!0;B=_.dO().resolve(_.ij);return B.isOnWatch()&&W.watchPipEnabled?(_.qG().watchPipActivation=!0,_.Ydb(W,B.data),z.jumpTo(0)):B.isOnShorts()&&W.shortsPipEnabled?(_.qG().shortsPipActivation=!0,_.dwO(W),z.jumpTo(0)):W.isMiniplayerActive()&&W.watchPipEnabled&&!W.watchWhileMode?z.yield(p5b(W),0):z.jumpTo(0)})};
var p5b=function(W){var B,z,G,Y;return _.T(function(d){if(d.nextAddress==1)return B=!W.miniplayerToPipMode,z=W.playerElement,G=W.miniplayerData,Y=W.watchResponse,d.yield(W.deactivate(),2);if(d.nextAddress!=3)return B?(_.qG().mediaSessionPipActivation=!0,_.qG().watchPipActivation=!0):_.qG().miniplayerButtonActivation=!0,d.yield(W.activate(z,G,Y),3);W.miniplayerToPipMode=B;_.HG(d)})};
Vw.prototype.onDownloadedVideoDeleted=function(W){var B,z=_.k((B=this.miniplayerData)==null?void 0:B.watchEndpoint,_.W0),G,Y;z&&((G=this.watchResponse)==null?void 0:(Y=G.playerResponse)==null?void 0:Y.offlineState)!==void 0&&(B=z.videoId)&&W&&B===W&&this.close()};
Vw.prototype.onShowMiniplayerCommand=function(W){var B=this,z,G,Y,d,E,v,c,J,g,t,P;return _.T(function(Z){switch(Z.nextAddress){case 1:return z=_.k(W,dpd),Y=(G=z)==null?void 0:G.miniplayerCommand,d=_.k(Y,_.W0),Y&&d&&!B.active?Z.yield(_.Wz.getInstance(),2):Z.return();case 2:return E=Z.yieldResult,Z.yield((v=E)==null?void 0:v.get("yt-miniplayer-shown-video-id"),3);case 3:c=Z.yieldResult;J=d.videoId;if(!J||c===J)return Z.return();g=_.dO().resolve(_.ij);if(g.isOnWatch())return _.Oc(Error("Mj")),Z.return();
t={channelItem:{externalId:btoa(J)}};B.readyToResumeVe=_.PA(121253,void 0,void 0,t);_.qG().showMiniplayerCommandActivation=!0;return Z.yield(_.gW7(B,Y,!0),4);case 4:return B.active&&(_.Jb(B,{readyToResumeVe:B.readyToResumeVe,isReadyToResume:!0}),B.isReadyToResume=!0),Z.yield((P=E)==null?void 0:P.set("yt-miniplayer-shown-video-id",d.videoId),5);case 5:B.readyToResumeVe=void 0,_.HG(Z)}})};
Vw.prototype.init=function(W){this.miniplayerEl?_.Oc(new _.oX("MiniplayerService already initialized.")):this.miniplayerEl=W};
Vw.prototype.isInitialized=function(){var W=!!this.miniplayerEl;W||_.Oc(new _.oX("MiniplayerService used before initialized."));return W};
_.Ydb=function(W,B){if(W.isInitialized()){var z=_.Oo(B.response,!1,B.playerResponse),G=_.dO().resolve(_.ij).getPlayerFromWatch();_.qG().currentEndpoint=z.watchEndpoint||null;W.activate(G,z,B)}};
_.dwO=function(W){if(W.isInitialized()){var B=_.dO().resolve(_.ij).getPlayerFromShorts();W.activate(B)}};
zOF=function(W,B){var z;(z=!W.isInitialized())||(z=_.dO().resolve(_.ij).isOnWatch()&&W.watchPipMode,z=!(W.isMiniplayerActive()&&(_.qG().userActivation||_.qG().lockupActivation||z)));if(z)return!1;Ayn(W,B)?_.vW(W):Jx6(W,B);return W.watchPipMode?!_.dO().resolve(_.ij).isOnWatch():!0};
Vw.prototype.isMiniplayerActive=function(){return this.active};
var Ayn=function(W,B){var z;B=(z=_.k(B,_.W0))==null?void 0:z.videoId;var G,Y;W=(Y=_.k((G=W.miniplayerData)==null?void 0:G.watchEndpoint,_.W0))==null?void 0:Y.videoId;return B!=null&&B===W};
Vw.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.v0(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.c0(this.miniplayerEl,"yt-navigate-home-action"))};
_.gW7=function(W,B,z,G){z=z===void 0?!1:z;var Y,d,E;return _.T(function(v){switch(v.nextAddress){case 1:if(W.active){v.jumpTo(2);break}Y=_.dO().resolve(_.ij);if(E=(d=W.playerElement)!=null?d:Y.getPlayerFromWatch()){v.jumpTo(3);break}return v.yield(_.dO().resolve(_.Jg),4);case 4:E=Y.getPlayerFromWatch();case 3:if(!E){_.Oc(Error("Oj"));v.jumpTo(2);break}return v.yield(W.activate(E,G),2);case 2:return W.active?v.yield(Jx6(W,B,z),0):v.return()}})};
Vw.prototype.activate=function(W,B,z){var G=this,Y,d,E,v,c,J,g,t,P;return _.T(function(Z){switch(Z.nextAddress){case 1:if(!G.isInitialized())return Z.return();if(!W)return _.Oc(Error("Oj")),Z.return();if(_.ZYu()||G.isMiniplayerActive())var l=!0;else l=_.qG().watchPipActivation||_.qG().watchWhileActivation,_.dO().resolve(_.ij).isOnWatch()&&!l?(_.Oc(new _.oX("miniplayer activated on watch page")),l=!0):l=_.qG().watchWhileActivation?G.userDeactivatedWatchWhile||!!document.pictureInPictureElement||HER():
!1;if(l)return PMd(),Z.return();Y=_.qG().mediaSessionPipActivation;d=_.qG().shortsPipActivation;E=_.qG().watchPipActivation;c=(v=_.qG().watchWhileActivation)||E;J=E||d;if(!G.pictureInPictureEnabled()||!J){Z.jumpTo(2);break}return Z.yield(iRn(G,Y),3);case 3:if(!Z.yieldResult)return _.Oc(Error("Nj")),PMd(),Z.return();case 2:return G.setActive(!0),G.watchResponse=z,G.playerElement=W,G.updateMiniplayerData(B),Z.yield(E$1(G,W),4);case 4:if(!G.active)return _.Oc(new _.oX("miniplayer deactivated during activation")),
G.removePlayerListeners(),Z.return();l=_.dO().resolve(_.wW);l.addEventListener("yt-navigate",_.Co(G,G.onPlaylistNavigate));l.addEventListener("yt-playlist-data-updated",_.Co(G,G.JSC$18725_onPlaylistDataUpdated));G.JSC$18725_onPlaylistDataUpdated();PMd();G.JSC$18725_watchWhileEnabled&&_.T4Y(G,v);G.pictureInPictureEnabled()&&G.shortsPipEnabled&&(G.shortsPipMode=d,_.Y_().dispatch(plT(G.shortsPipMode)));G.pictureInPictureEnabled()&&G.watchPipEnabled&&(G.watchPipMode=E,_.SP8(G.handleMediaSessionPipActivation));
G.player&&(g=G.player.getPlayerState(),t=g===1,_.Y_().dispatch(JTR(g)),_.wV(G.miniplayerEl,"yt-miniplayer-play-state-changed",[t]),_.qG().isVideoPlaying=t);_.wV(G.miniplayerEl,"yt-miniplayer-endpoint-changed");v$6(G);_.cyn(G);if(G.shortsPipMode||G.watchPipMode)Z=Z.yield(_.c0(G.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{l=Z.yield;var b=_.c0(G.miniplayerEl,"yt-activate-miniplayer",[c])[0];Z=l.call(Z,b,6)}return Z;case 6:if(G.watchResponse){l=G.getScreenLayer();b=_.m1(0);var O=qTr(0);b&&O&&
(_.D2(b,O,l),l===0&&Q1X(void 0,0))}w50(G);Va9(G,!0);(P=G.getPlayerElement())==null||P.focusOnPlayer();_.HG(Z)}})};
Vw.prototype.updateMiniplayerData=function(W){this.miniplayerData=W;_.Jb(this,{data:W})};
_.cyn=function(W){var B,z,G=((B=W.miniplayerData)==null?void 0:(z=B.miniplayerRenderer)==null?void 0:z.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";B=W.watchWhileMode||W.watchPipMode?G&&!_.dO().resolve(_.ij).isOnWatch():G;_.Jb(W,{isDisabled:B});var Y,d;z=_.k((Y=W.miniplayerData)==null?void 0:(d=Y.miniplayerRenderer)==null?void 0:d.minimizedEndpoint,_.Nm);B&&z&&_.dO().resolve(_.BD).openSheet({openPopupActionCommand:{openPopupAction:z}},W.miniplayerEl)};
w50=function(W){if(W.watchResponse&&!Jyf(W)){var B,z=(B=W.watchResponse.playerResponse)==null?void 0:B.trackingParams;z&&(_.Jb(W,{expandVe:_.PA(35989),closeVe:_.PA(34699),readyToResumeCloseVe:_.PA(131070),repositionVe:_.PA(226204),resizeVe:_.PA(226205)}),_.Jb(W,{playerVe:_.XF(z)}))}};
E$1=function(W,B){return _.T(function(z){if(z.nextAddress==1)return B.preparePlayer(),z.yield(B.getPlayerPromise(),2);W.player=z.yieldResult;W.player&&(W.player.addEventListener("onPlayVideo",W.JSC$18725_onPlayerPlayVideo),W.player.addEventListener("onCloseMiniplayer",W.onPlayerCloseMiniplayer),W.player.addEventListener("onExpandMiniplayer",W.onPlayerExpandMiniplayer),W.player.addEventListener("onStateChange",W.onPlayerStateChange));_.HG(z)})};
_.p=Vw.prototype;_.p.JSC$18725_onPlayerPlayVideo=function(W){var B=W.sessionData&&"autonav"in W.sessionData,z;W.sessionData&&W.sessionData.itct&&(z=W.sessionData.itct);var G=W.watchEndpoint;B=G&&B?_.tir(G,z):_.pA(W.videoId,W.listId||void 0,z);W.sessionData&&_.Yq(_.k(B.commandMetadata,_.Z4).url,W.sessionData);Jx6(this,B)};
_.p.onPlayerExpandMiniplayer=function(){_.vW(this)};
_.p.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.p.onPlayerStateChange=function(){if(this.player){var W=this.player.getPlayerState(),B=W===1;_.Y_().dispatch(JTR(W));_.Y_().dispatch(_.saM(W));_.wV(this.miniplayerEl,"yt-miniplayer-play-state-changed",[B]);_.qG().isVideoPlaying=B;if(W===0){B=!_.oH.getInstance().isAutoplaySetExplicitly();var z,G,Y,d,E,v,c=(z=this.watchResponse.response)==null?void 0:(G=z.contents)==null?void 0:(Y=G.twoColumnWatchNextResults)==null?void 0:(d=Y.autoplay)==null?void 0:(E=d.autoplay)==null?void 0:(v=E.autoplayExplicitChoiceDialogRenderer)==
null?void 0:v.confirmDialogRenderer;B&&c&&this.player.setAutonavState(1)}W===0&&this.watchWhileMode&&this.deactivate()}};
_.p.onPlaylistNavigate=function(W,B){var z=this,G,Y,d,E,v,c,J;return _.T(function(g){if(g.nextAddress==1){if(!_.k(B.endpoint,_.W0))return g.return();_.qG().currentEndpoint=B.endpoint;_.wV(z.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.dO().resolve(_.ij).isOnWatch()&&(z.watchWhileMode||z.watchPipMode))return g.return();W.stopPropagation();(d=(Y=_.k((G=B.endpoint)==null?void 0:G.commandMetadata,_.Z4))==null?void 0:Y.url)&&B.tempData&&!_.mP.isEmpty(B.tempData)&&_.Yq(d,B.tempData);E={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};v=new sbU(function(){return z.getPlayerElement()},E,{layer:z.getScreenLayer()});
c=function(t){v.processChunk({endpoint:B.endpoint,data:t})};
g$0(z);z.miniplayerFetchRequest=taj(z,B.endpoint,c);_.kA(g,2);return g.yield(z.miniplayerFetchRequest,4)}if(g.nextAddress!=2)return J=g.yieldResult,swf(z,J),_.Nn(g,0);_.h6(g);_.HG(g)})};
_.p.JSC$18725_onPlaylistDataUpdated=function(){var W=_.dO().resolve(_.wW).getPlaylistData();this.hasPlaylistData=!!W;_.Jb(this,{externalPlaylistData:W||{}})};
_.p.close=function(W){if(this.isInitialized())if(W){if(!((this.watchWhileMode||this.watchPipMode)&&_.dO().resolve(_.ij).isOnWatch()||this.shortsPipMode)){var B;(B=this.getPlayerElement())==null||B.stop()}this.deactivate()}else _.sr().closeMiniplayer(this.miniplayerEl)};
_.p.deactivate=function(W){var B=this,z,G,Y,d;return _.T(function(E){if(E.nextAddress==1){if(!B.isInitialized()||!B.active)return E.return();B.setActive(!1);g$0(B);(z=!!W&&Ayn(B,W))&&B.isSingleOptionSurveyActive&&_.c0(B.miniplayerEl,"yt-show-watch-page-survey",[B.isSingleOptionSurveyActive]);return E.yield(PEO(B),2)}if(E.nextAddress!=3){Va9(B,!1);B.isReadyToResume=!1;B.watchResponse=void 0;B.updateMiniplayerData(void 0);B.shortsPipMode&&(B.shortsPipMode=!1,_.Y_().dispatch(plT(B.shortsPipMode)),tNr(B.pipController),
(G=B.player)==null||G.setInternalSize(NaN,NaN));B.watchPipMode&&(B.watchPipMode=!1,tNr(B.pipController));(Y=B.watchWhileMode)&&_.T4Y(B,!1);B.removePlayerListeners();var v=_.dO().resolve(_.wW);v.removeEventListener("yt-navigate",_.Co(B,B.onPlaylistNavigate));v.removeEventListener("yt-playlist-data-updated",_.Co(B,B.JSC$18725_onPlaylistDataUpdated));_.qG().currentEndpoint=null;_.wV(B.miniplayerEl,"yt-miniplayer-endpoint-changed");B.playerElement=null;PMd();if(B.shortsPipMode||B.watchPipMode)E=E.jumpTo(3);
else{v=E.yield;var c=_.c0(B.miniplayerEl,"yt-deactivate-miniplayer",[z,Y])[0];E=v.call(E,c,3)}return E}(d=B.player)==null||d.setInternalSize(NaN,NaN);B.player=null;_.HG(E)})};
var PEO=function(W){var B;return _.T(function(z){B=_.dO().resolve(_.ij);return W.shortsPipMode?z.yield(B.movePlayerToShorts(W.playerElement),0):z.yield(B.movePlayerToWatch(W.playerElement),0)})};
Vw.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18725_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Vw.prototype.setActive=function(W){this.active=W;this.isSingleOptionSurveyActive?_.c0(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.c0(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Y_().dispatch(_.Tl({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.T4Y=function(W,B){W.watchWhileMode=B;_.Jb(W,{watchWhile:B})};
Va9=function(W,B){if(!Jyf(W))if(W.shortsPipMode||W.watchPipMode){var z;(z=W.player)==null||z.setDocumentPictureInPicture(B)}else{var G;(G=W.player)==null||G.setMinimized(B)}};
Jyf=function(W){return W.watchWhileMode&&_.r("kevlar_watch_while_counterfactual")};
_.vW=function(W){var B;return _.T(function(z){switch(z.nextAddress){case 1:if(!W.isInitialized())return z.return();_.kA(z,2);return z.yield(W.miniplayerFetchRequest,4);case 4:_.Nn(z,3);break;case 2:_.h6(z);case 3:W.watchResponse&&W.miniplayerData&&W.miniplayerData.watchEndpoint?(B={url:W.watchResponse.url,endpoint:W.miniplayerData.watchEndpoint,data:W.watchResponse,miniplayer:!0},_.v0(W.miniplayerEl,"yt-navigate-cache",B)):W.miniplayerData&&W.miniplayerData.watchEndpoint&&_.v0(W.miniplayerEl,"yt-navigate",
{endpoint:W.miniplayerData.watchEndpoint}),_.HG(z)}})};
Jx6=function(W,B,z){var G,Y,d,E;return _.T(function(v){if(v.nextAddress==1){if(Ayn(W,B))return v.return();_.qG().currentEndpoint=B;_.wV(W.miniplayerEl,"yt-miniplayer-endpoint-changed");_.wV(W.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.qG().isVideoPlaying=!1;G={clientParams:{miniplayer:!0,autoSaveToQueue:!z}};Y=new sbU(function(){return W.getPlayerElement()},G,{layer:W.getScreenLayer(),
parentLayer:0},void 0,W.readyToResumeVe);d=function(c){var J,g,t=Object.assign({},(J=c.playerResponse)==null?void 0:(g=J.playerConfig)==null?void 0:g.playbackStartConfig,{startPaused:!0}),P;z&&((P=c.playerResponse)==null?0:P.playerConfig)&&(c.playerResponse.playerConfig.playbackStartConfig=t);Y.processChunk({endpoint:B,data:c})};
g$0(W);W.miniplayerFetchRequest=taj(W,B,d);_.kA(v,2);return v.yield(W.miniplayerFetchRequest,4)}if(v.nextAddress!=2)return E=v.yieldResult,swf(W,E),_.Nn(v,0);_.h6(v);_.HG(v)})};
Vw.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var g$0=function(W){W.miniplayerFetchRequest&&(W.miniplayerFetchRequest.cancel&&W.miniplayerFetchRequest.cancel("Active request obsolete"),W.miniplayerFetchRequest=null)},taj=function(W,B,z){var G=_.LI.instance,Y,d=(Y=_.k(B.commandMetadata,_.Z4))==null?void 0:Y.url,E;
Y=!d||_.r("disable_miniplayer_tempdata")?{}:(E=SW2(d))!=null?E:{};return nQ(G,B,Y,window.location.href,"watch",function(v,c){z(c)},function(v){return v!==W.miniplayerFetchRequest})},swf=function(W,B){var z;
_.T(function(G){if(!B)return G.return();W.watchResponse=B;w50(W);v$6(W);z=_.Oo(B.response,!1,B.playerResponse);if(W.isMiniplayerActive()){B.response&&(W.playerElement.watchNextData=B.response);var Y=_.mP.getValueByKeys.apply(_.mP,[B].concat(_.u7(HdR)));_.mP.getValueByKeys.apply(_.mP,[B].concat(_.u7(fYH)))&&Y&&_.dO().resolve(_.wW).setAutoplayRenderer(Y);if(Y)if(_.r("kevlar_is_pupi_enabled")){var d,E,v,c,J,g=((d=B.response)==null?0:(E=d.playerOverlays)==null?0:(v=E.playerOverlayRenderer)==null?0:(c=
v.autonavToggle)==null?0:(J=c.autoplaySwitchButtonRenderer)==null?0:J.enabled)?2:1;_.oH.getInstance().setState(g,!1,!1)}else d=yfu()?2:1,(g=W.player)==null||g.setAutonavState(d);W.updateMiniplayerData(z);_.cyn(W)}_.HG(G)})},v$6=function(W){var B,z,G=(B=W.watchResponse)==null?void 0:(z=B.playerResponse)==null?void 0:z.playabilityStatus,Y;
B=G==null?void 0:(Y=G.miniplayer)==null?void 0:Y.miniplayerRenderer;(B==null?void 0:B.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&B.minimizedEndpoint&&_.V0(W.miniplayerEl,[B.minimizedEndpoint]);_.Jb(W,{playabilityStatus:G})};
Vw.prototype.openToast=function(W,B){_.Jb(this,{toastData:{data:W,label:B}})};
_.Jb=function(W,B){(0,W.miniplayerPropSignalMap[1])(B)};
Vw.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var W;return this.playerElement?this.playerElement:(W=_.tH(this.miniplayerEl).querySelector("#player-container"))==null?void 0:W.firstElementChild};
Vw.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var iRn=function(W,B){B=B===void 0?!1:B;var z,G,Y,d,E,v,c;return _.T(function(J){if(J.nextAddress==1){z=navigator.userActivation.isActive||B;if(!z||!W.pictureInPictureSupported())return J.return(!1);G=ZR9(W);Y=G.width;d=G.height;return J.yield(W.pipController.openWindow({width:Y,height:d}),2)}E=J.yieldResult;v=W.pipController.getWindow();if(!v||!E)return J.return(!1);v.document.body.style.overflow="hidden";c=pKk(v);s3O(W.pipController,function(){ryj(W);c()});
return J.return(!0)})},ZR9=function(W){var B=_.qG().shortsPipActivation,z,G;
W=B?.5625:(G=(z=W.player)==null?void 0:z.getVideoAspectRatio())!=null?G:16/9;z=Math.min(window.innerWidth,window.innerHeight)/2;B=B?0:76;return W>1?new _.hv(z,B+z/W):new _.hv(z*W,B+z)},ryj=function(W){var B;
_.T(function(z){B=_.dO().resolve(_.ij);return B.isOnWatch()&&W.watchPipMode||B.isOnShorts()&&W.shortsPipMode?z.yield(W.deactivate(),0):W.miniplayerToPipMode?z.yield(p5b(W),0):W.watchPipMode?z.yield(_.vW(W),0):z.jumpTo(0)})};
Vw.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.G5.Object.defineProperties(Vw.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Vw[gR]=[PQi,MoD];var ktf="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(" "),
lIq="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(" "),CE1="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
IIq="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var o$f=null;var hoq={},HRi=(hoq.initialized={priority:10,callback:function(W){var B=_.dO();B.addProvider({provide:ryu,useClass:bNf});B.addProvider({provide:_.S0b,useFactory:function(){return new ktR}});
B.addProvider({provide:pc,useValue:_.eD("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});B.addProvider({provide:suj,useValue:5184E6});B.addProvider({provide:mTj,useValue:_.FU()});B.addProvider({provide:$fK,useClass:Wl7});B.addProvider({provide:tT,useClass:tT});B.addProvider({provide:_.Jg,useFactory:function(){return ATQ.promise}});
B.addProvider({provide:_.EDd,useFactory:function(){return _.id7.promise}});
B.addProvider({provide:toy,useValue:function(){var c;return((c=_.TN())==null?void 0:c.getPlayer())||null}});
var z={};B.addProvider((z.provide=_.OI,z.useFactory=function(c,J){return function(){return J_t(c,J)}},z[gR]=[pc,
suj],z));z={};B.addProvider((z.provide=_.uh,z.useClass=vYr,z[gR]=[pc,suj],z));z={};B.addProvider((z.provide=_.kKx,z.useClass=JKr,z[gR]=[_.uh],z));B.addProvider({provide:M3,useFactory:_.Y_});B.addProvider({provide:ir,useFactory:_.Y_});B.addProvider({provide:G_i,useFactory:_.Y_});B.addProvider({provide:DhR,useFactory:_.Y_});B.addProvider({provide:_.v7,useFactory:_.Y_});B.addProvider({provide:D$,useValue:_.kO});B.addProvider({provide:C71,useClass:Xg2});B.addProvider({provide:Lri,useClass:$RK});B.addProvider({provide:ZB,
useClass:ZB});B.addProvider({provide:Qh,useClass:Qh});B.addProvider({provide:yh,useClass:yh});B.addProvider({provide:nI,useClass:nI});B.addProvider({provide:hQ,useClass:hQ});B.addProvider({provide:zO,useClass:zO});B.addProvider({provide:LZ,useClass:LZ});B.addProvider({provide:_.W0i,useValue:Udj});B.addProvider({provide:_.Gz,useFactory:_.SK});B.addProvider({provide:Du,useFactory:_.IP});z={};B.addProvider((z.provide=AhR,z.useFactory=function(c){return function(J){var g=g===void 0?{}:g;var t,P,Z=(P=
_.k((t=J.endpoint)==null?void 0:t.commandMetadata,_.Z4))==null?void 0:P.rootVe;if(Z){var l,b;if(t=J.previousCsn||((b=_.k((l=J.endpoint)==null?void 0:l.commandMetadata,OSF))==null?void 0:b.parentCsn)){var O=O===void 0?{}:O;if(t!==_.m1(O.layer)||Z!==qTr(O.layer))UrX(t,O.cttAuthInfo,O.layer||0),Q1X(t,O.layer||0),l=O.layer||0,_.uk(y12(l===void 0?0:l),Z);g.parentCsn=t}J.endpoint&&t?z4F(c,J.endpoint,g):_.KS(c,Z,void 0,g);var K;((K=J.response)==null?0:K.trackingParams)&&c.graftServerVe(J.response.trackingParams);
var e;((e=J.playerResponse)==null?0:e.trackingParams)&&c.graftServerVe(J.playerResponse.trackingParams);var a;((a=J.reelWatchSequenceResponse)==null?0:a.trackingParams)&&c.graftServerVe(J.reelWatchSequenceResponse.trackingParams)}}},z[gR]=[_.Gz],z));
z={};B.addProvider((z.provide=dZi,z.useClass=YKr,z[gR]=[D$,_.v7],z));z={};B.addProvider((z.provide=n$,z.useClass=n$,z[gR]=[_.Jg,_.v7],z));z={};B.addProvider((z.provide=DB,z.useClass=DB,z[gR]=[ir,_.p4],z));B.addProvider({provide:_.vhq,useClass:rZ6});z={};B.addProvider((z.provide=_.WD,z.useClass=VNn,z[gR]=[_.vhq,_.Y8(_.Go)],z));B.addProvider({provide:_.BD,useClass:L$});B.addProvider({provide:_.f9K,useClass:vAr});B.addProvider({provide:_.zo,useClass:Ns});_.r("enable_ai_companion")&&B.addProvider({provide:_.Go,
useClass:ghn});z={};B.addProvider((z.provide=_.uX,z.useClass=Zm6,z[gR]=[_.uX],z));B.addProvider({provide:_.uC,useClass:DRn});B.addProvider({provide:zv,useClass:zv});B.addProvider({provide:IV,useClass:IV});B.addProvider({provide:iX,useClass:iX});z={};B.addProvider((z.provide=Q9,z.useClass=Q9,z[gR]=[_.p4,_.N_],z));B.addProvider({provide:ti,useClass:$7});z={};B.addProvider((z.provide=Zu,z.useClass=Zu,z[gR]=[_.BD,ti],z));z={};B.addProvider((z.provide=VT,z.useClass=VT,z[gR]=[_.BD],z));_.r("web_enable_feedback_endpoint_resolver")&&
(z={},B.addProvider((z.provide=a2,z.useClass=a2,z[gR]=[M3,U1],z)),B.addProvider({provide:U1,useClass:vM0}));_.r("web_enable_feedback_endpoint_resolver_batch_2")&&(z={},B.addProvider((z.provide=WL,z.useClass=WL,z[gR]=[M3],z)),z={},B.addProvider((z.provide=R2,z.useClass=R2,z[gR]=[U1],z)));z={};B.addProvider((z.provide=su,z.useClass=su,z[gR]=[_.zo,ti],z));z={};B.addProvider((z.provide=cL,z.useClass=cL,z[gR]=[_.zo],z));z={};B.addProvider((z.provide=PL,z.useClass=PL,z[gR]=[_.N_,_.WD],z));z={};B.addProvider((z.provide=
gt,z.useClass=gt,z[gR]=[_.N_,_.Gz],z));B.addProvider({provide:$Z,useClass:$Z});z={};B.addProvider((z.provide=xZ,z.useClass=xZ,z[gR]=[M3],z));B.addProvider({provide:i8,useClass:i8});B.addProvider({provide:AN,useClass:AN});z={};B.addProvider((z.provide=T7,z.useClass=T7,z[gR]=[M3],z));z={};B.addProvider((z.provide=vI,z.useClass=vI,z[gR]=[_.N_,M3],z));z={};B.addProvider((z.provide=cI,z.useClass=cI,z[gR]=[M3],z));z={};B.addProvider((z.provide=wl,z.useClass=wl,z[gR]=[M3],z));z={};B.addProvider((z.provide=
wt,z.useClass=wt,z[gR]=[_.WD],z));z={};B.addProvider((z.provide=RV,z.useClass=RV,z[gR]=[_.Gz],z));z={};B.addProvider((z.provide=dl,z.useClass=dl,z[gR]=[nc],z));z={};B.addProvider((z.provide=pZ,z.useClass=pZ,z[gR]=[nc],z));B.addProvider({provide:z7,useClass:z7});B.addProvider({provide:G7,useClass:G7});B.addProvider({provide:aV,useClass:aV});z={};B.addProvider((z.provide=rt,z.useClass=rt,z[gR]=[_.WD,_.p4],z));B.addProvider({provide:dt,useClass:dt});z={};B.addProvider((z.provide=Ji,z.useClass=Ji,z[gR]=
[_.N_,_.WD],z));B.addProvider({provide:Eu,useClass:Eu});z={};B.addProvider((z.provide=e2,z.useClass=e2,z[gR]=[M3,_.N_,_.uX],z));z={};B.addProvider((z.provide=Xa,z.useClass=Xa,z[gR]=[_.N_,_.p4],z));B.addProvider({provide:yd6,useValue:hzR});B.addProvider({provide:UWH,useValue:jVv});B.addProvider({provide:Kc,useClass:Kc});z={};B.addProvider((z.provide=Ou,z.useClass=Ou,z[gR]=[M3],z));z={};B.addProvider((z.provide=m$,z.useClass=m$,z[gR]=[_.uC,_.p4],z));z={};B.addProvider((z.provide=BL,z.useClass=BL,z[gR]=
[_.p4],z));B.addProvider({provide:L0,useFactory:function(){return new L0(_.Y_())}});
B.addProvider({provide:ody,useFactory:_.m9.getInstance});z={};B.addProvider((z.provide=Ai,z.useClass=Ai,z[gR]=[pc,ody,_.p4],z));B.addProvider({provide:Gv,useClass:Gv});B.addProvider({provide:y9,useClass:y9});B.addProvider({provide:n0,useClass:n0});B.addProvider({provide:_.q3,useClass:_.q3});B.addProvider({provide:gl,useClass:gl});z={};B.addProvider((z.provide=S2,z.useClass=S2,z[gR]=[ir],z));z={};B.addProvider((z.provide=lX,z.useClass=lX,z[gR]=[_.p4],z));z={};B.addProvider((z.provide=bX,z.useClass=
bX,z[gR]=[_.p4],z));z={};B.addProvider((z.provide=j2,z.useClass=j2,z[gR]=[_.p4],z));_.r("web_enable_prefetching_videos_on_home")&&(B.addProvider({provide:x7,useClass:x7}),B.addProvider({provide:pF,useClass:pF}));z={};B.addProvider((z.provide=JN,z.useClass=JN,z[gR]=[_.p4],z));B.addProvider({provide:N3,useClass:N3});z={};B.addProvider((z.provide=Lc,z.useClass=Lc,z[gR]=[_.N_,_.p4],z));z={};B.addProvider((z.provide=$p,z.useClass=$p,z[gR]=[_.p4],z));z={};B.addProvider((z.provide=Ab,z.useClass=Ab,z[gR]=
[_.N_,_.p4],z));B.addProvider({provide:hi,useClass:hi});z={};B.addProvider((z.provide=oV,z.useClass=oV,z[gR]=[ir,_.p4],z));B.addProvider({provide:HL,useClass:HL});z={};B.addProvider((z.provide=PI,z.useClass=PI,z[gR]=[ir,_.p4,_.N_],z));z={};B.addProvider((z.provide=Zf,z.useClass=Zf,z[gR]=[_.p4],z));z={};B.addProvider((z.provide=sB,z.useClass=sB,z[gR]=[_.p4,_.N_],z));z={};B.addProvider((z.provide=fc,z.useClass=fc,z[gR]=[_.Jg],z));z={};B.addProvider((z.provide=Fa,z.useClass=Fa,z[gR]=[_.Jg],z));B.addProvider({provide:qS,
useClass:qS});B.addProvider({provide:NS,useClass:NS});B.addProvider({provide:EB,useClass:EB});B.addProvider({provide:Uu,useClass:Uu});B.addProvider({provide:yT,useClass:yT});B.addProvider({provide:Tv,useClass:Tv});B.addProvider({provide:QT,useClass:QT});_.r("kevlar_enable_mss_lazy_load")&&B.addProvider({provide:_.qg,useClass:Jvn});B.addProvider({provide:_.N1,useClass:Ms});B.addProvider({provide:IH,useFactory:function(){return _.Qx.getInstance()}});
B.addProvider({provide:BoO,useFactory:hik});B.addProvider({provide:nc,useFactory:function(){return _.Wz.getInstance()}});
B.addProvider({provide:aSD,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});z={};B.addProvider((z.provide=_.Qo,z.useClass=_.Qo,z[gR]=[_.Jg,_.p4,_.Gz,BoO,nc,IH,aSD,D$],z));B.addProvider({provide:_.QO,useClass:K2R});B.addProvider({provide:_.Z7f,useClass:PRq});z={};B.addProvider((z.provide=vL,z.useClass=vL,z[gR]=[_.Z7f],z));z={};B.addProvider((z.provide=_.yo,z.useFactory=function(c){return c.upliftCompletionResolver.promise},z[gR]=[dZi],z));
z=_.md("IS_SHELL_LOAD")?"aa":"eocs";var G=_.md("IS_SHELL_LOAD")?3:2;_.J5().parkOrScheduleJob(function(){AZn()},G,z);
_.J5().parkOrScheduleJob(function(){_.dO().resolve(n$).start()},2,"eocs");
_.J5().parkOrScheduleJob(function(){zmi()},2,"eocs");
_.J5().parkOrScheduleJob(function(){_.dO().resolve(DB).start()},2,"eocs");
_.r("kevlar_debug_data_app_registration_ks")||msy();B.addProvider({provide:_.jX,useValue:new aO9(W.root)});B.addProvider({provide:xE,useValue:new R$D});B.addProvider({provide:_.pyO,useValue:new YX1(W.root)});B.addProvider({provide:_.ns,useValue:new dRr});B.addProvider({provide:_.M1,useClass:N7});B.addProvider({provide:PQi,useClass:UI});_.r("kevlar_network_sli_killswitch")||B.addProvider({provide:xkO,useValue:xo4});B.addProvider({provide:I1K,useFactory:lyt});_.r("web_bind_fetch")&&(z={},B.addProvider((z.provide=
oAO,z.useFactory=CZ2,z[gR]=[_.Y8(I1K)],z)));_.r("web_bind_window_request")&&(z={},B.addProvider((z.provide=HNn,z.useFactory=IyX,z[gR]=[_.Y8(I1K)],z)));_.r("web_bind_text_decoder")&&(z={},B.addProvider((z.provide=FDq,z.useFactory=oWt,z[gR]=[_.Y8(I1K)],z)));z={};B.addProvider((z.provide=yM0,z.useFactory=YOx,z[gR]=[_.yo,M3,_.OI],z));z={};B.addProvider((z.provide=Qur,z.useClass=rl,z[gR]=[yM0],z));B.addProvider({provide:dfY,useClass:Bii});B.addProvider({provide:eDq,useClass:xTi});z=[].concat(_.u7(GN));
_.r("web_continuation_response_processing")&&z.push(_.Ly);z.push(wNM);_.r("enable_share_panel_navigation_logging_fix_on_web")&&z.push(_.FGR);B.addProvider({provide:YIv,useValue:z});B.addProvider({provide:Fox,useClass:uH1});B.addProvider({provide:nA9,useClass:Dkn});z={};B.addProvider((z.provide=IlR,z.useClass=gtr,z[gR]=[ir],z));_.fg.addLowPriorityJob(function(){LXk()});
z={};B.addProvider((z.provide=qD4,z.useFactory=function(c){return function(J){var g,t=(g=_.k(J.commandMetadata,_.Z4))==null?void 0:g.url;if(!t)throw new _.oX("No URL for PBJ Command",J);t=jPD(t,{pbj:"1"});g=RYX(t,{})||{};g=Object.assign({},g,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.eD("STS").toString()});J=_.sA({command:JSON.stringify(J),session_token:_.eD("XSRF_TOKEN")});return c.fetch(t,{method:"POST",headers:g,body:J})}},z[gR]=[nA9],z));
z=[];z.push(B.resolve(eDq));G={};G=(G.client_location=_.m9.getInstance(),G.consistency=_.aHQ(),G.entities=B.resolve(Lri),G.response_received_commands=B.resolve(Fox),G.store=B.resolve(_.kKx),G.tokens=B.resolve(eDq),G);_.r("web_service_params_response_processor")&&(B.addProvider({provide:upY,useFactory:function(){var c={};return c.CSI=HU0(),c.ECATCHER=hUR(),c}}),B.addProvider({provide:s7k,
useClass:e6f}),G.service_params=B.resolve(s7k));if(_.r("web_shorts_prefetch_service_enabled")){var Y=new gYn(B.resolve(_.uh));G.shorts_prefetch=Y}G.adblock_detection=B.resolve(IlR);B.addProvider({provide:_.ng,useClass:_.ng});Y=B.resolve(_.W0i);var d=[];_.r("PremiumClientSharedConfig__enable_att_context_processor")&&(B.addProvider({provide:jDY,useClass:Fr1}),d.push(B.resolve(jDY)));if(_.r("owl_pl_await")){var E={};B.addProvider((E.provide=tF9,E.useFactory=function(c){return new J6i(c)},E[gR]=[_.ng],
E));
d.push(B.resolve(tF9))}Bl9(Y,B.resolve(nA9),B.resolve(C71),G,B.resolve(_.uh),z,d,B.resolve(Qur),B.resolve(dfY));B.addProvider({provide:_.N_,useValue:_.RK.instance});_.r("start_client_gcf")&&B.addProvider({provide:Ig,useValue:aEF()});B.addProvider({provide:Eh1,useFactory:function(){return new Eh1(_.dO().resolve(_.ng),_.Wz.getInstance())}});
_.J5().parkOrScheduleJob(function(){ToK()},1,"eocs");
z={};B.addProvider((z.provide=qs,z.useClass=qs,z[gR]=[_.OI,_.N_],z));B.addProvider({provide:_.Xb6,useFactory:_.dF.getInstance});_.J5().parkOrScheduleJob(function(){_.dO().resolve(qs).refresh()},0,"eocs");
nQF(Udj.watchEndpointMap||{},Y.reelWatchEndpointMap||{},W.injector.resolve(_.N_));B.addProvider({provide:ok,useValue:_.LI.instance});_.r("kevlar_signal_collection_killswitch")||(z={},B.addProvider((z.provide=Ni0,z.useClass=Ni0,z[gR]=[pc,Du],z)),_.J5().parkOrScheduleJob(function(){_.dO().resolve(Ni0).record()},1,"eocs"));
_.r("web_debug_handler_registration_killswitch")||_.J5().parkOrScheduleJob(function(){uoy("DOWNLOAD_PES",ovu);_.r("offline_client_state_export_ks")||uoy("OFFLINE_CLIENT_STATE",l7k)},0,"eocs");
_.r("kevlar_prevent_polymer_dynamic_font_load")&&_.J5().parkOrScheduleJob(function(){var c=[_.sY(zkf),_.sY(GFj)];c=_.A(c);for(var J=c.next();!J.done;J=c.next()){J=J.value;var g=document.createElement("link");_.E0(g,J,"stylesheet");document.head.appendChild(g)}},1,"eocs");
z=W.injector.resolve(_.N_);_.bur.instance=new _.bur(z);ASx(lvb(new SXb(z)));z={};W.injector.addProvider((z.provide=Gp,z.useFactory=function(c){(c=c==null?void 0:c.getCurrentPage())?c=c.visibilityObserver:(o$f||(o$f=Yn8()),c=o$f);return c},z[gR]=[_.Y8(_.ij)],z.skipCache=!0,z));
B.addProvider({provide:_.Qb,useClass:Vw});B.addProvider({provide:nW,useClass:ybF});W.injector.addProvider({provide:mLM,useValue:MPF});B.addProvider({provide:H5R,useValue:ltT});B.addProvider({provide:O1M,useValue:sSX});B.addProvider({provide:_.YG,useValue:OeR});W=B.addProvider;em0||(em0=new uMn);W.call(B,{provide:_.aG,useValue:em0});B.addProvider({provide:_.py,useValue:_.eD("HTML_DIR")==="rtl"?"rtl":"ltr"});B.addProvider({provide:MQb,useClass:i7j});B.addProvider({provide:_.C8,useClass:RG});_.dO().addProvider({provide:R8j,
useValue:_.r("enable_web_delhi_icons")?lIq.concat(IIq):ktf.concat(CE1)});B.addProvider({provide:_.BW,useClass:_.BW});B.addProvider({provide:_.a1f,useValue:new MF9});B.addProvider({provide:$tD,useClass:ntY});B.addProvider({provide:MS,useClass:MS});B.addProvider({provide:WI,useClass:WI});W={};B.addProvider((W.provide=kZ,W.useClass=kZ,W[gR]=[_.N_,_.WD],W));B.addProvider({provide:tN,useClass:tN});B.addProvider({provide:wP9,useClass:lRj});B.addProvider({provide:Ya,useClass:Ya});B.addProvider({provide:FpH,
useValue:Vu6});B.addProvider({provide:_.ZX,useClass:Nk0});_.r("enable_payments_purchase_manager")&&B.addProvider({provide:Krq,useClass:fvK});B.addProvider({provide:B39,useFactory:function(){return function(c){return _.WPj(c)}}});
B.addProvider({provide:_.XQ9,useClass:K4K});W={};B.addProvider((W.provide=VZ,W.useClass=VZ,W[gR]=[_.XQ9],W));B.addProvider({provide:BI,useClass:BI});B.addProvider({provide:A3d,useValue:e0u});B.addProvider({provide:dc7,useValue:_.$Z1});B.addProvider({provide:aBr,useClass:k_K});B.addProvider({provide:mZq,useValue:zfK});W={};B.addProvider((W.provide=xZr,W.useClass=DZj,W[gR]=[mZq],W));W={};B.addProvider((W.provide=_.LD,W.useClass=Yk0,W[gR]=[xZr],W));W={};B.addProvider((W.provide=_.G8,W.useClass=z8,W[gR]=
[_.v7,_.M1],W));if(_.r("web_explore_hub_on_hover")||_.r("web_client_explore_hub_on_hover"))W={},B.addProvider((W.provide=YZ,W.useClass=YZ,W[gR]=[_.N_,IH],W));if(_.r("web_enable_renderer_logger")){var v=new l1Y;X4y(function(){v.abort()});
B.addProvider({provide:wpv,useValue:new L0K(v.signal)})}B.addProvider({provide:D39,useValue:voR});B.addProvider({provide:Mo8,useClass:tff})}},hoq);var F66={},Sdi=(F66.initialized={priority:10,callback:function(){if(!mk6){p2R();SUD("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.VW(_.Ci(SUD,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.r("log_heartbeat_with_lifecycles")){var W={};op.instance||(op.instance=new op);op.instance.install((W.document_visible={callback:bUQ,priority:10},W.document_hidden={callback:bUQ,priority:10},W))}else _.WT(document,"visibilitychange",bUQ);mk6=!0}(W=_.m1())&&W!=="UNDEFINED_CSN"&&xru(W)}},F66);var bRb={},jwr=(bRb.initialized={callback:function(W){var B=_.PA(232091),z=W.injector.resolve(_.Gz);_.ui(z,B);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?ApR()&&_.mx(z,B):(W=W.injector.resolve(B39)("refresh_detector"))&&(W.get("first_tab_load")?_.mx(z,B):W.set("first_tab_load","1"))}},bRb);var fIO={},ORf=(fIO.initialized={priority:10,callback:JpQ},fIO);var X56={},K66=(X56.initialized={priority:0,callback:function(){var W=new aG9,B="other";_.ZJ?B="chrome":_.P8?B="firefox":_.mH?B="safari":RX&&(B="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(z){W.increment(_.lO(),z,B)}).catch(function(){W.increment(_.lO(),!1,B)}):W.increment(_.lO(),!1,B)}},X56);var uAO={},eoi=(uAO.rendering={priority:8,callback:gdu},uAO);var mwi={},xwY=(mwi.rendering={priority:10,callback:bvR},mwi.rendered={callback:SCQ},mwi),Dwf={},Qwf=(Dwf.rendering={callback:bvR},Dwf.rendered={callback:SCQ},Dwf);var yy9=!1,qdj={},n$1=(qdj.initialized={priority:10,callback:function(){yy9||(F1X({didPatch:function(W){W.el&&DPv(W.el,W.props)},
didUnmount:function(W){mPt(W.el)}}),yy9=!0)}},qdj);var N46=/^\/shorts\/?$/;_.uk("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:{}}}}}}});_.r("kevlar_enable_mss")&&(_.usr(new DjM),DFx());
(function(){var W=document.querySelector("ytd-app");if(!W)throw Error("Pj");W=new Yf({root:W,injector:_.dO()});W.install(Sdi);var B={};W.install((B.initialized={priority:10,callback:L5r},B));_.r("wp_lat_b")&&(B={},W.install((B.initialized={priority:10,callback:function(){ZUk()}},B)));
B={};W.install((B.rendered={priority:0,callback:nPQ},B));B={};W.install((B.rendered={priority:0,callback:function(){_.fg.addLowPriorityJob(function(){_.EM1>1&&(eaQ(),yBR())},4E4)}},B));
W.install(FPn);W.install(jwr);W.install(n$1);RU0();W.install(ekO);W.install(le0);W.install(hkY);W.install(mf0);W.install(qbj);W.install(KPb);W.install(HRi);_.r("kevlar_enable_mss_lazy_load")&&W.install(ORf);W.install(Ieb);W.install(K66);if(!_.md("IS_SHELL_LOAD")||_.r("kevlar_fetch_initial_data_promise_client")||_.r("sw_nav_preload_pbj")){var z=_.gO(window.location.href);B=z&&z==="/watch";z=z&&z.match(N46);B?W.install(Qwf):z?W.install(eoi):W.install(xwY)}else W.install(Z3K);W.install(b31);_.r("web_enable_prefetching_videos_on_home")&&
W.install(Q89);_.r("start_client_gcf")&&W.install(KDi);W.install(OOO);(new Rfu).increment("INSTALLED");W.install(xd6);W.install(tw1);W.transition("initialized");cx8()})();
_.t8=[[["M2F5MHo2d2tpbmQjYnVxdng=","cnR5MTZydnZhbHVlI2lvY2tn"],"M3N2YmtrMkFEX1BMQUNFTUVOVF9LSU5EX0xBWU9VVF9JRF9FTlRFUkVEI2ptYTB5"]];_.gD=["Z3drZTlqY2dsb2JhbENhbGxiYWNrcyNmaTd6","ZnR5aGppNW9uQWJub3JtYWxpdHlEZXRlY3RlZCNicXc5Zg==","aG1ham9kbm9uQWRTa2lwI3JzZXpi","cXk2am1kaXJhd19wbGF5ZXJfcmVzcG9uc2UjcjczN28=","ZjF1MnVpOWFkc0VuZ2FnZW1lbnRQYW5lbFJlbmRlcmVyIzdrcDJv"];_.rW="Z3drZTlqY2dsb2JhbENhbGxiYWNrcyNmaTd6 ZnR5aGppNW9uQWJub3JtYWxpdHlEZXRlY3RlZCNicXc5Zg== aG1ham9kbm9uQWRTa2lwI3JzZXpi cXk2am1kaXJhd19wbGF5ZXJfcmVzcG9uc2UjcjczN28= ZTJyaG9pandlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyM1eGYxZw== OHJhdXB1a2FiX3NhX2VmIzRjcDdh ZjF1MnVpOWFkc0VuZ2FnZW1lbnRQYW5lbFJlbmRlcmVyIzdrcDJv".split(" ");
_._ModuleManager_initialize=function(W,B){if(!_.Xc){if(!_.Kp)return;_.usr(_.Kp())}_.Xc.setAllModuleInfoString(W,B)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.PW=function(W,B,z,G,Y){var d={};B&&(d[B]=z);G?d.errorType=G:Y&&(d.errorReason=Y);_.Sy(W,d);_.bp()};
_.ZA=function(W){var B=_.J5();return _.xUd(B,W,1)};
_.D8({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 W=this.query;W&&(this.full||W[0]==="("||(W="("+W+")"),this._mq=window.matchMedia(W),this._add(),this.queryHandler(this._mq))},
queryHandler:function(W){this._setQueryMatches(W.matches)}});var d6i;var pRO;var AW6=function(){};
_.p=AW6.prototype;_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._tapHandler=function(){};
_.p._focusChanged=function(){};
_.p._detectKeyboardFocus=function(){};
_.p._userActivate=function(){};
_.p._upHandler=function(){};
_.p._spaceKeyDownHandler=function(){};
_.p._spaceKeyUpHandler=function(){};
_.p._asyncClick=function(){};
_.p._pressedChanged=function(){};
_.p._ariaActiveAttributeChanged=function(){};
_.p._activeChanged=function(){};
_.p._controlStateChanged=function(){};
_.p._changedButtonState=function(){};
_.p._focusBlurHandler=function(){};
_.p._disabledChanged=function(){};
_.p._changedControlState=function(){};
_.p._downHandler=function(){};
_.p.ensureRipple=function(){};
_.p.getRipple=function(){};
_.p.hasRipple=function(){};
_.p._noinkChanged=function(){};
_.p._focusedChanged=function(){};
_.p._createRipple=function(){};
_.p.registered=function(){};
_.p._invalidChanged=function(){};
_.p.hasValidator=function(){};
_.p.validate=function(){};
_.p._getValidity=function(){};
_.p._requiredChanged=function(){};
_.p._valueChanged=function(){};
_.p._checkedChanged=function(){};
_.p._buttonStateChanged=function(){};
_.p._setPressed=function(){};
_.p._setPointerDown=function(){};
_.p._setReceivedFocusFromKeyboard=function(){};
_.p._setFocused=function(){};
AW6=_.D8({is:"tp-yt-paper-radio-button",_template:function(){if(pRO!==void 0)return pRO;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;d6i===void 0&&(d6i=document.createElement("template"));var G=d6i;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return pRO=W},
behaviors:[_.jkH],hostAttributes:{role:"radio","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"},name:{type:String,reflectToAttribute:!0}},ready:function(){this._rippleContainer=this.$.radioContainer},
attached:function(){_.BM(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var W=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),B=Math.floor(3*W);B%2!==W%2&&B++;this.updateStyles({"--paper-radio-button-ink-size":B+"px"})}})}});var ixi;var ErK;_.D8({_template:function(){if(ErK!==void 0)return ErK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;ixi===void 0&&(ixi=document.createElement("template"));var G=ixi;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return ErK=W},
is:"tp-yt-paper-radio-group",behaviors:[_.n2F],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(W){var B=this._valueToItem(W);if(!B||!B.hasAttribute("disabled")){if(this.selected){B=this._valueToItem(this.selected);if(this.selected==W)if(this.allowEmptySelection)W="";else{B&&(B.checked=!0);return}B&&
(B.checked=!1)}_.Gs.select.apply(this,[W]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(W){this._focusPrevious();W.preventDefault();this._activateFocusedItem()},
_onDownKey:function(W){this._focusNext();W.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(W){_.qMD._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(W){_.qMD._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Gs._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.U4._resetTabindices.apply(this,arguments);this.items.forEach(function(W){W.removeAttribute("aria-selected")},this)}});var TYK;_.eX("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var rF=function(){return _.S.apply(this,arguments)||this};
_.C(rF,_.S);_.p=rF.prototype;_.p.computeHasPrimaryIcon=function(W){return!(!W.icon&&!W.thumbnail)};
_.p.computeHasSecondary=function(W){return!(!W.secondaryIcon&&!W.secondaryNotificationText)};
_.p.computeHideSecondaryString=function(W){return!_.r("disable_hide_empty_secondary_string")&&!W.secondaryNotificationText};
_.p.computeCompactLinkStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.p.computeHasFitHeight=function(W){return W==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.p.isActiveEndpoint=function(W){return(W=this.get("commandMetadata.webCommandMetadata.url",W))?_.gO(window.location.href)!=="/account_transfer_channel"&&_.gO(window.location.href)!=="/gaia_link"&&_.gO(window.location.href)!=="/channel_switcher"||W!=="/account"?_.gO(window.location.href)===W:!0:!1};
_.p.onTap=function(){var W;((W=this.data)==null?0:W.serviceEndpoint)&&_.V0(this.hostElement,[this.data.serviceEndpoint])};
rF.prototype.onTap=rF.prototype.onTap;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],rF.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.y("design:type",Boolean)],rF.prototype,"active",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.y("design:type",String)],rF.prototype,"compactLinkStyle",void 0);
_.Q([_.F({computed:"computeIcon_(data.icon)"}),_.y("design:type",Object)],rF.prototype,"icon",void 0);_.Q([_.F({computed:"computeIcon_(data.secondaryIcon)"}),_.y("design:type",Object)],rF.prototype,"secondaryIcon",void 0);_.Q([_.F({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],rF.prototype,"hasSecondary",void 0);_.Q([_.F({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],rF.prototype,"hideSecondaryString",void 0);
_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rF.prototype,"onTap",null);_.Q([_.u({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],rF);
_.D(rF,"ytd-compact-link-renderer",function(){if(TYK!==void 0)return TYK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return TYK=W},{mode:1});var vr0;_.eX("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var kf=function(){var W=_.S.apply(this,arguments)||this;W.role="link";W.tabindex="0";W.actionMap=_.r("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 W};
_.C(kf,_.S);_.p=kf.prototype;_.p.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Ks()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.p.getCurrentTheme=function(){return _.ua()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Ks()};
_.p.onThemeSelected=function(W,B){var z=W||B?W:_.Xt(),G=(z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.LOQ(_.gO(window.location.href));_.oP(0,165,W);_.oP(0,174,B);this.prefs.save();G&&_.c0(this.hostElement,"yt-dark-mode-toggled-action",[z]);_.c0(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.p.onTap=function(){this.data.serviceEndpoint&&_.V0(this.hostElement,[this.data.serviceEndpoint])};
_.p.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.p.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.p.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
kf.prototype.onTap=kf.prototype.onTap;kf.prototype.dataChanged=kf.prototype.dataChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],kf.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],kf.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.JL),_.y("design:type",Object)],kf.prototype,"paperItemBehaviors",void 0);_.Q([_.F(),_.y("design:type",Object)],kf.prototype,"data",void 0);_.Q([_.F({value:function(){return _.IP()}}),
_.y("design:type",_.P1)],kf.prototype,"prefs",void 0);_.Q([_.F(),_.y("design:type",Object)],kf.prototype,"label",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],kf.prototype,"role",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],kf.prototype,"tabindex",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kf.prototype,"dataChanged",null);
_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kf.prototype,"onTap",null);_.Q([_.u({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],kf);
_.sV()(kf,"ytd-toggle-theme-compact-link-renderer",function(){if(vr0===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);vr0=W}W=vr0;return W},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var wR1,VD1;_.lV=function(W){return!!W.getOptions("captions")};
_.cWr=function(W){return(W=W.getOption("captions","track"))?!!W.displayName:!1};
_.CF=function(W,B){_.be(B,W,function(){return wR1[B]},function(z){wR1[B]=z;
if(!_.r("mweb_player_ve_show_ks")){var G=_.m1(0);G&&z&&_.U2(G,z)}})};
_.II=function(W){(W=wR1[W])&&_.mx(_.SK(),W)};
wR1={};var JWf;/*

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
*/
_.D8({_template:function(){if(JWf!==void 0)return JWf;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;VD1===void 0&&(VD1=document.createElement("template"));var G=VD1;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return JWf=W},
is:"tp-yt-paper-checkbox",behaviors:[_.jkH],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.BM(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var W=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),B="px",z=W.match(/[A-Za-z]+$/);z!==null&&(B=z[0]);W=parseFloat(W);z=8/3*W;B==="px"&&(z=Math.floor(z),z%2!==W%2&&z++);this.updateStyles({"--paper-checkbox-ink-size":z+
B})}})},
_computeCheckboxClass:function(W,B){var z="";W&&(z+="checked ");B&&(z+="invalid");return z},
_computeCheckmarkClass:function(W){return W?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.So4._createRipple.call(this)}});var grj=new _.J1("radioButtonSurveyOptionRenderer"),tD1=new _.J1("checkboxSurveyOptionRenderer");var sJ6;var Pkj;var Zxr=0,oI=function(){var W=_.S.call(this)||this;W.selected=!1;W.isOverlay=!1;W.inputId="toggle-option-"+Zxr;Zxr++;return W};
_.C(oI,_.S);oI.prototype.onTap=function(){_.v0(this.hostElement,"ytd-toggle-option-clicked")};
_.Q([_.F(),_.y("design:type",String)],oI.prototype,"label",void 0);_.Q([_.F(),_.y("design:type",String)],oI.prototype,"inputId",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],oI.prototype,"selected",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],oI.prototype,"isOverlay",void 0);_.Q([_.u({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.y("design:paramtypes",[])],oI);
_.D(oI,"ytd-toggle-option-renderer",function(){if(Pkj!==void 0)return Pkj;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Pkj=W},{mode:1});var hb=function(){var W=_.S.apply(this,arguments)||this;W.isToggleOption=!1;W.isOverlay=!1;return W};
_.C(hb,_.S);hb.prototype.onTap=function(W){W.preventDefault();this.data&&(W=!this.data.checked,this.set("data.checked",W),_.v0(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:W,value:this.data.value}))};
_.G5.Object.defineProperties(hb.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
hb.prototype.onTap=hb.prototype.onTap;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],hb.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],hb.prototype,"isToggleOption",void 0);_.Q([_.F(),_.y("design:type",Object)],hb.prototype,"isOverlay",void 0);_.Q([_.H("data.responseText"),_.y("design:type",String),_.y("design:paramtypes",[])],hb.prototype,"label",null);
_.Q([_.IN("ytd-toggle-option-clicked"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],hb.prototype,"onTap",null);_.Q([_.u({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],hb);
_.D(hb,"ytd-checkbox-survey-option-renderer",function(){if(sJ6!==void 0)return sJ6;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return sJ6=W},{mode:1});var rW0;var kWi;var HW=function(){var W=_.S.apply(this,arguments)||this;W.checked=!1;W.isToggleOption=!1;return W};
_.C(HW,_.S);HW.prototype.onTap=function(){this.data&&(this.checked?_.c0(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.c0(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
HW.prototype.onTap=HW.prototype.onTap;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],HW.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],HW.prototype,"checked",void 0);_.Q([_.F(),_.y("design:type",Object)],HW.prototype,"isToggleOption",void 0);_.Q([_.IN("ytd-toggle-option-clicked"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],HW.prototype,"onTap",null);
_.Q([_.u({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],HW);
_.D(HW,"ytd-radio-button-survey-option-renderer",function(){if(kWi!==void 0)return kWi;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return kWi=W},{mode:1});var FL=function(){var W=_.S.apply(this,arguments)||this;W.disableAnimation=!1;W.isToggleOption=!0;W.followUpSurveyCommand=null;W.selectedRatingEndpoint=null;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;W.styleOverrideAttribute=!0;W.isDarkMode=!1;W.isSubmitted=!1;W.roundedContainer=!0;W.improveShortsResponseRate=_.r("web_improve_shorts_response_rate");W.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 W};
_.C(FL,_.S);_.p=FL.prototype;
_.p.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"}}}}};
_.p.attached=function(){var W=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(z){var G;if((G=z[0])!=null&&G.isIntersecting){_.HJ().reportShown(W.hostElement);var Y;(Y=W.intersectionObserver)==null||Y.unobserve(W.hostElement)}},{rootMargin:"0px",
threshold:.6});var B;(B=this.intersectionObserver)==null||B.observe(this.hostElement)};
_.p.onDarkModeToggledAction=function(W){this.isDarkMode=W};
_.p.dataChanged=function(){var W;if(((W=this.data)==null?void 0:W.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var B;((B=this.data)==null?void 0:B.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var z,G,Y,d;this.darkColorPalette=(z=this.data)==null?void 0:(G=z.inlineContent)==null?void 0:(Y=G.compactVideoRenderer)==null?void 0:(d=Y.thumbnail)==null?
void 0:d.darkColorPalette;var E,v,c,J;this.lightColorPalette=(E=this.data)==null?void 0:(v=E.inlineContent)==null?void 0:(c=v.compactVideoRenderer)==null?void 0:(J=c.thumbnail)==null?void 0:J.lightColorPalette;var g,t;if(((g=this.data)==null?0:(t=g.inlineContent)==null?0:t.compactVideoRenderer)&&this.isShortsStyle){var P,Z,l,b;W=_.gS((P=this.data)==null?void 0:(Z=P.inlineContent)==null?void 0:(l=Z.compactVideoRenderer)==null?void 0:(b=l.thumbnail)==null?void 0:b.thumbnails);_.kw(this.hostElement,
{"--yt-background-url":"url("+W+")"})}};
_.p.handleRequestCompletion=function(){this.hostElement.hidden&&_.v0(this.hostElement,"yt-dismissible-item-dismissed")};
_.p.onPopupClosed=function(W){var B;((B=W.detail)==null?void 0:B.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.c0(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.p.handleInlineSurveyRatingSelect=function(W,B){var z=this;this.selectedRatingEndpoint=W;this.followUpSurveyCommand=B;this.expanded=!!W;this.getOptionRenderers().forEach(function(G,Y){z.notifyPath("followUpSurveyCommand.followUpOptions."+Y+".checkboxSurveyOptionRenderer.checked");z.set("followUpSurveyCommand.followUpOptions."+Y+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),W=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.c0(this.hostElement,"yt-reel-non-video-content-dismissal-command",[W]))};
_.p.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.c0(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var W,B=(W=this.data)==null?void 0:W.dismissalEndpoint;B&&this.ytComponentBehavior.resolveCommand(B)}};
_.p.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.c0(this.hostElement,"yt-close-popup-action"))};
_.p.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var W=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{W=this.getOptionRenderers().filter(function(G){return G.checked});
if(W.length===0)return;W=W.map(function(G){return G.responseEndpoint})}var B=[];
W.forEach(function(G,Y){Y!==0&&(G=_.k(G,_.fQ))&&G.feedbackToken&&B.push(G.feedbackToken)});
if(W=W[0]){var z={};B.length>0&&(z.extra_feedback_tokens=B);this.ytComponentBehavior.resolveCommand(W,{form:z})}}};
_.p.getOptionRenderers=function(){var W=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(B){W.isSingleSelect=!!_.k(B,grj);return W.isSingleSelect?_.k(B,grj):_.k(B,tD1)}):[]};
_.p.handleInlineSurveyOptionSelect=function(W){W=this.optionSelector.indexOf(W);W!==-1&&this.optionSelector.selectIndex(W)};
_.p.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.p.maybeGetBackgroundColor=function(W){return this.isDarkMode?W.section2Color:W.section3Color};
_.p.colorPaletteChanged=function(){var W=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;W=W&&this.maybeGetBackgroundColor(W);this.dismissibleEl.style.backgroundColor=!W||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.M_(W)};
_.G5.Object.defineProperties(FL.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
FL.prototype.colorPaletteChanged=FL.prototype.colorPaletteChanged;FL.prototype.onPopupClosed=FL.prototype.onPopupClosed;FL.prototype.handleRequestCompletion=FL.prototype.handleRequestCompletion;FL.prototype.dataChanged=FL.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],FL.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],FL.prototype,"actionHandlerBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],FL.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],FL.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.Hf("#follow-up-survey-options"),_.y("design:type",Object)],FL.prototype,"optionSelector",void 0);_.Q([_.F(),_.y("design:type",Object)],FL.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],FL.prototype,"disableAnimation",void 0);_.Q([_.F(),_.y("design:type",Object)],FL.prototype,"isToggleOption",void 0);_.Q([_.F(),_.y("design:type",Object)],FL.prototype,"followUpSurveyCommand",void 0);_.Q([_.F(),_.y("design:type",Object)],FL.prototype,"selectedRatingEndpoint",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],FL.prototype,"expanded",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],FL.prototype,"isSlimlineSurveyFollowUp",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],FL.prototype,"isShortsStyle",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],FL.prototype,"styleOverrideAttribute",void 0);_.Q([_.F(),_.y("design:type",Boolean)],FL.prototype,"isSingleSelect",void 0);_.Q([_.F(),_.y("design:type",Object)],FL.prototype,"isDarkMode",void 0);
_.Q([_.F(),_.y("design:type",Object)],FL.prototype,"lightColorPalette",void 0);_.Q([_.F(),_.y("design:type",Object)],FL.prototype,"darkColorPalette",void 0);_.Q([_.H("selectedRatingEndpoint","isShortsStyle"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],FL.prototype,"isOptionSelected",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],FL.prototype,"roundedContainer",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],FL.prototype,"improveShortsResponseRate",void 0);_.Q([_.Hf("#dismissible"),_.y("design:type",HTMLElement)],FL.prototype,"dismissibleEl",void 0);_.Q([_.Hf("#dismiss-button yt-icon-button"),_.y("design:type",HTMLElement)],FL.prototype,"dismissButtonEl",void 0);_.Q([_.Hf("#inline-survey-header yt-icon-button"),_.y("design:type",HTMLElement)],FL.prototype,"inlineHeaderDismissButtonEl",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],FL.prototype,"dataChanged",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],FL.prototype,"handleRequestCompletion",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],FL.prototype,"onPopupClosed",null);
_.Q([_.oN("darkColorPalette","lightColorPalette","isDarkMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],FL.prototype,"colorPaletteChanged",null);_.Q([_.u({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],FL);
_.D(FL,"ytd-inline-survey-renderer",function(){if(rW0!==void 0)return rW0;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return rW0=W},{mode:1});var l5f=["en-CA","en","es-MX","fr-CA"];_.Ck9=_.m(function(W){var B=_.EV(W,{isOverlay:!1,isModern:!1}),z=B.captionIconType,G=B.onClick;W=B.ariaLabel;var Y=B.ariaPressed,d=B.isOverlay,E=B.isModern;B=_.LG("button",function(J){_.CF(J,127299)});
var v=_.lF(function(J){_.II(127299);G==null||G(J);return!1}),c={};
return _.w("ytm-closed-captioning-button",{class:_.kG("ytmClosedCaptioningButtonHost",(c.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return z()===-1&&d()},c.ytmClosedCaptioningButtonIconDisabled=function(){return z()===-1&&!d()},c))},_.w("button",{el:B,
class:"ytmClosedCaptioningButtonButton",title:W,"aria-label":W,"aria-pressed":Y,"on:click":v},_.w(_.hY,{icon:function(){var J="",g=E();var t=g?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";g=g?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var P=_.IP().get("hl");t=!P||l5f.includes(P)?t:g;g=z();switch(g){case -1:case 0:J=t;break;case 1:J=t+"_FILLED";break;default:_.qT(g)}return J}})))},"Hf");
_.Ck9.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.xg=function(W){return function(B,z){var G=W||z.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(B,z,{get:function(){var Y;return this.$?this.$[G]:(Y=_.hH(this))==null?void 0:Y.querySelector("#"+G)},
enumerable:!0,configurable:!0})}};_.Dg=function(W){W=W===void 0?!1:W;_.bA.call(this);this.pubSub_=new _.PS(W);_.rH(this,this.pubSub_)};
_.TC(_.Dg,_.bA);_.Dg.prototype.subscribe=function(W,B,z){return this.isDisposed()?0:this.pubSub_.subscribe(W,B,z)};
_.Dg.prototype.unsubscribe=function(W,B,z){return this.isDisposed()?!1:this.pubSub_.unsubscribe(W,B,z)};
_.Dg.prototype.unsubscribeByKey=function(W){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(W)};
_.Dg.prototype.publish=function(W,B){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var tAj=function(){_.PW("ypcRedeemFlowStarted")},eb=function(W){_.PW("ypcRedeemFlowFailed",void 0,void 0,void 0,W)},s5f=function(W,B,z){B&&z&&(W.videos.forEach(function(G){G.videoId===B&&(G.itemId=z)}),W.recommendedVideos.forEach(function(G){G.videoId===B&&(G.itemId=z)}))};var PIj;var ZHq;/*

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
*/
_.D8({_template:function(){if(ZHq!==void 0)return ZHq;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;PIj===void 0&&(PIj=document.createElement("template"));var G=PIj;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return ZHq=W},
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(W,B){var z=this._resolveSrc(W);z!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",W===""||B?this._setLoading(!1):(this._resolvedSrc=z,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 W=this.$.sizedImgDiv.style,B=this.$.placeholder.style;W.backgroundSize=B.backgroundSize=this.sizing;W.backgroundPosition=B.backgroundPosition=this.sizing?this.position:"";W.backgroundRepeat=B.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(W){W=_.iY(W,this.$.baseURIAnchor.href);W.length>=2&&W[0]==="/"&&W[1]!=="/"&&(W=(location.origin||location.protocol+"//"+location.host)+W);return W}});var rh1;var kh0;_.D8({_template:function(){if(kh0!==void 0)return kh0;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;rh1===void 0&&(rh1=document.createElement("template"));var G=rh1;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return kh0=W},
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(W){return W?"false":"true"},
_headingChanged:function(W){var B=this.getAttribute("heading"),z=this.getAttribute("aria-label");typeof z==="string"&&z!==B||this.setAttribute("aria-label",W)},
_computeHeadingClass:function(W){return W?" over-image":""},
_computeAnimated:function(W){return W}});var lhi=new _.J1("addRendererToItemSectionAction");var CIn;var mZ=function(){return _.S.apply(this,arguments)||this};
_.C(mZ,_.S);mZ.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],mZ.prototype,"rendererBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],mZ.prototype,"dismissibleItemBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],mZ.prototype,"rendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],mZ.prototype,"data",void 0);_.Q([_.u({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],mZ);
_.D(mZ,"ytd-comment-history-entry-renderer",function(){if(CIn!==void 0)return CIn;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return CIn=W},{mode:1});var Ih0;_.eX("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.eX("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var xW=function(){return _.S.apply(this,arguments)||this};
_.C(xW,_.S);_.p=xW.prototype;_.p.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.onKeyUp=function(W){if(W.keyCode===13)this.onTap()};
_.p.onTap=function(){this.data.recordClickEndpoint&&_.dO().resolve(_.p4).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var W=this.data.navigationEndpoint;W&&_.k(W,_.dP)&&_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}})};
_.p.readChanged=function(){var W;_.Pf(this.hostElement,"unread",!((W=this.data)==null?0:W.read))};
_.p.dataChanged=function(){this.data&&_.Pf(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.p.computeThumbnailSize=function(){var W;return((W=this.data)==null?0:W.highPriorityNotification)?32:48};
_.p.getEndpointURL=function(W){return W&&!_.k(W,_.dP)?this.componentBehavior.computeHref_(W):null};
_.p.getEndpointData=function(W){return W&&!_.k(W,_.dP)?W:null};
xW.prototype.computeThumbnailSize=xW.prototype.computeThumbnailSize;xW.prototype.dataChanged=xW.prototype.dataChanged;xW.prototype.readChanged=xW.prototype.readChanged;xW.prototype.onKeyUp=xW.prototype.onKeyUp;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],xW.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],xW.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],xW.prototype,"data",void 0);_.Q([_.F({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.y("design:type",Number)],xW.prototype,"thumbnailSize",void 0);_.Q([_.IN("keyup"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],xW.prototype,"onKeyUp",null);
_.Q([_.oN("data.read"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xW.prototype,"readChanged",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xW.prototype,"dataChanged",null);_.Q([_.oN("data.highPriorityNotification"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xW.prototype,"computeThumbnailSize",null);
_.Q([_.u({is:"ytd-notification-renderer",disableElementRegistration:!0})],xW);
_.D(xW,"ytd-notification-renderer",function(){if(Ih0!==void 0)return Ih0;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Ih0=W},{mode:1});var okY;var Dy=function(){return _.S.apply(this,arguments)||this};
_.C(Dy,_.S);Dy.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"}}}};
Dy.prototype.computeActionButtonClass=function(W){return!W.actionButtons||W.actionButtons.length<=1?"single-button":W.description?"vertical-buttons":"horizontal-buttons"};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Dy.prototype,"data",void 0);_.Q([_.u({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Dy);
_.D(Dy,"ytd-playlist-show-metadata-renderer",function(){if(okY!==void 0)return okY;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return okY=W},{mode:1});var hVj;_.eX("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var Q8=function(){return _.S.apply(this,arguments)||this};
_.C(Q8,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Q8.prototype,"data",void 0);_.Q([_.u({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],Q8);
_.D(Q8,"ytd-purchase-item-renderer",function(){if(hVj!==void 0)return hVj;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return hVj=W},{mode:1});var HHq;var Fq1={};Fq1.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(W){if(W)return W.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(W){if(W==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.eX("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var y8=function(){return _.S.apply(this,arguments)||this};
_.C(y8,_.S);y8.prototype.onYtNavigate=function(W){var B=this.openPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);B&&(W.stopPropagation(),this.openPopupBehavior.openPopup(B))};
y8.prototype.onYtNavigate=y8.prototype.onYtNavigate;_.Q([_.h(Fq1.YtSimpleTextSectionBehavior),_.y("design:type",Object)],y8.prototype,"ytSimpleTextSectionBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],y8.prototype,"openPopupBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],y8.prototype,"data",void 0);
_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],y8.prototype,"onYtNavigate",null);_.Q([_.u({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],y8);
_.D(y8,"ytd-simple-text-section-renderer",function(){if(HHq!==void 0)return HHq;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return HHq=W},{mode:1});var SOY;_.eX("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var qP=function(){return _.S.apply(this,arguments)||this};
_.C(qP,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],qP.prototype,"data",void 0);_.Q([_.u({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],qP);
_.D(qP,"ytd-unlimited-page-feature-info-renderer",function(){if(SOY!==void 0)return SOY;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return SOY=W},{mode:1});var bHK;var j5f;var nU=function(){return _.S.apply(this,arguments)||this};
_.C(nU,_.S);nU.prototype.dataChanged=function(){if(this.data){var W=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);W&&(W=_.JY(W,screen.width),this.hostElement.style.backgroundImage="url("+W+")")}};
nU.prototype.dataChanged=nU.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],nU.prototype,"data",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nU.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],nU);
_.D(nU,"ytd-post-redemption-section-renderer",function(){if(j5f!==void 0)return j5f;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return j5f=W},{mode:1});var fhn;var NP=function(){return _.S.apply(this,arguments)||this};
_.C(NP,_.S);NP.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],NP.prototype,"data",void 0);_.Q([_.u({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],NP);
_.D(NP,"ytd-ypc-post-redemption-renderer",function(){if(fhn!==void 0)return fhn;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return fhn=W},{mode:1});_.eX("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var $W=function(){var W=_.S.apply(this,arguments)||this;W.MIN_CODE_LENGTH=12;W.MAX_CODE_LENGTH=24;return W};
_.C($W,_.S);_.p=$W.prototype;_.p.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.p.created=function(){this.riskService=new _.L_R;this.loadPaymentThenable=_.MUR(_.eD("YPC_MB_URL"))};
_.p.ready=function(){var W=this;this.code.addEventListener("keypress",function(B){W.onCodeInputKeypress(B)})};
_.p.dataChanged=function(){var W=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(B){B=_.A(B);for(var z=B.next();!z.done;z=B.next())z=z.value,z.type==="attributes"&&z.attributeName==="dark"&&W.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.p.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var W=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+W+")")}};
_.p.computeRedeemButton=function(W){(W=this.get("redeemButton.buttonRenderer",W))&&(W=Object.assign({},W,{serviceEndpoint:void 0}));return W};
_.p.onRedeemButtonTap=function(W){W.stopPropagation();tAj();this.redeemCode()};
_.p.redeemCode=function(){var W=this;this.isLoading=!0;var B=this.riskService.init();_.ma([B,this.loadPaymentThenable]).then(function(){var z=W.data.redeemButton.buttonRenderer.serviceEndpoint,G=_.Ua2(),Y=payments.business.integration.ClientTokenFactory.createClientToken(_.k(z,_.uwD).countryCode,G);G={c:W.code.value.trim(),rd:window.btoa(G),ctk:Y};z&&_.dO().resolve(_.p4).resolveCommand(z,{form:Object.assign({},G,{element:W.hostElement})})},function(){W.showGenericError();
eb("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.xr(Error("zo"))})};
_.p.onYtServiceRequestCompleted=function(W){W.stopPropagation();this.isLoading=!1;var B,z;this.errorMessage=(B=W.detail)==null?void 0:(z=B.data)==null?void 0:z.errorMessage;var G,Y;this.postRedemptionRenderer=(G=W.detail)==null?void 0:(Y=G.data)==null?void 0:Y.renderer;var d,E;if(W=(d=W.detail)==null?void 0:(E=d.data)==null?void 0:E.redirectEndpoint)this.isLoading=!0,_.v0(this.hostElement,"yt-navigate",{endpoint:W});this.errorMessage?eb("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
W)&&_.PW("ypcRedeemFlowSucceeded")};
_.p.onYtServiceRequestError=function(W){W.stopPropagation();this.isLoading=!1;if(W=this.get("detail.error.message",W))this.errorMessage=_.Bg(W);eb("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.p.onInvokeInstrumentManagerActionCompleted=function(W){W.stopPropagation();this.redeemCode()};
_.p.onInvokeInstrumentManagerActionError=function(W){W.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",W)){case "instrumentManagerLoadError":this.showGenericError();eb("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();eb("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.PW("ypcRedeemFlowCancelled")}};
_.p.onInput=function(){var W=this;_.BJ(this,"onInput",function(){var B=W.code.value.trim();W.redeemButtonDisabled=B.length<W.MIN_CODE_LENGTH||B.length>W.MAX_CODE_LENGTH},200)};
_.p.onCodeInputKeypress=function(W){W.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(tAj(),this.redeemCode())};
_.p.computeImageUrl=function(W){return W?_.JY(W.thumbnails,600):null};
_.p.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
$W.prototype.onInvokeInstrumentManagerActionError=$W.prototype.onInvokeInstrumentManagerActionError;$W.prototype.onInvokeInstrumentManagerActionCompleted=$W.prototype.onInvokeInstrumentManagerActionCompleted;$W.prototype.onYtServiceRequestError=$W.prototype.onYtServiceRequestError;$W.prototype.onYtServiceRequestCompleted=$W.prototype.onYtServiceRequestCompleted;$W.prototype.dataChanged=$W.prototype.dataChanged;
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],$W.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$W.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],$W.prototype,"isLoading",void 0);_.Q([_.F(),_.y("design:type",Boolean)],$W.prototype,"redeemButtonDisabled",void 0);
_.Q([_.F(),_.y("design:type",Object)],$W.prototype,"errorMessage",void 0);_.Q([_.F(),_.y("design:type",Object)],$W.prototype,"postRedemptionRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],$W.prototype,"observer",void 0);_.Q([_.Hf("#code"),_.y("design:type",HTMLInputElement)],$W.prototype,"code",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$W.prototype,"dataChanged",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$W.prototype,"onYtServiceRequestCompleted",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$W.prototype,"onYtServiceRequestError",null);
_.Q([_.IN("yt-invoke-instrument-manager-action-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$W.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.Q([_.IN("yt-invoke-instrument-manager-action-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$W.prototype,"onInvokeInstrumentManagerActionError",null);_.Q([_.u({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],$W);
_.D($W,"ytd-redeem-code-renderer",function(){if(bHK!==void 0)return bHK;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return bHK=W},{mode:1});var OHb;_.eX("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var LU=function(){var W=_.S.apply(this,arguments)||this;W.businessEmailDisplayState="HIDE_SECTION";return W};
_.C(LU,_.S);_.p=LU.prototype;_.p.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}}}}}};
_.p.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"};
_.p.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.p.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.NO(_.uTM),this.businessEmailDisplayState="CAPTCHA"))};
_.p.onYtServiceRequestCompleted=function(W){var B;if((B=W.detail.data)==null?0:B.businessEmail)this.businessEmail=W.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var z;if((z=W.detail.data)==null?0:z.errorMessage)this.businessEmailErrorMessage=W.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.p.computeEmailHref=function(W){return"mailto:"+W};
_.p.computeSafeUrl=function(W){if(W)return _.yN(W)};
_.p.onBusinessEmailCaptchaSubmit=function(){var W;(W=this.data)!=null&&W.onBusinessEmailRevealClickCommand&&(W=this.JSC$21732_captchaTextarea.value)&&(W={recaptcha_response_token:W,channel_id:this.data.channelId},_.dO().resolve(_.p4).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},W,{element:this.hostElement})}))};
_.p.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.G5.Object.defineProperties(LU.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 W,B;return!((W=this.data)==null||!W.primaryLinks)&&!((B=this.data)==null?0:B.links)&&this.data.primaryLinks.every(function(z){return z.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var W,B;return!((W=this.data)==null||!W.primaryLinks)&&!((B=this.data)==null?0:B.links)&&!this.shouldShowNewLinks}}});
LU.prototype.onYtServiceRequestCompleted=LU.prototype.onYtServiceRequestCompleted;LU.prototype.dataChanged=LU.prototype.dataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],LU.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.Hf("#g-recaptcha-response"),_.y("design:type",HTMLTextAreaElement)],LU.prototype,"JSC$21732_captchaTextarea",void 0);_.Q([_.F(),_.y("design:type",Object)],LU.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],LU.prototype,"businessEmailDisplayState",void 0);_.Q([_.F(),_.y("design:type",String)],LU.prototype,"businessEmail",void 0);_.Q([_.F(),_.y("design:type",String)],LU.prototype,"businessEmailErrorMessage",void 0);
_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LU.prototype,"hideDetailsSection",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LU.prototype,"dataChanged",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LU.prototype,"shouldShowNewLinks",null);_.Q([_.H("data","shouldShowLinks"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LU.prototype,"shouldShowLegacyLinks",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],LU.prototype,"onYtServiceRequestCompleted",null);_.Q([_.u({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],LU);
_.D(LU,"ytd-channel-about-metadata-renderer",function(){if(OHb!==void 0)return OHb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return OHb=W},{mode:1});var Xj9;_.eX("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var UU=function(){return _.S.apply(this,arguments)||this};
_.C(UU,_.S);UU.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],UU.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],UU.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Number)],UU.prototype,"lockupContainerType",void 0);_.Q([_.F(),_.y("design:type",String)],UU.prototype,"thumbnailFixedWidth",void 0);
_.Q([_.u({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],UU);
_.D(UU,"ytd-channel-featured-content-renderer",function(){if(Xj9!==void 0)return Xj9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Xj9=W},{mode:1});var Kqi;_.eX("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var MP=function(){var W=_.S.apply(this,arguments)||this;W.roundContainer=!0;W.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return W};
_.C(MP,_.S);_.p=MP.prototype;_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.p.dataChanged=function(){this.imageWidth=this.imageHeight=24;var W=this.data;W.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!W.style&&W.image&&W.image.thumbnails.length&&(W=W.image.thumbnails[0],this.imageWidth=W.width||0,this.imageHeight=W.height||0)};
_.p.computeSource=function(W){return W.secondarySource?_.zR(W.secondarySource):_.zR(W.source)};
_.p.computeClarifyStyle=function(W){return W?W.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.p.isLargeStyle=function(W){return W==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.p.computeBackgroundStyle=function(W){return W?W.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.p.computeHasActionButton=function(W){return!!W.actionButton};
_.p.computeHasBottomSection=function(W){return!!W.ctaHasBottomSection};
_.p.computeIsSourceMissing=function(W){return W.ctaHasBottomSection===!1?!0:W&&this.computeSource(W)?!1:!0};
_.p.computeSecondaryEndpoint=function(W){return W.secondaryEndpoint||W.endpoint};
MP.prototype.dataChanged=MP.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],MP.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Number)],MP.prototype,"imageWidth",void 0);_.Q([_.F(),_.y("design:type",Number)],MP.prototype,"imageHeight",void 0);
_.Q([_.F({computed:"computeSecondaryEndpoint(data)"}),_.y("design:type",Object)],MP.prototype,"secondaryEndpoint",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.y("design:type",Boolean)],MP.prototype,"hasActionButton",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.y("design:type",Boolean)],MP.prototype,"hasBottomSection",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.y("design:type",Boolean)],MP.prototype,"missingSource",void 0);_.Q([_.F({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],MP.prototype,"icon",void 0);_.Q([_.F({computed:"computeIcon_(data.secondaryIcon)"}),_.y("design:type",String)],MP.prototype,"secondaryIcon",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.y("design:type",String)],MP.prototype,"clarifyStyle",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.y("design:type",String)],MP.prototype,"backgroundStyle",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],MP.prototype,"roundContainer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],MP.prototype,"amsterdamEnabled",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],MP.prototype,"dataChanged",null);
_.Q([_.u({is:"ytd-clarification-renderer",disableElementRegistration:!0})],MP);
_.D(MP,"ytd-clarification-renderer",function(){if(Kqi!==void 0)return Kqi;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Kqi=W},{mode:1});var uz9;var eVf;var aQ=function(){var W=_.S.apply(this,arguments)||this;W.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return W};
_.C(aQ,_.S);_.p=aQ.prototype;_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.p.computeIcon=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.p.computeUseContacts=function(W){return!!W.contacts&&W.contacts.length>0};
_.p.computePhoneContact=function(W){var B,z;return(B=W.contacts)==null?void 0:(z=B.find(function(G){var Y;return(G==null?void 0:(Y=G.icon)==null?void 0:Y.iconType)==="PHONE"}))==null?void 0:z.actionText};
_.p.computeSmsContact=function(W){var B,z;return(B=W.contacts)==null?void 0:(z=B.find(function(G){var Y;return(G==null?void 0:(Y=G.icon)==null?void 0:Y.iconType)==="SMS"}))==null?void 0:z.actionText};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],aQ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],aQ.prototype,"amsterdamEnabled",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.y("design:type",Boolean)],aQ.prototype,"useContacts",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.y("design:type",String)],aQ.prototype,"phoneContact",void 0);_.Q([_.u({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],aQ);
_.D(aQ,"ytd-single-action-emergency-support-renderer",function(){if(eVf!==void 0)return eVf;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return eVf=W},{mode:1});_.eX("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var RQ=function(){var W=_.S.apply(this,arguments)||this;W.roundedContainer=!0;W.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return W};
_.C(RQ,_.S);RQ.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"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],RQ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],RQ.prototype,"roundedContainer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],RQ.prototype,"amsterdamEnabled",void 0);
_.Q([_.u({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],RQ);
_.D(RQ,"ytd-emergency-onebox-renderer",function(){if(uz9!==void 0)return uz9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return uz9=W},{mode:1});var mb1;_.eX("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Wj=function(){return _.S.apply(this,arguments)||this};
_.C(Wj,_.S);Wj.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"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Wj.prototype,"data",void 0);_.Q([_.u({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Wj);
_.D(Wj,"ytd-exploratory-results-renderer",function(){if(mb1!==void 0)return mb1;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return mb1=W},{mode:1});var xbr;_.eX("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Bj=function(){var W=_.S.apply(this,arguments)||this;W.messageData=null;return W};
_.C(Bj,_.S);_.p=Bj.prototype;_.p.onServiceRequestCompleted=function(W,B){W=B.actions||[];B=0;for(var z=W.length;B<z;B++){var G=W[B],Y=void 0,d=void 0;if((Y=_.k(G,_.QA))==null?0:(d=Y.item)==null?0:d.messageRenderer)this.messageData=_.k(G,_.QA).item.messageRenderer}};
_.p.dataChanged=function(){var W=this.data;this.hostElement.hidden=!1;_.Pf(this.hostElement,"is-channel",W&&!W.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.p.computeThumbnailWidth=function(W){return W?126:56};
_.p.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.p.onSubmitTap=function(){var W=this.data,B=this.selectedResponseIndex;W!==void 0&&B!==void 0&&(W=W.responses[B],W.responseData&&_.dO().resolve(_.p4).resolveCommand(W.responseData,{form:{element:this.hostElement}}))};
_.p.onDismissTap=function(){this.hostElement.hidden=!0;var W=this.data;W!==void 0&&W.dismissalEndpoint&&_.dO().resolve(_.p4).resolveCommand(W.dismissalEndpoint,{form:{element:this.hostElement}})};
_.p.updateSelectedResponseIndexFromBinding=function(W){this.selectedResponseIndex=W.detail.value};
Bj.prototype.onSelectedResponseIndexChange=Bj.prototype.onSelectedResponseIndexChange;Bj.prototype.dataChanged=Bj.prototype.dataChanged;Bj.prototype.onServiceRequestCompleted=Bj.prototype.onServiceRequestCompleted;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Bj.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Bj.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Bj.prototype,"messageData",void 0);
_.Q([_.F(),_.y("design:type",Number)],Bj.prototype,"selectedResponseIndex",void 0);_.Q([_.Hf("#submit-button"),_.y("design:type",HTMLButtonElement)],Bj.prototype,"submitButton",void 0);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],Bj.prototype,"onServiceRequestCompleted",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bj.prototype,"dataChanged",null);
_.Q([_.oN("selectedResponseIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bj.prototype,"onSelectedResponseIndexChange",null);_.Q([_.u({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Bj);
_.D(Bj,"ytd-feedback-elicitation-single-question-renderer",function(){if(xbr!==void 0)return xbr;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return xbr=W},{mode:1});var Dbr;var zh=function(){return _.S.apply(this,arguments)||this};
_.C(zh,_.S);zh.prototype.computeThumbnailWidth=function(W){return W?602:428};
zh.prototype.updateWideFromBinding=function(W){this.wide=W.detail.value};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],zh.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],zh.prototype,"wide",void 0);_.Q([_.u({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],zh);
_.D(zh,"ytd-newspaper-hero-video-renderer",function(){if(Dbr!==void 0)return Dbr;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Dbr=W},{mode:1});var Q5i;var Gh=function(){return _.S.apply(this,arguments)||this};
_.C(Gh,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Gh.prototype,"rendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Gh.prototype,"data",void 0);_.Q([_.u({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Gh);
_.D(Gh,"ytd-newspaper-mini-video-renderer",function(){if(Q5i!==void 0)return Q5i;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Q5i=W},{mode:1});var yhK;_.eX("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Yk=function(){return _.S.apply(this,arguments)||this};
_.C(Yk,_.S);Yk.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"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Yk.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Yk.prototype,"data",void 0);_.Q([_.u({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Yk);
_.D(Yk,"ytd-newspaper-renderer",function(){if(yhK!==void 0)return yhK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return yhK=W},{mode:1});var qOf;_.eX("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var dx=function(){var W=_.S.apply(this,arguments)||this;W.isSegment=!1;W.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};W.nextContinuation={continuationType:"playlistVideoListContinuation"};return W};
_.C(dx,_.S);_.p=dx.prototype;_.p.attached=function(){_.dO();var W;(W=_.dO().resolve(_.Y8(_.uX)))!=null&&(W.playlistVideoListElement=this.hostElement)};
_.p.detached=function(){var W;(W=_.dO().resolve(_.Y8(_.uX)))!=null&&(W.playlistVideoListElement=void 0);W=_.dO().resolve(_.Y8(_.uC));_.r("web_enable_voting_animation")&&W&&(W.parentElem=void 0,W.videos=[],W.continuationsPresent=!1,W.showRefreshPill=!1)};
_.p.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"}}}}}};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.p.dataChanged=function(){var W=_.dO().resolve(_.Y8(_.uC));if(_.r("web_enable_voting_animation")&&this.data&&W){var B=_.tH(this.hostElement).querySelector("#contents");B&&(W.parentElem=B);W.addVideos(this.data.contents)}_.JbR(this.ytReorderableBehavior)};
_.p.onRendererstamperFinished=function(){this.canReorder&&_.gfQ(this.ytReorderableBehavior,_.tH(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.p.onPlaylistReloading=function(){this.isReloading=!0};
_.p.onUpdateSetVideoId=function(W){if(W.detail&&this.data&&this.data.contents){var B=W.detail;W=this.data.contents.findIndex(function(Y){var d;return((d=Y.playlistVideoRenderer)==null?void 0:d.videoId)===B.videoId});
if(!(W<0)&&B.setVideoId&&(this.set("data.contents."+W+".playlistVideoRenderer.setVideoId",B.setVideoId),_.r("web_enable_voting_animation"))){var z;if(W=_.k((z=this.data.contents[W].playlistVideoRenderer)==null?void 0:z.engagementBar,_.JSk)){var G;(G=W.actions)==null||G.forEach(function(Y){if(Y=_.k(Y,_.gC0))Y.itemId=B.setVideoId})}(z=_.dO().resolve(_.Y8(_.uC)))&&s5f(z,B.videoId,B.setVideoId)}}};
_.p.computeContentsClass=function(W){return W?"reloading":""};
_.p.computeIsSortable=function(W,B){return W&&B>0&&!this.isSegment&&!_.r("shorts_in_playlists_web")};
_.p.computeIsEditable=function(W){return W};
_.p.computeCanReorder=function(W){return W};
_.p.handlePlaylistRemoveVideosAction=function(W){if(this.get("playlistRemoveVideosAction.setVideoIds",W)&&this.data&&this.data.contents){W=_.k(W,_.wr4).setVideoIds;for(var B=this.data.contents.length-1;B>=0;){var z=this.data.contents[B].playlistVideoRenderer;z&&z.setVideoId&&W.includes(z.setVideoId)&&this.splice("data.contents",B,1);B--}_.c0(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.p.updateIndices=function(){if(this.data&&this.data.contents)for(var W=0;W<this.data.contents.length;W++)this.set("data.contents."+W+".playlistVideoRenderer.index",_.Bg(String(W+1)))};
_.p.handleDrop=function(W){W=W.currDragItem;var B=_.mr(W.parentNode.childNodes,W),z=this.data.contents.splice(Number(_.zR(W.data.index))-1,1)[0];this.data.contents.splice(B,0,z);B=B?this.get("contents."+(B-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();W=this.buildReorderServiceEndpoint(W.data.setVideoId,B);this.ytComponentBehavior.resolveCommand(W)};
_.p.buildReorderServiceEndpoint=function(W,B){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",W),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",B),this.data.onReorderEndpoint):null};
_.p.handleUpdatePlaylistAction=function(W){var B;(W=_.k((B=_.k(W,_.Vr4))==null?void 0:B.updatedRenderer,_.pOT))&&this.canReorder!==W.canReorder&&this.set("data.canReorder",W.canReorder);W&&W.contents&&(this.set("data.contents",W.contents),this.isReloading=!1);W&&W.continuations&&this.set("data.continuations",W.continuations)};
_.p.handleAddRendererToItemSectionAction=function(W){var B,z=(B=_.k(W,lhi))==null?void 0:B.renderer,G;z&&((G=_.k(W,lhi))==null?void 0:G.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,z),W=_.dO().resolve(_.Y8(_.uC)),_.r("web_enable_voting_animation")&&W&&(z&&(B=_.VUr(z))&&W.recommendedVideos.push({itemId:B,videoId:_.tU2(z),voteCount:_.sMt(z),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.p.isVotingEnabledOnPlaylist=function(W){if(!W)return!1;W=_.A(W);for(W=W.next();!W.done;W=W.next()){var B=void 0;return!!_.k((B=W.value.playlistVideoRenderer)==null?void 0:B.engagementBar,_.JSk)}return!1};
_.p.onAppendContinuationItemsActionFinished=function(){var W;this.isVotingEnabledOnPlaylist((W=this.data)==null?void 0:W.contents)&&(this.updateIndices(),W=_.dO().resolve(_.Y8(_.uC)),_.r("web_enable_voting_animation")&&W&&this.data&&W.addVideos(this.data.contents))};
_.p.updateVideoData=function(W){if(W.detail&&this.data&&this.data.contents){var B=W.detail;W=B.toIdx;var z=B.itemId,G=B.newVoteCount,Y=B.voteStatus;B=B.hideItem;var d,E,v=(d=this.data)==null?void 0:(E=d.contents)==null?void 0:E.findIndex(function(t){return _.VUr(t)===z});
if(!(v<0)){d=this.data.contents[v];var c;if((c=d.playlistVideoRenderer)==null?0:c.voteCount)d.playlistVideoRenderer.voteCount=G;var J;if(c=_.k((J=d.playlistVideoRenderer)==null?void 0:J.engagementBar,_.JSk)){var g;(g=c.actions)==null||g.forEach(function(t){(t=_.k(t,_.gC0))&&t.initialState&&(t.initialState.votes=G,t.initialState.status=Y)})}this.data.contents.splice(v,1);
B||this.data.contents.splice(W,0,d);this.updateIndices()}}};
dx.prototype.updateVideoData=dx.prototype.updateVideoData;dx.prototype.onAppendContinuationItemsActionFinished=dx.prototype.onAppendContinuationItemsActionFinished;dx.prototype.onUpdateSetVideoId=dx.prototype.onUpdateSetVideoId;dx.prototype.onPlaylistReloading=dx.prototype.onPlaylistReloading;dx.prototype.onRendererstamperFinished=dx.prototype.onRendererstamperFinished;dx.prototype.dataChanged=dx.prototype.dataChanged;
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],dx.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],dx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],dx.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.ZY.YtNextContinuationBehavior),_.y("design:type",Object)],dx.prototype,"ytNextContinuationBehavior",void 0);
_.Q([_.h(_.toQ),_.y("design:type",Object)],dx.prototype,"ytReorderableBehavior",void 0);_.Q([_.h(_.Pl),_.y("design:type",Object)],dx.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],dx.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],dx.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],dx.prototype,"isReloading",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],dx.prototype,"isSegment",void 0);_.Q([_.F({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.y("design:type",Boolean)],dx.prototype,"isSortable",void 0);_.Q([_.F({computed:"computeIsEditable(data.isEditable)"}),_.y("design:type",Boolean)],dx.prototype,"isEditable",void 0);_.Q([_.F({computed:"computeCanReorder(data.canReorder)"}),_.y("design:type",Boolean)],dx.prototype,"canReorder",void 0);
_.Q([_.F({value:101}),_.y("design:type",Number)],dx.prototype,"scrollMargin",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dx.prototype,"dataChanged",null);_.Q([_.IN("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dx.prototype,"onRendererstamperFinished",null);
_.Q([_.IN("yt-playlist-reloading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dx.prototype,"onPlaylistReloading",null);_.Q([_.IN("yt-update-set-video-id"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],dx.prototype,"onUpdateSetVideoId",null);
_.Q([_.IN("yt-append-continuation-items-action-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dx.prototype,"onAppendContinuationItemsActionFinished",null);_.Q([_.IN("yt-update-video-data-voting-animation"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],dx.prototype,"updateVideoData",null);_.Q([_.u({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],dx);
_.D(dx,"ytd-playlist-video-list-renderer",function(){if(qOf!==void 0)return qOf;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return qOf=W},{mode:_.PJ("kevlar_poly_si_batch_j047")?1:2});var nki;var pH=function(){return _.S.apply(this,arguments)||this};
_.C(pH,_.S);pH.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"}}}}};
pH.prototype.onTextWrapperTap=function(W){var B=this.data&&this.data.navigationEndpoint;B&&!_.p2(_.AH(W),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.v0(this.hostElement,"yt-navigate",{endpoint:B})};
pH.prototype.dataChanged=function(){var W=this.get("data.offerButton.buttonRenderer.serviceEndpoint");W&&W.commandMetadata&&_.k(W.commandMetadata,_.$N)&&_.k(W.commandMetadata,_.$N).fireAutomatically&&_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}})};
pH.prototype.dataChanged=pH.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],pH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.P$),_.y("design:type",Object)],pH.prototype,"ytdLockupBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],pH.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],pH.prototype,"useBiggerThumbs",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.EA("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],pH.prototype,"biggerThumbsStyle",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],pH.prototype,"leftAligned",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pH.prototype,"dataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-movie-renderer"})],pH);
_.D(pH,"ytd-movie-renderer",function(){if(nki!==void 0)return nki;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return nki=W},{mode:1});var Nx9;var Ah=function(){var W=_.S.apply(this,arguments)||this;W.rounded=!0;W.pageAttachedTo=void 0;W.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return W};
_.C(Ah,_.S);Ah.prototype.attached=function(){this.pageAttachedTo=_.dO().resolve(_.ij).getCurrentPage();_.v0(this.hostElement,"yt-player-attached",this.player)};
Ah.prototype.detached=function(){var W;if((W=this.pageAttachedTo)==null?0:W.hostElement)_.v0(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Ah.prototype.dataChanged=function(){var W;if((W=this.data)==null?0:W.videoId)W={video_id:this.data.videoId,autoplay:!0},!_.r("miniplayer_stop_channel_video_autoplay_killswitch")&&_.dO().resolve(_.Qb).isMiniplayerActive()&&(W.pause_at_start=!0,W.autoplay=!1),this.player.loadVideoWithPlayerVars(W)};
Ah.prototype.handleSignalActionPausePlayer=function(){_.vA().pause()};
Ah.prototype.dataChanged=Ah.prototype.dataChanged;_.Q([_.F(),_.y("design:type",Object)],Ah.prototype,"data",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ah.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Ah.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ah.prototype,"rounded",void 0);_.Q([_.Hf("#player"),_.y("design:type",Object)],Ah.prototype,"player",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ah.prototype,"dataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Ah);
_.D(Ah,"ytd-channel-video-player-renderer",function(){if(Nx9!==void 0)return Nx9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Nx9=W},{mode:1});var $bn;var Lqj;var Ub0;var iI=function(){var W=_.S.apply(this,arguments)||this;W.playing=!1;W.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Lu(W);W.active=!1;return W};
_.C(iI,_.S);_.p=iI.prototype;_.p.detached=function(){this.stop()};
_.p.play=function(){var W=this,B,z,G,Y,d;return _.T(function(E){if(E.nextAddress==1)return W.active=!0,B=W.get("data.inlinePlaybackEndpoint.watchEndpoint"),z=B.videoId||W.data.videoId,G=B.startTimeSeconds||0,Y=B.playerParams||null,_.r("kevlar_player_update_killswitch")?E.yield(W.playerEl.update({args:{video_id:z,startSeconds:G,player_params:Y}}),2):(W.playerEl.loadVideoWithPlayerVars({video_id:z,startSeconds:G,player_params:Y,autoplay:!0}),E.jumpTo(2));if(E.nextAddress!=4)return E.yield(W.playerEl.getPlayerPromise(),
4);d=E.yieldResult;d.unloadModule("annotations_module");d.addEventListener("onStateChange",function(v){W.onPlayerStateChange(v)});
_.HG(E)})};
_.p.onPlayerStateChange=function(W){if(this.active)switch(this.playing=W===1,W){case 1:_.v0(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.v0(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.p.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.p.resize=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return z.yield(W.playerEl.getPlayerPromise(),2);B=z.yieldResult;B.setSize(NaN,NaN);_.HG(z)})};
_.Q([_.F(),_.y("design:type",Object)],iI.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],iI.prototype,"playing",void 0);_.Q([_.F(),_.y("design:type",Object)],iI.prototype,"playerId",void 0);_.Q([_.Hf("#player"),_.y("design:type",Object)],iI.prototype,"playerEl",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],iI);
_.D(iI,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(Ub0!==void 0)return Ub0;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Ub0=W},{mode:1});var MA1;var ahY;var EO=function(){var W=_.S.apply(this,arguments)||this;W.width=0;return W};
_.C(EO,_.S);_.p=EO.prototype;_.p.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Co(this,this.onEnded));this.mp4El.addEventListener("error",_.Co(this,this.onError))};
_.p.detached=function(){this.videoEl.removeEventListener("ended",_.Co(this,this.onEnded));this.mp4El.removeEventListener("error",_.Co(this,this.onError))};
_.p.play=function(){var W=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var B=this.videoEl.play();B?B.then(function(){W.handleVideoStartPlaying()}).catch(function(){_.v0(W.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.v0(this.hostElement,"yt-video-thumbnail-not-playing")};
_.p.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.p.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.p.dataChanged=function(){var W;if((W=this.data)==null?0:W.thumbnailPlaceholder)W=_.JY(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+W+")";this.stop();this.autoplay&&this.play()};
_.p.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.p.onEnded=function(){this.stop();_.v0(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.p.onError=function(){_.v0(this.hostElement,"yt-video-thumbnail-error")};
_.p.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.p.getVideoThumbnail=function(W){if(W&&W.length)return W[0]};
EO.prototype.dataChanged=EO.prototype.dataChanged;_.Q([_.F(),_.y("design:type",Object)],EO.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],EO.prototype,"animatePlaceholderOnEntrance",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],EO.prototype,"autoplay",void 0);_.Q([_.F({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.y("design:type",Object)],EO.prototype,"videoThumbnail",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],EO.prototype,"loop",void 0);_.Q([_.F(),_.y("design:type",Boolean)],EO.prototype,"isVideoPlaying",void 0);_.Q([_.F(),_.y("design:type",Object)],EO.prototype,"width",void 0);_.Q([_.Hf("#mp4"),_.y("design:type",HTMLElement)],EO.prototype,"mp4El",void 0);_.Q([_.Hf("#placeholder"),_.y("design:type",HTMLElement)],EO.prototype,"placeholderEl",void 0);_.Q([_.Hf("#video"),_.y("design:type",HTMLVideoElement)],EO.prototype,"videoEl",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],EO.prototype,"dataChanged",null);_.Q([_.NJ({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],EO);
_.D(EO,"yt-video-as-thumbnail-details",function(){if(ahY===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;MA1===void 0&&(MA1=document.createElement("template"));var G=MA1;z.call(B,G.content.cloneNode(!0),W.content.firstChild);ahY=W}W=ahY;return W},{mode:2});var Th=function(){var W=_.S.apply(this,arguments)||this;W.disableGridStateAware=!1;W.animationEnabled=_.r("enable_web_ketchup_hero_animation");W.transitioningOut=!1;W.narrow=!1;W.narrower=!1;W.isCarouselInFeed=!1;W.videoTimeoutJobId=0;W.panelTimeoutJobId=0;W.panelTimeoutJobStartMs=0;W.actionMap={"yt-window-resized":"onWindowResized"};return W};
_.C(Th,_.S);_.p=Th.prototype;_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.p.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.p.attached=function(){this.onWindowResized()};
_.p.detached=function(){this.clearTimeouts()};
_.p.onWindowResized=function(){this.updateSize()};
_.p.computePanelLayout=function(W){return W&&W.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.p.playVideo=function(){var W;this.video&&((W=this.data)==null?0:W.videoThumbnail)&&this.video.play();var B;this.player&&((B=this.data)==null?0:B.inlinePlaybackRenderer)&&this.player.play()};
_.p.stopVideo=function(){var W;this.video&&((W=this.data)==null?0:W.videoThumbnail)&&this.video.stop();var B;this.player&&((B=this.data)==null?0:B.inlinePlaybackRenderer)&&this.player.stop()};
_.p.transitionOut=function(){var W=this;this.transitioningOut=!0;return new Promise(function(B){var z=function(){_.tH(W.hostElement).querySelector("#action-button").removeEventListener("animationend",z);_.fg.cancelJob(G);B();W.transitioningOut=!1};
var G=_.CG(_.fg,z,1E3);_.tH(W.hostElement).querySelector("#action-button").addEventListener("animationend",z);W.player&&(W.player.playing=!1)})};
_.p.computeMetadataOrder=function(W){return W&&W.metadataOrder&&W.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?W.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.p.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.p.computeAvatarSize=function(W){return W&&W.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.p.onContentClick=function(W){if(!_.p2(_.AH(W),this.hostElement,["A".toString(),"BUTTON".toString()])){var B;if((B=this.data)==null?0:B.navigationEndpoint){var z;this.componentBehavior.resolveCommand((z=this.data)==null?void 0:z.navigationEndpoint)}}};
_.p.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.p.setBackgroundImage=function(W){if(W=this.getBackgroundImageUrl(W))_.tH(this.hostElement).querySelector("#hero").style.backgroundImage="url("+W+")"};
_.p.setScrimLayer=function(W){var B=this.getScrimLayerColorStops(W);W=((W==null?void 0:W.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(W=180);_.eD("HTML_DIR")==="rtl"&&(W=-W);B&&(_.tH(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+W+"deg, "+B+")")};
_.p.isNarrower=function(){return this.hostElement.clientWidth<Th.NARROW_VERSION_SIZE};
_.p.getScrimLayerColorStops=function(){var W,B=(W=this.data)==null?void 0:W.scrimColorValues;if(!B)return null;if(B.length===1)return W=_.aE(B[0]),W+" 0%, "+W+" 100%";if(B.length===3){var z=[0,72,98];return B.map(function(G,Y){return _.aE(G)+" "+z[Y]+"%"}).join(",")}return null};
_.p.getBackgroundImageUrl=function(W){return W&&W.largeFormFactorBackgroundThumbnail?_.JY((W.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||W.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.p.onPlaying=function(){this.startVideoTimeout()};
_.p.onEnded=function(){this.rotate()};
_.p.startPanelTimeout=function(){var W=this;if(!this.panelTimeoutJobId){var B=this.get("data.minPanelDisplayDurationMs");B&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.CG(_.fg,function(){W.rotate()},B))}};
_.p.startVideoTimeout=function(){var W=this;if(!this.videoTimeoutJobId){_.fg.cancelJob(this.panelTimeoutJobId);var B=Date.now()-this.panelTimeoutJobStartMs;B=Math.max(0,this.get("data.minPanelDisplayDurationMs")-B);B=Math.max(this.get("data.minVideoPlayDurationMs")||0,B);this.videoTimeoutJobId=_.CG(_.fg,function(){W.rotate()},B)}};
_.p.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.fg.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.fg.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.p.rotate=function(){this.clearTimeouts();_.v0(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.G5.Object.defineProperties(Th.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.tH(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.tH(this.hostElement).querySelector("#video")}}});
_.G5.Object.defineProperties(Th,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Th.prototype.onEnded=Th.prototype.onEnded;Th.prototype.onPlaying=Th.prototype.onPlaying;Th.prototype.dataChanged=Th.prototype.dataChanged;_.Q([_.h(_.VO),_.y("design:type",Object)],Th.prototype,"ytdGridStateAwareBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Th.prototype,"componentBehavior",void 0);_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Th.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.h(_.CmT),_.y("design:type",Object)],Th.prototype,"ytBooleanLogicBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Th.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Th.prototype,"disableGridStateAware",void 0);_.Q([_.F(),_.y("design:type",Object)],Th.prototype,"data",void 0);_.Q([_.F({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.y("design:type",String)],Th.prototype,"panelLayout",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Th.prototype,"animationEnabled",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Th.prototype,"transitioningOut",void 0);
_.Q([_.F({computed:"computeMetadataOrder(data)"}),_.y("design:type",Boolean)],Th.prototype,"metadataOrder",void 0);_.Q([_.F({computed:"computeByline(data)"}),_.y("design:type",Object)],Th.prototype,"byline",void 0);_.Q([_.F({computed:"computeAvatarSize(data)"}),_.y("design:type",Number)],Th.prototype,"avatarSize",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Th.prototype,"narrow",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Th.prototype,"narrower",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Th.prototype,"layoutStyle",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Th.prototype,"isCarouselInFeed",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Th.prototype,"dataChanged",null);_.Q([_.IN("yt-default-promo-panel-renderer-playing"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Th.prototype,"onPlaying",null);
_.Q([_.IN("yt-default-promo-panel-renderer-ended"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Th.prototype,"onEnded",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Th);
_.D(Th,"ytd-default-promo-panel-renderer",function(){if(Lqj!==void 0)return Lqj;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Lqj=W},{mode:1});_.eX("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var vj=function(){var W=_.S.apply(this,arguments)||this;W.narrower=!1;W.dotMenuVisible=!1;W.paginationThumbnailsVisible=!1;W.active=!0;W.disableGridStateAware=!1;W.actionMap={"yt-window-resized":"onWindowResized"};return W};
_.C(vj,_.S);_.p=vj.prototype;_.p.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]]"}}}}}};
_.p.attached=function(){document.addEventListener("yt-page-type-changed",_.Co(this,this.onPageTypeChange));this.currentPageSubtype=_.la(location.pathname);this.onWindowResized()};
_.p.detached=function(){this.jobId&&_.fg.cancelJob(this.jobId);this.updateSizeJobId&&_.fg.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Co(this,this.onPageTypeChange))};
_.p.onPageTypeChange=function(W){this.active=W.detail.newPageSubtype===this.currentPageSubtype};
_.p.onWindowResized=function(){this.updateSize()};
_.p.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.p.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.p.setCarouselItem=function(W){W>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.fg.cancelJob(this.jobId);var B=this.getCurrentPanelElement();B&&B.stopVideo();this.currentItemIndex=W%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(B||(B=this.getCurrentPanelElement()),B.playVideo()):this.startRotationJob()};
_.p.scrollThumbnails=function(W){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var B=this.getCurrentPaginationElement();if(B){var z=_.tH(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?z.style.transform="translateX(0)":(B=B.offsetWidth+8,z.style.transform="translateX(-"+B*(W-Math.ceil(Math.floor(this.overlay.offsetWidth/B)/2)+1)+"px)")}}};
_.p.onDataChanged=function(){var W=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.gn(_.fg,function(){var B;(B=W.getCurrentPanelElement())==null||B.updateSize();W.updateSize()}))};
_.p.getCurrentPanelElement=function(){return _.tH(_.tH(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.p.getCurrentPaginationElement=function(){return _.tH(_.tH(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.p.getNavigationClass=function(W,B){return W===B?"selected":""};
_.p.getNavigationDurationStyle=function(W){return"animation-duration:"+(this.get("data.carouselItems."+W+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.p.onNavigationTap=function(W){var B=this,z=W.model.index;z!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){B.setCarouselItem(z)}),this.autorotateActive=!1)};
_.p.onVideoThumbnailEnded=function(){var W=this;if(this.shouldRotate()){var B=this.getCurrentPaginationElement();B&&(B.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){B.classList.remove("finished");W.setNextCarouselItem()}))}};
_.p.onVideoThumbnailError=function(){this.startRotationJob()};
_.p.onVideoNotPlaying=function(){this.startRotationJob()};
_.p.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.p.startRotationJob=function(){var W=this;_.fg.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.fg.addLowPriorityJob(function(){W.getCurrentPanelElement().transitionOut().then(function(){W.setNextCarouselItem()})},this.rotationTimeout))};
_.p.computeDotMenuVisible=function(W,B){return!!W&&!!W.carouselItems&&W.carouselItems.length>1&&!W.paginationThumbnails||!!B};
_.p.computePaginationThumbnailsVisible=function(W,B){var z,G;return((G=W==null?void 0:(z=W.paginationThumbnails)==null?void 0:z.length)!=null?G:0)>1&&!B};
_.p.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.p.computePaginatorAlignment=function(W){return(W==null?void 0:W.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.p.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.p.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.p.isNarrower=function(W){return(W!=null?W:0)<Th.NARROW_VERSION_SIZE};
vj.prototype.activeChanged=vj.prototype.activeChanged;vj.prototype.onVideoNotPlaying=vj.prototype.onVideoNotPlaying;vj.prototype.onVideoThumbnailError=vj.prototype.onVideoThumbnailError;vj.prototype.onVideoThumbnailEnded=vj.prototype.onVideoThumbnailEnded;vj.prototype.onDataChanged=vj.prototype.onDataChanged;_.Q([_.h(_.VO),_.y("design:type",Object)],vj.prototype,"ytdGridStateAwareBehavior",void 0);
_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],vj.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],vj.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],vj.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],vj.prototype,"currentItem",void 0);
_.Q([_.F(),_.y("design:type",Number)],vj.prototype,"currentItemIndex",void 0);_.Q([_.F(),_.y("design:type",Number)],vj.prototype,"rotationTimeout",void 0);_.Q([_.F(),_.y("design:type",Number)],vj.prototype,"loopCount",void 0);_.Q([_.F({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.y("design:type",String)],vj.prototype,"paginatorAlignment",void 0);_.Q([_.F(),_.y("design:type",Number)],vj.prototype,"jobId",void 0);
_.Q([_.F(),_.y("design:type",Number)],vj.prototype,"updateSizeJobId",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],vj.prototype,"isCarouselInFeed",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],vj.prototype,"narrower",void 0);_.Q([_.F({computed:"computeDotMenuVisible(data, narrower)"}),_.y("design:type",Object)],vj.prototype,"dotMenuVisible",void 0);
_.Q([_.F({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.y("design:type",Object)],vj.prototype,"paginationThumbnailsVisible",void 0);_.Q([_.F({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.y("design:type",String)],vj.prototype,"layoutType",void 0);_.Q([_.F({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],vj.prototype,"autorotateActive",void 0);_.Q([_.F(),_.y("design:type",Object)],vj.prototype,"active",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],vj.prototype,"disableGridStateAware",void 0);_.Q([_.Hf("#overlay"),_.y("design:type",HTMLElement)],vj.prototype,"overlay",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vj.prototype,"onDataChanged",null);
_.Q([_.IN("yt-video-thumbnail-ended"),_.IN("yt-default-promo-panel-renderer-rotate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vj.prototype,"onVideoThumbnailEnded",null);_.Q([_.IN("yt-video-thumbnail-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vj.prototype,"onVideoThumbnailError",null);
_.Q([_.IN("yt-video-thumbnail-not-playing"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vj.prototype,"onVideoNotPlaying",null);_.Q([_.jJ("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vj.prototype,"activeChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],vj);
_.D(vj,"ytd-carousel-item-renderer",function(){if($bn!==void 0)return $bn;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return $bn=W},{mode:2});var RV0;var Wo6;var BzK;var ze9;var cj=function(){var W=_.S.apply(this,arguments)||this;W.originalQuery=null;W.originalEndpoint=null;return W};
_.C(cj,_.S);cj.prototype.computeShowOriginalQueryWithoutEndpoint_=function(W,B){return!(!W||B)};
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],cj.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],cj.prototype,"correctedText",void 0);_.Q([_.F(),_.y("design:type",Object)],cj.prototype,"correctedQuery",void 0);_.Q([_.F(),_.y("design:type",Object)],cj.prototype,"correctedEndpoint",void 0);_.Q([_.F(),_.y("design:type",Object)],cj.prototype,"originalText",void 0);_.Q([_.F(),_.y("design:type",Object)],cj.prototype,"originalQuery",void 0);
_.Q([_.F(),_.y("design:type",Object)],cj.prototype,"originalEndpoint",void 0);_.Q([_.F({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.y("design:type",Boolean)],cj.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.Q([_.NJ({is:"yt-search-query-correction",disableElementRegistration:!0})],cj);
_.D(cj,"yt-search-query-correction",function(){if(ze9===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;BzK===void 0&&(BzK=document.createElement("template"));var G=BzK;z.call(B,G.content.cloneNode(!0),W.content.firstChild);ze9=W}W=ze9;return W},{mode:2});_.eX("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var wx=function(){return _.S.apply(this,arguments)||this};
_.C(wx,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],wx.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],wx.prototype,"data",void 0);_.Q([_.NJ({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],wx);
_.D(wx,"yt-did-you-mean-renderer",function(){if(Wo6===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;RV0===void 0&&(RV0=document.createElement("template"));var G=RV0;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Wo6=W}W=Wo6;return W},{mode:2});var GKO;var YCb;_.eX("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var Vq=function(){return _.S.apply(this,arguments)||this};
_.C(Vq,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Vq.prototype,"data",void 0);_.Q([_.NJ({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],Vq);
_.D(Vq,"yt-including-results-for-renderer",function(){if(YCb===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;GKO===void 0&&(GKO=document.createElement("template"));var G=GKO;z.call(B,G.content.cloneNode(!0),W.content.firstChild);YCb=W}W=YCb;return W},{mode:2});var d46;var pKi;_.eX("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Jh=function(){return _.S.apply(this,arguments)||this};
_.C(Jh,_.S);Jh.prototype.computeExtraClasses_=function(W,B){var z="";W&&(z+=" "+W.toLowerCase().replace(/_/g,"-"));B&&(z+=" "+B.toLowerCase().replace(/_/g,"-"));return z};
Jh.prototype.computeUrlImg_=function(){var W=this.data;W.image&&(_.tH(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.JY(W.image.thumbnails,Number.MAX_VALUE)+")")};
Jh.prototype.computeUrlImg_=Jh.prototype.computeUrlImg_;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Jh.prototype,"data",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Jh.prototype,"computeUrlImg_",null);_.Q([_.NJ({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Jh);
_.D(Jh,"yt-music-pass-feature-info-renderer",function(){if(pKi===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;d46===void 0&&(d46=document.createElement("template"));var G=d46;z.call(B,G.content.cloneNode(!0),W.content.firstChild);pKi=W}W=pKi;return W},{mode:2});var Apr;var ivi;_.eX("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var gx=function(){return _.S.apply(this,arguments)||this};
_.C(gx,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],gx.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],gx.prototype,"data",void 0);_.Q([_.NJ({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],gx);
_.D(gx,"yt-no-results-found-showing-results-for-renderer",function(){if(ivi===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Apr===void 0&&(Apr=document.createElement("template"));var G=Apr;z.call(B,G.content.cloneNode(!0),W.content.firstChild);ivi=W}W=ivi;return W},{mode:2});var EdK;var Tzi;_.eX("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var th=function(){return _.S.apply(this,arguments)||this};
_.C(th,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],th.prototype,"data",void 0);_.Q([_.NJ({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],th);
_.D(th,"yt-results-without-quotes-renderer",function(){if(Tzi===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;EdK===void 0&&(EdK=document.createElement("template"));var G=EdK;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Tzi=W}W=Tzi;return W},{mode:2});var vdq;var cpO;_.eX("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var sO=function(){return _.S.apply(this,arguments)||this};
_.C(sO,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],sO.prototype,"data",void 0);_.Q([_.NJ({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],sO);
_.D(sO,"yt-search-no-results-renderer",function(){if(cpO===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;vdq===void 0&&(vdq=document.createElement("template"));var G=vdq;z.call(B,G.content.cloneNode(!0),W.content.firstChild);cpO=W}W=cpO;return W},{mode:2});var wKr;var Vnf;_.eX("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Pj=function(){return _.S.apply(this,arguments)||this};
_.C(Pj,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Pj.prototype,"data",void 0);_.Q([_.NJ({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Pj);
_.D(Pj,"yt-showing-results-for-renderer",function(){if(Vnf===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;wKr===void 0&&(wKr=document.createElement("template"));var G=wKr;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Vnf=W}W=Vnf;return W},{mode:2});var Jpf;var gdO;var tni;var s7i;var Zh=function(){var W=_.S.apply(this,arguments)||this;W.answerExpanded=!1;return W};
_.C(Zh,_.S);Zh.prototype.toggleAnswer_=function(W){var B=_.iP(W);B&&B.classList.contains("yt-simple-endpoint")||(W.preventDefault(),W.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Zh.prototype.toggleAnswer_=Zh.prototype.toggleAnswer_;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Zh.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Zh.prototype,"answerExpanded",void 0);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Zh.prototype,"toggleAnswer_",null);
_.Q([_.NJ({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Zh);
_.D(Zh,"yt-generic-faq-question-renderer",function(){if(s7i===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;tni===void 0&&(tni=document.createElement("template"));var G=tni;z.call(B,G.content.cloneNode(!0),W.content.firstChild);s7i=W}W=s7i;return W},{mode:2});_.eX("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var rx=function(){return _.S.apply(this,arguments)||this};
_.C(rx,_.S);rx.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],rx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],rx.prototype,"data",void 0);_.Q([_.NJ({is:"yt-faq-section-renderer",disableElementRegistration:!0})],rx);
_.D(rx,"yt-faq-section-renderer",function(){if(gdO===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Jpf===void 0&&(Jpf=document.createElement("template"));var G=Jpf;z.call(B,G.content.cloneNode(!0),W.content.firstChild);gdO=W}W=gdO;return W},{mode:2});var P60;var Zv6;_.eX("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var kk=function(){return _.S.apply(this,arguments)||this};
_.C(kk,_.S);
kk.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"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],kk.prototype,"data",void 0);_.Q([_.NJ({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],kk);
_.D(kk,"yt-offer-item-expanded-renderer",function(){if(Zv6===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;P60===void 0&&(P60=document.createElement("template"));var G=P60;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Zv6=W}W=Zv6;return W},{mode:2});var rpO;var kK9;_.eX("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var lI=function(){return _.S.apply(this,arguments)||this};
_.C(lI,_.S);
lI.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"}}}}};
lI.prototype.computeFullWidthMode=function(W){return!(!W||!W.fullWidthMode)};
lI.prototype.computeBorderlessMode=function(W){return!(!W||!W.borderlessMode)};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],lI.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.y("design:type",Boolean)],lI.prototype,"fullWidthMode",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.y("design:type",Boolean)],lI.prototype,"borderlessMode",void 0);_.Q([_.NJ({is:"yt-offer-item-renderer",disableElementRegistration:!0})],lI);
_.D(lI,"yt-offer-item-renderer",function(){if(kK9===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;rpO===void 0&&(rpO=document.createElement("template"));var G=rpO;z.call(B,G.content.cloneNode(!0),W.content.firstChild);kK9=W}W=kK9;return W},{mode:2});var lli;var C6f;_.eX("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var CH=function(){return _.S.apply(this,arguments)||this};
_.C(CH,_.S);CH.prototype.computeAriaLevel_=function(W){return this.getLevelID_(W)};
CH.prototype.getLevelID_=function(W){return(W=W.match(/[0-9]+$/))&&W.length==1?W[0]:"1"};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],CH.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],CH.prototype,"data",void 0);_.Q([_.F({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.y("design:type",String)],CH.prototype,"ariaLevel",void 0);_.Q([_.F({value:"heading",reflectToAttribute:!0}),_.y("design:type",String)],CH.prototype,"role",void 0);
_.Q([_.F({value:-1,reflectToAttribute:!0}),_.y("design:type",Number)],CH.prototype,"tabindex",void 0);_.Q([_.NJ({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],CH);
_.D(CH,"yt-subscription-product-header-renderer",function(){if(C6f===void 0){var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;lli===void 0&&(lli=document.createElement("template"));var G=lli;z.call(B,G.content.cloneNode(!0),W.content.firstChild);C6f=W}W=C6f;return W},{mode:2});var Ilr;var odn;_.eX("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var I5=function(){return _.S.apply(this,arguments)||this};
_.C(I5,_.S);I5.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:_.mT("menuRenderer"),events:!0}}};
I5.prototype.onStampFinished_=function(){_.tH(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
I5.prototype.onStampFinished_=I5.prototype.onStampFinished_;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],I5.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],I5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],I5.prototype,"data",void 0);_.Q([_.IN("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],I5.prototype,"onStampFinished_",null);
_.Q([_.NJ({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],I5);
_.D(I5,"yt-subscription-product-renderer",function(){if(odn===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Ilr===void 0&&(Ilr=document.createElement("template"));var G=Ilr;z.call(B,G.content.cloneNode(!0),W.content.firstChild);odn=W}W=odn;return W},{mode:2});var hej;var Hvi;_.eX("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var o5=function(){return _.S.apply(this,arguments)||this};
_.C(o5,_.S);o5.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
o5.prototype.imageScrimColorValuesChanged_=function(){var W,B=(W=this.data)==null?void 0:W.imageScrimColorValues;_.tH(this.hostElement).querySelector("#scrim").style.backgroundColor=B?_.aE(B[0]):"transparent"};
o5.prototype.imageScrimColorValuesChanged_=o5.prototype.imageScrimColorValuesChanged_;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],o5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],o5.prototype,"data",void 0);
_.Q([_.oN("data.imageScrimColorValues"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],o5.prototype,"imageScrimColorValuesChanged_",null);_.Q([_.NJ({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],o5);
_.D(o5,"yt-subscription-product-upsell-offer-renderer",function(){if(Hvi===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;hej===void 0&&(hej=document.createElement("template"));var G=hej;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Hvi=W}W=Hvi;return W},{mode:2});var Fo9;var SCf;var bvr;var j7r;var flr;var Ovr;var hh=function(){return _.S.apply(this,arguments)||this};
_.C(hh,_.S);hh.prototype.onYtServiceRequestError_=function(W){_.Wk(this.hostElement,W.detail.error.message)};
hh.prototype.onYtServiceRequestError_=hh.prototype.onYtServiceRequestError_;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],hh.prototype,"data",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],hh.prototype,"collapsible",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],hh.prototype,"isManageRed",void 0);
_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],hh.prototype,"onYtServiceRequestError_",null);_.Q([_.NJ({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],hh);
_.D(hh,"yt-single-ypc-offer-renderer",function(){if(Ovr===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;flr===void 0&&(flr=document.createElement("template"));var G=flr;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Ovr=W}W=Ovr;return W},{mode:2});var Hj=function(){return _.S.apply(this,arguments)||this};
_.C(Hj,_.S);Hj.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Hj.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Hj.prototype,"isManageRed",void 0);_.Q([_.NJ({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Hj);
_.D(Hj,"yt-single-ypc-offer-list-renderer",function(){if(j7r===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;bvr===void 0&&(bvr=document.createElement("template"));var G=bvr;z.call(B,G.content.cloneNode(!0),W.content.firstChild);j7r=W}W=j7r;return W},{mode:2});var XKY;var Kof;_.eX("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Fz=function(){return _.S.apply(this,arguments)||this};
_.C(Fz,_.S);Fz.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Fz.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Fz.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Fz.prototype,"isManageRed",void 0);_.Q([_.NJ({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Fz);
_.D(Fz,"yt-ypc-offers-list-renderer",function(){if(Kof===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;XKY===void 0&&(XKY=document.createElement("template"));var G=XKY;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Kof=W}W=Kof;return W},{mode:2});_.eX("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var SA=function(){return _.S.apply(this,arguments)||this};
_.C(SA,_.S);
SA.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}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],SA.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],SA.prototype,"data",void 0);_.Q([_.NJ({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],SA);
_.D(SA,"yt-unlimited-manage-subscription-page-renderer",function(){if(SCf===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Fo9===void 0&&(Fo9=document.createElement("template"));var G=Fo9;z.call(B,G.content.cloneNode(!0),W.content.firstChild);SCf=W}W=SCf;return W},{mode:2});var uxj;var eej;var bI=function(){return _.S.apply(this,arguments)||this};
_.C(bI,_.S);_.p=bI.prototype;_.p.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.p.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.p.onKeypress_=function(W){W.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.p.handleHeaderTap_=function(W){W.preventDefault();W.stopPropagation();this.expandOffers_()};
_.p.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.p.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
bI.prototype.dataChanged_=bI.prototype.dataChanged_;_.Q([_.h(_.DM),_.y("design:type",Object)],bI.prototype,"ironA11yKeysBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],bI.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],bI.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],bI.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],bI.prototype,"offersVisible_",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bI.prototype,"dataChanged_",null);_.Q([_.NJ({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],bI);
_.D(bI,"yt-collapsible-ypc-offer-renderer",function(){if(eej===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;uxj===void 0&&(uxj=document.createElement("template"));var G=uxj;z.call(B,G.content.cloneNode(!0),W.content.firstChild);eej=W}W=eej;return W},{mode:2});var m4n;var x4r;_.eX("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var jA=function(){return _.S.apply(this,arguments)||this};
_.C(jA,_.S);_.p=jA.prototype;_.p.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.p.dataChanged_=function(){if(this.data.backgroundImage){var W=_.JY(this.data.backgroundImage.thumbnails,screen.width),B=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=B?"linear-gradient(180deg, "+B+"), url("+W+")":"url("+W+")";this.data.gtmId&&_.zr(this.data.gtmId,_.eD("GL",""))}};
_.p.onYtServiceRequestError_=function(W){_.Wk(this.hostElement,W.detail.error.message)};
_.p.getScrimLayerColorStops_=function(){var W,B,z=(W=this.data.unlimitedHeaderV2Data)==null?void 0:(B=W.unlimitedHeaderV2Data)==null?void 0:B.scrimLayerColors;if(!z)return null;var G=100/z.length;return z.map(function(Y,d){d*=G;return _.aE(Y)+" "+d+"%"}).join(",")};
_.p.computeLogoWithPadding=function(W){var B,z,G;return(W=(B=W.unlimitedLogoImage)==null?void 0:(z=B.thumbnails)==null?void 0:(G=z[0])==null?void 0:G.height)&&W%31===0?!0:!1};
jA.prototype.onYtServiceRequestError_=jA.prototype.onYtServiceRequestError_;jA.prototype.dataChanged_=jA.prototype.dataChanged_;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],jA.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.Q([_.F({computed:"computeLogoWithPadding(data)"}),_.y("design:type",Boolean)],jA.prototype,"logoWithPadding",void 0);
_.Q([_.F(),_.y("design:type",Object)],jA.prototype,"data",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jA.prototype,"dataChanged_",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],jA.prototype,"onYtServiceRequestError_",null);_.Q([_.NJ({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],jA);
_.D(jA,"yt-unlimited-page-header-renderer",function(){if(x4r===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;m4n===void 0&&(m4n=document.createElement("template"));var G=m4n;z.call(B,G.content.cloneNode(!0),W.content.firstChild);x4r=W}W=x4r;return W},{mode:2});var D4K;var Q7Y;_.eX("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var fH=function(){return _.S.apply(this,arguments)||this};
_.C(fH,_.S);fH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],fH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],fH.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],fH.prototype,"data",void 0);_.Q([_.NJ({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],fH);
_.D(fH,"yt-unlimited-user-notification-renderer",function(){if(Q7Y===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;D4K===void 0&&(D4K=document.createElement("template"));var G=D4K;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Q7Y=W}W=Q7Y;return W},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.cr6=_.m(function(W){var B=_.EV(W,{numberOfChips:5}).numberOfChips;return _.w("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.w(_.IJ,{each:function(){return Array(B==null?void 0:B())}},function(){return _.w("div",{class:"ytGhostChipShelfChip"})}))},"kh");_.w0q=_.m(function(W){var B=function(){var d;return((d=W.data)==null?void 0:d.call(W).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},z=_.k2(),G=_.dO().resolve(_.py);
_.bk(function(){requestAnimationFrame(function(){var d;(d=z.lottieEl)==null||d.addEventListener("DOMLoaded",function(){var E;(E=W.onLottieLoaded)==null||E.call(W)})})});
var Y={};return _.w("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var d;return((d=W.data)==null?void 0:d.call(W).targetId)||""}},_.w(_.q8,{className:_.kG((Y.ytChatLoadingViewModelRtl=G==="rtl",Y)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:B()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||B()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:B()}}},
animationRef:z}))},"lh");
}catch(e){_._DumpException(e)}
try{
var BOi,zt9,G40,dn0,pS0,ACf,i4f,E8q,TOb,tE9,Qw,g8f,cC0,JC6,VEY,wSf,v8n,sXb,POO,Z49,rC0,yw,k4Y,lor,o89,nF,COr,LF,qC,NC,Ioq,$f,htK,H4O,FHb,SAi,b4O,jXj,foK,XS6,KH0,us0,etY,mn6,xnr,Dn1,QX0,qAO,n8Y,NOY,LHi,MEb,Rt6,WgY,B2r,z3O,YEr,dX1,pV1,ADj,igO,EbY,T2i,cDb,gbf,JDf,wVn,tli,Vlf,sei,kUK,rDn,P2O,Zg1,MC,l_n,C2i,ob9,je9,f_9,OgY,XVi,Kg9,uGq,e3i,mXq,xXj,DXY,yDO,qE9,nb9,$Xi,Fgq;
_.xf=function(W){var B=new _.oX("Error accessing DB");return _.EPD().then(function(z){return new Promise(function(G,Y){try{var d=z.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(W);d.onsuccess=function(){var E=d.result;G(E?E.value:null)};
d.onerror=function(){B.params={key:W,source:"onerror"};Y(B)}}catch(E){B.params={key:W,
thrownError:String(E)},Y(B)}})},function(){return null})};
_.WH0=function(W,B){var z=_.Gdy(B);z!=="javascript:"&&z!=="data:"&&W.setAttribute("href",B)};
BOi=function(W,B){return _.P3(W.entities,"flowStateEntity",B)};
zt9=function(W,B){return _.P3(W.entities,"contextNoteUserRatingEntityPayload",B)};
G40=function(W,B){if(W&&B){var z=_.HA();z().set(W,B);_.UCu(z())}};
_.YAi=function(W,B){if(W&&B){var z=_.HA();z().set(W,B);_.UCu(z())}};
dn0=function(W){return _.OX(W,function(B){return B.languageCode==="en"})};
pS0=function(W){var B=DA;if(_.cWr(W))W.setOption("captions","stickyLoading",{}),W.setOption("captions","track",{});else{var z=_.OX(_.ezX(W),function(G){return G.displayName===B});
W.setOption("captions","track",z)}};
ACf=function(W){if(!W)return 0;var B=W.getPresentingPlayerType(),z=W.getVideoData();return z&&z.isLive?(W=W.getProgressState(B),W.seekableEnd-W.seekableStart):W.getDuration(B)};
i4f=function(W,B){for(var z=_.A(Object.keys(W)),G=z.next();!G.done;G=z.next())if(G=G.value,W[G]!==B[G])return!1;return!0};
E8q=function(){return document.getElementById("player-control-overlay")};
TOb=function(W){W!==-1&&!_.r("player_controls_log_creation_killswitch")&&E8q()&&(_.mj("pcu_cs",W),_.mj("pcu_ce"))};
tE9=function(W,B){var z=_.ig(W,{}),G=v8n("top",B),Y=v8n("bottom",B),d=v8n("left",B),E=v8n("right",B);return _.oK({top:function(){return Qw(z().position,G)},
bottom:function(){return Qw(z().position,Y)},
left:function(){return Qw(z().position,d)},
right:function(){return Qw(z().position,E)},
position:function(){return Qw(z().positionType,cC0)},
height:function(){return Qw(z().height,yw)},
width:function(){return Qw(z().width,yw)},
"min-width":function(){return Qw(z().minWidth,yw)},
"min-height":function(){return Qw(z().minHeight,yw)},
"max-width":function(){return Qw(z().maxWidth,yw)},
"max-height":function(){return Qw(z().maxHeight,yw)},
"aspect-ratio":function(){return Qw(z().aspectRatio,String)},
"margin-top":function(){return Qw(z().margin,G)},
"margin-bottom":function(){return Qw(z().margin,Y)},
"margin-left":function(){return Qw(z().margin,d)},
"margin-right":function(){return Qw(z().margin,E)},
"padding-top":function(){return Qw(z().padding,G)},
"padding-bottom":function(){return Qw(z().padding,Y)},
"padding-left":function(){return Qw(z().padding,d)},
"padding-right":function(){return Qw(z().padding,E)},
"flex-direction":function(){return Qw(z().flexDirection,wSf)},
"justify-content":function(){return Qw(z().justifyContent,VEY)},
"align-items":function(){return Qw(z().alignItems,JC6)},
"flex-grow":function(){return Qw(z().flexGrow,String)},
"flex-shrink":function(){return Qw(z().flexShrink,String)},
"flex-basis":function(){return Qw(z().flexBasis,yw)},
"align-self":function(){return Qw(z().alignSelf,JC6)},
"flex-wrap":function(){return Qw(z().flexWrap,g8f)},
"align-content":function(){return Qw(z().alignContent,JC6)}})};
Qw=function(W,B){return W!==void 0?B(W):void 0};
g8f=function(W){switch(W){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
cC0=function(W){switch(W){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
JC6=function(W){switch(W){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"}};
VEY=function(W){switch(W){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"}};
wSf=function(W){switch(W){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"}};
v8n=function(W,B){var z=B==="rtl";switch(W){case "top":var G=sXb;break;case "bottom":G=POO;break;case "left":G=Z49;break;default:G=rC0}return function(Y){return Qw(G(Y,z),yw)}};
sXb=function(W){var B=W.top;var z=W.vertical;W=W.all;var G;return(G=B!=null?B:z)!=null?G:W};
POO=function(W){var B=W.bottom;var z=W.vertical;W=W.all;var G;return(G=B!=null?B:z)!=null?G:W};
Z49=function(W,B){var z=W.left;var G=W.end;var Y=W.start;var d=W.horizontal;W=W.all;var E,v;return(v=(E=z!=null?z:B?G:Y)!=null?E:d)!=null?v:W};
rC0=function(W,B){var z=W.right;var G=W.end;var Y=W.start;var d=W.horizontal;W=W.all;var E,v;return(v=(E=z!=null?z:B?Y:G)!=null?E:d)!=null?v:W};
yw=function(W){var B=W.value;switch(W.unit){case "YPC_DIMENSION_UNIT_POINT":return B+"px";case "YPC_DIMENSION_UNIT_FRACTION":return B+"%";default:return""+B}};
k4Y=function(W){switch(W){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"}};
lor=function(W){var B=W!=null?W:{};W=B.fontRole;var z=B.fontSize;B=B.fontWeight;if(W!==null&&z!==null)switch(W){case "YPC_FONT_ROLE_DISPLAY":switch(z){case "YPC_FONT_SIZE_L":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(z){case "YPC_FONT_SIZE_L":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return B===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(z){case "YPC_FONT_SIZE_XL":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
o89=function(W,B,z){function G(t){return Object.values(t).map(function(P){var Z=P.productId;P=P.pricingOptionIndex;return qC(Y(Z).pricingOptions,P).pricingOptionId})}
function Y(t){return c().get(t)}
function d(t){t=G(t);z(t)}
function E(t,P){return Array.from(nF(t.pricingOptions)).filter(function(Z){Z=_.A(Z);Z.next();Z=Z.next().value;return NC(Z.pricingGroupAttributes,P)}).map(function(Z){return _.A(Z).next().value})}
var v=$f([W,B],function(t,P){var Z=t==null?void 0:t.selectedPricingOptions;t={};var l=!0;if(Z&&P.length)for(var b=_.A(P),O=b.next();!O.done;O=b.next()){O=O.value;var K=COr(O.pricingOptions,function(q){a:{q=q.pricingOptionId;for(var n=_.A(Z),L=n.next();!L.done;L=n.next())if(L.value===q){q=!0;break a}q=!1}return q});
if(K>=0){l=!1;var e=qC(O.pricingOptions,K),a=void 0;t[O.groupId]={productId:O.productId,pricingOptionIndex:K,pricingGroupAttributes:(a=e)==null?void 0:a.pricingGroupAttributes}}}l&&P.length&&(l=qC(P[0].pricingOptions,0),t[P[0].groupId]={productId:P[0].productId,pricingOptionIndex:0,pricingGroupAttributes:l==null?void 0:l.pricingGroupAttributes});return t}),c=$f([B],function(t){return new Map(t.map(function(P){return[P.productId,
P]}))}),J=$f([B],function(t){var P=new Map;
t=_.A(t);for(var Z=t.next();!Z.done;Z=t.next()){var l=Z.value;Z=l.groupId;var b=l.productId;l=_.A(nF(l.pricingOptions));for(var O=l.next();!O.done;O=l.next()){var K=_.A(O.value);O=K.next().value;K=K.next().value;P.set(K.pricingOptionId,{groupId:Z,productId:b,index:O,pricingOption:K,pricingGroupAttributes:K.pricingGroupAttributes})}}return P}),g=$f([B],function(t){var P=new Map;
t=_.A(t);for(var Z=t.next();!Z.done;Z=t.next()){var l=Z.value;Z=l.groupId;var b=l.productId,O=void 0;l=_.A(nF((O=l.pricingGroups)!=null?O:[]));for(O=l.next();!O.done;O=l.next()){var K=_.A(O.value);O=K.next().value;K=K.next().value;P.set(K.pricingGroupId,{groupId:Z,productId:b,index:O,pricingGroup:K,pricingGroupAttributes:K.pricingGroupAttributes})}}return P});
return{getProductById:Y,isProductSelected:function(t){var P=Y(t);if(!P)return!1;var Z;return((Z=v()[P.groupId])==null?void 0:Z.productId)===t},
getSelectedPricingOptions:function(){return Object.values(v()).map(function(t){var P=t.productId;t=t.pricingOptionIndex;return qC(Y(P).pricingOptions,t)})},
getSelectedPricingGroupAttributesByGroupId:function(t){var P;return(t=(P=v()[t])==null?void 0:P.pricingGroupAttributes)?Array.from(t):void 0},
getSelectedProductByGroupId:function(t){var P;return(t=(P=v()[t])==null?void 0:P.productId)?Y(t):void 0},
onProductSelected:function(t){var P=Y(t);if(P){var Z=v(),l;if(((l=Z[P.groupId])==null?void 0:l.productId)!==t){var b=(l=(b=Z[P.groupId])==null?void 0:b.productId)?Y(l):void 0;var O;l=(O=Z[P.groupId])==null?void 0:O.pricingGroupAttributes;var K;O=(K=Z[P.groupId])==null?void 0:K.pricingOptionIndex;if(b&&l&&O!==void 0){K=E(b,l).indexOf(O);if(K===-1)throw Error("Qj`"+O+"`"+b.productId);O=E(P,l);K=K<O.length?O[K]:O.length>0?O[0]:0}else K=0;LF(P.pricingOptions)<=K&&(K=0);O=qC(P.pricingOptions,K);var e;
b={};d(Object.assign({},Z,(b[P.groupId]={productId:t,pricingOptionIndex:K,pricingGroupAttributes:(e=O==null?void 0:O.pricingGroupAttributes)!=null?e:[]},b)))}}},
onPricingOptionSelected:function(t){var P=J().get(t);if(P){t=P.groupId;var Z=P.productId;P=P.index;var l=v(),b,O;if(((b=l[t])==null?void 0:b.productId)!==Z||((O=l[t])==null?void 0:O.pricingOptionIndex)!==P){var K,e;b={};d(Object.assign({},l,(b[t]={productId:Z,pricingOptionIndex:P,pricingGroupAttributes:(e=(K=l[t])==null?void 0:K.pricingGroupAttributes)!=null?e:[]},b)))}}},
onPricingGroupSelected:function(t){var P=g().get(t);if(P){t=P.groupId;var Z=P.productId,l=P.pricingGroup.pricingGroupAttributes,b=Y(Z);if(b){P=v();var O=P[t].pricingGroupAttributes,K;if(((K=P[t])==null?void 0:K.productId)!==Z||!NC(Ioq(O,LF(l)),l)){K=Array.from(l);for(l=LF(l);l<LF(O);l++){var e="",a=!1,q=Array.from(K);q.push(qC(O,l));for(var n=_.A(b.pricingGroups),L=n.next();!L.done;L=n.next())if(L=L.value,NC(L.pricingGroupAttributes,q)){K.push(qC(O,l));a=!0;break}else e===""&&LF(L.pricingGroupAttributes)===
q.length&&NC(Ioq(L.pricingGroupAttributes,K.length),K)&&(e=qC(L.pricingGroupAttributes,l));a||K.push(e)}e=P[t].pricingOptionIndex;l=[];a=new Map;q=0;b=_.A(nF(b.pricingOptions));for(n=b.next();!n.done;n=b.next())L=_.A(n.value),n=L.next().value,L=L.next().value,NC(L.pricingGroupAttributes,K)&&l.push(n),NC(L.pricingGroupAttributes,O)&&a.set(n,q++);l.length===0?O=0:(O=a.get(e),O=O!==void 0&&O<l.length?l[O]:l[0]);b={};d(Object.assign({},P,(b[t]={productId:Z,pricingOptionIndex:O,pricingGroupAttributes:K},
b)))}}}},
onClearGroupSelected:function(t){var P=v();P[t]&&(P=Object.fromEntries(Object.entries(P).filter(function(Z){return _.A(Z).next().value!==t})),d(P))}}};
nF=function(W){return function z(){var G,Y,d,E,v;return _.vh(z,function(c){switch(c.nextAddress){case 1:_.IR(c,2),G=0,Y=_.A(W),d=Y.next();case 4:if(d.done){c.jumpTo(2);break}E=d.value;v=_.ch;return c.yield([G++,E],7);case 7:v(c.yieldResult);d=Y.next();c.jumpTo(4);break;case 2:_.CN(c),_.oR(c,0)}})}()};
COr=function(W,B){W=_.A(nF(W));for(var z=W.next();!z.done;z=W.next()){var G=_.A(z.value);z=G.next().value;G=G.next().value;if(B(G))return z}return-1};
LF=function(W){var B=0;for(W=W[Symbol.iterator]();!W.next().done;)++B;return B};
qC=function(W,B){W=_.A(nF(W));for(var z=W.next();!z.done;z=W.next()){var G=_.A(z.value);z=G.next().value;G=G.next().value;if(z===B)return G}};
NC=function(W,B){if(!W&&!B)return!0;if(!W||!B)return!1;W=Array.from(W);B=Array.from(B);if(W.length!==B.length)return!1;for(var z=0;z<W.length;z++)if(W[z]!==B[z])return!1;return!0};
Ioq=function(W,B){B=B===void 0?Infinity:B;var z=[];W=_.A(nF(W));for(var G=W.next();!G.done;G=W.next()){var Y=_.A(G.value);G=Y.next().value;Y=Y.next().value;if(G>=B)break;G>=0&&z.push(Y)}return z};
$f=function(W,B){var z,G;return function(){for(var Y=W.map(function(E){return E()}),d=0;d<Y.length;d++)if(!z||Y[d]!==z[d]){z=Y;
G=B.apply(null,_.u7(Y));break}return G}};
htK=function(W,B,z){var G=[];W=_.A(W);for(var Y=W.next();!Y.done;Y=W.next()){Y=Y.value;var d=void 0;((d=B)==null?0:d.length)&&!NC(Y.pricingGroupAttributes,B)||G.push({pricingOption:Y,isSelected:z.includes(Y.pricingOptionId)})}return G};
H4O=function(W,B){return _.P3(W.entities,"pdpStateEntity",B)};
FHb=function(W){var B,z;return!!(W.productId&&W.groupId&&((B=W.pricingOptions)==null?0:B.length)&&W.pricingOptions.every(function(G){return G.pricingOptionId})&&((z=W.pricingGroups)==null||!z.length||Array.isArray(W.pricingGroups)&&W.pricingGroups.every(function(G){return G.pricingGroupId&&G.pricingGroupAttributes&&G.pricingGroupAttributes.length>0})))};
SAi=function(W,B,z){return o89(W,$f([B],function(G){return G.filter(FHb)}),z)};
b4O=function(W){var B=void 0,z;for(z in W)if(W.hasOwnProperty(z)){B=z;break}return B};
jXj=function(W,B){return B.length===0?[W]:[W.slice(0,B[0]),W.slice(B[0])].filter(function(z){return z.length>0})};
foK=function(W){switch(W){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""}};
XS6=function(W,B,z,G){G=Object.assign({},G);_.Q2(G,O4j,{selectedOptionId:W,primaryButtonOverride:z});_.p8().dispatch(_.bj("flowStateEntity",B,G))};
KH0=function(W){switch(W){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
us0=function(W){switch(W){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
etY=function(W,B){B.includes(W)?B=B.filter(function(z){return z!==W}):B.push(W);
return[].concat(_.u7(B))};
mn6=function(W,B){return _.P3(W.entities,"contextNoteFeedEntityPayload",B)};
xnr=function(W,B){switch(W){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return B==null?void 0:B.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return B==null?void 0:B.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return B==null?void 0:B.ratingNotHelpfulText}};
Dn1=function(W,B){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:W.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:W.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:W.deleteDialogTitle}]},dialogMessages:[{runs:[{text:W.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:W.deleteActionText}]},command:{performCommentActionEndpoint:{action:B}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:W.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
QX0=function(W,B,z){var G;if(W&&((G=B())==null?0:G.includes(W))){var Y;z((Y=B())==null?void 0:Y.filter(function(d){return d!==W}))}else z([].concat(_.u7(B()||[]),[W]))};
qAO=function(W,B){if(W){var z=[];B=_.A((B==null?void 0:B.checkboxes)||[]);for(var G=B.next();!G.done;G=B.next()){G=_.k(G.value,yC6);var Y=void 0;((Y=G)==null?0:Y.value)&&W.includes(G.key||"")&&z.push(G.value)}return z}};
n8Y=function(W){W.style.height="auto";W.style.height=W.scrollHeight+"px"};
NOY=function(W){return[W.syncStep,W.asyncStep].filter(function(B){return B!==void 0})};
LHi=function(W){var B,z,G;if(W=(B=W.structuredContextNoteFormSchema)==null?void 0:(z=B.fieldSchemas)==null?void 0:(G=z.noteBody)==null?void 0:G.validationSchema)for(B=_.A(NOY(W)),z=B.next();!z.done;z=B.next()){z=z.value.rules;if(!z)break;z=_.A(z);for(z=z.next();!z.done;z=z.next())return _.k(z.value,_.$nq)}};
MEb=function(W){if(W){W=_.A(NOY(W));for(var B=W.next();!B.done;B=W.next()){B=B.value.rules;if(!B)break;B=_.A(B);for(B=B.next();!B.done;B=B.next())return _.k(B.value,Un6)}}};
Rt6=function(W){if(W){W=_.A(NOY(W));for(var B=W.next();!B.done;B=W.next()){B=B.value.rules;if(!B)break;B=_.A(B);for(B=B.next();!B.done;B=B.next())return _.k(B.value,aof)}}};
WgY=function(W){W=/^https?:\/\//.test(W)?W:"http://"+W;try{var B=_.Uk(W)}catch(z){return!1}if(B.toString()!==W)return!1;W=B.JSC$10032_domain_.split(".");return W.length>1&&W.every(function(z){return!!z})};
B2r=function(W,B,z,G){var Y;G=(Y=G.structuredContextNoteData)==null?void 0:Y.createCommentEndpoint;if(Y=_.k(G,_.yw4))return Y.commentText=_.Bg(W),Y.videoPositionMention=B,Y.sources=z,G};
z3O=function(W){return W==null?void 0:W.stringValue};
YEr=function(W,B,z){W=W.map(function(G,Y){return{listItemViewModel:{title:G.title,subtitle:G.subtitle,leadingImage:G.leadingImage,trailingImage:Y===B?GUi:void 0,rendererContext:{commandContext:{onTap:G.onTap}}}}});
return Object.assign({},z&&{header:{panelHeaderViewModel:{title:z}}},{content:{listViewModel:{listItems:W}}})};
dX1=function(W,B){if(W&&B)switch(B){case "SELECTION_TYPE_BOOL":return W.boolValue;case "SELECTION_TYPE_INT":return W.intValue;case "SELECTION_TYPE_STRING":return W.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return W.privacyStatusValue}};
pV1=function(W){var B;W=(B=W.options)==null?void 0:B.findIndex(function(z){return z.isSelected});
return W===void 0?-1:W};
ADj=function(W,B,z){var G=function(){return W().label},Y={},d=_.kG("ytDropdownViewModelLabel",(Y.ytDropdownViewModelLabelError=B,Y));
return _.w(_.V,{cond:function(){return W().label&&!(z()===-1&&W().label&&!W().placeholderText)},
then:function(){return _.w("div",{class:d},_.w(_.r0,{text:G}))}})};
igO=function(W,B){var z={};z=_.kG("ytDropdownViewModelTitle",(z.ytDropdownViewModelTitlePlaceholder=function(){return B()===-1},z));
return _.w("div",{class:z},_.w(_.r0,{text:function(){var G=W();var Y=B();if(Y===-1)G=G.placeholderText?G.placeholderText:G.label;else{var d,E;G=(d=G.options)==null?void 0:(E=d[Y])==null?void 0:E.title}return G}}))};
EbY=function(W,B){var z=function(){return W().hint};
return _.w(_.AW,null,_.w(_.V,{cond:function(){return z()&&!B()},
then:function(){return _.w("div",{class:_.kG("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.w(_.r0,{text:z,className:"ytDropdownViewModelSupportText"}))}}),_.w(_.V,{cond:B,
then:function(){return _.w("div",{id:"dropdown-view-model-error",role:"alert",class:_.kG("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.w(_.hY,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.w(_.r0,{text:B,className:"ytDropdownViewModelSupportText"}))}}))};
T2i=function(W,B){var z=_.dO().resolve(_.Z7f);_.jD(function(){var G=W().id;G&&z!=null&&z.dropdownMap.set(G,B)})};
cDb=function(W){W=_.k(W.scheduleButton,vbK);W=_.k(W==null?void 0:W.primaryButton,_.wP);W=_.k(W==null?void 0:W.onTap,_.NH);var B,z,G=((z=_.k(W,_.tr))==null?void 0:z.commands)||[W];z=_.A(G);for(W=z.next();!W.done&&!(B=_.k(W.value,_.q4U));W=z.next());var Y;B=(Y=B)==null?void 0:Y.createBroadcastRequest;if(!B)throw Error("Xj");return B};
gbf=function(W,B,z){z=z===void 0?{}:z;var G,Y;return _.T(function(d){if(G=wVn(B))return d.return(G);(Y=Vlf(W,B,z))&&JDf(B,Y);return d.return(Y)})};
JDf=function(W,B){var z=tli(W);z&&B.then(function(G){_.dO().resolve(_.uh).put(z,new _.ev({innertubeResponse:G}))})};
wVn=function(W){if(W=tli(W)){var B=_.dO().resolve(_.uh);if(B.has(W))return B.get(W).then(function(z){return z==null?void 0:_.pQ(z)})}return null};
tli=function(W){var B=_.k(W.endpoint,_.W0);if(B!=null&&B.videoId)return B={videoId:B.videoId},_.r("web_imp_player_mute_params")&&(B.mutedAtStart=W.startPlaybackInMutedState),_.Rd("inline_playback",B)};
Vlf=function(W,B,z){W=_.BA(W,B.endpoint,sei(B,z)).then(function(G){return G});
return Promise.resolve(W)};
sei=function(W,B){B=_.r("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!W.startPlaybackInMutedState},B):Object.assign({},{vis:5,autonav:"1"},B);var z;B={contentPlaybackContext:_.Ol(B,(z=_.k(W.endpoint.commandMetadata,_.Z4))==null?void 0:z.url,window.location.href)};_.r("web_imp_player_mute_params")&&(B.overrideMutedAtStart=!W.startPlaybackInMutedState);return B};
kUK=function(W,B){var z=window.MutationObserver;z&&(Uq=new z(function(G,Y){G=_.A(G);for(var d=G.next();!d.done;d=G.next()){d=d.value;var E;if(E=d.type==="childList"&&d.target)a:{E=W;d=P2O(d.target);E=P2O(E);for(var v=null,c=0;c<d.length;c++)if(E.includes(d[c])){if(c===0){E=!1;break a}v=d[c];break}v?(d=Zg1(d,v),E=Zg1(E,v),E=d<E):E=!1}if(E){B();Y.disconnect();break}}}),(z=rDn())&&Uq.observe(z,{childList:!0,
subtree:!0}))};
rDn=function(){var W=document.getElementsByTagName("ytd-rich-grid-renderer");if(W.length>0)return W[0];W=document.getElementsByTagName("ytd-section-list-renderer");return W.length>0?W[0]:null};
P2O=function(W){for(var B=[];W;)B.push(W),W=W.parentElement;return B};
Zg1=function(W,B){var z=Array.from(B.children);B=W.indexOf(B);return B>0?z.indexOf(W[B-1]):-1};
MC=function(W,B,z){z=z===void 0?{}:z;return _.kq(W,z,B)};
l_n=function(W){switch(W){case "MUSIC":return!0;default:return!1}};
C2i=function(W){return W==null?void 0:W.filter(function(B){return B.premiereTrailerBadgeRenderer})};
ob9=function(W){var B,z=W==null?void 0:(B=W.find(function(t){return t.thumbnailOverlayTimeStatusRenderer}))==null?void 0:B.thumbnailOverlayTimeStatusRenderer,G,Y;
if((z==null?0:(G=z.icon)==null?0:G.iconType)&&l_n(z==null?void 0:(Y=z.icon)==null?void 0:Y.iconType)){var d;return{icon:z==null?void 0:(d=z.icon)==null?void 0:d.iconType}}var E,v;var c=(W=(E=W==null?void 0:(c=W.find(function(t){return t.thumbnailBottomOverlayViewModel}))==null?void 0:c.thumbnailBottomOverlayViewModel)==null?void 0:(v=E.badges)==null?void 0:v.find(function(t){var P,Z;
return((P=_.k(t,I_b))==null?void 0:(Z=P.inlinePlaybackBadgeData)==null?void 0:Z.replicateAsTimestamp)===!0}))?_.k(W,I_b):void 0;
if(c==null?0:c.icon){var J,g;if((c=(J=_.m3X(c==null?void 0:c.icon))==null?void 0:(g=J.clientResource)==null?void 0:g.imageName)&&l_n(c))return{icon:c}}return{}};
je9=function(W,B){var z=h3r,G=_.A(_.g4(Hgn(new Fgq(function(){},z,B)),void 0,"PAnyd")),Y=G.next().value,d=G.next().value,E=new Fgq(function(v){d(v)},z,B);
_.ja(function(){Promise.resolve().then(function(){var v,c=(v=W())!=null?v:{};E.playerControlsData=c;_.r("player_controls_skip_double_signal_old")&&(E.lastSeenPlayerApi=_.D0(c.playerApi));_.r("player_controls_skip_double_signal_old")||(E.lastSeenPlayerApi=_.D0(c.playerApi));SEb(E)});
_.fR(function(){bgf(E)})},"HikUP");
_.fR(function(){bgf(E)});
return function(){return Y()}};
f_9=function(W){return function(B){var z=W(),G={playerState:B};if(B===1){var Y;(Y=z.playerApi)==null||Y.loadModule("captions")}if(B===0){var d;(d=z.playerApi)==null||d.unloadModule("captions")}B!==-1&&z.setState(G)}};
OgY=function(W){return function(B){W().setState({playbackRate:B})}};
XVi=function(W){return function(B){var z=W(),G=z.playerApi,Y=G==null?void 0:G.getVideoData(),d=(Y==null?void 0:Y.isLive)||!1;Y=Y==null?void 0:Y.video_id;d={videoDuration:ACf(G||void 0),isLive:d,videoId:Y};d.videoId!==z.videoId&&(d=Object.assign({},_.Fq8(G),d));if(B==null?0:B.playertype)d.playerType=B.playertype;if(G){d.captionsAvailable=_.lV(G);B=d;var E;Y=(E=G.getStoryboardLevel(G.getNumberOfStoryboardLevels()-1))==null?void 0:E.intervalMs;B.storyboardInterval=Y?Y/1E3:void 0;d.captionsAvailable&&
(d.captionsEnabled=_.cWr(G))}d.volumeMuted=!(G==null||!G.isMuted());z.setState(d)}};
Kg9=function(W){return function(B){var z=W(),G=z.playerApi;if(G){var Y=G.getPresentingPlayerType();B={playedTime:B||0,percentLoaded:G.getVideoLoadedFraction(),playerType:Y};z.playerState===0&&(B.playedTime=z.videoDuration);z.isLive&&(Y=G.getProgressState(Y),B.playedTime-=Y.seekableStart,B.videoDuration=ACf(G));if(z.playerType===1)G=!1;else{var d;if((d=z.uxConfig)==null?0:d.showCuedOverlay){var E;G=!((E=z.playerApi)==null?0:E.getPlayerStateObject(z.playerType).isDomPaused)}else G=!0}G&&delete B.playedTime;
z.setState(B)}}};
uGq=function(W){return function(){var B=W(),z,G,Y,d={volume:(Y=(z=B.playerApi)==null?void 0:z.getVolume())!=null?Y:0,volumeMuted:!((G=B.playerApi)==null||!G.isMuted())};B.setState(d)}};
e3i=function(W){return function(){var B=W(),z=B.playerApi;if(z){var G={captionsAvailable:_.lV(z)};G.captionsAvailable&&(G.captionsEnabled=_.cWr(z));B.setState(G)}}};
mXq=function(W){return function(){var B=W();if(B.playerApi&&!(B.volumeMuted||B.controlsVisible&&B.isProbablyAScreenreaderUser)){B.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var z;(z=document.querySelector(".player-control-play-pause-icon"))==null||z.focus()}}};
xXj=function(W){return{appApi:Object.assign({},_.khr(),{showCaptionsToggleToast:function(B){var z,G;(G=(z=W()).showCaptionsToggleToast)==null||G.call(z,B)},
openInMiniplayer:function(){var B,z;(z=(B=W()).openInMiniplayer)==null||z.call(B)}})}};
DXY=function(W,B){var z,G,Y;return!!(W==null?0:(z=W.playerResponse)==null?0:(G=z.playerConfig)==null?0:(Y=G.inlinePlaybackConfig)==null?0:Y.showScrubbingControls)&&!(B==null?0:B.hideScrubbingControls)};
_.Qef=function(W){var B=!W.miniplayerIsActive;return[5,2,0].includes(W.miniplayerPlaybackState)||B};
yDO={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};qE9=function(W,B){var z,G,Y,d,E;_.T(function(v){if(!B.length)return v.return([]);z=[];G=_.A(B);for(Y=G.next();!Y.done;Y=G.next())d=Y.value,(E=W.resolveIcon(d))&&!W.iconCache[E.url]&&z.push(_.Gdn(W,E).then(function(){}).catch(function(){}));
return v.return(Promise.all(z))})};
nb9=function(W,B){var z=[];B=(new Set(B)).values();B=_.A(B);for(var G=B.next();!G.done;G=B.next()){G=G.value;for(var Y=_.A(Object.values(yDO)),d=Y.next();!d.done;d=Y.next())z.push({iconName:G,iconStyle:d.value})}qE9(W.iconManager,z)};
_.N20=function(W,B,z){var G=z!=null?z:W.iconsToFetch;G!=null&&G.length?B!==void 0&&B>=0?_.CG(_.fg,function(){nb9(W,G)},B):nb9(W,G):Promise.resolve()};
$Xi={sharedUi:_.GJT,a11y:_.Bv7,entities:{}};
Fgq=function(W,B,z){var G=this;this.renderFn=W;this.listeners=B;this.context=z;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var Y;this.lastSeenPlayerApi=_.D0((Y=this.playerControlsData)==null?void 0:Y.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.Fq8(),void 0);_.r("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Hgn(G).setState({playerState:-1});G.resetRecentlyNavigatedJobId&&_.fg.cancelJob(G.resetRecentlyNavigatedJobId);
G.recentlyNavigated=!0;G.resetRecentlyNavigatedJobId=_.fg.addJob(function(){G.recentlyNavigated=!1},8,1E4)})};
Fgq.prototype.setState=function(W){if(!_.r("mweb_player_skip_no_op_state_changes")||!i4f(W,this.state))if(this.state=Object.assign({},this.state,W),!_.r("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)W=-1,_.r("player_controls_log_creation_killswitch")||E8q()||(W=(0,_.Yb)()),_.mj("pcu_s"),_.mj("pcu_se"),_.mj("pcu_rs"),this.renderFn(Hgn(this)),_.mj("pcu_re"),TOb(W),_.fg.addJob(function(){_.mj("pcu_ap")},8)};
var Hgn=function(W){var B;var z=_.D0((B=W.playerControlsData)==null?void 0:B.playerApi);return Object.assign({},W.state,{setState:W.boundSetState,domMeasurements:{progressBarLineRect:W.progressBarLineRect},playerApi:z,appApi:W.context.appApi,playerContainer:W.context.playerContainer,playerControlContainer:W.context.playerControlContainer,uxConfig:W.context.uxConfig})},SEb=function(W){W.listeners.forEach(function(B){W.eventListenerCleanupFunctions.push(B.register(function(){return Hgn(W)},function(){return W.getData()}))})},
bgf=function(W){W.eventListenerCleanupFunctions.forEach(function(B){B()});
W.eventListenerCleanupFunctions.length=0};
Fgq.prototype.getData=function(){return this.playerControlsData};
var Lgb=new _.J1("crowdsourcedContextUserRatingFormFlowState");var UXn=new _.J1("noteViewModel");var aI=new _.J1("abuseReportFlowState");var Ml6=new _.J1("feedbackFormFlowState");var a_r=new _.J1("inputBoxViewModel");var R3q=new _.J1("flowNextStepCommand");var WEf=new _.J1("flowPrevStepCommand");var B7q=new _.J1("updateFlowCommand");_.z5Y=new _.J1("flowStepRenderer");_.$nq=new _.J1("lengthValidationRule");var Un6=new _.J1("regexValidationRule");var aof=new _.J1("selectedValidationRule");var Gi1=new _.J1("talkToRecsViewModel");var Yci=new _.J1("creatorGoalSetUpFlowDropdownItemViewModel");var dln=new _.J1("creatorGoalSetUpFlowDropdownViewModel");var I_b=new _.J1("thumbnailBadgeViewModel");var pT6=new _.J1("checkboxGroupViewModel");var yC6=new _.J1("checkboxItemViewModel");_.RI=new _.J1("radioButtonGroupViewModel");var AX9=new _.J1("radioButtonItemViewModel");var vbK=new _.J1("panelFooterViewModel");var iGr=new _.J1("ypcCancelRecurrenceCommand");var EEn=new _.J1("cancellationFlowState");var O4j=new _.J1("premiumPurchaseFlowState");var T7q=new _.J1("surveyAnswerCardRenderer");var vE6=new _.J1("showMoreButtonRenderer");var cXj;var wT9,Vyf=function(){if(wT9!==void 0)return wT9;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;cXj===void 0&&(cXj=document.createElement("template"));var G=cXj;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return wT9=W};var Wp=function(){var W=_.S.apply(this,arguments)||this;W.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";W.goalDescription="";W.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";W.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";W.startButtonId="start-button";W.exampleButtonId="example-button";return W};
_.C(Wp,_.S);_.p=Wp.prototype;_.p.getGoalDropdownItems=function(){var W,B;return(B=_.k((W=this.data)==null?void 0:W.purchaseTargetDropdown,dln))==null?void 0:B.dropdownItems};
_.p.getTimerDropdownItems=function(){var W,B;return(B=_.k((W=this.data)==null?void 0:W.timerDropdown,dln))==null?void 0:B.dropdownItems};
_.p.getColorDropdownItems=function(){var W,B;return(B=_.k((W=this.data)==null?void 0:W.colorDropdown,dln))==null?void 0:B.dropdownItems};
_.p.getDropdownItemText=function(W){var B;return(B=_.k(W,Yci))==null?void 0:B.itemLabel};
_.p.getDropdownItemValue=function(W){W=_.k(W,Yci);return(W==null?void 0:W.timeLimit)||(W==null?void 0:W.purchaseTarget)||(W==null?void 0:W.eligiblePurchaseType)};
_.p.updateFlowState=function(W){_.c0(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:W}])};
_.p.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.p.updateGoalValue=function(W){this.goal=W.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.p.onTextValueChanged=function(W){this.goalDescription=W.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.p.updateTimerValue=function(W){this.timer=W.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.p.updateTierValue=function(W){this.tier=W.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.p.getButtonViewModel=function(W){W=(W==null?void 0:W.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var B,z=_.k((B=this.data)==null?void 0:B.startGoalButton,_.wP);return Object.assign({},z,{state:W})};
_.G5.Object.defineProperties(Wp,{template:{configurable:!0,enumerable:!0,get:function(){return Vyf()}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Wp.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Wp.prototype,"goal",void 0);_.Q([_.F(),_.y("design:type",Object)],Wp.prototype,"goalDescription",void 0);_.Q([_.F(),_.y("design:type",Object)],Wp.prototype,"timer",void 0);_.Q([_.F(),_.y("design:type",Object)],Wp.prototype,"tier",void 0);
_.Q([_.F(),_.y("design:type",Object)],Wp.prototype,"startButtonId",void 0);_.Q([_.F(),_.y("design:type",Object)],Wp.prototype,"exampleButtonId",void 0);_.Q([_.NJ({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Wp);_.D(Wp,"yt-creator-goal-set-up-flow-view-model",function(){return Vyf()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var JX0;JX0=Object.assign({},{continuation:_.YGM,download:_.R4T,canvas:_.q6x,reportChannelAbuse:_.TvR,ui:_.N0r,share:_.vD9,talkToRecs:_.wlD,watch:_.A5,ypc:_.Pn9,radioButtonGroup:_.cux,collabInviteLink:_.T0Q},$Xi,{voiceSearch:_.U8y,shorts:_.pI});_.Bp=_.xG(JX0);_.gEb=_.DN(_.Bp);var tyY;var sgb;var Ppi;var ZGn=function(){return _.S.apply(this,arguments)||this};
_.C(ZGn,_.S);_.Q([_.F(),_.y("design:type",Object)],ZGn.prototype,"data",void 0);_.Q([_.NJ({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],ZGn);
_.D(ZGn,"yt-survey-answer-card-renderer",function(){if(Ppi===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;sgb===void 0&&(sgb=document.createElement("template"));var G=sgb;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Ppi=W}W=Ppi;return W},{mode:2});var rXj;var kib;var zL=function(){return _.S.apply(this,arguments)||this};
_.C(zL,_.S);_.p=zL.prototype;_.p.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.p.selectedItemChanged=function(W){_.c0(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[W.feedbackToken||""]}])};
_.p.surveyAnswerCardRendererClicked=function(W){if(W.target&&_.k(W.model.item,T7q)){var B=W.target;W=_.k(W.model.item,T7q);W.onTapCommand?_.Jr(B,[W.onTapCommand],B):this.data.onTapCommand&&_.Jr(B,[this.data.onTapCommand],B);this.selectedItemChanged(W)}};
_.p.checkIsCancellationStyle=function(W){return W==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.p.updateSelectedItemFromBinding=function(W){this.selectedItem=W.detail.value};
zL.prototype.onSelectedItemChanged=zL.prototype.onSelectedItemChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],zL.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],zL.prototype,"selectedItem",void 0);_.Q([_.F({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.y("design:type",Boolean)],zL.prototype,"isCancellationStyle",void 0);
_.Q([_.oN("selectedItem"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zL.prototype,"onSelectedItemChanged",null);_.Q([_.NJ({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],zL);
_.D(zL,"yt-survey-flow-step-renderer",function(){if(kib===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;rXj===void 0&&(rXj=document.createElement("template"));var G=rXj;z.call(B,G.content.cloneNode(!0),W.content.firstChild);kib=W}W=kib;return W},{mode:2});var GL=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return W};
_.C(GL,_.S);GL.prototype.handleSurveyFlowStepOptionChanged=function(W){this.ytdReduxBehavior.dispatch(_.Tl({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:W}));_.c0(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:W}}])};
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],GL.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],GL.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],GL.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],GL);
_.D(GL,"ytd-survey-flow-step-renderer",function(){if(tyY!==void 0)return tyY;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tyY=W},{mode:1});_.oEK=_.m(function(W){var B=W.data;var z=W.hideDivider;var G=W.isChannelInfoCard;W={};return _.w("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.w("div",{class:_.kG("yt-profile-identity-info-view-model__frame",(W["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!B().channelBanner},W))},_.w(lD9,{profileIdentityInfoData:B}),_.w("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.w("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.w(_.Sc,{data:function(){return B().avatar}},{avatarViewModel:_.ds})),_.w(Cp1,{profileIdentityInfoData:B})),_.w(_.V,{cond:function(){return B().channelDescription},
then:function(Y){var d={};return _.w("div",{class:_.kG((d["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(G==null||!G())},d["yt-profile-identity-info-view-model__channel-description"]=function(){return!(G==null?0:G())},d))},Y)}}),_.w(ID6,{profileIdentityInfoData:B}),_.w(_.V,{cond:function(){return!(z==null?0:z())},
then:function(){return _.w("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"If");
_.oEK.idomCompat=!0;var ID6=_.m(function(W){var B=W.profileIdentityInfoData;return _.w("div",{class:"yt-profile-identity-info-view-model__buttons"},_.w(_.IJ,{each:function(){return B().subscribeButton?[B().subscribeButton,B().channelAccess]:[B().channelAccess]}},function(z){return _.w("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.w("div",{class:"yt-profile-identity-info-view-model--button"},_.w(_.Sc,{data:function(){return z}},{buttonViewModel:_.ex,
subscribeButtonViewModel:_.dJ})))}))},"Jf"),Cp1=_.m(function(W){var B=W.profileIdentityInfoData;
return _.w("div",{class:"yt-profile-identity-info-view-model__trio"},_.w("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.w(h5r,{profileIdentityInfoData:B}),_.w(_.Sc,{data:function(){return B().threeDotMenu}},{buttonViewModel:_.ex})),_.w(HGO,{profileIdentityInfoData:B}))},"Kf"),h5r=_.m(function(W){var B=W.profileIdentityInfoData;
return _.w("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.w("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return B().channelDisplayName}),_.w(_.V,{cond:function(){return B().verifiedOrOacBadge},
then:function(z){return _.w("div",{class:"yt-profile-identity-info-view-model__badge"},_.w(_.iF,{data:function(){return{thumbnails:[{url:z().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Lf"),lD9=_.m(function(W){var B=W.profileIdentityInfoData;
return _.w("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.w(_.Sc,{data:function(){var z=B().channelBanner;if(z)return{imageBannerViewModel:{image:z.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(z){return _.w("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.w(_.gQ,{data:z.data,
isPositionRelative:!0}))}}))},"Mf"),HGO=_.m(function(W){var B=W.profileIdentityInfoData;
return _.w("div",{class:"yt-profile-identity-info-view-model__metadata"},_.w("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.w("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return B().channelHandle}),_.w(_.V,{cond:function(){return B().channelPronouns&&B().channelHandle},
then:function(){return _.w("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.w("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return B().channelPronouns})),_.w("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.w("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return B().leftOfBulletInfo}),_.w(_.V,{cond:function(){return B().leftOfBulletInfo&&B().rightOfBulletInfo},
then:function(){return _.w("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.w("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return B().rightOfBulletInfo})))},"Nf");var FEn;var Yg=function(){return _.S.apply(this,arguments)||this};
_.C(Yg,_.S);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Yg.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Yg.prototype,"data",void 0);_.Q([_.u({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Yg);
_.D(Yg,"ytd-channel-history-renderer",function(){if(FEn!==void 0)return FEn;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return FEn=W},{mode:1});var ScO;var bGj=function(){return _.S.apply(this,arguments)||this};
_.C(bGj,_.S);_.Q([_.F(),_.y("design:type",Object)],bGj.prototype,"data",void 0);_.Q([_.u({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],bGj);
_.D(bGj,"ytd-feature-enablement-info-renderer",function(){if(ScO!==void 0)return ScO;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ScO=W},{mode:1});var jg6;var fDb;var dp=function(){var W=_.S.apply(this,arguments)||this;W.textBoxMaxLength=_.r("enable_tvod_campaign_code_integration")?15:12;return W};
_.C(dp,_.S);_.p=dp.prototype;_.p.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.p.onSubmit=function(){var W=this.data.serviceEndpoint,B=_.k(W,_.Gm);B&&W&&(B.couponCode=this.userInput,_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}}))};
_.p.validate=function(){var W=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=W&&!this.data.errorMessage;this.showErrorMessage=W&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.r("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.p.computeStyle=function(W){return W};
_.p.computeShowValidationBelowInput=function(W){return W!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.p.updateUserInputFromBinding=function(W){this.userInput=W.currentTarget.value};
_.p.updateShowErrorMessageFromBinding=function(W){this.showErrorMessage=W.detail.value};
_.G5.Object.defineProperties(dp.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
dp.prototype.dataChanged=dp.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],dp.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],dp.prototype,"userInput",void 0);_.Q([_.F(),_.y("design:type",Boolean)],dp.prototype,"disableApplyButton",void 0);_.Q([_.F(),_.y("design:type",Boolean)],dp.prototype,"hideApplyButton",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],dp.prototype,"hideErrorMessage",void 0);_.Q([_.F(),_.y("design:type",Boolean)],dp.prototype,"showTick",void 0);_.Q([_.F(),_.y("design:type",Boolean)],dp.prototype,"showErrorMessage",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],dp.prototype,"couponStyle",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.y("design:type",Boolean)],dp.prototype,"showValidationBelowInput",void 0);_.Q([_.F(),_.y("design:type",Object)],dp.prototype,"textBoxMaxLength",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dp.prototype,"dataChanged",null);
_.Q([_.H("showTick","showErrorMessage","userInput"),_.y("design:type",String),_.y("design:paramtypes",[])],dp.prototype,"validationState",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],dp);
_.D(dp,"ytd-ypc-coupon-renderer",function(){if(fDb!==void 0)return fDb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return fDb=W},{mode:1});var p1=function(){return _.S.apply(this,arguments)||this};
_.C(p1,_.S);p1.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"}}}};
p1.prototype.computeStyle=function(W){return W};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],p1.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],p1.prototype,"buttonStyle",void 0);_.Q([_.u({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],p1);
_.D(p1,"ytd-flow-bottom-bar-renderer",function(){if(jg6!==void 0)return jg6;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return jg6=W},{mode:1});var OG9;var XTY;var KE6;var A9=function(){return _.S.apply(this,arguments)||this};
_.C(A9,_.S);A9.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
A9.prototype.focus=function(W){this.title&&_.Lg(this.title,W)};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],A9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],A9.prototype,"data",void 0);_.Q([_.Hf("#title"),_.y("design:type",HTMLElement)],A9.prototype,"title",void 0);_.Q([_.u({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],A9);
_.D(A9,"ytd-flow-top-bar-renderer",function(){if(KE6!==void 0)return KE6;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return KE6=W},{mode:1});var uC0;var e5j;var mlf;var Ey=function(){return _.S.apply(this,arguments)||this};
_.C(Ey,_.S);Ey.prototype.freeTextValueChanged=function(){_.c0(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Ey.prototype.updateFreeTextValueFromBinding=function(W){this.freeTextValue=W.detail.value};
_.G5.Object.defineProperties(Ey.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var W,B,z=(B=(W=this.data)==null?void 0:W.responseMaxLength)!=null?B:500,G;return((G=this.freeTextValue)!=null?G:"").length>=z?"maxed-out":""}}});
Ey.prototype.freeTextValueChanged=Ey.prototype.freeTextValueChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ey.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],Ey.prototype,"freeTextValue",void 0);_.Q([_.Hf("#user-input"),_.y("design:type",HTMLTextAreaElement)],Ey.prototype,"input",void 0);
_.Q([_.H("freeTextValue"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ey.prototype,"characterLimitClass",null);_.Q([_.oN("freeTextValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ey.prototype,"freeTextValueChanged",null);_.Q([_.NJ({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Ey);
_.D(Ey,"yt-free-text-input-flow-step-renderer",function(){if(mlf===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;e5j===void 0&&(e5j=document.createElement("template"));var G=e5j;z.call(B,G.content.cloneNode(!0),W.content.firstChild);mlf=W}W=mlf;return W},{mode:2});var TL=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return W};
_.C(TL,_.S);TL.prototype.handleFreeTextFlowStepInputChanged=function(W){_.c0(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:W}}])};
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],TL.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],TL.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],TL.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],TL);
_.D(TL,"ytd-free-text-input-flow-step-renderer",function(){if(uC0!==void 0)return uC0;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return uC0=W},{mode:1});var xl1;var Dlf;var Qgf=function(){return _.S.apply(this,arguments)||this};
_.C(Qgf,_.S);_.Q([_.F(),_.y("design:type",Object)],Qgf.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],Qgf);
_.D(Qgf,"ytd-metadata-line-renderer",function(){if(Dlf!==void 0)return Dlf;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Dlf=W},{mode:1});var vp=function(){return _.S.apply(this,arguments)||this};
_.C(vp,_.S);vp.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],vp.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],vp.prototype,"isMasthead",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],vp);
_.D(vp,"ytd-media-product-renderer",function(){if(xl1!==void 0)return xl1;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return xl1=W},{mode:1});var yX1;var cp=function(){return _.S.apply(this,arguments)||this};
_.C(cp,_.S);cp.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
cp.prototype.onBillboardImageLoaded=function(){_.v0(this.hostElement,"yt-refit")};
cp.prototype.onBillboardImageLoaded=cp.prototype.onBillboardImageLoaded;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],cp.prototype,"data",void 0);_.Q([_.Hf("#billboardImage"),_.y("design:type",Object)],cp.prototype,"billboardImage",void 0);_.Q([_.IN("yt-img-shadow-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cp.prototype,"onBillboardImageLoaded",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],cp);
_.D(cp,"ytd-billboard-masthead-renderer",function(){if(yX1!==void 0)return yX1;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return yX1=W},{mode:1});var qcf;var wp=function(){var W=_.S.apply(this,arguments)||this;W.smallSize=!1;return W};
_.C(wp,_.S);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],wp.prototype,"ytComponentBehaviorType",void 0);_.Q([_.F(),_.y("design:type",Object)],wp.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],wp.prototype,"smallSize",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],wp);
_.D(wp,"ytd-bullet-formatted-string",function(){if(qcf!==void 0)return qcf;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return qcf=W},{mode:1});var nEb;var Va=function(){return _.S.apply(this,arguments)||this};
_.C(Va,_.S);Va.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Va.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Va.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Va);
_.D(Va,"ytd-offer-detail-renderer",function(){if(nEb!==void 0)return nEb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return nEb=W},{mode:1});var N70;var J9=function(){return _.S.apply(this,arguments)||this};
_.C(J9,_.S);J9.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"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],J9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],J9.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],J9);
_.D(J9,"ytd-offer-detail-step-renderer",function(){if(N70!==void 0)return N70;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return N70=W},{mode:1});var $lr;var gp=function(){var W=_.S.apply(this,arguments)||this;W.isInOfferModule=!1;return W};
_.C(gp,_.S);_.p=gp.prototype;_.p.computeHasEndpoint=function(){var W;return!((W=this.data)==null||!W.onClickCommand)};
_.p.dataChanged=function(){var W;if((W=this.data)==null?0:W.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")};
_.p.detached=function(){var W;if((W=this.data)==null?0:W.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.p.handleClickEvent=function(){var W;if((W=this.data)==null?0:W.onClickCommand){var B;this.componentBehavior.resolveCommand((B=this.data)==null?void 0:B.onClickCommand)}};
_.p.onContentKeyDown=function(W){W.key==="Enter"?this.handleClickEvent(W):W.key===" "&&W.preventDefault()};
_.p.onContentKeyUp=function(W){W.key===" "&&this.handleClickEvent(W)};
gp.prototype.dataChanged=gp.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],gp.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],gp.prototype,"data",void 0);_.Q([_.F({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],gp.prototype,"hasEndpoint",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],gp.prototype,"isInOfferModule",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gp.prototype,"dataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],gp);
_.D(gp,"ytd-channel-masthead-renderer",function(){if($lr!==void 0)return $lr;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $lr=W},{mode:1});var LEi;var t9=function(){var W=_.S.apply(this,arguments)||this;W.thumbnailObjectFit="CONTAIN";W.thumbnailObjectPosition="LEFT";W.isExpanded=!1;return W};
_.C(t9,_.S);_.p=t9.prototype;_.p.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.p.dataChanged=function(){this.resetStates()};
_.p.computeisTapOnOfferInfoContainerEnabled=function(){var W;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.p.onExpandBtnClick=function(){var W,B=_.k((W=this.data)==null?void 0:W.showMoreButtonRenderer,vE6);B&&_.x3(_.SK(),B.trackingParams);this.isExpanded=!this.isExpanded};
_.p.onOfferInfoClick=function(W){this.isTapOnOfferInfoContainerEnabled&&(_.p2(_.AH(W)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Ag(_.AH(W)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.p.onBottomBarClick=function(){this.executeTapCommand()};
_.p.executeTapCommand=function(){var W,B=(W=this.data)==null?void 0:W.tapCommand;B&&this.ytComponentBehavior.resolveCommand(B)};
_.p.resetStates=function(){this.isExpanded=!1};
_.G5.Object.defineProperties(t9.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var W=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),B,z,G;return((B=this.data)==null?void 0:B.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&W&&!!((z=this.data)==null?0:(G=z.benefits)==null?0:G.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return((B=_.k((W=this.data)==null?void 0:W.showMoreButtonRenderer,vE6))==null?void 0:B.showMoreButtonTitle)||((z=this.data)==null?void 0:z.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return((B=_.k((W=this.data)==null?void 0:W.showMoreButtonRenderer,vE6))==null?void 0:B.showLessButtonTitle)||((z=this.data)==null?void 0:z.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var W;return(W=this.showLessButtonTitle)!=null?W:""}var B;return(B=this.showMoreButtonTitle)!=null?B:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((B=this.data)==null?0:B.footerTitle)||((z=this.data)==null?0:z.footerSubtitle))}}});
t9.prototype.dataChanged=t9.prototype.dataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],t9.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],t9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",String)],t9.prototype,"thumbnailObjectFit",void 0);
_.Q([_.F(),_.y("design:type",String)],t9.prototype,"thumbnailObjectPosition",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.y("design:type",Boolean)],t9.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.Q([_.F(),_.y("design:type",Object)],t9.prototype,"isExpanded",void 0);_.Q([_.F(),_.y("design:type",Object)],t9.prototype,"data",void 0);_.Q([_.F({computed:"computeIcon_(data.footerIcon)"}),_.y("design:type",String)],t9.prototype,"icon",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],t9.prototype,"dataChanged",null);_.Q([_.H("data.thumbnail"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],t9.prototype,"hasThumbnail",null);_.Q([_.H("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],t9.prototype,"enableExpandButton",null);
_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],t9.prototype,"enableOfferContentIcon",null);_.Q([_.H("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.y("design:type",Object),_.y("design:paramtypes",[])],t9.prototype,"showMoreButtonTitle",null);_.Q([_.H("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.y("design:type",Object),_.y("design:paramtypes",[])],t9.prototype,"showLessButtonTitle",null);
_.Q([_.H("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.y("design:type",String),_.y("design:paramtypes",[])],t9.prototype,"expandedBtnText",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],t9.prototype,"enableBottomBar",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],t9);
_.D(t9,"ytd-offer-card-renderer",function(){if(LEi!==void 0)return LEi;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return LEi=W},{mode:1});var Ulj;var sy=function(){return _.S.apply(this,arguments)||this};
_.C(sy,_.S);sy.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"}}}};
sy.prototype.onClick=function(W){if(!_.p2(W.composedPath()||[],this.hostElement,["A".toString()])){var B,z;if((W=(z=_.k((B=this.data)==null?void 0:B.actionButton,_.Ep))==null?void 0:z.command)&&!this.ytComponentBehavior.resolveCommand(W)){var G;(G=_.SK())==null||G.clickCommand(W);_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}})}}};
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],sy.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],sy.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],sy);
_.D(sy,"ytd-offer-content-renderer",function(){if(Ulj!==void 0)return Ulj;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Ulj=W},{mode:1});var My9;var Pp=function(){return _.S.apply(this,arguments)||this};
_.C(Pp,_.S);Pp.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.G5.Object.defineProperties(Pp.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var W,B;return!((W=this.data)==null||!W.title)||!((B=this.data)==null||!B.description)}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Pp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Pp.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Pp.prototype,"hasHeaderData",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Pp);
_.D(Pp,"ytd-offer-section-renderer",function(){if(My9!==void 0)return My9;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return My9=W},{mode:1});var aDf;var Zg=function(){return _.S.apply(this,arguments)||this};
_.C(Zg,_.S);
Zg.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"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Zg.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Zg);
_.D(Zg,"ytd-offer-selection-step-renderer",function(){if(aDf!==void 0)return aDf;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return aDf=W},{mode:1});var R5r;var rp=function(){return _.S.apply(this,arguments)||this};
_.C(rp,_.S);rp.prototype.computeStyle=function(W){return W};
rp.prototype.computeImageWidth=function(W){return W==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.Q([_.F({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.y("design:type",String)],rp.prototype,"containerStyle",void 0);_.Q([_.F({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.y("design:type",String)],rp.prototype,"imageWidth",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],rp.prototype,"data",void 0);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],rp);
_.D(rp,"ytd-confirmation-masthead-renderer",function(){if(R5r!==void 0)return R5r;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return R5r=W},{mode:1});var Wzq;var kg=function(){return _.S.apply(this,arguments)||this};
_.C(kg,_.S);kg.prototype.computeStyle=function(W){return W};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],kg.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.y("design:type",String)],kg.prototype,"containerStyle",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],kg);
_.D(kg,"ytd-purchase-complete-detail-renderer",function(){if(Wzq!==void 0)return Wzq;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Wzq=W},{mode:1});var Bqi;var lt=function(){var W=_.S.apply(this,arguments)||this;W.scriptsAppended=!1;return W};
_.C(lt,_.S);lt.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"}}}};
lt.prototype.onDataChanged=function(){var W=this.get("data.gtmId");W&&(_.zr(W,_.eD("GL","")),this.setupConversionTracking())};
lt.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var W=document.createElement("noscript");W.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(W);this.scriptsAppended=!0}};
lt.prototype.onDataChanged=lt.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],lt.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],lt.prototype,"scriptsAppended",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lt.prototype,"onDataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],lt);
_.D(lt,"ytd-purchase-complete-step-renderer",function(){if(Bqi!==void 0)return Bqi;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Bqi=W},{mode:1});var z21;var C1=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(C1,_.S);C1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],C1.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],C1.prototype,"darkerDarkTheme",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],C1);
_.D(C1,"ytd-ypc-transaction-error-message-renderer",function(){if(z21!==void 0)return z21;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return z21=W},{mode:1});var Gpq;var Yjn;var IU=function(){var W=_.S.apply(this,arguments)||this;W.handlePhoneVerificationSuccess=function(B){if(W.isValidPhoneVerificationCompletionMessageEvent(B)){var z;((z=W.data)==null?0:z.nextStepCommand)&&W.ytComponentBehavior.resolveCommand(W.data.nextStepCommand)}};
return W};
_.C(IU,_.S);IU.prototype.isValidPhoneVerificationCompletionMessageEvent=function(W){if(W.data!=="yt-phone-verification-complete")return!1;W=_.WS(W.origin);return W!==null&&W.includes("youtube.com")};
IU.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
IU.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],IU.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],IU.prototype,"data",void 0);_.Q([_.NJ({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],IU);
_.D(IU,"yt-feature-enablement-soft-entry-renderer",function(){if(Yjn===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Gpq===void 0&&(Gpq=document.createElement("template"));var G=Gpq;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Yjn=W}W=Yjn;return W},{mode:1});var dA6;var p_i;var Aj1;var ilK;var EFq=function(){return _.S.apply(this,arguments)||this};
_.C(EFq,_.S);_.Q([_.F(),_.y("design:type",Object)],EFq.prototype,"data",void 0);_.Q([_.NJ({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],EFq);
_.D(EFq,"yt-benefits-item-renderer",function(){if(ilK===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Aj1===void 0&&(Aj1=document.createElement("template"));var G=Aj1;z.call(B,G.content.cloneNode(!0),W.content.firstChild);ilK=W}W=ilK;return W},{mode:2});var Tqn;var vF1;var oU=function(){return _.S.apply(this,arguments)||this};
_.C(oU,_.S);oU.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
oU.prototype.computeisWithoutPadding=function(){var W;return((W=this.data)==null?void 0:W.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],oU.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.y("design:type",Boolean)],oU.prototype,"isWithoutPadding",void 0);_.Q([_.NJ({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],oU);
_.D(oU,"yt-benefits-section-renderer",function(){if(vF1===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Tqn===void 0&&(Tqn=document.createElement("template"));var G=Tqn;z.call(B,G.content.cloneNode(!0),W.content.firstChild);vF1=W}W=vF1;return W},{mode:2});var h9=function(){return _.S.apply(this,arguments)||this};
_.C(h9,_.S);h9.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
h9.prototype.computeisUsingLargeWidth=function(){var W;return((W=this.data)==null?void 0:W.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],h9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],h9.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.y("design:type",Boolean)],h9.prototype,"isUsingLargeWidth",void 0);_.Q([_.NJ({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],h9);
_.D(h9,"yt-benefits-flow-step-renderer",function(){if(p_i===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;dA6===void 0&&(dA6=document.createElement("template"));var G=dA6;z.call(B,G.content.cloneNode(!0),W.content.firstChild);p_i=W}W=p_i;return W},{mode:2});var cj9;var w_1;var Hp=function(){return _.S.apply(this,arguments)||this};
_.C(Hp,_.S);Hp.prototype.checkIsUsingLargeWidth=function(){var W;return((W=this.data)==null?void 0:W.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.Q([_.F(),_.y("design:type",Object)],Hp.prototype,"data",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.y("design:type",Boolean)],Hp.prototype,"isUsingLargeWidth",void 0);_.Q([_.NJ({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Hp);
_.D(Hp,"yt-confirmation-flow-step-renderer",function(){if(w_1===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;cj9===void 0&&(cj9=document.createElement("template"));var G=cj9;z.call(B,G.content.cloneNode(!0),W.content.firstChild);w_1=W}W=w_1;return W},{mode:2});var VjO;var JjY;var gFi=function(){return _.S.apply(this,arguments)||this};
_.C(gFi,_.S);_.Q([_.F(),_.y("design:type",Object)],gFi.prototype,"data",void 0);_.Q([_.NJ({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],gFi);
_.D(gFi,"yt-info-flow-step-renderer",function(){if(JjY===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;VjO===void 0&&(VjO=document.createElement("template"));var G=VjO;z.call(B,G.content.cloneNode(!0),W.content.firstChild);JjY=W}W=JjY;return W},{mode:2});var tjf;var ssj;var PYf=function(){return _.S.apply(this,arguments)||this};
_.C(PYf,_.S);_.Q([_.F(),_.y("design:type",Object)],PYf.prototype,"data",void 0);_.Q([_.NJ({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],PYf);
_.D(PYf,"yt-info-list-flow-step-renderer",function(){if(ssj===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;tjf===void 0&&(tjf=document.createElement("template"));var G=tjf;z.call(B,G.content.cloneNode(!0),W.content.firstChild);ssj=W}W=ssj;return W},{mode:2});var ZlK=_.m(function(W){var B=W.data;return _.w("styled-text-view-model",{class:_.kG("ytStyledTextViewModelHost",function(){return lor(B().fontAttributes)},function(){return k4Y(B().color)})},_.w(_.r0,{text:function(){return B().text},
ariaLabel:function(){var z,G,Y;return(Y=(z=B().accessibility)==null?void 0:(G=z.accessibilityData)==null?void 0:G.label)!=null?Y:""}}))},"Of");
ZlK.idomCompat=!0;var rjr=_.m(function(W){var B=function(){var Y,d,E,v;return(v=(E=(Y=W.alt)==null?void 0:Y.call(W))!=null?E:(d=W.data().accessibilityData)==null?void 0:d.label)!=null?v:""},z=function(){return W.data().imageWidth},G=function(){return W.data().imageHeight};
return _.w("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.w(_.V,{cond:function(){var Y=W.data();if(Y){var d,E,v;var c=((d=_.dO().resolve(_.Y8(_.YG)))==null?0:d())?(E=Y.imageDark)!=null?E:Y.imageLight:(v=Y.imageLight)!=null?v:Y.imageDark}else c=void 0;return c},
then:function(Y){return _.w(_.iF,Object.assign({},W,{data:Y,alt:B,targetWidth:z,targetHeight:G,preserveHeight:!0,preserveWidth:!0}))}}))},"Pf");
rjr.idomCompat=!0;var Fe=_.m(function(W){var B=W.data;W=_.ig(function(){return B().slots},[]);
var z=_.ig(function(){return B().layoutProperties},{}),G=_.dO().resolve(_.py);
return _.w("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:tE9(z,G)},_.w(_.IJ,{each:W,keyBy:"INDEX"},function(Y){return _.w("div",{class:"ytContainerLayoutViewModelSlot",style:tE9(function(){return Y().layoutProperties},G)},_.w(_.Sc,{data:function(){return Y().contents}},{containerLayoutViewModel:Fe,
badgeViewModel:_.bM,buttonViewModel:_.ex,styledTextViewModel:ZlK,contentPreviewImageViewModel:function(d){return _.w(_.jh,{data:d.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(d){return _.w(rjr,{data:d.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Qf");
Fe.idomCompat=!0;var kpf=_.m(function(W){var B=W.data;var z=W.stateFns;var G=function(){var J=B(),g=J.productId;return!(!J.clearGroupId&&!g)},Y=function(){var J=B(),g=J.clearGroupId;
return(J=J.productId)?z().isProductSelected(J):g?z().getSelectedProductByGroupId(g)==null:!1},d=function(J){var g=B(),t=g.clearGroupId;
if(g=g.productId)z().onProductSelected(g),J==null||J.forEach(function(P){_.aB(P)});
else if(t)z().onClearGroupSelected(t)},E=function(){var J=B(),g=J.clearGroupId;
if(J=J.productId){var t;return"group:"+(((t=z().getProductById(J))==null?void 0:t.groupId)||"")}return g?"group:"+g:""},v=_.ig(function(){return B().header},[]),c=_.ig(function(){return B().body},[]);
return _.w("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.w(_.V,{cond:function(){return v().length>0||G()},
then:function(){return _.w("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.w("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.w(_.Sc,{data:v},{containerLayoutViewModel:function(J){return _.w("div",{class:"ytPdpCardSectionViewModelContentItem"},_.w(Fe,{data:J.data}))},
styledTextViewModel:function(J){return _.w("div",{class:"ytPdpCardSectionViewModelContentItem"},_.w(ZlK,{data:J.data}))}})),_.w(_.V,{cond:G,
then:function(){return _.w("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.w(_.vU,{checked:Y,name:E,onChange:function(){d(B().onSelect)}}))}}))}}),_.w(_.V,{cond:function(){return c().length>0},
then:function(){return _.w("div",null,_.w(_.Sc,{data:c},{containerLayoutViewModel:function(J){return _.w("div",{class:"ytPdpCardSectionViewModelContentItem"},_.w(Fe,{data:J.data}))}}))}}))},"Rf");
kpf.idomCompat=!0;var lEq=_.m(function(W){var B=W.data;var z=W.stateFns;return _.w("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.w(_.V,{cond:function(){return B().banner},
then:function(G){return _.w("div",{class:"ytPdpCardViewModelBanner"},_.w(_.r0,{text:G}))}}),_.w(_.Sc,{data:function(){return B().sections}},{pdpCardSectionViewModel:function(G){G=G.data;
var Y={};return _.w("div",{class:_.kG("ytPdpCardViewModelSectionContainer",(Y.ytPdpCardViewModelShowDividers=function(){return B().showDividers},Y))},_.w(kpf,{data:G,
stateFns:z}))}}))},"Sf");
lEq.idomCompat=!0;var CYK=_.m(function(W){var B=W.data;var z=W.isOverlay;W={};return _.w("pdp-masthead-view-model",{class:_.kG("ytPdpMastheadViewModelHost",(W.ytPdpMastheadViewModelIsOverlay=z,W))},_.w(_.Sc,{data:function(){return B().image}},{contentPreviewImageViewModel:_.jh,
themedImageViewModel:function(G){return _.w(rjr,{data:G.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.w(_.V,{cond:function(){return B().title},
then:function(G){return _.w("h1",{class:"ytPdpMastheadViewModelHeading"},_.w(_.r0,{text:G,isOverlay:z}))}}),_.w(_.IJ,{each:function(){var G;
return(G=B().finePrint)!=null?G:[]}},function(G){return _.w("div",{class:"ytPdpMastheadViewModelFinePrint"},_.w(_.r0,{text:G,
isOverlay:z}))}))},"Tf");
CYK.idomCompat=!0;var IE1=_.m(function(W){var B=W.data;var z=W.stateFns;var G=function(){return"pdp-pricing-group-selector-"+B().pricingGroupAttributeIds},Y=_.ig(function(){return B().pricingGroupSelectorSectionHeader});
return _.w("pdp-pricing-group-selector-view-model",null,_.w(_.V,{cond:function(){return!!Y()},
then:function(){return _.w(_.Sc,{data:Y},{sectionHeaderViewModel:function(d){d=d.data;var E={};return _.w("div",{class:_.kG("ytPdpPricingGroupSelectorViewModelSectionHeader",(E.ytPdpPricingGroupSelectorViewModelFullBleed=!0,E.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,E))},_.w(_.DC,{data:d}))}})}}),_.w("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.w(_.IJ,{each:function(){var d=z().getSelectedProductByGroupId(B().groupId);
if(!d)return _.fG(Error("Rj`"+B().groupId)),[];var E,v=(E=B().pricingGroupAttributeIds)!=null?E:[],c;if((c=d.pricingGroups)==null||!c.length||!v.length)return[];E=d.pricingGroups.filter(function(P){return v.length?P.pricingGroupAttributes.every(function(Z){return v.includes(Z)}):!1});
d=[];if(v.length>0){E=[].concat(_.u7(E));c=_.A(v);for(var J=c.next(),g={};!J.done;g={targetAttrId:void 0},J=c.next())g.targetAttrId=J.value,J=E.findIndex(function(P){return function(Z){return Z.pricingGroupAttributes.includes(P.targetAttrId)}}(g)),J!==-1&&(d.push(E[J]),E.splice(J,1))}var t=z().getSelectedPricingGroupAttributesByGroupId(B().groupId);
return d.map(function(P){var Z=!1;t&&P.pricingGroupAttributes&&(Z=NC(P.pricingGroupAttributes,t));return{pricingGroup:P,isSelected:Z}})},
keyBy:function(d){return d.pricingGroup.pricingGroupId}},function(d){return _.w("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.w("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.w(_.Sc,{data:function(){return d().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:Fe})),_.w("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.w(_.vU,{checked:function(){return d().isSelected},
name:G,onClick:function(){var E=d().pricingGroup;z().onPricingGroupSelected(E.pricingGroupId);if(E=_.$B(E.onSelectPricingGroup)){var v;(v=_.dO().resolve(_.p4))==null||v.resolveCommand(E)}}})))})))},"Uf");
IE1.idomCompat=!0;var oFn=_.m(function(W){var B=W.data;var z=W.stateFns;var G=function(){var E=z().getSelectedPricingOptions().map(function(J){return J.pricingOptionId}),v=z().getSelectedProductByGroupId(B().groupId);
if(!v)return _.fG(Error("Sj`"+B().groupId)),[];var c=z().getSelectedPricingGroupAttributesByGroupId(B().groupId);return htK(v.pricingOptions,c,E)},Y=_.ig(function(){return B().pricingOptionSelectorSectionHeader}),d=function(){return G().length>1};
return _.w("pdp-pricing-option-selector-view-model",null,_.w(_.V,{cond:function(){return!!Y()&&d()},
then:function(){return _.w(_.Sc,{data:Y},{sectionHeaderViewModel:function(E){E=E.data;var v={};return _.w("div",{class:_.kG("ytPdpPricingOptionSelectorViewModelSectionHeader",(v.ytPdpPricingOptionSelectorViewModelFullBleed=!0,v.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,v))},_.w(_.DC,{data:E}))}})}}),_.w(_.V,{cond:d,
then:function(){return _.w("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.w(_.IJ,{each:G,keyBy:"INDEX"},function(E){return _.w("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.w("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.w(_.Sc,{data:function(){return E().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Fe})),_.w("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.w(_.vU,{checked:function(){return E().isSelected},
onClick:function(){z().onPricingOptionSelected(E().pricingOption.pricingOptionId);var v=E().pricingOption.onSelectPricingOption;if(v=_.$B(v)){var c;(c=_.dO().resolve(_.p4))==null||c.resolveCommand(v)}}})))}))}}))},"Vf");
oFn.idomCompat=!0;var h20=_.m(function(W){var B=W.data;var z=W.stateFns;return _.w("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.w(_.Sc,{data:function(){var G,Y;return(Y=(G=z().getSelectedPricingOptions()[0])==null?void 0:G.primaryButton)!=null?Y:B().emptyStateButton}},{buttonViewModel:_.ex}))},"Wf");
h20.idomCompat=!0;var Hlj=_.m(function(W){var B=W.stateFns;return _.w("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.w(_.Sc,{data:function(){return B().getSelectedPricingOptions().flatMap(function(z){return z.summaryLines}).filter(function(z){return!!z})}},{containerLayoutViewModel:function(z){return _.w("div",{class:"ytPdpSummaryViewModelLineItem"},_.w(Fe,{data:z.data}))}}))},"Xf");
Hlj.idomCompat=!0;var Fzi=_.m(function(W){function B(O){var K=E();_.AV(_.ue("pdpStateEntity",K,{key:K,selectedPricingOptions:O}))}
var z=W.data;var G=W.internalScrolling;var Y=W.stateFnsForTesting;var d=_.ig(function(){return z().allProducts},[]),E=_.ig(function(){return z().pdpStateEntityKey},""),v=_.hg(H4O,E),c=_.r4(function(){_.XA(!0);
var O;return(O=Y==null?void 0:Y())!=null?O:SAi(v,d,B)},void 0,"tAB69c"),J=_.ig(function(){return z().body},[]),g=_.ig(function(){return z().columnBreakHints},[]),t=function(){return z().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},P=function(){return t()||z().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},Z=_.r4(function(){var O=_.UM(z().background),K;
if(O==null?0:(K=O.sources)==null?0:K.length){var e=e===void 0?!0:e;O=_.Q20(void 0,O.sources,void 0,e,e?1E3:void 0,e?void 0:1E3)}else O=null;return O},void 0,"bHjkUb");
W=_.oK({"--pdp-view-model-background":function(){return Z()?"url("+Z()+")":void 0}});
var l={};G=_.kG("ytPdpViewModelHost",(l.ytPdpViewModelHasBackground=function(){return P()||!!Z()},l.ytPdpViewModelHasDarkBackground=P,l.ytPdpViewModelHasScrim=t,l.ytPdpViewModelInternalScrolling=_.ig(G,!1),l));
var b=function(O){var K={};return _.kG("ytPdpViewModelItem",(K.ytPdpViewModelFullBleed=function(){return b4O(O())==="dividerViewModel"||b4O(O())==="sectionHeaderViewModel"},K.ytPdpViewModelNoVerticalPadding=function(){return b4O(O())==="sectionHeaderViewModel"},K))};
_.jD(function(){var O=z().onStartCommand;if(O&&(O=_.$B(O))){var K;(K=_.dO().resolve(_.p4))==null||K.resolveCommand(O)}});
return _.w("pdp-view-model",{class:G,style:W},_.w("div",{class:"ytPdpViewModelColumnContainer"},_.w(_.IJ,{each:function(){return jXj(J(),g())},
keyBy:"INDEX"},function(O){return _.w("div",{class:"ytPdpViewModelColumn"},_.w(_.Sc,{data:O},{containerLayoutViewModel:function(K,e){K=K.data;return _.w("div",{class:b(function(){return O()[e()]})},_.w(Fe,{data:K}))},
dividerViewModel:function(K,e){K=K.data;return _.w("div",{class:b(function(){return O()[e()]})},_.w(_.hVu,{data:K}))},
pdpCardViewModel:function(K,e){K=K.data;return _.w("div",{class:b(function(){return O()[e()]})},_.w(lEq,{data:K,
stateFns:c}))},
pdpMastheadViewModel:function(K,e){K=K.data;return _.w("div",{class:b(function(){return O()[e()]})},_.w(CYK,{data:K,
isOverlay:P}))},
pdpPricingGroupSelectorViewModel:function(K,e){K=K.data;return _.w("div",{class:b(function(){return O()[e()]})},_.w(IE1,{data:K,
stateFns:c}))},
pdpPricingOptionSelectorViewModel:function(K,e){K=K.data;return _.w("div",{class:b(function(){return O()[e()]})},_.w(oFn,{data:K,
stateFns:c}))},
pdpPrimaryButtonViewModel:function(K,e){K=K.data;return _.w("div",{class:b(function(){return O()[e()]})},_.w(h20,{data:K,
stateFns:c}))},
pdpSummaryViewModel:function(K,e){K=K.data;return _.w("div",{class:b(function(){return O()[e()]})},_.w(Hlj,{data:K,
stateFns:c}))},
sectionHeaderViewModel:function(K,e){K=K.data;return _.w("div",{class:b(function(){return O()[e()]})},_.w(_.DC,{data:K}))}}))})))},"Yf");
Fzi.idomCompat=!0;_.Vm(Fzi,"pdp-view-model",{props:{data:_.kz,stateFnsForTesting:_.wS,internalScrolling:_.wS}});var Sjf=_.m(function(W){var B=W.data;var z=W.className;var G=_.hg(_.Bh,function(){return B().flowStateEntityKey});
return _.w("ytm-premium-purchase-button-renderer",{class:_.kG("ytPremiumPurchaseButtonRendererHost",z)},_.w(_.Sc,{data:function(){var Y;return(Y=_.k(G(),O4j))==null?void 0:Y.primaryButtonOverride}},{buttonRenderer:function(Y){return _.w(_.rs,{data:Y.data,
className:z})},
buttonViewModel:function(Y){return _.w(_.ex,{data:Y.data,className:z})}}))},"Zf");
Sjf.idomCompat=!0;var bln=_.m(function(W){var B=W.data;W=W.className;var z=function(){return foK(B().style)},G=_.kG("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",z),Y=_.kG("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",z);
return _.w("yt-flow-bottom-bar-renderer",{class:_.kG("yt-flow-bottom-bar-renderer",W,z)},_.w(_.Sc,{data:function(){return B().secondaryButton}},{buttonRenderer:function(d){return _.w(_.rs,{data:d.data,
className:Y})},
buttonViewModel:function(d){return _.w(_.ex,{data:d.data,className:Y})},
premiumPurchaseButtonRenderer:function(d){return _.w(Sjf,{data:d.data,className:Y})}}),_.w(_.Sc,{data:function(){return B().primaryButton}},{buttonRenderer:function(d){return _.w(_.rs,{data:d.data,
className:G})},
buttonViewModel:function(d){return _.w(_.ex,{data:d.data,className:G})},
premiumPurchaseButtonRenderer:function(d){return _.w(Sjf,{data:d.data,className:G})}}))},"$f");
bln.idomCompat=!0;_.Vm(bln,"yt-flow-bottom-bar-renderer",{props:{data:_.kz,className:_.kz}});var jsn=_.m(function(W){var B=_.kG(W.className,"ytOfferSummaryRendererHost");return _.w("yt-offer-summary-renderer",{class:B},_.w("div",{class:"ytOfferSummaryRendererTextContainer"},_.w("div",{class:"ytOfferSummaryRendererEyebrowText"},_.w(_.r0,{text:function(){return W.data().eyebrowText}})),_.w("div",{class:"ytOfferSummaryRendererTitle"},_.w(_.r0,{text:function(){return W.data().title}})),_.w("div",{class:"ytOfferSummaryRendererSubtitle"},_.w(_.r0,{text:function(){return W.data().subtitle}})),_.w("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.w(_.IJ,{each:function(){var z;
return(z=W.data().featureListData)!=null?z:[]}},function(z){var G;
return _.w("div",{class:"ytOfferSummaryRendererFeatureList"},_.w(_.hY,{icon:(G=z.icon)==null?void 0:G.iconType,active:function(){return z.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(z.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.w("div",{class:"ytOfferSummaryRendererFeatureListText"},_.w(_.r0,{text:z.text,
className:function(){return z.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.w("div",{class:"ytOfferSummaryRendererDescription"},_.w(_.r0,{text:function(){return W.data().description}}))))},"ag");_.Vm(_.m(function(W){var B={};B=_.kG("ytOfferSummaryFlowStepRendererHost",(B.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=W.shouldDisableHeaderTopMargin,B));return _.w("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:B},_.w("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.w("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.w(_.r0,{text:function(){return W.data().header}})),_.w("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.w(_.r0,{text:function(){return W.data().subtitle}}))),_.w("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.w(_.Sc,{data:function(){return W.data().offerSummary}},{offerSummaryRenderer:function(z){return _.w(jsn,{data:z.data,
className:W.flowClassName})}})))},"bg"),"yt-offer-summary-flow-step-renderer",{props:{data:_.wS,
flowClassName:_.wS,flowStateEntityKey:_.wS,shouldDisableHeaderTopMargin:_.wS}});var fE0=_.m(function(W){var B=W.data;var z=W.className;var G=W.flowStateEntityKey;var Y=W.selectionStepStyle;W=_.lF(function(c){var J=B(),g=G==null?void 0:G();c.target&&(c.stopPropagation(),c=g||"",g=_.Bh(_.p8().getState(),c),J=Object.assign({},g,{premiumPurchaseFlowState:{selectedOptionId:J.optionId,primaryButtonOverride:J.primaryButtonOverride}}),_.p8().dispatch(_.bj("flowStateEntity",c,J)));return!1});
var d=function(){return(G==null?void 0:G())||""},E=_.hg(_.Bh,d);
_.jD(function(){var c=B(),J=d(),g=E();c.defaultSelected&&J!==""&&c.primaryButtonOverride&&XS6(c.optionId||"",J,c.primaryButtonOverride,g)});
var v={};return _.w("ytm-option-item-renderer",{"on:click":W,class:_.kG(z,"ytm-option-item-renderer",(v["ytm-option-item-renderer--lp2-style"]=function(){return(Y==null?void 0:Y())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},v))},_.w("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.w("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var c=B(),J=d(),g=E();g=_.k(g,O4j);return(g?(g==null?void 0:g.selectedOptionId)||"":c.defaultSelected&&J!==""?(c==null?void 0:c.optionId)||"":"")===B().optionId},
name:("input"+_.L_(_.i$)).toString()})),_.w("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.w(_.Sc,{data:function(){return B().titleBadge}},{badgeViewModel:function(c){return _.w(_.bM,{data:c.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.w(_.V,{cond:function(){return B().eyebrowText},
then:function(){return _.w("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.w(_.r0,{text:function(){return B().eyebrowText}}))}}),_.w("div",{class:"ytm-option-item-renderer__option-item-title"},_.w(_.r0,{text:function(){return B().title}})),_.w("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.w(_.r0,{text:function(){return B().subtitle}})),_.w(_.V,{cond:function(){return B().featureListData},
then:function(){return _.w("div",{class:"ytm-option-item-renderer__feature-list-data"},_.w(_.IJ,{each:function(){return B().featureListData||[]}},function(c){var J,g=(J=c.icon)==null?void 0:J.iconType;
a:switch(c.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":J="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":J="ytm-option-item-renderer__feature-list-icon-small";break a;default:J="ytm-option-item-renderer__feature-list-icon-default"}return _.w("div",{class:"ytm-option-item-renderer__feature-list"},_.w(_.hY,{icon:g,className:J,active:function(){return c.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.w("div",{class:"ytm-option-item-renderer__feature-list-text"},_.w(_.r0,{text:c.text,
className:function(){return c.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.w("div",{class:"ytm-option-item-renderer__option-item-description"},_.w(_.r0,{text:function(){return B().description}}))))},"cg");var Ol1=_.m(function(W){var B=W.data;var z=W.flowClassName;var G=W.flowStateEntityKey;var Y=W.selectionStepStyle;return _.w("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.w("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.w("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.w(_.r0,{text:function(){return B().title}}),_.w(_.Sc,{data:function(){return B().titleBadge}},{badgeViewModel:function(d){return _.w(_.bM,{data:d.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.w(_.V,{cond:function(){return B().subtitle},
then:function(){return _.w("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.w(_.r0,{text:function(){return B().subtitle}}))}}),_.w(_.V,{cond:function(){return B().featureListData},
then:function(d){return _.w("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.w(_.IJ,{each:d},function(E){var v;return _.w("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.w(_.hY,{icon:(v=E.icon)==null?void 0:v.iconType,active:function(){return E.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(E.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.w("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.w(_.r0,{text:E.text,
className:function(){return E.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.w(_.V,{cond:function(){return B().secondaryTitle},
then:function(){return _.w("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.w(_.r0,{text:function(){return B().secondaryTitle}}))}}),_.w(_.IJ,{each:function(){return B().sectionDisclaimers||[]}},function(d){return _.w("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.w(_.r0,{text:d}))})),_.w(_.Sc,{data:function(){return B().optionItems}},{optionItemRenderer:function(d){return _.w("div",{class:"ytOptionSectionRendererOptionItem"},_.w(fE0,{data:d.data,
className:z,flowStateEntityKey:G,selectionStepStyle:Y}))}}),_.w(_.V,{cond:function(){return B().offerText},
then:function(){return _.w("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.w(_.r0,{text:function(){return B().offerText}}))}}))},"dg");
Ol1.idomCompat=!0;var X_0=_.m(function(W){var B=W.data;var z=W.flowClassName;var G=W.flowStateEntityKey;W=W.isDesktop;var Y=function(){var J;return(J=B().flowStateEntityKey)!=null?J:G==null?void 0:G()},d=function(){return(Y==null?void 0:Y())||""},E=function(){return B().style},v=_.hg(_.Bh,d);
_.jD(function(){var J=B(),g=d(),t=v();!_.k(t,O4j)&&J.noPreselect&&g!==""&&J.defaultButtonOverride&&XS6("default",g,J.defaultButtonOverride,t)});
var c={};return _.w("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.kG("ytm-option-selection-flow-step-renderer",(c["ytm-option-selection-flow-step-renderer--desktop"]=W,c["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return B().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},c))},_.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.w(_.r0,{text:function(){return B().header}})),_.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.w(_.r0,{text:function(){return B().subtitle}}))),_.w(_.Sc,{data:function(){return B().optionItems||[]}},{optionItemRenderer:function(J){return _.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.w(fE0,{data:J.data,
className:z,flowStateEntityKey:Y,selectionStepStyle:E}))},
optionSectionRenderer:function(J){return _.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.w(Ol1,{data:J.data,flowClassName:z,flowStateEntityKey:Y,selectionStepStyle:E}))}}))},"eg");
X_0.idomCompat=!0;_.Vm(X_0,"yt-option-selection-flow-step-renderer",{props:{data:_.kz,flowClassName:_.kz,flowStateEntityKey:_.kz,isDesktop:_.kz}});_.SH=_.m(function(W){var B=_.EV(W,{type:1,disablePadding:!1,disablePrimaryButton:!1}),z=B.data,G=B.type;W=B.disablePadding;var Y=B.disablePrimaryButton,d=B.onClickPrimaryButton,E=function(){return z().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},v=function(){return{disabled:Y(),
state:Y()?"disabled":"active"}},c=function(){return z().leadingLabel||z().trailingLabel};
B={};return _.w("yt-panel-footer-view-model",{class:_.kG("yt-panel-footer-view-model",(B["yt-panel-footer-view-model--hide-divider"]=function(){return z().shouldHideDivider},B["yt-panel-footer-view-model--disable-padding"]=W,B))},_.w(_.V,{cond:c,
then:function(){var J={},g={};return _.w("div",{class:_.kG("yt-panel-footer-view-model__text-row",(J["yt-panel-footer-view-model--row-bottom-padding"]=function(){var t=z();return!(!t.leadingLabel&&!t.trailingLabel||!t.primaryButton&&!t.secondaryButton)},J))},_.w(_.r0,{text:function(){return z().leadingLabel},
className:_.kG((g["yt-panel-footer-view-model--text-padding"]=c,g))}),_.w(_.r0,{text:function(){return z().trailingLabel}}))}}),_.w(_.V,{cond:E,
then:function(){var J={};return _.w("div",{class:"yt-panel-footer-view-model__button-stack"},_.w("div",{class:_.kG("yt-panel-footer-view-model__primary-button",(J["yt-panel-footer-view-model__button-stack--top-button"]=function(){return z().secondaryButton},J))},_.w(_.Sc,{data:function(){return z().primaryButton}},{buttonViewModel:function(g){return _.w(_.ex,{data:g.data,
buttonOverrides:v,onClick:d})}})),_.w(_.Sc,{data:function(){return z().secondaryButton}},{buttonViewModel:_.ex}))}}),_.w(_.V,{cond:function(){return!E()},
then:function(){var J={},g={},t={};return _.w("div",{class:_.kG("yt-panel-footer-view-model__button-row",(J["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===G()},J))},_.w("div",{class:_.kG("yt-panel-footer-view-model__button-row--left-button",(g["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===G()},g["yt-panel-footer-view-model__button-row--hidden"]=function(){return!z().secondaryButton||0===G()},g["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===G()},g))},_.w(_.Sc,{data:function(){return z().secondaryButton}},{buttonViewModel:_.ex})),_.w("div",{class:_.kG("yt-panel-footer-view-model__primary-button",(t["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===G()||1===G()},t["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===G()},t))},_.w(_.Sc,{data:function(){return z().primaryButton}},{buttonViewModel:function(P){return _.w(_.ex,{data:P.data,
buttonOverrides:v,onClick:d})}})))}}))},"fg");
_.SH.idomCompat=!0;_.Kzj=_.m(function(W){W=_.EV(W,{disablePadding:!1});var B=W.data,z=W.disablePadding;W=_.NFQ(function(){return B().formId});
var G=W.submitForm,Y=W.isValid,d=W.isSubmitting;return _.w("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.w(_.Sc,{data:function(){return B().panelFooter}},{panelFooterViewModel:function(E){return _.w(_.SH,{data:E.data,
onClickPrimaryButton:function(){G()},
disablePrimaryButton:function(){return!Y()||d()},
disablePadding:z})}}))},"gg");_.Vm(_.Kzj,"yt-form-footer-view-model",{props:{data:_.kz,disablePadding:_.kz}});var uQ6=_.m(function(W){var B=_.r("enable_user_rating_web");return _.w("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.w(_.V,{cond:function(){var z;return(z=W.data())==null?void 0:z.image},
then:function(z){return _.w(_.iF,{data:z,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.w(_.r0,{text:function(){var z;
return(z=W.data())==null?void 0:z.title}})),_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.w(_.r0,{text:function(){var z;
return(z=W.data())==null?void 0:z.subtitle}})),_.w(_.V,{cond:function(){return!B},
then:function(){return _.w(_.Sc,{data:function(){var z;return(z=W.data())==null?void 0:z.viewTipsButton}},{buttonViewModel:function(z){return _.w(_.ex,{data:z.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"hg");_.Vm(uQ6,"yt-contributor-zero-state-view-model",{props:{data:_.kz}});var e29=_.m(function(W){var B=function(){var z;return(z=W.data())==null?void 0:z.image};
return _.w("yt-featured-content-item-view-model",{class:_.kG("ytFeaturedContentItemViewModelHost")},_.w("div",{class:_.kG(function(){return B()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.w("div",{class:function(){return B()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.w(_.V,{cond:B,
then:function(){return _.w("div",{class:"ytFeaturedContentItemViewModelImage"},_.w(_.Sc,{data:function(){return W.data().image}},{themedImageViewModel:function(z){return _.w(rjr,{data:z.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.w(_.V,{cond:function(){var z;
return!B()&&((z=W.data())==null?void 0:z.iconName)},
then:function(){return _.w("div",{class:"ytFeaturedContentItemViewModelIcon"},_.w(_.hY,{icon:function(){return W.data().iconName}}))}}),_.w("div",{class:"ytFeaturedContentItemViewModelContent"},_.w(_.V,{cond:function(){var z;
return(z=W.data())==null?void 0:z.title},
then:function(){return _.w("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.w(_.r0,{text:function(){return W.data().title}}))}}),_.w(_.V,{cond:function(){var z;
return(z=W.data())==null?void 0:z.body},
then:function(){return _.w("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.w(_.r0,{text:function(){return W.data().body}}))}})))))},"ig");var mA0=_.m(function(W){var B=function(){var Y;return KH0((Y=W.data())==null?void 0:Y.titleFontSize)},z=function(){var Y;
return us0((Y=W.data())==null?void 0:Y.descriptionFontSize)},G=function(){var Y;
return((Y=W.data())==null?void 0:Y.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.w("yt-landing-page-view-model",{class:_.kG("ytLandingPageViewModelHost",W.className)},_.w("div",{class:"ytLandingPageViewModelHeader"},_.w(_.V,{cond:function(){var Y;return(Y=W.data())==null?void 0:Y.bannerImage},
then:function(Y){return _.w("div",{class:"ytLandingPageViewModelHeaderImage"},_.w(_.Sc,{data:function(){return Y()}},{imageBannerViewModel:function(d){return _.w(_.gQ,{data:d.data,
isPositionRelative:!0})}}))}}),_.w(_.V,{cond:function(){var Y;
return(Y=W.data())==null?void 0:Y.bannerAnimation},
then:function(Y){return _.w(_.q8,{data:function(){var d=Y();if(d==null?0:d.url){var E;d={path:(E=d==null?void 0:d.url)!=null?E:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(d==null?0:d.payload){var v;d={animationData:JSON.parse((v=d==null?void 0:d.payload)!=null?v:""),autoplay:!0,loop:!0,renderer:"svg"}}else d=void 0;return{animationConfig:d}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.w("div",{class:"ytLandingPageViewModelHeaderTitle"},_.w(_.V,{cond:function(){var Y;
return(Y=W.data())==null?void 0:Y.title},
then:function(Y){return _.w("div",{class:_.kG("ytLandingPageViewModelHeaderTitleContent",B)},_.w(_.r0,{text:function(){return Y()}}))}}),_.w(_.V,{cond:function(){var Y;
return(Y=W.data())==null?void 0:Y.description},
then:function(Y){var d={};return _.w(_.r0,{className:_.kG("ytLandingPageViewModelHeaderTitleDescription",z,(d.ytLandingPageViewModelHeaderTitleDescriptionMargin=G,d)),text:function(){return Y()}})}}))),_.w(_.V,{cond:function(){var Y,d;
return(Y=W.data())==null?void 0:(d=Y.featuredContentList)==null?void 0:d.length},
then:function(){return _.w("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.w(_.Sc,{data:function(){return W.data().featuredContentList}},{featuredContentItemViewModel:function(Y){return _.w(e29,{data:Y.data})}}))}}),_.w(_.V,{cond:function(){var Y,d;
return(Y=W.data())==null?void 0:(d=Y.expandableContentList)==null?void 0:d.length},
then:function(){return _.w("div",{class:"ytLandingPageViewModelFaqSection"},_.w(_.Sc,{data:function(){return W.data().expandableContentList}},{faqEntryViewModel:function(Y){return _.w("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.w(_.Tx7,{data:Y.data}))}}))}}),_.w("div",{class:"ytLandingPageViewModelFooter"},_.w(_.V,{cond:function(){var Y;
return(Y=W.data())==null?void 0:Y.legalCopy},
then:function(Y){return _.w("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.w(_.r0,{text:function(){return Y()}}))}}),_.w(_.V,{cond:function(){var Y;
return(Y=W.data())==null?void 0:Y.actions},
then:function(Y){return _.w("div",null,_.w(_.Sc,{data:function(){return Y()}},{flexibleActionsViewModel:function(d){return _.w(_.AB,{data:d.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"jg");_.Vm(_.m(function(W){return _.w("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.w("div",{class:"ytLpSectionGroupViewModelContainer"},_.w(_.Sc,{data:function(){return W.data().sections}},{landingPageViewModel:function(B){return _.w(mA0,{data:B.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"kg"),"yt-lp-section-group-view-model",{props:{data:_.kz}});var xAK=_.m(function(W){var B=W.data;var z=W.selectedKey;var G=W.onSelected;var Y=W.groupName;var d=function(){return B().text},E=function(){return B().attributedText},v=function(){return B().subtext},c=function(){return B().attributedSubtext},J=_.w("div",{class:"ytRadioButtonItemViewModelLabel"},_.w(_.V,{cond:d,
then:function(){return _.w("div",null,d)}}),_.w(_.V,{cond:E,
then:function(){return _.w(_.r0,{text:E})}}),_.w(_.V,{cond:v,
then:function(){return _.w("div",{class:"ytRadioButtonItemViewModelSubText"},v)}}),_.w(_.V,{cond:c,
then:function(){return _.w("div",{class:"ytRadioButtonItemViewModelSubText"},_.w(_.r0,{text:c}))}})),g=function(){if(E()){var P;
return(P=E())==null?void 0:P.content}return d()},t=function(){if(c()){var P;
return(P=c())==null?void 0:P.content}return v()};
W={};return _.w("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.w(_.vU,{name:Y,checked:function(){return!(z==null||!z()||B().key!==(z==null?void 0:z()))},
onChange:function(P){G==null||G(P.target,B(),Y==null?void 0:Y())},
labelRenderable:function(){return J},
ariaLabel:function(){return t()?g()+", "+t():g()},
className:_.kG((W.ytRadioButtonItemViewModelSubTitle=function(){return!!B().subtext},W))}))},"lg");_.DAi=_.m(function(W){var B=W.data;var z=W.onSelected;var G=W.selectedKey;var Y=W.groupName;var d=function(){return(Y==null?void 0:Y())||B().key};
return _.w("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.w("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.w(_.Sc,{data:function(){return B().radioButtons}},{radioButtonItemViewModel:function(E){return _.w(xAK,{data:E.data,
onSelected:z,selectedKey:G,groupName:d})}})))},"mg");var Qs0=_.m(function(W){_.jD(function(){if(W.controlledMode()&&W.data().defaultSelected)_.jy(Error("Tj"));else{var d;!W.controlledMode()&&((d=W.selected)==null?0:d.call(W))&&_.jy(Error("Uj"))}});
var B=_.A(_.IK(function(){if(!W.controlledMode())return W.data().defaultSelected})),z=B.next().value,G=B.next().value,Y=function(){if(!W.controlledMode())return z();
var d;return(d=W.selected)==null?void 0:d.call(W)};
return _.w("yt-checkbox-item-view-model",{class:_.kG("ytCheckboxItemViewModelHost")},_.w(_.cU,{data:function(){var d=W.data(),E=Y();return{title:d.text,subtitle:d.subtext,superlabel:d.superlabel,isSelected:!!E,isDisabled:d.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!W.controlledMode()&&G(!z());var d,E;(E=W.onTap)==null||E.call(W,!!Y(),W.data(),(d=W.groupName)==null?void 0:d.call(W))}}))},"ng");var yjr=_.m(function(W){var B=W.data;var z=W.controlledMode;var G=W.selectedKeys;var Y=W.onItemTap;var d=W.groupName;var E=function(){return(d==null?void 0:d())||B().key};
_.jD(function(){z()&&B().defaultSelectedKeys?_.jy(Error("Vj")):!z()&&(G==null?0:G())&&_.jy(Error("Wj"))});
W=_.A(_.IK(function(){if(!z())return B().defaultSelectedKeys}));
var v=W.next().value,c=W.next().value,J=function(g,t,P){g=[];!z()&&t.key&&(g=etY(t.key,v()||[]),c(g));Y==null||Y(t,g,P)};
return _.w("yt-checkbox-group-view-model",{class:_.kG("ytCheckboxGroupViewModelHost")},_.w("fieldset",{class:_.kG("ytCheckboxGroupViewModelFieldset")},_.w(_.Sc,{data:function(){return B().checkboxes}},{checkboxItemViewModel:function(g){var t=g.data;
return _.w(Qs0,{data:t,controlledMode:!0,selected:function(){var P=z()?(G==null?void 0:G())||[]:v()||[],Z=t().key;return Z?P.includes(Z):!1},
onTap:J,groupName:E})}})))},"og");var bt=_.m(function(W){var B=_.hg(mn6,_.ig(function(){var v;return(v=W.data())==null?void 0:v.noteFeedEntityKey},"")),z=_.hg(zt9,_.ig(function(){var v;
return(v=W.data())==null?void 0:v.userRatingEntityKey},"")),G=_.r("enable_user_rating_web"),Y=function(){var v,c,J;
return((v=B())==null?0:v.contributorNote)?(c=B())==null?void 0:c.contributorNote:(J=W.data())==null?void 0:J.existingNote},d=function(){var v,c;
return!!z()&&!!xnr((v=z())==null?void 0:v.helpfulnessValue,(c=W.data())==null?void 0:c.noteData)};
if(G){var E={};return _.w("yt-note-view-model",{class:_.kG("ytNoteViewModelHostUserRating",(E.ytNoteViewModelHostUserRatingPublishedNote=function(){var v,c,J,g;return((v=W.data())==null?void 0:(c=v.noteData)==null?void 0:c.isPublished)&&!((J=W.data())==null?0:(g=J.noteData)==null?0:g.isUserRatingForm)},E))},_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.w(_.V,{cond:function(){var v,c;
return(v=W.data())==null?void 0:(c=v.noteData)==null?void 0:c.isPinned},
then:function(){return _.w(_.hY,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.w(_.V,{cond:function(){var v,c;return(v=W.data())==null?void 0:(c=v.noteData)==null?void 0:c.isPublished},
then:function(){return _.w(_.hY,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.w(_.Sc,{data:function(){var v;
return(v=W.data())==null?void 0:v.metadata}},{contentMetadataViewModel:_.fY}),_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var v,c;
return(c=_.k((v=W.data())==null?void 0:v.metadata,_.u$U))==null?void 0:c.delimiter}),_.w(_.r0,{text:function(){var v;
return(v=Y())==null?void 0:v.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.w(_.V,{cond:function(){var v,c;return!((v=W.data())==null?0:(c=v.noteData)==null?0:c.isUserRatingForm)},
then:function(){return _.w(_.Sc,{data:function(){var v,c,J,g,t,P,Z,l=!!((v=W.data())==null?0:(c=v.noteData)==null?0:c.isPinned);v=d();c=(J=W.data())==null?void 0:J.noteData;J=(g=B())==null?void 0:(t=g.contributorNote)==null?void 0:t.deleteAction;g=(P=W.data())==null?void 0:P.overflowButtonNoteWithRatingOnTapOverride;P=(Z=W.data())==null?void 0:Z.overflowButton;return l?Dn1(c,J):v?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",
buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:g}}:P}},{buttonViewModel:function(v){return _.w(_.ex,{data:v.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.w("div",{class:"ytNoteViewModelNoteContent"},_.w(_.r0,{text:function(){var v;
return(v=Y())==null?void 0:v.text}})),_.w(_.V,{cond:function(){var v,c,J,g;
return!((v=W.data())==null?0:(c=v.noteData)==null?0:c.isPinned)&&!((J=W.data())==null?0:(g=J.noteData)==null?0:g.isUserRatingForm)},
then:function(){return _.w(_.V,{cond:d,then:function(){return _.w("div",{class:"ytNoteViewModelUserRatingContainer"},_.w(_.r0,{text:function(){var v,c;return xnr((v=z())==null?void 0:v.helpfulnessValue,(c=W.data())==null?void 0:c.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.w(_.Sc,{data:function(){var v;return(v=W.data())==null?void 0:v.userRatingButton}},{buttonViewModel:function(v){return _.w(_.ex,{data:v.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.w(_.V,{cond:function(){var v,c,J,g;
return!((v=W.data())==null?0:(c=v.noteData)==null?0:c.ignoreDivider)&&!((J=W.data())==null?0:(g=J.noteData)==null?0:g.isUserRatingForm)},
then:function(){return _.w("div",{class:"ytNoteViewModelDivider"},_.w(_.Sc,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(v){return _.w(_.hVu,{data:v.data})}}))}}))}return _.w("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.w(_.V,{cond:function(){var v,c;return(v=W.data())==null?void 0:(c=v.noteData)==null?void 0:c.isPinned},
then:function(){return _.w(_.hY,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.w(_.V,{cond:function(){var v,c;return(v=W.data())==null?void 0:(c=v.noteData)==null?void 0:c.isPublished},
then:function(){return _.w(_.hY,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.w(_.V,{cond:function(){return G},
then:function(){return _.w(_.Sc,{data:function(){var v;return(v=W.data())==null?void 0:v.metadata}},{contentMetadataViewModel:function(v){return _.w(_.fY,{data:v.data})}})}}),_.w(_.r0,{text:function(){var v,c;
return(v=W.data())==null?void 0:(c=v.noteData)==null?void 0:c.headerText}}),_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.w(_.r0,{text:function(){var v,c;
return(v=W.data())==null?void 0:(c=v.noteData)==null?void 0:c.delimiter}})),_.w(_.r0,{text:function(){var v,c;
return(v=B())==null?void 0:(c=v.contributorNote)==null?void 0:c.publishedTimeText}})),_.w(_.Sc,{data:function(){var v,c,J;
return Dn1((v=W.data())==null?void 0:v.noteData,(c=B())==null?void 0:(J=c.contributorNote)==null?void 0:J.deleteAction)}},{buttonViewModel:function(v){return _.w(_.ex,{data:v.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.w("div",{class:"ytNoteViewModelNoteContent"},_.w(_.r0,{text:function(){var v,c;
return(v=B())==null?void 0:(c=v.contributorNote)==null?void 0:c.text}})))},"pg");
bt.idomCompat=!0;_.Vm(_.m(function(W){var B=_.hg(_.Bh,_.ig(function(){var O;return(O=W.data())==null?void 0:O.flowStateEntityKey},"")),z=_.A(_.IK(function(){var O;
return(O=_.k(W.data().helpfulnessValue,_.RI))==null?void 0:O.defaultSelectedKey})),G=z.next().value,Y=z.next().value;
z=_.A(_.IK(function(){var O,K,e;return(e=_.k((O=_.k(W.data().helpfulnessValue,_.RI))==null?void 0:(K=O.radioButtons)==null?void 0:K.find(function(a){var q;return((q=_.k(a,AX9))==null?void 0:q.key)===G()}),AX9))==null?void 0:e.value}));
var d=z.next().value,E=z.next().value,v=function(O,K){Y(K.key);E(K.value)},c=function(){var O,K;
return((O=d())==null?void 0:O.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((K=d())==null?void 0:K.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},J=function(){var O,K;
return((O=d())==null?void 0:O.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((K=d())==null?void 0:K.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"};
z=_.A(_.IK(function(){var O;return(O=_.k(W.data().helpfulReasons,pT6))==null?void 0:O.defaultSelectedKeys}));
var g=z.next().value,t=z.next().value,P=function(O){QX0(O.key,g,t)};
z=_.A(_.IK(function(){var O;return(O=_.k(W.data().notHelpfulReasons,pT6))==null?void 0:O.defaultSelectedKeys}));
var Z=z.next().value,l=z.next().value,b=function(O){QX0(O.key,Z,l)};
_.jD(function(){var O,K,e;G40((O=W.data())==null?void 0:(K=O.userRatingFormSchema)==null?void 0:K.id,{isValid:function(){return!!G()},
formData:function(){var a=d(),q=qAO(g(),_.k(W.data().helpfulReasons,pT6)),n=qAO(Z(),_.k(W.data().notHelpfulReasons,pT6));a={helpfulnessValue:a==null?void 0:a.noteHelpfulnessValue};if(q){a.helpfulReasons=[];q=_.A(q);for(var L=q.next();!L.done;L=q.next()){L=L.value;var By=void 0;if((By=L)==null?0:By.noteHelpfulReason)By=void 0,a.helpfulReasons.push((By=L)==null?void 0:By.noteHelpfulReason)}}if(n)for(a.notHelpfulReasons=[],n=_.A(n),q=n.next();!q.done;q=n.next())if(q=q.value,L=void 0,(L=q)==null?0:L.noteNotHelpfulReason)L=
void 0,a.notHelpfulReasons.push((L=q)==null?void 0:L.noteNotHelpfulReason);return{userRatingFormData:a}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(e=_.k(B(),Lgb))==null?void 0:e.submitFormParams},disableDuringSubmission:!0})});
return _.w("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.w(_.Sc,{data:function(){var O=_.k(B(),Lgb);if(O){var K;var e={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:O==null?void 0:(K=O.note)==null?void 0:K.headerText}]}],delimiter:"\u2022"}},existingNote:O.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else e=void 0;return e}},{noteViewModel:function(O){return _.w("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.w(bt,{data:O.data}))}}),_.w(_.Sc,{data:function(){var O;
return(O=W.data())==null?void 0:O.helpfulnessValue}},{radioButtonGroupViewModel:function(O){return _.w("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.w(_.DAi,{data:O.data,
onSelected:v,selectedKey:G}))}}),_.w(_.V,{cond:c,
then:function(){return _.w("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.w("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.w(_.r0,{text:function(){var O;return(O=W.data())==null?void 0:O.helpfulReasonQuestion}})),_.w(_.Sc,{data:function(){var O;
return(O=W.data())==null?void 0:O.helpfulReasons}},{checkboxGroupViewModel:function(O){return _.w(yjr,{data:O.data,
onItemTap:P,selectedKeys:g,controlledMode:!0})}}))}}),_.w(_.V,{cond:J,
then:function(){return _.w("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.w("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.w(_.r0,{text:function(){var O;return(O=W.data())==null?void 0:O.notHelpfulReasonQuestion}})),_.w(_.Sc,{data:function(){var O;
return(O=W.data())==null?void 0:O.notHelpfulReasons}},{checkboxGroupViewModel:function(O){return _.w(yjr,{data:O.data,
onItemTap:b,selectedKeys:Z,controlledMode:!0})}}))}}),_.w(_.V,{cond:function(){return!c()&&!J()},
then:function(){return _.w(_.Sc,{data:function(){var O;return(O=W.data())==null?void 0:O.helpfulNoteFeatures}},{alertBannerViewModel:function(O){return _.w("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.w(_.OHF,{data:O.data}))}})}}))},"qg"),"yt-note-user-rating-view-model",{props:{data:_.kz}});_.Vm(bt,"yt-note-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=_.hg(mn6,_.ig(function(){var z;return(z=W.data())==null?void 0:z.noteFeedEntityKey},""));
return _.w("yt-notes-wrapper-view-model",{class:_.kG("ytNotesWrapperViewModelHost")},_.w(_.V,{cond:function(){var z,G,Y;return!((z=W.data())==null||!z.existingNotes)||!((G=W.data())==null||!G.currentNote)&&!((Y=B())==null||!Y.contributorNote)},
then:function(){return _.w(_.AW,null,_.w(_.Sc,{data:function(){var z,G,Y,d;return((G=_.k((z=W.data())==null?void 0:z.currentNote,UXn))==null?0:(Y=G.noteData)==null?0:Y.isPublished)?(d=W.data())==null?void 0:d.currentNote:void 0}},{noteViewModel:function(z){return _.w(bt,{data:z.data})}}),_.w(_.Sc,{data:function(){var z;
return(z=W.data())==null?void 0:z.existingNotes}},{noteViewModel:function(z){var G=z.data;
return _.w(_.V,{cond:function(){var Y,d;return(Y=G())==null?void 0:(d=Y.noteData)==null?void 0:d.isPublished},
then:function(){return _.w(bt,{data:G})}})}}),_.w(_.Sc,{data:function(){var z,G,Y,d;
return((G=_.k((z=W.data())==null?void 0:z.currentNote,UXn))==null?0:(Y=G.noteData)==null?0:Y.isPublished)?void 0:(d=W.data())==null?void 0:d.currentNote}},{noteViewModel:function(z){return _.w(bt,{data:z.data})}}),_.w(_.Sc,{data:function(){var z;
return(z=W.data())==null?void 0:z.existingNotes}},{noteViewModel:function(z){var G=z.data;
return _.w(_.V,{cond:function(){var Y,d;return!((Y=G())==null?0:(d=Y.noteData)==null?0:d.isPublished)},
then:function(){return _.w(bt,{data:G})}})}}))},
else:function(){return _.w(_.Sc,{data:function(){var z;return(z=W.data())==null?void 0:z.zeroStateData}},{contributorZeroStateViewModel:uQ6})}}))},"rg"),"yt-notes-wrapper-view-model",{props:{data:_.kz}});var jH=_.m(function(W){var B=_.EV(W,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),z=B.label,G=B.text,Y=B.placeholder,d=B.hint;W=B.rows;var E=B.overflowStyle,v=B.outline,c=B.disabled,J=B.disableNewLines,g=B.characterLimit,t=B.validation,P=B.onInput,Z=_.LG("textarea");B=_.A(_.IK(function(){return G()}));
var l=B.next().value,b=B.next().value;B=_.A(_.g4(!1,void 0,"u9PDq"));var O=B.next().value,K=B.next().value,e=function(){K(!0)},a=function(){K(!1)};
_.jD(function(){var ux=Z.value,X2=E(),WQ=l();X2==="expand-vertically"&&WQ&&n8Y(ux);Z.value.addEventListener("focusin",e);Z.value.addEventListener("focusout",a)});
_.fR(function(){Z.value.removeEventListener("focusin",e);Z.value.removeEventListener("focusout",a)});
var q=function(){var ux;return(ux=t())==null?void 0:ux.validate(l())},n=function(){return g()&&!q()&&l().length>g().maxChars},L=function(){return!!q()||n()};
B=_.lF(function(ux){if(!ux.currentTarget)return!1;ux=ux.currentTarget;b(ux.value);E()==="expand-vertically"&&n8Y(ux);P==null||P(ux.value);return!0});
var By=_.lF(function(ux){J()&&ux.key==="Enter"&&ux.preventDefault();return!1}),gk=_.lF(function(){Z.value.focus()}),vy=function(){return Y()||z()},lx={},Zv={},VR={};
return _.w("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.w("div",{class:_.kG("ytStandardsTextareaShapeTextareaContainer",(lx.ytStandardsTextareaShapeTextareaContainerOutline=v,lx.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=c,lx.ytStandardsTextareaShapeTextareaContainerOutlineError=L,lx)),"on:click":gk},_.w("label",{class:_.kG("ytStandardsTextareaShapeLabel",(Zv.ytStandardsTextareaShapeLabelFocused=O,Zv.ytStandardsTextareaShapeLabelDisabled=c,Zv.ytStandardsTextareaShapeLabelError=
function(){return L()&&!c()},Zv.ytStandardsTextareaShapeLabelHidden=function(){return!O()&&!l()&&!!vy()},Zv))},z),_.w("div",{class:_.kG("ytStandardsTextareaShapePlaceholder",(VR.ytStandardsTextareaShapePlaceholderVisible=function(){return!O()&&!l()},VR)),
"aria-hidden":"true"},vy),_.w("textarea",{el:Z,class:"ytStandardsTextareaShapeTextarea",rows:W,disabled:c,placeholder:vy,"on:input":B,"on:keydown":By},l)),_.w(_.V,{cond:function(){return d()&&!L()},
then:function(){var ux={};return _.w("div",{class:_.kG("ytStandardsTextareaShapeHint",(ux.ytStandardsTextareaShapeHintDisabled=c,ux))},_.w("div",{class:"ytStandardsTextareaShapeHintHintMessage"},d))}}),_.w(_.V,{cond:q,
then:function(){return _.w(qj6,{disabled:c},_.w("div",{class:"ytStandardsTextareaShapeErrorMessage"},q))}}),_.w(_.V,{cond:g,
then:function(ux){return _.w(_.V,{cond:n,then:function(){return _.w(qj6,{disabled:c},_.w("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return ux().errorMessage}),_.w("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return l().length+"/"+ux().maxChars}))}})}}))},"sg");
jH.idomCompat={callbacks:{onInput:!0}};var qj6=_.m(function(W){var B={};return _.w("div",{class:_.kG("ytStandardsTextareaShapeError",(B.ytStandardsTextareaShapeErrorDisabled=W.disabled,B)),role:"alert"},_.w(_.hY,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),W.children)},"tg");_.nF0=_.m(function(W){var B=W.data;return _.w("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.w(jH,{text:W.text,label:function(){var z;return(z=B().contentProperties)==null?void 0:z.labelText},
placeholder:function(){var z;return(z=B().contentProperties)==null?void 0:z.placeholderText},
hint:function(){var z;return(z=B().contentProperties)==null?void 0:z.hintText},
outline:function(){var z;return!((z=B().displayProperties)==null?0:z.hideBorder)},
overflowStyle:function(){var z;return((z=B().displayProperties)==null?0:z.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:W.disabled,disableNewLines:function(){var z;return(z=B().displayProperties)==null?void 0:z.disableNewLines},
onInput:W.onInput,characterLimit:W.characterLimit,validation:W.validation,rows:function(){var z;return(z=B().displayProperties)==null?void 0:z.rows}}))},"ug");_.Nqj=_.m(function(W){var B=W.data;return _.w("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.w(jH,{text:W.text,label:function(){var z;return(z=B().contentProperties)==null?void 0:z.labelText},
placeholder:function(){var z;return(z=B().contentProperties)==null?void 0:z.placeholderText},
hint:function(){var z;return(z=B().contentProperties)==null?void 0:z.hintText},
outline:function(){var z;return!((z=B().displayProperties)==null?0:z.hideBorder)},
overflowStyle:function(){var z;return((z=B().displayProperties)==null?0:z.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var z;return(z=B().displayProperties)==null?void 0:z.disableNewLines},
onInput:W.onInput,characterLimit:W.characterLimit,validation:W.validation,rows:function(){var z;return(z=B().displayProperties)==null?void 0:z.rows}}))},"vg");var $AO=_.m(function(W){var B=_.A(_.IK(function(){var vy,lx;return((vy=W.data().structuredContextNoteFormSchema)==null?0:(lx=vy.initialValues)==null?0:lx.noteBody)?W.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),z=B.next().value,G=B.next().value;
B=_.A(_.IK(function(){W.data();return!1}));
var Y=B.next().value,d=B.next().value;B=_.A(_.IK(function(){W.data();return!1}));
var E=B.next().value,v=B.next().value;B=_.A(_.IK(function(){var vy,lx;return((vy=W.data().structuredContextNoteFormSchema)==null?0:(lx=vy.initialValues)==null?0:lx.timestamp)?W.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var c=B.next().value,J=B.next().value;B=_.A(_.IK(function(){W.data();return!1}));
var g=B.next().value,t=B.next().value;B=_.A(_.IK(function(){var vy,lx;return((vy=W.data().structuredContextNoteFormSchema)==null?0:(lx=vy.initialValues)==null?0:lx.sources)?[W.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var P=B.next().value,Z=B.next().value;B=_.A(_.IK(function(){W.data();return!1}));
var l=B.next().value,b=B.next().value;B=_.A(_.IK(function(){return!1}));
var O=B.next().value,K=B.next().value;_.jD(function(){var vy;_.YAi((vy=W.data().structuredContextNoteFormSchema)==null?void 0:vy.id,{isSubmitting:O,onSubmit:function(){K(!0);var lx=B2r(z(),c(),P(),W.data()),Zv=_.dO().resolve(_.p4);lx&&Zv&&Zv.resolveCommand(lx,{commandController:{onSuccess:function(){K(!1)}}})},
isValid:function(){return Y()&&!E()&&!g()&&!l()}})});
var e=function(vy){if(vy!==void 0&&(G(vy),!Y()&&vy.length>0&&d(!0),Y())){var lx=LHi(W.data());if(lx){var Zv=lx.minLength;lx=lx.maxLength;Zv&&vy.length<Zv?v(!0):lx&&vy.length>lx?v(!0):v(!1)}}},a=function(vy){if(vy!==void 0){J(vy);
if(vy.length>0){var lx,Zv,VR,ux,X2=MEb((lx=W.data())==null?void 0:(Zv=lx.structuredContextNoteFormSchema)==null?void 0:(VR=Zv.fieldSchemas)==null?void 0:(ux=VR.timestamp)==null?void 0:ux.validationSchema);if(X2&&(lx=X2.regex)&&!(new RegExp(lx)).test(vy)){t(!0);return}}t(!1)}},q=function(vy){if(vy!==void 0){var lx=vy.split(/[ \n]/).map(function(Zv){return Zv.trim()});
Z(lx);if(vy.length>0)for(vy=_.A(lx),lx=vy.next();!lx.done;lx=vy.next())if(!WgY(lx.value)){b(!0);return}b(!1)}},n=function(){return{validate:function(vy){if(Y()){var lx=LHi(W.data());
if(lx){var Zv=lx.minLength;lx=lx.translations;if(Zv&&vy.length<Zv)return lx==null?void 0:lx.minLengthErrorMessage}}}}},L=function(){var vy=LHi(W.data()),lx=vy==null?void 0:vy.maxLength,Zv;
vy=vy==null?void 0:(Zv=vy.translations)==null?void 0:Zv.maxLengthErrorMessage;if(lx&&vy)return{maxChars:lx,errorMessage:vy}},By=function(){return{validate:function(vy){if(vy){var lx,Zv,VR,ux,X2=MEb((lx=W.data())==null?void 0:(Zv=lx.structuredContextNoteFormSchema)==null?void 0:(VR=Zv.fieldSchemas)==null?void 0:(ux=VR.timestamp)==null?void 0:ux.validationSchema);
if(X2&&(lx=X2.regex,X2=X2.translations,lx&&!(new RegExp(lx)).test(vy)))return X2==null?void 0:X2.regexErrorMessage}}}},gk=function(){return{validate:function(vy){if(vy){var lx,Zv,VR,ux,X2=Rt6((lx=W.data())==null?void 0:(Zv=lx.structuredContextNoteFormSchema)==null?void 0:(VR=Zv.fieldSchemas)==null?void 0:(ux=VR.sources)==null?void 0:ux.validationSchema);
if(X2&&(lx=X2.translations,lx==null?0:lx.selectedErrorMessage))for(vy=vy.split(/[ \n]/).map(function(WQ){return WQ.trim()}),vy=_.A(vy),Zv=vy.next();!Zv.done;Zv=vy.next())if(!WgY(Zv.value))return vy=void 0,(vy=lx)==null?void 0:vy.selectedErrorMessage}}}};
return _.w("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.w("div",{class:"ytStructuredContextNoteViewModelTextField"},_.w(_.Sc,{data:function(){var vy;return(vy=W.data())==null?void 0:vy.noteContents}},{textFormFieldViewModel:function(vy){return _.w(_.Nqj,{data:vy.data,
onInput:e,validation:n,characterLimit:L})},
textFieldViewModel:function(vy){return _.w(_.nF0,{data:vy.data,onInput:e,validation:n,characterLimit:L})}})),_.w("div",{class:"ytStructuredContextNoteViewModelTextField"},_.w(_.Sc,{data:function(){var vy;
return(vy=W.data())==null?void 0:vy.noteTimestamp}},{textFormFieldViewModel:function(vy){return _.w(_.Nqj,{data:vy.data,
onInput:a,validation:By})},
textFieldViewModel:function(vy){return _.w(_.nF0,{data:vy.data,onInput:a,validation:By})}})),_.w("div",{class:"ytStructuredContextNoteViewModelTextField"},_.w(_.Sc,{data:function(){var vy;
return(vy=W.data())==null?void 0:vy.noteSources}},{textFormFieldViewModel:function(vy){return _.w(_.Nqj,{data:vy.data,
onInput:q,validation:gk})},
textFieldViewModel:function(vy){return _.w(_.nF0,{data:vy.data,onInput:q,validation:gk})}})))},"wg");
$AO.idomCompat=!0;_.Vm($AO,"yt-structured-context-note-view-model",{props:{data:_.kz}});var Lzf=_.m(function(W){var B=_.A(_.IK(function(){var d;if((d=W.controlled)==null?0:d.call(W))return[];var E;return(((E=W.data())==null?void 0:E.chips)||[]).map(function(v){v=_.k(v,_.VP);if(v==null?0:v.selected)return z3O(v.chipValue)}).filter(function(v){return v!==void 0})})),z=B.next().value,G=B.next().value,Y=function(d){var E=z3O(d.chipValue);
if(E!==void 0){var v;if((v=W.controlled)==null?0:v.call(W))return void W.controlled().onTap(E);d=z().includes(E)?[].concat(_.u7(z().filter(function(J){return J!==E}))):[].concat(_.u7(z()),[E]);
G(d);var c;if((c=W.uncontrolled)==null?0:c.call(W))W.uncontrolled().onUpdate(d)}};
return _.w("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.w(_.IJ,{each:function(){return W.data().chips||[]}},function(d){return _.w("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.w(_.Ih4,{data:function(){return _.k(d,_.VP)},
selected:function(){var E;if(E=_.k(d,_.VP)){var v=z3O(E.chipValue);if(v!==void 0){var c;E=((c=W.controlled)==null?0:c.call(W))?W.controlled().selectedValues.includes(v):z().includes(v)}else E=void 0}else E=!1;return E},
callback:Y}))}))},"xg");var UA6=_.m(function(W){var B=W.data;var z=function(){var v;return((v=B())==null?void 0:v.flowStateKey)||""},G=_.hg(_.Bh,z),Y=function(){var v;
return(v=_.k(G(),Ml6))==null?void 0:v.chips},d=function(v){if(v!==void 0){var c=Y()||[];
c=c.find(function(J){return J===v})?c.filter(function(J){return J!==v}):[].concat(_.u7(c),[v]);
c=Object.assign({},G(),{feedbackFormFlowState:Object.assign({},_.k(G(),Ml6),{chips:c})});_.AV(_.bj("flowStateEntity",z(),c))}},E=function(){var v;
return _.k((v=B())==null?void 0:v.inputBox,a_r)};
W=_.O8(function(v){var c=E();c=!(c==null?0:c.maxChars)||v.length<=c.maxChars;v=Object.assign({},G(),{feedbackFormFlowState:Object.assign({},_.k(G(),Ml6),{detail:v}),abuseReportFlowState:Object.assign({},_.k(G(),aI),{navigationEnabled:c})});_.AV(_.bj("flowStateEntity",z(),v))},150);
return _.w("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.w("div",{class:"ytFeedbackFormViewModelChips"},_.w(_.Sc,{data:function(){var v;return(v=B())==null?void 0:v.chipSelection}},{chipSelectionFormFieldViewModel:function(v){return _.w(Lzf,{data:v.data,
controlled:function(){return{selectedValues:Y()||[],onTap:d}}})}})),_.w("div",{class:"ytFeedbackFormViewModelInputBox"},_.w(jH,{text:function(){var v;
return(v=_.k(G(),Ml6))==null?void 0:v.detail},
placeholder:function(){var v;return((v=E())==null?void 0:v.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var v=E();if(v&&v.maxChars)return{maxChars:v.maxChars,errorMessage:v.maxCharsExceededErrorMessage||""}},
onInput:W})),_.w("div",{class:"ytFeedbackFormViewModelFooterText"},_.w(_.r0,{text:function(){return B().footerText}})))},"yg");
UA6.idomCompat=!0;_.Vm(UA6,"yt-feedback-form-view-model",{props:{data:_.kz}});var Mjn=_.m(function(W){var B=W.data;var z=function(){return B().flowStateKey||""},G=_.hg(BOi,z),Y=function(){return _.k(G(),aI)},d=function(){if(_.r("enable_gff_accessibility_fix")){var E=!0,v;
if((v=Y())==null?0:v.navigationEnabled){var c;_.aB((c=Y())==null?void 0:c.navigationCommand);E=!1}v=Object.assign({},G(),{abuseReportFlowState:Object.assign({},Y(),{isReportFormDirty:E})});_.AV(_.bj("flowStateEntity",z(),v))}else _.aB((E=Y())==null?void 0:E.navigationCommand)};
return _.w("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.w("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.w(_.Sc,{data:function(){return B().cancelButton}},{buttonViewModel:function(E){return _.w(_.ex,{data:E.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:d})}}),_.w(_.Sc,{data:function(){var E;
if(B().navButton){var v=Object;var c=v.assign,J=_.k(B().navButton,_.wP),g=((E=Y())==null?0:E.navigationEnabled)||_.r("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",t,P;E=_.k((t=Y())==null?void 0:t.navigationCommand,_.NH);t=(P=_.k(E,_.DD))==null?void 0:P.url;v={buttonViewModel:c.call(v,{},J,{state:g,iconName:t?"OPEN_IN_NEW":""})}}else v=void 0;return v}},{buttonViewModel:function(E){return _.w(_.ex,{data:E.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:d})}})))},"zg");
Mjn.idomCompat=!0;_.Vm(Mjn,"yt-report-form-bottom-bar-view-model",{props:{data:_.kz}});var aEb=_.m(function(W){var B=W.nextStep;return _.w("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.w("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.w(_.hY,{icon:function(){return B().iconName||""}})),_.w("div",null,_.w(_.r0,{text:function(){return B().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ag"),R2b=_.m(function(W){var B=W.data;
var z,G=(z=_.dO().resolve(_.Y8(_.YG)))==null?void 0:z(),Y=_.hg(_.Bh,function(){return B().flowStateKey||""});
return _.w("yt-report-form-confirmation-page-view-model",{class:function(){var d;return((d=_.k(Y(),aI))==null?void 0:d.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.w("div",{class:function(){var d;
return((d=_.k(Y(),aI))==null?void 0:d.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.w(_.iF,{data:function(){return G&&B().imageDark?B().imageDark:B().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.w("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.w("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return B().confirmationHeader}),_.w("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.w(_.r0,{text:function(){return B().confirmationText}})),_.w("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.w(_.r0,{text:function(){return B().lawEnforcementText}})),
_.w("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return B().whatToExpectHeader}),_.w(_.V,{cond:function(){return B().nextSteps},
then:function(d){return _.w("div",null,_.w(_.IJ,{each:d},function(E){return _.w(aEb,{nextStep:E})}))}}),_.w(_.V,{cond:function(){return B().legalReportText},
then:function(d){return _.w("div",null,_.w(_.r0,{text:d,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Bg");
R2b.idomCompat=!0;_.Vm(R2b,"yt-report-form-confirmation-page-view-model",{props:{data:_.kz}});var W1K=_.m(function(W){var B=W.data;var z=function(){var d;return((d=_.k(B().inputBox,a_r))==null?void 0:d.maxChars)||500},G=function(){return B().flowStateKey||""},Y=_.hg(_.Bh,G);
W=_.O8(function(d){d=Object.assign({},Y(),{flowFormState:{isValid:d.length<=z()},abuseReportFlowState:{userComments:d,navigationEnabled:!(d.length>z()),isReportFormDirty:!0}});_.p8().dispatch(_.ue("flowStateEntity",G(),d))},150);
_.jD(function(){var d=Object.assign({},Y(),{flowFormState:{isValid:!0}});_.p8().dispatch(_.ue("flowStateEntity",G(),d))});
return _.w("yt-report-form-details-page-view-model",{class:function(){var d;return((d=_.k(Y(),aI))==null?void 0:d.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.w("h1",{class:function(){var d;
return((d=_.k(Y(),aI))==null?void 0:d.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return B().detailsPageHeader}),_.w("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.w(_.r0,{text:function(){return B().bodyText}})),_.w("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.w(jH,{label:function(){var d;
return((d=_.k(B().inputBox,a_r))==null?void 0:d.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var d;return{errorMessage:((d=_.k(B().inputBox,a_r))==null?void 0:d.maxCharsExceededErrorMessage)||"",maxChars:z()}},
onInput:W})))},"Cg");
W1K.idomCompat=!0;_.Vm(W1K,"yt-report-form-details-page-view-model",{props:{data:_.kz}});var B8f=_.m(function(W){var B=W.data;var z=_.ag("div"),G=function(){return B().flowStateKey||""},Y=_.hg(_.Bh,G),d=function(){return _.k(Y(),aI)};
_.ja(function(){var E,v;if(((E=d())==null?0:E.isReportFormDirty)&&((v=d())==null||!v.navigationEnabled)&&_.r("enable_gff_accessibility_fix")){var c;if(((c=d())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var J;(J=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||J.scrollIntoView()}else{var g;(g=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||g.scrollIntoView()}}},"nktJfe");
return _.w("yt-report-form-reason-select-page-view-model",{class:function(){var E;return((E=d())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.w("h1",{class:function(){var E;
return((E=d())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return B().pageHeader}),_.w("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.w(_.r0,{text:function(){return B().bodyText}})),_.w("div",{class:function(){var E;
return((E=d())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.w(_.V,{cond:function(){var E,v;
return((E=d())==null?void 0:E.isReportFormDirty)&&!((v=d())==null?0:v.navigationEnabled)&&_.r("enable_gff_accessibility_fix")},
then:function(){return _.w("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:z},_.w(_.hY,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.w("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return B().emptyReasonSelectErrorMessage}))}}),_.w(_.DAi,{data:function(){return _.k(B().radioButtonGroup,_.RI)},
onSelected:function(E,v){E=Object.assign({},Y(),{abuseReportFlowState:Object.assign({},d(),{reasonKey:v.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:v.command})});_.AV(_.bj("flowStateEntity",G(),E))},
selectedKey:function(){var E;return(E=d())==null?void 0:E.reasonKey},
groupName:"report-form-reason-select-page"})))},"Dg");
B8f.idomCompat=!0;_.Vm(B8f,"yt-report-form-reason-select-page-view-model",{props:{data:_.kz}});var zli=_.m(function(W){var B=W.data;var z,G=(z=_.dO().resolve(_.Y8(_.YG)))==null?void 0:z();return _.w("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.w("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.w(_.iF,{data:function(){return G&&B().imageDark?B().imageDark:B().image},
alt:""})),_.w("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.w("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return B().header}),_.w(_.r0,{text:function(){return B().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Eg");
zli.idomCompat=!0;_.Vm(zli,"yt-report-form-sign-in-page-view-model",{props:{data:_.kz}});_.G56=(0,_.gEb)(_.Bp.talkToRecs,{talkToRecsStateSelector:function(W){return W}});_.Vm(_.m(function(W){var B=W.data;var z=_.ny(_.G56.talkToRecsStateSelector),G=function(){return B().titleSuperscript},Y=function(){return B().answersShelf},d=function(){return B().videoShelf},E=function(){var vy;
return(vy=B().textInputPlaceholder)==null?void 0:vy.content},v=function(){return B().showOpenTextInput},c=function(){var vy;
return(vy=B().textInputValue)==null?void 0:vy.content},J=function(){return B().isMultiTurnFlow?B().resetButtonViewModel:void 0},g=!1,t="",P=function(){return B().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
W=_.A(_.g4(!1,void 0,"yNmaRe"));var Z=W.next().value,l=W.next().value;W=_.A(_.g4("",void 0,"EKI9ve"));var b=W.next().value,O=W.next().value,K=function(){return{state:Z()?"active":"disabled",disabled:!Z()}};
_.bk(function(){if(v()){c()&&O(c());var vy;if(!J()&&((vy=z())==null?0:vy.stepStates)){var lx;vy=Object.keys((lx=z())==null?void 0:lx.stepStates);lx=vy[vy.length-1];var Zv,VR;(lx=(Zv=z().stepStates[lx])==null?void 0:(VR=Zv.userQuery)==null?void 0:VR.userQuery)&&O(lx)}}});
var e=function(vy){var lx=B().onUpdateText;lx&&_.aB(lx,{form:{userQuery:vy}});O(vy)},a=_.O8(function(vy){e(vy.target.value.trim())},150),q=_.lF(function(vy){var lx,Zv=(lx=vy.target.value)==null?void 0:lx.trim();
l(!!Zv||g);t=Zv;a(vy);return!1}),n=_.lF(function(vy){vy.key==="Enter"&&Z()&&(e(vy.target.value.trim()),By());
return!1}),L=function(vy,lx){if(g=lx){if(B().isMultiTurnFlow&&!t){var Zv;
e((Zv=vy==null?void 0:vy.text)!=null?Zv:"")}B().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&By();l(!0)}else l(!!t),O(t)},By=function(){var vy=void 0,lx=_.k(B().nextButtonViewModel,_.wP),Zv,VR;
if(lx==null?0:(Zv=lx.loggingDirectives)==null?0:(VR=Zv.clientVeSpec)==null?0:VR.uiType){var ux,X2;vy=_.PA((ux=lx.loggingDirectives)==null?void 0:(X2=ux.clientVeSpec)==null?void 0:X2.uiType)}(lx=B().onNextStepCommand)&&_.aB(lx,{forceClickLogging:!0,clickedVisualElement:vy})};
W=_.LG("yt-talk-to-recs-view-model");var gk={};return _.w("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:W},_.w("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.w(_.Sc,{data:function(){return B().topCornerButton}},{buttonViewModel:_.ex})),_.w("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.w("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.w(_.r0,{text:function(){return B().title}}),_.w(_.V,{cond:G,
then:function(){return _.w("sup",{class:"ytwTalkToRecsSuperScript"},_.w(_.r0,{text:G}))}})),_.w("div",{class:"ytwTalkToRecsSubtitle"},_.w(_.r0,{text:function(){return B().subtitle}})),_.w("div",{class:"ytwTalkToRecsResultsShelf"},_.w(_.V,{cond:Y,
then:function(){return _.w(_.Sc,{data:Y},{chipsShelfViewModel:function(vy){return _.w("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.w(_.T$,{data:vy.data,callback:L,selectionBehavior:P}))}})}}),_.w(_.V,{cond:d,
then:function(){return _.w(_.Sc,{data:d},{horizontalShelfViewModel:function(vy){return _.w("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.w(_.VC,{data:vy.data,thumbnailAspectRatio:0}))}})}})),_.w("div",{class:_.kG("ytwTalkToRecsRefinementContainer",(gk.ytwTalkToRecsBottomMargin=function(){return B().isMultiTurnFlow},gk))},_.w(_.V,{cond:v,
then:function(){return _.w("div",{class:"ytwTalkToRecsUserInputBox"},_.w("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:E,value:b,"on:input":q,"on:keyup":n,maxlength:200}))}}),_.w(_.Sc,{data:function(){return B().isMultiTurnFlow?B().nextButtonViewModel:void 0}},{buttonViewModel:function(vy){return _.w("div",{class:"ytwTalkToRecsFlowControlButtons"},_.w(_.ex,{data:vy.data,
buttonOverrides:K}))}}),_.w(_.Sc,{data:J},{buttonViewModel:function(vy){return _.w("div",{class:"ytwTalkToRecsFlowControlButtons"},_.w(_.ex,{data:vy.data,
onClick:function(){var lx=_.k(B().resetButtonViewModel,_.wP);e(b());(lx=lx==null?void 0:lx.onTap)&&_.aB(lx)}}))}}))))},"Fg"),"yt-talk-to-recs-view-model",{props:{data:_.kz}});var GUi={sources:[{clientResource:{imageName:"CHECK"}}]};_.Yhf=_.m(function(W){var B=_.LG("div");W=_.EV(W,{error:void 0});var z=W.data,G=W.error,Y=W.onSelected;W=_.A(_.IK(function(){return pV1(z())}));
var d=W.next().value,E=W.next().value;T2i(z,function(P){E(P);var Z,l,b=dX1((Z=z().options)==null?void 0:(l=Z[P])==null?void 0:l.value,z().type);Y==null||Y(b);B.value.focus()});
W=_.lF(function(){if(!z().disabled){var P=z(),Z=d(),l=B.value;P.options&&(P=YEr(P.options,Z,P.label),_.dO().resolve(_.BD).openSheet({viewModel:P},l))}});
var v=_.vJD(),c=function(){return!!G()},J=function(){return!!z().disabled},g={},t={};
return _.w("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.w("div",{class:_.kG("ytDropdownViewModelDropdownContainer",(g.ytDropdownViewModelDropdownContainerErrorBorder=c,g.ytDropdownViewModelDropdownContainerDisabled=J,g)),"on:click":W,el:B,role:"combobox",tabindex:0,"on:keydown":v,"aria-invalid":c,"aria-disabled":J,"aria-describedby":function(){return c()?"dropdown-view-model-error":void 0}},_.w("div",{class:"ytDropdownViewModelText"},ADj(z,c,d),igO(z,d)),_.w("div",{class:_.kG("ytDropdownViewModelChevronDown",
(t.ytDropdownViewModelChevronDownDisabled=J,t))},_.w(_.hY,{icon:"CHEVRON_DOWN"}))),EbY(z,G))},"Gg");_.Vm(_.m(function(W){var B=W.data;var z=function(Y){var d=cDb(B());d.videoMetadata||(d.videoMetadata={});d.videoMetadata.sponsorshipsMetadata||(d.videoMetadata.sponsorshipsMetadata={});d.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(Y)},G=function(Y){var d=cDb(B());
d.scheduledRedirectMetadata||(d.scheduledRedirectMetadata={});d.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(Y)};
return _.w("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.w("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.w("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.w(_.r0,{text:function(){return B().title}}),_.w(_.hY,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.w(_.r0,{text:function(){return B().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.w(_.Sc,{data:function(){return B().tierChoices}},{dropdownViewModel:function(Y){return _.w("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.w(_.Yhf,{data:Y.data,
onSelected:z}))}}),_.w(_.Sc,{data:function(){return B().startTimeChoices}},{dropdownViewModel:function(Y){return _.w("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.w(_.Yhf,{data:Y.data,
onSelected:G}))}}),_.w(_.r0,{text:function(){return B().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.w("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.w(_.Sc,{data:function(){return B().scheduleButton}},{panelFooterViewModel:_.SH})))},"Hg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=W.data;W=W.className===void 0?"":W.className;var z=_.hg(BOi,function(){return B().flowStateEntityKey||""}),G={};
G=_.kG("ytFlowBottomBarViewModelFlowBottomBarButtons",(G.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},G));
var Y={},d=_.kG("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",G,(Y.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Y.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},Y));
Y={};var E=_.kG("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",G,(Y.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Y.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},Y));
G={};G=_.kG("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(G.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},G.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},G.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
G));
W=_.kG("ytFlowBottomBarViewModelHost",W);return _.w("yt-flow-bottom-bar-view-model",{class:W},_.w(_.V,{cond:function(){var v;return(v=B())==null?void 0:v.textSection},
then:function(v){return _.w("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.w(_.r0,{text:v}))}}),_.w("div",{class:G},_.w(_.Sc,{data:function(){return B().secondaryButton}},{buttonViewModel:function(v){return _.w(_.ex,{data:v.data,
className:E})}}),_.w(_.Sc,{data:function(){return B().primaryButton}},{buttonViewModel:function(v){return _.w(_.ex,{data:v.data,
className:d,buttonOverrides:function(){var c;return{disabled:!((c=z())==null||!c.primaryButtonDisabled)}}})}})))},"Ig"),"yt-flow-bottom-bar-view-model",{props:{data:_.kz,
className:_.wS}});var dOr="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),f1=function(){var W=_.S.apply(this,arguments)||this;W.enableScrollingFix=!0;W.bottomBar=!1;W.fitContent=!1;return W};
_.C(f1,_.S);_.p=f1.prototype;_.p.ready=function(){_.r("enable_pdp_icon_prefetch")&&_.N20(_.dO().resolve(_.BW),0,dOr)};
_.p.focus=function(W){this.topBar?_.Lg(this.topBar,W):this.paperDialog.focus(W)};
_.p.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19108_scroller&&(this.JSC$19108_scroller.dialogElement=this.paperDialog,this.JSC$19108_scroller.attached&&typeof this.JSC$19108_scroller.attached==="function"&&this.JSC$19108_scroller.attached())};
_.p.onDataChanged=function(){var W;this.fitContent=!((W=this.data)==null||!W.fitContent);var B;this.bottomBar=!((B=this.data)==null||!B.bottomBar)};
_.p.onProgressChanged=function(){var W,B,z=((B=(W=this.data)==null?void 0:W.progress)!=null?B:0)*100;this.progressElement.style.width=z+"%"};
_.p.isProgressHidden=function(){var W;return!((W=this.data)==null?0:W.progress)};
_.p.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(W){return _.r("enable_wiz_next_lp2_msof")&&W&&!W.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
f1.prototype.onProgressChanged=f1.prototype.onProgressChanged;f1.prototype.onDataChanged=f1.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],f1.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],f1.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],f1.prototype,"enableScrollingFix",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],f1.prototype,"bottomBar",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],f1.prototype,"fitContent",void 0);_.Q([_.Hf("#progress"),_.y("design:type",HTMLElement)],f1.prototype,"progressElement",void 0);_.Q([_.Hf("#scroller"),_.y("design:type",Object)],f1.prototype,"JSC$19108_scroller",void 0);_.Q([_.Hf("ytd-flow-top-bar-renderer"),_.y("design:type",HTMLElement)],f1.prototype,"topBar",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f1.prototype,"onDataChanged",null);_.Q([_.oN("data.progress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f1.prototype,"onProgressChanged",null);_.Q([_.u({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],f1);
_.D(f1,"ytd-flow-step-renderer",function(){if(XTY!==void 0)return XTY;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return XTY=W},{mode:1});var pM9=function(W){this.resolveCommand=W;this.steps={}},Az0=function(W,B){B=_.A(B||[]);
for(var z=B.next();!z.done;z=B.next()){z=z.value;var G=Object.values(z)[0],Y=void 0;if((Y=G)==null?0:Y.stepId)W.steps[G.stepId]=z}},T86=function(W,B){var z,G,Y,d,E;
return _.T(function(v){if((z=W.state)==null||!z.currentStepId)return v.return(void 0);G=it9(W);if(!G)return v.return(E6K(W));if(Y=_.k(G,_.z5Y)){var c;((c=Y.screenLoggingData)==null?0:c.screenVeType)&&_.KS(_.SK(),Y.screenLoggingData.screenVeType);((d=Y)==null?0:d.onStepStartCommand)&&W.resolveCommand((E=Y)==null?void 0:E.onStepStartCommand,{})}if(Y&&B){c=Y;var J,g,t,P;((J=B.flowLoggingData)==null?0:J.eventNamespace)&&((g=c.flowEventData)==null?0:g.eventType)&&((t=c.flowEventData)==null?0:t.eventMetadata)&&
((P=B.flowLoggingData)==null?0:P.flowType)&&(J=_.Pg(B.flowLoggingData.eventNamespace,c.flowEventData.eventType,c.flowEventData.eventMetadata),_.Za(_.rD(),J,B.flowLoggingData.flowType));B.steps&&!B.steps.includes(G)&&B.steps.push(G)}return v.return(G)})};
pM9.prototype.back=function(){var W;(W=this.state)!=null&&W.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
pM9.prototype.handleUpdateFlowCommand=function(W){W.steps&&Az0(this,W.steps);W.entityUpdateCommand&&this.resolveCommand(W.entityUpdateCommand,{});W.flowContinuationCommand&&(W=W.flowContinuationCommand)&&(this.getFlowContinuationCommand=W);this.awaitFlowContinuation&&(this.awaitFlowContinuation(it9(this)),this.awaitFlowContinuation=void 0)};
pM9.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var E6K=function(W){return _.T(function(B){return W.getFlowContinuationCommand?B.return(new Promise(function(z){W.awaitFlowContinuation=z;W.getFlowContinuationCommand&&W.resolveCommand(W.getFlowContinuationCommand,{flow_state:W.state})})):B.return(Promise.resolve(void 0))})},it9=function(W){var B;
if((B=W.state)!=null&&B.currentStepId)return W.steps[W.state.currentStepId]};var Oy=function(){var W=_.S.apply(this,arguments)||this;W.flowState=new pM9(function(B,z){z=z===void 0?{}:z;_.IB.instance.resolveCommand(B,{form:{form:z,element:W.hostElement}})});
W.initialState=!0;W.isLoading=!1;W.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"};W.containsTalkToRecs=!1;return W};
_.C(Oy,_.S);_.p=Oy.prototype;_.p.onPopupClosed=function(W){W&&this.hostElement!==W.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.p.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.p.focus=function(W){var B=this;_.WJ(function(){var z=_.tH(B.hostElement).querySelector("ytd-flow-step-renderer");(z==null?0:z.topBar)?z.focus(W):B.topBar&&_.Lg(B.topBar,W)},1)};
_.p.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.p.computeTopBarHidden=function(W){var B;return!((B=_.k(W,_.z5Y))==null||!B.topBarOverride)};
_.p.dataChanged=function(){var W=this,B,z;return _.T(function(G){if(G.nextAddress==1){((B=W.data)==null?0:B.steps)&&Az0(W.flowState,W.data.steps);if((z=W.data)==null?0:z.flowContinuationCommand){var Y=W.flowState,d=W.data.flowContinuationCommand;d&&(Y.getFlowContinuationCommand=d)}return G.yield(T86(W.flowState,W.data),2)}W.currentFlowStep=G.yieldResult;_.HG(G)})};
_.p.flowChanged=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1){if(!W.flow)return z.return();W.flowState.state=W.flow;W.isLoading=!0;return z.yield(T86(W.flowState,W.data),2)}B=z.yieldResult;if(!B||W.flow.isLoading)return z.return();W.currentFlowStep=B;W.initialState=!1;W.isLoading=!1;W.autofocusAndRefit();W.updateContainsTalkToRecs();_.HG(z)})};
_.p.updateContainsTalkToRecs=function(){var W,B=(W=_.k(this.currentFlowStep,_.z5Y))==null?void 0:W.content;this.containsTalkToRecs=!!B&&!!_.k(B,Gi1)};
_.p.autofocusAndRefit=function(){var W=this,B=_.dO().resolve(_.Y8(_.jx)),z=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),G=document.querySelector("yt-report-form-confirmation-page-view-model"),Y=document.querySelector("yt-report-form-details-page-view-model"),d=document.querySelector("yt-report-form-reason-select-page-view-model"),E=document.querySelector("yt-contributor-zero-state-view-model"),
v=document.querySelector("yt-structured-context-note-view-model"),c=document.querySelector("yt-note-view-model");(!z&&B&&B.isKeyBoardInUse()||G||!z&&Y||!z&&d||E||v||c)&&_.UE(this.hostElement);_.BM(this,function(){_.v0(W.hostElement,"yt-refit")})};
_.p.handleUpdateFlowCommand=function(W){this.data&&(W=_.k(W,B7q),W.targetId===this.data.targetId&&(W.flowContinuationCommand&&(this.data.flowContinuationCommand=W.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(W),this.autofocusAndRefit()))};
_.p.handleFlowNextStepCommand=function(W){this.data&&this.flow&&this.flow.key&&(W=_.k(W,R3q),W.targetId===this.data.targetId&&(W=W.stepId||"",this.ytdReduxBehavior.dispatch(_.ue("flowStateEntity",this.flow.key,{currentStepId:W,stepIdStack:(this.flow.stepIdStack||[]).concat(W)}))))};
_.p.handleFlowPrevStepCommand=function(W){if(this.data&&this.flow&&this.flow.key&&(W=_.k(W,WEf),W.targetId===this.data.targetId)){var B=[].concat(_.u7(this.flow.stepIdStack||[]));B.length>1?(B.pop(),this.ytdReduxBehavior.dispatch(_.ue("flowStateEntity",this.flow.key,{currentStepId:B[B.length-1],stepIdStack:B}))):W.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(W.onFirstStepCommand)}};
_.p.handleYpcCancelRecurrenceCommand=function(W){if(this.data&&this.flow&&this.flow.key&&(W=_.k(W,iGr),W.targetId===this.data.targetId&&W.endpointCommand)){var B=_.k(this.flow,EEn);B&&_.k(W.endpointCommand,_.fVD)&&(_.k(W.endpointCommand,_.fVD).feedbackData=B.surveyFeedback);this.ytComponentBehavior.resolveCommand(W.endpointCommand)}};
_.p.handlePartialUpdateFlowStateEntity=function(W){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.ue("flowStateEntity",this.flow.key,W,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
Oy.prototype.flowChanged=Oy.prototype.flowChanged;Oy.prototype.dataChanged=Oy.prototype.dataChanged;Oy.prototype.onPopupClosed=Oy.prototype.onPopupClosed;_.Q([_.h(_.TB),_.y("design:type",Object)],Oy.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Oy.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Oy.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Oy.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Oy.prototype,"initialState",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Oy.prototype,"isLoading",void 0);_.Q([_.F(),_.y("design:type",Object)],Oy.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],Oy.prototype,"currentFlowStep",void 0);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Oy.prototype,"onPopupClosed",null);_.Q([_.F({selectorArgs:["data.flowStateEntityKey"],selector:BOi}),_.y("design:type",Object)],Oy.prototype,"flow",void 0);_.Q([_.Hf("ytd-flow-top-bar-renderer"),_.y("design:type",HTMLElement)],Oy.prototype,"topBar",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],Oy.prototype,"dataChanged",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Oy.prototype,"containsTalkToRecs",void 0);_.Q([_.jJ("flow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],Oy.prototype,"flowChanged",null);_.Q([_.u({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],Oy);
_.v60=_.sV()(Oy,"ytd-flow-root-renderer",function(){if(OG9!==void 0)return OG9;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return OG9=W},{mode:_.PJ("kevlar_poly_si_batch_j025")?1:2});var cz9;var Uq=null;_.Vm(_.m(function(W){return _.w("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.w("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.w(_.r0,{text:function(){return W.data().text}}),_.w("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Jg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.kz}});var wM0=_.m(function(W){var B=W.playerControlsProps;var z=W.isShortsPage;return _.w("yt-bigboard",null,_.w(_.V,{cond:function(){return B().isDragging},
then:function(){return _.w("div",{class:"ytBigboardStoryboardHost"},_.w(_.m5r,{progressBarProps:B,isShortsPage:z}))}}))},"Kg");
wM0.idomCompat=!0;_.Xe={ACCOUNT_LABEL:MC("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:MC("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:MC("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:MC("AD_BADGE_HINT"),AD_BADGE_TEXT:MC("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:MC("ALL_CHANNELS_LABEL"),AMBIENT_MODE:MC("AMBIENT_MODE"),AMBIENT_MODE_OFF:MC("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:MC("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:MC("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:MC("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:MC("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:MC("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:MC("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:MC("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:MC("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:MC("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:MC("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:MC("AUTO_ZOOM","Auto zoom"),BACK:MC("BACK"),CANCEL:MC("CANCEL"),CHANNEL_SWITCHER_LABEL:MC("CHANNEL_SWITCHER_LABEL"),CLOSE:MC("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:MC("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:MC("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:MC("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:MC("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:MC("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:MC("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:MC("COMMENT_MODAL_CONTENT"),CONFIRM_OK:MC("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:MC("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:MC("COPIED_TO_CLIPBOARD"),COPY:MC("COPY"),COPY_DEBUG_INFO:MC("COPY_DEBUG_INFO"),COPY_EMBED_CODE:MC("COPY_EMBED_CODE"),
COPY_LINK_LABEL:MC("COPY_LINK_LABEL"),COPY_VIDEO_URL:MC("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:MC("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:MC("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:MC("DELETE_FROM_DOWNLOADS"),DIALOG:MC("DIALOG"),DONE:MC("DONE"),DOWNLOAD:MC("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:MC("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:MC("FLAG_CONFIRM"),FLAG_CONTENT:MC("FLAG_CONTENT"),FLAG_LABEL:MC("FLAG_LABEL"),FLAG_TITLE:MC("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:MC("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:MC("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:MC("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:MC("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:MC("HIDE_SEARCH_FILTERS_LABEL"),HOME:MC("HOME","Home"),INVALID_RESPONSE_RECEIVED:MC("INVALID_RESPONSE_RECEIVED"),LIBRARY:MC("LIBRARY","Library"),LISTENING:MC("LISTENING"),LOADING:MC("LOADING"),LONG_PRESS_MIC_TO_SPEAK:MC("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:MC("LOOP"),MENU_DESKTOP:MC("MENU_DESKTOP"),
MENU_EXIT:MC("MENU_EXIT"),MENU_FEEDBACK:MC("MENU_FEEDBACK"),MENU_HELP:MC("MENU_HELP"),MENU_IMPRESSUM:MC("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:MC("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:MC("MENU_SETTINGS"),MENU_SIGN_IN:MC("MENU_SIGN_IN"),MENU_TITLE:MC("MENU_TITLE"),MENU_YOUR_DATA:MC("MENU_YOUR_DATA"),MORE_INFO:MC("MORE_INFO"),MORE_OPTIONS:MC("MORE_OPTIONS"),MUTE_VOLUME:MC("MUTE_VOLUME"),NEW_PLAYLIST:MC("NEW_PLAYLIST"),NEXT_VIDEO:MC("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:MC("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:MC("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:MC("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:MC("NOT_FOUND_TITLE"),NO_DOWNLOADS:MC("NO_DOWNLOADS"),NO_MIC_INPUT:MC("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:MC("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:MC("OOPS_MESSAGE"),OPEN_APP:MC("OPEN_APP"),OPEN_YOUTUBE:MC("OPEN_YOUTUBE"),PAUSE:MC("PAUSE"),PLAY:MC("PLAY"),PLAYER_CAPTION:MC("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:MC("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:MC("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:MC("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:MC("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:MC("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:MC("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:MC("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:MC("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:MC("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:MC("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:MC("PLAYER_MINIMIZE"),PLAYER_NEXT:MC("PLAYER_NEXT"),PLAYER_PAUSE:MC("PLAYER_PAUSE"),PLAYER_PLAY:MC("PLAYER_PLAY"),
PLAYER_PREVIOUS:MC("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:MC("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:MC("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:MC("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:MC("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:MC("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:MC("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:MC("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:MC("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:MC("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:MC("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:MC("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:MC("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:MC("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:MC("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:MC("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:MC("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:MC("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:MC("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:MC("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:MC("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:MC("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:MC("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:MC("PLAY_ALL"),PLEASE_FIX_ERRORS:MC("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:MC("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:MC("PREVIOUS_VIDEO"),PRIVACY_POLICY:MC("PRIVACY_POLICY"),RELOAD:MC("RELOAD"),REQUIRED_LABEL:MC("REQUIRED_LABEL"),SAVE_PLAYLIST:MC("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:MC("SCRUB_SLIDE_USER_EDU"),SEARCH:MC("SEARCH","Search"),
SEARCH_APPEND_LABEL:MC("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:MC("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:MC("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:MC("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:MC("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:MC("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:MC("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:MC("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:MC("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:MC("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:MC("SEEK_SLIDER"),SETTINGS_LABEL:MC("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:MC("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:MC("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:MC("SHOW_LESS"),SHOW_MORE:MC("SHOW_MORE"),SHOW_PLAYER_CONTROLS:MC("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:MC("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:MC("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:MC("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:MC("SIGN_IN_ON_WEB"),STABLE_VOLUME:MC("STABLE_VOLUME"),STABLE_VOLUME_OFF:MC("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:MC("STABLE_VOLUME_ON"),STATS_FOR_NERDS:MC("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:MC("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:MC("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:MC("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:MC("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:MC("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:MC("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:MC("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:MC("TIMESTAMP_SECONDS"),TOGGLE_OFF:MC("TOGGLE_OFF"),TOGGLE_ON:MC("TOGGLE_ON"),TRENDING:MC("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:MC("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:MC("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:MC("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:MC("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:MC("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:MC("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:MC("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:MC("VIDEO_LINK_LABEL")};var Vtf=_.m(function(W){var B=W.playerApi;W=_.LG("button",function(G){_.CF(G,36843)});
var z=MC("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.w("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.w("button",{el:W,class:"ytPlayerControlsJumpForwardButtonButton",title:z,"aria-label":z,"on:click":_.lF(function(){_.II(36843);B&&B().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.w("span",null,_.w(_.hY,{icon:"FAST_FORWARD"}))))},"Lg");var Jzj=_.m(function(W){var B=W.appApi;W=_.LG("button",function(G){_.CF(G,62946)});
var z=MC("OPEN_IN_MINIPLAYER");return _.w("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.w("button",{el:W,class:"ytMiniplayerButtonButton",title:z,"aria-label":z,"on:click":_.lF(function(){_.II(62946);var G,Y;(Y=(G=B()).openInMiniplayer)==null||Y.call(G);return!1})},_.w(_.hY,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Mg");var g6f=_.m(function(W){var B=W.playerApi;W=_.LG("button",function(d){_.CF(d,142812)});
var z=_.A(_.g4(!1,void 0,"eOMRAb")),G=z.next().value,Y=z.next().value;z=function(){return MC("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(G()?1:2)})};
return _.w("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.w("button",{el:W,class:"ytPlaybackSpeedButtonButton",title:z,"aria-label":z,"on:click":_.lF(function(){_.II(142812);if(B){var d=B(),E=G();d.setPlaybackRate(E?1:2);Y(!G())}return!1})},_.w("span",null,_.w(_.hY,{icon:function(){return G()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Ng");var ttb=_.m(function(W){var B=W.title;var z=W.ariaLabel;var G=W.icon;var Y=W.command;var d=W.veType;W=_.LG("button",function(E){d&&_.CF(E,d())});
return _.w("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.w("button",{el:W,class:"ytdThumbnailOverlayButtonButton",title:B,"aria-label":z,"on:click":_.lF(function(){d&&_.II(d());Y&&_.dO().resolve(_.p4).resolveCommand(Y())})},_.w(_.hY,{icon:G})))},"Og");var DA="";var sdK=_.m(function(W){var B=W.playerControlsProps,z=W.onClickFn;W=_.r4(function(){var d=B(),E=-1;d.captionsAvailable&&(E=d.captionsEnabled?1:0);return E},void 0,"MZ0Wqe");
var G=_.r4(function(){var d=B();return d.captionsAvailable?_.kq(d.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.kq("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),Y=_.r4(function(){var d=B();
d=d.captionsAvailable?d.captionsEnabled:void 0;return d},void 0,"fhuQRe");
return _.w("yt-closed-captions-toggle-button",null,_.w(_.Ck9,{captionIconType:W,ariaLabel:G,ariaPressed:Y,onClick:function(d){var E=B();if(E.captionsAvailable){var v=E.playerApi;if(v){var c=E.playerApi;if(c){var J=DA;if(J){c=c.getOption("captions","track");var g;DA=(g=c?c.displayName:null)!=null?g:J}else _.lV(c)?(J=_.ezX(c),DA=J.length?(g=dn0(J))?g.displayName:J[0].displayName:""):DA=""}pS0(v);_.r("mweb_disable_set_state_captions_killswitch")&&E.setState({captionsEnabled:!E.captionsEnabled})}}var t,
P;(P=(t=E.appApi).showCaptionsToggleToast)==null||P.call(t,E);z==null||z(d)},
isOverlay:!0}))},"Pg");var Pyj=_.m(function(W){var B=W.data;return _.w("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.w(_.vD,{data:function(){return{type:17,text:_.Ak8(B().label)}}}))},"Qg");var Ztn=_.m(function(W){var B=_.kG("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return W.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return W.size()==="small"?W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.w("animated-seek-arrows",{class:_.kG("ytPlayerControlsAnimatedSeekArrowsHost")},_.w("span",{class:B}),_.w("span",{class:B}),_.w("span",{class:B}))},"Rg");
Ztn.idomCompat=!0;var rzb=_.m(function(){var W=_.kq("PLAYER_SECONDS",{seconds_placeholder:"30"}),B=_.A(_.g4(!1,void 0,"iRJu8c")),z=B.next().value,G=B.next().value,Y=_.A(_.g4(!1,void 0,"MPnizf"));B=Y.next().value;var d=Y.next().value;Y={};var E=_.kG("jumpForwardOverlayOverlay",(Y.jumpForwardOverlayOverlayHidden=B,Y));_.jD(function(){var v=null,c=null,J=function(){v!==null&&_.FU().cancelJob(v);c!==null&&_.FU().cancelJob(c);d(!0);G(!0);_.P2(_.FU(),function(){d(!1)});
v=_.P2(_.FU(),function(){d(!0);c=_.P2(_.FU(),function(){G(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",J);_.fR(function(){window.removeEventListener("jump-forward-clicked",J)})});
return _.w("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.w(_.V,{cond:z,then:function(){return _.w("div",{class:E},_.w(Ztn,{direction:1,size:"large"}),_.w("div",null,W))}}))},"Sg");var k5n=_.Xe.MUTE_VOLUME,l2r=_.Xe.UNMUTE_VOLUME,Cyn=_.m(function(W){var B=W.muteIconType;var z=W.onClick;var G=W.useOutlineIcon;var Y=W.useDelhiIcons;W=_.LG("button",function(v){_.CF(v,28662)});
var d=function(){var v=B(),c=G==null?void 0:G(),J=Y==null?void 0:Y(),g="",t="";switch(v){case -1:case 0:g=c?"VOLUME_OFF":J?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";t=l2r;break;case 1:g=c?"VOLUME_UP_OUTLINE":J?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";t=k5n;break;case 2:g=c?"VOLUME_DOWN_OUTLINE":J?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";t=k5n;break;default:_.qT(v)}return{iconName:g,ariaLabel:t}},E=function(){return d().ariaLabel};
return _.w("ytm-mute-button",{class:"ytmMuteButtonHost"},_.w("button",{el:W,class:"ytmMuteButtonButton",title:E,"aria-label":E,"on:click":_.lF(function(v){_.II(28662);z==null||z(v);return!1})},_.w("span",null,_.w(_.hY,{icon:function(){return d().iconName}}))))},"Tg");var I2n=_.m(function(W){var B=W.volumeProps;var z=W.onClickFn;var G=W.useOutlineIcon;var Y=W.useDelhiIcons;return _.w("yt-mute-toggle-button",null,_.w(Cyn,{muteIconType:function(){var d=B();return d.volumeMuted||d.volume===0?0:d.volume>50?1:2},
onClick:function(d){var E=B().playerApi;E&&(E.isMuted()?E.unMute():E.mute(!1));z==null||z(d)},
useOutlineIcon:function(){return!(G==null||!G())},
useDelhiIcons:function(){return!(Y==null||!Y())}}))},"Ug");
I2n.idomCompat=!0;var o6b=_.m(function(W){var B=W.data;var z=_.LG("ytm-paid-content-overlay-renderer");return _.w("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:z,"on:animationend":_.lF(function(){z.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.w(_.fL,{command:function(){return B().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.w(_.V,{cond:function(){var G;return(G=B().icon)==null?void 0:G.iconType},
then:function(){return _.w("span",null,_.w(_.hY,{icon:function(){var G;return(G=B().icon)==null?void 0:G.iconType}}))}}),_.w("div",{class:"ytmPaidContentOverlayText"},_.w(_.r0,{text:function(){return B().text}})),_.w(_.V,{cond:function(){return B().navigationEndpoint},
then:function(){return _.w(_.hY,{icon:"CHEVRON_RIGHT"})}})))},"Vg");
o6b.idomCompat=!0;var h3r=[].concat(_.u7([{register:function(W){var B=uGq(W),z;(z=W().playerApi)==null||z.addEventListener("onVolumeChange",B);return function(){}}},
{register:function(W){var B=e3i(W);W=W().playerApi;W==null||W.addEventListener("captionschanged",B);W==null||W.addEventListener("captionssettingschanged",B);W==null||W.addEventListener("onCaptionsTrackListChanged",B);return function(){}}},
{register:function(W){if(!_.r("mweb_screenreader_accessible_player"))return function(){};
var B=mXq(W),z=document.querySelector("video");z==null||z.addEventListener("touchend",B);return function(){z==null||z.removeEventListener("touchend",B)}}},
{register:function(W){if(!_.r("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var B=mXq(W),z=document.querySelector("video");z==null||z.addEventListener("focus",B);return function(){z==null||z.removeEventListener("focus",B)}}}]),[{register:function(W){var B=f_9(W),z;
(z=W().playerApi)==null||z.addEventListener("onStateChange",B);return function(){}}},
{register:function(W){var B=OgY(W),z;(z=W().playerApi)==null||z.addEventListener("onPlaybackRateChange",B);return function(){}}},
{register:function(W){var B=XVi(W),z;(z=W().playerApi)==null||z.addEventListener("onVideoDataChange",B);return function(){}}},
{register:function(W){var B=Kg9(W),z,G;(z=W())==null||(G=z.playerApi)==null||G.addEventListener("onVideoProgress",B);return function(){}}}]);var hlK=_.m(function(W){var B=W.data;var z=function(){return _.kq("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+B().playbackRate})};
return _.w(_.V,{cond:function(){return B().playbackRate&&B().playbackRate!==1},
then:function(){return _.w("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.w("div",{class:"ytPlaybackRateOverlayOverlay"},_.w(Ztn,{direction:1,size:"small"}),_.w("div",{class:"ytPlaybackRateOverlayLabel"},z)))}})},"Wg");var Htf=_.m(function(W){var B=W.data;return _.w("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.w(_.V,{cond:function(){var z,G=(z=B())==null?void 0:z.playerResponse,Y;return G==null?void 0:(Y=G.paidContentOverlay)==null?void 0:Y.paidContentOverlayRenderer},
then:function(z){return _.w(o6b,{data:z})}}))},"Yg"),F1b=_.m(function(W){var B=W.props;
var z=W.data;var G=W.options;var Y=function(){var J,g,t,P;return(J=z())==null?void 0:(g=J.playerResponse)==null?void 0:(t=g.playerConfig)==null?void 0:(P=t.inlinePlaybackConfig)==null?void 0:P.showAudioControls},d=function(){var J,g;
if(Y()&&((J=G())==null?void 0:(g=J.additionalButton)==null?void 0:g.button)!==void 0){var t,P,Z;J=(t=z())==null?void 0:(P=t.playerApi)==null?void 0:(Z=P.getSize())==null?void 0:Z.height;if(!(J===void 0||J<180)){var l,b;return(l=G())==null?void 0:(b=l.additionalButton)==null?void 0:b.button}}},E=function(){var J,g;
return(J=G())==null?void 0:(g=J.additionalButton)==null?void 0:g.thumbnailOverlayButtonRenderers},v=function(){var J,g;
return(J=G())==null?void 0:(g=J.additionalButton)==null?void 0:g.thumbnailOverlayButtonViewModels},c=function(){var J=[_.w(I2n,{volumeProps:B}),
_.w(sdK,{playerControlsProps:B})];d()===1&&J.push(_.w(Vtf,{playerApi:function(){return B().playerApi}}));
d()===2&&J.push(_.w(Jzj,{appApi:function(){return B().appApi}}));
d()===3&&J.push(_.w(g6f,{playerApi:function(){return B().playerApi}}));
var g=E();if(d()===4&&g){g=_.A(g);for(var t=g.next(),P={};!t.done;P={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$589:void 0},t=g.next()){t=t.value;P.tooltip$jscomp$2=t.tooltip;var Z=void 0,l=void 0;P.ariaLabel$jscomp$20=((Z=t.accessibility)==null?void 0:(l=Z.accessibilityData)==null?void 0:l.label)||P.tooltip$jscomp$2;Z=void 0;P.icon$jscomp$50=(Z=t.icon)==null?void 0:Z.iconType;P.command$jscomp$589=t.command;P.tooltip$jscomp$2&&P.ariaLabel$jscomp$20&&P.icon$jscomp$50&&
J.push(_.w(ttb,{title:function(b){return function(){return b.tooltip$jscomp$2}}(P),
ariaLabel:function(b){return function(){return b.ariaLabel$jscomp$20}}(P),
icon:function(b){return function(){return b.icon$jscomp$50}}(P),
command:function(b){return function(){return b.command$jscomp$589}}(P)}))}}g=v();
if(d()===4&&g)for(g=_.A(g),t=g.next(),P={};!t.done;P={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$51:void 0,command$jscomp$590:void 0},t=g.next())t=t.value,P.tooltip$jscomp$3=t.title,P.ariaLabel$jscomp$21=t.accessibilityText||P.tooltip$jscomp$3,P.icon$jscomp$51=t.iconName,P.command$jscomp$590=_.$B(t.onTap),P.tooltip$jscomp$3&&P.ariaLabel$jscomp$21&&P.icon$jscomp$51&&J.push(_.w(ttb,{title:function(b){return function(){return b.tooltip$jscomp$3}}(P),
ariaLabel:function(b){return function(){return b.ariaLabel$jscomp$21}}(P),
icon:function(b){return function(){return b.icon$jscomp$51}}(P),
command:function(b){return function(){return b.command$jscomp$590}}(P)}));
return J};
return _.w(_.V,{cond:Y,then:function(){return _.w("div",{class:"ytInlinePlayerControlsTopRightControls"},_.w(_.IJ,{each:c},function(J){return _.w("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.w("div",{class:"ytInlinePlayerControlsButtonIcon"},J))}))}})},"Zg"),jd9=_.m(function(W){var B=W.props;
var z=W.data;var G=W.options;W={};W=_.kG("ytInlinePlayerControlsBottomRightControls",(W.ytInlinePlayerControlsBottomRightControlsHidden=function(){var Y;return DXY(z(),G())&&((Y=G())==null?void 0:Y.insetProgressBar)&&(B().isHovering||B().isDragging)},W));
return _.w("div",{class:W},_.w(Shf,{data:z}),_.w(_.V,{cond:function(){var Y;return!((Y=G())==null?0:Y.hideTimeDisplay)},
then:function(){return _.w(bt0,{props:B,data:z})}}))},"$g"),Shf=_.m(function(W){var B=W.data;
return _.w(_.Sc,{data:function(){var z;return C2i((z=B())==null?void 0:z.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Pyj})},"ah"),bt0=_.m(function(W){var B=W.props;
var z=W.data;return _.w(_.V,{cond:function(){return B().isLive},
then:function(){return _.w(f2r,null)},
else:function(){return _.w(Otf,{props:B,data:z})}})},"bh"),Otf=_.m(function(W){var B=W.props;
var z=W.data;var G=_.r4(function(){var Y;return ob9((Y=z())==null?void 0:Y.thumbnailOverlays)},void 0,"tLs0gd");
return _.w("div",{class:_.kG("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.Xe.PLAYER_TIME_ELAPSED+" "+_.LqD(B().playedTime)}},_.w(_.vD,{data:function(){var Y=_.LqD(B().videoDuration-B().playedTime);
return Object.assign({},{type:17,text:Y},G())}}))},"ch"),f2r=_.m(function(){var W=_.kG("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.w("div",{class:W},_.w(_.vD,{data:{type:18,text:_.Xe.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"dh"),XMK=_.m(function(W){var B=W.props;
var z=W.data;var G=W.options;return _.w(_.nxf,{progressBarProps:B,config:function(){var Y,d=_.k((Y=z())==null?void 0:Y.multiMarkersPlayerBar,_.dK6),E;Y=((E=G())==null?0:E.insetProgressBar)?2:1;var v;E=(v=G())==null?void 0:v.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:Y,chapterData:d,isInlinePlayback:!0,doSeekOnClick:E,playheadDotBehavior:E?1:0}}})},"eh");_.Vm(_.m(function(W){var B=W.data;var z=W.appApi;var G=W.options;var Y=je9(B,xXj(z));W={};z={};return _.w("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.w("div",{class:_.kG("ytInlinePlayerControlsDarkenedOverlay",(W.ytInlinePlayerControlsDarkenedOverlayShow=function(){return Y().isHovering},W))}),_.w(rzb,null),_.w(hlK,{data:Y}),_.w(Htf,{data:B}),_.w(wM0,{playerControlsProps:Y,
isShortsPage:!1}),_.w("div",{class:_.kG((z.ytInlinePlayerControlsControlsHidden=function(){return Y().isDragging},z))},_.w(F1b,{props:Y,
data:B,options:G}),_.w(jd9,{props:Y,data:B,options:G})),_.w(_.V,{cond:function(){return DXY(B(),G())},
then:function(){return _.w(XMK,{props:Y,data:B,options:G})}}))},"Xg"),"yt-inline-player-controls",{props:{data:_.kz,
appApi:_.wS,options:_.kz}});var K1=function(){var W=_.S.apply(this,arguments)||this;W.opts=null;W.playerControlsData=null;W.playerControlsAppApi={openInMiniplayer:function(){W.openInMiniplayer()}};
W.playerControlsOptions={};W.noAnimation=!1;W.playbackIntentTriggered=!1;W.positionData=null;W.hidden=!0;W.active=!1;W.playing=!1;W.videoPreviewDataIndex=0;W.JSC$19164_playerPromise=null;W.player=null;W.enableAudioControls=!1;W.hasBeenUnmuted=!1;W.captionsHaveBeenTurnedOff=!1;W.JSC$19164_playerEvents=new Map;W.videoPreviewFetchRequest=null;W.scheduledPreviewEndJobId=null;W.JSC$19164_preventProgressSaveTimer=null;W.watchEndpointStartTimeUpdaterInterval=null;W.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};W.windowOnBlurFn=function(){W.deactivate()};
return W};
_.C(K1,_.S);_.p=K1.prototype;
_.p.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.p.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19164_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19164_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19164_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19164_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Co(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Co(this,this.onScroll))};
_.p.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Co(this,this.onScroll))};
_.p.onPageTypeChange=function(){this.deactivate()};
_.p.onWindowResized=function(){this.deactivate()};
_.p.onCaptionsChanged=function(W){W=!!W.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!W);this.setCaptionSize()};
_.p.setCaptionSize=function(){var W;if(this.active&&!this.captionsHaveBeenTurnedOff&&((W=this.player)==null?0:W.getCaptionWindowContainerId())){var B;(B=this.player)==null||B.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.p.currentPageAllowed=function(){return!this.isWatchPage};
_.p.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.r("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var W=this.positionData,B=W.initialTopPosition,z=W.initialHorizontalPosition;_.kw(this.hostElement,{"--ytd-video-preview-translate-left":W.finalHorizontalPosition-z+"px","--ytd-video-preview-translate-top":W.finalTopPosition-B+"px","--ytd-video-preview-original-top-position":B+
"px","--ytd-video-preview-original-horizontal-position":z+"px","--ytd-video-preview-initial-scale":"scale("+W.initialScale+")","--ytd-video-preview-width":W.videoPreviewWidth+"px","--ytd-video-preview-height":W.videoPreviewHeight+"px"});return!0};
_.p.isOutOfBounds=function(W){var B=W.initialHorizontalPosition+12;W=B+W.videoPreviewWidth>window.innerWidth;return B<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&B<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&B<72||W};
_.p.handleOpenVideoPreviewAction=function(W){var B=this,z;return _.T(function(G){if(!B.currentPageAllowed())return G.return(0);B.opts=W;return(z=B.alignVideoPreviewForAnimation(W.thumbnail))?G.return(B.activate()):G.return(0)})};
_.p.onMouseLeave=function(W){this.shouldDeactivateOnMouseLeave(W)&&this.deactivate()};
_.p.onScroll=function(){var W,B;((W=this.opts)==null?0:W.isAutoplay)&&((B=this.opts)==null?0:B.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.p.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.fg.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.p.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.p.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",K1.JSC$19163_DEFAULT_CLICK_LOCATION_BEHAVIOR,K1.JSC$19163_CLICK_LOCATION_ID_MAP)};
_.p.shouldDeactivateOnMouseLeave=function(W){W=W.relatedTarget;if(!W)return!0;var B;return(B=this.opts)!=null&&B.mediaRenderer?!_.sR(this.opts.mediaRenderer).contains(W):!0};
_.p.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.p.onPlaybackStart=function(){var W=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$19164_preventProgressSaveTimer=
_.P2(_.fg,function(){W.resetPreventProgressSaveTimer()},1E4);
var B;if((B=this.opts)==null?0:B.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.P2(_.fg,function(){W.hasMultipleVideoPreviews()?W.startPlaybackForNextVideo():W.deactivate()},this.opts.videoPreviewDurationMs);
var z;this.player.setGlobalCrop(((z=this.opts)==null?0:z.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.p.getRoundedCornersSize=function(){var W;if((W=this.opts)==null?0:W.roundedCornersSize){var B;return(B=this.opts)==null?void 0:B.roundedCornersSize}var z;if((z=this.opts)==null?0:z.enableRounding){var G;if(((G=this.opts)==null?void 0:G.thumbnailSize)==="small")return 1;var Y;if(((Y=this.opts)==null?void 0:Y.thumbnailSize)==="medium")return 2;var d;if(((d=this.opts)==null?void 0:d.thumbnailSize)==="large")return 3}return _.r("web_imp_inset_progress_bar")?3:0};
_.p.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.p.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.p.onMediaContainerClick=function(W){this.isShortcutClick(W)||(this.navigateToWatch(W),W.preventDefault(),W.stopPropagation())};
_.p.activate=function(){var W=this,B,z,G,Y,d,E,v,c,J;return _.T(function(g){switch(g.nextAddress){case 1:if(!W.currentPageAllowed())return g.return(0);z=(B=W.videoPreviewData)==null?void 0:B.inlinePlaybackEndpoint;G=_.RK.instance;if(!z||!G)return g.return(0);W.playbackIntentTriggered=!0;((Y=W.opts)==null?0:Y.mediaRenderer)&&((d=W.opts)==null||!d.isAutoplay)&&kUK(W.opts.mediaRenderer,function(){W.deactivate()});
_.BM(W,function(){W.revealPreviewUi()});
E={};_.r("enable_unknown_lact_fix_on_html5")&&(_.dO().resolve(_.jX),E.lact=_.Gi());W.videoPreviewFetchRequest=gbf(G,W.getInlinePlaybackRequestData(W.videoPreviewData),E);_.kA(g,2);return g.yield(W.videoPreviewFetchRequest,4);case 4:v=g.yieldResult;if(((c=v)==null?void 0:(J=c.playabilityStatus)==null?void 0:J.status)==="OK")return g.return(W.handlePlayerResponse(v));throw Error("Yj");case 2:_.h6(g),W.deactivate();case 3:return g.return(1)}})};
_.p.getInlinePlaybackRequestData=function(W){var B,z=_.r("web_imp_player_mute_params")?((B=this.opts)==null?void 0:B.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:W.inlinePlaybackEndpoint,startPlaybackInMutedState:z}};
_.p.handlePlayerResponse=function(W){var B=this,z,G,Y,d,E,v,c,J,g,t;return _.T(function(P){if(P.nextAddress==1){z=B.getInlinePlaybackVideoId();if(!(((G=W)==null?0:(Y=G.videoDetails)==null?0:Y.videoId)&&B.currentPageAllowed()&&B.playbackIntentTriggered&&B.opts&&z))return B.deactivate(),P.return(0);if(W.videoDetails.videoId!==z)return P.return(0);B.enableAudioControls=!!((d=W.playerConfig)==null?0:(E=d.inlinePlaybackConfig)==null?0:E.showAudioControls);W.trackingParams=B.getInlinePlaybackTrackingParams();
if(!B.inlinePlayer)return P.return(0);v={};if(J=_.k((c=B.videoPreviewData)==null?void 0:c.inlinePlaybackEndpoint,_.W0))v.watch_endpoint=J;if(B.videoPreviewData){var Z,l=(Z=_.k(B.videoPreviewData.inlinePlaybackEndpoint,_.W0))==null?void 0:Z.startTimeSeconds;l!==void 0&&(W.playerConfig||(W.playerConfig={}),W.playerConfig.playbackStartConfig||(W.playerConfig.playbackStartConfig={}),W.playerConfig.playbackStartConfig.startPosition||(W.playerConfig.playbackStartConfig.startPosition={}),W.playerConfig.playbackStartConfig.startSeconds=
l,W.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(l*1E3))}B.inlinePlayer.loadVideoWithPlayerResponse(W,v);if(B.JSC$19164_playerPromise)return P.jumpTo(2);B.JSC$19164_playerPromise=B.inlinePlayer.getPlayerPromise();return P.yield(B.JSC$19164_playerPromise,3)}P.nextAddress!=2&&(g=P.yieldResult,g.setInlinePreview(!0),g.setSizeStyle(!1,!0),B.ytPlayerListenerBehavior.listenToPlayerEvents(g,B.JSC$19164_playerEvents),B.player=g,_.v0(B.hostElement,"player-api-ready"));((t=B.opts)==
null?0:t.showPlayerControls)&&B.videoPreviewData&&B.player&&(B.playerControlsData={playerResponse:W,isInlinePlayback:!0,thumbnailOverlays:B.videoPreviewData.thumbnailOverlays,playerApi:B.player},B.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!B.unroundCornersForPlayback,additionalButton:B.getAdditionalButtonType(B.videoPreviewData.thumbnailOverlays)});return P.return(2)})};
_.p.revealPreviewUi=function(){var W=this;this.playbackIntentTriggered&&_.Wku(this,function(){W.hasThumbnailPositionChangedSinceTriggered()||(W.updateActiveState(!0),W.noAnimation=!1)})};
_.p.hasThumbnailPositionChangedSinceTriggered=function(){var W=this.positionData,B=this.getThumbnailPositionData();return(W==null?void 0:W.initialTopPosition)!==(B==null?void 0:B.initialTopPosition)||(W==null?void 0:W.initialHorizontalPosition)!==(B==null?void 0:B.initialHorizontalPosition)};
_.p.getThumbnailPositionData=function(){var W,B;if((B=this.opts)==null||!B.thumbnail)return null;B=this.opts.thumbnail;var z=((W=this.opts)==null?0:W.cropPlayerToFillThumbnailHorizontally)?!1:!0;var G=B.getBoundingClientRect();W=G.width;B=G.height;var Y=G.top+window.scrollY;G=G.left+window.scrollX;var d=z?Math.ceil(W):W;z=z?Math.ceil(B):B;var E=W/d;W={initialScale:E,initialTopPosition:Y-12*E,finalTopPosition:Y-12-(z-B)/2,initialHorizontalPosition:G-(12+(d-W)/2),finalHorizontalPosition:G-12-(d-W)/
2,videoPreviewWidth:d,videoPreviewHeight:z};return W};
_.p.updateActiveState=function(W){this.active=W;this.ytdReduxBehavior.dispatch(_.Tl({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:W}))};
_.p.stopPlayer=function(W){W=W.resetWatchEndpointStartTime===void 0?!1:W.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(W)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.fg.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.p.deactivate=function(W){W=W===void 0?{}:W;W=W.resetWatchEndpointStartTime===void 0?!1:W.resetWatchEndpointStartTime;Uq&&(Uq.disconnect(),Uq=null);this.stopPlayer({resetWatchEndpointStartTime:W});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.p.isValidThumbnailOverlayButton=function(W,B){W=W.thumbnailOverlayButtonRenderer;var z;return!!W&&!!W.tooltip&&!((z=W.icon)==null||!z.iconType)&&B.includes(W.icon.iconType)};
_.p.isValidThumbnailOverlayButtonViewModel=function(W,B){var z;W=_.k((z=W.thumbnailOverlayButtonViewModel)==null?void 0:z.overlayButton,_.wP);return!!W&&!!W.title&&!!W.iconName&&B.includes(W.iconName)};
_.p.getAdditionalButtonType=function(W){var B=this;if(_.r("web_imp_fastforward_button"))return{button:1};if(_.r("web_imp_miniplayer_button"))return{button:2};if(_.r("web_imp_playback_speed_button"))return{button:3};var z=["BOX_STACK_3"],G=(W||[]).filter(function(d){return B.isValidThumbnailOverlayButton(d,z)}).map(function(d){return d.thumbnailOverlayButtonRenderer});
if(G.length)return{button:4,thumbnailOverlayButtonRenderers:G};var Y=["BOX_STACK_3"];W=(W||[]).filter(function(d){return B.isValidThumbnailOverlayButtonViewModel(d,Y)}).map(function(d){return _.k(d.thumbnailOverlayButtonViewModel.overlayButton,_.wP)});
if(W.length)return{button:4,thumbnailOverlayButtonViewModels:W}};
_.p.allowCaptions=function(){var W;return!((W=this.opts)==null?0:W.forceCaptionsOff)};
_.p.allowUnmuting=function(){var W;return this.enableAudioControls&&!((W=this.opts)==null?0:W.forceMutedVolume)};
_.p.beginStartTimeUpdater=function(){var W=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.VW(function(){W.updateWatchEndpointStartTime()},1E3)};
_.p.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.p.resetPreventProgressSaveTimer=function(){this.JSC$19164_preventProgressSaveTimer!==null&&(_.fg.cancelJob(this.JSC$19164_preventProgressSaveTimer),this.JSC$19164_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.p.updateWatchEndpointStartTime=function(W){var B=this.videoPreviewData;if(this.player&&B!=null&&B.inlinePlaybackEndpoint&&!this.JSC$19164_preventProgressSaveTimer){W=W?0:Math.floor(this.player.getCurrentTime());var z=_.k(B.navigationEndpoint,_.W0);z&&(z.startTimeSeconds=W);if(B=_.k(B.inlinePlaybackEndpoint,_.W0))B.startTimeSeconds=W}};
_.p.isShortcutClick=function(W){return!!W&&(W.ctrlKey||W.shiftKey||W.metaKey)};
_.p.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.p.openInMiniplayer=function(){var W=this,B,z;return _.T(function(G){if(G.nextAddress==1){z=(B=W.videoPreviewData)==null?void 0:B.navigationEndpoint;if(!z)return G.return();_.qG().lockupActivation=!0;return G.yield(_.gW7(_.dO().resolve(_.Qb),z),2)}_.qG().userActivation=!0;_.HG(G)})};
_.p.navigateToWatch=function(W){var B,z=(B=this.videoPreviewData)==null?void 0:B.navigationEndpoint;if(z){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(z,W,!0);else{var G;_.r("web_thumbnail_to_watch_transition")&&((G=this.opts)==null?0:G.thumbnail)&&_.wFQ(_.dO().resolve(_.LD),this.opts.thumbnail);_.v0(this.hostElement,"yt-navigate",{endpoint:z})}this.deactivate()}};
_.p.getInlinePlaybackVideoId=function(){var W,B;return(B=_.k((W=this.videoPreviewData)==null?void 0:W.inlinePlaybackEndpoint,_.W0))==null?void 0:B.videoId};
_.p.getInlinePlaybackTrackingParams=function(){var W,B;return(W=this.videoPreviewData)==null?void 0:(B=W.inlinePlaybackEndpoint)==null?void 0:B.clickTrackingParams};
_.p.hasMultipleVideoPreviews=function(){var W;return!!(((W=this.opts)==null?0:W.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.p.startPlaybackForNextVideo=function(){var W;(W=this.opts)!=null&&W.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())};
_.G5.Object.defineProperties(K1.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.opts)==null?0:W.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.opts)==null||!W.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 W;if(Array.isArray((W=this.opts)==null?void 0:W.videoPreviewData)){var B;return(B=this.opts)==null?void 0:B.videoPreviewData[this.videoPreviewDataIndex]}var z;return(z=this.opts)==null?void 0:z.videoPreviewData}}});
K1.prototype.onIsAdsVideoChange=K1.prototype.onIsAdsVideoChange;K1.prototype.onInlinePreviewIsEnabledChange=K1.prototype.onInlinePreviewIsEnabledChange;K1.prototype.optsChanged=K1.prototype.optsChanged;K1.prototype.onMouseLeave=K1.prototype.onMouseLeave;K1.JSC$19163_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);K1.JSC$19163_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"}];
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],K1.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],K1.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",_.kI)],K1.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],K1.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],K1.prototype,"componentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],K1.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.Sv.YtSparklesClickLocationBehavior),_.y("design:type",Object)],K1.prototype,"ytSparklesClickLocationBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],K1.prototype,"opts",void 0);
_.Q([_.F(),_.y("design:type",Object)],K1.prototype,"playerControlsData",void 0);_.Q([_.F(),_.y("design:type",Object)],K1.prototype,"playerControlsAppApi",void 0);_.Q([_.F(),_.y("design:type",Object)],K1.prototype,"playerControlsOptions",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],K1.prototype,"noAnimation",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],K1.prototype,"hidden",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],K1.prototype,"active",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],K1.prototype,"playing",void 0);_.Q([_.F({selector:_.TWt}),_.y("design:type",Boolean)],K1.prototype,"inlinePreviewIsEnabled",void 0);_.Q([_.F(),_.y("design:type",String)],K1.prototype,"pagePath",void 0);_.Q([_.F({selector:_.A5x}),_.y("design:type",Boolean)],K1.prototype,"isWatchPage",void 0);
_.Q([_.H("videoPreviewData"),_.y("design:type",Object),_.y("design:paramtypes",[])],K1.prototype,"thumbnailData",null);_.Q([_.H("opts","active"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],K1.prototype,"hidePlayerControls",null);_.Q([_.H("opts"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],K1.prototype,"isAdsVideo",null);
_.Q([_.H("opts"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],K1.prototype,"roundedCornersSmall",null);_.Q([_.H("opts"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],K1.prototype,"roundedCornersMedium",null);_.Q([_.H("opts"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],K1.prototype,"roundedCornersLarge",null);
_.Q([_.H("opts"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],K1.prototype,"unroundCornersForPlayback",null);_.Q([_.H("opts","videoPreviewDataIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],K1.prototype,"videoPreviewData",null);_.Q([_.F(),_.y("design:type",Object)],K1.prototype,"videoPreviewDataIndex",void 0);_.Q([_.Hf("#inline-player"),_.y("design:type",Object)],K1.prototype,"inlinePlayer",void 0);
_.Q([_.IN("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[MouseEvent]),_.y("design:returntype")],K1.prototype,"onMouseLeave",null);_.Q([_.jJ("opts"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K1.prototype,"optsChanged",null);_.Q([_.jJ("inlinePreviewIsEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K1.prototype,"onInlinePreviewIsEnabledChange",null);
_.Q([_.oN("isAdsVideo"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K1.prototype,"onIsAdsVideoChange",null);_.Q([_.u({is:"ytd-video-preview",disableElementRegistration:!0})],K1);
_.D(K1,"ytd-video-preview",function(){if(cz9!==void 0)return cz9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return cz9=W},{mode:2});
}catch(e){_._DumpException(e)}
try{
var buN,jDh,fvZ;buN=function(W){return _.r("kevlar_watch_cinematics_invisible")||W.fullscreen&&_.r("kevlar_watch_cinematics_invisible_in_fullscreen")||W.theater&&!W.fullscreen&&_.r("kevlar_watch_cinematics_invisible_in_theater")};
jDh=function(){var W=document.createElement("canvas"),B=W.getContext("2d");if(!B)throw Error("Do");_.U8(W,{position:"absolute",width:"100%",height:"100%"});return{element:W,context:B}};
fvZ=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.r("kevlar_watch_cinematics_css_blur")};
_.Ouo=function(W,B,z){return Math.abs(W-B)<=(z||1E-6)};
_.XyN=function(W,B){return W==B?!0:W&&B?W.width==B.width&&W.height==B.height:!1};_.Kr_=new _.J1("notificationActionRenderer");var u2b=function(W){var B=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.sl;this.element.addEventListener("load",function(){B.loaded=!0;B.resolver.resolve(B.element)});
this.element.addEventListener("error",function(){B.failed=!0});
this.element.src=W};var e8K=function(W,B){this.image=W;this.frame=B};
e8K.prototype.drawToCanvas=function(W,B){var z=this.frame.width/this.frame.columns,G=this.frame.height/this.frame.rows,Y=B.offsetX,d=B.offsetY;buN(B)?(W.fillStyle=B.fullscreen?"#000":"#0f0f0f",W.fillRect(Y,d,(B==null?void 0:B.width)||z,(B==null?void 0:B.height)||G)):W.drawImage(this.image,this.frame.column*z,this.frame.row*G,z,G,Y,d,(B==null?void 0:B.width)||z,(B==null?void 0:B.height)||G)};
var mRo=function(W){this.color=W};
mRo.prototype.drawToCanvas=function(W,B){var z=B.offsetX,G=B.offsetY,Y=B.width,d=B.height;W.fillStyle=buN(B)?B.fullscreen?"#000":"#0f0f0f":this.color;W.fillRect(z,G,Y,d)};var Zw=function(W,B){_.Dg.call(this);this.playerApi=B;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.hv(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();xRF(this,W);DRb(this);this.update()};
_.C(Zw,_.Dg);Zw.prototype.addEventListeners=function(){var W=this,B=function(){W.update()},z=function(Y){W.paused||(Y.type==="newdata"&&(W.mosaics.clear(),QDF(W),rC(W)),DRb(W),W.update())},G=function(){W.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",B);this.playerApi.addEventListener("onVideoDataChange",z);this.playerApi.addEventListener("onStateChange",G);this.addOnDisposeCallback(function(){W.playerApi.removeEventListener("onVideoProgress",B);W.playerApi.removeEventListener("onVideoDataChange",z);W.playerApi.removeEventListener("onStateChange",G)})};
var xRF=function(W,B){W.cinematicContainerRenderer!==B&&(W.cinematicContainerRenderer=B,QDF(W),rC(W),W.colorStoreUpdateJobId=_.fg.addLowPriorityJob(function(){var z;if((z=W.cinematicContainerRenderer.colorStore)!=null&&z.sampledColors){z=Infinity;for(var G=_.A(W.cinematicContainerRenderer.colorStore.sampledColors),Y=G.next();!Y.done;Y=G.next()){Y=Y.value;var d=Number(Y.key);d!==0&&d<z&&(z=d);d=_.aE(Y.value);W.colorStore.set(Y.key,d)}W.colorStoreTimeInterval=z}}))},QDF=function(W){W.colorStoreUpdateJobId&&
(_.fg.cancelJob(W.colorStoreUpdateJobId),W.colorStoreUpdateJobId=void 0);
W.colorStore.clear();W.currentStoryboardColor=void 0},y0M=function(W,B){var z;
return(z=W.getStoryboardFrame(B))==null?void 0:z.url};
Zw.prototype.onPlayerStateChange=function(){this.update()};
Zw.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var DRb=function(W){var B=W.getStoryboardFrame(0);B&&(B=new _.hv(B.width/B.columns,B.height/B.rows),_.XyN(W.currentStoryboardSize,B)||(W.currentStoryboardSize=B,W.publish("STORYBOARD_SIZE_CHANGED",W.currentStoryboardSize)))},qXF=function(W,B){W.currentStoryboardIndex=B;
W.pendingStoryboardIndex=NaN;B=W.getStoryboardFrame(W.currentStoryboardIndex);W.currentStoryboard=new e8K(W.mosaics.get(B.url).element,B);W.publish("STORYBOARD_CHANGED",W.currentStoryboard);W.lastUpdateTime=(0,_.Yb)()};
Zw.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var rC=function(W){W.currentStoryboardIndex=NaN;W.pendingStoryboardIndex=NaN;W.currentStoryboard&&(W.currentStoryboard=void 0,W.publish("STORYBOARD_CHANGED",void 0));W.lastUpdateTime=NaN};
Zw.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)rC(this);else{var W=this.playerApi.getPlayerState(1);if(W===-1||W===5||W===0)rC(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Yb)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(W=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){W=""+Math.round(W*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var B=this.colorStore.get(W);B?B!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=B,this.currentStoryboard=new mRo(B),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Yb)()):(_.Oc(new _.oX("Could not find color for timestamp: "+W,this.cinematicContainerRenderer)),rC(this))}else rC(this);else nth(this,W)}};
var nth=function(W,B){var z=W.getStoryboardFrameIndex(B);if(z!==W.currentStoryboardIndex&&z!==W.pendingStoryboardIndex){B=y0M(W,z);var G=W.mosaics.get(B);G?G.loaded&&qXF(W,z):(W.pendingStoryboardIndex=z,z=new u2b(B),W.mosaics.set(B,z),z.resolver.promise.then(function(){if(!W.isDisposed()&&!W.paused&&!isNaN(W.pendingStoryboardIndex)){var Y=y0M(W,W.pendingStoryboardIndex);if(Y){var d;(d=W.mosaics.get(Y))!=null&&d.loaded&&qXF(W,W.pendingStoryboardIndex)}else rC(W)}}))}};
Zw.prototype.getStoryboardFrameIndex=function(W){var B=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(W,B)};
Zw.prototype.getStoryboardFrame=function(W){var B=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,z,G;return((G=(z=this.playerApi).getStoryboardFrame)==null?void 0:G.call(z,W,B))||null};
Zw.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var lv=function(W,B,z,G){G=G===void 0?!1:G;_.bA.call(this);this.cinematicContainerRenderer=B;this.playerApi=z;this.theater=this.fullscreen=!1;var Y;this.ambientLightThemeEnabled=!G&&!!(B==null?0:(Y=B.config)==null?0:Y.enableInLightTheme);this.ambientFullscreenEnabled=G&&_.r("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=G&&_.r("web_cinematic_theater_mode");this.container=document.createElement("div");W.appendChild(this.container);var d;if(_.r("web_cinematic_theater_mode")||_.r("web_cinematic_fullscreen")||
(B==null?0:(d=B.config)==null?0:d.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);NkF(this);W=this.ambientV2Container||this.container;this.backCanvas=jDh();this.frontCanvas=jDh();W.appendChild(this.backCanvas.element);W.appendChild(this.frontCanvas.element);this.storyboardManager=new Zw(B,this.playerApi);_.rH(this,this.storyboardManager);this.addEventListeners();$RZ(this)?LrR(this,100+kS(this)*3*2,100+kS(this)*3*2):URb(this);
MQK(this,this.storyboardManager.currentStoryboard)};
_.C(lv,_.bA);var NkF=function(W){W.ambientV2Container?avb(W):(_.U8(W.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+R83(W)+", "+W4N(W)+")"}),fvZ()&&_.U8(W.container,"filter","blur("+_.iO("cinematic_watch_css_filter_blur_strength",40)+"px)"))},avb=function(W){if(W.ambientV2Container){var B=W.playerApi.getVideoAspectRatio();
_.U8(W.container,{"aspect-ratio":""+B,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.U8(W.ambientV2Container,{"aspect-ratio":""+B,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+R83(W)+", "+W4N(W)+")"});fvZ()&&_.U8(W.ambientV2Container,"filter","blur("+_.iO("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
lv.prototype.setFullscreen=function(W,B){this.fullscreen=W;this.theater=!!B;NkF(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),W=this.storyboardManager.currentStoryboard,BUo(this),W&&zDb(this,W)};
lv.prototype.addEventListeners=function(){var W=this,B=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(Y){MQK(W,Y)}),z=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){URb(W)});
this.addOnDisposeCallback(function(){W.storyboardManager.unsubscribeByKey(B);W.storyboardManager.unsubscribeByKey(z)});
if(this.ambientV2Container){var G=function(){avb(W)};
this.playerApi.addEventListener("onVideoDataChange",G);this.addOnDisposeCallback(function(){W.playerApi.removeEventListener("onVideoDataChange",G)})}};
var URb=function(W){if(!$RZ(W)){var B=W.storyboardManager.currentStoryboardSize;isNaN(B.width)||isNaN(B.height)||LrR(W,Number(B.width)+kS(W)*3*2,Number(B.height)+kS(W)*3*2)}},LrR=function(W,B,z){W.backCanvas.element.width=B;
W.backCanvas.element.height=z;W.frontCanvas.element.width=B;W.frontCanvas.element.height=z},$RZ=function(W){return W.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},MQK=function(W,B,z){z=z===void 0?!1:z;
var G=W.frontCanvas.element.getAnimations()[0];G?(G.pause(),W.backCanvas.context.globalAlpha=Number(getComputedStyle(W.frontCanvas.element).opacity),W.frontCanvas.element.style.opacity="0",G.finish()):W.backCanvas.context.globalAlpha=1;W.backCanvas.context.drawImage(W.frontCanvas.element,0,0,W.backCanvas.element.width,W.backCanvas.element.height);BUo(W);B&&zDb(W,B);B=B?W.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.iO("cinematic_watch_fade_out_duration",500);G=_.iO("cinematic_watch_transition_frame_rate")/
1E3;var Y={};G&&(Y={easing:"steps("+Math.round(B*G)+")"});(z===void 0?0:z)||W.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:B,iterations:1},Y));W.frontCanvas.element.style.opacity="1"},BUo=function(W){var B=W.ambientLightThemeEnabled||W.ambientTheaterModeEnabled,z=W.ambientLightThemeEnabled||W.ambientFullscreenEnabled;
W.frontCanvas.context.fillStyle=W.theater&&B||W.fullscreen&&z?"#000":"#0f0f0f";fvZ()||(W.frontCanvas.context.filter="blur(0)");W.frontCanvas.context.fillRect(0,0,W.frontCanvas.element.width,W.frontCanvas.element.height)},zDb=function(W,B){fvZ()||(W.frontCanvas.context.filter="blur("+kS(W)+"px)");
W.frontCanvas.context.globalAlpha=W.fullscreen&&W.ambientFullscreenEnabled||W.theater&&W.ambientTheaterModeEnabled?_.iO("cinematic_watch_effect_letterbox_opacity",.4):_.iO("cinematic_watch_effect_opacity",.4);var z={offsetX:kS(W)*3,offsetY:kS(W)*3,theater:W.theater,fullscreen:W.fullscreen};$RZ(W)&&(z.width=100,z.height=100);B.drawToCanvas(W.frontCanvas.context,z);W.frontCanvas.context.globalAlpha=1},kS=function(W){var B;
return(B=W.cinematicContainerRenderer.config.blurStrength)!=null?B:5},R83=function(W){var B,z;
if((W.fullscreen||W.theater)&&((B=W.cinematicContainerRenderer.config)==null?0:(z=B.watchFullscreenConfig)==null?0:z.colorSourceWidthMultiplier))return W.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var G;return(G=W.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?G:W.cinematicContainerRenderer.config.colorSourceSizeMultiplier},W4N=function(W){var B,z;
if((W.fullscreen||W.theater)&&((B=W.cinematicContainerRenderer.config)==null?0:(z=B.watchFullscreenConfig)==null?0:z.colorSourceHeightMultiplier))return W.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var G;return(G=W.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?G:W.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
lv.prototype.disposeInternal=function(){_.bA.prototype.disposeInternal.call(this);this.container.remove()};
lv.prototype.clear=function(){MQK(this,void 0,!0)};
lv.prototype.pause=function(){this.storyboardManager.pause()};var G6h;G6h=_.ff(function(){var W,B,z=!((B=(W=document.createElement("canvas")).getContext)==null||!B.call(W,"2d")),G;W=!((G=CSS)==null||!G.supports("filter: blur(0)"));G=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var Y;return z&&W&&G&&!((Y=CSS)==null||!Y.supports("aspect-ratio: 1 / 1"))});
_.CT=function(W,B){_.Dg.call(this);this.container=W;this.playerApi=B;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=YFN(this);this.update()};
_.C(_.CT,_.Dg);_.dTQ=function(W){var B=document.documentElement.hasAttribute("dark");W.isDarkModeEnabled=B;W.update()};
_.pQN=function(W,B){W.settingEnabled=B;W.update()};
_.CT.prototype.setFullscreen=function(W,B){this.fullscreen=W;this.theater=!!B;this.update()};
_.AMQ=function(W,B){W.cinematicContainerRenderer=B;W.cinematicContainerRenderer&&(W.cinematicsVe=_.PA(W.isShorts()?227858:159022),_.ui(_.SK(),W.cinematicsVe),W.loggingClientData={watchCinematicContainerData:{presentationStyle:W.cinematicContainerRenderer.presentationStyle}});W.update()};
_.CT.prototype.isShorts=function(){var W,B;return((W=this.cinematicContainerRenderer)==null?void 0:(B=W.config)==null?void 0:B.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.CT.prototype.isAllowed=function(){var W;if(W=G6h()){var B,z,G;W=((z=this.cinematicContainerRenderer)==null?void 0:z.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((G=this.cinematicContainerRenderer)==null||!G.colorStore)||((B=this.cinematicContainerRenderer)==null?void 0:B.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(W)if(_.r("web_cinematics_pausing")){var Y,d;W=this.isDarkModeEnabled||!!((Y=this.cinematicContainerRenderer)==
null?0:(d=Y.config)==null?0:d.enableInLightTheme)}else{var E,v;Y=!!((E=this.cinematicContainerRenderer)==null?0:(v=E.config)==null?0:v.enableInLightTheme)&&(_.eD("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);W=this.isDarkModeEnabled||Y}if(E=W){var c,J;E=!((J=(c=this.prefersReducedMotionQuery)==null?void 0:c.matches)!=null&&J)}return E};
_.i73=function(W){(W=W.currentCinematicEffect)!=null&&(W=W.storyboardManager,W.paused=!1,DRb(W),W.update())};
_.CT.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var YFN=function(W){if(!_.r("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var B=window.matchMedia("(prefers-reduced-motion: reduce)"),z=function(){W.update()};
B.addListener(z);W.addOnDisposeCallback(function(){B.removeListener(z)});
return B}};
_.CT.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var W=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new lv(this.container,W,this.playerApi,this.isDarkModeEnabled),_.rH(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var B=this.currentCinematicEffect;B.cinematicContainerRenderer!==
W&&(B.cinematicContainerRenderer=W,xRF(B.storyboardManager,W),NkF(B));W=_.IP();_.oP(0,194,!0);W.save();W=_.m1();this.cinematicsVe&&W&&_.Mj(W,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(W=_.m1(),this.cinematicsVe&&W&&_.aP(W,[this.cinematicsVe],!1,this.loggingClientData),_.AI(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.G5.Object.defineProperties(_.CT.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var YXm;var dRN;_.D8({_template:function(){if(dRN!==void 0)return dRN;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=
W.content,z=B.insertBefore;YXm===void 0&&(YXm=document.createElement("template"));var G=YXm;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return dRN=W},
is:"tp-yt-iron-pages",behaviors:[_.Mp,_.Gs],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var AFn;_.i99=function(){if(_.r("kevlar_home_skeleton")&&!AFn){var W=document.querySelector("#home-page-skeleton");W&&(_.mj("hgcr"),_.o0(W),AFn=!0)}};
AFn=!1;_.BK=new _.J1("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var qCi,Nzi,$4f,Lo0,U49,Mn6,al9,Re6,BCi,zTr,dyf,A3r,ESr,pYn,GeY,YHf,c36;_.ypq=function(W,B,z){B=B===void 0?5:B;if(B!==0){var G=typeof W==="function"?W():document.querySelector(W);G?(z==null?0:z.enableSmartFocus)?_.O4D(G):G.focus():setTimeout(function(){_.ypq(W,B-1,z)},500)}};
qCi=function(W){return String.raw.apply(String,[{raw:W}].concat(_.u7(_.nm.apply(1,arguments).map(function(B){return B instanceof Array?B.join(""):B}))))};
Nzi=function(W){var B=_.nm.apply(1,arguments),z=B.length;if(!Array.isArray(W)||!Array.isArray(W.raw)||W.length!==W.raw.length||!_.XyR&&W===W.raw||!(_.XyR&&!_.Kr6||_.OK(W))||z+1!==W.length)throw new TypeError("$");return new nd1(Object.freeze({strings:Object.freeze(W),args:Object.freeze(B)}))};
$4f=function(W){return _.fbX(_.jF8(W&16777215))<.5};
Lo0=function(W,B,z){var G=z.minimumRowsOfVideosBetweenSections===void 0?1:z.minimumRowsOfVideosBetweenSections;return W<(z.minimumRowsOfVideosAtStart===void 0?2:z.minimumRowsOfVideosAtStart)||B!==null&&W-B<=G?!1:!0};
U49=function(W,B){var z=0,G=0;W=_.A(W);for(var Y=W.next();!Y.done;Y=W.next()){var d=Y.value;if(d.richItemRenderer)d.richItemRenderer.rowIndex=G,d.richItemRenderer.colIndex=z++,z===B&&(z=0,G++);else if(d.richGroupRenderer&&d.richGroupRenderer.numColumns!==void 0)d.richGroupRenderer.rowIndex=G,d.richGroupRenderer.colIndex=z,z+=d.richGroupRenderer.numColumns,z===B&&(z=0,G++);else if(d.richSectionRenderer){var E=Y=void 0;if(d=_.k((Y=d)==null?void 0:(E=Y.richSectionRenderer)==null?void 0:E.content,_.LLM))d.rowIndex=
G++}}};
Mn6=function(W,B){var z=B.contentElement;B=B.rendererToTagNameMap;if(z&&B&&B.size!==0){for(var G=new Map,Y=_.A(z.children),d=Y.next();!d.done;d=Y.next()){d=d.value;var E=d.tagName.toLowerCase(),v=G.get(E);v||(v=[],G.set(E,v));v.push(d)}if(G.size!==0)for(Y=Math.min(W.length,z.children.length),d=new Map,E=0;E<Y;E++){v=Object.keys(W[E])[0];v=B.get(v);if(!v)break;var c=d.get(v);c===void 0&&(c=0,d.set(v,c));var J=G.get(v);if(!J||c>=J.length)break;d.set(v,c+1);v=J[c];c=z.children[E];c!==v&&(_.kv8=!0,_.luv.set(v,
!0),z.insertBefore(v,c),_.luv.delete(v),_.kv8=!1)}}};
al9=function(W,B,z,G,Y,d,E){G=G===void 0?{}:G;if(!W||!W.length)return{orderedContent:[]};W=W.slice();var v=[],c=[];Y=null;for(var J=0,g=function(a){c.sort(function(L,By){return By.skippedOnRow-L.skippedOnRow});
for(var q,n=(q=c.shift())==null?void 0:q.content;n;)!n.richSectionRenderer&&a||v.push(n),q=void 0,n=(q=c.shift())==null?void 0:q.content},t=void 0,P=void 0,Z=new Set;W.length>0||c.length>0;){for(var l=[],b=B;b>0;){var O=void 0,K=void 0,e=(K=c[0]&&c[0].skippedOnRow<J?(O=c.shift())==null?void 0:O.content:void 0)!=null?K:W.shift();
if(!e)break;if(e.richItemRenderer)O=e.richItemRenderer.targetId,K=void 0,O&&((K=E)==null?0:K.has(O))&&(K=E.get(O),!t||K&&K.timestamp>t.timestamp)&&(t=K,P&&Z.add(P),P=O),l.push(e),b--;else if(e.richGroupRenderer&&e.richGroupRenderer.numColumns!==void 0)e.richGroupRenderer.numColumns<=b?(l.push(e),b-=e.richGroupRenderer.numColumns):b===B&&e.richGroupRenderer.numColumns>B?(l.push({richGroupRenderer:Object.assign({},e.richGroupRenderer,{numColumns:B})}),b=0):c.push({content:e,skippedOnRow:J});else if(e.richSectionRenderer)if(Lo0(J,
Y,G)&&b===B){v.push(e);Y=J;J++;continue}else c.push({content:e,skippedOnRow:J});else if(e.continuationItemRenderer){g(!0);v.push(e);b=0;break}if(b===0)v.push.apply(v,_.u7(l));else if(!z&&W.length===0){g(!1);v.push.apply(v,_.u7(l));b=0;break}}J++;t&&(v.push(t.content),J++);P=t=void 0}U49(v,B);d&&Mn6(v,d);return{orderedContent:v,pinnedContentNotShownTargetIds:Z}};
Re6=function(){return _.nm.apply(0,arguments).flat().filter(function(W){return W}).join(";")};
BCi=function(){return Nzi(WVi,Re6.apply(null,_.u7(_.nm.apply(0,arguments))))};
zTr=function(W){switch(W){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
dyf=function(W,B){if(B){var z=_.Y_().getState().entities.flowStateEntity,G=GeY(W),Y=[B];G&&G!==B&&Y.push(G);var d=!0,E;if(z&&W.flowStateEntityKey&&((E=z[W.flowStateEntityKey])==null?void 0:E.primaryButtonDisabled)!==void 0){var v;d=!((v=z[W.flowStateEntityKey])==null||!v.primaryButtonDisabled)}YHf(W,G!=null?G:B,Y,d)}};
A3r=function(W){return _.NG(_.Y_(),function(B){return B.entities.flowStateEntity},function(B,z){if(W.flowStateEntityKey){var G,Y=B==null?void 0:(G=B[W.flowStateEntityKey])==null?void 0:G.currentStepId,d;
z=z==null?void 0:(d=z[W.flowStateEntityKey])==null?void 0:d.currentStepId;d=_.Y_().getState().talkToRecs;if(Y&&Y!==z){var E;B=(B==null?void 0:(E=B[W.flowStateEntityKey])==null?void 0:E.stepIdStack)||Object.keys(d.stepStates);E=!pYn(d==null?void 0:d.stepStates[Y]);YHf(W,Y,B,E)}}})};
ESr=function(W){return _.NG(_.Y_(),iT9,function(B){var z=GeY(W);if(z){var G=Object.keys(B.stepStates);B=!pYn(B==null?void 0:B.stepStates[z]);YHf(W,z,G,B)}})};
pYn=function(W){var B=Object.keys((W==null?void 0:W.selectionStates)||{}).reduce(function(d,E){return d||(W==null?void 0:W.selectionStates[E].isSelected)},!1),z,G,Y=!!(W==null?0:(z=W.userQuery)==null?0:(G=z.userQuery)==null?0:G.trim());
return B||Y};
GeY=function(W){if(W.flowStateEntityKey){var B,z,G=(B=_.Y_().getState().entities.flowStateEntity)==null?void 0:(z=B[W.flowStateEntityKey])==null?void 0:z.currentStepId;if(G)return G}};
YHf=function(W,B,z,G){_.Y_().dispatch(_.bj("flowStateEntity",W.flowStateEntityKey,{currentStepId:B,stepIdStack:z,key:W.flowStateEntityKey,primaryButtonDisabled:G}))};
_.TCi=function(W,B){return _.P3(W.entities,"youchatPendingResponseEntity",B)};
_.vSO=function(W){return function(B){_.AV(_.bj("youchatPendingResponseEntity",W,{entityKey:W,isPendingResponse:B}))}};
c36=function(W){W==null||W.addEventListener("DOMLoaded",function(){W.goToAndPlay(W.totalFrames-48,!0)})};
_.dY=function(W){this.__isSoyCss=!0;this.css=qCi.apply(null,[W.strings].concat(_.u7(W.args)))};
_.dY.prototype.toString=function(){return this.css};
var nd1=function(){_.dY.apply(this,arguments)};
_.C(nd1,_.dY);var WVi=_.ak(["",""]);var wYn;var VOi;_.D8({_template:function(){if(VOi!==void 0)return VOi;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var B=W.content,z=B.insertBefore;wYn===void 0&&(wYn=document.createElement("template"));var G=wYn;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return VOi=W},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var J3K=new _.J1("flowRootRenderer");var gSb=new _.J1("chipsShelfViewModel");var tOn=new _.J1("responsiveContainerConfiguration");_.sii=new _.J1("engagementPanelSectionListRenderer");var Pv1=function(){this.horizontal=!1},ZTf=function(W,B){W.horizontal=B};
Pv1.prototype.position=function(W,B,z,G){G=G===void 0?1:G;W=this.delta(W)*G+B;G=Math.max(B,z);return W>=Math.min(B,z)&&W<=G?W:z};
Pv1.prototype.axis=function(W){W=this.direction(W);return W==="up"||W==="down"?"Y":"X"};var OO=function(W,B,z){B=B===void 0?_.Rq():B;this.target=W;this.manager=B;this.touchAction=z;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
OO.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(_.u7(this.events)));for(var W=_.A(this.events),B=W.next();!B.done;B=W.next())this.listen(B.value)}};
OO.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.u7(this.events)));for(var W=_.A(this.events),B=W.next();!B.done;B=W.next())this.unlisten(B.value)}};
OO.prototype.listen=function(W){this.eventMap[W]&&this.target.addEventListener(W,this.eventMap[W])};
OO.prototype.unlisten=function(W){this.eventMap[W]&&this.target.removeEventListener(W,this.eventMap[W])};var Xz=function(){Pv1.apply(this,arguments)};
_.C(Xz,Pv1);Xz.prototype.direction=function(W){var B=W.detail;W=B.deltaY;B=B.deltaX;return W&&!this.horizontal?W>0?"down":"up":B&&this.horizontal?B>0?"right":"left":"none"};
Xz.prototype.distance=function(W){return Math.abs(this.delta(W))};
Xz.prototype.delta=function(W){var B=this.direction(W),z=W.detail;W=z.deltaX;z=z.deltaY;return B==="up"||B==="down"?z||0:W||0};
Xz.prototype.velocity=function(W){var B=this.direction(W),z=W.detail;W=z.velocityX;z=z.velocityY;return Math.abs(B==="up"||B==="down"?z||0:W||0)};_.KH=function(W,B,z,G,Y,d){Y=Y===void 0?new Xz:Y;d=d===void 0?_.Rq():d;OO.call(this,B,d,G);var E=this;this.element=W;this.target=B;this.config=z;this.input=Y;this.manager=d;this.events=["panstart","panmove","panend"];this.onPanStart=function(){E.config.draggingClass&&E.element.classList.add(E.config.draggingClass);E.config.startAction&&E.config.startAction()};
this.onPanMove=function(v){var c=r3n(E,v);if(c){E.move(v,c);c.fade&&E.fade(v,c);var J=E.input.direction(v);c.moveAction&&c.moveAction(ke9(E,v,c),J)}};
this.onPanEnd=function(v){var c,J,g,t,P,Z;return _.T(function(l){if(l.nextAddress==1){E.animationRequestId&&cancelAnimationFrame(E.animationRequestId);E.animationRequestId=void 0;c=r3n(E,v);if(!c)return l.return();J=c;g=J.triggerAction;t=J.fade;P=J.disableFinish;Z=J.translateBack;var b=E.input.velocity(v),O=E.input.distance(v),K=E.threshold(c);return b>.3&&O>10||O>K?P?l.jumpTo(6):t?l.yield(lwn(E,v),6):l.yield(Cv9(E,v,c),6):Z?l.yield(E.translateBack(v),3):l.jumpTo(3)}l.nextAddress!=3&&g&&g();E.config.draggingClass&&
E.element.classList.remove(E.config.draggingClass);E.reset();_.HG(l)})};
W=Object.keys(z.triggers);this.directions=new Set(W);ZTf(this.input,this.directions.has("right")||this.directions.has("left"))};
_.C(_.KH,OO);_.KH.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var r3n=function(W,B){B=W.input.direction(B);return W.config.triggers[B]};
_.KH.prototype.move=function(W,B){var z=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var G=z.input.axis(W),Y=z.input.position(W,z.config.startPosition,B.endPosition,B.moveRatio||1);z.element.style.transform="translate"+G+"("+Y+"px)";z.animationRequestId=void 0}))};
var ke9=function(W,B,z){var G=z.moveRatio||1;z=Math.abs(W.config.startPosition-z.endPosition);return Math.min(W.input.distance(B)*G,z)/z};
_.KH.prototype.fade=function(W,B){var z=B.endOpacity;W=ke9(this,W,B);W>0&&(this.element.style.opacity=""+(((z||0)-1)*W+1))};
_.KH.prototype.threshold=function(W){return W.threshold?W.threshold:Math.abs(W.endPosition-this.config.startPosition)/3};
var Cv9=function(W,B,z){var G,Y,d,E,v,c,J;return _.T(function(g){if(g.nextAddress==1)return G=W.input.delta(B)+W.config.startPosition,Y=W.input.axis(B),d=z,E=d.endPosition,v=d.transitionEndPosition,J=(c=v)!=null?c:E,g.yield(W.element.animate([{transform:"translate"+Y+"("+G+"px)"},{transform:"translate"+Y+"("+J+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.element.style.transform="translate"+Y+"("+J+"px)";_.HG(g)})};
_.KH.prototype.translateBack=function(W){var B=this,z,G;return _.T(function(Y){if(Y.nextAddress==1){if(!B.element.style.transform)return Y.return();z=B.input.axis(W);G=B.config.startPosition;return Y.yield(B.element.animate([{transform:B.element.style.transform},{transform:"translate"+z+"("+G+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}B.element.style.transform="translate"+z+"("+G+"px)";_.HG(Y)})};
var lwn=function(W,B){var z,G,Y,d;return _.T(function(E){if(E.nextAddress==1)return z=W.input.delta(B)+W.config.startPosition,G=W.input.axis(B),Y=z+70,d=W.element.style.opacity===""?1:W.element.style.opacity,E.yield(W.element.animate([{transform:"translate"+G+"("+z+"px)",opacity:d},{transform:"translate"+G+"("+Y+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.element.style.transform="translate"+G+"("+Y+"px)";W.element.style.opacity="0";_.HG(E)})};var uI=function(){var W=_.SJ.apply(this,arguments)||this;W._noAccessors=!0;W.scrollRate=3;W.autoScrollAnimationStart=0;W.autoScrollPaused=!1;W.autoScrollRafId=0;return W};
_.C(uI,_.SJ);_.p=uI.prototype;_.p.created=function(){var W=this;this.boundAutoScrollHandler=function(B){W.autoScroll(B)}};
_.p.detached=function(){this.hostElement.removeEventListener("mouseout",_.Co(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Co(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Co(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.p.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Co(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Co(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Co(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Co(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Co(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Co(this,this.endAutoScroll)),this.endAutoScroll())};
_.p.autoScroll=function(W){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=W);var B;if(B=!this.autoScrollPaused&&this.scrollTarget)B=this.scrollTarget,B=B.scrollHeight-B.scrollTop!==B.clientHeight;B&&(B=1E3/this.scrollRate,W-=this.autoScrollAnimationStart,W>B&&(this.scrollTarget.scrollTop+=Math.ceil(W/B),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.p.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.p.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
uI.prototype.autoScrollEnabledChanged=uI.prototype.autoScrollEnabledChanged;_.Q([_.F(),_.y("design:type",Object)],uI.prototype,"scrollRate",void 0);_.Q([_.F(),_.y("design:type",Object)],uI.prototype,"scrollTarget",void 0);_.Q([_.F(),_.y("design:type",Boolean)],uI.prototype,"autoScrollEnabled",void 0);_.Q([_.oN("autoScrollEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uI.prototype,"autoScrollEnabledChanged",null);_.Q([_.bP()],uI);_.Iw9=[uI.prototype];var oS6;var eA=function(){var W=_.S.apply(this,arguments)||this;W.buttonUpdate=_.r("web_button_rework");W.dismissButtonOverrides=_.r("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;W.forceDarkTheme=!1;W.forceLightTheme=!1;W.dynamicTextHeight=94;W.hasOverflowButton=!1;W.isInfeedModernization=!1;return W};
_.C(eA,_.S);_.p=eA.prototype;_.p.computeUrlImg=function(W){if(W)return _.gS(W.thumbnails)};
_.p.getLogoHeight=function(W){return this.logoWithPadding(W)?"31":"24"};
_.p.getLogoClassName=function(W){return this.logoWithPadding(W)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.p.logoWithPadding=function(W){var B,z;return(W=(B=W.thumbnails)==null?void 0:(z=B[0])==null?void 0:z.height)&&W%31===0?!0:!1};
_.p.sendImpressionEndpoints=function(W){W.impressionEndpoints&&_.V0(this.hostElement,W.impressionEndpoints)};
_.p.observeBasicPalette=function(){var W,B,z=(W=this.data)==null?void 0:(B=W.colorData)==null?void 0:B.basicColorPaletteData;z?_.Ky(this.hostElement,z):_.Ky(this.hostElement,{})};
_.p.observeDataChanged=function(){var W;this.dynamicTextHeight=((W=this.data)==null?0:W.supplementalText)?74:94;var B;this.hasSupplementalText=!((B=this.data)==null||!B.supplementalText);if(_.r("web_button_rework")){var z,G,Y,d;W=(z=this.data)==null?void 0:(G=z.actionButton)==null?void 0:(Y=G.buttonRenderer)==null?void 0:(d=Y.colorData)==null?void 0:d.basicColorPaletteData;var E,v,c;if(!((E=this.data)==null?0:(v=E.actionButton)==null?0:(c=v.buttonRenderer)==null?0:c.style)&&W){this.computeIsInfeedModernization(this.data)||
(W.borderColor=W.foregroundTitleColor);var J,g;this.set("data.actionButton.buttonRenderer",_.mP.unsafeClone((J=this.data)==null?void 0:(g=J.actionButton)==null?void 0:g.buttonRenderer))}}};
_.p.observeDataForCounterfactual=function(){if(_.r("kevlar_banner_cf_extra_logging")){var W;((W=this.data)==null?0:W.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.p.computeSupplementalStyle=function(){var W;if((W=this.data)!=null&&W.supplementalText){var B,z,G;if((B=this.data)==null?0:(z=B.colorData)==null?0:(G=z.basicColorPaletteData)==null?0:G.foregroundActivatedColor)return W=_.M_(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+W+"; --yt-endpoint-hover-color:"+W+"; --yt-endpoint-visited-color:"+W+"; --yt-formatted-string-bold-font-weight:700;"}};
_.p.computeForcedDarkTheme=function(){var W,B,z,G=(W=this.data)==null?void 0:(B=W.actionButton)==null?void 0:(z=B.buttonRenderer)==null?void 0:z.style,Y,d,E;W=$4f(((Y=this.data)==null?void 0:(d=Y.colorData)==null?void 0:(E=d.basicColorPaletteData)==null?void 0:E.backgroundColor)||0);return G&&W};
_.p.computeForcedLightTheme=function(){var W,B,z,G=(W=this.data)==null?void 0:(B=W.actionButton)==null?void 0:(z=B.buttonRenderer)==null?void 0:z.style,Y,d,E;W=!$4f(((Y=this.data)==null?void 0:(d=Y.colorData)==null?void 0:(E=d.basicColorPaletteData)==null?void 0:E.backgroundColor)||0);return G&&W};
_.p.computeHasOverflowButton=function(W){return!!W.overflowButton};
_.p.computeHasTitle=function(W){return!!W.title};
_.p.computeTitleMaxFontSize=function(W){return this.computeHasOverflowButton(W)?28:64};
_.p.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.p.computeIsInfeedModernization=function(){var W,B,z,G,Y=(W=this.data)==null?void 0:(B=W.actionButton)==null?void 0:(z=B.buttonRenderer)==null?void 0:(G=z.colorData)==null?void 0:G.basicColorPaletteData;return(Y==null?void 0:Y.backgroundColor)===452984831||(Y==null?void 0:Y.backgroundColor)===218103808};
eA.prototype.observeDataForCounterfactual=eA.prototype.observeDataForCounterfactual;eA.prototype.observeDataChanged=eA.prototype.observeDataChanged;eA.prototype.observeBasicPalette=eA.prototype.observeBasicPalette;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],eA.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],eA.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],eA.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],eA.prototype,"buttonUpdate",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],eA.prototype,"hasSupplementalText",void 0);_.Q([_.F(),_.y("design:type",Object)],eA.prototype,"dismissButtonOverrides",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.y("design:type",Boolean)],eA.prototype,"hasTitle",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.y("design:type",Object)],eA.prototype,"forceDarkTheme",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.y("design:type",Object)],eA.prototype,"forceLightTheme",void 0);_.Q([_.F(),_.y("design:type",Object)],eA.prototype,"dynamicTextHeight",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.y("design:type",Object)],eA.prototype,"hasOverflowButton",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.y("design:type",Object)],eA.prototype,"isInfeedModernization",void 0);_.Q([_.oN("data.colorData.basicColorPaletteData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eA.prototype,"observeBasicPalette",null);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eA.prototype,"observeDataChanged",null);_.Q([_.oN("data.isVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eA.prototype,"observeDataForCounterfactual",null);_.Q([_.u({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],eA);
_.D(eA,"ytd-banner-promo-renderer",function(){if(oS6!==void 0)return oS6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return oS6=W},{mode:1});var hT0;var HTn;var FVf;var mq=function(){return _.S.apply(this,arguments)||this};
_.C(mq,_.S);_.Q([_.F(),_.y("design:type",Object)],mq.prototype,"data",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.Q([_.u({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],mq);
_.D(mq,"ytd-hashtag-grid-tile-renderer",function(){if(FVf!==void 0)return FVf;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return FVf=W},{mode:1});var xk=function(){return _.S.apply(this,arguments)||this};
_.C(xk,_.S);xk.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
xk.prototype.updateRichGridTrendingHashtagsVisibility=function(){var W,B;if(((W=this.data)==null||!W.isExpanded)&&(B=this.data)!=null&&B.tiles){W=this.data.tiles.length;B=W>this.richGridItemsPerRow?this.richGridItemsPerRow+1:W;var z=Math.ceil(W/B);this.fullyVisibleRows=W%B===1&&z===2?1:Math.min(z,2);this.isShowMoreVisible=this.fullyVisibleRows<z}};
xk.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
xk.prototype.updateRichGridTrendingHashtagsVisibility=xk.prototype.updateRichGridTrendingHashtagsVisibility;_.Q([_.F(),_.y("design:type",Object)],xk.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Number)],xk.prototype,"fullyVisibleRows",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],xk.prototype,"isShowMoreVisible",void 0);_.Q([_.F({selector:_.m8,value:0}),_.y("design:type",Number)],xk.prototype,"richGridItemsPerRow",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],xk.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],xk.prototype,"ytdReduxBehavior",void 0);_.Q([_.oN("data","richGridItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xk.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.Q([_.u({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],xk);
_.D(xk,"ytd-hashtag-grid-shelf-renderer",function(){if(HTn!==void 0)return HTn;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return HTn=W},{mode:1});var SHf;var bTb;var Dh=function(){var W=_.S.apply(this,arguments)||this;W.visibleVideos=[];W.hiddenVideos=[];W.modern=_.r("web_modern_buttons");W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.C(Dh,_.S);_.p=Dh.prototype;_.p.attached=function(){var W=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.onDarkModeToggledAction(W)};
_.p.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"}}}};
_.p.dataChanged=function(){var W=this;this.requestElementsPerRow();var B,z;this.currentColorPalette=this.isDarkTheme?(B=this.data)==null?void 0:B.darkColorData:(z=this.data)==null?void 0:z.lightColorData;var G;if((G=this.currentColorPalette)==null?0:G.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.BM(this,function(){W.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.p.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.p.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.p.computeIsFirstFeedItem=function(W){return W};
_.p.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W);this.data&&(this.currentColorPalette=W?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.p.getCurrentLogo=function(W,B){if(W)return B?W.darkLogoImage:W.lightLogoImage};
_.p.computeTitleStyle=function(W){var B;if((B=this.data)!=null&&B.title&&W&&W.textPrimary!==void 0)return"color:"+_.M_(W.textPrimary)+";"};
_.p.computeSubtitleStyle=function(W){var B;if((B=this.data)!=null&&B.subtitle&&W&&W.textSecondary!==void 0)return"color:"+_.M_(W.textSecondary)+";"};
_.p.computeDismissIconStyle=function(W){if(this.data&&this.data.dismissButton&&W&&W.textPrimary!==void 0)return"--yt-button-color:"+_.M_(W.textPrimary)+";"};
_.p.computeOverflowButtonStyle=function(W){if(this.data&&this.data.overflowButton&&W&&W.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.M_(W.textPrimary)+";--yt-spec-icon-active-other:"+_.M_(W.textPrimary)+";"};
_.p.computeBackgroundStyle=function(W){if(W&&this.data){var B="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var z=_.gS((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);z&&(B+='background-image:url("'+z+'");')}W.backgroundColor!==void 0&&(B+="background-color:"+_.aE(W.backgroundColor)+";");return B}};
_.p.computeButton=function(){var W,B=Object.assign({},_.k((W=this.data)==null?void 0:W.showMoreButton,_.Ep));if(this.modern&&B){B.style="STYLE_MONO_OUTLINE";var z;if(W=(z=this.currentColorPalette)==null?void 0:z.textPrimary)B.colorData={basicColorPaletteData:{foregroundTitleColor:W,borderColor:W}}}return B};
_.p.shouldShowBottomButton=function(W,B){return!(W==null?0:W.header)&&!(W==null||!W.primaryButton)&&B<3};
_.p.checkExpanded=function(W){this.isExpanded=W&&W.content?this.hiddenVideos.length===0:!0};
_.p.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.p.getLogoHeight=function(W){return this.logoWithPadding(W)?"26":"20"};
_.p.getLogoImageId=function(W){return this.logoWithPadding(W)?"logo-image-with-padding":"logo-image"};
_.p.computeHasSectionHeader=function(W){return!!W.header};
_.p.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var W;if((W=this.data.primaryButton)==null?0:W.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 B;((B=this.data.dismissButton)==null?0:B.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var z,G;((z=this.data)==null?0:(G=z.primaryButton)==null?0:G.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.p.setVisibleVideos=function(W){if(this.data&&this.data.content)if(this.data.content.length){var B=this.data.content.length;this.data.header?W?(this.visibleVideos=this.data.content.slice(0,Math.min(B,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(B,this.slimItemsPerRow),B)):(this.visibleVideos=this.data.content.slice(0,Math.min(B,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(B,this.elementsPerRow),B)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(B,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(B,this.elementsPerRow),B)):(this.visibleVideos=this.data.content.slice(0,Math.min(B,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(B,this.elementsPerRow-1),B))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.p.setHasMovieRenderer=function(){var W;if((W=this.data)!=null&&W.content){var B;this.hasMovieRenderer=!!_.k((B=this.data)==null?void 0:B.content[0],_.aMR)}else this.hasMovieRenderer=!1};
_.p.requestElementsPerRow=function(){_.v0(this.hostElement,"yt-request-elements-per-row")};
_.p.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var W=_.A(this.hiddenMediaRenderers),B=W.next();!B.done;B=W.next())B.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(W=_.tH(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&W.focus()}};
_.p.updateTitleSpec=function(){var W;(W=this.data)!=null&&W.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.p.logoWithPadding=function(W){var B,z,G;return(W=(B=this.getCurrentLogo(W,this.isDarkTheme))==null?void 0:(z=B.thumbnails)==null?void 0:(G=z[0])==null?void 0:G.height)&&W%31===0?!0:!1};
_.p.onUpdateElementsPerRowAction=function(W,B,z){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W);z&&this.slimItemsPerRow!==z&&(this.slimItemsPerRow=z)};
Dh.prototype.slimItemsPerRowChanged=Dh.prototype.slimItemsPerRowChanged;Dh.prototype.elementsPerRowChanged=Dh.prototype.elementsPerRowChanged;Dh.prototype.dataChanged=Dh.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],Dh.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Dh.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Dh.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Dh.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Dh.prototype,"currentColorPalette",void 0);_.Q([_.F(),_.y("design:type",Array)],Dh.prototype,"visibleVideos",void 0);_.Q([_.F(),_.y("design:type",Array)],Dh.prototype,"hiddenVideos",void 0);
_.Q([_.F(),_.y("design:type",Object)],Dh.prototype,"primaryButton",void 0);_.Q([_.F({reflectToAttribute:!0,value:3}),_.y("design:type",Number)],Dh.prototype,"elementsPerRow",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Dh.prototype,"isDarkTheme",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Dh.prototype,"isExpanded",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Dh.prototype,"largeTitle",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Dh.prototype,"hasMovieRenderer",void 0);_.Q([_.F(),_.y("design:type",Number)],Dh.prototype,"slimItemsPerRow",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Dh.prototype,"showLightVideoMetadata",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Dh.prototype,"showDarkVideoMetadata",void 0);_.Q([_.F(),_.y("design:type",Number)],Dh.prototype,"videoMetadataColor",void 0);
_.Q([_.F({reflectToAttribute:!0,selector:_.eL}),_.y("design:type",Boolean)],Dh.prototype,"miniMode",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.y("design:type",Boolean)],Dh.prototype,"isFirstFeedItem",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.y("design:type",Boolean)],Dh.prototype,"hasSectionHeader",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],Dh.prototype,"roundedContainer",void 0);_.Q([_.F4("#visible-video-container ytd-rich-grid-media"),_.y("design:type",Array)],Dh.prototype,"visibleMediaRenderers",void 0);_.Q([_.F4("#hidden-video-container ytd-rich-grid-media"),_.y("design:type",Array)],Dh.prototype,"hiddenMediaRenderers",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Dh.prototype,"modern",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Dh.prototype,"dataChanged",null);_.Q([_.oN("elementsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Dh.prototype,"elementsPerRowChanged",null);_.Q([_.oN("slimItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Dh.prototype,"slimItemsPerRowChanged",null);
_.Q([_.u({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Dh);
_.D(Dh,"ytd-brand-video-shelf-renderer",function(){if(bTb!==void 0)return bTb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return bTb=W},{mode:1});var jif;var Qq=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.C(Qq,_.S);_.p=Qq.prototype;_.p.attached=function(){var W=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.onDarkModeToggledAction(W)};
_.p.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"}}}};
_.p.dataChanged=function(){this.requestElementsPerRow();var W,B;this.currentColorPalette=this.isDarkTheme?(W=this.data)==null?void 0:W.darkColorData:(B=this.data)==null?void 0:B.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.p.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.p.computeIsFirstFeedItem=function(W){return W};
_.p.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W);this.data&&(this.currentColorPalette=W?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(W),this.updateButtonPalette())};
_.p.shouldShowThumbnailInMetadata=function(W){return W<=1};
_.p.computeVideoMetadataColor=function(){if(this.data){var W;if((W=this.currentColorPalette)==null?0:W.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.p.computeTitleStyle=function(W){var B;if((B=this.data)!=null&&B.title&&W&&W.textPrimary!==void 0)return"color:"+_.M_(W.textPrimary)+";"};
_.p.computeSubtitleStyle=function(W){var B;if((B=this.data)!=null&&B.subtitle&&W&&W.textSecondary!==void 0)return"color:"+_.M_(W.textSecondary)+";"};
_.p.computeOverflowButtonStyle=function(W){if(this.data&&this.data.overflowButton&&W.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.M_(W.textPrimary)+";--yt-spec-icon-active-other:"+_.M_(W.textPrimary)+";"};
_.p.computeBackgroundStyle=function(W){if(W&&this.data){var B="";W.backgroundColor!==void 0&&(B+="background-color:"+_.aE(W.backgroundColor)+";");return B}};
_.p.computeHasOverflowButton=function(W){return!!W.overflowButton};
_.p.updateButtonPalette=function(){if(this.data){var W;if((W=this.data.primaryButton)==null?0:W.buttonRenderer){var B;if((B=this.currentColorPalette)==null?0:B.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var z;((z=this.currentColorPalette)==null?0:z.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)})}}};
_.p.requestElementsPerRow=function(){_.v0(this.hostElement,"yt-request-elements-per-row")};
_.p.updateTitleSpec=function(){var W;(W=this.data)!=null&&W.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")};
_.p.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
Qq.prototype.elementsPerRowChanged=Qq.prototype.elementsPerRowChanged;Qq.prototype.dataChanged=Qq.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Qq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],Qq.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Qq.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Qq.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Qq.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Qq.prototype,"currentColorPalette",void 0);_.Q([_.F(),_.y("design:type",Object)],Qq.prototype,"primaryButton",void 0);
_.Q([_.F({reflectToAttribute:!0,value:3}),_.y("design:type",Number)],Qq.prototype,"elementsPerRow",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Qq.prototype,"isDarkTheme",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],Qq.prototype,"titleSize",void 0);_.Q([_.F(),_.y("design:type",Number)],Qq.prototype,"videoMetadataColor",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.eL}),_.y("design:type",Boolean)],Qq.prototype,"miniMode",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.y("design:type",Boolean)],Qq.prototype,"isFirstFeedItem",void 0);_.Q([_.F({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],Qq.prototype,"roundedContainer",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.y("design:type",Boolean)],Qq.prototype,"hasOverflowButton",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Qq.prototype,"dataChanged",null);_.Q([_.oN("elementsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Qq.prototype,"elementsPerRowChanged",null);_.Q([_.u({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],Qq);
_.D(Qq,"ytd-brand-video-singleton-renderer",function(){if(jif!==void 0)return jif;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return jif=W},{mode:_.PJ("kevlar_poly_si_batch_j070")?1:2});var fwr;var OTq=_.m(function(W){var B=W.data;return _.w(_.iF,{data:function(){return B().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(B().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var z=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":z=88;break a;default:z=88}return z},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return B().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Yj"),KVr=_.m(function(W){var B=W.metadataRow;
var z=W.delimiter;return _.w(_.IJ,{each:function(){return B().textParts||[]},
keyBy:"INDEX"},function(G,Y){return _.w(_.AW,null,_.w(_.r0,{text:G,noWrap:!0,userInput:!0}),_.w(XY6,{delimiter:z,max:function(){return B().textParts.length},
index:Y}))})},"Zj"),XY6=_.m(function(W){var B=W.delimiter;
var z=W.max;var G=W.index;return _.w(_.V,{cond:function(){return(B==null?void 0:B())&&z()-1>G()},
then:function(){return _.w("span",null,B)}})},"$j"),uY9=_.m(function(W){var B=W.data;
W={};return _.w("yt-profile-page-header-information-view-model",{class:_.kG("profilePageHeaderInformationViewModelHost",(W.profilePageHeaderInformationViewModelMobile=!1,W))},_.w(_.V,{cond:function(){return B().onTap},
then:function(){return _.w(_.fL,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.$B(B().onTap)}},_.w(_.Sc,{data:function(){return B().thumbnail}},{profilePageHeaderThumbnailViewModel:OTq}))},
else:function(){return _.w("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.w(_.Sc,{data:function(){return B().thumbnail}},{profilePageHeaderThumbnailViewModel:OTq}))}}),_.w("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.w(_.V,{cond:function(){return B().onTap},
then:function(){return _.w(_.Sc,{data:function(){return B().title}},{profilePageHeaderTitleViewModel:function(z){var G=z.data;
return _.w(_.fL,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.$B(G().onTap)}},_.w(_.r0,{text:function(){return G().title}}))}})},
else:function(){return _.w(_.Sc,{data:function(){return B().title}},{profilePageHeaderTitleViewModel:function(z){var G=z.data;
return _.w(_.r0,{text:function(){return G().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.w(_.Sc,{data:function(){return B().metadata}},{profilePageHeaderMetadataViewModel:function(z){var G=z.data;
return _.w(_.V,{cond:function(){return G().metadataRows},
then:function(Y){return _.w("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.w(_.IJ,{each:Y,keyBy:"INDEX"},function(d,E){return _.w(_.AW,null,_.w(KVr,{metadataRow:d,delimiter:" \u2022 "}),_.w(XY6,{delimiter:" \u2022 ",max:function(){return Y().length},
index:E}))}))}})}})))},"ak");
uY9.idomCompat=!0;_.Vm(uY9,"yt-profile-page-header-information-view-model",{props:{data:_.kz}});var yq=function(){return _.S.apply(this,arguments)||this};
_.C(yq,_.S);yq.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],yq.prototype,"data",void 0);_.Q([_.u({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],yq);
_.D(yq,"ytd-effect-pivot-header-view-model",function(){if(fwr!==void 0)return fwr;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return fwr=
W},{mode:1});var eT6;var qb=function(){return _.S.apply(this,arguments)||this};
_.C(qb,_.S);qb.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],qb.prototype,"data",void 0);_.Q([_.u({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],qb);
_.D(qb,"ytd-source-pivot-header-renderer",function(){if(eT6!==void 0)return eT6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return eT6=W},{mode:1});_.my1=_.m(function(W){var B=W.data;var z=function(){var G;return _.Dp((G=B())==null?void 0:G.rendererContext)};
W={};return _.w("content-list-item-view-model",{el:_.TG(_.Qi(function(){return B().rendererContext})),
class:_.kG("ytContentListItemViewModelHost",(W.ytContentListItemViewModelTappable=z,W)),role:function(){return z()?"listitem":void 0},
tabindex:function(){return z()?0:void 0}},_.w("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.w("div",{class:"ytContentListItemViewModelImageContainer"},_.w(_.V,{cond:function(){return B().image},
then:function(G){return _.w(_.iF,{data:G,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.w(_.Sc,{data:function(){var G;
return(G=B())==null?void 0:G.avatar}},{avatarViewModel:_.ds})),_.w("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.w("div",{class:_.kG("ytContentListItemViewModelTitle",function(){a:{switch(B().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var G="ytContentListItemViewModelProminentTitle";
break a}G=void 0}return G})},_.w(_.r0,{text:function(){return B().title}})),_.w("div",{class:"ytContentListItemViewModelMetadata"},_.w(_.Sc,{data:function(){return B().metadata}},{contentMetadataViewModel:function(G){return _.w(_.fY,{data:G.data,
layout:1})}})))),_.w("div",{class:"ytContentListItemViewModelActionButton"},_.w(_.Sc,{data:function(){var G;
return(G=B())==null?void 0:G.actionButton}},{buttonViewModel:_.ex,
toggleButtonViewModel:_.Y1})))},"bk");var xyj=_.m(function(W){var B=function(){return W.data().orientation==="LINEAR_LAYOUT_ORIENTATION_HORIZONTAL"};
return _.w("yt-linear-layout-view-model",{class:_.kG("ytLinearLayoutViewModelHost",function(){a:switch(W.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var z="ytLinearLayoutViewModelHostHorizontal";break a;default:z="ytLinearLayoutViewModelHostVertical"}return z})},_.w(_.Sc,{data:function(){return W.data().items}},{lockupViewModel:function(z){return _.w("div",{style:_.oK({"margin-bottom":function(){return B()?void 0:"8px"},
"margin-right":function(){return B()?"8px":void 0}})},_.w(_.eh,{data:z.data,
containerType:function(){return B()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return B()?void 0:"33%"}}))}}))},"ck");var DyK=_.m(function(W){var B=function(){return W.data().background},z=function(){return W.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},G=function(){return W.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.w("yt-card-view-model",{class:_.kG("ytCardViewModelHost",W.className)},_.w(_.Oi,{contentId:function(){return W.data().contentId}},function(){return _.w("div",{class:_.kG("ytCardViewModelCardViewModelInner",function(){return zTr(W.data().cardStyle)},function(){var Y;
a:{switch((Y=W.data().cardState)==null?void 0:Y.selectionState){case "CARD_SELECTION_STATE_SELECTED":Y="ytCardViewModelSelected";break a}Y=void 0}return Y})},_.w(_.Sc,{data:B},{cinematicContainerViewModel:function(Y){return _.w(_.kKR,{data:Y.data})}}),_.w("div",{class:"ytCardViewModelContentWrapper"},_.w(_.V,{cond:function(){return!z()},
then:function(){var Y={};return _.w("div",{class:"ytCardViewModelTopContentContainer"},_.w("div",{class:"ytCardViewModelTopContent"},_.w(_.Sc,{data:function(){return W.data().topContent}},{contentListItemViewModel:function(d){return _.w(_.my1,{data:d.data})}})),_.w("div",{class:_.kG("ytCardViewModelInlineTrailingAction",(Y.ytCardViewModelInlineCenterTrailingAction=G,Y))},_.w(_.Sc,{data:function(){return W.data().trailingAction}},{buttonViewModel:function(d){return _.w(_.ex,{data:d.data})}})))}}),
_.w("div",{class:"ytCardViewModelBodyContent"},_.w(_.Sc,{data:function(){return W.data().bodyContent}},{contentListItemViewModel:_.my1,
listItemViewModel:_.cU,linearLayoutViewModel:xyj}))),_.w(_.V,{cond:function(){return z()},
then:function(){return _.w("div",{class:"ytCardViewModelOverlayTrailingAction"},_.w(_.Sc,{data:function(){return W.data().trailingAction}},{buttonViewModel:function(Y){return _.w(_.ex,{data:Y.data})}}))}}))}))},"dk");_.Vm(DyK,"yt-card-view-model",{props:{data:_.kz,className:_.kz}});var iT9=_.G56.talkToRecsStateSelector;_.Vm(_.m(function(W){var B=function(){return _.k(W.data().flowRoot,J3K)};
_.jD(function(){var z=B(),G=function(){},Y=function(){};
if(z){var d,E,v,c=((v=_.k((d=B())==null?void 0:(E=d.steps)==null?void 0:E[0],_.z5Y))==null?void 0:v.stepId)||"";dyf(z,c);G=A3r(z);Y=ESr(z)}_.fR(function(){var J=B();J&&_.Y_().dispatch(_.bj("flowStateEntity",J.flowStateEntityKey));G();G=function(){};
Y();Y=function(){}})});
return _.w("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.w(_.Oi,{contentId:function(){return W.data().contentId}},function(){return _.w("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.w(_.V,{cond:B,
then:function(z){return _.w(_.v60,{data:z})}}))}))},"ek"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.kz}});_.Vm(_.m(function(){return _.w("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.w("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.w("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.w(_.cr6,null)),_.w(_.ljH,{data:{rows:1},isExploreHub:!0}))},"fk"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Vm(_.m(function(W){var B=W.data;var z=W.standardUnitMinWidth;W=_.A((0,_.hKU)(B));var G=W.next().value,Y=W.next().value,d=function(){var v,c=(v=G())==null?void 0:v.contents;return c==null||c.length===0},E=function(){Y(Object.assign({},G(),{contents:[]}))};
return _.w("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.TG(_.YF({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var v=_.k(B().chipsShelf,gSb);if(v!=null&&v!=null&&v.autoselectChipOnVisible){var c,J,g=_.k(v==null?void 0:(c=v.contents)==null?void 0:c[(J=v.autoselectedChipIndex)!=null?J:0],_.VP);g&&g.tapCommand&&_.aB(g.tapCommand)}}}))},_.w(_.Oi,{contentId:function(){return B().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.w("div",null,_.w("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.w(_.Sc,{data:function(){return B().header}},{sectionHeaderViewModel:function(v){return _.w(_.DC,{data:v.data,
disableHorizontalPadding:!0})}})),_.w("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.w(_.Sc,{data:function(){return B().chipsShelf}},{chipsShelfViewModel:function(v){return _.w(_.T$,{data:v.data,
callback:E,selectionBehavior:1})}})),_.w("div",null,_.w(_.V,{cond:d,
then:function(){return _.w("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.w(_.ljH,{data:{rows:1},isExploreHub:!0}))}}),_.w(_.Sc,{data:function(){var v;
return(v=G())==null?void 0:v.contents}},{richShelfRenderer:function(v){return _.w(_.jzQ,{data:v.data,
isInnerShelf:!0,standardUnitMinWidth:z})}})))}))},"gk"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.kz,
standardUnitMinWidth:_.kz}});var nH=function(){return _.S.apply(this,arguments)||this};
_.C(nH,_.S);
nH.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}}};
nH.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.Q([_.h(_.TB),_.y("design:type",Object)],nH.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],nH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Pl),_.y("design:type",Object)],nH.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],nH.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],nH.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Number)],nH.prototype,"standardUnitMinWidth",void 0);_.Q([_.u({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],nH);
_.D(nH,"ytd-rich-section-renderer",function(){if(SHf!==void 0)return SHf;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return SHf=W},{mode:_.PJ("kevlar_poly_si_batch_j029")?
1:2});_.Vm(_.oEK,"yt-profile-identity-info-view-model",{props:{data:_.kz,hideDivider:_.kz,isChannelInfoCard:_.kz}});_.Vm(_.SCR,"yt-page-header-view-model",{props:{data:_.kz,noPadding:_.kz,enableBanner:_.kz,cinematicContainerTopbarOffset:_.kz,allowCinematicContainerOverflow:_.kz,displayAsSidebar:_.kz,displayAsPanel:_.kz,alwaysUseMediumTextDescription:_.kz}});_.Vm(_.m(function(W){var B=W.data;var z=function(){var Y;return(Y=B().numColumns)!=null?Y:2},G=function(){return z()>1?3:2};
W={};return _.w("ytd-rich-grid-group",{class:_.kG("ytdRichGridGroupHost",(W.ytdRichGridGroupHostFirstColumn=function(){return B().colIndex===0},W)),
style:_.oK({"--ytd-rich-grid-group-num-columns":z,"--ytd-rich-grid-items-per-group":G})},_.w("div",{class:"ytdRichGridGroupContents"},_.w(_.Sc,{data:function(){var Y;return(Y=B().contents)==null?void 0:Y.slice(0,G())}},{richItemRenderer:function(Y){return _.w(_.SPD,{data:Y.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"hk"),"ytd-rich-grid-group",{props:{data:_.kz}});var Nb=function(){var W=_.S.apply(this,arguments)||this;W.resizeOnObserverInit=!1;W.isInlinePreviewDisabled=_.r("web_disable_inline_preview");W.disableStickyFilterBar=!1;W.transparentBackgroundChipsBar=!1;W.hideChipsBar=!1;W.isWatchDefaultLayout=!0;W.continuationShowButton=!1;W.rowReducedHorizontalMargin=!1;W.useCompactList=!1;W.manualDownloadsPresent=!1;W.smartDownloadsPresent=!1;W.isOnline=!1;W.shouldRenderDownloadsBanner=!1;W.shouldRenderDownloadsBannerUpsell=!1;W.hasOptedIntoSmartDownloads=!1;
W.elementsPerRow=4;W.typographyBump=!1;W.showGnomeContents=!1;W.slimItemsPerRow=1;W.pageLoadingFromNavigation=!1;W.resizeObserver=null;W.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"};W.rendererToTagNameMap=new Map(Object.entries(W.contentMapping()).map(function(B){var z=
_.A(B);B=z.next().value;z=z.next().value;return[B,z.component]}));
W.insertedContent=new Map;return W};
_.C(Nb,_.S);_.p=Nb.prototype;_.p.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var W=_.A(_.tH(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),B=W.next();!B.done;B=W.next())B.value.useCompactList=this.useCompactList};
_.p.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var W=_.A(_.tH(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),B=W.next();!B.done;B=W.next())B=B.value,B.sizing=this.sizing,B.typographyBump=this.typographyBump};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.p.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]]"}}}};
_.p.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}}};
_.p.attached=function(){document.addEventListener("yt-page-type-changed",_.Co(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21924_throttledOnResize=new _.an(this.resizeObserved,_.iO("rich_grid_resize_delay_ms",50),this)};
_.p.detached=function(){var W;(W=this.resizeObserver)==null||W.disconnect();document.removeEventListener("yt-page-type-changed",_.Co(this,this.onPageChange))};
_.p.insertRichSection=function(W){var B=W.richItemTargetId;W=W.richSectionRendererToInsert;B&&W&&(this.insertedContent.set(B,{content:W,timestamp:Date.now()}),this.reflowContent())};
_.p.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.p.computeIsInlinePreviewEnabled=function(W,B,z){return _.r("web_disable_inline_preview")?!1:!z&&_.Qef({miniplayerIsActive:W,miniplayerPlaybackState:B})};
_.p.computeSizing=function(){var W=_.pa8(this.data);if(W||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return W?this.useCompactList?"COMPACT":W:this.miniMode?"COMPACT":"STANDARD"};
_.p.updateItemMinAndMaxWidth=function(){var W=_.iO("rich_grid_max_item_width",500);W>0&&_.kw(this.hostElement,{"--ytd-rich-grid-item-max-width":W+"px"});var B;W=this.getRichItemMinWidth((B=this.hostElement)==null?void 0:B.clientWidth);W>0&&_.kw(this.hostElement,{"--ytd-rich-grid-item-min-width":W+"px"})};
_.p.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.p.resizeObserved=function(){_.wV(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.p.navigateBackToHome=function(){_.r("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);var W=_.dO().resolve(_.ij).isOnWatch(),B,z=((B=_.la(location.pathname))==null?void 0:B.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(z)||W)&&this.gnomeContents&&_.r("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!0)};
_.p.onPageChange=function(){var W=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.wV(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.fg.addJob(function(){W.pageLoadingFromNavigation=!1;W.setMasthead();W.maybeSetBigYoodle();W.forceRefreshAndLog();W.terminateVideoPreview();_.r("web_hide_gnome_until_user_navigates_back_to_home")&&(W.dataChanged(),_.BM(W,function(){if(W.showGnomeContents){var B=Array.from(_.tH(W.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(G){G=
_.tH(G).querySelector("ytd-rich-shelf-renderer");return!!G&&G.isGnomeShelf()});
if(B){B=B.offsetTop-W.contentsElement.offsetTop;var z=_.dO().resolve(_.ij).getCurrentPage();z&&z.getPageScrollingElement().scrollTo({top:B,behavior:"smooth"})}}}))},8)):(_.r("web_hide_gnome_until_user_navigates_back_to_home")&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.p.dataChanged=function(){var W=this;_.wV(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.BM(this,function(){W.updateRichItemGridPositions();W.contentsElement&&_.kw(W.hostElement,{"--ytd-rich-grid-content-offset-top":W.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.p.initResizeObserver=function(){var W=this;if(window.ResizeObserver){var B;(B=this.resizeObserver)==null||B.disconnect();var z=!1;this.resizeObserver=new ResizeObserver(function(){if(z){var G;(G=W.resizeObserver)==null||G.disconnect();var Y;(Y=W.JSC$21924_throttledOnResize)==null||Y.fire();requestAnimationFrame(function(){var E;(E=W.JSC$21924_throttledOnResize)==null||E.fire();W.initResizeObserver()})}else if(z=!0,W.resizeOnObserverInit){var d;
(d=W.JSC$21924_throttledOnResize)==null||d.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.p.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.wV(this.hostElement,"ytd-rich-item-index-update-action")};
_.p.updateElementsPerRow=function(){_.wV(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Tl({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Tl({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.p.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.p.onRichShelfRendererCollapse=function(W){if(this.shownItems){var B=W.detail;W=this.shownItems.findIndex(function(G){var Y,d;return((d=_.k(G==null?void 0:(Y=G.richSectionRenderer)==null?void 0:Y.content,_.LLM))==null?void 0:d.trackingParams)===B});
var z=W+1;W<0||z>=this.contentsElement.children.length||!this.shownItems[z].richItemRenderer||this.contentsElement.children[z].scrollIntoView({behavior:"smooth",block:"start"})}};
_.p.onSoftReloadPage=function(){this.scrollUpToTop()};
_.p.handleRerenderDownloadsData=function(){_.r("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.p.handlePlaylistRemoveVideosAction=function(W){var B;if(((B=_.k(W,_.wr4))==null?0:B.setVideoIds)&&this.data&&this.data.contents){W=_.k(W,_.wr4).setVideoIds;for(B=this.data.contents.length-1;B>=0;){var z=_.k(this.data.contents[B],_.L6);(z=z&&_.k(z.content,_.ii))&&z.setVideoId&&W.includes(z.setVideoId)&&this.splice("data.contents",B,1);B--}this.updateIndices()}};
_.p.updateIndices=function(){if(this.data&&this.data.contents)for(var W=0;W<this.data.contents.length;W++)this.set("data.contents."+W+".richItemRenderer.index",_.Bg(String(W+1)))};
_.p.hasTopRowInlinePlayableVideoWithEndorsement=function(W){var B;return!((B=W.slice(0,this.getItemsPerRow()))==null||!B.some(function(z){var G;z=_.k(z==null?void 0:(G=z.richItemRenderer)==null?void 0:G.content,_.vO);var Y;return(z==null?void 0:z.inlinePlaybackEndpoint)&&(z==null?void 0:(Y=z.thumbnailOverlays)==null?void 0:Y.some(function(d){return d.thumbnailOverlayEndorsementRenderer}))}))};
_.p.refreshGridLayoutNew=function(W,B,z,G){var Y=G.postsPerRow;var d=G.slimItemsPerRow;var E=G.gameCardsPerRow;G=G.miniGameCardsPerRow;var v;if((v=this.data)==null||!v.contents||!this.containerWidth)return!1;var c;if((c=this.data.responsiveContainerConfiguration)==null?0:c.responsiveSize){var J=_.KB8(this.data.responsiveContainerConfiguration,this.containerWidth),g;v=_.$2(Object.assign({},J,{standardUnitMinWidth:(g=this.data)==null?void 0:g.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&J.isCompactList)}else v=_.$2({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(J=this.data)==null?void 0:J.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=v.typographyBump;g=!1;if(W||this.elementsPerRow!==v.numItems||this.postsPerRow!==Y||this.slimItemsPerRow!==d||this.gameCardsPerRow!==
E||this.miniGameCardsPerRow!==G||this.gutter!==v.gutter)g=this.elementsPerRow!==v.numItems,this.elementsPerRow=v.numItems,this.postsPerRow=Y,this.slimItemsPerRow=d,this.gameCardsPerRow=E,this.miniGameCardsPerRow=G,this.gutter=v.gutter,this.itemWidth=v.itemWidth,this.reflowContent(B),_.kw(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":v.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(z);this.ytdReduxBehavior.dispatch(_.Tl({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:v.maxContainerWidth}));return g};
_.p.refreshGridLayout=function(W,B){var z,G=(z=this.hostElement)==null?void 0:z.clientWidth;this.containerWidth=this.adjustRichGridWidth(G,!0);var Y;if((Y=this.data)==null||!Y.contents||!this.containerWidth)return W&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(W=!0,this.pendingForceReflow=!1);z=this.getRichItemMinWidth(G);var d=this.isShortsPanel?146:194,E=this.getMiniGameCardMinWidth(),v=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;G=z=this.calcElementsPerRow(z,
v);(Y=z<=3&&this.miniModeAllowed())&&(z=this.calcElementsPerRow(240,4));var c=this.calcMaxSlimElementsPerRow(z,v,this.isDefaultGrid);v=this.calcElementsPerRow(d,c);var J=this.calcElementsPerRow(this.isCompactGrid?d:154,c);d=this.calcElementsPerRow(this.isCompactGrid?d:E,c);E=!1;if(this.sizing)return this.refreshGridLayoutNew(W,B,Y,{postsPerRow:G,slimItemsPerRow:v,gameCardsPerRow:J,miniGameCardsPerRow:d});if(W||this.elementsPerRow!==z||this.postsPerRow!==G||this.slimItemsPerRow!==v||this.gameCardsPerRow!==
J||this.miniGameCardsPerRow!==d)E=this.elementsPerRow!==z,this.elementsPerRow=z,this.postsPerRow=G,this.slimItemsPerRow=v,this.gameCardsPerRow=J,this.miniGameCardsPerRow=d,this.reflowContent(B),this.updateElementsPerRow(),_.kw(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)&&_.kw(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(Y);_.wV(this.hostElement,"yt-rich-grid-layout-refreshed");return E};
_.p.getRichItemMinWidth=function(W){var B=_.iO("rich_grid_min_item_width",310);if(!_.r("kevlar_disable_min_width_override")){var z,G;B=(G=(z=this.data)==null?void 0:z.minItemWidth)!=null?G:B}return B+_.RF8(W)};
_.p.calcMaxSlimElementsPerRow=function(W,B,z){return(z===void 0?0:z)?W===1?2:W%2===0?W/2*3:W+2:B*2};
_.p.adjustRichGridWidth=function(W,B){var z=_.r("disable_rich_grid_guide_compensation");if(!this.isWatch&&!z){z=_.dO().resolve(_.Y8(_.Ja));var G=z==null?void 0:z.guideElement;if(!(!z||z.getData()||G!=null&&G.opened||z.getMiniGuideVisible()))if(z.canFitPersistentGuide(W)&&z.getGuideExpandsAutomatically()){var Y,d,E=Number((Y=window.getComputedStyle(this.hostElement))==null?void 0:(d=Y.getPropertyValue("--app-drawer-width"))==null?void 0:d.replace("px",""));W-=E||0}else if(z.canFitMiniGuide(W)){var v;
Y=Number((E=window.getComputedStyle(this.hostElement))==null?void 0:(v=E.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:v.replace("px",""));W-=Y||0}}W>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(W-=B?32:48));return W};
_.p.calcElementsPerRow=function(W,B){var z=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),G=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((z+G)/(W+G))||1,B)};
_.p.reflowContent=function(W){var B=this;if(!this.isReflowing){this.isReflowing=!0;var z,G,Y=!!((z=this.data)==null?0:(G=z.contents)==null?0:G.some(function(Z){return _.k(Z,_.GH)}));
z=this.getItemsPerRow();var d;G=(d=this.data)==null?void 0:d.reflowOptions;W&&(_.mj("rgr_s"),_.BM(this,function(){_.mj("rgr_nrf")}));
W={};(d=_.tH(this.hostElement).querySelector("#contents"))&&(W={contentElement:d,rendererToTagNameMap:this.rendererToTagNameMap});d=(d=this.data.contents)?d.slice():[];var E=(_.r("web_hide_gnome_behind_feed_filter_chip")||_.r("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,v=-1;if(this.isHomePage&&E){for(var c=0;c<d.length;c++){var J=void 0,g=void 0,t=_.k((J=d[c])==null?void 0:(g=J.richSectionRenderer)==null?void 0:g.content,_.LLM);t&&E&&(g=J=void 0,t=_.k((J=t)==null?
void 0:(g=J.contents)==null?void 0:g[0],_.L6),J=void 0,_.k((J=t)==null?void 0:J.content,_.L7M)&&(v=c))}v>-1&&(this.gnomeContents=d.splice(v,1))}Y=al9(d,z,Y,G,this.getRichGridStyle(),W,this.insertedContent);var P=Y.orderedContent;if(Y=Y.pinnedContentNotShownTargetIds)for(Y=_.A(Y),z=Y.next();!z.done;z=Y.next())this.insertedContent.delete(z.value);Y=function(){B.shownItems=P;B.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(P),_.BM(this,Y)):Y()}};
_.p.getFirstRowItems=function(W){for(var B=[],z=0;z<W.length;z++){var G=void 0,Y=void 0,d=void 0,E=void 0,v=void 0,c=void 0;if(((G=W[z])==null?void 0:(Y=G.richItemRenderer)==null?void 0:Y.rowIndex)===0||((d=W[z])==null?void 0:(E=d.richGroupRenderer)==null?void 0:E.rowIndex)===0||((v=W[z])==null?void 0:(c=v.richSectionRenderer)==null?void 0:c.rowIndex)===0)B.push(W[z]);else break}return B};
_.p.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.p.resetInsertedContentIfNeeded=function(){(_.r("web_explore_hub_on_hover")||_.r("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.p.handleChipCloudChipSelectAction=function(W,B){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.r("web_hide_gnome_behind_feed_filter_chip")&&(B?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.p.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.p.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();_.r("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.p.terminateVideoPreview=function(){_.wV(this.hostElement,"yt-terminate-video-preview-action")};
_.p.updateRichItemGridPositions=function(){var W={gridData:{gridColumnCount:this.elementsPerRow}},B;((B=this.data)==null?0:B.trackingParams)&&(B=_.m1())&&_.B3(B,_.XF(this.data.trackingParams),W);_.wV(this.hostElement,"ytd-rich-item-index-update-action")};
_.p.miniModeAllowed=function(){return this.isChannelPage};
_.p.getMiniGameCardMinWidth=function(){return 154};
_.p.updateMiniMode=function(W){this.miniMode=this.miniModeAllowed()&&W;this.ytdReduxBehavior.dispatch(_.Tl({type:"SET_RICH_GRID_MINI_MODE",payload:W}))};
_.p.isCurrentPage=function(){return location.pathname===this.pagePath};
_.p.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var W=_.dO().resolve(_.ij).getCurrentPage();W&&W.setScrollTop(0)}};
_.p.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.p.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.p.maybeSetBigYoodle=function(){var W,B=(W=this.data)==null?void 0:W.bigYoodle;this.bigYoodleData!==B&&(this.bigYoodleData=B)};
_.p.setMasthead=function(){var W;((W=this.data)==null?0:W.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.p.getRichGridStyle=function(){var W,B;return(B=(W=this.data)==null?void 0:W.style)!=null?B:"RICH_GRID_STYLE_UNKNOWN"};
_.p.onIsShortsGridChange=function(){var W=this.ytdReduxBehavior,B=W.dispatch,z=this.getRichGridStyle();B.call(W,_.Tl({type:"SET_RICH_GRID_STYLE",payload:z}))};
_.G5.Object.defineProperties(Nb.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var W=_.dO().resolve(_.ij).getCurrentPage(),B,z,G;return(((B=this.data)==null?void 0:B.targetId)==="browse-feedFEsfv_audio_pivot"||_.r("web_enable_channel_pivot_panel")&&((z=this.data)==null?void 0:z.targetId)==="browse-feedFEsfv_channel_pivot"||_.r("web_enable_effect_pivot_panel")&&((G=this.data)==null?void 0:G.targetId)==="browse-feedFEsfv_effect_pivot")&&(W==null?void 0:W.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.r("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 W;return!((W=this.data)==null?0:W.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var W;return((W=_.dO().resolve(_.ij).getCurrentPage())==null?void 0:W.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var W;return((W=_.dO().resolve(_.ij).getCurrentPage())==null?void 0:W.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="watch-next-feed"&&!_.r("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return((W=this.data)==null?0:W.enableContentSpecificAspectRatio)||((B=this.data)==null?0:(z=B.responsiveContainerConfiguration)==null?0:z.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.iO("web_continuation_handler_margin",0):0}}});
Nb.prototype.onIsShortsGridChange=Nb.prototype.onIsShortsGridChange;Nb.prototype.onReloadContinuationFinish=Nb.prototype.onReloadContinuationFinish;Nb.prototype.reflowContent=Nb.prototype.reflowContent;Nb.prototype.handleRerenderDownloadsData=Nb.prototype.handleRerenderDownloadsData;Nb.prototype.onRichShelfRendererCollapse=Nb.prototype.onRichShelfRendererCollapse;Nb.prototype.onRequestElementsPerRow=Nb.prototype.onRequestElementsPerRow;Nb.prototype.contentLengthChanged=Nb.prototype.contentLengthChanged;
Nb.prototype.dataChanged=Nb.prototype.dataChanged;Nb.prototype.onSizingChange=Nb.prototype.onSizingChange;Nb.prototype.onUseCompactListChange=Nb.prototype.onUseCompactListChange;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Nb.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Nb.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Mp),_.y("design:type",Object)],Nb.prototype,"ironResizableBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Nb.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.Pl),_.y("design:type",Object)],Nb.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Nb.prototype,"componentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Nb.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Nb.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0,selector:_.eL}),_.y("design:type",Boolean)],Nb.prototype,"miniMode",void 0);_.Q([_.F({value:[]}),_.y("design:type",Array)],Nb.prototype,"shownItems",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Nb.prototype,"isReflowing",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Nb.prototype,"isFilteredFeed",void 0);_.Q([_.F({selector:_.d1t}),_.y("design:type",Boolean)],Nb.prototype,"guideIsExpanded",void 0);
_.Q([_.F({selectorArgs:["entitySelectorType"],selector:function(W,B){if(_.r("kevlar_modern_downloads_page")&&B&&B!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(B){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":B=W.entities;var z=_.XN(B),G=_.KA(B),Y=_.l$Q(W),d=_.k10(W),E=_.C1y(W),v=_.LxR(B),c=_.FN(z),J=_.ud(B);return _.FBQ(z,G,v,_.RNT(B),Y,d,c,J,E,_.oUR(W),_.Qg(W));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return W=_.XN(W.entities),_.bXu(W);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return W=
_.n3t(W.entities),_.jLR(W);default:_.Oc(new _.oX("Error: entitySelectorType defined but not matched in selector.",W,B))}}}),
_.y("design:type",Object)],Nb.prototype,"entityDrivenRichGridData",void 0);_.Q([_.F(),_.y("design:type",Object)],Nb.prototype,"resizeOnObserverInit",void 0);_.Q([_.F(),_.y("design:type",Object)],Nb.prototype,"bigYoodleData",void 0);_.Q([_.F(),_.y("design:type",Object)],Nb.prototype,"mastheadData",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Nb.prototype,"isInlinePreviewDisabled",void 0);_.Q([_.F(),_.y("design:type",Object)],Nb.prototype,"disableStickyFilterBar",void 0);
_.Q([_.F(),_.y("design:type",Object)],Nb.prototype,"transparentBackgroundChipsBar",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Nb.prototype,"hideChipsBar",void 0);_.Q([_.F(),_.y("design:type",Object)],Nb.prototype,"isWatchDefaultLayout",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Nb.prototype,"continuationShowButton",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Nb.prototype,"rowReducedHorizontalMargin",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Nb.prototype,"useCompactList",void 0);_.Q([_.F({selector:function(W){return _.KA(W.entities).length>0}}),
_.y("design:type",Object)],Nb.prototype,"manualDownloadsPresent",void 0);_.Q([_.F({selector:function(W){return _.XN(W.entities).length>0}}),
_.y("design:type",Object)],Nb.prototype,"smartDownloadsPresent",void 0);_.Q([_.F({selector:_.Qg}),_.y("design:type",Object)],Nb.prototype,"isOnline",void 0);_.Q([_.F({selector:_.k10}),_.y("design:type",Object)],Nb.prototype,"shouldRenderDownloadsBanner",void 0);_.Q([_.F({selector:_.oUR}),_.y("design:type",Object)],Nb.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.Q([_.F({selector:_.l$Q}),_.y("design:type",Object)],Nb.prototype,"hasOptedIntoSmartDownloads",void 0);
_.Q([_.oN("useCompactList"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nb.prototype,"onUseCompactListChange",null);_.Q([_.oN("sizing","typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nb.prototype,"onSizingChange",null);_.Q([_.F({selector:_.vUv}),_.y("design:type",Number)],Nb.prototype,"miniplayerPlaybackState",void 0);_.Q([_.F({selector:_.xO}),_.y("design:type",Boolean)],Nb.prototype,"miniplayerIsActive",void 0);
_.Q([_.F({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.y("design:type",Boolean)],Nb.prototype,"isInlinePreviewEnabled",void 0);_.Q([_.F({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.y("design:type",String)],Nb.prototype,"sizing",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Nb.prototype,"elementsPerRow",void 0);
_.Q([_.F(),_.y("design:type",Object)],Nb.prototype,"typographyBump",void 0);_.Q([_.F(),_.y("design:type",Number)],Nb.prototype,"itemWidth",void 0);_.Q([_.Hf("#header"),_.y("design:type",HTMLElement)],Nb.prototype,"headerElement",void 0);_.Q([_.Hf("#contents"),_.y("design:type",HTMLElement)],Nb.prototype,"contentsElement",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nb.prototype,"dataChanged",null);
_.Q([_.jJ("data.contents.length"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nb.prototype,"contentLengthChanged",null);_.Q([_.IN("yt-request-elements-per-row"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nb.prototype,"onRequestElementsPerRow",null);
_.Q([_.IN("yt-rich-shelf-renderer-collapse"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Nb.prototype,"onRichShelfRendererCollapse",null);_.Q([_.jJ("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nb.prototype,"handleRerenderDownloadsData",null);
_.Q([_.H("data"),_.y("design:type",String),_.y("design:paramtypes",[])],Nb.prototype,"entitySelectorType",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.targetId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"isSub",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.targetId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"isWatch",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.targetId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"isShortsPanel",null);_.Q([_.F({reflectToAttribute:!0}),_.H("isWatch"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"reducedTopMargin",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data","isWatch","isWatchDefaultLayout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"noTopMargin",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("isInlinePreviewEnabled","shownItems"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"topRowEndorsement",null);_.Q([_.H("data.header"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"hideHeader",null);_.Q([_.IN("yt-rich-grid-reflow"),_.y("design:type",Function),_.y("design:paramtypes",[Boolean]),_.y("design:returntype")],Nb.prototype,"reflowContent",null);
_.Q([_.IN("yt-reload-continuation-finish"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nb.prototype,"onReloadContinuationFinish",null);_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"isSlimGrid",null);_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"isShortsGrid",null);
_.Q([_.H("data","isSlimGrid","isShortsGrid"),_.F(),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"noRichItemGutterMargins",null);_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"isShortsGridSlim",null);_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"isCompactGrid",null);
_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"isDefaultGrid",null);_.Q([_.H("data.targetId"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"hideChipsBarOnWatch",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nb.prototype,"onIsShortsGridChange",null);
_.Q([_.H("data.enableContentSpecificAspectRatio"),_.F(),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Nb.prototype,"force16By9ThumbnailAspectRatio",null);_.Q([_.H("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],Nb.prototype,"continuationTriggerOffset",null);_.Q([_.u({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Nb);
_.D(Nb,"ytd-rich-grid-renderer",function(){if(hT0!==void 0)return hT0;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return hT0=W},{mode:2});var QiY=_.m(function(W){var B=W.thumbsUp,z=W.thumbsDown,G=W.rightAlignThumbs;W=_.A(_.g4(!1,void 0,"OxPsH"));var Y=W.next().value,d=W.next().value;W=_.A(_.g4(!1,void 0,"V5vWne"));var E=W.next().value,v=W.next().value;W={};return _.w("div",{class:_.kG("ytwThumbsUpDownThumbs",(W.ytwThumbsUpDownRightAlign=function(){return G==null?void 0:G()},W))},_.w(_.Y1,{data:B,
onToggle:function(c){d(c);E()&&v(!1)},
buttonShapeOverrides:function(){return{toggled:Y()}}}),_.w(_.Y1,{data:z,
onToggle:function(c){v(c);Y()&&d(!1)},
buttonShapeOverrides:function(){return{toggled:E()}}}))},"ik");
QiY.idomCompat=!0;var qHi=_.m(function(W){var B=function(){return W.data().pendingStateEntityKey||""},z=_.hg(_.TCi,B),G=function(){var v;
if(!(v=W.disabled())){var c;v=!((c=z())==null||!c.isPendingResponse)}return v},Y=_.A(_.g4(BCi(""),void 0,"NwQXfe")),d=Y.next().value,E=Y.next().value;
_.bk(function(){requestAnimationFrame(function(){var v=W.data().onShowAnimationMs||0;v=v>0?BCi("--chip-animation-duration: "+v+"ms;"):BCi("");E(v)})});
return _.w("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:d},_.w(_.IJ,{each:function(){return W.data().chipData||[]},
keyBy:"REFERENCE"},function(v){return _.w(y3i,{data:v,disabled:G,pendingStateKey:B,onError:W.onError})}))},"jk"),y3i=_.m(function(W){var B=_.ag("button"),z=_.A(_.g4(!0,void 0,"G4GPGe")),G=z.next().value,Y=z.next().value,d=function(){return W.data().text.content},E=function(){return W.data().transparentWhenLoading},v=_.lF(function(c){var J,g,t,P,Z,l,b,O;
return _.T(function(K){switch(K.nextAddress){case 1:c.stopPropagation();if(W.disabled())return K.return();g=String(Math.floor(((J=_.ru())==null?void 0:J.getCurrentTime())||0)*1E3);t="youchat-"+Date.now();P=function(){_.L8(W.data().onClick||{});var e={continuationCommand:{token:W.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},a={inputComposerFormData:{clientMessageId:t,playerOffsetMs:g}};return new Promise(function(q,n){_.L8(e,{form:{formData:a},commandController:{onSuccess:function(L,
By){q(By)},
onServerError:function(L,By){n(By.error)}}})})};
Z=_.vSO(W.pendingStateKey());Z(!0);_.ypq("#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");Y(!1);_.kA(K,2);return K.yield(P(),4);case 4:_.Nn(K,3);break;case 2:l=_.h6(K),(O=(b=W).onError)==null||O.call(b,l);case 3:Z(!1),_.HG(K)}})});
return _.w(_.V,{cond:G,then:function(){return _.w("div",{class:"ytwYouChatChipsDataChipWrapper"},_.w("button",{el:B,class:"ytwYouChatChipsDataChip","data-disabled":W.disabled,"data-transparent-loading":E,"on:click":v,tabindex:0},d))}})},"kk");var nSi=_.m(function(W){var B=W.data;var z=W.initiallyExpanded;var G=function(){var J;return(J=B().conversationResourceData)==null?void 0:J.learningGuideData};
W=_.A(_.IK(function(){var J;return(J=z==null?void 0:z())!=null?J:!1}));
var Y=W.next().value,d=W.next().value,E=function(){d(!0)},v=_.r4(function(){var J,g;
return(g=(J=G())==null?void 0:J.sections)!=null?g:[]},void 0,"aPRmH"),c=_.r4(function(){return v().length>4},void 0,"PUPDyc");
W=_.r4(function(){var J;return!Y()&&c()&&(J=G())!=null&&J.expandButton?v().slice(0,4):v()},void 0,"wUz4Ud");
return _.w("yt-conversation-resource-view-model",{class:_.kG("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.w(_.Sc,{data:W},{expandableMetadataViewModel:_.$Z1}),_.w(_.V,{cond:function(){return c()&&!Y()},
then:function(){return _.w("div",{id:"showMoreButton"},_.w(_.Sc,{data:function(){var J;return(J=G())==null?void 0:J.expandButton}},{buttonViewModel:function(J){return _.w(_.ex,{data:J.data,
onClick:E})}}))}}))},"lk");var NCO=_.m(function(W){var B=function(){var e;return(e=W.data().text)==null?void 0:e.content},z=function(){var e,a;
return(e=W.data().webData)==null?void 0:(a=e.textResult)==null?void 0:a.content},G=_.dO().resolve(_.py),Y=_.k2(),d=function(){return W.data().chatResponseStyle},E=function(){return!W.data().transparentBackground},v=function(){return W.data().rightAlignThumbs},c=function(){return W.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||W.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},J=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:c()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:W.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},g=function(){var e;
return W.data().webData||((e=W.data().text)==null?void 0:e.content)||W.data().videoResultsData||W.data().conversationResourceViewModel||W.data().quiz||W.data().richContent},t=function(){return!!W.data().sectionHeader||g()},P=function(){var e;
return(e=W.data().videoResultsData)==null?void 0:e.videoShelf},Z=function(){var e;
return(e=W.data().webData)==null?void 0:e.sourcesShelf},l=function(){return d()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||d()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:W.data().thumbsDownViewModel&&W.data().thumbsUpViewModel},b=function(){return _.k(W.data().thumbsUpViewModel,_.Jw)},O=function(){return _.k(W.data().thumbsDownViewModel,_.Jw)};
_.bk(function(){requestAnimationFrame(function(){var e;(e=W.shouldAnimateIcon)!=null&&e.call(W)&&c36(Y.lottieEl)})});
var K={};return _.w("you-chat-item-view-model",{class:_.kG("ytwYouChatItemViewModelYouChatItemViewModel",(K.ytwYouChatItemViewModelColumnLayout=function(){return c()},K)),
"data-target-id":function(){return W.data().id||""}},_.w(_.V,{cond:function(){return W.data().removeIcon?!1:t()},
then:function(){var e={};return _.w("div",{"aria-hidden":"true"},_.w(_.q8,{className:_.kG("ytwYouChatItemViewModelIcon",(e.ytwYouChatItemViewModelRtl=G==="rtl",e.ytwYouChatItemViewModelHidden=function(){return!(W.data().hideIcon||d()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||d()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:t())},e)),
animationName:"YOUCHAT_ICON",data:J,animationRef:Y}))}}),_.w(_.V,{cond:t,
then:function(){var e={};return _.w("div",{class:_.kG("ytwYouChatItemViewModelHost",(e.ytwYouChatItemViewModelHostNoPadding=function(){return!!W.data().sectionHeader&&!g()},e.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return d()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},e.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return d()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},e.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return d()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
e.ytwYouChatItemViewModelGradientBackground=E,e)),
role:"alert"},_.w(_.V,{cond:B,then:function(a){return _.w(_.tl,{text:a,wrapCodeBlocks:!0})}}),_.w(_.Sc,{data:function(){return W.data().sectionHeader}},{sectionHeaderViewModel:function(a){var q={};
return _.w(_.DC,{data:a.data,className:_.kG("ytwYouChatItemViewModelSectionHeader",(q.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!W.data().sectionHeader&&!g()},q))})}}),_.w(_.V,{cond:z,
then:function(a){return _.w(_.tl,{text:a,wrapCodeBlocks:!0})}}),_.w(_.V,{cond:P,
then:function(){return _.w("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.w(_.Sc,{data:function(){var a;return(a=W.data().videoResultsData)==null?void 0:a.videoShelf}},{horizontalShelfViewModel:function(a){return _.w(_.VC,{data:a.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.w(_.V,{cond:Z,
then:function(){return _.w("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.w(_.Sc,{data:function(){var a;return(a=W.data().webData)==null?void 0:a.sourcesShelf}},{horizontalShelfViewModel:function(a){return _.w(_.VC,{data:a.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.w(_.Sc,{data:function(){return W.data().conversationResourceViewModel}},{conversationResourceViewModel:nSi}),_.w(_.Sc,{data:function(){return W.data().quiz}},{learningJourneyQuizViewModel:_.iv9}),_.w(_.Sc,{data:function(){return W.data().richContent}},{cardViewModel:DyK}),_.w(_.V,{cond:l,
then:function(){return _.w(QiY,{thumbsUp:b,thumbsDown:O,rightAlignThumbs:v})}}))}}),_.w(_.V,{cond:function(){return W.data().chipsData},
then:function(e){return _.w(qHi,{data:e,disabled:W.pending,onError:W.onError})}}))},"mk");
NCO.idomCompat={callbacks:{onError:!0,onSend:!0}};var $y0=_.m(function(W){var B=function(){return W.data().choiceSelectedText},z=function(){return W.data().hasGradientBackground},G={};
return _.w("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.w(_.V,{cond:B,then:function(){return _.w("div",{class:"ytYouChatUserTurnChoiceSelected"},_.w(_.r0,{text:B}))}}),_.w("div",{class:_.kG("ytYouChatUserTurnUserMessage",(G.ytYouChatUserTurnGradientContainer=z,G.ytYouChatUserTurnDefaultContainer=function(){return!z()},G))},function(){return W.data().text}))},"nk");var LV6=_.m(function(W){var B=_.A((0,_.SQD)(W.data)).next().value;return _.w("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return W.data().targetId||""}},_.w(_.Sc,{data:function(){return W.data().header}},{chipBarViewModel:_.okM}),_.w(_.Sc,{data:function(){return B().contents}},{accordionViewModel:_.cp7,
alertBannerViewModel:_.OHF,chatLoadingViewModel:_.w0q,chatUserTurnViewModel:$y0,learningJourneyLoaderViewModel:_.YCF,lockupViewModel:function(z){return _.w(_.eh,{data:z.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:W.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
videoOverviewViewModel:_.rp7,youChatItemViewModel:function(z){return _.w(NCO,{data:z.data,pending:!1})}}))},"ok");_.Vm(_.m(function(W){var B=_.A((0,_.SQD)(W.data)).next().value,z=_.LG("yt-section-list-renderer"),G=_.A(_.g4(void 0,void 0,"boqAXd")),Y=G.next().value,d=G.next().value,E=function(){var v;return _.k((v=W.data().sectionListLayoutConfiguration)==null?void 0:v.layoutConfiguration,tOn)};
_.jD(function(){var v,c=(v=z.value)==null?void 0:v.clientWidth;if(E()){v=E();var J=v.responsiveSize;c=c<528?"CONTAINER_SIZE_NARROW":c<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var g=_.A(v.responsiveMap||[]);for(var t=g.next();!t.done;t=g.next())if(t=t.value,t.containerSize===c){g=t.containerType;break b}g=void 0}if(g&&J){b:{if(g==="CONTAINER_TYPE_VERTICAL_LIST")if(J==="RESPONSIVE_SIZE_STANDARD"){if(c!=="CONTAINER_SIZE_NARROW"){t="50%";break b}}else{t=c==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}t=void 0}v={responsiveSize:J,containerSize:c,containerType:g,force16By9ThumbnailAspectRatio:!v.enableContentSpecificAspectRatio,contentPreviewWidth:t,fullbleed:(g==="CONTAINER_TYPE_VERTICAL_LIST"||g==="CONTAINER_TYPE_GRID")&&c==="CONTAINER_SIZE_NARROW"&&!1}}else v=void 0}else v=void 0;d(v)});
return _.w("yt-section-list-renderer",{class:_.kG("ytSectionListRendererHost",W.className),el:z,"data-target-id":function(){return W.data().targetId||""}},_.w(_.Sc,{data:function(){return B().contents}},{itemSectionRenderer:function(v){return _.w(LV6,{data:v.data,
containerLayoutConfig:Y})}}))},"pk"),"yt-section-list-renderer",{props:{data:_.kz,
className:_.wS}});var Uyq;var MOf;var aw0=function(){return _.S.apply(this,arguments)||this};
_.C(aw0,_.S);_.Q([_.F(),_.y("design:type",Object)],aw0.prototype,"data",void 0);_.Q([_.NJ({is:"yt-alert-renderer",disableElementRegistration:!0})],aw0);
_.D(aw0,"yt-alert-renderer",function(){if(MOf===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Uyq===void 0&&(Uyq=document.createElement("template"));var G=Uyq;z.call(B,G.content.cloneNode(!0),W.content.firstChild);MOf=W}W=MOf;return W},{mode:2});
}catch(e){_._DumpException(e)}
try{
var aIn;aIn=function(W,B,z,G){z||(W?G&&(G.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||G.WINDOW_SIZE_CHANGED&&(B.width!==window.innerWidth||B.height!==window.innerHeight)||G.SAFARI_ABORTED_BY_NEW_TRANSITION&&W instanceof DOMException&&W.name==="AbortError"&&W.message.includes("Old view transition aborted by new view transition"))||_.jy(W):_.jy(Error("pj")))};
_.Ro0=function(W,B){B=B===void 0?{}:B;var z,G,Y,d,E,v,c,J,g,t,P,Z,l;return _.T(function(b){switch(b.nextAddress){case 1:z=B;G=z.shouldWrap===void 0?!0:z.shouldWrap;Y=z.skipTransitionTimeoutMs===void 0?300:z.skipTransitionTimeoutMs;d=z.beforeTransition;E=z.afterTransition;if(!G||!document.startViewTransition||document.visibilityState==="hidden")return b.return(W());v={width:window.innerWidth,height:window.innerHeight};c=!1;(J=d)==null||J();_.kA(b,2);g=document.startViewTransition(W);t=setTimeout(function(){g.skipTransition();
c=!0},Y);
return b.yield(g.ready,4);case 4:return clearTimeout(t),b.yield(g.finished,5);case 5:clearTimeout(t);(P=E)==null||P();_.Nn(b,0);break;case 2:Z=_.h6(b),(l=E)==null||l(),aIn(Z,v,c,B.ignoredErrors),_.HG(b)}})};
_.WdK=function(W,B,z){W.persistentPanelContainerMap.set(z,B)};
_.gF=function(){for(var W=Array(36),B=0,z,G=0;G<36;G++)G==8||G==13||G==18||G==23?W[G]="-":G==14?W[G]="4":(B<=2&&(B=33554432+Math.random()*16777216|0),z=B&15,B>>=4,W[G]=_.WuQ[G==19?z&3|8:z]);return W.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 BYf=_.ak(['<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>']),
z_O=_.K8F(BYf);z_O.setAttribute("style","display: none;");document.head.appendChild(z_O.content);_.tb=_.Zg8(function(W){var B=_.I0("DIV");W&&(B.className=W);B.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";W=_.I0("DIV");_.OO7(W,"200px","200px");B.appendChild(W);document.body.appendChild(B);W=B.offsetWidth-B.clientWidth;_.o0(B);return W});var GWq;var Ywf;var sq=function(){var W=_.S.apply(this,arguments)||this;W.icon=null;return W};
_.C(sq,_.S);sq.prototype.dismiss=function(){_.v0(this.hostElement,"yt-live-chat-error-message-dismiss")};
sq.prototype.computeIcon=function(W){return W&&W.iconType?"yt-icons:"+W.iconType.toLowerCase():"yt-icons:close"};
_.Q([_.F(),_.y("design:type",Object)],sq.prototype,"data",void 0);_.Q([_.F({computed:"computeIcon(data.icon)"}),_.y("design:type",Object)],sq.prototype,"icon",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],sq);
_.D(sq,"yt-live-chat-error-message-renderer",function(){if(Ywf===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;GWq===void 0&&(GWq=document.createElement("template"));var G=GWq;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Ywf=W}W=Ywf;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var JKN,gYb,tfZ,sjF,kqm,Ii_,oYm,h1Q,HOo,F0m,SbR,Q1,bO3,jjQ,fiQ,OOm,Xn3,K0o,u6F,e13,mfF,xfF,DfF,Qjb,yK3,qb3,nY3,NiF,$fZ,L0Z,Ufb,MfZ,aim,R1b,WFF,Bom,YKN,pbm,imo,Ehm,ToZ,vh_,zmo,G_o,VNb,JZo,ghb,tNN,s3m,cZF,ZmM;JKN=function(W,B){return _.P3(W.entities,"liveReactionsDataEntity",B)};
gYb=function(W,B){W=_.P3(W.entities,"booleanEntity",B);return!(!W||!W.value)};
tfZ=function(W,B){var z=_.m1();z&&W&&_.$q(z,_.XF(W),B)};
sjF=function(W,B){return _.P3(W.entities,"timedMarkersListSyncEntity",B)};
_.P9N=function(W){return W.watch.isWatchActive};
_.ZOR=function(W){return _.Qm(W)||_.ym(W)||_.Oz0(W)};
_.rKo=function(W){return!_.ZOR(W)};
_.Dw=function(W){return W.watch.watchScrollTop};
kqm=function(W){return W.watch.isLiveChatCollapsed};
_.lib=function(){_.r("web_watch_log_theater_mode")&&_.agt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.C9Q=function(W,B,z){if(!W.includes("START_TIME_PLACEHOLDER")||!W.includes("END_TIME_PLACEHOLDER"))return W;var G=new Date(0),Y=new Date(0);G.setUTCMilliseconds(B);Y.setUTCMilliseconds(z);return W.replace("START_TIME_PLACEHOLDER",_.a_(G,7)).replace("END_TIME_PLACEHOLDER",_.a_(Y,7))};
Ii_=function(W,B){return _.P3(W.entities,"booleanEntity",B)};
oYm=function(){return function(W){_.AV(_.bj("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:W}))}};
h1Q=function(W){switch(W){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}};
HOo=function(W,B,z){var G=_.$B(z);W&&B&&G&&W.getPlayerPromise().then(function(Y){_.dCD(G)&&_.bp();(new _.Bl(Y)).executeCommand(G,B);_.r("continue_playback_on_desktop_companion_click")||Y.pauseVideo()})};
F0m=function(W){var B=_.TN(),z;if(z=_.q6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var G;z=(G=z())==null?void 0:G.layoutId}else z=null;HOo(B,z,W)};
SbR=function(W){var B=_.TN(),z;if(z=_.q6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var G;z=(G=z())==null?void 0:G.layoutId}else z=null;HOo(B,z,W)};
Q1=function(W,B){var z=W<0?"-":"";W=Math.abs(W);var G=Math.floor(W/3600),Y=Math.floor(W)%3600,d=Math.floor(Y/60);Y=Math.floor(Y)%60;var E="";(B===void 0?0:B)&&(E="."+Math.round((W-Math.floor(W))*10));return G>0?z+G+":"+(d<10?"0"+d:""+d)+":"+(Y<10?"0"+Y:""+Y)+E:z+d+":"+(Y<10?"0"+Y:""+Y)+E};
bO3=function(W){var B=W.match(/[^0-9:\.]/g);if(B&&B.length>0)return null;W=W.split(":");if(W.length===0||W.length>3)return null;B=1;for(var z=0;W.length>0;){var G=W.pop();if(G===void 0)break;var Y=Number(G);if(G===""||isNaN(Y))return null;z+=Y*B;B*=60}return z};
jjQ=function(W,B,z,G){W=Math.max(z,W);B=Math.min(B,G-z);W+B>G?(z=G,W=z-B):z=W+B;return{start:W,end:z}};
fiQ=function(W,B,z,G,Y,d){W<z?W=z:W+Y>G&&(W=G-Y);B>G&&(B=G);B=Math.min(W+d,Math.max(W+Y,B));return{start:W,end:B}};
OOm=function(W,B,z,G,Y,d){B>G?B=G:B-Y<z&&(B=z+Y);W<z&&(W=z);W=Math.min(B-Y,Math.max(B-d,W));return{start:W,end:B}};
Xn3=function(W){return _.r("web_transcript_cue_id_killswitch")?String(W):"ytd-transcript-renderer_"+W};
K0o=function(W){return _.r("web_transcript_cue_id_killswitch")?!0:W.startsWith("ytd-transcript-renderer")};
u6F=function(W){var B=_.TN(),z;if(z=_.q6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var G;z=(G=z())==null?void 0:G.layoutId}else z=null;HOo(B,z,W)};
e13=function(W){W.style.height="auto";W.style.height=Math.min(W.scrollHeight||20,80)+"px"};
mfF=function(W,B,z){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:B,hasGradientBackground:z}}],insertByPositionInSection:{sectionTargetId:W,position:"INSERTION_POSITION_LAST"}}}]}}}};
xfF=function(W){var B=_.TN(),z;z=(z=_.q6("yt.www.ads.eventcache.getLastCompanionData"))?(z=z())&&z.layoutId:null;HOo(B,z,W)};
DfF=function(W){var B=_.TN(),z;z=(z=_.q6("yt.www.ads.eventcache.getLastCompanionData"))?(z=z())&&z.layoutId:null;HOo(B,z,W)};
Qjb=function(W,B){B=B===void 0?!1:B;if(W.simpleText)W=[{text:W.simpleText}];else{var z;W=((z=W.runs)!=null?z:[]).map(function(G){return Object.assign({},G)})}if(B)for(B=_.A(W),z=B.next();!z.done;z=B.next())z.value.bold=!0;
return W};
yK3=function(W){var B=W.startEndTimeTemplate,z=W.startTimeUtcMillis;W=W.endTimeUtcMillis;if(B&&z&&W)return _.Bg(_.C9Q(_.zR(B),Number(z),Number(W)))};
qb3=function(W,B){var z,G,Y=W==null?void 0:(z=W.viewCount)==null?void 0:(G=z.videoViewCountRenderer)==null?void 0:G.shortViewCount;if(!B&&Y)return Y;var d,E;return W==null?void 0:(d=W.viewCount)==null?void 0:(E=d.videoViewCountRenderer)==null?void 0:E.viewCount};
nY3=function(W,B){var z=W==null?void 0:W.relativeDateText;return!B&&z?[z,!0]:[W==null?void 0:W.dateText,!1]};
NiF=function(W,B,z,G,Y){G=G===void 0?!0:G;Y=Y===void 0?"":Y;var d=qb3(W,B),E=_.A(nY3(W,B)),v=E.next().value;E=E.next().value;B=B?W==null?void 0:W.sponsorsOnlyFirstTimeLongText:W==null?void 0:W.sponsorsOnlyFirstTimeShortText;var c=[];z&&d&&c.push(d);!z&&E||!v||c.push(v);W=[W==null?void 0:W.subtitle].concat(_.u7(c),[B,W==null?void 0:W.stationName,W==null?void 0:W.rating,W?yK3(W):void 0,W==null?void 0:W.upNextProgramText,W==null?void 0:W.superTitleLink]).filter(function(J){return!!J});
z={runs:[]};for(d=0;d<W.length;d++)z.runs.push.apply(z.runs,_.u7(Qjb(W[d],G))),d<W.length-1&&z.runs.push({text:" "+Y+" ",bold:G});return z};
$fZ=function(W){if(W)return{runs:[{text:W,bold:!0}]}};
L0Z=function(W){return W.filter(function(B){return!_.k(B,_.G3)})};
Ufb=function(W){var B,z,G,Y;if(W=W==null?void 0:(B=W.contents)==null?void 0:(z=B.twoColumnWatchNextResults)==null?void 0:(G=z.results)==null?void 0:(Y=G.results)==null?void 0:Y.contents){var d,E;return(E=(d=W.find(function(v){return!!v.videoPrimaryInfoRenderer}))==null?void 0:d.videoPrimaryInfoRenderer)==null?void 0:E.updatedMetadataEndpoint}};
MfZ=function(W,B){var z;return(z=W.sourceConfigs)==null?void 0:z.find(function(G){return G.videoId===B})};
aim=function(W){return W==="End of video"||W==="End of playlist"};
R1b=function(W){var B,z,G,Y;return(B=W.getWatchNextResponse())==null?void 0:(z=B.contents)==null?void 0:(G=z.twoColumnWatchNextResults)==null?void 0:(Y=G.playlist)==null?void 0:Y.playlist};
WFF=function(W){var B,z,G,Y,d,E;return(B=R1b(W))==null?void 0:(z=B.playlistButtons)==null?void 0:(G=z.menuRenderer)==null?void 0:(Y=G.topLevelButtons)==null?void 0:(d=Y[0])==null?void 0:(E=d.playlistLoopButtonRenderer)==null?void 0:E.playlistLoopStateEntityKey};
Bom=function(W){var B=_.dO().resolve(_.wW),z;return(B=(z=_.k(B.getAutoplayEndpoint(),_.W0))==null?void 0:z.playlistId)&&B===W};
YKN=function(W,B,z,G,Y){function d(){_.fg.cancelJob(y1);var E=zmo(B,z/W.getPlaybackRate()),v=E.hours,c=E.minutes;E=(E.seconds*1E3||6E4)/W.getPlaybackRate();W.setVideoTimeLeft(G_o(v,c));G&&W.getPlayerState()!==0&&W.setSleepTimerTimeLeft(G_o(v,c,!0));(v>0||c>0)&&!Y&&(y1=_.OM(_.fg,d,E))}
_.fg.cancelJob(y1);y1=_.OM(_.fg,d)};
pbm=function(W,B,z){function G(){_.fg.cancelJob(dZR);var Y=zmo(B,z),d=Y.hours;Y=Y.minutes;var E=6E4/W.getPlaybackRate();if(d>0||Y>0)W.setSleepTimerTimeLeft(G_o(d,Y,!0)),dZR=_.OM(_.fg,G,E)}
_.fg.cancelJob(dZR);dZR=_.OM(_.fg,G)};
imo=function(W,B){var z=W.getVolume()/(B/500),G=function(Y){_.fg.cancelJob(AZb);var d=Math.floor(Y-z);W.setVolume(d,!1);d>0&&(AZb=_.OM(_.fg,function(){G(d)},500))};
_.fg.cancelJob(AZb);AZb=_.OM(_.fg,function(){G(W.getVolume())})};
Ehm=function(W,B){_.fg.cancelJob(AZb);B&&W.syncVolume()};
ToZ=function(){var W={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.kq("SLEEP_TIMER_DISRUPTED")}}}}};_.dO().resolve(_.p4).resolveCommand(W)};
vh_=function(W){return(W.getDuration()-W.getProgressState().current)*1E3};
zmo=function(W,B){W=W+B-(0,_.Yb)();if(W<=0)return{hours:0,minutes:0,seconds:0};var z=new cZF(0,0,0,0,0,0,W);W=z.getHours();B=z.getMinutes();z=z.getSeconds();z!==0&&B++;B!==0&&B%60===0&&(W++,B=0);return{hours:W,minutes:B,seconds:z}};
G_o=function(W,B,z){return W>0&&B>0?z?_.kq("TIME_LEFT_HOURS_MINUTES",{hours:W.toString(),minutes:B.toString()}):_.kq("TIME_HOURS_MINUTES",{hours:W.toString(),minutes:B.toString()}):W>0?z?_.lH("TIME_LEFT_HOURS",W):_.lH("TIME_HOURS",W):z?_.kq("TIME_LEFT_MINUTES",{minutes:B.toString()}):_.kq("TIME_MINUTES",{minutes:B.toString()})};
VNb=function(W,B){if(W.timelyActions)return W.timelyActions.find(function(z){var G;return((G=_.k(z,wbF))==null?void 0:G.cueRangeId)===B})};
JZo=function(W){var B=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.C_(W);W.keyMap_.forEach(function(z,G){_.xt(B,G)||this.remove(G)},W)};
ghb=function(W,B){W.reloadContinuationItemsCommandMatcher=B};
_.qy=function(W,B){W.insertBefore(B,W.childNodes[0]||null)};
tNN=function(W){if(W>=48&&W<=57||W>=96&&W<=106||W>=65&&W<=90||_.ts&&W==0)return!0;switch(W){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 _.gb;default:return!1}};
s3m=function(W){if(W.altKey&&!W.ctrlKey||W.metaKey||W.keyCode>=112&&W.keyCode<=123)return!1;if(tNN(W.keyCode))return!0;switch(W.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!_.gb;default:return W.keyCode<166||W.keyCode>183}};
cZF=function(W,B,z,G,Y,d,E){this.date=typeof W==="number"?new Date(W,B||0,z||1,G||0,Y||0,d||0,E||0):new Date(W&&W.getTime?W.getTime():_.EL())};
_.TC(cZF,_.yX);_.p=cZF.prototype;_.p.getHours=function(){return this.date.getHours()};
_.p.getMinutes=function(){return this.date.getMinutes()};
_.p.getSeconds=function(){return this.date.getSeconds()};
_.p.getMilliseconds=function(){return this.date.getMilliseconds()};
_.p.getUTCDay=function(){return this.date.getUTCDay()};
_.p.getUTCHours=function(){return this.date.getUTCHours()};
_.p.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.p.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.p.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.p.setHours=function(W){this.date.setHours(W)};
_.p.setMinutes=function(W){this.date.setMinutes(W)};
_.p.setSeconds=function(W){this.date.setSeconds(W)};
_.p.setMilliseconds=function(W){this.date.setMilliseconds(W)};
_.p.setUTCHours=function(W){this.date.setUTCHours(W)};
_.p.setUTCMinutes=function(W){this.date.setUTCMinutes(W)};
_.p.setUTCSeconds=function(W){this.date.setUTCSeconds(W)};
_.p.setUTCMilliseconds=function(W){this.date.setUTCMilliseconds(W)};
_.p.add=function(W){_.yX.prototype.add.call(this,W);W.hours&&this.setUTCHours(this.date.getUTCHours()+W.hours);W.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+W.minutes);W.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+W.seconds)};
_.p.JSC$11332_toIsoString=function(W){var B=_.yX.prototype.JSC$11332_toIsoString.call(this,W);return W?B+"T"+_.gw(this.getHours(),2)+":"+_.gw(this.getMinutes(),2)+":"+_.gw(this.getSeconds(),2):B+"T"+_.gw(this.getHours(),2)+_.gw(this.getMinutes(),2)+_.gw(this.getSeconds(),2)};
_.p.equals=function(W){return this.getTime()==W.getTime()};
_.p.toString=function(){return this.JSC$11332_toIsoString()};
_.p.clone=function(){var W=new cZF(this.date);W.firstDayOfWeek_=this.firstDayOfWeek_;W.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return W};
_.PQo=function(W){return _.Tl({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:W}})};
ZmM=new _.J1("imageTileRenderer");var rZM=new _.J1("adGridCardCollectionViewModel");var k_Z=new _.J1("carouselTitleViewModel");var lR3=new _.J1("ctaCarouselItemViewModel");var CQ3=new _.J1("textFieldViewModel");_.IRR=new _.J1("engagementPanelHeaderShowNavigationButtonCommand");var oh_=new _.J1("hideEngagementPanelScrimAction");var hmF=new _.J1("setActivePanelItemAction");var HmF=new _.J1("showEngagementPanelScrimAction");var FFZ=new _.J1("updateEngagementPanelAction");var SK3=new _.J1("updateSearchInVideoResultsAction");var bmM=new _.J1("transcriptCueGroupRenderer");var j3o=new _.J1("transcriptCueRenderer");var fRh=new _.J1("transcriptFooterRenderer");var Omh=new _.J1("engagementPanelAdSubtitleRenderer");var XbM=new _.J1("videoDescriptionFantasySectionViewModel");var KFo=new _.J1("deleteClipEngagementPanelCommand");var uMb=new _.J1("loopCommand");var emF=new _.J1("changeCreatorEndscreenVisibilityCommand");var mZ_=new _.J1("liveChatCallForQuestionsRenderer");var xZN=new _.J1("updateTimedMarkersSyncObserverCommand");var wbF=new _.J1("timelyActionViewModel");var DZ3=new _.J1("timelyActionsOverlayViewModel");var Q3R=new _.J1("repeatChapterCommand");var yZM=new _.J1("watchPlayerOverflowMenuCommand");var qKK=new _.J1("compositeVideoOverlayRenderer");var nhN=new _.J1("sortFilterSubMenuRenderer");var No3=new _.J1("switchListItemViewModel");var $Zm=new _.J1("inputComposerViewModel");var LFZ=new _.J1("transcriptEditSegmentCommand");var UZ3=new _.J1("transcriptUpdateSegmentTextCommand");var MNZ=new _.J1("transcriptSearchBoxRenderer");var aRF=new _.J1("transcriptSegmentListRenderer");var RmN=new _.J1("transcriptSegmentRenderer");_.WD3=new _.J1("updateDateTextAction");var BjN=new _.J1("updateTitleAction");var z6K=new _.J1("updateViewershipAction");var Gdb=new _.J1("carouselLockupRenderer");var nT=new _.J1("expandableVideoDescriptionBodyRenderer");var Y0N=new _.J1("videoDescriptionHeaderRenderer");var dkm=new _.J1("videoDescriptionYouchatSectionViewModel");_.Ny=_.iO("kevlar_watch_page_horizontal_margin",24);_.pGR=_.iO("kevlar_watch_page_columns_top_padding",24);_.A6N=426+_.Ny*2;_.$S=_.iO("kevlar_watch_two_column_width_threshold",1E3);_.iNQ=_.Ny*2;_.EA3=_.iO("kevlar_watch_secondary_width",402);_.Tj3=_.iO("kevlar_watch_max_player_width",1280);_.vAN=_.iO("kevlar_watch_flexy_metadata_height",136);_.c6b=_.iNQ+310+_.Ny;_.wGR=_.iNQ+360+_.Ny;var VFF={PAUSE_CHAT:18};var J6o;var gAZ;var LT=function(){return _.S.apply(this,arguments)||this};
_.C(LT,_.S);LT.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
LT.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var W=_.k(this.data.button,_.wP);W&&(W.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.G5.Object.defineProperties(LT,{template:{configurable:!0,enumerable:!0,get:function(){if(gAZ===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;J6o===void 0&&(J6o=document.createElement("template"));var G=J6o;z.call(B,G.content.cloneNode(!0),W.content.firstChild);gAZ=W}W=gAZ;return W}}});
_.Q([_.h(_.c7),_.y("design:type",Object)],LT.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],LT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F({selectorArgs:["data.enabledEntityKey"],selector:gYb,observer:"onEnabledChange"}),_.y("design:type",Boolean)],LT.prototype,"enabled",void 0);_.Q([_.F(),_.y("design:type",Object)],LT.prototype,"data",void 0);_.Q([_.NJ({is:"yt-disableable-button-view-model",noInjection:!0})],LT);var tFQ;var sRN;var P7K=["transVert01","transVert02","transVert03"],ZNN="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),UH=function(){var W=_.S.apply(this,arguments)||this;W.emojiManager=_.gN;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};W.reactionBuckets=[];W.noEmojiIdentifier="NO_EMOJI";return W};
_.C(UH,_.S);_.p=UH.prototype;_.p.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.p.desktopFountainEmojiSizePxChanged=function(){_.kw(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.p.createUserReactionAnimation=function(W){this.createEmojiAnimation(W,!0)};
_.p.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var W;((W=this.data)==null?0:W.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.bj("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.u7(this.emojiContainer.children)).forEach(function(B){B.remove()})};
_.p.detached=function(){this.cleanupFountain()};
_.p.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var W;this.reactionBuckets=_.mP.unsafeClone((W=this.emojiFountainData)==null?void 0:W.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.p.processEmojiBucket=function(W){var B=this;if(this.reactionBuckets&&!(W>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var z=this.reactionBuckets[W];this.generateEmojiAnimations(z);if(W<this.reactionBuckets.length-1){var G;if(z==null?0:(G=z.duration)==null?0:G.seconds)this.emojiBucketTimerId=setTimeout(function(){B.processEmojiBucket(W+1)},Number(z.duration.seconds)*1E3)}}};
_.p.generateEmojiAnimations=function(W){var B=this,z=this.getRandomEmojiIdFromBucketWithOverride(W);if(z&&z!==this.noEmojiIdentifier){var G=0;W.targetEps?(G=this.linearInterpolateBounded(1,20,100,12,W.emojiSizeIndex||0),this.createEmojiAnimation(z,!1,W.emojiAnimationMs,G),G=this.getEmojiDelayMsFromTargetEps(W.targetEps)):(this.createEmojiAnimation(z),G=this.getEmojiDelayMsFromDistribution(W.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){B.generateEmojiAnimations(W)},G)}};
_.p.getRandomEmojiIdFromBucketWithOverride=function(W){if(!(W&&W.reactionsData&&W.reactionsData.length&&W.totalReactions))return this.noEmojiIdentifier;for(var B=W.totalReactions,z=1,G=_.A(W.reactionsData),Y=G.next();!Y.done;Y=G.next())Y=Y.value,(Y.reactionWeightOverride||Y.reactionWeightOverride===0)&&Y.reactionCount&&(B-=Y.reactionCount,z-=Y.reactionWeightOverride);G=!0;z<0&&(G=!1,B=W.totalReactions,z=1);if(G&&z>0&&B===0)if(z===1){Y=0;for(var d=_.A(W.reactionsData),E=d.next();!E.done;E=d.next())E=
E.value,E.reactionCount&&E.reactionCount>0&&Y++;Y=1/Y;d=_.A(W.reactionsData);for(E=d.next();!E.done;E=d.next())E.value.reactionWeightOverride=Y}else for(Y=1/(1-z),d=_.A(W.reactionsData),E=d.next();!E.done;E=d.next())E=E.value,E.reactionWeightOverride&&(E.reactionWeightOverride*=Y);Y=Math.random();d=0;E=_.A(W.reactionsData);for(var v=E.next();!v.done;v=E.next())if(v=v.value,v.reactionCount&&(d=(v.reactionWeightOverride||v.reactionWeightOverride===0)&&G?d+v.reactionWeightOverride:d+z*v.reactionCount/
B,d>Y&&(v.reactionCount--,W.totalReactions--,v=this.reactionItemToEmojiString(v),v!==this.noEmojiIdentifier)))return v;return this.noEmojiIdentifier};
_.p.reactionItemToEmojiString=function(W){if(W.unicodeEmojiId)return W.unicodeEmojiId;if(W.emoteId)return W.emoteId;if(W.videoReactionType)switch(W.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.p.createEmojiAnimation=function(W,B,z,G){B=B===void 0?!1:B;this.lastEmojiRequestedForTesting=W;var Y=W.startsWith("yt-icons:"),d=_.VF(this.emojiManager,W);if(d||Y){var E=document.createElement("emoji");E.classList.add("yt-emoji-fountain-view-model");E.classList.add(P7K[Math.floor(Math.random()*P7K.length)]);var v=document.createElement("div");v.classList.add("yt-emoji-fountain-view-model");v.classList.add("horizontal-container");v.classList.add(ZNN[Math.floor(Math.random()*ZNN.length)]);B?(z=document.createElement("div"),
z.classList.add("user-reaction-bubble"),z.classList.add("yt-emoji-fountain-view-model"),v.appendChild(z)):(z&&(E.style.animationDuration=z+"ms",v.style.animationDuration=z+"ms"),G&&(E.style.width=G+"px",E.style.height=G+"px"));Y?(Y=document.createElement("yt-icon"),Y.polymerController.icon=W,G&&(Y.style.width=G+"px",Y.style.height=G+"px"),W=Y):W=this.emojiManager.createEmoji(d,!1);W.classList.add("yt-emoji-fountain-view-model");v.appendChild(W);E.appendChild(v);this.emojiContainer.appendChild(E);
E.addEventListener("animationend",function(){E.remove()});
var c,J;if((c=this.data)==null?0:(J=c.loggingDirectives)==null?0:J.trackingParams)B=B?_.PA(183501):_.PA(183500),tfZ(this.data.loggingDirectives.trackingParams,B),_.Du2(B);setTimeout(function(){E&&E.remove()},2E3)}};
_.p.getEmojiDelayMsFromDistribution=function(W){return Math.random()*(W||1)*1E3};
_.p.getEmojiDelayMsFromTargetEps=function(W){return Math.random()*2*(1/W)*1E3};
_.p.linearInterpolateBounded=function(W,B,z,G,Y){Y=Math.min(Math.max(Y,W),z);return(B*(z-Y)+G*(Y-W))/(z-W)};
UH.prototype.onEmojiFountainDataEntityUpdate=UH.prototype.onEmojiFountainDataEntityUpdate;UH.prototype.desktopFountainEmojiSizePxChanged=UH.prototype.desktopFountainEmojiSizePxChanged;UH.prototype.isActiveChanged=UH.prototype.isActiveChanged;_.Q([_.F(),_.y("design:type",_.wN)],UH.prototype,"emojiManager",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.c7),_.y("design:type",Object)],UH.prototype,"ytLiveChatReduxBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],UH.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],UH.prototype,"data",void 0);_.Q([_.F({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(W,B){return _.P3(W.entities,"emojiFountainDataEntity",B)}}),
_.y("design:type",Object)],UH.prototype,"emojiFountainData",void 0);_.Q([_.F(),_.y("design:type",Boolean)],UH.prototype,"isActive",void 0);_.Q([_.oN("isActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UH.prototype,"isActiveChanged",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],UH.prototype,"isDarkTheme",void 0);_.Q([_.F(),_.y("design:type",String)],UH.prototype,"lastEmojiRequestedForTesting",void 0);
_.Q([_.F({value:function(){return _.iO("desktop_fountain_emoji_size_px",20)}}),
_.y("design:type",Number)],UH.prototype,"desktopFountainEmojiSizePx",void 0);_.Q([_.oN("desktopFountainEmojiSizePx"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UH.prototype,"desktopFountainEmojiSizePxChanged",null);_.Q([_.Hf("#emoji-container"),_.y("design:type",HTMLElement)],UH.prototype,"emojiContainer",void 0);
_.Q([_.oN("emojiFountainData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UH.prototype,"onEmojiFountainDataEntityUpdate",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],UH);
_.D(UH,"yt-emoji-fountain-view-model",function(){if(sRN===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;tFQ===void 0&&(tFQ=document.createElement("template"));var G=tFQ;z.call(B,G.content.cloneNode(!0),W.content.firstChild);sRN=W}W=sRN;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var r6K;var kdN;var My=function(){return _.S.apply(this,arguments)||this};
_.C(My,_.S);My.prototype.onChoiceChanged=function(){this.data&&_.kw(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
My.prototype.onChoiceChanged=My.prototype.onChoiceChanged;_.Q([_.F(),_.y("design:type",Object)],My.prototype,"data",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],My.prototype,"onChoiceChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],My);
_.D(My,"yt-live-chat-banner-poll-choice",function(){if(kdN===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;r6K===void 0&&(r6K=document.createElement("template"));var G=r6K;z.call(B,G.content.cloneNode(!0),W.content.firstChild);kdN=W}W=kdN;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var l1h;var C7m;var ai=function(){var W=_.S.apply(this,arguments)||this;W.modern=_.r("web_button_rework_with_live");W.small=!1;return W};
_.C(ai,_.S);ai.prototype.computeIsSmall=function(){var W;return((W=this.buttonOverrides)==null?void 0:W.size)==="S"};
ai.prototype.computeId=function(){return this.data&&this.data.targetId};
_.Q([_.h(_.w0.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],ai.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Q([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.y("design:type",String)],ai.prototype,"id",void 0);_.Q([_.F(),_.y("design:type",Object)],ai.prototype,"buttonOverrides",void 0);_.Q([_.F(),_.y("design:type",Object)],ai.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],ai.prototype,"modern",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.y("design:type",Object)],ai.prototype,"small",void 0);_.Q([_.u({disableElementRegistration:!0,is:"yt-live-chat-button"})],ai);
_.D(ai,"yt-live-chat-button",function(){if(C7m===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;l1h===void 0&&(l1h=document.createElement("template"));var G=l1h;z.call(B,G.content.cloneNode(!0),W.content.firstChild);C7m=W}W=C7m;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var I1Z;var oAm;var Ri=function(){var W=_.S.apply(this,arguments)||this;W.inCollapsedBanner=!1;W.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};W.questionButtonOverrides={style:"mono",type:"filled"};return W};
_.C(Ri,_.S);_.p=Ri.prototype;_.p.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]]"}}}}}};
_.p.onContextMenuButtonClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
_.p.onYtRendererstamperFinished=function(){this.menuButton=_.tH(this.hostElement).querySelector("#menu-button")};
_.p.dataChanged=function(){var W,B;if((B=_.k((W=this.data)==null?void 0:W.overflowMenuButton,_.Ep))==null?0:B.command)this.data.contextMenuEndpoint=_.k(this.data.overflowMenuButton,_.Ep).command};
_.p.onButtonClick=function(){var W,B=_.k((W=this.data)==null?void 0:W.askQuestionButton,_.Ep);if(B){if(B.trackingParams&&(W=_.XF(B.trackingParams))){var z=_.m1();z&&_.RP(z,W)}_.v0(this.hostElement,"innertube-command",B.command)}};
Ri.prototype.onYtRendererstamperFinished=Ri.prototype.onYtRendererstamperFinished;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c7),_.y("design:type",Object)],Ri.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],Ri.prototype,"ytLiveChatItemBehavior",void 0);_.Q([_.F({observer:"dataChanged"}),_.y("design:type",Object)],Ri.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ri.prototype,"inCollapsedBanner",void 0);_.Q([_.F(),_.y("design:type",Object)],Ri.prototype,"buttonOverrides",void 0);_.Q([_.F(),_.y("design:type",Object)],Ri.prototype,"questionButtonOverrides",void 0);_.Q([_.IN("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ri.prototype,"onYtRendererstamperFinished",null);
_.Q([_.u({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Ri);
_.D(Ri,"yt-live-chat-call-for-questions-renderer",function(){if(oAm===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;I1Z===void 0&&(I1Z=document.createElement("template"));var G=I1Z;z.call(B,G.content.cloneNode(!0),W.content.firstChild);oAm=W}W=oAm;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var h6Q={};h6Q.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 W=this;window.requestAnimationFrame(function(){W.restoreFocusNode_||(W.restoreFocusNode_=document.activeElement);var B=_.vnD(W.hostElement);B.length&&B[B.length-1].focus()})},
isAttachedChanged_:function(W,B){W?this.focusChild_():B&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(W){this.hidden||_.AH(W).indexOf(this.hostElement)!==-1||(W.stopPropagation(),this.focusChild_())}};var HNb;var FD_;var Wu=function(){return _.S.apply(this,arguments)||this};
_.C(Wu,_.S);Wu.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Wu.prototype.onClick=function(W){W.target!==this.confirmButton&&W.target!==this.cancelButton&&(this.hidden=!0)};
_.Q([_.Hf("#confirm_button"),_.y("design:type",Object)],Wu.prototype,"confirmButton",void 0);_.Q([_.Hf("#cancel_button"),_.y("design:type",Object)],Wu.prototype,"cancelButton",void 0);_.Q([_.F(),_.y("design:type",S0K)],Wu.prototype,"data",void 0);_.Q([_.F({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],Wu.prototype,"hidden",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Wu.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(h6Q.YtLiveChatDialogBehavior),_.y("design:type",Object)],Wu.prototype,"ytLiveChatDialogBehavior",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Wu);
var S0K=_.D(Wu,"yt-live-chat-dialog-renderer",function(){if(FD_===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;HNb===void 0&&(HNb=document.createElement("template"));var G=HNb;z.call(B,G.content.cloneNode(!0),W.content.firstChild);FD_=W}W=FD_;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var bNN;var jRb,f1F=function(){if(jRb!==void 0)return jRb;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;bNN===void 0&&(bNN=document.createElement("template"));var G=bNN;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return jRb=W};var ONN;var XGN;var Bu=function(){var W=_.S.apply(this,arguments)||this;W.tooltip=null;W.data=null;W.id="";W.active=!1;W.icon="";W.disabled=!1;W.showTooltip=!1;W.useToggledActiveState=!0;W.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return W};
_.C(Bu,_.S);_.p=Bu.prototype;
_.p.dataChanged=function(){var W;((W=this.data)==null?0:W.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,_.r5)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var B;if((B=this.data)==null?0:B.disabled)this.disabled=!0};
_.p.computeId=function(W){return W};
_.p.computeIcon=function(W,B){if(!W)return"";if(this.useToggledActiveState)return"yt-icons:"+W.toLowerCase();var z,G;return B&&((z=this.data)==null?0:(G=z.toggledIcon)==null?0:G.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+W.toLowerCase()};
_.p.logPDGEntryPoint=function(){_.bWy(_.Pg("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")};
_.p.immediatelyShowTooltip=function(){var W=_.tH(this.hostElement).querySelector("#tooltip");W.animationDelay=0;W.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};W.show()};
_.p.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.p.onClick=function(W){var B;((B=this.data)==null?0:B.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(),W.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.v0(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.p.computeShowTooltip=function(W,B){return!!(W&&W.tooltip&&B)};
_.p.maybeUpdateTooltipText=function(){var W=this,B;if((B=this.data)==null?0:B.tooltip){var z=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.r5)(W.tooltip).textContent=z},250)}};
_.p.handleLiveChatActions=function(W){var B=this;W.length&&(this.id!=="creator"&&this.id!=="product-picker"||W.forEach(function(z){(z=B.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",z))&&z.durationSec===z.fullDurationSec&&B.startBubble(B.colorFromDecimal(z.startBackgroundColor))}))};
_.p.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.p.startBubble=function(W){_.kw(this.hostElement,{"--yt-live-chat-monetization-button-glow":W});this.hostElement.setAttribute("bubble","")};
_.p.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.p.colorFromDecimal=function(W){typeof W==="string"&&(W=Number(W));return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
Bu.prototype.onAnimationEnd=Bu.prototype.onAnimationEnd;Bu.prototype.disabledChanged=Bu.prototype.disabledChanged;Bu.prototype.dataChanged=Bu.prototype.dataChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Bu.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.w0.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],Bu.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Bu.prototype,"data",void 0);_.Q([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.y("design:type",Object)],Bu.prototype,"id",void 0);_.Q([_.F({notify:!0,reflectToAttribute:!0}),_.y("design:type",Object)],Bu.prototype,"active",void 0);
_.Q([_.F({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.y("design:type",Object)],Bu.prototype,"icon",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Bu.prototype,"disabled",void 0);_.Q([_.F({computed:"computeShowTooltip(data, disabled)"}),_.y("design:type",Object)],Bu.prototype,"showTooltip",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Bu.prototype,"useToggledActiveState",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bu.prototype,"dataChanged",null);_.Q([_.oN("disabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bu.prototype,"disabledChanged",null);_.Q([_.IN("animationend"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Bu.prototype,"onAnimationEnd",null);
_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Bu);
_.D(Bu,"yt-live-chat-icon-toggle-button-renderer",function(){if(XGN===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;ONN===void 0&&(ONN=document.createElement("template"));var G=ONN;z.call(B,G.content.cloneNode(!0),W.content.firstChild);XGN=W}W=XGN;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var KDR;var uph;var zc=function(){return _.S.apply(this,arguments)||this};
_.C(zc,_.S);zc.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Q([_.F(),_.y("design:type",Object)],zc.prototype,"data",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],zc.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.u({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],zc);
_.D(zc,"yt-live-chat-message-input-prompt-header-renderer",function(){if(uph===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;KDR===void 0&&(KDR=document.createElement("template"));var G=KDR;z.call(B,G.content.cloneNode(!0),W.content.firstChild);uph=W}W=uph;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var e6Z;var mkM;var xkm;var Dkb;var QRm;var y6b;var q0_=function(){return _.S.apply(this,arguments)||this};
_.C(q0_,_.S);_.Q([_.F(),_.y("design:type",Object)],q0_.prototype,"data",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],q0_);
_.D(q0_,"yt-live-chat-message-subtext-renderer",function(){if(y6b===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;QRm===void 0&&(QRm=document.createElement("template"));var G=QRm;z.call(B,G.content.cloneNode(!0),W.content.firstChild);y6b=W}W=y6b;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Gc=function(){var W=_.S.apply(this,arguments)||this;W.subtextOnBottom=!1;W.buttonOverrides={style:"mono",type:"tonal"};return W};
_.C(Gc,_.S);Gc.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"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Gc.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Gc.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Gc.prototype,"subtextOnBottom",void 0);_.Q([_.F(),_.y("design:type",Object)],Gc.prototype,"buttonOverrides",void 0);
_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Gc);
_.D(Gc,"yt-live-chat-message-renderer",function(){if(Dkb===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;xkm===void 0&&(xkm=document.createElement("template"));var G=xkm;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Dkb=W}W=Dkb;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var nAQ;var Njm;var YK=function(){var W=_.S.apply(this,arguments)||this;W.isRemovable=!1;W.hasPrefilledText=!1;W.isInputDirty=!1;W.overCharacterLimit=!1;W.underCharacterLimit=!1;W.showErrorMessage=!1;return W};
_.C(YK,_.S);_.p=YK.prototype;_.p.computeId=function(){return this.data.id};
_.p.computeInputData=function(){return this.data.inputData};
_.p.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.p.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.p.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.p.getLiveChatRichMessageInput=function(){return _.tH(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.p.clearInput=function(){_.tH(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.p.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.p.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.p.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.p.handleTextInputCharCountChanged=function(W){W=W.detail&&W.detail.characterCount;W!==void 0&&(this.characterCount=W,W!==0&&(this.isInputDirty=!0))};
_.p.onInputFocusOut=function(){this.isInputDirty=!0};
_.p.onClickCloseButton=function(){_.v0(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
YK.prototype.handleTextInputCharCountChanged=YK.prototype.handleTextInputCharCountChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],YK.prototype,"data",void 0);_.Q([_.F({computed:"computeId(data.id)"}),_.y("design:type",String)],YK.prototype,"id",void 0);_.Q([_.F({computed:"computeInputData(data.inputData)"}),_.y("design:type",Object)],YK.prototype,"inputData",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.y("design:type",Object)],YK.prototype,"isRemovable",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.y("design:type",Object)],YK.prototype,"hasPrefilledText",void 0);_.Q([_.F({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.y("design:type",Number)],YK.prototype,"charactersRemaining",void 0);
_.Q([_.F(),_.y("design:type",Number)],YK.prototype,"characterCount",void 0);_.Q([_.F(),_.y("design:type",Object)],YK.prototype,"isInputDirty",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.y("design:type",Object)],YK.prototype,"overCharacterLimit",void 0);_.Q([_.F({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.y("design:type",Object)],YK.prototype,"underCharacterLimit",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.y("design:type",Object)],YK.prototype,"showErrorMessage",void 0);_.Q([_.IN("yt-live-chat-text-input-field-renderer-character-count-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],YK.prototype,"handleTextInputCharCountChanged",null);
_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],YK);
_.D(YK,"yt-live-chat-poll-editor-input",function(){if(Njm===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;nAQ===void 0&&(nAQ=document.createElement("template"));var G=nAQ;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Njm=W}W=Njm;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var $k_;var LDb;var Uko={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},d_=function(){var W=_.S.apply(this,arguments)||this;W.modern=_.r("web_button_rework_with_live");W.closeButtonOverrides={iconPosition:"icon-only"};W.startButtonOverrides={style:"mono",type:"filled"};W.addOptionButtonOverrides={style:"mono",type:"text"};return W};
_.C(d_,_.S);_.p=d_.prototype;
_.p.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"}}}}};
_.p.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var W;_.k((W=this.data)==null?void 0:W.startButton,_.Ep)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.p.computeId=function(){return this.data&&this.data.id||""};
_.p.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.p.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.p.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.p.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.p.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var W=0;W<this.pollEditorInfoWithDefaults.minPollOptions;W++)this.addPollOptionData()};
_.p.getIsValidPoll=function(){var W=this;if(!this.pollEditorInfoWithDefaults)return!1;var B=this.pollEditorInfoWithDefaults,z=B.minPollOptionChars,G=B.maxPollOptionChars,Y=B.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>B.maxPollQuestionChars)return!1;B=_.tH(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(B).every(function(d,E){d=d.characterCount;!d&&Y[E]&&(d=W.ytRendererBehavior.getSimpleString(Y[E]).length);return d!==void 0&&d>=z&&d<=G})};
_.p.isValidPollChanged=function(){var W;_.k((W=this.data)==null?void 0:W.startButton,_.Ep)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.p.addPollOptionData=function(){var W=this.pollEditorInfoWithDefaults,B=W.maxPollOptionChars,z=W.optionPlaceholderText,G=W.customOptionPlaceholderText,Y=W.pollOptionData;this.currentNumPollOptions>=W.maxPollOptions||(W={liveChatPollOptionInput:{inputData:{placeholder:G[this.currentNumPollOptions]||z,maxCharacterLimit:B},maxCharacterLimit:B,minCharacterLimit:W.minPollOptionChars,hasPrefilledText:!!G[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=W.minPollOptions}},Y.charCountErrorText&&
(W.liveChatPollOptionInput.charCountErrorText=Y.charCountErrorText),Y.charsRemainingAltLabel&&(W.liveChatPollOptionInput.charsRemainingAltLabel=Y.charsRemainingAltLabel),Y.removeOptionAltText&&(W.liveChatPollOptionInput.removeOptionAltText=Y.removeOptionAltText),this.push("pollOptionsData",W),Y=Array.from(_.tH(_.tH(this.hostElement).querySelector("#poll-options")).children),Y.forEach(function(d,E){d.polymerController.set("data.id",E)}),_.tH(Y[Y.length-1]).querySelector("#input").focus())};
_.p.getPollOptionInputValues=function(){var W=this,B=[],z=_.tH(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),G=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(z).forEach(function(Y,d){var E=null;Y=Y.getLiveChatRichMessageInput();var v;(Y==null?0:(v=Y.textSegments)==null?0:v.length)?E=_.Uv(Y):G[d]&&(E=W.formattedStringToLiveChatRichMessageInput(G[d]));B.push(E)});
return B};
_.p.requestCreateAndStartPoll=function(W){var B=this.getPollOptionInputValues();if(!B.some(function(G){return!G})){B={optionText:B};
var z=_.tH(_.tH(this.hostElement).querySelector("#poll-question")).firstChild;z&&z.liveChatRichMessageInput&&(B.questionText=_.Uv(z.liveChatRichMessageInput));_.V0(this.hostElement,[W,B])}};
_.p.selectedChanged=function(){if(this.selected){var W=_.tH(_.tH(this.hostElement).querySelector("#start-button")).firstElementChild;if(W){var B;(B=_.tH(W).querySelector("#button")||_.sR(W).querySelector("button"))==null||B.focus()}}};
_.p.handleTextInputChanged=function(W){var B;((B=W.target)==null?void 0:B.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=W.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.p.handleStartButtonAction=function(W){W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),(W=W.detail.args[1])&&this.requestCreateAndStartPoll(W))};
_.p.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.p.handleServiceRequestCompleted=function(W){this.createPollRequestInFlight=!1;(W=W.detail&&W.detail.data)&&W.success&&(_.v0(this.hostElement,"picker-cancelled"),_.c0(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.p.onCloseClick=function(){_.v0(this.hostElement,"picker-cancelled");_.c0(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.p.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.p.handlePollEditorInputClosed=function(W){var B=this.pollOptionsData.findIndex(function(z){return z.liveChatPollOptionInput.id===W.detail.id});
this.splice("pollOptionsData",B,1);this.isValidPoll=this.getIsValidPoll()};
_.p.onPickerCancelled=function(){this.reset()};
_.p.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var W=_.tH(_.tH(this.hostElement).querySelector("#poll-question")).firstChild;W&&W.setLiveChatRichMessageInput(null);if(W=_.tH(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){W=_.A(Array.from(W));for(var B=W.next();!B.done;B=W.next())B.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.p.formattedStringToLiveChatRichMessageInput=function(W){return W.simpleText?{text_segments:[W.simpleText]}:{text_segments:W.runs}};
_.G5.Object.defineProperties(d_.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(Uko,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
d_.prototype.onPickerCancelled=d_.prototype.onPickerCancelled;d_.prototype.handlePollEditorInputClosed=d_.prototype.handlePollEditorInputClosed;d_.prototype.handleServiceRequestCompleted=d_.prototype.handleServiceRequestCompleted;d_.prototype.handleServiceRequestSent=d_.prototype.handleServiceRequestSent;d_.prototype.handleTextInputChanged=d_.prototype.handleTextInputChanged;d_.prototype.selectedChanged=d_.prototype.selectedChanged;d_.prototype.isValidPollChanged=d_.prototype.isValidPollChanged;
d_.prototype.shouldInitializePollChanged=d_.prototype.shouldInitializePollChanged;d_.prototype.dataChanged=d_.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],d_.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],d_.prototype,"modern",void 0);
_.Q([_.F(),_.y("design:type",Object)],d_.prototype,"closeButtonOverrides",void 0);_.Q([_.F(),_.y("design:type",Object)],d_.prototype,"startButtonOverrides",void 0);_.Q([_.F(),_.y("design:type",Object)],d_.prototype,"addOptionButtonOverrides",void 0);_.Q([_.F({computed:"computeId(data.id)",reflectToAttribute:!0}),_.y("design:type",String)],d_.prototype,"id",void 0);_.Q([_.F({value:function(){return[]}}),
_.y("design:type",Array)],d_.prototype,"pollOptionsData",void 0);_.Q([_.H("pollEditorInfoWithDefaults"),_.y("design:type",Object),_.y("design:paramtypes",[])],d_.prototype,"pollQuestionData",null);_.Q([_.F({value:0}),_.y("design:type",Number)],d_.prototype,"pollQuestionCharacterCount",void 0);_.Q([_.H("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.y("design:type",Object),_.y("design:paramtypes",[])],d_.prototype,"pollQuestionCharactersRemaining",null);
_.Q([_.F({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.y("design:type",Boolean)],d_.prototype,"overQuestionCharacterLimit",void 0);_.Q([_.H("data.pollEditorInfo"),_.y("design:type",Object),_.y("design:paramtypes",[])],d_.prototype,"pollEditorInfoWithDefaults",null);_.Q([_.F({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.y("design:type",Number)],d_.prototype,"currentNumPollOptions",void 0);
_.Q([_.F({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.y("design:type",Boolean)],d_.prototype,"hasMaxNumPollOptions",void 0);_.Q([_.H("pollEditorInfoWithDefaults","pollOptionsData"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d_.prototype,"shouldInitializePoll",null);_.Q([_.F(),_.y("design:type",Object)],d_.prototype,"isValidPoll",void 0);
_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],d_.prototype,"createPollRequestInFlight",void 0);_.Q([_.F(),_.y("design:type",Object)],d_.prototype,"selected",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.y("design:type",Boolean)],d_.prototype,"showQuestionErrorMessage",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d_.prototype,"dataChanged",null);_.Q([_.oN("shouldInitializePoll"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d_.prototype,"shouldInitializePollChanged",null);_.Q([_.oN("isValidPoll"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d_.prototype,"isValidPollChanged",null);
_.Q([_.oN("selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d_.prototype,"selectedChanged",null);_.Q([_.IN("yt-live-chat-text-input-field-renderer-character-count-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],d_.prototype,"handleTextInputChanged",null);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d_.prototype,"handleServiceRequestSent",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],d_.prototype,"handleServiceRequestCompleted",null);
_.Q([_.IN("yt-live-chat-poll-editor-input-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],d_.prototype,"handlePollEditorInputClosed",null);_.Q([_.IN("picker-cancelled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d_.prototype,"onPickerCancelled",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],d_);
_.D(d_,"yt-live-chat-poll-editor-panel-renderer",function(){if(LDb===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;$k_===void 0&&($k_=document.createElement("template"));var G=$k_;z.call(B,G.content.cloneNode(!0),W.content.firstChild);LDb=W}W=LDb;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var MFQ;var a1N;var p9=function(){return _.S.apply(this,arguments)||this};
_.C(p9,_.S);p9.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
p9.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.G5.Object.defineProperties(p9.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var W,B;return(W=this.data)==null?void 0:(B=W.title)==null?void 0:B.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var W;return _.$B((W=this.data)==null?void 0:W.onTapCommand)}}});
_.Q([_.h(_.Qe.YtEndpointBehavior),_.y("design:type",Object)],p9.prototype,"ytEndpointBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],p9.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],p9.prototype,"itemId",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],p9.prototype,"hasPromotion",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],p9.prototype,"innertubeCommand",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],p9);
_.D(p9,"yt-live-chat-product-picker-panel-item-view-model",function(){if(a1N===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;MFQ===void 0&&(MFQ=document.createElement("template"));var G=MFQ;z.call(B,G.content.cloneNode(!0),W.content.firstChild);a1N=W}W=a1N;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var R6Q;var WP3;var AF=function(){var W=_.S.apply(this,arguments)||this;W.id="product-picker";W.selected=!1;W.closeButtonId="close-button";W.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return W};
_.C(AF,_.S);_.p=AF.prototype;_.p.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.p.observeSelected=function(){this.selected&&this.hostElement.focus();var W=_.tH(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");W.length&&W[0].focus()};
_.p.onCloseBuyFlow=function(){_.v0(this.hostElement,"picker-cancelled")};
_.p.onCloseClick=function(){_.v0(this.hostElement,"picker-cancelled");var W;((W=this.data)==null?0:W.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.k(this.data.closeButton,_.wP))};
_.p.onCloseEngageWithAudienceEditorPanels=function(){_.v0(this.hostElement,"picker-cancelled")};
AF.prototype.observeSelected=AF.prototype.observeSelected;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],AF.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],AF.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],AF.prototype,"id",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],AF.prototype,"selected",void 0);_.Q([_.F(),_.y("design:type",Object)],AF.prototype,"closeButtonId",void 0);_.Q([_.oN("selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],AF.prototype,"observeSelected",null);
_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],AF);
_.D(AF,"yt-live-chat-product-picker-panel-view-model",function(){if(WP3===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;R6Q===void 0&&(R6Q=document.createElement("template"));var G=R6Q;z.call(B,G.content.cloneNode(!0),W.content.firstChild);WP3=W}W=WP3;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var B3Q;var zkN;var im=function(){var W=_.S.apply(this,arguments)||this;W.iconId="";W.icon="";W.disabled=!1;W.systemIcons=_.r("kevlar_system_icons");return W};
_.C(im,_.S);_.p=im.prototype;_.p.computeIconId=function(W){return W&&W.icon&&W.icon.iconType?W.icon.iconType.toLowerCase():""};
_.p.computeIcon=function(W){return W&&W.icon&&W.icon.iconType?(W=W.icon.iconType.toLowerCase(),(W.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+W):""};
_.p.computeDisabled=function(W){return!!W};
_.p.computeCommand=function(W,B){return B?void 0:W};
_.p.computeTooltip=function(W,B){return B&&W?W:""};
_.p.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.G5.Object.defineProperties(im.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var W="",B,z,G;if((B=this.data)==null?0:(z=B.text)==null?0:(G=z.runs)==null?0:G.length)W=this.data.text.runs[0].text||"";else{var Y,d;if((Y=this.data)==null?0:(d=Y.text)==null?0:d.simpleText)W=this.data.text.simpleText}var E,v,c;if((E=this.data)==null?0:(v=E.subtext)==null?0:(c=v.runs)==null?0:c.length)W&&(W+=". "),W+=this.data.subtext.runs[0].text||"";else{var J,g;if((J=this.data)==null?0:(g=J.subtext)==
null?0:g.simpleText)W&&(W+=". "),W+=this.data.subtext.simpleText}return W}}});
_.Q([_.h(_.Qe.YtEndpointBehavior),_.y("design:type",Object)],im.prototype,"ytEndpointBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],im.prototype,"data",void 0);_.Q([_.F({computed:"computeIconId(data)",reflectToAttribute:!0}),_.y("design:type",Object)],im.prototype,"iconId",void 0);
_.Q([_.F({computed:"computeIcon(data)",reflectToAttribute:!0}),_.y("design:type",Object)],im.prototype,"icon",void 0);_.Q([_.F({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.y("design:type",Object)],im.prototype,"disabled",void 0);_.Q([_.F({computed:"computeCommand(data.command, disabled)"}),_.y("design:type",Object)],im.prototype,"command",void 0);_.Q([_.F({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.y("design:type",String)],im.prototype,"tooltip",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],im.prototype,"systemIcons",void 0);_.Q([_.H("data.text","data.subtext"),_.F(),_.y("design:type",String),_.y("design:paramtypes",[])],im.prototype,"ariaLabel",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],im);
_.D(im,"yt-live-chat-product-button-renderer",function(){if(zkN===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;B3Q===void 0&&(B3Q=document.createElement("template"));var G=B3Q;z.call(B,G.content.cloneNode(!0),W.content.firstChild);zkN=W}W=zkN;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var GF3;var YYo;var ES=function(){var W=_.S.apply(this,arguments)||this;W.selected=!1;W.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 W};
_.C(ES,_.S);_.p=ES.prototype;_.p.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"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.p.computeId=function(W){return W.id||""};
_.p.onCloseClick=function(){_.v0(this.hostElement,"picker-cancelled")};
_.p.observeSelected=function(){this.selected&&this.hostElement.focus();var W=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");W.length&&W[0].focus()};
_.p.onCloseBuyFlow=function(){_.v0(this.hostElement,"picker-cancelled")};
_.p.onCloseEngageWithAudienceEditorPanels=function(){_.v0(this.hostElement,"picker-cancelled")};
ES.prototype.observeSelected=ES.prototype.observeSelected;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],ES.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ES.prototype,"data",void 0);
_.Q([_.F({computed:"computeId(data)",reflectToAttribute:!0}),_.y("design:type",String)],ES.prototype,"id",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],ES.prototype,"selected",void 0);_.Q([_.oN("selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ES.prototype,"observeSelected",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],ES);
_.D(ES,"yt-live-chat-product-picker-renderer",function(){if(YYo===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;GF3===void 0&&(GF3=document.createElement("template"));var G=GF3;z.call(B,G.content.cloneNode(!0),W.content.firstChild);YYo=W}W=YYo;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var ddF;var pco;var AvN;var i3b;var Tc=function(){return _.S.apply(this,arguments)||this};
_.C(Tc,_.S);Tc.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()};
Tc.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Tc.prototype.created=function(){this.ids={background:_.gF(),maskOne:_.gF(),maskTwo:_.gF(),gradient:_.gF(),largeBackground:_.gF(),largeGradientOne:_.gF(),largeGradientTwo:_.gF(),largeGradientPath:_.gF()}};
Tc.prototype.maybeLoadAnimationBackground=Tc.prototype.maybeLoadAnimationBackground;_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Tc.prototype,"useLargeBackground",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Tc.prototype,"useAnimationBackground",void 0);_.Q([_.F({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.y("design:type",Boolean)],Tc.prototype,"useRegularBackground",void 0);
_.Q([_.F(),_.y("design:type",Object)],Tc.prototype,"ids",void 0);_.Q([_.F(),_.y("design:type",Object)],Tc.prototype,"lottieAnimation",void 0);_.Q([_.Hf("#animation-background"),_.y("design:type",HTMLDivElement)],Tc.prototype,"animationBackground",void 0);_.Q([_.oN("useAnimationBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tc.prototype,"maybeLoadAnimationBackground",null);
_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Tc);
_.D(Tc,"yt-live-interactivity-component-background",function(){if(i3b===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;AvN===void 0&&(AvN=document.createElement("template"));var G=AvN;z.call(B,G.content.cloneNode(!0),W.content.firstChild);i3b=W}W=i3b;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var vu=function(){var W=_.S.apply(this,arguments)||this;W.characterCount=0;W.showInputErrorMessage=!1;W.startQnaRequestInFlight=!1;W.modern=_.r("web_button_rework_with_live");W.buttonOverrides={style:"mono",type:"filled"};W.closeButtonOverrides={iconPosition:"icon-only"};W.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return W};
_.C(vu,_.S);_.p=vu.prototype;
_.p.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]]"}}}}}};
_.p.onCharacterCountChanged=function(W){var B,z,G,Y,d=(z=_.k(this==null?void 0:(B=this.data)==null?void 0:B.creatorCallForQuestions,mZ_))==null?void 0:(G=z.inputField)==null?void 0:(Y=G.liveChatTextInputFieldRenderer)==null?void 0:Y.maxCharacterLimit,E,v;d!=null&&(W==null?void 0:(E=W.detail)==null?void 0:E.characterCount)!=null&&_.k(this==null?void 0:(v=this.data)==null?void 0:v.startButton,_.Ep)&&(B=W.detail.characterCount>d,this.set("data.startButton.buttonRenderer.isDisabled",W.detail.characterCount===
0||B),this.showInputErrorMessage=B)};
_.p.onCloseClick=function(){_.v0(this.hostElement,"picker-cancelled");_.c0(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.p.onPickerCancelled=function(){var W=_.tH(this.hostElement).querySelector("#qna-creator-text-input-field");W&&W.setLiveChatRichMessageInput(null)};
_.p.handleOpenQnaStartPanel=function(){var W=_.tH(this.hostElement).querySelector("#qna-creator-text-input-field");W&&W.focus()};
_.p.handleStartButtonAction=function(W){var B=this;if(W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),W=W.detail.args[1])){var z=_.tH(this.hostElement).querySelector("#qna-creator-text-input-field"),G;(z==null?0:(G=z.liveChatRichMessageInput)==null?0:G.textSegments)&&z.liveChatRichMessageInput.textSegments.length!==0&&(G={rich_message:_.Uv(z.liveChatRichMessageInput)},_.V0(this.hostElement,[W,G]).then(function(){_.v0(B.hostElement,"picker-cancelled")}))}};
_.p.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.p.handleServiceRequestCompleted=function(W){var B;W=W==null?void 0:(B=W.detail)==null?void 0:B.data;(W==null?0:W.actions)&&W.actions.length>0?this.startQnaRequestInFlight=!1:_.c0(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.p.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
vu.prototype.handleServiceRequestError=vu.prototype.handleServiceRequestError;vu.prototype.handleServiceRequestCompleted=vu.prototype.handleServiceRequestCompleted;vu.prototype.handleServiceRequestSent=vu.prototype.handleServiceRequestSent;vu.prototype.onPickerCancelled=vu.prototype.onPickerCancelled;vu.prototype.onCharacterCountChanged=vu.prototype.onCharacterCountChanged;_.Q([_.F(),_.y("design:type",Object)],vu.prototype,"characterCount",void 0);
_.Q([_.F(),_.y("design:type",Object)],vu.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],vu.prototype,"showInputErrorMessage",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],vu.prototype,"startQnaRequestInFlight",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],vu.prototype,"modern",void 0);_.Q([_.F(),_.y("design:type",Object)],vu.prototype,"buttonOverrides",void 0);
_.Q([_.F(),_.y("design:type",Object)],vu.prototype,"closeButtonOverrides",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],vu.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c7),_.y("design:type",Object)],vu.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.h(_.tP.YtLiveChatItemBehavior),_.y("design:type",_.ss)],vu.prototype,"ytLiveChatItemBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],vu.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.IN("yt-live-chat-text-input-field-renderer-character-count-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],vu.prototype,"onCharacterCountChanged",null);_.Q([_.IN("picker-cancelled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vu.prototype,"onPickerCancelled",null);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vu.prototype,"handleServiceRequestSent",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],vu.prototype,"handleServiceRequestCompleted",null);
_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],vu.prototype,"handleServiceRequestError",null);_.Q([_.u({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],vu);
_.D(vu,"yt-live-chat-qna-start-panel-renderer",function(){if(pco===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;ddF===void 0&&(ddF=document.createElement("template"));var G=ddF;z.call(B,G.content.cloneNode(!0),W.content.firstChild);pco=W}W=pco;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var EHM;var T3M;var cu=function(){return _.S.apply(this,arguments)||this};
_.C(cu,_.S);cu.prototype.dismiss=function(){_.v0(this.hostElement,"yt-live-chat-error-message-dismiss")};
cu.prototype.edit=function(){_.v0(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.Q([_.F(),_.y("design:type",Object)],cu.prototype,"data",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],cu);
_.D(cu,"yt-live-chat-text-actions-error-message-renderer",function(){if(T3M===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;EHM===void 0&&(EHM=document.createElement("template"));var G=EHM;z.call(B,G.content.cloneNode(!0),W.content.firstChild);T3M=W}W=T3M;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var vH_;var cvM;var wc3;var Vwm;var w_=function(){var W=_.S.apply(this,arguments)||this;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.newnessDotEligible=!1;return W};
_.C(w_,_.S);w_.prototype.sendReaction=function(){var W,B,z=((W=this.data)==null?void 0:W.emojiId)||((B=this.data)==null?void 0:B.emoteId),G;z&&((G=this.data)==null?0:G.shouldTriggerAnimation)&&_.c0(this.hostElement,"yt-create-user-reaction-animation",[z]);var Y;(W=_.$B((Y=this.data)==null?void 0:Y.onTap))&&_.oB(W,this.hostElement);this.showNewnessDot&&_.c0(this.hostElement,"yt-hide-newness-dot")};
w_.prototype.onClick=function(W){(!W||W.clientX||W.clientY)&&this.sendReaction()};
w_.prototype.onKeyDown=function(W){W.key!=="Enter"&&W.key!==" "||W.repeat||this.sendReaction()};
_.G5.Object.defineProperties(w_.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var W,B;return!!(((W=this.data)==null?0:W.emojiId)||((B=this.data)==null?0:B.emoteId))}}});
_.Q([_.F(),_.y("design:type",Object)],w_.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],w_.prototype,"isDarkTheme",void 0);_.Q([_.F(),_.y("design:type",Object)],w_.prototype,"newnessDotEligible",void 0);_.Q([_.H("data.maybeShowNewnessDot"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],w_.prototype,"showNewnessDot",null);_.Q([_.H("data.emojiId","data.emoteId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],w_.prototype,"useYtImage",null);
_.Q([_.NJ({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],w_);
_.D(w_,"yt-reaction-control-panel-button-view-model",function(){if(Vwm===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;wc3===void 0&&(wc3=document.createElement("template"));var G=wc3;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Vwm=W}W=Vwm;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Jvb;var gHm;var V_=function(){var W=_.S.apply(this,arguments)||this;W.reactionControlPanelExpanded=!1;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.newnessDotEligible=!1;return W};
_.C(V_,_.S);_.p=V_.prototype;_.p.expandedButtonsChanged=function(){var W,B;_.kw(this.hostElement,{"--expanded-buttons-height":((B=(W=this.expandedButtonsData)==null?void 0:W.length)!=null?B:0)*36+"px"})};
_.p.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}}};
_.p.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.p.onMouseLeave=function(){var W=this;this.collapseTimer=setTimeout(function(){W.reactionControlPanelExpanded=!1},500)};
_.p.onFocusIn=function(){this.onMouseEnter()};
_.p.onFocusOut=function(){this.onMouseLeave()};
_.p.onCollapsedButtonFocusIn=function(){var W=this;setTimeout(function(){var B;(B=W.expandedButtons.querySelector("button"))==null||B.focus()},100)};
_.p.onCollapsedButtonFocusOut=function(W){W.stopPropagation()};
_.G5.Object.defineProperties(V_.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var W,B;return _.mP.unsafeClone((W=this.liveReactionsData)==null?void 0:W.emojiButtonData)||((B=this.data)==null?void 0:B.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var W;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((W=this.data)==null||!W.maybeShowNewnessDot)}}});
V_.prototype.expandedButtonsChanged=V_.prototype.expandedButtonsChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c7),_.y("design:type",Object)],V_.prototype,"ytLiveChatReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],V_.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],V_.prototype,"reactionControlPanelExpanded",void 0);_.Q([_.F({selectorArgs:["data.liveReactionsDataEntityKey"],selector:JKN}),_.y("design:type",Object)],V_.prototype,"liveReactionsData",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],V_.prototype,"isDarkTheme",void 0);_.Q([_.F(),_.y("design:type",Object)],V_.prototype,"newnessDotEligible",void 0);
_.Q([_.H("liveReactionsData","data.expandedButtons"),_.y("design:type",Object),_.y("design:paramtypes",[])],V_.prototype,"expandedButtonsData",null);_.Q([_.H("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.F({reflectToAttribute:!0}),_.y("design:type",Object),_.y("design:paramtypes",[])],V_.prototype,"showNewnessDot",null);_.Q([_.Hf("#expanded-buttons"),_.y("design:type",HTMLElement)],V_.prototype,"expandedButtons",void 0);
_.Q([_.oN("expandedButtonsData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],V_.prototype,"expandedButtonsChanged",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],V_);
_.D(V_,"yt-reaction-control-panel-view-model",function(){if(gHm===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Jvb===void 0&&(Jvb=document.createElement("template"));var G=Jvb;z.call(B,G.content.cloneNode(!0),W.content.firstChild);gHm=W}W=gHm;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var JF=new _.el("yt-live-chat"),twm=Date.parse("2024-7-24"),g_=function(){var W=_.S.apply(this,arguments)||this;W.emojiManager=_.gN;W.newnessDotEligible=!1;W.newnessDotImpressionCounted=!1;W.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return W};
_.C(g_,_.S);_.p=g_.prototype;_.p.emojiCustomizationEnabledChanged=function(){var W;((W=this.data)==null?0:W.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((W=JF.getCreationTime("emoji-customization-count"))&&W<twm&&JF.set("emoji-customization-count","0"),W=Number(JF.get("emoji-customization-count"))||0,W<3&&(this.newnessDotEligible=!0,JF.set("emoji-customization-count",(W+1).toString())),this.newnessDotImpressionCounted=!0)};
_.p.hideNewnessDot=function(){this.newnessDotEligible=!1;JF.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.p.handleReactionsMute=function(W){var B=_.m1(),z=_.PA(206221),G={checkboxData:{state:W?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};B&&_.RP(B,z,G);this.reactionsMuted=W};
_.p.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.p.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}}};
_.G5.Object.defineProperties(g_.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var W;return(!((W=this.liveReactionsData)==null||!W.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
g_.prototype.liveReactionsSettingChanged=g_.prototype.liveReactionsSettingChanged;g_.prototype.emojiCustomizationEnabledChanged=g_.prototype.emojiCustomizationEnabledChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],g_.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c7),_.y("design:type",Object)],g_.prototype,"ytLiveChatReduxBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],g_.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],g_.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",_.wN)],g_.prototype,"emojiManager",void 0);_.Q([_.F(),_.y("design:type",Object)],g_.prototype,"newnessDotEligible",void 0);_.Q([_.F(),_.y("design:type",Object)],g_.prototype,"newnessDotImpressionCounted",void 0);
_.Q([_.F({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:gYb}),_.y("design:type",Boolean)],g_.prototype,"liveReactionsSetting",void 0);_.Q([_.F({selectorArgs:["data.liveReactionsDataEntityKey"],selector:JKN}),_.y("design:type",Object)],g_.prototype,"liveReactionsData",void 0);_.Q([_.F({value:function(){var W=_.r("enable_lwe_web_mute"),B=JF.get("allow-reactions");return B===void 0?!1:!B&&W}}),
_.y("design:type",Boolean)],g_.prototype,"reactionsMuted",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],g_.prototype,"liveReactionsEnabled",null);_.Q([_.oN("data.emojiCustomizationEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],g_.prototype,"emojiCustomizationEnabledChanged",null);
_.Q([_.oN("liveReactionsEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],g_.prototype,"liveReactionsSettingChanged",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],g_);
_.D(g_,"yt-reaction-control-panel-overlay-view-model",function(){if(cvM===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;vH_===void 0&&(vH_=document.createElement("template"));var G=vH_;z.call(B,G.content.cloneNode(!0),W.content.firstChild);cvM=W}W=cvM;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var s8o={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(W){var B=this.$.pickers.selected;if(B){_.tH(this.hostElement).removeAttribute(B+"-open");var z="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(z="#picker-buttons",B==="emoji"&&_.tH(this.hostElement).querySelector("#emoji-picker-button")&&(z="#emoji-picker-button"));if(z=_.tH(this.hostElement).querySelector(z).querySelector("#"+B))z.active=!1}z=W;B==W&&(z=null);B!=
W&&_.tH(this.hostElement).setAttribute(W+"-open","");this.$.pickers.selected=z;_.c0(this.hostElement,"yt-live-chat-picker-changed",[z])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var tF=function(){var W=_.S.apply(this,arguments)||this;W.numSentMessages=0;W.timeoutDurationMs=0;W.timeoutMs=0;W.lastTimeoutTimeMs=0;W.pendingMessageId="";W.hasFiredInitialFocusActions=!1;W.isBeforeFocusEnabled=!0;W.id="";W.characterCount=0;W.maxCharacterLimit=0;W.remainingCharacterCount=0;W.inputExpanded=!1;W.buttonOverrides={iconPosition:"icon-only"};W.inReplyPanel=!1;W.countdownRatio=0;W.isTooltipVisible=!1;W.tooltipTimeout=1E4;W.systemIcons=_.r("kevlar_system_icons");W.tallerEmojiPicker=_.r("live_chat_taller_emoji_picker");
W.sendReplyMessageInFlight=!1;W.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"};W.onResize=function(){W.maybeToggleCharacterCount()};
return W};
_.C(tF,_.S);_.p=tF.prototype;
_.p.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"}}}};
_.p.attached=function(){window.addEventListener("resize",this.onResize)};
_.p.detached=function(){window.removeEventListener("resize",this.onResize)};
_.p.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.p.sendMessage=function(){var W=this,B,z,G,Y;return _.T(function(d){if(W.sendDisabled)return d.return();W.isTooltipVisible&&_.c0(W.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(W.data.sendButton&&W.data.sendButton.buttonRenderer){W.input.completeEmojis();B=W.data.sendButton.buttonRenderer.serviceEndpoint;if(!B)return d.return();G=((z=_.k(B,_.mz6))==null?void 0:z.clientIdPrefix)||"";Y={client_message_id:G+String(W.numSentMessages++),rich_message:_.Uv(W.input.liveChatRichMessageInput)};
W.pendingMessageId=Y.client_message_id;W.inReplyPanel&&(W.sendReplyMessageInFlight=!0);_.V0(W.hostElement,[B,Y]);W.input.setLiveChatRichMessageInput(null)}_.HG(d)})};
_.p.handleSendButtonAction=function(W){W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),this.sendMessage())};
_.p.onSendCompleted=function(W,B){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(W=this.get("timeoutDurationUsec",B.data))&&this.handleTimeout(Number(W)/1E3);this.errorMessage=this.get("errorMessage",B.data);this.pendingMessageId=""};
_.p.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.c0(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.p.handlePickerButtonToggle=function(W){W=W.detail.targetId;this.ytPickerBehavior.togglePicker_(W);if(W==="emoji")this.input.focus();else if(W==="qna-start-panel"){var B,z;(B=_.tH(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(z=B.querySelector("#qna-creator-text-input-field"))==null||z.focus()}};
_.p.onComponentReplaced=function(W){var B,z;W.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((B=W.replacement.liveChatMessageInputRenderer)==null?0:(z=B.headerRenderer)==null?0:z.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.p.onEmojiSelect=function(W){this.input.focus();this.input.insertEmoji(W.detail)};
_.p.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.p.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.c0(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.c0(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.p.onOpenPopupAction=function(W,B){var z=this;B===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.c0(z.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.p.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.p.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.p.focusChanged=function(){this.maybeToggleCharacterCount()};
_.p.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var W=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",W>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.p.computeId=function(){return this.data&&this.data.targetId||""};
_.p.computeSendDisabled=function(W,B,z,G){W=!!(!W||B&&W>B||G);(B=_.tH(this.hostElement).querySelector("#send-button"))&&B.children.length&&(B.children[0].disabled=W);return W};
_.p.handleTimeout=function(W){this.timeoutDurationMs=this.timeoutMs=W;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.p.updateTimeout=function(W){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(W-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=W,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.p.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.p.onErrorMessageEdit=function(W){this.input.setLiveChatRichMessageInput(W.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.p.errorMessageChanged=function(){var W=this;_.WJ(function(){_.c0(W.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.p.computeAuthorNameColor=function(W){var B;if(_.r("live_chat_author_name_color_usernames")&&(W==null?0:(B=W.authorName)==null?0:B.simpleText))return _.LUk(_.UQR(W.authorName.simpleText));if(_.r("live_chat_seed_color_usernames")&&(W==null?0:W.authorSeedColorArgb))return _.LUk(_.ra(W.authorSeedColorArgb));if(_.r("live_chat_colored_usernames"))return"#cc0000";var z;return _.r("live_chat_simple_color_usernames")&&(W==null?0:(z=W.authorName)==null?0:z.simpleText)&&(W==null?0:W.authorUsernameColorLight)&&
(W==null?0:W.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.ra(W.authorUsernameColorDark):_.ra(W.authorUsernameColorLight):""};
_.p.onIsTooltipVisibleChanged=function(){var W=_.tH(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){W.hidden=!1;W.setAttribute("role","alert")},0):(W.hidden=!0,W.removeAttribute("role"))};
_.p.onFocusedChanged=function(W){this.inputFocused=W.detail.value};
_.G5.Object.defineProperties(tF.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 W;return!((W=this.data)==null||!W.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?void 0:(B=W.pickers)==null?void 0:B.find(function(z){return z.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return W?this.ytRendererBehavior.getSimpleString(W):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
tF.prototype.onIsTooltipVisibleChanged=tF.prototype.onIsTooltipVisibleChanged;tF.prototype.errorMessageChanged=tF.prototype.errorMessageChanged;tF.prototype.onErrorMessageEdit=tF.prototype.onErrorMessageEdit;tF.prototype.onErrorMessageDismiss=tF.prototype.onErrorMessageDismiss;tF.prototype.focusChanged=tF.prototype.focusChanged;tF.prototype.characterCountChanged=tF.prototype.characterCountChanged;tF.prototype.onEmojiSelect=tF.prototype.onEmojiSelect;tF.prototype.handlePickerButtonToggle=tF.prototype.handlePickerButtonToggle;
tF.prototype.onSendError=tF.prototype.onSendError;tF.prototype.onSendCompleted=tF.prototype.onSendCompleted;tF.prototype.sendMessage=tF.prototype.sendMessage;tF.prototype.dataChanged=tF.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],tF.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.h(s8o.YtPickerBehavior),_.y("design:type",Object)],tF.prototype,"ytPickerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.w0.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],tF.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],tF.prototype,"hasFiredInitialFocusActions",void 0);
_.Q([_.F(),_.y("design:type",Object)],tF.prototype,"isBeforeFocusEnabled",void 0);_.Q([_.F(),_.y("design:type",Object)],tF.prototype,"data",void 0);_.Q([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.y("design:type",Object)],tF.prototype,"id",void 0);_.Q([_.F(),_.y("design:type",Object)],tF.prototype,"characterCount",void 0);_.Q([_.F(),_.y("design:type",Object)],tF.prototype,"maxCharacterLimit",void 0);
_.Q([_.F(),_.y("design:type",Object)],tF.prototype,"remainingCharacterCount",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],tF.prototype,"inputExpanded",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],tF.prototype,"inputFocused",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],tF.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.Q([_.F(),_.y("design:type",_.rN)],tF.prototype,"participantsManager",void 0);
_.Q([_.F(),_.y("design:type",Object)],tF.prototype,"buttonOverrides",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],tF.prototype,"inReplyPanel",void 0);_.Q([_.H("characterCount, maxCharacterLimit, countdownActive"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tF.prototype,"sendDisabled",null);_.Q([_.F(),_.y("design:type",Object)],tF.prototype,"countdownRatio",void 0);
_.Q([_.H("countdownRatio"),_.y("design:type",Number),_.y("design:paramtypes",[])],tF.prototype,"countdownStrokeDashOffset",null);_.Q([_.H("countdownRatio"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tF.prototype,"countdownActive",null);_.Q([_.H("data.interactionMessage"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tF.prototype,"hasInteractionMessage",null);
_.Q([_.H("data.emojiPickerButton"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tF.prototype,"hasEmojiPickerButton",null);_.Q([_.H("data, characterCount"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tF.prototype,"showAvatar",null);_.Q([_.H("data.pickers"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tF.prototype,"hasProductPickerPanelViewModel",null);
_.Q([_.F(),_.y("design:type",Object)],tF.prototype,"errorMessage",void 0);_.Q([_.F(),_.y("design:type",Object)],tF.prototype,"genericErrorMessage",void 0);_.Q([_.F(),_.y("design:type",Object)],tF.prototype,"isTooltipVisible",void 0);_.Q([_.F(),_.y("design:type",Object)],tF.prototype,"tooltipTimeout",void 0);_.Q([_.H("data.onInitialFocusCommand"),_.y("design:type",String),_.y("design:paramtypes",[])],tF.prototype,"tooltipMessage",null);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],tF.prototype,"systemIcons",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],tF.prototype,"tallerEmojiPicker",void 0);_.Q([_.H("data"),_.y("design:type",String),_.y("design:paramtypes",[])],tF.prototype,"authorNameColor",null);_.Q([_.F(),_.y("design:type",Object)],tF.prototype,"sendReplyMessageInFlight",void 0);_.Q([_.Hf("#input"),_.y("design:type",_.SBM)],tF.prototype,"input",void 0);
_.Q([_.Hf("#count"),_.y("design:type",HTMLElement)],tF.prototype,"count",void 0);_.Q([_.Hf("#input-container"),_.y("design:type",HTMLElement)],tF.prototype,"inputContainer",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tF.prototype,"dataChanged",null);_.Q([_.IN("yt-live-chat-send-message"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],tF.prototype,"sendMessage",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[Event,_.du]),_.y("design:returntype")],tF.prototype,"onSendCompleted",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tF.prototype,"onSendError",null);
_.Q([_.IN("yt-live-chat-icon-toggle-button-renderer-toggle"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],tF.prototype,"handlePickerButtonToggle",null);_.Q([_.IN("yt-emoji-select"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],tF.prototype,"onEmojiSelect",null);
_.Q([_.oN("characterCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tF.prototype,"characterCountChanged",null);_.Q([_.oN("inputFocused"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tF.prototype,"focusChanged",null);_.Q([_.IN("yt-live-chat-error-message-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tF.prototype,"onErrorMessageDismiss",null);
_.Q([_.IN("yt-live-chat-error-message-edit"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],tF.prototype,"onErrorMessageEdit",null);_.Q([_.oN("errorMessage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tF.prototype,"errorMessageChanged",null);_.Q([_.oN("isTooltipVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tF.prototype,"onIsTooltipVisibleChanged",null);
_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],tF);
_.D(tF,"yt-live-chat-message-input-renderer",function(){if(mkM===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;e6Z===void 0&&(e6Z=document.createElement("template"));var G=e6Z;z.call(B,G.content.cloneNode(!0),W.content.firstChild);mkM=W}W=mkM;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Pfh;var Z3Z;var sS=function(){var W=_.S.apply(this,arguments)||this;W.systemIcons=_.r("kevlar_system_icons");W.firedOnClickCommand=!1;W.inReplyPanel=!1;return W};
_.C(sS,_.S);
sS.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"}}}};
sS.prototype.onButtonToggle=function(W){W.target.disabled||this.ytPickerBehavior.togglePicker_(W.detail.targetId)};
sS.prototype.onClick=function(){var W=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.c0(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return W.firedOnClickCommand=!1},5E3))};
_.G5.Object.defineProperties(sS.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?void 0:(B=W.panels)==null?void 0:B.find(function(z){return z.liveChatProductPickerPanelViewModel}))!==void 0}}});
sS.prototype.onButtonToggle=sS.prototype.onButtonToggle;_.Q([_.h(s8o.YtPickerBehavior),_.y("design:type",Object)],sS.prototype,"ytPickerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],sS.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sS.prototype,"systemIcons",void 0);_.Q([_.F({reflectToAttribute:!1}),_.y("design:type",Object)],sS.prototype,"firedOnClickCommand",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sS.prototype,"inReplyPanel",void 0);_.Q([_.H("data.pickers"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sS.prototype,"hasProductPickerPanelViewModel",null);
_.Q([_.IN("yt-live-chat-icon-toggle-button-renderer-toggle"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],sS.prototype,"onButtonToggle",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],sS);
_.D(sS,"yt-live-chat-restricted-participation-renderer",function(){if(Z3Z===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Pfh===void 0&&(Pfh=document.createElement("template"));var G=Pfh;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Z3Z=W}W=Z3Z;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Pu=function(){var W=_.S.apply(this,arguments)||this;W.genericErrorMessage=_.Bg("Error, try again.");W.inReplyPanel=!1;W.hideBorder=!1;return W};
_.C(Pu,_.S);Pu.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}}}}}};
_.G5.Object.defineProperties(Pu,{template:{configurable:!0,enumerable:!0,get:function(){return f1F()}}});
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Pu.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Pu.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Pu.prototype,"genericErrorMessage",void 0);_.Q([_.F(),_.y("design:type",Object)],Pu.prototype,"inReplyPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Pu.prototype,"hideBorder",void 0);
_.Q([_.NJ({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Pu);_.D(Pu,"yt-live-chat-engagement-panel-input-renderer",function(){return f1F()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var rvM,kFK;rvM=_.PA(115994);kFK=_.PA(115993);_.leF=function(W,B,z){var G=this;var Y=z.dragDownAction;this.layer=0;this.JSC$22570_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return G.dragDownAction()}}}};
this.JSC$22570_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return G.dragDownAction()}}}};
this.fullscreen=!1;var d=_.SK();_.ed(d,rvM,this.layer);_.ed(d,kFK,this.layer);this.dragDownAction=function(){Y();_.aK(d,{visualElement:G.fullscreen?rvM:kFK})};
this.gesture=new _.KH(W,B,this.JSC$22570_watchConfig,"pandown");this.attach()};
_.leF.prototype.attach=function(){this.gesture.attach()};
_.leF.prototype.detach=function(){this.gesture.detach()};
_.leF.prototype.update=function(W){this.fullscreen=W;this.gesture.config=W?this.JSC$22570_watchFullScreenConfig:this.JSC$22570_watchConfig};var CfR={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(W){if(W&&W.length==1&&Array.isArray(W[0].loggingUrls)){W=_.mP.unsafeClone(W[0]);var B=this.macros||{},z=this.getAdModuleClient_();if(!z)return _.gV();W.loggingUrls.forEach(function(G){if(G.baseUrl){var Y=G.baseUrl;var d=B;d=d===void 0?{}:d;Y=z.getOptions().includes("replaceUrlMacros")?_.LYM(z,"replaceUrlMacros",{url:Y,additionalMapping:d}):Y;G.baseUrl=Y}},this);
W=[W]}return _.V0(this.hostElement,W)},
getAdModuleClient_:function(){var W=_.TN(this);return W?(W=W.getPlayer())?new _.Bl(W):null:null}}]};var IeK;var Zm=function(){var W=_.S.apply(this,arguments)||this;W.isCollapsed=!1;W.modernPanels=_.r("kevlar_watch_modern_panels");W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return W};
_.C(Zm,_.S);_.p=Zm.prototype;_.p.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.onDonateTap=function(){var W=this.get("data.donateButton.buttonRenderer.command");if(W){var B=_.m1(),z=this.get("data.donateButton.buttonRenderer.trackingParams");B&&z&&_.RP(B,_.XF(z));this.ytOpenPopupBehavior.openPopup(W)}};
_.p.onShowMore=function(){this.isCollapsed=!1;var W=_.m1(),B=this.get("data.expandButton.buttonRenderer.trackingParams");W&&B&&_.RP(W,_.XF(B))};
_.p.onShowLess=function(){this.isCollapsed=!0};
_.p.dataChanged=function(){_.kw(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.p.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.p.handleUpdate=function(W){if(W=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",W))this.set("data.startLabel",W.startLabel),this.set("data.endLabel",W.endLabel),this.set("data.progress",W.progress),this.set("data.amountRaisedLabel",W.amountRaisedLabel),this.dataChanged()};
_.p.handleOpenPopupAction=function(W){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",W)&&_.c0(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.p.computeHeaderBackgroundUrl=function(W,B){if(W)return B?W.headerBackgroundDarkUrl:W.headerBackgroundUrl};
_.p.isProgressBarVisible=function(W){return!(!W||W.progress===void 0)};
_.p.headerBackgroundClass=function(){return _.eD("HTML_DIR")==="rtl"?"flip":""};
Zm.prototype.dataChanged=Zm.prototype.dataChanged;_.Q([_.h(_.Ds.YtOpenPopupBehavior),_.y("design:type",Object)],Zm.prototype,"ytOpenPopupBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Zm.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Zm.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Zm.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Zm.prototype,"isCollapsed",void 0);_.Q([_.F({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.y("design:type",String)],Zm.prototype,"headerBackgroundUrl",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Zm.prototype,"isDarkTheme",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Zm.prototype,"modernPanels",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zm.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Zm);
_.D(Zm,"ytd-donation-shelf-renderer",function(){if(IeK!==void 0)return IeK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return IeK=W},{mode:1});var oHb;var hkh=function(){return _.S.apply(this,arguments)||this};
_.C(hkh,_.S);_.Q([_.F(),_.y("design:type",Object)],hkh.prototype,"data",void 0);_.Q([_.u({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],hkh);
_.D(hkh,"ytd-donation-unavailable-renderer",function(){if(oHb!==void 0)return oHb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return oHb=W},{mode:1});var H33;var r_=function(){return _.S.apply(this,arguments)||this};
_.C(r_,_.S);r_.prototype.computeIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],r_.prototype,"data",void 0);_.Q([_.u({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],r_);
_.D(r_,"ytd-limited-state-message-renderer",function(){if(H33!==void 0)return H33;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return H33=W},{mode:1});var FPb;var kK=function(){return _.S.apply(this,arguments)||this};
_.C(kK,_.S);kK.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
kK.prototype.onTap=function(W){var B=this.data&&this.data.endpoint;B&&!_.p2(_.AH(W),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.v0(this.hostElement,"yt-navigate",{endpoint:B})};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],kK.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],kK.prototype,"data",void 0);_.Q([_.u({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],kK);
_.D(kK,"ytd-autotagging-metadata-renderer",function(){if(FPb!==void 0)return FPb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return FPb=W},{mode:1});var SYK;var lm=function(){return _.S.apply(this,arguments)||this};
_.C(lm,_.S);lm.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],lm.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],lm.prototype,"data",void 0);_.Q([_.u({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],lm);
_.D(lm,"ytd-autotagging-metadata-row-renderer",function(){if(SYK!==void 0)return SYK;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return SYK=W},{mode:1});var b3m;var j8h;var C9=function(){var W=_.S.apply(this,arguments)||this;W.engagementPanelContent=!1;return W};
_.C(C9,_.S);C9.prototype.computeHasDividerLine=function(W,B){return W&&!B};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],C9.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.y("design:type",Boolean)],C9.prototype,"hasDividerLine",void 0);_.Q([_.F(),_.y("design:type",Object)],C9.prototype,"engagementPanelContent",void 0);
_.Q([_.u({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],C9);
_.D(C9,"ytd-metadata-row-header-renderer",function(){if(j8h!==void 0)return j8h;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return j8h=W},{mode:1});var fe_;var Iy=function(){return _.S.apply(this,arguments)||this};
_.C(Iy,_.S);Iy.prototype.computeHasDividerLine=function(W){return W};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Iy.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.y("design:type",Boolean)],Iy.prototype,"hasDividerLine",void 0);_.Q([_.u({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Iy);
_.D(Iy,"ytd-metadata-row-renderer",function(){if(fe_!==void 0)return fe_;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return fe_=W},{mode:1});var O3m;var Xcm=function(){return _.S.apply(this,arguments)||this};
_.C(Xcm,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Xcm.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Xcm.prototype,"data",void 0);_.Q([_.u({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Xcm);
_.D(Xcm,"ytd-metadata-with-image-row-renderer",function(){if(O3m!==void 0)return O3m;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return O3m=W},{mode:1});var KPK;var oy=function(){var W=_.S.apply(this,arguments)||this;W.rounded=!0;W.fixie=!1;W.fullWidth=!1;return W};
_.C(oy,_.S);_.p=oy.prototype;_.p.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.onDataChanged=function(){var W=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(B){W.onEndpointLinkKeyPress(B)}))};
_.p.onEndpointLinkKeyPress=function(W){W.target===this.endpointLink&&W.keyCode===13&&_.v0(this.hostElement,"click")};
_.p.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var W;if((W=this.data)==null?0:W.endpoint)_.Jr(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.p.onYtNavigate=function(W){this.endpointHref||(W.stopPropagation(),W.preventDefault())};
_.p.onInformationButtonContainerClick=function(W){W.target.id!=="information-button-container"&&(W.stopPropagation(),W.preventDefault())};
_.p.computeStyle=function(W){return W};
_.p.computeIsThumbnailStyle=function(W){return W==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.p.computeThumbnailWidth=function(W){switch(W){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}};
_.p.computeThumbnailObjectFit=function(W){switch(W){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.G5.Object.defineProperties(oy.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
oy.prototype.onYtNavigate=oy.prototype.onYtNavigate;oy.prototype.onClick=oy.prototype.onClick;oy.prototype.onDataChanged=oy.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],oy.prototype,"componentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],oy.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],oy.prototype,"componentStyle",void 0);_.Q([_.F({computed:"computeIsThumbnailStyle(data.style)"}),_.y("design:type",Boolean)],oy.prototype,"isThumbnailStyle",void 0);_.Q([_.F({computed:"computeThumbnailObjectFit(data.style)"}),_.y("design:type",String)],oy.prototype,"thumbnailObjectFit",void 0);
_.Q([_.F({computed:"computeThumbnailWidth(data.style)"}),_.y("design:type",Number)],oy.prototype,"thumbnailWidth",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],oy.prototype,"rounded",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],oy.prototype,"fixie",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],oy.prototype,"fullWidth",void 0);_.Q([_.Hf("#endpoint-link"),_.y("design:type",HTMLAnchorElement)],oy.prototype,"endpointLink",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oy.prototype,"onDataChanged",null);_.Q([_.H("data.endpoint"),_.y("design:type",Object),_.y("design:paramtypes",[])],oy.prototype,"endpointHref",null);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],oy.prototype,"onClick",null);
_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],oy.prototype,"onYtNavigate",null);_.Q([_.u({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],oy);
_.D(oy,"ytd-rich-metadata-renderer",function(){if(KPK!==void 0)return KPK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return KPK=W},{mode:_.PJ("kevlar_poly_si_batch_j075")?1:2});var uiN;var hF=function(){var W=_.S.apply(this,arguments)||this;W.fixie=!1;W.fullWidth=!1;return W};
_.C(hF,_.S);hF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
hF.prototype.computeHasDividerLine=function(W){return W};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],hF.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],hF.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.y("design:type",Boolean)],hF.prototype,"hasDividerLine",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],hF.prototype,"fixie",void 0);_.Q([_.F(),_.y("design:type",Object)],hF.prototype,"fullWidth",void 0);
_.Q([_.u({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],hF);
_.D(hF,"ytd-rich-metadata-row-renderer",function(){if(uiN!==void 0)return uiN;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return uiN=W},{mode:1});var Hu=function(){var W=_.S.apply(this,arguments)||this;W.engagementPanelContent=!1;W.fixie=!1;W.fullWidth=!1;return W};
_.C(Hu,_.S);
Hu.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"}}}};
Hu.prototype.computeCollapsibleItems=function(W,B,z){return W===void 0||B===void 0||z===void 0||z?[]:W.slice(B)};
Hu.prototype.computeAlwaysShownItems=function(W,B){return W&&W.length?W.slice(0,B):[]};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Hu.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Hu.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Hu.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Hu.prototype,"collapsed",void 0);
_.Q([_.F({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.y("design:type",Array)],Hu.prototype,"alwaysShownItems",void 0);_.Q([_.F({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.y("design:type",Array)],Hu.prototype,"collapsibleItems",void 0);_.Q([_.F(),_.y("design:type",Object)],Hu.prototype,"engagementPanelContent",void 0);_.Q([_.F(),_.y("design:type",Object)],Hu.prototype,"fixie",void 0);
_.Q([_.F(),_.y("design:type",Object)],Hu.prototype,"fullWidth",void 0);_.Q([_.u({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Hu);
_.D(Hu,"ytd-metadata-row-container-renderer",function(){if(b3m!==void 0)return b3m;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return b3m=W},{mode:1});var ekm;var Fj=function(){var W=_.S.apply(this,arguments)||this;W.currentPageUrl="";W.baseUrl="";W.isHiddenByUser=null;W.hidden=!1;W.showAboveScrim=!1;W.watchNextGrid=_.r("kevlar_watch_grid");W.modernButtons=_.r("web_modern_buttons");W.roundedContainer=!0;W.noBorder=!1;W.roundBackground=!_.r("live_chat_round_background_killswitch");W.overflowHideChat=_.r("live_chat_overflow_hide_chat");W.forceDarkTheme=!1;W.theaterWatchWhile=!1;W.isListeningForPlayerProgress=!1;W.JSC$22606_playerEvents=new Map;W.isFrameReady=
!1;W.player=null;W.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 W};
_.C(Fj,_.S);_.p=Fj.prototype;_.p.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.wV(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.p.created=function(){var W=this;this.handleIframeEventListener=function(B){W.handleIframeEvent(B)};
this.handleKeyboardEventListener=function(B){W.handleKeyboardEvent(B)};
this.JSC$22606_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22606_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22606_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22606_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22606_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.p.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()};
_.p.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};
_.p.computeBaseUrl=function(W){var B="/live_chat";this.isChatReplay()&&(B="/live_chat_replay");return _.Pr(_.s5(_.t4(_.Uk(W),B),null),"").toString()};
_.p.dataChanged=function(){_.r("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.p.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var W=this.url;if(this.isChatReplay()&&this.player){var B=Math.floor(this.player.getProgressState().current*1E3);W=_.a0(_.Uk(W),"playerOffsetMs",B.toString()).toString()}B=this.chatframe;try{var z=W==="about:blank"?_.u2Q:_.yN(W),G=B.contentDocument.location,Y=_.NZ(z);Y!==void 0&&G.replace(Y)}catch(d){B.src=W}}};
_.p.collapsedChanged=function(){_.v0(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.p.handleIframeEvent=function(W){if(W&&this.baseUrl.startsWith(W.origin)&&W.source===this.chatframe.contentWindow&&_.$t(W.data))if(W.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(W);else if(W.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(W.data["yt-show-feedback-dialog"]){var B=_.dO().resolve(_.Y8(_.pyO));if(B){var z=W.ports,G;z&&z.length&&(G=function(){z[0].postMessage({})});
W=W.data["yt-show-feedback-dialog"];B.showFeedbackDialog(W.customProductData,W.feedbackContent,G,W.bucket)}}else if(W.data["yt-show-survey"])_.v0(this.hostElement,"yt-show-survey",W.data["yt-show-survey"]);else if(W.data["yt-purchase-membership"])_.dO().resolve(_.p4).resolveCommand(W.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(W.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(W.data["yt-tunnel-out-live-service-request"]);else if(W.data["yt-user-activity"])_.zi();
else if(W.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(W.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(W.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(W.data["yt-open-popup"]);else if(W.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(W.data["yt-log-flow-logging-event-command"]);else if(W.data["yt-hide-live-chat"])this.onShowHideChat();else W.data["yt-report-moderation-state-log"]&&
this.player&&(B={cpn:this.player.getVideoData().cpn},_.Sy("liveChatBeingModerated",B))};
_.p.attachLiveChatResponseVeTrackingParams=function(W){W=_.XF(W);var B=_.m1(),z=_.q6("liveChatRenderer.trackingParams",this.data);B&&z&&_.$q(B,_.XF(z),W)};
_.p.handleBuyflowMessages=function(W){var B=W.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,z=W.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,G=W.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.Wpx(_.Yn(_.po),B.replace(/-/g,"+").replace(/_/g,"/"),function(Y){W.ports[0].postMessage({success:!0,buyFlowResponse:Y})},void 0,function(Y){W.ports[0].postMessage({success:!1,
error:Y&&Y.message||"Buyflow rejected without error."})},_.IP().get("hl"),void 0,function(){W.ports[0].postMessage({closed:!0})},z,G)};
_.p.setupPlayerProgressRelay=function(){var W=this;if(!this.isListeningForPlayerProgress){var B=_.vA();B!=null&&B.getPlayerPromise&&(B.getPlayerPromise().then(function(z){W.playerApiReady(z)}),this.isListeningForPlayerProgress=!0)}};
_.p.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.p.playerApiReady=function(W){this.setPlayer(W)};
_.p.playerProgressHandler=function(){if(this.player){var W=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":W.current})}};
_.p.playerAdStartHandler=function(W){this.postToContentWindow({"yt-player-ad-start":W})};
_.p.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.p.playerStateChangeHandler=function(W){this.postToContentWindow({"yt-player-state-change":W})};
_.p.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22606_playerEvents);W&&(this.player=W,this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$22606_playerEvents),_.v0(this.hostElement,"player-api-ready"))};
_.p.liveChatPageUrl=function(W,B,z,G){return!z||B?"about:blank":z.liveChatRenderer?(B=_.Uk(this.currentPageUrl).JSC$10032_queryData_,JZo(B),W=_.Uk(W),B.add("continuation",z.liveChatRenderer.continuations[0].reloadContinuationData.continuation),z=_.Ks()==="USER_INTERFACE_THEME_DARK",(G||z)&&B.add("dark_theme","true"),_.s5(W,B),G=_.Uk(W.toString()),z=G.JSC$10032_queryData_,"SESSION_INDEX"in _.Xq&&(z.add("authuser",_.eD("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Xq&&z.add("pageId",_.eD("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Xq&&z.add("sdc",_.eD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),G.toString()):""};
_.p.isCollapsed=function(W,B){return B!==null?B:this.isChatReplay()||W&&W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage?!0:W?W.liveChatRenderer?W.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.r("live_chat_hide_premiere_replay_message")||W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.p.isHidden=function(W,B,z){var G=B&&B.conversationBarRenderer&&B.conversationBarRenderer.availabilityMessage,Y=B&&B.liveChatRenderer&&B.liveChatRenderer.showHideButton,d=B&&B.liveChatRenderer&&B.liveChatRenderer.showButton;return z&&W&&!G&&!d||!z&&W&&!G&&!Y?!0:B&&B.liveChatRenderer&&B.liveChatRenderer.initialDisplayState?B.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.p.computeButtonOverride=function(W,B){if(W&&B)return{type:"outline"}};
_.p.setCollapsedState=function(W){_.k(W,_.GfR)&&(this.isHiddenByUser=!!_.k(W,_.GfR).collapsed,!this.isHiddenByUser&&_.r("enable_teaser_framework_web_client")&&_.c0(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.p.forwardReduxActionToIframe=function(W){this.postToContentWindow({"yt-live-chat-forward-redux-action":W})};
_.p.onLoopRangeChange=function(W){this.showAboveScrim=!(W==null||!W.postId)};
_.p.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.p.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.p.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.p.sendDarkThemePostMessage=function(W){this.postToContentWindow({"yt-live-chat-set-dark-theme":W})};
_.p.onLiveChatBuyFlowCallback=function(W){this.postToContentWindow({"yt-live-chat-buy-flow-callback":W})};
_.p.handleKeyboardEvent=function(W){(0,_.mP.containsValue)(VFF,W.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:W.type,keyCode:W.keyCode}})};
_.p.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.p.postToContentWindow=function(W){if(this.isFrameReady)try{var B=window.location.protocol+"//"+window.location.host,z;(z=this.chatframe)!=null&&z.contentWindow?this.chatframe.contentWindow.postMessage(W,B):_.Oc(new _.oX("Tried posting a message to an iframe with no content window",W))}catch(G){_.jy(G)}};
_.p.shouldHideChatFrame=function(W){return W&&_.r("hide_live_chat_button_when_collapsed")};
_.G5.Object.defineProperties(Fj.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.r("live_chat_overflow_hide_chat")||_.r("web_watch_chat_hide_button_killswitch"))return _.r("live_chat_overflow_hide_chat");var W,B,z,G;return!!((W=this.data)==null?0:(B=W.liveChatRenderer)==null?0:(z=B.header)==null?0:(G=z.liveChatHeaderRenderer)==null?0:G.collapseButton)}}});
Fj.prototype.collapsedChanged=Fj.prototype.collapsedChanged;Fj.prototype.urlChanged=Fj.prototype.urlChanged;Fj.prototype.dataChanged=Fj.prototype.dataChanged;Fj.prototype.onShowHideChat=Fj.prototype.onShowHideChat;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Fj.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Fj.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",_.kI)],Fj.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.h(_.Ds.YtOpenPopupBehavior),_.y("design:type",Object)],Fj.prototype,"ytOpenPopupBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Fj.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Fj.prototype,"currentPageUrl",void 0);
_.Q([_.F({computed:"computeBaseUrl(currentPageUrl,data)"}),_.y("design:type",Object)],Fj.prototype,"baseUrl",void 0);_.Q([_.F({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.y("design:type",String)],Fj.prototype,"url",void 0);_.Q([_.F(),_.y("design:type",Object)],Fj.prototype,"isHiddenByUser",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.y("design:type",Object)],Fj.prototype,"hidden",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.y("design:type",Boolean)],Fj.prototype,"collapsed",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.y("design:type",Boolean)],Fj.prototype,"hideChatFrame",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fj.prototype,"showAboveScrim",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fj.prototype,"watchNextGrid",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Fj.prototype,"modernButtons",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fj.prototype,"roundedContainer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fj.prototype,"noBorder",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Fj.prototype,"roundBackground",void 0);
_.Q([_.F({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.y("design:type",Object)],Fj.prototype,"toggleButtonOverride",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Fj.prototype,"overflowHideChat",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fj.prototype,"forceDarkTheme",void 0);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Fj.prototype,"enableShowWithoutHideChatButton",null);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fj.prototype,"theaterWatchWhile",void 0);_.Q([_.Hf("#chatframe"),_.y("design:type",HTMLIFrameElement)],Fj.prototype,"chatframe",void 0);_.Q([_.IN("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fj.prototype,"onShowHideChat",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fj.prototype,"dataChanged",null);
_.Q([_.oN("url"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fj.prototype,"urlChanged",null);_.Q([_.oN("collapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fj.prototype,"collapsedChanged",null);_.Q([_.u({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Fj);
_.D(Fj,"ytd-live-chat-frame",function(){if(ekm!==void 0)return ekm;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ekm=W},{mode:1});var mdK;var Sz=function(){var W=_.S.apply(this,arguments)||this;W.modern=_.r("web_modern_buttons");W.buttonOverrides={style:"call-to-action",type:"filled"};return W};
_.C(Sz,_.S);Sz.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=_.M_(this.data.backgroundColor)))};
Sz.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var W=this.getFormattedStringLoggingDirectives(this.data.headline);W&&this.rendererBehavior.logExplicitClick(W)}};
Sz.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var W=this.getFormattedStringLoggingDirectives(this.data.description);W&&this.rendererBehavior.logExplicitClick(W)}};
Sz.prototype.getFormattedStringLoggingDirectives=function(W){return W&&W.runs&&W.runs.length>0&&W.runs[0]&&W.runs[0].loggingDirectives?W.runs[0].loggingDirectives:null};
Sz.prototype.dataChanged=Sz.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Sz.prototype,"rendererBehavior",void 0);_.Q([_.h(CfR.YtMacroReplacementBehavior),_.y("design:type",Object)],Sz.prototype,"macroReplacementBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Sz.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Sz.prototype,"navigationEndpoint",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Sz.prototype,"enableColors",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Sz.prototype,"modern",void 0);_.Q([_.F(),_.y("design:type",Object)],Sz.prototype,"buttonOverrides",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Sz.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Sz);
_.D(Sz,"ytd-action-basic-immersive-content-renderer",function(){if(mdK!==void 0)return mdK;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return mdK=W},{mode:1});var xdM;var DdF;var bm=function(){return _.S.apply(this,arguments)||this};
_.C(bm,_.S);bm.prototype.dataChanged=function(){var W;((W=this.data)==null?void 0:W.backgroundColor)!==void 0&&_.kw(this.hostElement,{"--bgu-color":_.M_(this.data.backgroundColor)})};
bm.prototype.onImageTileClick=function(){var W;((W=this.data)==null?0:W.navigationEndpoint)&&_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var B;((B=this.data)==null?0:B.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.G5.Object.defineProperties(bm.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?void 0:W.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 W;return((W=this.data)==null?void 0:W.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var W,B,z;if(((W=this.data)==null?void 0:(B=W.detailsLine)==null?void 0:B.texts)!=null&&((z=this.data)==null?void 0:z.detailsLine.texts.length)>0){var G;return(G=this.data)==null?void 0:G.detailsLine.texts.map(function(Y){return Y.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var W,B,z;if(((W=this.data)==null?void 0:(B=W.optionalDetailsLine)==null?void 0:B.texts)!=null&&((z=this.data)==null?void 0:z.optionalDetailsLine.texts.length)>0){var G;return(G=this.data)==null?void 0:G.optionalDetailsLine.texts.map(function(Y){return Y.text}).join("")}return null}}});
bm.prototype.dataChanged=bm.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],bm.prototype,"rendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],bm.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],bm.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data.backgroundColor"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bm.prototype,"hasBackgroundColor",null);
_.Q([_.H("data.objectFit"),_.y("design:type",Object),_.y("design:paramtypes",[])],bm.prototype,"getObjectFit",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.tileRenderingStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bm.prototype,"hasTileMetadata",null);_.Q([_.H("data.detailsLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],bm.prototype,"getSecondaryDetails",null);
_.Q([_.H("data.optionalDetailsLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],bm.prototype,"getOptionalDetails",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bm.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],bm);
_.D(bm,"ytd-image-tile-renderer",function(){if(DdF!==void 0)return DdF;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return DdF=W},{mode:1});var Q8Q;var jz=function(){return _.S.apply(this,arguments)||this};
_.C(jz,_.S);jz.prototype.getOpenLinkIcon=function(){return _.r("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
jz.prototype.onSitelinkTap=function(){_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.r("kevlar_command_handler_migration_killswitch"))_.Jr(this.hostElement,this.data.clickCommands,this.hostElement);else for(var W=_.A(this.data.clickCommands),B=W.next();!B.done;B=W.next())this.ytComponentBehavior.resolveCommand(B.value)};
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],jz.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],jz.prototype,"rendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],jz.prototype,"data",void 0);_.Q([_.u({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],jz);
_.D(jz,"ytd-sitelink-renderer",function(){if(Q8Q!==void 0)return Q8Q;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Q8Q=W},{mode:1});var f9=function(){var W=_.S.apply(this,arguments)||this;W.paddingFix=_.r("enable_ads_web_ep_buenos_aires_and_padding_fix");return W};
_.C(f9,_.S);f9.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"}}}};
f9.prototype.dataChanged=function(){var W=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(B){B.clickTrackingParams&&delete B.clickTrackingParams;W.ytMacroReplacementBehavior.sendServiceRequestAction([B])})};
f9.prototype.shouldHideFooter=function(W){return!(W&&_.r("use_ads_engagement_panel_desktop_footer_cta"))};
_.G5.Object.defineProperties(f9.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?void 0:W.imageTileRenderers)===void 0||((B=this.data)==null?void 0:B.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(z){var G;return(G=_.k(z,ZmM))==null?void 0:G.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?void 0:W.imageTileRenderers)===void 0||((B=this.data)==null?void 0:B.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(z){var G;return((G=_.k(z,ZmM))==null?void 0:G.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
f9.prototype.dataChanged=f9.prototype.dataChanged;_.Q([_.h(CfR.YtMacroReplacementBehavior),_.y("design:type",Object)],f9.prototype,"ytMacroReplacementBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],f9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],f9.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],f9.prototype,"paddingFix",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data.imageTileRenderers"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],f9.prototype,"removeBorderFromImageTiles",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.imageTileRenderers"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],f9.prototype,"useFooteredMetadataRenderingStyle",null);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f9.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],f9);
_.D(f9,"ytd-action-engagement-panel-content-renderer",function(){if(xdM!==void 0)return xdM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return xdM=W},{mode:1});var yvF;var qYF=_.m(function(W){var B=W.data;var z=W.customCommandResolver;return _.w("ad-grid-card-image-full-metadata-view-model",{class:function(){var G;return((G=B().interaction)==null?0:G.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.TG(_.YF({visibilityCallback:function(G){var Y,d=(Y=B().interaction)==null?void 0:Y.onFirstVisible;G&&d&&_.aB(d)},
showOption:_.he}),_.N$(function(){return B().interaction},z)),
"aria-label":function(){var G,Y;return(G=B().interaction)==null?void 0:(Y=G.accessibility)==null?void 0:Y.label}},_.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.w(_.Sc,{data:function(){return B().adImage}},{adImageViewModel:function(G){return _.w(_.qU,{data:G.data,
customCommandResolver:z})}})),_.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.w(_.V,{cond:function(){return B().headline},
then:function(G){return _.w(_.r0,{text:G,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.w(_.V,{cond:function(){return B().detailsLine},
then:function(G){return _.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.w(_.Sc,{data:G},{adDetailsLineViewModel:function(Y){return _.w(_.KY,{data:Y.data,customCommandResolver:z,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.w(_.V,{cond:function(){return B().secondaryDetailsLine},
then:function(G){return _.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.w(_.Sc,{data:G},{adDetailsLineViewModel:function(Y){return _.w(_.KY,{data:Y.data,customCommandResolver:z,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"zk");var nHQ=_.m(function(W){var B=W.data;var z=W.customCommandResolver;return _.w("ad-grid-card-image-view-model",{class:function(){var G;return((G=B().interaction)==null?0:G.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.TG(_.YF({visibilityCallback:function(G){var Y,d=(Y=B().interaction)==null?void 0:Y.onFirstVisible;G&&d&&_.aB(d)},
showOption:_.he}),_.N$(function(){return B().interaction},z)),
"aria-label":function(){var G,Y;return(G=B().interaction)==null?void 0:(Y=G.accessibility)==null?void 0:Y.label}},_.w(_.Sc,{data:function(){return B().adImage}},{adImageViewModel:function(G){return _.w(_.qU,{data:G.data,
customCommandResolver:z})}}),_.w("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.w(_.Sc,{data:function(){return B().adCardBadge}},{adCardBadgeViewModel:_.rmD})))},"Ak");var N33=_.m(function(W){var B=W.data;var z=W.customCommandResolver;return _.w("ad-grid-card-text-view-model",{class:function(){var G;return((G=B().interaction)==null?0:G.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.TG(_.YF({visibilityCallback:function(G){var Y,d=(Y=B().interaction)==null?void 0:Y.onFirstVisible;G&&d&&_.aB(d)},
showOption:_.he}),_.N$(function(){return B().interaction},z)),
"aria-label":function(){var G,Y;return(G=B().interaction)==null?void 0:(Y=G.accessibility)==null?void 0:Y.label}},_.w("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.w(_.V,{cond:function(){return B().title},
then:function(G){return _.w(_.r0,{text:G,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.w("div",{class:function(){return _.r("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.w(_.IJ,{each:function(){var G;
return((G=B())==null?void 0:G.descriptions)||[]},
keyBy:"INDEX"},function(G){return _.w(_.r0,{text:G,className:function(){return _.r("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.w("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.w(_.Sc,{data:function(){return B().moreInfoButton}},{adButtonViewModel:function(G){return _.w(_.Sh,{data:G.data,
customCommandResolver:z})}})))},"Bk");var $dh=_.m(function(W){var B=W.data;var z=W.customCommandResolver;var G=W.adGridCardCollectionStyle;return _.w("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.TG(_.YF({visibilityCallback:function(Y){var d,E=(d=B().interaction)==null?void 0:d.onFirstVisible;Y&&E&&_.aB(E)},
showOption:_.he})),style:function(){return"grid-template-columns: repeat("+h1Q(G?G():B().style)+", minmax(0, 1fr));"}},_.w(_.Sc,{data:function(){var Y;
return(Y=B())==null?void 0:Y.gridCards}},{adGridCardImageViewModel:function(Y){return _.w(nHQ,{data:Y.data,
customCommandResolver:z})},
adGridCardImageFullMetadataViewModel:function(Y){return _.w(qYF,{data:Y.data,customCommandResolver:z})},
adGridCardTextViewModel:function(Y){return _.w(N33,{data:Y.data,customCommandResolver:z})}}))},"Ck");_.Vm(_.m(function(W){var B=W.data;return _.w("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.TG(_.YF({visibilityCallback:function(z){var G,Y=(G=B().interaction)==null?void 0:G.onFirstVisible;z&&Y&&_.aB(Y)},
showOption:_.he}),_.N$(function(){return B().interaction},F0m))},_.w("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.w(_.V,{cond:_.jlu("(min-width: "+((0,_.tb)()+_.$S)+"px)"),
then:function(){return _.w(_.Sc,{data:function(){return B().adGridCardCollection}},{adGridCardCollectionViewModel:function(z){return _.w($dh,{data:z.data,
customCommandResolver:F0m})}})},
else:function(){return _.w(_.Sc,{data:function(){return B().adGridCardCollection}},{adGridCardCollectionViewModel:function(z){return _.w($dh,{data:z.data,
customCommandResolver:F0m,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.w("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.w(_.Sc,{data:function(){return B().adButton}},{adButtonViewModel:function(z){return _.w(_.Sh,{data:z.data,
customCommandResolver:F0m})}})))},"Dk"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=W.data;return _.w("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.TG(_.YF({visibilityCallback:function(z){var G,Y=(G=B().interaction)==null?void 0:G.onFirstVisible;z&&Y&&_.aB(Y)},
showOption:_.he}),_.N$(function(){return B().interaction},SbR))},_.w("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.w(_.Sc,{data:function(){if(_.jlu("(min-width: "+((0,_.tb)()+_.$S)+"px)")())var z=B().adGridCardCollection;
else{z=Object.assign({},_.k(B().adGridCardCollection,rZM));var G;z.gridCards!==void 0&&((G=z.gridCards)==null?void 0:G.length)>1?z.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":z.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";z={adGridCardCollectionViewModel:z}}return z}},{adGridCardCollectionViewModel:function(z){return _.w($dh,{data:z.data,
customCommandResolver:SbR})}})),_.w("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.w(_.Sc,{data:function(){return B().adButton}},{adButtonViewModel:function(z){return _.w(_.Sh,{data:z.data,
customCommandResolver:SbR})}})))},"Ek"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.kz}});var OS=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return W};
_.C(OS,_.S);_.p=OS.prototype;_.p.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"}}}};
_.p.attached=function(){this.getDataFromPlayerAndRender()};
_.p.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.p.getDataFromPlayerAndRender=function(){var W=this,B=_.TN(this.hostElement);B&&B.getPlayerPromise().then(function(z){W.getCachedDataAndListen(z)})};
_.p.getCachedDataAndListen=function(W){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=W)};
_.p.resolveCachedActions=function(){var W=_.q6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(W=W&&W())&&!_.mP.isEmpty(W)&&this.sendUpdateEngagementPanelAction(W);(W=(W=_.q6("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&W())&&!_.mP.isEmpty(W)&&this.sendChangeEngagementPanelVisibilityAction(W);(W=(W=_.q6("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&W())&&!_.mP.isEmpty(W)&&this.sendScrollToEngagementPanelCommand(W)};
_.p.sendUpdateEngagementPanelAction=function(W){var B;_.c0(this.hostElement,"yt-update-engagement-panel-action",[(B=_.mP.get(W,"action"))!=null?B:W])};
_.p.sendChangeEngagementPanelVisibilityAction=function(W){_.c0(this.hostElement,"yt-change-engagement-panel-visibility-action",[W])};
_.p.sendScrollToEngagementPanelCommand=function(W){_.c0(this.hostElement,"yt-scroll-to-engagement-panel-command",[W])};
_.p.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.r("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Oc(Error("No"))};
OS.prototype.dataChanged=OS.prototype.dataChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],OS.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],OS.prototype,"componentBehavior",void 0);_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",_.kI)],OS.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],OS.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],OS.prototype,"player",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],OS.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],OS);
_.D(OS,"ytd-ads-engagement-panel-content-renderer",function(){if(yvF!==void 0)return yvF;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return yvF=W},{mode:1});var LPb;var Xj=function(){var W=_.S.apply(this,arguments)||this;W.player=null;W.JSC$22643_playerEvents=new Map;W.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return W};
_.C(Xj,_.S);_.p=Xj.prototype;_.p.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]]"}}}}}};
_.p.created=function(){this.player=null;this.JSC$22643_playerEvents=new Map;this.JSC$22643_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22643_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22643_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22643_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.p.attached=function(){var W=this,B=_.TN();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));B&&B.getPlayerPromise().then(function(z){W.setPlayer(z);W.set("isPageLoad",!1)})};
_.p.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22643_playerEvents);this.set("player",W);W&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$22643_playerEvents),W.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.p.onLoopRangeChange=function(W){var B=_.dO().resolve(_.Y8(_.ij));if((!B||B.isOnWatch())&&this.hostElement.clientHeight){var z;!W&&((z=this.data)==null?0:z.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.p.onVideoProgress=function(W){var B,z,G=((B=this.player)==null?void 0:(z=B.getPresentingPlayerType)==null?void 0:z.call(B))===2;this.isAdPlaying!==G&&this.set("isAdPlaying",G);var Y;if(!G&&(Y=this.player)!=null&&Y.getLoopRange()){z=this.player.getLoopRange();B=z.startTimeMs;z=z.endTimeMs;G=this.player.getProgressState(1).seekableStart;var d;B<G*1E3&&((d=this.data)==null?0:d.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
W=z<W*1E3;var E;((E=this.player)==null?0:E.getLoopRange())&&W&&this.player.seekTo(B/1E3)}};
_.p.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.p.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.p.onYtDeleteClipEngagementPanelCommand=function(W){_.k(W,KFo).command&&this.ytComponentBehavior.resolveCommand(_.k(W,KFo).command)};
_.G5.Object.defineProperties(Xj.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.Bg("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Xj.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Xj.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",_.kI)],Xj.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Xj.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Xj.prototype,"isAdPlaying",void 0);_.Q([_.F({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],Xj.prototype,"isPageLoad",void 0);_.Q([_.F({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],Xj.prototype,"isDarkTheme",void 0);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xj.prototype,"voteCount",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xj.prototype,"channelEndpoint",null);_.Q([_.H("channelEndpoint"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xj.prototype,"channelHref",null);_.Q([_.u({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Xj);
_.D(Xj,"ytd-clip-attribution-renderer",function(){if(LPb!==void 0)return LPb;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return LPb=W},{mode:1});var Ud3;var K9=function(){var W=_.S.apply(this,arguments)||this;W.player=null;W.JSC$22648_playerEvents=new Map;return W};
_.C(K9,_.S);_.p=K9.prototype;_.p.created=function(){this.player=null;this.JSC$22648_playerEvents=new Map;this.JSC$22648_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22648_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22648_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.p.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.p.attached=function(){var W=this,B=_.TN();B&&B.getPlayerPromise().then(function(z){W.setPlayer(z);W.set("isPageLoad",!1)})};
_.p.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22648_playerEvents);this.set("player",W);if(W){this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$22648_playerEvents);var B;(W==null?void 0:(B=W.getPresentingPlayerType)==null?void 0:B.call(W))===2&&this.playerAdStartHandler()}};
_.p.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.p.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.p.onVideoProgress=function(){var W,B,z=((W=this.player)==null?void 0:(B=W.getPresentingPlayerType)==null?void 0:B.call(W))===2;this.isAdPlaying!==z&&this.set("isAdPlaying",z)};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],K9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",_.kI)],K9.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],K9.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],K9.prototype,"isAdPlaying",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],K9.prototype,"isPageLoad",void 0);_.Q([_.u({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],K9);
_.D(K9,"ytd-clip-section-footer-renderer",function(){if(Ud3!==void 0)return Ud3;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Ud3=W},{mode:1});var MwM;var aeM;var Rkb=function(){return _.S.apply(this,arguments)||this};
_.C(Rkb,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Rkb.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Rkb.prototype,"data",void 0);_.Q([_.u({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Rkb);
_.D(Rkb,"ytd-clip-ad-state-renderer",function(){if(aeM!==void 0)return aeM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return aeM=W},{mode:1});var Wbm;var um=function(){var W=_.S.apply(this,arguments)||this;W.value="";W.valid=!1;W.userChangedValue=!1;W.disabled=!1;W.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return W};
_.C(um,_.S);_.p=um.prototype;_.p.detached=function(){this.userChangedValue=!1};
_.p.handleKeyDown=function(W){if(_.gb)var B=13;else _.uYx&&_.ts?B=13:B=13;W.keyCode===B&&W.preventDefault()};
_.p.handleInput=function(){var W=_.tH(this.hostElement).querySelector("#title");if(W){var B=(W.value||"").replace(/\r|\n/g," ");this.set("value",B);W.value=B;this.valid=W.validate();this.userChangedValue=!0}};
_.p.handleBlur=function(){this.valid=_.tH(this.hostElement).querySelector("#title").validate()};
_.p.onValueChanged=function(){_.v0(this.hostElement,"title-changed",{title:this.value})};
_.p.onValidChanged=function(){_.v0(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.p.setInput=function(W,B){var z=_.tH(this.hostElement).querySelector("#title");z&&(z.value=W,this.handleInput(),B&&(z.invalid=!1,this.valid=!0))};
_.p.onClipCreationDisable=function(){this.set("disabled",!0)};
_.p.onClipCreationEnable=function(){this.set("disabled",!1)};
_.p.onClipCreationVisibilityChange=function(W){var B=this;W.visible?requestAnimationFrame(function(){var z;((z=_.tH(B.hostElement).querySelector("#title"))==null?void 0:z.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
um.prototype.onValidChanged=um.prototype.onValidChanged;um.prototype.onValueChanged=um.prototype.onValueChanged;um.prototype.handleBlur=um.prototype.handleBlur;um.prototype.handleInput=um.prototype.handleInput;um.prototype.handleKeyDown=um.prototype.handleKeyDown;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],um.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],um.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],um.prototype,"value",void 0);_.Q([_.F(),_.y("design:type",Object)],um.prototype,"valid",void 0);_.Q([_.F(),_.y("design:type",Object)],um.prototype,"userChangedValue",void 0);_.Q([_.F(),_.y("design:type",Object)],um.prototype,"disabled",void 0);_.Q([_.IN("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],um.prototype,"handleKeyDown",null);
_.Q([_.IN("input"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],um.prototype,"handleInput",null);_.Q([_.IN("blur"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],um.prototype,"handleBlur",null);_.Q([_.oN("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],um.prototype,"onValueChanged",null);
_.Q([_.oN("valid"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],um.prototype,"onValidChanged",null);_.Q([_.u({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],um);
_.D(um,"ytd-clip-creation-text-input-renderer",function(){if(Wbm!==void 0)return Wbm;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Wbm=W},{mode:1});var BHM;var zfZ;var GPm;var YkF;var d5K;var ez=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};W.pendingStoryboardImages_={};W.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];W.tickLabelInterval=30;W.mediumTickInterval=5;W.largeTickInterval=15;W.aboveRulerHeight=32;W.rulerHeight=50;W.smallTickHeight=4;W.mediumTickHeight=8;W.largeTickHeight=16;W.mediaListeners_=
{};return W};
_.C(ez,_.S);_.p=ez.prototype;_.p.attached=function(){var W=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(B){B=_.A(["screen and (min-resolution: "+B+")","screen and (max-resolution: "+B+")"]);for(var z=B.next();!z.done;z=B.next()){z=z.value;var G=window.matchMedia(z);G&&(W.mediaListeners_[z]=W.updatePixelRatio_.bind(W),G.addEventListener?G.addEventListener("change",W.mediaListeners_[z]):G.addListener?G.addListener(W.mediaListeners_[z]):delete W.mediaListeners_[z])}})};
_.p.detached=function(){this.setPlayer(null);for(var W=_.A(Object.keys(this.mediaListeners_)),B=W.next();!B.done;B=W.next()){var z=B.value;B=this.mediaListeners_[z];(z=window.matchMedia(z))&&(z.removeEventListener?z.removeEventListener("change",B):z.removeListener&&z.removeListener(B))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.p.onVisibilityChangedAction_=function(W){var B=this;W.visible&&!this.player_&&(W=_.TN())&&W.getPlayerPromise().then(function(z){B.setPlayer(z)})};
_.p.setPlayer=function(W){W&&this.set("player_",W)};
_.p.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.p.setUpCanvas_=function(){var W=this.rulerWidth,B=this.devicePixelRatio_,z=this.visible;this.set("canvasReady_",!1);if(z&&B!==0){z=this.aboveRulerHeight+this.rulerHeight;var G=_.tH(this.hostElement).querySelector("#ticks");G.width=W*B;G.height=z*B;G.style.width=W+"px";G.style.height=z+"px";G.getContext("2d").scale(B,B);this.set("canvasReady_",!0)}};
_.p.drawRuler_=function(W,B,z,G,Y,d,E,v,c,J,g,t){W&&z&&B&&(W=_.tH(this.hostElement).querySelector("#ticks"),B=W.getContext("2d"),B.clearRect(0,0,W.width,W.height),B.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),B.lineWidth=2,B.beginPath(),B.moveTo(0,this.aboveRulerHeight),B.lineTo(W.width,this.aboveRulerHeight),B.moveTo(0,W.height),B.lineTo(W.width,W.height),B.stroke(),this.drawRulerTicks_(W,d,Y,G),this.drawStoryboardImages_(W,z,d,Y,G),B.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
B.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(E-d,G,!1),this.rulerHeight),z=this.timeToPixels_(v-d,G,!1),B.fillRect(z,this.aboveRulerHeight,W.width-z,this.rulerHeight),this.drawSpeedLines_(W,d,t))};
_.p.drawRulerTicks_=function(W,B,z,G){var Y=W.getContext("2d");Y.save();Y.lineWidth=1;for(var d=Math.floor(Math.max(0,B-this.tickLabelInterval));d<B+z;d++){Y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var E=(d-B)*G;Y.beginPath();Y.moveTo(E,W.height);var v=this.smallTickHeight;d%this.largeTickInterval===0?v=this.largeTickHeight:d%this.mediumTickInterval===0&&(v=this.mediumTickHeight);Y.lineTo(E,W.height-v);Y.stroke();d%this.tickLabelInterval===0&&(Y.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),Y.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),Y.fillText(Q1(d),E+4,12),Y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Y.moveTo(E,0),Y.lineTo(E,this.aboveRulerHeight),Y.stroke())}Y.restore()};
_.p.percentToHex_=function(W){W=Math.round(W*255).toString(16);W.length<2&&(W="0"+W);return W};
_.p.drawSpeedLines_=function(W,B,z){var G=W.getContext("2d");G.save();var Y=Math.min(25,Math.abs(z)-15)/25,d=W.width*.3*Y,E=W.width*-.3,v=W.width*1.3,c=this.aboveRulerHeight;W=W.height;var J=Math.round(4*Y),g=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");g.length<7&&(g="#"+g.substring(1,4).repeat(2));var t=this.percentToHex_(.5+Y/2);t=g+t;g+="00";if(Y>0)for(Y=0;Y<J;Y++){var P=E+Math.random()*(v-E),Z=c+Math.random()*(W-c),l=d+B%d,b=G.createLinearGradient(P,Z,P+l,Z);
z<0?(b.addColorStop(0,t),b.addColorStop(.4,t),b.addColorStop(.9,g)):(b.addColorStop(.1,g),b.addColorStop(.6,t),b.addColorStop(1,t));G.strokeStyle=b;G.lineWidth=1;G.beginPath();G.moveTo(P,Z);G.lineTo(P+l,Z);G.stroke()}G.restore()};
_.p.getStoryboardForTime_=function(W,B,z){z===void 0&&(z=B.getNumberOfStoryboardLevels()-1);W=B.getStoryboardFrameIndex(W,z);return B.getStoryboardFrame(W,z)};
_.p.drawStoryboardImages_=function(W,B,z,G,Y){if(!this.disabled){W=W.getContext("2d");var d=this.getStoryboardForTime_(0,B);if(d){var E=d.width/d.columns;d=d.height/d.rows;var v=E/d,c=this.rulerHeight*v;c=this.tickLabelInterval*(v<this.tickLabelInterval*Y/this.rulerHeight?1/Math.floor(this.tickLabelInterval*Y/c):Math.round(c/(this.tickLabelInterval*Y)));var J=c*Y,g=this.rulerHeight,t=J/this.rulerHeight,P=Math.floor(Math.max(0,z-c));for(P-=P%c;P<z+G;P+=c){var Z=this.getStoryboardForTime_(P,B),l=this.getPreloadedStoryboard_(Z.url);
if(l){var b=(P-z)*Y,O=this.aboveRulerHeight,K=Z.column*E,e=Z.row*d;if(v<t){var a=g/(J/v);Z=E;a*=d;e+=(d-a)/2}else Z=J/(g*v)*E,a=d,K+=(E-Z)/2;W.drawImage(l,K,e,Z,a,b,O,J,g)}else this.fetchStoryboardImage_(Z)}}}};
_.p.getPreloadedStoryboard_=function(W){return this.storyboardImages_.find(function(B){if(B.src==W)return!0;var z=B.src.indexOf(W);return z!=-1&&z==B.src.length-W.length})};
_.p.fetchStoryboardImage_=function(W){var B=this,z=this.getPreloadedStoryboard_(W.url),G=this.pendingStoryboardImages_[W.url];z||G!==void 0||(z=new Promise(function(Y){var d=new Image(W.width,W.height);d.src=W.url;d.onload=function(){Y(d)};
d.onerror=function(){Y(null)}}),this.pendingStoryboardImages_[W.url]=z,z.then(function(Y){Y&&B.push("storyboardImages_",Y);
return Y}).finally(function(){delete B.pendingStoryboardImages_[W.url]}))};
_.p.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.p.timeToPixels_=function(W,B,z){W*=B;return z===void 0||z?W+"px":W};
_.p.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
ez.prototype.drawRuler_=ez.prototype.drawRuler_;ez.prototype.setUpCanvas_=ez.prototype.setUpCanvas_;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],ez.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],ez.prototype,"start",void 0);_.Q([_.F({value:30}),_.y("design:type",Number)],ez.prototype,"end",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],ez.prototype,"visible",void 0);_.Q([_.F(),_.y("design:type",Object)],ez.prototype,"player_",void 0);_.Q([_.F(),_.y("design:type",Number)],ez.prototype,"tickSpacing",void 0);_.Q([_.F(),_.y("design:type",Number)],ez.prototype,"windowSizeSec",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],ez.prototype,"rulerWidth",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],ez.prototype,"rulerShift",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],ez.prototype,"canvasReady_",void 0);_.Q([_.F({value:function(){return[]}}),
_.y("design:type",Array)],ez.prototype,"storyboardImages_",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],ez.prototype,"disabled",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],ez.prototype,"forceRender_",void 0);_.Q([_.F({value:1}),_.y("design:type",Number)],ez.prototype,"devicePixelRatio_",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],ez.prototype,"windowSpeed",void 0);
_.Q([_.oN("visible","devicePixelRatio_","rulerWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ez.prototype,"setUpCanvas_",null);
_.Q([_.oN("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.y("design:type",Function),_.y("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.y("design:returntype")],ez.prototype,"drawRuler_",null);_.Q([_.NJ({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],ez);
_.D(ez,"yt-clip-creation-scrubber-canvas",function(){if(d5K===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);d5K=W}W=d5K;return W},
{mode:2});var pC_;var AIm;var my=function(){var W=_.S.apply(this,arguments)||this;W.start=0;W.end=30;W.visible=!1;W.draggingLeft_=!1;W.draggingRight_=!1;W.draggingRuler_=!1;W.draggingWindow_=!1;W.seekableStart=0;W.seekableEnd=0;W.rulerWidth_=0;W.rulerShift_=0;W.windowSlideSpeed=0;W.disabled=!1;W.initialized=!1;W.durationAccessibilityLabel="";W.activeLoopRange_=!1;W.rulerDragMouseStart_=0;W.rulerDragRulerStart_=0;W.rulerDragStartTime_=0;W.rulerDragEndTime_=0;W.dragMouseLastX_=0;W.scrollInterval_=null;W.scrubberVe_=null;W.boundHandlers_=
{};W.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return W};
_.C(my,_.S);_.p=my.prototype;
_.p.created=function(){var W=this;this.JSC$22661_playerEvents=new Map;this.JSC$22661_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22661_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22661_playerEvents.set("onStateChange",this.onStateChange_);var B={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(B).forEach(function(z){W.boundHandlers_[z]=B[z].bind(W)})};
_.p.attached=function(){this.activeLoopRange_=!1;_.tH(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.tH(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.PA(156731)};
_.p.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.tH(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.tH(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.p.onVisibilityChangedAction_=function(W){var B=this;W.visible&&!this.player_&&(W=_.TN())&&W.getPlayerPromise().then(function(z){B.setPlayer(z)})};
_.p.setPlayer=function(W){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22661_playerEvents);W&&(this.set("player_",W),this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$22661_playerEvents))};
_.p.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.p.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.p.beginHandleDrag_=function(W){this.disabled||(W.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=W.clientX,W.target===_.tH(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():W.target===_.tH(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.p.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.p.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.p.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.p.beginRulerDrag_=function(W){this.disabled||(W.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=W.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.p.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.p.beginWindowScroll_=function(){var W=this;this.scrollInterval_=setInterval(function(){var B=W.windowSlideSpeed;if(B=_.Ouo(W.start,W.boundedRulerStartLimit_())?B-.1:_.Ouo(W.end,W.boundedRulerEndLimit_())?B+.1:0){var z=W.capRulerOffset_(W.rulerShift_+B);z==W.rulerShift_?B=0:(W.set("rulerShift_",z),_.v0(W.hostElement,"set-fixed-length-range",{start:W.start+B,duration:W.end-W.start}))}W.set("windowSlideSpeed",B)},33)};
_.p.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.p.endDrag_=function(){this.logClick();var W=void 0;this.draggingRight_?W=this.end-1:this.draggingLeft_&&(W=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,W);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))};
_.p.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.p.updateRulerSize_=function(){this.set("rulerWidth_",_.tH(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.p.handleMouseDrag_=function(W){W.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(W):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(W):this.draggingWindow_&&this.handleWindowDrag_(W))};
_.p.handleRulerDrag_=function(W){W=this.pixelsToTime_(W.clientX-this.rulerDragMouseStart_);W=this.capRulerOffset_(this.rulerDragRulerStart_-W);this.set("rulerShift_",W);var B=this.rulerDragStartTime_-(this.rulerDragRulerStart_-W);_.v0(this.hostElement,"set-fixed-length-range",{start:B,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-W)-B})};
_.p.handleWindowDrag_=function(W){var B=W.clientX-this.dragMouseLastX_;this.dragMouseLastX_=W.clientX;W=this.pixelsToTime_(B);_.v0(this.hostElement,"set-fixed-length-range",{start:this.start+W,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.p.capRulerOffset_=function(W){var B=this.seekableStart-this.pixelsToTime_(16),z=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(B,W),z)};
_.p.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.p.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.p.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.p.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.p.handleWindowHandleDrag_=function(W){var B=W.clientX-this.dragMouseLastX_;this.dragMouseLastX_=W.clientX;W=this.pixelsToTime_(B);if(this.draggingLeft_){var z=this.start+W;var G=this.end}else this.draggingRight_&&(z=this.start,G=this.end+W);_.v0(this.hostElement,"set-range",{start:z,end:G,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.p.onVideoProgress_=function(W){this.disabled||(W=this.timeToPixels_(W-this.rulerShift_,this.tickSpacing_),_.tH(this.hostElement).querySelector("#playhead").style.transform="translateX("+W+")")};
_.p.onClipCreationDisable_=function(){this.endDrag_()};
_.p.timeToPixels_=function(W,B,z){W*=B;return z===void 0||z?W+"px":W};
_.p.pixelsToTime_=function(W){return W/this.tickSpacing_};
_.p.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.p.centerRuler_=function(W,B,z){this.set("rulerShift_",this.capRulerOffset_(W+(B-W)/2-z/2))};
_.p.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.p.updateLoopRange_=function(W,B,z,G,Y,d,E){W&&(B&&G&&!z?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(W.pauseVideo(),W.seekTo(Y,!1,void 0,void 0,50)):this.draggingRight_?(W.pauseVideo(),W.seekTo(d-.1,!1,void 0,void 0,50)):(E!==void 0?W.seekTo(E,!0,void 0,void 0,50):(B=W.getCurrentTime(),B<Y||B>d?W.seekTo(Y,!0,void 0,void 0,50):W.seekTo(B,!0,void 0,void 0,50)),W.playVideo()),W.setLoopRange({startTimeMs:Y*1E3,endTimeMs:d*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(W.getCurrentTime())):
this.activeLoopRange_&&(W.setLoopRange(null),this.activeLoopRange_=!1))};
_.p.updateHandles_=function(){_.tH(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.tH(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.p.updateRuler_=function(){var W=this.end,B=this.start,z=this.draggableStartLimit_(),G=this.draggableEndLimit_();(B<z-.001||W>G+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.p.computeDurationLabel_=function(W,B){return W?W.replace("$clip_length",parseFloat(B).toFixed(1)):""};
_.p.computeDuration_=function(W,B){return this.isValidTime_(W)&&this.isValidTime_(B)&&W<B?B-W:0};
_.p.isValidTime_=function(W){return isNaN(parseFloat(W))||W<0?!1:this.player_?W>=this.seekableStart&&W<=this.seekableEnd:!0};
_.p.computeWindowSizeSec_=function(W,B,z){return Math.min((W||12E4)/1E3,z-B)};
_.p.computeTickSpacing_=function(W,B){return B?B/W:1};
_.p.onDragStateChanged_=function(){_.v0(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.p.centerRangeOnTime_=function(W){var B=this.duration;W=jjQ(W-B/2,B,this.seekableStart,this.seekableEnd);_.v0(this.hostElement,"set-fixed-length-range",{start:W.start,duration:W.end-W.start})};
_.p.nearlyLessThan_=function(W,B,z){return W+(z===void 0?1E-6:z)<B};
_.p.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var W=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(W,this.start)||this.nearlyLessThan_(this.end,W))&&this.centerRangeOnTime_(W)}};
_.p.onStateChange_=function(W){this.visible&&!this.disabled&&W==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.p.computeDragState_=function(W,B,z,G){return W?"left":B?"right":z?"ruler":G?"window":"none"};
_.p.logClick=function(){var W=_.m1(),B=_.et();W&&B&&this.scrubberVe_&&(_.r("combine_ve_grafts")?_.ui(_.SK(),this.scrubberVe_,B):_.$q(W,B,this.scrubberVe_),_.RP(W,this.scrubberVe_))};
my.prototype.onDragStateChanged_=my.prototype.onDragStateChanged_;my.prototype.updateRuler_=my.prototype.updateRuler_;my.prototype.updateHandles_=my.prototype.updateHandles_;my.prototype.onUpdateLoopRange=my.prototype.onUpdateLoopRange;my.prototype.onInitializedChanged_=my.prototype.onInitializedChanged_;my.prototype.onVisibleChanged_=my.prototype.onVisibleChanged_;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],my.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",Object)],my.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],my.prototype,"start",void 0);_.Q([_.F(),_.y("design:type",Object)],my.prototype,"end",void 0);_.Q([_.F({computed:"computeDuration_(start, end)"}),_.y("design:type",Number)],my.prototype,"duration",void 0);
_.Q([_.F(),_.y("design:type",String)],my.prototype,"lengthTemplate",void 0);_.Q([_.F({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.y("design:type",String)],my.prototype,"durationLabel",void 0);_.Q([_.F(),_.y("design:type",Object)],my.prototype,"visible",void 0);_.Q([_.F(),_.y("design:type",Object)],my.prototype,"player_",void 0);_.Q([_.F(),_.y("design:type",Object)],my.prototype,"draggingLeft_",void 0);_.Q([_.F(),_.y("design:type",Object)],my.prototype,"draggingRight_",void 0);
_.Q([_.F(),_.y("design:type",Object)],my.prototype,"draggingRuler_",void 0);_.Q([_.F({value:!1}),_.y("design:type",Object)],my.prototype,"draggingWindow_",void 0);_.Q([_.F({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.y("design:type",Number)],my.prototype,"tickSpacing_",void 0);_.Q([_.F(),_.y("design:type",Object)],my.prototype,"seekableStart",void 0);_.Q([_.F(),_.y("design:type",Object)],my.prototype,"seekableEnd",void 0);
_.Q([_.F(),_.y("design:type",Number)],my.prototype,"windowSizeMs",void 0);_.Q([_.F({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.y("design:type",Number)],my.prototype,"windowSizeSec_",void 0);_.Q([_.F(),_.y("design:type",Object)],my.prototype,"rulerWidth_",void 0);_.Q([_.F(),_.y("design:type",Object)],my.prototype,"rulerShift_",void 0);_.Q([_.F(),_.y("design:type",Object)],my.prototype,"windowSlideSpeed",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],my.prototype,"disabled",void 0);_.Q([_.F(),_.y("design:type",Object)],my.prototype,"initialized",void 0);_.Q([_.F(),_.y("design:type",Object)],my.prototype,"durationAccessibilityLabel",void 0);_.Q([_.F({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.y("design:type",String)],my.prototype,"dragState",void 0);
_.Q([_.oN("visible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],my.prototype,"onVisibleChanged_",null);_.Q([_.oN("initialized"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],my.prototype,"onInitializedChanged_",null);_.Q([_.oN("player_","visible","disabled","initialized","start","end"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],my.prototype,"onUpdateLoopRange",null);
_.Q([_.oN("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],my.prototype,"updateHandles_",null);_.Q([_.oN("start","end"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],my.prototype,"updateRuler_",null);
_.Q([_.oN("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],my.prototype,"onDragStateChanged_",null);_.Q([_.NJ({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],my);
_.D(my,"yt-clip-creation-scrubber-view",function(){if(AIm===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;pC_===void 0&&(pC_=document.createElement("template"));var G=pC_;z.call(B,G.content.cloneNode(!0),W.content.firstChild);AIm=W}W=AIm;return W},{mode:2});var xK=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};W.startHighlightTimeout=0;W.endHighlightTimeout=0;return W};
_.C(xK,_.S);_.p=xK.prototype;_.p.attached=function(){var W=this;this.startInput.addEventListener("input",function(B){return W.handleStartInput_(B)});
this.endInput.addEventListener("input",function(B){return W.handleEndInput_(B)});
this.startInput.addEventListener("focusout",function(B){return W.handleStartBlur_(B)});
this.endInput.addEventListener("focusout",function(B){return W.handleEndBlur_(B)})};
_.p.setPlayer=function(W){this.set("player_",W)};
_.p.onSetFixedLengthRange_=function(W){var B=W.detail;W=B.start;var z=B.duration,G=B.startLimit;B=B.endLimit;G||(G=this.seekableStart_);B||(B=this.seekableEnd_);W=jjQ(W,z,G,B);this.start=W.start;this.end=W.end};
_.p.onSetRange_=function(W){var B=W.detail;W=B.start;var z=B.end,G=B.startLimit;B=B.endLimit;G||(G=this.seekableStart_);B||(B=this.seekableEnd_);if(W=fiQ(W,z,G,B,this.minLengthSec,this.maxLengthSec))this.start=W.start,this.end=W.end};
_.p.updateInputs_=function(){var W=this.end,B=this.start;this.startInput.focused||(this.startInput.value=Q1(B,!0));this.endInput.focused||(this.endInput.value=Q1(W,!0))};
_.p.handleStartInput_=function(W){W=bO3(W.target.value);if(W===null)this.set("startValid",!1);else{var B=this.end,z=fiQ(W,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);z?(this.set("endWillUpdate",z.end!==B),this.set("startValid",z.start===W)):this.set("startValid",!1)}};
_.p.handleEndInput_=function(W){W=bO3(W.target.value);if(W===null)this.set("endValid",!1);else{var B=this.start,z=OOm(this.start,W,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);z?(this.set("startWillUpdate",z.start!==B),this.set("endValid",z.end===W)):this.set("endValid",!1)}};
_.p.handleStartBlur_=function(W){W=bO3(W.target.value);W===null?this.startInput.value=Q1(this.start,!0):this.forceUpdateInputs_(fiQ(W,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.p.handleEndBlur_=function(W){W=bO3(W.target.value);W===null?this.endInput.value=Q1(this.end,!0):this.forceUpdateInputs_(OOm(this.start,W,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.p.forceUpdateInputs_=function(W){W&&(this.start=W.start,this.end=W.end);this.startInput.value=Q1(this.start,!0);this.endInput.value=Q1(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.p.initializeClipRange_=function(){var W=this.seekableEnd_,B=this.seekableStart_,z=this.visible_,G=this.player_;if(!G||!z||B===null||!W)this.set("initialized",!1);else if(!this.initialized){var Y=G.getCurrentTime(),d=this.getDefaultLengthSec_();z=G.getVideoData();var E=G.getPlayerState()==1,v=z.isLive;d=Math.min(d,W-B);Y=Math.max(0,Y);W=v?OOm(Y-d,Y,B,W,this.minLengthSec,this.maxLengthSec):E?jjQ(Y-d/2,d,B,W):jjQ(Y,d,B,W);this.start=W.start;this.end=W.end;this.set("initialized",!0);z.isLive&&G.seekTo(W.start);
this.startInput.value=Q1(this.start,!0);this.endInput.value=Q1(this.end,!0)}};
_.p.onStartChanged_=function(){var W=this;_.v0(this.hostElement,"start-changed",{start:this.start});var B;isNaN((B=this.oldStart)!=null?B:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){W.set("highlightStart",!1);W.startHighlightTimeout=0;W.oldStart=W.start},3E3))};
_.p.onEndChanged_=function(){var W=this;_.v0(this.hostElement,"end-changed",{end:this.end});var B;isNaN((B=this.oldEnd)!=null?B:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){W.set("highlightEnd",!1);W.endHighlightTimeout=0;W.oldEnd=W.end},3E3))};
_.p.onVisibilityChangedAction_=function(W){var B=this;this.set("visible_",W.visible);this.visible_&&!this.player_&&(W=_.TN())&&W.getPlayerPromise().then(function(z){B.setPlayer(z)})};
_.p.computeMinLengthSec_=function(W){return W/1E3||5};
_.p.computeMaxLengthSec_=function(W){return W/1E3||60};
_.p.computeDefaultLengthSec_=function(W){return W/1E3};
_.p.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.p.computeSeekableStart_=function(W,B){return W&&B?W.getProgressState(1).seekableStart:0};
_.p.computeSeekableEnd_=function(W,B){return W&&B?W.getProgressState(1).seekableEnd:0};
_.p.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.p.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.p.onDragState_=function(W){this.set("highlightStart",W.detail.startChanging);this.set("highlightEnd",W.detail.endChanging)};
xK.prototype.onDragState_=xK.prototype.onDragState_;xK.prototype.onEndChanged_=xK.prototype.onEndChanged_;xK.prototype.onStartChanged_=xK.prototype.onStartChanged_;xK.prototype.initializeClipRange_=xK.prototype.initializeClipRange_;xK.prototype.updateInputs_=xK.prototype.updateInputs_;xK.prototype.onSetRange_=xK.prototype.onSetRange_;xK.prototype.onSetFixedLengthRange_=xK.prototype.onSetFixedLengthRange_;
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],xK.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],xK.prototype,"data",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],xK.prototype,"start",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],xK.prototype,"startValid",void 0);
_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],xK.prototype,"startWillUpdate",void 0);_.Q([_.F({value:30}),_.y("design:type",Number)],xK.prototype,"end",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],xK.prototype,"endValid",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],xK.prototype,"endWillUpdate",void 0);_.Q([_.F({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.y("design:type",Number)],xK.prototype,"minLengthSec",void 0);
_.Q([_.F({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.y("design:type",Number)],xK.prototype,"maxLengthSec",void 0);_.Q([_.F({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.y("design:type",Number)],xK.prototype,"defaultLengthSec",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],xK.prototype,"visible_",void 0);_.Q([_.F(),_.y("design:type",Object)],xK.prototype,"player_",void 0);
_.Q([_.F({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.y("design:type",Number)],xK.prototype,"seekableStart_",void 0);_.Q([_.F({computed:"computeSeekableEnd_(player_, visible_)"}),_.y("design:type",Number)],xK.prototype,"seekableEnd_",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],xK.prototype,"initialized",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],xK.prototype,"disabled",void 0);
_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],xK.prototype,"highlightStart",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],xK.prototype,"highlightEnd",void 0);_.Q([_.Hf("#start"),_.y("design:type",HTMLInputElement)],xK.prototype,"startInput",void 0);_.Q([_.Hf("#end"),_.y("design:type",HTMLInputElement)],xK.prototype,"endInput",void 0);
_.Q([_.IN("set-fixed-length-range"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],xK.prototype,"onSetFixedLengthRange_",null);_.Q([_.IN("set-range"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],xK.prototype,"onSetRange_",null);_.Q([_.oN("start","end"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xK.prototype,"updateInputs_",null);
_.Q([_.oN("player_","visible_","seekableStart_","seekableEnd_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xK.prototype,"initializeClipRange_",null);_.Q([_.oN("start"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xK.prototype,"onStartChanged_",null);_.Q([_.oN("end"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xK.prototype,"onEndChanged_",null);
_.Q([_.IN("clips-drag-state"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],xK.prototype,"onDragState_",null);_.Q([_.NJ({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],xK);
_.D(xK,"yt-clip-creation-scrubber-renderer",function(){if(YkF===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;GPm===void 0&&(GPm=document.createElement("template"));var G=GPm;z.call(B,G.content.cloneNode(!0),W.content.firstChild);YkF=W}W=YkF;return W},{mode:2});var Dm=function(){var W=_.S.apply(this,arguments)||this;W.player_=null;W.JSC$22675_playerEvents=new Map;W.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return W};
_.C(Dm,_.S);_.p=Dm.prototype;_.p.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"}}}};
_.p.created=function(){this.JSC$22675_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22675_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22675_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22675_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.p.detached=function(){this.setPlayer(null)};
_.p.onVisibilityChangedAction_=function(W){var B=this,z;if((z=this.data)==null?0:z.externalVideoId){var G;this.videoId=(G=this.data)==null?void 0:G.externalVideoId}this.getPlayer().then(function(Y){if(W.visible)B.returnTime=Y.getCurrentTime(),B.isAtLiveHead=Y.getProgressState().isAtLiveHead;else{var d=B.returnTime;B.isAtLiveHead&&(d=Number.POSITIVE_INFINITY);Y.seekTo(d,void 0,void 0,void 0,51)}})};
_.p.getPlayer=function(){var W=this;if(!this.player_){var B=_.TN();if(B)return B.getPlayerPromise().then(function(z){W.setPlayer(z);return z})}return Promise.resolve(this.player_)};
_.p.setPlayer=function(W){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22675_playerEvents);if(W){this.player_=W;var B;((B=this.data)==null?0:B.externalVideoId)||this.set("videoId",W.getVideoData().video_id||"");var z;(W==null?void 0:(z=W.getPresentingPlayerType)==null?void 0:z.call(W))===2&&(this.set("isAdPlaying",!0),_.c0(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$22675_playerEvents)}};
_.p.ready=function(){_.tH(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.p.onTitleChanged_=function(W){this.set("titleValue",W.detail.title)};
_.p.onStartChanged_=function(W){this.set("start",W.detail.start)};
_.p.onEndChanged_=function(W){this.set("end",W.detail.end)};
_.p.onTitleValidChanged_=function(W){this.set("titleValid",W.detail.valid)};
_.p.onStartValidChanged_=function(W){this.set("startValid",W.detail.valid)};
_.p.onEndValidChanged_=function(W){this.set("endValid",W.detail.valid)};
_.p.onVideoDataChange_=function(){var W;if((W=this.data)==null||!W.externalVideoId){var B;this.set("videoId",((B=this.player_)==null?void 0:B.getVideoData().video_id)||"")}};
_.p.computeFormValid_=function(W,B,z,G){return!!(W&&B&&z&&G)};
_.p.computeCancelButton_=function(W,B,z){return W&&_.k(W,_.Ep)?{buttonRenderer:Object.assign({},_.k(W,_.Ep),{isDisabled:B||z})}:null};
_.p.computeSubmitButton_=function(W,B,z){return W&&_.k(W,_.Ep)?{buttonRenderer:Object.assign({},_.k(W,_.Ep),{command:void 0,isDisabled:!this.formValid||B||z})}:null};
_.p.computeSubmitCommand_=function(W){return W||null};
_.p.onSubmit_=function(W){var B=this;W.stopPropagation();W.preventDefault();this.submitCommand_&&(W={},W.comment_text=this.titleValue,W.clip_external_video_id=this.videoId,W.clip_offset_ms=parseInt(this.start*1E3,10),W.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.V0(this.hostElement,[this.submitCommand_,W]).then(function(){B.set("isLoading_",!1)},function(){B.set("isLoading_",!1)}))};
_.p.playerAdStartHandler_=function(){_.c0(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.p.playerAdEndHandler_=function(){_.c0(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.p.onVideoProgress_=function(){var W=this;this.getPlayer().then(function(B){var z,G=(B==null?void 0:(z=B.getPresentingPlayerType)==null?void 0:z.call(B))===2;W.isAdPlaying!==G&&(G?W.playerAdStartHandler_():W.playerAdEndHandler_())})};
Dm.prototype.onEndValidChanged_=Dm.prototype.onEndValidChanged_;Dm.prototype.onStartValidChanged_=Dm.prototype.onStartValidChanged_;Dm.prototype.onTitleValidChanged_=Dm.prototype.onTitleValidChanged_;Dm.prototype.onEndChanged_=Dm.prototype.onEndChanged_;Dm.prototype.onStartChanged_=Dm.prototype.onStartChanged_;Dm.prototype.onTitleChanged_=Dm.prototype.onTitleChanged_;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Dm.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",Object)],Dm.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Dm.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Dm.prototype,"data",void 0);_.Q([_.F({value:""}),_.y("design:type",String)],Dm.prototype,"titleValue",void 0);
_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Dm.prototype,"titleValid",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],Dm.prototype,"start",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],Dm.prototype,"startValid",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],Dm.prototype,"end",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],Dm.prototype,"endValid",void 0);_.Q([_.F({value:""}),_.y("design:type",String)],Dm.prototype,"videoId",void 0);
_.Q([_.F({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.y("design:type",Boolean)],Dm.prototype,"formValid",void 0);_.Q([_.F({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.y("design:type",Object)],Dm.prototype,"submitButton_",void 0);_.Q([_.F({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.y("design:type",Object)],Dm.prototype,"submitCommand_",void 0);
_.Q([_.F({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.y("design:type",Object)],Dm.prototype,"cancelButton_",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Dm.prototype,"isLoading_",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Dm.prototype,"isAdPlaying",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],Dm.prototype,"returnTime",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Dm.prototype,"isAtLiveHead",void 0);
_.Q([_.IN("title-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Dm.prototype,"onTitleChanged_",null);_.Q([_.IN("start-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Dm.prototype,"onStartChanged_",null);_.Q([_.IN("end-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Dm.prototype,"onEndChanged_",null);
_.Q([_.IN("title-valid-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Dm.prototype,"onTitleValidChanged_",null);_.Q([_.IN("start-valid-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Dm.prototype,"onStartValidChanged_",null);_.Q([_.IN("end-valid-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Dm.prototype,"onEndValidChanged_",null);
_.Q([_.NJ({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Dm);
_.D(Dm,"yt-clip-creation-renderer",function(){if(zfZ===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;BHM===void 0&&(BHM=document.createElement("template"));var G=BHM;z.call(B,G.content.cloneNode(!0),W.content.firstChild);zfZ=W}W=zfZ;return W},{mode:2});var Q_=function(){return _.S.apply(this,arguments)||this};
_.C(Q_,_.S);Q_.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"}}}};
Q_.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(W){return W.hasOwnProperty("clipCreationRenderer")})&&_.c0(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Q_.prototype.onPanelContentVisibleChanged=Q_.prototype.onPanelContentVisibleChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.tu.YtVisibilityBehavior),_.y("design:type",Object)],Q_.prototype,"ytVisibilityBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Q_.prototype,"ytdReduxBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Q_.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Q_.prototype,"panelContentVisible",void 0);_.Q([_.oN("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Q_.prototype,"onPanelContentVisibleChanged",null);_.Q([_.u({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Q_);
_.D(Q_,"ytd-clip-section-renderer",function(){if(MwM!==void 0)return MwM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return MwM=W},{mode:1});var ipo;var y_=function(){return _.S.apply(this,arguments)||this};
_.C(y_,_.S);_.p=y_.prototype;
_.p.onKeyDown=function(W){if(this.snippetElements.length!==0&&(W=W.keyCode,W===38||W===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);W===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.eT(this.highlightedIndex,-1,this.snippetElements.length);W=this.snippetElements.length;var B=this.highlightedIndex%W;this.highlightedIndex=B*W<0?B+W:B;W=this.snippetElements[this.highlightedIndex];this.highlightSnippet(W);this.ensureVisible(W)}};
_.p.onKeyUp=function(W){var B=this;s3m(W)&&(W.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.fg.cancelJob(this.inputTimerId),this.inputTimerId=_.fg.addLowPriorityJob(function(){B.typedValue&&(B.fetchSnippets(B.typedValue),B.logInputGesture(B.data))},1E3))};
_.p.onClick=function(W){(W=_.Sb9(W.target,null,"snippet-item"))&&this.selectSnippet(W)};
_.p.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.p.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.p.ready=function(){var W=this;this.inputElement.addEventListener("focus",function(){W.snippetsWrapper.style.removeProperty("display")})};
_.p.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.p.getSourceTimelines=function(){if(!this.data)return[];var W=[];if(this.data.searchInVideoSources)for(var B=_.A(this.data.searchInVideoSources),z=B.next();!z.done;z=B.next())z=z.value,z==="SEARCH_IN_VIDEO_SOURCE_ASR"?W.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):z==="SEARCH_IN_VIDEO_SOURCE_OCR"&&W.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return W};
_.p.fetchSnippets=function(W){var B=_.c0(this.hostElement,"yt-get-current-video-id-action")[0],z=this.getSourceTimelines();W={getSearchInVideoCommand:{externalVideoId:B,query:W!=null?W:"",sourceTimelines:z},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}})};
_.p.filterSnippets=function(W,B){var z=this;if(B){this.filteredSnippets=(0,_.mP.unsafeClone)(W);var G=RegExp(_.i_T(B),"i");this.filteredSnippets=this.filteredSnippets.filter(function(E){return G.test(z.ytRendererBehavior.getSimpleString(E.snippet))});
W=_.A(this.filteredSnippets);for(var Y=W.next();!Y.done;Y=W.next()){Y=Y.value;var d=this.ytRendererBehavior.getSimpleString(Y.snippet);Y.snippet={runs:[{text:d.substring(0,d.toLowerCase().indexOf(B))},{text:d.substring(d.toLowerCase().indexOf(B),d.toLowerCase().indexOf(B)+B.length),bold:!0},{text:d.substring(d.toLowerCase().indexOf(B)+B.length,d.length)}]}}}else this.filteredSnippets=W};
_.p.onUpdateSearchInVideoResults=function(W){if(!(this.snippets.length>0)){var B,z,G;if((G=(B=_.k(W,SK3))==null?void 0:(z=B.results)==null?void 0:z.length)!=null&&G){var Y;this.filteredSnippets=this.snippets=((Y=_.k(W,SK3))==null?void 0:Y.results).map(function(d){var E,v,c;return{startMs:d==null?void 0:(E=d.searchInVideoResultRenderer)==null?void 0:E.startMs,startTimeText:d==null?void 0:(v=d.searchInVideoResultRenderer)==null?void 0:v.startTimeText,snippet:d==null?void 0:(c=d.searchInVideoResultRenderer)==
null?void 0:c.snippet}})}}};
_.p.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};
_.p.highlightSnippet=function(W){W.classList.add("highlighted")};
_.p.removeSnippetHighlight=function(W){W.classList.remove("highlighted")};
_.p.selectSnippet=function(W){this.typedValue=String(W.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(W);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.p.ensureVisible=function(W){var B=this.snippetsWrapper.scrollTop,z=B+this.snippetsWrapper.clientHeight,G=W.offsetTop-this.snippetsWrapper.offsetTop;W=G+W.clientHeight;G<B?this.snippetsWrapper.scrollTop-=B-G:W>z&&(this.snippetsWrapper.scrollTop+=W-z)};
_.p.seekPlayer=function(W){var B,z;return _.T(function(G){if(G.nextAddress==1){if(!W)return G.jumpTo(0);B=Number(W.dataset.startOffset);return G.yield(_.vA().getPlayerPromise(),3)}z=G.yieldResult;z.seekTo(B/1E3,!0);z.wakeUpControls();_.HG(G)})};
_.p.logInputGesture=function(W){var B=_.m1();B&&(W==null?0:W.trackingParams)&&_.W3(B,_.XF(W.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.p.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("typed-value-changed",this.typedValue))};
_.p.updateTypedValueFromBinding=function(W){this.typedValue=W.currentTarget.value};
y_.prototype.typedValueChangedForBinding=y_.prototype.typedValueChangedForBinding;y_.prototype.dataChanged=y_.prototype.dataChanged;y_.prototype.panelContentVisibleChanged=y_.prototype.panelContentVisibleChanged;y_.prototype.onClick=y_.prototype.onClick;y_.prototype.onKeyUp=y_.prototype.onKeyUp;y_.prototype.onKeyDown=y_.prototype.onKeyDown;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],y_.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],y_.prototype,"data",void 0);_.Q([_.F({value:[]}),_.y("design:type",Array)],y_.prototype,"snippets",void 0);_.Q([_.F({value:[]}),_.y("design:type",Array)],y_.prototype,"filteredSnippets",void 0);_.Q([_.F({value:[]}),_.y("design:type",Array)],y_.prototype,"snippetElements",void 0);
_.Q([_.Hf("#siv-input"),_.y("design:type",HTMLElement)],y_.prototype,"inputElement",void 0);_.Q([_.Hf("#siv-snippets-wrapper"),_.y("design:type",HTMLElement)],y_.prototype,"snippetsWrapper",void 0);_.Q([_.F(),_.y("design:type",String)],y_.prototype,"typedValue",void 0);_.Q([_.F({value:-1}),_.y("design:type",Number)],y_.prototype,"highlightedIndex",void 0);_.Q([_.IN("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[_.j1]),_.y("design:returntype")],y_.prototype,"onKeyDown",null);
_.Q([_.IN("keyup"),_.y("design:type",Function),_.y("design:paramtypes",[_.j1]),_.y("design:returntype")],y_.prototype,"onKeyUp",null);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],y_.prototype,"onClick",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],y_.prototype,"panelContentVisible",void 0);
_.Q([_.oN("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],y_.prototype,"panelContentVisibleChanged",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],y_.prototype,"dataChanged",null);_.Q([_.oN("typedValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],y_.prototype,"typedValueChangedForBinding",null);
_.Q([_.u({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],y_);
_.D(y_,"ytd-search-in-video-renderer",function(){if(ipo!==void 0)return ipo;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ipo=W},{mode:1});var ExZ;var qt=function(){return _.S.apply(this,arguments)||this};
_.C(qt,_.S);qt.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
qt.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]]"}}}}}};
qt.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var W,B,z,G,Y=(B=_.k((W=this.data)==null?void 0:W.onClickCommand,_.DL))==null?void 0:(z=B.item)==null?void 0:(G=z.notificationTextRenderer)==null?void 0:G.successResponseText;Y&&_.eH2(this.hostElement,Y)}};
_.G5.Object.defineProperties(qt.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G;return this.isProductPlaceholder&&((W=this.data)==null?void 0:(B=W.hiddenProductOptions)==null?void 0:B.showDropCountdown)&&!!((z=this.data)==null?0:(G=z.hiddenProductOptions)==null?0:G.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var W;return!this.isProductPlaceholder&&!((W=this.data)==null?0:W.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var W,B;return!((W=this.data)==null?0:W.priceReplacementText)&&!((B=this.data)==null||!B.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],qt.prototype,"componentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],qt.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("isProductPlaceholder"),_.y("design:type",Object),_.y("design:paramtypes",[])],qt.prototype,"useCenterLayoutContainer",null);_.Q([_.F({computed:"computeButtonOverride(data)"}),_.y("design:type",Object)],qt.prototype,"buttonOverride",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],qt.prototype,"isProductPlaceholder",null);
_.Q([_.H("isProductPlaceholder"),_.y("design:type",Object),_.y("design:paramtypes",[])],qt.prototype,"showDropCountdown",null);_.Q([_.H("isProductPlaceholder","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],qt.prototype,"showBrandName",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],qt.prototype,"showPriceReplacementText",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],qt.prototype,"showPrice",null);
_.Q([_.H("isProductPlaceholder"),_.y("design:type",Object),_.y("design:paramtypes",[])],qt.prototype,"showMetadata",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],qt);
_.D(qt,"ytd-product-list-item-renderer",function(){if(ExZ!==void 0)return ExZ;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ExZ=W},{mode:1});var THR;var n9=function(){return _.S.apply(this,arguments)||this};
_.C(n9,_.S);n9.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
n9.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
n9.prototype.panelContentVisibleChanged=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return W.playerApi?z.jumpTo(2):z.yield(_.vA().getPlayerPromise(),3);z.nextAddress!=2&&(W.playerApi=z.yieldResult);(B=W.playerApi)==null||B.productsInVideoVisibilityUpdated(!!W.panelContentVisible);_.HG(z)})};
n9.prototype.panelContentVisibleChanged=n9.prototype.panelContentVisibleChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],n9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],n9.prototype,"panelContentVisible",void 0);_.Q([_.F(),_.y("design:type",Object)],n9.prototype,"data",void 0);
_.Q([_.oN("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],n9.prototype,"panelContentVisibleChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],n9);
_.D(n9,"ytd-product-list-renderer",function(){if(THR!==void 0)return THR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return THR=W},{mode:1});var vxQ;var Nt=function(){var W=_.S.apply(this,arguments)||this;W.hideTimestamps=!!_.QL("hide-transcript-timestamps");W.currentCueIndex=-1;W.flatCues=[];W.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};W.TEST_ONLY={getFlatCues:function(){return W.flatCues}};
return W};
_.C(Nt,_.S);_.p=Nt.prototype;_.p.hideTimestampsChanged=function(){_.Da("hide-transcript-timestamps",this.hideTimestamps)};
_.p.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.p.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.p.dataChanged=function(){var W;if((W=this.data)!=null&&W.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;W=_.A(this.data.cueGroups);for(var B=W.next();!B.done;B=W.next()){B=_.A(_.k(B.value,bmM).cues);for(var z=B.next();!z.done;z=B.next())this.flatCues.push(Number(_.k(z.value,j3o).startOffsetMs))}}};
_.p.onYtPlayerTimeChanged=function(W){if(!(W<0)){for(var B=this.currentCueIndex,z=B;;){var G=z>=0?this.flatCues[z]/1E3:-1;if(W+.5<G)--z;else if(G=z+1<this.flatCues.length?this.flatCues[z+1]/1E3:Infinity,W+.5>G)z+=1;else break}z!==B&&(B>=0&&((W=this.getCueElement(B))&&W.classList.remove("active"),(B=this.getCueGroupElement(B))&&B.classList.remove("active")),(B=this.getCueElement(z))&&B.classList.add("active"),(B=this.getCueGroupElement(z))&&B.classList.add("active"),this.currentCueIndex=z,this.isHovered||
this.scrollElementToTop(z))}};
_.p.scrollElementToTop=function(W){W=this.getCueElement(W>=3?W-3:0);this.hostElement.scrollTop=Math.min(W.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.p.getCueElement=function(W){return _.tH(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[W]+'"]')};
_.p.getCueGroupElement=function(W){return(W=this.getCueElement(W))&&W.parentElement?W.parentElement.parentElement:null};
_.p.onTap=function(W){var B=_.iP(W);W.target.classList.contains("cue")&&this.seekCueElement(B)};
_.p.onKeyPress=function(W){W.keyCode==13&&(W=_.Sb9(W.target,null,"cue"))&&this.seekCueElement(W)};
_.p.seekCueElement=function(W){W=Number(W.getAttribute("start-offset"));_.c0(this.hostElement,"yt-transcript-player-seek",[W/1E3])};
_.p.onMouseEnter=function(){this.isHovered=!0};
_.p.onMouseLeave=function(){this.isHovered=!1};
Nt.prototype.onMouseLeave=Nt.prototype.onMouseLeave;Nt.prototype.onMouseEnter=Nt.prototype.onMouseEnter;Nt.prototype.onKeyPress=Nt.prototype.onKeyPress;Nt.prototype.onTap=Nt.prototype.onTap;Nt.prototype.dataChanged=Nt.prototype.dataChanged;Nt.prototype.hideTimestampsChanged=Nt.prototype.hideTimestampsChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Nt.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Nt.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Nt.prototype,"hideTimestamps",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Nt.prototype,"isHovered",void 0);_.Q([_.oN("hideTimestamps"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nt.prototype,"hideTimestampsChanged",null);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nt.prototype,"dataChanged",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Nt.prototype,"onTap",null);_.Q([_.IN("keypress"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Nt.prototype,"onKeyPress",null);
_.Q([_.IN("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nt.prototype,"onMouseEnter",null);_.Q([_.IN("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nt.prototype,"onMouseLeave",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Nt);
_.D(Nt,"ytd-transcript-body-renderer",function(){if(vxQ!==void 0)return vxQ;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return vxQ=W},{mode:1});var cIN;var $K=function(){var W=_.S.apply(this,arguments)||this;W.darkerPanels=_.r("web_watch_darker_panels");return W};
_.C($K,_.S);$K.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],$K.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$K.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],$K.prototype,"darkerPanels",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],$K);
_.D($K,"ytd-transcript-footer-renderer",function(){if(cIN!==void 0)return cIN;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return cIN=W},{mode:1});var wCZ;var VkK;var L9=function(){var W=_.S.apply(this,arguments)||this;W.systemIcons=_.r("kevlar_system_icons");W.showClearButton=!1;return W};
_.C(L9,_.S);_.p=L9.prototype;_.p.handleInput=function(W){var B=this;W.target.value.length?_.BJ(this,"ytdTranscriptSearchBoxSearch",function(){B.emitSearchEvent(W)},500):(_.znu(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=W.target.value.length>0};
_.p.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.p.handleClick=function(){var W,B=(W=this.data)==null?void 0:W.trackingParams;B&&_.x3(_.SK(),B)};
_.p.handleClear=function(){_.znu(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var W,B,z=(B=_.k((W=this.data)==null?void 0:W.clearButton,_.Ep))==null?void 0:B.trackingParams;z&&_.x3(_.SK(),z);this.clear()};
_.p.emitSearchEvent=function(W){_.v0(this.hostElement,"yt-transcript-search-box-search",{query:W.target.value});var B,z;(W=(z=_.k((B=this.data)==null?void 0:B.searchButton,_.Ep))==null?void 0:z.trackingParams)&&_.x3(_.SK(),W)};
_.p.emitClearEvent=function(){_.v0(this.hostElement,"yt-transcript-search-box-clear")};
_.G5.Object.defineProperties(L9.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.tH(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],L9.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],L9.prototype,"systemIcons",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],L9);
_.D(L9,"ytd-transcript-search-box-renderer",function(){if(VkK!==void 0)return VkK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return VkK=W},{mode:1});var JI_;var gxm;var US=function(){return _.S.apply(this,arguments)||this};
_.C(US,_.S);US.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var W,B;this.sectionHeaderAriaLabel=(W=this.data)==null?void 0:(B=W.accessibility)==null?void 0:B.accessibilityData.label}};
US.prototype.fireSelectedEvent=function(W){_.v0(this.hostElement,"ytd-transcript-section-header",{startMs:W})};
US.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
US.prototype.handleKeyPress=function(W){this.data&&W.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.G5.Object.defineProperties(US.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var W,B;return(B=(W=this.data)==null?void 0:W.enableTappableTranscriptHeader)!=null?B:!1}}});
US.prototype.dataChanged=US.prototype.dataChanged;_.Q([_.F(),_.y("design:type",Object)],US.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],US.prototype,"sectionHeaderAriaLabel",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],US.prototype,"enableTappableTranscriptHeader",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],US.prototype,"dataChanged",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],US);
_.D(US,"ytd-transcript-section-header-renderer",function(){if(gxm!==void 0)return gxm;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return gxm=W},{mode:1});var tkR;var s0o;var Mt=function(){var W=_.S.apply(this,arguments)||this;W.isEditMode=!1;W.touchCaptionsEnabled=!1;W.deleteCaptionCorrectionPopupCommand=null;W.voteCaptionCorrectionPopupCommand=null;W.roundedContainer=!0;W.mouseOver=!1;W.textChanged=!1;W.messages={suggest_correction:_.kq("suggest_correction",void 0,"Edit caption"),suggested_caption:_.kq("suggested_caption",void 0,"Suggested caption"),submit_correction:_.kq("submit_correction",void 0,"Submit for review"),cancel_correction:_.kq("cancel_correction",
void 0,"Cancel"),replay_segment:_.kq("replay_segment",void 0,"Re-play segment"),delete_correction:_.kq("delete_correction",void 0,"Delete correction")};W.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return W};
_.C(Mt,_.S);_.p=Mt.prototype;_.p.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)};
_.p.handleDelete=function(W){if(this.deleteCaptionCorrectionPopupCommand){var B=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);B&&this.ytdOpenPopupBehavior.openPopup(B);W.stopPropagation()}};
_.p.handleSubmit=function(W){if(this.data&&this.data.submitCaptionCorrectionCommand&&(W.stopPropagation(),this.textChanged)){var B;W=(B=_.k(this.data.submitCaptionCorrectionCommand,_.Mx4))==null?void 0:B.params;B=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:W,correctionText:String(this.ironTextAreaElement.value),originalText:_.zR(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(B);this.isEditMode=!1}};
_.p.handleUpdateSegmentText=function(W){(W=_.k(W,UZ3))&&W.targetId&&this.data&&W.targetId===this.data.targetId&&(W.userCorrection&&(this.editedText=W.userCorrection),W.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.zR(this.data.snippet)),W.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=W.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=W.voteCaptionCorrectionPopupCommand?
W.voteCaptionCorrectionPopupCommand:null,W.accessibility&&(this.segmentAriaLabel=W.accessibility.accessibilityData.label))};
_.p.handleCancel=function(W){this.isEditMode=!1;W.stopPropagation();this.logClientVe(159409)};
_.p.handleEditSegmentCommand=function(W){(W=_.k(W,LFZ))&&W.targetId&&this.data&&W.targetId===this.data.targetId&&this.handleEdit()};
_.p.handleEditButtonClick=function(W){this.data&&(this.handleEdit(),W.stopPropagation())};
_.p.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var W;(W=this.ironTextAreaElement.textarea)==null||W.focus();this.logClientVe(159407)}};
_.p.handleMouseEnter=function(){this.mouseOver=!0};
_.p.handleMouseLeave=function(){this.mouseOver=!1};
_.p.handleReplay=function(W){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),W.stopPropagation(),this.logClientVe(159408))};
_.p.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()))};
_.p.handleKeypress=function(W){this.data&&(this.isEditMode?W.stopPropagation():this.isEnterPress(W)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(W)&&this.logClientVe(138758))};
_.p.handleTextboxClick=function(W){W.stopPropagation()};
_.p.handleTextboxKeydown=function(W){this.isControlEnterPress(W)?this.handleSubmit(W):W.key==="Escape"&&this.handleCancel(W)};
_.p.handleTextboxKeyup=function(){this.textChanged=_.zR(this.latestText)!==String(this.ironTextAreaElement.value)};
_.p.fireSelectedEvent=function(W){_.v0(this.hostElement,"yt-transcript-segment-selected",{startMs:W})};
_.p.fireReplayEvent=function(W,B){_.v0(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(W-100,0),endMs:B})};
_.p.fireEditEvent=function(W,B){_.v0(this.hostElement,"yt-transcript-segment-edit",{startMs:W,endMs:B})};
_.p.isEnterPress=function(W){return W.key==="Enter"||W.code==="Enter"||W.code==="NumpadEnter"||W.keyCode===13?!0:!1};
_.p.isControlEnterPress=function(W){var B=W.key==="Enter"||W.code==="Enter"||W.code==="NumpadEnter"||W.keyCode===13;return(W.ctrlKey||W.metaKey)&&B};
_.p.isCopyPress=function(W){var B=W.ctrlKey;return W.key==="c"&&B};
_.p.logClick=function(){var W,B=(W=this.data)==null?void 0:W.trackingParams;B&&_.x3(_.SK(),B)};
_.p.logClientVe=function(W){_.mx(_.SK(),_.PA(W))};
_.G5.Object.defineProperties(Mt.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}}});
Mt.prototype.handleMouseLeave=Mt.prototype.handleMouseLeave;Mt.prototype.handleMouseEnter=Mt.prototype.handleMouseEnter;Mt.prototype.dataChanged=Mt.prototype.dataChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Mt.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],Mt.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Mt.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mt.prototype,"isEditMode",void 0);_.Q([_.F(),_.y("design:type",Object)],Mt.prototype,"touchCaptionsEnabled",void 0);_.Q([_.F(),_.y("design:type",Object)],Mt.prototype,"editedText",void 0);_.Q([_.F(),_.y("design:type",Object)],Mt.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.Q([_.F(),_.y("design:type",Object)],Mt.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.Q([_.F(),_.y("design:type",String)],Mt.prototype,"segmentAriaLabel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mt.prototype,"roundedContainer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mt.prototype,"mouseOver",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mt.prototype,"textChanged",void 0);_.Q([_.F(),_.y("design:type",Object)],Mt.prototype,"messages",void 0);
_.Q([_.Hf("#suggestion"),_.y("design:type",Object)],Mt.prototype,"ironTextAreaElement",void 0);_.Q([_.H("data","editedText"),_.y("design:type",Object),_.y("design:paramtypes",[])],Mt.prototype,"latestText",null);_.Q([_.H("touchCaptionsEnabled","isEditMode"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mt.prototype,"enableEditButton",null);
_.Q([_.H("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mt.prototype,"enableUndoButton",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mt.prototype,"dataChanged",null);_.Q([_.IN("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mt.prototype,"handleMouseEnter",null);
_.Q([_.IN("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mt.prototype,"handleMouseLeave",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Mt);
_.D(Mt,"ytd-transcript-segment-renderer",function(){if(s0o!==void 0)return s0o;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return s0o=W},{mode:1});var ay=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};W.isError=!1;W.darkerPanels=_.r("web_watch_darker_panels");W.useParentMaxHeight=_.r("web_watch_transscript_use_parent_max_height");W.segmentOffsets=[];W.segmentIndex=-1;return W};
_.C(ay,_.S);_.p=ay.prototype;_.p.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"}}}}};
_.p.segmentsChanged=function(){this.updateOffsets()};
_.p.onYtPlayerTimeChanged=function(W){for(var B=this.segmentIndex,z=B;;){if(z>=0){var G=this.segmentOffsets[z].start;var Y=this.segmentOffsets[z].isAutoScrollable}else G=-1,Y=!0;var d=W+.5;if(!Y){G=z+1<this.segmentOffsets.length?this.segmentOffsets[z+1].start:Infinity;if(d>=G){z+=1;continue}z=-1;break}if(d<G)G=z-1>=0&&this.segmentOffsets[z-1].isAutoScrollable,Y=z===0||G?1:2,z-=Y;else if(Y=z+1<this.segmentOffsets.length&&this.segmentOffsets[z+1].isAutoScrollable?1:2,G=z+Y<this.segmentOffsets.length?
this.segmentOffsets[z+Y].start:Infinity,d>G)z+=Y;else{if(z<0)break;z<this.segmentOffsets.length&&d>this.segmentOffsets[z].end&&(z=-1);break}}if(B!==z){if(B>=0){var E;(E=this.getSegmentElement(B))==null||E.classList.remove("active")}this.segmentIndex=z;if(!(z<0)){var v;(v=this.getSegmentElement(z))==null||v.classList.add("active");this.isHovered||this.scrollElementToTop(z)}}};
_.p.handleSegmentEdit=function(W){W.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=W.target,_.c0(this.hostElement,"yt-transcript-player-edit",[W.detail.startMs/1E3,W.detail.endMs/1E3]))};
_.p.handleSegmentSelected=function(W){_.c0(this.hostElement,"yt-transcript-player-seek",[W.detail.startMs/1E3])};
_.p.handleSegmentReplay=function(W){_.c0(this.hostElement,"yt-transcript-player-replay",[W.detail.startMs/1E3,W.detail.endMs/1E3])};
_.p.handleSectionHeaderSelected=function(W){_.c0(this.hostElement,"yt-transcript-player-seek",[W.detail.startMs/1E3])};
_.p.onMouseEnter=function(){this.isHovered=!0};
_.p.onMouseLeave=function(){this.isHovered=!1};
_.p.onRetryButtonClick=function(){_.v0(this.hostElement,"transcript-retry-button-click")};
_.p.getSegmentElement=function(W){return _.tH(this.hostElement).querySelector(":nth-child("+(W+1)+")")};
_.p.scrollElementToTop=function(W){W=this.getSegmentElement(W>=2?W-2:0);this.hostElement.scrollTop=Math.min(W.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.p.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(W){var B,z=(B=W.transcriptSegmentRenderer)!=null?B:W.transcriptSectionHeaderRenderer;return{start:Number(z.startMs)/1E3,end:Number(z.endMs)/1E3,isAutoScrollable:W.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.p.clearHighlightedSegments=function(){var W=_.tH(this.hostElement);W=_.A(W.querySelectorAll("ytd-transcript-segment-renderer"));for(var B=W.next();!B.done;B=W.next())B.value.classList.remove("active")};
_.G5.Object.defineProperties(ay.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?void 0:W.searchResultSegments)||((B=this.data)==null?void 0:B.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
ay.prototype.onMouseLeave=ay.prototype.onMouseLeave;ay.prototype.onMouseEnter=ay.prototype.onMouseEnter;ay.prototype.handleSectionHeaderSelected=ay.prototype.handleSectionHeaderSelected;ay.prototype.handleSegmentReplay=ay.prototype.handleSegmentReplay;ay.prototype.handleSegmentSelected=ay.prototype.handleSegmentSelected;ay.prototype.handleSegmentEdit=ay.prototype.handleSegmentEdit;ay.prototype.segmentsChanged=ay.prototype.segmentsChanged;
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],ay.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ay.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],ay.prototype,"isError",void 0);
_.Q([_.F(),_.y("design:type",Object)],ay.prototype,"noResultLabel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],ay.prototype,"darkerPanels",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],ay.prototype,"useParentMaxHeight",void 0);_.Q([_.H("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],ay.prototype,"segments",null);
_.Q([_.H("segments","noResultLabel"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ay.prototype,"displayNoResults",null);_.Q([_.oN("segments"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ay.prototype,"segmentsChanged",null);_.Q([_.IN("yt-transcript-segment-edit"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],ay.prototype,"handleSegmentEdit",null);
_.Q([_.IN("yt-transcript-segment-selected"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],ay.prototype,"handleSegmentSelected",null);_.Q([_.IN("yt-transcript-segment-replay"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],ay.prototype,"handleSegmentReplay",null);
_.Q([_.IN("ytd-transcript-section-header"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],ay.prototype,"handleSectionHeaderSelected",null);_.Q([_.IN("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ay.prototype,"onMouseEnter",null);_.Q([_.IN("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ay.prototype,"onMouseLeave",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],ay);
_.D(ay,"ytd-transcript-segment-list-renderer",function(){if(tkR!==void 0)return tkR;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tkR=W},{mode:1});var Ry=function(){var W=_.S.apply(this,arguments)||this;W.hideTimestamps=!!_.QL("hide-transcript-timestamps");W.isLoadingTranscripts=!1;W.darkerPanels=_.r("web_watch_darker_panels");W.isError=!1;W.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return W};
_.C(Ry,_.S);_.p=Ry.prototype;_.p.headerChanged=function(){var W,B;this.baseGetTranscriptsCommand=(B=_.k((W=this.data)==null?void 0:W.header,MNZ))==null?void 0:B.onTextChangeCommand};
_.p.bodyChanged=function(){var W=this.getBodyRenderer();W&&(W.initialSegments&&(this.initialTranscriptsRenderer=W),W.noResultLabel&&(this.noResultLabel=W.noResultLabel),W.retryLabel&&(this.retryLabel=W.retryLabel))};
_.p.detached=function(){this.clearSearchBoxText()};
_.p.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.p.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"}}}};
_.p.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.p.fireSearch=function(W){var B=this;if(W){var z=W.detail.query;if(this.baseGetTranscriptsCommand){var G;W=(G=_.k(this.baseGetTranscriptsCommand,_.zQ4))==null?void 0:G.params;var Y;G=_.k((Y=this.data)==null?void 0:Y.footer,fRh);var d;if((Y=(d=_.k(G==null?void 0:G.languageMenu,nhN))==null?void 0:d.subMenuItems)&&Y.length>0&&(d=Y.find(function(c){return c.selected}))){var E,v;
W=(E=d.continuation)==null?void 0:(v=E.reloadContinuationData)==null?void 0:v.continuation}E=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:W,searchQuery:z}});this.ytComponentBehavior.resolveCommand(E,{commandController:{onServerError:function(){B.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});ghb(this.ytContinuationHandlerBehavior,function(){return z===B.getCurrentSearchBoxText()})}}};
_.p.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.p.onRetryButtonClick=function(){this.isError=!1;var W={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:W}))};
_.p.hideTimestampsChanged=function(){_.Da("hide-transcript-timestamps",this.hideTimestamps)};
_.p.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.p.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.p.handleSignalActionCopyTranscript=function(){var W=this,B=this.getBodyRenderer();B&&(B=((B==null?void 0:B.searchResultSegments)||(B==null?void 0:B.initialSegments)||[]).map(function(z){return _.k(z,RmN)}).filter(function(z){return!!z}).map(function(z){return{snippet:z.snippet||{runs:[{text:""}]},
startTimeText:z.startTimeText||{simpleText:""}}}).map(function(z){var G=(z.snippet.runs||[]).reduce(function(Y,d){return Y+d.text},"");
return W.hideTimestamps?G:z.startTimeText.simpleText+" "+G}).join("\n"),this.copyToClipboard(B))};
_.p.copyToClipboard=function(W){navigator.clipboard&&navigator.clipboard.writeText(W)};
_.p.getCurrentSearchBoxText=function(){var W;return(W=this.searchBox)==null?void 0:W.value};
_.p.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.p.getBodyRenderer=function(){var W;return _.k((W=this.data)==null?void 0:W.body,aRF)};
_.p.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.G5.Object.defineProperties(Ry.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.tH(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
Ry.prototype.hideTimestampsChanged=Ry.prototype.hideTimestampsChanged;Ry.prototype.searchCleared=Ry.prototype.searchCleared;Ry.prototype.fireSearch=Ry.prototype.fireSearch;Ry.prototype.onReloadContinuationFinish=Ry.prototype.onReloadContinuationFinish;Ry.prototype.bodyChanged=Ry.prototype.bodyChanged;Ry.prototype.headerChanged=Ry.prototype.headerChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Ry.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ry.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Pl),_.y("design:type",Object)],Ry.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ry.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ry.prototype,"hideTimestamps",void 0);
_.Q([_.F(),_.y("design:type",Object)],Ry.prototype,"isLoadingTranscripts",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ry.prototype,"darkerPanels",void 0);_.Q([_.F(),_.y("design:type",Object)],Ry.prototype,"isError",void 0);_.Q([_.oN("data.header"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ry.prototype,"headerChanged",null);
_.Q([_.jJ("data.body"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ry.prototype,"bodyChanged",null);_.Q([_.IN("yt-reload-continuation-finish"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ry.prototype,"onReloadContinuationFinish",null);_.Q([_.IN("yt-transcript-search-box-search"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Ry.prototype,"fireSearch",null);
_.Q([_.IN("yt-transcript-search-box-clear"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ry.prototype,"searchCleared",null);_.Q([_.oN("hideTimestamps"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ry.prototype,"hideTimestampsChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Ry);
_.D(Ry,"ytd-transcript-search-panel-renderer",function(){if(JI_!==void 0)return JI_;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return JI_=W},{mode:1});var WP=function(){var W=_.S.apply(this,arguments)||this;W.player=null;W.playerPollJobId=0;return W};
_.C(WP,_.S);_.p=WP.prototype;_.p.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.p.onLoadReloadContinuation=function(W){_.r("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:W.target.data.continuation}}):(W={clickTrackingParams:W.target.data.clickTrackingParams,getTranscriptEndpoint:{params:W.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}}))};
_.p.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"}}}};
_.p.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.p.attached=function(){this.updatePlayerListening()};
_.p.detached=function(){this.updatePlayerListening()};
_.p.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.p.startPlayerListening=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return(B=_.TN())?z.yield(B.getPlayerPromise(),2):z.return();W.player=z.yieldResult;W.playerPollJobId=_.fg.addLowPriorityJob(function(){W.getPlayerVideoProgress()},1E3);
W.player.addEventListener("onCueRangeEnter",function(G){W.onCueRangeEnter(G)});
W.player.addEventListener("onCueRangeExit",function(G){W.onCueRangeExit(G)});
W.player.addEventListener("onStateChange",function(G){W.onPlayerStateChange(G)});
W.player.addEventListener("SEEK_TO",function(G){W.onPlayerSeek(G)});
_.HG(z)})};
_.p.getPlayerVideoProgress=function(){var W=this;_.fg.cancelJob(this.playerPollJobId);if(this.player){var B=this.player.getCurrentTime();_.c0(this.hostElement,"yt-player-time-changed",[B])}this.playerPollJobId=_.fg.addLowPriorityJob(function(){W.getPlayerVideoProgress()},1E3)};
_.p.stopPlayerListening=function(){this.player=null;_.fg.cancelJob(this.playerPollJobId)};
_.p.onPlayerStateChange=function(W){W===2&&this.removePendingCue()};
_.p.onPlayerSeek=function(W){var B;if(B=this.pendingReplayCueId)B=this.pendingReplayCueId,B=W===(_.r("web_transcript_cue_id_killswitch")?Number(B):Number(B.split("_")[1]));B||this.removePendingCue()};
_.p.onCueRangeEnter=function(W){K0o(W)&&(this.pendingReplayCueId=W)};
_.p.onCueRangeExit=function(W){K0o(W)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.p.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.p.onYtTranscriptPlayerSeek=function(W){this.player&&this.player.seekTo(W,!0)};
_.p.onYtTranscriptPlayerReplay=function(W,B){this.player&&(this.player.addCueRange(Xn3(W),W,B),this.player.seekTo(W,!0),this.player.playVideo())};
_.p.onYtTranscriptPlayerEdit=function(W,B){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(Xn3(W),W,B),this.player.seekTo(W,!0))};
WP.prototype.onLoadReloadContinuation=WP.prototype.onLoadReloadContinuation;WP.prototype.panelContentVisibleChanged=WP.prototype.panelContentVisibleChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],WP.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],WP.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],WP.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],WP.prototype,"panelContentVisible",void 0);_.Q([_.oN("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],WP.prototype,"panelContentVisibleChanged",null);
_.Q([_.IN("yt-load-reload-continuation"),_.y("design:type",Function),_.y("design:paramtypes",[Object]),_.y("design:returntype")],WP.prototype,"onLoadReloadContinuation",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],WP);
_.D(WP,"ytd-transcript-renderer",function(){if(wCZ!==void 0)return wCZ;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return wCZ=W},{mode:1});var PAm;var Zpm;var BP=function(){return _.S.apply(this,arguments)||this};
_.C(BP,_.S);BP.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Jr(this.hostElement,[this.data.clickCommand],this.hostElement))};
BP.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.tb)()+_.$S)+"px)"};
BP.prototype.updateShouldHideFromBinding=function(W){this.shouldHide=W.detail.value};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],BP.prototype,"rendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],BP.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],BP.prototype,"shouldHide",void 0);_.Q([_.u({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],BP);
_.D(BP,"ytd-ad-engagement-panel-banner-renderer",function(){if(Zpm!==void 0)return Zpm;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Zpm=W},{mode:_.PJ("kevlar_poly_si_batch_j070")?1:2});var rIR;var z0=function(){var W=_.S.apply(this,arguments)||this;W.modernPanels=_.r("kevlar_watch_modern_panels");W.buttonUpdate=_.r("web_modern_buttons");W.adsSemanticText=_.r("enable_ads_web_ep_buenos_aires_and_padding_fix");return W};
_.C(z0,_.S);z0.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.Q([_.F(),_.y("design:type",Object)],z0.prototype,"data",void 0);_.Q([_.F({computed:"computeHideDefaultAdBadge(data)"}),_.y("design:type",Boolean)],z0.prototype,"hideDefaultAdBadge",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],z0.prototype,"modernPanels",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],z0.prototype,"buttonUpdate",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],z0.prototype,"adsSemanticText",void 0);
_.Q([_.u({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],z0);
_.D(z0,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(rIR!==void 0)return rIR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return rIR=W},{mode:1});var kPo;var G0=function(){var W=_.S.apply(this,arguments)||this;W.darkerPanels=_.r("web_watch_darker_panels");W.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");W.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");W.modernPanels=_.r("kevlar_watch_modern_panels");W.headerClickListener=function(B){W.onHeaderClick(B)};
W.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return W};
_.C(G0,_.S);_.p=G0.prototype;_.p.computeAdsInfoButton=function(){if(_.r("web_modern_buttons")){var W,B;return(B=_.k((W=this.data)==null?void 0:W.subtitleComplex,Omh))==null?void 0:B.adInfoRenderer}};
_.p.updateHeaderClickListener=function(){var W,B,z;((W=this.data)==null?0:W.navigationEndpoint)||((B=this.data)==null?0:B.onClickCommand)||_.k((z=this.data)==null?void 0:z.visibilityButton,_.T3)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.p.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}}}}}};
_.p.collapsedChanged=function(){var W;(W=this.data)!=null&&W.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.r("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.p.focus=function(W){var B=this;this.titleElement&&_.fg.addJob(function(){_.Lg(B.titleElement,W)},0,500)};
_.p.computeTitleAriaLabel=function(W){var B=[];if(W.title){var z,G;B.push(this.ytRendererBehavior.getSimpleString(W.title)||((z=W.title.accessibility)==null?void 0:(G=z.accessibilityData)==null?void 0:G.label))}W.contextualInfo&&B.push(this.ytRendererBehavior.getSimpleString(W.contextualInfo));return B.join(" ")};
_.p.onHeaderClick=function(W){this.shouldTriggerHeaderClick(W)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Jr(this.hostElement,[this.data.onClickCommand],this.hostElement)):(W=this.getVisibilityToggleButton())&&W.click())};
_.p.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var W=_.k(this.data.visibilityButton,_.Ep)||_.k(this.data.visibilityButton,_.T3);W&&this.ytRendererBehavior.logExplicitClick(W)}};
_.p.getVisibilityToggleButton=function(){var W=_.tH(this.hostElement).querySelector("#visibility-button").firstElementChild;return(W==null?void 0:W.is)==="ytd-toggle-button-renderer"?W:null};
_.p.shouldTriggerHeaderClick=function(W){return!_.p2(_.AH(W),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.p.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(W){W=_.k(W,_.IRR);this.targetId&&(W==null?void 0:W.targetId)===this.targetId&&(W=W.navigationButton)&&this.set("data.navigationButton",W)};
_.G5.Object.defineProperties(G0.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!!(((W=this.entity)==null?0:W.isActionButtonHidden)||this.hideActionButton)}}});
G0.prototype.collapsedChanged=G0.prototype.collapsedChanged;G0.prototype.updateHeaderClickListener=G0.prototype.updateHeaderClickListener;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],G0.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],G0.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.TB),_.y("design:type",Object)],G0.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],G0.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],G0.prototype,"targetId",void 0);_.Q([_.F(),_.y("design:type",Boolean)],G0.prototype,"collapsed",void 0);_.Q([_.F(),_.y("design:type",Boolean)],G0.prototype,"hideActionButton",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],G0.prototype,"shortsPanel",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],G0.prototype,"liveChatEngagementPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],G0.prototype,"learningChatEngagementPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],G0.prototype,"darkerPanels",void 0);_.Q([_.Hf("#title"),_.y("design:type",HTMLElement)],G0.prototype,"titleElement",void 0);_.Q([_.Hf("#header"),_.y("design:type",HTMLElement)],G0.prototype,"headerElement",void 0);
_.Q([_.F({computed:"computeAdsInfoButton(data)"}),_.y("design:type",Object)],G0.prototype,"adsInfoButton",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],G0.prototype,"enableSqueezebackPanels",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],G0.prototype,"enableAnchoredPanel",void 0);_.Q([_.F({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(W,B){return _.P3(W.entities,"engagementPanelTitleHeaderEntity",B)}}),
_.y("design:type",Object)],G0.prototype,"entity",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],G0.prototype,"modernPanels",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("targetId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],G0.prototype,"adsSemanticText",null);_.Q([_.oN("data","data.navigationEndpoint","data.onClickCommand"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],G0.prototype,"updateHeaderClickListener",null);
_.Q([_.jJ("collapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],G0.prototype,"collapsedChanged",null);_.Q([_.H("entity","hideActionButton"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],G0.prototype,"isActionButtonHidden",null);_.Q([_.u({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],G0);
_.D(G0,"ytd-engagement-panel-title-header-renderer",function(){if(kPo!==void 0)return kPo;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return kPo=W},{mode:1});var lGK;var Y9=function(){return _.S.apply(this,arguments)||this};
_.C(Y9,_.S);Y9.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Y9.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Y9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Y9.prototype,"data",void 0);_.Q([_.u({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Y9);
_.D(Y9,"ytd-macro-markers-info-item-renderer",function(){if(lGK!==void 0)return lGK;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return lGK=W},{mode:1});var CA_;var dm=function(W,B,z,G,Y,d){_.bA.call(this);var E=this;this.JSC$22777_containerElement=W;this.hostElement=B;this.supportedSyncItems=z;this.syncEntityKey=G;this.options=Y;this.renderLazyListItems=d;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;IGK(this);oxM(this);this.JSC$22777_scrollAnimation=new _.P6(function(v){W.scrollTop=v});
_.rH(this,this.JSC$22777_scrollAnimation);this.addOnDisposeCallback(function(){hf3(E,!1);E.activeItem&&E.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.C(dm,_.bA);var IGK=function(W){var B=_.NG(_.dO().resolve(_.v7),function(z){return z.entities.markersEngagementPanelSyncEntity||{}},function(z,G){var Y;
if(z[W.syncEntityKey]!==G[W.syncEntityKey]&&((Y=z[W.syncEntityKey])==null?void 0:Y.activeItemIndex)!==void 0)if(G=z[W.syncEntityKey].activeItemIndex,z=W.getItemByIndex(G)){if(HpZ(W,z),W.contentVisible)if(W.browsingMode){var d;((d=W.options)==null?void 0:d.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(d=Fb_(W),z.offsetTop<W.JSC$22777_containerElement.clientHeight+W.JSC$22777_containerElement.scrollTop&&d&&!W.activeItemBelowSyncPosition&&hf3(W,!1));Skm(W)}else W.scrollToItem(z)}else _.Oc(new _.oX("Could not find "+
W.supportedSyncItems+" sync child to set active.",G,W.JSC$22777_containerElement.querySelectorAll(W.supportedSyncItems).length))});
W.unsubscribeFromTimedMarkersListSyncEntity=B;W.addOnDisposeCallback(B);bpm(W)},bpm=function(W){var B=_.dO().resolve(_.v7);
B=_.GOT(B.getState(),W.syncEntityKey);(B==null?void 0:B.activeItemIndex)!==void 0&&(B=W.getItemByIndex(B.activeItemIndex))&&HpZ(W,B)},oxM=function(W){var B=new _.an(W.onScroll,50,W);
_.rH(W,B);var z=function(){B.fire()};
W.JSC$22777_containerElement.addEventListener("scroll",z);W.addOnDisposeCallback(function(){W.JSC$22777_containerElement.removeEventListener("scroll",z)})};
dm.prototype.getItemByIndex=function(W){var B;(B=this.renderLazyListItems)==null||B.call(this,W);B=this.JSC$22777_containerElement.querySelectorAll(this.supportedSyncItems);if(B.length>W)return B[W]};
var HpZ=function(W,B){W.activeItem&&W.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));B.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));W.activeItem=B};
dm.prototype.scrollToItem=function(W){W=this.getScrollPositionForItem(W);this.JSC$22777_containerElement.scrollTop!==W&&this.JSC$22777_scrollAnimation.start(this.JSC$22777_containerElement.scrollTop,W,300)};
dm.prototype.getScrollPositionForItem=function(W){if(this.JSC$22777_containerElement.querySelectorAll(this.supportedSyncItems)[0]===W)return 0;var B,z=((B=this.options)==null?0:B.percentOffset)?this.JSC$22777_containerElement.clientHeight*this.options.percentOffset:0;W=_.qd(W).y+this.JSC$22777_containerElement.scrollTop-(_.qd(this.JSC$22777_containerElement).y+z);return Math.max(0,Math.min(W,this.JSC$22777_containerElement.scrollHeight-this.JSC$22777_containerElement.offsetHeight))};
dm.prototype.onScroll=function(){this.activeItemBelowSyncPosition=Fb_(this);if(this.activeItem&&!this.JSC$22777_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22777_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var W;switch((W=this.options)==null?void 0:W.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":j0Q(this,!fGF(this));Skm(this);break;default:j0Q(this,!0)}}};
var j0Q=function(W,B){var z,G;_.T(function(Y){if(Y.nextAddress==1){if(W.browsingMode)return Y.return();W.browsingMode=!0;B&&W.hostElement.classList.add("browsing-mode");W.playerExitBrowsingModeListener=function(){hf3(W,!1)};
return Y.yield(_.Zp(),2)}z=Y.yieldResult;(G=z)==null||G.addEventListener("SEEK_TO",W.playerExitBrowsingModeListener);_.HG(Y)})},hf3=function(W,B){B=B===void 0?!0:B;
W.browsingMode&&(W.browsingMode=!1,W.hostElement.classList.remove("browsing-mode"),B&&W.scrollToItem(W.activeItem),OpZ(W))},OpZ=function(W){var B,z;
_.T(function(G){if(G.nextAddress==1)return W.playerExitBrowsingModeListener?G.yield(_.Zp(),3):G.jumpTo(0);B=G.yieldResult;(z=B)==null||z.removeEventListener("SEEK_TO",W.playerExitBrowsingModeListener);W.playerExitBrowsingModeListener=void 0;_.HG(G)})},Skm=function(W){var B;
((B=W.options)==null?void 0:B.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(fGF(W)?W.hostElement.classList.remove("browsing-mode"):W.activeItem&&W.hostElement.classList.add("browsing-mode"))},Fb_=function(W){if(!W.activeItem)return!1;
var B,z=((B=W.options)==null?0:B.percentOffset)?W.JSC$22777_containerElement.clientHeight*W.options.percentOffset:0;return W.activeItem.offsetTop>=W.JSC$22777_containerElement.scrollTop+z},fGF=function(W){if(!W.activeItem)return!1;
var B=W.activeItem.offsetTop+14<=W.JSC$22777_containerElement.scrollTop+W.JSC$22777_containerElement.clientHeight;return W.activeItem.offsetTop+W.activeItem.clientHeight-14>=W.JSC$22777_containerElement.scrollTop&&B};
dm.prototype.panelContentVisibleChanged=function(W){(this.contentVisible=W)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var XCF=function(W,B){W.syncEntityKey=B;var z;(z=W.unsubscribeFromTimedMarkersListSyncEntity)==null||z.call(W);IGK(W)},KbK=function(W,B){W.options=B};var pC=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return W};
_.C(pC,_.S);_.p=pC.prototype;_.p.detached=function(){var W;(W=this.scrollController)==null||W.dispose();this.scrollController=void 0};
_.p.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"}}}};
_.p.dataChanged=function(){var W=this;_.BM(this,function(){if(W.scrollController){var B;(B=W.scrollController)==null||hf3(B,!1);var z,G,Y;(G=W.scrollController)==null||XCF(G,(Y=(z=W.data)==null?void 0:z.syncModelEntityKey)!=null?Y:"default-macro-markers-list-renderer-entity-key");var d,E,v;(v=W.scrollController)==null||KbK(v,{percentOffset:(d=W.data)==null?void 0:d.selectedItemAlignmentPercentOffset,floatingPillType:(E=W.data)==null?void 0:E.floatingPillType})}else{var c,J,g,t;W.scrollController=
new dm(W.contents,W.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(t=(c=W.data)==null?void 0:c.syncModelEntityKey)!=null?t:"default-macro-markers-list-renderer-entity-key",{percentOffset:(J=W.data)==null?void 0:J.selectedItemAlignmentPercentOffset,floatingPillType:(g=W.data)==null?void 0:g.floatingPillType},function(P){W.renderLazyListItems(P)})}W.scrollController.panelContentVisibleChanged(!!W.panelContentVisible)})};
_.p.computeButtonShape=function(){var W=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){W.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.p.renderLazyListItems=function(W){for(var B=this.contents.children,z=0,G=0;G<B.length;G++){var Y=void 0;(Y=B[G].ytLazyListBehavior)==null||Y.fillRemainingListItems();var d=void 0,E=void 0;Y=_.k((d=this.data)==null?void 0:(E=d.contents)==null?void 0:E[G],_.bS4);E=d=void 0;if((d=Y)==null?0:(E=d.contents)==null?0:E.length)z+=Y.contents.length;if(z>=W)break}};
_.p.handleSetActivePanelItemAction=function(W){if((W=_.k(W,hmF))&&this.panelTargetId===W.panelTargetId){W=W.itemIndex;var B,z,G=(z=(B=this.data)==null?void 0:B.syncModelEntityKey)!=null?z:"default-macro-markers-list-renderer-entity-key",Y;((Y=this.syncEntity)==null?void 0:Y.activeItemIndex)!==W&&this.ytdReduxBehavior.dispatch(_.bj("markersEngagementPanelSyncEntity",G,{key:G,activeItemIndex:W}))}};
_.p.onSyncClick=function(){var W;(W=this.scrollController)==null||hf3(W)};
_.p.panelContentVisibleChanged=function(){var W;(W=this.scrollController)==null||W.panelContentVisibleChanged(!!this.panelContentVisible)};
pC.prototype.panelContentVisibleChanged=pC.prototype.panelContentVisibleChanged;pC.prototype.dataChanged=pC.prototype.dataChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],pC.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.TB),_.y("design:type",Object)],pC.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],pC.prototype,"data",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],pC.prototype,"useCustomColors",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],pC.prototype,"panelTargetId",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],pC.prototype,"panelContentVisible",void 0);
_.Q([_.Hf("#contents"),_.y("design:type",HTMLElement)],pC.prototype,"contents",void 0);_.Q([_.F({selectorArgs:["data.syncModelEntityKey"],selector:_.GOT}),_.y("design:type",Object)],pC.prototype,"syncEntity",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pC.prototype,"dataChanged",null);
_.Q([_.oN("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pC.prototype,"panelContentVisibleChanged",null);_.Q([_.u({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],pC);
_.D(pC,"ytd-macro-markers-list-renderer",function(){if(CA_!==void 0)return CA_;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return CA_=W},{mode:1});var uc3;var AJ=function(){return _.S.apply(this,arguments)||this};
_.C(AJ,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],AJ.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],AJ.prototype,"data",void 0);_.Q([_.u({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],AJ);
_.D(AJ,"ytd-error-corrections-section-item-renderer",function(){if(uc3!==void 0)return uc3;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return uc3=W},{mode:1});var efZ;var i5=function(){return _.S.apply(this,arguments)||this};
_.C(i5,_.S);i5.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],i5.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],i5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],i5.prototype,"data",void 0);_.Q([_.u({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],i5);
_.D(i5,"ytd-error-corrections-section-renderer",function(){if(efZ!==void 0)return efZ;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return efZ=W},{mode:1});var m5N;var EN=function(){return _.S.apply(this,arguments)||this};
_.C(EN,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],EN.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],EN.prototype,"data",void 0);_.Q([_.u({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],EN);
_.D(EN,"ytd-topic-link-renderer",function(){if(m5N!==void 0)return m5N;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return m5N=W},{mode:1});var x5o;var T0=function(){var W=_.S.apply(this,arguments)||this;W.modern=_.r("kevlar_modern_sd_v2");W.modernLockupV2=_.r("modernize_structured_description_playlist_lockups_v2");W.modernTypography=_.r("web_modern_typography");return W};
_.C(T0,_.S);T0.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"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],T0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],T0.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],T0.prototype,"modern",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],T0.prototype,"modernLockupV2",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],T0.prototype,"modernTypography",void 0);_.Q([_.u({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],T0);
_.D(T0,"ytd-video-description-course-section-renderer",function(){if(x5o!==void 0)return x5o;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return x5o=W},{mode:1});var D5N;var vP=function(){var W=_.S.apply(this,arguments)||this;W.modern=_.r("kevlar_modern_sd_v2");W.modernTypography=_.r("web_modern_typography");return W};
_.C(vP,_.S);vP.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"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],vP.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],vP.prototype,"modern",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],vP.prototype,"modernTypography",void 0);
_.Q([_.u({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],vP);
_.D(vP,"ytd-video-description-files-section-renderer",function(){if(D5N!==void 0)return D5N;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return D5N=W},{mode:1});var Q0F;var cP=function(){return _.S.apply(this,arguments)||this};
_.C(cP,_.S);cP.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"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],cP.prototype,"data",void 0);_.Q([_.u({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],cP);
_.D(cP,"ytd-video-description-gaming-section-renderer",function(){if(Q0F!==void 0)return Q0F;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Q0F=W},{mode:1});var yIo;var wm=function(){var W=_.S.apply(this,arguments)||this;W.isExpanded=!1;return W};
_.C(wm,_.S);wm.prototype.computeHasDefaultMetadataEndpoint=function(W){var B;W=W==null?void 0:(B=W.defaultMetadata)==null?void 0:B.runs;return!(!W||W.length!==1||!W[0].navigationEndpoint)};
wm.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.G5.Object.defineProperties(wm.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],wm.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],wm.prototype,"isExpanded",void 0);_.Q([_.F({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],wm.prototype,"hasDefaultMetadataEndpoint",void 0);
_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wm.prototype,"isExpandable",null);_.Q([_.H("data","isExpandable","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wm.prototype,"showExpandedMetadata",null);_.Q([_.u({is:"ytd-info-row-renderer",disableElementRegistration:!0})],wm);
_.D(wm,"ytd-info-row-renderer",function(){if(yIo!==void 0)return yIo;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return yIo=W},{mode:1});var qko;var VM=function(){var W=_.S.apply(this,arguments)||this;W.currentIndex=0;W.supportComponentResize=!0;W.modern=_.r("kevlar_modern_sd_v2");W.JSC$22807_lastScrollContainerWidth=NaN;return W};
_.C(VM,_.S);_.p=VM.prototype;
_.p.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"}}}};
_.p.getItemsPath=function(){return"videoLockups"};
_.p.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.p.onIronResize=function(){this.updateVideoLockupStyles()};
_.p.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.p.updateVideoLockupStyles=function(){var W;this.JSC$22807_scrollContainer!==void 0&&(W=this.videoLockups)!=null&&W.length&&(W=this.JSC$22807_scrollContainer.clientWidth,W!==this.JSC$22807_lastScrollContainerWidth&&(this.JSC$22807_lastScrollContainerWidth=W,_.kw(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(W*.8,415)+"px"}),_.v0(this.hostElement,"iron-resize")))};
_.G5.Object.defineProperties(VM.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var W=[],B;if((B=this.data)==null||!B.carouselLockups)return W;B=_.A(this.data.carouselLockups);for(var z=B.next();!z.done;z=B.next()){z=z.value;var G=void 0;((G=_.k(z,Gdb))==null?0:G.videoLockup)&&W.push(_.k(z,Gdb).videoLockup)}return W}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoLockups)==null||!W.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var W=[],B;if((B=this.data)==null||!B.carouselLockups)return W;var z;return(z=_.k(this.data.carouselLockups[this.scrollCount],Gdb))==null?void 0:z.infoRows}}});
VM.prototype.dataChanged=VM.prototype.dataChanged;VM.prototype.onIronResize=VM.prototype.onIronResize;VM.prototype.hiddenChanged=VM.prototype.hiddenChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],VM.prototype,"componentBehavior",void 0);_.Q([_.h(_.jv.YtdHorizontalListBehavior),_.y("design:type",Object)],VM.prototype,"ytdHorizontalListBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],VM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],VM.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],VM.prototype,"inlineStructuredDescription",void 0);_.Q([_.F({value:2}),_.y("design:type",Number)],VM.prototype,"initialCount",void 0);_.Q([_.F(),_.y("design:type",Object)],VM.prototype,"currentIndex",void 0);
_.Q([_.F(),_.y("design:type",Number)],VM.prototype,"scrollCount",void 0);_.Q([_.F(),_.y("design:type",Object)],VM.prototype,"supportComponentResize",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],VM.prototype,"contentHidden",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],VM.prototype,"modern",void 0);_.Q([_.Hf("#scroll-container"),_.y("design:type",HTMLDivElement)],VM.prototype,"JSC$22807_scrollContainer",void 0);
_.Q([_.oN("contentHidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VM.prototype,"hiddenChanged",null);_.Q([_.H("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],VM.prototype,"videoLockups",null);_.Q([_.H("videoLockups"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],VM.prototype,"hasVideoLockups",null);
_.Q([_.IN("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VM.prototype,"onIronResize",null);_.Q([_.H("data","scrollCount"),_.y("design:type",Object),_.y("design:paramtypes",[])],VM.prototype,"infoRows",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VM.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],VM);
_.D(VM,"ytd-video-description-music-section-renderer",function(){if(qko!==void 0)return qko;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return qko=W},{mode:_.PJ("kevlar_poly_si_batch_j081")?1:2});var nxZ;var JJ=function(){var W=_.S.apply(this,arguments)||this;W.modern=_.r("kevlar_modern_sd_v2");W.modernTypography=_.r("web_modern_typography");return W};
_.C(JJ,_.S);JJ.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],JJ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.Q([_.F({}),_.y("design:type",Object)],JJ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],JJ.prototype,"modern",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],JJ.prototype,"modernTypography",void 0);
_.Q([_.u({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],JJ);
_.D(JJ,"ytd-video-description-transcript-section-renderer",function(){if(nxZ!==void 0)return nxZ;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return nxZ=W},{mode:1});var NH3;_.Vm(_.m(function(W){var B=_.hg(_.y9u,function(){return W.data().firstProviderLinkStatusEntityKey}),z=_.hg(_.y9u,function(){return W.data().secondProviderLinkStatusEntityKey}),G=function(){var Y,d;
return((Y=B())==null?void 0:Y.linked)||((d=z())==null?void 0:d.linked)};
return _.w("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.w(_.r0,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return W.data().sectionTitle}}),_.w(_.r0,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return G()?W.data().connectedMessage:W.data().notConnectedMessage}}),_.w(_.V,{cond:G,
then:function(){return _.w(_.Sc,{data:function(){return W.data().connectedButton}},{buttonViewModel:function(Y){return _.w(_.ex,{data:Y.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.w(_.V,{cond:function(){return!G()},
then:function(){return _.w(_.Sc,{data:function(){return W.data().notConnectedButton}},{buttonViewModel:function(Y){return _.w(_.ex,{data:Y.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Fk"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=W.data;return _.w("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.w("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.w(_.r0,{text:function(){return B().sectionTitle}})),_.w("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.w(_.r0,{text:function(){return B().bodyHeader}})),_.w("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.w(_.r0,{text:function(){return B().bodyText}})),_.w(_.V,{cond:function(){return B().attributionText},
then:function(){return _.w("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.w(_.r0,{text:function(){return B().attributionText}}))}}))},"Gk"),"how-this-was-made-section-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){return _.w("yt-video-description-youchat-section-view-model",{class:_.kG("ytVideoDescriptionYouchatSectionViewModelHost")},_.w("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.w(_.r0,{text:function(){return W.data().sectionTitle}})),_.w("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.w(_.r0,{text:function(){return W.data().subHeaderText}})),_.w("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.w(_.ex,{data:function(){return _.k(W.data().primaryButton,
_.wP)}})))},"Hk"),"yt-video-description-youchat-section-view-model",{props:{data:_.kz}});var gm=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return W};
_.C(gm,_.S);_.p=gm.prototype;
_.p.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}}}}}};
_.p.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.p.dataChanged=function(){var W,B;this.hasDescriptionOnly=!(((W=this.data)==null?void 0:(B=W.items)==null?void 0:B.length)!==1||!_.k(this.data.items[0],nT))};
_.p.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.p.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.p.autoFocusDescription=function(){var W;((W=_.dO().resolve(_.Y8(_.jx)))==null?0:W.isKeyBoardInUse())&&this.description&&_.UE(this.description)};
_.p.resize=function(){if(_.r("kevlar_disable_sd_resize"))this.JSC$22816_cardList&&_.v0(this.JSC$22816_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.v0(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.v0(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.p.scrollToSection=function(W){if(W=this.getSectionElement(W))_.c0(this.hostElement,"yt-scroll-to-watch-element",[W]),W.focus()};
_.p.getSectionElement=function(W){switch(W){case "infocards-item-section":var B;return(B=this.infocardsSection)!=null?B:null;case "transcript-item-section":var z;return(z=this.transcriptSection)!=null?z:null;case "how-this-was-made-section-item-section":var G;return(G=this.howThisWasMadeSection)!=null?G:null;case "files-item-section":var Y;return(Y=this.filesSection)!=null?Y:null;default:return null}};
_.p.handleSetActiveItemAction=function(W){var B=_.k(W,hmF),z=B&&(B==null?void 0:B.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22816_cardList;if(B&&z){W=this.currentActiveChapter;var G=this.currentActiveProblem;B=z==null?void 0:z.getItemByIndex(B.itemIndex);var Y=z=!0;B&&(B.active=!0,B.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(z=W!==B,Y=!1,this.currentActiveChapter=B):(B==null?void 0:B.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(z=!1,Y=G!==B,this.currentActiveProblem=B));W&&z&&(W.active=!1);G&&Y&&(G.active=!1)}};
_.G5.Object.defineProperties(gm.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.r("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
gm.prototype.onYtExpanderMoreTapped=gm.prototype.onYtExpanderMoreTapped;gm.prototype.onHiddenChanged=gm.prototype.onHiddenChanged;gm.prototype.dataChanged=gm.prototype.dataChanged;gm.prototype.panelContentVisibleChanged=gm.prototype.panelContentVisibleChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],gm.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.Mp),_.y("design:type",Object)],gm.prototype,"ironResizableBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],gm.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],gm.prototype,"panelContentVisible",void 0);_.Q([_.F(),_.y("design:type",Boolean)],gm.prototype,"hasDescriptionOnly",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],gm.prototype,"inlineStructuredDescription",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],gm.prototype,"hidden",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],gm.prototype,"shortsPanel",void 0);_.Q([_.F(),_.y("design:type",Object)],gm.prototype,"videoSummary",void 0);_.Q([_.F(),_.y("design:type",Object)],gm.prototype,"merchShelf",void 0);
_.Q([_.H("videoSummary"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gm.prototype,"showVideoSummary",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],gm.prototype,"engagementPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],gm.prototype,"watchWhileSdp",void 0);_.Q([_.Hf("ytd-expandable-video-description-body-renderer"),_.y("design:type",Object)],gm.prototype,"description",void 0);
_.Q([_.Hf("ytd-horizontal-card-list-renderer"),_.y("design:type",Object)],gm.prototype,"JSC$22816_cardList",void 0);_.Q([_.Hf("ytd-horizontal-card-list-renderer[center-items]"),_.y("design:type",Object)],gm.prototype,"problemWalkthroughCardList",void 0);_.Q([_.Hf("ytd-shelf-renderer"),_.y("design:type",Object)],gm.prototype,"shelfSection",void 0);_.Q([_.Hf("ytd-video-description-music-section-renderer"),_.y("design:type",Object)],gm.prototype,"musicMetadataSection",void 0);
_.Q([_.Hf("ytd-video-description-infocards-section-renderer"),_.y("design:type",Object)],gm.prototype,"infocardsSection",void 0);_.Q([_.Hf("ytd-video-description-transcript-section-renderer"),_.y("design:type",Object)],gm.prototype,"transcriptSection",void 0);_.Q([_.Hf("how-this-was-made-section-view-model"),_.y("design:type",Object)],gm.prototype,"howThisWasMadeSection",void 0);_.Q([_.Hf("ytd-video-description-files-section-renderer"),_.y("design:type",Object)],gm.prototype,"filesSection",void 0);
_.Q([_.oN("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gm.prototype,"panelContentVisibleChanged",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gm.prototype,"dataChanged",null);_.Q([_.oN("hidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gm.prototype,"onHiddenChanged",null);
_.Q([_.IN("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gm.prototype,"onYtExpanderMoreTapped",null);_.Q([_.u({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],gm);
_.D(gm,"ytd-structured-description-content-renderer",function(){if(NH3!==void 0)return NH3;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return NH3=W},{mode:2});var $5o;var LbK;var tJ=function(){return _.S.apply(this,arguments)||this};
_.C(tJ,_.S);tJ.prototype.computeAriaLabel=function(W){var B,z;return(W==null?void 0:(B=W.accessibility)==null?void 0:(z=B.accessibilityData)==null?void 0:z.label)||_.kq("LOADING",void 0,"Loading")};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],tJ.prototype,"data",void 0);_.Q([_.F({computed:"computeAriaLabel(data)"}),_.y("design:type",String)],tJ.prototype,"ariaLabel",void 0);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],tJ);
_.D(tJ,"yt-content-loading-renderer",function(){if(LbK===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;$5o===void 0&&($5o=document.createElement("template"));var G=$5o;z.call(B,G.content.cloneNode(!0),W.content.firstChild);LbK=W}W=LbK;return W},{mode:_.PJ("kevlar_poly_si_batch_j043")?1:2});_.Vm(_.m(function(W){var B=_.A(_.g4(!1,void 0,"OZMtVb")),z=B.next().value,G=B.next().value;B=_.A(_.g4(!1,void 0,"qWERsf"));var Y=B.next().value,d=B.next().value;_.jD(function(){var c=_.k(W.data().collaboratePlaylistCollaborationSetting,No3);c&&G(c.switchedOnByDefault);var J=_.k(W.data().allowNewCollaboratorsPlaylistCollaborationSetting,No3);J&&d(J.switchedOnByDefault);if(!c&&!J||!c&&W.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")G(!0),d(!0)});
var E=function(c){G(c);d(c);var J=W.data().playlistCollaborationEntityKey||"";var g=_.p8().getState();(g=_.P3(g.entities,"playlistCollaborationEntity",J))&&(g==null?void 0:g.isCollaborative)===c||_.p8().dispatch(_.bj("playlistCollaborationEntity",J,Object.assign({},g,{isCollaborative:c})))},v=function(c){d(c)};
return _.w("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.w("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.w(_.Sc,{data:function(){return W.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(c){return _.w(_.qOT,{data:c.data,
onSwitch:E})}})),_.w(_.V,{cond:z,
then:function(){return _.w(_.AW,null,_.w("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.w(_.Sc,{data:function(){return W.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(c){return _.w(_.qOT,{data:c.data,
onSwitch:v,overrideDisabled:!1})}})),_.w(_.V,{cond:Y,
then:function(){return _.w("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.w(_.Sc,{data:function(){return W.data().copyLinkButton}},{buttonViewModel:_.ex}))}}),_.w("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.w(_.Sc,{data:function(){return W.data().playlistCollaborators}},{contentListItemViewModel:_.my1})))}}))},"Ik"),"playlist-collaboration-view-model",{props:{data:_.kz}});var U5b=_.m(function(W){var B=W.data;var z=W.customCommandResolver;return _.w(_.AW,null,_.w("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.w(_.Sc,{data:function(){return B().adAvatar}},{adAvatarViewModel:function(G){return _.w(_.r$R,{data:G.data,
customCommandResolver:z})}})),_.w("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.w(_.V,{cond:function(){return B().headline},
then:function(G){return _.w(_.r0,{text:G,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.w("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.w(_.Sc,{data:function(){return B().adBadge}},{adBadgeViewModel:function(G){return _.w(_.X7,{data:G.data,
hasDot:function(){return B().primaryDetailsLine!==void 0},
customCommandResolver:z,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.w(_.Sc,{data:function(){return B().primaryDetailsLine}},{adDetailsLineViewModel:function(G){return _.w(_.KY,{data:G.data,
customCommandResolver:z,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Jk"),Mkm=_.m(function(W){var B=W.data;
var z=W.customCommandResolver;return _.w("ad-avatar-lockup-view-model",{class:function(){var G;return((G=B().interaction)==null?0:G.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.TG(_.YF({visibilityCallback:function(G){var Y,d=(Y=B().interaction)==null?void 0:Y.onFirstVisible;G&&d&&_.aB(d)},
showOption:_.he}),_.N$(function(){return B().interaction},z)),
"aria-label":function(){var G,Y;return(G=B().interaction)==null?void 0:(Y=G.accessibility)==null?void 0:Y.label}},_.w(_.HR,null,_.w(_.oJ,{when:function(){return B().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.w(U5b,{data:B,
customCommandResolver:z})}),_.w(_.hW,null,function(){return null})))},"Kk");_.Vm(_.m(function(W){var B=W.data;var z=W.panelContentVisibility;W=_.YF({visibilityCallback:function(d){var E,v=(E=B().interaction)==null?void 0:E.onFirstVisible;d&&v&&_.aB(v)},
showOption:_.he});var G=_.N$(function(){return B().interaction},u6F);
_.KR(function(){var d,E;if(E=_.q6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var v;E=(v=E())==null?void 0:v.onLayoutVisibleCallback}else E=null;(d=E)==null||d()});
var Y=function(){return z()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.w("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.TG(W,G)},_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.w(_.V,{cond:_.jlu("(min-width: "+((0,_.tb)()+_.$S)+"px) or (max-width: 600px)"),then:function(){return _.w(_.Sc,{data:function(){return B().adImage}},{adImageViewModel:function(d){return _.w(_.qU,{data:d.data,
targetHeight:80,customCommandResolver:u6F})}})}})),_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.w(_.Sc,{data:function(){return B().adAvatarLockup}},{adAvatarLockupViewModel:function(d){return _.w(Mkm,{data:d.data,
customCommandResolver:u6F})}})),_.w(_.V,{cond:Y,
then:function(){return _.w(_.Sc,{data:function(){return B().adButton}},{adButtonViewModel:function(d){return _.w(_.Sh,{data:d.data,
customCommandResolver:u6F})}})},
else:function(){return _.w(_.Sc,{data:function(){return B().menu}},{buttonViewModel:_.ex})}}),_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.w(_.Sc,{data:function(){var d=_.k(B().toggleButton,_.Jw);
return{toggleButtonViewModel:Object.assign({},d,{isTogglingDisabled:!0,isToggled:Y()})}}},{toggleButtonViewModel:_.Y1})))))},"Lk"),"panel-ad-header-image-lockup-view-model",{props:{data:_.kz,
panelContentVisibility:_.kz}});_.Vm(_.m(function(W){var B=function(){return _.k(W.data().inputComposerViewModel,$Zm)},z=function(){var l;
return((l=B())==null?void 0:l.youchatPendingResponseEntityKey)||""},G=_.hg(_.TCi,z),Y=function(){var l;
return!((l=G())==null||!l.isPendingResponse)},d=_.A(_.g4(!0,void 0,"UmKX1e")),E=d.next().value,v=d.next().value,c=function(){return B().sectionTargetId||"youchat_messages_section"};
d=_.ag("yt-chat-input-view-model");var J=_.LG("textarea"),g=_.hg(Ii_,"chat_input_view_model_state"),t=oYm(),P=function(){var l;return!((l=g())==null||!l.value)};
_.jD(function(){var l;if(!P()&&((l=B())==null?0:l.welcomeFeatureContinuation)){var b;((b=B())==null?0:b.setPendingResponseOnWelcome)&&_.vSO(z())(!0);l={continuationCommand:{token:B().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var O;b=String(Math.floor(((O=_.ru())==null?void 0:O.getCurrentTime())||0)*1E3);O={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:b}};_.L8(l,{form:{formData:O}});t(!0)}var K=c(),e;(e=_.dO().resolve(_.Y8(_.M1)))==null||
e.addEventListener("yt-navigate-start",function(){_.FE.remove(K);t(!1)},{once:!0})});
var Z=function(){var l=J.value.value;J.value.value="";e13(J.value);var b,O=((b=B())==null?void 0:b.enableGradientColorBg)||!1;b=mfF(c(),l,O);_.L8(b);var K=_.vSO(z()),e;_.aB(((e=B())==null?void 0:e.onSubmitCommand)||{});K(!0);var a;e=String(Math.floor(((a=_.ru())==null?void 0:a.getCurrentTime())||0)*1E3);var q;a={continuationCommand:{token:(q=B())==null?void 0:q.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};l={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:l,
playerOffsetMs:e}};_.L8(a,{form:{formData:l},commandController:{onSuccess:function(){K(!1)},
onServerError:function(){var n=c();_.L8({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:n}}]}}});K(!1)}}})};
return _.w("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:d},_.w("div",{class:"chatInputViewModelChatInputWrapper"},_.w("form",{class:"chatInputViewModelChatInputForm"},_.w("textarea",{class:"chatInputViewModelChatInput",el:J,"on:keydown":_.lF(function(l){var b=Y()||!1;e13(J.value);b||l.key!=="Enter"||l.shiftKey||(l.preventDefault(),Z());return!1}),
"on:keyup":_.lF(function(){v(J.value.value.length===0);return!1}),
placeholder:function(){var l,b;var O=_.k((b=B())==null?void 0:b.inputFormField,CQ3);return O==null?void 0:(l=O.contentProperties)==null?void 0:l.placeholderText},
rows:1}),_.w(_.ex,{data:function(){return _.k(W.data().sendButton,_.wP)},
onClick:function(l){l.preventDefault();Z();v(J.value.value.length===0)},
buttonOverrides:function(){return{disabled:E()||Y()}}})),_.w(_.r0,{className:"chatInputViewModelChatDisclaimer",
text:function(){var l;return(l=_.k(W.data().disclaimer,_.jHM))==null?void 0:l.text}})))},"Mk"),"yt-chat-input-view-model",{props:{data:_.kz}});var aGR=["engagement-panel-clip-create","engagement-panel-clip-view"],Rf3=0,sN=function(){var W=_.S.apply(this,arguments)||this;var B;W.headerData=(B=W.data)==null?void 0:B.header;W.darkerPanels=_.r("web_watch_darker_panels");W.matchContentTheme=_.r("web_watch_panel_content_match_theme");W.disableAutoFill=!1;W.isFullscreen=!1;W.isTheaterMode=!1;W.modernPanels=_.r("kevlar_watch_modern_panels");W.liveChatReplyPanel=!1;W.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");W.disableBackdropFilter=
_.r("web_disable_backdrop_filter");W.isPersistentPanel=!1;W.trackEngagementPanelVisibility=_.r("web_watch_track_engagement_panel_visibility");W.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 W};
_.C(sN,_.S);_.p=sN.prototype;
_.p.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(W){var B;return(W==null?void 0:(B=W.webComponentHint)==null?void 0:B.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"}}}};
_.p.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var W;if((W=this.hostElement.parentElement)==null?0:W.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.p.detached=function(){this.updateTheaterDisablement()};
_.p.showPanel=function(){var W=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.fg.addJob(function(){W.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.p.maybeScrollToItemSection=function(W){var B=this,z,G=W==null?void 0:(z=W.sectionListEngagementPanelExtras)==null?void 0:z.scrollToItemSectionIdentifier;G&&_.fg.addJob(function(){var Y;(Y=B.sectionListRendererElement)==null||Y.scrollToItemSection(G)},8)};
_.p.hidePanel=function(){var W=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.fg.addJob(function(){W.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.p.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.p.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.p.updatePanel=function(W,B,z,G){var Y=this;if((W=W==null?void 0:W.engagementPanelSectionListRenderer)||G){if(W){G=W.header;var d=W.content,E=W.footer;(W=W.targetId)&&this.set("data.targetId",W);G&&this.set("data.header",G);d&&this.set("data.content",d);E&&this.set("data.footer",E)}else G&&(W=G.content,d=G.secondaryHeaderContent,(G=G.targetId)&&this.set("data.targetId",G),W&&this.set("data.content",W),d&&(this.secondaryHeaderData=d));this.updateChildVisibilityProperties();if(B){var v;_.r("kevlar_update_panel_focus_scroll_killswitch")||
(v={preventScroll:!0});this.focus(v)}_.BM(this,function(){_.v0(Y.hostElement,"yt-refit");Y.maybeScrollToItemSection(z)})}};
_.p.computeHeaderData=function(){var W,B=(0,_.mP.unsafeClone)((W=this.data)==null?void 0:W.header);if(B){W=new _.J1(Object.keys(B)[0]);var z=_.k(B,W),G=_.k(this.secondaryHeaderData,W);G&&_.Q2(B,W,Object.assign({},G,z))}return B};
_.p.getReloadContinuation=function(){var W,B,z,G=_.A(((W=this.data)==null?void 0:(B=W.content)==null?void 0:(z=B.sectionListRenderer)==null?void 0:z.continuations)||[]);for(W=G.next();!W.done;W=G.next())if(W=W.value,W.reloadContinuationData)return W.reloadContinuationData.continuation};
_.p.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var W;((W=this.data)==null?0:W.targetId)&&(W=this.contentElement.firstElementChild)&&W.setAttribute("panel-target-id",this.data.targetId)};
_.p.forwardPopupClosedToFlowRootRenderer=function(){var W=_.tH(this.hostElement).querySelector("ytd-flow-root-renderer");if(W)W.onPopupClosed()};
_.p.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var W;if(!aGR.includes((W=this.theaterDisablementPanelIdentifier)!=null?W:""))if(W=_.r("web_watch_imax_theater_mode")&&this.isTheaterMode,W=_.r("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||W,_.r("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||W){var B;this.visibility=(B=this.data)==null?void 0:B.visibility;var z;this.trackEngagementPanelVisibility&&((z=this.data)==null?void 0:z.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var G,Y,d,E;this.contentEmpty=!!(((G=this.data)==null?0:(Y=G.content)==null?0:Y.structuredDescriptionContentRenderer)&&Object.keys((d=this.data)==null?void 0:(E=d.content)==null?void 0:
E.structuredDescriptionContentRenderer).length===0);(B=_.dO().resolve(_.WD))&&B.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.p.isTheaterModeChanged=function(){_.r("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.p.isFullscreenChanged=function(){_.r("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.p.focus=function(W){if(this.header)this.header.focus(W);else{var B;(B=_.tH(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||B.focus(W)}};
_.p.visibilityChanged=function(){if(!_.r("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var W=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",B=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",z=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Y=G||!this.lastVisibility,d,E,v,c=((d=this.data)==null?void 0:(E=d.identifier)==null?void 0:
E.tag)||((v=this.data)==null?void 0:v.panelIdentifier);if(W&&Y){var J;((J=this.data)==null?0:J.onShowCommands)&&_.Jr(this.hostElement,this.data.onShowCommands,this.hostElement);c&&_.Y_().dispatch(_.Tl({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:c}}))}else if(B&&z){var g;((g=this.data)==null?0:g.onHideCommands)&&_.Jr(this.hostElement,this.data.onHideCommands,this.hostElement);c&&_.Y_().dispatch(_.Tl({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:c}}))}W&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*Rf3++));_.r("kevlar_watch_focus_on_engagement_panels")&&W&&G&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.p.notifyVisibilityChanged=function(W){var B;_.wV(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,W,(B=this.data)==null?void 0:B.targetId])};
_.p.updateTheaterDisablement=function(){if(!_.r("kevlar_watch_theater_disablement_killswitch")){var W=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&aGR.includes(W)&&!_.r("watch_next_grid_ignore_disallowed_panels")){var B=_.Qm(_.Y_().getState()),z=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";W!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():z?(this.originalTheaterState===void 0&&(this.originalTheaterState=B,this.theaterDisablementPanelIdentifier=
W),B&&_.c0(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.p.clearTheaterDisablement=function(){_.c0(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.p.updateChildVisibilityProperties=function(){this.hostElement||_.r("kevlar_panel_property_init_killswitch")||this._enableProperties();var W=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=W);var B,z=(B=this.headerElement)==null?void 0:B.firstElementChild;if(z&&!this.adHeaderImageLockupViewModel){B=W==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";z.collapsed=B;z=_.tH(z).querySelector("#visibility-button");if(!z)return;(z=z.firstElementChild)&&
z.polymerController.is==="ytd-toggle-button-renderer"&&z.polymerController.data.isToggled!==B&&z.polymerController.set("data.isToggled",B)}var G;if(B=(G=this.contentElement)==null?void 0:G.firstElementChild)if(W&&W!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")B.removeAttribute("panel-content-visible");else{B.setAttribute("panel-content-visible","");var Y;(Y=B.markDirty)==null||Y.call(B)}};
_.p.onYtChangeEngagementPanelVisibilityAction=function(W){var B=this,z,G=(z=this.data)==null?void 0:z.targetId,Y,d,E;z=((Y=this.data)==null?void 0:(d=Y.identifier)==null?void 0:d.tag)||((E=this.data)==null?void 0:E.panelIdentifier);var v=_.k(W,_.EcD),c;W=G&&(v==null?void 0:v.targetId)===G||z&&(v==null?void 0:(c=v.panelIdentifier)==null?void 0:c.tag)===z;this.dialog&&W&&(v==null?void 0:v.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(G==="engagement-panel-comments-section"?_.c0(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.c0(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",z]));!_.r("kevlar_use_engagement_panel_management_component")&&W&&(G=v.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!G?_.fg.addJob(function(){B.visibility=v.visibility},2,this.hideDelayMs):this.visibility=v.visibility,v.visibility&&this.notifyVisibilityChanged(v.visibility))};
_.p.onYtScrollToEngagementPanelCommand=function(W){var B,z=(B=this.data)==null?void 0:B.targetId,G,Y,d;B=((G=this.data)==null?void 0:(Y=G.identifier)==null?void 0:Y.tag)||((d=this.data)==null?void 0:d.panelIdentifier);W=_.k(W,_.r4M);var E;(z&&(W==null?void 0:W.targetId)===z||B&&(W==null?void 0:(E=W.panelIdentifier)==null?void 0:E.tag)===B)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.c0(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.p.attachVEs=function(W){var B,z;(W==null?0:(B=W.content)==null?0:(z=B.productListRenderer)==null?0:z.trackingParams)&&_.SK().graftServerVe(W.content.productListRenderer.trackingParams);var G,Y;(W==null?0:(G=W.content)==null?0:(Y=G.transcriptRenderer)==null?0:Y.trackingParams)&&_.SK().graftServerVe(W.content.transcriptRenderer.trackingParams)};
_.p.onYtUpdateEngagementPanelAction=function(W){var B,z=(B=this.data)==null?void 0:B.targetId;W=_.k(W,FFZ);z&&(W==null?void 0:W.targetId)===z&&(this.updatePanel({engagementPanelSectionListRenderer:{header:W==null?void 0:W.header,content:W==null?void 0:W.content}},!1),this.attachVEs(W))};
_.p.onYtShowEngagementPanelScrimAction=function(W){var B,z=(B=this.data)==null?void 0:B.targetId;W=_.k(W,HmF);z&&(W==null?void 0:W.engagementPanelTargetId)===z&&(this.scrimmed=!0)};
_.p.onYtHideEngagementPanelScrimAction=function(W){var B,z=(B=this.data)==null?void 0:B.targetId;W=_.k(W,oh_);z&&(W==null?void 0:W.engagementPanelTargetId)===z&&(this.scrimmed=!1)};
_.p.getIdentifier=function(){var W,B,z;return((W=this.data)==null?void 0:W.panelIdentifier)||((B=this.data)==null?void 0:(z=B.identifier)==null?void 0:z.tag)};
_.p.getSurface=function(){var W,B;return(W=this.data)==null?void 0:(B=W.identifier)==null?void 0:B.surface};
_.G5.Object.defineProperties(sN.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var W=this.getIdentifier();return W==="engagement-panel-youchat"||W==="PAyouchat"}}});
sN.prototype.visibilityChanged=sN.prototype.visibilityChanged;sN.prototype.isFullscreenChanged=sN.prototype.isFullscreenChanged;sN.prototype.isTheaterModeChanged=sN.prototype.isTheaterModeChanged;sN.prototype.dataChanged=sN.prototype.dataChanged;sN.prototype.forwardPopupClosedToFlowRootRenderer=sN.prototype.forwardPopupClosedToFlowRootRenderer;sN.prototype.onYtRendererstamperFinished=sN.prototype.onYtRendererstamperFinished;
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],sN.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],sN.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],sN.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],sN.prototype,"data",void 0);
_.Q([_.F({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.y("design:type",Object)],sN.prototype,"headerData",void 0);_.Q([_.F(),_.y("design:type",Object)],sN.prototype,"secondaryHeaderData",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sN.prototype,"visibility",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sN.prototype,"contentEmpty",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sN.prototype,"scrimmed",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sN.prototype,"dialog",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sN.prototype,"dropdown",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sN.prototype,"darkerPanels",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sN.prototype,"matchContentTheme",void 0);_.Q([_.F(),_.y("design:type",Object)],sN.prototype,"disableAutoFill",void 0);
_.Q([_.F({reflectToAttribute:!0,value:_.r("optimal_reading_width_comments_ep")}),_.y("design:type",Boolean)],sN.prototype,"optimalReadingWidthComments",void 0);_.Q([_.F(),_.y("design:type",Number)],sN.prototype,"hideDelayMs",void 0);_.Q([_.F({selector:_.ym,reflectToAttribute:!0}),_.y("design:type",Object)],sN.prototype,"isFullscreen",void 0);_.Q([_.F({selector:_.Qm,reflectToAttribute:!0}),_.y("design:type",Object)],sN.prototype,"isTheaterMode",void 0);
_.Q([_.F(),_.y("design:type",Number)],sN.prototype,"showDelayMs",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data.targetId"),_.y("design:type",Object),_.y("design:paramtypes",[])],sN.prototype,"targetId",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],sN.prototype,"webSize",null);_.Q([_.F(),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],sN.prototype,"hideFooterBorder",null);
_.Q([_.F(),_.y("design:type",Object)],sN.prototype,"isWatch",void 0);_.Q([_.F(),_.y("design:type",Object)],sN.prototype,"originalTheaterState",void 0);_.Q([_.F(),_.y("design:type",Object)],sN.prototype,"theaterDisablementPanelIdentifier",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sN.prototype,"modernPanels",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sN.prototype,"isWatchWhilePanel",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sN.prototype,"shortsPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sN.prototype,"liveChatEngagementPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sN.prototype,"learningChatEngagementPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sN.prototype,"liveChatReplyPanel",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sN.prototype,"enableAnchoredPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sN.prototype,"disableBackdropFilter",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sN.prototype,"isPersistentPanel",void 0);_.Q([_.F(),_.y("design:type",Object)],sN.prototype,"trackEngagementPanelVisibility",void 0);_.Q([_.Hf("#header"),_.y("design:type",HTMLElement)],sN.prototype,"headerElement",void 0);
_.Q([_.Hf("#header > *"),_.y("design:type",HTMLElement)],sN.prototype,"header",void 0);_.Q([_.Hf("ytd-section-list-renderer"),_.y("design:type",Object)],sN.prototype,"sectionListRendererElement",void 0);_.Q([_.Hf("panel-ad-header-image-lockup-view-model"),_.y("design:type",HTMLElement)],sN.prototype,"adHeaderImageLockupViewModel",void 0);_.Q([_.Hf("#content"),_.y("design:type",HTMLElement)],sN.prototype,"contentElement",void 0);
_.Q([_.IN("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sN.prototype,"onYtRendererstamperFinished",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sN.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.Q([_.jJ("data","isFullscreen","isTheaterMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sN.prototype,"dataChanged",null);
_.Q([_.oN("isTheaterMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sN.prototype,"isTheaterModeChanged",null);_.Q([_.oN("isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sN.prototype,"isFullscreenChanged",null);_.Q([_.oN("visibility"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sN.prototype,"visibilityChanged",null);
_.Q([_.u({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],sN);
_.D(sN,"ytd-engagement-panel-section-list-renderer",function(){if(PAm!==void 0)return PAm;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return PAm=W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var W6m;var PP=function(){var W=_.S.apply(this,arguments)||this;W.lastRenderedPanelIds=new Set;W.visiblePanels=[];W.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return W};
_.C(PP,_.S);_.p=PP.prototype;_.p.dataChanged=function(){if(this.data){for(var W=[],B=_.A(this.data),z=B.next();!z.done;z=B.next()){z=z.value;var G=void 0,Y=void 0,d=(G=z)==null?void 0:(Y=G.engagementPanelSectionListRenderer)==null?void 0:Y.visibility;Y=G=void 0;((G=z)==null?0:(Y=G.engagementPanelSectionListRenderer)==null?0:Y.targetId)&&d!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&W.push(z)}this.visiblePanels=W}else this.visiblePanels=[]};
_.p.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}}};
_.p.withoutVisiblePanelById=function(W){return this.visiblePanels.filter(function(B){var z;return((z=B.engagementPanelSectionListRenderer)==null?void 0:z.targetId)!==W})};
_.p.onYtChangeEngagementPanelVisibilityAction=function(W){var B=this,z=_.k(W,_.EcD);if(this.data&&(z==null?0:z.targetId)&&(z==null?0:z.visibility)){var G,Y=(G=this.data.find(function(E){var v;return((v=E.engagementPanelSectionListRenderer)==null?void 0:v.targetId)===z.targetId}))==null?void 0:G.engagementPanelSectionListRenderer;
if(Y){var d=this.withoutVisiblePanelById(z.targetId);z.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(W=this.data.find(function(E){var v;return((v=E.engagementPanelSectionListRenderer)==null?void 0:v.targetId)===z.targetId}))&&(d=[W].concat(_.u7(d)));
this.hideDelayMs&&z.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&d.length===0?_.fg.addJob(function(){Y.visibility=z.visibility;B.visiblePanels=d},10,this.hideDelayMs):(Y.visibility=z.visibility,this.visiblePanels=d);
_.wV(this.hostElement,"yt-engagement-panels-visible-changed",[d])}}};
_.p.onRendererstamperFinished=function(){var W=new Set(this.visiblePanels.map(function(B){var z;return(z=B.engagementPanelSectionListRenderer)==null?void 0:z.targetId}));
this.handlePanelVisibilityChange(W,this.lastRenderedPanelIds);this.lastRenderedPanelIds=W};
_.p.handlePanelVisibilityChange=function(W,B){W=W===void 0?new Set:W;B=B===void 0?new Set:B;if(this.data)for(var z=_.A(this.data),G=z.next();!G.done;G=z.next()){G=G.value;var Y=void 0,d=void 0,E=(Y=G)==null?void 0:(d=Y.engagementPanelSectionListRenderer)==null?void 0:d.targetId;if(E&&(Y=B.has(E),d=W.has(E),E=void 0,!Y&&d?(d=Y=void 0,E=(Y=G)==null?void 0:(d=Y.engagementPanelSectionListRenderer)==null?void 0:d.onShowCommands):Y&&!d&&(d=Y=void 0,E=(Y=G)==null?void 0:(d=Y.engagementPanelSectionListRenderer)==
null?void 0:d.onHideCommands),E))for(G=_.A(E),E=G.next();!E.done;E=G.next())this.ytComponentBehavior.resolveCommand(E.value)}};
PP.prototype.onRendererstamperFinished=PP.prototype.onRendererstamperFinished;PP.prototype.dataChanged=PP.prototype.dataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],PP.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],PP.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],PP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],PP.prototype,"lastRenderedPanelIds",void 0);_.Q([_.F(),_.y("design:type",Number)],PP.prototype,"hideDelayMs",void 0);_.Q([_.F(),_.y("design:type",Array)],PP.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Array)],PP.prototype,"visiblePanels",void 0);_.Q([_.F(),_.y("design:type",Boolean)],PP.prototype,"isWatchWhilePanel",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PP.prototype,"dataChanged",null);_.Q([_.IN("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PP.prototype,"onRendererstamperFinished",null);_.Q([_.u({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],PP);
_.D(PP,"ytd-watch-engagement-panels",function(){if(W6m!==void 0)return W6m;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return W6m=W},{mode:1});var B4N;var ZO=function(){return _.S.apply(this,arguments)||this};
_.C(ZO,_.S);ZO.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.A6(_.tH(this.hostElement).querySelector("#text"),_.qFT(_.$T6,this.data.companionLegalText))};
ZO.prototype.computeAutoScrollEnabled=function(W,B){return W&&!B};
ZO.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
ZO.prototype.onToggleTap=function(){this.expanded=!this.expanded};
ZO.prototype.expandedChanged=ZO.prototype.expandedChanged;ZO.prototype.dataChanged=ZO.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Iw9),_.y("design:type",Object)],ZO.prototype,"ytdAutoScrollBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ZO.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],ZO.prototype,"expanded",void 0);
_.Q([_.F({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.y("design:type",Boolean)],ZO.prototype,"autoScrollEnabled",void 0);_.Q([_.F(),_.y("design:type",String)],ZO.prototype,"expanderIcon",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZO.prototype,"dataChanged",null);
_.Q([_.oN("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZO.prototype,"expandedChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],ZO);
_.D(ZO,"ytd-companion-legal-text-renderer",function(){if(B4N!==void 0)return B4N;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return B4N=W},{mode:1});var zoN;var rm=function(){var W=_.S.apply(this,arguments)||this;W.buttonUpdate=_.r("web_modern_buttons");W.kevlarWatchGrid=_.r("kevlar_watch_grid");W.centerAlignDescription=_.r("action_companion_center_align_description");W.truncateDomain=_.r("action_companion_truncate_domain");return W};
_.C(rm,_.S);_.p=rm.prototype;_.p.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.p.getOnLayoutVisibleCallback=function(){var W=_.q6("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.p.getLayoutId=function(){var W=_.q6("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.p.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",rm.JSC$22863_DEFAULT_AD_BADGE_RENDERER);var W=this.getOnLayoutVisibleCallback();W&&W()}};
_.p.getButtonRenderer=function(W){return W.actionButton&&_.k(W.actionButton,_.Ep)?(delete _.k(W.actionButton,_.Ep).navigationEndpoint,_.k(W.actionButton,_.Ep)):{}};
_.p.onClick=function(W){var B=this;if((!_.r("web_modern_buttons")||!_.p2(_.AH(W),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){W=_.TN();var z=this.getLayoutId();W&&z&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(G){(new _.Bl(G)).executeCommand(B.data.navigationEndpoint,z)}):_.r("kevlar_companion_resolve_command_killswitch")?_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.c0(this.hostElement,"yt-companion-ad-clicked",["action-companion",z])}};
_.G5.Object.defineProperties(rm.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return((W=this.data)==null?0:(B=W.detailsLine)==null?0:(z=B.adRating)==null?0:z.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 W,B,z,G;return((W=this.data)==null?0:(B=W.detailsLine)==null?0:(z=B.adRating)==null?0:(G=z.ratingIcon)==null?0:G.iconType)?_.lg(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G;return((W=this.data)==null?0:(B=W.detailsLine)==null?0:(z=B.texts)==null?0:(G=z[0])==null?0:G.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 W,B;return((W=this.data)==null?0:(B=W.description)==null?0:B.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.q6("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var W=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return W?W.indexOf("/default_banner")!==-1:!0}}});
rm.prototype.onClick=rm.prototype.onClick;rm.prototype.dataChanged=rm.prototype.dataChanged;rm.JSC$22863_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.kq("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],rm.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],rm.prototype,"rendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],rm.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],rm.prototype,"buttonUpdate",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],rm.prototype,"kevlarWatchGrid",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],rm.prototype,"centerAlignDescription",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],rm.prototype,"truncateDomain",void 0);
_.Q([_.F({computed:"computeButtonOverride(buttonUpdate)"}),_.y("design:type",Object)],rm.prototype,"buttonOverride",void 0);_.Q([_.H("data.detailsLine.adRating.ratingText"),_.y("design:type",Object),_.y("design:paramtypes",[])],rm.prototype,"getRating",null);_.Q([_.H("getRating"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rm.prototype,"computeRatingHidden",null);
_.Q([_.H("data.detailsLine.adRating.ratingIcon.iconType"),_.y("design:type",Object),_.y("design:paramtypes",[])],rm.prototype,"iconType",null);_.Q([_.H("data.detailsLine.texts.0.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],rm.prototype,"getDetailsLine",null);_.Q([_.H("getDetailsLine"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rm.prototype,"computeDetailsLineHidden",null);
_.Q([_.H("data.description.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],rm.prototype,"getDescriptionText",null);_.Q([_.H("getDescriptionText"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rm.prototype,"computeDescriptionTextHidden",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],rm.prototype,"interactionLoggingClientData",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rm.prototype,"hideBanner",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rm.prototype,"dataChanged",null);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],rm.prototype,"onClick",null);_.Q([_.u({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],rm);
_.D(rm,"ytd-action-companion-ad-renderer",function(){if(zoN!==void 0)return zoN;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return zoN=W},{mode:_.PJ("kevlar_poly_si_batch_j067")?1:2});var GtZ;var YdK;var k9=function(){var W=_.S.apply(this,arguments)||this;W.buttonUpdate=_.r("web_modern_buttons");W.hideLegacyBanner=_.r("enable_dsa_one_click_ata_translators_infeed_elements");W.adInfoButtonStyle="mono";W.adInfoButtonType="text";W.noDotAdBadge=!0;return W};
_.C(k9,_.S);_.p=k9.prototype;_.p.getOnLayoutVisibleCallback=function(){var W=_.q6("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.p.getLayoutId=function(){var W=_.q6("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.p.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 W=this.data.image.thumbnail.thumbnails[0];this.imageSrc=W.url?_.yN(W.url):void 0;this.imageWidth=W.width||0;this.imageHeight=W.height||0}this.data.clickthroughEndpoint&&_.k(this.data.clickthroughEndpoint,_.DD)&&(W=_.k(this.data.clickthroughEndpoint,_.DD).url,_.r("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
W||"":W?(W=_.yN(W),this.clickThroughUrl=_.mF(W)):this.clickThroughUrl=void 0);(W=this.getOnLayoutVisibleCallback())&&W()}};
_.p.onClick=function(W){_.p2(_.AH(W),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(W)};
_.p.handleClick=function(){var W=this;this.data&&this.data.clickthroughEndpoint&&(_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(B){W.macroReplacementBehavior.sendServiceRequestAction([B])}),_.c0(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.p.onLoad=function(){_.wV(this.hostElement,"yt-refit-popups-action")};
_.G5.Object.defineProperties(k9.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var W=_.q6("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.q6("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}}});
k9.prototype.onLoad=k9.prototype.onLoad;k9.prototype.onClick=k9.prototype.onClick;k9.prototype.dataChanged=k9.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],k9.prototype,"rendererBehavior",void 0);_.Q([_.h(CfR.YtMacroReplacementBehavior),_.y("design:type",Object)],k9.prototype,"macroReplacementBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],k9.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],k9.prototype,"buttonUpdate",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],k9.prototype,"hideLegacyBanner",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],k9.prototype,"adInfoButtonStyle",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],k9.prototype,"adInfoButtonType",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],k9.prototype,"macros",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],k9.prototype,"interactionLoggingClientData",null);_.Q([_.F(),_.y("design:type",String)],k9.prototype,"clickThroughUrl",void 0);_.Q([_.F(),_.y("design:type",_.XM)],k9.prototype,"imageSrc",void 0);_.Q([_.F(),_.y("design:type",Number)],k9.prototype,"imageWidth",void 0);_.Q([_.F(),_.y("design:type",Number)],k9.prototype,"imageHeight",void 0);_.Q([_.F(),_.y("design:type",Object)],k9.prototype,"noDotAdBadge",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],k9.prototype,"dataChanged",null);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],k9.prototype,"onClick",null);_.Q([_.IN("load"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],k9.prototype,"onLoad",null);_.Q([_.u({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],k9);
_.D(k9,"ytd-image-companion-renderer",function(){if(YdK!==void 0)return YdK;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return YdK=W},{mode:_.PJ("kevlar_poly_si_batch_j067")?1:2});var dwm;var l5=function(){return _.S.apply(this,arguments)||this};
_.C(l5,_.S);_.p=l5.prototype;_.p.dataChanged=function(){this.set("data.adBadge",l5.JSC$22872_DEFAULT_AD_BADGE_RENDERER);if(this.data){var W=this.getOnLayoutVisibleCallback();W&&W()}};
_.p.getOnLayoutVisibleCallback=function(){var W=_.q6("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.p.getLayoutId=function(){var W=_.q6("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.p.onCompanionClicked=function(W){this.data&&(W.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.c0(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.p.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var W=_.TN(),B=this.getLayoutId(),z=this.data.clickToAdvSiteEndpoint;W&&B&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(G){(new _.Bl(G)).executeCommand(z,B)}):_.v0(this.hostElement,"yt-navigate",{endpoint:z})}};
_.p.sendTrackingPings=function(W){if(W&&W.length!==0&&W[0].loggingUrls&&(W=W[0].loggingUrls.map(this.getBaseUrl)))for(var B=0;B<W.length;B++)_.ys(W[B])};
_.p.getBaseUrl=function(W){return W.baseUrl||""};
_.G5.Object.defineProperties(l5.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.q6("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}}});
l5.prototype.onCompanionClicked=l5.prototype.onCompanionClicked;l5.prototype.dataChanged=l5.prototype.dataChanged;l5.JSC$22872_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.kq("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],l5.prototype,"data",void 0);_.Q([_.Hf("#title"),_.y("design:type",HTMLElement)],l5.prototype,"shopTitle",void 0);
_.Q([_.jJ("data.impressionEndpoints"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l5.prototype,"dataChanged",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],l5.prototype,"interactionLoggingClientData",null);_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],l5.prototype,"onCompanionClicked",null);
_.Q([_.u({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],l5);
_.D(l5,"ytd-shopping-companion-renderer",function(){if(dwm!==void 0)return dwm;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dwm=W},{mode:1});_.Vm(_.m(function(W){var B=W.data;W=_.YF({visibilityCallback:function(G){var Y,d=(Y=B().interaction)==null?void 0:Y.onFirstVisible;G&&d&&_.aB(d)},
showOption:_.he});var z=_.N$(function(){return B().interaction},xfF);
_.KR(function(){var G,Y;Y=(Y=_.q6("yt.www.ads.eventcache.getLastCompanionData"))?(Y=Y())&&Y.onLayoutVisibleCallback:null;(G=Y)==null||G()});
return _.w("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.lF(function(G){_.wV(G.currentTarget,"yt-refit-popups-action")}),
el:_.TG(W,z),"aria-label":function(){var G,Y;return(G=B().interaction)==null?void 0:(Y=G.accessibility)==null?void 0:Y.label}},_.w("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.w(_.Sc,{data:function(){return B().adImage}},{adImageViewModel:function(G){return _.w(_.qU,{data:G.data,
targetHeight:80,customCommandResolver:xfF})}})),_.w("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.w("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.w(_.Sc,{data:function(){return B().adBadge}},{adBadgeViewModel:function(G){return _.w(_.X7,{data:G.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.w("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.w(_.Sc,{data:function(){return B().menu}},{buttonViewModel:_.ex}))))},"Nk"),"banner-image-layout-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=W.data;W=_.YF({visibilityCallback:function(G){var Y,d=(Y=B().interaction)==null?void 0:Y.onFirstVisible;G&&d&&_.aB(d)},
showOption:_.he});var z=_.N$(function(){return B().interaction},DfF);
_.KR(function(){var G,Y;Y=(Y=_.q6("yt.www.ads.eventcache.getLastCompanionData"))?(Y=Y())&&Y.onLayoutVisibleCallback:null;(G=Y)==null||G()});
return _.w("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.TG(W,z)},_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.w(_.Sc,{data:function(){return B().adImage}},{adImageViewModel:function(G){return _.w(_.qU,{data:G.data,
targetHeight:80,customCommandResolver:DfF})}})),_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.w(_.Sc,{data:function(){return B().adAvatarLockup}},{adAvatarLockupViewModel:function(G){return _.w(Mkm,{data:G.data,
customCommandResolver:DfF})}})),_.w(_.Sc,{data:function(){return B().adButton}},{adButtonViewModel:function(G){return _.w(_.Sh,{data:G.data,
customCommandResolver:DfF})}}),_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.w(_.Sc,{data:function(){return B().menu}},{buttonViewModel:_.ex}))))},"Ok"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.kz}});var p5K={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"},CC=function(){var W=_.S.apply(this,arguments)||this;W.updateCompanionDataJobId=0;W.contentVideoId=null;W.player=null;W.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return W};
_.C(CC,_.S);_.p=CC.prototype;_.p.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:p5K}}};
_.p.attached=function(){var W=this,B=_.TN();B&&B.getPlayerPromise().then(function(z){W.getCachedDataAndListen(z)})};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.p.updateRendererStamper=function(){var W={};if(this.data)for(var B in p5K)if(this.data[B]){W[B]=this.data[B];break}if(this.oneofRenderer!=void 0||Object.keys(W).length)this.oneofRenderer=W};
_.p.getCachedDataAndListen=function(W){var B=this.retrieveCachedCompanionData();B&&Object.keys(B).length&&this.receiveCompanionData(B);this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=W};
_.p.retrieveCachedCompanionData=function(){return _.Yt.yt&&_.Yt.yt.www&&_.Yt.yt.www.ads&&_.Yt.yt.www.ads.eventcache&&_.Yt.yt.www.ads.eventcache.getLastCompanionData?_.Yt.yt.www.ads.eventcache.getLastCompanionData():null};
_.p.receiveCompanionData=function(W){W&&Object.keys(W).length?(this.contentVideoId=W.contentVideoId,this.setCompanionData(W)):this.setCompanionData(W)};
_.p.setCompanionData=function(W){this.cancelPendingCompanionAdJobs();if(W){this.updateCompanionDataJobId=0;for(var B in p5K)p5K.hasOwnProperty(B)&&(this.data[B]=void 0);W.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",W.shoppingCompanionCarouselRenderer):W.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",W.imageCompanionAdRenderer):W.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",W.actionCompanionAdRenderer),_.wV(this.hostElement,
"yt-hide-unlimited-offer-module"),_.wV(this.hostElement,"yt-hide-tvfilm-offer-module")):W.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",W.bannerImageLayoutViewModel):W.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",W.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.p.dataChanged=function(){var W=this,B=_.TN();B?B.getPlayerPromise().then(function(z){W.contentVideoId&&z.getVideoUrl().includes("v="+W.contentVideoId)||(W.cancelPendingCompanionAdJobs(),W.updateRendererStamper())}):_.nx(Error("Oo"))};
_.p.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.fg.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.p.handleCompanionAdClicked=function(W,B){this.player.onAdUxClicked(W,B);this.player.pauseVideo()};
CC.prototype.dataChanged=CC.prototype.dataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],CC.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],CC.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],CC.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",_.kI)],CC.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],CC.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],CC.prototype,"oneofRenderer",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CC.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],CC);
_.D(CC,"ytd-companion-slot-renderer",function(){if(GtZ!==void 0)return GtZ;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return GtZ=W},{mode:_.PJ("kevlar_poly_si_batch_j067")?
1:2});var Ayb;var Im=function(){return _.S.apply(this,arguments)||this};
_.C(Im,_.S);Im.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Im.prototype.dataChanged=Im.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Im.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Im.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Im.prototype,"companionSlotData",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Im.prototype,"dataChanged",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Im);
_.D(Im,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(Ayb!==void 0)return Ayb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Ayb=W},{mode:1});var iRb;var om=function(){var W=_.S.apply(this,arguments)||this;W.skinnyMode=!1;W.COMPACT_EVENT_COUNT=4;W.onShelfToggleButtonTap=function(){W.logTap(W.data);W.showingMore=!W.showingMore};
W.onShelfToggleButtonFocus=function(){W.showingMore||(W.logTap(W.data),W.showingMore=!0,_.BM(W,function(){var B=W.COMPACT_EVENT_COUNT-1,z;(z=_.tH(W.hostElement).querySelector("#event-"+B))==null||z.focus()}))};
return W};
_.C(om,_.S);_.p=om.prototype;_.p.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.p.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.p.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Co(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Co(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Co(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Co(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Co(this.infoTooltip,this.infoTooltip.hide))};
_.p.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Co(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Co(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Co(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Co(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Co(this.infoTooltip,this.infoTooltip.hide))};
_.p.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)};
_.p.onShowingMoreChanged=function(){var W;this.showingMoreChanged((W=this.showingMore)!=null?W:!1)};
_.p.showingMoreChanged=function(W){var B=this.get("data.events")||[];this.set("restEvents",B.slice(1,W?B.length:this.COMPACT_EVENT_COUNT).map(function(z){return z.ticketEventRenderer}));
B.slice(0,W?B.length:this.COMPACT_EVENT_COUNT).forEach(function(z){var G=_.m1();z=z.ticketEventRenderer.trackingParams;_.et()&&G&&z&&(z=_.XF(z),G&&_.U2(G,z))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.p.computeAriaLabel=function(W){return W.subtitle1+", "+W.subtitle2};
_.p.logTap=function(W){_.et()&&this.ytRendererBehavior.logExplicitClick(W)};
_.p.isKeyboardAction=function(W){return this.get("detail.x",W)===0&&this.get("detail.y",W)===0};
_.p.onFirstEventTap=function(W){W.target&&this.handleTap(W.target,this.firstEvent,this.isKeyboardAction(W))};
_.p.onTicketLinkTap=function(W){W.target&&this.handleTap(W.target,W.model.item,this.isKeyboardAction(W))};
_.p.handleTap=function(W,B,z){if(B.buttonCommand)if(B.hasMultipleOffers)Object.assign(_.k(B.buttonCommand,_.Nm),{properties:{source:z?"keyboard":"tap"}}),this.logTap(B),this.popupPositionTarget=W,_.Jr(this.hostElement,[B.buttonCommand],this.hostElement);else{var G;if((G=_.k(B.buttonCommand,_.DD))==null?0:G.url)this.logTap(B),_.BG(window,_.k(B.buttonCommand,_.DD).url)}};
om.prototype.onShowingMoreChanged=om.prototype.onShowingMoreChanged;om.prototype.dataChanged=om.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],om.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],om.prototype,"firstEvent",void 0);_.Q([_.F(),_.y("design:type",Object)],om.prototype,"restEvents",void 0);_.Q([_.F(),_.y("design:type",String)],om.prototype,"imageUrl",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],om.prototype,"showingMore",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],om.prototype,"canShowMore",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],om.prototype,"skinnyMode",void 0);_.Q([_.F(),_.y("design:type",HTMLElement)],om.prototype,"popupPositionTarget",void 0);_.Q([_.Hf("#banner-info-tooltip"),_.y("design:type",Object)],om.prototype,"infoTooltip",void 0);
_.Q([_.Hf("#info-container"),_.y("design:type",HTMLElement)],om.prototype,"infoContainer",void 0);_.Q([_.Hf("#shelf-toggler"),_.y("design:type",HTMLElement)],om.prototype,"shelfToggleButton",void 0);_.Q([_.Hf("#separator"),_.y("design:type",HTMLDivElement)],om.prototype,"separator",void 0);_.Q([_.F(),_.y("design:type",String)],om.prototype,"shelfTogglerLabelText",void 0);_.Q([_.F(),_.y("design:type",String)],om.prototype,"shelfTogglerIcon",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],om.prototype,"dataChanged",null);_.Q([_.jJ("showingMore"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],om.prototype,"onShowingMoreChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],om);
_.D(om,"ytd-ticket-shelf-renderer",function(){if(iRb!==void 0)return iRb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return iRb=W},{mode:1});var E$m;var T4h;var v$M=function(){return _.S.apply(this,arguments)||this};
_.C(v$M,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],v$M.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],v$M.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],v$M);
_.D(v$M,"ytd-comments-entry-point-message-renderer",function(){if(T4h!==void 0)return T4h;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return T4h=W},{mode:1});var cyb;var hJ=function(){return _.S.apply(this,arguments)||this};
_.C(hJ,_.S);_.G5.Object.defineProperties(hJ.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.teaserAvatar)}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],hJ.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],hJ.prototype,"hasAvatar",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],hJ);
_.D(hJ,"ytd-comments-entry-point-teaser-renderer",function(){if(cyb!==void 0)return cyb;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return cyb=W},{mode:1});var w5F;var VaQ=function(){return _.S.apply(this,arguments)||this};
_.C(VaQ,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],VaQ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],VaQ.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],VaQ);
_.D(VaQ,"ytd-comments-simplebox-renderer",function(){if(w5F!==void 0)return w5F;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return w5F=W},{mode:1});var HP=function(){var W=_.S.apply(this,arguments)||this;W.fullHeight=!_.r("comment_teaser_full_height_kill_switch")&&_.r("kevlar_watch_grid");return W};
_.C(HP,_.S);HP.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"}}}};
HP.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
HP.prototype.onTap=function(){var W=this.tapCommand;W&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(W))};
HP.prototype.onKeyUp=function(W){if(W.keyCode===13)this.onTap()};
_.G5.Object.defineProperties(HP.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.onTap)return this.data.onTap;var B,z;if(((B=this.data)==null?0:B.teaserContent)||((z=this.data)==null?0:z.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)!=null&&W.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
HP.prototype.onKeyUp=HP.prototype.onKeyUp;HP.prototype.onTap=HP.prototype.onTap;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],HP.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],HP.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],HP.prototype,"fullHeight",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],HP.prototype,"tapCommand",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],HP.prototype,"simpleboxPlaceholder",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],HP.prototype,"hasSimpleboxPlaceholder",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],HP.prototype,"simpleboxAvatar",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],HP.prototype,"teaserContent",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],HP.prototype,"hasTeaserContent",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],HP.prototype,"teaserAvatar",null);
_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],HP.prototype,"hasTeaserAvatar",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],HP.prototype,"messageText",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],HP.prototype,"contentRenderer",null);_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],HP.prototype,"hasContents",null);
_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],HP.prototype,"hasContentRenderer",null);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HP.prototype,"onTap",null);_.Q([_.IN("keypress"),_.y("design:type",Function),_.y("design:paramtypes",[_.j1]),_.y("design:returntype")],HP.prototype,"onKeyUp",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],HP);
_.D(HP,"ytd-comments-entry-point-header-renderer",function(){if(E$m!==void 0)return E$m;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return E$m=W},{mode:1});var JyZ;_.Vm(_.kVH,"yt-animated-rolling-number",{props:{numberText:_.kz,numberValue:_.kz,heightPx:_.kz,fontSizeMultiplier:_.kz,shouldAnimate:_.kz,forceRollUp:_.kz}});var g$F=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),ta3={numberText:"",heightPx:2*g$F,shouldAnimate:!1},Fl=function(){var W=_.S.apply(this,arguments)||this;W.usingAnimatedComponents=!0;W.wasDetailed=!1;W.JSC$22909_browserSupportsAnimation=_.r("web_supports_animations_api");W.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};W.detailed=!1;W.shouldAnimate=!1;W.viewCountProps=ta3;W.dateTextProps=
ta3;W.metadataBadgesInDescription=_.r("web_metadata_badges_in_description");return W};
_.C(Fl,_.S);_.p=Fl.prototype;_.p.resetAnimationState=function(){this.shouldAnimate=!1};
_.p.updateDynamicMetadata=function(){if(this.JSC$22909_browserSupportsAnimation){if(!this.detailed){var W,B,z,G;var Y=(W=this.videoPrimaryInfoRenderer)==null?void 0:(B=W.viewCount)==null?void 0:(z=B.videoViewCountRenderer)==null?void 0:(G=z.extraShortViewCount)==null?void 0:G.simpleText;var d,E,v,c;var J=(d=this.videoPrimaryInfoRenderer)==null?void 0:(E=d.viewCount)==null?void 0:(v=E.videoViewCountRenderer)==null?void 0:(c=v.shortViewCount)==null?void 0:c.simpleText}if(!J){var g,t,P,Z;Y=(g=this.videoPrimaryInfoRenderer)==
null?void 0:(t=g.viewCount)==null?void 0:(P=t.videoViewCountRenderer)==null?void 0:(Z=P.unlabeledViewCountValue)==null?void 0:Z.simpleText;var l,b,O,K;J=(l=this.videoPrimaryInfoRenderer)==null?void 0:(b=l.viewCount)==null?void 0:(O=b.videoViewCountRenderer)==null?void 0:(K=O.viewCount)==null?void 0:K.simpleText}var e,a,q;W=Number((e=this.videoPrimaryInfoRenderer)==null?void 0:(a=e.viewCount)==null?void 0:(q=a.videoViewCountRenderer)==null?void 0:q.originalViewCount);var n,L;e=(n=this.videoPrimaryInfoRenderer)==
null?void 0:(L=n.relativeDateText)==null?void 0:L.simpleText;var By;n=!((By=this.videoPrimaryInfoRenderer)==null||!By.relativeDateText);if(Y&&J&&W&&(e||!n)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;By=J.split(new RegExp("("+Y+")"));Y=$fZ(By[0]);var gk;J={numberText:(gk=By[1])!=null?gk:"",numberValue:W,heightPx:2*g$F,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var vy;gk=((vy=By[2])!=null?vy:"")+"  ";this.setViewCount(J,Y,$fZ(gk));
if(!this.detailed&&n){Y=e.split(/(\d+)/);vy=$fZ(Y[0]);var lx;gk={numberText:(lx=Y[1])!=null?lx:"",heightPx:2*g$F,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Zv;lx=((Zv=Y[2])!=null?Zv:"")+"  ";this.setDateText(gk,vy,$fZ(lx))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.p.setViewCount=function(W,B,z){_.zR(B)!==_.zR(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=B);this.viewCountProps.numberText!==(W==null?void 0:W.numberText)&&(this.viewCountProps=W||ta3);_.zR(z)!==_.zR(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=z)};
_.p.setDateText=function(W,B,z){_.zR(B)!==_.zR(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=B);this.dateTextProps.numberText!==(W==null?void 0:W.numberText)&&(this.dateTextProps=W||ta3);_.zR(z)!==_.zR(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=z)};
_.p.onYtUpdateViewershipAction=function(W){this.videoPrimaryInfoRenderer&&(_.k(W,z6K).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.k(W,z6K).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.k(W,z6K).viewCount)))};
_.p.onYtUpdateDateTextAction=function(W){if(this.videoPrimaryInfoRenderer){W=_.k(W,_.WD3).dateText;this.shouldAnimate=!0;var B;((B=this.videoPrimaryInfoRenderer)==null?0:B.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",W):this.set("videoPrimaryInfoRenderer.dateText",W)}};
_.G5.Object.defineProperties(Fl.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return NiF(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.zR(NiF(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.zR(this.viewCountPreNumberText),this.viewCountProps.numberText,_.zR(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.zR(this.dateTextPreNumberText),this.dateTextProps.numberText,_.zR(this.dateTextPostNumberText)].join("")}}});
Fl.prototype.updateDynamicMetadata=Fl.prototype.updateDynamicMetadata;Fl.prototype.resetAnimationState=Fl.prototype.resetAnimationState;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Fl.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Fl.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Fl.prototype,"videoPrimaryInfoRenderer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fl.prototype,"detailed",void 0);_.Q([_.F(),_.y("design:type",Object)],Fl.prototype,"shouldAnimate",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fl.prototype,"viewCountPreNumberText",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fl.prototype,"viewCountProps",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fl.prototype,"viewCountPostNumberText",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fl.prototype,"dateTextPreNumberText",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fl.prototype,"dateTextProps",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fl.prototype,"dateTextPostNumberText",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fl.prototype,"metadataBadgesInDescription",void 0);_.Q([_.H("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.y("design:type",Object),_.y("design:paramtypes",[])],Fl.prototype,"infoText",null);
_.Q([_.H("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.y("design:type",String),_.y("design:paramtypes",[])],Fl.prototype,"descriptionInfoTooltipText",null);_.Q([_.H("detailed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Fl.prototype,"showDescriptionInfoTooltip",null);
_.Q([_.H("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.y("design:type",String),_.y("design:paramtypes",[])],Fl.prototype,"animatedViewCountAccessibilityLabel",null);_.Q([_.H("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.y("design:type",String),_.y("design:paramtypes",[])],Fl.prototype,"animatedDateTextAccessibilityLabel",null);
_.Q([_.oN("videoPrimaryInfoRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fl.prototype,"resetAnimationState",null);_.Q([_.oN("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fl.prototype,"updateDynamicMetadata",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Fl);
_.D(Fl,"ytd-watch-info-text",function(){if(JyZ!==void 0)return JyZ;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return JyZ=W},{mode:1});var swZ;var PEm="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var ZRQ=_.m(function(W){var B=W.data;var z=W.setTapCommand;_.ja(function(){var G=_.$B(B().onTap);z(G)},"Hj6Srd");
return _.w("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.w(_.Sc,{data:function(){return B().avatar}},{avatarViewModel:_.ds}),_.w("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.w("span",null,function(){return B().simpleboxText})))},"Pk");var ry3=_.m(function(W){return _.w("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.w(_.V,{cond:function(){return _.k(W.data().avatar,_.yi)},
then:function(B){return _.w(_.ds,{data:B,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.w("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.w(_.r0,{text:function(){return W.data().teaserText}})))},"Qk");var ktN=_.m(function(W){var B=W.data;var z=W.setTapCommand;_.ja(function(){var G=_.$B(B().onTap);z(G)},"IlZFqc");
return _.w("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.w(_.Sc,{data:function(){return B().teasers}},{commentsEntryPointTeaserViewModel:ry3}))},"Rk");var lI_=_.m(function(W){var B=W.data;var z=W.setTapCommand;_.ja(function(){var G=_.$B(B().onTap);z(G)},"sYe8ye");
return _.w("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.w(_.r0,{text:function(){return B().messageText}}))},"Sk");var CEm=_.m(function(W){var B=W.data;var z=W.setTapCommand;var G=W.isDisabled;_.ja(function(){var Y=(G==null?0:G())?void 0:_.$B(B().onTap);z(Y)},"GZxRqd");
return _.w("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.w(_.hY,{icon:function(){return B().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.w(_.V,{cond:function(){return B().image},
then:function(Y){return _.w(_.iF,{data:Y,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.w(_.r0,{text:function(){return B().text},
className:function(){return B().image||B().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.w(_.Sc,{data:function(){return B().button}},{buttonViewModel:function(Y){return _.w(_.ex,{data:Y.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:G==null?void 0:G()}}})}}))},"Tk");var II_=_.m(function(W){var B=W.data;var z=W.itemIndex;var G=W.selectedIndex;var Y=W.indexUpdatedCallback;var d=W.observer;W=W.title;var E=_.LG("yt-carousel-item-view-model",function(t){d&&d().observe(t)}),v=function(t){z()===G()&&Y(t)},c=_.ny(kqm),J=_.ny(_.X9Q),g=function(){var t,P,Z;
return((t=B())==null?void 0:t.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!c()||((P=B())==null?void 0:P.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&J().includes("PAposts_by_host")||((Z=B())==null?void 0:Z.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&J().includes("PAyouchat")};
return _.w("yt-carousel-item-view-model",{el:E,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":W},_.w(_.Sc,{data:function(){var t,P;return(P=(t=_.k(B().carouselItem,lR3))==null?void 0:t.textCarousel)!=null?P:B().carouselItem}},{textCarouselItemViewModel:function(t){return _.w(CEm,{data:t.data,
setTapCommand:v,isDisabled:g})},
commentTeaserCarouselItemViewModel:function(t){return _.w(ktN,{data:t.data,setTapCommand:v})},
commentInputBoxCarouselItemViewModel:function(t){return _.w(ZRQ,{data:t.data,setTapCommand:v})},
commentsEntryPointMessageViewModel:function(t){return _.w(lI_,{data:t.data,setTapCommand:v})}}))},"Uk");var o$N=_.m(function(W){var B=W.numDots;var z=W.activeIndex;return _.w("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.w(_.IJ,{each:function(){return Array.from({length:B()})},
keyBy:"INDEX"},function(G,Y){return _.w("div",{class:function(){var d={};return _.uj("ytCarouselDotsShapeDot",(d.ytCarouselDotsShapeDotActive=Y===z(),d))}})}))},"Vk");var ho_=_.m(function(W){var B=W.data;var z=W.handleCarouselNavigation;var G=W.numItems;var Y=W.selectedIndex;var d=function(){return{disabled:Y()===0}},E=function(){return{disabled:Y()===G()-1}};
return _.w("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.w("div",null,_.w("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return B().title}),_.w(_.V,{cond:function(){return B().subtitle},
then:function(v){return _.w("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return B().subtitleAccessibilityText}},v)}})),_.w(_.V,{cond:function(){return G()>1},
then:function(){return _.w("div",{class:"ytCarouselTitleViewModelNavigation"},_.w(o$N,{numDots:G,activeIndex:Y}),_.w(_.V,{cond:function(){return B().previousButton},
then:function(v){return _.w(_.Sc,{data:v},{buttonViewModel:function(c){return _.w(_.ex,{data:c.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return z(-1)},
buttonOverrides:d})}})}}),_.w(_.V,{cond:function(){return B().nextButton},
then:function(v){return _.w(_.Sc,{data:v},{buttonViewModel:function(c){return _.w(_.ex,{data:c.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return z(1)},
buttonOverrides:E})}})}}))}}))},"Wk");_.Vm(_.m(function(W){var B=W.data;var z,G=_.LG("yt-video-metadata-carousel-view-model"),Y=_.LG("div",function(n){var L=function(){var By=n.offsetWidth*b(),gk=24*(b()-1);P(By+gk)};
L();window.ResizeObserver&&(z=new ResizeObserver(L),z.observe(n))}),d=_.eD("HTML_DIR")==="rtl",E=!1,v=0,c=0;
W=_.A(_.g4(0,void 0,"M49TDf"));var J=W.next().value,g=W.next().value;W=_.A(_.g4(0,void 0,"zLIok"));var t=W.next().value,P=W.next().value;W=_.A(_.g4(!1,void 0,"bhelhc"));var Z=W.next().value,l=W.next().value,b=function(){var n,L,By;return(By=(n=B())==null?void 0:(L=n.carouselTitles)==null?void 0:L.length)!=null?By:0},O=function(){Y.value&&Y.value.scrollLeft!==v&&g((d?Y.value.scrollLeft<v:Y.value.scrollLeft>v)?Math.min(J()+1,b()-1):Math.max(J()-1,0))},K;
window.IntersectionObserver&&(K=new IntersectionObserver(function(n){n=_.A(n);for(var L=n.next();!L.done;L=n.next())if(L.value.isIntersecting){if(E){E=!1;break}O()}else g(c)},{threshold:.2}));
_.ja(function(){if(Y.value){var n=(d?-1:1)*(t()/b()+12)*(Z()&&K?c:J());typeof Y.value.scrollTo==="function"?Y.value.scrollTo({left:n,behavior:"smooth"}):Y.value.scrollLeft=n;v=n;c=Z()&&K?c:J()}},"s9rbgc");
var e,a=function(n){e=n};
_.fR(function(){var n;(n=z)==null||n.disconnect();var L;(L=K)==null||L.disconnect()});
var q=function(n){n=J()+n;n>=0&&n<b()&&(E=!0,g(n))};
return _.w("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:G,"on:click":_.lF(function(n){if(_.mC(_.ec(n),G.value,["BUTTON".toString()])||!e)return!1;_.dO().resolve(_.p4).resolveCommand(e,{forceClickLogging:!0});return!1}),
"on:touchstart":_.lF(function(){l(!0);return!1}),
"on:touchend":_.lF(function(){K||O();l(!1);return!1}),
hidden:function(){var n,L;return!((n=B())==null?0:(L=n.carouselItems)==null?0:L.length)}},_.w("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.w(_.V,{cond:function(){return B().carouselTitles},
then:function(n){return _.w(_.Sc,{data:function(){return n()[Z()&&K?c:J()]}},{carouselTitleViewModel:function(L){return _.w(ho_,{data:L.data,
handleCarouselNavigation:q,numItems:b,selectedIndex:J})}})}})),_.w("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:Y},_.w("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+t()+"px;"}},_.w(_.V,{cond:function(){return B().carouselItems},
then:function(n){return _.w(_.IJ,{each:n},function(L,By){return _.w(_.Sc,{data:function(){return L}},{carouselItemViewModel:function(gk){return _.w(II_,{data:gk.data,
itemIndex:By,selectedIndex:J,indexUpdatedCallback:a,observer:K,title:function(){a:{var vy=By();var lx,Zv=(lx=B())==null?void 0:lx.carouselTitles;if(Zv&&(vy=Zv[vy])){var VR;vy=(VR=_.k(vy,k_Z))==null?void 0:VR.title;break a}vy=void 0}return vy}})}})})}}))))},"Xk"),"yt-video-metadata-carousel-view-model",{props:{data:_.kz}});var HRo=_.r("web_action_buttons_update_owner_width")?32:12,SP=function(){var W=_.S.apply(this,arguments)||this;W.isHovering=!1;W.enableColorSampling=_.r("web_delhi_colorful_sd");W.metadataBadgesInDescription=_.r("web_metadata_badges_in_description");W.descriptionCollapsed=!0;W.useFadedScrimDescription=_.r("kevlar_enable_faded_scrim_on_description");W.skinnyMode=!1;W.playlist=!1;W.isDark=document.documentElement.hasAttribute("dark");W.disableVideoOwnerOnTap=_.r("swatchie_video_owner_on_tap_ks");W.swatcherooDelayLoad=
_.r("swatcheroo_enable_ghost_cards");W.primaryMenuWidth=0;W.videoId="";W.titleHeadlineXs=_.r("web_watch_typography_title_headline_xs");W.titleHeadlineS=_.r("web_watch_typography_title_headline_s");W.titleHeadlineM=_.r("web_watch_typography_title_headline_m");W.titleHashtagBlackLinkified=_.r("web_title_hashtag_black_linkified");W.titleHashtagGreyLinkified=_.r("web_title_hashtag_grey_linkified");W.actionButtonsUpdateOwnerWidth=_.r("web_action_buttons_update_owner_width");W.shouldForceIconOnly=!1;W.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};W.isFullscreen=!1;W.isTheaterMode=!1;return W};
_.C(SP,_.S);_.p=SP.prototype;_.p.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.p.updateOwnerAndDescriptionPosition=function(){_.r("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.qy(this.bottomRowElement,this.ownerElement)):(_.qy(this.bottomRowElement,this.descriptionElement),_.qy(this.topRowElement,this.ownerElement)))};
_.p.titleOnTap=function(W){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.p2(_.AH(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var B;((B=window.getSelection())==null?0:B.toString().length)||this.handleExpandDescriptionCommands()}};
_.p.videoOwnerOnTap=function(W){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.p2(_.AH(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.p.detached=function(){var W=this,B;return _.T(function(z){(B=W.resizeObserver)==null||B.disconnect();_.HG(z)})};
_.p.maybeAttachResizeObserver=function(){var W=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.an(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){W.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.p.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var W=this.hostElement.clientWidth,B=Math.max(this.largerItemWrap?400:350,W/2-HRo);if(_.r("web_action_buttons_update_owner_width")){var z;B=(((z=document.getElementById("owner"))==null?void 0:z.clientWidth)||0)+HRo}this.actionsOnSeparateLine=this.primaryMenuWidth>W-B?!0:!1}};
_.p.stripAttributedDescription=function(W){return{content:W.content.replace(/[\r\n]{2,}/g,"\n")}};
_.p.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.r("web_modern_buttons"),forceIconButton:!_.r("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:_.r("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"}}}};
_.p.videoPrimaryInfoRendererChanged=function(){var W;if((W=this.videoPrimaryInfoRenderer)==null?0:W.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.p.videoSecondaryInfoRendererChanged=function(){var W,B;(B=(W=this.descriptionInlineExpander).collapse)==null||B.call(W);this.descriptionExpandClientVe=_.PA(110509);this.descriptionCollapseClientVe=_.PA(110510);W=_.m1();B=_.et();W&&B&&(_.r("combine_ve_grafts")?(_.ui(_.SK(),this.descriptionExpandClientVe,B),_.ui(_.SK(),this.descriptionCollapseClientVe,B)):_.Li(W,B,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.p.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.p.updateTopLevelIconsOnly=function(){var W=this;_.r("top_level_update_killswitch")||this.menu&&_.fg.addLowPriorityJob(function(){W.menu.topLevelIconsOnly=W.skinnyMode},_.iO("swathceroo_delay_flexible_menu_update",100))};
_.p.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.r("web_action_buttons_minimize_subscribe")};
_.p.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.p.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.p.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.p.onYtTextInlineExpanderExpandedChanged=function(){if(!_.r("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var W,B;(B=(W=this.structuredDescriptionContentRendererElement).resize)==null||B.call(W)}};
_.p.onRenderStamperFinished=function(W){(W==null?void 0:W.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.p.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.p.onYtExpanderLessTapped=function(){var W,B=(W=this.videoSecondaryInfoRenderer)==null?void 0:W.showLessCommand;B&&this.ytComponentBehavior.resolveCommand(B)};
_.p.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.p.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.p.onDescriptionClick=function(W){if(!_.p2(_.AH(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var B;((B=window.getSelection())==null?0:B.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.r("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.p.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.p.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.p.logCollapseClick=function(){var W=_.m1();W&&this.descriptionCollapseClientVe&&_.RP(W,this.descriptionCollapseClientVe)};
_.p.logExpandClick=function(){var W=_.m1();W&&this.descriptionExpandClientVe&&_.RP(W,this.descriptionExpandClientVe)};
_.p.collapseDescription=function(){this.descriptionCollapsed=!0};
_.p.scrollToTopOfContainer=function(){_.c0(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.p.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.p.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.p.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.p.resize=function(){if(this.descriptionInlineExpander){var W,B;(B=(W=this.descriptionInlineExpander).resize)==null||B.call(W)}else _.Oc(new _.oX("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var z;(z=this.menu)==null||z.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.p.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var W,B,z,G,Y=_.r("web_action_buttons_update_owner_width")?(z=(W=_.tH(this.menu).querySelector("#button-shape"))==null?void 0:W.clientWidth)!=null?z:0:(G=(B=_.tH(this.menu).querySelector("#button"))==null?void 0:B.clientWidth)!=null?G:0,d,E;W=((E=(d=_.tH(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:d.clientWidth)!=null?E:0)+8+Y;var v,c;Y=(c=(v=_.tH(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:v.children.length)!=null?c:2;W<=8*Y||(this.primaryMenuWidth=W)}};
_.p.onYtUpdateTitleAction=function(W){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.k(W,BjN).title)};
_.p.onYtUpdateDescriptionAction=function(W){if(W=_.k(W,_.zvM)){var B,z=!((B=this.videoSecondaryInfoRenderer)==null||!B.attributedDescription);W.isEmpty||!W.description&&!W.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):W.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",W.attributedDescription):W.description&&(z?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.y2(W.description)):this.set("videoSecondaryInfoRenderer.description",W.description))}};
_.p.onYtDarkModeToggledAction=function(W){this.isDark=W};
_.p.registerPanel=function(){if(!_.r("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var W=_.r("web_watch_imax_theater_mode")&&this.isTheaterMode;W=_.r("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||W;var B=_.dO().resolve(_.WD);B&&!W&&B.registerPanel("engagement-panel-structured-description",this)}};
_.p.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.p.parseColorSamplingData=function(){var W;if(_.r("web_delhi_colorful_sd")&&((W=this.structuredDescriptionContentRenderer)==null?0:W.items)&&(W=this.structuredDescriptionContentRenderer.items.find(function(Y){return!!_.k(Y,nT)}))){var B,z;
this.hoverColor={lightTheme:(B=_.k(W,nT))==null?void 0:B.lightThemeColorPalette,darkTheme:(z=_.k(W,nT))==null?void 0:z.darkThemeColorPalette};var G;this.hoverText=(G=_.k(W,nT))==null?void 0:G.colorSampledDescriptionBodyText}};
_.p.updateHoverColor=function(){if(_.r("web_delhi_colorful_sd")){var W=this.hoverColor,B={},z;W=(z=this.isDark?W==null?void 0:W.darkTheme:W==null?void 0:W.lightTheme)!=null?z:{};z=_.A(PEm);for(var G=z.next();!G.done;G=z.next()){G=G.value;var Y=W[G];B["--yt-saturated-"+_.k6(G)]=Y?_.aE(Y):"initial"}_.kw(this.hostElement,B)}};
_.p.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.p.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.p.showPanel=function(W){this.expandDescription();var B=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;B.resize();var z,G=W==null?void 0:(z=W.sectionListEngagementPanelExtras)==null?void 0:z.scrollToItemSectionIdentifier;G?_.fg.addJob(function(){B==null||B.scrollToSection(G)},8):this.scrollToTopOfContainer()};
_.p.isVisible=function(){return!this.descriptionCollapsed};
_.p.getReloadContinuation=function(){};
_.p.hidePanel=function(){};
_.p.updatePanel=function(){};
_.G5.Object.defineProperties(SP.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var W;return _.r("web_delhi_colorful_sd")&&(W=this.structuredDescriptionContentRenderer)!=null&&W.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(B){return!_.k(B,nT)&&!_.k(B,Y0N)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.structuredDescriptionContentRendererComputed)!=null&&W.items){var B;W=_.A((B=this.structuredDescriptionContentRendererComputed)==null?void 0:B.items);for(B=W.next();!B.done;B=W.next())if(B=_.k(B.value,_.UpQ))return B}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoPrimaryInfoRenderer)==null?0:W.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return!!((W=this.videoSecondaryInfoRenderer)==null?0:(B=W.owner)==null?0:(z=B.videoOwnerRenderer)==null?0:z.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var W,B;if((W=this.videoSecondaryInfoRenderer)==null?0:(B=W.attributedDescription)==null?0:B.content){var z,G;return(G=this.stripAttributedDescription((z=this.videoSecondaryInfoRenderer)==null?void 0:z.attributedDescription))!=null?G:{runs:[]}}}if(_.r("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var Y,d,E,v;return(v=(E=(Y=this.videoSecondaryInfoRenderer)==
null?void 0:Y.description)!=null?E:(d=this.videoSecondaryInfoRenderer)==null?void 0:d.attributedDescription)!=null?v:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var W,B;return(B=(W=this.videoSecondaryInfoRenderer)==null?void 0:W.headerRuns)!=null?B:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.commentsEntryPointHeaderRenderer)==null||!W.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoMetadataCarousel)==null||!W.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.iO("swatchie_desc_lines",3):this.hasTeaserCarousel?_.iO("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var W,B,z=Object.assign({},(W=this.videoSecondaryInfoRenderer)==null?void 0:(B=W.metadataRowContainer)==null?void 0:B.metadataRowContainerRenderer);if(z&&z.rows&&z.collapsedItemCount!==void 0&&!(z.rows.length<=z.collapsedItemCount))return z.rows=z.rows.slice(z.collapsedItemCount),z.collapsedItemCount=0,z}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var W,B,z=Object.assign({},(W=this.videoSecondaryInfoRenderer)==null?void 0:(B=W.metadataRowContainer)==null?void 0:B.metadataRowContainerRenderer);if(z&&z.rows&&z.collapsedItemCount!==void 0)return z.rows=z.rows.slice(0,z.collapsedItemCount),z.collapsedItemCount=z.rows.length,z}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var W,B;return!!((W=this.structuredDescriptionContentRendererComputed)==null?0:(B=W.items)==null?0:B.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var W;return(W=this.videoSecondaryInfoRenderer)==null?void 0:W.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return((W=this.videoSecondaryInfoRenderer)==null?0:(B=W.owner)==null?0:(z=B.videoOwnerRenderer)==null?0:z.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G;return!!((W=this.videoPrimaryInfoRenderer)==null?0:(B=W.videoActions)==null?0:(z=B.menuRenderer)==null?0:(G=z.flexibleItems)==null?0:G.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.dS(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.dS(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var W=this;if(_.r("web_title_hashtag_grey_delinkified")){var B,z=_.mP.unsafeClone((B=this.videoPrimaryInfoRenderer)==null?void 0:B.title);(B=z==null?void 0:z.runs)&&B.forEach(function(G){if(G==null?0:G.navigationEndpoint)G.textColor=4284506208,W.isDark&&(G.textColor=4289374890)});
return z}return(z=this.videoPrimaryInfoRenderer)==null?void 0:z.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.r("web_title_hashtag_black_delinkified")||_.r("web_title_hashtag_grey_delinkified")}}});
SP.prototype.updateHoverColor=SP.prototype.updateHoverColor;SP.prototype.parseColorSamplingData=SP.prototype.parseColorSamplingData;SP.prototype.resetDescriptionState=SP.prototype.resetDescriptionState;SP.prototype.registerPanel=SP.prototype.registerPanel;SP.prototype.onYtExpanderLessTapped=SP.prototype.onYtExpanderLessTapped;SP.prototype.onYtExpanderMoreTapped=SP.prototype.onYtExpanderMoreTapped;SP.prototype.onRenderStamperFinished=SP.prototype.onRenderStamperFinished;
SP.prototype.onYtTextInlineExpanderExpandedChanged=SP.prototype.onYtTextInlineExpanderExpandedChanged;SP.prototype.onYtTextInlineExpanderCollapseClicked=SP.prototype.onYtTextInlineExpanderCollapseClicked;SP.prototype.onYtTextInlineExpanderExpandClicked=SP.prototype.onYtTextInlineExpanderExpandClicked;SP.prototype.moveActionsElement=SP.prototype.moveActionsElement;SP.prototype.updateShouldForceIconOnly=SP.prototype.updateShouldForceIconOnly;SP.prototype.updateTopLevelIconsOnly=SP.prototype.updateTopLevelIconsOnly;
SP.prototype.structuredDescriptionContentRendererChanged=SP.prototype.structuredDescriptionContentRendererChanged;SP.prototype.videoSecondaryInfoRendererChanged=SP.prototype.videoSecondaryInfoRendererChanged;SP.prototype.videoPrimaryInfoRendererChanged=SP.prototype.videoPrimaryInfoRendererChanged;SP.prototype.maybeUpdateActionsOnSeparateLine=SP.prototype.maybeUpdateActionsOnSeparateLine;SP.prototype.updateOwnerAndDescriptionPosition=SP.prototype.updateOwnerAndDescriptionPosition;
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],SP.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],SP.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],SP.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.TB),_.y("design:type",Object)],SP.prototype,"ytdReduxBehavior",void 0);_.Q([_.Hf("#above-the-fold"),_.y("design:type",HTMLElement)],SP.prototype,"aboveTheFoldContainer",void 0);_.Q([_.Hf("#menu ytd-menu-renderer"),_.y("design:type",Object)],SP.prototype,"menu",void 0);_.Q([_.Hf("#description-inline-expander"),_.y("design:type",Object)],SP.prototype,"descriptionInlineExpander",void 0);
_.Q([_.Hf("#faded-structured-description"),_.y("design:type",Object)],SP.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.Q([_.Hf("#structured-description"),_.y("design:type",Object)],SP.prototype,"structuredDescriptionContentRendererElement",void 0);_.Q([_.Hf("#title"),_.y("design:type",HTMLElement)],SP.prototype,"titleElement",void 0);_.Q([_.Hf("#description"),_.y("design:type",HTMLElement)],SP.prototype,"descriptionElement",void 0);
_.Q([_.Hf("#description-interaction"),_.y("design:type",Object)],SP.prototype,"descriptionInteraction",void 0);_.Q([_.Hf("#owner"),_.y("design:type",HTMLElement)],SP.prototype,"ownerElement",void 0);_.Q([_.Hf("#top-row"),_.y("design:type",HTMLElement)],SP.prototype,"topRowElement",void 0);_.Q([_.Hf("#bottom-row"),_.y("design:type",HTMLElement)],SP.prototype,"bottomRowElement",void 0);_.Q([_.Hf("#actions"),_.y("design:type",HTMLElement)],SP.prototype,"actionsElement",void 0);
_.Q([_.Hf("#bottom-actions"),_.y("design:type",HTMLElement)],SP.prototype,"bottomActionsElement",void 0);_.Q([_.Hf("#ytd-watch-info-text"),_.y("design:type",Object)],SP.prototype,"watchInfoTextElement",void 0);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"videoPrimaryInfoRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"videoSecondaryInfoRenderer",void 0);
_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"commentsEntryPointHeaderRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"videoMetadataCarousel",void 0);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"structuredDescriptionContentRenderer",void 0);_.Q([_.H("structuredDescriptionContentRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"structuredDescriptionContentRendererComputed",null);
_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"videoSummary",void 0);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"merchShelf",void 0);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"infoPanelBelowMetadata",void 0);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"hoverColor",void 0);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"hoverText",void 0);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"isHovering",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"enableColorSampling",void 0);_.Q([_.H("structuredDescriptionContentRendererComputed"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"productShelf",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"metadataBadgesInDescription",void 0);_.Q([_.H("videoPrimaryInfoRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"shouldHideBadges",null);
_.Q([_.H("productShelf","descriptionCollapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],SP.prototype,"shouldShowProductShelf",null);_.Q([_.F(),_.y("design:type",Boolean)],SP.prototype,"isWatchFlexy",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"descriptionCollapsed",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],SP.prototype,"useFadedScrimDescription",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"skinnyMode",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("videoSecondaryInfoRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"largerItemWrap",null);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"playlist",void 0);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"clarifyBox",void 0);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"playerAds",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],SP.prototype,"isDark",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],SP.prototype,"actionsOnSeparateLine",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"disableVideoOwnerOnTap",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"swatcherooDelayLoad",void 0);_.Q([_.F(),_.y("design:type",Boolean)],SP.prototype,"suppressTopLevelMetadataRows",void 0);
_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"primaryMenuWidth",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"videoId",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"titleHeadlineXs",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"titleHeadlineS",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"titleHeadlineM",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"titleHashtagBlackLinkified",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"titleHashtagGreyLinkified",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.Q([_.F(),_.y("design:type",Object)],SP.prototype,"shouldForceIconOnly",void 0);
_.Q([_.jJ("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"updateOwnerAndDescriptionPosition",null);_.Q([_.jJ("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.Q([_.H("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"descriptionText",null);_.Q([_.H("videoSecondaryInfoRenderer.headerRuns"),_.y("design:type",Array),_.y("design:paramtypes",[])],SP.prototype,"headerRuns",null);
_.Q([_.F({value:!1}),_.H("commentsEntryPointHeaderRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"hasTeaser",null);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.H("videoMetadataCarousel"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"hasTeaserCarousel",null);_.Q([_.F({value:3}),_.H("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"descriptionMaxLines",null);
_.Q([_.H("videoSecondaryInfoRenderer.metadataRowContainer"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"collapsibleMetadataRows",null);_.Q([_.H("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"alwaysVisibleMetadataRows",null);
_.Q([_.H("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],SP.prototype,"hasInlineStructuredDescription",null);_.Q([_.H("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],SP.prototype,"showInlineStructuredDescription",null);
_.Q([_.H("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"descriptionExpandCommand",null);_.Q([_.H("videoSecondaryInfoRenderer.owner"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"videoOwnerCommand",null);_.Q([_.F({reflectToAttribute:!0}),_.H("videoPrimaryInfoRenderer.videoActions"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],SP.prototype,"flexMenuEnabled",null);
_.Q([_.F({selector:_.ym,reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"isFullscreen",void 0);_.Q([_.F({selector:_.Qm,reflectToAttribute:!0}),_.y("design:type",Object)],SP.prototype,"isTheaterMode",void 0);_.Q([_.H("descriptionText","useFadedScrimDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],SP.prototype,"showAttributedStringDescription",null);
_.Q([_.H("descriptionText","useFadedScrimDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],SP.prototype,"showFormattedStringDescription",null);_.Q([_.H("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],SP.prototype,"showFadedStructuredDescription",null);
_.Q([_.jJ("videoPrimaryInfoRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"videoPrimaryInfoRendererChanged",null);_.Q([_.H("videoPrimaryInfoRenderer.title"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"videoTitle",null);_.Q([_.H("videoPrimaryInfoRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],SP.prototype,"noEndpoints",null);
_.Q([_.jJ("videoSecondaryInfoRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"videoSecondaryInfoRendererChanged",null);_.Q([_.oN("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"structuredDescriptionContentRendererChanged",null);
_.Q([_.oN("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"updateTopLevelIconsOnly",null);_.Q([_.oN("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"updateShouldForceIconOnly",null);_.Q([_.oN("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"moveActionsElement",null);
_.Q([_.IN("yt-text-inline-expander-expand-clicked"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"onYtTextInlineExpanderExpandClicked",null);_.Q([_.IN("yt-text-inline-expander-collapse-clicked"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.Q([_.IN("yt-text-inline-expander-expanded-changed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.Q([_.IN("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],SP.prototype,"onRenderStamperFinished",null);
_.Q([_.IN("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"onYtExpanderMoreTapped",null);_.Q([_.IN("yt-expander-less-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"onYtExpanderLessTapped",null);
_.Q([_.oN("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"registerPanel",null);_.Q([_.oN("videoSecondaryInfoRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"resetDescriptionState",null);
_.Q([_.oN("structuredDescriptionContentRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"parseColorSamplingData",null);_.Q([_.oN("hoverColor","isDark"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SP.prototype,"updateHoverColor",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-watch-metadata"})],SP);
_.D(SP,"ytd-watch-metadata",function(){if(swZ!==void 0)return swZ;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return swZ=W},{mode:2});_.K6M=function(W){_.bA.call(this);this.JSC$22934_watchApi=W;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;F6M(this);Sdo(this);bRK(this);jwN(this);fIm(this);ORN(this);X5M(this)};
_.C(_.K6M,_.bA);var bRK=function(W){var B=function(){_.r("kevlar_is_pupi_enabled")||b5(W)};
W.JSC$22934_watchApi.getRoot().addEventListener("yt-player-updated",B);W.addOnDisposeCallback(function(){W.JSC$22934_watchApi.getRoot().removeEventListener("yt-player-updated",B)})},fIm=function(W){if(_.r("kevlar_endscreen_auto_theater_mode")){var B=W.JSC$22934_watchApi.subscribeToActiveChanged(function(){uAm(W)},!1);
W.addOnDisposeCallback(B)}},F6M=function(W){var B,z,G,Y,d;
_.T(function(E){if(E.nextAddress==1)return E.yield(W.JSC$22934_watchApi.playerApi,2);B=E.yieldResult;z=function(v){v=!!v;eoR(W)&&(v=v?2:1,_.oH.getInstance().setState(v,!0,!1))};
G=function(v){v&&_.rKo(_.Y_().getState())&&(_.c0(W.JSC$22934_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),W.temporaryTheaterMode=!0)};
Y=function(v){_.r("kevlar_player_update_autonav_on_new_data")&&v.type==="newdata"&&(_.r("kevlar_is_pupi_enabled")||b5(W))};
d=function(v){W.onPlayerStateChange(v)};
_.r("kevlar_endscreen_auto_theater_mode")&&B.addEventListener("onAutonavCancelled",G);B.addEventListener("onAutonavChangeRequest",z);B.addEventListener("onVideoDataChange",Y);B.addEventListener("onStateChange",d);W.addOnDisposeCallback(function(){B.removeEventListener("onAutonavChangeRequest",z);B.removeEventListener("onVideoDataChange",Y);B.removeEventListener("onStateChange",d);_.r("kevlar_endscreen_auto_theater_mode")&&B.removeEventListener("onAutonavCancelled",G)});
_.HG(E)})},Sdo=function(W){W.JSC$22934_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){W.autonavCancelledBySignal=!0;
_.r("kevlar_is_pupi_enabled")||b5(W)});
W.JSC$22934_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(B,z,G){z&&b5(W,G)});
W.JSC$22934_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){eoR(W)&&_.oH.getInstance().setState(2,!0,!0)});
W.JSC$22934_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){eoR(W)&&_.oH.getInstance().setState(1,!0,!0)});
W.addOnDisposeCallback(function(){W.JSC$22934_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");W.JSC$22934_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");W.JSC$22934_watchApi.unregisterActionHandler("yt-enable-autoplay-command");W.JSC$22934_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},jwN=function(W){var B=W.JSC$22934_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){X5M(W)}),z=W.JSC$22934_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){ORN(W)});
W.addOnDisposeCallback(function(){W.JSC$22934_watchApi.unsubscribeByKey(B);W.JSC$22934_watchApi.unsubscribeByKey(z)})},X5M=function(W){W.autonavCancelledBySignal=!1;
_.r("kevlar_is_pupi_enabled")||b5(W)},ORN=function(W){var B=W.JSC$22934_watchApi.getWatchNextResponse(),z,G;
var Y=(B=(G=_.k(B==null?void 0:(Y=B.playerOverlays)==null?void 0:(z=Y.playerOverlayRenderer)==null?void 0:z.autonavToggle,_.YsD))==null?void 0:G.enabled)?2:1;_.r("kevlar_is_pupi_enabled")?_.oH.getInstance().setState(Y,!1,!1):b5(W);_.r("web_persist_server_autonav_state_on_client")&&typeof B==="boolean"&&_.qWQ(Y===2)},eoR=function(W){if(W.autonavCancelledBySignal)return!1;
var B,z,G,Y;return!!((B=W.JSC$22934_watchApi.getWatchNextResponse())==null?0:(z=B.contents)==null?0:(G=z.twoColumnWatchNextResults)==null?0:(Y=G.autoplay)==null?0:Y.autoplay)};
_.K6M.prototype.onPlayerStateChange=function(W){if(W===0){W=!_.oH.getInstance().isAutoplaySetExplicitly();var B=this.JSC$22934_watchApi.getWatchNextResponse(),z,G,Y,d;B=_.k(B==null?void 0:(z=B.contents)==null?void 0:(G=z.twoColumnWatchNextResults)==null?void 0:(Y=G.autoplay)==null?void 0:(d=Y.autoplay)==null?void 0:d.autoplayExplicitChoiceDialogRenderer,_.k3U);eoR(this)&&W&&B&&_.IB.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:B},popupType:"DIALOG"}})}else uAm(this)};
var uAm=function(W){W.temporaryTheaterMode&&(W.temporaryTheaterMode=!1,_.c0(W.JSC$22934_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},b5=function(W,B){B=B===void 0?!1:B;
var z;_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$22934_watchApi.playerApi,2);z=G.yieldResult;eoR(W)?z.setAutonavState(_.oH.getInstance().getState(),B):z.setAutonavState(1,B);_.HG(G)})};var mwo={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.DwN=function(W){_.bA.call(this);var B=this;this.JSC$22939_watchApi=W;var z=this.JSC$22939_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){xwh(B)});
this.addOnDisposeCallback(function(){B.JSC$22939_watchApi.unsubscribeByKey(z)});
xwh(this)};
_.C(_.DwN,_.bA);var xwh=function(W){var B=W.JSC$22939_watchApi.getPlayerResponse(),z=W.JSC$22939_watchApi.getWatchNextResponse();if(!_.LpR(B==null?void 0:B.playabilityStatus,z==null?void 0:z.playerOverlays)){var G;var Y=B==null?void 0:(G=B.playabilityStatus)==null?void 0:G.errorScreen}W.JSC$22939_watchApi.provideRenderingData("ERROR_SCREEN",Y)};var QwZ=_.m(function(W){var B=W.data;W=_.r("web_watch_video_details_hide_subtitle");var z=_.r("web_watch_video_details_single_line_title"),G=_.lF(function(){var v=B().onTap;v&&_.dO().resolve(_.p4).resolveCommand(v)}),Y={},d={},E={};
return _.w("yt-player-overlay-video-details-renderer",{class:_.kG("ytPlayerOverlayVideoDetailsRendererHost",(Y.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.r("web_watch_video_details_transparent_background"),Y)),"on:click":G,role:"button"},_.w("h2",{class:_.kG("ytPlayerOverlayVideoDetailsRendererTitle",(d.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return z},d))},_.w(_.r0,{text:function(){return B().title}})),_.w("div",{class:_.kG("ytPlayerOverlayVideoDetailsRendererSubtitle",
(E.ytPlayerOverlayVideoDetailsRendererHideSubtitle=W,E))},_.w(_.r0,{text:function(){return B().subtitle}})))},"Yk");var jP={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},yyQ=_.m(function(W){var B=W.data;var z=_.ny(_.ym),G=_.r("web_watch_action_bar_resize_buttons"),Y=_.r("web_watch_video_action_dsdvb"),d=_.r("delhi_modern_web_player_icons")&&!_.r("enable_web_delhi_icons");W=_.r("delhi_modern_web_player_disable_frosted_glass");var E=function(){return G&&!z()?{size:"M"}:void 0},v={};
return _.w("yt-player-quick-action-buttons",{class:_.kG("ytPlayerQuickActionButtonsHost",(v.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!z()},v.ytPlayerQuickActionButtonsHostDisableBackdropFilter=W,v))},_.w(_.IJ,{each:function(){var c=B();
if(d){c=JSON.parse(JSON.stringify(c));for(var J=_.A(c),g=J.next();!g.done;g=J.next()){var t=g.value,P=void 0;g=_.k((P=_.k(t,_.Y3))==null?void 0:P.toggleButtonViewModel,_.Jw);var Z=void 0;P=_.k((Z=_.k(t,_.G3))==null?void 0:Z.toggleButtonViewModel,_.Jw);Z=_.k(t,_.wP);t=_.k(t,_.Jw);if(g)P=_.k(g.defaultButtonViewModel,_.wP),g=_.k(g.toggledButtonViewModel,_.wP),P&&P.iconName&&(P.iconName=jP[P.iconName]),g&&g.iconName&&(g.iconName=jP[g.iconName]);else if(P)g=_.k(P.defaultButtonViewModel,_.wP),P=_.k(P.toggledButtonViewModel,
_.wP),g&&g.iconName&&(g.iconName=jP[g.iconName]),P&&P.iconName&&(P.iconName=jP[P.iconName]);else if(Z)Z.iconName&&(Z.iconName=jP[Z.iconName]);else if(t){g=_.k(t.defaultButtonViewModel,_.wP);P=_.k(t.toggledButtonViewModel,_.wP);t=void 0;if((t=g)==null?0:t.iconName)g.iconName=jP[g.iconName];g=void 0;if((g=P)==null?0:g.iconName)P.iconName=jP[P.iconName]}}}Y&&(c=L0Z(c));return c}},function(c){return _.w(_.Sc,{data:function(){return c}},{buttonViewModel:function(J){return _.w(_.ex,{data:J.data,
buttonOverrides:E})},
likeButtonViewModel:function(J){return _.w(_.En,{data:J.data,buttonShapeOverrideables:E})},
dislikeButtonViewModel:function(J){return _.w(_.iq,{data:J.data,buttonShapeOverrideables:E})},
toggleButtonViewModel:function(J){return _.w(_.Y1,{data:J.data,buttonShapeOverrides:E})}})}))},"Zk");_.n$m=function(W){_.bA.call(this);var B=this;this.JSC$22943_watchApi=W;W=_.A(_.g4({},void 0,"n9wCVe"));this.quickActionsViewModel=W.next().value;this.setQuickActionsViewModel=W.next().value;W=_.A(_.g4({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=W.next().value;this.setPlayerOverlayVideoDetailsRenderer=W.next().value;var z=this.JSC$22943_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){qd3(B)});
this.addOnDisposeCallback(function(){B.JSC$22943_watchApi.unsubscribeByKey(z)});
qd3(this)};
_.C(_.n$m,_.bA);
var qd3=function(W){var B,z,G,Y,d,E,v,c,J,g,t,P,Z,l;_.T(function(b){if(b.nextAddress==1)return b.yield(W.JSC$22943_watchApi.playerApi,2);B=b.yieldResult;z=W.JSC$22943_watchApi.getWatchNextResponse();d=(G=z)==null?void 0:(Y=G.playerOverlays)==null?void 0:Y.playerOverlayRenderer;v=_.k((E=d)==null?void 0:E.fullscreenQuickActionsBar,_.G3u);(J=(c=W).setQuickActionsViewModel)==null||J.call(c,v||{});v&&N4M(W,B);P=(g=d)==null?void 0:(t=g.videoDetails)==null?void 0:t.playerOverlayVideoDetailsRenderer;(l=(Z=
W).setPlayerOverlayVideoDetailsRenderer)==null||l.call(Z,P||{});P&&$wN(W,B);_.HG(b)})},N4M=function(W,B){if(!W.quickActionButtonsContainer)if(B.setFullscreenQuickActions){W.quickActionButtonsContainer=document.createElement("div");
B.setFullscreenQuickActions(W.quickActionButtonsContainer);var z=function(){return W.quickActionsViewModel().quickActionButtons||[]},G=_.SD(W.quickActionButtonsContainer,function(){return _.w(yyQ,{data:z})},"$k");
W.addOnDisposeCallback(function(){B.setFullscreenQuickActions(void 0);G()})}else _.Oc(new _.oX("setFullscreenQuickActions not defined",{playerApi:Object.keys(B),
isReady:B.isReady(),appState:B.getAppState()}))},$wN=function(W,B){if(!W.playerOverlayVideoDetailsRendererContainer)if(B.setPlayerOverlayVideoDetailsRenderer){W.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
B.setPlayerOverlayVideoDetailsRenderer(W.playerOverlayVideoDetailsRendererContainer);var z=_.SD(W.playerOverlayVideoDetailsRendererContainer,function(){return _.w(QwZ,{data:W.playerOverlayVideoDetailsRenderer})},"al");
W.addOnDisposeCallback(function(){B.setPlayerOverlayVideoDetailsRenderer(void 0);z()})}else _.Oc(new _.oX("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(B),
isReady:B.isReady(),appState:B.getAppState()}))};_.fC=function(W){_.bA.call(this);var B=this;this.JSC$22949_watchApi=W;this.JSC$22949_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;W=_.NG(_.Y_(),_.ym,function(z){B.onFullscreenChanged(z)});
this.addOnDisposeCallback(W);W=_.NG(_.Y_(),_.Dw,function(z){B.onWatchScroll(z)});
this.addOnDisposeCallback(W);_.r("kevlar_watch_while_v2")&&(W=_.NG(_.Y_(),_.xO,function(z){L6m(B,z)}),this.addOnDisposeCallback(W));
Uw_(this);MaK(this);aIb();this.onWatchScroll(_.Dw(_.Y_().getState()));_.md("START_IN_FULL_WINDOW_MODE")&&this.JSC$22949_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.C(_.fC,_.bA);var Uw_=function(W){W.JSC$22949_watchApi.registerActionHandler("yt-fullscreen-change-action",function(B){var z=W.JSC$22949_watchApi.isActive();B&&!z||_.Y_().dispatch(_.Tl({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!B}}))});
W.addOnDisposeCallback(function(){W.JSC$22949_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},MaK=function(W){var B,z;
_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$22949_watchApi.playerApi,2);B=G.yieldResult;z=function(){W.onFullerscreenEduClicked()};
B.addEventListener("onFullerscreenEduClicked",z);W.addOnDisposeCallback(function(){B.removeEventListener("onFullerscreenEduClicked",z)});
_.HG(G)})};
_.fC.prototype.onFullscreenChanged=function(W){var B=this,z;return _.T(function(G){if(G.nextAddress==1)return B.isFullscreen=!!_.pi(),G.yield(B.JSC$22949_watchApi.playerApi,2);z=G.yieldResult;B.JSC$22949_miniplayerActive||z.setFauxFullscreen(B.isFullscreen);if(W&&(B.JSC$22949_watchApi.focusOnPlayer(),!B.fullerscreenEduButtonShownThisPlayback)){B.fullerscreenEduButtonShownThisPlayback=!0;var Y=_.QL("yt-fullerscreen-edu-button-shown-count")||0;_.Da("yt-fullerscreen-edu-button-shown-count",Y+1,31536E3);
B.updateFullerscreenEduButtonSubtleModeState()}_.HG(G)})};
var L6m=function(W,B){var z;_.T(function(G){if(G.nextAddress==1)return W.JSC$22949_miniplayerActive=B,G.yield(W.JSC$22949_watchApi.playerApi,2);z=G.yieldResult;z.setFauxFullscreen(!W.JSC$22949_miniplayerActive&&W.isFullscreen);_.HG(G)})};
_.fC.prototype.onWatchScroll=function(W){var B=this,z,G;return _.T(function(Y){if(Y.nextAddress==1)return _.r("external_fullscreen_with_edu")?Y.yield(B.JSC$22949_watchApi.playerApi,2):Y.return();z=Y.yieldResult;G=W<=0;B.shouldShowFullerscreenEdu!==G&&(B.shouldShowFullerscreenEdu=G,z.updateFullerscreenEduButtonVisibility(!B.shouldShowFullerscreenEdu));_.HG(Y)})};
_.fC.prototype.onFullerscreenEduClicked=function(){this.JSC$22949_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var W=_.QL("yt-fullerscreen-edu-button-click-count")||0;_.Da("yt-fullerscreen-edu-button-click-count",W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.fC.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var W=this,B,z,G,Y,d,E;return _.T(function(v){if(v.nextAddress==1)return B=_.QL("yt-fullerscreen-edu-button-click-count")||0,z=_.QL("yt-fullerscreen-edu-button-shown-count")||0,G=_.iO("external_fullscreen_button_click_threshold"),Y=_.iO("external_fullscreen_button_shown_threshold"),d=B>=G||z>=Y,v.yield(W.JSC$22949_watchApi.playerApi,2);E=v.yieldResult;E.updateFullerscreenEduButtonSubtleModeState(d);_.HG(v)})};
_.fC.prototype.disposeInternal=function(){_.bA.prototype.disposeInternal.call(this);var W=_.pi();_.r("kevlar_exit_fullscreen_leaving_watch")&&W&&_.Ar(W)};
var aIb=function(){if(_.r("web_watch_add_viewport_meta_tag")){var W=document.querySelector("meta[name=viewport]"),B=document.head;B&&!W&&(W=document.createElement("meta"),W.name="viewport",W.content="width=device-width, initial-scale=1.0, viewport-fit=cover",B.appendChild(W))}};_.WdZ=function(W){_.bA.call(this);var B=this;this.JSC$22953_watchApi=W;this.jobId=0;this.pendingRequestId=void 0;var z=this.JSC$22953_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){RoF(B)});
this.addOnDisposeCallback(function(){B.JSC$22953_watchApi.unsubscribeByKey(z)});
RoF(this)};
_.C(_.WdZ,_.bA);var BYZ=function(W){_.fg.cancelJob(W.jobId);W.pendingRequestId=void 0},RoF=function(W){BYZ(W);
var B=Ufb(W.JSC$22953_watchApi.getWatchNextResponse());if(B){var z=250,G,Y=(G=_.k(B,_.z7R))==null?void 0:G.initialDelayMs;_.r("web_watch_updated_metadata_server_initial_delay")&&Y&&(z=Y);W.jobId=_.fg.addLowPriorityJob(function(){return W.fetchUpdatedMetadata(B)},z)}};
_.WdZ.prototype.fetchUpdatedMetadata=function(W,B){var z=this,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K;return _.T(function(e){switch(e.nextAddress){case 1:B&&(G={continuation:B});if(!_.r("web_get_updated_metadata_fantasy_panel_continuation_params")){e.jumpTo(2);break}Y=_.dO().resolve(_.WD);d="PAsports_fantasy";return e.yield(Y.isVisible(d,!0),3);case 3:e.yieldResult&&(J=(v=(E=Y).getUpdatePanelContinuationData)==null?void 0:(c=v.call(E,d))==null?void 0:c.updatePanelContinuationRequest)&&(G||(G={}),G.clientParams=
{panelContinuationParams:{panelContinuation:J}});case 2:g=_.dO().resolve(_.N_);if(!g)return _.jy(Error("Po")),e.return();t={};z.pendingRequestId=t;return e.yield(_.BA(g,W,G),4);case 4:P=e.yieldResult;if(t!==z.pendingRequestId)return e.return();b=(Z=P)==null?void 0:(l=Z.continuation)==null?void 0:l.timedContinuationData;((O=b)==null?0:O.continuation)&&((K=b)==null?0:K.timeoutMs)&&(z.jobId=_.fg.addLowPriorityJob(function(){return z.fetchUpdatedMetadata(W,b.continuation)},b.timeoutMs));
_.HG(e)}})};
_.WdZ.prototype.disposeInternal=function(){_.bA.prototype.disposeInternal.call(this);BYZ(this)};var z_m=_.m(function(W){var B=_.lF(function(){var G=W.data().videoId;if(W.active())G=_.pA(G),_.dO().resolve(_.p4).resolveCommand(G);else{var Y=W.playerApi(),d=Y.getAvailableAudioTracks(),E,v,c=(E=W.sourceVideoConfig().audioTracks)==null?void 0:(v=E.find(function(J){return J.isDefaultForSource}))==null?void 0:v.id;
if(d=d.find(function(J){return J.getLanguageInfo().getId()===c}))Y.setAudioTrack(d,!0),Y.setCompositeParam({activeVideoId:G}),W.setActiveSourceId(G)}}),z={};
return _.w("ytw-composite-source-video-overlay",{class:_.kG("ytwCompositeSourceVideoOverlayHost",(z.ytwCompositeSourceVideoOverlayActive=W.active,z.ytwCompositeSourceVideoOverlayInteracting=W.interacting,z)),style:_.oK({left:function(){var G;return((G=W.data().topLeftCornerX)!=null?G:0)*100+"%"},
top:function(){var G;return((G=W.data().topLeftCornerY)!=null?G:0)*100+"%"},
width:function(){var G;return((G=W.data().width)!=null?G:0)*100+"%"},
height:function(){var G;return((G=W.data().height)!=null?G:0)*100+"%"}}),
"on:click":B},_.w("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"bl");var GW_=_.m(function(W){var B=_.A(_.IK(function(){var E,v=(E=W.data().sources)==null?void 0:E.find(function(c){return c.isActive});
if(v)return v.videoId})),z=B.next().value,G=B.next().value;
B=_.A(_.g4(!1,void 0,"yNRzwd"));var Y=B.next().value,d=B.next().value;return _.w("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.lF(function(){d(!0)}),
"on:mouseout":_.lF(function(){d(!1)})},_.w(_.V,{cond:function(){return W.data().sources},
then:function(E){return _.w(_.IJ,{each:E},function(v){return _.w(z_m,{data:v,active:function(){return v.videoId===z()},
setActiveSourceId:G,interacting:Y,playerApi:W.playerApi,sourceVideoConfig:function(){return MfZ(W.compositeVideoConfig(),v.videoId)}})})}}))},"cl");_.pRm=function(W){_.bA.call(this);this.JSC$22969_watchApi=W;W=_.A(_.g4({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=W.next().value;this.setCompositeVideoOverlayRenderer=W.next().value;W=_.A(_.g4({},void 0,"OlaJpc"));this.compositeVideoConfig=W.next().value;this.setCompositeVideoConfig=W.next().value;YwZ(this);d6o(this)};
_.C(_.pRm,_.bA);var YwZ=function(W){var B=W.JSC$22969_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){d6o(W)});
W.addOnDisposeCallback(function(){W.JSC$22969_watchApi.unsubscribeByKey(B)})},AWM=function(W){var B;
return _.T(function(z){if(z.nextAddress==1)return z.yield(W.JSC$22969_watchApi.playerApi,2);B=z.yieldResult;B.setCompositeVideoOverlayRendererComponent(W.container);_.HG(z)})},ixo=function(W){var B;
return _.T(function(z){if(z.nextAddress==1)return z.yield(W.JSC$22969_watchApi.playerApi,2);B=z.yieldResult;B.setCompositeVideoOverlayRendererComponent(void 0);_.HG(z)})},ErZ=function(W){var B,z;
return _.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$22969_watchApi.playerApi,2);B=G.yieldResult;W.container=document.createElement("div");z=_.SD(W.container,function(){return _.w(GW_,{data:W.compositeVideoOverlayRenderer,compositeVideoConfig:W.compositeVideoConfig,playerApi:B})},"dl");
W.addOnDisposeCallback(z);_.HG(G)})},d6o=function(W){var B,z,G,Y,d,E,v,c;
_.T(function(J){return J.nextAddress==1?(B=W.JSC$22969_watchApi.getPlayerResponse(),d=_.k((z=B)==null?void 0:(G=z.overlay)==null?void 0:(Y=G.playerControlsOverlayRenderer)==null?void 0:Y.compositeVideoOverlay,qKK),c=(E=B)==null?void 0:(v=E.playerConfig)==null?void 0:v.compositeVideoConfig,d&&W.setCompositeVideoOverlayRenderer(d),c&&W.setCompositeVideoConfig(c),d&&c?W.container?J.jumpTo(6):J.yield(ErZ(W),6):TYZ(W)?J.yield(ixo(W),0):J.jumpTo(0)):TYZ(W)?J.jumpTo(0):J.yield(AWM(W),0)})},TYZ=function(W){var B;
return!((B=W.container)==null||!B.parentElement)};
_.pRm.prototype.disposeInternal=function(){TYZ(this)&&ixo(this);_.bA.prototype.disposeInternal.call(this)};_.JWZ=function(W){_.bA.call(this);var B=this;this.JSC$22975_watchApi=W;var z=this.JSC$22975_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var G=B.JSC$22975_watchApi.getPlayerResponse();if(G){var Y,d;if(G=_.k((Y=G.endscreen)==null?void 0:(d=Y.endscreenRenderer)==null?void 0:d.hideButton,_.Jw)){var E;(E=B.setEndscreenHideButton)==null||E.call(B,G);vrF(B)}}});
this.addOnDisposeCallback(function(){B.JSC$22975_watchApi.unsubscribeByKey(z)});
W=_.A(_.g4({},void 0,"ER3tqb"));this.endscreenHideButton=W.next().value;this.setEndscreenHideButton=W.next().value;cWN(this);wRm(this);VDm(this)};
_.C(_.JWZ,_.bA);
var vrF=function(W){var B,z;_.T(function(G){if(G.nextAddress==1)return W.creatorEndscreenHideButtonContainer?G.return():G.yield(W.JSC$22975_watchApi.playerApi,2);B=G.yieldResult;W.creatorEndscreenHideButtonContainer=document.createElement("div");_.R0(W.creatorEndscreenHideButtonContainer,!1);B.setCreatorEndscreenHideButton(W.creatorEndscreenHideButtonContainer);z=_.SD(W.creatorEndscreenHideButtonContainer,function(){return _.w(_.Y1,{data:W.endscreenHideButton,useOutlinedIcon:!0})},"el");
W.addOnDisposeCallback(function(){z();var Y;(Y=B)==null||Y.setCreatorEndscreenHideButton(void 0)});
_.HG(G)})},cWN=function(W){var B,z;
_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$22975_watchApi.playerApi,2);B=G.yieldResult;z=function(){W.creatorEndscreenHideButtonContainer&&_.R0(W.creatorEndscreenHideButtonContainer,!0)};
B.addEventListener("endscreenelementshown",z);W.addOnDisposeCallback(function(){var Y;(Y=B)==null||Y.removeEventListener("endscreenelementshown",z)});
_.HG(G)})},wRm=function(W){var B=function(){W.creatorEndscreenHideButtonContainer&&_.R0(W.creatorEndscreenHideButtonContainer,!1)},z=W.JSC$22975_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",B),G=W.JSC$22975_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",B);
W.addOnDisposeCallback(function(){W.JSC$22975_watchApi.unsubscribeByKey(z);W.JSC$22975_watchApi.unsubscribeByKey(G)})},VDm=function(W){W.JSC$22975_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(B){var z=_.k(B,emF);
W.JSC$22975_watchApi.playerApi.then(function(G){G==null||G.setCreatorEndscreenVisibility(!!z.hide)})});
W.addOnDisposeCallback(function(){W.JSC$22975_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.tDm=function(W){_.bA.call(this);this.JSC$22981_watchApi=W;gr3(this)};
_.C(_.tDm,_.bA);var gr3=function(W){var B,z;_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$22981_watchApi.playerApi,2);B=G.yieldResult;z=function(Y){_.Y_().dispatch(_.Tl({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:Y}}))};
B.addEventListener("onRetroModeChanged",z);W.addOnDisposeCallback(function(){B.removeEventListener("onRetroModeChanged",z)});
_.HG(G)})};var dZR=0,y1=0,AZb=0;var sJM;sJM=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.ON=function(W){_.bA.call(this);this.JSC$22986_watchApi=W;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Pk3(this)};
_.C(_.ON,_.bA);
var Pk3=function(W){var B,z,G;_.T(function(Y){if(Y.nextAddress==1)return Y.yield(W.JSC$22986_watchApi.playerApi,2);B=Y.yieldResult;if(W.isDisposed())return Y.return();W.sessionStorage=_.WPj("yt-sleep-timer");W.sessionStorage||_.Oc(new _.oX("SessionStorage for Sleep Timer is undefined."));((z=W.sessionStorage)==null?void 0:z.get("yt-sleep-timer"))==="true"&&(ToZ(),(G=W.sessionStorage)==null||G.remove("yt-sleep-timer"),B.syncVolume());ZxN(W,B);rWF(W,B);kWR(W,B);_.HG(Y)})},ZxN=function(W,B){var z=function(J){W.onSleepTimerSettingsChanged(J,
B)},G=function(J){W.onPlayerStateChange(J,B)},Y=function(){W.onLoopChange(B)},d=function(){W.onCloseMiniplayer(B)},E=function(){YKN(B,(0,_.Yb)(),vh_(B),W.selectedOption==="End of video",B.getPlayerState()!==1)},v=function(){W.onSeekComplete(B)},c=function(){_.fg.cancelJob(y1);
var J=B.getCurrentTime()>=B.getDuration(),g=W.selectedOption==="End of video"||W.selectedOption==="End of playlist"&&!Bom(W.playlistId);J&&g&&l5N(W,B)};
B.addEventListener("onSleepTimerSettingsChanged",z);B.addEventListener("onLoopChange",Y);B.addEventListener("onLoopRangeChange",Y);B.addEventListener("onStateChange",G);B.addEventListener("onCloseMiniplayer",d);B.addEventListener("onSleepTimerFeatureAvailable",E);B.addEventListener("SEEK_COMPLETE",v);B.addEventListener("onAdStart",c);W.addOnDisposeCallback(function(){B.removeEventListener("onSleepTimerSettingsChanged",z);B.removeEventListener("onLoopChange",Y);B.removeEventListener("onLoopRangeChange",
Y);B.removeEventListener("onStateChange",G);B.removeEventListener("onCloseMiniplayer",d);B.removeEventListener("onSleepTimerFeatureAvailable",E);B.removeEventListener("SEEK_COMPLETE",v);B.removeEventListener("onAdStart",c)})},rWF=function(W,B){var z=W.JSC$22986_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var G=B.getVideoData().video_id,Y,d=(Y=R1b(W.JSC$22986_watchApi))==null?void 0:Y.playlistId;
W.pauseAutonavPlayback&&(B.pauseVideo(),B.syncVolume(),W.pauseAutonavPlayback=!1);if(W.selectedOption==="End of video"&&G!==W.videoId)Xl(W,B);else{if(W.selectedOption==="End of playlist"){Y=Bom(W.playlistId);if(d!==W.playlistId){Xl(W,B);break a}Y?Y&&CkQ(W,B):I5h(W,B)}W.videoId=G;W.playlistId=d}}});
W.addOnDisposeCallback(function(){W.JSC$22986_watchApi.unsubscribeByKey(z)})},kWR=function(W,B){var z=_.dO().resolve(_.v7),G=_.NG(z,_.iIu,function(d){d&&W.selectedOption!=="Off"&&Xl(W,B)}),Y=W.JSC$22986_watchApi.subscribeToActiveChanged(function(d){var E,v;
return _.T(function(c){if(c.nextAddress==1)return c.yield(_.qG().navigationFinishPromise,2);E=!_.ZYu();v=_.dO().resolve(_.Qb).isMiniplayerActive();d||!aim(W.selectedOption)||v||E||Xl(W,B);_.HG(c)})},!1);
z=_.NG(z,function(d){return d.entities.playlistLoopStateEntity||{}},function(d){d=d===void 0?{}:d;
var E=WFF(W.JSC$22986_watchApi);if(E){var v;((v=d[E])==null?void 0:v.state)==="PLAYLIST_LOOP_STATE_ALL"&&aim(W.selectedOption)&&Xl(W,B)}});
W.addOnDisposeCallback(G);W.addOnDisposeCallback(z);W.addOnDisposeCallback(Y)};
_.ON.prototype.onSleepTimerSettingsChanged=function(W,B){switch(W){case "Off":this.selectedOption!=="Off"&&Xl(this,B);break;case "End of video":case "End of playlist":oro(this,W,B);break;default:oro(this,W,B,sJM.get(W))}};
_.ON.prototype.onLoopChange=function(W){(W.getLoopVideo()||W.getLoopRange())&&aim(this.selectedOption)&&Xl(this,W)};
_.ON.prototype.onCloseMiniplayer=function(W){aim(this.selectedOption)&&Xl(this,W)};
var oro=function(W,B,z,G){h_Q(W,z);W.selectedOption=B;W.videoId=z.getVideoData().video_id;W.playlistId="";var Y;(Y=W.sessionStorage)==null||Y.set("yt-sleep-timer","true");W.adjustmentsCount++;YKN(z,(0,_.Yb)(),vh_(z),W.selectedOption==="End of video");if(W.selectedOption==="End of video")I5h(W,z),Hxo(W,z);else if(W.selectedOption==="End of playlist"){Hxo(W,z);var d,E;W.playlistId=(E=(d=R1b(W.JSC$22986_watchApi))==null?void 0:d.playlistId)!=null?E:"";Bom(W.playlistId)||I5h(W,z)}else G&&(W.presetFadeSchedulerId=
_.OM(_.fg,function(){imo(z,15E3)},G-15E3),W.presetPauseSchedulerId=_.OM(_.fg,function(){l5N(W,z)},G),pbm(z,(0,_.Yb)(),G))},l5N=function(W,B){if(W.JSC$22986_watchApi.isActive()){var z={dismissDialogEndpoint:{}};
var G={commandExecutorCommand:{commands:[z,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};z={buttonViewModel:{title:_.kq("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:z}}};G={buttonViewModel:{title:_.kq("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:G}}};var Y={dialogHeaderViewModel:{headline:{content:_.kq("SLEEP_TIMER_ENDED_TITLE")}}},
d={basicContentViewModel:{paragraphs:[{text:{content:_.kq("SLEEP_TIMER_ENDED_TEXT")}}]}};z={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Y,content:d,footer:{panelFooterViewModel:{primaryButton:z,secondaryButton:G,shouldHideDivider:!0}}}}}}};_.dO().resolve(_.p4).resolveCommand(z,{form:{element:W}})}else ToZ();Fdb(W,!1);SwM(W,B);B.pauseVideo();_.oH.getInstance().getState()===2&&B.getPlayerState()===5&&(W.pauseAutonavPlayback=!0)},Xl=function(W,B){Fdb(W,!0);
SwM(W,B);ToZ()},SwM=function(W,B){h_Q(W,B);
W.selectedOption="Off";W.videoId="";W.playlistId="";W.adjustmentsCount=0;var z;(z=W.sessionStorage)==null||z.remove("yt-sleep-timer");_.fg.cancelJob(dZR);B.resetSleepTimerMenuSettings()},Fdb=function(W,B){B={timer_length_adjustment_times_during_session:W.adjustmentsCount-1,
is_session_cancelled:B};switch(W.selectedOption){case "Off":B.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":B.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":B.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:B.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",B.option_duration_in_minutes=sJM.get(W.selectedOption)/6E4}_.Sy("sleepTimerSessionFinishEvent",B)};
_.ON.prototype.onPlayerStateChange=function(W,B){W===1?YKN(B,(0,_.Yb)(),vh_(B),this.selectedOption==="End of video"):W===0?(_.fg.cancelJob(y1),B.setVideoTimeLeft(G_o(0,0))):W===2&&_.fg.cancelJob(y1);this.selectedOption==="End of video"?W===0?l5N(this,B):W===2&&Ehm(B):this.selectedOption!=="End of playlist"||Bom(this.playlistId)||(W===0?l5N(this,B):W===2&&Ehm(B))};
_.ON.prototype.onSeekComplete=function(W){W.getPlayerState()===2&&YKN(W,(0,_.Yb)(),vh_(W),this.selectedOption==="End of video",!0)};
_.ON.prototype.onCueRangeEnter=function(W,B){W==="sleep-timer-fade-audio"&&imo(B,(B.getDuration()-B.getProgressState().current)*1E3)};
_.ON.prototype.onCueRangeExit=function(W,B){W==="sleep-timer-fade-audio"&&B.getPlayerState()!==0&&Ehm(B,!0)};
var I5h=function(W,B){B.addCueRange("sleep-timer-fade-audio",B.getDuration()-15,B.getDuration());B.addEventListener("onCueRangeEnter",function(z){W.onCueRangeEnter(z,B)});
B.addEventListener("onCueRangeExit",function(z){W.onCueRangeExit(z,B)})},CkQ=function(W,B){B.removeCueRange("sleep-timer-fade-audio");
B.removeEventListener("onCueRangeEnter",function(z){W.onCueRangeEnter(z,B)});
B.removeEventListener("onCueRangeExit",function(z){W.onCueRangeExit(z,B)})},h_Q=function(W,B){aim(W.selectedOption)?CkQ(W,B):(_.fg.cancelJob(W.presetPauseSchedulerId),_.fg.cancelJob(W.presetFadeSchedulerId),W.presetPauseSchedulerId=0,W.presetFadeSchedulerId=0);
Ehm(B,!0)},Hxo=function(W,B){B.setLoop(!1);
B.setLoopVideo(!1);B.setLoopRange(null);(W=WFF(W.JSC$22986_watchApi))&&_.dO().resolve(_.v7).dispatch(_.bj("playlistLoopStateEntity",W,{key:W,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.Ox_=function(W){_.bA.call(this);this.JSC$22989_watchApi=W;bxF(this);jJb(this);f5Q(this);W=W.getRoot();if(W.is==="ytd-watch-flexy"||W.is==="ytd-watch-grid")W.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.lib();_.r("web_watch_log_theater_mode_cookie_state")&&_.rO.get("wide","0")==="1"&&_.agt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.C(_.Ox_,_.bA);var bxF=function(W){var B,z;_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$22989_watchApi.playerApi,2);B=G.yieldResult;z=function(Y){XRF(W,!!Y)};
B.addEventListener("SIZE_CLICKED",z);W.addOnDisposeCallback(function(){B.removeEventListener("SIZE_CLICKED",z)});
_.HG(G)})},jJb=function(W){W.JSC$22989_watchApi.registerActionHandler("yt-toggle-theater-mode",function(B,z){XRF(W,B,z===void 0?!0:z)});
W.addOnDisposeCallback(function(){W.JSC$22989_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.Ox_.prototype.getState=function(){return _.Qm(_.Y_().getState())};
var XRF=function(W,B,z){z=z===void 0?!0:z;var G,Y,d,E=_.r("enable_player_resize_transition")&&!!W.JSC$22989_watchApi.getWatchNextResponse()&&!((G=W.JSC$22989_watchApi.getWatchNextResponse())==null?0:(Y=G.contents)==null?0:(d=Y.twoColumnWatchNextResults)==null?0:d.conversationBar);_.Ro0(function(){_.Y_().dispatch(_.Tl({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:B}}));_.r("theater_mode_scroll_to_top_killswitch")||W.JSC$22989_watchApi.scrollWatchTo(0,!1);_.pi()&&_.r("external_fullscreen")&&_.Ar(document.documentElement);
f5Q(W);z&&_.k8("wide",B?"1":"0",-1);_.c0(W.JSC$22989_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);W.JSC$22989_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:B});B&&_.lib()},{shouldWrap:E})},f5Q=function(W){var B;
_.T(function(z){if(z.nextAddress==1)return z.yield(W.JSC$22989_watchApi.playerApi,2);B=z.yieldResult;B.setSizeStyle(!0,W.getState());_.HG(z)})};var e_K=function(W){_.bA.call(this);var B=this;this.playerApi=W;this.timeToPanelSyncKeyMap={};var z;if(W==null?0:(z=W.isReady)==null?0:z.call(W)){z=_.NG(_.dO().resolve(_.v7),function(Y){return Y.entities.timedMarkersListSyncEntity||{}},function(Y,d){Y=Y===void 0?{}:Y;
d=d===void 0?{}:d;for(var E=_.A(Object.keys(d)),v=E.next();!v.done;v=E.next())v=v.value,Y[v]!==d[v]&&Kdh(B,d[v]);d=_.A(Object.keys(Y));for(E=d.next();!E.done;E=d.next())E=E.value,v=Y[E],B.timeToPanelSyncKeyMap[E]&&uqm(B,v)});
this.addOnDisposeCallback(z);var G=function(Y){B.onCueRangeEnter(Y)};
W.addEventListener("onCueRangeEnter",G);this.addOnDisposeCallback(function(){var Y;(Y=W.removeEventListener)==null||Y.call(W,"onCueRangeEnter",G)})}};
_.C(e_K,_.bA);
var uqm=function(W,B){var z,G;if((z=W.playerApi)==null?0:(G=z.isReady)==null?0:G.call(z)){var Y;if((z=B==null?void 0:(Y=B.timedListData)==null?void 0:Y.sections)&&B!=null&&B.key)for(Y=_.A(z),z=Y.next();!z.done;z=Y.next())if(z=z.value,z.timedSyncDataList&&z.sectionId)for(G=0;G<z.timedSyncDataList.length;G++){var d=z.timedSyncDataList[G];d.syncItemId&&W.playerApi.addCueRange(z.sectionId+"_"+B.key+"_"+d.syncItemId,Number(d.videoTimeMs)/1E3,G===z.timedSyncDataList.length-1?0x8000000000000:Number(z.timedSyncDataList[G+
1].videoTimeMs)/1E3)}}},Kdh=function(W,B){var z,G;
if((z=W.playerApi)==null?0:(G=z.isReady)==null?0:G.call(z)){var Y;if((z=B==null?void 0:(Y=B.timedListData)==null?void 0:Y.sections)&&B!=null&&B.key)for(Y=_.A(z),z=Y.next();!z.done;z=Y.next())if(z=z.value,z.timedSyncDataList&&z.sectionId){G=_.A(z.timedSyncDataList);for(var d=G.next();!d.done;d=G.next())d=d.value,d.syncItemId&&W.playerApi.removeCueRange(z.sectionId+"_"+B.key+"_"+d.syncItemId)}}};
e_K.prototype.onCueRangeEnter=function(W){for(var B=_.A(Object.keys(this.timeToPanelSyncKeyMap)),z=B.next();!z.done;z=B.next()){z=z.value;var G=_.A(W.split("_"+z+"_")),Y=G.next().value;G=G.next().value;if(Y&&G){W=_.dO().resolve(_.v7);B=this.timeToPanelSyncKeyMap[z];var d=_.GOT(W.getState(),B);z=m6K(z,Y,G);if(z===-1)break;z={activeSyncId:G,activeItemIndex:z,activeSectionInfo:{sectionIdentifier:Y}};d?W.dispatch(_.ue("markersEngagementPanelSyncEntity",B,z)):W.dispatch(_.bj("markersEngagementPanelSyncEntity",
B,Object.assign({},{key:B},z)));break}}};
var m6K=function(W,B,z){var G=_.dO().resolve(_.v7),Y,d;W=(Y=sjF(G.getState(),W))==null?void 0:(d=Y.timedListData)==null?void 0:d.sections;if(!W)return-1;Y=0;d=_.A(W);for(W=d.next();!W.done;W=d.next()){W=W.value;G=W.timedSyncDataList||[];if(W.sectionId===B)return B=G.findIndex(function(E){return E.syncItemId===z}),B===-1?B:Y+B;
Y+=G.length}return-1};_.QJK=function(W){_.bA.call(this);var B=this;this.JSC$23002_watchApi=W;this.unresolvedCommands=[];this.JSC$23002_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(z){x6K(B,z)});
this.addOnDisposeCallback(function(){B.JSC$23002_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
D6Q(this)};
_.C(_.QJK,_.bA);var D6Q=function(W){var B;_.T(function(z){if(z.nextAddress==1)return z.yield(W.JSC$23002_watchApi.playerApi,2);B=z.yieldResult;if(W.isDisposed())return z.return();W.timedSyncObserver=new e_K(B);W.unresolvedCommands.length&&(W.unresolvedCommands.forEach(function(G){return x6K(W,G)}),W.unresolvedCommands=[]);
_.rH(W,W.timedSyncObserver);_.HG(z)})},x6K=function(W,B){if(W.timedSyncObserver){var z=_.k(B,xZN);
if(z&&z.timedSyncEntityKey&&z.panelSyncEntityKey){W=W.timedSyncObserver;B=z.timedSyncEntityKey;var G=z.panelSyncEntityKey;z=!!z.isEnabled;z=z===void 0?!0:z;var Y=_.dO().resolve(_.v7);Y=sjF(Y.getState(),B);z?W.timeToPanelSyncKeyMap[B]||(W.timeToPanelSyncKeyMap[B]=G,uqm(W,Y)):(delete W.timeToPanelSyncKeyMap[B],Kdh(W,Y))}}else W.unresolvedCommands.push(B)};var yWm=_.m(function(W){var B=W.data,z=W.maybeLogSmartSkipClientData,G=null,Y=null,d=_.r("web_enable_auto_focus_for_timely_action_button"),E=function(){G=document.activeElement},v=function(){B().smartSkipMetadata&&(G=document.activeElement,_.ypq(function(){return Y}))},c=function(g){if(B().smartSkipMetadata&&(!g||g.key!=="Enter")){G&&G.isConnected&&(_.ypq(function(){return G}),G=null);
var t;(t=Y)==null||t.blur()}};
W=_.lF(function(){z==null||z(!0,B());return!1});
var J=_.TG(_.Qi(function(){return B().rendererContext},{onTap:function(g,t){t({disableClickTracking:!0})}}),_.YF({visibilityCallback:function(g){if(d)g?Y&&B().smartSkipMetadata&&(v(),document.addEventListener("focusin",E)):(document.removeEventListener("focusin",E),c());
else if(g){g=_.x2(B().rendererContext);var t=Number(B().maxVisibleDurationMilliseconds),P,Z=(P=_.k(B().rendererContext,_.FB))==null?void 0:P.label;g&&t&&Z&&(P={label:Z,command:g,durationMs:t},_.dO().resolve(_.G8).enqueue(P))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.bk(function(){if(d){var g;if((Y=(g=J.value)==null?void 0:g.querySelector("button"))&&B().smartSkipMetadata){var t;(t=J.value)==null||t.addEventListener("keydown",c)}}});
_.fR(function(){d&&(Y&&B().smartSkipMetadata&&Y.removeEventListener("keydown",c),document.removeEventListener("focusin",E),c())});
return _.w("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:J,"on:click":W},_.w(_.Sc,{data:function(){return B().content}},{buttonViewModel:_.ex}))},"fl");var qwm=_.m(function(W){var B=W.data,z=W.playerApi,G=_.dO().resolve(_.XQ9);W=_.A(_.IK(function(){B()}));
var Y=W.next().value,d=W.next().value,E=function(){return VNb(B(),Y())},v=function(J,g){var t,P,Z=(t=_.k(g==null?void 0:g.rendererContext,_.bg))==null?void 0:(P=t.loggingDirectives)==null?void 0:P.trackingParams;
if((g=g==null?void 0:g.smartSkipMetadata)&&g.loggingData&&(P=g.loggingData,g=P.algorithmId,t=P.startMilliseconds,P=P.endMilliseconds,g&&t!==void 0&&P!==void 0)){var l,b;J={smartSkipData:Object.assign({},{versionName:g,startMediaTimeMs:t,endMediaTimeMs:P},J&&{userInteractionMediaTimeMs:(Math.floor(((l=_.TN())==null?void 0:(b=l.getPlayer())==null?void 0:b.getCurrentTime())||0)*1E3).toString()})};l=_.m1();var O;Z&&(O=_.XF(Z));l&&O&&_.B3(l,O,J)}},c=function(J,g){var t=VNb(B(),J);
if(t){var P=_.k(t,wbF),Z;if(Z=g)Z=z(),t=_.k(t,wbF),Z=t!=null&&t.smartSkipMetadata?!(Z==null?0:Z.isSameMarkerTypeVisible((t==null?void 0:t.smartSkipMetadata.markerKey)||"")):!0;if(Z){var l,b;(P==null?0:(l=P.smartSkipMetadata)==null?0:(b=l.loggingData)==null?0:b.isCounterfactual)||(v(!1,P),d(J))}else g||Y()!==J||d(void 0)}};
_.ja(function(){var J=B().timelyActions;if(J){J=_.A(J);for(var g=J.next();!g.done;g=J.next()){g=_.k(g.value,wbF);var t=void 0;(t=g)!=null&&t.cueRangeId&&G.timelyActionsMap.set(g.cueRangeId,c)}_.fR(function(){G.timelyActionsMap.clear()})}},"PSaw4c");
return _.w("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.w(_.Sc,{data:E},{timelyActionViewModel:function(J){return _.w(yWm,{data:J.data,maybeLogSmartSkipClientData:function(){v(!0,_.k(E(),wbF))}})}}))},"gl");_.NYh=function(W){_.bA.call(this);this.JSC$23014_watchApi=W;W=_.A(_.g4({},void 0,"UN7k5e"));this.timelyActionsOverlay=W.next().value;this.setTimelyActionsOverlay=W.next().value;nr3(this)};
_.C(_.NYh,_.bA);var nr3=function(W){var B,z,G,Y;_.T(function(d){if(d.nextAddress==1)return $6M(W),LdQ(W),W.timelyActionsContainer=document.createElement("div"),d.yield(W.JSC$23014_watchApi.playerApi,2);B=d.yieldResult;(G=(z=B).insertTimelyActionUi)==null||G.call(z,W.timelyActionsContainer);Y=_.SD(W.timelyActionsContainer,function(){return _.w(qwm,{data:W.timelyActionsOverlay,playerApi:B})},"hl");
W.addOnDisposeCallback(Y);_.HG(d)})},LdQ=function(W){var B=W.JSC$23014_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){$6M(W)});
W.addOnDisposeCallback(function(){W.JSC$23014_watchApi.unsubscribeByKey(B)})},$6M=function(W){var B=W.JSC$23014_watchApi.getWatchNextResponse();
if(B){var z,G;if(B=_.k((z=B.playerOverlays)==null?void 0:(G=z.playerOverlayRenderer)==null?void 0:G.timelyActionsOverlayViewModel,DZ3)){var Y;(Y=W.setTimelyActionsOverlay)==null||Y.call(W,B)}}};_.MDN=function(W){_.bA.call(this);this.JSC$23018_watchApi=W;U63(this)};
_.C(_.MDN,_.bA);var U63=function(W){var B,z;_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$23018_watchApi.playerApi,2);B=G.yieldResult;z=function(Y){_.IB.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.k(Y,_.Kr_)},popupType:"TOAST"}})};
B.addEventListener("onYtShowToast",z);W.addOnDisposeCallback(function(){B.removeEventListener("onYtShowToast",z)});
_.HG(G)})};var a5o,BOo,pSF,R_m,WHF,dnF,G4F,YAR,ACN,E8_;a5o=!1;_.ztQ=function(W){_.bA.call(this);this.JSC$23021_watchApi=W;this.fullscreen=this.theater=!1;R_m(this);WHF(this);BOo(this)};
_.C(_.ztQ,_.bA);BOo=function(W){var B,z,G;_.T(function(Y){if(Y.nextAddress==1)return Y.yield(W.JSC$23021_watchApi.playerApi,2);B=Y.yieldResult;if(W.isDisposed())return Y.return();z=W.JSC$23021_watchApi.getElement("CINEMATICS");if(!z)return Y.return();W.JSC$23021_cinematicController=new _.CT(z,B);_.rH(W,W.JSC$23021_cinematicController);_.dTQ(W.JSC$23021_cinematicController);G4F(W,_.q7T());G=W.JSC$23021_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(d){YAR(W,d)});
W.addOnDisposeCallback(function(){W.JSC$23021_watchApi.unsubscribeByKey(G)});
dnF(W);YAR(W,W.JSC$23021_cinematicController.isAllowed());pSF(W);ACN(W);_.HG(Y)})};
pSF=function(W){W.fullscreen=_.ym(_.Y_().getState());W.theater=_.Qm(_.Y_().getState());_.i4N(W,W.fullscreen,W.theater);var B=_.NG(_.Y_(),_.ym,function(G){W.fullscreen=G;_.i4N(W,W.fullscreen,W.theater)}),z=_.NG(_.Y_(),_.Qm,function(G){W.theater=G;
_.i4N(W,W.fullscreen,W.theater)});
W.addOnDisposeCallback(B);W.addOnDisposeCallback(z)};
R_m=function(W){var B=W.JSC$23021_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){dnF(W)});
W.addOnDisposeCallback(function(){W.JSC$23021_watchApi.unsubscribeByKey(B)})};
WHF=function(W){var B,z;_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$23021_watchApi.playerApi,2);B=G.yieldResult;z=function(Y){G4F(W,Y)};
B.addEventListener("cinematicSettingsToggleChange",z);W.addOnDisposeCallback(function(){B.removeEventListener("cinematicSettingsToggleChange",z)});
_.HG(G)})};
dnF=function(W){var B=W.JSC$23021_watchApi.getWatchNextResponse(),z;B=_.k(B==null?void 0:(z=B.pageVisualEffects)==null?void 0:z[0],_.BK);var G;(G=W.JSC$23021_cinematicController)==null||_.AMQ(G,B)};
G4F=function(W,B){var z;(z=W.JSC$23021_cinematicController)==null||_.pQN(z,B);E8_(W)};
YAR=function(W,B){var z;_.T(function(G){if(G.nextAddress==1)return _.r("kevlar_watch_cinematics_invisible")&&(B=!1),G.yield(W.JSC$23021_watchApi.playerApi,2);z=G.yieldResult;z.updateCinematicSettings(B);E8_(W);_.HG(G)})};
ACN=function(W){var B=_.IP();if(_.r("kevlar_measure_ambient_mode_idle")&&!B.getFlag(192)&&!a5o){a5o=!0;var z=_.CG(_.fg,function(){_.dO().resolve(_.a1f).start(1E4)},5E3);
W.addOnDisposeCallback(function(){_.fg.cancelJob(z);_.dO().resolve(_.a1f).stop()})}};
_.i4N=function(W,B,z){W.fullscreen=B;W.theater=z;var G;(G=W.JSC$23021_cinematicController)==null||G.setFullscreen(W.fullscreen,W.theater);if(_.r("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(W.theater||W.fullscreen){var Y;(Y=W.JSC$23021_cinematicController)==null||_.i73(Y)}else if((W=W.JSC$23021_cinematicController)!=null){var d;(d=W.currentCinematicEffect)==null||d.pause()}};
E8_=function(W){if(_.r("web_cinematic_theater_mode")||_.r("web_cinematic_fullscreen")){var B;W.JSC$23021_watchApi.getRoot().toggleCinematicsActive(!((B=W.JSC$23021_cinematicController)==null||!B.isEnabled()))}};_.wSN=function(W){_.bA.call(this);var B=this;this.JSC$23024_watchApi=W;this.commentsReady=!1;this.setCommentsJobId=0;W=_.NG(_.Y_(),_.Dw,function(){TOK(B)});
this.addOnDisposeCallback(W);var z=this.JSC$23024_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){v8b(B)}),G=this.JSC$23024_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){v8b(B)});
this.addOnDisposeCallback(function(){B.JSC$23024_watchApi.unsubscribeByKey(z);B.JSC$23024_watchApi.unsubscribeByKey(G)});
var Y=function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&cCF(B,"false")};
this.JSC$23024_watchApi.getRoot().addEventListener("yt-page-data-will-update",Y);this.addOnDisposeCallback(function(){B.JSC$23024_watchApi.getRoot().removeEventListener("yt-page-data-will-update",Y)});
v8b(this)};
_.C(_.wSN,_.bA);var v8b=function(W){W.commentsReady=!1;_.fg.cancelJob(W.setCommentsJobId);W.setCommentsJobId=_.CG(_.fg,function(){TOK(W)},1E3)},TOK=function(W){if(!W.commentsReady){_.mj("cmi");
_.fg.cancelJob(W.setCommentsJobId);var B,z,G,Y,d=(B=W.JSC$23024_watchApi.getWatchNextResponse())==null?void 0:(z=B.contents)==null?void 0:(G=z.twoColumnWatchNextResults)==null?void 0:(Y=G.results)==null?void 0:Y.results.contents;B=void 0;if(d&&d.length)for(d=_.A(d),z=d.next();!z.done;z=d.next())if(z=z.value,Y=G=void 0,((G=z)==null?void 0:(Y=G.itemSectionRenderer)==null?void 0:Y.sectionIdentifier)==="comment-item-section"){_.r("web_watch_provide_undefined_comments")?B=z.itemSectionRenderer:W.JSC$23024_watchApi.provideRenderingData("COMMENTS",
z.itemSectionRenderer);cCF(W,"true");break}_.r("web_watch_provide_undefined_comments")&&W.JSC$23024_watchApi.provideRenderingData("COMMENTS",B);W.commentsReady=!0;W.JSC$23024_watchApi.dispatchEvent("yt-watch-comments-ready")}},cCF=function(W,B){var z;
(z=W.JSC$23024_watchApi.getElement("COMMENTS"))==null||z.setAttribute("canScheduleJobs",B)};_.sXK=function(W){_.bA.call(this);var B=this;this.JSC$23027_watchApi=W;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.r("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.r("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.r("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.iO("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)VEh(this);
else{var z=this.JSC$23027_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){JCM(B);KC(B)}),G=this.JSC$23027_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){u5(B);
KC(B)});
this.JSC$23027_watchApi.getRoot().is==="ytd-watch-grid"&&_.r("swatcheroo_pbs_load_grid")&&(g8N(this),tEQ(this));this.addOnDisposeCallback(function(){B.JSC$23027_watchApi.unsubscribeByKey(z);B.JSC$23027_watchApi.unsubscribeByKey(G);_.fg.cancelJob(B.provideRichGridJobId)});
JCM(this);u5(this)}};
_.C(_.sXK,_.bA);var VEh=function(W){var B=W.JSC$23027_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){W.providePlayerJobId=_.gn(_.fg,function(){JCM(W);KC(W)},W.provideAllDataDelayMs)}),z=W.JSC$23027_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){W.provideWatchNextJobId=_.gn(_.fg,function(){u5(W);
KC(W)},W.provideAllDataDelayMs)}),G=W.JSC$23027_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){W.provideWatchNextJobId=_.gn(_.fg,function(){u5(W);
KC(W)},W.provideAllDataDelayMs)});
W.JSC$23027_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.CG(_.fg,function(){JCM(W);u5(W);KC(W)},100)});
W.JSC$23027_watchApi.addPageDisposeJob(function(){_.fg.cancelJob(W.provideWatchNextJobId);_.fg.cancelJob(W.providePlayerJobId)});
W.addOnDisposeCallback(function(){W.JSC$23027_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");W.JSC$23027_watchApi.unsubscribeByKey(B);W.JSC$23027_watchApi.unsubscribeByKey(z);W.JSC$23027_watchApi.unsubscribeByKey(G);_.fg.cancelJob(W.providePlayerJobId);_.fg.cancelJob(W.provideWatchNextJobId)});
JCM(W);u5(W)},JCM=function(W){var B=W.JSC$23027_watchApi.getPlayerResponse(),z,G,Y=(G=B==null?void 0:(z=B.playabilityStatus)==null?void 0:z.messageRenderers)!=null?G:[],d,E;
B=(E=B==null?void 0:(d=B.playabilityStatus)==null?void 0:d.messages)!=null?E:[];d=_.A(B);for(E=d.next();!E.done;E=d.next())Y.push({alertRenderer:{text:_.Bg(E.value),type:"WARNING"}});W.JSC$23027_watchApi.provideRenderingData("ALERTS",Y)},u5=function(W){var B=[],z,G,Y,d=W.JSC$23027_watchApi.getWatchNextResponse(),E,v,c,J,g=d==null?void 0:(E=d.contents)==null?void 0:(v=E.twoColumnWatchNextResults)==null?void 0:(c=v.results)==null?void 0:(J=c.results)==null?void 0:J.contents;
if(g)for(E=_.A(g),v=E.next();!v.done;v=E.next())if(v=v.value,v.videoPrimaryInfoRenderer)var t=v;else if(v.videoSecondaryInfoRenderer){var P=v;J=c=void 0;v=Object.assign({},(c=v.videoSecondaryInfoRenderer)==null?void 0:(J=c.metadataRowContainer)==null?void 0:J.metadataRowContainerRenderer);if(v.rows&&v.collapsedItemCount!==void 0){v.rows=v.rows.slice(0,v.collapsedItemCount).filter(function(Gq){return!!Gq.richMetadataRowRenderer});
v.collapsedItemCount=v.rows.length;var Z={metadataRowContainerRenderer:v}}}else if(v.merchandiseShelfRenderer)var l=v;else if(v.ticketShelfRenderer)var b=v;else if(v.expandableMetadataRenderer)var O=v;else if(v.itemSectionRenderer)if(c=v.itemSectionRenderer.contents,J=void 0,W.directlyProvideComments&&((J=v.itemSectionRenderer)==null?void 0:J.sectionIdentifier)==="comment-item-section")_.mj("cmi"),W.JSC$23027_watchApi.provideRenderingData("COMMENTS",v.itemSectionRenderer);else if(c)for(v=_.A(c),c=
v.next();!c.done;c=v.next())if(c=c.value,c.commentsEntryPointHeaderRenderer)var K=c;else if(c.clarificationRenderer||c.infoPanelContainerRenderer||c.infoPanelContentRenderer||c.emergencyOneboxRenderer){B.push(c);var e=e||!!P}else c.limitedStateMessageRenderer?G=c:c.videoMetadataCarouselViewModel&&(Y=c);if(_.r("web_watch_merch_in_sd_when_ticket_shelf_present")&&l&&b){var a=l;l=void 0}if(W.provideWatchNextSecondaryResults){var q,n,L;W.JSC$23027_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
d==null?void 0:(q=d.contents)==null?void 0:(n=q.twoColumnWatchNextResults)==null?void 0:(L=n.secondaryResults)==null?void 0:L.secondaryResults)}if(W.JSC$23027_watchApi.getRoot().is==="ytd-watch-grid"){var By,gk;W.JSC$23027_watchApi.provideRenderingData("LIVE_CHAT",d==null?void 0:(By=d.contents)==null?void 0:(gk=By.twoColumnWatchNextResults)==null?void 0:gk.conversationBar)}var vy,lx,Zv,VR;(q=d==null?void 0:(vy=d.contents)==null?void 0:(lx=vy.twoColumnWatchNextResults)==null?void 0:(Zv=lx.secondaryResults)==
null?void 0:(VR=Zv.secondaryResults)==null?void 0:VR.offerModule)&&(q.donationShelfRenderer||q.donationUnavailableRenderer)&&W.JSC$23027_watchApi.getRoot().is!=="ytd-watch-grid"&&(z=q);vy=W.JSC$23027_watchApi.getPlayerResponse();if(!vy||!_.LpR(vy.playabilityStatus,d==null?void 0:d.playerOverlays)){var ux;if(d==null?0:(ux=d.contents)==null?0:ux.singleColumnWatchNextResults){var X2,WQ;var XH=d==null?void 0:(X2=d.contents.singleColumnWatchNextResults.results)==null?void 0:(WQ=X2.results)==null?void 0:
WQ.contents}else{var wU,RD,sF,Vd;ux=!!(g==null?0:(wU=g[0])==null?0:(RD=wU.itemSectionRenderer)==null?0:(sF=RD.contents)==null?0:(Vd=sF[0])==null?0:Vd.backgroundPromoRenderer);var bR,Sf;wU=!!(d==null?0:(bR=d.contents)==null?0:(Sf=bR.twoColumnWatchNextResults)==null?0:Sf.secondaryResults);ux&&!wU&&(XH=g)}}g=B[0];bR=B[1];e&&B.length===1&&(bR=g,g=void 0);W.JSC$23027_watchApi.provideRenderingData("PRIMARY_INFO",t);W.JSC$23027_watchApi.provideRenderingData("SECONDARY_INFO",P);W.JSC$23027_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
K);W.JSC$23027_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",Y);W.JSC$23027_watchApi.provideRenderingData("CLARIFICATION",g);W.JSC$23027_watchApi.provideRenderingData("RICH_METADATA",Z);W.JSC$23027_watchApi.provideRenderingData("MERCH_SHELF",l);_.r("web_watch_merch_in_sd_when_ticket_shelf_present")&&W.JSC$23027_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",a);W.JSC$23027_watchApi.provideRenderingData("TICKET_SHELF",b);W.JSC$23027_watchApi.provideRenderingData("LIMITED_STATE",G);W.JSC$23027_watchApi.getRoot().is!==
"ytd-watch-grid"&&W.JSC$23027_watchApi.provideRenderingData("DONATION_SHELF",z);W.JSC$23027_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",XH);W.JSC$23027_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",bR);W.JSC$23027_watchApi.provideRenderingData("EXPANDABLE_METADATA",O);if(W.swatcherooProvideAllDataOnScheduledJob){var UF,pu,BQ,Z9,cn,rU;t=d==null?void 0:(UF=d.contents)==null?void 0:(pu=UF.twoColumnWatchNextResults)==null?void 0:(BQ=pu.secondaryResults)==null?void 0:(Z9=BQ.secondaryResults)==
null?void 0:(cn=Z9.results)==null?void 0:(rU=cn[0])==null?void 0:rU.richGridRenderer;W.JSC$23027_watchApi.provideRenderingData("RICH_GRID_RENDERER",t)}};
_.sXK.prototype.hasCompanionAds=function(W){var B,z;return(z=W==null?void 0:(B=W.adPlacements)==null?void 0:B.some(function(G){var Y,d,E,v;return(G==null?void 0:(Y=G.adPlacementRenderer)==null?void 0:(d=Y.renderer)==null?void 0:d.actionCompanionAdRenderer)||(G==null?void 0:(E=G.adPlacementRenderer)==null?void 0:(v=E.renderer)==null?void 0:v.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?z:!1};
var KC=function(W){if(!_.r("swaterdoo_ps_wn_handle_ks")){W.swatcherooProvideAllDataOnScheduledJob||tEQ(W,3E3);var B=W.JSC$23027_watchApi.getPlayerResponse(),z,G,Y,d,E,v=(z=W.JSC$23027_watchApi.getWatchNextResponse())==null?void 0:(G=z.contents)==null?void 0:(Y=G.twoColumnWatchNextResults)==null?void 0:(d=Y.secondaryResults)==null?void 0:(E=d.secondaryResults)==null?void 0:E.offerModule;B=W.hasCompanionAds(B);var c,J;z=(v==null?void 0:(c=v.tvfilmOfferModuleRenderer)==null?void 0:c.clientShouldSuppressIfCompanionAdDisplayed)||
(v==null?void 0:(J=v.unlimitedOfferModuleRenderer)==null?void 0:J.suppressIfCompanionAds);c=B&&z;W.JSC$23027_watchApi.getRoot().is==="ytd-watch-grid"&&W.JSC$23027_watchApi.provideRenderingData("OFFER_MODULE",c?void 0:v)}},tEQ=function(W,B){_.r("swatcheroo_pbs_load_grid")&&(W.provideRichGridJobId&&_.fg.cancelJob(W.provideRichGridJobId),W.provideRichGridJobId=_.gn(_.fg,function(){W.provideRichGridJobId=0;
var z,G,Y,d,E,v,c,J=(z=W.JSC$23027_watchApi.getWatchNextResponse())==null?void 0:(G=z.contents)==null?void 0:(Y=G.twoColumnWatchNextResults)==null?void 0:(d=Y.secondaryResults)==null?void 0:(E=d.secondaryResults)==null?void 0:(v=E.results)==null?void 0:(c=v[0])==null?void 0:c.richGridRenderer;J&&W.JSC$23027_watchApi.provideRenderingData("RICH_GRID_RENDERER",J)},B))},g8N=function(W){var B,z;
_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$23027_watchApi.playerApi,2);B=G.yieldResult;z=function(){W.onPlaybackStart()};
B.addEventListener("onPlaybackStartExternal",z);W.addOnDisposeCallback(function(){B.removeEventListener("onPlaybackStartExternal",z)});
_.HG(G)})};
_.sXK.prototype.onPlaybackStart=function(){tEQ(this)};_.Z4Q=function(W){_.bA.call(this);var B=this;this.JSC$23040_watchApi=W;W.playerApi.then(function(z){B.player=z});
this.gestures=new _.leF(this.JSC$23040_watchApi.getRoot(),W.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.P9N(_.Y_().getState())&&_.Dw(_.Y_().getState())<=0)if(_.ym(_.Y_().getState())){var z;(z=B.player)==null||z.toggleFullscreen()}else _.c0(B.JSC$23040_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
POm(this)};
_.C(_.Z4Q,_.bA);var POm=function(W){var B=_.NG(_.Y_(),_.ym,function(z){W.onFullscreenChanged(z)});
W.addOnDisposeCallback(B);B=_.NG(_.Y_(),_.Dw,function(z){W.gestures&&(z>0?W.gestures.detach():W.gestures.attach())});
W.addOnDisposeCallback(B)};
_.Z4Q.prototype.onFullscreenChanged=function(W){this.gestures&&this.gestures.update(W)};_.k4h=function(W){_.bA.call(this);var B=this;this.JSC$23043_watchApi=W;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(W.subscribeToActiveChanged(function(z){B.onActiveChanged(z)}));
rCF(this)};
_.C(_.k4h,_.bA);var loN=function(W){if(_.r("swatcheroo_page_dispose_all_watch_data"))W.pageDisposalDataTypes=Object.values(mwo).filter(function(z){return z!=="PLAYLIST"});
else if(_.r("swatcheroo_page_dispose_rich_grid")){var B;(B=W.pageDisposalDataTypes)==null||B.push("RICH_GRID_RENDERER")}},rCF=function(W){_.r("swatcheroo_enable_ghost_cards")&&(loN(W),W.JSC$23043_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.fg.cancelJob(W.clearDataJobId);
W.clearDataJobId=0}),W.runPageDisposeJob=function(){var B=_.dO().resolve(_.ij).getDestinationPageType()==="watch";
W.clearDataJobId=_.gn(_.fg,W.runClearDataJob,B?0:_.iO("web_watch_delay_page_dispose_ms",1E4))},W.runClearDataJob=function(){CON(W)},W.runOnYtNavigateAwayFinish=function(){W.clearDataJobId&&(_.fg.cancelJob(W.clearDataJobId),W.clearDataJobId=0,CON(W))},document.addEventListener("yt-navigate-finish",W.runOnYtNavigateAwayFinish),W.JSC$23043_watchApi.addPageDisposeJob(W.runPageDisposeJob),W.addOnDisposeCallback(function(){W.JSC$23043_watchApi.removePageDisposeJob(W.runPageDisposeJob);
W.JSC$23043_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",W.runOnYtNavigateAwayFinish)}))},CON=function(W){W.pageDisposalDataTypes.forEach(function(B){W.JSC$23043_watchApi.provideRenderingData(B,void 0)});
W.clearDataJobId=0};
_.k4h.prototype.onActiveChanged=function(W){W&&((W=document.querySelector("#watch-page-skeleton"))&&_.o0(W),Io_(this),document.body.removeAttribute("no-y-overflow"),_.md("IS_SHELL_LOAD")&&_.i99())};
var Io_=function(W){_.T(function(B){if(B.nextAddress==1)return B.yield(W.JSC$23043_watchApi.playerApi,2);_.$l();_.HG(B)})};var o8Q;o8Q=_.r("kevlar_watch_while_counterfactual")?0:.25;_.SAR=function(W){_.bA.call(this);this.JSC$23046_watchApi=W;this.JSC$23046_watchWhileEnabled=_.r("kevlar_watch_while_v2");this.pipEnabled=_.r("web_enable_pip_on_miniplayer");htZ(this);H4m(this);FHK(this)};
_.C(_.SAR,_.bA);var htZ=function(W){W.JSC$23046_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){b4m(W)});
W.addOnDisposeCallback(function(){W.JSC$23046_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},H4m=function(W){var B,z;
_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$23046_watchApi.playerApi,2);B=G.yieldResult;z=function(){b4m(W)};
B.addEventListener("onCollapseMiniplayer",z);W.addOnDisposeCallback(function(){B.removeEventListener("onCollapseMiniplayer",z)});
_.HG(G)})},FHK=function(W){var B=W.JSC$23046_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&B&&W.JSC$23046_watchWhileEnabled&&(W.playerIntersectionObserver=new IntersectionObserver(function(z){W.handleIntersect(z)},{threshold:[o8Q]}),W.playerIntersectionObserver.observe(B),W.addOnDisposeCallback(function(){var z;
(z=W.playerIntersectionObserver)==null||z.disconnect()}))},b4m=function(W){var B,z,G;
_.T(function(Y){if(Y.nextAddress==1){B=_.dO().resolve(_.ij);z=B.data;G=_.Oo(z.response,!1,z.playerResponse);_.qG().miniplayerButtonActivation=!0;if(W.pipEnabled)return _.qG().watchPipActivation=!0,Y.jumpTo(2);_.dO().resolve(_.Qb).collapse();return Y.yield(_.qG().navigationFinishPromise,2)}if(Y.nextAddress!=4)return _.qG().currentEndpoint=G.watchEndpoint||null,Y.yield(_.dO().resolve(_.Qb).activate(W.JSC$23046_watchApi.getElement("PLAYER"),G,z),4);_.qG().userActivation=!0;_.HG(Y)})};
_.SAR.prototype.handleIntersect=function(W){jX3(this,W[W.length-1])};
var jX3=function(W,B){W.watchWhileJobId&&_.fg.cancelJob(W.watchWhileJobId);W.watchWhileJobId=_.fg.addLowPriorityJob(function(){var z,G;return _.T(function(Y){if(Y.nextAddress==1)return W.watchWhileJobId=void 0,z=_.dO().resolve(_.Qb),B.intersectionRatio>o8Q?z.isMiniplayerActive()?Y.yield(z.deactivate(),0):Y.jumpTo(0):(G=!z.isMiniplayerActive())?Y.yield(foZ(W),5):Y.jumpTo(4);Y.nextAddress!=4&&(G=Y.yieldResult);if(!G)return Y.jumpTo(0);_.qG().watchWhileActivation=!0;return Y.yield(O43(W),0)})},100)},
foZ=function(W){return _.T(function(B){return B.nextAddress==1?_.r("kevlar_watch_while_paused")?B.return(!0):B.yield(W.isPlayerPlaying(),2):B.return(B.yieldResult)})};
_.SAR.prototype.isPlayerPlaying=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return z.yield(W.JSC$23046_watchApi.playerApi,2);B=z.yieldResult;return z.return(B.getPlayerStateObject().isPlaying)})};
var O43=function(W){var B,z;return _.T(function(G){B=_.dO().resolve(_.ij).data;z=_.Oo(B.response,!1,B.playerResponse);_.qG().currentEndpoint=z.watchEndpoint||null;return G.yield(_.dO().resolve(_.Qb).activate(W.JSC$23046_watchApi.getElement("PLAYER"),z,B),0)})};_.usF=function(W){_.bA.call(this);this.JSC$23050_watchApi=W;XSM(this);KHF(this)};
_.C(_.usF,_.bA);var KHF=function(W){var B,z;_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$23050_watchApi.playerApi,2);B=G.yieldResult;z=function(Y){var d;Y.sessionData&&Y.sessionData.itct&&(d=Y.sessionData.itct);var E=Y.watchEndpoint;if(E&&Y.sessionData&&Y.sessionData.autonav)E=_.tir(E,d);else{var v;E=_.pA(Y.videoId,(v=Y.listId)!=null?v:void 0,d)}d={endpoint:E};Y.sessionData&&(d.tempData=Y.sessionData);W.JSC$23050_watchApi.dispatchEvent("yt-navigate",d)};
B.addEventListener("onPlayVideo",z);W.addOnDisposeCallback(function(){B.removeEventListener("onPlayVideo",z)});
_.HG(G)})},XSM=function(W){var B=function(z){W.onYtNavigate(z)};
W.JSC$23050_watchApi.getRoot().addEventListener("yt-navigate",B);W.addOnDisposeCallback(function(){W.JSC$23050_watchApi.getRoot().removeEventListener("yt-navigate",B)})};
_.usF.prototype.onYtNavigate=function(W){var B=this,z,G,Y,d,E,v,c,J,g;return _.T(function(t){if(t.nextAddress==1){if(!((z=W.detail)==null?0:(G=z.endpoint)==null?0:G.watchEndpoint))return t.return();Y=W.detail.endpoint.watchEndpoint;d=B.JSC$23050_watchApi.getWatchNextResponse();v=_.k((E=d)==null?void 0:E.currentVideoEndpoint,_.W0);if(!v)return t.return();if(Y.videoId!==v.videoId||Y.playlistId&&Y.playlistId!==v.playlistId||typeof Y.startTimeSeconds!=="number")return t.jumpTo(0);W.stopPropagation();
(c=_.r("kevlar_watch_while_v2")&&!_.r("kevlar_watch_while_counterfactual"))&&_.dO().resolve(_.Qb).isMiniplayerActive()||B.JSC$23050_watchApi.scrollWatchTo(0,!0);return t.yield(B.JSC$23050_watchApi.playerApi,3)}J=t.yieldResult;g=Y.startTimeSeconds;J.seekTo(g,void 0,void 0,void 0,84);J.wakeUpControls();g<J.getDuration()&&J.playVideo();_.HG(t)})};_.mnM=function(W){_.bA.call(this);var B=this;this.JSC$23053_watchApi=W;var z=this.JSC$23053_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){eth(B)});
this.addOnDisposeCallback(function(){B.JSC$23053_watchApi.unsubscribeByKey(z)});
eth(this);_.r("enable_ai_companion")&&(W=this.JSC$23053_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.WdK(_.dO().resolve(_.Go),W,0)};
_.C(_.mnM,_.bA);var eth=function(W){var B=W.JSC$23053_watchApi.getWatchNextResponse();if(B){var z,G=[].concat(_.u7((z=B==null?void 0:B.engagementPanels)!=null?z:[]));G.unshift.apply(G,_.u7(xnN(B)));W.JSC$23053_watchApi.provideRenderingData("ENGAGEMENT_PANELS",G)}},Dnm=function(W){var B,z,G,Y=(B=W.engagementPanels)==null?void 0:(z=B.find(function(Z){var l;
return((l=Z.engagementPanelSectionListRenderer)==null?void 0:l.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(G=z.engagementPanelSectionListRenderer.content)==null?void 0:G.structuredDescriptionContentRenderer,d;
if(_.k(Y==null?void 0:(d=Y.items)==null?void 0:d.find(function(Z){return!!_.k(Z,dkm)}),dkm))return!0;
var E,v,c,J;if(W=(((E=W.contents)==null?void 0:(v=E.twoColumnWatchNextResults)==null?void 0:(c=v.results)==null?void 0:(J=c.results)==null?void 0:J.contents)||[]).find(function(Z){return Z.videoPrimaryInfoRenderer})){var g,t,P;
return(((g=W.videoPrimaryInfoRenderer)==null?void 0:(t=g.videoActions)==null?void 0:(P=t.menuRenderer)==null?void 0:P.flexibleItems)||[]).some(function(Z){Z=_.k(Z,_.Ci6);if(!Z)return!1;var l,b;Z=(l=Z.topLevelButton)==null?void 0:(b=l.buttonViewModel)==null?void 0:b.onTap;if(!Z)return!1;l=_.$B(Z);if(!l)return!1;var O;return((O=_.k(l,_.jT))==null?void 0:O.panelIdentifier)==="PAyouchat"})}return!1},xnN=function(W){var B=[];
if(!_.r("web_watch_inject_placeholder_fantasy_panel_killswitch")){var z,G,Y,d=(z=W.engagementPanels)==null?void 0:(G=z.find(function(v){var c;return((c=v.engagementPanelSectionListRenderer)==null?void 0:c.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Y=G.engagementPanelSectionListRenderer.content)==null?void 0:Y.structuredDescriptionContentRenderer,E;
_.k(d==null?void 0:(E=d.items)==null?void 0:E.find(function(v){return!!_.k(v,XbM)}),XbM)&&(z=_.XwQ("PAsports_fantasy"),z.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",B.push(z))}Dnm(W)&&(W=_.XwQ("PAyouchat"),W.engagementPanelSectionListRenderer.targetId="PAyouchat",W.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",B.push(W));
return B};_.yCM=function(W){_.bA.call(this);this.JSC$23056_watchApi=W;QXF(this)};
_.C(_.yCM,_.bA);var QXF=function(W){W.JSC$23056_watchApi.registerActionHandler("yt-loop-command",function(B){qAm(W,B)});
W.JSC$23056_watchApi.registerActionHandler("yt-repeat-chapter-command",function(B){n8h(W,B)});
W.addOnDisposeCallback(function(){W.JSC$23056_watchApi.unregisterActionHandler("yt-loop-command");W.JSC$23056_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},qAm=function(W,B){var z;
_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$23056_watchApi.playerApi,2);z=G.yieldResult;_.k(B,uMb).loop?(z.setLoopRange({startTimeMs:Number(_.k(B,uMb).startTimeMs),endTimeMs:Number(_.k(B,uMb).endTimeMs),postId:_.k(B,uMb).postId,type:"clips"}),z.playVideo()):z.setLoopRange(null);_.HG(G)})},n8h=function(W,B){var z,G;
_.T(function(Y){if(Y.nextAddress==1)return Y.yield(W.JSC$23056_watchApi.playerApi,2);z=Y.yieldResult;G=_.k(B,Q3R).repeat;G==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(z.setLoopRange({startTimeMs:Number(_.k(B,Q3R).startTimeMs),endTimeMs:Number(_.k(B,Q3R).endTimeMs),type:"repeatChapter"}),z.playVideo()):G==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&z.setLoopRange(null);_.HG(Y)})};_.$n_=function(W){_.bA.call(this);this.JSC$23061_watchApi=W;NOh(this)};
_.C(_.$n_,_.bA);var NOh=function(W){W.JSC$23061_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(B){LHo(W,B)});
W.addOnDisposeCallback(function(){W.JSC$23061_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},LHo=function(W,B){var z,G,Y,d,E,v,c,J,g,t,P;
_.T(function(Z){if(Z.nextAddress==1)return Z.yield(W.JSC$23061_watchApi.playerApi,2);z=Z.yieldResult;if(d=(Y=(G=_.k(B,yZM))==null?void 0:G.highlightedMenuItemKey)!=null?Y:"")(v=(E=z).highlightSettingsMenuItem)==null||v.call(E,d);if(g=(J=(c=_.k(B,yZM))==null?void 0:c.openMenuItemKey)!=null?J:"")(P=(t=z).openSettingsMenuItem)==null||P.call(t,g);_.HG(Z)})};var UnM=_.sg("/youtube/app/watch/player_state","playerStateEntity");_.aoN=function(W){_.bA.call(this);this.JSC$23064_watchApi=W;MEK(this)};
_.C(_.aoN,_.bA);var RtM=function(W){switch(W){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"}},MEK=function(W){var B,z;
_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$23064_watchApi.playerApi,2);B=G.yieldResult;z=function(Y){W.onPlayerStateChange(Y)};
B.addEventListener("onStateChange",z);W.addOnDisposeCallback(function(){B.removeEventListener("onStateChange",z)});
_.HG(G)})};
_.aoN.prototype.onPlayerStateChange=function(W){var B=this,z,G;return _.T(function(Y){if(Y.nextAddress==1)return Y.yield(B.JSC$23064_watchApi.playerApi,2);z=Y.yieldResult;G=z.getVideoData().video_id;_.p8().dispatch(_.bj("playerStateEntity",UnM,{key:UnM,playerState:RtM(W),videoId:G}));_.HG(Y)})};_.B2N=function(W){_.bA.call(this);var B=this;this.JSC$23068_watchApi=W;this.enableExternalPlaylistPanelInPlayer=_.r("delhi_web_player_use_external_playlist_panel");_.dO().resolve(_.wW).setPlayer(this.JSC$23068_watchApi.getElement("PLAYER"));W=this.JSC$23068_watchApi.subscribeToActiveChanged(function(z){B.onActiveChanged(z)});
this.addOnDisposeCallback(W);Wgh(this)};
_.C(_.B2N,_.bA);var Wgh=function(W){var B,z;_.T(function(G){if(G.nextAddress==1)return W.enableExternalPlaylistPanelInPlayer?G.yield(W.JSC$23068_watchApi.playerApi,2):G.return();B=G.yieldResult;z=function(){if(W.playlistPanelElement)W.playlistPanelElement.onToggleExpanded()};
B.addEventListener("onToggleExternalPlaylistPanel",z);W.addOnDisposeCallback(function(){B.removeEventListener("onToggleExternalPlaylistPanel",z)});
_.HG(G)})};
_.B2N.prototype.onActiveChanged=function(W){var B=this,z=_.dO().resolve(_.wW),G=function(){z3m(B)};
W?(this.playlistPanelElement=this.JSC$23068_watchApi.getElement("PLAYLIST_PANEL"))?(z.setPlaylistComponent(this.playlistPanelElement),z.addEventListener("yt-playlist-data-updated",G),this.addOnDisposeCallback(function(){z.removeEventListener("yt-playlist-data-updated",G)}),z3m(this)):_.nx(Error("Qo")):(z.removeEventListener("yt-playlist-data-updated",G),z.cancelVideoSkip())};
var z3m=function(W){var B=_.dO().resolve(_.wW);W.JSC$23068_watchApi.provideRenderingData("PLAYLIST",B.getPlaylistData())};_.eP=function(W){_.bA.call(this);var B=this;this.JSC$23071_watchApi=W;this.onPageScroll=function(){B.scrollThrottle.fire();B.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.an(this.onThrottledScroll,200,this);_.rH(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.an(this.onMastheadThrottledScroll,50,this);_.rH(this,this.mastheadScrollThrottle);this.animation=new _.P6(function(z){B.JSC$23071_watchApi.getRoot().setScrollTop(z)});
W=_.NG(_.Y_(),_.ym,function(){B.onFullscreenChanged()});
this.addOnDisposeCallback(W);GUR(this);YEN(this);this.onThrottledScroll()};
_.C(_.eP,_.bA);
_.eP.prototype.onFullscreenChanged=function(){var W=this,B=this.JSC$23071_watchApi.getRoot();!this.pageScrollElement&&B.pageScrollElement?(this.pageScrollElement=B.pageScrollElement,B.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){W.pageScrollElement&&W.pageScrollElement.removeEventListener("scroll",W.onPageScroll)})):this.pageScrollElement&&!B.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var GUR=function(W){window.addEventListener("scroll",W.onPageScroll);W.addOnDisposeCallback(function(){window.removeEventListener("scroll",W.onPageScroll)})},YEN=function(W){W.JSC$23071_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(B){a:{var z;
if(z=W.JSC$23071_watchApi.getRoot().contains(B)&&!W.animation.isAnimating()){z=B.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var G,Y,d=(B==null?void 0:(G=B.parentElement)==null?void 0:(Y=G.parentElement)==null?void 0:Y.id)==="fixed-secondary";z=!(z&&d)}if(z){if(_.r("kevlar_watch_scroll_manager_absolute_offset_killswitch"))G=B.offsetTop;else for(G=0,Y=B;Y!==null;)G+=Y.offsetTop,G-=Y.scrollTop,Y=Y.offsetParent;Y=G;G=Y-24;B=Y+B.offsetHeight+24;Y=W.JSC$23071_watchApi.getRoot().getPageScrollingElement();
z=W.JSC$23071_watchApi.getRoot().getScrollTop();d=z+Y.clientHeight-56;if(G<z+56)B=G-56;else if(B>d)B-=Y.clientHeight;else break a;W.scrollWatchTo(Math.max(0,B),!0)}}});
W.addOnDisposeCallback(function(){W.JSC$23071_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.eP.prototype.onThrottledScroll=function(){var W=_.Y_(),B=W.dispatch,z=this.JSC$23071_watchApi.getRoot().getScrollTop();B.call(W,_.Tl({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:z}}))};
_.eP.prototype.onMastheadThrottledScroll=function(){this.JSC$23071_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23071_watchApi.getRoot().getScrollTop())};
_.eP.prototype.scrollWatchTo=function(W,B){(B===void 0?0:B)?this.animation.start(this.JSC$23071_watchApi.getRoot().getScrollTop(),Math.max(0,W),500):this.JSC$23071_watchApi.getRoot().setScrollTop(W)};_.AD3=function(W){_.bA.call(this);var B=this;this.JSC$23074_watchApi=W;var z=this.JSC$23074_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){dXm(B)}),G=this.JSC$23074_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){pVm(B)});
this.addOnDisposeCallback(function(){B.JSC$23074_watchApi.unsubscribeByKey(z);B.JSC$23074_watchApi.unsubscribeByKey(G)});
dXm(this);pVm(this)};
_.C(_.AD3,_.bA);
var dXm=function(W){var B,z,G,Y=(G=(B=W.JSC$23074_watchApi.getPlayerResponse())==null?void 0:(z=B.videoDetails)==null?void 0:z.title)!=null?G:"";W.JSC$23074_watchApi.dispatchEvent("yt-update-title",Y)},pVm=function(W){var B,z,G,Y,d,E,v,c=(v=((E=(B=W.JSC$23074_watchApi.getWatchNextResponse())==null?void 0:(z=B.contents)==null?void 0:(G=z.twoColumnWatchNextResults)==null?void 0:(Y=G.results)==null?void 0:(d=Y.results)==null?void 0:d.contents)!=null?E:[]).find(function(J){return!!J.videoPrimaryInfoRenderer}))==null?
void 0:v.videoPrimaryInfoRenderer;
(B=_.zR(c==null?void 0:c.title))&&W.JSC$23074_watchApi.dispatchEvent("yt-update-title",B)};_.Ebh=function(W){_.bA.call(this);this.JSC$23077_watchApi=W;igm(this)};
_.C(_.Ebh,_.bA);var igm=function(W){var B,z;_.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$23077_watchApi.playerApi,2);B=G.yieldResult;z=function(){W.onYpcContentRequest()};
B.addEventListener("onYpcContentRequest",z);W.addOnDisposeCallback(function(){B.removeEventListener("onYpcContentRequest",z)});
_.HG(G)})};
_.Ebh.prototype.onYpcContentRequest=function(){var W,B,z,G,Y,d=(W=this.JSC$23077_watchApi.getWatchNextResponse())==null?void 0:(B=W.contents)==null?void 0:(z=B.twoColumnWatchNextResults)==null?void 0:(G=z.secondaryResults)==null?void 0:(Y=G.secondaryResults)==null?void 0:Y.offerModule,E,v,c,J;W=(J=(c=(v=(E=d==null?void 0:d.episodeOfferModuleRenderer)!=null?E:d==null?void 0:d.movieOfferModuleRenderer)!=null?v:d==null?void 0:d.unlimitedOfferModuleRenderer)!=null?c:d==null?void 0:d.liveOfferModuleRenderer)!=
null?J:d==null?void 0:d.tvfilmOfferModuleRenderer;var g,t,P;d=(P=d==null?void 0:(g=d.tvfilmOfferModuleRenderer)==null?void 0:(t=g.actionButtons)==null?void 0:t.length)!=null?P:0;t=Math.max(d-1,0);var Z,l,b;g=(b=W==null?void 0:(Z=W.offerButton)==null?void 0:Z.buttonRenderer)!=null?b:W==null?void 0:(l=W.actionButtons)==null?void 0:l[t].buttonRenderer;var O,K;(Z=(K=(O=g==null?void 0:g.navigationEndpoint)!=null?O:g==null?void 0:g.serviceEndpoint)!=null?K:g==null?void 0:g.command)&&_.IB.instance.resolveCommand(Z)};
}catch(e){_._DumpException(e)}
try{
var yzq,xOK,elr;_.mOO=function(){var W=_.mP.clone(uRi),B;return(new _.Vx(function(z,G){W.onSuccess=function(Y){_.LjQ(Y)?z(new elr(Y)):G(new _.ut("Request failed, status="+_.vS(Y),"net.badstatus",Y))};
W.onError=function(Y){G(new _.ut("Unknown request error","net.unknown",Y))};
W.onTimeout=function(Y){G(new _.ut("Request timed out","net.timeout",Y))};
B=_.tC("//googleads.g.doubleclick.net/pagead/id",W)})).thenCatch(function(z){if(z instanceof _.qF){var G;
(G=B)==null||G.abort()}return _.mR(z)})};
_.DOf=function(W){a:{var B="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(B="EMBEDDED_PLAYER_MODE_PFL");var z=W.raw_embedded_player_response;if(!z&&(W=W.embedded_player_response))try{z=JSON.parse(W)}catch(Y){break a}if(z)b:for(var G in xOK)if(xOK[G]==z.embeddedPlayerMode){B=xOK[G];break b}}return B==="EMBEDDED_PLAYER_MODE_PFL"};
_.Qd0=function(){if(_.r("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("tf");if(!_.I3k())return Error("uf");var W=_.eD("PLAYER_VARS",{});if(_.mP.get(W,"privembed",!1)=="1")return Error("vf");if(_.DOf(W))return Error("wf")};
yzq=function(W){switch(W){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:_.qT(W,"unknown result type")}};
_.qh0=function(W,B,z){B=_.FOu[B];z={detected:W===0,source:B.ehH,detectionResult:yzq(W),contentCpn:z};_.Sy("biscottiBasedDetection",z);_.TGH.increment(B.ehH,W);B.kGY!==void 0&&_.uk("CATSTAT",_.hMR(W,B))};
_.eH=function(W,B){var z={};z.key=W;z.value=B;return _.EPD().then(function(G){return new Promise(function(Y,d){try{var E=G.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(z);E.onsuccess=function(){Y()};
E.onerror=function(){d()}}catch(v){d(v)}})})};
_.N8n=function(){var W=_.iO("user_engagement_experiments_rate_limit_ms"),B=n66.get("last-user-engagement-exp-trigger-timestamp");return!B||(0,_.Yb)()>=B+W?(n66.set("last-user-engagement-exp-trigger-timestamp",(0,_.Yb)()),!0):!1};
_.m3=function(W,B,z,G,Y){B=B===void 0?null:B;z=z===void 0?null:z;G=G===void 0?null:G;Y=Y===void 0?null:Y;W={youThereEventType:W};z&&(W.lactThresholdMs=z.lactThresholdMs,W.mediaPosSec=z.promptDelaySec,W.lactServerRequestMs=z.lactServerRequestMs,W.triggerReason=z.triggerReason);Y!=null&&(W.renderingMediaPosSec=Math.round(Y));B||(B=_.m1());B&&(W.clientScreenNonce=B);G&&(W.clientPlaybackNonce=G);_.Sy("youThere",W)};
xOK={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"};elr=function(W){this.xhr=W};
_.ut=function(W,B,z){_.zT.call(this,W+", errorCode="+B);this.errorCode=B;this.xhr=z;this.name="PromiseAjaxError"};
_.C(_.ut,_.zT);var uRi={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var n66=new _.el("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.K1f=function(W){return _.Tl({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:W})};
}catch(e){_._DumpException(e)}
try{
var QM,KgQ,e3o,mX_,xX3,DXh,yDm,R3_,WEZ,B7_,QeZ,uG_,$XR,N2F,YcR;_.XVR=function(){var W=window.location.hash;W.charAt(0)==="#"&&(W=W.charAt(1)==="!"?W.substring(2):W.substring(1));return _.Lx(W)};
QM=function(W,B,z){var G;return _.T(function(Y){if(Y.nextAddress==1)return Y.yield(B(),2);G=Y.yieldResult;z(G,W);_.HG(Y)})};
KgQ=function(){return _.T(function(W){return W.nextAddress==1?W.yield((_.Qd0()!==void 0?_.mR(Error("xf")):_.mOO()).then(function(){return 1},function(B){if(B.message==="Biscotti id is disabled")return 3;
_.Oc("Failed fetching bid");return 0}),2):W.return(W.yieldResult)})};
e3o=function(){var W=_.El("bmJsaGV0bnl0LWhhdmVuLWVtYmVkLXBsYXllciM1NDVhcA=="),B=_.El("NHY5bXVqdmlmcmFtZSMxdWU5YQ==");return document.querySelector(B+uG_+W)?0:1};
mX_=function(){return _.Vvu(_.rW)};
xX3=function(){return _.Ja0()===0?0:_.gIt()};
DXh=function(){return _.raQ(_.XN0([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
yDm=function(){return _.p$Q(QeZ)};
_.qEQ=function(W){_.T(function(B){switch(B.nextAddress){case 1:return B.yield(QM("b.f_",KgQ,W),2);case 2:return B.yield(QM("j.s_",_.Y7R,W),3);case 3:return B.yield(QM("r.s_",_.Ber,W),4);case 4:return B.yield(QM("e.h_",yDm,W),5);case 5:if(!_.r("ab_det_sc_inj")){B.jumpTo(6);break}return B.yield(QM("s.i_",_.cau,W),6);case 6:if(_.r("ab_deg_unex_thr")){B.jumpTo(8);break}return B.yield(QM("a.o_",_.TeT,W),8);case 8:if(_.r("ks_get_o_pp")){B.jumpTo(10);break}return B.yield(QM("g.o_",_.EIX,W),10);case 10:if(_.r("ks_det_gpbl")){B.jumpTo(12);
break}return B.yield(QM("p.i_",_.iWr,W),12);case 12:return B.yield(QM("f.i_",_.yPR,W),14);case 14:return B.yield(QM("a.b_",_.Rvy,W),15);case 15:return B.yield(QM("p.m_",_.NNX,W),16);case 16:if(!_.r("ab_det_el_h_v2")){B.jumpTo(17);break}return B.yield(QM("n.h_",DXh,W),17);case 17:return B.yield(QM("o.p_",mX_,W),19);case 19:return B.yield(QM("e.i_",e3o,W),20);case 20:if(_.r("ab_det_apm"))return B.yield(QM("o.a_",xX3,W),0);B.jumpTo(0)}})};
_.nbQ=function(W,B){W={videoId:W};B&&(W.playlistId=B);return W};
_.LgK=function(){if(_.I3k()){var W=_.eD("PLAYER_VARS",{});if(_.mP.get(W,"privembed",!1)!="1"&&!_.DOf(W)){var B=function(){N2F=!0;"google_ad_status"in window?_.uk("DCLKSTAT",1):_.uk("DCLKSTAT",2)};
try{_.NO(_.Px0,B)}catch(z){}$XR.push(_.fg.addLowPriorityJob(function(){if(!(N2F||"google_ad_status"in window)){try{_.tY0(_.Px0.toString(),B)}catch(z){}N2F=!0;_.uk("DCLKSTAT",3)}},5E3))}}};
_.UXb=function(W,B,z){z=z===void 0?!1:z;var G=Math.max(W.width,_.A6N);if(_.r("kevlar_watch_feed_big_thumbs")&&W.width>=1550-_.tb()&&W.height>=800)G-=_.wGR;else if(W.width>=_.$S){var Y=_.iNQ+_.EA3+_.Ny;_.r("kevlar_watch_feed_big_thumbs")&&(Y=_.c6b);G-=Y}else G-=_.iNQ;G=Math.min(G,_.Tj3);Y=240;z&&(Y=380);B<.5624||(!_.r("kevlar_watch_flexy_disable_small_window_sizing")&&(W.height<630&&W.width>=657||W.height>=630&&W.width>=_.$S&&W.width<1327)?Y=360:!_.r("kevlar_watch_flexy_disable_large_window_sizing")&&
W.height>=630&&W.width>=1327&&(Y=480));var d=Math.min(G*B,W.height-(56+_.pGR+_.vAN));d=Math.max(d,Y);B<1?G=d/B:W.width>=_.$S&&(G=_.UXb(W,.5625,z).width);return new _.hv(Math.round(G),Math.round(d))};
_.MlM=function(W){var B=0;W.indexOf("h")!=-1&&(W=W.split("h"),B=W[0]*60*60,W=W[1]);W.indexOf("m")!=-1&&(W=W.split("m"),B=W[0]*60+B,W=W[1]);W.indexOf("s")!=-1?(W=W.split("s"),B=W[0]*1+B):B=W*1+B;return B};
_.a_N=function(){_.iO("service_worker_push_logged_out_prompt_watches")!=-1&&_.xf("WatchCount").then(function(W){W>=100||_.eH("WatchCount",W+1)})};
R3_=function(W){var B=W.externalVideoId||"";return B?W.isShortsEligible?"https://www.youtube.com/shorts/"+B:"https://www.youtube.com/watch?v="+B:""};
WEZ=function(W){var B=[];W.viewCount&&B.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:W.viewCount});W.likeCount&&B.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:W.likeCount});return B};
B7_=function(W){var B,z,G={"@context":"https://schema.org","@type":"VideoObject",description:_.zR(W.description),duration:"PT"+(W.lengthSeconds||"0")+"S",embedUrl:W.embed?W.embed.iframeUrl:"",name:_.zR(W.title),thumbnailUrl:((B=W.thumbnail)==null?void 0:(z=B.thumbnails)==null?void 0:z.map(function(g){return g&&g.url||""}))||[],
uploadDate:W.publishDate};_.r("mweb_video_schema_id_killswitch")||(G["@id"]=R3_(W));B=WEZ(W);B.length&&(G.interactionStatistic=B);W.category&&(G.genre=W.category);W.ownerChannelName&&(G.author=W.ownerChannelName);W.liveBroadcastDetails&&(G.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:W.liveBroadcastDetails.startTimestamp,endDate:W.liveBroadcastDetails.endTimestamp}]);if(W.learningResource){W=W.learningResource;G["@type"]=["VideoObject","LearningResource"];var Y;if((Y=W.learningResourceType)==
null?0:Y.length)G.learningResourceType=W.learningResourceType[0];var d;if((d=W.educationalAlignment)==null?0:d.length)G.educationalAlignment={"@type":"AlignmentObject",targetName:W.educationalAlignment[0]};var E;if((E=W.educationalLevel)==null?0:E.length){Y=W.educationalLevel[0];var v;if((v=W.educationalLevelCountry)==null?0:v.length)Y+=" ("+W.educationalLevelCountry+")";G.educationalLevel=Y}var c,J;if(((c=W.learningResourceType)==null?0:c.length)&&W.learningResourceType[0]==="Problem walkthrough"&&
((J=W.problemDescriptions)==null?0:J.length))for(G.hasPart=[],v=_.A(W.problemDescriptions),c=v.next();!c.done;c=v.next())Y=c.value,c=Y.problemDescriptionText,J=Y.startOffset,Y=Y.url,c&&J!==void 0&&Y&&G.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:c,text:c,startOffset:J,url:Y})}return G};
_.z5h=function(W){return _.Tl({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:W}})};
QeZ=[[["M3hoZ3pnYnByaW1hcnkjc3JheGM=",null,null],[null,["Z2l3cnFhNXl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2pqeDQx","cmN2YW9xdHN0eWxlLXNjb3BlIzVybmR3"],null],["bGN0MTNuYW1hc3RoZWFkLWFkI2p0MjIy",["enVyamY2ZXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjNmxtZmE="],null],[null,["djgxbTR5cnl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjaHIyaXI=","MGxyaHg2cHN0eWxlLXNjb3BlI3VrajVi"],null],[null,["eDZhNGVwZXl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjeXhnZmo=","ZWZydm1hYXN0eWxlLXNjb3BlI3k5ZnB5"],null],[null,["djVwazRqd3l0ZC1hZC1zbG90LXJlbmRlcmVyIzh6MWk="],
null]],[["M3dkYmVwa3BsYXllci1hZHMjd3NoY2o=",null,null]],[["dnh4bmowaGRlc2NyaXB0aW9uLWlubmVyI296bHFv",null,null],[null,null,"OGxydWhteXl0ZC1tZXJjaC1zaGVsZi1yZW5kZXJlciNmNzU="],["bnl3emV4ZG1haW4ja3l4Y3c=",["NWQ2ejhtYnl0ZC1tZXJjaC1zaGVsZi1yZW5kZXJlciN6ZXRzNA=="],null]]];uG_="#";$XR=[];N2F=!1;_.Gim=["engagement-panel-ads"];YcR=new _.J1("updateSentimentBarStateCommand");_.dlb=new _.J1("showSurveyCommand");_.yM=new _.J1("changeMarkersVisibilityCommand");var AXQ,iGN,cX3,vEM,T7_,qq;_.pTM=function(W,B){this.playerProvider_=W;this.actionSenderElement_=B;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.pTM.prototype.reset=function(){AXQ(this);this.isUserPredictedAbsent_=!1};
AXQ=function(W,B){!W.youThereData_||W.showWarningJob_||B!==void 0&&B||(_.m3("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.m1(),W.youThereData_,W.clientPlaybackNonce_),_.bp());_.fg.cancelJob(W.showWarningJob_);W.showWarningJob_=0;_.fg.cancelJob(W.showBlockingWarningJob_);W.showBlockingWarningJob_=0;_.fg.cancelJob(W.pausePlaybackJob_);W.pausePlaybackJob_=0;W.youThereData_=null;W.clientPlaybackNonce_=void 0;W.inYouThereFlow_=!1};
_.EEb=function(W,B){var z,G,Y;_.T(function(d){if(d.nextAddress==1)return W.reset(),d.yield(W.playerProvider_().getPlayerPromise(),2);z=d.yieldResult;W.clientPlaybackNonce_=z.getVideoData().cpn;W.youThereData_=B.configData.youThereData;if(!W.youThereData_)return d.return();if(W.youThereData_.triggerReason&&W.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.N8n())return _.m3("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.m1(),W.youThereData_,W.clientPlaybackNonce_),d.return();G=W.youThereData_.promptDelaySec;
Y=z.getCurrentTime();W.showWarningJob_=_.fg.addLowPriorityJob(function(){return _.T(function(E){W.showWarningJob_=0;return E.yield(iGN(W),0)})},Math.max(G-Y,0)*1E3);
_.HG(d)})};
iGN=function(W){var B,z,G,Y,d,E;return _.T(function(v){if(v.nextAddress==1)return v.yield(W.playerProvider_().getPlayerPromise(),2);if(v.nextAddress!=3)return B=v.yieldResult,z=B.getCurrentTime(),v.yield(T7_(W),3);G=v.yieldResult;if(!G||!W.youThereData_)return v.return();if(_.r("check_user_lact_at_prompt_shown_time_on_web")&&(Y=parseInt(W.youThereData_.lactThresholdMs,10),_.Gi()<Y))return _.m3("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.m1(),W.youThereData_,W.clientPlaybackNonce_),v.return();if(W.youThereData_.playbackPauseDelayMs<=
0)return vEM(W),v.return();!_.r("external_fullscreen")&&(d=_.pi())&&(W.ignoreFullscreenExitUserActivity_=!0,_.fg.addLowPriorityJob(function(){W.ignoreFullscreenExitUserActivity_=!1},2E3),_.Ar(d));
W.youThereData_.showToastWarningPrompt&&(qq(W,W.youThereData_.showWarningActions),W.inYouThereFlow_=!0,_.m3("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.m1(),W.youThereData_,W.clientPlaybackNonce_,z),_.m3("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.m1(),W.youThereData_,W.clientPlaybackNonce_,z));E=0;W.youThereData_.blockingPromptDelayMs&&(E=W.youThereData_.blockingPromptDelayMs);W.showBlockingWarningJob_=_.fg.addLowPriorityJob(function(){return _.T(function(c){W.showBlockingWarningJob_=0;return c.yield(cX3(W),
0)})},E);
_.HG(v)})};
cX3=function(W){var B,z,G;return _.T(function(Y){if(Y.nextAddress==1)return Y.yield(T7_(W),2);B=Y.yieldResult;if(!W.youThereData_)return Y.return();B&&(W.youThereData_.showBlockingWarningAction&&(_.m3("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.m1(),W.youThereData_,W.clientPlaybackNonce_),(z=_.k(W.youThereData_.showBlockingWarningAction,_.tr))?qq(W,z.commands):qq(W,[W.youThereData_.showBlockingWarningAction]),W.inYouThereFlow_=!0),G=W.youThereData_.playbackPauseDelayMs,W.pausePlaybackJob_=
_.fg.addLowPriorityJob(function(){return _.T(function(d){W.pausePlaybackJob_=0;return d.yield(vEM(W),0)})},G));
_.HG(Y)})};
vEM=function(W){var B;return _.T(function(z){if(z.nextAddress==1)return z.yield(T7_(W),2);B=z.yieldResult;if(!W.youThereData_)return z.return();B&&(_.m3("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.m1(),W.youThereData_,W.clientPlaybackNonce_),qq(W,W.youThereData_.showPausedActions),W.inYouThereFlow_=!0);_.HG(z)})};
_.pTM.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var W=_.k(this.youThereData_.userActiveDuringFlowAction,_.tr);W?qq(this,W.commands):qq(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.m3("YOU_THERE_EVENT_TYPE_LACT_RESET",_.m1(),this.youThereData_,this.clientPlaybackNonce_),_.bp());AXQ(this,!0)}_.wTQ(this,!1)};
_.VyN=function(W){_.m3("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.m1(),W.youThereData_,W.clientPlaybackNonce_)};
T7_=function(W){var B,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(W.playerProvider_().getPlayerPromise(),2);B=G.yieldResult;z=B.getPlayerState();return G.return(z==-1||z==1||z==3)})};
_.wTQ=function(W,B){var z;_.T(function(G){if(G.nextAddress==1){if(W.isUserPredictedAbsent_==B)return G.jumpTo(0);W.isUserPredictedAbsent_=B;return G.yield(W.playerProvider_().getPlayerPromise(),3)}z=G.yieldResult;z.setUserEngagement(B);B&&_.m3("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.m1(),W.youThereData_,W.clientPlaybackNonce_);_.HG(G)})};
qq=function(W,B){if(_.r("handle_service_request_actions")||_.r("kevlar_youthere_service_endpoint_actions_killswitch"))_.Jr(W.actionSenderElement_,B,W.actionSenderElement_);else{B=_.A(B);for(var z=B.next();!z.done;z=B.next())z=z.value,z.commandMetadata&&z.commandMetadata.webCommandMetadata&&z.commandMetadata.webCommandMetadata.sendPost?_.V0(W.actionSenderElement_,[z]):_.Jr(W.actionSenderElement_,[z],W.actionSenderElement_)}};var JXF;var gEK;var nC=function(){var W=_.S.apply(this,arguments)||this;W.systemIcons=_.r("kevlar_system_icons");W.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return W};
_.C(nC,_.S);nC.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var W=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(W=this.data.percentIfLiked||0,this.activated=!0):(W=this.data.percentIfIndifferent||0,this.activated=!1);_.tH(this.hostElement).querySelector("#like-bar").style.width=W+"%"}};
nC.prototype.handleUpdateSentimentBarStateCommand=function(W){this.data&&this.set("data.likeStatus",_.k(W,YcR).likeStatus)};
nC.prototype.observeLikeStatus=nC.prototype.observeLikeStatus;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],nC.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],nC.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],nC.prototype,"activated",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],nC.prototype,"systemIcons",void 0);_.Q([_.oN("data.likeStatus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nC.prototype,"observeLikeStatus",null);_.Q([_.u({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],nC);
_.D(nC,"ytd-sentiment-bar-renderer",function(){if(gEK!==void 0)return gEK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return gEK=W},{mode:1});var tyh;var Nq=function(){var W=_.S.apply(this,arguments)||this;W.small=!0;return W};
_.C(Nq,_.S);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Nq.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Nq.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Nq.prototype,"small",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Nq);
_.D(Nq,"ytd-video-view-count-renderer",function(){if(tyh!==void 0)return tyh;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tyh=W},{mode:_.PJ("kevlar_poly_si_batch_j080")?1:2});var $9=function(){var W=_.S.apply(this,arguments)||this;W.infoFormattedStrings=[];W.wrapVideoActions=_.r("kevar_watch_wrap_video_actions");W.hideSentimentBar=_.r("kevlar_watch_hide_sentiment_bar");W.actionMap={};return W};
_.C($9,_.S);_.p=$9.prototype;_.p.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.r("web_modern_buttons"),forceIconButton:!_.r("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.p.dataChanged=function(){_.r("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.p.computeInfoFormattedStrings=function(W){if(!W)return[];var B=[];W.dateText&&B.push(W.dateText);W.stationName&&B.push(W.stationName);W.rating&&B.push(W.rating);W.startEndTimeTemplate&&W.startTimeUtcMillis&&W.endTimeUtcMillis&&B.push(_.Bg(_.C9Q(_.zR(W.startEndTimeTemplate),Number(W.startTimeUtcMillis),Number(W.endTimeUtcMillis))));W.upNextProgramText&&B.push(W.upNextProgramText);return B};
_.p.scheduleInitialUpdatedMetadataRequest=function(){var W,B=(W=this.data)==null?void 0:W.updatedMetadataEndpoint;if(B){var z;W=Number((z=_.k(B,_.z7R))==null?void 0:z.initialDelayMs);z=isNaN(W)?250:W;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),z)}};
_.p.setSentimentBarWidth=function(){var W=this;_.BM(this,function(){var B=_.tH(W.hostElement).querySelector("ytd-menu-renderer");if(B){B=B.topLevelButtons;for(var z=0,G=0;G<B.length;G++){var Y=B[G],d=W.get("toggleButtonSupportedData.toggleButtonIdData.id",Y.data);if(d==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||d==="TOGGLE_BUTTON_ID_TYPE_LIKE")z+=Y.clientWidth+8;else break}z&&(W.sentiment.style.width=z-8+" px")}})};
_.p.fetchUpdatedMetadata=function(W){var B;W&&(B={continuation:W});var z;(W=(z=this.data)==null?void 0:z.updatedMetadataEndpoint)&&_.dO().resolve(_.p4).resolveCommand(W,{form:Object.assign({},B,{element:this.hostElement})})};
_.p.onYtServiceRequestSent=function(W,B){B.endpoint&&_.k(B.endpoint,_.yQ)&&(this.hasUpdateSentimentBarStateCommands()&&!_.r("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.k(B.endpoint,_.yQ).status),this.setSentimentBarWidth())};
_.p.hasUpdateSentimentBarStateCommands=function(){var W,B,z,G,Y=(G=(W=this.data)==null?void 0:(B=W.videoActions)==null?void 0:(z=B.menuRenderer)==null?void 0:z.topLevelButtons)!=null?G:[];W=_.A(Y);for(B=W.next();!B.done;B=W.next()){B=B.value;Y=G=z=void 0;var d=(z=B.toggleButtonRenderer)==null?void 0:(G=z.toggleButtonSupportedData)==null?void 0:(Y=G.toggleButtonIdData)==null?void 0:Y.id;if(d==="TOGGLE_BUTTON_ID_TYPE_LIKE"||d==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){G=z=void 0;B=(G=_.k((z=B.toggleButtonRenderer)==
null?void 0:z.defaultServiceEndpoint,_.tr))==null?void 0:G.commands;if(!B)break;B=_.A(B);for(z=B.next();!z.done;z=B.next())if(_.k(z.value,YcR))return!0}}return!1};
_.p.onYtServiceRequestCompleted=function(W,B){var z;(W=(z=B.data)==null?void 0:z.loggingDirectives)&&_.$Pk(_.SK(),W);this.get("continuation.timedContinuationData",B.data)&&this.data&&this.data.updatedMetadataEndpoint&&(B=B.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,B.continuation),B.timeoutMs))};
_.p.computeHasDateText=function(W){return!!W&&!!W.dateText};
_.G5.Object.defineProperties($9.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G;return!((G=(W=this.data)==null?void 0:(B=W.videoActions)==null?void 0:(z=B.menuRenderer)==null?void 0:z.flexibleItems)==null||!G.length)}}});
$9.prototype.onYtServiceRequestCompleted=$9.prototype.onYtServiceRequestCompleted;$9.prototype.onYtServiceRequestSent=$9.prototype.onYtServiceRequestSent;$9.prototype.dataChanged=$9.prototype.dataChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],$9.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],$9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.hu.YtTaskEmitterBehavior),_.y("design:type",Object)],$9.prototype,"ytTaskEmitterBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$9.prototype,"data",void 0);_.Q([_.F({computed:"computeInfoFormattedStrings(data)"}),_.y("design:type",Array)],$9.prototype,"infoFormattedStrings",void 0);
_.Q([_.F({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],$9.prototype,"hasDateText",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],$9.prototype,"wrapVideoActions",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],$9.prototype,"hideSentimentBar",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$9.prototype,"flexMenuEnabled",null);
_.Q([_.Hf("#sentiment"),_.y("design:type",Object)],$9.prototype,"sentiment",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$9.prototype,"dataChanged",null);_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],$9.prototype,"onYtServiceRequestSent",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],$9.prototype,"onYtServiceRequestCompleted",null);
_.D($9,"ytd-video-primary-info-renderer",function(){if(JXF===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);JXF=W}W=JXF;return W},{mode:1});var sgK;var LC=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return W};
_.C(LC,_.S);_.p=LC.prototype;_.p.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"}}}};
_.p.dataChanged=function(){var W;this.descriptionToggled=!((W=this.data)==null||!W.defaultExpanded);var B;this.collapsed=this.descriptionAlwaysCollapsed||!((B=this.data)==null?0:B.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.PA(110509);this.showLessClientVe=_.PA(110510);W=_.m1();B=_.et();W&&B&&_.Li(W,B,[this.showMoreClientVe,this.showLessClientVe])};
_.p.onYtExpanderMoreTapped=function(){var W,B=(W=this.data)==null?void 0:W.showMoreCommand;B&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(B);(W=_.m1())&&this.showMoreClientVe&&_.RP(W,this.showMoreClientVe)};
_.p.onYtExpanderLessTapped=function(){var W=_.m1();W&&this.showLessClientVe&&_.RP(W,this.showLessClientVe);var B;(W=(B=this.data)==null?void 0:B.showLessCommand)&&this.componentBehavior.resolveCommand(W)};
_.p.handleUpdateDateTextAction=function(W){this.data&&this.data.dateText&&this.set("data.dateText",_.k(W,_.WD3).dateText)};
_.p.handleUpdateDescriptionAction=function(W){if(W=_.k(W,_.zvM))W.isEmpty||!W.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.y2(W.description)):this.set("data.description",W.description)};
_.p.onYtChangeEngagementPanelVisibilityAction=function(W){if(_.r("web_structured_description_show_more")||_.r("web_engagement_panel_open_description")){var B,z=(B=_.k(W,_.EcD))==null?void 0:B.targetId,G;W=((G=_.k(W,_.EcD))==null?void 0:G.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";z==="engagement-panel-structured-description"&&W&&(this.descriptionToggled=!0)}};
_.p.updateCollapsedFromBinding=function(W){this.collapsed=W.detail.value};
_.p.updateDescriptionToggledFromBinding=function(W){this.descriptionToggled=W.detail.value};
_.p.updateCanCollapseFromBinding=function(W){this.canCollapse=W.detail.value};
_.G5.Object.defineProperties(LC.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var W,B,z=(W=this.data)==null?void 0:(B=W.metadataRowContainer)==null?void 0:B.metadataRowContainerRenderer;return!!z&&!!z.rows&&z.rows.length>z.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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}}});
LC.prototype.onYtExpanderLessTapped=LC.prototype.onYtExpanderLessTapped;LC.prototype.onYtExpanderMoreTapped=LC.prototype.onYtExpanderMoreTapped;LC.prototype.dataChanged=LC.prototype.dataChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],LC.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],LC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],LC.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],LC.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],LC.prototype,"collapsed",void 0);_.Q([_.F(),_.y("design:type",Boolean)],LC.prototype,"descriptionToggled",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],LC.prototype,"canCollapse",void 0);_.Q([_.F(),_.y("design:type",Object)],LC.prototype,"subscribeButtonData",void 0);_.Q([_.F(),_.y("design:type",Number)],LC.prototype,"descriptionCollapsedHeight",void 0);_.Q([_.F(),_.y("design:type",Object)],LC.prototype,"structuredDescriptionContentRenderer",void 0);_.Q([_.F({value:function(){return _.r("web_watch_description_always_collapsed")}}),
_.y("design:type",Boolean)],LC.prototype,"descriptionAlwaysCollapsed",void 0);_.Q([_.Hf("#description"),_.y("design:type",HTMLDivElement)],LC.prototype,"description",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LC.prototype,"dataChanged",null);_.Q([_.IN("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LC.prototype,"onYtExpanderMoreTapped",null);
_.Q([_.IN("yt-expander-less-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LC.prototype,"onYtExpanderLessTapped",null);_.Q([_.H("data.metadataRowContainer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LC.prototype,"metadataCollapsible",null);_.Q([_.H("data","structuredDescriptionContentRenderer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LC.prototype,"hasInlineStructuredDescription",null);
_.Q([_.H("data.attributedDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LC.prototype,"hasAttributedDescription",null);_.Q([_.H("hasInlineStructuredDescription","collapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LC.prototype,"loadStructuredDescription",null);_.Q([_.H("data","structuredDescriptionContentRenderer","collapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LC.prototype,"showInlineStructuredDescription",null);
_.Q([_.H("data","hasInlineStructuredDescription","metadataCollapsible"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LC.prototype,"descriptionAlwaysCollapsible",null);
_.D(LC,"ytd-video-secondary-info-renderer",function(){if(sgK===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);sgK=W}W=sgK;return W},{mode:2});var PpR;var UN=function(){return _.S.apply(this,arguments)||this};
_.C(UN,_.S);UN.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:_.r("web_modern_buttons"),forceIconButton:!_.r("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
UN.prototype.activate=function(W){W.appendTo(this.player);W.getPlayerPromise().then(function(B){B.setMinimized(!0)});
this.active=!0};
UN.prototype.deactivate=function(){var W=this.player.firstElementChild;W.getPlayerPromise().then(function(B){B.setMinimized(!1)});
this.active=!1;return W};
UN.prototype.onScrollUpTap=function(){var W=_.dO().resolve(_.ij).getCurrentPage();W&&W.setScrollTop(0)};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],UN.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],UN.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],UN.prototype,"active",void 0);
_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.y("design:type",Boolean)],UN.prototype,"darkLaunch",void 0);_.Q([_.Hf("#player"),_.y("design:type",HTMLDivElement)],UN.prototype,"player",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],UN);
_.D(UN,"ytd-miniplayer-bar-renderer",function(){if(PpR!==void 0)return PpR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return PpR=W},{mode:1});_.Vm(_.m(function(W){var B=_.LG("script");_.ja(function(){var z;if(z=JSON)z=B7_(W.data()),z=_.YA(JSON.stringify(z).replace(/</g,"\\u003C"));var G=W.data(),Y=_.zR(G.title).trim().length===0,d=!G.publishDate||G.publishDate.trim().length===0,E,v,c,J,g=!((E=G.thumbnail)==null?0:(v=E.thumbnails)==null?0:v.length)||!((c=G.thumbnail)==null?0:c.thumbnails[0].url)||((J=G.thumbnail)==null?void 0:J.thumbnails[0].url.trim().length)===0;B.value&&z&&!(Y||d||g)&&_.dj(B.value,z)},"Vy9K7b");
return _.w("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.w("script",{el:B,type:"application/ld+json"}))},"il"),"player-microformat-renderer",{props:{data:_.wS}});
}catch(e){_._DumpException(e)}
try{
var vbZ,cDK,JDN;_.T2o=function(W){return W.watch.watchWindowSize};
vbZ=function(W,B){var z=document.querySelector(W);z?B(z):setTimeout(function(){vbZ(W,B)},1E3)};
cDK=function(W,B,z,G){if(W.isLockupToWatchTransitionEnabled){if(B){var Y={};Y=(Y["watch-next-appears"]="player-watch-next-loaded",Y);Y["lockup-to-watch"]=W.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";W.viewTransitionCoordinator.registerElement(B,Y)}z&&(B={},W.viewTransitionCoordinator.registerElement(z,(B["lockup-to-watch"]="below-lockup-to-watch",B["watch-next-appears"]="below-watch-next-loaded",B)));G&&(z={},W.viewTransitionCoordinator.registerElement(G,
(z["watch-next-appears"]="secondary-watch-next-loaded",z)))}};
_.VlN=function(W){return _.Tl({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:W}})};
JDN=new _.J1("webWatchNextResponseExtensionData");var tlR=function(W){_.bA.call(this);var B=this;this.JSC$23081_watchApi=W;this.observer=null;var z=this.JSC$23081_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gbN(B)});
this.addOnDisposeCallback(function(){B.JSC$23081_watchApi.unsubscribeByKey(z);B.observer&&(B.observer.disconnect(),B.observer=null)});
gbN(this)};
_.C(tlR,_.bA);
var gbN=function(W){var B,z,G,Y;_.T(function(d){if(d.nextAddress==1){W.observer&&(W.observer.disconnect(),W.observer=null);B=W.JSC$23081_watchApi.getWatchNextResponse();if(!B)return d.return();z=_.k(B,JDN);return(G=z)!=null&&G.enableCreatorChatbot?d.yield((0,_.xFx)("NSzT5"),3):d.jumpTo(0)}Y=_.GyO;Y();vbZ("ytd-watch-metadata",function(E){W.observer=new MutationObserver(function(){var v,c;(v=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(c=v.closest("yt-button-view-model.ytd-menu-renderer"))==
null||c.remove()});
W.observer.observe(E,{childList:!0,subtree:!0})});
_.HG(d)})};var P2m=function(W){_.bA.call(this);this.JSC$23085_watchApi=W;seR(this)};
_.C(P2m,_.bA);var seR=function(W){_.T(function(B){if(B.nextAddress==1)return B.yield(Zgm(W),2);rDb(W);_.HG(B)})},Zgm=function(W){var B,z,G,Y;
return _.T(function(d){if(d.nextAddress==1)return d.yield(W.JSC$23085_watchApi.playerApi,2);B=d.yieldResult;W.JSC$23085_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){kUZ(W)});
z=W.JSC$23085_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){rDb(W)});
G=function(E){W.onCueRangeEnter(E)};
B.addEventListener("onCueRangeEnter",G);Y=function(E){W.onCueRangeExit(E)};
B.addEventListener("onCueRangeExit",Y);W.addOnDisposeCallback(function(){W.JSC$23085_watchApi.unsubscribeByKey(z);B.removeEventListener("onCueRangeEnter",G);B.removeEventListener("onCueRangeExit",Y)});
_.HG(d)})},l_b=function(W){var B,z,G,Y,d,E,v,c,J;
return(d=(B=W.contents)==null?void 0:(z=B.twoColumnWatchNextResults)==null?void 0:(G=z.results)==null?void 0:(Y=G.results)==null?void 0:Y.contents)==null?void 0:(E=d.find(function(g){var t,P,Z;return(t=g.itemSectionRenderer)==null?void 0:(P=t.contents)==null?void 0:(Z=P[0])==null?void 0:Z.shoppingTimelyShelfViewModel}))==null?void 0:(v=E.itemSectionRenderer)==null?void 0:(c=v.contents)==null?void 0:(J=c[0])==null?void 0:J.shoppingTimelyShelfViewModel},rDb=function(W){var B;
_.T(function(z){if(z.nextAddress==1)return(B=W.JSC$23085_watchApi.getWatchNextResponse())?z.yield(kUZ(W),2):z.return();W.shoppingTimelyShelfViewModel=l_b(B);C2R(W);I_K(W);_.HG(z)})},C2R=function(W){var B,z=(B=W.shoppingTimelyShelfViewModel)==null?void 0:B.offerIdToVariants;
z&&(B=z.filter(function(G){return G.key&&G.value}).map(function(G){return[G.key,
G.value]}),W.variantsMap=new Map(B))},I_K=function(W){var B,z,G,Y,d,E;
_.T(function(v){if(v.nextAddress==1)return(z=(B=W.shoppingTimelyShelfViewModel)==null?void 0:B.cueRanges)?v.yield(W.JSC$23085_watchApi.playerApi,2):v.return();G=v.yieldResult;W.cueRanges=z;Y=_.A(z);for(d=Y.next();!d.done;d=Y.next())E=d.value,E.startTime!==void 0&&E.endTime!==void 0&&E.id!==void 0&&G.addCueRange("shopping_timely_shelf"+E.id,obQ(E.startTime),obQ(E.endTime));_.HG(v)})},obQ=function(W){return Number(W.seconds||0)+(W.nanos||0)/1E9};
P2m.prototype.onCueRangeEnter=function(W){if(W.startsWith("shopping_timely_shelf")){var B=W.substring(21),z,G;W=(z=this.variantsMap)==null?void 0:(G=z.get(B))==null?void 0:G.shelf;if(_.r("web_enable_shopping_timely_shelf_client_overwrite")){var Y,d,E,v,c;z=W==null?void 0:(Y=W.shoppingTimelyShelfContentViewModel)==null?void 0:(d=Y.button)==null?void 0:(E=d[1])==null?void 0:(v=E.buttonViewModel)==null?void 0:(c=v.onTap)==null?void 0:c.innertubeCommand;var J,g;if(z==null?0:(J=z.menuEndpoint)==null?0:
(g=J.menu)==null?0:g.menuRenderer)z.openPopupAction=z.menuEndpoint,z.openPopupAction.popup=z.openPopupAction.menu,z.openPopupAction.popup.menuPopupRenderer=z.openPopupAction.popup.menuRenderer,z.openPopupAction.popupType="DROPDOWN",delete z.menuEndpoint,delete z.openPopupAction.menu,delete z.openPopupAction.popup.menuRenderer}W&&this.JSC$23085_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",W)}};
P2m.prototype.onCueRangeExit=function(W){W.startsWith("shopping_timely_shelf")&&this.JSC$23085_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var kUZ=function(W){var B,z,G,Y,d;return _.T(function(E){if(E.nextAddress==1)return E.yield(W.JSC$23085_watchApi.playerApi,2);B=E.yieldResult;if(W.cueRanges)for(z=_.A(W.cueRanges),G=z.next();!G.done;G=z.next())Y=G.value,Y.id&&(d="shopping_timely_shelf"+Y.id,B.removeCueRange(d));W.JSC$23085_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});W.shoppingTimelyShelfViewModel=void 0;W.cueRanges=void 0;W.variantsMap=void 0;_.HG(E)})};var bgZ=function(W){_.bA.call(this);var B=this;this.JSC$23092_watchApi=W;W=_.NG(_.Y_(),_.Oz0,function(){h3N(B)});
this.addOnDisposeCallback(W);W=_.NG(_.Y_(),_.T2o,function(){h3N(B)});
this.addOnDisposeCallback(W);Hgb(this);Fg_(this);SEK()};
_.C(bgZ,_.bA);var Hgb=function(W){var B=function(G){_.Y_().dispatch(_.PQo(G.matches))},z=window.matchMedia("(max-width: "+(999+_.tb())+"px)");
z.addListener(B);W.addOnDisposeCallback(function(){z.removeListener(B)});
B(z)},Fg_=function(W){W.JSC$23092_watchApi.registerActionHandler("yt-window-resized",function(){SEK()});
W.addOnDisposeCallback(function(){W.JSC$23092_watchApi.unregisterActionHandler("yt-window-resized")})},SEK=function(){var W=_.Ft();
_.Y_().dispatch(_.Tl({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:W.width,height:W.height}}}))},h3N=function(W){var B;
_.T(function(z){if(z.nextAddress==1)return z.yield(W.JSC$23092_watchApi.playerApi,2);B=z.yieldResult;B.setSize(NaN,NaN);_.HG(z)})};var jeQ=function(W){_.bA.call(this);var B=_.dO().resolve(_.LD);cDK(B,W.getElement("PLAYER_CONTAINER"),W.getElement("BELOW_THE_PLAYER"),W.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var z=W.getElement("PLAYER_CONTAINER"),G=W.getElement("BELOW_THE_PLAYER"),Y=W.getElement("SECONDARY");B.isLockupToWatchTransitionEnabled&&(z&&_.n2(B.viewTransitionCoordinator,z),G&&_.n2(B.viewTransitionCoordinator,G),Y&&_.n2(B.viewTransitionCoordinator,Y))})};
_.C(jeQ,_.bA);_.mc=function(W){_.Dg.call(this);var B=this;this.rootElement=W;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return B.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(z){B.initOrDisposeActiveModules(z)}));
this.onAttached()};
_.C(_.mc,_.Dg);_.p=_.mc.prototype;_.p.getRoot=function(){return this.rootElement};
_.p.getElement=function(W){return this.rootElement.getElement(W)};
_.p.setPlayerResponse=function(W){this.playerResponse=W;this.publish("PLAYER_RESPONSE_UPDATED",W)};
_.p.getPlayerResponse=function(){return this.playerResponse};
_.p.setWatchNextResponse=function(W){this.watchNextResponse===W?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=W,this.publish("WATCH_NEXT_RESPONSE_UPDATED",W))};
_.p.getWatchNextResponse=function(){return this.watchNextResponse};
_.p.registerActionHandler=function(W,B){var z=this;if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var G={};_.yx(_.Qx.getInstance(),(G[W]=B,G),this.getRoot())}else this.actionHandlers.has(W)||(this.actionHandlers.set(W,[]),G={},_.yx(_.Qx.getInstance(),(G[W]=function(){var Y=_.nm.apply(0,arguments);return(z.actionHandlers.get(W)||[]).map(function(d){return d.apply(null,_.u7(Y))})},G),this.getRoot())),this.actionHandlers.get(W).push(B)};
_.p.unregisterActionHandler=function(W){if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var B={};_.Nl(_.Qx.getInstance(),(B[W]=!0,B),this.getRoot())}else(B=this.actionHandlers.get(W))?(B.pop(),B.length===0&&(B={},_.Nl(_.Qx.getInstance(),(B[W]=!0,B),this.getRoot()),this.actionHandlers.delete(W))):_.Oc(new _.oX("Attempted to unregister an action handler which is not registered.",W))};
_.p.addPageDisposeJob=function(W){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.kTT(this.rootElement.pageDisposeJobs,W)};
_.p.removePageDisposeJob=function(W){this.rootElement.pageDisposeJobs&&_.Dv(this.rootElement.pageDisposeJobs,W)};
_.p.dispatchEvent=function(W,B){_.v0(this.rootElement,W,B)};
_.p.provideRenderingData=function(W,B){this.rootElement.provideRenderingData(W,B)};
_.p.scrollWatchTo=function(W,B){var z;(z=this.watchScrollManager)==null||z.scrollWatchTo(W,B)};
_.p.focusOnPlayer=function(){var W=this.getElement("PLAYER");_.BM(W,function(){if(W&&W.firstElementChild){var B=W.querySelector(".html5-video-player");B&&(_.H$(_.dO().resolve(_.jX)),B.focus())}else _.Oc(Error("Ro"))})};
_.p.subscribeToActiveChanged=function(W,B){B=B===void 0?!0:B;var z=_.NG(_.Y_(),_.P9N,function(G){W(G)});
B&&W(_.P9N(_.Y_().getState()));return z};
_.p.isActive=function(){return _.P9N(_.Y_().getState())};
_.p.onAttached=function(){var W=_.r("external_fullscreen");_.r("use_unified_flag_accessor")&&(W=_.dO().resolve(_.S0b).retriever.getFlag(_.ZRR));(W||_.md("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var f_Q=function(W){return W.getRoot().is==="ytd-watch-flexy"||W.getRoot().is==="ytd-watch-grid"},x9=function(W){return W.getRoot().is==="ytd-watch-fixie"};
_.mc.prototype.initPersistentModules=function(){if(x9(this)||f_Q(this)&&_.r("kevlar_watch_flexy_theater_manager")){var W=new _.Ox_(this);_.rH(this,W)}W=new _.k4h(this);_.rH(this,W);W=new _.fC(this);_.rH(this,W);W=new _.sXK(this);_.rH(this,W);W=new _.aoN(this);_.rH(this,W);W=new _.ON(this);_.rH(this,W);if(x9(this)||f_Q(this)&&_.r("kevlar_watch_flexy_playlist_manager"))W=new _.B2N(this),_.rH(this,W);_.r("web_thumbnail_to_watch_transition")&&(W=new jeQ(this),_.rH(this,W))};
_.mc.prototype.initOrDisposeActiveModules=function(W){W?(this.watchScrollManager=new _.eP(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.usF(this)),_.r("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new P2m(this)),this.activeModules.push(new _.K6M(this)),x9(this)&&this.activeModules.push(new bgZ(this)),this.activeModules.push(new _.AD3(this)),this.activeModules.push(new _.SAR(this)),(x9(this)||_.r("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.DwN(this)),this.activeModules.push(new _.yCM(this)),(x9(this)||_.r("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.Ebh(this)),(x9(this)||_.r("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.MDN(this)),_.r("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.ztQ(this),this.activeModules.push(this.watchCinematicManager)),_.r("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.$n_(this)),_.r("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.Z4Q(this)),W=_.r("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.r("kevlar_watch_flexy_comments_manager")&&!W&&this.activeModules.push(new _.wSN(this)),_.r("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.WdZ(this)),this.activeModules.push(new _.QJK(this)),this.activeModules.push(new _.mnM(this)),_.r("web_enable_timely_actions")&&this.activeModules.push(new _.NYh(this)),_.r("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.JWZ(this)),_.r("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.pRm(this)),_.r("web_fullscreen_components")&&this.activeModules.push(new _.n$m(this)),_.r("web_player_rtr_ctrls")&&this.activeModules.push(new _.tDm(this)),_.r("enable_creator_chatbot")&&this.activeModules.push(new tlR(this))):(_.iA(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.mc.prototype.disposeInternal=function(){_.Dg.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.G5.Object.defineProperties(_.mc.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var T_j,GK,vKq,cFn,Vz0,JFn,wu9,gKO;T_j=function(){var W=_.hr();W.info||(W.info={});return W.info};
GK=function(W){return Math.round(_.bH()+W)};
vKq=function(){var W;if(_.r("csi_use_performance_navigation_timing")){var B,z,G,Y=_.S4==null?void 0:(W=_.S4.getEntriesByType)==null?void 0:(B=W.call(_.S4,"navigation"))==null?void 0:(z=B[0])==null?void 0:(G=z.toJSON)==null?void 0:G.call(z);Y?(Y.requestStart=GK(Y.requestStart),Y.responseEnd=GK(Y.responseEnd),Y.redirectStart=GK(Y.redirectStart),Y.redirectEnd=GK(Y.redirectEnd),Y.domainLookupEnd=GK(Y.domainLookupEnd),Y.connectStart=GK(Y.connectStart),Y.connectEnd=GK(Y.connectEnd),Y.responseStart=GK(Y.responseStart),
Y.secureConnectionStart=GK(Y.secureConnectionStart),Y.domainLookupStart=GK(Y.domainLookupStart),Y.isPerformanceNavigationTiming=!0,W=Y):W=_.S4.timing}else W=_.r("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.S4.timing)):_.S4.timing;return W};
cFn=function(){if(_.S4.getEntriesByType){var W=_.S4.getEntriesByType("paint");if(W=_.OX(W,function(z){return z.name==="first-paint"}))return GK(W.startTime)}var B;
_.r("csi_use_performance_navigation_timing")?B=_.S4.getEntriesByType("first-paint")[0].startTime:B=_.S4.timing.msFirstPaint;return B?Math.max(0,B):0};
Vz0=function(){var W=window.location.protocol,B=_.S4.getEntriesByType("resource");B=_.wb(B,function(z){return z.name.indexOf(W+"//fonts.gstatic.com/s/")===0});
(B=wu9(B,function(z,G){return G.duration>z.duration?G:z}))&&B.startTime>0&&B.responseEnd>0&&(_.j4("wffs",GK(B.startTime)),_.j4("wffe",GK(B.responseEnd)))};
JFn=function(W,B){W=document.querySelector(W);if(!W)return!1;var z="",G=W.nodeName;G==="SCRIPT"?(z=W.src,z||(z=W.getAttribute("data-timing-href"))&&(z=window.location.protocol+z)):G==="LINK"&&(z=W.href);_.zd(document)&&W.setAttribute("nonce",_.zd(document));return z?(W=_.S4.getEntriesByName(z))&&W[0]&&(W=W[0],z=_.bH(),_.j4("rsf_"+B,z+Math.round(W.fetchStart)),_.j4("rse_"+B,z+Math.round(W.responseEnd)),W.transferSize!==void 0&&W.transferSize===0)?!0:!1:!1};
_.Yd=function(W,B){_.D5(function(){_.FO("").info.actionType=W;B&&_.uk("TIMING_AFT_KEYS",B);_.uk("TIMING_ACTION",W);var z=_.g02(_.eD("TIMING_INFO",{}));Object.keys(z).length>0&&_.fi(z);z={isNavigation:!0,actionType:_.GkR(_.eD("TIMING_ACTION"))};var G=_.eD("PREVIOUS_ACTION");G&&(z.previousAction=_.GkR(G));if(G=_.eD("CLIENT_PROTOCOL"))z.httpProtocol=G;if(G=_.eD("CLIENT_TRANSPORT"))z.transportProtocol=G;(G=_.m1())&&G!=="UNDEFINED_CSN"&&(z.clientScreenNonce=G);G=_.J7R();if(G===1||G===-1)z.isVisible=!0;
G=_.LND().loadType==="cold";var Y=T_j();G||(G=Y.yt_lt==="cold");if(G){z.loadType="cold";G=T_j();Y=vKq();var d=_.bH(),E=_.eD("CSI_START_TIMESTAMP_MILLIS",0);E>0&&!_.r("embeds_web_enable_csi_start_override_killswitch")&&(d=E);d&&(_.j4("srt",Y.responseStart),G.prerender!==1&&_.irQ(d));G=cFn();G>0&&_.j4("fpt",G);G=vKq();G.isPerformanceNavigationTiming&&_.fi({performanceNavigationTiming:!0},void 0);_.j4("nreqs",G.requestStart,void 0);_.j4("nress",G.responseStart,void 0);_.j4("nrese",G.responseEnd,void 0);
G.redirectEnd-G.redirectStart>0&&(_.j4("nrs",G.redirectStart,void 0),_.j4("nre",G.redirectEnd,void 0));G.domainLookupEnd-G.domainLookupStart>0&&(_.j4("ndnss",G.domainLookupStart,void 0),_.j4("ndnse",G.domainLookupEnd,void 0));G.connectEnd-G.connectStart>0&&(_.j4("ntcps",G.connectStart,void 0),_.j4("ntcpe",G.connectEnd,void 0));G.secureConnectionStart>=_.bH()&&G.connectEnd-G.secureConnectionStart>0&&(_.j4("nstcps",G.secureConnectionStart,void 0),_.j4("ntcpe",G.connectEnd,void 0));_.S4&&"getEntriesByType"in
_.S4&&Vz0();G=[];if(document.querySelector&&_.S4&&_.S4.getEntriesByName)for(var v in gKO)gKO.hasOwnProperty(v)&&(Y=gKO[v],JFn(v,Y)&&G.push(Y));if(G.length>0)for(z.resourceInfo=[],v=_.A(G),G=v.next();!G.done;G=v.next())z.resourceInfo.push({resourceCache:G.value})}_.fi(z);z=_.H0();z.preLoggedGelInfos||(z.preLoggedGelInfos=[]);v=z.preLoggedGelInfos;z=_.MY8();G=void 0;for(Y=0;Y<v.length;Y++)if(d=v[Y],d.loadType){G=d.loadType;break}if(_.LND().loadType==="cold"&&(z.loadType==="cold"||G==="cold")){G=_.Uzx();
Y=_.H0();Y=Y.gelTicks?Y.gelTicks:Y.gelTicks={};for(var c in G)if(!(c in Y))if(typeof G[c]==="number")_.j4(c,_.O2(c));else if(_.r("log_repeated_ytcsi_ticks"))for(d=_.A(G[c]),E=d.next();!E.done;E=d.next())E=E.value,_.j4(c.slice(1),E);c={};G=!1;v=_.A(v);for(Y=v.next();!Y.done;Y=v.next())G=Y.value,_.yK(z,G),_.yK(c,G),G=!0;G&&_.fi(c)}_.Zrr(!0);c=_.eD("TIMING_ACTION");_.q6("ytglobal.timingready_")&&c&&_.FfD()&&_.Po2()&&_.wdv()})()};
wu9=function(W,B){return Array.prototype.reduce.call(W,B,{duration:0})};
gKO={'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 tzO={};tzO.YtVisibilityRootBehavior=[_.zB7.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.AI(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.eD("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var W=_.eD("INNERTUBE_CLIENT_NAME")!=="WEB";_.r("kevlar_use_vimio_behavior")&&W&&_.Bs7()}}];_.dz={};_.dz.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(W){W.detail.contextProvider=this;W.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
tzO.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.zN();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(W){var B=this;this.pageCount+=1;_.r("kevlar_use_vimio_behavior")&&(_.eD("INNERTUBE_CLIENT_NAME")==="WEB"?_.fg.addJob(function(){B.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(W)},
loadPage_:function(W){this.data=W},
ytPageBehaviorActiveObserver_:function(W){var B=this;_.r("kevlar_use_vimio_behavior")&&(W?_.eD("INNERTUBE_CLIENT_NAME")==="WEB"?_.fg.addJob(function(){B.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(W){if(!this.setScrollTopJobId_){var B=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){B.setScrollTopJobId_=0;var z=_.dO().resolve(_.Y8(_.jX));z&&_.H$(z);this.getPageScrollingElement().scrollTop=W}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.mk(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var EKj;var zK=function(){var W=_.S.apply(this,arguments)||this;W.playerListenerConfig=null;W.actionMap={"yt-show-watch-page-survey":"openSurvey"};return W};
_.C(zK,_.S);_.p=zK.prototype;_.p.dataChanged=function(){var W=this,B=_.TN();B&&B.getPlayerPromise().then(function(G){W.maybeRemovePlayerListeners(G)});
var z=this.data&&this.data.survey;z&&((z=(z=z.singleOptionSurveyRenderer||z.checkboxSurveyRenderer||z.multiStageSurveyRenderer)&&z.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(B,z):this.openSurvey())};
_.p.triggerWatchPageSurvey=function(W,B){var z=this,G,Y,d,E,v,c,J,g,t;return _.T(function(P){if(P.nextAddress==1)return W?P.yield(W.getPlayerPromise(),2):P.return();z.player=P.yieldResult;if(!z.player)return P.return();G={};Y=_.A(B);for(d=Y.next();!d.done;d=Y.next())E=d.value,v=_.A(z.createEventListenerPair(E)),c=v.next().value,J=v.next().value,g=c,t=J,g&&t&&(G[g]=t,z.ytPlayerListenerBehavior.listenToPlayerEvent(z.player,g,t));z.playerListenerConfig=G;_.HG(P)})};
_.p.createEventListenerPair=function(W){var B=W.playbackEventTrigger;return B?this.handlePlaybackTrigger(B):(W=W.watchTimeTrigger)?this.handleWatchTimeTrigger(W):[void 0,void 0]};
_.p.handleWatchTimeTrigger=function(W){var B=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var z=W.videoWatchFraction,G=W.watchTimeSec;return G&&z?["onVideoProgress",function(){B.player&&B.isWatchTimeConditionMet(B.player,z,G)&&B.showSurvey()}]:[void 0,
void 0]};
_.p.isWatchTimeConditionMet=function(W,B,z){var G=W.getProgressState(),Y=G.current-this.lastKnownPlaybackPosition;Y<5&&(this.accumulatedMediaTime+=Y);this.lastKnownPlaybackPosition=G.current;G=Math.round(this.accumulatedMediaTime/G.duration*1E3)/1E3;return W.getPresentingPlayerType&&W.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>z||G>B)};
_.p.handlePlaybackTrigger=function(W){var B=this;W=W.playbackEvent;if(W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var z="onStateChange";var G=function(Y){Y===0&&B.showSurvey()}}else W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(z="onVideoProgress",G=function(Y){B.player&&B.player.getPresentingPlayerType&&B.player.getPresentingPlayerType()===1&&Y&&B.showSurvey()}):W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(z="onAdEnd",G=this.showSurvey);
return[z,G]};
_.p.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.p.openSurvey=function(){var W=this,B=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.K1f(!!B));_.fg.addJob(function(){W.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:B}})},0,0)};
_.p.maybeRemovePlayerListeners=function(W){if(this.playerListenerConfig){for(var B=_.A(Object.keys(this.playerListenerConfig)),z=B.next();!z.done;z=B.next())z=z.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(W,z,this.playerListenerConfig[z]);this.playerListenerConfig=null}};
zK.prototype.dataChanged=zK.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],zK.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",_.kI)],zK.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],zK.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.h(_.TB),_.y("design:type",Object)],zK.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],zK.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],zK.prototype,"playerListenerConfig",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],zK.prototype,"lastKnownPlaybackPosition",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],zK.prototype,"accumulatedMediaTime",void 0);_.Q([_.F(),_.y("design:type",Object)],zK.prototype,"player",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zK.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],zK);
_.D(zK,"ytd-survey-trigger-renderer",function(){if(EKj!==void 0)return EKj;var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return EKj=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Bio=new _.J1("promotedSparklesWebRenderer");var z1m=new _.J1("relatedChipCommand");var Gqm;var Ybh;var OH=function(){return _.S.apply(this,arguments)||this};
_.C(OH,_.S);OH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],OH.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],OH);
_.D(OH,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Ybh!==void 0)return Ybh;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Ybh=W},{mode:1});var dfh;var pnQ;var AKo;var XY=function(){return _.S.apply(this,arguments)||this};
_.C(XY,_.S);XY.prototype.ready=function(){this.initializeDefs()};
XY.prototype.initializeDefs=function(){var W=this.meta.byKey("yt-icons"),B=_.tH(W).querySelector("#star"),z=_.tH(W).querySelector("#star_half");W=_.tH(W).querySelector("#star_border");B&&this.defs.appendChild(B.cloneNode(!0));z&&this.defs.appendChild(z.cloneNode(!0));W&&this.defs.appendChild(W.cloneNode(!0))};
XY.prototype.percentChanged=function(){for(var W=this.rating;W.firstChild;)W.removeChild(W.firstChild);var B=Math.round(this.percent/10);W=Math.floor(B/2);B%=2;var z=5-W-B;this.appendStars("star",W,0);this.appendStars("star_half",B,W);this.appendStars("star_border",z,W+B)};
XY.prototype.appendStars=function(W,B,z){for(var G=0;G<B;G++){var Y=(18+this.spacing)*(G+z),d=document.createElementNS("http://www.w3.org/2000/svg","use");_.WH0(d,"#"+W);d.setAttribute("x",""+Y);d.setAttribute("y","0");this.rating.appendChild(d)}};
XY.prototype.percentChanged=XY.prototype.percentChanged;_.Q([_.Hf("#defs"),_.y("design:type",HTMLElement)],XY.prototype,"defs",void 0);_.Q([_.Hf("#rating"),_.y("design:type",HTMLElement)],XY.prototype,"rating",void 0);_.Q([_.F(),_.y("design:type",Number)],XY.prototype,"percent",void 0);_.Q([_.F({value:6}),_.y("design:type",Number)],XY.prototype,"spacing",void 0);_.Q([_.F({value:_.QX.create("iron-meta",{type:"iconset"})}),_.y("design:type",_.Np)],XY.prototype,"meta",void 0);
_.Q([_.oN("percent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],XY.prototype,"percentChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-ratings"})],XY);
_.D(XY,"ytd-ratings",function(){if(AKo!==void 0)return AKo;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return AKo=W},{mode:1});var iOR=function(){return _.S.apply(this,arguments)||this};
_.C(iOR,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],iOR.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],iOR.prototype,"data",void 0);_.Q([_.u({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],iOR);
_.D(iOR,"ytd-offer-review-renderer",function(){if(pnQ!==void 0)return pnQ;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return pnQ=W},{mode:1});var KT=function(){var W=_.S.apply(this,arguments)||this;W.badges=[{textBadge:{label:_.Bg("CC")}}];return W};
_.C(KT,_.S);_.p=KT.prototype;_.p.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.p.dataChanged=function(){var W=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(W&&W.commandMetadata&&_.k(W.commandMetadata,_.$N)&&_.k(W.commandMetadata,_.$N).fireAutomatically)_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}});else{var B;W&&((B=_.k(W,_.$N))==null?0:B.fireAutomatically)&&_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}})}};
_.p.isEmptyContent=function(W){return this.isStorefrontEntryPointEmpty(W)&&this.shouldHideOfferModule(W)};
_.p.isStorefrontEntryPointEmpty=function(W){return!W||!W.storefrontEntryPoint};
_.p.shouldHideOfferModule=function(W){return!!W.hideVideoDetails};
_.p.isOfferModuleNavigationInactive=function(W){return!W.navigationEndpoint&&!W.serviceEndpoint};
_.p.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.dO().resolve(_.p4).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
KT.prototype.dataChanged=KT.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],KT.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],KT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],KT.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.y("design:type",Boolean)],KT.prototype,"hidden",void 0);
_.Q([_.F(),_.y("design:type",Object)],KT.prototype,"badges",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KT.prototype,"dataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],KT);
_.D(KT,"ytd-movie-offer-module-renderer",function(){if(dfh!==void 0)return dfh;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dfh=W},{mode:1});var EYR;var Tih=function(){return _.S.apply(this,arguments)||this};
_.C(Tih,_.S);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Tih.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Tih.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Tih);
_.D(Tih,"ytd-media-masthead-renderer",function(){if(EYR!==void 0)return EYR;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return EYR=W},{mode:1});var vYN;_.Vm(_.odQ,"course-metadata-view-model",{props:{data:_.wS,isOverlay:_.wS}});var uv=function(){var W=_.S.apply(this,arguments)||this;W.isMetadataVisible=!1;W.modernPanels=_.r("kevlar_watch_modern_panels");W.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return W};
_.C(uv,_.S);_.p=uv.prototype;
_.p.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"}}}}};
_.p.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.p.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.p.expanderChanged=function(){var W;if((W=this.data)==null?0:W.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.p.isExpandButtonToggled=function(){var W,B;return(B=_.k((W=this.data)==null?void 0:W.expandMetadataButton,_.Jw))==null?void 0:B.isToggled};
_.p.onVisibilityButtonClick=function(){var W;if((W=this.data)==null?0:W.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.p.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
uv.prototype.expanderChanged=uv.prototype.expanderChanged;uv.prototype.dataChanged=uv.prototype.dataChanged;uv.prototype.descriptionChanged=uv.prototype.descriptionChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],uv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h([_.ye.YtActionHandlerBehavior]),_.y("design:type",Object)],uv.prototype,"actionHandlerBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],uv.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],uv.prototype,"isMetadataVisible",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],uv.prototype,"modernPanels",void 0);_.Q([_.Hf("#expander"),_.y("design:type",Object)],uv.prototype,"expander",void 0);_.Q([_.oN("data.description"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uv.prototype,"descriptionChanged",null);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uv.prototype,"dataChanged",null);_.Q([_.oN("isMetadataVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uv.prototype,"expanderChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],uv);
_.D(uv,"ytd-tvfilm-offer-module-renderer",function(){if(vYN!==void 0)return vYN;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return vYN=W},{mode:2});var cKm;var eO=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return W};
_.C(eO,_.S);eO.prototype.dataChanged=function(){this.hostElement.hidden=!1};
eO.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
eO.prototype.onThumbnailTap=function(W){this.data&&this.data.serviceEndpoint&&(_.dO().resolve(_.p4).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),W.stopPropagation())};
eO.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
eO.prototype.dataChanged=eO.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],eO.prototype,"rendererBehaviors",void 0);_.Q([_.h([_.ye.YtActionHandlerBehavior]),_.y("design:type",Object)],eO.prototype,"actionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],eO.prototype,"data",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eO.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],eO);
_.D(eO,"ytd-unlimited-offer-module-renderer",function(){if(cKm!==void 0)return cKm;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return cKm=W},{mode:1});var wnh;var VfZ;var mV=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return W};
_.C(mV,_.S);mV.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
mV.prototype.handleRelatedChipCommand=function(W){W=_.k(W,z1m);var B=W.contents;B?_.wV(this.hostElement,"yt-item-section-replace-action",[B,W.targetSectionIdentifier]):_.wV(this.hostElement,"yt-item-section-continuation-action",[W.continuationData,W.targetSectionIdentifier])};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],mV.prototype,"actionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],mV.prototype,"data",void 0);_.Q([_.NJ({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],mV);
_.D(mV,"yt-related-chip-cloud-renderer",function(){if(VfZ===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;wnh===void 0&&(wnh=document.createElement("template"));var G=wnh;z.call(B,G.content.cloneNode(!0),W.content.firstChild);VfZ=W}W=VfZ;return W},{mode:2});var xS=function(){var W=_.S.apply(this,arguments)||this;W.isTwoColumns=!0;W.hideOfferModules=!1;W.watchFeedBigThumbs=_.r("kevlar_watch_feed_big_thumbs");W.watchFeedBigThumbsOnLockup=_.r("web_watch_next_big_thumbs");W.watchNextGridHideChips=_.r("kevlar_watch_grid_hide_chips");W.eligibleToSwitchToGrid=_.r("web_watch_eligible_to_switch_to_grid");W.disableShortsShelfHeightOverride=_.r("web_shorts_wn_shelf_ratio_tuning");W.isWatchNextGrid=!1;W.reuseComponents=!_.r("kevlar_watch_grid");W.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return W};
_.C(xS,_.S);_.p=xS.prototype;
_.p.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.r("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}}};
_.p.getItemsPath=function(){return"data.results"};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.p.created=function(){this.ytLazyListBehavior.initialCount=1};
_.p.ready=function(){_.kw(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%"})};
_.p.resultsChanged=function(){if(this.data&&this.data.results){for(var W=this.data.results,B=null,z=null,G=0;G<W.length;G++)W[G].relatedChipCloudRenderer?B=W[G].relatedChipCloudRenderer:W[G].itemSectionRenderer&&(z=W[G].itemSectionRenderer);if(B&&z)for(this.set("data.continuations",[]),W=_.k(B.content,_.hN7).chips,B=0;B<W.length;B++)if(G=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",W[B]),G.loadCached||!G.contents){G.contents=z.contents;break}}};
_.p.dataChanged=function(){var W=this,B;if((B=this.data)!=null&&B.results&&this.hasAllowedInstreamAd(this.playerData)){if(B=this.data.results.filter(function(v){return!!v.promotedSparklesWebRenderer})){for(var z=0;z<B.length;z++){var G=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",B[z]);
if(G)for(var Y=0;Y<G.length;Y++)G[Y]&&G[Y].baseUrl&&_.ys(G[Y].baseUrl)}this.set("data.results",this.data.results.filter(function(v){return!v.promotedSparklesWebRenderer}))}if(B=this.data.results.filter(function(v){return!!W.getSparklesAd(v)})){B=_.A(B);
for(Y=B.next();!Y.done;Y=B.next())if(G=z=void 0,Y=(z=this.getSparklesAd(Y.value))==null?void 0:(G=z.errorCommand)==null?void 0:G.loggingUrls)for(z=_.A(Y),G=z.next();!G.done;G=z.next())(G=G.value)&&G.baseUrl&&_.ys(G.baseUrl);var d,E;this.set("data.results",(d=this.data)==null?void 0:(E=d.results)==null?void 0:E.filter(function(v){return!v.adSlotRenderer}))}}};
_.p.getSparklesAd=function(W){var B,z;W=_.k((B=W.adSlotRenderer)==null?void 0:(z=B.fulfillmentContent)==null?void 0:z.fulfilledLayout,_.AGH);return _.k(W==null?void 0:W.renderingContent,Bio)};
_.p.hasAllowedInstreamAd=function(W){W=this.get("adPlacements",W)||[];for(var B=0;B<W.length;B++){var z=this.get("adPlacementRenderer.config.adPlacementConfig",W[B]);if(z&&z.suppressDisplayAd)return!0}return!1};
_.p.computeHideUnlimitedOfferModule=function(W,B){return W&&W.offerModule&&B&&W.offerModule.unlimitedOfferModuleRenderer&&W.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(B)?!0:!1};
_.p.hideUnlimitedOfferModuleChanged=function(){var W=_.tH(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");W&&(W.hidden=this.hideUnlimitedOfferModule)};
_.p.updateLockupContainerTypes=function(W){if(this.eligibleToSwitchToGrid){var B;(B=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||B.forEach(function(z){z.containerType=W})}};
_.p.computeHideTvfilmOfferModule=function(W,B){var z,G;return!!((W==null?0:(z=W.offerModule)==null?0:(G=z.tvfilmOfferModuleRenderer)==null?0:G.clientShouldSuppressIfCompanionAdDisplayed)&&B&&this.hasCompanionAds(B))};
_.p.hideTvfilmOfferModuleChanged=function(){var W=_.tH(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");W&&(W.hidden=this.hideTvfilmOfferModule)};
_.p.hasCompanionAds=function(W){W=this.get("adPlacements",W)||[];for(var B=0;B<W.length;B++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",W[B]))return!0;var z=void 0,G=void 0,Y=void 0;if(!_.r("web_watch_top_banner_companion_check_killswitch")&&((z=W[B])==null?0:(G=z.adPlacementRenderer)==null?0:(Y=G.renderer)==null?0:Y.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.p.hasSuppressedResults=function(W){return W==null?!0:W.filter(function(B){return!B.continuationItemRenderer&&!B.compactPromotedVideoRenderer&&!B.promotedSparklesWebRenderer}).length===0};
_.p.computeShowButton=function(W,B){return this.isWatchNextGrid?W:W||this.hasSuppressedResults(B)};
_.p.showButtonChanged=function(){if(this.isWatchNextGrid){var W=_.tH(this.hostElement).querySelector("ytd-rich-grid-renderer");W&&this.showButton!==null&&(W.continuationShowButton=this.showButton)}else{W=_.tH(this.hostElement).querySelector("yt-next-continuation");var B=_.tH(this.hostElement).querySelector("ytd-continuation-item-renderer"),z=_.tH(this.hostElement).querySelector("ytd-item-section-renderer");W&&(W.showButton=this.showButton);B&&(B.showButton=this.showButton);z&&(z.continuationShowButton=
this.showButton)}};
_.p.continuationTap=function(W){var B;if(((B=this.data)==null?void 0:B.continuations)!=null&&W.target.tagName==="TP-YT-PAPER-BUTTON")for(W=this.data.continuations,B=0;B<W.length;B++)W[B].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(W[B].nextContinuationData||{})};
_.p.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("shown-items-changed",this.shownItems))};
_.G5.Object.defineProperties(xS.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.shownItems)==null||!W.some(function(B){return!!B.lockupViewModel||B.compactVideoRenderer}))}}});
xS.prototype.shownItemsChangedForBinding=xS.prototype.shownItemsChangedForBinding;xS.prototype.showButtonChanged=xS.prototype.showButtonChanged;xS.prototype.hideTvfilmOfferModuleChanged=xS.prototype.hideTvfilmOfferModuleChanged;xS.prototype.updateLockupContainerTypes=xS.prototype.updateLockupContainerTypes;xS.prototype.hideUnlimitedOfferModuleChanged=xS.prototype.hideUnlimitedOfferModuleChanged;xS.prototype.dataChanged=xS.prototype.dataChanged;xS.prototype.resultsChanged=xS.prototype.resultsChanged;
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],xS.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],xS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.bh.YtLazyListBehavior),_.y("design:type",Object)],xS.prototype,"ytLazyListBehavior",void 0);_.Q([_.h(_.ZY.YtNextContinuationBehavior),_.y("design:type",Object)],xS.prototype,"ytNextContinuationBehavior",void 0);
_.Q([_.h(_.Pl),_.y("design:type",Object)],xS.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],xS.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],xS.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],xS.prototype,"playerData",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],xS.prototype,"autoFill",void 0);_.Q([_.F({value:60}),_.y("design:type",Number)],xS.prototype,"targetFramerate",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],xS.prototype,"isTwoColumns",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],xS.prototype,"hideOfferModules",void 0);_.Q([_.F(),_.y("design:type",Object)],xS.prototype,"shownItems",void 0);_.Q([_.F({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.y("design:type",Boolean)],xS.prototype,"hideUnlimitedOfferModule",void 0);
_.Q([_.F({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.y("design:type",Boolean)],xS.prototype,"hideTvfilmOfferModule",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],xS.prototype,"watchFeedBigThumbs",void 0);_.Q([_.F(),_.y("design:type",Object)],xS.prototype,"watchFeedBigThumbsOnLockup",void 0);_.Q([_.F(),_.y("design:type",Object)],xS.prototype,"watchNextGridHideChips",void 0);_.Q([_.F(),_.y("design:type",Object)],xS.prototype,"eligibleToSwitchToGrid",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],xS.prototype,"disableShortsShelfHeightOverride",void 0);_.Q([_.F({selector:_.qE,reflectToAttribute:!0}),_.y("design:type",Object)],xS.prototype,"isGridViewEnabled",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],xS.prototype,"showMoreButton",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],xS.prototype,"isWatchNextGrid",void 0);
_.Q([_.F({computed:"computeShowButton(showMoreButton, data.results)"}),_.y("design:type",Boolean)],xS.prototype,"showButton",void 0);_.Q([_.jJ("data.results.*"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xS.prototype,"resultsChanged",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xS.prototype,"dataChanged",null);
_.Q([_.oN("hideUnlimitedOfferModule"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xS.prototype,"hideUnlimitedOfferModuleChanged",null);_.Q([_.H("isGridViewEnabled","containsLockups","data"),_.F({reflectToAttribute:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],xS.prototype,"lockupContainerType",null);
_.Q([_.oN("lockupContainerType","data"),_.y("design:type",Function),_.y("design:paramtypes",[Number]),_.y("design:returntype")],xS.prototype,"updateLockupContainerTypes",null);_.Q([_.oN("hideTvfilmOfferModule"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xS.prototype,"hideTvfilmOfferModuleChanged",null);_.Q([_.oN("showButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xS.prototype,"showButtonChanged",null);
_.Q([_.oN("shownItems"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xS.prototype,"shownItemsChangedForBinding",null);_.Q([_.H("shownItems"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xS.prototype,"containsLockups",null);
_.D(xS,"ytd-watch-next-secondary-results-renderer",function(){if(Gqm===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);Gqm=W}W=Gqm;return W},{mode:1});
}catch(e){_._DumpException(e)}
try{
var RT6=new _.J1("replaceFeedContentAction");var Wyr;var B_j;var $k=function(){return _.S.apply(this,arguments)||this};
_.C($k,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$k.prototype,"data",void 0);_.Q([_.u({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],$k);
_.D($k,"ytd-sub-feed-option-renderer",function(){if(B_j!==void 0)return B_j;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return B_j=W},{mode:1});var z96;var LH=function(){return _.S.apply(this,arguments)||this};
_.C(LH,_.S);LH.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],LH.prototype,"ytRendererStamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],LH.prototype,"data",void 0);_.Q([_.u({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],LH);
_.D(LH,"ytd-sub-feed-selector-renderer",function(){if(z96!==void 0)return z96;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return z96=W},{mode:1});var UO=function(){return _.S.apply(this,arguments)||this};
_.C(UO,_.S);
UO.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}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],UO.prototype,"data",void 0);_.Q([_.u({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],UO);
_.D(UO,"ytd-browse-feed-actions-renderer",function(){if(Wyr!==void 0)return Wyr;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Wyr=W},{mode:1});var Gcj;var YSq;var Mb=function(){return _.S.apply(this,arguments)||this};
_.C(Mb,_.S);Mb.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Mb.prototype,"data",void 0);_.Q([_.u({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Mb);
_.D(Mb,"ytd-mini-channel-renderer",function(){if(YSq!==void 0)return YSq;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return YSq=W},{mode:1});var dti;var a5=function(){return _.S.apply(this,arguments)||this};
_.C(a5,_.S);a5.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],a5.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],a5);
_.D(a5,"ytd-vertical-channel-section-renderer",function(){if(dti!==void 0)return dti;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return dti=W},{mode:1});var R5=function(){return _.S.apply(this,arguments)||this};
_.C(R5,_.S);R5.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],R5.prototype,"data",void 0);_.Q([_.u({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],R5);
_.D(R5,"ytd-browse-secondary-contents-renderer",function(){if(Gcj!==void 0)return Gcj;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return Gcj=W},{mode:1});var pur;var WK=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};W.notActive=!1;W.isConstrainedList=!1;return W};
_.C(WK,_.S);_.p=WK.prototype;
_.p.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(W){var B;return(W==null?void 0:(B=W.webComponentHint)==null?void 0:B.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}}}}};
_.p.getPath=function(W,B){var z="data.tabs.#"+B+".";W.tabs[B].tabRenderer?z+="tabRenderer.":W.tabs[B].expandableTabRenderer&&(z+="expandableTabRenderer.");return z+"content.sectionListRenderer"};
_.p.computeDisplayedContent=function(W){this.unlinkPaths("content");if(W&&W.tabs)for(var B=W.tabs.length,z=0;z<B;z++){var G=W.tabs[z].tabRenderer||W.tabs[z].expandableTabRenderer;if(G.selected&&G.content)return this.linkPaths("content",this.getPath(W,z)),G.content}return null};
_.p.computeHasSecondaryColumnData=function(W){return!!W&&!!W.secondaryContents};
_.p.onRetrieveLocation=function(W,B){B.locationRetrieved(B.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);W.stopPropagation()};
_.p.onYtServiceRequestSent=function(W,B){_.r("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(B)};
_.p.onYtServiceRequestCompleted=function(W,B){_.r("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(B)};
_.p.onReplaceFeedContentAction=function(W){if(!_.r("replace_feed_content_action_killswitch")&&!this.notActive){var B;(W=(B=_.k(W,RT6))==null?void 0:B.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(W)}};
_.p.handleServiceRequestActions=function(W){if(W=W.actions){W=_.A(W);for(var B=W.next();!B.done;B=W.next()){B=B.value;var z=void 0;((z=_.k(B,RT6))==null?0:z.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.k(B,RT6).items)}}};
WK.prototype.onYtServiceRequestCompleted=WK.prototype.onYtServiceRequestCompleted;WK.prototype.onYtServiceRequestSent=WK.prototype.onYtServiceRequestSent;WK.prototype.onRetrieveLocation=WK.prototype.onRetrieveLocation;_.Q([_.h(_.VO),_.y("design:type",Object)],WK.prototype,"ytdGridStateAwareBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],WK.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],WK.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],WK.prototype,"data",void 0);_.Q([_.F({computed:"computeDisplayedContent(data)"}),_.y("design:type",Object)],WK.prototype,"content",void 0);
_.Q([_.F({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],WK.prototype,"hasSecondaryColumnData",void 0);_.Q([_.F({value:function(){return window.outerHeight>1024?3:2}}),
_.y("design:type",Number)],WK.prototype,"initialCount",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],WK.prototype,"pageSubtype",void 0);_.Q([_.Hf("ytd-section-list-renderer"),_.y("design:type",Object)],WK.prototype,"listRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],WK.prototype,"notActive",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],WK.prototype,"isConstrainedList",void 0);
_.Q([_.F(),_.y("design:type",String)],WK.prototype,"responsiveSizing",void 0);_.Q([_.IN("yt-retrieve-location"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],WK.prototype,"onRetrieveLocation",null);_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],WK.prototype,"onYtServiceRequestSent",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],WK.prototype,"onYtServiceRequestCompleted",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],WK);
_.D(WK,"ytd-two-column-browse-results-renderer",function(){if(pur!==void 0)return pur;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return pur=W},{mode:2});
}catch(e){_._DumpException(e)}
try{
var ZGb=function(W){if((W==null?void 0:W.value)===void 0||W==null||!W.unit)return"initial";a:{switch(W.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var B="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":B="%";break a}B=void 0}return B?""+W.value+B:"initial"},rX3=new _.J1("shoppingContentLineItemViewModel");var kiK=_.m(function(W){var B=_.EV(W,{}).data;return _.w("yt-shopping-content-line-item-view-model",{class:_.kG("ytShoppingContentLineItemViewModelHost")},_.w(_.r0,{text:function(){var z;return(z=B().text)==null?void 0:z.attributedString}}))},"jl");var lDQ=_.m(function(W){W=_.EV(W,{});var B=W.data,z={};return _.w("yt-shopping-content-line-view-model",{class:_.kG("ytShoppingContentLineViewModelHost",W.className,(z.ytShoppingContentLineViewModelTruncateText=function(){return!B().wrapContent},z)),
style:_.oK({"--shopping-content-line-gap":function(){return B().itemGap?B().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return B().lineHeight?B().lineHeight+"px":void 0}})},_.w(_.IJ,{each:function(){return(B().items||[]).map(function(G){return _.k(G,rX3)}).filter(function(G){return!!G})}},function(G){return _.w(kiK,{data:G})}))},"kl");_.Vm(_.m(function(W){var B=_.EV(W,{}).data,z=function(){var G;return((G=B().image)==null?void 0:G.height)||40};
return _.w("yt-shopping-timely-shelf-content-view-model",{el:_.TG(_.Qi(function(){var G;return(G=B())==null?void 0:G.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.kG("ytShoppingTimelyShelfContentViewModelHost"),style:_.oK({"--shopping-timely-shelf-content-padding-top":function(){var G;return ZGb((G=B().padding)==null?void 0:G.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var G;return ZGb((G=B().padding)==null?void 0:G.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var G;return ZGb((G=B().padding)==null?void 0:G.start)},
"--shopping-timely-shelf-content-padding-end":function(){var G;return ZGb((G=B().padding)==null?void 0:G.end)}})},_.w(_.V,{cond:function(){var G;
return(G=B().image)==null?void 0:G.image},
then:function(G){return _.w(_.iF,{preserveHeight:!0,preserveWidth:!0,height:z,data:G,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.w(_.Sc,{data:function(){return B().avatar}},{avatarViewModel:_.ds}),_.w("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.w(_.Sc,{data:function(){return B().line1}},{shoppingContentLineViewModel:function(G){return _.w(lDQ,{data:G.data})}}),_.w(_.Sc,{data:function(){return B().line2}},{shoppingContentLineViewModel:function(G){return _.w(lDQ,
{data:G.data})}})),_.w("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.w(_.IJ,{each:function(){var G;
return(G=B().button)!=null?G:[]}},function(G){return _.w(_.Sc,{data:function(){return G}},{buttonViewModel:_.ex})})))},"ll"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.kz}});_.Cpm={};
_.Cpm.YtdWatchBehavior=[_.U.YtRendererBehavior,_.re.YtPlayerListenerBehavior,_.bu.YtRendererstamperBehavior,_.ye.YtActionHandlerBehavior,_.dz.YtPageBehavior,_.Qe.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.md("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.r("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 _.md("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.r("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 _.iO("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.iO("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!_.r("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.r("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 _.r("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.r("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.r("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.r("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var W={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.ZA(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.ZA(["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"||_.r("swa_prov_panels_ks")?W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},W.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return W},
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 W=this;this.watchController=void 0;this.pageDisposeJobs=[function(){W.showMetadataPlaceholder_()},
function(){_.r("web_watch_dont_clear_comments")||W.clearComments_()},
function(){W.clearPlayerAds_()},
function(){W.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;_.r("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.r("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.pTM(function(){return _.EM(W)},this.hostElement);
this.pageDisposeJobs.push(function(){W.youThereManager_.reset()});
_.r("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){W.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.FJ;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;_.r("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));_.r("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Co(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(W){W&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:W}),W.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(W){_.r("kevlar_watch_flexy_theater_manager")&&(this.theater=W,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(W){!_.r("kevlar_watch_while_v2")&&!_.r("web_watch_pip")||W||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(W){this.active!==void 0&&(this.fullscreen=W,_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(W){this.active!==void 0&&(_.v0(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(W>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(W){this.initCsi_();this.updatePageData_(W)},
updatePageData_:function(W){var B=this;if(W)if(this.data===W){this.onPageLoadWithSameData_();var z;(z=this.watchController)==null||z.setWatchNextResponse(this.data)}else this.data=W;this.playlist&&_.Ki({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.mj("nw");this.loading=!1;_.CG(_.fg,function(){B.initDclkstatus_();var G,Y=((G=B.player)==null?void 0:G.getVideoData().cpn)||"";_.qEQ(function(d,E){_.qh0(d,E,Y)})})},
onPageLoadWithSameData_:function(){_.r("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 W=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!W);this.set("loadingData.playlistLoading",W&&W!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),W=this.watchNextSkeletonEl_.firstElementChild;W;)W.classList.remove("hidden"),W=W.nextElementSibling;if(_.r("kevlar_watch_frame0_loading_state")){var B,z,G;W=(B=this.loadingData)==null?void 0:(z=B.endpoint)==null?void 0:(G=z.watchEndpoint)==null?void 0:G.videoId;var Y;W&&(Y="https://i.ytimg.com/vi/"+W+"/frame0.jpg");_.tH(this.hostElement).querySelector("#player").style.backgroundImage=Y?"url("+Y+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var W=_.tH(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&W&&(W.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var B,z;(z=(B=this.watchMetadata).updateSentimentBarWidth)==
null||z.call(B);var G,Y;(Y=(G=this.watchMetadata).resize)==null||Y.call(G)}_.r("kevlar_watch_frame0_loading_state")&&(_.tH(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(W){var B=_.tH(this.hostElement).querySelector(W);B?_.iH(B,!1):_.Oc(new _.oX("Overscroll monitor not found for component: ",W))},
removeSplitScrollMouseTrap:function(W){var B=_.tH(this.hostElement).querySelector(W);B?_.E2(B):_.Oc(new _.oX("Disposal component for  overscroll monitoring not found: ",W))},
onLoadingChanged_:function(W){W?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.r("web_thumbnail_to_watch_transition")&&!_.Wb1||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.r("web_thumbnail_to_watch_transition")&&!_.Wb1||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(W){var B=this;W?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.fg.addLowPriorityJob(function(){B.onWindowResized_(_.Ft(!0))})},
updateTheaterModeState_:function(W){if(!_.r("kevlar_watch_flexy_theater_manager")){W=W||this.fullWindowMode_;if(this.theater!==void 0||W)this.theater=W;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();W&&_.lib()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var W=this.fullBleedPlayer?_.tH(this.hostElement).querySelector("#player-full-bleed-container"):_.tH(this.hostElement).querySelector("#player-container-inner");var B=this.getPlayerContainer(),z=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip");B.parentElement!==W&&(z&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.EM(this).appendTo(W,B))},
updateErrorScreenLocation:function(){var W=_.tH(this.hostElement).querySelector("#error-screen"),B=this.fullBleedPlayer?_.tH(this.hostElement).querySelector("#player-full-bleed-container"):_.tH(this.hostElement).querySelector("#player");W.parentElement!==B&&B.appendChild(W)},
deactivateMiniplayerAndResetPlayer:function(){var W=this;return _.T(function(B){if(B.nextAddress==1)return B.yield(_.dO().resolve(_.Qb).deactivate(),2);W.updatePlayerLocation();_.HG(B)})},
updateCinematicsLocation:function(){var W=this.getElement("CINEMATICS");if(W){var B=this.getCinematicsLocationContainer();W.parentElement!==B&&B.appendChild(W)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.tH(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.tH(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(W,B,z){var G=document.documentElement.hasAttribute("dark"),Y=G&&_.r("web_cinematic_theater_mode"),d=G&&_.r("web_cinematic_fullscreen");G=!G&&this.cinematicLightTheme;return z||W&&Y||B&&d||(B||W)&&G},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var W=this,B;(B=this.watchController)==null||B.setWatchNextResponse(this.data);_.r("kevlar_watch_flexy_comments_manager")||this.initComments_();_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.dO().resolve(_.wW).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,_.r("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.fg.addLowPriorityJob(function(){_.wV(W.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.r("web_watch_start_chat_in_theater_mode")){var z,G,Y;if((z=this.data)==null?0:(G=z.contents)==null?0:(Y=G.twoColumnWatchNextResults)==null?0:Y.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var d,E;((d=this.data)==null?0:(E=d.contents)==null?0:E.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(W){var B;(B=this.watchController)==null||B.setPlayerResponse(this.playerData);W&&W.playabilityStatus&&(B=this.isVideoPlayable_(W.playabilityStatus,this.getPlayerOverlays_(this.data)),W=this.isLiveStreamOffline_(W.playabilityStatus),B&&!W||_.BM(this,function(){_.mj("pbu")}));
this.setPlayerAds_();_.wV(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(W,B){if((_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"))&&this.playerData&&B)return this.playerData.videoDetails},
watchPageActiveChanged_:function(W){_.Y_().dispatch(_.VlN(this.active));W?this.activate_():this.deactivate_()},
attached:function(){var W=this;this.watchController=new _.mc(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);_.r("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var B=_.EM(this);_.r("kevlar_disable_prepare_player")||
B.preparePlayer();_.r("kevlar_watch_flexy_playlist_manager")||_.dO().resolve(_.wW).setPlayer(B);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();B={"--ytd-watch-flexy-scrollbar-width":_.tb()+"px"};this.is==="ytd-watch-grid"&&(B["--ytd-watch-flexy-sidebar-width"]=_.EA3+"px",B["--ytd-watch-grid-horizontal-page-margins"]=_.Ny+"px",B["--ytd-watch-grid-columns-top-margins"]=_.pGR+"px",B["--ytd-watch-grid-min-player-height-medium"]="360px");!_.iO("kv_pl_mx_sz_ks")&&
_.iO("kevlar_watch_max_player_width")&&(B["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Tj3+"px");_.iO("kevlar_watch_flexy_metadata_height")&&(B["--ytd-watch-flexy-space-below-player"]=_.vAN+"px");this.safeUpdateStyles(B);_.r("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.leF(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return W.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.tH(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var W=_.tb(),B=_.$S+W,z=B;this.fixedPanels&&(B+=_.EA3);var G=657+W;W=1327+W;_.tH(this.hostElement).querySelector("#two-column-query").query="(min-width: "+B+"px)";_.tH(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(G+"px), (min-height: 630px) and (min-width: ")+(B+"px) and (max-width: ")+(W+"px)");_.tH(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(W+"px)");
_.tH(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+z+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var W=_.tH(this.hostElement).querySelector("#miniplayer-bar").firstChild,B=this.squeezeback&&!_.r("web_watch_squeezeback_player_size_killswitch");return W&&W.active||this.theater||_.r("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||B||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.hv(NaN,NaN):_.UXb(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.UXb(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.AI(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var W=this;this.onWindowResized_(_.Ft());_.r("browse_skeleton_removal_on_watch_killswitch")||_.md("IS_SHELL_LOAD")&&_.i99();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var B=_.EM(this);B.addEventListener("yt-player-updated",_.Co(this,this.onPlayerUpdated_));B.getPlayerPromise().then(function(z){W.playerApiReady_(z)});
_.r("kevlar_watch_flexy_playlist_manager")||(B=_.dO().resolve(_.wW),_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&B.addEventListener("yt-navigate",_.Co(this,this.onYtNavigate_)),B.setPlaylistComponent(_.tH(this.hostElement).querySelector("#playlist")),B.addEventListener("yt-playlist-data-updated",_.Co(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.fg.addLowPriorityJob(function(){_.v0(W.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.EM(this).removeEventListener("yt-player-updated",_.Co(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.r("kevlar_watch_flexy_playlist_manager")){var W=_.dO().resolve(_.wW);_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&W.removeEventListener("yt-navigate",_.Co(this,this.onYtNavigate_));
W.cancelVideoSkip();W.removeEventListener("yt-playlist-data-updated",_.Co(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.v0(this.hostElement,"yt-autonav-pause-player",!1);W=_.pi();_.r("kevlar_exit_fullscreen_leaving_watch")&&W&&_.Ar(W)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(W){this.player&&this.player.updateVideoData({rvs:W.rvs})},
getPageContents:function(W){return W&&W.contents&&W.contents.twoColumnWatchNextResults&&W.contents.twoColumnWatchNextResults.results&&W.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(W){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W)},
onRetrieveLocation_:function(W,B){B.hasComments?B.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):B.locationRetrieved("/related_ajax",void 0);W.stopPropagation()},
onSubscriptionChanged_:function(W,B){this.player&&(B?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Yd("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.tH(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.tH(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(W){this.player=W;this.setPlayerState(W.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.r("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.r("kevlar_unified_player")||_.r("kevlar_player_new_bootstrap_adoption"))&&_.$l()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(W,B){B=B===void 0?!0:B;_.pi()&&_.r("external_fullscreen")&&_.Ar(document.documentElement);this.theaterRequested_=W;B&&_.k8("wide",W?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.c0(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.v0(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(W){_.XC(W,typeof this.player),this.player&&_.XC(W,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var W;((W=this.player)==null?0:W.isFullscreen())?this.player.toggleFullscreen():_.c0(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(W,B){return this.loading?B:!!Object.keys(W).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(W){if(W){W=_.A(W);for(var B=W.next();!B.done;B=W.next())B=B.value,B.youThereRenderer&&_.EEb(this.youThereManager_,B.youThereRenderer)}},
setPlaylistData_:function(W){return W||{}},
userEngagementConfigDataChanged_:function(W){if(W)if(W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var B=this.youThereManager_;_.Gi()<W.lowEngagementThresholdMs||_.wTQ(B,!0)}else W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.c0(this.hostElement,"yt-autonav-pause-user-engagement",[W])},
isPlayerUnavailable_:function(W,B,z){return!!W&&!this.isVideoPlayable_(W,z)&&!B},
getPlayerOverlays_:function(W){return(W==null?void 0:W.playerOverlays)||null},
isVideoPlayable_:function(W,B){if(!W)return!1;var z=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",G=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",W)||this.get("errorScreen.ypcTrailerRenderer",W);W=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",W);var Y;B=B==null?void 0:(Y=B.playerOverlayRenderer)==null?void 0:Y.gatedActionsOverlayRenderer;return!!z||!!G||!!W||!!B},
hasWatchNextResponseErrorRenderer:function(W){var B=this.getPageContents(W),z,G,Y,d,E;return!(W==null?0:(z=W.contents)==null?0:(G=z.twoColumnWatchNextResults)==null?0:G.secondaryResults)&&!!((Y=B[0])==null?0:(d=Y.itemSectionRenderer)==null?0:(E=d.contents[0])==null?0:E.backgroundPromoRenderer)},
isLiveStreamOffline_:function(W){return W?W.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(W,B,z){var G=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",B),Y=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Y=_.r("web_no_skip_video_on_verification_checks")?(W==null?void 0:W.status)&&Y.includes(W.status):W&&W.status==="AGE_CHECK_REQUIRED";var d=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",W);d==void 0&&(d=!0);!z||this.isVideoPlayable_(W,this.getPlayerOverlays_(B))||
G||Y||!d||_.dO().resolve(_.wW).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.a_N()},
onPlayerFeedbackStartRequest_:function(W){_.c0(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:W}])},
onPlayerFeedbackArticleRequest_:function(W){_.c0(this.hostElement,"yt-help-dialog-requested",[W])},
onPlayerYpcContentRequest_:function(){var W,B,z,G,Y,d,E,v,c=((W=this.data)==null?NaN:(B=W.contents)==null?NaN:(z=B.twoColumnWatchNextResults)==null?NaN:(G=z.secondaryResults)==null?NaN:(Y=G.secondaryResults)==null?NaN:(d=Y.offerModule)==null?NaN:(E=d.tvfilmOfferModuleRenderer)==null?NaN:(v=E.actionButtons)==null?NaN:v.length)-1;W=[".offerButton.buttonRenderer.",".actionButtons."+(c>=0?c:0)+".buttonRenderer."];B=_.A(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(z=B.next();!z.done;z=B.next())for(z=z.value,G=_.A(W),Y=G.next();!Y.done;Y=G.next())if(Y="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+z+Y.value,Y=this.get(Y+"navigationEndpoint",this.data)||this.get(Y+"serviceEndpoint",this.data)||this.get(Y+"command",this.data)){_.oB(Y,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(W){_.v0(this.hostElement,"yt-autonav-pause-player",W)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(W){W()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.v0(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(W)},
setPlayerState:function(W){_.Y_().dispatch(_.saM(W))},
onPlayerSubscribe_:function(W){_.c0(this.hostElement,"yt-player-subscribe",[W])},
onPlayerUnsubscribe_:function(W){_.c0(this.hostElement,"yt-player-unsubscribe",[W])},
onPlayerAdYtShowToast_:function(W){_.c0(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:W.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(W){if(W)return W},
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(W){return!_.r("web_watch_move_summary_to_sd")&&!!W},
computeWatchMetadataRefresh:function(){return _.r("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.r("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var W,B,z,G;this.watchNextSecondaryResults=(W=this.data)==null?void 0:(B=W.contents)==null?void 0:(z=B.twoColumnWatchNextResults)==null?void 0:(G=z.secondaryResults)==null?void 0:G.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.r("swatcheroo_pbs_load_grid")&&!_.r("swatcheroo_provide_all_data_on_scheduled_job")){_.fg.cancelJob(this.setRichGridJobId_);var W,B,z,G,Y,d,E;this.setRichGridRendererData((W=this.data)==null?void 0:(B=W.contents)==null?void 0:(z=B.twoColumnWatchNextResults)==null?void 0:(G=z.secondaryResults)==null?void 0:(Y=G.secondaryResults)==null?void 0:(d=Y.results)==null?void 0:(E=d[0])==null?
void 0:E.richGridRenderer)}},
setRichGridRendererData:function(W){this.richGridRendererData=W},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var W,B=(W=this.data)==null?void 0:W.engagementPanels;if(B==null?0:B.length){W=null;B=_.A(B);for(var z=B.next();!z.done;z=B.next()){z=z.value;var G=void 0;if(((G=z.engagementPanelSectionListRenderer)==null?void 0:G.targetId)==="engagement-panel-structured-description"){W=z;break}}var Y,d,E;W=(Y=W)==null?void 0:(d=Y.engagementPanelSectionListRenderer)==null?void 0:(E=d.content)==null?void 0:E.structuredDescriptionContentRenderer;if(W==null?0:W.items){Y=
[];d=_.A(W.items);for(E=d.next();!E.done;E=d.next()){E=E.value;if(!_.r("sd_horizontal_list_show_nav_killswitch")){var v=G=z=B=W=void 0,c=void 0,J=(W=E.horizontalCardListRenderer)==null?void 0:(B=W.header)==null?void 0:(z=B.richListHeaderRenderer)==null?void 0:(G=z.navigationButton)==null?void 0:(v=G.buttonRenderer)==null?void 0:(c=v.command)==null?void 0:c.commandExecutorCommand;J&&J.commands&&(J.commands=J.commands.filter(function(g){return!_.k(g,_.IRR)}))}(!E.expandableVideoDescriptionBodyRenderer&&
!E.videoDescriptionHeaderRenderer||_.r("web_delhi_colorful_sd"))&&Y.push(E)}return{items:Y}}}},
constructWarning_:function(W){return{text:_.Bg(W),type:"WARNING"}},
isPlaShelfEnabled_:function(W){if((this.get("adPlacements",W)||[]).length)return!0;W=this.get("playerAds",W)||[];return!(!W.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",W[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var W=this;_.v0(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var B=this.getScrollTop()>0;this.gestures_&&(B?this.gestures_.detach():this.gestures_.attach());B!==this.showFullerscreenEdu_&&_.r("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=B,_.EM(this).getPlayerPromise().then(function(z){z.updateFullerscreenEduButtonVisibility(W.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.v0(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var W=this;this.commentsReady=!1;_.fg.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.CG(_.fg,function(){W.setComments_()},1E3)},
setComments_:function(){if(!_.r("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.mj("cmi");_.fg.cancelJob(this.setCommentsJobId_);var W=this.getPageContents(this.data);if(W&&W.length){W=_.A(W);for(var B=W.next();!B.done;B=W.next())if(B=B.value,this.get("itemSectionRenderer.sectionIdentifier",B)==="comment-item-section"){this.comments=B.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.v0(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.mj("cmc")},
doRemoveComments_:function(){this.comments={};_.r("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.fg.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.fg.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(W,B){var z=_.k(B.endpoint,_.W0);z&&(!(B=this.get("data.currentVideoEndpoint.watchEndpoint"))||z.videoId!==B.videoId||z.playlistId&&z.playlistId!==B.playlistId||z.index!==void 0&&z.index!==B.index||typeof z.startTimeSeconds!=="number"||(W.stopPropagation(),this.setScrollTop(0),_.EM(this).getPlayerPromise().then(function(G){var Y=z.startTimeSeconds;G.seekTo(Y);G.wakeUpControls();Y<G.getDuration()&&G.playVideo()})))},
updatePlayerStartTime_:function(){var W=_.XVR();"t"in W&&(W=_.MlM(W.t),this.player.seekTo(W,!0))},
updateTitleFromWatchNext:function(W){W=this.getPageContents(W);var B,z;(W=_.zR(W==null?void 0:(B=W[0])==null?void 0:(z=B.videoPrimaryInfoRenderer)==null?void 0:z.title))&&_.v0(this.hostElement,"yt-update-title",W)},
updateTitle_:function(W){W=this.get("videoDetails.title",W)||"";_.v0(this.hostElement,"yt-update-title",W)},
syncWithRemoteVideo_:function(W,B,z){if(this.active&&this.player){var G=this.player.getVideoData();if(G.video_id===z&&(z=G.list,_.r("polymer_enable_mdx_queue")&&z&&z.startsWith("RQ")&&(z=void 0),G.video_id!==W||z!=B)){var Y;_.r("kevlar_player_watch_endpoint_navigation")?Y=_.tir(_.nbQ(W,B)):Y=this.buildWatchEndpoint_(W,B);_.v0(this.hostElement,"yt-navigate",{endpoint:Y,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(W,B,z){return _.pA(W,B,z)},
initDclkstatus_:function(){_.LgK()},
attachWatchPageSkeleton_:function(){var W=document.querySelector("#watch-page-skeleton");if(W){var B=W.querySelector("#primary-info"),z=W.querySelector("#secondary-info"),G=W.querySelector("#related");B&&_.tH(this.hostElement).querySelector("#info-skeleton").appendChild(B);z&&_.tH(this.hostElement).querySelector("#meta-skeleton").appendChild(z);G&&(_.tH(this.hostElement).querySelector("#related-skeleton").appendChild(G),this.watchNextSkeletonEl_=G);_.o0(W)}},
handlePlayerUpdated_:function(){_.EM(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(W,B){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof B!=="undefined"){var z=this.watchNextSkeletonEl_.children,G=W&&W.indexSplices.length?W.indexSplices[0].index:0;W=Math.min(this.watchNextShownItems.length,z.length);B||(G=0,W=z.length);for(B=G;B<W;B++)z[B].classList.add("hidden")}},
onPlayerFullscreenChange_:function(W){_.r("external_fullscreen")||_.c0(this.hostElement,"yt-player-fullscreen",[W.fullscreen])},
onFullscreenChange_:function(W){this.fullscreen=W;this.gestures_&&this.gestures_.update(this.fullscreen);var B=_.EM(this);B.getPlayerPromise().then(function(z){z.setFauxFullscreen(!!_.pi())});
this.updateFullBleedElementLocations();W&&(B.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(W,B){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!B},
computeIsDonationShelfCollapsed_:function(W){return W},
computeShouldShowMerchShelf:function(W,B){return B&&!!W},
computeResponseHasComments:function(W){var B,z,G,Y,d;return!!(W==null?0:(B=W.contents)==null?0:(z=B.twoColumnWatchNextResults)==null?0:(G=z.results)==null?0:(Y=G.results)==null?0:(d=Y.contents)==null?0:d.some(function(E){var v;return(E==null?void 0:(v=E.itemSectionRenderer)==null?void 0:v.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(W,B,z,G){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&G?!1:!!W&&!!Object.keys(W).length&&!B},
identity:_.Ku,onWindowResized_:function(W){this.windowSize_=W;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(W){var B=this;W&&W.type!=="dataloaded"&&W.type!=="dataupdated"||_.EM(this).getPlayerPromise().then(function(z){var G=z.getPlayerState();G!==5&&G!==0&&(z=1/z.getVideoAspectRatio(),B.videoHeightToWidthRatio_!==z&&(B.videoHeightToWidthRatio_=z))})},
schedulePlayerSizeUpdate_:function(W){var B=this,z=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"),G=function(){if(B.watchMetadata){var Y,d;(d=(Y=B.watchMetadata).resize)==null||d.call(Y)}_.EM(B).getPlayerPromise().then(function(E){if(_.r("kevlar_set_internal_player_size")){if(!z||!B.isMiniplayerActive()){var v=B.calculateCurrentPlayerSize_();E.setInternalSize(v.width,v.height)}}else E.setSize(NaN,NaN);_.r("kevlar_watch_while")&&B.updateWatchWhileScrollThreshold_()})};
W?G():_.gn(_.fg,G)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(W){this.set("data.survey",W.detail)},
onYtShowSurveyCommand_:function(W){this.set("data.survey",_.k(W,_.dlb).survey)},
onDownloadedVideoDeleted:function(W){var B=this,z,G;return _.T(function(Y){if(Y.nextAddress==1){if(!B.active||(z=B.playerData)==null||!z.offlineState||B.videoId!==W)return Y.return();(G=B.player)==null||G.stopVideo();_.qG().navigatingAwayFromWatchDeletedVideo=!0;_.oB(_.VG2,B.hostElement);return Y.yield(_.qG().navigationFinishPromise,2)}_.qG().navigatingAwayFromWatchDeletedVideo=!1;_.HG(Y)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var W;this.theater?W=_.eT(.5625*this.windowSize_.width,480,this.windowSize_.height-185):W=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==W&&(this.watchWhileScrollThreshold_=W,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var W=_.tH(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&W){var B=this.windowSize_.height>=624,z=this.active?this.getScrollTop():0;!W.active&&B&&z>=this.watchWhileScrollThreshold_?(W.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):W.active&&(!B||z<this.watchWhileScrollThreshold_&&!_.pi())&&(W.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var W=_.tH(this.hostElement).querySelector("#secondary-inner");if(W){var B=_.tH(this.hostElement).querySelector("#below"),z=_.tH(this.hostElement).querySelector("#secondary"),G=_.tH(this.hostElement).querySelector("#comments");G&&z&&B&&(this.defaultTwoColumnLayout?(W.appendChild(G),z.appendChild(W)):(B.appendChild(G),_.qy(B,W)))}}},
isTwoColumnsChanged_:function(W,B){if(W!==!0||B!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(W=_.tH(this.hostElement).querySelector("#secondary-inner"))){B=_.tH(this.hostElement).querySelector("#below");var z=_.tH(this.hostElement).querySelector("#secondary"),G=_.tH(this.hostElement).querySelector("#comments");G&&z&&B&&(this.isTwoColumns_?(W.appendChild(G),z.appendChild(W)):(B.appendChild(G),_.qy(B,W)))}}else{W=!_.r("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);B=_.tH(this.hostElement).querySelector("#panels");var Y=_.tH(this.hostElement).querySelector("#alerts");z=_.tH(this.hostElement).querySelector("#playlist");G=_.tH(this.hostElement).querySelector("#related");var d=_.tH(this.hostElement).querySelector("#donation-shelf"),E=_.tH(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Y=_.tH(this.hostElement).querySelector("#secondary-inner"),W&&(Y.appendChild(B),Y.appendChild(z)),Y.appendChild(d),
Y.appendChild(G)):(W&&(_.qD(B,Y),_.qD(z,Y)),_.qD(d,Y),E&&_.qD(G,E));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.r("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.r("web_watch_enable_fs_squeezeback_panels")&&_.r("web_watch_theater_chat")){var W=_.tH(this.hostElement).querySelector("#chat-container"),B=this.theater&&!this.fullscreen||_.r("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&B?(B=_.tH(this.hostElement).querySelector("#columns"),(W==null?void 0:W.parentElement)!==B&&B.append(W),this.fixedPanels=!0):(this.fixedPanels=
!1,B=_.tH(this.hostElement).querySelector("#playlist"),W&&B?_.nf(W,B):_.Oc(new _.oX("Missing element when updating chat location",{"chatContainer defined":!!W,"playlist defined":!!B})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(W,B){return _.r("sw_metadata_vis_toggle_ks")?!0:!!W||!!B},
computeForceDarkPanelTheme:function(W){return _.r("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&W:!1},
safeUpdateStyles:function(W){try{_.kw(this.hostElement,W)}catch(B){_.Oc(B)}},
videoHeightToWidthRatioChanged_:function(W,B){B&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(W){this.videoHeightToWidthRatio_=1/W},
computeIsVerticalVideo_:function(W){return W>=1},
computeIsFourThreeToSixteenNineVideo_:function(W){return W<=.7501&&W>=.5624},
computeIsExtraWideVideo_:function(W){return W<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.EM(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.EM(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.VyN(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(W){var B=_.QL(W)||0;_.Da(W,B+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var W=_.QL("yt-fullerscreen-edu-button-click-count")||0,B=_.QL("yt-fullerscreen-edu-button-shown-count")||0,z=_.iO("external_fullscreen_button_shown_threshold"),G=W>=_.iO("external_fullscreen_button_click_threshold")||B>=z;_.EM(this).getPlayerPromise().then(function(Y){Y.updateFullerscreenEduButtonSubtleModeState(G)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(W,B){return B},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.dO().resolve(_.wW).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var W=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.fg.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.fg.addLowPriorityJob(function(){W.fullHeightPanelPositionUpdateJobId=0;var B=_.tH(W.hostElement).querySelector("#secondary"),z=_.tH(W.hostElement).querySelector("#fixed-secondary");B=B.getBoundingClientRect();var G=B.width;W.swatcherooSqueezeback&&
(G+=_.Ny);if(W.swatcherooSqueezeback){var Y=_.tH(W.hostElement).querySelector("#squeezeback-constraining-container");Y.style.width=G+"px";Y.style.flex="0 0 "+G+"px"}z.style.width=G+"px";z.style.left=B.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var W=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.fg.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.fg.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;var B;!W.isTwoColumns_||W.theater||W.fullscreen?B=460:B=W.calculateNormalPlayerSize_().height;var z=B+"px";_.r("live_chat_taller_height")&&!W.theater&&(z="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.r("live_chat_medium_height")&&!W.theater&&(z="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.r("live_chat_scaled_height")&&!W.theater&&(z="calc(100vh - var(--ytd-toolbar-height) - 238px)");W.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":B+"px","--ytd-watch-flexy-chat-max-height":z,"--ytd-watch-flexy-structured-description-max-height":B+"px","--ytd-watch-flexy-comments-panel-max-height":B+"px","--ytd-comments-engagement-panel-content-height":B+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(W){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",W)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Jr(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(W){var B=_.tH(this.hostElement).querySelector("#engagement-panel-scrim");W?B.addEventListener("tap",_.Co(this,this.onEngagementPanelScrimClick_)):B.removeEventListener("tap",_.Co(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(W){if(this.hostElement.contains(W)&&!this.scrollToAnimation_.isAnimating()){var B=W.offsetTop-24;W=W.offsetTop+W.offsetHeight+24;var z=this.getPageScrollingElement(),G=this.getScrollTop(),Y=G+z.clientHeight-56;if(B<G+56)B-=56;else if(W>Y)B=W-z.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,B),500)}},
onYtSignalActionScrollToComments:function(){var W=this.hostElement.querySelector("#comments");if(W&&!this.scrollToAnimation_.isAnimating()){W=W.offsetTop-56-24;if(_.r("kevlar_comment_teaser_scroll_to_midpoint")&&(W-=_.Fi().height/3,W<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtEngagementPanelVisibleChanged:function(W,B,z){if(this.active&&this.trackEngagementPanelVisibility&&!_.Gim.includes(z)){if(B==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.wV(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var G=_.dO().resolve(_.WD);this.visiblePanelIdentifiers_.forEach(function(Y){Y!==z&&G.hidePanel(Y)})}this.visiblePanelIdentifiers_.add(z)}B!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&B!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(z);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(W){return W?"":"watch-active-metadata"},
computeNewMetadataClass:function(W){return W?"watch-active-metadata":""},
computeIsSingleColumn:function(W,B){return B&&!W},
computeFullBleedPlayer:function(W,B,z){return _.r("external_fullscreen")&&W||B||z},
computeDefaultLayout:function(W){return!W},
computeDefaultTwoColumnLayout:function(W,B){return!W&&B},
updatePanelsLocation:function(){if(_.r("web_watch_enable_fs_squeezeback_panels")){var W=_.tH(this.hostElement).querySelector("#below"),B=_.tH(this.hostElement).querySelector("#panels"),z=_.tH(this.hostElement).querySelector("#playlist"),G=_.tH(this.hostElement).querySelector("#chat-container"),Y=_.tH(this.hostElement).querySelector("#panels-full-bleed-container"),d=_.tH(this.hostElement).querySelector("#secondary-inner");if(W&&B&&z&&G&&Y&&d){var E=this.fullscreen||this.theater&&this.iMaxTheaterMode,
v=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;E?(Y.appendChild(B),Y.appendChild(G),Y.appendChild(z)):this.isTwoColumns_?(v?(W=_.tH(this.hostElement).querySelector("#columns"),(G==null?void 0:G.parentElement)!==W&&W.append(G),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.qy(d,G),_.qy(d,B),_.qy(d,z)):(W.appendChild(B),W.appendChild(G),W.appendChild(z))}}},
swatcherooUpdatePanelsLocation:function(W,B,z,G,Y,d){if(this.is==="ytd-watch-grid"){B=W&&!B;this.swatcherooSplitScroll&&(B?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));z=_.tH(this.hostElement).querySelector("#panels");var E=_.tH(this.hostElement).querySelector("#playlist"),v=_.tH(this.hostElement).querySelector("#fixed-secondary"),c=_.tH(this.hostElement).querySelector("#fixed-below"),
J=_.tH(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),g=_.tH(this.hostElement).querySelector("#chat-container");d&&(W?v.appendChild(z):c.appendChild(z));Y?W?v.appendChild(g):c.appendChild(g):_.nf(g,J);G?W?v.appendChild(E):c.appendChild(E):_.nf(E,J);this.swatcherooSplitScroll&&(W=_.tH(this.hostElement).querySelector("#secondary"),G=_.tH(this.hostElement).querySelector("#columns"),Y=_.tH(this.hostElement).querySelector("#fixed-columns-secondary"),B?
Y.appendChild(W):G.appendChild(W))}},
computeMetadataSkinnyMode:function(W,B,z){return this.is!=="ytd-watch-grid"?!1:W?z:B},
computeWatchWhilePanelsActive:function(W,B){return W||B},
computeNoBorderOnChat:function(W){return _.r("web_watch_theater_chat_no_border")&&W},
computeLiveChatPresentAndExpanded:function(W,B){return W&&!B},
computePanelExpanded:function(W,B,z){return W||B||z},
computeSqueezeback:function(W,B,z,G){if(_.r("web_watch_enable_fs_squeezeback_panels")){var Y=this.iMaxTheaterMode&&this.theater;return(W||B||z)&&(G||Y)}},
computeSwatcherooSqueezeback:function(W,B,z){return this.is!=="ytd-watch-grid"||_.r("ww_squeezeback_killswitch")?!1:W&&B&&z},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(W){_.EM(this).getPlayerPromise().then(function(B){var z;(z=B.changeMarkerVisibility)==null||z.call(B,_.k(W,_.yM).isVisible||!1,_.k(W,_.yM).entityKeys||[],_.k(W,_.yM).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(W){this.liveChatCollapsed=W.detail;_.Y_().dispatch(_.z5h(W.detail));if(!this.liveChatCollapsed&&this.squeezeback){var B=_.dO().resolve(_.WD);this.visiblePanelIdentifiers_.forEach(function(z){B.hidePanel(z)})}},
onSetPlaylistCollapsed:function(W){_.r("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!W)},
provideRenderingData:function(W,B){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=B;break;case "PRIMARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=B);this.videoPrimaryInfoRendererValue=B==null?void 0:B.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=B);this.videoSecondaryInfoRendererValue=B==null?void 0:B.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
B;break;case "CLARIFICATION":this.clarifyBoxValue=B;break;case "LIVE_CHAT":this.conversationBar=B;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=B;break;case "PLAYLIST":this.externalPlaylistData_=B!=null?B:{};break;case "MERCH_SHELF":this.merchShelfValue=B==null?void 0:B.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=B;break;case "TICKET_SHELF":this.ticket=B;break;case "OFFER_MODULE":this.offerModule=B;break;case "LIMITED_STATE":this.limitedStateValue=
B;break;case "DONATION_SHELF":this.donation=B;break;case "ALERTS":this.alertsValue=B;break;case "COMMENTS":this.comments=B;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=B;break;case "ENGAGEMENT_PANELS":this.engagementPanels=B;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=B;break;case "RICH_GRID_RENDERER":this.richGridRendererData=B;break;case "EXPANDABLE_METADATA":this.expandableMetadata=B;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
B;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=B}},
toggleCinematicsActive:function(W){this.cinematicsActive=W},
isMiniplayerActive:function(){return _.dO().resolve(_.Qb).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var L1q;_.$On=function(W){if(!(0,_.vKT)(W))throw Error("K``"+String(W));};
_.UOK=function(W){return W.findIndex(function(B){return L1q.indexOf(B.tagName)>-1})>-1};
_.Mti=function(){var W=_.dO().resolve(_.N1);_.MKR(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(W.isFullscreenEnabled()?_.Ar(document.documentElement):_.jxr(document.documentElement))};
L1q=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.Qa=new Map;_.Qa.set(32,59972);_.Qa.set(27,50765);_.Qa.set(70,60102);_.Qa.set(76,60221);_.Qa.set(77,60222);_.Qa.set(74,60223);_.Qa.set(84,60224);_.Qa.set(38,61941);_.Qa.set(40,61942);_.Qa.set(73,62521);_.Qa.set(67,62522);_.Qa.set(80,63390);_.Qa.set(78,63397);_.Qa.set(75,59972);_.Qa.set(188,63385);_.Qa.set(190,63384);_.Qa.set(36,63387);
_.Qa.set(35,63386);_.Qa.set(37,63388);_.Qa.set(39,63389);_.Qa.set(79,63423);_.Qa.set(87,63424);_.Qa.set(107,63426);_.Qa.set(109,63425);_.Qa.set(65,63428);_.Qa.set(83,63430);_.Qa.set(68,63429);_.Qa.set(221,63431);_.Qa.set(219,63432);_.Qa.set(97,63439);_.Qa.set(98,63440);_.Qa.set(99,63441);_.Qa.set(100,63442);_.Qa.set(101,63443);_.Qa.set(102,63444);_.Qa.set(103,63445);_.Qa.set(104,63446);_.Qa.set(105,63447);_.ya=new Map;_.ya.set(80,63390);_.ya.set(78,63397);_.ya.set(188,63400);_.ya.set(190,63401);
_.ya.set(191,60765);_.ya.set(13,247917);_.q9=new Map;_.n1=new Map;
}catch(e){_._DumpException(e)}
try{
var Fdn,jJn,f59,Oxq;_.I5Y=function(W){return W.ui.guideIsVisibleButNotPersistent};
_.ori=function(W){return W.ui.tabGesturesIsActive};
_.h_9=function(){var W=_.EA("service_worker_scope");try{return navigator.serviceWorker.getRegistration(W)}catch(B){return Promise.reject(B)}};
_.Hxi=function(W){return!(!W||!W.pushManager)};
Fdn=function(){return _.h_9().then(_.Hxi).catch(function(){return!1})};
_.Sw6=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?Fdn():Promise.resolve(!1)};
_.bx0=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
jJn=function(){var W,B,z;return _.T(function(G){switch(G.nextAddress){case 1:return G.yield(_.Wz.getInstance(),2);case 2:W=G.yieldResult;if(!W){B=void 0;G.jumpTo(3);break}return G.yield(W.get("lmqf"),4);case 4:B=G.yieldResult;case 3:switch((z=B)||(z="SD"),z){case "HD":return G.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return G.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return G.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return G.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return G.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
f59=function(W){var B,z,G;return _.T(function(Y){if(Y.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.r("disable_av1_setting")){var d=window.localStorage["yt-player-av1-pref"];d=d==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":d==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else d="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(B=W===d)return Y.jumpTo(2);G=z=W;return Y.yield(jJn(),3)}Y.nextAddress!=2&&(B=G===Y.yieldResult);return Y.return(B)})};var XR0;var KdY=_.qp.IronButtonState,uqO=(0,_.D3)(HTMLElement);
_.D8({_template:function(){if(XR0!==void 0)return XR0;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Oxq===void 0&&(Oxq=document.createElement("template"));var G=Oxq;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return XR0=W},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[KdY,_.Q3,_.nr,_.Lr],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(W){var B=(0,_.ZE)(this);B.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:W});B.shadowRoot.appendChild(W);return uqO.prototype._attachDom.call(this,W)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var W=this.contentElement;W&&W.selectedItem&&this._setSelectedItem(W.selectedItem)},
get contentElement(){for(var W=_.St(this.$.content).getDistributedNodes(),B=0,z=W.length;B<z;B++)if(W[B].nodeType===Node.ELEMENT_NODE)return W[B]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(W){this._setSelectedItem(W.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(W){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)===this&&this.open()},
_selectedItemChanged:function(W){var B="";W?B=W.label||W.getAttribute("label")||W.textContent.trim():B="";this.value=B;this._setSelectedItemLabel(B)},
_computeMenuVerticalOffset:function(W,B){return B?B:W?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var W=this.opened?"true":"false",B=this.contentElement;B&&B.setAttribute("aria-expanded",W)}});_.So=new _.J1("navigateAction");var e_b=new _.J1("formRenderer");var bV=function(){var W=_.SJ.apply(this,arguments)||this;W.showInput=!1;return W};
_.C(bV,_.SJ);_.p=bV.prototype;_.p.detached=function(){this.showInput&&window.removeEventListener("click",_.Co(this,this.closeOnOutsideClick_))};
_.p.stopPropagation_=function(W){this.showInput&&W.stopPropagation()};
_.p.closeOnOutsideClick_=function(W){this.closeOnOutsideClickCondition(W)&&(this.showInput=!1,window.removeEventListener("click",_.Co(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.p.closeOnOutsideClickCondition=function(){return!0};
_.p.closeOnOutsideClickHandler=function(){};
_.p.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Co(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.p.openOnClickHandler=function(){};
_.p.showInputChanged=function(){};
_.p.setShowInput=function(W){this.showInput=W};
bV.prototype.setShowInput=bV.prototype.setShowInput;bV.prototype.showInputChanged=bV.prototype.showInputChanged;bV.prototype.openOnClickHandler=bV.prototype.openOnClickHandler;bV.prototype.openOnClick_=bV.prototype.openOnClick_;bV.prototype.closeOnOutsideClickHandler=bV.prototype.closeOnOutsideClickHandler;bV.prototype.closeOnOutsideClickCondition=bV.prototype.closeOnOutsideClickCondition;bV.prototype.closeOnOutsideClick_=bV.prototype.closeOnOutsideClick_;bV.prototype.stopPropagation_=bV.prototype.stopPropagation_;
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],bV.prototype,"showInput",void 0);_.Q([_.IN("click"),_.IN("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],bV.prototype,"stopPropagation_",null);_.Q([_.oN("showInput"),_.y("design:type",Function),_.y("design:paramtypes",[Boolean]),_.y("design:returntype")],bV.prototype,"showInputChanged",null);_.Q([_.bP()],bV);_.m6b=[bV.prototype];var x6b;var D69;var jo=function(){return _.S.apply(this,arguments)||this};
_.C(jo,_.S);_.p=jo.prototype;_.p.computePreselectedOption=function(W,B){return B===this.itemSelected_?W:void 0};
_.p.dataChanged_=function(){var W=this;this.preselectedSubreason=this.itemSelected_=-1;var B;(B=this.data)!=null&&B.key&&_.BM(this,function(){var z,G=Number((z=W.data)==null?void 0:z.key);!Number.isNaN(G)&&(W.itemSelected_=G,z=(z=(W.data.items||[])[G])&&z.optionSelectableItemRenderer&&z.optionSelectableItemRenderer.preselectedIndex)&&(W.preselectedSubreason=z)})};
_.p.isSubReasonHidden_=function(W,B){return W!=B};
_.p.onTopItemSelected_=function(W,B){for(var z=_.tH(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),G=0,Y=z.length;G<Y;G++)z[G].select(0);_.c0(this.hostElement,"yt-report-form-update",[B.item.value]);W.stopPropagation()};
_.p.onItemSelected_=function(W,B){_.c0(this.hostElement,"yt-report-form-update",[B.item.value]);W.stopPropagation()};
_.p.getItem_=function(W){return W.serviceItem?W.serviceItem:W.navigationItem?W.navigationItem:W.optionSelectableItemRenderer?W.optionSelectableItemRenderer:null};
_.p.computeText_=function(W){return(W=this.getItem_(W))?this.ytRendererBehavior.getSimpleString(W.text):null};
_.p.validate=function(){return this.itemSelected_!==-1};
_.p.computeAriaLabel_=function(W){var B=_.zR(W.text);(W=W.accessibility&&W.accessibility.accessibilityData&&W.accessibility.accessibilityData.label)&&(B+=". "+W);return B};
_.p.computeItemSelected_=function(W){return W};
_.p.preventSelection_=function(W){W.stopPropagation();this.tooltipTapped=!0};
_.p.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.p.updateItemSelectedFromBinding=function(W){this.itemSelected_=W.detail.value};
_.p.save=function(){var W;this.validate()&&(W=this.data)!=null&&W.items&&(W=this.data.items[this.itemSelected_],W!=null&&W.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(W.optionSelectableItemRenderer.submitEndpoint)||_.V0(this.hostElement,[W.optionSelectableItemRenderer.submitEndpoint])))};
jo.prototype.onPaperRippleTransitionEnd_=jo.prototype.onPaperRippleTransitionEnd_;jo.prototype.dataChanged_=jo.prototype.dataChanged_;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],jo.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],jo.prototype,"data",void 0);_.Q([_.F({value:-1}),_.y("design:type",Number)],jo.prototype,"itemSelected_",void 0);
_.Q([_.F({computed:"computeItemSelected_(itemSelected_)"}),_.y("design:type",Number)],jo.prototype,"value",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],jo.prototype,"restoreFocusOnClose",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],jo.prototype,"tooltipTapped",void 0);_.Q([_.F({value:-1}),_.y("design:type",Number)],jo.prototype,"preselectedSubreason",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jo.prototype,"dataChanged_",null);_.Q([_.IN("transitionend"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jo.prototype,"onPaperRippleTransitionEnd_",null);_.Q([_.NJ({is:"yt-options-renderer",disableElementRegistration:!0})],jo);
_.D(jo,"yt-options-renderer",function(){if(D69===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;x6b===void 0&&(x6b=document.createElement("template"));var G=x6b;z.call(B,G.content.cloneNode(!0),W.content.firstChild);D69=W}W=D69;return W},{mode:2});var QJb;var yW1;var qwO;var nrj;var NYY;var $66;var fF=function(){return _.S.apply(this,arguments)||this};
_.C(fF,_.S);fF.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
fF.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
fF.prototype.onTap=function(W){if(this.hostElement.classList.contains("selected")||_.c0(this.hostElement,"yt-share-panel-can-select-contact-action")[0])W&&W.detail&&(W.detail.x||W.detail.y)&&_.tH(this.hostElement).querySelector("#target").blur(),(W=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),W={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:W?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.c0(this.hostElement,"yt-share-panel-select-contact-action",[W])};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.Q([_.F({observer:"onDataChanged"}),_.y("design:type",Object)],fF.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.y("design:type",String)],fF.prototype,"componentTitle",void 0);_.Q([_.Hf("#thumbnail"),_.y("design:type",Object)],fF.prototype,"thumbnail",void 0);_.Q([_.NJ({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],fF);
_.D(fF,"yt-enrolled-contact-renderer",function(){if($66===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;NYY===void 0&&(NYY=document.createElement("template"));var G=NYY;z.call(B,G.content.cloneNode(!0),W.content.firstChild);$66=W}W=$66;return W},{mode:2});var Ld9;var U6j;var Oq=function(){return _.S.apply(this,arguments)||this};
_.C(Oq,_.S);Oq.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Oq.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Oq.prototype.onTap=function(W){if(this.hostElement.classList.contains("selected")||_.c0(this.hostElement,"yt-share-panel-can-select-contact-action")[0])W&&W.detail&&(W.detail.x||W.detail.y)&&_.tH(this.hostElement).querySelector("#target").blur(),(W=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),W={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:W?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.c0(this.hostElement,"yt-share-panel-select-contact-action",[W])};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.Q([_.F({observer:"onDataChanged"}),_.y("design:type",Object)],Oq.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.y("design:type",String)],Oq.prototype,"componentTitle",void 0);_.Q([_.Hf("#thumbnail"),_.y("design:type",Object)],Oq.prototype,"thumbnail",void 0);_.Q([_.NJ({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Oq);
_.D(Oq,"yt-suggested-contact-renderer",function(){if(U6j===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Ld9===void 0&&(Ld9=document.createElement("template"));var G=Ld9;z.call(B,G.content.cloneNode(!0),W.content.firstChild);U6j=W}W=U6j;return W},{mode:2});var XL=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-share-panel-reset-action":"onReset"};return W};
_.C(XL,_.S);XL.prototype.configureRendererStamper=function(){return{"data.contacts":{id:"contents",mapping:{enrolledContactRenderer:{component:"yt-enrolled-contact-renderer",attributes:{role:"checkbox"}},suggestedContactRenderer:{component:"yt-suggested-contact-renderer",attributes:{role:"checkbox"}}}}}};
XL.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.c0(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
XL.prototype.onReset=function(){for(var W=_.tH(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),B=W.length-1;B>=0;B--)W[B].classList.toggle("selected")};
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],XL.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],XL.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F({observer:"onDataChanged"}),_.y("design:type",Object)],XL.prototype,"data",void 0);
_.Q([_.NJ({is:"yt-contact-section-renderer",disableElementRegistration:!0})],XL);
_.D(XL,"yt-contact-section-renderer",function(){if(nrj===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;qwO===void 0&&(qwO=document.createElement("template"));var G=qwO;z.call(B,G.content.cloneNode(!0),W.content.firstChild);nrj=W}W=nrj;return W},{mode:2});var KF=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return W};
_.C(KF,_.S);_.p=KF.prototype;_.p.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"}}}};
_.p.onYtRefreshFormCommand=function(W){var B;(W=_.k((B=_.k(W,_.P_M))==null?void 0:B.formRenderer,e_b))&&this.set("data",W)};
_.p.reset=function(){var W=_.tH(this.hostElement).querySelector("#fields").children;W=_.A(W);for(var B=W.next();!B.done;B=W.next())B=B.value,B.reset&&B.reset()};
_.p.getForm=function(){var W={},B=_.tH(this.hostElement).querySelector("#fields").children;B=_.A(B);for(var z=B.next();!z.done;z=B.next()){z=z.value;if(!z.validate())return null;W[z.data.key]=z.value}return W};
_.p.submitFormFields=function(){if(this.fields)for(var W=_.A(this.fields),B=W.next();!B.done;B=W.next())B=B.value,B.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?B.save():B.nodeName==="YT-OPTIONS-RENDERER"&&B.save()};
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],KF.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],KF.prototype,"data",void 0);_.Q([_.F4("#fields > *"),_.y("design:type",Array)],KF.prototype,"fields",void 0);
_.Q([_.NJ({is:"yt-form-renderer",disableElementRegistration:!0})],KF);
_.D(KF,"yt-form-renderer",function(){if(yW1===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;QJb===void 0&&(QJb=document.createElement("template"));var G=QJb;z.call(B,G.content.cloneNode(!0),W.content.firstChild);yW1=W}W=yW1;return W},{mode:2});var MDr;var uV=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return W};
_.C(uV,_.S);uV.prototype.onCheckboxChange=function(W){this.data&&(W=(this.checked=_.iP(W).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}})};
uV.prototype.handleUpdateCheckboxCommand=function(W){(W=_.k(W,_.KLQ))&&this.data&&this.data.id===W.id&&(this.set("data.disabled",W.disabled),this.set("data.title",W.title))};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],uV.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],uV.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],uV.prototype,"checked",void 0);_.Q([_.u({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],uV);
_.D(uV,"ytd-settings-checkbox-renderer",function(){if(MDr!==void 0)return MDr;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return MDr=W},{mode:1});var a5i;var eo=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return W};
_.C(eo,_.S);eo.prototype.dataChanged=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return W.radio.removeAttribute("checked"),!W.data||!W.data.id||W.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.bx0()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(B=W.data&&W.data.id)?z.yield(f59(W.data.id),4):z.jumpTo(3):(W.set("data.hidden",!0),z.jumpTo(0));z.nextAddress!=3&&(B=z.yieldResult);B&&_.c0(W.hostElement,"yt-select-settings-radio-option",[W.data.id]);_.HG(z)})};
eo.prototype.onButtonChanged=function(W){_.iP(W).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.dO().resolve(_.p4).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.c0(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
eo.prototype.onSelectOption=function(W){this.data&&this.data.id&&(this.data.id===W?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
eo.prototype.dataChanged=eo.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],eo.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.Hf("#radio"),_.y("design:type",Object)],eo.prototype,"radio",void 0);_.Q([_.F(),_.y("design:type",Object)],eo.prototype,"data",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],eo.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],eo);
_.D(eo,"ytd-settings-radio-option-renderer",function(){if(a5i!==void 0)return a5i;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return a5i=W},{mode:1});var R_1;var m2=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return W};
_.C(m2,_.S);
m2.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"}}}};
m2.prototype.handleUpdateTextCommand=function(W){(W=_.k(W,_.uWU))&&this.data&&this.data.id===W.id&&this.set("data",W)};
m2.prototype.handleUpdateConnectedAppRendererCommand=function(W){if(_.k(W,_.xeU)&&this.data){var B,z;if(W=(B=_.k(W,_.xeU))==null?void 0:(z=B.newConnectedAppRenderer)==null?void 0:z.connectedAppRenderer)this.data=W}};
m2.prototype.computeConnectedAppStyle=function(W){return W.style?W.style.toLowerCase().replace(/_/g,"-"):""};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],m2.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],m2.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],m2.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],m2.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.y("design:type",String)],m2.prototype,"connectedAppStyle",void 0);_.Q([_.u({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],m2);
_.D(m2,"ytd-connected-app-renderer",function(){if(R_1!==void 0)return R_1;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return R_1=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.ek("iuT5Oc");

_.mb();
}catch(e){_._DumpException(e)}
try{
_.ek("L3n37");
var bG3=function(W){return W.watch.isLearningJourneyActive},jgM=_.PA(115994),fDK=_.PA(115993),OGQ=function(W,B,z){var G=this;
var Y=z.dragDownAction;this.layer=0;this.JSC$23161_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return G.dragDownAction()}}}};
this.JSC$23161_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return G.dragDownAction()}}}};
this.fullscreen=!1;var d=_.SK();_.ed(d,jgM,this.layer);_.ed(d,fDK,this.layer);this.dragDownAction=function(){Y();_.aK(d,{visualElement:G.fullscreen?jgM:fDK})};
this.gesture=new _.KH(W,B,this.JSC$23161_watchConfig,"pandown");this.attach()};
OGQ.prototype.attach=function(){this.gesture.attach()};
OGQ.prototype.detach=function(){this.gesture.detach()};
OGQ.prototype.update=function(W){this.fullscreen=W;this.gesture.config=W?this.JSC$23161_watchFullScreenConfig:this.JSC$23161_watchConfig};var XTh=function(W){_.Dg.call(this);var B=this;this.rootElement=W;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return B.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(z){B.initOrDisposeActiveModules(z)}));
this.onAttached()};
_.C(XTh,_.Dg);_.p=XTh.prototype;_.p.getRoot=function(){return this.rootElement};
_.p.getElement=function(W){return this.rootElement.getElement(W)};
_.p.setPlayerResponse=function(W){this.playerResponse=W;this.publish("PLAYER_RESPONSE_UPDATED",W)};
_.p.getPlayerResponse=function(){return this.playerResponse};
_.p.setWatchNextResponse=function(W){this.watchNextResponse===W?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=W,this.publish("WATCH_NEXT_RESPONSE_UPDATED",W))};
_.p.getWatchNextResponse=function(){return this.watchNextResponse};
_.p.registerActionHandler=function(W,B){var z=this;if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var G={};_.yx(_.Qx.getInstance(),(G[W]=B,G),this.getRoot())}else this.actionHandlers.has(W)||(this.actionHandlers.set(W,[]),G={},_.yx(_.Qx.getInstance(),(G[W]=function(){var Y=_.nm.apply(0,arguments);return(z.actionHandlers.get(W)||[]).map(function(d){return d.apply(null,_.u7(Y))})},G),this.getRoot())),this.actionHandlers.get(W).push(B)};
_.p.unregisterActionHandler=function(W){if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var B={};_.Nl(_.Qx.getInstance(),(B[W]=!0,B),this.getRoot())}else(B=this.actionHandlers.get(W))?(B.pop(),B.length===0&&(B={},_.Nl(_.Qx.getInstance(),(B[W]=!0,B),this.getRoot()),this.actionHandlers.delete(W))):_.Oc(new _.oX("Attempted to unregister an action handler which is not registered.",W))};
_.p.addPageDisposeJob=function(W){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.kTT(this.rootElement.pageDisposeJobs,W)};
_.p.removePageDisposeJob=function(W){this.rootElement.pageDisposeJobs&&_.Dv(this.rootElement.pageDisposeJobs,W)};
_.p.dispatchEvent=function(W,B){_.v0(this.rootElement,W,B)};
_.p.provideRenderingData=function(W,B){this.rootElement.provideRenderingData(W,B)};
_.p.scrollWatchTo=function(W,B){var z;(z=this.watchScrollManager)==null||z.scrollWatchTo(W,B)};
_.p.focusOnPlayer=function(){var W=this.getElement("PLAYER");_.BM(W,function(){if(W&&W.firstElementChild){var B=W.querySelector(".html5-video-player");B&&(_.H$(_.dO().resolve(_.jX)),B.focus())}else _.Oc(Error("Ro"))})};
var KEM=function(W){var B=!!W.rootElement.theater,z=!!W.rootElement.fullscreen,G;(G=W.watchCinematicManager)==null||_.i4N(G,z,B)};
_.p=XTh.prototype;_.p.subscribeToActiveChanged=function(W,B){B=B===void 0?!0:B;var z=_.NG(_.Y_(),bG3,function(G){W(G)});
B&&W(bG3(_.Y_().getState()));return z};
_.p.isActive=function(){return bG3(_.Y_().getState())};
_.p.onAttached=function(){var W=_.r("external_fullscreen");_.r("use_unified_flag_accessor")&&(W=_.dO().resolve(_.S0b).retriever.getFlag(_.ZRR));(W||_.md("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.p.initPersistentModules=function(){if(_.r("kevlar_watch_flexy_theater_manager")){var W=new _.Ox_(this);_.rH(this,W)}W=new _.k4h(this);_.rH(this,W);W=new _.fC(this);_.rH(this,W);W=new _.sXK(this);_.rH(this,W);W=new _.aoN(this);_.rH(this,W);W=new _.ON(this);_.rH(this,W);_.r("kevlar_watch_flexy_playlist_manager")&&(W=new _.B2N(this),_.rH(this,W))};
_.p.initOrDisposeActiveModules=function(W){W?(this.watchScrollManager=new _.eP(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.usF(this)),this.activeModules.push(new _.K6M(this)),this.activeModules.push(new _.AD3(this)),this.activeModules.push(new _.SAR(this)),_.r("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.DwN(this)),this.activeModules.push(new _.yCM(this)),_.r("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.Ebh(this)),
_.r("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.MDN(this)),_.r("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.ztQ(this),this.activeModules.push(this.watchCinematicManager),KEM(this)),_.r("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.$n_(this)),_.r("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Z4Q(this)),W=_.r("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.r("kevlar_watch_flexy_comments_manager")&&
!W&&this.activeModules.push(new _.wSN(this)),_.r("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.WdZ(this)),this.activeModules.push(new _.QJK(this)),this.activeModules.push(new _.mnM(this)),_.r("web_enable_timely_actions")&&this.activeModules.push(new _.NYh(this)),_.r("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.JWZ(this)),_.r("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.pRm(this)),_.r("web_fullscreen_components")&&
this.activeModules.push(new _.n$m(this)),_.r("web_player_rtr_ctrls")&&this.activeModules.push(new _.tDm(this))):(_.iA(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.p.disposeInternal=function(){_.Dg.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.G5.Object.defineProperties(XTh.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var uCF={},e53=["learning-journey-engagement-panel","PAlearning_chat"];
uCF.YtdLearningJourneyWatchBehavior=[_.U.YtRendererBehavior,_.re.YtPlayerListenerBehavior,_.bu.YtRendererstamperBehavior,_.ye.YtActionHandlerBehavior,_.dz.YtPageBehavior,_.Qe.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 _.md("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.r("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 _.md("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 _.r("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.r("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 _.iO("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.iO("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!_.r("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.r("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 _.r("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_rounded_player_large")||_.r("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 _.r("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.r("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.ZA(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.ZA(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var W=this;this.watchController=void 0;this.pageDisposeJobs=[function(){W.showMetadataPlaceholder_()},
function(){_.r("web_watch_dont_clear_comments")||W.clearComments_()},
function(){W.clearPlayerAds_()},
function(){W.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;_.r("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.r("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.pTM(function(){return _.EM(W)},this.hostElement);
this.pageDisposeJobs.push(function(){W.youThereManager_.reset()});
_.r("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){W.resetFullerscreenEduButtonForNewPlayback_()}));
_.r("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.FJ;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;_.r("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.r("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));_.r("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Co(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(W){W&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:W}),W.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(W){_.r("kevlar_watch_flexy_theater_manager")&&(this.theater=W,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.r("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(W){!_.r("kevlar_watch_while_v2")&&!_.r("web_watch_pip")||W||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(W){this.active!==void 0&&(this.fullscreen=W,_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(W){this.active!==void 0&&(_.v0(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(W>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(W){this.initCsi_();this.updatePageData_(W)},
updatePageData_:function(W){var B=this;if(W)if(this.data===W){this.onPageLoadWithSameData_();var z;(z=this.watchController)==null||z.setWatchNextResponse(this.data)}else this.data=W;this.playlist&&_.Ki({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.mj("nw");this.loading=!1;_.CG(_.fg,function(){B.initDclkstatus_();var G,Y=((G=B.player)==null?void 0:G.getVideoData().cpn)||"";_.qEQ(function(d,E){_.qh0(d,E,Y)})})},
onPageLoadWithSameData_:function(){_.r("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 W=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!W);this.set("loadingData.playlistLoading",W&&W!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),W=this.watchNextSkeletonEl_.firstElementChild;W;)W.classList.remove("hidden"),W=W.nextElementSibling;var B,z,G;W=(B=this.loadingData)==null?void 0:(z=B.endpoint)==null?void 0:(G=z.watchEndpoint)==null?void 0:G.videoId;var Y;W&&(Y="https://i.ytimg.com/vi/"+W+"/frame0.jpg");_.tH(this.hostElement).querySelector("#player").style.backgroundImage=Y?"url("+Y+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var W=_.tH(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&W&&(W.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var B,z;(z=(B=this.watchMetadata).updateSentimentBarWidth)==
null||z.call(B);var G,Y;(Y=(G=this.watchMetadata).resize)==null||Y.call(G)}_.tH(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(W){var B=_.tH(this.hostElement).querySelector(W);B?_.iH(B,!1):_.Oc(new _.oX("Overscroll monitor not found for component: ",W))},
removeSplitScrollMouseTrap:function(W){var B=_.tH(this.hostElement).querySelector(W);B?_.E2(B):_.Oc(new _.oX("Disposal component for  overscroll monitoring not found: ",W))},
onLoadingChanged_:function(W){W?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(W){var B=this;W?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.fg.addLowPriorityJob(function(){B.onWindowResized_(_.Ft(!0))})},
updateTheaterModeState_:function(W){if(!_.r("kevlar_watch_flexy_theater_manager")){W=W||this.fullWindowMode_;if(this.theater!==void 0||W)this.theater=W;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();W&&_.lib()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var W=this.theater;_.r("external_fullscreen")&&this.fullscreen&&(W=!0);W=W?_.tH(this.hostElement).querySelector("#player-full-bleed-container"):_.tH(this.hostElement).querySelector("#player-container-inner");var B=this.getPlayerContainer(),z=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip");B.parentElement!==W&&(z&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.EM(this).appendTo(W,B),W.appendChild(_.tH(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var W=this;return _.T(function(B){if(B.nextAddress==1)return B.yield(_.dO().resolve(_.Qb).deactivate(),2);W.updatePlayerLocation();_.HG(B)})},
updateCinematicsLocation:function(){var W=this.getElement("CINEMATICS");if(W){var B=this.getCinematicsLocationContainer();W.parentElement!==B&&B.appendChild(W);var z;(z=this.watchController)==null||KEM(z)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.tH(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.tH(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(W,B){var z=document.documentElement.hasAttribute("dark"),G=z&&_.r("web_cinematic_theater_mode"),Y=z&&_.r("web_cinematic_fullscreen");z=!z&&this.cinematicLightTheme;return W&&G||B&&Y||(B||W)&&z},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var W;(W=this.watchController)==null||W.setWatchNextResponse(this.data);_.r("kevlar_watch_flexy_comments_manager")||this.initComments_();_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.dO().resolve(_.wW).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.r("web_watch_start_chat_in_theater_mode")){var B,
z,G;if((B=this.data)==null?0:(z=B.contents)==null?0:(G=z.twoColumnWatchNextResults)==null?0:G.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Y,d;((Y=this.data)==null?0:(d=Y.contents)==null?0:d.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(W){var B;(B=this.watchController)==null||B.setPlayerResponse(this.playerData);W&&W.playabilityStatus&&(B=this.isVideoPlayable_(W.playabilityStatus,this.getPlayerOverlays_(this.data)),W=this.isLiveStreamOffline_(W.playabilityStatus),B&&!W||_.BM(this,function(){_.mj("pbu")}));
this.setPlayerAds_();_.wV(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(W){_.Y_().dispatch(_.Tl({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));W?this.activate_():this.deactivate_()},
attached:function(){var W=this;this.watchController=new XTh(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.r("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var B=_.EM(this);_.r("kevlar_disable_prepare_player")||B.preparePlayer();_.r("kevlar_watch_flexy_playlist_manager")||_.dO().resolve(_.wW).setPlayer(B);this.updatePageMediaQueries();B={"--ytd-watch-flexy-scrollbar-width":_.tb()+
"px"};!_.iO("kv_pl_mx_sz_ks")&&_.iO("kevlar_watch_max_player_width")&&(B["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Tj3+"px");_.iO("kevlar_watch_flexy_metadata_height")&&(B["--ytd-watch-flexy-space-below-player"]=_.vAN+"px");this.safeUpdateStyles(B);_.r("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new OGQ(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return W.onPlayerTouchPanDown_()}}));
_.r("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.tH(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var W=_.tb(),B=_.$S+W,z=B;this.fixedPanels&&(B+=_.EA3);var G=657+W;W=1327+W;_.tH(this.hostElement).querySelector("#two-column-query").query="(min-width: "+B+"px)";_.tH(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(G+"px), (min-height: 630px) and (min-width: ")+(B+"px) and (max-width: ")+(W+"px)");_.tH(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(W+"px)");
_.tH(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+z+"px)"},
calculateCurrentPlayerSize_:function(){var W=_.tH(this.hostElement).querySelector("#miniplayer-bar").firstChild;return W&&W.active||this.theater||_.r("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.hv(NaN,NaN):_.UXb(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.UXb(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.AI(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var W=this;this.onWindowResized_(_.Ft());_.r("browse_skeleton_removal_on_watch_killswitch")||_.md("IS_SHELL_LOAD")&&_.i99();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var B=_.EM(this);B.addEventListener("yt-player-updated",_.Co(this,this.onPlayerUpdated_));B.getPlayerPromise().then(function(z){W.playerApiReady_(z)});
_.r("kevlar_watch_flexy_playlist_manager")||(B=_.dO().resolve(_.wW),_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&B.addEventListener("yt-navigate",_.Co(this,this.onYtNavigate_)),B.setPlaylistComponent(_.tH(this.hostElement).querySelector("#playlist")),B.addEventListener("yt-playlist-data-updated",_.Co(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.fg.addLowPriorityJob(function(){_.v0(W.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.EM(this).removeEventListener("yt-player-updated",_.Co(this,this.onPlayerUpdated_));if(!_.r("kevlar_watch_flexy_playlist_manager")){var W=_.dO().resolve(_.wW);_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&W.removeEventListener("yt-navigate",_.Co(this,this.onYtNavigate_));W.cancelVideoSkip();W.removeEventListener("yt-playlist-data-updated",_.Co(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.r("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.v0(this.hostElement,"yt-autonav-pause-player",!1);W=_.pi();_.r("kevlar_exit_fullscreen_leaving_watch")&&W&&_.Ar(W)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(W){this.player&&this.player.updateVideoData({rvs:W.rvs})},
getPageContents:function(W){return W&&W.contents&&W.contents.twoColumnWatchNextResults&&W.contents.twoColumnWatchNextResults.results&&W.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(W){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W)},
onRetrieveLocation_:function(W,B){B.hasComments?B.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):B.locationRetrieved("/related_ajax",void 0);W.stopPropagation()},
onSubscriptionChanged_:function(W,B){this.player&&(B?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Yd("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.tH(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.tH(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(W){this.player=W;this.setPlayerState(W.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.r("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.r("kevlar_unified_player")||_.r("kevlar_player_new_bootstrap_adoption"))&&_.$l()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(W,B){B=B===void 0?!0:B;_.pi()&&_.r("external_fullscreen")&&_.Ar(document.documentElement);this.theaterRequested_=W;B&&_.k8("wide",W?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.r("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.c0(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.v0(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(W){_.XC(W,typeof this.player),this.player&&_.XC(W,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var W;((W=this.player)==null?0:W.isFullscreen())?this.player.toggleFullscreen():_.c0(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(W,B){return this.loading?B:!!Object.keys(W).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(W){if(W){W=_.A(W);for(var B=W.next();!B.done;B=W.next())B=B.value,B.youThereRenderer&&_.EEb(this.youThereManager_,B.youThereRenderer)}},
setPlaylistData_:function(W){return W||{}},
userEngagementConfigDataChanged_:function(W){if(W)if(W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var B=this.youThereManager_;_.Gi()<W.lowEngagementThresholdMs||_.wTQ(B,!0)}else W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.c0(this.hostElement,"yt-autonav-pause-user-engagement",[W])},
isPlayerUnavailable_:function(W,B,z){return!!W&&!this.isVideoPlayable_(W,z)&&!B},
getPlayerOverlays_:function(W){return(W==null?void 0:W.playerOverlays)||null},
isVideoPlayable_:function(W,B){if(!W)return!1;var z=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",G=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",W)||this.get("errorScreen.ypcTrailerRenderer",W);W=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",W);var Y;B=B==null?void 0:(Y=B.playerOverlayRenderer)==null?void 0:Y.gatedActionsOverlayRenderer;return!!z||!!G||!!W||!!B},
hasWatchNextResponseErrorRenderer:function(W){var B=this.getPageContents(W),z,G,Y,d,E;return!(W==null?0:(z=W.contents)==null?0:(G=z.twoColumnWatchNextResults)==null?0:G.secondaryResults)&&!!((Y=B[0])==null?0:(d=Y.itemSectionRenderer)==null?0:(E=d.contents[0])==null?0:E.backgroundPromoRenderer)},
isLiveStreamOffline_:function(W){return W?W.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(W,B,z){var G=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",B),Y=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Y=_.r("web_no_skip_video_on_verification_checks")?(W==null?void 0:W.status)&&Y.includes(W.status):W&&W.status==="AGE_CHECK_REQUIRED";var d=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",W);d==void 0&&(d=!0);!z||this.isVideoPlayable_(W,this.getPlayerOverlays_(B))||
G||Y||!d||_.dO().resolve(_.wW).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.a_N()},
onPlayerFeedbackStartRequest_:function(W){_.c0(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:W}])},
onPlayerFeedbackArticleRequest_:function(W){_.c0(this.hostElement,"yt-help-dialog-requested",[W])},
onPlayerYpcContentRequest_:function(){var W,B,z,G,Y,d,E,v,c=((W=this.data)==null?NaN:(B=W.contents)==null?NaN:(z=B.twoColumnWatchNextResults)==null?NaN:(G=z.secondaryResults)==null?NaN:(Y=G.secondaryResults)==null?NaN:(d=Y.offerModule)==null?NaN:(E=d.tvfilmOfferModuleRenderer)==null?NaN:(v=E.actionButtons)==null?NaN:v.length)-1;W=[".offerButton.buttonRenderer.",".actionButtons."+(c>=0?c:0)+".buttonRenderer."];B=_.A(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(z=B.next();!z.done;z=B.next())for(z=z.value,G=_.A(W),Y=G.next();!Y.done;Y=G.next())if(Y="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+z+Y.value,Y=this.get(Y+"navigationEndpoint",this.data)||this.get(Y+"serviceEndpoint",this.data)||this.get(Y+"command",this.data)){_.oB(Y,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(W){_.v0(this.hostElement,"yt-autonav-pause-player",W)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(W){W()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.v0(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(W)},
setPlayerState:function(W){_.Y_().dispatch(_.saM(W))},
onPlayerSubscribe_:function(W){_.c0(this.hostElement,"yt-player-subscribe",[W])},
onPlayerUnsubscribe_:function(W){_.c0(this.hostElement,"yt-player-unsubscribe",[W])},
onPlayerAdYtShowToast_:function(W){_.c0(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:W.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(W){if(W)return W},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(W){return!_.r("web_watch_move_summary_to_sd")&&!!W},
computeWatchMetadataRefresh:function(){return _.r("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var W,B,z,G;this.watchNextSecondaryResults=(W=this.data)==null?void 0:(B=W.contents)==null?void 0:(z=B.twoColumnWatchNextResults)==null?void 0:(G=z.secondaryResults)==null?void 0:G.secondaryResults}},
setRichGridRendererData:function(W){this.richGridRendererData=W},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var W,B=(W=this.data)==null?void 0:W.engagementPanels;if(B==null?0:B.length){W=null;B=_.A(B);for(var z=B.next();!z.done;z=B.next()){z=z.value;var G=void 0;if(((G=z.engagementPanelSectionListRenderer)==null?void 0:G.targetId)==="engagement-panel-structured-description"){W=z;break}}var Y,d,E;W=(Y=W)==null?void 0:(d=Y.engagementPanelSectionListRenderer)==null?void 0:(E=d.content)==null?void 0:E.structuredDescriptionContentRenderer;if(W==null?0:W.items){Y=
[];d=_.A(W.items);for(E=d.next();!E.done;E=d.next()){E=E.value;if(!_.r("sd_horizontal_list_show_nav_killswitch")){var v=G=z=B=W=void 0,c=void 0,J=(W=E.horizontalCardListRenderer)==null?void 0:(B=W.header)==null?void 0:(z=B.richListHeaderRenderer)==null?void 0:(G=z.navigationButton)==null?void 0:(v=G.buttonRenderer)==null?void 0:(c=v.command)==null?void 0:c.commandExecutorCommand;J&&J.commands&&(J.commands=J.commands.filter(function(g){return!_.k(g,_.IRR)}))}E.expandableVideoDescriptionBodyRenderer||
E.videoDescriptionHeaderRenderer||Y.push(E)}return{items:Y}}}},
constructWarning_:function(W){return{text:_.Bg(W),type:"WARNING"}},
isPlaShelfEnabled_:function(W){if((this.get("adPlacements",W)||[]).length)return!0;W=this.get("playerAds",W)||[];return!(!W.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",W[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var W=this;_.v0(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var B=this.getScrollTop()>0;this.gestures_&&(B?this.gestures_.detach():this.gestures_.attach());B!==this.showFullerscreenEdu_&&_.r("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=B,_.EM(this).getPlayerPromise().then(function(z){z.updateFullerscreenEduButtonVisibility(W.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.v0(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var W=this;this.commentsReady=!1;_.fg.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.CG(_.fg,function(){W.setComments_()},1E3)},
setComments_:function(){if(!_.r("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.mj("cmi");_.fg.cancelJob(this.setCommentsJobId_);var W=this.getPageContents(this.data);if(W&&W.length){W=_.A(W);for(var B=W.next();!B.done;B=W.next())if(B=B.value,this.get("itemSectionRenderer.sectionIdentifier",B)==="comment-item-section"){this.comments=B.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.v0(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.mj("cmc")},
doRemoveComments_:function(){this.comments={};_.r("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.fg.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.fg.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(W,B){var z=_.k(B.endpoint,_.W0);z&&(!(B=this.get("data.currentVideoEndpoint.watchEndpoint"))||z.videoId!==B.videoId||z.playlistId&&z.playlistId!==B.playlistId||z.index!==void 0&&z.index!==B.index||typeof z.startTimeSeconds!=="number"||(W.stopPropagation(),this.setScrollTop(0),_.EM(this).getPlayerPromise().then(function(G){var Y=z.startTimeSeconds;G.seekTo(Y);G.wakeUpControls();Y<G.getDuration()&&G.playVideo()})))},
updatePlayerStartTime_:function(){var W=_.XVR();"t"in W&&(W=_.MlM(W.t),this.player.seekTo(W,!0))},
updateTitleFromWatchNext:function(W){W=this.getPageContents(W);var B,z;(W=_.zR(W==null?void 0:(B=W[0])==null?void 0:(z=B.videoPrimaryInfoRenderer)==null?void 0:z.title))&&_.v0(this.hostElement,"yt-update-title",W)},
updateTitle_:function(W){W=this.get("videoDetails.title",W)||"";_.v0(this.hostElement,"yt-update-title",W)},
syncWithRemoteVideo_:function(W,B,z){if(this.active&&this.player){var G=this.player.getVideoData();if(G.video_id===z&&(z=G.list,_.r("polymer_enable_mdx_queue")&&z&&z.startsWith("RQ")&&(z=void 0),G.video_id!==W||z!=B)){var Y;_.r("kevlar_player_watch_endpoint_navigation")?Y=_.tir(_.nbQ(W,B)):Y=this.buildWatchEndpoint_(W,B);_.v0(this.hostElement,"yt-navigate",{endpoint:Y,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(W,B,z){return _.pA(W,B,z)},
initDclkstatus_:function(){_.LgK()},
attachWatchPageSkeleton_:function(){var W=document.querySelector("#watch-page-skeleton");if(W){var B=W.querySelector("#primary-info"),z=W.querySelector("#secondary-info"),G=W.querySelector("#related");B&&_.tH(this.hostElement).querySelector("#info-skeleton").appendChild(B);z&&_.tH(this.hostElement).querySelector("#meta-skeleton").appendChild(z);G&&(_.tH(this.hostElement).querySelector("#related-skeleton").appendChild(G),this.watchNextSkeletonEl_=G);_.o0(W)}},
handlePlayerUpdated_:function(){_.EM(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(W,B){if(this.watchNextSkeletonEl_&&typeof B!=="undefined"){var z=this.watchNextSkeletonEl_.children,G=W&&W.indexSplices.length?W.indexSplices[0].index:0;W=Math.min(this.watchNextShownItems.length,z.length);B||(G=0,W=z.length);for(B=G;B<W;B++)z[B].classList.add("hidden")}},
onPlayerFullscreenChange_:function(W){_.r("external_fullscreen")||_.c0(this.hostElement,"yt-player-fullscreen",[W.fullscreen])},
onFullscreenChange_:function(W){this.fullscreen=W;this.gestures_&&this.gestures_.update(this.fullscreen);var B=_.EM(this);B.getPlayerPromise().then(function(z){z.setFauxFullscreen(!!_.pi())});
this.updateFullBleedElementLocations();W&&(B.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(W,B){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!B},
computeIsDonationShelfCollapsed_:function(W){return W},
computeShouldShowMerchShelf:function(W,B){return B&&!!W},
computeResponseHasComments:function(W){var B,z,G,Y,d;return!!(W==null?0:(B=W.contents)==null?0:(z=B.twoColumnWatchNextResults)==null?0:(G=z.results)==null?0:(Y=G.results)==null?0:(d=Y.contents)==null?0:d.some(function(E){var v;return(E==null?void 0:(v=E.itemSectionRenderer)==null?void 0:v.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(W,B){this.responseHasComments=this.computeResponseHasComments(this.data);return!!W&&!!Object.keys(W).length&&!B},
identity:_.Ku,onWindowResized_:function(W){this.windowSize_=W;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.r("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(W){var B=this;W&&W.type!=="dataloaded"&&W.type!=="dataupdated"||_.EM(this).getPlayerPromise().then(function(z){var G=z.getPlayerState();G!==5&&G!==0&&(z=1/z.getVideoAspectRatio(),B.videoHeightToWidthRatio_!==z&&(B.videoHeightToWidthRatio_=z))})},
schedulePlayerSizeUpdate_:function(W){var B=this,z=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"),G=function(){if(B.watchMetadata){var Y,d;(d=(Y=B.watchMetadata).resize)==null||d.call(Y)}_.EM(B).getPlayerPromise().then(function(E){if(_.r("kevlar_set_internal_player_size")){if(!z||!B.isMiniplayerActive()){var v=B.calculateCurrentPlayerSize_();E.setInternalSize(v.width,v.height)}}else E.setSize(NaN,NaN);_.r("kevlar_watch_while")&&B.updateWatchWhileScrollThreshold_()})};
W?G():_.gn(_.fg,G)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(W){this.set("data.survey",W.detail)},
onYtShowSurveyCommand_:function(W){this.set("data.survey",_.k(W,_.dlb).survey)},
onDownloadedVideoDeleted:function(W){var B=this,z,G;return _.T(function(Y){if(Y.nextAddress==1){if(!B.active||(z=B.playerData)==null||!z.offlineState||B.videoId!==W)return Y.return();(G=B.player)==null||G.stopVideo();_.qG().navigatingAwayFromWatchDeletedVideo=!0;_.oB(_.VG2,B.hostElement);return Y.yield(_.qG().navigationFinishPromise,2)}_.qG().navigatingAwayFromWatchDeletedVideo=!1;_.HG(Y)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var W;this.theater?W=_.eT(.5625*this.windowSize_.width,480,this.windowSize_.height-185):W=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==W&&(this.watchWhileScrollThreshold_=W,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var W=_.tH(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&W){var B=this.windowSize_.height>=624,z=this.active?this.getScrollTop():0;!W.active&&B&&z>=this.watchWhileScrollThreshold_?(W.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):W.active&&(!B||z<this.watchWhileScrollThreshold_&&!_.pi())&&(W.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(W,B){if(W!==!0||B!==void 0){W=!_.r("live_chat_over_engagement_panels");B=_.tH(this.hostElement).querySelector("#chat-container");var z=_.tH(this.hostElement).querySelector("#plj-sidebar"),G=_.tH(this.hostElement).querySelector("#panels"),Y=_.tH(this.hostElement).querySelector("#plj-panels"),d=_.tH(this.hostElement).querySelector("#plj-playlist"),E=_.tH(this.hostElement).querySelector("#alerts"),v=_.tH(this.hostElement).querySelector("#playlist"),c=_.tH(this.hostElement).querySelector("#related"),
J=_.tH(this.hostElement).querySelector("#donation-shelf"),g=_.tH(this.hostElement).querySelector("#comments");this.isTwoColumns_?(E=_.tH(this.hostElement).querySelector("#secondary-inner"),E.appendChild(z),z.appendChild(d),d.appendChild(v),z.appendChild(Y),W&&E.appendChild(G),_.r("web_watch_theater_chat")||E.appendChild(B),W||E.appendChild(G),E.appendChild(J),E.appendChild(c)):(W&&_.qD(G,E),_.qD(v,E),_.r("web_watch_theater_chat")||_.qD(B,E),W||_.qD(G,E),_.qD(J,E),g&&(Y&&_.qD(Y,g),_.qD(c,g)));_.r("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.r("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.r("web_watch_theater_chat")){var W=_.tH(this.hostElement).querySelector("#chat-container"),B=this.theater&&!this.fullscreen||_.r("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&B?_.r("web_watch_theater_chat_beside_player")?(B=_.tH(this.hostElement).querySelector("#panels-full-bleed-container"),(W==null?void 0:W.parentElement)!==B&&B.append(W),this.panelsBesidePlayer=!0):_.r("web_watch_theater_fixed_chat")&&
(B=_.tH(this.hostElement).querySelector("#columns"),(W==null?void 0:W.parentElement)!==B&&B.append(W),this.fixedPanels=!0):(_.r("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.r("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),B=_.tH(this.hostElement).querySelector("#playlist"),W&&B?_.nf(W,B):_.Oc(new _.oX("Missing element when updating chat location",{"chatContainer defined":!!W,"playlist defined":!!B})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(W,B){return _.r("sw_metadata_vis_toggle_ks")?!0:!!W||!!B},
computeForceDarkPanelTheme:function(W){return _.r("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&W:!1},
safeUpdateStyles:function(W){try{_.kw(this.hostElement,W)}catch(B){_.Oc(B)}},
videoHeightToWidthRatioChanged_:function(W,B){B&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.r("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(W){this.videoHeightToWidthRatio_=1/W},
computeIsVerticalVideo_:function(W){return W>=1},
computeIsFourThreeToSixteenNineVideo_:function(W){return W<=.7501&&W>=.5624},
computeIsExtraWideVideo_:function(W){return W<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.EM(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.EM(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.VyN(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(W){var B=_.QL(W)||0;_.Da(W,B+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var W=_.QL("yt-fullerscreen-edu-button-click-count")||0,B=_.QL("yt-fullerscreen-edu-button-shown-count")||0,z=_.iO("external_fullscreen_button_shown_threshold"),G=W>=_.iO("external_fullscreen_button_click_threshold")||B>=z;_.EM(this).getPlayerPromise().then(function(Y){Y.updateFullerscreenEduButtonSubtleModeState(G)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(W,B){return B},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.dO().resolve(_.wW).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var W=this;this.panelMaxHeightUpdateJob_&&_.fg.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.fg.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;var B;!W.isTwoColumns_||W.theater||W.fullscreen?B=460:B=W.calculateNormalPlayerSize_().height;var z=B+"px";_.r("live_chat_taller_height")&&!W.theater&&(z="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.r("live_chat_medium_height")&&
!W.theater&&(z="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.r("live_chat_scaled_height")&&!W.theater&&(z="calc(100vh - var(--ytd-toolbar-height) - 238px)");W.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":B+"px","--ytd-watch-flexy-chat-max-height":z,"--ytd-watch-flexy-structured-description-max-height":B+"px","--ytd-watch-flexy-comments-panel-max-height":B+"px","--ytd-comments-engagement-panel-content-height":B+"px"})})},
onYtShowEngagementPanelScrimAction_:function(W){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",W)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Jr(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(W){var B=_.tH(this.hostElement).querySelector("#engagement-panel-scrim");W?B.addEventListener("tap",_.Co(this,this.onEngagementPanelScrimClick_)):B.removeEventListener("tap",_.Co(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(W){if(this.hostElement.contains(W)&&!this.scrollToAnimation_.isAnimating()){var B=W.offsetTop-24;W=W.offsetTop+W.offsetHeight+24;var z=this.getPageScrollingElement(),G=this.getScrollTop(),Y=G+z.clientHeight-56;if(B<G+56)B-=56;else if(W>Y)B=W-z.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,B),500)}},
onYtSignalActionScrollToComments:function(){var W=this.hostElement.querySelector("#comments");if(W&&!this.scrollToAnimation_.isAnimating()){W=W.offsetTop-56-24;if(_.r("kevlar_comment_teaser_scroll_to_midpoint")&&(W-=_.Fi().height/3,W<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtEngagementPanelVisibleChanged:function(W,B,z){this.active&&this.trackEngagementPanelVisibility&&!_.Gim.includes(z)&&(B==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(z),B!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&B!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(z),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(W){return W?"":"watch-active-metadata"},
computeNewMetadataClass:function(W){return W?"watch-active-metadata":""},
computeFullBleedPlayer:function(W,B){return W||B},
computeDefaultLayout:function(W){return!W},
computeDefaultTwoColumnLayout:function(W,B){return!W&&B},
computeWatchWhilePanelsActive:function(W,B){return W||B},
computeNoBorderOnChat:function(W){return _.r("web_watch_theater_chat_no_border")&&W},
computeLiveChatPresentAndExpanded:function(W,B){return W&&!B},
computePanelExpanded:function(W,B,z){return W||B||z},
onChangeMarkersVisibility:function(W){_.EM(this).getPlayerPromise().then(function(B){var z;(z=B.changeMarkerVisibility)==null||z.call(B,_.k(W,_.yM).isVisible||!1,_.k(W,_.yM).entityKeys||[],_.k(W,_.yM).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(W){this.liveChatCollapsed=W.detail;_.Y_().dispatch(_.z5h(W.detail))},
provideRenderingData:function(W,B){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=B;break;case "PRIMARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=B);this.videoPrimaryInfoRendererValue=B==null?void 0:B.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=B);this.videoSecondaryInfoRendererValue=B==null?void 0:B.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
B;break;case "CLARIFICATION":this.clarifyBoxValue=B;break;case "LIVE_CHAT":this.conversationBar=B;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=B;break;case "PLAYLIST":this.externalPlaylistData_=B!=null?B:{};break;case "MERCH_SHELF":this.merchShelfValue=B==null?void 0:B.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=B;break;case "OFFER_MODULE":this.offerModule=B;break;case "LIMITED_STATE":this.limitedStateValue=B;break;case "DONATION_SHELF":this.donation=B;break;
case "ALERTS":this.alertsValue=B;break;case "COMMENTS":this.comments=B;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=B;break;case "ENGAGEMENT_PANELS":this.engagementPanels=B;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=B;break;case "RICH_GRID_RENDERER":this.richGridRendererData=B;break;case "EXPANDABLE_METADATA":this.expandableMetadata=B;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=B}},
toggleCinematicsActive:function(W){this.cinematicsActive=W},
isMiniplayerActive:function(){return _.dO().resolve(_.Qb).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(W){return e53.map(function(B){return W.find(function(z){var G;return(z==null?void 0:(G=z.engagementPanelSectionListRenderer)==null?void 0:G.targetId)===B})}).filter(function(B){return B!==void 0})},
getNonLearningJourneyEngagementPanels:function(W){return W.filter(function(B){var z;return!e53.includes((B==null?void 0:(z=B.engagementPanelSectionListRenderer)==null?void 0:z.targetId)||"")})}}];var mlZ;var Rm=function(){var W=_.S.apply(this,arguments)||this;W.flexy=!0;W.learningJourney=!0;W.roundedInfoPanel=!0;W.viewTransitionEnabled=_.r("enable_player_resize_transition");W.smallerChatMinHeight=_.r("live_chat_smaller_min_height");W.cinematicTheaterMode=_.r("web_cinematic_theater_mode");W.transparentTheaterMode=_.r("web_transparent_theater_mode");W.cinematicFullscreen=_.r("web_cinematic_fullscreen");W.useLargerMaxPlayerValue=_.r("kevlar_flexy_use_larger_player_value");W.cinematicFullscreenV2=_.r("web_cinematic_fullscreen_v2");
W.isDarkTheme=document.documentElement.hasAttribute("dark");W.theaterLargerPlayer=_.r("web_watch_theater_larger_player");W.defaultCollapsePlaylist=_.r("web_watch_default_collapse_playlist");W.enableCanvasLayout=_.r("web_enable_canvas_on_learning_journey");return W};
_.C(Rm,_.S);_.p=Rm.prototype;_.p.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.p.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.p.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.p.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.p.ready=function(){var W=this,B=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",B);this.secondary.addEventListener("scroll",B)};
_.p.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.p.updateIsTwoColumnsFromBinding=function(W){_.r("web_watch_update_narrow_width_killswitch")||_.Y_().dispatch(_.PQo(!W.detail.value));this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.p.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.p.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.p.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.p.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.p.updateShownItemsFromBinding=function(W){W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value};
_.p.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23170_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23170_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.G5.Object.defineProperties(Rm.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var B=0;B<this.data.pageVisualEffects.length;B++)if(W=_.k(this.data.pageVisualEffects[B],_.BK))return B=void 0,(B=W.config)==null?void 0:B.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.learningJourneyEngagementPanels)==null?void 0:W.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var W,B=(W=this.learningJourneyEngagementPanels)==null?void 0:W.find(function(P){var Z;return(P==null?void 0:(Z=P.engagementPanelSectionListRenderer)==null?void 0:Z.panelIdentifier)==="learning-journey-engagement-panel"});
if(B){var z,G,Y,d,E,v,c,J,g;if(W=(J=((c=(E=((d=B==null?void 0:(z=B.engagementPanelSectionListRenderer)==null?void 0:(G=z.content)==null?void 0:(Y=G.sectionListRenderer)==null?void 0:Y.contents)!=null?d:[])[0])==null?void 0:(v=E.itemSectionRenderer)==null?void 0:v.contents)!=null?c:[])[0])==null?void 0:(g=J.accordionViewModel)==null?void 0:g.onTitleTap){var t=_.$B(W);if(t)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.IB.instance.resolveCommand(t)}}}}}}});
_.G5.Object.defineProperties(Rm,{template:{configurable:!0,enumerable:!0,get:function(){if(mlZ===void 0){var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);mlZ=W}W=mlZ;return W}}});
Rm.prototype.updateMiniplayerIsActiveValue=Rm.prototype.updateMiniplayerIsActiveValue;Rm.prototype.updateScrollTopValue=Rm.prototype.updateScrollTopValue;Rm.prototype.updateFullscreenValue=Rm.prototype.updateFullscreenValue;Rm.prototype.updateTheaterValue=Rm.prototype.updateTheaterValue;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Rm.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(uCF.YtdLearningJourneyWatchBehavior),_.y("design:type",Object)],Rm.prototype,"ytdWatchBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Rm.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Rm.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Rm.prototype,"playerData",void 0);_.Q([_.F(),_.y("design:type",Object)],Rm.prototype,"browseData",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rm.prototype,"flexy",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rm.prototype,"learningJourney",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rm.prototype,"roundedInfoPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rm.prototype,"viewTransitionEnabled",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rm.prototype,"smallerChatMinHeight",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rm.prototype,"cinematicTheaterMode",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rm.prototype,"transparentTheaterMode",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rm.prototype,"cinematicFullscreen",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rm.prototype,"useLargerMaxPlayerValue",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rm.prototype,"cinematicFullscreenV2",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rm.prototype,"isDarkTheme",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rm.prototype,"theaterLargerPlayer",void 0);_.Q([_.F(),_.y("design:type",Object)],Rm.prototype,"defaultCollapsePlaylist",void 0);_.Q([_.F(),_.y("design:type",Object)],Rm.prototype,"enableCanvasLayout",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("playerData","browseData","enableCanvasLayout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Rm.prototype,"showBrowseResponse",null);_.Q([_.F({reflectToAttribute:!0}),_.H("playerData","enableCanvasLayout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Rm.prototype,"showWatchResponse",null);_.Q([_.F({selector:_.Qm}),_.y("design:type",Object)],Rm.prototype,"theaterValue",void 0);
_.Q([_.F({selector:_.ym}),_.y("design:type",Object)],Rm.prototype,"fullscreenValue",void 0);_.Q([_.F({selector:_.Dw}),_.y("design:type",Object)],Rm.prototype,"scrollTopValue",void 0);_.Q([_.F({selector:_.xO}),_.y("design:type",Object)],Rm.prototype,"miniplayerIsActiveValue",void 0);_.Q([_.Hf("#ytd-plj-player"),_.y("design:type",HTMLElement)],Rm.prototype,"ytdPlayer",void 0);_.Q([_.Hf("#playlist"),_.y("design:type",HTMLElement)],Rm.prototype,"JSC$23170_ytdPlaylistPanelRenderer",void 0);
_.Q([_.xg("ytd-comments"),_.y("design:type",HTMLElement)],Rm.prototype,"ytdComments",void 0);_.Q([_.Hf("#primary"),_.y("design:type",HTMLElement)],Rm.prototype,"primary",void 0);_.Q([_.Hf("#secondary"),_.y("design:type",HTMLElement)],Rm.prototype,"secondary",void 0);_.Q([_.Hf("#player-container"),_.y("design:type",HTMLElement)],Rm.prototype,"playerContainer",void 0);_.Q([_.Hf("#cinematics"),_.y("design:type",HTMLElement)],Rm.prototype,"JSC$23170_cinematics",void 0);
_.Q([_.oN("theaterValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Rm.prototype,"updateTheaterValue",null);_.Q([_.oN("fullscreenValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Rm.prototype,"updateFullscreenValue",null);_.Q([_.oN("scrollTopValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Rm.prototype,"updateScrollTopValue",null);
_.Q([_.oN("miniplayerIsActiveValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Rm.prototype,"updateMiniplayerIsActiveValue",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Rm.prototype,"cinematicLightTheme",null);_.Q([_.F({reflectToAttribute:!0}),_.H("learningJourneyEngagementPanels"),_.y("design:type",Object),_.y("design:paramtypes",[])],Rm.prototype,"hasLearningJourneyPanels",null);
_.Q([_.H("learningJourneyEngagementPanels"),_.y("design:type",Object),_.y("design:paramtypes",[])],Rm.prototype,"backButtonData",null);_.Q([_.u({is:"ytd-watch-learning-journey"})],Rm);_.u1.registerService(_.VnR,Rm);
_.mb();
}catch(e){_._DumpException(e)}
try{
_.ek("Tm0L3c");
var oEZ;var h5N;var HGm=function(){return _.S.apply(this,arguments)||this};
_.C(HGm,_.S);_.Q([_.u({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],HGm);
_.D(HGm,"ytd-ghost-comments-renderer",function(){if(h5N===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);h5N=W}W=h5N;return W},{mode:1});var FEb;var Scm=function(){return _.S.apply(this,arguments)||this};
_.C(Scm,_.S);_.Q([_.u({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Scm);
_.D(Scm,"ytd-ghost-watch-metadata-renderer",function(){if(FEb===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);FEb=W}W=FEb;return W},{mode:1});var am=function(){var W=_.S.apply(this,arguments)||this;W.ghostGridRenderer={rows:6};W.roundedInfoPanel=!0;W.hideOfferModules=!0;W.smallerChatMinHeight=_.r("live_chat_smaller_min_height");W.cinematicTheaterMode=_.r("web_cinematic_theater_mode");W.transparentTheaterMode=_.r("web_transparent_theater_mode");W.darkerPanels=_.r("web_watch_darker_panels");W.cinematicFullscreen=_.r("web_cinematic_fullscreen");W.cinematicFullscreenV2=_.r("web_cinematic_fullscreen_v2");W.isDarkTheme=document.documentElement.hasAttribute("dark");
return W};
_.C(am,_.S);_.p=am.prototype;_.p.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.p.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.p.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.p.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.p.ready=function(){var W=this,B=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",B);this.secondary.addEventListener("scroll",B)};
_.p.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.p.updateIsTwoColumnsFromBinding=function(W){this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.p.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.p.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.p.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.p.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.p.updateShownItemsFromBinding=function(W){_.r("swatcheroo_direct_use_rich_grid")||(W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value)};
_.p.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23158_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23158_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.G5.Object.defineProperties(am.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var B=0;B<this.data.pageVisualEffects.length;B++)if(W=_.k(this.data.pageVisualEffects[B],_.BK))return B=void 0,(B=W.config)==null?void 0:B.enableInLightTheme;return!1}}});
am.prototype.updateMiniplayerIsActiveValue=am.prototype.updateMiniplayerIsActiveValue;am.prototype.updateScrollTopValue=am.prototype.updateScrollTopValue;am.prototype.updateFullscreenValue=am.prototype.updateFullscreenValue;am.prototype.updateTheaterValue=am.prototype.updateTheaterValue;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],am.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(_.Cpm.YtdWatchBehavior),_.y("design:type",Object)],am.prototype,"ytdWatchBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],am.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],am.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],am.prototype,"ghostGridRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],am.prototype,"playerData",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],am.prototype,"roundedInfoPanel",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],am.prototype,"hideOfferModules",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],am.prototype,"smallerChatMinHeight",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],am.prototype,"cinematicTheaterMode",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],am.prototype,"transparentTheaterMode",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],am.prototype,"darkerPanels",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],am.prototype,"cinematicFullscreen",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],am.prototype,"cinematicFullscreenV2",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],am.prototype,"isDarkTheme",void 0);_.Q([_.F({selector:_.Qm}),_.y("design:type",Object)],am.prototype,"theaterValue",void 0);
_.Q([_.F({selector:_.ym}),_.y("design:type",Object)],am.prototype,"fullscreenValue",void 0);_.Q([_.F({selector:_.Dw}),_.y("design:type",Object)],am.prototype,"scrollTopValue",void 0);_.Q([_.F({selector:_.xO}),_.y("design:type",Object)],am.prototype,"miniplayerIsActiveValue",void 0);_.Q([_.Hf("#ytd-player"),_.y("design:type",HTMLElement)],am.prototype,"ytdPlayer",void 0);_.Q([_.Hf("#playlist"),_.y("design:type",HTMLElement)],am.prototype,"JSC$23158_ytdPlaylistPanelRenderer",void 0);
_.Q([_.Hf("#ytd-comments"),_.y("design:type",HTMLElement)],am.prototype,"ytdComments",void 0);_.Q([_.Hf("#primary"),_.y("design:type",HTMLElement)],am.prototype,"primary",void 0);_.Q([_.Hf("#secondary"),_.y("design:type",HTMLElement)],am.prototype,"secondary",void 0);_.Q([_.Hf("#player-container"),_.y("design:type",HTMLElement)],am.prototype,"playerContainer",void 0);_.Q([_.Hf("#cinematics"),_.y("design:type",HTMLElement)],am.prototype,"JSC$23158_cinematics",void 0);
_.Q([_.oN("theaterValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],am.prototype,"updateTheaterValue",null);_.Q([_.oN("fullscreenValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],am.prototype,"updateFullscreenValue",null);_.Q([_.oN("scrollTopValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],am.prototype,"updateScrollTopValue",null);
_.Q([_.oN("miniplayerIsActiveValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],am.prototype,"updateMiniplayerIsActiveValue",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],am.prototype,"cinematicLightTheme",null);
_.D(am,"ytd-watch-grid",function(){if(oEZ===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);oEZ=W}W=oEZ;return W},{mode:2});_.u1.registerService(_.wKR,am);
_.mb();
}catch(e){_._DumpException(e)}
try{
_.ek("CF909");
var IDM;var Mq=function(){var W=_.S.apply(this,arguments)||this;W.flexy=!0;W.roundedInfoPanel=!0;W.viewTransitionEnabled=_.r("enable_player_resize_transition");W.smallerChatMinHeight=_.r("live_chat_smaller_min_height");W.cinematicTheaterMode=_.r("web_cinematic_theater_mode");W.transparentTheaterMode=_.r("web_transparent_theater_mode");W.cinematicFullscreen=_.r("web_cinematic_fullscreen");W.useLargerMaxPlayerValue=_.r("kevlar_flexy_use_larger_player_value");W.isDarkTheme=document.documentElement.hasAttribute("dark");
W.defaultCollapsePlaylist=_.r("web_watch_default_collapse_playlist");W.retroModeReduxValue=!1;W.persistentPanelVisibleValue=!1;return W};
_.C(Mq,_.S);_.p=Mq.prototype;_.p.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.p.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.p.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.p.updateRetroModeReduxValue=function(){_.r("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.p.updatePersistentPanelVisibleValue=function(){_.r("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.p.ready=function(){var W=this,B=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",B);this.secondary.addEventListener("scroll",B)};
_.p.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.p.updateIsTwoColumnsFromBinding=function(W){_.r("web_watch_update_narrow_width_killswitch")||_.Y_().dispatch(_.PQo(!W.detail.value));this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.p.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.p.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.p.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.p.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.p.updateShownItemsFromBinding=function(W){W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value};
_.p.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23153_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23153_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.G5.Object.defineProperties(Mq.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var B=0;B<this.data.pageVisualEffects.length;B++)if(W=_.k(this.data.pageVisualEffects[B],_.BK))return B=void 0,(B=W.config)==null?void 0:B.enableInLightTheme;return!1}}});
_.G5.Object.defineProperties(Mq,{template:{configurable:!0,enumerable:!0,get:function(){if(IDM===void 0){var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);IDM=W}W=IDM;return W}}});
Mq.prototype.updatePersistentPanelVisibleValue=Mq.prototype.updatePersistentPanelVisibleValue;Mq.prototype.updateRetroModeReduxValue=Mq.prototype.updateRetroModeReduxValue;Mq.prototype.updateScrollTopValue=Mq.prototype.updateScrollTopValue;Mq.prototype.updateFullscreenValue=Mq.prototype.updateFullscreenValue;Mq.prototype.updateTheaterValue=Mq.prototype.updateTheaterValue;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Mq.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.Cpm.YtdWatchBehavior),_.y("design:type",Object)],Mq.prototype,"ytdWatchBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Mq.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Mq.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Mq.prototype,"playerData",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mq.prototype,"flexy",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mq.prototype,"roundedInfoPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mq.prototype,"viewTransitionEnabled",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mq.prototype,"smallerChatMinHeight",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mq.prototype,"cinematicTheaterMode",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mq.prototype,"transparentTheaterMode",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mq.prototype,"cinematicFullscreen",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mq.prototype,"useLargerMaxPlayerValue",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Mq.prototype,"isDarkTheme",void 0);_.Q([_.F(),_.y("design:type",Object)],Mq.prototype,"defaultCollapsePlaylist",void 0);
_.Q([_.F({selector:_.Qm}),_.y("design:type",Object)],Mq.prototype,"theaterValue",void 0);_.Q([_.F({selector:_.ym}),_.y("design:type",Object)],Mq.prototype,"fullscreenValue",void 0);_.Q([_.F({selector:_.Dw}),_.y("design:type",Object)],Mq.prototype,"scrollTopValue",void 0);_.Q([_.F({selector:_.xO}),_.y("design:type",Object)],Mq.prototype,"miniplayerIsActive",void 0);_.Q([_.F({selector:function(W){return W.watch.isWatchRetroMode}}),
_.y("design:type",Object)],Mq.prototype,"retroModeReduxValue",void 0);_.Q([_.F({selector:_.M$.persistentPanelVisibleSelector}),_.y("design:type",Object)],Mq.prototype,"persistentPanelVisibleValue",void 0);_.Q([_.xg("ytd-player"),_.y("design:type",HTMLElement)],Mq.prototype,"ytdPlayer",void 0);_.Q([_.Hf("#playlist"),_.y("design:type",HTMLElement)],Mq.prototype,"JSC$23153_ytdPlaylistPanelRenderer",void 0);_.Q([_.xg("ytd-comments"),_.y("design:type",HTMLElement)],Mq.prototype,"ytdComments",void 0);
_.Q([_.Hf("#primary"),_.y("design:type",HTMLElement)],Mq.prototype,"primary",void 0);_.Q([_.Hf("#secondary"),_.y("design:type",HTMLElement)],Mq.prototype,"secondary",void 0);_.Q([_.Hf("#player-container"),_.y("design:type",HTMLElement)],Mq.prototype,"playerContainer",void 0);_.Q([_.Hf("#below"),_.y("design:type",HTMLElement)],Mq.prototype,"below",void 0);_.Q([_.Hf("#cinematics"),_.y("design:type",HTMLElement)],Mq.prototype,"JSC$23153_cinematics",void 0);
_.Q([_.Hf("#persistent-panel-container"),_.y("design:type",HTMLElement)],Mq.prototype,"persistentPanelContainer",void 0);_.Q([_.oN("theaterValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mq.prototype,"updateTheaterValue",null);_.Q([_.oN("fullscreenValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mq.prototype,"updateFullscreenValue",null);
_.Q([_.oN("scrollTopValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mq.prototype,"updateScrollTopValue",null);_.Q([_.oN("retroModeReduxValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mq.prototype,"updateRetroModeReduxValue",null);_.Q([_.oN("persistentPanelVisibleValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mq.prototype,"updatePersistentPanelVisibleValue",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Mq.prototype,"cinematicLightTheme",null);_.Q([_.u({is:"ytd-watch-flexy"})],Mq);_.u1.registerService(_.cpu,Mq);
_.mb();
}catch(e){_._DumpException(e)}
try{
_.ek("nmfa2d");
var Ogh;var DO=function(){var W=_.S.apply(this,arguments)||this;W.hidden=!1;W.errorScreen=null;W.playlistData={};return W};
_.C(DO,_.S);_.p=DO.prototype;_.p.getPlayer=function(){return this.ytdPlayer};
_.p.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:_.ZA(["aa","eocs"])}}};
_.p.onActiveChanged=function(){_.Y_().dispatch(_.VlN(this.ytPageBehavior.active))};
_.p.playerDataChanged=function(){var W;(W=this.watchController)==null||W.setPlayerResponse(this.playerData)};
_.p.dataChanged=function(){var W;(W=this.watchController)==null||W.setWatchNextResponse(this.data)};
_.p.sizeChanged=function(){var W,B;(B=(W=this.metadata).resize)==null||B.call(W)};
_.p.attached=function(){this.watchController=new _.mc(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.p.detached=function(){_.AI(this.watchController);this.watchController=void 0};
_.p.getPlayerContainer=function(){return this.playerContainer};
_.p.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.p.provideRenderingData=function(W,B){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=B;break;case "ERROR_SCREEN":this.errorScreen=B!=null?B:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=B;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=B;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=B;break;case "RICH_METADATA":this.richMetadataRowContainer=B;break;case "CLARIFICATION":this.clarificationData=B;break;case "PLAYLIST":this.playlistData=
B!=null?B:{};break;case "MERCH_SHELF":this.merchShelf=B;break;case "TICKET_SHELF":this.ticketShelf=B;break;case "LIMITED_STATE":this.limitedState=B;break;case "DONATION_SHELF":this.donationShelf=B;break;case "ALERTS":this.alerts=B}};
_.G5.Object.defineProperties(DO.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return!this.hidden&&!!((W=this.data)==null?0:(B=W.contents)==null?0:(z=B.twoColumnWatchNextResults)==null?0:z.conversationBar)}}});
DO.prototype.sizeChanged=DO.prototype.sizeChanged;DO.prototype.dataChanged=DO.prototype.dataChanged;DO.prototype.playerDataChanged=DO.prototype.playerDataChanged;DO.prototype.onActiveChanged=DO.prototype.onActiveChanged;_.Q([_.h(_.dz.YtPageBehavior),_.y("design:type",Object)],DO.prototype,"ytPageBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],DO.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],DO.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"playerData",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],DO.prototype,"hidden",void 0);_.Q([_.Hf("#ytd-player"),_.y("design:type",HTMLElement)],DO.prototype,"ytdPlayer",void 0);_.Q([_.Hf("#player-container"),_.y("design:type",HTMLElement)],DO.prototype,"playerContainer",void 0);_.Q([_.Hf("#metadata"),_.y("design:type",Object)],DO.prototype,"metadata",void 0);_.Q([_.Hf("#playlist"),_.y("design:type",HTMLElement)],DO.prototype,"playlistPanel",void 0);
_.Q([_.F({selector:_.rKo,reflectToAttribute:!0}),_.y("design:type",Object)],DO.prototype,"fixie",void 0);_.Q([_.F({selector:_.ZOR,reflectToAttribute:!0}),_.y("design:type",Object)],DO.prototype,"singleColumn",void 0);_.Q([_.F({selector:function(W){return _.Qm(W)&&!_.ym(W)},
reflectToAttribute:!0}),_.y("design:type",Object)],DO.prototype,"theater",void 0);_.Q([_.F({selector:_.ym,reflectToAttribute:!0}),_.y("design:type",Object)],DO.prototype,"fullscreen",void 0);_.Q([_.F({selector:_.T2o}),_.y("design:type",Object)],DO.prototype,"windowSize",void 0);_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"singleColumnContents",void 0);_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"errorScreen",void 0);_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"playlistData",void 0);
_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"videoPrimaryInfoRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"videoSecondaryInfoRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"richMetadataRowContainer",void 0);_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"clarificationData",void 0);_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"commentsEntryPointHeaderRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"ticketShelf",void 0);
_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"merchShelf",void 0);_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"donationShelf",void 0);_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"limitedState",void 0);_.Q([_.F(),_.y("design:type",Object)],DO.prototype,"alerts",void 0);_.Q([_.H("playlistData"),_.y("design:type",Object),_.y("design:paramtypes",[])],DO.prototype,"hasPlaylistData",null);
_.Q([_.H("data","hidden"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],DO.prototype,"hasChat",null);_.Q([_.oN("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DO.prototype,"onActiveChanged",null);_.Q([_.oN("playerData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DO.prototype,"playerDataChanged",null);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DO.prototype,"dataChanged",null);_.Q([_.oN("windowSize","singleColumn"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DO.prototype,"sizeChanged",null);
_.D(DO,"ytd-watch-fixie",function(){if(Ogh===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);Ogh=W}W=Ogh;return W},{mode:1});_.u1.registerService(_.vdT,DO);
_.mb();
}catch(e){_._DumpException(e)}
try{
_.ek("xwEKAe");
var EMm=function(W){return _.MX(W)?W.getAttribute("jsname")==="coFSxe":!1},TUN=function(W,B){B.id||(B.id="ow"+_.Lu(B));
W.setAttribute("jsowner",B.id);W.__owner=B;var z=_.n3(B,EMm);z&&(_.OGR.has(z)||_.OGR.set(z,[]),_.OGR.get(z).push(W));(z=_.fDF.get(B))||_.fDF.set(B,z=[]);z.includes(W)||z.push(W);B.setAttribute("__IS_OWNER",!0)},vMF=function(){var W=_.obx(1);
W=_.d4(W,_.jex);if(!(_.I_X(W)||W[_.p0T]&&!W.__hasBeenSet))return W.value},cMR=function(W){var B=_.IP();
if(B.getFlag(202))B=B.getFlag(201);else{var z;B=(W==null?void 0:(z=W.config)==null?void 0:z.settingOnByDefault)!==void 0?W.config.settingOnByDefault:!_.r("web_shorts_cinematics_disabled_by_default")}return B},wQo=function(W){var B=_.IP();
_.oP(0,201,W);_.oP(0,202,!0);B.save()},VRN=function(W){return(W=_.Kl0(W))?_.eGx(W):0},JMh=function(W){return W.shorts.isSmallScreenSqueezeback},gMQ=function(W){return W.shorts.isPlaybackStarted},PR_=function(W){var B=_.obx(2),z=new Set;
_.fR(function(){return void z.forEach(function(G){return void G()})});
return function(G){var Y=_.Y$(B);try{var d=tR_(su3(W),G);z.add(d);return function(){d();z.delete(d)}}finally{_.Y$(Y)}}},Z7N=function(W){var B=W.children;
var z=W.root;_.bk(function(){var G=PR_(z)(B);_.fR(G)});
return document.createTextNode("")},tR_=function(W,B){var z=rMR(W);
(W=vMF())&&TUN(z,W);B=_.A(_.Fu8(B,!0));W=B.next().value;var G=B.next().value;B=_.A(W);for(W=B.next();!W.done;W=B.next())z.appendChild(W.value);return function(){G();z.remove()}},su3=function(W){if(typeof W==="string")return W=document.querySelector(W),_.$On(W),W;
if(_.Ew(W)&&W.nodeType===Node.ELEMENT_NODE)return W;if(!W.__value&&!W.__optional){var B=_.iix.USE_ELEMENT_NOT_ASSIGNED(W.__expectedTagName);W.__hasErrored=!0;throw B;}return W.value},rMR=function(W){var B=document.createElementNS(W.namespaceURI,W.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return W.appendChild(B)},k6K=function(W,B,z,G){W=B-W;
z=G-z;return Math.sqrt(W*W+z*z)},l9Z=function(W,B){W&&_.dO().resolve(_.p4).resolveCommand(W,{forceClickLogging:!0,
form:{element:B}})},CRZ=function(W,B,z,G){W=B-W;
z=G-z;return Math.sqrt(W*W+z*z)},I9h=function(W,B){W&&_.dO().resolve(_.p4).resolveCommand(W,{forceClickLogging:!0,
form:{element:B}})},oMM=function(){return _.dO().resolve(_.N1).dismissedIndices},hDR=function(W,B){var z,G,Y,d,E,v,c,J,g;
return _.T(function(t){if(t.nextAddress==1){z=_.dO().resolve(_.W0i);d=(G=z)==null?void 0:(Y=G.reelWatchEndpointMap)==null?void 0:Y.reelWatchSequence;v=(E=W.innertubeTransportService)!=null?E:_.dO().resolve(_.N_);if(!d)return t.jumpTo(2);c=d();return(J=c.JSC$13114_getRequest(B,{}))?t.yield(_.cz(v,J.innerTubeRequest,J.input,B.clickTrackingParams,J.config),4):t.jumpTo(2)}return t.nextAddress!=2?(g=t.yieldResult,t.return(g)):t.return(void 0)})},H7N=function(W){return _.Tl({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:W}})},F4_=function(W){return _.Tl({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:W}})},SFR=function(W){return _.Tl({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:W}})};var Ii=function(W,B){if(W instanceof Ii)this.array_=W.array_;else{var z;if(z=_.yR(W))a:{for(var G=z=0;G<W.length;G++){if(!_.yR(W[G])||z>0&&W[G].length!=z){z=!1;break a}for(var Y=0;Y<W[G].length;Y++)if(typeof W[G][Y]!=="number"){z=!1;break a}z==0&&(z=W[G].length)}z=z!=0}if(z)this.array_=_.QR(W);else if(W instanceof _.hv)this.array_=b7Z(W.height,W.width);else if(typeof W==="number"&&typeof B==="number"&&W>0&&B>0)this.array_=b7Z(W,B);else throw Error("Eo");}this.size_=new _.hv(this.array_[0].length,
this.array_.length)},juF=function(W,B,z){for(var G=0;G<W.getSize().height;G++)for(var Y=0;Y<W.getSize().width;Y++)B.call(z,W.array_[G][Y],G,Y,W)},f9Z=function(W,B){var z=new Ii(W.getSize());
juF(W,function(G,Y,d){z.array_[Y][d]=B.call(void 0,G,Y,d,W)});
return z},b7Z=function(W,B){for(var z=[],G=0;G<W;G++){z[G]=[];
for(var Y=0;Y<B;Y++)z[G][Y]=0}return z};
Ii.prototype.add=function(W){if(!_.XyN(this.size_,W.getSize()))throw Error("Fo");return f9Z(this,function(B,z,G){return B+W.array_[z][G]})};
Ii.prototype.equals=function(W,B){if(this.size_.width!=W.size_.width||this.size_.height!=W.size_.height)return!1;B=B||0;for(var z=0;z<this.size_.height;z++)for(var G=0;G<this.size_.width;G++)if(!_.Ouo(this.array_[z][G],W.array_[z][G],B))return!1;return!0};
Ii.prototype.getSize=function(){return this.size_};
var oi=function(W,B,z){return B>=0&&B<W.size_.height&&z>=0&&z<W.size_.width?W.array_[B][z]:null};
Ii.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var O7R=function(W,B,z,G){if(!(B>=0&&B<W.size_.height&&z>=0&&z<W.size_.width))throw Error("Go`"+B+"`"+z+"`"+W.size_.height+"`"+W.size_.width);W.array_[B][z]=G};
Ii.prototype.multiply=function(W){if(W instanceof Ii){if(this.size_.width!=W.getSize().height)throw Error("Ho");return XQQ(this,W)}if(typeof W==="number")return K4Z(this,W);throw Error("Io");};
var XQQ=function(W,B){var z=new Ii(W.size_.height,B.getSize().width);juF(z,function(G,Y,d){for(var E=G=0;E<this.size_.width;E++)G+=oi(this,Y,E)*oi(B,E,d);O7R(z,Y,d,G)},W);
return z},K4Z=function(W,B){return f9Z(W,function(z){return z*B})};var uHm=new _.J1("inlineSurveyRenderer");var eD_=new _.J1("interstitialViewModel");var mT3=new _.J1("reelNavigateCommand");var xTo=new _.J1("reelNonVideoContentDismissalCommand");var DTh=new _.J1("showReelsCommentsOverlayCommand");var QuN=new _.J1("shortsSuggestedActionViewModel");var yMF=new _.J1("videoInteractionPopUpRenderer");var qFZ;var nMK;var NUN;var h3=function(){var W=_.S.apply(this,arguments)||this;W.ctaVisualElement=null;W.currentCsn=null;return W};
_.C(h3,_.S);_.p=h3.prototype;_.p.onDataChanged=function(){this.maybeLogShows()};
_.p.computeButtonShape=function(){var W=this;if(this.data)return{buttonText:_.zR(this.data.text),state:"active",onTap:function(){W.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.p.maybeCreateCtaVe=function(){var W;if((W=this.data)!=null&&W.badgeInteractionLogging){var B;if(W=(B=this.data.badgeInteractionLogging)==null?void 0:B.trackingParams)this.ctaVisualElement=_.XF(W)}};
_.p.maybeLogClicks=function(){this.currentCsn=_.m1(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.RP(this.currentCsn,this.ctaVisualElement)};
_.p.maybeLogShows=function(){this.currentCsn=_.m1(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Mj(this.currentCsn,[this.ctaVisualElement])};
_.p.onTap=function(){var W;if((W=this.data)!=null&&W.onClickCommand){var B;this.ytComponentBehavior.resolveCommand((B=this.data)==null?void 0:B.onClickCommand);this.maybeLogClicks()}};
h3.prototype.onDataChanged=h3.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],h3.prototype,"ytComponentBehavior",void 0);_.Q([_.F({}),_.y("design:type",Object)],h3.prototype,"data",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],h3.prototype,"onDataChanged",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],h3);
_.D(h3,"ytd-shopping-overlay-badge-renderer",function(){if(NUN!==void 0)return NUN;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return NUN=W},{mode:1});_.Vm(_.UZj,"reel-sound-metadata-view-model",{props:{data:_.wS,overlayDensity:_.wS}});_.Vm(_.U5n,"player-disclosure-view-model",{props:{data:_.kz}});_.Vm(_.omD,"pivot-button-view-model",{props:{data:_.wS,className:_.wS}});_.Vm(_.hJ7,"reel-action-bar-view-model",{props:{data:_.kz,buttonShapeOverrideables:_.kz}});_.Vm(_.m(function(W){function B(){var gk,vy,lx,Zv,VR=(vy=_.k((gk=a())==null?void 0:gk.command,_.DL))==null?void 0:(lx=vy.item)==null?void 0:(Zv=lx.notificationTextRenderer)==null?void 0:Zv.successResponseText;if(VR)_.c0(G.value,"yt-open-popup-action",[_.ps(VR),G.value]);else if(q())l9Z(q(),l.value);else{var ux;l9Z((ux=a())==null?void 0:ux.command,l.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var z=W.data;var G=_.LG("yt-player-overlay-video-interactions");W=_.A(_.g4("0px",void 0,"O3ow6c"));var Y=W.next().value,d=W.next().value;W=_.A(_.g4("0px",void 0,"V0TSYd"));var E=W.next().value,v=W.next().value;W=_.A(_.g4(0,void 0,"ipRdDf"));var c=W.next().value,J=W.next().value;W=_.A(_.g4(0,void 0,"ztYEKb"));var g=W.next().value,t=W.next().value,P=function(){var gk;if(((gk=_.ru())==null?void 0:gk.getPlayerState())!==-1){G.value.style.display="inherit";var vy;(vy=_.ru())==null||vy.removeEventListener("onStateChange",
P)}Z()},Z=function(){var gk=document.querySelector("video");
if(gk){J(gk.getBoundingClientRect().width);t(gk.getBoundingClientRect().height);var vy;d((gk==null?void 0:(vy=gk.style)==null?void 0:vy.left)||"0px");var lx;v((gk==null?void 0:(lx=gk.style)==null?void 0:lx.top)||"0px")}};
_.ja(function(){var gk,vy,lx;if(((gk=_.ru())==null?void 0:gk.getPlayerState())===-1&&Math.round(((lx=(vy=_.ru())==null?void 0:vy.getVideoAspectRatio())!=null?lx:0)*100)!==Math.round(c()/g()*100)){G.value.style.display="none";var Zv,VR;t(c()/((VR=(Zv=_.ru())==null?void 0:Zv.getVideoAspectRatio())!=null?VR:1))}},"ikzYW");
_.bk(function(){var gk;(gk=_.ru())==null||gk.addEventListener("onStateChange",P);window.addEventListener("resize",Z);Z();var vy,lx,Zv;if((Zv=(vy=z())==null?void 0:(lx=vy.regions)==null?void 0:lx[0])==null||!Zv.transformationMatrix)throw Error("Mo");var VR;if((VR=z())==null?0:VR.trackingParams){var ux;_.SK().graftServerVe((ux=z().trackingParams)!=null?ux:"")}_.fR(function(){var X2;(X2=_.ru())==null||X2.removeEventListener("onStateChange",P);window.removeEventListener("resize",Z)})});
var l=_.LG("svg"),b=_.A(_.g4(!1,void 0,"Thzfnf"));W=b.next().value;var O=b.next().value,K=_.A(_.g4(!1,void 0,"nsniPd"));b=K.next().value;var e=K.next().value,a=function(){var gk;return _.k((gk=z())==null?void 0:gk.popUp,yMF)},q=function(){var gk;
return(gk=z())==null?void 0:gk.command},n=function(){return _.k(q(),_.jc)!==void 0};
K=_.lF(function(){B();return!1});
var L={},By={};return _.w("yt-player-overlay-video-interactions",{el:G},_.w("svg",{"on:mouseover":_.lF(function(){n()&&O(!0);e(!0);return!1}),
"on:mouseout":_.lF(function(){O(!1);e(!1);return!1}),
"on:keydown":_.lF(function(gk){gk.key==="Enter"&&B();return!1}),
"on:focus":_.lF(function(){n()&&O(!0);return!1}),
"on:blur":_.lF(function(){n()&&O(!1);return!1}),
el:l,tabindex:0,"aria-label":function(){var gk;return(gk=z())==null?void 0:gk.a11yString},
id:"player-overlay-video-interaction-svg",class:_.kG("ytPlayerOverlayVideoInteractionsInteractionsSvg",(L.ytPlayerOverlayVideoInteractionsInteractionsSvgHover=W,L),(By.ytPlayerOverlayVideoInteractionsInteractionsSvgHideOutline=b,By)),role:"button",style:function(){var gk,vy,lx,Zv=(lx=(gk=z())==null?void 0:(vy=gk.regions)==null?void 0:vy[0].transformationMatrix)!=null?lx:[];gk=c();vy=g();lx=[];for(var VR=0,ux=-1;VR<Zv.length;VR++)VR%3===0&&(ux++,lx[ux]=[]),lx[ux].push(Zv[VR]);Zv=new Ii(lx);lx=new Ii([[0,
1,1,0],[0,0,1,1],[1,1,1,1]]);lx=Zv.multiply(lx);Zv=new Ii([[0,0],[0,0],[0,0],[0,0]]);for(VR=0;VR<lx.getSize().width;VR++){ux=oi(lx,0,VR);var X2=oi(lx,1,VR);if(ux===null||X2===null)throw Error("Lo`"+(VR+1).toString());O7R(Zv,VR,0,ux*gk);O7R(Zv,VR,1,X2*vy)}gk=oi(Zv,0,0);VR=oi(Zv,1,0);vy=oi(Zv,0,1);ux=oi(Zv,1,1);if(gk===null||VR===null||vy===null||ux===null)throw Error("Jo");lx=k6K(gk,VR,vy,ux);X2=oi(Zv,3,0);Zv=oi(Zv,3,1);if(X2===null||Zv===null)throw Error("Ko");Zv=k6K(gk,X2,vy,Zv);ux=(Number((ux*-1).toFixed(2))-
Number((vy*-1).toFixed(2)))/(Number(VR.toFixed(2))-Number(gk.toFixed(2)));X2=Math.atan(ux)*180/Math.PI;VR=ux===Number.POSITIVE_INFINITY?-90:ux===Number.NEGATIVE_INFINITY?90:Object.is(ux,-0)?180:ux===0?0:ux>0?X2*-1:gk<VR?X2*-1:Math.abs(X2)+180;return"left:calc("+gk+"px + "+Y()+"); top:calc("+(vy+"px + "+E()+"); width:")+(lx+"px; height:")+(Zv+"px; transform:rotate(")+(VR+"deg);")},
"on:click":K}))},"uk"),"yt-player-overlay-video-interactions",{props:{data:_.kz}});_.Vm(_.B4f,"yt-reel-metapanel-view-model",{props:{data:_.kz,overlayDensity:_.kz}});var $T_=_.m(function(W){var B=W.children;var z=W.region;W=_.A(_.g4(void 0,void 0,"MsSyte"));var G=W.next().value,Y=W.next().value;W=_.A(_.g4("0px",void 0,"U9Yihd"));var d=W.next().value,E=W.next().value;W=_.A(_.g4("0px",void 0,"UO1H6d"));var v=W.next().value,c=W.next().value;W=_.A(_.g4(0,void 0,"sMVTKb"));var J=W.next().value,g=W.next().value;W=_.A(_.g4(0,void 0,"kZZV8b"));var t=W.next().value,P=W.next().value,Z=function(){var a=G();if(a){var q;if(((q=_.ru())==null?void 0:q.getPlayerState())!==-1){a.style.display=
"inherit";var n;(n=_.ru())==null||n.removeEventListener("onStateChange",Z)}b()}},l=function(){var a=document.querySelectorAll("video");
return Array.from(a).find(function(q){var n;return q==null?void 0:(n=q.style)==null?void 0:n.width})},b=function(){var a=l();
if(a){g(a.getBoundingClientRect().width);P(a.getBoundingClientRect().height);var q;E((a==null?void 0:(q=a.style)==null?void 0:q.left)||"0px");var n;c((a==null?void 0:(n=a.style)==null?void 0:n.top)||"0px")}};
_.ja(function(){var a=G();if(a){var q,n,L;if(((q=_.ru())==null?void 0:q.getPlayerState())===-1&&Math.round(((L=(n=_.ru())==null?void 0:n.getVideoAspectRatio())!=null?L:0)*100)!==Math.round(J()/t()*100)){a.style.display="none";var By,gk;P(J()/((gk=(By=_.ru())==null?void 0:By.getVideoAspectRatio())!=null?gk:1))}}},"jJLfwe");
var O=function(){b()},K;
_.bk(function(){b();var a;if(!(z==null?0:(a=z())==null?0:a.transformationMatrix))throw Error("Mo");var q;(q=_.ru())==null||q.addEventListener("onStateChange",Z);if(window.ResizeObserver){if(a=l())K=new ResizeObserver(O),K.observe(a)}else window.addEventListener("resize",b);_.fR(function(){var n;(n=_.ru())==null||n.removeEventListener("onStateChange",Z);K?K.disconnect():window.removeEventListener("resize",b)})});
var e=function(){var a,q,n=(q=z==null?void 0:(a=z())==null?void 0:a.transformationMatrix)!=null?q:[];a=J();q=t();for(var L=[],By=0,gk=-1;By<n.length;By++)By%3===0&&(gk++,L[gk]=[]),L[gk].push(n[By]);n=new Ii(L);L=new Ii([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);L=n.multiply(L);n=new Ii([[0,0],[0,0],[0,0],[0,0]]);for(By=0;By<L.getSize().width;By++){gk=oi(L,0,By);var vy=oi(L,1,By);if(gk===null||vy===null)throw Error("Lo`"+(By+1).toString());O7R(n,By,0,gk*a);O7R(n,By,1,vy*q)}a=oi(n,0,0);By=oi(n,1,0);q=oi(n,0,
1);gk=oi(n,1,1);if(a===null||By===null||q===null||gk===null)throw Error("Jo");L=CRZ(a,By,q,gk);vy=oi(n,3,0);n=oi(n,3,1);if(vy===null||n===null)throw Error("Ko");n=CRZ(a,vy,q,n);gk=(Number((gk*-1).toFixed(2))-Number((q*-1).toFixed(2)))/(Number(By.toFixed(2))-Number(a.toFixed(2)));vy=Math.atan(gk)*180/Math.PI;By=gk===Number.POSITIVE_INFINITY?-90:gk===Number.NEGATIVE_INFINITY?90:Object.is(gk,-0)?180:gk===0?0:gk>0?vy*-1:a<By?vy*-1:Math.abs(vy)+180;return"left:calc("+a+"px + "+d()+"); top:calc("+(q+"px + "+
v()+"); width:")+(L+"px; height:")+(n+"px; transform:rotate(")+(By+"deg);")};
return _.w(Z7N,{root:"#sticker-layer"},function(){return _.w("yt-overlay-sticker",{el:_.TG(Y),style:e,class:"ytOverlayStickerHost"},B)})},"vk");var L4b=_.m(function(W){function B(){var Z,l,b,O,K=(l=_.k((Z=c())==null?void 0:Z.command,_.DL))==null?void 0:(b=l.item)==null?void 0:(O=b.notificationTextRenderer)==null?void 0:O.successResponseText;if(K)_.c0(G.value,"yt-open-popup-action",[_.ps(K),G.value]);else if(J())I9h(J(),G.value);else{var e;I9h((e=c())==null?void 0:e.command,G.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var z=W.data;var G=_.LG("svg"),Y=_.A(_.g4(!1,void 0,"i4BL1"));W=Y.next().value;var d=Y.next().value,E=_.A(_.g4(!1,void 0,"FzRJKd"));Y=E.next().value;var v=E.next().value,c=function(){var Z;return _.k((Z=z())==null?void 0:Z.popUp,yMF)},J=function(){var Z;
return(Z=z())==null?void 0:Z.command},g=function(){return _.k(J(),_.jc)!==void 0};
E=_.lF(function(){B();return!1});
var t={},P={};return _.w("svg",{"on:mouseover":_.lF(function(){g()&&d(!0);v(!0);return!1}),
"on:mouseout":_.lF(function(){d(!1);v(!1);return!1}),
"on:keydown":_.lF(function(Z){Z.key==="Enter"&&B();return!1}),
"on:focus":_.lF(function(){g()&&d(!0);return!1}),
"on:blur":_.lF(function(){g()&&d(!1);return!1}),
el:G,tabindex:0,"aria-label":function(){var Z;return(Z=z())==null?void 0:Z.a11yString},
id:"player-overlay-video-interaction-svg",class:_.kG("ytPlayerOverlayInteractionInteractionsSvg",(t.ytPlayerOverlayInteractionInteractionsSvgHover=W,t),(P.ytPlayerOverlayInteractionInteractionsSvgHideOutline=Y,P)),role:"button","on:click":E})},"xk");_.Vm(_.m(function(W){var B=W.data;_.bk(function(){var z;if((z=B())==null?0:z.trackingParams){var G;_.SK().graftServerVe((G=B().trackingParams)!=null?G:"")}});
return _.w("yt-player-overlay-interaction",null,_.w($T_,{region:function(){var z,G;return(z=B())==null?void 0:(G=z.regions)==null?void 0:G[0]}},_.w(L4b,Object.assign({},W))))},"wk"),"yt-player-overlay-interaction",{props:{data:_.kz}});var HY=function(){var W=_.S.apply(this,arguments)||this;W.showScrubber=!1;W.isWatchWhileMode=!1;W.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");W.enableNewStickers=_.r("use_shorts_sticker_overlay_web");W.anchoredPanelActive=!1;W.enableLivingroomLayout=_.r("reels_enable_livingroom_layout");W.enablePlayerMetadataContainer=_.r("reels_web_enable_metadata_container");W.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");W.useAspectRatio=_.r("web_use_aspect_ratio");W.isSqueezebackActive=
!1;W.smallScreenSqueezeback=!1;W.isPlayerStarted=!1;W.overlayDensity=0;W.extractOverlay=!1;W.extractActionBar=!1;W.isOverlay=!1;W.isImmersive=!1;W.isImmersiveHorizontal=!1;W.isFullscreen=!1;W.onWindowResized=function(){var B;W.set("isImmersive",((B=window.getComputedStyle(W.hostElement))==null?void 0:B.getPropertyValue("--immersive-mode-on"))==="1");W.set("isImmersiveHorizontal",W.isImmersive&&W.enableLivingroomLayout&&!W.isWatchWhileMode)};
return W};
_.C(HY,_.S);_.p=HY.prototype;_.p.updateIsOverlay=function(W){this.isOverlay=W.detail.value};
_.p.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.p.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.p.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.p.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.p.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.p.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.p.ready=function(){(_.r("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.r("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.EA("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.EA("reels_action_justified_content")||"flex-start")};
_.p.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}}};
_.p.setFakeLoadingButtons=function(){_.r("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.kq("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.kq("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.kq("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.kq("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.kq("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()};
_.p.setEmptyOverlayMetadata=function(){_.r("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}))};
_.G5.Object.defineProperties(HY.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.infoPanel)}}});
HY.prototype.onIsActiveChanged=HY.prototype.onIsActiveChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],HY.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],HY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],HY.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],HY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],HY.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],HY.prototype,"isActive",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],HY.prototype,"hidden",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],HY.prototype,"useShortsIcon",void 0);_.Q([_.F({value:"left"}),_.y("design:type",String)],HY.prototype,"buttonTooltipPosition",void 0);
_.Q([_.F({value:_.r("reels_enable_livingroom_layout")?"top":"left"}),_.y("design:type",String)],HY.prototype,"likeButtonTooltipPosition",void 0);_.Q([_.F({value:"none"}),_.y("design:type",String)],HY.prototype,"textTransform",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"showScrubber",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"isWatchWhileMode",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.infoPanel"),_.y("design:type",Object),_.y("design:paramtypes",[])],HY.prototype,"hasInfoPanel",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"enableAnchoredPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"enableNewStickers",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"anchoredPanelActive",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"enableLivingroomLayout",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],HY.prototype,"enablePlayerMetadataContainer",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"enableSqueezebackPanels",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"useAspectRatio",void 0);
_.Q([_.F({selector:_.ts8,reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"isSqueezebackActive",void 0);_.Q([_.F({selector:JMh,reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"smallScreenSqueezeback",void 0);_.Q([_.F({selector:gMQ}),_.y("design:type",Object)],HY.prototype,"isPlayerStarted",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"overlayDensity",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"extractOverlay",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"extractActionBar",void 0);_.Q([_.F(),_.y("design:type",Object)],HY.prototype,"isOverlay",void 0);_.Q([_.F(),_.y("design:type",Object)],HY.prototype,"isImmersive",void 0);_.Q([_.F(),_.y("design:type",Object)],HY.prototype,"isImmersiveHorizontal",void 0);
_.Q([_.F({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.y("design:type",Boolean)],HY.prototype,"isShortsImmersive",void 0);_.Q([_.F({computed:"computeButtonOverride(extractActionBar)"}),_.y("design:type",Object)],HY.prototype,"buttonOverride",void 0);_.Q([_.F({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.y("design:type",Object)],HY.prototype,"actionBarButtonOverride",void 0);
_.Q([_.F({selector:_.ck,reflectToAttribute:!0}),_.y("design:type",Object)],HY.prototype,"isFullscreen",void 0);_.Q([_.oN("isActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HY.prototype,"onIsActiveChanged",null);_.Q([_.u({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],HY);
_.D(HY,"ytd-reel-player-overlay-renderer",function(){if(nMK!==void 0)return nMK;var W=document.createElement("template");_.I(W,'\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="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template 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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return nMK=W},{mode:1});var UTK;var FY=function(){var W=_.S.apply(this,arguments)||this;W.videoDuration=0;W.playedTime=0;W.isActive=!1;W.JSC$22350_playerEvents=new Map;return W};
_.C(FY,_.S);_.p=FY.prototype;_.p.created=function(){this.JSC$22350_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22350_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.p.attached=function(){this.getPlayerAndInitializeListeners()};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22350_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Co(this,this.onPageChanged))};
_.p.getPlayerAndInitializeListeners=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return B=_.TN(),B?z.yield(B.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Co(W,W.onPageChanged)),z.jumpTo(0));W.player=z.yieldResult;W.initializePlayerListeners();_.HG(z)})};
_.p.onPageChanged=function(W){var B=this;return _.T(function(z){if(z.nextAddress==1)return W.detail.newPageType!=="ytd-shorts"?z.return():z.yield(_.vA().getPlayerPromise(),2);B.player=z.yieldResult;B.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Co(B,B.onPageChanged));_.HG(z)})};
_.p.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22350_playerEvents)};
_.p.onVideoDataChange=function(W){var B=this;return _.T(function(z){if(!B.player||W.type!=="newdata")return z.return();B.videoDuration=_.r("web_shorts_use_progress_state_for_gapless")?B.player.getProgressState(W.playertype).seekableEnd:B.player.getDuration(W.playertype);B.playedTime=0;_.HG(z)})};
_.p.onVideoProgress=function(W){var B=this,z,G;return _.T(function(Y){if(!B.player)return Y.return();z=B.player.getPresentingPlayerType();G=B.player.getPlayerState();B.videoDuration=_.r("web_shorts_use_progress_state_for_gapless")?B.player.getProgressState(z).seekableEnd:B.player.getDuration(z);B.playedTime=G===0?B.videoDuration:W;_.HG(Y)})};
_.p.getPercentPlayed=function(W,B){return W?_.eT(B/W,0,1):0};
_.G5.Object.defineProperties(FY.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 W="";return W=this.videoDuration&&this.playedTime?W+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):W+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],FY.prototype,"componentBehavior",void 0);_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",_.kI)],FY.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],FY.prototype,"player",void 0);_.Q([_.F(),_.y("design:type",Object)],FY.prototype,"videoDuration",void 0);_.Q([_.F(),_.y("design:type",Object)],FY.prototype,"playedTime",void 0);_.Q([_.F(),_.y("design:type",Object)],FY.prototype,"isActive",void 0);
_.Q([_.H("videoDuration","playedTime"),_.y("design:type",Number),_.y("design:paramtypes",[])],FY.prototype,"percentPlayed",null);_.Q([_.H("videoDuration","playedTime"),_.y("design:type",Object),_.y("design:paramtypes",[])],FY.prototype,"percentPlayedStyle",null);_.Q([_.H("videoDuration","isActive"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],FY.prototype,"hideProgressBar",null);
_.D(FY,"ytd-progress-bar-line",function(){if(UTK===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);UTK=W}W=UTK;return W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var MRm;_.Vm(_.Ck9,"ytm-closed-captioning-button",{props:{captionIconType:_.kz,onClick:_.wS,ariaLabel:_.kz,ariaPressed:_.kz,isOverlay:_.wS,isModern:_.wS}});_.Vm(_.Lbb,"desktop-shorts-volume-controls",{props:{orientation:_.kz}});var SO=function(){var W=_.S.apply(this,arguments)||this;W.playerState=null;W.isMuted=!1;W.shortsModernControlsEnabled=_.r("web_shorts_modern_controls");W.volumeControlsOrientationState=_.r("web_shorts_modern_controls")?"vertical_down":"horizontal_right";W.isOverlay=!0;W.captionIconType=-1;W.ariaLabel="";W.overlayDensity=0;W.extractActionBar=!0;W.JSC$22353_playerEvents=new Map;W.onClosedCaptionsButtonClick=function(){W.player&&_.lV(W.player)&&(W.player.toggleSubtitles(),W.updateCaptionIconType())};
return W};
_.C(SO,_.S);_.p=SO.prototype;_.p.created=function(){this.JSC$22353_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22353_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22353_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.p.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.PA(28662);this.playPauseButtonClientVE=_.PA(36842);this.fullscreenButtonToggleOffClientVE=_.PA(222256);this.fullscreenButtonToggleOnClientVE=_.PA(222257);var W=_.m1(),B=_.et();W&&B&&(_.r("combine_ve_grafts")?(_.ui(_.SK(),this.muteButtonClientVE,B),_.ui(_.SK(),this.playPauseButtonClientVE,B)):_.Li(W,B,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22353_playerEvents),this.player=null)};
_.p.updateCaptionIconType=function(){var W=-1,B=void 0,z=_.kq("CLOSED_CAPTIONS_DISABLED");this.player&&_.lV(this.player)&&(_.cWr(this.player)?(B=!0,z=_.kq("CLOSED_CAPTIONS_ON"),W=1):(B=!1,z=_.kq("CLOSED_CAPTIONS_OFF"),W=0));this.captionIconType=W;this.ariaPressedState=B;this.ariaLabel=z};
_.p.getPlayerAndInitializeListeners=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return B=_.TN(),B?z.yield(B.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Co(W,W.onPageChanged)),z.jumpTo(0));W.player=z.yieldResult;W.initializePlayerListeners();_.HG(z)})};
_.p.onPageChanged=function(W){var B=this;return _.T(function(z){if(z.nextAddress==1)return W.detail.newPageType!=="ytd-shorts"?z.return():z.yield(_.vA().getPlayerPromise(),2);B.player=z.yieldResult;B.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Co(B,B.onPageChanged));_.HG(z)})};
_.p.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22353_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.p.onPlayerStateChange=function(W){this.playerState=W};
_.p.onPlayerVolumeChange=function(W){this.isMuted=W.muted};
_.p.onPlayPauseButtonClick=function(){var W=this,B,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(_.vA().getPlayerPromise(),2);B=G.yieldResult;(z=_.m1())&&W.playPauseButtonClientVE&&_.RP(z,W.playPauseButtonClientVE);B.getPlayerState()!==1?B.playVideo():B.pauseVideo();_.HG(G)})};
_.p.computePlayPauseIcon=function(W){return W===2||W===-1||W===5?_.r("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.r("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.r("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.p.computeFullscreenLabel=function(W){return W?_.kq("FULLSCREEN_EXIT_LABEL"):_.kq("FULLSCREEN_ENTER_LABEL")};
_.p.computePlayPauseLabel=function(W){return W===1||W===3?_.kq("PLAYER_LABEL_PAUSE"):_.kq("PLAYER_LABEL_PLAY")};
_.p.onMuteButtonClick=function(){var W=this,B,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(_.vA().getPlayerPromise(),2);B=G.yieldResult;(z=_.m1())&&W.muteButtonClientVE&&_.RP(z,W.muteButtonClientVE);B.isMuted()?B.unMute(!0):B.mute(!0);_.HG(G)})};
_.p.computeMuteIcon=function(W){return W?"miniplayer:volume-off":"miniplayer:volume-up"};
_.p.computeMuteLabel=function(W){return W?_.kq("PLAYER_LABEL_UNMUTE"):_.kq("PLAYER_LABEL_MUTE")};
_.p.onFullscreenButtonClick=function(){var W=_.m1();W&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.RP(W,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.RP(W,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.Mti()};
_.G5.Object.defineProperties(SO.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var W=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(){W.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?_.r("web_shorts_modern_controls")?"player_full_exit_alt":_.r("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.r("web_shorts_modern_controls")?"player_full_enter_alt":_.r("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],SO.prototype,"componentBehavior",void 0);_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",_.kI)],SO.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],SO.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],SO.prototype,"player",void 0);_.Q([_.F(),_.y("design:type",Object)],SO.prototype,"playerState",void 0);_.Q([_.F(),_.y("design:type",Object)],SO.prototype,"isMuted",void 0);
_.Q([_.F({computed:"computePlayPauseIcon(playerState)"}),_.y("design:type",String)],SO.prototype,"playPauseIcon",void 0);_.Q([_.F({computed:"computeMuteIcon(isMuted)"}),_.y("design:type",String)],SO.prototype,"muteIcon",void 0);_.Q([_.F({selector:_.ck}),_.y("design:type",Boolean)],SO.prototype,"isFullscreen",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SO.prototype,"shortsModernControlsEnabled",void 0);
_.Q([_.F(),_.y("design:type",Object)],SO.prototype,"volumeControlsOrientationState",void 0);_.Q([_.F(),_.y("design:type",Object)],SO.prototype,"isOverlay",void 0);_.Q([_.F(),_.y("design:type",Object)],SO.prototype,"captionIconType",void 0);_.Q([_.F(),_.y("design:type",Object)],SO.prototype,"ariaLabel",void 0);_.Q([_.F(),_.y("design:type",Object)],SO.prototype,"ariaPressedState",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SO.prototype,"overlayDensity",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],SO.prototype,"extractActionBar",void 0);_.Q([_.H("playerState"),_.y("design:type",Object),_.y("design:paramtypes",[])],SO.prototype,"playPauseButtonData",null);_.Q([_.H("isFullscreen"),_.y("design:type",Object),_.y("design:paramtypes",[])],SO.prototype,"fullscreenButtonData",null);_.Q([_.F(),_.y("design:type",Object)],SO.prototype,"onClosedCaptionsButtonClick",void 0);
_.Q([_.H("isFullscreen"),_.y("design:type",String),_.y("design:paramtypes",[])],SO.prototype,"fullscreenIcon",null);
_.D(SO,"ytd-shorts-player-controls",function(){if(MRm===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);MRm=W}W=MRm;return W},{mode:1});var a9o;_.Vm(_.wy6,"yt-interstitial-view-model",{props:{data:_.kz}});var RDN=_.m(function(W){var B=W.data;return _.w("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.w("h1",{class:"reelWatchBreakViewModelHostTitle"},_.w(_.r0,{text:function(){return B().title}})),_.w("h2",{class:"reelWatchBreakViewModelHostBody"},_.w(_.r0,{text:function(){return B().body},
isOverlay:!0})),_.w(_.Sc,{data:function(){return B().buttons}},{buttonViewModel:function(z,G){return _.w("div",{class:function(){return G()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.w(_.ex,{data:z.data}))}}))},"yk");
RDN.idomCompat=!0;_.Vm(RDN,"reel-watch-break-view-model",{props:{data:_.kz}});var bv=function(){return _.S.apply(this,arguments)||this};
_.C(bv,_.S);bv.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}}};
_.G5.Object.defineProperties(bv.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.k((W=this.data)==null?void 0:W.renderer,uHm)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.k((W=this.data)==null?void 0:W.renderer,eD_)}}});
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],bv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],bv.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],bv.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],bv.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.renderer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bv.prototype,"isSurvey",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.renderer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bv.prototype,"isInterstitialViewModel",null);_.Q([_.u({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],bv);
_.D(bv,"ytd-reel-non-video-content-renderer",function(){if(a9o!==void 0)return a9o;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return a9o=W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var W0R;_.Vm(_.$5i,"desktop-shorts-player-controls",{});var jO=function(){var W=_.S.apply(this,arguments)||this;W.isPlayerPaused=!1;W.isPlayerStarted=!1;W.showPlayerControls=!1;W.showScrubber=!1;W.autoHideJobId=0;W.modern=_.r("web_button_rework");W.overlayType=_.EA("web_shorts_expanded_overlay_type");W.panelData=void 0;W.isWatchWhileMode=!1;W.hasError=!1;W.panelShowDelayMs=1;W.scrubberComponent={};W.isFullscreen=!1;W.shouldHideOverlay=!1;W.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");W.enablePersistentAnchoredPanel=_.r("desktop_shorts_v2_persistent_anchored_panel");
W.hideWatchWhilePanel=_.r("web_shorts_hide_watch_while_panel");W.useAspectRatio=_.r("web_use_aspect_ratio");W.isPersistentPanelActive=!1;W.anchoredPanelActive=!1;W.isShortsPipActive=!1;W.smallScreenSqueezeback=!1;W.enableFlexibleOverlay=_.r("web_enable_flexible_overlay");W.overlayDensity=0;W.extractOverlay=!1;W.extractActionBar=!1;W.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
W.onWindowResized=function(){_.BJ(W,"calculateOverlayDensity",function(){W.calculateOverlayDensity()},100)};
return W};
_.C(jO,_.S);_.p=jO.prototype;_.p.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.p.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.p.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var W=_.dO().resolve(_.WD);this.isWatchWhileMode&&(_.r("web_enable_shorts_new_carousel")?_.fg.addJob(function(){W.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):W.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.p.handleShowReelsCommentsOverlayCommand=function(W){W=_.k(W,DTh);this.isActive&&(W==null?0:W.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))};
_.p.updateEngagementPanelVisibility=function(W,B){W&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:B?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:W}})};
_.p.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.p.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.dO().resolve(_.N1).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.p.handleWatchWhilePanelScrimClick=function(){var W=_.dO().resolve(_.WD);this.activeWatchWhilePanel&&(W.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.p.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.p.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:_.r("web_enable_shorts_new_carousel")?0:void 0}}};
_.p.handlePlayerClick=function(W){var B=this,z,G;if((G=(z=window).matchMedia)!=null&&G.call(z,"(any-pointer: coarse)").matches||!W)this.showPlayerControls=!0,_.fg.cancelJob(this.autoHideJobId),this.autoHideJobId=_.CG(_.fg,function(){B.showPlayerControls=!1},4E3)};
_.p.isFirstReel=function(){return this.index===0};
_.p.handleMouseenter=function(){_.fg.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.p.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.p.handleScrubberEnter=function(){this.showScrubber=!0};
_.p.handleScrubberLeave=function(){this.showScrubber=!1};
_.p.maybeLogNonDefaultAspectRatio=function(){var W;(W=this.data)!=null&&W.thumbnail&&this.isActive&&.5625!==VRN(this.data.thumbnail)&&_.agt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.p.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var W=document.querySelector("#shorts-container");if(W){var B=!1,z,G=this.playerContainer.offsetWidth;W=W.offsetWidth/2-G/2;W>=368?(W=1,B=z=!0):W>=72?(W=0,z=!0):(W=2,z=!1);G>=600?W=1:window.innerWidth<=599&&(W=2,z=B=!1);this.isPersistentPanelActive&&(W=0,B=!1);this.extractActionBar=z;_.r("web_enable_flexible_overlay")&&(this.overlayDensity=W,this.extractOverlay=B);var Y;(Y=this.onOverlayDensityChanged)==
null||Y.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.p.onOverlayDensityChange=function(){var W;(W=this.onOverlayDensityChanged)==null||W.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(W=_.tH(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))W.set("overlayDensity",this.overlayDensity),W.set("extractOverlay",this.extractOverlay),W.set("extractActionBar",this.extractActionBar);if(W=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))W.overlayDensity=this.overlayDensity,W.extractOverlay=
this.extractOverlay,W.extractActionBar=this.extractActionBar};
_.p.isVideoContent=function(W){_.dO().resolve(_.N1);return!!_.k(W,_.SW)};
_.p.isNonVideoContent=function(W){_.dO().resolve(_.N1);return!!_.k(W,_.Aw)};
_.p.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.G5.Object.defineProperties(jO.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var W,B;return _.r("web_enable_format_first")||((W=this.data)==null?void 0:W.adsOverlay)&&_.r("web_enable_format_first_ads_only")||((B=this.data)==null?void 0:B.reelPlayerOverlayRenderer)&&_.r("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.r("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var W;return!this.isActive||!this.isPlayerStarted||(W=this.data)!=null&&W.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?0:W.command)&&this.isVideoContent(this.data.command)){var B,z;if(((B=this.data)==null?0:B.adsOverlay)&&Object.keys((z=this.data)==null?void 0:z.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var G,Y;if(((G=this.data)==null?0:G.reelPlayerOverlayRenderer)&&Object.keys((Y=this.data)==null?void 0:Y.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
jO.prototype.onOverlayDensityChange=jO.prototype.onOverlayDensityChange;jO.prototype.calculateOverlayDensity=jO.prototype.calculateOverlayDensity;jO.prototype.maybeLogNonDefaultAspectRatio=jO.prototype.maybeLogNonDefaultAspectRatio;jO.prototype.onEngagementPanelsChanged=jO.prototype.onEngagementPanelsChanged;jO.prototype.onScrubberDataChange=jO.prototype.onScrubberDataChange;jO.prototype.updateShouldHideOverlay=jO.prototype.updateShouldHideOverlay;
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],jO.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],jO.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],jO.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],jO.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Number)],jO.prototype,"index",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],jO.prototype,"isActive",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],jO.prototype,"isHiddenInDom",void 0);_.Q([_.F(),_.y("design:type",Object)],jO.prototype,"isPlayerPaused",void 0);_.Q([_.F({selector:gMQ}),_.y("design:type",Object)],jO.prototype,"isPlayerStarted",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"showPlayerControls",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"showScrubber",void 0);_.Q([_.F(),_.y("design:type",Object)],jO.prototype,"autoHideJobId",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"modern",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"overlayType",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],jO.prototype,"ytdReduxBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],jO.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],jO.prototype,"watchWhileEngagementPanels",void 0);_.Q([_.F(),_.y("design:type",Object)],jO.prototype,"panelData",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"isWatchWhileMode",void 0);_.Q([_.F(),_.y("design:type",String)],jO.prototype,"activeWatchWhilePanel",void 0);
_.Q([_.F(),_.y("design:type",Object)],jO.prototype,"hasError",void 0);_.Q([_.F(),_.y("design:type",Object)],jO.prototype,"panelShowDelayMs",void 0);_.Q([_.F(),_.y("design:type",Object)],jO.prototype,"scrubberComponent",void 0);_.Q([_.F({selector:_.ck,reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"isFullscreen",void 0);_.Q([_.F(),_.y("design:type",Object)],jO.prototype,"shouldHideOverlay",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"enableAnchoredPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"enablePersistentAnchoredPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"hideWatchWhilePanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"useAspectRatio",void 0);
_.Q([_.F({selector:_.ts8,reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"isPersistentPanelActive",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"anchoredPanelActive",void 0);_.Q([_.F({selector:_.wh,reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"isShortsPipActive",void 0);_.Q([_.F({selector:JMh,reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"smallScreenSqueezeback",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],jO.prototype,"enableFormatFirst",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"enableFlexibleOverlay",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"overlayDensity",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"extractOverlay",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],jO.prototype,"extractActionBar",void 0);_.Q([_.F(),_.y("design:type",Function)],jO.prototype,"onOverlayDensityChanged",void 0);_.Q([_.F(),_.H("isActive","hasError","isPlayerStarted"),_.y("design:type",Object),_.y("design:paramtypes",[])],jO.prototype,"shouldRenderPlayerElements",null);_.Q([_.F(),_.H("isActive","isWatchWhileMode"),_.y("design:type",Object),_.y("design:paramtypes",[])],jO.prototype,"watchWhileOrPersistentActive",null);
_.Q([_.oN("isActive","hasError","showingExpandedOverlay"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jO.prototype,"updateShouldHideOverlay",null);_.Q([_.F({reflectToAttribute:!0}),_.H("isActive","isPlayerStarted","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],jO.prototype,"shouldRenderScrubber",null);
_.Q([_.oN("shouldRenderScrubber"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jO.prototype,"onScrubberDataChange",null);_.Q([_.H("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],jO.prototype,"overlayComponent",null);_.Q([_.oN("watchWhileEngagementPanels"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jO.prototype,"onEngagementPanelsChanged",null);
_.Q([_.Hf("#player-container"),_.y("design:type",HTMLElement)],jO.prototype,"playerContainer",void 0);_.Q([_.Hf("#cinematic-container"),_.y("design:type",HTMLElement)],jO.prototype,"cinematicContainer",void 0);_.Q([_.oN("isPersistentPanelActive","data.thumbnail"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jO.prototype,"maybeLogNonDefaultAspectRatio",null);
_.Q([_.oN("isPersistentPanelActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jO.prototype,"calculateOverlayDensity",null);_.Q([_.oN("overlayDensity","extractOverlay","extractActionBar"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jO.prototype,"onOverlayDensityChange",null);_.Q([_.u({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],jO);
_.D(jO,"ytd-reel-video-renderer",function(){if(W0R!==void 0)return W0R;var W=document.createElement("template");_.I(W,'\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]]" extract-action-bar="[[extractActionBar]]" 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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return W0R=W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var fT=function(){var W=_.S.apply(this,arguments)||this;W.isPreviousPageShorts=!1;W.index=0;W.delayedActiveIndex=0;W.playablePreviousIndex=null;W.isPlayerPaused=!1;W.isPlayerStarted=!1;W.intersectionObserverThreshold=.6;W.fitToVisibleBounds=!1;W.pageSubtype="shorts";W.enablePreviousContinuation=_.r("shorts_in_playlists_web");W.shortsPipEnabled=_.r("web_shorts_pip");W.isDark=document.documentElement.hasAttribute("dark");W.shortsViewTransitions=_.r("web_shorts_view_transitions");W.isFullscreen=!1;W.isShortsPipActive=
!1;W.buttonOverride={iconPosition:"icon-only",size:"XL"};W.anchoredPanelActive=!1;W.isActive=!1;W.smallScreenPersistentPanel=!1;W.isPersistentPanelActive=!1;W.smallScreenSqueezeBack=!1;W.enableScrollIntoViewCenter=_.r("web_scroll_into_view_center");W.formatFirst=_.r("web_enable_format_first")||_.r("web_enable_format_first_ads_only")||_.r("web_enable_format_first_organic_only");W.enableFlexibleOverlay=_.r("web_enable_flexible_overlay");W.extractOverlay=!1;W.useAspectRatio=_.r("web_use_aspect_ratio");
W.isShortsInitialized=!1;W.hidePreviousButtonImmediately=!1;W.showPreviousButtonImmediately=!1;W.endOfNextContinuation=!1;W.currentPlayerIndex=0;W.nextReelVe=_.PA(56921);W.prevReelVe=_.PA(56922);W.loopToggleOffVe=_.PA(198013);W.loopToggleOnVe=_.PA(198014);W.ambientModeToggleVe=_.PA(227860);W.reelPlayerPausedStateRendererVe=_.PA(141313);W.storedPlaybackSpeed=null;W.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"};W.onOverlayDensityChanged=function(B,z,G,Y){B=W.getActiveReelVideo(B);W.extractOverlay=!!G;B==null||B.setAttribute("overlay-density",String(z));G===void 0||B!=null&&B.toggleAttribute("extract-overlay",G);Y===void 0||B!=null&&B.toggleAttribute("extract-action-bar",Y)};
return W};
_.C(fT,_.S);_.p=fT.prototype;_.p.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.p.deflateInactivePreviousSlides=function(){var W=_.iO("web_shorts_deflate_inactive_slides_aggressive_distance");if(W>0&&this.shortsProcessedSequence&&this.activeIndex){W=this.activeIndex-W;for(var B=0;B<=W;B++){var z=void 0;((z=this.shortsProcessedSequence[B].reelPlayerOverlayRenderer)==null?0:z.metapanel)&&this.set("shortsProcessedSequence."+B+".reelPlayerOverlayRenderer",{});z=void 0;((z=this.shortsProcessedSequence[B].adsOverlay)==null?0:z.adSlotMetadata)&&this.set("shortsProcessedSequence."+
B+".adsOverlay",{})}}};
_.p.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.p.onResize=function(){var W=_.Y_(),B=W.dispatch,z=this.calculateIsSmallWidth();B.call(W,_.Tl({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:z}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.p.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:_.r("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}}};
_.p.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var W=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,B=W,z=0;W<250&&(B=W+this.shortsInnerContainer.clientWidth,z=24);_.kw(this.hostElement,{"--ytd-shorts-header-width":B+"px","--ytd-shorts-top-spacing":z+"px"})}};
_.p.isFirstShorts=function(W){return W?this.index===-W.length:this.index===0};
_.p.isActiveReel=function(W,B,z){z&&(B=this.calculatePrevIndex(B,z));return W===B};
_.p.onFullscreenChange=function(){if(_.r("web_fullscreen_shorts")){var W;(W=this.getActiveReelVideo(this.activeIndex))==null||W.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.dO().resolve(_.Qb).close(!0)}};
_.p.engagementPanelsChanged=function(){var W;this.watchWhileEngagementPanels=(W=this.data)==null?void 0:W.engagementPanels};
_.p.unregisterPanels=function(){var W=_.dO().resolve(_.WD);if(this.watchWhileEngagementPanels)for(var B=_.A(this.watchWhileEngagementPanels),z=B.next();!z.done;z=B.next()){var G=z.value,Y=void 0,d=void 0;z=(Y=G.engagementPanelSectionListRenderer)==null?void 0:(d=Y.identifier)==null?void 0:d.tag;G=this.getPanelContentIdentifier(G.engagementPanelSectionListRenderer);W&&(z&&W.panelMap.delete(z),G&&_.r("web_shorts_panel_caching_bugfix")&&(Y=z=void 0,(Y=(z=W).unregisterPanelContent)==null||Y.call(z,G)))}};
_.p.isVideoContent=function(W){return this.isVideoContentCommand(W==null?void 0:W.command)};
_.p.getActiveReelVideo=function(W){return _.tH(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+W+'"]')};
_.p.calculatePrevIndex=function(W,B){return B?W-((B==null?void 0:B.length)||0):-1};
_.p.onKeydown=function(W){var B=_.AH(W)||[];if(!_.UOK(B))if(W.code==="ArrowUp")W.preventDefault(),this.handlePrevButtonClick();else if(W.code==="ArrowDown")W.preventDefault(),this.handleNextButtonClick();else if(W.code==="KeyM")this.toggleMuteUnmuteVideo();else if(W.code==="KeyK"||W.code==="Space")this.togglePlayPauseVideo();else if((W.code==="KeyA"||W.code==="ArrowLeft")&&_.r("web_shorts_keyboard_enable_seek_shortcuts")){var z;(z=this.player)==null||z.seekBy(-5)}else if((W.code==="KeyD"||W.code===
"ArrowRight")&&_.r("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var G;(G=this.player)==null||G.seekBy(5)}};
_.p.onServiceRequestCompleted=function(W,B){W=B.data;W.continuationEndpoint&&W.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:W.entries,continuationEndpoint:W.continuationEndpoint}}):W.prevContinuationEndpoint&&W.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:W.prevEntries,prevContinuationEndpoint:W.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.p.handleEngagementPanelVisibilityChanged=function(W,B){var z=_.dO().resolve(_.WD);if(W&&z){var G=this.getPanelIdentifier(W);if(B==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==G){z.hidePanel(this.activePanel);var Y;this.activePanel=((Y=W.identifier)==null?void 0:Y.tag)||W.panelIdentifier}else this.isPersistentPanelActive=!0,_.Y_().dispatch(H7N(!0)),this.anchoredPanelActive=!0,this.activePanel=G;else B==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
G&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Y_().dispatch(H7N(!1)))}};
_.p.handlePanelScrimClick=function(){var W=_.dO().resolve(_.WD);this.activePanel&&(W.hidePanel(this.activePanel),_.Y_().dispatch(H7N(!1)))};
_.p.getShortsLoopSetting=function(){var W,B,z,G,Y;return _.T(function(d){switch(d.nextAddress){case 1:return _.r("kevlar_shorts_auto_advance")?d.yield(_.Wz.getInstance(),2):d.return(!0);case 2:return(W=d.yieldResult)?d.yield(W.get("sfvles"),3):d.return(!0);case 3:return z=(B=d.yieldResult)!=null?B:!1,d.yield(W.get("sfvle"),4);case 4:return Y=(G=d.yieldResult)!=null?G:!0,z?d.return(Y):d.return(!0)}})};
_.p.handleSignalActionToggleLoopShortsOff=function(){var W=this,B,z,G;return _.T(function(Y){switch(Y.nextAddress){case 1:if(!W.player)return Y.return();W.player.setLoopVideo(!1);B=_.SK();_.mx(B,W.loopToggleOffVe);return Y.yield(_.Wz.getInstance(),2);case 2:return(z=Y.yieldResult)?Y.yield(z.set("sfvle",!1),3):Y.return();case 3:return Y.yield(z.set("sfvles",!0),4);case 4:G=_.IP(),_.oP(0,203,!1),_.oP(0,204,!0),G.save(),_.HG(Y)}})};
_.p.handleSignalActionToggleLoopShortsOn=function(){var W=this,B,z,G;return _.T(function(Y){switch(Y.nextAddress){case 1:if(!W.player)return Y.return();W.player.setLoopVideo(!0);B=_.SK();_.mx(B,W.loopToggleOnVe);return Y.yield(_.Wz.getInstance(),2);case 2:return(z=Y.yieldResult)?Y.yield(z.set("sfvle",!0),3):Y.return();case 3:return Y.yield(z.set("sfvles",!0),4);case 4:G=_.IP(),_.oP(0,203,!0),_.oP(0,204,!0),G.save(),_.HG(Y)}})};
_.p.handleSignalActionToggleCinematicShortsOn=function(){wQo(!0);var W;(W=this.JSC$22377_cinematicController)==null||_.pQN(W,!0);_.mx(_.SK(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.p.handleSignalActionToggleCinematicShortsOff=function(){wQo(!1);var W;(W=this.JSC$22377_cinematicController)==null||_.pQN(W,!1);_.mx(_.SK(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.p.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.p.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.p.unhideCurrentOverlay=function(){if(this.overlayContainer){var W=this.overlayContainer.querySelector("#experiment-overlay");W&&_.fg.addLowPriorityJob(function(){W.style.display="unset"},100)}};
_.p.getCurrentShort=function(){if(this.currentEndpoint){var W=this.currentEndpoint;if(this.isNonVideoContentCommand(W)){var B=_.k(W,_.Aw);return{reelNonVideoContentRenderer:_.k(B==null?void 0:B.renderer,_.g3R),command:W}}if(this.data){var z;B=(z=_.k(this.currentEndpoint,_.SW))==null?void 0:z.thumbnail;var G;z=(G=this.data.overlay)==null?void 0:G.reelPlayerOverlayRenderer;_.dO().resolve(_.N1);W=this.data;var Y,d;G=(Y=W.overlay)==null?void 0:(d=Y.shortsAdsRenderer)==null?void 0:d.adSlots;if(G!==void 0)G.length===
0?(_.Rn("Shorts ads returned no ad slots."),W=void 0):(G.length>1&&_.Rn("Shorts ads has more than one ad slots."),W=_.k(G[0],_.EXH));else{var E,v;W=_.k((E=W.overlay)==null?void 0:(v=E.shortsAdsRenderer)==null?void 0:v.overlay,_.EXH)}E=W;W=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.k(this.currentEndpoint,_.SW),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:z,thumbnail:B,command:W,adsOverlay:E}}}};
_.p.created=function(){var W=this;this.scrollToVideoThrottle=new _.an(function(B){var z;(z=W.getActiveReelVideo(B))==null||z.scrollIntoView({behavior:"smooth",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.an(function(B){var z;(z=W.getActiveReelVideo(B))==null||z.scrollIntoView({behavior:"auto",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.p.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.p.attached=function(){var W=this;_.dO().resolve(_.N1).registerRootElement(this);this.pageScrollElement=_.tH(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Co(this,this.processResetAction));_.r("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var B=W.getActiveReelVideo(W.activeIndex);W.maybeCreateIntersectionObserver();B==null||B.scrollIntoView({behavior:"instant",
block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"});W.shortsContainer.style.overflowY="scroll"}))};
_.p.updateReelWatchSequenceResponse=function(){var W=this,B;_.r("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((B=_.k(this.currentEndpoint,_.SW))==null?0:B.sequenceParams)&&!this.reelWatchSequenceResponse&&(B=_.dO().resolve(_.N1))&&hDR(B,this.currentEndpoint).then(function(z){z&&(W.reelWatchSequenceResponse=z,_.fg.addLowPriorityJob(function(){W.maybeCreateIntersectionObserver(!0)}))})};
_.p.calculateSqueezebackPanelSize=function(){var W=this,B=window.innerWidth-456-(window.innerHeight-106)*.5625;_.fg.addLowPriorityJob(function(){B<360?_.Y_().dispatch(F4_(!0)):(W.hostElement.style.setProperty("--anchored-panel-width",Math.min(B,480)+"px"),_.Y_().dispatch(F4_(!1)))})};
_.p.detached=function(){var W=_.dO().resolve(_.N1);W.rootElement=void 0;var B;(B=W.unsubscribeFromStore)==null||B.call(W);W.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Co(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.p.onResizeFinished=function(W,B){var z=this,G=new ResizeObserver(function(){z.shortsContainer.style.overflowY="hidden";_.fg.addLowPriorityJob(function(){B()},100)});
G.observe(W);return G};
_.p.resetDocumentScrollTop=function(){var W,B;if((W=document)==null?0:(B=W.scrollingElement)==null?0:B.scrollTop)document.scrollingElement.scrollTop=0};
_.p.loadPage_=function(W){var B=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),W){var z;!_.r("web_enable_delay_shorts_sequence_call")&&((z=_.k(this.currentEndpoint,_.SW))==null?0:z.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=W;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){B.isPlayerStarted&&(B.handleOnPlaybackCommand(),B.afterPlayerStarted=function(){})};
this.registerPanel(W)}};
_.p.afterPlayerStarted=function(){};
_.p.handleOnPlaybackCommand=function(){if(_.r("web_shorts_comment_stickers")&&this.isPlayerStarted){var W,B=(W=_.k(this.currentEndpoint,_.SW))==null?void 0:W.onPlaybackCommand;B&&this.ytComponentBehavior.resolveCommand(B)}};
_.p.maybeCreateIntersectionObserver=function(W){var B=this;W=W===void 0?!1:W;var z=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==z||W){this.intersectionObserverThreshold=z;W={rootMargin:"0px",threshold:z};var G;(G=this.intersectionObserver)==null||G.disconnect();this.intersectionObserver=new IntersectionObserver(function(Y){Y=_.A(Y);for(var d=Y.next();!d.done;d=Y.next())if(d=d.value,d.intersectionRatio>z){d=Number(d.target.id);if(isNaN(d))break;
if(d===B.index)break;_.o00();B.loadVideo(d);_.D4("r_vtc")}},W);
this.observeShorts()}};
_.p.observeShorts=function(){var W=[].concat(_.u7(_.tH(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));W=_.A(W);for(var B=W.next();!B.done;B=W.next()){B=B.value;var z=void 0;(z=this.intersectionObserver)==null||z.observe(B)}};
_.p.initCsi=function(){_.Yd("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var W={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"}},B,z;if((B=this.playerData)==null?0:(z=B.cacheMetadata)==null?0:z.isCacheHit)W.isCacheHit=!0;var G;if(B=(G=_.k(this.currentEndpoint,_.SW))==null?void 0:
G.prefetchTaskId)W.prefetchInfo={taskId:B};_.Ki(W)};
_.p.isAd=function(){var W,B;return!!((W=_.k(this.currentEndpoint,_.SW))==null?0:(B=W.adClientParams)==null?0:B.isAd)};
_.p.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.p.getPlayerContainer=function(){var W;return(W=_.tH(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:W.playerContainer};
_.p.onPlayerStateChange=function(W){var B=this;this.isPlayerPaused=W===2;W!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?W===1&&this.index===0&&(this.isPlayerStarted||_.Y_().dispatch(SFR(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Y_().dispatch(SFR(!0)));this.player&&!this.player.getLoopVideo()&&_.fg.addLowPriorityJob(function(){B.getShortsLoopSetting().then(function(z){var G;(G=B.player)==null||G.setLoopVideo(z)})});
this.isPlayerPaused&&_.r("web_shorts_paused_state_logging")&&_.Mj(_.m1(),[this.reelPlayerPausedStateRendererVe])};
_.p.isInBackground=function(){var W=window.document.visibilityState;return!(!W||W==="visible")};
_.p.isShortPlayable=function(){if(_.r("kevlar_playable_short_killswitch"))return!0;var W;return(W=this.playerData)!=null&&W.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.p.setNormalPlaybackSpeed=function(){var W=this,B,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(W.getPlayer().getPlayerPromise(),2);B=G.yieldResult;z=B.getPlaybackRate();z!==1&&(W.storedPlaybackSpeed=z,B.setPlaybackRate(1));_.HG(G)})};
_.p.restorePlaybackSpeed=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1)return W.storedPlaybackSpeed===null?z.jumpTo(0):z.yield(W.getPlayer().getPlayerPromise(),3);B=z.yieldResult;B.setPlaybackRate(W.storedPlaybackSpeed);W.storedPlaybackSpeed=null;_.HG(z)})};
_.p.playerDataChanged=function(){var W=this,B,z,G,Y,d,E,v,c,J;return _.T(function(g){if(g.nextAddress==1){B=W.getPlayer();(z=W.intersectionObserver)==null||z.disconnect();if(W.playerData){if(((G=W.playerData.videoDetails)==null?void 0:G.videoId)!==((Y=B.getPlayer())==null?void 0:Y.getVideoData().video_id)){d={};if(E=_.k(W.currentEndpoint,_.SW))d.watch_endpoint=E,E.endTimeSeconds&&(d.end=E.endTimeSeconds);B.loadVideoWithPlayerResponse(W.playerData,d)}}else return g.return();return W.player?g.jumpTo(2):
g.yield(B.getPlayerPromise(),3)}g.nextAddress!=2&&(W.player=g.yieldResult,W.JSC$22377_playerStateChangeListener=W.onPlayerStateChange.bind(W),W.player.addEventListener("onStateChange",W.JSC$22377_playerStateChangeListener),_.r("kevlar_client_enable_shorts_player_bootstrap")&&_.$l(),W.scrollToVideoThrottle.fire(W.index),W.movePlayerToVideo(W.index),_.fg.addLowPriorityJob(function(){W.getShortsLoopSetting().then(function(t){var P;(P=W.player)==null||P.setLoopVideo(t)})}),_.id7.resolve(W.player),W.player.syncVolume(),
W.getPlayer().focusOnPlayer());
_.fg.addLowPriorityJob(function(){W.observeShorts()},100);
v=W.player.getPlayerState(W.player.getPresentingPlayerType());v!==1||W.isPlayerStarted||_.Y_().dispatch(SFR(!0));W.updateBackNavContainerWidth();c=_.k(W.currentEndpoint,_.SW);((J=c)==null?0:J.startTimeSeconds)&&W.player.seekTo(c.startTimeSeconds);if(W.JSC$22377_cinematicController||W.cinematicsInitializeJobId)return g.return();W.cinematicsInitializeJobId=_.fg.addLowPriorityJob(function(){W.initCinematicController();W.cinematicsInitializeJobId=void 0});
_.HG(g)})};
_.p.onShortUndoDismiss=function(){var W=this,B=oMM().pop();B!==void 0&&(_.BM(this,function(){W.showCardWithIndex(B)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.p.onShortsDismiss=function(W){if(W=W.detail.reelDismissalActionRenderer)(W=_.k(W.onDismissalCompletionRenderer,_.Kr_))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:W}}}),this.scrollAndDismissCard()};
_.p.processReelNonVideoContentDismissalCommand=function(W){var B=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);W=_.k(W,xTo);this.activeDimissalTimeout=setTimeout(function(){B.scrollAndDismissCard()},Number(W==null?void 0:W.delayMs))};
_.p.scrollAndDismissCard=function(){var W=this,B=this.index;oMM().push(B);_.BM(this,function(){var z=W.getPlayableNextIndex();z!==null&&(z=W.getActiveReelVideo(z),W.hideCardWithIndex(B),z==null||z.scrollIntoView({behavior:"smooth",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"}))})};
_.p.hideCardWithIndex=function(W){if(W=this.getActiveReelVideo(W))W.hidden=!0};
_.p.showCardWithIndex=function(W){if(W=this.getActiveReelVideo(W))W.hidden=!1};
_.p.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.p.activeChanged=function(W){_.Y_().dispatch(_.Tl({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:W}}));if(W)document.addEventListener("keydown",_.Co(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var B;(B=this.player)==null||B.sendAbandonmentPing()}var z;(z=this.player)==null||z.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Co(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.p.graftClientVisualElements=function(){if(this.data){var W=_.SK();_.d2H(W,_.gV({response:this.reelWatchSequenceResponse}));_.ui(W,this.nextReelVe);_.ui(W,this.prevReelVe);_.r("kevlar_shorts_auto_advance")&&(_.ui(W,this.loopToggleOffVe),_.ui(W,this.loopToggleOnVe));_.ui(W,this.ambientModeToggleVe);_.Mj(_.m1(),[this.nextReelVe,this.prevReelVe]);_.r("web_shorts_paused_state_logging")&&_.ui(W,this.reelPlayerPausedStateRendererVe)}};
_.p.graftNvcRenderer=function(){var W,B,z,G,Y=this.index<0?(W=this.shortsProcessedPrevSequence)==null?void 0:(B=W[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:B.command:(z=this.shortsProcessedSequence)==null?void 0:(G=z[this.index])==null?void 0:G.command;if(Y&&this.isNonVideoContentCommand(Y)){W=_.k(Y,_.Aw);var d,E;(W=(d=_.k(W==null?void 0:W.renderer,_.g3R))==null?void 0:(E=d.loggingDirectives)==null?void 0:E.trackingParams)&&_.SK().graftServerVe(W)}};
_.p.setActiveIndex=function(){_.dO().resolve(_.N1).setActiveIndex(this.index)};
_.p.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.p.lazyUpdateMiniplayerData=function(){var W=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.fg.addLowPriorityJob(function(){W.updateMiniplayerData();W.updateMiniplayerDataJobId=void 0}))};
_.p.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.fg.cancelJob(this.updateMiniplayerDataJobId)};
_.p.updateMiniplayerData=function(){var W,B,z,G=_.dO().resolve(_.Qb),Y={shortsData:this.getCurrentShort(),previousButtonDisabled:!((W=this.prevButtonData)==null||!W.isDisabled),nextButtonDisabled:!((B=this.nextButtonData)==null||!B.isDisabled),playabilityStatus:(z=this.playerData)==null?void 0:z.playabilityStatus};_.Jb(G,Y)};
_.p.resetPlayerLocation=function(){var W=this.getPlayer();this.initialPlayerContainer&&W.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.p.movePlayerToVideo=function(W,B){var z=this;B=B===void 0?!0:B;var G=this.getActiveReelVideo(W),Y=this.getPlayer();if(G){this.overlayContainer?G.appendChild(this.overlayContainer):(this.overlayContainer=_.tH(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,G.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||Y.appendTo(this.overlayContainer.playerContainer,void 0,!0));var d;(d=this.player)==null||d.setSize(NaN,NaN);this.isActive||_.CG(_.fg,function(){z.isActive=
!0});
Y.style.visibility="visible";_.r("reels_web_disable_rtr_tick")||_.r("reels_web_use_pbs_first_shorts")&&W===0||_.mj("r_tr");this.currentPlayerIndex=W;G.appendChild(this.errorScreenContainer);var E;(E=this.JSC$22377_cinematicController)==null||_.i73(E)}else B?_.fg.addLowPriorityJob(function(){z.movePlayerToVideo(z.index,!1)}):Math.random()<=_.iO("web_shorts_error_logging_threshold")&&_.fG(new _.oX("Trying to movePlayerToVideo with undefined container.",{firstAttempt:B,
index:W}))};
_.p.enableFormatFirst=function(W){return _.r("web_enable_format_first")||W.adsOverlay&&_.r("web_enable_format_first_ads_only")||W.reelPlayerOverlayRenderer&&_.r("web_enable_format_first_organic_only")};
_.p.getAspectRatio=function(W){if(W!=null&&W.thumbnail&&this.enableFormatFirst(W))return"--ytd-shorts-player-ratio: "+VRN(W.thumbnail)};
_.p.getBackgroundImage=function(W){if(W!=null&&W.thumbnail)return(W=_.gS(W.thumbnail.thumbnails))?'background-image:url("'+W+'");':"background-color:black;"};
_.p.onPersistentPanelActiveChanged=function(){var W=this.getCurrentShort();if(W&&this.enableFormatFirst(W)&&(W==null?0:W.thumbnail)&&VRN(W.thumbnail)!==.5625){var B;(B=this.player)==null||B.setSize(NaN,NaN)}};
_.p.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.p.moveCinematicsToVideo=function(){var W=_.tH(this.hostElement).querySelector("ytd-reel-video-renderer");(W==null?0:W.cinematicContainer)&&W.cinematicContainer!==this.shortsCinematicContainer.parentElement&&W.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.p.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.p.updatePrevButtonData=function(){var W=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(W){var B;this.prevButtonData=W=Object.assign({},W,{accessibility:{label:_.kq("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:W.isDisabled||this.index===-(((B=this.shortsProcessedPrevSequence)==null?void 0:B.length)||0),tooltip:this.isUpArrowHidden?"":_.kq("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=W=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.p.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.p.updateNextButtonData=function(){var W=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(W){var B;this.nextButtonData=W=Object.assign({},W,{accessibility:{label:_.kq("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:W.isDisabled||this.index===((B=this.shortsProcessedSequence)==null?void 0:B.length),tooltip:_.kq("NEXT_VIDEO_LABEL")||""})}};
_.p.getPlayablePreviousIndex=function(){for(var W,B=this.index-1;B>=-(((W=this.prevShortsSequence)==null?void 0:W.length)||0);B--)if(!oMM().includes(B))return B;return null};
_.p.getIndexInSequence=function(W,B){return W.findIndex(function(z){var G;return((G=_.k(z.command,_.SW))==null?void 0:G.videoId)===B})};
_.p.handlePrevButtonClick=function(W){var B=this,z,G;return _.T(function(Y){z=B.getPlayablePreviousIndex();if(z===null)return Y.return();B.gestureType=((G=W)==null?void 0:G.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";z===0&&(B.hidePreviousButtonImmediately=!0);if(B.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){B.transitionToVideoThrottle.fire(z)}),Y.return();
B.scrollToVideoThrottle.fire(z);_.HG(Y)})};
_.p.getPlayableNextIndex=function(){for(var W,B=this.index+1;B<(((W=this.shortsProcessedSequence)==null?void 0:W.length)||0);B++)if(!oMM().includes(B))return B;return null};
_.p.handleNextButtonClick=function(W,B){var z=this,G,Y;return _.T(function(d){G=z.getPlayableNextIndex();if(G===null)return d.return();G===1&&(z.showPreviousButtonImmediately=!0);z.gestureType=((Y=W)==null?void 0:Y.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";B&&(z.gestureType=B);if(z.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){z.transitionToVideoThrottle.fire(G)}),d.return();
z.scrollToVideoThrottle.fire(G);_.HG(d)})};
_.p.handleReelNavigateCommand=function(W,B,z){(W=_.k(W,mT3))&&B&&W.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(z)};
_.p.loadVideo=function(W,B){B=B===void 0?!1:B;if(W!==this.currentPlayerIndex){_.Y_().dispatch(SFR(!1));if(this.isAd()&&!B){var z;(z=this.player)==null||z.notifyShortsAdSwipeEvent()}if((B=this.JSC$22377_cinematicController)!=null){var G;(G=B.currentCinematicEffect)==null||G.pause()}if((G=this.JSC$22377_cinematicController)!=null){var Y;(Y=G.currentCinematicEffect)==null||Y.clear()}G=W>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(G));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var d,E,v,c;Y=W<0?(d=this.shortsProcessedPrevSequence)==null?void 0:(E=d[this.shortsProcessedPrevSequence.length+W])==null?void 0:E.command:(v=this.shortsProcessedSequence)==null?void 0:(c=v[W])==null?void 0:c.command;this.index=W;this.gestureType||(this.gestureType=G?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
Y&&this.isVideoContentCommand(Y)&&(this.ytComponentBehavior.resolveCommand(Y,{form:{createScreenConfig:{clickedVisualElement:G?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(Y&&this.isNonVideoContentCommand(Y)){this.currentEndpoint=Y;this.data=void 0;d=_.SK();E=_.k(Y,_.Aw);var J,g;(E=(J=_.k(E==null?void 0:E.renderer,_.g3R))==null?void 0:(g=J.screenLoggingData)==null?void 0:g.screenVeType)&&_.KS(d,E);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(J=this.getActiveReelVideo(W))&&J.appendChild(this.overlayContainer)}var t,P;if(((t=this.reelWatchSequenceResponse)==null?0:t.continuationEndpoint)&&((P=this.reelWatchSequenceResponse)==null?0:P.entries)&&W===this.reelWatchSequenceResponse.entries.length-1){var Z,l;t={contentPlaybackContext:_.Ol({},(l=_.k((Z=this.currentEndpoint)==null?void 0:Z.commandMetadata,_.Z4))==null?void 0:l.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:t})}var b,O,K;((b=this.reelWatchSequenceResponse)==null?0:b.prevContinuationEndpoint)&&W===-(((O=this.reelWatchSequenceResponse)==null?void 0:(K=O.prevEntries)==null?void 0:K.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.p.setMiniplayerPreview=function(W){W=(W===void 0?0:W)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var B,z,G=_.dO().resolve(_.Qb),Y={shortsData:void 0,shortsPreviewThumbnail:W?(B=this.shortsProcessedSequence)==null?void 0:(z=B[W])==null?void 0:z.thumbnail:void 0};_.Jb(G,Y)};
_.p.updateTitle=function(W){var B,z;W=(W==null?0:W.adSlots)?"":(z=W==null?void 0:(B=W.videoDetails)==null?void 0:B.title)!=null?z:"";_.v0(this.hostElement,"yt-update-title",W)};
_.p.registerPanel=function(W){var B=_.dO().resolve(_.WD);if(B){W=_.A(W.engagementPanels||[]);for(var z=W.next();!z.done;z=W.next()){z=z.value;var G=this.getPanelContentIdentifier(z.engagementPanelSectionListRenderer),Y=void 0,d=void 0;(d=(Y=B).registerPanelContent)==null||d.call(Y,G,z)}}};
_.p.getPanelIdentifier=function(W){var B;return(W==null?void 0:(B=W.identifier)==null?void 0:B.tag)||(W==null?void 0:W.panelIdentifier)||(W==null?void 0:W.targetId)};
_.p.getPanelContentIdentifier=function(W){var B;return(W==null?void 0:W.targetId)||(W==null?void 0:W.panelIdentifier)||(W==null?void 0:(B=W.identifier)==null?void 0:B.tag)};
_.p.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;_.Y_().dispatch(SFR(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.Y_().dispatch(H7N(!1));var W=_.dO().resolve(_.N1);W.dismissedIndices=[];W.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.dO().resolve(_.Qb).close(!0)};
_.p.processAppendReelWatchSequenceContinuationEntriesAction=function(W){var B=this,z;(z=this.intersectionObserver)==null||z.disconnect();W=W.appendReelWatchSequenceContinuationEntriesAction;if(W==null?0:W.entries){var G;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.u7(((G=this.reelWatchSequenceResponse)==null?void 0:G.entries)||[]),_.u7(W.entries)),continuationEndpoint:W.continuationEndpoint})}else if(W==null?0:W.prevEntries){var Y;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.u7(((Y=this.reelWatchSequenceResponse)==null?void 0:Y.prevEntries)||[]),_.u7(W.prevEntries)),prevContinuationEndpoint:W.prevContinuationEndpoint});_.fg.addLowPriorityJob(function(){B.movePlayerToVideo(B.index);var d;(d=B.getActiveReelVideo(B.index))==null||d.scrollIntoView({block:"nearest",inline:B.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.fg.addLowPriorityJob(function(){B.observeShorts()},100)};
_.p.processWatchSequence=function(W){var B=this;return W.map(function(z){z=z.command;if(B.isVideoContentCommand(z)){var G=_.k(z,_.SW);return{reelPlayerOverlayRenderer:_.k(G==null?void 0:G.overlay,_.tdd),thumbnail:G.thumbnail,command:z}}return B.isNonVideoContentCommand(z)?(G=_.k(z,_.Aw),{reelNonVideoContentRenderer:_.k(G==null?void 0:G.renderer,_.g3R),command:z}):{command:z}})};
_.p.calculateIntersectionObserverThreshold=function(){var W=_.tH(this.hostElement).querySelector("ytd-reel-video-renderer"),B=1;(W==null?0:W.offsetHeight)&&(W==null?0:W.offsetWidth)&&(B=Math.min(W.offsetHeight,this.shortsContainer.offsetHeight)/W.offsetHeight*(Math.min(W.offsetWidth,this.shortsContainer.offsetWidth)/W.offsetWidth));return Math.round(B*.6*10)/10};
_.p.isVideoContentCommand=function(W){_.dO().resolve(_.N1);return!!_.k(W,_.SW)};
_.p.isNonVideoContentCommand=function(W){_.dO().resolve(_.N1);return!!_.k(W,_.Aw)};
_.p.initCinematicController=function(){var W=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22377_cinematicController=new _.CT(this.shortsCinematicContainer,this.player);var B,z=_.k((B=this.data)==null?void 0:B.background,_.BK);_.AMQ(this.JSC$22377_cinematicController,z);_.pQN(this.JSC$22377_cinematicController,cMR(z));_.dTQ(this.JSC$22377_cinematicController);_.fg.addLowPriorityJob(function(){W.moveCinematicsToVideo()})}};
_.p.handleMiniplayerNavigateShorts=function(W){W==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():W==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.p.handleSignalActionToggleShortsPictureInPicture=function(){if(_.dO().resolve(_.Qb).pictureInPictureSupported()){var W=_.dO().resolve(_.N1);if(_.r("web_shorts_pip")){var B=_.dO().resolve(_.Qb);W.isShortsPipActive()?B.deactivate():B.isMiniplayerActive()||(_.qG().shortsPipActivation=!0,_.dwO(B))}}else(W=this.player)==null||W.togglePictureInPicture()};
_.G5.Object.defineProperties(fT.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.reelWatchSequenceResponse)!=null&&W.prevEntries)return this.processWatchSequence([].concat(_.u7(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.r("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.u7(this.prevShortsSequence));var W=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!W)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var B=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.u7(this.prevShortsSequence.slice(0,B)),[W],_.u7(this.prevShortsSequence.slice(B+1)))}B=this.index+this.shortsProcessedPrevSequence.length;W.thumbnail=this.shortsProcessedPrevSequence[B].thumbnail;return[].concat(_.u7(this.shortsProcessedPrevSequence.slice(0,B)),[W],_.u7(this.shortsProcessedPrevSequence.slice(B+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.reelWatchSequenceResponse)!=null&&W.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var W=this;if(_.r("web_enable_shorts_sequence_refactor")){if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var B;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((B=this.shortsProcessedSequence)==null?void 0:B.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var z,G=_.k((z=this.firstShortsData)==null?void 0:z.command,_.SW);if(G==null||!G.videoId)return this.shortsProcessedSequence;
G=this.getIndexInSequence(this.shortsSequence,G.videoId);if(G!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=G,_.fg.addLowPriorityJob(function(){W.transitionToVideoThrottle.fire(W.index);W.movePlayerToVideo(W.index)}));
return[].concat(_.u7(this.shortsSequence))}return[this.firstShortsData].concat(_.u7(this.shortsSequence))}}else if(this.data||this.shortsSequence){z=this.getCurrentShort();if(!z||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[z];if(z==null||!z.reelNonVideoContentRenderer)if(B=this.getIndexInSequence(this.shortsSequence,_.k(this.currentEndpoint,_.SW).videoId),this.index===0&&B!==-1)return this.currentPlayerIndex=this.index=B,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.u7(this.shortsSequence.slice(0,this.index)),[z],_.u7(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){z.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var Y,d,E;B=((Y=_.k((G=this.shortsProcessedSequence[0])==null?void 0:G.command,_.SW))==null?void 0:Y.videoId)===((E=_.k((d=this.shortsSequence[0])==null?void 0:d.command,_.SW))==null?void 0:E.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.u7(this.shortsProcessedSequence.slice(0,
this.index)),[z],_.u7(this.shortsSequence.slice(B)))}return[z].concat(_.u7(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var W=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;W&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(W)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 W,B;return this.index===((W=this.reelWatchSequenceResponse)==null?void 0:(B=W.entries)==null?void 0:B.length)}var z;return!((z=this.reelWatchSequenceResponse)==null?0:z.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var W;(W=this.delayedActiveIndexUpdateDebouncer)==null||W.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return this.isShortPlayable()||((B=_.k((W=this.data)==null?void 0:W.watchStatus,_.o36))==null?void 0:(z=B.style)==null?void 0:z.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var W=this,B=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),z;if((this.data||B)&&(((z=this.data)==null?0:z.engagementPanels)||this.isAd()||B)){B=!1;this.activePanel="shorts-comments-panel";var G;z=_.A(((G=this.data)==null?void 0:G.engagementPanels)||[]);for(G=z.next();!G.done;G=z.next())if(this.getPanelIdentifier(G.value.engagementPanelSectionListRenderer)===this.activePanel){B=!0;break}if(this.isPersistentPanelActive){var Y=
_.dO().resolve(_.WD);_.CG(_.fg,function(){Y.showPanel(W.activePanel,void 0,void 0,void 0,null)},100)}var d;
G=[].concat(_.u7(Object.values(((d=this.data)==null?void 0:d.engagementPanels)||{})));if(_.r("enable_preview_panel_for_shorts_search_suggested_action")){var E,v,c,J,g;((J=_.k((E=this.data)==null?void 0:(v=E.overlay)==null?void 0:(c=v.reelPlayerOverlayRenderer)==null?void 0:c.metapanel,_.JwT))==null?void 0:(g=J.metadataItems)==null?void 0:g.find(function(t){var P,Z;return((P=_.k(t,QuN))==null?void 0:(Z=P.icon)==null?void 0:Z.iconType)==="SEARCH"}))!==void 0&&G.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}d=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);E=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return d===void 0&&E===void 0||(d==null?0:d.isDisabled)||(E==null?void 0:E.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!B?(B=G==null?void 0:G.findIndex(function(t){var P,
Z;return((P=t.engagementPanelSectionListRenderer)==null?void 0:(Z=P.identifier)==null?void 0:Z.tag)==="shorts-comments-panel"}),B===-1||B===void 0||G!=null&&G.splice(B,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.kq("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.kq("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:_.kq("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.kq("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(_.u7(Object.values(G||
{})))):G}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.shortsProcessedSequence)==null?void 0:W[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var W=this,B,z,G;if((B=this.playerData)==null?0:(z=B.playabilityStatus)==null?0:(G=z.errorScreen)==null?0:G.playerInterstitialRenderer)return _.fg.addLowPriorityJob(function(){W.movePlayerToVideo(W.index)}),this.playerData.playabilityStatus.errorScreen;
var Y,d;return((Y=this.data)==null?void 0:Y.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((d=this.data)==null?0:d.watchStatus)&&_.k(this.data.watchStatus,_.M09)?(_.fg.addLowPriorityJob(function(){W.movePlayerToVideo(W.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.G5.Object.defineProperties(fT,{template:{configurable:!0,enumerable:!0,get:function(){if(qFZ===void 0){var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);qFZ=W}W=qFZ;return W}}});
fT.prototype.onNextButtonDataChange=fT.prototype.onNextButtonDataChange;fT.prototype.onPrevButtonDataChange=fT.prototype.onPrevButtonDataChange;fT.prototype.onPersistentPanelActiveChanged=fT.prototype.onPersistentPanelActiveChanged;fT.prototype.lazyUpdateMiniplayerData=fT.prototype.lazyUpdateMiniplayerData;fT.prototype.onShortsPipActiveChanged=fT.prototype.onShortsPipActiveChanged;fT.prototype.setActiveIndex=fT.prototype.setActiveIndex;fT.prototype.graftNvcRenderer=fT.prototype.graftNvcRenderer;
fT.prototype.graftClientVisualElements=fT.prototype.graftClientVisualElements;fT.prototype.onActiveChanged=fT.prototype.onActiveChanged;fT.prototype.onShortsDismiss=fT.prototype.onShortsDismiss;fT.prototype.onShortUndoDismiss=fT.prototype.onShortUndoDismiss;fT.prototype.playerDataChanged=fT.prototype.playerDataChanged;fT.prototype.afterPlayerStarted=fT.prototype.afterPlayerStarted;fT.prototype.updateReelWatchSequenceResponse=fT.prototype.updateReelWatchSequenceResponse;
fT.prototype.unhideCurrentOverlay=fT.prototype.unhideCurrentOverlay;fT.prototype.onServiceRequestCompleted=fT.prototype.onServiceRequestCompleted;fT.prototype.engagementPanelsChanged=fT.prototype.engagementPanelsChanged;fT.prototype.onFullscreenChange=fT.prototype.onFullscreenChange;fT.prototype.onResize=fT.prototype.onResize;fT.prototype.setFirstShortsData=fT.prototype.setFirstShortsData;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],fT.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(_.dz.YtPageBehavior),_.y("design:type",Object)],fT.prototype,"ytPageBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],fT.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.Mp),_.y("design:type",Object)],fT.prototype,"ironResizableBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],fT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],fT.prototype,"ytdDismissibleItemBehavior",void 0);
_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],fT.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],fT.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"playerData",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"reelWatchSequenceResponse",void 0);
_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"cachedReelWatchSequenceResponse",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"cachedSequenceParams",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"cachedSequenceProvider",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"currentEndpoint",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"nextButtonData",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"prevButtonData",void 0);
_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"isPreviousPageShorts",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"index",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"delayedActiveIndex",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"playablePreviousIndex",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"player",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"isPlayerPaused",void 0);
_.Q([_.F({selector:gMQ}),_.y("design:type",Object)],fT.prototype,"isPlayerStarted",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"intersectionObserver",void 0);_.Q([_.F(),_.y("design:type",Number)],fT.prototype,"cinematicsInitializeJobId",void 0);_.Q([_.F(),_.y("design:type",Number)],fT.prototype,"updateMiniplayerDataJobId",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"fitToVisibleBounds",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"pageSubtype",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],fT.prototype,"enablePreviousContinuation",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],fT.prototype,"shortsPipEnabled",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],fT.prototype,"isDark",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],fT.prototype,"shortsViewTransitions",void 0);
_.Q([_.F({selector:_.ck,reflectToAttribute:!0}),_.y("design:type",Object)],fT.prototype,"isFullscreen",void 0);_.Q([_.F({selector:_.wh,reflectToAttribute:!0}),_.y("design:type",Object)],fT.prototype,"isShortsPipActive",void 0);_.Q([_.Hf("#shorts-inner-container"),_.y("design:type",HTMLElement)],fT.prototype,"shortsInnerContainer",void 0);_.Q([_.Hf("#back-nav-button ytd-button-renderer"),_.y("design:type",_.HN)],fT.prototype,"backNavButton",void 0);
_.Q([_.Hf("#shorts-container"),_.y("design:type",HTMLElement)],fT.prototype,"shortsContainer",void 0);_.Q([_.xg("error-screen"),_.y("design:type",HTMLElement)],fT.prototype,"errorScreenContainer",void 0);_.Q([_.xg("player"),_.y("design:type",Object)],fT.prototype,"playerElement",void 0);_.Q([_.xg("shorts-cinematic-container"),_.y("design:type",HTMLElement)],fT.prototype,"shortsCinematicContainer",void 0);
_.Q([_.xg("initial-player-container"),_.y("design:type",HTMLElement)],fT.prototype,"initialPlayerContainer",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"buttonOverride",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],fT.prototype,"anchoredPanelActive",void 0);_.Q([_.F(),_.y("design:type",String)],fT.prototype,"activePanel",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"isActive",void 0);
_.Q([_.F({selector:JMh,reflectToAttribute:!0}),_.y("design:type",Object)],fT.prototype,"smallScreenPersistentPanel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],fT.prototype,"isPersistentPanelActive",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"smallScreenSqueezeBack",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"enableScrollIntoViewCenter",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],fT.prototype,"formatFirst",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],fT.prototype,"enableFlexibleOverlay",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],fT.prototype,"extractOverlay",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],fT.prototype,"useAspectRatio",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"panelContainer",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"overlayContainer",void 0);
_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"isShortsInitialized",void 0);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"firstShortsData",void 0);_.Q([_.H("reelWatchSequenceResponse"),_.y("design:type",Object),_.y("design:paramtypes",[])],fT.prototype,"prevShortsSequence",null);_.Q([_.H("data","prevShortsSequence"),_.y("design:type",Object),_.y("design:paramtypes",[])],fT.prototype,"shortsProcessedPrevSequence",null);
_.Q([_.H("reelWatchSequenceResponse"),_.y("design:type",Object),_.y("design:paramtypes",[])],fT.prototype,"shortsSequence",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"setFirstShortsData",null);_.Q([_.H("data","shortsSequence","firstShortsData"),_.y("design:type",Object),_.y("design:paramtypes",[])],fT.prototype,"shortsProcessedSequence",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fT.prototype,"isUpArrowHidden",null);_.Q([_.F({reflectToAttribute:!0}),_.H("reelWatchSequenceResponse","index","endOfNextContinuation"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fT.prototype,"isDownArrowHidden",null);
_.Q([_.F(),_.H("index"),_.y("design:type",Number),_.y("design:paramtypes",[])],fT.prototype,"activeIndex",null);_.Q([_.H("isShortPlayable","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fT.prototype,"shouldRenderOfflineContent",null);_.Q([_.IN("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"onResize",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],fT.prototype,"anchoredEngagementPanels",null);
_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"watchWhileEngagementPanels",void 0);_.Q([_.oN("isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"onFullscreenChange",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"engagementPanelsChanged",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],fT.prototype,"onServiceRequestCompleted",null);_.Q([_.H("data","shortsSequence","index"),_.y("design:type",Object),_.y("design:paramtypes",[])],fT.prototype,"activeReel",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"unhideCurrentOverlay",null);
_.Q([_.oN("currentEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"updateReelWatchSequenceResponse",null);_.Q([_.oN("isPlayerStarted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"afterPlayerStarted",null);_.Q([_.H("playerData","reelWatchSequenceResponse","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],fT.prototype,"errorScreen",null);
_.Q([_.H("errorScreen"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fT.prototype,"hasError",null);_.Q([_.oN("playerData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],fT.prototype,"playerDataChanged",null);_.Q([_.IN("yt-dismissible-item-undo-feedback"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"onShortUndoDismiss",null);
_.Q([_.IN("yt-disable-lockup-interaction"),_.y("design:type",Function),_.y("design:paramtypes",[Object]),_.y("design:returntype")],fT.prototype,"onShortsDismiss",null);_.Q([_.jJ("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"onActiveChanged",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"graftClientVisualElements",null);
_.Q([_.oN("currentPlayerIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"graftNvcRenderer",null);_.Q([_.oN("index"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"setActiveIndex",null);_.Q([_.oN("isShortsPipActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"onShortsPipActiveChanged",null);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"lazyUpdateMiniplayerData",null);_.Q([_.F(),_.y("design:type",Object)],fT.prototype,"onOverlayDensityChanged",void 0);_.Q([_.oN("isPersistentPanelActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"onPersistentPanelActiveChanged",null);
_.Q([_.oN("index","data","isUpArrowHidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"onPrevButtonDataChange",null);_.Q([_.oN("index","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fT.prototype,"onNextButtonDataChange",null);_.Q([_.u({is:"ytd-shorts"})],fT);_.u1.registerService(_.Tzk,fT);
_.mb();
}catch(e){_._DumpException(e)}
try{
_.ek("JzFVk");
var pym;var A0N;var YS=function(){return _.S.apply(this,arguments)||this};
_.C(YS,_.S);YS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
YS.prototype.computeBlueBottomLink=function(W){return W};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],YS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],YS.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],YS.prototype,"data",void 0);_.Q([_.F({computed:"computeIcon_(data.bottomIcon)"}),_.y("design:type",String)],YS.prototype,"bottomIcon",void 0);
_.Q([_.F({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.y("design:type",Boolean)],YS.prototype,"enableBlueBottomLink",void 0);_.Q([_.u({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],YS);
_.D(YS,"ytd-web-answer-renderer",function(){if(A0N!==void 0)return A0N;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return A0N=W},{mode:_.PJ("kevlar_poly_si_batch_j035")?1:2});var iu_;var dC=function(){var W=_.S.apply(this,arguments)||this;W.hasChipBar=!1;return W};
_.C(dC,_.S);dC.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}}};
dC.prototype.computeHasChipBar=function(W){return!(W==null||!W.chipBar)};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],dC.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.y("design:type",Object)],dC.prototype,"hasChipBar",void 0);_.Q([_.u({is:"ytd-search-header-renderer",disableElementRegistration:!0})],dC);
_.D(dC,"ytd-search-header-renderer",function(){if(iu_!==void 0)return iu_;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return iu_=W},{mode:1});var EtN;var pT=function(){return _.S.apply(this,arguments)||this};
_.C(pT,_.S);pT.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],pT.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],pT.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-page-continuation"})],pT);
_.D(pT,"ytd-page-continuation",function(){if(EtN!==void 0)return EtN;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return EtN=W},{mode:1});var TkK;var vt3;var c0_;var wyM=function(){return _.S.apply(this,arguments)||this};
_.C(wyM,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],wyM.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],wyM.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],wyM);
_.D(wyM,"ytd-watch-card-one-vs-one-event",function(){if(c0_!==void 0)return c0_;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return c0_=W},{mode:1});var VQb=function(){return _.S.apply(this,arguments)||this};
_.C(VQb,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],VQb.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],VQb.prototype,"data",void 0);_.Q([_.u({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],VQb);
_.D(VQb,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(vt3!==void 0)return vt3;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return vt3=W},{mode:1});var J03;var gtN=function(){return _.S.apply(this,arguments)||this};
_.C(gtN,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],gtN.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],gtN.prototype,"data",void 0);_.Q([_.u({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],gtN);
_.D(gtN,"ytd-banner-and-box-hero-image-renderer",function(){if(J03!==void 0)return J03;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return J03=W},{mode:1});var tQZ;var A3=function(){var W=_.S.apply(this,arguments)||this;W.modern=_.r("web_modern_buttons");return W};
_.C(A3,_.S);A3.prototype.computeIcon=function(){var W,B,z=(W=this.data)==null?void 0:(B=W.icon)==null?void 0:B.iconType;if(z)return _.lg(z)};
A3.prototype.computeButtonShape=function(){var W;return{buttonText:_.zR((W=this.data)==null?void 0:W.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.G5.Object.defineProperties(A3.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"}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],A3.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],A3.prototype,"modern",void 0);_.Q([_.F({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.H("data.style"),_.y("design:type",Object),_.y("design:paramtypes",[])],A3.prototype,"buttonColor",null);
_.Q([_.u({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],A3);
_.D(A3,"ytd-call-to-action-button-renderer",function(){if(tQZ!==void 0)return tQZ;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tQZ=W},{mode:1});var sDZ;var iv=function(){return _.S.apply(this,arguments)||this};
_.C(iv,_.S);iv.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.tH(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.JY(this.data.leftThumbnail.thumbnails,216)+")")};
iv.prototype.onLeftThumbnailChanged=iv.prototype.onLeftThumbnailChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],iv.prototype,"data",void 0);_.Q([_.oN("data.leftThumbnail"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iv.prototype,"onLeftThumbnailChanged",null);_.Q([_.u({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],iv);
_.D(iv,"ytd-collage-hero-image-renderer",function(){if(sDZ!==void 0)return sDZ;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return sDZ=W},{mode:1});var PxF;var EH=function(){return _.S.apply(this,arguments)||this};
_.C(EH,_.S);EH.prototype.computeStyle=function(W){return W};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],EH.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],EH.prototype,"componentStyle",void 0);_.Q([_.u({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],EH);
_.D(EH,"ytd-single-hero-image-renderer",function(){if(PxF!==void 0)return PxF;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return PxF=W},{mode:1});var Zum;var Te=function(){return _.S.apply(this,arguments)||this};
_.C(Te,_.S);_.p=Te.prototype;
_.p.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:_.r("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.p.computeSubtitle=function(W){if(this.data){var B;if(this.data.upcomingEventData){W=_.zR(W.subtitle);var z=Number(this.data.upcomingEventData.startTime);isNaN(z)||(B=_.Bg(_.XE(W,z)))}else B=W.subtitle;return B}};
_.p.onHeroTap=function(W){W.preventDefault();var B=this.data&&this.data.navigationEndpoint;!B||!_.p2(_.AH(W),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.p2(_.AH(W),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.r("kevlar_watchcard_hero_video_renderer_killswitch")?_.v0(this.hostElement,"yt-navigate",{navigationEndpoint:B}):this.ytComponentBehavior.resolveCommand(B))};
_.p.computeHeroTabIndex=function(W){return W&&W.simpleText?-1:0};
_.p.computeHeroRole=function(W){return W&&W.simpleText?"":"link"};
_.p.computeIsReminderButtonPresent=function(W){return!(!W||!W.reminderButton)};
_.p.computeHideBottomItems=function(W){return!(this.computeIsReminderButtonPresent(W)||W.subtitle)};
_.p.dataChanged=function(){var W=this.get("data.buttons.buttonRenderer.serviceEndpoint"),B;((B=_.k(W==null?void 0:W.commandMetadata,_.$N))==null?0:B.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(W)};
Te.prototype.dataChanged=Te.prototype.dataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Te.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Te.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Te.prototype,"data",void 0);
_.Q([_.F({computed:"computeSubtitle(data)"}),_.y("design:type",String)],Te.prototype,"subtitle",void 0);_.Q([_.F({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Te.prototype,"isReminderButtonPresent",void 0);_.Q([_.F({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Te.prototype,"hideBottomItems",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Te.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Te);
_.D(Te,"ytd-watch-card-hero-video-renderer",function(){if(Zum!==void 0)return Zum;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Zum=W},{mode:1});var r0h;var vY=function(){return _.S.apply(this,arguments)||this};
_.C(vY,_.S);_.p=vY.prototype;_.p.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"}}}};
_.p.computeTitleBadges=function(W){return W?[W]:[]};
_.p.computeHeaderStyle=function(W){return W?W.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.p.computeAvatarAriaLabel=function(W){if(W){var B,z,G,Y;return(Y=(B=W.avatar)==null?void 0:(z=B.accessibility)==null?void 0:(G=z.accessibilityData)==null?void 0:G.label)!=null?Y:_.zR(W==null?void 0:W.title)}};
_.p.computeAvatarHeight=function(W){return W==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.p.computeBadgeRowClass=function(W){return(W==null?0:W[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],vY.prototype,"data",void 0);_.Q([_.F({computed:"computeTitleBadges(data.titleBadge)"}),_.y("design:type",Array)],vY.prototype,"titleBadges",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.y("design:type",String)],vY.prototype,"headerStyle",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.y("design:type",String)],vY.prototype,"badgeRowClass",void 0);_.Q([_.u({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],vY);
_.D(vY,"ytd-watch-card-rich-header-renderer",function(){if(r0h!==void 0)return r0h;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return r0h=W},{mode:1});var kT_;var lvK;var cY=function(){return _.S.apply(this,arguments)||this};
_.C(cY,_.S);cY.prototype.onMetadataTap=function(W){var B=this.data&&this.data.navigationEndpoint;B&&!_.p2(_.AH(W),this.hostElement,["A".toString()])&&_.v0(this.hostElement,"yt-navigate",{endpoint:B})};
_.G5.Object.defineProperties(cY.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 W;if(this.data.upcomingEventData){var B=_.zR(this.data.subtitle),z=Number(this.data.upcomingEventData.startTime);isNaN(z)||(W=_.Bg(_.XE(B,z)))}else W=this.data.subtitle;return W}}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],cY.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data.style"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],cY.prototype,"isCondensed",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],cY.prototype,"subtitle",null);
_.Q([_.u({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],cY);
_.D(cY,"ytd-watch-card-compact-video-renderer",function(){if(lvK!==void 0)return lvK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return lvK=W},{mode:1});var Cxm;var IvM=function(){return _.S.apply(this,arguments)||this};
_.C(IvM,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],IvM.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],IvM.prototype,"data",void 0);_.Q([_.u({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],IvM);
_.D(IvM,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(Cxm!==void 0)return Cxm;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Cxm=W},{mode:1});var wC=function(){return _.S.apply(this,arguments)||this};
_.C(wC,_.S);wC.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}}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],wC.prototype,"ytRendererStamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],wC.prototype,"data",void 0);_.Q([_.u({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],wC);
_.D(wC,"ytd-vertical-watch-card-list-renderer",function(){if(kT_!==void 0)return kT_;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return kT_=W},{mode:1});var otm;var V1=function(){var W=_.S.apply(this,arguments)||this;W.ariaExpanded="false";return W};
_.C(V1,_.S);_.p=V1.prototype;_.p.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.p.dataChanged=function(){var W;this.currentSeasonIndex=((W=this.data)==null?void 0:W.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.p.computeEpisodesInfo=function(W,B,z){if(W!==void 0&&B.length===W.length)return W[z]};
_.p.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.p.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.p.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.p.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.p.getUppercaseSimpleString=function(W){return this.ytRendererBehavior.getSimpleString(W).toUpperCase()};
_.p.updateCurrentSeasonIndexFromBinding=function(W){this.currentSeasonIndex=W.detail.value};
V1.prototype.onIronOverlayClosed=V1.prototype.onIronOverlayClosed;V1.prototype.currentSeasonIndexChanged=V1.prototype.currentSeasonIndexChanged;V1.prototype.dataChanged=V1.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],V1.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",String)],V1.prototype,"label",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],V1.prototype,"currentSeasonIndex",void 0);_.Q([_.F({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.y("design:type",Object)],V1.prototype,"episodesInfo",void 0);_.Q([_.F({value:"false"}),_.y("design:type",Object)],V1.prototype,"ariaExpanded",void 0);_.Q([_.Hf("#lists"),_.y("design:type",Object)],V1.prototype,"lists",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],V1.prototype,"dataChanged",null);_.Q([_.jJ("currentSeasonIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],V1.prototype,"currentSeasonIndexChanged",null);_.Q([_.IN("iron-overlay-closed"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],V1.prototype,"onIronOverlayClosed",null);
_.Q([_.u({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],V1);
_.D(V1,"ytd-watch-card-section-dropdown-renderer",function(){if(otm!==void 0)return otm;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return otm=W},{mode:1});var h8m;var J3=function(){var W=_.S.apply(this,arguments)||this;W.isSearch=!1;return W};
_.C(J3,_.S);J3.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}}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],J3.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],J3.prototype,"isSearch",void 0);_.Q([_.u({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],J3);
_.D(J3,"ytd-watch-card-section-sequence-renderer",function(){if(h8m!==void 0)return h8m;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return h8m=W},{mode:1});var Hu_=_.m(function(W){return _.w("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.w(_.Sc,{data:function(){return W.data().ctaButton}},{buttonViewModel:_.ex}),_.w(_.r0,{text:function(){return W.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"sk");
Hu_.idomCompat=!0;_.Vm(Hu_,"ytd-button-banner-view-model",{props:{data:_.kz}});var gC=function(){var W=_.S.apply(this,arguments)||this;W.isSearch=!1;return W};
_.C(gC,_.S);
gC.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"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],gC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],gC.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],gC.prototype,"rounded",void 0);_.Q([_.F(),_.y("design:type",Object)],gC.prototype,"isSearch",void 0);
_.Q([_.u({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],gC);
_.D(gC,"ytd-universal-watch-card-renderer",function(){if(TkK!==void 0)return TkK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return TkK=W},{mode:1});var Frm;_.Vm(_.m(function(W){var B=W.data;var z;W=!((z=_.dO().resolve(_.Y8(_.YG)))==null||!z());z={};return _.w("overview-message-view-model",{class:_.kG("ytwOverviewMessageViewModelHost",(z.ytwOverviewMessageViewModelDarkBackground=W,z.ytwOverviewMessageViewModelLightBackground=!W,z))},_.w(_.V,{cond:function(){return B().primaryImage},
then:function(G){return _.w(_.iF,{data:G,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.w(_.V,{cond:function(){return B().primaryText},
then:function(){return _.w("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.w(_.r0,{text:function(){return B().primaryText}}))}}),_.w(_.V,{cond:function(){return B().secondaryText},
then:function(){return _.w("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.w(_.r0,{text:function(){return B().secondaryText}}))}}))},"tk"),"overview-message-view-model",{props:{data:_.kz}});_.Vm(_.KoR,"ytd-overview-answer-view-model",{props:{data:_.kz}});var t3=function(){return _.S.apply(this,arguments)||this};
_.C(t3,_.S);t3.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"}}}};
t3.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Pl),_.y("design:type",Object)],t3.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],t3.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],t3.prototype,"isSearch",void 0);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],t3);
_.D(t3,"ytd-secondary-search-container-renderer",function(){if(Frm!==void 0)return Frm;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return Frm=W},{mode:1});var SXK;var sH=function(){var W=_.S.apply(this,arguments)||this;W.renderSecondarySearchContainer=!1;W.isSearch=!1;return W};
_.C(sH,_.S);_.p=sH.prototype;_.p.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.p.created=function(){var W=this;this.boundStampSecondarySearchContainerIfFits=function(){W.stampSecondarySearchContainerIfFits()};
_.uk("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.p.computeIsSearchFrictionPage=function(W){var B,z,G,Y,d;W=W==null?void 0:(B=W.primaryContents)==null?void 0:(z=B.sectionListRenderer)==null?void 0:(G=z.contents)==null?void 0:(Y=G[0])==null?void 0:(d=Y.itemSectionRenderer)==null?void 0:d.contents;if(!W)return!1;B=_.A(W);for(z=B.next();!z.done;z=B.next())if(G=void 0,(G=z.value)==null?0:G.searchFrictionViewModel)return!0;return!1};
_.p.computeShowSecondaryColumn=function(W,B){return!!(B&&B.secondaryContents&&W)};
_.p.activeChanged=function(){var W=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Co(this,this.debounceStampSecondarySearchContainerIfFits)),_.WJ(function(){W.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Co(this,this.debounceStampSecondarySearchContainerIfFits))};
_.p.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.p.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.p.debounceStampSecondarySearchContainerIfFits=function(){_.BJ(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.p.onRetrieveLocation=function(W,B){B.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);W.stopPropagation()};
_.p.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
sH.prototype.dataChanged=sH.prototype.dataChanged;sH.prototype.onRetrieveLocation=sH.prototype.onRetrieveLocation;sH.prototype.persistentGuideChanged=sH.prototype.persistentGuideChanged;sH.prototype.activeChanged=sH.prototype.activeChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],sH.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],sH.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.h(_.Mp),_.y("design:type",Object)],sH.prototype,"ironResizableBehavior",void 0);_.Q([_.F(),_.y("design:type",Boolean)],sH.prototype,"active",void 0);_.Q([_.F(),_.y("design:type",Object)],sH.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],sH.prototype,"useBiggerThumbs",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.EA("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],sH.prototype,"biggerThumbsStyle",void 0);_.Q([_.F(),_.y("design:type",Object)],sH.prototype,"renderSecondarySearchContainer",void 0);_.Q([_.F({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.y("design:type",Boolean)],sH.prototype,"showSecondaryColumn",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.y("design:type",Boolean)],sH.prototype,"isSearchFrictionPage",void 0);
_.Q([_.F(),_.y("design:type",Object)],sH.prototype,"isSearch",void 0);_.Q([_.oN("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sH.prototype,"activeChanged",null);_.Q([_.oN("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sH.prototype,"persistentGuideChanged",null);
_.Q([_.IN("yt-retrieve-location"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],sH.prototype,"onRetrieveLocation",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sH.prototype,"dataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],sH);
_.D(sH,"ytd-two-column-search-results-renderer",function(){if(SXK!==void 0)return SXK;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return SXK=W},{mode:1});var PY=function(){var W=_.S.apply(this,arguments)||this;W.hasSearchHeader=!1;W.hasSecondaryContent=!1;W.hasBiggerThumbs=_.r("enable_desktop_search_bigger_thumbs");W.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return W};
_.C(PY,_.S);_.p=PY.prototype;_.p.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:_.ZA(["aa","eocs"])}}};
_.p.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.p.loadPage_=function(W){this.initCsi();W&&(this.data=W,_.uk("REFINEMENTS_TUPLE",["FromSearchResponse",W.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.UE(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.p.initCsi=function(){_.Yd("results",["ol","cpt"])};
_.p.updateTitle=function(){var W=_.$x(window.location.href,"q");W||(W=_.$x(window.location.href,"search_query"));_.v0(this.hostElement,"yt-update-title",W||"")};
_.p.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.p.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.r("web_srp_data_changed_terminate_imp_killswitch")||_.c0(this.hostElement,"yt-terminate-video-preview-action")};
_.p.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.p.computeHasSearchHeader=function(W){var B;W=W==null?void 0:(B=W.header)==null?void 0:B.searchHeaderRenderer;return!!W&&(!!W.searchFilterButton||!!W.chipBar)};
_.p.computeHasSecondaryContent=function(W){var B,z;return!!(W==null?0:(B=W.contents)==null?0:(z=B.twoColumnSearchResultsRenderer)==null?0:z.secondaryContents)};
_.G5.Object.defineProperties(PY,{template:{configurable:!0,enumerable:!0,get:function(){if(pym===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);pym=W}W=pym;return W}}});
PY.prototype.onReloadContinuationFinish=PY.prototype.onReloadContinuationFinish;PY.prototype.dataChanged=PY.prototype.dataChanged;_.Q([_.h(_.dz.YtPageBehavior),_.y("design:type",Object)],PY.prototype,"ytPageBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],PY.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],PY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Pl),_.y("design:type",Object)],PY.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],PY.prototype,"data",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],PY.prototype,"monitorScroll",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PY.prototype,"hasSearchHeader",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PY.prototype,"hasSecondaryContent",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],PY.prototype,"hasBiggerThumbs",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PY.prototype,"dataChanged",null);
_.Q([_.IN("yt-reload-continuation-finish"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PY.prototype,"onReloadContinuationFinish",null);_.Q([_.u({is:"ytd-search"})],PY);_.u1.registerService(_.Ed0,PY);
_.mb();
}catch(e){_._DumpException(e)}
try{
_.ek("h8y2qb");
var syi=function(W){if(W=_.Kl0(W)){var B;(B=W.sources)!=null&&B[0]?(B=_.eGx(W),B=B<1?"VERTICAL":B>1?"HORIZONTAL":"SQUARE"):B=void 0;return B}},pv=function(W){_.er.call(this,"upload");
this.opts.query=W},Z90=function(W,B){return _.w(Pmf,{data:W,
onYtNavigate:B})},rFO=function(W,B){return _.P3(W.entities,"pageHeaderEntity",B)},lmf=function(W,B){return W.map(function(z){if(z.tabRenderer)return kc6(z.tabRenderer);
if(z.expandableTabRenderer&&B){var G=z.expandableTabRenderer;return{customTabRenderable:function(){return B(G)}}}return{}})},kc6=function(W){return{identifier:W.tabIdentifier,
aTagConfig:_.UV({innertubeCommand:W.endpoint,forceNewState:!0}),title:W.title,selected:W.selected,disabled:W.unselectable,icon:W.icon}},Cmf=function(W){return _.Tl({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:W})},Imf=function(W){if(!_.cA(document,"gtm-noscript")){var B=document.createElement("noscript");
B.id="gtm-noscript";B.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+W+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(B)}};_.TC(pv,_.er);pv.prototype.JSC$10074_setLabel=function(W){pv.superClass_.JSC$10074_setLabel.call(this,W);return this};
pv.prototype.addUploadMetadata=function(W,B){pv.superClass_.addUploadMetadata.call(this,W,B);return this};var oKf=function(W){if(W!=="youtubebanner"&&W!=="youtube-channel-banner")throw Error("Ao");pv.call(this,W)};
_.C(oKf,pv);oKf.prototype.JSC$10074_setLabel=function(W){pv.prototype.JSC$10074_setLabel.call(this,W);return this};
oKf.prototype.addUploadMetadata=function(W,B){pv.prototype.addUploadMetadata.call(this,W,B);return this};var h9Y=[_.Mp,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(W){_.St(W).path[0]!==this&&(this.resetLayout(),W.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var W=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.hf(this._layoutDebouncer,_.eK,W);_.H4(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var W=this;requestAnimationFrame(function(){W.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(W){this.resizerShouldNotify(W)&&this._notifyDescendant(W)},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 H9j=[_.$$M,{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(W,B){var z=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[W];if(!z)throw new ReferenceError(this._getUndefinedMsg(W));W=this._boundEffect(z,B||{});W.setUp();return W},
_effectsChanged:function(W,B,z){this._tearDownEffects();W&&z&&(W.split(" ").forEach(function(G){var Y;G!==""&&((Y=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[G])?this._effects.push(this._boundEffect(Y,B[G])):console.warn(this._getUndefinedMsg(G)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(W,B){B=B||{};var z=parseFloat(B.startsAt||0),G=parseFloat(B.endsAt||1),Y=G-z,d=function(){};
G=z===0&&G===1?W.run:function(E,v){W.run.call(this,Math.max(0,(E-z)/Y),v)};
return{setUp:W.setUp?W.setUp.bind(this,B):d,run:W.run?G.bind(this):d,tearDown:W.tearDown?W.tearDown.bind(this):d}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(W){W.setUp()!==!1&&this._effectsRunFn.push(W.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(W){W.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(W,B){this._effectsRunFn&&this._effectsRunFn.forEach(function(z){z(W,B)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var W=this._clampedScrollTop;this._updateScrollState(W);this.threshold>0&&this._setThresholdTriggered(W>=this.threshold)}},
_getDOMRef:function(W){console.warn("_getDOMRef","`"+W+"` is undefined")},
_getUndefinedMsg:function(W){return"Scroll effect `"+W+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+W+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Bo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(W){var B={};W=parseFloat(W.scalar);B.background=this._getDOMRef("background");B.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");B.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");B.deltaBg=B.backgroundFrontLayer.offsetHeight-B.background.offsetHeight;B.deltaBg===0?(isNaN(W)&&(W=.8),B.deltaBg=(this._dHeight||0)*W):(isNaN(W)&&(W=
1),B.deltaBg*=W);this._fxParallaxBackground=B},
run:function(W){var B=this._fxParallaxBackground;this.transform("translate3d(0px, "+B.deltaBg*Math.min(1,W)+"px, 0px)",B.backgroundFrontLayer);B.backgroundRearLayer&&this.transform("translate3d(0px, "+B.deltaBg*Math.min(1,W)+"px, 0px)",B.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var Fy6;var SS6;var b9Y=function(){};
_.p=b9Y.prototype;_.p._scrollTargetChanged=function(){};
_.p.scroll=function(){};
_.p._isValidScrollTarget=function(){};
_.p._toggleScrollListener=function(){};
_.p.toggleScrollListener=function(){};
_.p.createEffect=function(){};
_.p._effectsChanged=function(){};
_.p._layoutIfDirty=function(){};
_.p._boundEffect=function(){};
_.p._setUpEffect=function(){};
_.p._tearDownEffects=function(){};
_.p._runEffects=function(){};
_.p._scrollHandler=function(){};
_.p._scrollStateChanged=function(){};
_.p._getUndefinedMsg=function(){};
_.p.notifyResize=function(){};
_.p.assignParentResizable=function(){};
_.p.stopResizeNotificationsFor=function(){};
_.p._subscribeIronResize=function(){};
_.p._unsubscribeIronResize=function(){};
_.p.resizerShouldNotify=function(){};
_.p._onDescendantIronResize=function(){};
_.p._fireResize=function(){};
_.p._onIronRequestResizeNotifications=function(){};
_.p._parentResizableChanged=function(){};
_.p._notifyDescendant=function(){};
_.p._requestResizeNotifications=function(){};
_.p._findParent=function(){};
_.p._appResetLayoutHandler=function(){};
_.p.resetLayout=function(){};
_.p._notifyLayoutChanged=function(){};
_.p._notifyDescendantResize=function(){};
_.p._setThresholdTriggered=function(){};
b9Y=_.D8({_template:function(){if(SS6!==void 0)return SS6;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Fy6===void 0&&(Fy6=document.createElement("template"));var G=Fy6;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return SS6=W},
is:"tp-yt-app-header",behaviors:[H9j,h9Y],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 W=_.St(this.$.slot).getDistributedNodes(),B=0,z;z=W[B];B++)if(z.nodeType===Node.ELEMENT_NODE)if(z.hasAttribute("sticky")){this._stickyElRef=z;break}else this._stickyElRef||(this._stickyElRef=z);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var W=this._clampedScrollTop,B=this._height===0||W===0,z=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;B||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();B?this._updateScrollState(W,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=z}},
_updateScrollState:function(W,B){if(this._height!==0){var z=0,G=this._top;var Y=this._maxHeaderTop;var d=W-this._lastScrollTop,E=Math.abs(d),v=W>this._lastScrollTop,c=performance.now();this._mayMove()&&(z=this._clamp(this.reveals?G+d:W,0,Y));W>=this._dHeight&&(z=this.condenses&&!this.fixed?Math.max(this._dHeight,z):z,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&E<100){if(c-this._initTimestamp>300||this._wasScrollingDown!==v)this._initScrollTop=W,this._initTimestamp=c;W>=Y&&
(Math.abs(this._initScrollTop-W)>30||E>10?(v&&W>=Y?z=Y:!v&&W>=this._dHeight&&(z=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((z-G)/(d/(c-this._lastTimestamp)),0,300)+"ms"):z=this._top)}Y=this._dHeight===0?W>0?1:0:z/this._dHeight;B||(this._lastScrollTop=W,this._top=z,this._wasScrollingDown=v,this._lastTimestamp=c);if(B||Y!==this._progress||G!==z||W===0)this._progress=Y,this._runEffects(Y,z),this._transformHeader(z)}},
_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(W){this.translate3d(0,-W+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&W>=this._stickyElTop?Math.min(W,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(W,B,z){return Math.min(z,Math.max(B,W))},
_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),_.St(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(W){switch(W){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.St(this).querySelector("[main-title]");case "condensedTitle":return _.St(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var jyq;var fm9;_.D8({_template:function(){if(fm9!==void 0)return fm9;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;jyq===void 0&&(jyq=document.createElement("template"));var G=jyq;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return fm9=W},
is:"tp-yt-app-header-layout",behaviors:[h9Y],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.St(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var W=this.header;if(this.isAttached&&W){this.$.wrapper.classList.remove("initializing");W.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)W.style.left=
"",W.style.right="";else{var B=this.getBoundingClientRect(),z=document.documentElement.clientWidth-B.right;W.style.left=B.left+"px";W.style.right=z+"px"}B=this.$.contentContainer.style;z=W.offsetHeight;W.fixed&&!W.condenses&&this.hasScrollingRegion?(B.marginTop=z+"px",B.paddingTop=""):(B.paddingTop=z+"px",B.marginTop="")}}});var O9r=new _.J1("alertCommand");var Xur=new _.J1("manageLabsStateCommand");var Kyi=new _.J1("inlineFormRenderer");var Ap=new _.J1("playlistSidebarPrimaryInfoRenderer");var uj9=new _.J1("productDetailsThumbnailRenderer"),e9O=new _.J1("productDetailsVariantRenderer"),mt9=new _.J1("productDetailsVariantOptionRenderer"),xt1=new _.J1("productDetailsOffersContainerRenderer"),Dtj=new _.J1("productDetailsOfferRenderer");var Qyf=new _.J1("shoppingFlaggingRenderer");var yFn=new _.J1("playlistBylineRenderer");var qSb=new _.J1("insertChannelTabCommand");var i6=function(){return _.SJ.apply(this,arguments)||this};
_.C(i6,_.SJ);_.p=i6.prototype;_.p.activeChanged=function(){if(this.active){var W=_.tH(this.hostElement).querySelector("#header");W&&_.v0(W,"iron-resize");window.addEventListener("scroll",_.Co(this,this.onScroll))}else window.removeEventListener("scroll",_.Co(this,this.onScroll)),_.v0(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.p.guideVisibleChanged=function(){var W=_.tH(this.hostElement).querySelector("#header");W&&_.v0(W,"iron-resize")};
_.p.onScroll=function(){var W=this;_.BJ(this,"onScroll",function(){var B=_.tH(W.hostElement).querySelector("#header");B&&B.polymerController&&(B=B.polymerController.getScrollState().progress===1?"standard":"seamed",_.v0(W.hostElement,"yt-request-panel-mode-change",{mode:B}))},10)};
_.p.tabsChanged=function(){if(this.tabs){for(var W=null,B=0,z=this.tabs.length;B<z;++B){var G=this.tabs[B].tabRenderer;if(G&&G.selected){W=B;break}}this.selected=W}};
_.p.onTabsActivate=function(W){_.v0(this.hostElement,"yt-navigate",{endpoint:this.tabs[W.detail.selected].tabRenderer.endpoint})};
i6.prototype.tabsChanged=i6.prototype.tabsChanged;i6.prototype.guideVisibleChanged=i6.prototype.guideVisibleChanged;i6.prototype.activeChanged=i6.prototype.activeChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],i6.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.F(),_.y("design:type",Array)],i6.prototype,"tabs",void 0);
_.Q([_.F(),_.y("design:type",Object)],i6.prototype,"selected",void 0);_.Q([_.F(),_.y("design:type",Boolean)],i6.prototype,"active",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],i6.prototype,"disableHeaderFluidWidth",void 0);_.Q([_.oN("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],i6.prototype,"activeChanged",null);
_.Q([_.oN("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],i6.prototype,"guideVisibleChanged",null);_.Q([_.oN("tabs"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],i6.prototype,"tabsChanged",null);_.Q([_.bP()],i6);var nKf=[_.U.YtRendererBehavior,_.ge.YtdGuideStateAwareBehavior,i6.prototype];var N_6=2/3,$t1=_.PA(130749),LyK=function(W,B){var z=this;this.element=W;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){z.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:N_6,moveAction:function(G){z.moveAction(G)},
triggerAction:function(){z.element.isReloading=!0;_.aK(_.SK(),{visualElement:$t1});_.IB.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:z.element}})}}}};
_.ed(_.SK(),$t1,this.layer);this.gesture=new _.KH(W,B,this.refreshConfig,"pan-down");this.attach()};
_.p=LyK.prototype;_.p.attach=function(){this.gesture.attach()};
_.p.detach=function(){this.gesture.detach()};
_.p.reset=function(){this.element.close()};
_.p.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.p.moveAction=function(W){this.element.rotation=W*360};var Ut1=_.PA(130750),EC=function(W,B,z,G,Y){var d=this;this.element=W;this.parent=z;this.channelHeader=G;this.ytdReduxDispatch=Y;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){d.tabsStartAtInPx=d.channelHeader.clientHeight-48;var E;(E=d.selectedTab)!=null&&E.title&&(E=_.dO().resolve(_.Y8(_.ij)))&&(E=E.getCurrentPage(),d.lastVisitedTabScrollPosition=E.getScrollTop(),d.previousTab&&
((d.lastVisitedTabScrollPosition===void 0?0:d.lastVisitedTabScrollPosition<d.channelHeader.clientHeight-48)?d.scrollPositionForTabs.has(d.selectedTab.title)&&d.scrollPositionForTabs.delete(d.selectedTab.title):d.scrollPositionForTabs.set(d.selectedTab.title,E.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:MzK(),triggerAction:function(){d.navigate(d.previousTab)},
moveAction:function(E,v){d.moveAction(E,v)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-MzK(),triggerAction:function(){d.navigate(d.nextTab)},
moveAction:function(E,v){d.moveAction(E,v)}}}};
_.ed(_.SK(),Ut1,this.layer);this.gesture=new _.KH(W,B,this.tabConfig);this.attach()};
EC.prototype.attach=function(){this.gesture.attach()};
EC.prototype.detach=function(){this.gesture.detach()};
EC.prototype.tabsChanged=function(W){if(W){var B=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;W=_.A(W);for(var z=W.next();!z.done;z=W.next()){z=z.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=z);var G=void 0;if((G=z)==null?0:G.selected)this.previousTab=B,this.selectedTab=z;B=z}B=this.gesture;W=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}});
B.config=W;this.scrollPositionNeedsUpdate=!0}};
EC.prototype.moveAction=function(W,B){if(!this.tabsElement){var z;this.tabsElement=(z=this.parent.header)==null?void 0:z.tabsElement;B==="right"&&this.previousTab?_.B$R(_.LI.instance,this.previousTab.endpoint,{},""):B==="left"&&this.nextTab&&_.B$R(_.LI.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}z=this.tabsElement._pos;B==="right"&&(W*=-1);this.tabsElement._positionBar(z.width,z.left*1+z.width*W)};
var MzK=function(){var W,B;return(B=(W=_.dO().resolve(_.ij).getCurrentPage())==null?void 0:W.clientWidth)!=null?B:0};
EC.prototype.navigate=function(W){this.element.data=void 0;if(W=W==null?void 0:W.endpoint)this.ytdReduxDispatch(Cmf(!0)),_.aK(_.SK(),{visualElement:Ut1}),_.IB.instance.resolveCommand({navigateAction:{endpoint:W}},{form:{element:this.element}})};var ami;var R9O;var TK=function(){return _.S.apply(this,arguments)||this};
_.C(TK,_.S);TK.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],TK.prototype,"data",void 0);_.Q([_.u({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],TK);
_.D(TK,"ytd-labs-edit-renderer",function(){if(R9O!==void 0)return R9O;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return R9O=W},{mode:1});var Wci;var vK=function(){var W=_.S.apply(this,arguments)||this;W.dark=!1;W.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";W.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.C(vK,_.S);vK.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
vK.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.setBackgroundImage(W);this.dark=W};
vK.prototype.onDarkModeToggledAction=function(W){this.setBackgroundImage(W);this.dark=W};
vK.prototype.setBackgroundImage=function(W){_.kw(this.hostElement,{"--yt-labs-header-background":"url("+(W?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],vK.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],vK.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],vK.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],vK.prototype,"dark",void 0);
_.Q([_.u({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],vK);
_.D(vK,"ytd-labs-header-renderer",function(){if(Wci!==void 0)return Wci;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Wci=W},{mode:1});var Bmr;var cK=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return W};
_.C(cK,_.S);cK.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"}}}}}};
cK.prototype.onYtToggleButton=function(W){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",W.detail.toggled)};
cK.prototype.onManageLabsState=function(W){if(W=_.k(W,Xur))W.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?W.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&W.labsItemId===this.data.labsItemId&&(W.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.c0(this.hostElement,"yt-check-labs-opted-in-state").some(function(B){return B})&&this.data.confirmationDialogCommand?_.Jr(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.dO().resolve(_.p4).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&W.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.dO().resolve(_.p4).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
cK.prototype.onCheckLabsOptedInState=function(){var W=this.get("data.primaryButton.toggleButtonRenderer");return W?W.isToggled:!1};
_.G5.Object.defineProperties(cK.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
cK.prototype.onYtToggleButton=cK.prototype.onYtToggleButton;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],cK.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],cK.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],cK.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],cK.prototype,"itemStyle",null);_.Q([_.IN("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],cK.prototype,"onYtToggleButton",null);_.Q([_.u({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],cK);
_.D(cK,"ytd-labs-item-renderer",function(){if(Bmr!==void 0)return Bmr;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Bmr=W},{mode:1});var z0f;var G0r;var wz=function(){return _.S.apply(this,arguments)||this};
_.C(wz,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],wz.prototype,"data",void 0);_.Q([_.u({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],wz);
_.D(wz,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(G0r!==void 0)return G0r;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return G0r=W},{mode:1});var YNn;var Vj=function(){return _.S.apply(this,arguments)||this};
_.C(Vj,_.S);Vj.prototype.observeSuperchatChip=function(){if(this.data){var W={"--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)};_.kw(this.hostElement,W)}};
Vj.prototype.colorFromDecimal=function(W){return _.aE(Number(W||0))};
Vj.prototype.observeSuperchatChip=Vj.prototype.observeSuperchatChip;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Vj.prototype,"data",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vj.prototype,"observeSuperchatChip",null);_.Q([_.u({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Vj);
_.D(Vj,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(YNn!==void 0)return YNn;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return YNn=W},{mode:1});var Jp=function(){return _.S.apply(this,arguments)||this};
_.C(Jp,_.S);Jp.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"}}}};
_.G5.Object.defineProperties(Jp.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Jp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.c$),_.y("design:type",Object)],Jp.prototype,"ytdDismissibleItemBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Jp.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Jp.prototype,"hideMessageBlock",null);
_.Q([_.u({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Jp);
_.D(Jp,"ytd-live-chat-history-entry-renderer",function(){if(z0f!==void 0)return z0f;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return z0f=W},{mode:1});var dqO;var pPr=function(){return _.S.apply(this,arguments)||this};
_.C(pPr,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],pPr.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],pPr.prototype,"data",void 0);_.Q([_.u({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],pPr);
_.D(pPr,"ytd-channel-options-renderer",function(){if(dqO!==void 0)return dqO;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dqO=W},{mode:1});var AJK;var gz=function(){return _.S.apply(this,arguments)||this};
_.C(gz,_.S);gz.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],gz.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],gz.prototype,"data",void 0);_.Q([_.u({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],gz);
_.D(gz,"ytd-settings-email-item-renderer",function(){if(AJK!==void 0)return AJK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return AJK=W},{mode:1});var iCi;var tp=function(){return _.S.apply(this,arguments)||this};
_.C(tp,_.S);tp.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"}}}};
tp.prototype.getExpansionIcon=function(W){return W?"COLLAPSE":"EXPAND"};
tp.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.G5.Object.defineProperties(tp.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],tp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],tp.prototype,"data",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],tp.prototype,"expanded",void 0);_.Q([_.H("expanded"),_.y("design:type",String),_.y("design:paramtypes",[])],tp.prototype,"emailListExpanded",null);
_.Q([_.Hf("#options"),_.y("design:type",Object)],tp.prototype,"options",void 0);_.Q([_.u({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],tp);
_.D(tp,"ytd-settings-email-list-renderer",function(){if(iCi!==void 0)return iCi;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return iCi=W},{mode:1});var E9q;var sC=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return W};
_.C(sC,_.S);sC.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"}}}};
sC.prototype.handleSignalActionSubmitForm=function(){var W,B=(W=this.formRenderer)==null?void 0:W.getForm();B&&this.data.serviceEndpoint&&_.dO().resolve(_.p4).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},B,{element:this.hostElement})})};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],sC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],sC.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],sC.prototype,"data",void 0);_.Q([_.Hf("yt-form-renderer"),_.y("design:type",Object)],sC.prototype,"formRenderer",void 0);
_.Q([_.u({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],sC);
_.D(sC,"ytd-settings-gaia-link-renderer",function(){if(E9q!==void 0)return E9q;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return E9q=W},{mode:1});var Tmi;var PK=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return W};
_.C(PK,_.S);PK.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.bx0()&&this.set("data.hidden",!1)};
PK.prototype.onSwitchReady=function(){var W=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.r("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.Sw6().then(function(B){B&&(Notification.permission==="default"?W.set("data.hidden",!1):Notification.permission==="granted"&&_.xf("NotificationsDisabled").then(function(z){z||_.c0(W.hostElement,"yt-toggle-settings-switch",[W.data.id,!z]);W.set("data.hidden",!1)}).catch(function(){}))})})};
PK.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}}}}};
PK.prototype.handleUpdateOptionsCommand=function(W){(W=_.k(W,_.eAQ))&&this.data&&this.data.id===W.id&&(this.set("data.hidden",W.hidden),W.text!==void 0&&this.set("data.text",W.text),W.clearOptions&&this.set("data.options",[]))};
PK.prototype.onSwitchReady=PK.prototype.onSwitchReady;PK.prototype.dataChanged=PK.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],PK.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],PK.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],PK.prototype,"data",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PK.prototype,"dataChanged",null);_.Q([_.IN("yt-settings-switch-ready"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PK.prototype,"onSwitchReady",null);_.Q([_.u({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],PK);
_.D(PK,"ytd-settings-options-renderer",function(){if(Tmi!==void 0)return Tmi;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Tmi=W},{mode:1});var v9Y;var Zl=function(){return _.S.apply(this,arguments)||this};
_.C(Zl,_.S);Zl.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Zl.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Zl.prototype.onYtExpanderMoreTapped=Zl.prototype.onYtExpanderMoreTapped;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Zl.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Zl.prototype,"data",void 0);
_.Q([_.IN("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zl.prototype,"onYtExpanderMoreTapped",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Zl);
_.D(Zl,"ytd-product-details-description-renderer",function(){if(v9Y!==void 0)return v9Y;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return v9Y=W},{mode:1});var cJn;var rz=function(){var W=_.S.apply(this,arguments)||this;W.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";W.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";W.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";W.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return W};
_.C(rz,_.S);rz.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G5.Object.defineProperties(rz.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?void 0:(B=W.offerData)==null?void 0:B.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?void 0:W.purchaseButtonRenderers)!==void 0&&((B=this.data)==null?void 0:B.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var W,B;return!((W=this.data)==null||!W.formattedFromMerchantText)&&(!((B=this.data)==null||!B.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],rz.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],rz.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],rz.prototype,"data",void 0);
_.Q([_.F({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.y("design:type",Object)],rz.prototype,"shippingIcon",void 0);_.Q([_.F({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.y("design:type",Object)],rz.prototype,"shippingAddressIcon",void 0);_.Q([_.F({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.y("design:type",Object)],rz.prototype,"googleGuaranteeIcon",void 0);
_.Q([_.F({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.y("design:type",Object)],rz.prototype,"returnPolicyIcon",void 0);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rz.prototype,"showAdditionalFees",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rz.prototype,"showMultiPurchaseButtons",null);
_.Q([_.H("data","showMultiPurchaseButtons"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rz.prototype,"showPurchaseData",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],rz);
_.D(rz,"ytd-product-details-hero-offer-renderer",function(){if(cJn!==void 0)return cJn;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return cJn=W},{mode:1});var wPi;var VPf;var kd=function(){return _.S.apply(this,arguments)||this};
_.C(kd,_.S);_.p=kd.prototype;_.p.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.p.onKeyDown=function(W){W=W.keyCode;W!==13&&W!==32||this.handleSelection()};
_.p.onMouseEnterImage=function(){var W;((W=this.data)==null?void 0:W.thumbnailDetails)!==void 0&&_.wV(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.p.onMouseLeaveImage=function(){_.wV(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.p.handleSelection=function(){this.data&&_.v0(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.G5.Object.defineProperties(kd.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isSelected)}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],kd.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],kd.prototype,"isSelected",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],kd);
_.D(kd,"ytd-product-details-thumbnail-renderer",function(){if(VPf!==void 0)return VPf;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return VPf=W},{mode:1});var l6=function(){var W=_.S.apply(this,arguments)||this;var B={};W.actionMap=(B["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",B["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",B);W.selectedThumbnailIndex=0;W.selectItem=function(z){z.target.onKeyDown(z)};
return W};
_.C(l6,_.S);_.p=l6.prototype;_.p.handlePreviewImageSelect=function(W){this.hoverThumbnail=W};
_.p.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.p.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.p.onThumbnailSelected=function(W,B){this.selectedThumbnailIndex=B};
_.p.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.p.updateOffset=function(){var W=_.tH(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-W));this.ytdHorizontalListBehavior.reposition_()};
_.G5.Object.defineProperties(l6.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.imageRenderer){var B,z;return((B=this.data)==null?void 0:(z=B.imageRenderer)==null?void 0:z.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var W;if((W=this.data)==null?0:W.imageRenderer){var B;return(B=_.k(this.data.imageRenderer[this.selectedThumbnailIndex],uj9))==null?void 0:B.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var W=this,B,z,G,Y=(G=(B=this.data)==null?void 0:(z=B.imageRenderer)==null?void 0:z.map(function(d,E){return{productDetailsThumbnailRenderer:Object.assign({},_.k(d,uj9),{index:E,isSelected:E===W.selectedThumbnailIndex})}}))!=null?G:[];
return Object.assign({},this.data,{imageRenderer:Y})}}});
l6.prototype.updateOffset=l6.prototype.updateOffset;l6.prototype.dataChanged=l6.prototype.dataChanged;l6.prototype.onThumbnailSelected=l6.prototype.onThumbnailSelected;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],l6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.jv.YtdHorizontalListBehavior),_.y("design:type",Object)],l6.prototype,"ytdHorizontalListBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],l6.prototype,"componentBehavior",void 0);_.Q([_.h([_.ye.YtActionHandlerBehavior]),_.y("design:type",Object)],l6.prototype,"actionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],l6.prototype,"data",void 0);_.Q([_.F({value:"$.items.children"}),_.y("design:type",String)],l6.prototype,"itemsPath",void 0);_.Q([_.F({value:3}),_.y("design:type",Number)],l6.prototype,"initialCount",void 0);
_.Q([_.Hf("#items"),_.y("design:type",Object)],l6.prototype,"items",void 0);_.Q([_.F(),_.y("design:type",Object)],l6.prototype,"selectedThumbnailIndex",void 0);_.Q([_.F(),_.y("design:type",Object)],l6.prototype,"hoverThumbnail",void 0);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],l6.prototype,"showThumbnails",null);
_.Q([_.IN("ytd-product-details-thumbnail-renderer-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Number]),_.y("design:returntype")],l6.prototype,"onThumbnailSelected",null);_.Q([_.H("data","selectedThumbnailIndex","hoverThumbnail"),_.y("design:type",Object),_.y("design:paramtypes",[])],l6.prototype,"thumbnailDetails",null);_.Q([_.H("data","selectedThumbnailIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],l6.prototype,"populatedData",null);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l6.prototype,"dataChanged",null);_.Q([_.IN("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l6.prototype,"updateOffset",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],l6);
_.D(l6,"ytd-product-details-image-carousel-renderer",function(){if(wPi!==void 0)return wPi;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return wPi=W},{mode:_.PJ("kevlar_poly_si_batch_j079")?1:2});var JJi;var Cv=function(){return _.S.apply(this,arguments)||this};
_.C(Cv,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Cv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Cv.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Cv.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Cv);
_.D(Cv,"ytd-product-details-offer-renderer",function(){if(JJi!==void 0)return JJi;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return JJi=W},{mode:1});var g9K;var I7=function(){var W=_.S.apply(this,arguments)||this;W.isOffersHidden=!0;return W};
_.C(I7,_.S);I7.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var W,B=_.k((W=this.data)==null?void 0:W.viewOffersButton,_.Ep);B&&this.ytRendererBehavior.logExplicitClick(B)};
I7.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.G5.Object.defineProperties(I7.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G;return(z=_.k((W=this.data)==null?void 0:(B=W.offers)==null?void 0:B[0],Dtj))==null?void 0:(G=z.offerData)==null?void 0:G.vendorLogoUrl}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],I7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],I7.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],I7.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],I7.prototype,"isOffersHidden",void 0);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],I7.prototype,"firstOfferVendorLogoUrl",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],I7);
_.D(I7,"ytd-product-details-offers-container-renderer",function(){if(g9K!==void 0)return g9K;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return g9K=W},{mode:1});var tPf;var sm9;var o7=function(){return _.S.apply(this,arguments)||this};
_.C(o7,_.S);o7.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
o7.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.wV(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
o7.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.wV(this,"ytd-product-details-variant-image-unselect")};
_.G5.Object.defineProperties(o7.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 W;return((W=this.data)==null?void 0:W.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return((W=this.data)==null?void 0:W.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((B=this.data)==null?void 0:B.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((z=this.data)==null?void 0:z.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var W;if(((W=this.data)==null?void 0:W.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var W,B;return this.isUnavailable?(W=this.data)==null?void 0:W.variantOptionUnavailableAccessibilityLabel:(B=this.data)==null?void 0:B.variantOptionAccessibilityLabel}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],o7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],o7.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],o7.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],o7.prototype,"displayType",void 0);
_.Q([_.H("displayType","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],o7.prototype,"isImageButton",null);_.Q([_.H("displayType","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],o7.prototype,"isPillButton",null);_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],o7.prototype,"isActive",null);
_.Q([_.H("data"),_.F({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],o7.prototype,"isUnavailable",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],o7.prototype,"thumbnailDetails",null);_.Q([_.H("isUnavailable","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],o7.prototype,"accessibilityLabel",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],o7);
_.D(o7,"ytd-product-details-variant-option-renderer",function(){if(sm9!==void 0)return sm9;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return sm9=W},{mode:1});var P59;var hp=function(){var W=_.S.apply(this,arguments)||this;W.variantsExpanded=!1;W.hideShowMoreLessVariantButton=!0;W.initialized=!1;W.computeVariantsDebouncer=null;W.computeVariants=function(B){B=B===void 0?!1:B;W.variantsExpanded||W.showOptions()||!B||(W.variantsExpanded=!0);if(W.variantsExpanded){B=_.A(W.items.children);for(var z=B.next();!z.done;z=B.next())z.value.hidden=!1}W.initialized=!0};
return W};
_.C(hp,_.S);_.p=hp.prototype;_.p.ready=function(){var W=this;setTimeout(function(){W.computeVariants(!0)})};
_.p.showOptions=function(){for(var W=_.A(this.items.children),B=W.next();!B.done;B=W.next())B.value.hidden=!0;var z=this.container.getBoundingClientRect().width,G=0,Y=W=0;B=!1;for(var d=_.A(this.items.children),E=d.next();!E.done;E=d.next()){E=E.value;E.hidden=!1;var v=E.getBoundingClientRect().width;if(G+v<z)G+=v;else if(++Y<2)G=v;else break;W+=1;E.hasAttribute("is-active")&&(B=!0)}for(z=W;z<this.items.children.length;z++)this.items.children[z].hidden=!0;this.hideShowMoreLessVariantButton=W===this.items.children.length;
return B};
_.p.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.hf(this.computeVariantsDebouncer,_.Jf.after(100),this.computeVariants)};
_.p.onShowMoreLessVariantsButtonClick=function(){var W;(W=this.data)!=null&&W.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.p.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.G5.Object.defineProperties(hp.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var W,B,z=(W=this.data)==null?void 0:(B=W.variantOptionRenderers)==null?void 0:B.find(function(d){return _.k(d,mt9).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),G,Y;
return(Y=(G=_.k(z,mt9))==null?void 0:G.name)!=null?Y:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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"}}}});
hp.prototype.debouncedComputeVariants=hp.prototype.debouncedComputeVariants;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],hp.prototype,"componentBehavior",void 0);_.Q([_.h(_.Mp),_.y("design:type",Object)],hp.prototype,"ironResizableBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],hp.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],hp.prototype,"variantsExpanded",void 0);_.Q([_.F(),_.y("design:type",Object)],hp.prototype,"hideShowMoreLessVariantButton",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],hp.prototype,"initialized",void 0);_.Q([_.Hf("#items"),_.y("design:type",HTMLDivElement)],hp.prototype,"items",void 0);_.Q([_.Hf("#container"),_.y("design:type",HTMLDivElement)],hp.prototype,"container",void 0);
_.Q([_.Hf("#more-variants-button"),_.y("design:type",HTMLElement)],hp.prototype,"moreVariantsButton",void 0);_.Q([_.H("data"),_.y("design:type",String),_.y("design:paramtypes",[])],hp.prototype,"selectedOptionName",null);_.Q([_.oN("data","variantsExpanded"),_.IN("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hp.prototype,"debouncedComputeVariants",null);
_.Q([_.H("data"),_.y("design:type",String),_.y("design:paramtypes",[])],hp.prototype,"displayType",null);_.Q([_.H("displayType"),_.y("design:type",Object),_.y("design:paramtypes",[])],hp.prototype,"variantItemsClassname",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],hp);
_.D(hp,"ytd-product-details-variant-renderer",function(){if(P59!==void 0)return P59;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return P59=W},{mode:1});var HK=function(){return _.S.apply(this,arguments)||this};
_.C(HK,_.S);
HK.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"}}}};
_.G5.Object.defineProperties(HK.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var W,B,z=(B=_.k((W=this.data)==null?void 0:W.offersContainerRenderer,xt1))==null?void 0:B.offers;return z!==void 0&&(z==null?void 0:z.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 W,B,z;return((z=(W=this.data)==null?void 0:(B=W.variants)==null?void 0:B.map(function(G){var Y,d;G=(d=(Y=_.k(G,e9O))==null?void 0:Y.variantOptionRenderers)==null?void 0:d.find(function(v){var c;return((c=_.k(v,mt9))==null?void 0:c.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var E;return(E=_.k(G,mt9))==null?void 0:E.name}).filter(function(G){return typeof G==="string"}))!=null?z:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var W,B,z,G=(B=_.k((W=this.data)==null?void 0:W.shoppingFlaggingRenderer,Qyf))==null?void 0:(z=B.reportButton)==null?void 0:z.buttonRenderer;if(G)return{text:G.text,command:G.command,icon:{iconType:"FLAG"},accessibilityData:G.accessibilityData,trackingParams:G.trackingParams,loggingDirectives:G.loggingDirectives}}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],HK.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],HK.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],HK.prototype,"data",void 0);_.Q([_.Hf("#image-carousel-renderer"),_.y("design:type",Object)],HK.prototype,"imageCarouselRenderer",void 0);
_.Q([_.Hf("#hero-offer-renderer"),_.y("design:type",Object)],HK.prototype,"productDetailsHeroOfferRenderer",void 0);_.Q([_.Hf("#variants"),_.y("design:type",Object)],HK.prototype,"productDetailsVariantRenderer",void 0);_.Q([_.Hf("#offers"),_.y("design:type",Object)],HK.prototype,"productDetailsOffersContainerRenderer",void 0);_.Q([_.Hf("#description-renderer"),_.y("design:type",Object)],HK.prototype,"productDetailsDescriptionRenderer",void 0);
_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],HK.prototype,"showPurchaseData",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],HK.prototype,"showHeroOfferRenderer",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],HK.prototype,"showBrandText",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],HK.prototype,"showOffers",null);
_.Q([_.H("showOffers","showPurchaseData"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],HK.prototype,"showBuySeparator",null);_.Q([_.H("showOffers","showPurchaseData"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],HK.prototype,"showBuyCard",null);_.Q([_.H("data"),_.y("design:type",String),_.y("design:paramtypes",[])],HK.prototype,"selectedVariantsText",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],HK.prototype,"shoppingReportingButtonData",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],HK);
_.D(HK,"ytd-product-details-renderer",function(){if(tPf!==void 0)return tPf;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tPf=W},{mode:1});var ZCb;var rJq;var k0r;var Fx=function(){return _.S.apply(this,arguments)||this};
_.C(Fx,_.S);Fx.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.G5.Object.defineProperties(Fx.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Fx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Fx.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],Fx.prototype,"formattedAmount",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Fx.prototype,"ariaLabel",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.style"),_.y("design:type",String),_.y("design:paramtypes",[])],Fx.prototype,"vcBalanceWidgetStyle",null);_.Q([_.NJ({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Fx);
_.D(Fx,"yt-vc-balance-renderer",function(){if(k0r===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;rJq===void 0&&(rJq=document.createElement("template"));var G=rJq;z.call(B,G.content.cloneNode(!0),W.content.firstChild);k0r=W}W=k0r;return W},{mode:2});_.eX("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Sn=function(){return _.S.apply(this,arguments)||this};
_.C(Sn,_.S);_.G5.Object.defineProperties(Sn.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:""}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Sn.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Sn.prototype,"data",void 0);_.Q([_.F({selectorArgs:["data.vcBalanceEntityKey"],selector:function(W,B){return _.P3(W.entities,"vcBalanceEntity",B)}}),
_.y("design:type",Object)],Sn.prototype,"vcBalanceEntity",void 0);_.Q([_.H("vcBalanceEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],Sn.prototype,"formattedAmount",null);_.Q([_.H("vcBalanceEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],Sn.prototype,"vcBalanceAriaLabel",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Sn);
_.D(Sn,"ytd-vc-balance-renderer",function(){if(ZCb!==void 0)return ZCb;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ZCb=W},{mode:1});var lO1;var b6=function(){var W=_.S.apply(this,arguments)||this;W.rotation=0;W.isReloading=!1;return W};
_.C(b6,_.S);b6.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
b6.prototype.reset=function(){this.hostElement.style.opacity=""};
b6.prototype.close=function(){var W=this;return _.T(function(B){if(B.nextAddress==1)return B.yield(W.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.hostElement.style.opacity="0";_.HG(B)})};
b6.prototype.rotationChanged=b6.prototype.rotationChanged;_.Q([_.F(),_.y("design:type",Object)],b6.prototype,"rotation",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],b6.prototype,"isReloading",void 0);_.Q([_.Hf("#icon"),_.y("design:type",HTMLElement)],b6.prototype,"icon",void 0);_.Q([_.oN("rotation"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b6.prototype,"rotationChanged",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-refresh"})],b6);
_.D(b6,"ytd-refresh",function(){if(lO1!==void 0)return lO1;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return lO1=W},{mode:1});var C5i;var jn=function(){return _.S.apply(this,arguments)||this};
_.C(jn,_.S);jn.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"}}}};
jn.prototype.dataChanged=function(){if(this.data){var W=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var B=_.JY(this.data.banner.thumbnails,this.hostElement.clientWidth);B&&(B.indexOf("//")===0&&(B="https:"+B),this.hasBannerArt=!0,_.kw(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+B+")"}))}this.hasBannerArt!==W&&_.tH(this.hostElement).querySelector("#header").fire("iron-resize")}};
jn.prototype.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
jn.prototype.dataChanged=jn.prototype.dataChanged;_.Q([_.h(nKf),_.y("design:type",Object)],jn.prototype,"ytdTabbedHeaderBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.VO),_.y("design:type",Object)],jn.prototype,"ytdGridStateAwareBehavior",void 0);_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],jn.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],jn.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],jn.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Number)],jn.prototype,"selected",void 0);_.Q([_.F(),_.y("design:type",Boolean)],jn.prototype,"active",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],jn.prototype,"hasBannerArt",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jn.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],jn);
_.D(jn,"ytd-interactive-tabbed-header-renderer",function(){if(C5i!==void 0)return C5i;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return C5i=W},{mode:1});var IOb;var fv=function(){return _.S.apply(this,arguments)||this};
_.C(fv,_.S);fv.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
fv.prototype.computeActionsAlignment=function(W){return(W==null?void 0:W.actionsAlignment)||""};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],fv.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.y("design:type",String)],fv.prototype,"actionsAlignment",void 0);_.Q([_.u({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],fv);
_.D(fv,"ytd-page-footer-renderer",function(){if(IOb!==void 0)return IOb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return IOb=W},{mode:1});var o9r;var h0n;var OC=function(){var W=_.S.apply(this,arguments)||this;W.isEditing=!1;W.useSlot=!1;W.isMultiline=!1;return W};
_.C(OC,_.S);_.p=OC.prototype;_.p.onKeydown=function(W){if(W.keyCode===13&&!this.isMultiline)this.onSave();else if(W.keyCode===27)this.onCancel()};
_.p.computeComponentStyle=function(W){return(W==null?0:W.style)?W.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.p.computeisMultiline=function(W){if(this.multilineOverride!==void 0)return this.multilineOverride;var B,z;return!!(W==null?0:(B=W.formField)==null?0:(z=B.textInputFormFieldRenderer)==null?0:z.isMultiline)};
_.p.computeTextDisplayed=function(W,B){if(W)return W;if(B)return B};
_.p.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.p.onSave=function(){if(this.textForm.validate()){this.textForm.save();var W=this.textForm.value;if(W)this.set("data.textDisplayed",_.Bg(W));else{var B;((B=this.data)==null?0:B.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.ZV("inline-form-changed",this.data));this.isEditing=!1}};
_.p.onCancel=function(){var W=_.zR(this.data.textDisplayed);W===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(W);this.isEditing=!1};
OC.prototype.onKeydown=OC.prototype.onKeydown;_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],OC.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],OC.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],OC.prototype,"isEditing",void 0);_.Q([_.F(),_.y("design:type",Object)],OC.prototype,"useSlot",void 0);_.Q([_.F(),_.y("design:type",Boolean)],OC.prototype,"multilineOverride",void 0);_.Q([_.F(),_.y("design:type",Boolean)],OC.prototype,"enableOverlayTheme",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.y("design:type",String)],OC.prototype,"componentStyle",void 0);
_.Q([_.F({computed:"computeisMultiline(data)"}),_.y("design:type",Object)],OC.prototype,"isMultiline",void 0);_.Q([_.Hf("#text-form"),_.y("design:type",Object)],OC.prototype,"textForm",void 0);_.Q([_.IN("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],OC.prototype,"onKeydown",null);_.Q([_.u({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],OC);
_.D(OC,"ytd-inline-form-renderer",function(){if(h0n!==void 0)return h0n;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return h0n=W},{mode:1});var HCY;var Xx=function(){var W=_.S.apply(this,arguments)||this;W.previousSelectValue=void 0;W.selectedItemMessage=void 0;return W};
_.C(Xx,_.S);Xx.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Xx.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var W,B,z,G,Y=(W=this.data)==null?void 0:(B=W.dropdown)==null?void 0:(z=B.dropdownRenderer)==null?void 0:(G=z.entries)==null?void 0:G.map(function(v){return v.privacyDropdownItemRenderer});
W=_.A(Y!=null?Y:[]);for(B=W.next();!B.done;B=W.next())if((B=B.value)&&B.int32Value===this.selectedValue){this.selectedItemMessage=B.itemMessage;break}}else this.selectedItemMessage=void 0;var d;(d=this.onValueChanged)==null||d.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var E;(E=this.data)!=null&&E.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Xx.prototype.onValueChangedForSelectedValue=function(W){this.selectedValue=W.detail.value};
Xx.prototype.selectedValueChanged=Xx.prototype.selectedValueChanged;_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],Xx.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Xx.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Xx.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],Xx.prototype,"theme",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Number)],Xx.prototype,"selectedValue",void 0);_.Q([_.F(),_.y("design:type",Function)],Xx.prototype,"onValueChanged",void 0);
_.Q([_.jJ("selectedValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xx.prototype,"selectedValueChanged",null);_.Q([_.u({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Xx);
_.D(Xx,"ytd-dropdown-form-field-renderer",function(){if(HCY!==void 0)return HCY;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return HCY=W},{mode:_.PJ("kevlar_poly_si_batch_j025")?1:2});var Fcq;var Kv=function(){return _.S.apply(this,arguments)||this};
_.C(Kv,_.S);_.G5.Object.defineProperties(Kv.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var W=[],B=_.A(this.data||[]),z=B.next();!z.done;z=B.next())(z=_.k(z.value,yFn))&&W.push(z);return W}}});
_.Q([_.F(),_.y("design:type",Array)],Kv.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Kv.prototype,"byline",null);_.Q([_.u({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Kv);
_.D(Kv,"ytd-playlist-byline-renderer",function(){if(Fcq!==void 0)return Fcq;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Fcq=W},{mode:1});var SN9;var u6=function(){var W=_.S.apply(this,arguments)||this;W.rtlBullet=_.r("web_playlist_stats_rtl_bullet_icon_killswitch");W.modern=_.r("web_modern_buttons");W.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return W};
_.C(u6,_.S);_.p=u6.prototype;_.p.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"}}}}};
_.p.attached=function(){};
_.p.computeIsCustomThumbnail=function(W){return W?!!W.playlistCustomThumbnailRenderer:!1};
_.p.onYtNavigate=function(W,B){if(B&&B.actions&&B.actions.indexOf("shuffle")>-1){W=_.dO().resolve(_.wW);var z=B.tempData||{};z.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);B.tempData=z;W.isShuffleNextPlaylist=!0}};
_.p.onUpdatePlaylistAction=function(W){var B;W=(B=_.k(W,_.Vr4))==null?void 0:B.updatedRenderer;if(B=_.k(W,Ap))this.data=B};
_.p.computeStyleType=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.p.computeThumbnailWidth=function(W){return W==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.p.computeHideThumbnailAria=function(W){if(W==null?0:W.thumbnailOverlays)for(var B=0;B<W.thumbnailOverlays.length;B++){var z=void 0;if((z=W.thumbnailOverlays[B])==null?0:z.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
u6.prototype.onYtNavigate=u6.prototype.onYtNavigate;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],u6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],u6.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],u6.prototype,"ytComponentBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],u6.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],u6.prototype,"rtlBullet",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.y("design:type",String)],u6.prototype,"styleType",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.y("design:type",Number)],u6.prototype,"thumbnailWidth",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],u6.prototype,"modern",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.y("design:type",Boolean)],u6.prototype,"isCustomThumbnail",void 0);_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[Event,Object]),_.y("design:returntype")],u6.prototype,"onYtNavigate",null);_.Q([_.u({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],u6);
_.D(u6,"ytd-playlist-sidebar-primary-info-renderer",function(){if(SN9!==void 0)return SN9;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return SN9=W},{mode:1});var bCf;var en=function(){return _.S.apply(this,arguments)||this};
_.C(en,_.S);en.prototype.computeOwnerVisibility=function(W){return!(!W.videoOwner&&!W.button)};
en.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"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],en.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],en.prototype,"data",void 0);_.Q([_.u({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],en);
_.D(en,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(bCf!==void 0)return bCf;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return bCf=W},{mode:1});var jm6;var mo=function(){var W=_.S.apply(this,arguments)||this;W.expanded=!1;W.isCompact=!1;return W};
_.C(mo,_.S);_.p=mo.prototype;_.p.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.p.dataChanged=function(){this.data&&_.A6(_.tH(this.text),_.qFT(_.$T6,_.zR(this.data.text||null)))};
_.p.computeAutoScrollEnabled=function(W,B){return W&&!B};
_.p.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.p.toggleOnTap=function(){this.expanded=!this.expanded};
mo.prototype.expandedChanged=mo.prototype.expandedChanged;mo.prototype.dataChanged=mo.prototype.dataChanged;_.Q([_.h(_.Iw9),_.y("design:type",Object)],mo.prototype,"ytdAutoScrollBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],mo.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],mo.prototype,"expanded",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],mo.prototype,"isCompact",void 0);_.Q([_.F({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.y("design:type",Boolean)],mo.prototype,"autoScrollEnabled",void 0);_.Q([_.Hf("#text"),_.y("design:type",Object)],mo.prototype,"text",void 0);_.Q([_.Hf("#expander-icon"),_.y("design:type",Object)],mo.prototype,"expanderIcon",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mo.prototype,"dataChanged",null);_.Q([_.oN("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mo.prototype,"expandedChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],mo);
_.D(mo,"ytd-channel-legal-info-renderer",function(){if(jm6!==void 0)return jm6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return jm6=W},{mode:1});var fOY;var OC1=_.kq("DOWNLOAD",{},"Download"),XPK=_.kq("DOWNLOADING",{},"Downloading"),Kc6=_.kq("DOWNLOADED",{},"Downloaded"),xd=function(){var W=_.S.apply(this,arguments)||this;W.downloadProgress=0;W.isDownloadComplete=!1;W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.C(xd,_.S);_.p=xd.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.dataChanged=function(){var W;(W=this.data)!=null&&W.tooltip||(W=_.qM(_.Y_().getState(),this.playlistId),this.updateButtonState(W))};
_.p.computePlaylistId=function(W){return W};
_.p.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.p.updateButtonState=function(W){if(this.data&&(this.data.tooltip!==XPK||!_.H3(W))){this.isDownloadComplete=!1;switch(W){case "TRANSFER_STATE_UNKNOWN":W=OC1;var B="OFFLINE_DOWNLOAD";var z="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":W=Kc6;B="OFFLINE_PIN";z="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":W=XPK;B="OFFLINE_DOWNLOADING_ZERO";z="ACTION_REMOVE_WITH_PROMPT";
break;default:W=OC1,B="OFFLINE_DOWNLOAD",z="ACTION_ADD"}var G=Object.assign({},this.data);G.tooltip=W;G.accessibilityData={accessibilityData:{label:W}};G.icon={iconType:B};G.size="SIZE_DEFAULT";_.k(G.command,_.In)&&(_.k(G.command,_.In).action=z);this.set("data",G)}};
_.p.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var W="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?W="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?W="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?W="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?W="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?W="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(W="OFFLINE_PIN",this.isDownloadComplete=!0);var B;W!==((B=this.data.icon)==null?void 0:B.iconType)&&(B=Object.assign({},this.data),B.tooltip=XPK,B.accessibilityData={accessibilityData:{label:XPK}},B.icon={iconType:W},_.k(B.command,_.In)&&(_.k(B.command,_.In).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",B))}};
xd.prototype.updateProgress=xd.prototype.updateProgress;xd.prototype.onTransferStateChanged=xd.prototype.onTransferStateChanged;xd.prototype.dataChanged=xd.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],xd.prototype,"ytdReduxBehavior",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],xd.prototype,"forceIconButton",void 0);
_.Q([_.F({value:!0}),_.y("design:type",Boolean)],xd.prototype,"forceIconOnly",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],xd.prototype,"overrides",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],xd.prototype,"buttonTooltipPosition",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],xd.prototype,"styleActionButton",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],xd.prototype,"disableTextTransform",void 0);
_.Q([_.F({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.y("design:type",String)],xd.prototype,"playlistId",void 0);_.Q([_.F(),_.y("design:type",Object)],xd.prototype,"data",void 0);_.Q([_.F({selector:_.sqQ,selectorArgs:["playlistId"]}),_.y("design:type",Object)],xd.prototype,"downloadProgress",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],xd.prototype,"isDownloadComplete",void 0);
_.Q([_.F({selector:_.qM,selectorArgs:["playlistId"]}),_.y("design:type",String)],xd.prototype,"transferState",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],xd.prototype,"showTooltips",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],xd.prototype,"sendCommandWhenDisabled",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],xd.prototype,"disabled",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xd.prototype,"dataChanged",null);_.Q([_.jJ("transferState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xd.prototype,"onTransferStateChanged",null);_.Q([_.jJ("downloadProgress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xd.prototype,"updateProgress",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],xd);
_.D(xd,"ytd-download-playlist-button-renderer",function(){if(fOY!==void 0)return fOY;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return fOY=W},{mode:1});var ulj;_.Vm(_.aQ4,"thumbnail-overlay-button-view-model",{props:{data:_.kz,lockupExperiments:_.kz}});var Dl=function(){var W=_.S.apply(this,arguments)||this;W.isSquare=!1;W.isVertical=!1;return W};
_.C(Dl,_.S);Dl.prototype.computeIsSquare=function(W){return W!=null&&W.thumbnail?syi(W.thumbnail)==="SQUARE":!1};
Dl.prototype.computeIsVertical=function(W){return W!=null&&W.thumbnail?syi(W.thumbnail)==="VERTICAL":!1};
Dl.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.y("design:type",Object)],Dl.prototype,"isSquare",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.y("design:type",Object)],Dl.prototype,"isVertical",void 0);
_.Q([_.F(),_.y("design:type",Object)],Dl.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],Dl);
_.D(Dl,"ytd-hero-playlist-thumbnail-renderer",function(){if(ulj!==void 0)return ulj;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ulj=W},{mode:1});var Qj=function(){var W=_.S.apply(this,arguments)||this;W.isDarkTheme=!1;W.isUltraWide=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return W};
_.C(Qj,_.S);_.p=Qj.prototype;_.p.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.dO();var W;(W=_.dO().resolve(_.Y8(_.uX)))!=null&&(W.headerElement=this.hostElement)};
_.p.detached=function(){var W;(W=_.dO().resolve(_.Y8(_.uX)))!=null&&(W.headerElement=void 0)};
_.p.onUpdateHeader=function(W){(W=W.detail)&&this.set("data",W)};
_.p.computeTextDisplayed=function(W){if(W)return W.textDisplayed?W.textDisplayed:W.placeholder};
_.p.gradientColorToLinearGradientStop=function(W){var B=this.isDarkTheme?W.darkThemeColor:W.lightThemeColor;return B?_.aE(B)+" "+((W==null?void 0:W.startLocation)||0)*100+"%":"transparent"};
_.p.onWindowResize=function(){var W;((W=this.data)==null?0:W.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.p.onIronResize=function(W){this.isUltraWide=!W.detail.value};
_.p.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.p.onUpdatePlaylistName=function(W){var B=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},W.detail.value));_.BM(this,function(){var z;(z=B.editableTitle)==null||z.resize()})};
_.p.onUpdatePlaylistDescription=function(W){var B=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},W.detail.value));_.BM(this,function(){var z;(z=B.editableDescriptionInlineExpander)==null||z.resize()})};
_.p.getCinematicData=function(W){return _.k(W==null?void 0:W.cinematicContainer,_.BK)};
_.G5.Object.defineProperties(Qj.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 W,B=(W=this.getCinematicData(this.data))==null?void 0:W.config;return(W=this.isDarkTheme?B==null?void 0:B.darkThemeBackgroundColor:B==null?void 0:B.lightThemeBackgroundColor)?"background-color:"+_.M_(W)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var W;return _.k((W=this.data)==null?void 0:W.descriptionForm,Kyi)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var W=this,B,z,G;return"background:linear-gradient(to bottom, "+(((G=(B=this.getCinematicData(this.data))==null?void 0:(z=B.gradientColorConfig)==null?void 0:z.map(function(Y){return W.gradientColorToLinearGradientStop(Y)}))==null?void 0:G.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var W;return _.zR((W=this.data)==null?void 0:W.descriptionTapText)}}});
Qj.prototype.onUpdateHeader=Qj.prototype.onUpdateHeader;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Qj.prototype,"actionHandlerBehavior",void 0);_.Q([_.Hf("#description-inline-expander"),_.y("design:type",Object)],Qj.prototype,"descriptionInlineExpander",void 0);
_.Q([_.Hf("#editable-description-inline-expander"),_.y("design:type",Object)],Qj.prototype,"editableDescriptionInlineExpander",void 0);_.Q([_.F(),_.y("design:type",Object)],Qj.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Qj.prototype,"isUltraWide",void 0);_.Q([_.Hf("#editable-title-display"),_.y("design:type",Object)],Qj.prototype,"editableTitle",void 0);_.Q([_.H("isUltraWide"),_.y("design:type",Object),_.y("design:paramtypes",[])],Qj.prototype,"maxDescriptionLines",null);
_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Qj.prototype,"noCinematicData",null);_.Q([_.IN("yt-new-playlist-header"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Qj.prototype,"onUpdateHeader",null);_.Q([_.H("data","isDarkTheme"),_.y("design:type",Object),_.y("design:paramtypes",[])],Qj.prototype,"backgroundStyle",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Qj.prototype,"descriptionFormData",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Qj.prototype,"getDropdownTheme",null);_.Q([_.H("data","isDarkTheme"),_.y("design:type",String),_.y("design:paramtypes",[])],Qj.prototype,"gradientStyle",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Qj.prototype,"descriptionTapText",null);
_.Q([_.u({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Qj);
_.D(Qj,"ytd-playlist-header-renderer",function(){if(o9r!==void 0)return o9r;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return o9r=W},{mode:_.PJ("kevlar_poly_si_batch_j078")?1:2});var e0j;var mqY;var yj=function(){return _.S.apply(this,arguments)||this};
_.C(yj,_.S);yj.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],yj.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],yj.prototype,"data",void 0);_.Q([_.u({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],yj);
_.D(yj,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(mqY!==void 0)return mqY;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return mqY=W},{mode:1});var q4=function(){return _.S.apply(this,arguments)||this};
_.C(q4,_.S);
q4.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}}}}};
q4.prototype.computeUsePremiumShowStyle=function(W){if(!W||!W.items)return!1;for(var B=0;B<W.items.length;B++)if(_.k(W.items[B],Ap)){var z=void 0;return((z=_.k(W.items[B],Ap))==null?void 0:z.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],q4.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],q4.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.y("design:type",Boolean)],q4.prototype,"usePremiumShowStyle",void 0);
_.Q([_.u({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],q4);
_.D(q4,"ytd-playlist-sidebar-renderer",function(){if(e0j!==void 0)return e0j;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return e0j=W},{mode:1});var xqK;var Dqj;var Qm1=function(W,B,z,G,Y,d,E,v){this.minWidth=W;this.minHeight=B;this.recommendedWidth=z;this.recommendedHeight=G;this.JSC$22159_maxFileSize=Y;this.title=d;this.bannerGalleryTitle=E;this.channelId=v;this.picker_=null;W=_.W5v("yt-banner");B=W.addView;z=(new oKf("youtubebanner")).addUploadMetadata("silo_id","19");z.opts.ytMaxFileSize=this.JSC$22159_maxFileSize;G=this.recommendedHeight;z.opts.ytRecWidth=this.recommendedWidth;z.opts.ytRecHeight=G;B.call(W,z);W.addView(new _.DU);B=W.addView;z=new _.DU;
z.opts.type="ytbanner";B.call(W,z.JSC$10074_setLabel(this.bannerGalleryTitle));B=W.setTitle(this.title).setSize(1E3);B.urlParamMap_.set("thumbs","orig");z=this.minWidth;G=this.minHeight;if(isNaN(z)||isNaN(G))throw Error("gb`"+z+"`"+G);B.urlParamMap_.set("minSize",z+"x"+G);B.urlParamMap_.set("cropMode","ytcb");this.builder_=W};
Qm1.prototype.open=function(){var W=this;return new _.Vx(function(B,z){_.jXu(W.builder_,function(G){G.action=="picked"?B(G):G.action=="cancel"&&z(Error("Co"))});
W.picker_&&W.picker_.dispose();W.picker_=W.builder_.build();W.picker_.setVisible(!0)})};
Qm1.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var yJ0=function(W){this.channelId=W};
yJ0.prototype.upload=function(W){var B="";W.viewToken&&(B=W.viewToken[2].type);var z=W.docs[0];W=z.crop;B={channel_id:this.channelId,fife_url:z.thumbnails[0].url,photo_id:z.id,is_gallery_image:B=="ytbanner"};W&&(B.crop_top=W.top,B.crop_right=W.right,B.crop_bottom=W.bottom,B.crop_left=W.left);return _.FXt("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:B})};var nv=function(){var W=_.S.apply(this,arguments)||this;W.ariaLabel=null;return W};
_.C(nv,_.S);_.p=nv.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.p.detached=function(){this.picker&&this.picker.dispose()};
_.p.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.p.computeAriaLabel=function(W){return W};
_.p.onTap=function(){var W=this,B;if((B=this.data)==null||!B.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new Qm1(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 z;(z=this.picker)==null||z.open().then(function(G){W.handleBannerPicked(G)},function(){})}};
_.p.handleBannerPicked=function(W){var B=this;this.uploader||(this.uploader=new yJ0(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(W).then(function(z){B.handleBannerUploadSucceeded(z)},function(z){B.handleBannerUploadFailed(z)})};
_.p.handleBannerUploadSucceeded=function(W){W&&W.errors?this.handleBannerUploadFailed(W):(_.v0(this.hostElement,"yt-banner-updated",W),this.message=null)};
_.p.handleBannerUploadFailed=function(W){this.message=W&&W.errors&&W.errors.length?W.errors[0]:null};
nv.prototype.dataChanged=nv.prototype.dataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],nv.prototype,"componentBehavior",void 0);_.Q([_.h(_.R9),_.y("design:type",Object)],nv.prototype,"ironButtonState",void 0);_.Q([_.F(),_.y("design:type",Object)],nv.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.y("design:type",Object)],nv.prototype,"ariaLabel",void 0);
_.Q([_.F(),_.y("design:type",Object)],nv.prototype,"message",void 0);_.Q([_.F(),_.y("design:type",Object)],nv.prototype,"picker",void 0);_.Q([_.F(),_.y("design:type",Object)],nv.prototype,"uploader",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nv.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],nv);
_.D(nv,"ytd-channel-banner-editor-renderer",function(){if(Dqj!==void 0)return Dqj;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Dqj=W},{mode:1});var qNn;var n9b=_.ak(["#"]),N4=function(){return _.S.apply(this,arguments)||this};
_.C(N4,_.S);N4.prototype.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W,!0)||_.BjQ(n9b)};
N4.prototype.dataChanged=function(){var W=this.data;W&&W.targetId&&_.tq7(_.aq(),W.targetId,this.moreIcon)};
N4.prototype.dataChanged=N4.prototype.dataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],N4.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],N4.prototype,"data",void 0);_.Q([_.Hf("#more-icon"),_.y("design:type",Object)],N4.prototype,"moreIcon",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],N4.prototype,"dataChanged",null);
_.Q([_.u({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],N4);
_.D(N4,"ytd-channel-tagline-renderer",function(){if(qNn!==void 0)return qNn;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return qNn=W},{mode:1});var NmO;var $d=function(){return _.S.apply(this,arguments)||this};
_.C($d,_.S);_.p=$d.prototype;_.p.ready=function(){var W=this;_.tH(this.hostElement).querySelector("#form").addEventListener("submit",function(B){W.onSubmit(B)})};
_.p.onDataChanged=function(){var W;((W=this.data)==null?0:W.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.p.onIconButtonKeydown=function(W){W.keyCode===13&&this.iconButton.click()};
_.p.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.p.openOnClickHandler=function(){this.input.focus()};
_.p.onSubmit=function(W){W.preventDefault();return!1};
_.p.submitOnEnterKeyUp=function(W){var B;if(W.keyCode===13&&((B=this.data)==null?0:B.expandedText)){W=this.data.endpoint;B=_.mP.unsafeClone(W);var z;((z=_.k(B==null?void 0:B.commandMetadata,_.Z4))==null?0:z.url)?(_.k(B.commandMetadata,_.Z4).url=_.up(_.k(B.commandMetadata,_.Z4).url,"query",this.data.expandedText),_.k(B,_.oE)&&(_.k(B,_.oE).query=this.data.expandedText),_.v0(this.hostElement,"yt-navigate",{endpoint:B,tempData:{disableCache:!0}})):(z=new _.oX("Error: Trying to navigate to an endpoint without url",
W),_.jy(z))}};
_.p.updateDataExpandedTextFromBinding=function(W){this.set("data.expandedText",W.detail.value)};
_.G5.Object.defineProperties($d.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
$d.prototype.onDataChanged=$d.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.m6b),_.y("design:type",Object)],$d.prototype,"ytdExpandableInputBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$d.prototype,"data",void 0);_.Q([_.Hf("#input"),_.y("design:type",Object)],$d.prototype,"input",void 0);_.Q([_.Hf("#icon-button"),_.y("design:type",HTMLElement)],$d.prototype,"iconButton",void 0);
_.Q([_.F(),_.y("design:type",String),_.y("design:paramtypes",[])],$d.prototype,"searchIcon",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$d.prototype,"onDataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],$d);
var Pmf=_.sV()($d,"ytd-expandable-tab-renderer",function(){if(NmO===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);NmO=W}W=NmO;return W},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var $qf;var Lv=function(){var W=_.S.apply(this,arguments)||this;W.avatarSize=80;W.ariaLabel=_.kq("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return W};
_.C(Lv,_.S);Lv.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Lv.prototype.computeHref=function(W){var B;return((B=_.k(W,_.DD))==null?0:B.url)?this.componentBehavior.computeHref_(W):null};
Lv.prototype.onTap=function(){var W,B;(W=this.data)==null||!W.editAvatarServiceEndpoint||((B=_.k(this.data.editAvatarServiceEndpoint,_.DD))==null?0:B.url)||_.dO().resolve(_.p4).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.Q([_.h(_.R9),_.y("design:type",Object)],Lv.prototype,"ironButtonState",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Lv.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Lv.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Lv.prototype,"avatarSize",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],Lv.prototype,"ariaLabel",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Lv);
_.D(Lv,"ytd-channel-avatar-editor",function(){if($qf!==void 0)return $qf;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return $qf=W},{mode:1});var LcO=_.m(function(W){var B=W.data;var z=W.noPadding;var G=W.enableBanner;var Y=W.cinematicContainerTopbarOffset;var d=W.allowCinematicContainerOverflow;var E=W.displayAsSidebar;W=W.className;_.ja(function(){B().tagManagerId&&(_.zr(B().tagManagerId,_.eD("GL")),Imf(B().tagManagerId))},"vUc8md");
var v=_.hg(rFO,function(){return B().pageHeaderEntityKey});
return _.w("yt-page-header-renderer",{class:_.kG("pageHeaderRendererHost",W)},_.w(_.Sc,{data:function(){var c;return((c=v())==null?0:c.header)?v().header:(E==null?0:E())&&B().sidebarContent?B().sidebarContent:B().content}},{pageHeaderViewModel:function(c){return _.w(_.SCR,{data:c.data,
noPadding:z,enableBanner:G,cinematicContainerTopbarOffset:Y,allowCinematicContainerOverflow:d,displayAsSidebar:function(){return(E==null?void 0:E())&&B().enableSidebarView}})}}))},"qk");
LcO.idomCompat=!0;_.Vm(LcO,"yt-page-header-renderer",{props:{data:_.kz,noPadding:_.kz,enableBanner:_.kz,cinematicContainerTopbarOffset:_.kz,allowCinematicContainerOverflow:_.kz,displayAsSidebar:_.kz,className:_.kz}});_.Vm(_.gQ,"yt-image-banner-view-model",{props:{data:_.kz,isPositionRelative:_.kz}});_.Vm(_.$4T,"yt-tab-group-shape",{props:{shape:_.kz}});var UC=function(){var W=_.S.apply(this,arguments)||this;W.expandableCustomTabRenderable=function(B){return Z90(B,function(){return void W.onSearchNavigate()})};
W.isRichGrid=!1;W.isConstrainedList=!1;W.richGridMiniMode=!1;W.richGridStyle="RICH_GRID_STYLE_UNKNOWN";W.isRichGridShorts=!1;W.responsiveSizing="COMPACT";W.disableGridStateAware=!1;W.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return W};
_.C(UC,_.S);_.p=UC.prototype;_.p.computeHeaderDisabled=function(W,B){return B||!W||this.tabsHidden};
_.p.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.p.computeIsRichGridShorts=function(W){return W==="RICH_GRID_STYLE_SHORTS_GRID"||W==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.p.computeImageBannerViewModel=function(){var W,B;return _.k((B=_.k((W=this.data)==null?void 0:W.content,_.m87))==null?void 0:B.banner,_.jT4)};
_.p.computeHasCinematicContainer=function(){var W,B;return!((B=_.k((W=this.data)==null?void 0:W.content,_.m87))==null||!B.background)};
_.p.handleHeaderResize=function(){var W=_.tH(this.hostElement).querySelector("#header");W&&_.v0(W,"iron-resize")};
_.p.handleInsertTabCommand=function(W){var B=_.k(W,qSb);B&&(B.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(z){return z.tabRenderer&&z.tabRenderer.tabIdentifier===B.tabIdentifier})||this.splice("tabs",B.tabIndex||-1,0,B.tab))};
_.p.handleRefreshChannelTabAction=function(W){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===W&&_.v0(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.p.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.kw(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.p.observerRichGridSlimItemsPerRow=function(){_.kw(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.p.updateCssVars=function(){this.richGridItemsPerRow&&_.kw(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.iO("rich_grid_max_item_width",500))+16)-16+"px"})};
_.p.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.kw(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.p.onDataChanged=function(){this.handleHeaderResize()};
_.p.onWindowResize=function(){this.handleHeaderResize()};
_.p.onFocusedChanged=function(W){(W=_.iP(W))&&W.is==="tp-yt-paper-tab"&&W.hasRipple()&&(W.getRipple().holdDown=!W.pointerDown&&W.focused)};
_.p.updateSelectedFromBinding=function(W){this.ytdTabbedHeaderBehavior.selected=W.detail.value};
_.p.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.G5.Object.defineProperties(UC.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:lmf(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.imageBannerViewModel)==null?void 0:W.style)==="IMAGE_BANNER_STYLE_INSET"}}});
UC.prototype.onDataChanged=UC.prototype.onDataChanged;UC.prototype.updateCssVarsForResponsiveGrid=UC.prototype.updateCssVarsForResponsiveGrid;UC.prototype.updateCssVars=UC.prototype.updateCssVars;UC.prototype.observerRichGridSlimItemsPerRow=UC.prototype.observerRichGridSlimItemsPerRow;UC.prototype.observerRichGridItemsPerRow=UC.prototype.observerRichGridItemsPerRow;_.Q([_.h(_.VO),_.y("design:type",Object)],UC.prototype,"ytdGridStateAwareBehavior",void 0);
_.Q([_.h(nKf),_.y("design:type",Object)],UC.prototype,"ytdTabbedHeaderBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],UC.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],UC.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.h(_.TB),_.y("design:type",Object)],UC.prototype,"ytdReduxBehavior",void 0);_.Q([_.Hf("#tabs"),_.y("design:type",Object)],UC.prototype,"tabsElement",void 0);_.Q([_.F(),_.y("design:type",Array)],UC.prototype,"tabs",void 0);_.Q([_.F(),_.y("design:type",Object)],UC.prototype,"expandableCustomTabRenderable",void 0);_.Q([_.H("tabs.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],UC.prototype,"tabGroupShape",null);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],UC.prototype,"isRichGrid",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],UC.prototype,"isConstrainedList",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.eL}),_.y("design:type",Object)],UC.prototype,"richGridMiniMode",void 0);_.Q([_.F({selector:function(W){return W.ui.richGridStyle}}),
_.y("design:type",Object)],UC.prototype,"richGridStyle",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.y("design:type",Object)],UC.prototype,"isRichGridShorts",void 0);_.Q([_.F({selector:_.m8}),_.y("design:type",Number)],UC.prototype,"richGridItemsPerRow",void 0);_.Q([_.F({selector:function(W){return W.ui.richGridContainerWidth}}),
_.y("design:type",Number)],UC.prototype,"richGridContainerWidth",void 0);_.Q([_.F({selector:_.Yrk}),_.y("design:type",Number)],UC.prototype,"richGridSlimItemsPerRow",void 0);_.Q([_.F(),_.y("design:type",Object)],UC.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],UC.prototype,"responsiveSizing",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],UC.prototype,"disableGridStateAware",void 0);
_.Q([_.F({computed:"computeImageBannerViewModel(data)"}),_.y("design:type",Object)],UC.prototype,"imageBannerViewModel",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.y("design:type",Boolean)],UC.prototype,"hasCinematicContainer",void 0);_.Q([_.F({selector:_.I5Y,reflectToAttribute:!0}),_.y("design:type",Boolean)],UC.prototype,"guideIsVisibleButNotPersistent",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("imageBannerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],UC.prototype,"hasBanner",null);_.Q([_.F({reflectToAttribute:!0}),_.H("imageBannerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],UC.prototype,"hasInsetBanner",null);_.Q([_.F({computed:"computeTabsHidden(tabs)",value:!0}),_.y("design:type",Boolean)],UC.prototype,"tabsHidden",void 0);
_.Q([_.oN("richGridItemsPerRow","isRichGrid"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UC.prototype,"observerRichGridItemsPerRow",null);_.Q([_.oN("richGridSlimItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UC.prototype,"observerRichGridSlimItemsPerRow",null);
_.Q([_.oN("richGridItemsPerRow","richGridMiniMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UC.prototype,"updateCssVars",null);_.Q([_.oN("richGridContainerWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UC.prototype,"updateCssVarsForResponsiveGrid",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UC.prototype,"onDataChanged",null);
_.Q([_.u({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],UC);
_.D(UC,"ytd-tabbed-page-header",function(){if(xqK!==void 0)return xqK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return xqK=W},{mode:1});var UqK;var M4=function(){return _.S.apply(this,arguments)||this};
_.C(M4,_.S);M4.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.kw(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.G5.Object.defineProperties(M4.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var W,B;return this.componentBehavior.computeIcon_(((B=_.k((W=this.data)==null?void 0:W.badge,_.Ued))==null?void 0:B.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var W,B;return(B=_.k((W=this.data)==null?void 0:W.badge,_.Ued))==null?void 0:B.label}}});
M4.prototype.observerRichGridItemsPerRow=M4.prototype.observerRichGridItemsPerRow;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],M4.prototype,"componentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],M4.prototype,"ytdReduxBehavior",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.eL}),_.y("design:type",Boolean)],M4.prototype,"richGridMiniMode",void 0);
_.Q([_.F({selector:_.m8}),_.y("design:type",Number)],M4.prototype,"richGridItemsPerRow",void 0);_.Q([_.F(),_.y("design:type",Object)],M4.prototype,"data",void 0);_.Q([_.oN("richGridItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],M4.prototype,"observerRichGridItemsPerRow",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],M4.prototype,"badgeIconName",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],M4.prototype,"badgeLabel",null);_.Q([_.u({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],M4);
_.D(M4,"ytd-member-hub-profile-renderer",function(){if(UqK!==void 0)return UqK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return UqK=W},{mode:1});var MPb;var a7=function(){return _.S.apply(this,arguments)||this};
_.C(a7,_.S);a7.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],a7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],a7.prototype,"data",void 0);_.Q([_.u({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],a7);
_.D(a7,"ytd-settings-sidebar-renderer",function(){if(MPb!==void 0)return MPb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return MPb=W},{mode:1});var aOi;var R7=function(){var W=_.S.apply(this,arguments)||this;W.expandableCustomTabRenderable=function(B){return Z90(B,function(){return void W.onSearchNavigate()})};
return W};
_.C(R7,_.S);R7.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
R7.prototype.onSearchNavigate=function(){this.selected=void 0};
R7.prototype.onTabsChange=function(){var W,B=(W=this.tabs)==null?void 0:W.findIndex(function(z){var G;return z==null?void 0:(G=z.tabRenderer)==null?void 0:G.selected});
B!==void 0&&(this.selected=B)};
R7.prototype.onTabsActive=function(W){if(this.tabs!==void 0){var B,z;(W=(B=this.tabs[W.detail.selected])==null?void 0:(z=B.tabRenderer)==null?void 0:z.endpoint)&&_.v0(this.hostElement,"yt-navigate",{endpoint:W})}};
_.G5.Object.defineProperties(R7.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:lmf(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
R7.prototype.onTabsChange=R7.prototype.onTabsChange;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],R7.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.VO),_.y("design:type",Object)],R7.prototype,"ytdGridStateAwareBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],R7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],R7.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Array)],R7.prototype,"tabs",void 0);_.Q([_.F(),_.y("design:type",Number)],R7.prototype,"selected",void 0);_.Q([_.H("tabs.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],R7.prototype,"tabGroupShape",null);_.Q([_.F(),_.y("design:type",Object)],R7.prototype,"expandableCustomTabRenderable",void 0);
_.Q([_.H("tabs"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],R7.prototype,"tabsEnabled",null);_.Q([_.jJ("tabs"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],R7.prototype,"onTabsChange",null);_.Q([_.u({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],R7);
_.D(R7,"ytd-topic-channel-details-renderer",function(){if(aOi!==void 0)return aOi;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return aOi=W},{mode:1});var R0f;var WY=function(){var W=_.S.apply(this,arguments)||this;W.disableGridStateAware=!1;return W};
_.C(WY,_.S);WY.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]]"}}}}}};
WY.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
WY.prototype.updateCssVars=function(){_.kw(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.iO("rich_grid_max_item_width",500))+16)-16+"px"})};
WY.prototype.updateCssVars=WY.prototype.updateCssVars;WY.prototype.activeChanged=WY.prototype.activeChanged;_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],WY.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],WY.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],WY.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],WY.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Array)],WY.prototype,"tabs",void 0);_.Q([_.F(),_.y("design:type",Boolean)],WY.prototype,"active",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],WY.prototype,"disableGridStateAware",void 0);
_.Q([_.F({selector:_.m8}),_.y("design:type",Number)],WY.prototype,"richGridItemsPerRow",void 0);_.Q([_.F({selector:_.eL}),_.y("design:type",Boolean)],WY.prototype,"richGridMiniMode",void 0);_.Q([_.Hf("ytd-carousel-item-renderer"),_.y("design:type",Object)],WY.prototype,"carousel",void 0);_.Q([_.oN("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],WY.prototype,"activeChanged",null);
_.Q([_.oN("richGridItemsPerRow","richGridMiniMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],WY.prototype,"updateCssVars",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],WY);
_.D(WY,"ytd-carousel-header-renderer",function(){if(R0f!==void 0)return R0f;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return R0f=W},{mode:1});var WrM;var BkK=_.ak(["https://www.google-analytics.com/analytics.js"]),BY=function(){var W=_.S.apply(this,arguments)||this;W.scriptAnalyticsAdded=!1;return W};
_.C(BY,_.S);BY.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var W,B=(W=this.data)==null?void 0:W.tagManagerId;B&&(_.zr(B,_.eD("GL")),Imf(B))};
BY.prototype.sendGoogleAnalyticsPageview=function(W){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var z=_.nm.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(z)};
var B=window.ga;B("set","page",window.location.pathname);B.l=+new Date;B("set","forceSSL",!0);B("create",W,"'auto'");B("send","pageview")};
BY.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var W=_.I0("SCRIPT");W.name="ga-analytics";var B=_.sY(BkK);_.pN(W,B);W.async=!0;_.tH(this.hostElement).appendChild(W)};
BY.prototype.dataChanged=BY.prototype.dataChanged;_.Q([_.F(),_.y("design:type",Object)],BY.prototype,"data",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BY.prototype,"dataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],BY);
_.D(BY,"ytd-channel-metadata-renderer",function(){if(WrM!==void 0)return WrM;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return WrM=W},{mode:1});var z8h;var GTF;var ze=function(){var W=_.S.apply(this,arguments)||this;W.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"]);W.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"]);W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return W};
_.C(ze,_.S);_.p=ze.prototype;_.p.attached=function(){this.requestElementsPerRow()};
_.p.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_]]"}}}}}};
_.p.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
_.p.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.p.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.p.computeAlertStyle_=function(W){return W};
_.p.observerElementsPerRow=function(){this.elementsPerRow&&_.kw(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.p.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.p.requestElementsPerRow=function(){_.v0(this.hostElement,"yt-request-elements-per-row")};
ze.prototype.onIsVisibleChanged_=ze.prototype.onIsVisibleChanged_;ze.prototype.observerElementsPerRow=ze.prototype.observerElementsPerRow;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],ze.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],ze.prototype,"actionHandlerBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],ze.prototype,"data",void 0);_.Q([_.F({value:6,reflectToAttribute:!0}),_.y("design:type",Number)],ze.prototype,"elementsPerRow",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],ze.prototype,"wrapButtons",void 0);_.Q([_.F({value:_.eD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.y("design:type",Boolean)],ze.prototype,"isMusic",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.y("design:type",String)],ze.prototype,"alertStyle",void 0);_.Q([_.F({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.y("design:type",Function)],ze.prototype,"dismissBoundButtonTap_",void 0);_.Q([_.F({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.y("design:type",Function)],ze.prototype,"acceptBoundButtonTap_",void 0);_.Q([_.oN("elementsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ze.prototype,"observerElementsPerRow",null);_.Q([_.oN("data.isVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ze.prototype,"onIsVisibleChanged_",null);_.Q([_.NJ({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],ze);
_.D(ze,"yt-alert-with-actions-renderer",function(){if(GTF===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;z8h===void 0&&(z8h=document.createElement("template"));var G=z8h;z.call(B,G.content.cloneNode(!0),W.content.firstChild);GTF=W}W=GTF;return W},{mode:2});_.Vm(_.m(function(W){function B(P){var Z={};return _.w(_.r0,{text:P,className:_.kG("ytPersonalGreetingViewModelHeadline",(Z.ytPersonalGreetingViewModelHeadlineSmall=function(){return v()===48},Z))})}
function z(P,Z){return _.w("span",{el:P,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},B(Z))}
var G=_.TG(_.Qi(function(){var P;return(P=W.data())==null?void 0:P.rendererContext},void 0,void 0,void 0,!0)),Y=_.LG("span"),d=_.LG("span"),E=function(){return W.data().canvasPromoData},v=function(){var P;
return(P=W.data().bannerHeight)!=null?P:56},c=_.d0T(G,{throttleMs:100}),J=_.d0T(Y,{throttleMs:100}),g=_.d0T(d,{throttleMs:100}),t=function(){return J.width()-c.width()>1};
return _.w("yt-personal-greeting-view-model",{el:G,"aria-hidden":t,class:_.kG(W.className,"ytPersonalGreetingViewModelHost"),style:_.oK({height:(0,_.EJ)(function(){return t()?0:v()})})},_.w(_.V,{cond:function(){return W.data().avatar&&!(g.width()+(W.data().avatar?48:0)-c.width()>1)},
then:function(){return _.w(_.Sc,{data:function(){return W.data().avatar}},{decoratedAvatarViewModel:function(P){return _.w(_.pY,{data:P.data,
className:_.kG("ytPersonalGreetingViewModelAvatar")})}})}}),_.w("h1",null,B(function(){var P;
return(E==null?void 0:(P=E())==null?void 0:P.headline)||(g.width()+(W.data().avatar?48:0)-c.width()>1?W.data().shorterGreeting:W.data().greeting)})),z(d,function(){return W.data().greeting}),z(Y,function(){return W.data().shorterGreeting}))},"rk"),"yt-personal-greeting-view-model",{props:{data:_.kz,
className:_.kz}});var Ge=function(){var W=_.S.apply(this,arguments)||this;W.hidden=!1;W.isConstrainedList=!1;W.darkerDarkTheme=_.r("web_darker_dark_theme");W.responsiveSizing="COMPACT";W.attachedPlayers=_.r("kevlar_channel_trailer_multi_attach")?[]:void 0;W.player=null;W.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return W};
_.C(Ge,_.S);_.p=Ge.prototype;
_.p.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}}}}};
_.p.created=function(){var W=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){W.disposeMastheadAd()}]};
_.p.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new LyK(this.refresh,this.contents))};
_.p.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.p.activeChanged=function(){var W=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=W)};
_.p.tabsChanged=function(){var W=this,B,z;if(this.pageSubtype==="channels"||_.r("kevlar_tab_gestures_for_tabbed_header_data")&&((B=this.data)==null?0:(z=B.header)==null?0:z.carouselHeaderRenderer))this.tabGestures=new EC(this.contents,this.contents,this.hostElement,this.header,function(E){W.ytdReduxBehavior.dispatch(E)});
var G,Y,d;B=(G=this.data)==null?void 0:(Y=G.contents)==null?void 0:(d=Y.twoColumnBrowseResultsRenderer)==null?void 0:d.tabs;this.tabGestures&&this.tabGestures.tabsChanged(B)};
_.p.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.p.engagementPanelsChanged=function(){var W=_.dO().resolve(_.WD);if(W){if(this.engagementPanels)for(var B=_.A(this.engagementPanels),z=B.next();!z.done;z=B.next()){var G=void 0;(z=(G=z.value.identifier)==null?void 0:G.tag)&&W.panelMap.delete(z)}this.engagementPanels=[];var Y;B=_.A(((Y=this.data)==null?void 0:Y.panels)||[]);for(Y=B.next();!Y.done;Y=B.next()){Y=_.k(Y.value,_.sii);var d=z=void 0,E=void 0,v=void 0;if(G=((z=Y)==null?void 0:z.targetId)||((d=Y)==null?void 0:d.panelIdentifier)||((E=Y)==
null?void 0:(v=E.identifier)==null?void 0:v.tag))d=z=void 0,(d=(z=W).registerPanelContent)==null||d.call(z,G,{engagementPanelSectionListRenderer:Y}),this.engagementPanels.push(Y)}}};
_.p.onStampFinished=function(){var W=this;_.BM(this,function(){if(W.tabGestures){var B=W.tabGestures;if(B.scrollPositionNeedsUpdate){var z=_.dO().resolve(_.Y8(_.ij)),G;if((G=B.selectedTab)!=null&&G.title&&z&&(G=z.getCurrentPage())){if(B.scrollPositionForTabs.has(B.selectedTab.title)){var Y,d;z=(d=(Y=z.getCurrentPage())==null?void 0:Y.clientHeight)!=null?d:0;Y=B.scrollPositionForTabs.get(B.selectedTab.title);G.setScrollTop(Y);z>Y+100&&(B.scrollPositionNeedsUpdate=!1)}else G.setScrollTop(Math.min(B.lastVisitedTabScrollPosition!==
void 0?B.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,B.tabsStartAtInPx)),B.scrollPositionNeedsUpdate=!1;B.ytdReduxDispatch(Cmf(!1))}}}})};
_.p.loadPage_=function(W){this.initCsi();W&&(this.data=W);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.p.getTitle=function(W){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",W))return this.get("microformat.microformatDataRenderer.title",W);if(this.get("header.feedTabbedHeaderRenderer.title",W))return _.zR(this.get("header.feedTabbedHeaderRenderer.title",W));if(this.get("header.interactiveTabbedHeaderRenderer.title",W))return this.get("header.interactiveTabbedHeaderRenderer.title",W);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
W))return _.zR(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",W));var B,z;return(W==null?0:(B=W.header)==null?0:(z=B.pageHeaderRenderer)==null?0:z.pageTitle)?W.header.pageHeaderRenderer.pageTitle:""};
_.p.updateTitle=function(W){_.v0(this.hostElement,"yt-update-title",this.getTitle(W))};
_.p.initCsi=function(){_.Yd(this.pageSubtype||"browse",["ol","cpt"])};
_.p.getPlayer=function(){if(_.r("kevlar_channel_trailer_multi_attach")){for(var W=_.A(this.attachedPlayers),B=W.next();!B.done;B=W.next())if(B=B.value,B.isConnected||_.N5(this.hostElement,B))return B;return null}return this.player};
_.p.getPlayerContainer=function(){return null};
_.p.onPlayerAttached=function(W,B){_.r("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(B):this.player=B};
_.p.onPlayerDetached=function(W,B){_.r("kevlar_channel_trailer_multi_attach")?(W=this.attachedPlayers.indexOf(B),W<0||this.attachedPlayers.splice(W,1)):this.player=null};
_.p.getServiceTrackingParams=function(){var W,B;return((W=this.data)==null?void 0:(B=W.responseContext)==null?void 0:B.serviceTrackingParams)||[]};
_.p.setMastheadAd=function(W){W&&W.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=W&&W.mastheadAd};
_.p.dataChanged=function(){var W=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.i99();_.BM(this,function(){_.wV(W.hostElement,"ytd-update-grid-state-action")})};
_.p.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.p.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var W=this.data.alerts;return W&&W.find(function(B){return!!B.alertWithActionsRenderer})}};
_.p.computeGreetingData=function(){if(this.data&&this.data.alerts){var W=this.data.alerts;return W&&W.find(function(B){return!!B.personalGreetingViewModel})}};
_.p.computeHasMemberHubProfileRenderer=function(W){var B;return!!(W==null?0:(B=W.header)==null?0:B.memberHubProfileRenderer)};
_.p.handleAlertCommand=function(W){this.get("alertCommand.alert.alertWithActionsRenderer",W)&&(W=_.k(W,O9r),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",W.alert))};
_.p.handleYtPlaylistDeletionRedirect=function(W){W=this.get("playlistDeletionRedirectCommand.redirectEndpoint",W);_.v0(this.hostElement,"yt-navigate",{endpoint:W})};
_.p.computeFluidWidth=function(W,B,z){if(B==="mini_app"||z)return!0;var G,Y,d;W=W==null?void 0:(G=W.contents)==null?void 0:(Y=G.twoColumnBrowseResultsRenderer)==null?void 0:(d=Y.tabs)==null?void 0:d.find(function(c){var J;return c==null?void 0:(J=c.tabRenderer)==null?void 0:J.selected});
if(!W)return!1;var E,v;return!!((E=W.tabRenderer)==null?0:(v=E.content)==null?0:v.richGridRenderer)&&!["channel","channels","playables"].includes(B)};
_.p.computeHeaderFluidWidth=function(W){return W==="hashtag-landing-page"};
_.p.computeHasSidebar=function(W){var B;return!!(W.sidebar||((B=W.header)==null?0:B.playlistHeaderRenderer))};
_.p.computeHasPageHeaderSidebar=function(W){var B,z;return!!((B=W.header)==null?0:(z=B.pageHeaderRenderer)==null?0:z.enableSidebarView)};
_.p.computeUseUnifiedShowPageLayout=function(W){if(!W||this.pageSubtype!=="show"||!W.sidebar||!W.sidebar.playlistSidebarRenderer)return!1;W=W.sidebar.playlistSidebarRenderer;if(!W.items)return!1;for(var B=0;B<W.items.length;B++)if(_.k(W.items[B],Ap)){var z=void 0;return((z=_.k(W.items[B],Ap))==null?void 0:z.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.p.computeIsConstrainedList=function(W){return _.r("web_enable_constrained_list_subscriptions_channels")&&W==="subscriptions-channels"};
_.p.computeResponsiveSizing=function(W){return W==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.G5.Object.defineProperties(Ge.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var W,B;return((W=this.data)==null?0:(B=W.header)==null?0:B.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var W,B;if(!((W=this.data)==null?0:(B=W.sidebar)==null?0:B.playlistSidebarRenderer))return!1;var z;return(z=this.data)!=null&&z.header?!1:!0}}});
_.G5.Object.defineProperties(Ge,{template:{configurable:!0,enumerable:!0,get:function(){if(ami===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);ami=W}W=ami;return W}}});
Ge.prototype.dataChanged=Ge.prototype.dataChanged;Ge.prototype.onPlayerDetached=Ge.prototype.onPlayerDetached;Ge.prototype.onPlayerAttached=Ge.prototype.onPlayerAttached;Ge.prototype.onStampFinished=Ge.prototype.onStampFinished;Ge.prototype.engagementPanelsChanged=Ge.prototype.engagementPanelsChanged;Ge.prototype.scrollAtTopChanged=Ge.prototype.scrollAtTopChanged;Ge.prototype.tabsChanged=Ge.prototype.tabsChanged;Ge.prototype.activeChanged=Ge.prototype.activeChanged;
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Ge.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],Ge.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ge.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Ge.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.dz.YtPageBehavior),_.y("design:type",Object)],Ge.prototype,"ytPageBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Ge.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Ge.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ge.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ge.prototype,"hidden",void 0);
_.Q([_.F(),_.y("design:type",Object)],Ge.prototype,"mastheadAdData",void 0);_.Q([_.F({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.y("design:type",Object)],Ge.prototype,"alertBannerData",void 0);_.Q([_.F({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.y("design:type",Object)],Ge.prototype,"greetingData",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],Ge.prototype,"pageSubtype",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.y("design:type",Boolean)],Ge.prototype,"hasMemberHubProfileRenderer",void 0);_.Q([_.F({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Ge.prototype,"hasSidebar",void 0);_.Q([_.F({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Ge.prototype,"hasPageHeaderSidebar",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],Ge.prototype,"roundedContainer",void 0);_.Q([_.F({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Ge.prototype,"useUnifiedShowPageLayout",void 0);_.Q([_.F({computed:"computeIsConstrainedList(pageSubtype)"}),_.y("design:type",Object)],Ge.prototype,"isConstrainedList",void 0);
_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ge.prototype,"usePlaylistHeaderRenderer",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ge.prototype,"useOldPlaylistSidebarRenderer",null);_.Q([_.F({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.y("design:type",Boolean)],Ge.prototype,"fluidWidth",void 0);_.Q([_.F({selector:function(W){return W.ui.scrollAtTop}}),
_.y("design:type",Boolean)],Ge.prototype,"scrollAtTop",void 0);_.Q([_.F({selector:_.ori}),_.y("design:type",Boolean)],Ge.prototype,"tabGesturesIsActive",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ge.prototype,"darkerDarkTheme",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.y("design:type",Boolean)],Ge.prototype,"disableHeaderFluidWidth",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.y("design:type",String)],Ge.prototype,"responsiveSizing",void 0);_.Q([_.Hf("ytd-two-column-browse-results-renderer"),_.y("design:type",HTMLElement)],Ge.prototype,"contents",void 0);_.Q([_.Hf("#header"),_.y("design:type",HTMLElement)],Ge.prototype,"header",void 0);_.Q([_.Hf("ytd-refresh"),_.y("design:type",Object)],Ge.prototype,"refresh",void 0);
_.Q([_.oN("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ge.prototype,"activeChanged",null);_.Q([_.oN("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ge.prototype,"tabsChanged",null);_.Q([_.oN("scrollAtTop"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ge.prototype,"scrollAtTopChanged",null);
_.Q([_.F(),_.y("design:type",Object)],Ge.prototype,"engagementPanels",void 0);_.Q([_.oN("data.panels"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ge.prototype,"engagementPanelsChanged",null);_.Q([_.IN("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ge.prototype,"onStampFinished",null);
_.Q([_.IN("yt-player-attached"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Element]),_.y("design:returntype")],Ge.prototype,"onPlayerAttached",null);_.Q([_.IN("yt-player-detached"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Element]),_.y("design:returntype")],Ge.prototype,"onPlayerDetached",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ge.prototype,"dataChanged",null);
_.Q([_.u({is:"ytd-browse"})],Ge);_.u1.registerService(_.ivv,Ge);
_.mb();
}catch(e){_._DumpException(e)}
try{
_.ek("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 aU,V4f,Jrb,gqn,t41,sPY,PHr,Zi9,rrn,kyf,l4r,CH6,oqi,hYn,Fjr,S2q,bif,f4Y,Oi9,X0O,Kjf,RU,eYf,We,mjO,xjr,DjY,QP0,yr6,nq1,$jn,q2j,I40,Ljf,Ujb,M40,a4r,RYb,W8i,Bci,zji,GlO,dMO,p31,iAb,TcK,cq9,w3f,VL1,gOj,s_Y,Pdn,ZA6,rqn,klq,lnO,Cdr,Inj,oO9,hjO,HAO,F8f,SgY,bAj,j_f,fnr,OAr,X30,K8b,ejb,mMK,xMf,DMi,Q_i,yqi,qgb,nO1,Nc1,$Mq,L8Y,UMb,MLq,anf,Rjf,W9n,BDr,zSY,GRj,Ylb,d_1,pgj,A8f,isn,E_f,E3,TDi,v_i,c80,VW9,J8r,g_6,tWb,sEn,Pa9,Zsi,la0,jEO,K9i,utY,QEb,y8b,D_b,m_K,$_1,MWb,GSb,eSr,RSj,L99,J2,dJf,io1,vw1,Ewq,T5r,cHr,
gwf,VJf,tJ0,sNn,JHi,wfY,PPi,Pe,Zx,I8r,owr,rg,hRr,Ho0,Fs6,Xf0,Ksq,kJ,lW,eRn,u4q,mJq,xJq,DJb,QNj,CK,It,ot,MJf,a8Y,RRi,He,YV0,WR9,Gsf,dHr,Baf,AVq,zqb,Ta9,i8f,EBj,Fg,cVi,vBY,gBi,Z8i,fK,O3,sB9,ksf,Pg9,rVb,KK,e$,mK,xJ,yVO,frj,Naq,$HO,LRY,UH1,ar9,H8i,FRf,y5,b8q,Dx,Q5,jBK,MKr,qVn,SVi,nK,p2r,iyf,EGj,AY9,zIf,vGf,VXY,MY,LK,U3,tXf,BSi,Rt,w2Y,GG9,cYf,dEY,WT6,YvO,PF6,Zy0,rYi,lN9,IN0,oGb,hI9,Hyf,Svn,FTO,jKi,fNY,X2i,KTf,eIO,mEb,xEb,DE9,QK9,yYi,qvj,NS1,nG0,$EO,LTq,zM,UEb,MX0,GM,aNn,RI1,WCi,Bur,z$0,GN6,YM9,d$0,Agj,
Ye,i26,E2f,cg6,Vci,Jgb,tcK,g2r,snj,Pjf,Z2b,kNr,lpY,CjY,Ipj,o2r,h$0,H2i,FCf,SM0,b2K,jni,fpK,uEb,e$9,XA1,KCi,O2O,m$0,Qn6,x$n,D$i,n2b,ygb,qM1,Nuj,$$Y,LCb,U$f,ap9,R$j,Wun,zr6,Gmr,dFr,AEf,ElK,vli,wkO,JEq,tg6,Pe1,kmr,lKi,Cef,olb,IKY,Hkj,Fu1,S_n,bkK,p5,j69,fKf,Okf,q_Y,Nhi,$FY,aKf,RrK,WQi,BnY,GHO,zpK,Yoj,dgb,phO,At1,iQY,Tj,EnY,va,ThK,Tnf,vn1,vOY,ctn,whf,VTj,Jtr,gnn,tTb;
aU=function(W){if(!W)return"browse";var B=W.page,z=W.url,G,Y,d,E=(G=W.response)==null?void 0:(Y=G.responseContext)==null?void 0:(d=Y.webResponseContextExtensionData)==null?void 0:d.pageTheme;if(E)B=E.toLowerCase().replace(/_/g,"-");else if(B!=="watch"&&B!=="learning_journey_watch"){var v,c;if((B==="browse"||B==="settings")&&((v=W.response)==null?0:(c=v.sidebar)==null?0:c.settingsSidebarRenderer))B="WEB_PAGE_TYPE_SETTINGS";else{var J,g;B==="browse"&&((J=W.response)==null?0:(g=J.metadata)==null?0:g.channelMetadataRenderer)?
B="channel":z&&(B=_.la(z)||B)}}return B};
V4f=function(){var W=_.q6("yt.aba.att");return W?W:_.e5.instance!==void 0?_.e5.instance.poX.bind(_.e5.instance):null};
Jrb=function(W,B){var z;return _.T(function(G){return(z=V4f())?G.return(z(W,B,6E4)):G.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
gqn=function(W,B,z,G,Y){B=B===void 0?[]:B;Y=Y?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:Y}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Aq(W),dialogMessages:B.map(function(d){return _.Aq(d)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Aq(z),serviceEndpoint:Y}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Aq(G)}}}}}};
t41=function(W){var B=!!_.sr().queueProxy;var z,G,Y;W=W==null?void 0:(z=W.response)==null?void 0:(G=z.currentVideoEndpoint)==null?void 0:(Y=G.watchEndpoint)==null?void 0:Y.playlistId;return!(!B&&!W)};
sPY=function(W,B){var z=_.qG();if(t41(W)&&!_.r("web_watch_disable_playlist_auto_miniplayer"))return z.playlistWatchPageActivation=!0;switch(aU(B)){case "yts-products":return z.productDetailsPageActivation=!0;case "mini_app":return z.miniAppPageActivation=!0;case "playables":return z.playablesDestPageActivation=!0;default:return!1}};
PHr=function(W,B,z){for(var G=typeof W==="string"?W.split(""):W,Y=W.length-1;Y>=0;--Y)Y in G&&B.call(z,G[Y],Y,W)};
Zi9=function(W,B){B=_.Zuu(W,B);B>=0&&_.lvX(W,B)};
rrn=function(W){return Array.prototype.concat.apply([],arguments)};
kyf=function(W){var B=0;B=B===void 0?0:B;if(!_.Ru(W))throw _.z6("uint64");var z=typeof W;switch(B){case 512:switch(z){case "string":return _.hDv(W);case "bigint":return String((0,_.gi)(64,W));default:return _.I9t(W)}case 1024:switch(z){case "string":return _.H7R(W);case "bigint":return _.OF((0,_.gi)(64,W));default:return _.oM2(W)}case 0:switch(z){case "string":return _.hDv(W);case "bigint":return _.OF((0,_.gi)(64,W));default:return _.CR0(W)}default:return _.qT(B,"Unknown format requested type for int64")}};
l4r=function(W){W!=null&&(W=W.JSC$8820_value_||"",W=typeof W==="string"?W:new Uint8Array(W));return W};
CH6=function(W,B){if(/-[a-z]/.test(B))return null;if(_.EhD&&W.dataset){if(_.vtD()&&!(B in W.dataset))return null;W=W.dataset[B];return W===void 0?null:W}return W.getAttribute("data-"+_.k6(B))};
oqi=function(){var W=I40;_.q6("yt.ads.biscotti.getId_")||_.BV("yt.ads.biscotti.getId_",W)};
hYn=function(W){_.BV("yt.ads.biscotti.lastId_",W)};
Fjr=function(){var W={};for(_.bO=new Hib(W.handleError===void 0?_.fG:W.handleError,W.logEvent===void 0?_.Sy:W.logEvent);_.jE.length>0;)switch(W=_.jE.shift(),W.type){case "ERROR":_.bO.logError(W.payload);break;case "EVENT":_.bO.logEvent(W.eventType,W.payload)}};
S2q=function(W,B,z){return _.anR(function(G){return z?G.userIdentifier!==void 0&&!W.includes(G.userIdentifier)&&z.includes(G.publicName):G.userIdentifier!==void 0&&!W.includes(G.userIdentifier)},B)};
bif=function(W){var B,z;return _.T(function(G){if(G.nextAddress==1)return B=_.C4("YtIdbMeta hasAnyMeta other"),G.yield(_.anR(function(Y){return Y.userIdentifier!==void 0&&Y.userIdentifier!==B},W),2);
z=G.yieldResult;return G.return(z.length>0)})};
f4Y=function(W,B){jPj||(jPj=_.fg.addLowPriorityJob(function(){var z,G,Y,d,E;return _.T(function(v){switch(v.nextAddress){case 1:return v.yield(_.zU(),2);case 2:z=v.yieldResult;if(!z)return v.return();G=!0;_.kA(v,3);return v.yield(S2q(W,z,B),5);case 5:Y=v.yieldResult;if(!Y.length){G=!1;v.jumpTo(6);break}d=Y[0];return v.yield(_.$8(d.actualName),7);case 7:return v.yield(_.Mn(d.actualName,z),6);case 6:_.Nn(v,4);break;case 3:E=_.h6(v),_.f4(E),G=!1;case 4:_.fg.cancelJob(jPj),jPj=0,G&&f4Y(W,B),_.HG(v)}})}))};
Oi9=function(){var W;return _.T(function(B){return B.nextAddress==1?B.yield(_.zU(),2):(W=B.yieldResult)?B.return(bif(W)):B.return(!1)})};
X0O=function(W){var B=100;B=B===void 0?500:B;var z,G,Y,d,E,v;return _.T(function(c){return c.nextAddress==1?(z=_.eD("INNERTUBE_CONTEXT_CLIENT_NAME",0),G=[z,(0,_.Yb)()-2592E6],Y=[z,(0,_.Yb)()],d=IDBKeyRange.bound(G,Y),c.yield(_.Cgu(W),2)):c.nextAddress!=3?(E=c.yieldResult,v=[],c.yield(_.UA(E,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(J){v.length=0;return _.d2(J.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:d,direction:"prev"},function(g){if(g.getValue()&&v.length<
B)return v.push(g.getValue()),g.delete().then(function(){return g.continue()})})}),3)):c.return(v)})};
Kjf=function(){var W;return _.T(function(B){if(B.nextAddress==1)return B.yield(_.zU(),2);W=B.yieldResult;if(!W||!_.IX()&&!_.r("nwl_init_require_datasync_id_killswitch")||!_.yVu())return B.jumpTo(0);_.nBD=!0;_.qVy.isNwlInitialized=_.nBD;return B.yield(_.I2Q().awaitInitialization(),0)})};
RU=function(W,B){_.iyR[W]=!0;var z=_.YE();z&&z.publish.apply(z,arguments);_.iyR[W]=!1};
eYf=function(){if(_.mJT()&&!uOY){var W=function(z){z=z.data;if(z.op==="serializedGelBatch"){var G=_.E2Q.get(z.key);G&&(_.v2D(z.serializedBatch,G.client,G.resolve,G.networklessOptions,G.isIsolated,G.useVSSEndpoint,G.dangerousLogToVisitorSession,G.requestsOutstanding),_.E2Q.delete(z.key))}},B=_.eRy();
B&&(B.addEventListener("message",W),B.onerror=function(){_.E2Q.clear()});
uOY=!0}};
We=function(){this.relativeTimeStart_=_.EL()};
mjO=function(W,B){W!=null&&this.append.apply(this,arguments)};
xjr=function(){return _.qO("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
DjY=function(W,B,z){z=z===void 0?!1:z;var G,Y,d,E,v;return _.T(function(c){switch(c.nextAddress){case 1:_.k8("SOCS",W,34128E3,"youtube.com",!0);if(_.P8)return Y=fetch(B,{method:"POST",mode:_.MO(B),credentials:_.Uh(B),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),d=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.MO("/upgrade_visitor_cookie?eom=1"),credentials:_.Uh("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),c.yield(Promise.all([Y,d]).then(function(J){return J[1]}),5);
fetch(B,{method:"POST",mode:_.MO(B),credentials:_.Uh(B),cache:"no-store",headers:{"Content-Type":"text/plain"}});return c.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.MO("/upgrade_visitor_cookie?eom=1"),credentials:_.Uh("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:G=c.yieldResult;c.jumpTo(3);break;case 5:G=E=c.yieldResult;case 3:if(!G.ok)throw Error("sf");return c.yield(G.text(),7);case 7:v=c.yieldResult,
!v.includes('"state_switch":true')&&!z||v.includes("skip_reload_for_test")||window.location.reload(),_.HG(c)}})};
QP0=function(W){return _.T(function(B){return B.nextAddress==1?B.yield(DjY(W.socsCookie,W.savePreferenceUrl,!0),2):B.return()})};
yr6=function(W){return _.T(function(B){return B.nextAddress==1?B.yield(DjY(W.socsCookie,W.savePreferenceUrl),2):B.return()})};
nq1=function(W){W=W.xhr.responseText;if(!_.A0(W,")]}'"))throw new Be;W=JSON.parse(W.substr(4));if((W.type||1)>1)throw new Be;W=W.id;hYn(W);zj=_.Z6(W);q2j(18E5,2);return W};
$jn=function(W,B){B=new NVi(B);hYn("");zj=_.MSD(B);W>0&&q2j(12E4,W-1);throw B;};
q2j=function(W,B){_.cS(function(){_.mOO().then(nq1,function(z){return $jn(B,z)}).thenCatch(_.j7)},W)};
I40=function(){var W=_.Qd0();if(W!==void 0)return _.mR(W);zj||(zj=_.mOO().then(nq1).thenCatch(function(B){return $jn(2,B)}));
return zj};
Ljf=function(){var W=document;return _.OX(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(B){return"on"+B.toLowerCase()in W})};
Ujb=function(W){W.addEventListener("click",function(B){var z=B.target;z&&z.getAttribute("href")&&(z=z.getAttribute("href"),_.BG(window,z,"_blank"),B.preventDefault(),B.stopImmediatePropagation())})};
M40=function(W){var B,z,G,Y=(G=(z=((B=W.mainDownloadsListEntity)!=null?B:{})[_.UGD])==null?void 0:z.refresh)!=null?G:"",d;W=(d=W.refresh)==null?void 0:d[Y];Y=W!=null?W:{};return(Y==null?0:Y.refreshTime)?Number(Y==null?void 0:Y.refreshTime):0};
a4r=function(W,B){var z=_.fA(W);return B.every(function(G){var Y;G=G==null?void 0:(Y=G.playbackDataEntity)==null?void 0:Y.key;if(!G)return!1;Y=_.sg(_.c3(G).entityId,"mainVideoEntity");return!!z[Y]})};
RYb=function(W){W=_.SL(W.entities);return _.TPQ(W).length};
W8i=function(W,B){if(B){var z;W=(z=_.P3(W.entities,"downloadQualityPickerEntity",B))!=null?z:void 0}else W=void 0;return W};
Bci=function(W){var B=document.getElementsByTagName("ytd-enforcement-message-view-model");B.length===0||getComputedStyle(B[0]).display==="none"?W(0,"p.h_"):W(1,"p.h_")};
zji=function(){Gj=0;var W=[_.Ft(!0)];YJ&&_.wV(YJ,"yt-window-resized",W)};
GlO=function(){Gj||(Gj=_.fg.addLowPriorityJob(zji,200))};
dMO=function(){dg=0;Ygr=_.TiM(document);var W=[Ygr];YJ&&_.wV(YJ,"yt-window-scrolled",W)};
p31=function(){dg||(dg=_.fg.addLowPriorityJob(dMO,200))};
iAb=function(W){W=W===void 0?null:W;Aqi.push(_.WT(window,"resize",GlO));Aqi.push(_.WT(window,"scroll",p31));W&&(YJ=W)};
TcK=function(){var W={isWide:_.rO.get("wide","0")==="1"},B=_.IP();if(B=B.getFlag(165)||B.getFlag(174))W.theme=_.Ks(!0);if(_.$7R()){var z=_.Xt()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";W.systemTheme=z}!B&&_.r("parent_tools_enable_app_settings")&&_.Uw(window.location.href).theme!==void 0&&(W.theme=_.Ks());if((B=pK)?!_.mP.equals(B,W):W)B={currentValue:W},EO6&&(B.timeSinceLastSnapshotSecs=Math.round(((0,_.Yb)()-EO6)/1E3)),pK&&(B.previousValue=pK),_.Sy("appSettingsCaptured",B),pK=W,EO6=
(0,_.Yb)()};
cq9=function(){var W=_.x_.getLocalStorage();W&&vOY(W,W.mechanism.__iterator__(!0))};
w3f=function(W){_.T(function(B){if(B.nextAddress==1)return B.yield(W.delete("yt-appshell-assets"),2);_.HG(B)})};
VL1=function(W){return _.L4((0,_.o44)(),W)};
gOj=function(){var W;_.T(function(B){return B.nextAddress==1?B.yield(A2.getInstance(),2):(W=B.yieldResult)?B.yield(Jqn(W),0):B.jumpTo(0)})};
s_Y=function(){var W;_.T(function(B){return B.nextAddress==1?B.yield(iW.getInstance(),2):(W=B.yieldResult)?B.yield(tL9(W),0):B.jumpTo(0)})};
Pdn=function(W){w3f(W);gOj();s_Y()};
ZA6=function(W){var B,z;return _.T(function(G){if(G.nextAddress==1)return G.yield(_.gPx(W),2);if(B=G.yieldResult){var Y;a:{if(B.headers&&(Y=B.headers.get("date"))&&(Y=Date.parse(Y),!isNaN(Y))){Y=Math.round((0,_.Yb)()-Y);break a}Y=-1}z=Y;if(z>-1)return G.return(z)}return G.return(-1)})};
rqn=function(){var W=_.Yt.caches,B=_.md("IS_SHELL_LOAD"),z,G;_.T(function(Y){if(Y.nextAddress==1)return z=-1,B?Y.yield(ZA6(W),3):(G=_.bH(),z=Math.round((0,_.Yb)()-G),Y.jumpTo(2));Y.nextAddress!=2&&(z=Y.yieldResult);z>=0&&z<2147483648&&_.Ki({appInstallDataAgeMs:z});_.HG(Y)})};
klq=function(W){var B=_.Uk(_.Yt.location.href),z={};"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(G){var Y=B.JSC$10032_queryData_.getValues(G);if(Y==null?0:Y.length)z[G]=Y});
return _.Pc(W,new Map(Object.entries(z)))};
lnO=function(W){W=W.match(/(.*)::.*::.*/);if(W!==null)return W[1]};
Cdr=function(W){if(_.Onu()){var B=Object.keys(window.localStorage);B=_.A(B);for(var z=B.next();!z.done;z=B.next()){z=z.value;var G=lnO(z);G===void 0||W.includes(G)||self.localStorage.removeItem(z)}}};
Inj=function(){if(!_.Onu())return!1;var W=_.C4(),B=Object.keys(window.localStorage);B=_.A(B);for(var z=B.next();!z.done;z=B.next())if(z=lnO(z.value),z!==void 0&&z!==W)return!0;return!1};
oO9=function(W){return _.eH("NotificationsDisabled",W)};
hjO=function(){return Notification.permission!="granted"?Promise.resolve():_.h_9().then(function(W){return W?W.pushManager.getSubscription().then(function(B){if(B)return Promise.resolve();B={userVisibleOnly:!0,applicationServerKey:_.aD("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return W.pushManager.subscribe(B).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
HAO=function(W){return _.h_9().then(function(B){if(!B||!B.active)return Promise.reject(new _.oX("serviceworker.postMessage",W,B));try{return B.active.postMessage(W),Promise.resolve()}catch(z){return Promise.reject(z)}})};
F8f=function(){HAO({type:"notifications_register",data:_.eD("ID_TOKEN")})};
SgY=function(){if(!_.md("LOGGED_IN"))return Promise.resolve(!1);var W=_.EA("service_worker_push_force_notification_prompt_tag");return W?_.xf("PromptTags").then(function(B){if(!B)return!0;var z=[];try{z=JSON.parse(B)}catch(G){return!1}return z&&z.indexOf(W)==-1}):Promise.resolve(!1)};
bAj=function(){var W=_.iO("service_worker_push_prompt_delay_microseconds");return W?_.xf("PromptTime").then(function(B){return Promise.resolve(Date.now()-W>(B||0))}):Promise.resolve(!0)};
j_f=function(){var W=_.iO("service_worker_push_logged_out_prompt_watches");return W==-1?Promise.resolve(!1):_.xf("WatchCount").then(function(B){return B>=W})};
fnr=function(){var W=_.cA(document,"yt-push-prompt-modal-bg");W&&_.o0(W)};
OAr=function(){return _.iO("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.xf("PromptCount").then(function(W){W||(W=0);return Promise.resolve(W<_.iO("service_worker_push_prompt_cap"))})};
X30=function(W){return _.md("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.md("LOGGED_IN")&&(W===void 0?0:W)?SgY().then(function(B){if(B)return!0;B=[OAr(),bAj()];_.md("LOGGED_IN")||B.push(j_f());return Promise.all(B).then(function(z){return z.every(function(G){return G})})}):Promise.resolve(!1)};
K8b=function(){_.xf("PromptCount").then(function(W){return _.eH("PromptCount",W+1)}).then(function(){return _.eH("PromptTime",Date.now())}).then(function(){var W=_.EA("service_worker_push_force_notification_prompt_tag");
if(W)return _.xf("PromptTags").then(function(B){var z=[];if(B)try{z=JSON.parse(B)}catch(G){return!1}z||(z=[]);z.push(W);return _.eH("PromptTags",JSON.stringify(z))})})};
ejb=function(){uNq||fnr()};
mMK=function(W){W.style.zIndex=2147483648;W.style.pointerEvents="auto";W.style.backgroundColor="rgba(0, 0, 0, 0.6)";W.style.width="100%";W.style.height="100vh";W.style.position="absolute";W.style.top="0";W.style.left="0";W.style.border="none"};
xMf=function(){var W=_.cA(document,"yt-push-prompt-modal-bg");uNq=_.r("service_worker_push_prompt_modal_ignore_click");W?mMK(W):(W=_.xi("div",{id:"yt-push-prompt-modal-bg"}),mMK(W),document.body.appendChild(W),_.Yvu(document,"click",ejb))};
DMi=function(){var W=arguments;_.r("service_worker_push_prompt_modal_enable")&&xMf();return Notification.requestPermission().then(function(B){fnr();var z=document.getElementById("ticker");z&&(z.className=z.classList.remove("show"));if(B=="granted")return hjO().then(function(){oO9(!1);F8f();return Promise.resolve(!0)});
B=="denied"&&F8f();return Promise.resolve(!1)}).catch(function(){fnr();
return Promise.reject.apply(Promise,_.u7(W))})};
Q_i=function(W){W=W===void 0?!1:W;var B=_.RMT().client;if(B&&B.browserVersion){var z=B.browserVersion,G=B.browserName=="CHROME"&&_.t0(z,"50.0.0")<0;B=B.browserName=="OPERA"&&_.t0(z,"42.0.0")<0;if(G||B)return Promise.resolve()}return _.Sw6().then(function(Y){if(!Y)return Promise.resolve();Y=hjO().then(function(){return HAO({type:"notifications_check_registration",data:_.eD("ID_TOKEN")})});
return Notification.permission!="default"?Y.catch(function(){}):Y.then(function(){return X30(W)}).then(function(d){if(d)return K8b(),DMi().then(function(){})}).catch(function(){})})};
yqi=function(W){return _.Hxi(W)?Q_i():Promise.resolve()};
qgb=function(W){var B=W.installing||W.waiting;return W.active||!B?Promise.resolve(W):new Promise(function(z){var G=function(Y){Y=Y.target;if(Y.state==="activated"||Y.state==="redundant")B.removeEventListener("statechange",G),z(W)};
B.addEventListener("statechange",G)})};
nO1=function(){var W=new _.YWD("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.wn(W,{mainAppWeb:_.GS()});var B=_.ynU;_.r("service_worker_forward_exp_params")&&(B=klq(B));try{var z=_.WJr(B).catch(function(){_.Vb(W,"FAILURE");return new Promise(function(){})});
_.r("service_worker_push_enabled")&&z.then(function(G){_.Vb(W,"SUCCESS");return G}).then(qgb).then(yqi)}catch(G){if(_.Vb(W,"FAILURE"),G.name!=="SecurityError")throw G;
}};
Nc1=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&nO1()};
$Mq=function(W,B){var z={};B&&(z.serializedYpcFamilyCreateLoggingParams=B);_.Sy(W,z);_.bp()};
L8Y=function(W,B){var z={};z.serializedYpcRefundFlowLoggingParams=B;W&&(z.eventType=W);_.Sy("ypcRefundFlowEvent",z);_.bp()};
UMb=function(W){W&&_.z4X("transactionFlowSucceeded",W)};
MLq=function(W){W&&_.PW("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
anf=function(W){var B,z,G,Y,d,E,v;_.T(function(c){if(c.nextAddress==1)return c.yield(_.K$R(),2);if(c.nextAddress!=3){if(!c.yieldResult)return c.return(!1);B=[];return c.yield(_.ZN.keys(),3)}z=c.yieldResult;G=_.A(z);for(Y=G.next();!Y.done;Y=G.next())d=Y.value,E=_.OcT(d),v=E.datasyncId,!v||W.includes(v)||B.push(_.ZN.delete(d));return c.return(Promise.all(B).then(function(J){return J.some(function(g){return g})}))})};
Rjf=function(){var W,B,z,G,Y,d,E;return _.T(function(v){if(v.nextAddress==1)return v.yield(_.K$R(),2);if(v.nextAddress!=3){if(!v.yieldResult)return v.return(!1);W=_.C4("cache contains other");return v.yield(_.ZN.keys(),3)}B=v.yieldResult;z=_.A(B);for(G=z.next();!G.done;G=z.next())if(Y=G.value,d=_.OcT(Y),(E=d.datasyncId)&&E!==W)return v.return(!0);return v.return(!1)})};
W9n=function(){var W=_.dO().resolve(_.Y8(_.msQ));return W?W.getCurrentTime():0};
BDr=function(){var W,B,z,G,Y,d,E,v,c,J,g,t,P,Z;return _.T(function(l){switch(l.nextAddress){case 1:W={},B=_.XX2(),z=_.A(Object.entries(B)),G=z.next();case 4:if(G.done){l.jumpTo(3);break}Y=G.value;d=_.A(Y);E=d.next().value;v=d.next().value;c=E;J=v;if(!J){l.jumpTo(5);break}return l.yield(J(),8);case 8:W[c]=l.yieldResult;case 5:G=z.next();l.jumpTo(4);break;case 2:g=_.A(void 0),t=g.next();case 9:if(t.done){l.jumpTo(3);break}P=t.value;Z=B[P];if(!Z){l.jumpTo(10);break}return l.yield(Z(),13);case 13:W[P]=
l.yieldResult;case 10:t=g.next();l.jumpTo(9);break;case 3:return l.return(W)}})};
zSY=function(){var W;_.T(function(B){if(B.nextAddress==1)return B.yield(BDr(),2);W=B.yieldResult;return B.yield(navigator.clipboard.writeText(JSON.stringify(W,null,2)),0)})};
GRj=function(W,B){return _.P3(W.entities,"superThanksSelectedTierEntity",B)};
Ylb=function(W,B){return{popup:{searchSuggestionReportDialog:{searchQuery:W,title:_.kq("SBOX_INAPPROPRIATE_TITLE"),suggestions:B,categoryLabel:_.kq("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.kq("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.kq("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.kq("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.kq("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.kq("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.kq("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.kq("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.kq("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.kq("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
d_1=function(W){var B,z,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a;return _.T(function(q){switch(q.nextAddress){case 1:return q.yield(_.kO(),2);case 2:return(B=q.yieldResult)?q.yield(_.kDR(B),3):q.return();case 3:z=q.yieldResult;if(!z)return q.return();Y=((G=z.offlineVideos)==null?void 0:G.length)||0;E=((d=z.offlinePlaylists)==null?void 0:d.length)||0;if(Y===0&&E===0)return q.return();v=0;if(z.offlineVideos)for(c=_.A(z.offlineVideos),J=c.next();!J.done;J=c.next())g=J.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
g.videoState&&(v+=1);W.offline_videos_count=Y.toString();_.r("kevlar_log_offline_current_network_type_ks")||(W.offline_current_network_type=(t=_.oOx())!=null?t:"CONN_INVALID");_.r("kevlar_log_updated_time_for_smart_downloads")&&(P=_.Y_().getState().entities,Z=_.ud(P),l=M40(P),W.offline_smart_downloads_last_sync_time_ms=Z.toString(),W.offline_smart_downloads_next_sync_time_ms=l.toString());W.offline_videos_playable=v.toString();W.offline_playlists_count=E.toString();z.offlineVideos&&(b=z.offlineVideos.reduce(function(n,
L){L.downloadedBytes&&(n+=Number(L.downloadedBytes));return n},0).toString())&&(W.offline_used_disk_space_bytes=b);
if(!((O=navigator)==null?0:(K=O.storage)==null?0:K.estimate)){q.jumpTo(4);break}return q.yield(navigator.storage.estimate(),5);case 5:e=q.yieldResult,W.offline_free_disk_space_bytes=(((a=e)==null?void 0:a.quota)||0).toString();case 4:W.offline_client_state=JSON.stringify(z),_.HG(q)}})};
pgj=function(W){W=_.A(W);for(var B=W.next(),z={};!B.done;z={setter$jscomp$5:void 0},B=W.next()){var G=B.value;B=G.params;G=G.service;B&&G&&(z.setter$jscomp$5=_.ONf[G],z.setter$jscomp$5&&B.forEach(function(Y){return function(d){var E=d.key;d=d.value;E&&d&&(0,Y.setter$jscomp$5)(E,d)}}(z)))}};
A8f=function(W){W=W.match(/(.*)::.*::.*/);if(W!==null)return W[1]};
isn=function(W){if(_.OU2()){var B=Object.keys(window.sessionStorage);B=_.A(B);for(var z=B.next();!z.done;z=B.next()){z=z.value;var G=A8f(z);G===void 0||W.includes(G)||self.sessionStorage.removeItem(z)}}};
E_f=function(){if(!_.OU2())return!1;var W=_.C4(),B=Object.keys(window.sessionStorage);B=_.A(B);for(var z=B.next();!z.done;z=B.next())if(z=A8f(z.value),z!==void 0&&z!==W)return!0;return!1};
E3=function(W,B,z){(_.r("desktop_keyboard_shortcut_usage_log")||z&&_.r("web_shorts_keyboard_shortcut_usage_log"))&&(B?_.ya.get(W):_.Qa.get(W))&&(W=B?_.n1.get(W):_.q9.get(W))&&_.RP(_.m1(),W)};
TDi=function(W,B){return W.findIndex(function(z){return z.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(B.keyCode):!1};
v_i=function(){var W,B;return typeof CSS!=="undefined"&&((B=(W=CSS).supports)==null?void 0:B.call(W,"selector(:has(*))"))};
c80=function(W){return W.visibility!=="hidden"&&W.display!=="none"};
VW9=function(W){if(v_i()||W.tagName!=="DETAILS"?!W.matches(wg1):W.querySelector("summary")!==null)return-1;W=W.getAttribute("tabindex")||"0";return Number(W)};
J8r=function(W){return W.some(function(B){return VW9(B)>0})};
g_6=function(W){if(W.textContent)return!0;if(W instanceof HTMLInputElement){if(!W.labels)return!1;W=_.A(W.labels);for(var B=W.next();!B.done;B=W.next())if(B.value.textContent)return!0}return!1};
tWb=function(W){return W.sort(function(B,z){return VW9(z)-VW9(B)})};
sEn=function(W){W=Array.from(W.querySelectorAll(wg1)).filter(function(B){return(c80(B.style)?c80(window.getComputedStyle(B)):!1)&&g_6(B)});
return J8r(W)?tWb(W):W};
Pa9=function(W){W=sEn(W);W.length>0&&W[0].focus()};
Zsi=function(W,B){B.stack&&(W.stack+="\n"+B.stack);return W};
la0=function(W){var B=Tj(W,"Content-Type");if(!B)return null;B=B.toLowerCase();if(B.startsWith("application/json"))return B.startsWith("application/json+protobuf")?new r8O:new _.o9;if(B.startsWith("application/x-protobuf")){W=Tj(W,"Content-Transfer-Encoding");if(!W)return new ve;if(W.toLowerCase()=="base64")return new kR0}return null};
jEO=function(W,B,z,G){var Y=new Caf(function(v,c){return IaY.has(c)?v.sentinel==="gal"&&v.event!==void 0:!1},function(v){v.event?(v=o_6(v.event),v=!v||hSi(G,v)?!0:_.oO(W.lastEvent,ce,2,wg)?!_.oO(v,V5,1,wg)&&!_.oO(v,ce,2,wg):!_.oO(v,V5,1,wg)&&!_.oO(v,ce,3,wg)):v=!0;
return v});
z=_.Pc(W.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Hs6(z)]]));if(W.nestedOrigins!==void 0)for(var d=_.A(W.nestedOrigins),E=d.next();!E.done;E=d.next())z=_.Pc(z,new Map([["origin",E.value]]));return F9f(Y,z,B).then(function(v){v=Sl1(v.event);if(_.oO(v,V5,1,wg)){var c,J=(c=_.xT(v,V5,1,wg))==null?void 0:_.u0(c,2);J&&G.JSC$19389_logErrorEvent(bsO(J));c=_.xT(v,V5,1,wg);_.u0(c,2)===4?(v=_.xT(v,V5,1,wg),v={statusCode:11,statusMessage:_.KV(v,
3)}):(v=_.xT(v,V5,1,wg),v={statusCode:12,statusMessage:_.KV(v,3)});return v}_.oO(v,ce,3,wg)?(v=_.xT(v,ce,3,wg),v={statusCode:1,consentLanguageKeys:_.KV(v,2)}):v={statusCode:1};return v}).catch(function(v){return v.errorCode!==void 0?{statusCode:v.errorCode,
statusMessage:v.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
K9i=function(W){var B={};if(W===void 0||W===null)return B;W.getToken()!==void 0&&faK(W.getToken())&&faK(W.getToken()).length>0&&(B.scopes=new Set(faK(W.getToken())));W.getToken()!==void 0&&OsK(W.getToken())&&OsK(W.getToken()).length>0&&(B.capabilities=new Set(OsK(W.getToken())));_.KV(W,3)!==void 0&&(B.consistencyKey=_.KV(W,3));W.getName()!==void 0&&W.getName()!==""&&(B.linkName=W.getName());_.IO(W,Xg6,4)&&(W=_.AD(W,Xg6,4),W=Object.assign({},_.KV(W,1)&&{userId:_.KV(W,1)},_.KV(W,2)&&{displayName:_.KV(W,
2)},_.KV(W,3)&&{email:_.KV(W,3)},_.KV(W,5)&&{username:_.KV(W,5)},_.KV(W,4)&&{profilePicture:_.KV(W,4)}),B.profile=W);return B};
utY=function(W,B){var z=W.flowParams,G;return{serviceId:z.serviceId,sessionId:z.sessionId,currentFlow:W.currentFlow,googleScopesString:B,linkingSessionSerialized:W.session.serialize(),consentLanguageKeys:z.consentLanguageKeys,callerState:W.callerState,dynamicUrlParameters:z.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(G=z.partnerConfigMinReadTimestamp)==null?void 0:G.serialize()}};
QEb=function(W){var B=W.googleScopes!==void 0?Array.from(W.googleScopes).join(","):"";eSr(utY(W,B));B=m_K(W);return B===null?Promise.resolve(x_j):B.start().then(function(z){var G,Y=(G=z.link)==null?void 0:G.consistencyKey;return z.statusCode===1&&W.googleScopes!==void 0&&W.googleScopes.size>0&&Y!==void 0?(G=W.flowParams,D_b(G.serviceId,G.sessionId,W.googleScopes,Y,G.galService,W.config,z)):z})};
y8b=function(W){var B=m_K(W);return B===null?Promise.resolve(J2({statusCode:7,statusMessage:"Failed to create flow object"},W.callerState)):B.complete().then(function(z){var G,Y=(G=z.link)==null?void 0:G.consistencyKey;return z.statusCode===1&&W.googleScopes!==void 0&&W.googleScopes.size>0&&Y!==void 0?(G=W.flowParams,D_b(G.serviceId,G.sessionId,W.googleScopes,Y,G.galService,W.config,z)):J2(z,W.callerState)},function(z){return J2({statusCode:12,
statusMessage:"Failed to complete the flow: "+z.message},W.callerState)})};
D_b=function(W,B,z,G,Y,d,E){return ql6(Y,{serviceId:W,sessionId:B,googleScopes:z,consistencyKey:G}).then(function(){return E},function(v){return Y.deleteLink({serviceId:W,
sessionId:B,accountLinkingEntryPoint:d.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+v.message}},function(c){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+c.message}})})};
m_K=function(W){switch(W.currentFlow){case 1:var B=W.flowParams;W=_.AD(W.session,n_r,1);return gg.createOAuthFlow(B,W);case 2:case 3:return B=W.flowParams,W=_.AD(W.session,ND0,6),t2.createStreamlinedFlow(B,W);default:return null}};
$_1=function(W,B){W===2&&(W=3);var z=0;s3.indexOf(W)!==-1&&(z=s3.indexOf(W)+1);for(W=z;W<s3.length;W++)if(B.has(s3[W]))return s3[W]};
MWb=function(W){var B=W.serviceId;var z=W.sessionId;var G=W.config;var Y=W.galService;var d=W.capabilities;var E=W.scopes;var v=W.loginHint;var c=W.callerState;var J=W.consentLanguageKeys;var g=W.linkName;var t=W.dynamicUrlParameters;var P=W.partnerConfigMinReadTimestamp;W=G.dataUsageNoticeConfig?G.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return Y.startLinkingSession({serviceId:B,sessionId:z,capabilities:d,scopes:E,loginHint:v,callerState:c,supportedFlows:L99(G.supportedFlows),completionUrl:G.completionUrl,
accountLinkingEntryPoint:G.accountLinkingEntryPoint,consentLanguageKeys:J,dataUsageNoticeConfig:W,linkName:g,dynamicUrlParameters:t,partnerConfigMinReadTimestamp:P}).then(function(Z){return new U_9(B,z,G,Y,Z,void 0,c,J,t,P)})};
GSb=function(W,B,z){var G=(new aa9).getSession(W);if(G===null)return Promise.resolve({statusCode:2});RSj(W);var Y=Ws0(G.linkingSessionSerialized),d=G.googleScopesString!==""&&G.googleScopesString!==void 0?new Set(G.googleScopesString.split(",")):void 0,E=G.partnerConfigMinReadTimestampSerialized?B50(G.partnerConfigMinReadTimestampSerialized):void 0;return zRY(new U_9(W,G.sessionId,B,z,Y,d,G.callerState,G.consentLanguageKeys,G.dynamicUrlParameters,E),G.currentFlow,G.consentLanguageKeys)};
eSr=function(W){var B=new aa9;B.storage!==null&&B.storage.set("SAVED_SESSION",W)};
RSj=function(W){var B=new aa9;if(B.storage!==null){var z=B.storage.get("SAVED_SESSION");z!==void 0&&z.serviceId===W&&B.storage.remove("SAVED_SESSION")}};
L99=function(W){var B=new Set;W=_.A(W);for(var z=W.next();!z.done;z=W.next())z=z.value,z!==1&&YRb.has(z)&&B.add(YRb.get(z));return B};
J2=function(W,B){B!==void 0&&(W.callerState=B);return W};
dJf=function(W){switch(W){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
io1=function(W){return new pfj(W,new AH0(W))};
vw1=function(W,B){B=B===void 0?!1:B;var z=document.createElement("div");W&&(z.style.transform="scaleX(-1)");z.style.backgroundColor=B?"rgba(138,180,248,.24)":"#e8f0fe";z.style.height="4px";z.style.overflow="hidden";z.style.position="absolute";z.style.top="0";z.style.width="100%";z.style.zIndex="1500";z.setAttribute("aria-label","Loading");z.setAttribute("aria-live","polite");W=document.createElement("style");W.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  }";
z.appendChild(W);W=Ewq();W.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";W.style.left="-145.166611%";var G=T5r(B);G.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";W.appendChild(G);z.appendChild(W);W=Ewq();W.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";W.style.left="-54.888891%";B=T5r(B);B.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
W.appendChild(B);z.appendChild(W);return z};
Ewq=function(){var W=document.createElement("div");W.style.height="100%";W.style.position="absolute";W.style.transformOrigin="top left";W.style.width="100%";return W};
T5r=function(W){var B=document.createElement("span");B.style.borderTop=W?"4px solid #669df6":"4px solid #4285f4";B.style.display="inline-block";B.style.position="absolute";B.style.width="100%";return B};
cHr=function(W){return W==null?void 0:_.tNd(W).valueOf()};
gwf=function(W){var B=document.body,z=!1,G=function(){z||(z=!0,wfY(Y,d),setTimeout(function(){B.removeChild(d);B.removeChild(Y)},150))},Y=VJf(W,getComputedStyle(B).direction==="rtl",G),d=JHi(G);
wfY(Y,d);B.appendChild(d);B.appendChild(Y);window.requestAnimationFrame(function(){d.style.opacity="1";Y.style.opacity="1";Y.style.transform="translate(-50%, -50%) scale(1)";Y.children[0].focus()})};
VJf=function(W,B,z){var G=document.createElement("div");G.style.position="fixed";G.style.alignItems="center";G.style.backgroundColor=W?"rgb(32, 33, 36)":"white";G.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";G.style.display="flex";G.style.flexDirection="column";G.style.justifyContent="center";G.style.left="50%";G.style.top="50%";G.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";G.style.zIndex="2002";document.body.clientWidth>=
660?(G.style.borderRadius="8px",G.style.minHeight="220px",G.style.maxHeight="90%",G.style.maxWidth="90%",G.style.minWidth="540px"):(G.style.height="100%",G.style.width="100%");G.setAttribute("aria-label","Error");G.setAttribute("aria-modal","true");G.setAttribute("role","alertdialog");G.addEventListener("keydown",function(d){d.key==="Escape"&&z()});
B=tJ0(W,B,z);G.appendChild(sNn(B));G.appendChild(B);var Y=document.createElement("img");Y.src=W?"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";Y.style.height="72px";Y.style.width="72px";Y.style.color="#9aa0a6";Y.setAttribute("alt","");G.appendChild(Y);Y=document.createElement("h1");Y.textContent="Something went wrong.  Try again.";
Y.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";Y.style.lineHeight="24px";Y.style.fontSize="16px";Y.style.textAlign="center";Y.style.letterSpacing="0.1px";Y.style.color=W?"rgb(232,234,237)":"#3c4043";G.appendChild(Y);G.appendChild(sNn(B));return G};
tJ0=function(W,B,z){var G=document.createElement("button");G.style.backgroundColor="transparent";G.style.border="none";G.style.borderRadius="50%";G.style.cursor="pointer";G.style.outline="none";G.style.padding="12px";G.setAttribute("aria-label","Close dialog");G.style.position="absolute";G.style.top="0";B?G.style.right="0":G.style.left="0";G.addEventListener("focus",function(){G.style.backgroundColor=W?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
G.addEventListener("blur",function(){G.style.backgroundColor="transparent"});
G.addEventListener("mouseenter",function(){G.style.backgroundColor=W?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
G.addEventListener("mouseleave",function(){G.style.backgroundColor="transparent"});
G.addEventListener("click",z);G.addEventListener("keydown",function(Y){Y.key!=="Enter"&&Y.key!=="Space"||z()});
B=document.createElement("img");B.src=W?"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";B.style.display="block";B.style.height="24px";B.style.width="24px";B.setAttribute("alt","");G.appendChild(B);return G};
sNn=function(W){var B=document.createElement("div");B.setAttribute("tabindex","0");B.setAttribute("aria-hidden","true");B.addEventListener("focus",function(){return void W.focus()});
return B};
JHi=function(W){var B=document.createElement("div");B.style.backgroundColor="rgba(32,33,36,0.6)";B.style.bottom="0";B.style.left="0";B.style.position="fixed";B.style.right="0";B.style.top="0";B.style.transition=" opacity 150 ms linear";B.style.zIndex="2001";B.addEventListener("click",W);return B};
wfY=function(W,B){B.style.opacity="0";W.style.opacity="0";W.style.transform="translate(-50%, -50%) scale(0.8)"};
PPi=function(W,B){W.sandbox&&W.sandbox.add&&(W.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),W.sandbox.add("allow-downloads"));W.src=B};
Pe=function(W){Zo6.call(this,W)};
Zx=function(W,B){B=B===void 0?!1:B;this.parsedImageUrl_=null;W instanceof rHK||(kSr==void 0&&(kSr=new l8O),W=kSr.parse(W.toString(),B));W=this.parsedImageUrl_=W;W.JSC$19601_parsedOptions_==void 0&&((B=W.getOptions())||(B=""),W.JSC$19601_parsedOptions_=(new CPb).parse(B));Zo6.call(this,W.JSC$19601_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;W=this.parsedImageUrl_;B=W.uri_.JSC$10032_port_;this.JSC$19603_domain_=W.uri_.JSC$10032_domain_+(B?":"+B:"");this.JSC$19603_query_=
this.parsedImageUrl_.uri_.JSC$10032_queryData_.toString()};
I8r=function(W){this.mode=4;this.data=W;this.parsedData=[];W=0;for(var B=this.data.length;W<B;W++){var z=[],G=this.data.charCodeAt(W);G>65536?(z[0]=240|(G&1835008)>>>18,z[1]=128|(G&258048)>>>12,z[2]=128|(G&4032)>>>6,z[3]=128|G&63):G>2048?(z[0]=224|(G&61440)>>>12,z[1]=128|(G&4032)>>>6,z[2]=128|G&63):G>128?(z[0]=192|(G&1984)>>>6,z[1]=128|G&63):z[0]=G;this.parsedData.push(z)}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))};
owr=function(W){this.typeNumber=0;this.errorCorrectLevel=W===void 0?2:W;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
rg=function(W,B){if(W.length==void 0)throw Error("Hk`"+W.length+"`"+B);for(var z=0;z<W.length&&W[z]==0;)z++;this.num=Array(W.length-z+B);for(B=0;B<W.length-z;B++)this.num[B]=W[B+z]};
hRr=function(W,B){this.totalCount=W;this.dataCount=B};
Ho0=function(){this.buffer=[];this.length=0};
Fs6=function(){var W=!1;if(_.J0D()){W=_.Py();var B="";_.sD0()?(B=/Windows (?:NT|Phone) ([0-9.]+)/,B=(W=B.exec(W))?W[1]:"0.0"):_.bx()?(B=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,B=(W=B.exec(W))&&W[1].replace(/_/g,".")):_.tQ0()?(B=/Mac OS X ([0-9_.]+)/,B=(W=B.exec(W))?W[1].replace(/_/g,"."):"10"):_.wk(_.Py(),"KaiOS")?(B=/(?:KaiOS)\/(\S+)/i,B=(W=B.exec(W))&&W[1]):_.J0D()?(B=/Android\s+([^\);]+)(\)|;)/,B=(W=B.exec(W))&&W[1]):_.Pxr()&&(B=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,B=(W=B.exec(W))&&W[1]);W=
B||""}return W};
Xf0=function(W,B){this.JSC$19626__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(B)for(var z in B)this.JSC$19626__htOption[z]=B[z];this.JSC$19626__htOption.useSVG&&(SRO=bo6);this.JSC$19626__android=Fs6();this.JSC$19626__el=W;this._oQRCode=null;this._oDrawing=new SRO(this.JSC$19626__el,this.JSC$19626__htOption);this.JSC$19626__htOption.text&&(W=this.JSC$19626__htOption.text,this._oQRCode=new owr(this.JSC$19626__htOption.correctLevel),jNr(this._oQRCode,
W),B=this._oQRCode,f8j(B,!1,Ooj(B)),this.JSC$19626__el.title=W,this._oDrawing.draw(this._oQRCode),this.makeImage())};
Ksq=function(W,B,z,G,Y){W.save();var d=new Path2D;d.roundRect(B,z,G*7,G*7,G*2);d.roundRect(B+G,z+G,G*5,G*5,G*1.3);d.roundRect(B+2*G,z+2*G,G*3,G*3,G);W.clip(d,"evenodd");W.fillStyle=Y;W.fillRect(0,0,W.canvas.width,W.canvas.height);W.restore()};
kJ=function(W,B){if(typeof W!=="function")throw Error("Kk");return _.Yt.setTimeout(function(){W()},B)};
lW=function(){};
eRn=function(W,B,z,G,Y){(new lW).debug("TestLoadImageWithRetries: "+Y);if(G==0)z(!1);else{var d=Y||0;G--;u4q(W,B,function(E){E?z(!0):_.Yt.setTimeout(function(){eRn(W,B,z,G,d)},d)})}};
u4q=function(W,B,z){var G=new lW;G.debug("TestLoadImage: loading "+W);var Y=new Image;Y.onload=function(){try{G.debug("TestLoadImage: loaded"),mJq(Y),z(!0)}catch(d){}};
Y.onerror=function(){try{G.debug("TestLoadImage: error"),mJq(Y),z(!1)}catch(d){}};
Y.onabort=function(){try{G.debug("TestLoadImage: abort"),mJq(Y),z(!1)}catch(d){}};
Y.ontimeout=function(){try{G.debug("TestLoadImage: timeout"),mJq(Y),z(!1)}catch(d){}};
_.Yt.setTimeout(function(){if(Y.ontimeout)Y.ontimeout()},B);
Y.src=W};
mJq=function(W){W.onload=null;W.onerror=null;W.onabort=null;W.ontimeout=null};
xJq=function(){this.front_=[];this.back_=[]};
DJb=function(W,B){this.action=W;this.params=B||{}};
QNj=function(W,B){_.bA.call(this);this.delay_=new _.fp(this.JSC$19752_onTick_,0,this);_.rH(this,this.delay_);this.JSC$19750_interval_=5E3;this.nextTickTime_=0;if(typeof W==="function")B&&(W=(0,_.jk)(W,B));else if(W&&typeof W.handleEvent==="function")W=(0,_.jk)(W.handleEvent,W);else throw Error("ya");this.JSC$19752_listener_=W};
CK=function(W,B,z,G,Y,d,E,v,c,J,g,t,P,Z){z=z===void 0?!1:z;G=G===void 0?function(){return""}:G;
Y=Y===void 0?!1:Y;d=d===void 0?!1:d;E=E===void 0?!1:E;v=v===void 0?function(){return _.gV({})}:v;
c=c===void 0?!1:c;g=g===void 0?!1:g;t=t===void 0?!1:t;P=P===void 0?!1:P;Z=Z===void 0?!1:Z;this.JSC$19753_pathPrefix_=W;this.defaultQueryParams_=B;this.pubsub_=new _.PS;this.reconnectTimer_=new QNj(this.safeReconnect_,this);this.JSC$19753_channel_=null;this.JSC$19753_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19753_pendingMessages_=[];this.enableAsyncTest_=z;this.JSC$19753_getXsrfToken_=G;this.useAsyncBrowserChannelHandler_=d;this.getAuthorizationHeader_=
v;this.getAuthorizationHeaderSync_=J;this.enableCachedUpdateAuthorizationHeader_=E;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.gV();this.enableLoungeTokenRefresh_=Y;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=c;this.disableMdxAuthForNonPlaybackMessages_=g;this.disableMdxAuthForAdMessages_=t;this.enableMdxAuthForConnectionOnly_=P;this.disableMdxAuthForShortsMessages_=Z;this.JSC$19753_channelOpenedCounter=new yHi;this.JSC$19753_channelClosedCounter=new qRi;this.channelMessageSentCounter=
new nwi;this.JSC$19753_channelMessageReceivedCounter=new N5j;this.JSC$19753_channelErrorCounter=new $JK;this.pendingMapsOnClosedCounter=new Ls6;this.undeliveredMapsOnClosedCounter=new UJf};
It=function(W){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;W=W||document.location.href;var B=Number(_.RJ(W)[4]||null)||"";B&&(this.port=":"+B);this.domain=_.WS(W)||"";W=_.Py();W.search("MSIE")>=0&&_.t0(W.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
ot=function(W){W=W||{};this.name=W.name||"";this.id=W.id||W.screenId||"";this.token=W.token||W.loungeToken||"";this.uuid=W.uuid||W.dialId||"";this.idType=W.screenIdType||"normal"};
MJf=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(W){var B=Math.random()*16|0;return(W=="x"?B:B&3|8).toString(16)})};
a8Y=function(W){return _.xH(W,function(B){return{key:B.id,name:B.name}})};
RRi=function(W,B){return _.OX(W,function(z){return z||B?!z!=!B?!1:z.id==B.id:!0})};
He=function(W,B){return _.OX(W,function(z){return h2(z,B)})};
YV0=function(){var W=WR9(),B=Baf();if(zqb()){var z=W,G=_.HuT(z,B);G<0&&_.Iv2(z,-(G+1),0,B)}W=Gsf(W);if(W.length==0)try{_.klT("remote_sid")}catch(Y){}else try{_.k8("remote_sid",W.join(","),-1)}catch(Y){}};
WR9=function(){var W=_.QL("yt-remote-connected-devices")||[];W.sort(_.h88);return W};
Gsf=function(W){if(W.length==0)return[];var B=W[0].indexOf("#"),z=B==-1?W[0]:W[0].substring(0,B);return _.xH(W,function(G,Y){return Y==0?G:G.substring(z.length)})};
dHr=function(W){_.Da("yt-remote-connected-devices",W,86400)};
Baf=function(){if(pJq)return pJq;var W=_.QL("yt-remote-device-id");W||(W=MJf(),_.Da("yt-remote-device-id",W,31536E3));for(var B=WR9(),z=1,G=W;_.xt(B,G);)z++,G=W+"#"+z;return pJq=G};
AVq=function(){return _.QL("yt-remote-session-browser-channel")};
zqb=function(){return _.QL("yt-remote-session-screen-id")};
Ta9=function(W){W.length>5&&(W=W.slice(W.length-5));var B=_.xH(i8f(),function(G){return G.loungeToken}),z=_.xH(W,function(G){return G.loungeToken});
_.bnt(z,function(G){return!_.xt(B,G)})&&EBj();
_.Da("yt-remote-local-screens",W,31536E3)};
i8f=function(){return _.QL("yt-remote-local-screens")||[]};
EBj=function(){_.Da("yt-remote-lounge-token-expiration",!0,86400)};
Fg=function(W){W||(_.yL("yt-remote-session-screen-id"),_.yL("yt-remote-session-video-id"));YV0();W=WR9();_.Dv(W,Baf());dHr(W)};
cVi=function(){vBY();return S$?!!S$.get("yt-remote-use-staging-server"):!1};
vBY=function(){if(!S$){var W=_.bAD();W&&(S$=new _.hC(W))}};
gBi=function(W,B,z,G,Y){z=z===void 0?function(){return""}:z;
var d=function(){return new CK(bW(W,"/bc"),B,!1,z,G)};
return _.r("enable_mdx_web_channel_desktop")?new wJ9(function(){return new VKi(bW(W,"/wc"),B,z)}):new JVb(d,Y)};
Z8i=function(){var W=tK1;sB9();j$.push(W);Pg9()};
fK=function(W,B){sB9();var z=rVb(W,String(B));j$.length==0?ksf(z):(Pg9(),_.$r(j$,function(G){G(z)}))};
O3=function(W){fK("CP",W)};
sB9=function(){j$||(j$=_.q6("yt.mdx.remote.debug.handlers_")||[],_.BV("yt.mdx.remote.debug.handlers_",j$))};
ksf=function(W){var B=(Xg+1)%50;Xg=B;lrY[B]=W;CgO||(CgO=B==49)};
Pg9=function(){var W=j$;if(lrY[0]){var B=CgO?Xg:-1,z={};do z={record$jscomp$15:void 0},B=(B+1)%50,z.record$jscomp$15=lrY[B],_.$r(W,function(G){return function(Y){Y(G.record$jscomp$15)}}(z));
while(B!=Xg);lrY=Array(50);Xg=-1;CgO=!1}};
rVb=function(W,B){var z=(Date.now()-Irq)/1E3;z.toFixed&&(z=z.toFixed(3));var G=[];G.push("[",z+"s","] ");G.push("[","yt.mdx.remote","] ");G.push(W+": "+B,"\n");return G.join("")};
KK=function(W){_.Dg.call(this);this.JSC$19777_logName_=W;this.screens=[]};
e$=function(W){KK.call(this,"LocalScreenService");this.JSC$19784_http_=W;this.loungeTokenRefreshTimer_=NaN;uW(this);this.info("Initializing with "+oBi(this.screens))};
mK=function(W,B){B=B===void 0?!1:B;KK.call(this,"ScreenService");this.JSC$19790_http_=W;this.disableAutomaticScreenCache_=B;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};hq6(this)};
xJ=function(W,B,z){_.Dg.call(this);this.JSC$19794_logName_=z;this.JSC$19794_screenService_=W;this.receiver_=B;this.screen_=null};
yVO=function(W,B,z){z.disableCastApi?Dx("Cannot initialize because disabled by Mdx config."):H8i()?FRf(W,z)&&(SVi(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?b8q(B):(window.__onGCastApiAvailable=function(G,Y){G?b8q(B):(Q5("Failed to load cast API: "+Y),jBK(!1),SVi(!1),_.yL("yt-remote-cast-available"),_.yL("yt-remote-cast-receiver"),frj(),B(!1))},z.loadCastApiSetupScript?_.NO(O81):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
XJK()>=60&&KRj():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?uFY():XJK()>=89?eqi():(mHi(),xH1(DHO.map(QBi))))):Dx("Cannot initialize because not running Chrome")};
frj=function(){Dx("dispose");var W=y5();W&&W.dispose();_.BV("yt.mdx.remote.cloudview.instance_",null);qVn(!1);_.EGD(nBj);nBj.length=0};
Naq=function(){return!!_.QL("yt-remote-cast-installed")};
$HO=function(){var W=_.QL("yt-remote-cast-receiver");return W?W.friendlyName:null};
LRY=function(){Dx("clearCurrentReceiver");_.yL("yt-remote-cast-receiver")};
UH1=function(){return Naq()?y5()?y5().getCastSession():(Q5("getCastSelector: Cast is not initialized."),null):(Q5("getCastSelector: Cast API is not installed!"),null)};
ar9=function(W,B){MKr()?y5().setConnectedScreenStatus(W,B):Q5("setConnectedScreenStatus called before ready.")};
H8i=function(){var W=_.Py().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.ZJ||W};
FRf=function(W,B){var z=!1;y5()||(W=new qY(W,B),W.subscribe("yt-remote-cast2-availability-change",function(G){_.Da("yt-remote-cast-available",G);RU("yt-remote-cast2-availability-change",G)}),W.subscribe("yt-remote-cast2-receiver-selected",function(G){Dx("onReceiverSelected: "+G.friendlyName);
_.Da("yt-remote-cast-receiver",G);RU("yt-remote-cast2-receiver-selected",G)}),W.subscribe("yt-remote-cast2-receiver-resumed",function(G){Dx("onReceiverResumed: "+G.friendlyName);
_.Da("yt-remote-cast-receiver",G);RU("yt-remote-cast2-receiver-resumed",G)}),W.subscribe("yt-remote-cast2-session-change",function(G){Dx("onSessionChange: "+RqY(G));
G||_.yL("yt-remote-cast-receiver");RU("yt-remote-cast2-session-change",G)}),_.BV("yt.mdx.remote.cloudview.instance_",W),z=!0);
Dx("cloudview.createSingleton_: "+z);return z};
y5=function(){return _.q6("yt.mdx.remote.cloudview.instance_")};
b8q=function(W){jBK(!0);SVi(!1);y5().init(!1,function(B){B?(qVn(!0),_.TSX("yt-remote-cast2-api-ready")):(Q5("Failed to initialize cast API."),jBK(!1),_.yL("yt-remote-cast-available"),_.yL("yt-remote-cast-receiver"),frj());W(B)})};
Dx=function(W){fK("cloudview",W)};
Q5=function(W){fK("cloudview",W)};
jBK=function(W){Dx("setCastInstalled_ "+W);_.Da("yt-remote-cast-installed",W)};
MKr=function(){return!!_.q6("yt.mdx.remote.cloudview.apiReady_")};
qVn=function(W){Dx("setApiReady_ "+W);_.BV("yt.mdx.remote.cloudview.apiReady_",W)};
SVi=function(W){_.BV("yt.mdx.remote.cloudview.initializing_",W)};
nK=function(W){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(W)};
p2r=function(W){vBY();if(!S$||!S$.get("yt-remote-disable-remote-module-for-dev")){W=_.eD("MDX_CONFIG")||W;cq9();YV0();NY||(NY=new It(W?W.loungeApiHost:void 0),cVi()&&(NY.basePath="/api/loungedev"));$J||($J=_.q6("yt.mdx.remote.deferredProxies_")||[],_.BV("yt.mdx.remote.deferredProxies_",$J));WT6();var B=LK();if(!B){var z=new mK(NY,W?W.disableAutomaticScreenCache||!1:!1);_.BV("yt.mdx.remote.screenService_",z);B=LK();var G={};W&&(G={appId:W.appId,disableDial:W.disableDial,theme:W.theme,loadCastApiSetupScript:W.loadCastApiSetupScript,
disableCastApi:W.disableCastApi,enableDialLoungeToken:W.enableDialLoungeToken,enableCastLoungeToken:W.enableCastLoungeToken,forceMirroring:W.forceMirroring});_.BV("yt.mdx.remote.enableConnectWithInitialState_",W?W.enableConnectWithInitialState||!1:!1);yVO(z,function(d){d?U3()&&ar9(U3(),"YouTube TV"):z.subscribe("onlineScreenChange",function(){RU("yt-remote-receiver-availability-change")})},G)}if(W&&!_.q6("yt.mdx.remote.initialized_")){_.BV("yt.mdx.remote.initialized_",!0);
MY("Initializing: "+(0,_.yy)(W));at.push(_.ip("yt-remote-cast2-api-ready",function(){RU("yt-remote-api-ready")}));
at.push(_.ip("yt-remote-cast2-availability-change",function(){RU("yt-remote-receiver-availability-change")}));
at.push(_.ip("yt-remote-cast2-receiver-selected",function(){BSi();RU("yt-remote-auto-connect","cast-selector-receiver")}));
at.push(_.ip("yt-remote-cast2-receiver-resumed",function(){RU("yt-remote-receiver-resumed","cast-selector-receiver")}));
at.push(_.ip("yt-remote-cast2-session-change",zIf));at.push(_.ip("yt-remote-connection-change",function(d){d?ar9(U3(),"YouTube TV"):GG9()||(ar9(null,null),LRY())}));
at.push(_.ip("yt-remote-cast2-session-failed",function(){RU("yt-remote-connection-failed")}));
G=YvO();W.isAuto&&(G.id+="#dial");var Y=W.capabilities||[];Y.length>0&&(G.capabilities=Y);G.name=W.device;G.app=W.app;(W=W.theme)&&(G.theme=W);MY(" -- with channel params: "+(0,_.yy)(G));G?(_.Da("yt-remote-session-app",G.app),_.Da("yt-remote-session-name",G.name)):(_.yL("yt-remote-session-app"),_.yL("yt-remote-session-name"));_.BV("yt.mdx.remote.channelParams_",G);B.start();U3()||dEY()}}};
iyf=function(){var W=LK().instance_.$_gos();var B=AY9();B&&Rt()&&(RRi(W,B)||W.push(B));return a8Y(W)};
EGj=function(){var W=iyf(),B=AY9();B||(B=GG9());return _.OX(W,function(z){return B&&h2(B,z.key)?!0:!1})};
AY9=function(){var W=U3();if(!W)return null;var B=LK().getScreens();return He(B,W)};
zIf=function(W){MY("remote.onCastSessionChange_: "+RqY(W));if(W){var B=AY9();if(B&&B.id==W.id){if(ar9(B.id,"YouTube TV"),W.idType=="shortLived"&&(W=W.token))TSb&&(TSb.token=W),(B=Rt())&&B.setLoungeToken(W)}else B&&vGf(),cYf(W,1)}else Rt()&&vGf()};
vGf=function(){MKr()?y5().stopSession():Q5("stopSession called before API ready.");var W=Rt();W&&(W.disconnect(1),w2Y(null))};
VXY=function(){var W=Rt();return W&&W.getProxyState()!=3?new Wa(Rt(),void 0):null};
MY=function(W){fK("remote",W)};
LK=function(){if(!JYq){var W=_.q6("yt.mdx.remote.screenService_");JYq=W?new gGi(W):null}return JYq};
U3=function(){return _.q6("yt.mdx.remote.currentScreenId_")};
tXf=function(W){_.BV("yt.mdx.remote.currentScreenId_",W)};
BSi=function(){_.BV("yt.mdx.remote.connectData_",null)};
Rt=function(){return _.q6("yt.mdx.remote.connection_")};
w2Y=function(W){var B=Rt();BSi();W||tXf("");_.BV("yt.mdx.remote.connection_",W);$J&&(_.$r($J,function(z){z(W)}),$J.length=0);
B&&!W?RU("yt-remote-connection-change",!1):!B&&W&&RU("yt-remote-connection-change",!0)};
GG9=function(){var W=zqb();if(!W)return null;var B=LK();if(!B)return null;B=B.getScreens();return He(B,W)};
cYf=function(W,B){sKK?TSb=W:(tXf(W.id),W=new Ba(NY,W,YvO(),_.q6("yt.mdx.remote.enableConnectWithInitialState_")||!1),W.connect(B,_.q6("yt.mdx.remote.connectData_")),W.subscribe("beforeDisconnect",function(z){RU("yt-remote-before-disconnect",z)}),W.subscribe("beforeDispose",function(){Rt()&&w2Y(null)}),W.subscribe("browserChannelAuthError",function(){var z=AY9();
z&&z.idType=="shortLived"&&(MKr()?y5().handleBrowserChannelAuthError():Q5("refreshLoungeToken called before API ready."))}),w2Y(W))};
dEY=function(){var W=GG9();W?(MY("Resume connection to: "+RqY(W)),cYf(W,0)):(Fg(),LRY(),MY("Skipping connecting because no session screen found."))};
WT6=function(){var W=YvO();if(_.mP.isEmpty(W)){W=Baf();var B=_.QL("yt-remote-session-name")||"",z=_.QL("yt-remote-session-app")||"";W={device:"REMOTE_CONTROL",id:W,name:B,app:z,mdxVersion:3};W.authuser=String(_.eD("SESSION_INDEX","0"));(B=_.eD("DELEGATED_SESSION_ID"))&&(W.pageId=String(B));_.BV("yt.mdx.remote.channelParams_",W)}};
YvO=function(){return _.q6("yt.mdx.remote.channelParams_")||{}};
PF6=function(){var W,B;return _.T(function(z){if(z.nextAddress==1)return(_.NaT()||_.r("use_new_nwl"))&&_.QBk().isNetworkAvailable()?z.yield(_.zU(),2):z.return();if(z.nextAddress!=3)return(W=z.yieldResult)?z.yield(X0O(W),3):z.return();B=z.yieldResult;if(!B.length)return z.return();B.forEach(function(G){var Y={timestamp:G.timestamp};G=G.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:G.appShellAssetLoadReport,options:Y}:G.clientError?{payloadName:"clientError",payload:G.clientError,
options:Y}:void 0;G&&_.Sy(G.payloadName,G.payload,G.options)});
B.length===100&&_.fg.addLowPriorityJob(PF6);_.HG(z)})};
Zy0=function(W){if(W.playerResponse){if(W=W.playerResponse,W.messages&&W.messages.length>0&&(W=W.messages.find(function(B){return!(!B||!B.mealbarPromoRenderer)}))&&W.mealbarPromoRenderer)return W.mealbarPromoRenderer}else if(W.response&&(W=W.response)&&W.overlay&&W.overlay.mealbarPromoRenderer)return W.overlay.mealbarPromoRenderer};
rYi=function(W){if(W.response){var B=W.response;if(B&&B.overlay&&B.overlay.tooltipRenderer)return B.overlay.tooltipRenderer}if(W.playerResponse&&(W=W.playerResponse,W.messages&&W.messages.length>0&&(W=W.messages.find(function(z){return!(!z||!z.tooltipRenderer)}))&&W.tooltipRenderer))return W.tooltipRenderer};
lN9=function(W){if(!kG6&&(W=W||_.eD("ZWIEBACK_PING_URLS"))&&W.length){kG6=!0;for(var B=0;B<W.length;B++)_.ys(W[B])}};
IN0=function(W){if(_.mP.get(_.eD("PLAYER_VARS",{}),"privembed",!1)!="1"){W&&oqi();try{CFn().then(function(){},function(){}),_.cS(IN0,18E5)}catch(B){_.xr(B)}}};
oGb=function(){var W=_.IP(),B=W.getFlag(119),z=window.devicePixelRatio>1;document.body&&_.Yc(document.body,"exp-invert-logo")&&(z&&!_.Yc(document.body,"inverted-hdpi")?_.Ev(document.body,"inverted-hdpi"):!z&&_.Yc(document.body,"inverted-hdpi")&&_.AY(document.body,"inverted-hdpi"));B!=z&&(_.oP(0,119,z),W.save())};
hI9=function(W){return W.filter(function(B){return"ypcGetCartEndpoint"in B||"ypcFixInstrumentEndpoint"in B})};
Hyf=function(W){return W.filter(function(B){return!_.k(B,_.XNM)})};
Svn=function(W,B){var z,G,Y,d,E,v,c;_.T(function(J){switch(J.nextAddress){case 1:z=_.m9.getInstance();G=_.IB.instance;Y=_.RK.instance;if(!Y)return FTO(W,G,B),J.return();_.kA(J,2);W.onLoadingCommand&&G.resolveCommand(W.onLoadingCommand);return J.yield(z.getCurrentPositionFromGeolocation(),4);case 4:d=J.yieldResult;if(!W.resolveLocationCommand){J.jumpTo(5);break}E=z.createLocationInfo(d);return J.yield(_.BA(Y,W.resolveLocationCommand,{locationInfo:E}),6);case 6:v=J.yieldResult;if(!v||"error"in v&&v.error||
v.errorMetadata)return FTO(W,G,B),J.return();var g;if(v==null?0:(g=v.onResponseReceivedActions)==null?0:g.length){g=_.A(v.onResponseReceivedActions);for(var t=g.next();!t.done;t=g.next())G.resolveCommand(t.value)}(_.k(W.onSuccessCommand,_.W0)||_.k(W.onSuccessCommand,_.oE))&&_.v0(B.hostElement,"yt-navigate",{endpoint:W.onSuccessCommand,reload:!0});case 5:_.Nn(J,0);break;case 2:c=_.h6(J);if(c instanceof GeolocationPositionError&&c.code===GeolocationPositionError.PERMISSION_DENIED)return W.onDeniedCommand&&
G.resolveCommand(W.onDeniedCommand),J.return();FTO(W,G,B);_.HG(J)}})};
FTO=function(W,B,z){W.onFailureCommand&&(B.resolveCommand(W.onFailureCommand),_.c0(z.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
jKi=function(W,B){var z=_.k(W,_.J4U);if(z&&B){W=z.videoIds||[z.videoId];var G;B=(G=_.v0(B,"yt-lockup-requested",{videoIds:W}).detail)==null?void 0:G.returnValue;var Y;z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?Y=B?B:W.map(function(d){return{videoId:d,navigationEndpoint:z.videoCommand}}):B&&(Y=B);
Y&&(G=Y.map(function(d){var E=Object,v=E.assign;var c=d.navigationEndpoint;if(!_.k(c,_.SW)){var J=_.k(c,_.W0);if(J){if(delete J.index,delete J.playlistId,J=_.k(c==null?void 0:c.commandMetadata,_.Z4),J==null?0:J.url){var g=J.url;g=_.dV(g,"list");g=_.dV(g,"index");J.url=g}}else c=void 0}return v.call(E,{},d,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:c})}),byn(G,z))}};
fNY=function(W){var B=_.sr();if(W=_.k(W,_.gc7))W.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&B.clearQueue(),W.closeMiniplayer&&_.dO().resolve(_.Qb).close(!0)};
X2i=function(W){Oyn(_.sr(),W)};
KTf=function(W){var B;(W=(B=_.k(W,_.wr4))==null?void 0:B.setVideoIds)&&W.forEach(function(z){_.LnT(_.sr(),z)})};
eIO=function(W){umO(_.sr(),W)};
mEb=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(W){return!1}};
xEb=function(W){var B=["h","m","s"],z=_.QR(B);z.reverse();var G={};W=(W.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(E){var v=(E.match(/[hms]/)||[""])[0];return v?(G[v]=parseInt(E.match(/\d+/)[0],10),!1):!0});
for(W.reverse();W.length&&z.length;){var Y=z.shift();Y in G||(G[Y]=parseInt(W.shift(),10))}if(W.length||G.s>59||G.m>59||G.h>9)return null;var d="";B.forEach(function(E){G[E]&&(d+=""+G[E]+E)});
return d||null};
DE9=function(W,B){var z=_.eCR(B,{},W,!0);return new Promise(function(G,Y){z.listenOnce("n",function(){Y(Error("vl`"+z.JSC$29476_getErrorDescription()))});
z.listenOnce("l",function(){var d=z.getResponseCode();if(d!==200)Y(Error("wl`"+B+"`"+W.type+"`"+W.size+"`"+d));else try{G(JSON.parse(z.getResponseText()).encryptedBlobId)}catch(E){Y(E)}});
z.run()})};
QK9=function(W){return W.substring(W.indexOf(":")+1,W.indexOf(";"))};
yYi=function(W){return new Promise(function(B,z){var G=new FileReader;G.onloadend=function(){try{var Y=new Uint8Array(G.result);Y.length<8&&z(void 0);var d=Y.subarray(0,8);Y="";for(var E=0;E<d.length;E++)Y+=("0"+d[E].toString(16)).substr(-2);Y.startsWith("ffd8ff")?B("image/jpeg"):Y.startsWith("47494638")?B("image/gif"):Y.startsWith("89504e470d0a1a0a")?B("image/png"):Y.startsWith("424d")?B("image/bmp"):B(void 0)}catch(v){z(v)}};
G.onerror=z;G.readAsArrayBuffer(W)})};
qvj=function(W){return new Promise(function(B,z){var G=new Image;G.crossOrigin="anonymous";G.onload=function(){var Y=document.createElement("canvas");Y.width=G.naturalWidth;Y.height=G.naturalHeight;var d=Y.getContext("2d");if(!d)throw Error("xl");d.drawImage(G,0,0);d=QK9(W);Y.toBlob(function(E){E?B(E):z()},d)};
G.src=W})};
NS1=function(W,B){var z;if(((z=_.k(W,_.SW))==null?void 0:z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var G;_.v0((G=B.hostElement)!=null?G:B,"yt-shorts-reset");_.MVH(_.dO().resolve(_.N1),W).then(function(d){nG0(d,B,W)})}else{var Y;
_.V0((Y=B.hostElement)!=null?Y:B,[W]).then(function(d){d&&nG0(d.data,B,W)})}};
nG0=function(W,B,z){if(W){var G=_.k(W.replacementEndpoint,_.SW);if(G){W.sequenceContinuation&&(G.sequenceParams=W.sequenceContinuation);var Y;_.v0((Y=B.hostElement)!=null?Y:B,"yt-navigate",{endpoint:W.replacementEndpoint})}else if((W==null?void 0:W.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(W==null?0:W.watchStatus)&&_.k(W.watchStatus,_.M09)){var d;_.v0((d=B.hostElement)!=null?d:B,"yt-navigate",{endpoint:z})}}};
$EO=function(W){var B=_.dO().resolve(_.v7),z=_.M$.currentPageTypeSelector(B.getState())||"";B=_.M$.currentPageSubTypeSelector(B.getState())||"";z=z==="ytd-browse"&&B==="home";return _.r("web_guide_entry_enable_cache_for_non_home_pages")?(W=(W==null?void 0:W.navigationEndpoint)&&_.Cs(W.navigationEndpoint)==="home",{disableCache:z&&W}):{disableCache:z}};
LTq=function(W){if(!W)return!1;try{if(W.host&&W.host.tagName==="YT-FORMATTED-STRING"&&W.host.id==="contenteditable-textarea"||W.nodeType===Node.ELEMENT_NODE&&W.tagName==="YTD-COMMENT-INPUT")return!0}catch(B){return!1}return LTq(W.parentNode)};
zM=function(W){return W?W.tagName==="A"&&W.href&&W.classList.contains("yt-simple-endpoint"):!1};
UEb=function(W){return W?W.tagName==="IMG"&&W.classList.contains("emoji"):!1};
MX0=function(W,B,z){if(!W)return null;var G=zM(W);if(G&&z)return B=W.pathname.substring(W.pathname.indexOf("/channel/")+9),document.createTextNode("@"+B);if(G&&!z)return document.createTextNode("");if(UEb(W))return z=W.alt,W=W.dataset.emojiId,!W&&B&&(B=_.JE(B,z))&&B.isCustomEmoji&&(W=B.emojiId),W?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+W+">"):document.createTextNode(z);G=W.cloneNode(!1);for(var Y=0;Y<W.childNodes.length;++Y){var d=MX0(W.childNodes[Y],B,z);d&&G.appendChild(d)}return G};
GM=function(W){return W?zM(W)?W:GM(W.lastChild):null};
aNn=function(W){return W?zM(W)?W:aNn(W.firstChild):null};
RI1=function(W){if(!W)return null;for(var B=W.previousSibling;B;)if(B.nodeType===Node.ELEMENT_NODE&&B.nodeName==="BR")B=B.previousSibling;else if(B.nodeType===Node.TEXT_NODE&&/\s+/.test(B.textContent))B=B.previousSibling;else break;(B=GM(B))?W=B:W=(W=W.parentNode)?GM(W.previousElementSibling):null;return W};
WCi=function(W){if(!W)return null;for(var B=W.nextSibling;B;)if(B.nodeType===Node.ELEMENT_NODE&&B.nodeName==="BR")B=B.nextSibling;else if(B.nodeType===Node.TEXT_NODE&&/\s+/.test(B.textContent))B=B.nextSibling;else break;return(B=aNn(B))?B:WCi(W.parentNode)};
Bur=function(W){var B=_.tE(),z=B.JSC$11349_getStartNode();if(!LTq(z.parentNode))return null;B=B.JSC$11349_getStartOffset();if(z.nodeType===Node.TEXT_NODE){var G=_.n3(z,zM);if(G){if(W&&B===0||!W&&B===z.length)return G}else{if(W&&B===z.length)return!z||z.nodeName==="BR"||z.nextElementSibling&&_.s_(z.nextElementSibling,"display")==="block"?null:aNn(z.nextElementSibling);if(!W&&B===0)return z?GM(z.previousElementSibling):null}}if(z.nodeType===Node.ELEMENT_NODE)if(W){if(0<=B&&B<z.childNodes.length)return aNn(z.childNodes[B])}else if(0<
B&&B<=z.childNodes.length)return GM(z.childNodes[B-1]);return null};
z$0=function(W,B,z){if(!W)return null;if(W.nodeType===Node.TEXT_NODE)if(z){var G=RI1(W);if(G&&!/^\s+\S/.test(W.wholeText.substr(0,B)))return G}else if((G=WCi(W))&&!/\S\s+/.test(W.wholeText.substr(B,W.wholeText.length)))return G;return W.nodeType===Node.ELEMENT_NODE?z?RI1(W.childNodes[B]):WCi(W.childNodes[B]):z$0(W.parentNode,B,z)};
GN6=function(W){if(W.hasChildNodes())switch(W.tagName){case "DIV":case "A":case "SPAN":var B="";for(W=W.firstChild;W;W=W.nextSibling)B+=GN6(W);return B;default:return""}else switch(W.nodeType){case 3:return W.textContent;default:return""}};
YM9=function(W){switch(W){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"}};
d$0=function(W){return W.map(function(B){return{settingsRadioOptionRenderer:{title:_.Eg(B.name),asideText:_.Eg(B.approximateSize),id:YM9(B.format)}}})};
Agj=function(W){if(W&&W.length!==0)return W.filter(pAO()).map(function(B){return{settingsRadioOptionRenderer:{title:B.name,asideText:B.approximateSize,id:YM9(B.formatType)}}})};
Ye=function(W){if(W)return W.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
i26=function(W,B){W=new Set(W!=null?W:[]);if(W.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(W.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(W.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(W.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(W.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(B)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
E2f=function(W){var B=W.indexOf("(");return B!==-1?W.substring(B+1,W.length-1):W};
_.v2j=function(W,B,z,G,Y){z||(z=Tui);var d;(d=_.k(z.commandMetadata,_.Z4))!=null&&d.url||(z=Error("Cl`"+JSON.stringify(z)),_.jy(z),z=Tui);z=_.mP.unsafeClone(z);d=_.up(_.k(z.commandMetadata,_.Z4).url,"search_query",W);_.$x(location.href,"sv")==="1"&&(_.k(z,_.h8).params="EgOAAgE%3D",d=_.up(d,"sv","1"));_.k(z,_.h8)&&(_.k(z,_.h8).query=W);d=d.replace(/%20/g,"+");_.k(z.commandMetadata,_.Z4).url=d;Y=_.r("desktop_enable_entity_suggest")?{entityMid:Y}:{};_.dO().resolve(_.p4).resolveCommand(z,{form:{tempData:Object.assign({},
{gs_l:B,oq:G!=null?G:W},Y)}})};
cg6=function(W){switch(W){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
Vci=function(W,B,z,G,Y,d){var E=_.mP.clone(wAf);E.locale=_.eD("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;E.report={description:Y||"<empty>"};Y=_.eD("SBOX_SETTINGS",{});B=B.join(",");var v=Date.now();W={choice_cc:G,choice_id_cc:z,choices_sc:B,gl:Y.REQUEST_DOMAIN,hl:Y.REQUEST_LANGUAGE,query:W,time:v};d&&(W.choice_additional_comment_cc=d);_.q8u(E,W)};
Jgb=function(W){var B=new Map;B.set("authuser",_.eD("SESSION_INDEX","0"));return _.Pc(W,B)};
tcK=function(W){var B;return _.T(function(z){switch(z.nextAddress){case 1:if(!W||!g2r(W))return z.return(null);B=null;switch(_.eD("INNERTUBE_CLIENT_NAME")){case "WEB":return z.jumpTo(2);case "WEB_REMIX":B=W.getPlayer()}z.jumpTo(3);break;case 2:return z.yield(W.getPlayerPromise(),4);case 4:B=z.yieldResult;z.jumpTo(3);break;case 3:return z.return(B)}})};
g2r=function(W){return["ytd-player","ytmusic-player"].includes(String(W.tagName||"").toLowerCase())};
snj=function(W){W=Math.round(W);return W%2?W-1:W};
Pjf=function(W){W=Math.round(W);return W%2===0?W-1:W};
Z2b=function(W){var B,z,G;if(W=(B=W.createPlaylistDialogFormSchema)==null?void 0:(z=B.fieldSchemas)==null?void 0:(G=z.title)==null?void 0:G.validationSchema)for(B=[W.syncStep,W.asyncStep].filter(function(Y){return Y!==void 0}),B=_.A(B),z=B.next();!z.done;z=B.next()){z=z.value.rules;
if(!z)break;z=_.A(z);for(z=z.next();!z.done;z=z.next())return _.k(z.value,_.$nq)}};
kNr=function(W){var B,z,G;if(W=(B=W.createPlaylistDialogFormSchema)==null?void 0:(z=B.fieldSchemas)==null?void 0:(G=z.visibility)==null?void 0:G.validationSchema)for(B=[W.syncStep,W.asyncStep].filter(function(Y){return Y!==void 0}),B=_.A(B),z=B.next();!z.done;z=B.next()){z=z.value.rules;
if(!z)break;z=_.A(z);for(G=z.next();!G.done;G=z.next())if(G=_.k(G.value,rgf))return B=void 0,(B=G.translations)==null?void 0:B.visibilityNotValidErrorMessage}};
lpY=function(){var W,B;return(B=(W=_.dO().resolve(_.Y8(_.YG)))==null?void 0:W())!=null?B:!1};
CjY=function(W){var B=21;if(!W)return B;B+=W.headerTitle?27:0;B+=W.headerTitle&&W.hasHeaderActionHeader?4:0;return B+=W.headerTitle&&W.headerSubtitle?16:0};
Ipj=function(W){var B=0;if(!W)return B;B+=W.hasFooterPrimaryButton||W.hasFooterSecondaryButton?48:0;B+=W.footerTrailingLabel||W.footerLeadingLabel?30:0;return B+=W.hasFooterPrimaryButton||W.hasFooterSecondaryButton||!W.footerTrailingLabel&&!W.footerLeadingLabel?0:12};
o2r=function(W){var B=new _.PS,z=W;return{subscribe:function(G){B.subscribe("changed",G)},
dispatch:function(G,Y){var d=z;G==="Touch Start"?z=Object.assign({},d,{isAnimating:!1,initialY:Y.event.touches[0].clientY}):G==="Touch Move"?(G=Math.min(Y.fullContentWrapperHeight,Y.contentHeightMap[Y.contentWrapperId]+CjY(Y.header)-Ipj(Y.footer)),z=Object.assign({},d,{currentY:Math.max(Y.contentScrollable?-1*(d.initialY-24):0,Y.event.touches[0].clientY-d.initialY),maxHeightForContentWrapper:Math.min(G,Math.max(0,(d.isFullScreen?G:Y.contentWrapperHeight)-d.currentY))})):z=G==="Snap To Full Screen"?
Object.assign({},d,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:Y.maxHeight}):G==="Snap To Neutral Position"?Object.assign({},d,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:Y.maxHeight}):G==="Close Sheet"?Object.assign({},d,{isAnimating:!0,currentY:Y.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:Y.maxHeight}):d;B.publish("changed",z)}}};
h$0=function(W){return _.lF(function(B){W(B);return!1})};
H2i=function(){_.dO().resolve(_.BD).closeSheet()};
FCf=function(W){var B,z,G,Y,d,E,v,c,J,g,t;return{headerTitle:(B=W.headerTitle)==null?void 0:B.call(W),headerSubtitle:(z=W.headerSubtitle)==null?void 0:z.call(W),headerActionHeader:W.headerActionHeader,footerPrimaryButton:W.footerPrimaryButton,footerSecondaryButton:W.footerSecondaryButton,footerButtonType:(G=W.footerButtonType)==null?void 0:G.call(W),footerLeadingLabel:(Y=W.footerLeadingLabel)==null?void 0:Y.call(W),footerTrailingLabel:(d=W.footerTrailingLabel)==null?void 0:d.call(W),shouldShowIcons:(E=
W.shouldShowIcons)==null?void 0:E.call(W),skipContentClick:(v=W.skipContentClick)==null?void 0:v.call(W),additionalClassName:(c=W.additionalClassName)==null?void 0:c.call(W),onClosedCallback:W.onClosedCallback,focusOnClose:(J=W.focusOnClose)==null?void 0:J.call(W),isDisabled:(g=W.isDisabled)==null?void 0:g.call(W),disabledCommand:(t=W.disabledCommand)==null?void 0:t.call(W),headerFn:W.headerFn,contentFn:W.contentFn,footerFn:W.footerFn,hasHeaderFn:W.hasHeaderFn(),hasContentFn:W.hasContentFn(),hasFooterFn:W.hasFooterFn(),
hasFooterPrimaryButton:W.hasFooterPrimaryButton(),hasFooterSecondaryButton:W.hasFooterSecondaryButton(),hasHeaderActionHeader:W.hasHeaderActionHeader()}};
SM0=function(W){switch(W){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""}};
b2K=function(W){switch(W){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""}};
jni=function(W){switch(W){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""}};
fpK=function(W,B,z){B.forEach(function(G){_.x3(_.dO().resolve(_.Gz),G)});
_.c0(W,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",z])};
uEb=function(W,B,z,G){var Y=_.k(z,_.gP).commandLifeCycleConfig;Y&&Y.onStartCommand&&_.Jr(W,[Y.onStartCommand],B);_.nk(B);var d=_.RK.instance;d&&_.WA(d,z)?_.BA(d,z,G).then(function(E){if(!E||(E==null?0:E.error))return E=_.k(z,_.gP).serializedTransactionFlowLoggingParams,_.NF(B),_.mR(new dM("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",E));_.NF(B);return{data:E}}).then(function(E){_.NF(B);
O2O(E.data);var v=E.data.command;v&&_.Jr(W,[v],B);v=XA1(z,E.data);if(!v){var c=E.data;E=!1;if(c&&c.command&&_.k(c.command,_.tr)){var J;c=((J=_.k(c.command,_.tr))==null?void 0:J.commands)||[];for(J=0;J<c.length;J++)if(_.k(c[J],_.sYR)){E=!0;break}}E||_.Gr('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!v&&Y&&Y.onSuccessCommand?_.Jr(W,[Y.onSuccessCommand],B):v&&Y&&Y.onFailureCommand&&_.Jr(W,[Y.onFailureCommand],B)},function(){_.NF(B);
Y&&Y.onFailureCommand&&_.Jr(W,[Y.onFailureCommand],B);KCi(z)}):_.jy(Error("Ol"),"ERROR")};
e$9=function(W,B,z){var G=[B];z&&G.push(z);return _.V0(W,G).then(function(Y){var d=_.k(B,_.gP).serializedTransactionFlowLoggingParams,E=Y.data,v=XA1(B,E);v?Y=_.mR(new dM(v,d)):O2O(E);return Y},function(){var Y=_.k(B,_.gP).serializedTransactionFlowLoggingParams;
KCi(B);return _.mR(new dM("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Y))})};
XA1=function(W,B){W=_.k(W,_.gP).serializedTransactionFlowLoggingParams;var z=null;switch(B.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":z="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":z="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":z="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}z?_.d5(z,W):UMb(W);return z};
KCi=function(W){_.d5("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.k(W,_.gP).serializedTransactionFlowLoggingParams)};
O2O=function(W){if(W.trackingParams){var B=_.m1(),z=_.et();B&&z&&_.$q(B,z,_.XF(W.trackingParams))}};
m$0=function(W,B,z){var G=_.RK.instance,Y=_.MUR(_.eD("YPC_MB_URL")),d=(new _.L_R).init(),E=_.Ua2(),v=_.k(z,_.VSH).languageCode;v===void 0?_.jy(Error("Li"),"ERROR"):_.ma([d,Y]).then(function(){var c={ctk:payments.business.integration.ClientTokenFactory.createClientToken(v,E)};G&&_.WA(G,z)?_.BA(G,z,c).then(function(J){return{data:J}}).then(function(J){_.v0(B,"yt-service-request-completed",J);
J.code!=="ERROR"&&(J=J.data.command)&&_.Jr(W,[J],B)}):_.jy(Error("Ol"),"ERROR")})};
Qn6=function(W,B,z,G){var Y=_.RK.instance;Y&&_.WA(Y,z)?_.BA(Y,z,G).then(function(d){return{data:d}}).then(function(d){x$n(W,B,z,d)},function(){D$i(z)}):(Y=_.dO().resolve(_.Y8(_.ns)))&&Y.requestDataForServiceEndpoint(z,G).then(function(d){x$n(W,B,z,d)},function(){D$i(z)})};
x$n=function(W,B,z,G){_.v0(B,"yt-service-request-completed",G);if(G.code&&G.code=="ERROR")D$i(z);else{(G=G.data.commands)&&_.Jr(W,G,B);var Y;(W=(Y=_.k(z,_.ZjH))==null?void 0:Y.serializedYpcPauseFlowLoggingParams)&&W&&_.PW("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",W)}};
D$i=function(W){var B;(W=(B=_.k(W,_.ZjH))==null?void 0:B.serializedYpcPauseFlowLoggingParams)&&W&&_.PW("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
n2b=function(W,B,z){var G=_.RK.instance;G&&_.WA(G,z)?_.BA(G,z).then(function(Y){return{data:Y}}).then(function(Y){ygb(W,B,z,Y)},function(){qM1(z)}):(G=_.dO().resolve(_.Y8(_.ns)))&&G.requestDataForServiceEndpoint(z).then(function(Y){ygb(W,B,z,Y)},function(){qM1(z)})};
ygb=function(W,B,z,G){_.v0(B,"yt-service-request-completed",G);G.code&&G.code=="ERROR"?qM1(z):((G=G.data.commands)&&_.Jr(W,G,B),(W=_.k(z,_.rPH).serializedYpcResumeFlowLoggingParams)&&W&&_.PW("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",W))};
qM1=function(W){(W=_.k(W,_.rPH).serializedYpcResumeFlowLoggingParams)&&W&&_.PW("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
Nuj=function(W){W=W===void 0?{}:W;_.dO().resolve(_.pyO).showFeedbackDialog(W.customProductData,W.feedbackContent,W.onFeedbackSubmitted,W.bucket)};
$$Y=function(W){W=W===void 0?{}:W;_.dO().resolve(_.pyO).showHelpDialog(W.helpContext,W.articleId,W.productData)};
LCb=function(){$$Y()};
U$f=function(){Nuj()};
ap9=function(W,B,z){var G,Y,d,E,v,c,J;return _.T(function(g){switch(g.nextAddress){case 1:G=_.k(W,Mcj);if((Y=G)==null?0:Y.productId){c={productId:G.productId,bucket:G.bucket,enableAnonymousFeedback:(v=G.enableAnonymousFeedback)!=null?v:!0,allowNonLoggedInFeedback:!0};J={feedbackChoice:z.feedbackChoice};if(!_.r("web_collect_offline_state")){g.jumpTo(8);break}_.kA(g,9);return g.yield(d_1(J),11)}E={bucket:(d=G)==null?void 0:d.bucket};if(!_.r("web_collect_offline_state")){g.jumpTo(4);break}E.customProductData=
{};_.kA(g,5);return g.yield(d_1(E.customProductData),7);case 7:_.Nn(g,4);break;case 5:_.h6(g);case 4:Nuj(E);g.jumpTo(0);break;case 11:_.Nn(g,8);break;case 9:_.h6(g);case 8:_.KXy(J),_.Xxu("GFEEDBACK",J),G.productId==="5295751"&&(J.client_attestation=Number(_.eD("CATSTAT",0))),G.productId==="5295751"&&(J.client_time=Date.now()/1E3/3600),G.productId==="5295751"&&(J.original_playback_id=_.pmH||""),_.q8u(c,J),_.HG(g)}})};
R$j=function(W){if(W=_.k(W,_.afu)){var B={bucket:W.bucketIdentifier};W.additionalDatas&&(B.customProductData={},W.additionalDatas.forEach(function(z){if(z=z.userFeedbackEndpointProductSpecificValueData)B.customProductData[z.key]=z.value}));
Nuj(B)}};
Wun=function(W){var B=_.Qx.getInstance();var z=_.kq("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var G=_.kq("DELETE",void 0,"Delete"),Y=_.kq("CANCEL",void 0,"Cancel");z=gqn(z,void 0,G,Y,{signal:"DELETE_ALL_DOWNLOADS"});_.W4(B,[{openPopupAction:z}],W)};
zr6=function(){return _.T(function(W){return W.nextAddress==1?W.yield(_.dO().resolve(_.yo),2):W.yield(Bh6(),0)})};
Gmr=function(W){var B,z;return _.T(function(G){return G.nextAddress==1?(z=(B=_.k(W,_.mE))==null?void 0:B.targetId)?G.yield(_.dO().resolve(_.yo),3):G.jumpTo(0):G.yield(_.dO().resolve(_.Qo).deleteVideo(z),0)})};
dFr=function(W){var B,z;return _.T(function(G){return G.nextAddress==1?(z=(B=_.k(W,_.mE))==null?void 0:B.targetId)?G.yield(_.dO().resolve(_.yo),3):G.jumpTo(0):G.yield(Y_i(_.dO().resolve(_.Qo),z),0)})};
AEf=function(W){var B,z;return _.T(function(G){return(z=(B=_.k(W,_.mE))==null?void 0:B.targetId)?G.yield(pk6(z),0):G.jumpTo(0)})};
ElK=function(){_.r("kevlar_woffle_refresh_dl_load_killswitch")||ikn()};
vli=function(){_.r("kevlar_woffle")&&_.eW.instance&&ThK()};
wkO=function(W){var B;if((B=_.k(W,_.C2))==null||!B.videoId)return!1;cEi(_.dO().resolve(_.Qo),_.k(W,_.C2),W.clickTrackingParams);return!0};
JEq=function(W){var B;if((B=_.k(W,_.In))==null||!B.playlistId)return!1;Vgf(_.dO().resolve(_.Qo),_.k(W,_.In),W.clickTrackingParams);return!0};
tg6=function(W){var B=_.k(W,_.YrU);(B==null?void 0:B.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(B==null?void 0:B.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||gl6(_.dO().resolve(_.Qo),_.k(W,_.YrU))};
Pe1=function(W){W=_.k(W,_.O6R);var B;(W==null?0:(B=W.actions)==null?0:B.length)&&s6Y(W)};
kmr=function(W){var B,z;return _.T(function(G){B=_.k(W,Zkq);return(z=B)!=null&&z.localWatchHistoryCommandType?G.yield(rE0(B),0):G.return()})};
lKi=function(W){setTimeout(function(){requestAnimationFrame(W)},80)};
Cef=function(W){return Object.entries(W).map(function(B){return B.join(":")}).join(";")};
olb=function(W){var B,z,G;_.T(function(Y){if(Y.nextAddress==1)return Y.yield(IKY(),2);B=Y.yieldResult;z=_.IB.instance;switch(B){case "granted":G=W.getLocationCommand;break;case "denied":G=W.openDeniedDialogAction;break;case "prompt":G=W.openCollectionDialogAction;break;default:G=W.openCollectionDialogAction}G&&z.resolveCommand(G);_.HG(Y)})};
IKY=function(){var W,B;return _.T(function(z){if(z.nextAddress==1)return W="prompt",navigator.permissions?z.yield(navigator.permissions.query({name:"geolocation"}),3):z.jumpTo(2);z.nextAddress!=2&&(B=z.yieldResult,W=B.state);return z.return(W)})};
Hkj=function(){_.T(function(W){return W.yield(_.hrY(),0)})};
Fu1=function(){var W,B,z;return _.T(function(G){if(G.nextAddress==1)return W=_.dO().resolve(_.N_),W?G.yield(_.BA(W,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Oc(Error("Rl")),G.return(void 0));if(B=G.yieldResult){if(B.errorMetadata)return _.Oc(Error("Sl`"+B.errorMetadata.status+"`"+B.error)),G.return(void 0);z=B.datasyncIds;_.EM1=z.length;return G.return(z)}_.Oc(Error("Tl"));return G.return(void 0)})};
S_n=function(){Fu1().then(function(W){W&&(f4Y(W),anf(W),Cdr(W),isn(W))})};
bkK=function(W){_.fg.addLowPriorityJob(function(){var B,z,G,Y,d;return _.T(function(E){switch(E.nextAddress){case 1:if(_.r("ytidb_clear_optimizations_killswitch")){E.jumpTo(2);break}B=_.C4("clear");if(B.startsWith("V")&&B.endsWith("||")){var v=[B];f4Y(v);anf(v);Cdr(v);isn(v);return E.return()}z=Inj();G=E_f();return E.yield(Rjf(),3);case 3:return Y=E.yieldResult,E.yield(Oi9(),4);case 4:if(d=E.yieldResult,!(z||G||Y||d))return E.return();case 2:W.isNetworkAvailable()?S_n():W.listenOnce("publicytnetworkstatus-online",
S_n),_.HG(E)}})})};
p5=function(W){W={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.Bg(W)}}}};_.IB.instance&&_.IB.instance.resolveCommand(W)};
j69=function(W){if(W){var B=_.SK();_.KS(B,3854,void 0,{layer:0,parentLayer:4});switch(W){case 1:var z=238708;break;case 2:z=238715;break;case 3:z=238710;break;case 6:z=238709}z&&(W=_.FF(B,{veType:z}))&&_.mx(B,W)}};
fKf=function(W){if(W){var B=_.SK();_.KS(B,3854,void 0,{layer:0,parentLayer:4});switch(W){case 1:var z=238714;break;case 2:z=238711;break;case 8:z=238709;break;case 7:z=238713;break;case 3:case 4:case 5:z=238712}z&&(W=_.FF(B,{veType:z}))&&_.mx(B,W)}};
Okf=function(W){switch(W.latencyType){case 0:_.e4("consent_primitive_flow");_.mj("cpit",W.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.mj("cpist",W.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.mj("cprtif",W.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.mj("cprtli",W.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.mj("cprt",W.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.mj("cpdt",W.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.mj("cpjct",W.timestampEpochMillis,"consent_primitive_flow")}};
q_Y=function(W,B){var z,G,Y,d,E,v,c,J,g,t,P,Z,l,b,O,K,e,a,q,n;return _.T(function(L){switch(L.nextAddress){case 1:_.kA(L,2);(G=(z=_.k(W,Xkq))==null?void 0:z.serializedConsentRequest)||(G=(Y=_.k(W,Kur))==null?void 0:Y.serializedConsentRequest);G&&(d=uBK(_.aD(G)));if(d===void 0)return L.return();E=eri(d);E.latencyCallback=Okf;B&&mFi(E,function(){B.then(function(By){By.pauseVideo();(new xF9).increment()})});
return((v=_.k(W,Xkq))==null?void 0:v.consentAction)==="CONSENT_ACTION_PREWARM"||((c=_.k(W,Kur))==null?void 0:c.consentAction)==="CONSENT_ACTION_PREWARM"?L.yield(DF9(E),5):L.yield(Q60(E),6);case 6:J=L.yieldResult;g=_.FP(J,Ad);if(g===1){if(((t=_.xT(J,iT,1,Ad))==null?void 0:_.u0(t,1))===1||((P=_.xT(J,iT,1,Ad))==null?void 0:_.u0(P,1))===2||((Z=_.xT(J,iT,1,Ad))==null?void 0:_.u0(Z,1))===3)_.k(W,Kur)?p5(_.kq("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
p5(_.kq("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));j69((l=_.xT(J,iT,1,Ad))==null?void 0:_.u0(l,1),_.TP(J,yEY,3,_.vC()))}else g===2?(((b=Em(J))==null?void 0:_.u0(b,1))===5?_.k(W,Kur)?p5(_.kq("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):p5(_.kq("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((O=Em(J))==null?void 0:_.u0(O,1))===1||((K=Em(J))==null?void 0:_.u0(K,1))===4?p5(_.kq("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((e=Em(J))==null?void 0:_.u0(e,1))===7&&((a=d)==null?void 0:(q=_.AD(a,TM,4))==null?void 0:_.u0(q,4))!==1&&p5(_.kq("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),fKf((n=Em(J))==null?void 0:_.u0(n,1))):p5(_.kq("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));L.jumpTo(5);break;case 5:_.Nn(L,0);break;case 2:_.h6(L),p5(_.kq("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.HG(L)}})};
Nhi=function(){if(!nli.has("Worker")){nli.set("Worker",!0);var W={api:"BROWSER_API_WEB_WORKER"};W.available="Worker"in window?!0:!1;_.Sy("apiTest",W)}};
$FY=function(W){return typeof W==="undefined"?"-1":String(Math.ceil(W/1048576))};
aKf=function(W,B){Lui(new UF6(_.k(B,Mg1).addToken,_.k(B,Mg1).commonToken)).then(function(){_.v0(W,"yt-invoke-instrument-manager-action-completed")},function(z){_.v0(W,"yt-invoke-instrument-manager-action-error",z)})};
RrK=function(){var W,B;return(B=(W=window).matchMedia)==null?void 0:B.call(W,"(prefers-reduced-motion: reduce)").matches};
WQi=function(W){var B=_.dO().resolve(_.Y8(_.LD));if(B&&B.isAnyTransitionEnabled){var z={};B.viewTransitionCoordinator.registerElement(W,(z.slide="miniplayer-page-transition",z["lockup-to-watch"]="miniplayer-page-transition",z["learning-journey"]="miniplayer-page-transition",z))}};
BnY=function(W,B,z){return{horizontalAlignment:W.x+z.width/2<B.width/2?"west":"east",verticalAlignment:W.y+z.height/2<B.height/2?"north":"south"}};
GHO=function(W,B,z,G,Y){Y=Y===void 0?new _.De(0,0):Y;W=zpK(W,B,z,G);return new _.De(W.x+Y.x,W.y+Y.y)};
zpK=function(W,B,z,G){return new _.De(W==="west"?16:z.width-G.width-16,B==="north"?16:z.height-G.height-16)};
Yoj=function(W,B){var z=0;W&&(z+=76);B&&(z+=285);return z};
dgb=function(W){return _.nV(W)};
phO=function(W){var B=1;W=W.split(":");for(var z=[];B>0&&W.length;)z.push(W.shift()),B--;W.length&&z.push(W.join(":"));return z};
At1=function(W){var B=new _.Ca;return _.DJ(B,11,W)};
iQY=function(W){var B={};W=W.getAllResponseHeaders().split("\r\n");for(var z=0;z<W.length;z++)if(!_.TT(W[z])){var G=phO(W[z]),Y=G[0];G=G[1];if(typeof G==="string"){G=G.trim();var d=B[Y]||[];B[Y]=d;d.push(G)}}return _.mP.map(B,function(E){return E.join(", ")})};
Tj=function(W,B){return W.JSC$9797_xhr_?W.JSC$9797_xhr_.getResponseHeader(B):null};
EnY=function(W,B){if(W.isDisposed())throw Error("Ea");W.xv.bk("n");var z=_.$X(W.xv,function(){return W.cXf([B.ym,B.f7X,B.vVm,B.myY])},"n");
W.xv.etb(z.length);W.xv.xy();return z};
va=function(W,B,z){Array.isArray(z)||(z=[String(z)]);_.JWT(W.JSC$10032_queryData_,B,z);return W};
ThK=function(){var W=_.eW.instance;_.T(function(B){return W.deferredInstallPrompt?B.yield(W.deferredInstallPrompt.prompt(),0):B.jumpTo(0)})};
Tnf=function(W,B,z){if(_.yR(W))_.$r(W,B,z);else for(W=_.CYM(W);;){var G=W.next();if(G.done)break;B.call(z,G.value,void 0,W)}};
vn1=function(W,B){var z=[];Tnf(B,function(G){try{var Y=_.cM.prototype.getWrapper.call(this,G,!0)}catch(d){if(d=="Storage: Invalid value was encountered")return;throw d;}Y===void 0?z.push(G):_.lE6(Y)&&z.push(G)},W);
return z};
vOY=function(W,B){vn1(W,B).forEach(function(z){_.cM.prototype.remove.call(this,z)},W)};
ctn=function(W){var B=_.Ta;B._minimumZ=Math.max(B._minimumZ,W)};
whf=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];VTj=function(W,B){_.AI(W.vm);W.vm=B};
Jtr=function(W,B,z,G){W.setState(5);var Y=!!W.smX&&whf.includes(_.WS(W.smX)||"");try{var d=new _.La({program:B,globalName:z,iCq:{disable:!_.r("att_web_record_metrics")||!_.r("att_skip_metrics_for_cookieless_domains_ks")&&Y,dz:"aGIf"}});d.aAZ.then(function(){W.setState(6);G&&G(B)});
VTj(W,d)}catch(E){W.setState(7),E instanceof Error&&_.Oc(E)}};
gnn=function(W,B,z,G,Y,d){var E=E===void 0?"trayride":E;z?(W.setState(2),_.NO(_.Ok(z),function(){if(window[E])Jtr(W,G,E,Y);else{W.setState(3);var v=_.sxk(z),c=document.getElementById(v);c&&(_.cYR(v),c.parentNode.removeChild(c));_.Oc(new _.oX("BL:ULB",z))}},d)):B?(d=_.I0("SCRIPT"),B instanceof _.Gd?_.dj(d,B):d.textContent=B,d.nonce=_.zd(document),document.head.appendChild(d),document.head.removeChild(d),window[E]?Jtr(W,G,E,Y):(W.setState(4),_.Oc(new _.oX("BL:ULBJ")))):_.Oc(new _.oX("BL:ULV"))};
tTb=function(){this.state=1;this.vm=null;this.smX=void 0};
_.p=tTb.prototype;_.p.initialize=function(W,B,z,G){this.smX=G;if(W.program){var Y;G=(Y=W.interpreterUrl)!=null?Y:null;if(W.interpreterSafeScript)Y=_.OoD(W.interpreterSafeScript);else{var d;Y=(d=W.interpreterScript)!=null?d:null}W.interpreterSafeUrl&&(G=_.OE(W.interpreterSafeUrl).toString());gnn(this,Y,G,W.program,B,z)}else _.Oc(Error("qf"))};
_.p.isInitialized=function(){return!!this.vm};
_.p.getState=function(){return this.state};
_.p.isLoading=function(){return this.state===2};
_.p.invoke=function(W){W=W===void 0?{}:W;var B;this.vm?B=EnY(this.vm,{ym:W}):B=null;return B};
_.p.dispose=function(){VTj(this,null);this.setState(8)};
_.p.setState=function(W){this.state=W};
var skb=function(W,B){return W.vm.snapshot(B)},PrK=function(W,B){var z=_.iO("botguard_async_snapshot_timeout_ms",3E3);
B=B===void 0?{}:B;z=z===void 0?3E3:z;return W.vm?new Promise(function(G,Y){var d=!1,E=_.fg.addJob(function(){d=!0;Y(Error("rf"))},1,z);
W.vm?skb(W,{ym:B}).then(function(v){_.fg.cancelJob(E);d||G(v)}).catch(function(v){_.fg.cancelJob(E);
d||Y(v)}):(_.fg.cancelJob(E),G(null))}):Promise.resolve(null)},ZQO=["att/log"],Tui;
Tui={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var rtf={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},kHi=function(W,B){return _.I_(W,{mode:"readwrite",enableRetries:!0},function(z){return _.LGv(z,B,"settingEntity")})},l06=function(W,B,z){return _.I_(W,{mode:"readonly",
enableRetries:!0},function(G){return _.yeM(G,B,z)})},Crq=function(W){if(!W.storage)return!1;
a:{if(W.storage){try{var B=W.storage.get("TLPQtimestamp")}catch(z){}W=Number(B);if(!isNaN(W))break a}W=void 0}return W?Date.now()-W<864E5:!1},I0f=function(W){if(W.storage){try{var B=W.storage.get("TLPQindex")}catch(z){}W=Number(B);
if(!isNaN(W))return W}},oni=function(W,B){W.queueProxy&&B.forEach(function(z){if(z.videoId&&z.trackingParams&&W.queueProxy instanceof _.T1){var G=_.m1();
W.queueProxy.attributionData.set(z.videoId,{enqueueingVe:_.XF(z.trackingParams).getAsJson(),enqueueingCsn:G?G:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Yb)()).toString()})}})},hp0=function(W){var B=_.C4F(W);
B!=W.currentSnapState_&&(W.currentSnapState_=B,W.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},ca=function(W){this.JSC$13167_networkManager_=W;
this.partCallbacks_=[]};
ca.prototype.getCacheKeyForEndpoint=function(W){return _.m7D(W,!1)};
ca.prototype.onPartsCallback_=function(W){this.partCallbacks_.forEach(function(B){W&&B(W)})};
var wM=function(W,B,z){ca.call(this,W);this.player_=B;this.autoplayData_=z};
_.C(wM,ca);wM.prototype.getCacheKeyForEndpoint=function(W){return _.m7D(W,!!this.autoplayData_)};
wM.prototype.getTempData=function(W,B){B=B.timeBeforeNextVideo;W={itct:W.clickTrackingParams,lact:_.Gi(),pbis:B,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(W.autonav=1);return W};
wM.prototype.getXhrParams=function(W){return Object.assign({pbj:"prefetch"},W)};
wM.prototype.getParams=function(W){W={frags:W.fragmentsRequested.join(",")};_.r("kevlar_droppable_prefetchable_requests")&&(W.prefetch=1);return W};
var HQb=function(W){W.playerEvents_.forEach(function(B){W.player.removeEventListener(B.eventName,B.callback)});
W.playerEvents_.length=0},VI=function(W,B,z){this.player=W;
this.JSC$13177_taskManager=B;this.prefetchDelay=z;this.completionResolver_=null;this.playerEvents_=[]};
VI.prototype.start=function(){var W=this;this.completionResolver_=_.zN();_.xX(this.completionResolver_.promise,function(){HQb(W);W.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var FQq=function(W,B,z){W.player.addEventListener(B,z);W.playerEvents_.push({eventName:B,callback:z})},So0={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},bQf={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},jk6=function(W,B,z){VI.call(this,W,B,z);this.cueId_="playbackTrigger-"+Math.random()};
_.C(jk6,VI);
jk6.prototype.prepareTrigger=function(W){var B=this,z=this.player.getDuration(),G=this.player.getVideoData(),Y=G.isLive&&G.hasProgressBarBoundaries;if(Y&&G.progressBarEndPositionUtcTimeMillis){var d=G.progressBarEndPositionUtcTimeMillis/1E3;isNaN(d)||(z=d)}var E=0;this.prefetchDelay>=0?Y?G.progressBarStartPositionUtcTimeMillis&&(G=G.progressBarStartPositionUtcTimeMillis/1E3,isNaN(G)||(E=G+this.prefetchDelay)):E=this.prefetchDelay:E=z+this.prefetchDelay;Y?this.player.addUtcCueRange(this.cueId_,E,z):
this.player.addCueRange(this.cueId_,E,z);_.xX(W.promise,function(){B.player.removeCueRange(B.cueId_)});
FQq(this,"onCueRangeEnter",function(v){v==B.cueId_&&W.resolve(z-E)})};
var f01=function(W,B){W.fragmentConfiguration_[B].requiredKeys.every(function(z){return!!W.prefetchedData_[z]})&&(W.validatedFragments_.push(B),B=W.missingFragments_.indexOf(B),B!==-1&&W.missingFragments_.splice(B,1))},OQj=function(W){W.prefetchedFragments_.forEach(function(B){f01(W,B)})},Xh0=function(W,B,z){this.pageFragments_=W;
this.prefetchedFragments_=B;this.fragmentConfiguration_=bQf;this.prefetchedData_=z;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;OQj(this)},KQY=function(){},uUf=function(W){this.JSC$13191_playlistManager_=W};
_.C(uUf,KQY);uUf.prototype.getPrefetchEndpoint=function(){return this.JSC$13191_playlistManager_.getAutoplayEndpoint()};
var epn=function(W){this.autonavEndpoints_=W};
_.C(epn,KQY);epn.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var mg6=function(W,B,z,G,Y){this.autonavEndpoints=W;this.foregroundTrigger=B;this.backgroundTrigger=z;this.pageType=G;this.isInPlaylist=Y},xgn=function(W,B){if(W.webPrefetchData&&W.webPrefetchData.navigationEndpoints&&W.webPrefetchData.navigationEndpoints.length){W=W.webPrefetchData.navigationEndpoints;
var z=_.k(W[0],_.W0);if(z.watchEndpointSupportedPrefetchConfig&&z.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var G=z.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;z=G.playbackRelativeSecondsPrefetchCondition;z=typeof z==="number"&&Math.abs(z)<B.videoDuration?z:void 0;G=G.countdownUiRelativeSecondsPrefetchCondition;G=typeof G!=="number"||_.r("prefetch_job_config_cleanup_ks")&&B.inPlaylist?void 0:G;if(typeof G==="number")return new mg6(W,B.makeUpNextTrigger(G),B.makePlaybackTrigger(G),
"watch",B.inPlaylist);if(typeof z==="number")return new mg6(W,B.makePlaybackTrigger(z),null,"watch",B.inPlaylist)}}},Dgj=function(W){return W.prefetchJobConfig_.backgroundTrigger?_.D5(_.J7R)()==0?W.prefetchJobConfig_.backgroundTrigger:W.prefetchJobConfig_.foregroundTrigger:W.prefetchJobConfig_.foregroundTrigger},Qkq=function(W){_.Xn(document,"visibilitychange",W.onVisibilityChange_,!1,W)},Jd=function(W){ca.call(this,W)};
_.C(Jd,ca);Jd.prototype.getCacheKeyForEndpoint=function(W){return ca.prototype.getCacheKeyForEndpoint.call(this,W)};
Jd.prototype.getTempData=function(){return{}};
Jd.prototype.getXhrParams=function(W){return W};
Jd.prototype.getParams=function(){return{}};
var yt6=function(W,B,z){var G=W.prefetchDelay*1E3;if(Math.abs(G)>B)z.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var Y=G,d=B-G;G<0&&(Y=B+G,d=Math.abs(G));var E=W.JSC$13177_taskManager.addJob(function(){z.resolve(d/1E3)},10,Y);
z.promise.thenCatch(function(){W.JSC$13177_taskManager.cancelJob(E)})}},qoY=function(W,B,z){VI.call(this,W,B,z)};
_.C(qoY,VI);qoY.prototype.prepareTrigger=function(W){var B=this;FQq(this,"onAutonavCoundownStarted",function(z){yt6(B,z,W)})};
var nni=function(W){W.pendingPrefetchJob_&&(W.pendingPrefetchJob_.cancel(),W.pendingPrefetchJob_=null)},NnK=function(W,B,z){if(!W.triggeredTargets.has(B)){var G=_.g4d(W,B);
G.action=z;_.VqD(W,B,G)}},$gj=function(W){_.zGQ();
_.HrR("cpt")&&_.Oc(Error("qh"));_.Yt.requestAnimationFrame(function(){_.Yt.setTimeout(function(){_.mj("cpt");var B=_.Q0("vpl"),z=_.Q0("cpt");B&&z&&_.mj("ol",Math.max(B,z))})});
try{_.mj("fr_s"),W()}catch(B){_.jy(B)}_.Yt.requestAnimationFrame(function(){_.mj("bcp")})},LQY=function(W,B){W.serviceEndpointHandlers.push(B)},UgY=function(W,B){B=W.pendingPages_.indexOf(B);
B>-1&&W.pendingPages_.splice(B,1)},MT9=function(W,B){var z=_.IBT.indexOf(B);
z>-1&&_.IBT.splice(z,1);W.targetPage_==B?(W.abort(),_.hsF(W)):UgY(W,B)},a0b=function(W,B,z,G){B={challenge:B};
z&&(B.webResponse=z);return _.cz(W.innertubeTransportService,B,_.dD(ZQO),G)},Rpf=function(W,B,z){if(!B.challenge)throw Error("ti");
if(B.botguardData&&B.botguardData.program){var G=new tTb;G.initialize(B.botguardData,function(){PrK(G,{atr_challenge:B.challenge}).then(function(Y){if(!Y)throw Error("ui");return a0b(W,B.challenge,Y,z)}).catch(function(Y){_.Oc(Y);
return a0b(W,B.challenge,void 0,z)})},void 0)}else a0b(W,B.challenge,void 0,z)},Wwi=function(W,B,z){var G={};
B.ids&&(G.ids=[].concat(_.u7(B.ids)));B.engagementType&&(G.engagementType=B.engagementType);return _.cz(W.innertubeTransportService,G,_.dD(_.p$R),z).then(function(Y){if(!Y)throw new _.oX("GetAttestationChallenge returned falsy");Rpf(W,Y,z)}).thenCatch(function(Y){_.jy(Y)})},Bb6=function(W,B,z){return new _.Vx(function(G,Y){var d;
return _.T(function(E){if(E.nextAddress==1){var v=E.yield,c=B.engagementType,J=B.ids,g={};J=_.A(J!=null?J:[]);for(var t=J.next();!t.done;t=J.next())t=t.value,t.encryptedVideoId?g.encryptedVideoId=t.encryptedVideoId:t.externalChannelId?g.externalChannelId=t.externalChannelId:t.commentId?g.commentId=t.commentId:t.externalOwnerId?g.externalOwnerId=t.externalOwnerId:t.artistId?g.artistId=t.artistId:t.playlistId?g.playlistId=t.playlistId:t.externalPostId?g.externalPostId=t.externalPostId:t.shareId&&(g.shareId=
t.shareId);return v.call(E,Jrb(c,g),2)}d=E.yieldResult;if(!d.challenge)return _.Oc(Error("vi")),Wwi(W,B,z).then(G,Y),E.return();v=d;c={challenge:v.challenge};c.webResponse=v.webResponse;c.engagementType=B.engagementType;c.ids=B.ids;_.cz(W.innertubeTransportService,c,_.dD(ZQO),z).then(G,Y);_.HG(E)})})},umO=function(W,B){var z,G,Y,d;
_.T(function(E){if(E.nextAddress==1){z=_.k(B,_.sA9);if(!(z&&z.listId&&W.response&&W.response.playingVideoId)||W.listId!==z.listId)return E.return();W.index===void 0&&(W.index=0);return E.yield(_.oD6(W.JSC$12924_playlistNetworkManager,z.listId,W.index,W.response.playingVideoId),2)}G=E.yieldResult;if(!G)return E.return();Y=G.playlistId;d=G.playlistPanelRenderer;W.setPlaylistData(Y,d,G.autoplayRenderer);_.HG(E)})},zZr=function(W,B,z){var G=W.getParams(z),Y=_.ygX(B,G),d=W.getTempData(B,z);
d.endpoint=JSON.stringify(B);_.r("enable_unknown_lact_fix_on_html5")&&(_.dO().resolve(_.jX),d.lact=_.Gi());var E={headers:{"X-YouTube-STS":_.eD("STS"),"x-youtube-csoc":1}};_.Yq(Y,d);return new _.Vx(function(v,c){var J=W.getXhrParams(G),g;_.r("kevlar_cache_on_ttl_player")&&(g=_.LI.instance);g&&_.NGF(g,B)?_.B$R(g,B,d,window.location.href).then(function(t){t?v(t):c()},c):_.rNR(W.JSC$13167_networkManager_,B,J,W.onPartsCallback_.bind(W),E).then(function(t){t?v(t):c()},c)})},GCY=function(W,B){W.triggerPromise_=
B.start();
W.triggerPromise_.then(function(z){var G=W.prefetchEndpointProvider_.getPrefetchEndpoint();if(G){var Y=So0[W.prefetchJobConfig_.pageType].prefetchedFragments;W.prefetchRequestPromise_=zZr(W.JSC$13203_networkPrefetchRequest_,G,{fragmentsRequested:Y,timeBeforeNextVideo:z});W.prefetchResponseCacheKey_=W.JSC$13203_networkPrefetchRequest_.getCacheKeyForEndpoint(G);Qkq(W);W.prefetchRequestPromise_.then(function(d){W.storePrefetchedDataCallback_(W.prefetchResponseCacheKey_,d);if(_.r("web_prefetch_preload_video")&&
Y.length===1&&Y[0]==="pl"&&d&&!d.playerAds&&!d.adPlacements){var E=_.k(G,_.SW),v=E!=null,c={raw_player_response:d,watch_endpoint:E};(d=_.dO().resolve(v?_.EDd:_.Jg))&&G&&d.then(function(J){v&&_.r("web_queue_preload_video")?(c.prefer_gapless=!0,J.queueNextVideo(c)):J.preloadVideoByPlayerVars(c)})}})}})},gM=function(W,B,z,G){this.prefetchEndpointProvider_=W;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=B;this.prefetchJobConfig_=z;this.JSC$13203_networkPrefetchRequest_=G;this.prefetchResponseCacheKey_=null};
gM.prototype.enqueue=function(){this.triggerPromise_||(GCY(this,Dgj(this)),_.ug(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
gM.prototype.resolve=function(){this.cancel()};
gM.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.");Qkq(this)};
gM.prototype.onVisibilityChange_=function(){var W=this;_.D5(_.J7R)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){W.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||GCY(this,Dgj(this))};
var YLr=function(W,B,z,G,Y){B&&(B==null?0:B.videoId)&&z&&z.entries&&_.r("kevlar_enable_shorts_prefetch_in_sequence")&&(nni(W),B=z.entries.map(function(d){var E;return(E=_.k(d.command,_.SW))==null?void 0:E.videoId}).indexOf(B.videoId),z=z.entries[B+1],z!=null&&z.command&&!_.k(z==null?void 0:z.command,_.Aw)&&(G=new mg6([z.command],new jk6(G,_.fg,1),null,"shorts",!1),W.pendingPrefetchJob_=new gM(new epn(G.autonavEndpoints),function(){return!1},G,new Jd(Y)),W.pendingPrefetchJob_.enqueue()))},dif=function(W,
B,z,G,Y,d){var E=_.oH.getInstance();
if(!_.r("block_all_player_prefetch_requests")){nni(W);var v=!!z.getPlaylistId(),c=z.getVideoData().isLive&&z.getVideoData().hasProgressBarBoundaries;if((E.getState()==2||v||c)&&(!z.getVideoData().isLive||c)){E={inPlaylist:v,videoDuration:z.getDuration(),makeUpNextTrigger:function(g){return new qoY(z,_.fg,g)},
makePlaybackTrigger:function(g){return new jk6(z,_.fg,g)}};
var J=xgn(B,E);J&&(W.pendingPrefetchJob_=new gM(J.isInPlaylist?new uUf(Y):new epn(J.autonavEndpoints),function(g,t){t=new Xh0(So0[J.pageType].pageFragments,So0[J.pageType].prefetchedFragments,t);return _.do6(t)?(W.prefetchCache_.set(g,t),!0):!1},J,new wM(G,z,d,Y)),W.pendingPrefetchJob_.enqueue())}}},p8b=function(){var W=_.sr();
W.signals.parkOrScheduleJob(function(){var B=W.storage;if(B.storage)if(Crq(B)){var z=B.getPlaylistId();B=I0f(B);z=!!z&&B!==void 0}else B.clear(),z=!1;else z=!1;if(z){z=W.pageManager.isOnWatch();a:{var G=W.storage;if(G.storage&&Crq(G)&&(B=G.getPlaylistId(),G=I0f(G),B&&G!==void 0)){z={recoverPlaylistCommand:{listId:B,index:G,openMiniplayer:!z,openListPanel:z,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}z=void 0}z&&_.W4(W.JSC$12924_actionRouter,[z],null)}},0,"ma")},Asf=function(W,B,z,G,Y,d){var E=
_.PA(7111);
_.ui(W.JSC$18321_screenManager,E,d?_.XF(d):void 0);_.mx(W.JSC$18321_screenManager,E,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:G,offlineId:B,offlineabilityFormatType:z,isDefaultFormatType:Y==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:Y}})},iVY=function(W,B,z,G,Y){var d,E,v,c,J;
return _.T(function(g){if(g.nextAddress==1)return g.yield(W.JSC$18321_playerApiPromise,2);d=g.yieldResult;Asf(W,B,z,"OFFLINE_OBJECT_TYPE_PLAYLIST",G,Y);if(v=_.Mhu[W.entityTypeMap.listEntityType])J={},E=(J[v]={maximumDownloadQuality:(c=z)!=null?c:void 0},J);return g.yield(d.queueOfflineAction(B,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",E),0)})},ETr=function(W,B){var z,G,Y,d;
return _.T(function(E){if(E.nextAddress==1)return E.yield(W.JSC$18321_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3){z=E.yieldResult;if(!z)return _.Oc(new _.oX("PES is undefined")),E.return();G=_.sg(B,"downloadStatusEntity");return E.yield(l06(z,G,"downloadStatusEntity"),3)}Y=E.yieldResult;return E.return((d=Y)==null?void 0:d.downloadState)})},Tbf=function(W,B,z,G,Y){var d,E,v,c,J,g;
return _.T(function(t){switch(t.nextAddress){case 1:return t.yield(W.JSC$18321_playerApiPromise,2);case 2:d=t.yieldResult;Asf(W,B,z,"OFFLINE_OBJECT_TYPE_VIDEO",G,Y);if(v=_.Mhu[W.entityTypeMap.singleEntityType])J={},E=(J[v]={maximumDownloadQuality:(c=z)!=null?c:void 0},J);return t.yield(ETr(W,B),3);case 3:g=t.yieldResult;if(g!=="DOWNLOAD_STATE_USER_DELETED"){t.jumpTo(4);break}return t.yield(W.deleteVideo(B),4);case 4:return t.yield(d.queueOfflineAction(B,W.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
E),0)}})},vTn=function(W,B,z,G,Y){return _.T(function(d){return d.nextAddress==1?d.yield(W.deleteVideo(B,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):d.yield(Tbf(W,B,z,G,Y),0)})},csi=function(W,B,z){var G,Y;
return _.T(function(d){if(d.nextAddress==1)return d.yield(W.JSC$18321_playerApiPromise,2);G=d.yieldResult;Y=_.sg(B,"mainVideoDownloadStateEntity");return d.yield(G.updateDownloadState(Y,z),0)})},pk6=function(W){var B=_.dO().resolve(_.Qo);
return _.T(function(z){if(z.nextAddress==1)return B.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&B.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?z.jumpTo(2):z.yield(B.resumeVideoDownload(W),2);if(z.nextAddress!=4)return z.yield(csi(B,W,B.previousDownloadStateForVideo[W]),4);delete B.previousDownloadStateForVideo[W];_.HG(z)})},Y_i=function(W,B){var z;
return _.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$18321_playerApiPromise,2);z=G.yieldResult;return G.yield(z.queueOfflineAction(B,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},Bh6=function(){var W=_.dO().resolve(_.Qo),B,z;
return _.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$18321_playerApiPromise,2);if(G.nextAddress!=3)return B=G.yieldResult,z={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},G.yield(B.queueOfflineAction("!*$_ALL_ENTITIES_!*$",W.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",z),3);var Y=W.JSC$18321_commandHandler,d=Y.resolveCommand,E=_.kq("DELETING_ALL",void 0,"Downloads are being deleted");d.call(Y,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Aq(E)}},
popupType:"TOAST"}});_.HG(G)})},w8j=function(W,B){var z,G,Y,d,E,v;
return _.T(function(c){if(c.nextAddress==1)return c.yield(W.JSC$18321_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3)return z=c.yieldResult,z?c.yield(l06(z,_.Og,"downloadsPageViewConfigurationEntity"),3):(_.Oc(new _.oX("PES is undefined")),c.return());Y=(G=c.yieldResult)!=null?G:{};v=(E=(d=Y)==null?void 0:d.downloadsUpsellBannerVisibility)!=null?E:{};return v.visibleWithConnection?c.yield(B.refreshAllStaleEntities(0),0):c.jumpTo(0)})},VmO=function(W){var B,z;
return _.T(function(G){if(G.nextAddress==1)return G.yield(W.JSC$18321_prefStorage,2);B=G.yieldResult;return G.return((z=B)==null?void 0:z.get("sdois"))})},Jsr=function(W){var B,z,G,Y,d,E;
return _.T(function(v){if(v.nextAddress==1)return v.yield(W.JSC$18321_persistentStorePromiseAccessor(),2);if(v.nextAddress!=3){B=v.yieldResult;if(!B)return _.Oc(new _.oX("PES is undefined")),v.return();z=_.sg("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return v.yield(l06(B,z,"settingEntity"),3)}G=v.yieldResult;return v.return((E=(Y=G)==null?void 0:(d=Y.settingOptionValue)==null?void 0:d.boolValue)!=null?E:!1)})},gTj=function(W,B){var z,G,Y,d;
return _.T(function(E){switch(E.nextAddress){case 1:return((z=B)==null?void 0:z.formatType)===void 0?E.return():E.yield(W.JSC$18321_prefStorage,2);case 2:G=E.yieldResult;if(G===void 0)return E.return();if(((Y=B)==null?void 0:Y.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return E.yield(G.set("lmqf",B.formatType),8);if(((d=B)==null?void 0:d.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){E.jumpTo(0);break}return E.yield(G.set("lmqf",B.formatType),6);case 6:return E.yield(G.set("lmqflst",
Math.floor((0,_.Yb)())),0);case 8:return E.yield(G.remove("lmqflst"),0)}})},tm1=function(W){var B,z;
return _.T(function(G){switch(G.nextAddress){case 1:return G.yield(W.JSC$18321_prefStorage,2);case 2:B=G.yieldResult;if(!B){G.jumpTo(3);break}return G.yield(B.get("lmqflst"),4);case 4:if(z=G.yieldResult,z!==void 0)return G.return(z);case 3:return G.return(0)}})},sO1=function(W){var B,z;
return _.T(function(G){switch(G.nextAddress){case 1:return G.yield(W.JSC$18321_prefStorage,2);case 2:B=G.yieldResult;if(B===void 0){G.jumpTo(3);break}return G.yield(B.get("lmqf"),4);case 4:if(z=G.yieldResult,z!==void 0)return G.return(z);case 3:return G.return("SD")}})},Vgf=function(W,B,z){var G,Y,d,E,v,c,J,g;
_.T(function(t){switch(t.nextAddress){case 1:return t.yield(gTj(W,(G=B)==null?void 0:G.actionParams),2);case 2:Y=B.playlistId;if(!Y)return t.return();if(B.action==="ACTION_ADD")return((E=B.actionParams)==null?0:E.formatType)?t.yield(iVY(W,Y,B.actionParams.formatType,(g=B.actionParams)==null?void 0:g.settingsAction,z),0):t.yield(W.offlineWebClientEligibility,14);if(B.action==="ACTION_REMOVE_WITH_PROMPT"){var P=W.JSC$18321_commandHandler,Z=P.resolveCommand,l=_.eD("INNERTUBE_CLIENT_NAME");var b=l===
"WEB_REMIX"?_.kq("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.kq("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var O=l==="WEB_REMIX"?[_.kq("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];l=l==="WEB_REMIX"?_.kq("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.kq("DELETE",void 0,"Delete");var K=_.kq("CANCEL",void 0,"Cancel");b=gqn(b,O,l,K,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:Y});Z.call(P,{openPopupAction:b});return t.return()}if(B.action===
"ACTION_REMOVE")return t.yield(Y_i(W,Y),0);if(B.action!=="ACTION_SYNC"){t.jumpTo(0);break}return t.yield(W.JSC$18321_playerApiPromise,9);case 9:return d=t.yieldResult,t.yield(d.queueOfflineAction(Y,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return v=t.yieldResult,t.yield(sO1(W),15);case 15:return c=t.yieldResult,t.yield(tm1(W),16);case 16:J=t.yieldResult,B.onAddCommand&&W.JSC$18321_commandHandler.resolveCommand(B.onAddCommand,{form:{preferredFormatType:c,
offlineWebClientEligibility:v,lastOfflineQualitySettingsSavedMs:J.toString()}}),t.jumpTo(0)}})},cEi=function(W,B,z){var G,Y,d,E,v,c,J,g,t,P,Z,l,b,O;
_.T(function(K){switch(K.nextAddress){case 1:return K.yield(gTj(W,(G=B)==null?void 0:G.actionParams),2);case 2:Y=B.videoId;if(!Y)return K.return();if(B.action==="ACTION_REMOVE_WITH_PROMPT"){var e=W.JSC$18321_commandHandler,a=e.resolveCommand,q=_.eD("INNERTUBE_CLIENT_NAME");var n=q==="WEB_REMIX"?_.kq("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.kq("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var L=q==="WEB_REMIX"?[_.kq("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];q=q==="WEB_REMIX"?_.kq("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.kq("DELETE",void 0,"Delete");var By=_.kq("CANCEL",void 0,"Cancel");n=gqn(n,L,q,By,{signal:"DELETE_DOWNLOAD",targetId:Y});a.call(e,{openPopupAction:n});return K.return()}if(B.action==="ACTION_ADD")return((P=B.actionParams)==null?0:P.formatType)?K.yield(Tbf(W,Y,B.actionParams.formatType,(O=B.actionParams)==null?void 0:O.settingsAction,z),0):K.yield(W.offlineWebClientEligibility,23);if(B.action==="ACTION_RETRY")return K.yield(sO1(W),
19);if(B.action==="ACTION_PAUSE")return K.yield(W.pauseVideoDownload(Y),0);if(B.action==="ACTION_RESUME")return K.yield(W.resumeVideoDownload(Y),0);if(B.action!=="ACTION_REMOVE"){K.jumpTo(0);break}return K.yield(ETr(W,Y),13);case 13:return d=K.yieldResult,W.previousDownloadStateForVideo[Y]=(E=d)!=null?E:"DOWNLOAD_STATE_UNKNOWN",K.yield(csi(W,Y,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(W.previousDownloadStateForVideo[Y]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&W.previousDownloadStateForVideo[Y]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){K.jumpTo(15);break}return K.yield(W.pauseVideoDownload(Y),15);case 15:e=_.kq("DELETED_VIDEO",void 0,"Video deleted from downloads.");a=_.kq("UNDO_ACTION",void 0,"Undo");n=_.kq("CLOSE",void 0,"Close");v={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Aq(e),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Aq(a),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:Y}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:e+" "+a}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:Y}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:n}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};W.JSC$18321_commandHandler.resolveCommand(v);
K.jumpTo(0);break;case 19:c=K.yieldResult;c==="UNKNOWN_FORMAT_TYPE"&&(c="SD");J="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((g=B.actionParams)==null?0:g.formatType)c=B.actionParams.formatType,J=(t=B.actionParams)==null?void 0:t.settingsAction;return K.yield(vTn(W,Y,c,J,z),20);case 20:return K.return();case 23:return Z=K.yieldResult,K.yield(sO1(W),24);case 24:return l=K.yieldResult,K.yield(tm1(W),25);case 25:b=K.yieldResult,B.onAddCommand&&W.JSC$18321_commandHandler.resolveCommand(B.onAddCommand,
{form:{preferredFormatType:l,offlineWebClientEligibility:Z,lastOfflineQualitySettingsSavedMs:b.toString()}}),K.jumpTo(0)}})},P0O=function(W,B){var z,G,Y,d,E,v,c;
return _.T(function(J){if(J.nextAddress==1)return J.yield(W.JSC$18321_persistentStorePromiseAccessor(),2);z=J.yieldResult;if(!z)return _.Oc(new _.oX("PES is undefined")),J.return();if((G=B)==null||!G.settingItemId)return J.return();Y=B;d=Y.settingItemId;E=Y.boolValue;v=_.sg(d,"settingEntity");c={key:v,settingOptionValue:{boolValue:E}};return J.yield(kHi(z,c),0)})},ZVK=function(W,B){var z,G,Y,d,E,v,c;
return _.T(function(J){switch(J.nextAddress){case 1:return J.yield(W.JSC$18321_prefStorage,2);case 2:return z=J.yieldResult,G=_.IP(),J.yield(W.JSC$18321_persistentStorePromiseAccessor(),3);case 3:return Y=J.yieldResult,z?Y?J.yield(z.get("sdois"),4):(_.Oc(new _.oX("PES is undefined")),J.return()):(_.Oc(new _.oX("prefStorage is undefined")),J.return());case 4:d=J.yieldResult;v=(E=B)==null?void 0:E.boolValue;v===void 0||_.r("kevlar_set_sd_enabled_flag_killswitch")||_.oP(0,197,!0);d===void 0&&v===void 0&&
(v=!1);if(v===void 0){J.jumpTo(0);break}return J.yield(z.set("sdois",v),6);case 6:return _.r("kevlar_set_sd_enabled_flag_killswitch")||(_.oP(0,196,v),G.save()),c={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:v},J.yield(P0O(W,c),0)}})},rsb=function(W,B,z){var G,Y,d,E,v;
return _.T(function(c){switch(c.nextAddress){case 1:return c.yield(VmO(W),2);case 2:return G=c.yieldResult,c.yield(ZVK(W,z),3);case 3:return c.yield(VmO(W),4);case 4:return Y=c.yieldResult,d=Y!==G,c.yield(Jsr(W),5);case 5:E=c.yieldResult&&!_.r("kevlar_modern_downloads_page");if((v=!Y&&!E)||d)return c.yield(B.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);c.jumpTo(0)}})},ikn=function(){var W=_.dO().resolve(_.Qo),
B;
_.T(function(z){switch(z.nextAddress){case 1:return z.yield(W.JSC$18321_playerApiPromise,2);case 2:B=z.yieldResult;if(!_.r("kevlar_force_refresh_smart_downloads")){z.jumpTo(3);break}return z.yield(B.refreshAllStaleEntities(0),4);case 4:return z.return();case 3:return z.yield(B.refreshAllStaleEntities(),5);case 5:return z.yield(rsb(W,B),6);case 6:if(_.r("enable_download_pep_for_premium_countries_web"))return z.yield(w8j(W,B),0);z.jumpTo(0)}})},gl6=function(W,B){var z,G;
_.T(function(Y){switch(Y.nextAddress){case 1:return Y.yield(W.JSC$18321_playerApiPromise,2);case 2:z=Y.yieldResult;switch((G=B)==null?void 0:G.settingItemId){case "SMART_DOWNLOADS_ENABLED":return Y.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return Y.jumpTo(4)}Y.jumpTo(0);break;case 3:return Y.yield(rsb(W,z,B),6);case 6:Y.jumpTo(0);break;case 4:return Y.yield(P0O(W,B),7);case 7:Y.jumpTo(0)}})},kC9=function(W,B){var z,G,Y;
return _.T(function(d){if(d.nextAddress==1)return d.yield(W.JSC$18321_persistentStorePromiseAccessor(),2);if(d.nextAddress!=3){z=d.yieldResult;if(!z)return _.Oc(new _.oX("PES is undefined")),d.return(!1);if(!B)return d.return(!1);G=_.sg(B,"mainVideoEntity");return d.yield(l06(z,G,"mainVideoEntity"),3)}Y=d.yieldResult;return d.return(Y!==void 0)})},s6Y=function(W){var B=_.dO().resolve(_.Qo),z,G,Y,d,E,v,c,J,g,t,P;
_.T(function(Z){switch(Z.nextAddress){case 1:return Z.yield(B.JSC$18321_playerApiPromise,2);case 2:z=Z.yieldResult;Y=(G=W)==null?void 0:G.actions;if(!Y)return Z.return();d=_.A(Y);E=d.next();case 3:if(E.done){Z.jumpTo(0);break}v=E.value;J=c=void 0;if(!(((c=v)==null?0:c.entityKey)&&((J=v)==null?0:J.actionType))){Z.jumpTo(4);break}g=_.c3(v.entityKey);t=g.entityId;P=g.entityType;return Z.yield(z.queueOfflineAction(t,P,v.actionType),4);case 4:E=d.next(),Z.jumpTo(3)}})},lJY=function(W,B){var z,G,Y,d,E;
return _.T(function(v){if(v.nextAddress==1)return v.yield(W.JSC$18321_prefStorage,2);if(v.nextAddress!=3)return(z=v.yieldResult)?v.yield(z.get("psi"),3):v.return();G=v.yieldResult;E={isPaused:B,lastSyncTimestamp:(d=(Y=G)==null?void 0:Y.lastSyncTimestamp)!=null?d:"0"};return v.yield(z.set("psi",E),0)})},rE0=function(W){var B=_.dO().resolve(_.Qo),z,G,Y,d,E,v,c,J;
return _.T(function(g){switch(g.nextAddress){case 1:return g.yield(B.JSC$18321_playerApiPromise,2);case 2:z=g.yieldResult;Y=((G=W)==null?void 0:G.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((v=W)==null?void 0:v.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":d="!*$_ALL_ENTITIES_!*$";E="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return g.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return g.jumpTo(4)}g.jumpTo(5);break;case 3:return g.yield(lJY(B,Y),6);case 6:g.jumpTo(5);break;case 4:return g.yield(kC9(B,(c=W)==null?void 0:c.videoId),7);case 7:g.yieldResult&&(d=(J=W)==null?void 0:J.videoId,E="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");g.jumpTo(5);break;case 5:if(d&&E)return g.yield(z.queueOfflineAction(d,"videoPlaybackPositionEntity",E),0);g.jumpTo(0)}})},C09=function(W,B){(B=W.persistentPanelContainerMap.get(B))&&W.persistentPanelWrapper&&
B.appendChild(W.persistentPanelWrapper)},IJf=function(W,B){var z;
B!==1||((z=W.currentPersistentToast)==null?0:z.isOpened())?W.openToast():W.currentPersistentToast=void 0},oTr=function(W,B){var z;
return(z=W.transitionTasksMap.get(B))!=null?z:[]},hZi=function(W,B){var z=[];
W.elementTasksMap.forEach(function(G){(G=G.get(B))&&z.push(G)});
return z},HV9=function(W,B,z,G,Y){Y=Y===void 0?{}:Y;
var d=B.defaultViewTransitionOptions;return Object.assign({},d,Y,{beforeTransition:function(){G.forEach(function(J){J.beforeTransition()});
var E;(E=d.beforeTransition)==null||E.call(d);var v,c;(c=(v=Y).beforeTransition)==null||c.call(v);z.forEach(function(J){J.beforeTransition()})},
afterTransition:function(){G.forEach(function(J){J.afterTransition()});
var E;(E=d.afterTransition)==null||E.call(d);var v,c;(c=(v=Y).afterTransition)==null||c.call(v);z.forEach(function(J){J.afterTransition()})},
ignoredErrors:W.config.ignoredErrors})},Fwf=function(W,B,z){W.transitionTasksMap.has(B)?W.transitionTasksMap.get(B).push(z):(W=new _.oX("Transition task registered for unknown transition type",B),_.jy(W))},SLr=function(W,B,z){if(W.transitionTasksMap.has(B)){var G=W.transitionTasksMap.get(B).filter(function(Y){return Y!==z});
W.transitionTasksMap.set(B,G)}},bVf=function(W,B){var z=oTr(W,B);
z=_.A(z);for(var G=z.next();!G.done;G=z.next())G=G.value,G.runOnce&&SLr(W,B,G);W.elementTasksMap.forEach(function(Y,d){Y.forEach(function(E,v){E.runOnce&&B===v&&(Y.delete(v),Y.size===0&&W.elementTasksMap.delete(d))})})},jOK=function(W,B,z){var G,Y,d,E,v,c,J,g,t;
_.T(function(P){if(P.nextAddress==1){if(W.config.disableAllTransitions)return P.return(B());if((G=z)==null||!G.transitionType)return P.return(_.Ro0(B,Object.assign({},(Y=z)==null?void 0:Y.viewTransitionOptions,{ignoredErrors:W.config.ignoredErrors})));d=z;E=d.transitionType;v=d.viewTransitionOptions;c=W.config.transitionConfigs.get(E);if(!c)return P.return(B());J=oTr(W,E);g=hZi(W,E);t=_.Ro0(B,HV9(W,c,J,g,v));return P.yield(t,2)}bVf(W,E);_.HG(P)})},fJf=function(){var W,B,z,G;
return _.T(function(Y){if(Y.nextAddress==1)return W=navigator,(B=W.storage)!=null&&B.persisted?Y.yield((z=W.storage)==null?void 0:z.persisted(),2):Y.return("PERSISTED_STATE_NOT_SUPPORTED");G=Y.yieldResult;return Y.return(G?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},OV9=function(){var W,B,z,G;
return _.T(function(Y){if(Y.nextAddress==1)return W=navigator,(B=W.storage)!=null&&B.persist?Y.yield((z=W.storage)==null?void 0:z.persist(),2):Y.return("PERSISTED_STATE_NOT_SUPPORTED");G=Y.yieldResult;return Y.return(G?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},X8Y=function(){var W,B;
return _.T(function(z){switch(z.nextAddress){case 1:return W="PERSISTED_STATE_NOT_SUPPORTED",_.kA(z,2),z.yield(fJf(),4);case 4:W=z.yieldResult;if(W!=="PERSISTED_STATE_NOT_GRANTED"){z.jumpTo(5);break}return z.yield(OV9(),6);case 6:W=z.yieldResult;case 5:_.Nn(z,3);break;case 2:B=_.h6(z),B instanceof Error&&_.jy(B);case 3:return _.Sy("persistentStorageStateChecked",{persistedState:W}),z.return(W)}})},Kwb=function(W,B){var z=[],G=!1;
B=_.A(B);for(var Y=B.next();!Y.done;Y=B.next()){Y=W.moduleRegistry[Y.value];var d=void 0,E=void 0;((d=Y)==null?0:d.isFetching)&&((E=Y)==null?0:E.resolver)?(z.push(Y.resolver.promise),G=!0):(Y=new _.sl,Y.resolve(void 0),z.push(Y.promise))}return G?Promise.all(z):void 0},uPi=function(W,B,z){if(W.isAnyTransitionEnabled){var G={beforeTransition:function(){z(!0);
B.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){B.style.viewTransitionName&&(B.style.viewTransitionName="",z(!1))}};
Fwf(W.viewTransitionCoordinator,"slide",G);Fwf(W.viewTransitionCoordinator,"lockup-to-watch",G);Fwf(W.viewTransitionCoordinator,"watch-next-appears",G);Fwf(W.viewTransitionCoordinator,"learning-journey",G)}},eZO=function(W,B){W.isBrowseTransitionEnabled?jOK(W.viewTransitionCoordinator,B,{transitionType:"slide"}):(B(),Promise.resolve())},mii=function(W,B){W.isLockupToWatchTransitionEnabled?jOK(W.viewTransitionCoordinator,B,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){W.registeredLockupThumbnail=void 0;W.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(B(),Promise.resolve())},xi1=function(W,B){W.isLockupToWatchTransitionEnabled?jOK(W.viewTransitionCoordinator,B,{transitionType:"watch-next-appears"}):(B(),Promise.resolve())},Di9=function(W,B){W.isLearningJourneyTransitionEnabled?jOK(W.viewTransitionCoordinator,B,{transitionType:"learning-journey"}):(B(),Promise.resolve())},QO9=function(W,B,z){if(W.isInitialized()){var G=
aU(z),Y=G==="watch";
G=G==="shorts";var d=aU(B)==="watch";if(Y)d||(W.backgroundPageData=B),W.watchPipMode&&d||W.deactivate(z.endpoint);else if(G){if(aU(B)!=="shorts"){var E;(E=W.getPlayerElement())==null||E.pause()}}else d&&!W.watchPipMode&&(sPY(B,z)?(W.watchWhileMode&&_.T4Y(W,!1),_.Ydb(W,B)):W.isMiniplayerActive()&&W.watchWhileMode&&W.deactivate());d&&_.cyn(W);W.shortsPipMode&&!G&&(window.focus(),W.deactivate());if(W.pictureInPictureEnabled())if(G&&W.shortsPipEnabled||Y&&W.watchPipEnabled)_.SP8(W.handleMediaSessionPipActivation);
else if(!W.isMiniplayerActive()&&(W.shortsPipEnabled||W.watchPipEnabled)&&window.documentPictureInPicture&&_.F2()&&_.VQy("Chromium")>=120){W=_.Fp2().mediaSession;try{W.setActionHandler("enterpictureinpicture",null)}catch(v){}}}},ys9=function(W,B){var z,G;
_.T(function(Y){if(Y.nextAddress==1){if(!W||!W.navigationEndpoint)return Y.return();_.qG().lockupActivation=!0;var d;B?d=_.Bg(_.kq("QUEUE",void 0,"Queue")):d=W.longBylineText;G=(z=d)&&W.title?{miniplayerTitle:W.title,miniplayerSubtitle:z,playlistData:null}:void 0;return Y.yield(_.gW7(_.dO().resolve(_.Qb),W.navigationEndpoint,!0,G),2)}_.qG().userActivation=!0;_.HG(Y)})},Oyn=function(W,B){var z,G,Y,d,E,v;
_.T(function(c){if(c.nextAddress==1){z=_.k(B,_.tru);if(!z||!z.listId)return c.return();W.index=z.index||W.index||0;G=W.response&&W.response.playingVideoId||void 0;return c.yield(_.oD6(W.JSC$12924_playlistNetworkManager,z.listId,W.index,G),2)}Y=c.yieldResult;if(!Y)return c.return();d=Y.playlistId;E=Y.playlistPanelRenderer;!W.queueProxy&&d&&E&&d.startsWith("TLPQ")&&(W.queueProxy=new _.T1(W.JSC$12924_playlistNetworkManager,d,W.setPlaylistData.bind(W),W.clearQueue.bind(W),_.Ssy(E),W.storage));if(z.openMiniplayer&&
(v=_.bjk(E))&&!W.pageManager.isOnWatch()){var J=v,g=z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";W.isMiniplayerActive()?W.openToast(J):ys9(J,g)}W.setPlaylistData(d,E,Y.autoplayRenderer);_.HG(c)})},byn=function(W,B){var z=_.sr();
z.index===void 0&&(z.index=0);z.temporaryItems.push.apply(z.temporaryItems,_.u7(W));if((B.videoId||B.videoIds)&&z.index!==void 0&&B.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!z.queueProxy){var G=[];if(z.response){var Y=_.dO().resolve(_.Qb).isMiniplayerActive();if(z.response.playlistPanelRenderer&&z.response.playlistId&&!z.response.playlistId.startsWith("TLPQ")){if(z.pageManager.isOnWatch()||Y)G=_.Ssy(z.response.playlistPanelRenderer)}else z.response.playingVideoId&&!B.openMiniplayer?G.push(z.response.playingVideoId):
Y&&z.response.playingVideoId&&B.openMiniplayer&&G.push(z.response.playingVideoId)}z.queueProxy=new _.T1(z.JSC$12924_playlistNetworkManager,"",z.setPlaylistData.bind(z),z.clearQueue.bind(z),G,z.storage);z.queueProxy.JSC$12870_setCurrentIndex(z.index)}z.queueProxy.addVideos(B.videoIds||[B.videoId],B)}oni(z,W);z.response&&_.Pz(z,_.Z$(z,z.response.autoplayRenderer));z.pageManager.isOnWatch()?z.isMiniplayerActive()&&z.openToast(W[0]):(W=W[0],B=B.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",z.isMiniplayerActive()?
z.openToast(W):ys9(W,B))},qLb=function(W){var B=_.MT(W);
if(B=="object"||B=="array"){if(typeof W.clone==="function")return W.clone();if(typeof Map!=="undefined"&&W instanceof Map)return new Map(W);if(typeof Set!=="undefined"&&W instanceof Set)return new Set(W);B=B=="array"?[]:{};for(var z in W)B[z]=qLb(W[z]);return B}return W},td=function(W,B){return _.vMr(_.CV(W,B,void 0,_.l0))},sm=function(W,B){return _.di(_.CV(W,B,void 0,_.l0))},Pa=function(W,B){return _.jur(_.CV(W,B,void 0,_.l0))},ZQ=function(W,B){return _.CV(W,B,void 0,_.l0,_.NT)},nTb=_.vb(function(W,
B,z){if(W.nextWireType_!==0)return!1;
_.cb(B,z,_.qi(W.decoder_,_.EM8));return!0},_.go,_.UL),Nbq=_.vb(function(W,B,z,G){if(W.nextWireType_!==0)return!1;
_.H8(B,z,G,_.qi(W.decoder_,_.EM8));return!0},_.go,_.UL),$i9=_.vb(function(W,B,z){if(W.nextWireType_!==1)return!1;
var G=W.decoder_;W=_.Ni(G);G=_.Ni(G);W=_.m4(W,G);_.cb(B,z,W);return!0},_.SKD,_.Wck),Lwn=_.vb(function(W,B,z){if(W.nextWireType_!==5)return!1;
_.cb(B,z,_.Ni(W.decoder_));return!0},function(W,B,z){B=_.VRR(B);
B!=null&&(_.wo(W,z,5),_.VN(W.encoder_,B))},_.Mz0),Uib=_.vb(function(W,B,z){if(W.nextWireType_!==2)return!1;
W=_.Kyk(W);_.cb(B,z,W===_.hM()?void 0:W);return!0},_.Xb2,_.G0R),Mmj=_.lRD(function(W,B,z){if(W.nextWireType_!==0&&W.nextWireType_!==2)return!1;
B=_.Bb(B,B[_.AM]|0,z);W.nextWireType_==2?_.ujx(W,dgb,B):B.push(_.nV(W.decoder_));return!0},function(W,B,z){B=_.k_0(_.di,B,!0);
if(B!=null&&B.length){z=_.qSX(W,z);for(var G=0;G<B.length;G++)_.hmr(W.encoder_,B[G]);_.nKR(W,z)}},_.YNy),aJb=_.vb(function(W,B,z,G){if(W.nextWireType_!==0)return!1;
_.H8(B,z,G,_.nV(W.decoder_));return!0},_.uMy,_.YNy),RZ6=function(W){return W.previousElementSibling!==void 0?W.previousElementSibling:_.tfT(W.previousSibling,!1)},WkO=function(W,B){var z=[];
for(B=B||0;B<W.length;B+=2)_.pbD(W[B],W[B+1],z);return z.join("&")},Bwj=function(W,B){var z=arguments.length==2?WkO(arguments[1],0):WkO(arguments,1);
return _.dZ9(W,z)},B50=_.ro(_.eg),zCb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(zCb,_.iQ);zCb.prototype.getTypeName=function(){return _.KV(this,1).split("/").pop()};
zCb.prototype.getValue=function(){var W=_.CV(this,2);if(Array.isArray(W)||W instanceof _.iQ)throw Error("W");return _.hs(this,2)};
var yHi=function(){var W=_.VL();this.JSC$9918_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.JI("channel_type"))};
yHi.prototype.increment=function(W){this.JSC$9918_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",W)};
var qRi=function(){var W=_.VL();this.JSC$9921_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.JI("channel_type"))};
qRi.prototype.increment=function(W){this.JSC$9921_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",W)};
var N5j=function(){var W=_.VL();this.JSC$9924_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.JI("channel_type"))};
N5j.prototype.increment=function(W){this.JSC$9924_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",W)};
var nwi=function(){var W=_.VL();this.JSC$9927_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
nwi.prototype.increment=function(){this.JSC$9927_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var $JK=function(){var W=_.VL();this.JSC$9930_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.JI("channel_type"),_.JI("error_type"))};
$JK.prototype.increment=function(W,B){this.JSC$9930_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",W,B)};
var Ls6=function(){var W=_.VL();this.JSC$9933_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
Ls6.prototype.increment=function(){this.JSC$9933_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var UJf=function(){var W=_.VL();this.JSC$9936_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
UJf.prototype.increment=function(){this.JSC$9936_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var xF9=function(){var W=_.VL();this.JSC$9942_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
xF9.prototype.increment=function(){this.JSC$9942_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var GIj=function(W){return W.getCount&&typeof W.getCount=="function"?W.getCount():_.yR(W)||typeof W==="string"?W.length:_.mP.getCount(W)},Y8Y=function(W,B){if(typeof W.every=="function")return W.every(B,void 0);
if(_.yR(W)||typeof W==="string")return Array.prototype.every.call(W,B,void 0);for(var z=_.pR7(W),G=_.wd(W),Y=G.length,d=0;d<Y;d++)if(!B.call(void 0,G[d],z&&z[d],W))return!1;return!0},dDq=function(W,B,z,G){var Y=new _.B0(null);
W&&_.VS(Y,W);B&&_.J4(Y,B);z&&_.gd(Y,z);G&&_.t4(Y,G);return Y},pqO=function(){var W=_.mH&&_.t0(_.ZgD,10)>=0,B;
if(B=_.y3k)B=_.t0(_.P27,10)>=0;var z=_.ZJ&&_.t0(_.ZgD,85)>=0;return _.gb||W||B||z},AoO=function(W){var B=_.mf4(W);
return B&&pqO()?-W.scrollLeft:B&&_.np(W,"overflowX")!="visible"?W.scrollWidth-W.clientWidth-W.scrollLeft:W.scrollLeft},ifj=function(W,B){B=Math.max(B,0);
_.mf4(W)?pqO()?W.scrollLeft=-B:W.scrollLeft=W.scrollWidth-B-W.clientWidth:W.scrollLeft=B},jPj=0,uOY=!1;
We.prototype.set=function(W){this.relativeTimeStart_=W};
We.prototype.reset=function(){this.set(_.EL())};
We.prototype.get=function(){return this.relativeTimeStart_};
var Ein=null,Twf=function(){Ein||(Ein=new We)},vii=function(){Ein||(Ein=new We)};
_.TC(vii,Twf);_.p=mjO.prototype;_.p.JSC$11358_buffer_="";_.p.set=function(W){this.JSC$11358_buffer_=""+W};
_.p.append=function(W,B,z){this.JSC$11358_buffer_+=String(W);if(B!=null)for(var G=1;G<arguments.length;G++)this.JSC$11358_buffer_+=arguments[G];return this};
_.p.clear=function(){this.JSC$11358_buffer_=""};
_.p.getLength=function(){return this.JSC$11358_buffer_.length};
_.p.toString=function(){return this.JSC$11358_buffer_};
var con=!1,NVi=function(W){_.zT.call(this,W.message||W.description||W.name);this.isMissing=W instanceof Be;this.isTimeout=W instanceof _.ut&&W.errorCode=="net.timeout";this.isCanceled=W instanceof _.qF};
_.C(NVi,_.zT);NVi.prototype.name="BiscottiError";var Be=function(){_.zT.call(this,"Biscotti ID is missing from server")};
_.C(Be,_.zT);Be.prototype.name="BiscottiMissingError";var zj=null,CFn=function(){try{var W=_.q6("yt.ads.biscotti.getId_");return W?W():I40()}catch(B){return _.mR(B)}},wq9=function(W,B){return _.Tl({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:W,command:B}})},V70=function(W){return _.Tl({type:"SET_GUIDE_IS_EXPANDED",
payload:W})},Joi=function(W){return _.Tl({type:"SET_ONLINE_STATUS",
payload:W})},giO=function(W,B){return _.Tl({type:"SET_TRANSCRIPTION_STATE",
payload:{high:W,low:B}})},t70=function(W){return _.Tl({type:"SET_OVERLAY_STATE",
payload:W})},sfY=0,PLi=function(W,B,z){var G=this;
this.priority=B;this.delay=z;this.jobId=0;this.completionCallback=_.j7;this.wrappedJob=function(){W();G.completionCallback()};
this.id=++sfY};
PLi.prototype.enqueue=function(W){this.completionCallback=W;this.jobId=_.fg.addJob(this.wrappedJob,this.priority,this.delay)};
var rM=function(){_.Zq.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.C(rM,_.Zq);rM.prototype.addJob=function(W,B,z){W=new PLi(W,B,z);this.taskIdToTask.set(W.id,W);this.isActive?Zfb(this,W):this.suspendedTasks.add(W);return W.id};
var Zfb=function(W,B){W.scheduledTasks.add(B);B.enqueue(function(){W.scheduledTasks.delete(B)})};
rM.prototype.cancelJob=function(W){(W=this.taskIdToTask.get(W))&&(this.scheduledTasks.delete(W)?_.fg.cancelJob(W.jobId):this.suspendedTasks.delete(W))};
rM.prototype.pause=function(){var W=this;this.isActive=!1;this.scheduledTasks.forEach(function(B){_.fg.cancelJob(B.jobId);W.suspendedTasks.add(B)});
this.scheduledTasks.clear()};
rM.prototype.start=function(){var W=this;this.isActive=!0;this.suspendedTasks.forEach(function(B){Zfb(W,B)});
this.suspendedTasks.clear()};
rM.prototype.reset=function(){this.scheduledTasks.forEach(function(W){_.fg.cancelJob(W.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var ke=function(W,B){this.JSC$13050_networkService_=W;this.pageRequestPromise=B};
ke.prototype.fetchData=function(W){roi(this,this.JSC$13050_networkService_.fetchData(W))};
ke.prototype.postData=function(W,B){roi(this,this.JSC$13050_networkService_.postData(W,B))};
ke.prototype.requestDataForServiceEndpoint=function(W,B){roi(this,this.JSC$13050_networkService_.requestDataForServiceEndpoint(W,B))};
var roi=function(W,B){B.then(W.pageRequestPromise.onSuccess,W.pageRequestPromise.onFailure,W.pageRequestPromise)};
ke.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var lT=function(W){this.buildNetworkRequest_=W;this.pendingRequests_=new Set};
lT.prototype.reset=function(){this.pendingRequests_.forEach(function(W){W.cancel()});
this.pendingRequests_.clear()};
lT.prototype.fetchData=function(W){var B=kIO(this);B.fetchData(W);return B.pageRequestPromise};
lT.prototype.postData=function(W,B){var z=kIO(this);z.postData(W,B);return z.pageRequestPromise};
lT.prototype.requestDataForServiceEndpoint=function(W,B){var z=kIO(this);z.requestDataForServiceEndpoint(W,B);return z.pageRequestPromise};
var kIO=function(W){var B=W.buildNetworkRequest_();W.pendingRequests_.add(B);var z=function(){W.pendingRequests_.delete(B)};
B.pageRequestPromise.then(z,z);return B},lFr=function(W){var B=new rM;
this.JSC$13057_networkService_=W;this.JSC$13057_taskManager_=B;this.JSC$13057_networkManager_=new lT(this.networkRequestFactory_.bind(this))};
_.p=lFr.prototype;_.p.networkRequestFactory_=function(){return new ke(this.JSC$13057_networkService_,new _.Or(this.JSC$13057_taskManager_))};
_.p.reset=function(){this.JSC$13057_taskManager_.reset();this.JSC$13057_networkManager_.reset()};
_.p.start=function(){this.JSC$13057_taskManager_.start()};
_.p.pause=function(){this.JSC$13057_taskManager_.pause()};
_.p.getTaskManager=function(){return this.JSC$13057_taskManager_};
_.p.getNetworkManager=function(){return this.JSC$13057_networkManager_};
var Ygr=null,Aqi=[],Gj=0,dg=0,YJ=null,CLf=!1,pK=null,EO6=void 0,iW=function(W){this.token=W};
iW.getInstance=function(){var W;return _.T(function(B){if(B.nextAddress==1)return B.yield(_.zU(),2);W=B.yieldResult;if(!W)return B.return();iW.instance||(iW.instance=new iW(W));return B.return(iW.instance)})};
var tL9=function(W){var B;return _.T(function(z){if(z.nextAddress==1)return z.yield(VL1(W.token),2);B=z.yieldResult;return z.return(B.clear("resource-manifest-assets"))})},A2=function(W){this.token=W};
A2.getInstance=function(){var W;return _.T(function(B){if(B.nextAddress==1)return B.yield(_.zU(),2);W=B.yieldResult;if(!W)return B.return();A2.instance||(A2.instance=new A2(W));return B.return(A2.instance)})};
var Jqn=function(W){var B;return _.T(function(z){if(z.nextAddress==1)return z.yield(VL1(W.token),2);B=z.yieldResult;return z.yield(B.clear("auth"),0)})},uNq=!1,IFb=function(W){_.zT.call(this,W)};
_.C(IFb,_.gs4);var oi9="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");v_i()&&oi9.push("details:not(:has(summary))");var wg1=oi9.join(",");var XJK=function(){var W=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return W?parseInt(W[1],10):0},hC9=function(W){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+W)!=-1||document.currentScript.src.indexOf("&"+W)!=-1)},Hf9=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},xH1=function(W){W.length?Fkr(W.shift(),function(){xH1(W)}):uFY()},QBi=function(W){return"chrome-extension://"+W+"/cast_sender.js"},Fkr=function(W,
B,z){var G=document.createElement("script");
G.onerror=B;z&&(G.onload=z);_.pN(G,_.Ok(W));(document.head||document.documentElement).appendChild(G)},S8f=function(){var W=XJK(),B=[];
if(W>1){var z=W-1;B.push("//www.gstatic.com/eureka/clank/"+W+"/cast_sender.js");B.push("//www.gstatic.com/eureka/clank/"+z+"/cast_sender.js")}return B},uFY=function(){var W=Hf9();
W&&W(!1,"No cast extension found")},mHi=function(){if(bf9){var W=2,B=Hf9(),z=function(){W--;
W==0&&B&&B(!0)};
window.__onGCastApiAvailable=z;Fkr("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",uFY,z)}},KRj=function(){mHi();
var W=S8f();W.push("//www.gstatic.com/eureka/clank/cast_sender.js");xH1(W)},eqi=function(){mHi();
var W=S8f();W.push.apply(W,_.u7(DHO.map(QBi)));W.push("//www.gstatic.com/eureka/clank/cast_sender.js");xH1(W)},bf9=hC9("loadCastFramework")||hC9("loadCastApplicationFramework"),DHO=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var jfb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(jfb,_.iQ);var fFf=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(fFf,_.iQ);var OfO=function(){var W=new fFf;return _.QV(W,1,3)};var C5=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(C5,_.iQ);var Xg6=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Xg6,_.iQ);var XqY=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(XqY,_.iQ);XqY.prototype.getToken=function(){return _.KV(this,1)};
XqY.prototype.setToken=function(W){return _.U_(this,1,W)};
var faK=function(W){return _.Ub(W,3,_.l9,_.vC())},OsK=function(W){return _.Ub(W,6,_.l9,_.vC())};var IC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(IC,_.iQ);IC.prototype.getToken=function(){return _.AD(this,XqY,2)};
IC.prototype.setToken=function(W){return _.o3(this,2,W)};
IC.prototype.getName=function(){return _.KV(this,6)};
var KkK=_.ro(IC);var uVi=function(W,B,z){this.requestMessage=W;this.methodDescriptor=B;this.metadata=z};
uVi.prototype.getMetadata=function(){return this.metadata};var eCf=function(W,B){B=B===void 0?{}:B;this.responseMessage=W;this.metadata=B;this.status=null};
eCf.prototype.getMetadata=function(){return this.metadata};
eCf.prototype.getStatus=function(){return this.status};var oC=function(W,B,z,G,Y){this.name=W;this.methodType="unary";this.requestType=B;this.responseType=z;this.requestSerializeFn=G;this.responseDeserializeFn=Y},mD6=function(W,B,z){z=z===void 0?{}:z;
return new uVi(B,W,z)};
oC.prototype.getName=function(){return this.name};var hd=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(hd,_.iQ);hd.prototype.getHeader=function(){return _.AD(this,C5,1)};
hd.prototype.setHeader=function(W){return _.o3(this,1,W)};
hd.prototype.hasHeader=function(){return _.IO(this,C5,1)};var xDn=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(xDn,_.iQ);var DDn=new oC("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",hd,xDn,function(W){return W.serialize()},_.ro(xDn));var Ha=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Ha,_.iQ);Ha.prototype.getHeader=function(){return _.AD(this,C5,1)};
Ha.prototype.setHeader=function(W){return _.o3(this,1,W)};
Ha.prototype.hasHeader=function(){return _.IO(this,C5,1)};var Qfi=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Qfi,_.iQ);var yoO=new oC("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Ha,Qfi,function(W){return W.serialize()},_.ro(Qfi));var F0=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(F0,_.iQ);F0.prototype.getHeader=function(){return _.AD(this,C5,1)};
F0.prototype.setHeader=function(W){return _.o3(this,1,W)};
F0.prototype.hasHeader=function(){return _.IO(this,C5,1)};var q8j=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(q8j,_.iQ);q8j.prototype.getLink=function(){return _.AD(this,IC,1)};var niO=new oC("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",F0,q8j,function(W){return W.serialize()},_.ro(q8j));var S6=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(S6,_.iQ);S6.prototype.getHeader=function(){return _.AD(this,C5,1)};
S6.prototype.setHeader=function(W){return _.o3(this,1,W)};
S6.prototype.hasHeader=function(){return _.IO(this,C5,1)};var Nwr=new oC("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",S6,IC,function(W){return W.serialize()},KkK);var $Di=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C($Di,_.iQ);var Lkj=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Lkj,_.iQ);Lkj.prototype.getUrl=function(){return _.KV(this,2)};
Lkj.prototype.setUrl=function(W){return _.U_(this,2,W)};var UDY=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(UDY,_.iQ);var M7O=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(M7O,_.iQ);var aFq=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(aFq,_.iQ);var ND0=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(ND0,_.iQ);var n_r=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(n_r,_.iQ);var RCf=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(RCf,_.iQ);var Ws0=_.ro(RCf);var Wab=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Wab,_.iQ);var BLn=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(BLn,_.iQ);_.p=BLn.prototype;_.p.getHeader=function(){return _.AD(this,C5,1)};
_.p.setHeader=function(W){return _.o3(this,1,W)};
_.p.hasHeader=function(){return _.IO(this,C5,1)};
_.p.getCompletionUrl=function(){return _.KV(this,6)};
_.p.getDeviceId=function(){return _.KV(this,11)};var zWi=new oC("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",BLn,RCf,function(W){return W.serialize()},Ws0);var GEY=new Set(["SAPISIDHASH","APISIDHASH"]);var YZi=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(YZi,_.iQ);YZi.prototype.getMessage=function(){return _.KV(this,2)};
var dI9=_.ro(YZi);var bT=function(W,B){this.xhrNodeReadableStream_=W.nodeReadableStream;this.grpcResponseDeserializeFn_=B;this.JSC$19316_xhr_=W.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19316_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&pof(this)},cG1=function(W,B){var z=new AG6;
_.ug(W.JSC$19316_xhr_,"complete",function(){if(W.JSC$19316_xhr_.isSuccess()){var G=W.JSC$19316_xhr_.getResponseText();var Y;if(Y=B)Y=W.JSC$19316_xhr_,Y.JSC$9797_xhr_&&Y.isComplete()?(Y=Y.JSC$9797_xhr_.getResponseHeader("Content-Type"),Y=Y===null?void 0:Y):Y=void 0,Y=Y==="text/plain";if(Y){if(!atob)throw Error("ak");G=atob(G)}try{var d=W.grpcResponseDeserializeFn_(G)}catch(v){j6(W,Zsi(new _.Qy(13,"Error when deserializing response data; error: "+v+(", response: "+G)),z));return}G=_.R_8(W.JSC$19316_xhr_.getStatus());
iai(W,EX6(W));G==0?TLb(W,d):j6(W,Zsi(new _.Qy(G,"Xhr succeeded but the status code is not 200"),z))}else{G=W.JSC$19316_xhr_.getResponseText();d=EX6(W);if(G){var E=vXr(W,G);G=E.code;Y=E.details;E=E.metadata}else G=2,Y="Rpc failed due to xhr error. uri: "+String(W.JSC$19316_xhr_.JSC$9797_lastUri_)+", error code: "+W.JSC$19316_xhr_.JSC$9797_lastErrorCode_+", error: "+W.JSC$19316_xhr_.getLastError(),E=d;iai(W,d);j6(W,Zsi(new _.Qy(G,Y,E),z))}})},pof=function(W){W.xhrNodeReadableStream_.on("data",function(B){if("1"in
B){var z=B["1"];
try{var G=W.grpcResponseDeserializeFn_(z)}catch(Y){j6(W,new _.Qy(13,"Error when deserializing response data; error: "+Y+(", response: "+z)))}G&&TLb(W,G)}if("2"in B)for(B=vXr(W,B["2"]),z=0;z<W.onStatusCallbacks_.length;z++)W.onStatusCallbacks_[z](B)});
W.xhrNodeReadableStream_.on("end",function(){iai(W,EX6(W));for(var B=0;B<W.onEndCallbacks_.length;B++)W.onEndCallbacks_[B]()});
W.xhrNodeReadableStream_.on("error",function(){if(W.JSC$19316_onErrorCallbacks_.length!=0){var B=W.JSC$19316_xhr_.JSC$9797_lastErrorCode_;B!==0||W.JSC$19316_xhr_.isSuccess()||(B=6);var z=-1;switch(B){case 0:var G=2;break;case 7:G=10;break;case 8:G=4;break;case 6:z=W.JSC$19316_xhr_.getStatus();G=_.R_8(z);break;default:G=14}iai(W,EX6(W));B=_.uid(B)+", error: "+W.JSC$19316_xhr_.getLastError();z!=-1&&(B+=", http status code: "+z);j6(W,new _.Qy(G,B))}})},EX6=function(W){var B={},z=iQY(W.JSC$19316_xhr_);
Object.keys(z).forEach(function(G){B[G]=z[G]});
return B},vXr=function(W,B){var z=2,G={};
try{var Y=dI9(B);z=_.cC(Y,1);var d=Y.getMessage();_.TP(Y,zCb,3,_.vC()).length&&(G["grpc-web-status-details-bin"]=B)}catch(E){W.JSC$19316_xhr_&&W.JSC$19316_xhr_.getStatus()===404?(z=5,d="Not Found: "+String(W.JSC$19316_xhr_.JSC$9797_lastUri_)):(z=14,d="Unable to parse RpcStatus: "+E)}return{code:z,details:d,metadata:G}};
bT.prototype.on=function(W,B){W=="data"?this.onDataCallbacks_.push(B):W=="metadata"?this.onMetadataCallbacks_.push(B):W=="status"?this.onStatusCallbacks_.push(B):W=="end"?this.onEndCallbacks_.push(B):W=="error"&&this.JSC$19316_onErrorCallbacks_.push(B);return this};
var f5=function(W,B){B=W.indexOf(B);B>-1&&W.splice(B,1)};
bT.prototype.removeListener=function(W,B){W=="data"?f5(this.onDataCallbacks_,B):W=="metadata"?f5(this.onMetadataCallbacks_,B):W=="status"?f5(this.onStatusCallbacks_,B):W=="end"?f5(this.onEndCallbacks_,B):W=="error"&&f5(this.JSC$19316_onErrorCallbacks_,B);return this};
bT.prototype.cancel=function(){this.JSC$19316_xhr_.abort()};
var TLb=function(W,B){for(var z=0;z<W.onDataCallbacks_.length;z++)W.onDataCallbacks_[z](B)},iai=function(W,B){for(var z=0;z<W.onMetadataCallbacks_.length;z++)W.onMetadataCallbacks_[z](B)},j6=function(W,B){for(var z=0;z<W.JSC$19316_onErrorCallbacks_.length;z++)W.JSC$19316_onErrorCallbacks_[z](B)};
bT.prototype.cancel=bT.prototype.cancel;bT.prototype.removeListener=bT.prototype.removeListener;bT.prototype.on=bT.prototype.on;var AG6=function(){var W=Error.call(this);this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.C(AG6,Error);var Om=function(W){this.JSC$19325_worker_=W.worker||null;this.JSC$19325_streamBinaryChunks_=W.streamBinaryChunks||!1;this.JSC$19325_credentialsMode_=void 0};
_.TC(Om,_.BOk);Om.prototype.createInstance=function(){var W=new X0(this.JSC$19325_worker_,this.JSC$19325_streamBinaryChunks_);this.JSC$19325_credentialsMode_&&W.setCredentialsMode(this.JSC$19325_credentialsMode_);return W};
Om.prototype.setCredentialsMode=function(W){this.JSC$19325_credentialsMode_=W};
var X0=function(W,B){_.Ka.call(this);this.JSC$19329_worker_=W;this.JSC$19329_streamBinaryChunks_=B;this.JSC$19329_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$19329_responseHeaders_=null;this.JSC$19329_method_="GET";this.JSC$19329_url_="";this.inProgress_=!1;this.JSC$19329_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.TC(X0,_.Ka);X0.prototype.open=function(W,B){if(this.readyState!=0)throw this.abort(),Error("bk");this.JSC$19329_method_=W;this.JSC$19329_url_=B;this.readyState=1;K5(this)};
X0.prototype.send=function(W){if(this.readyState!=1)throw this.abort(),Error("ck");if(this.abortController_.signal.aborted)throw this.abort(),Error("dk");this.inProgress_=!0;var B={headers:this.requestHeaders_,method:this.JSC$19329_method_,credentials:this.JSC$19329_credentialsMode_,cache:void 0,signal:this.abortController_.signal};W&&(B.body=W);(this.JSC$19329_worker_||_.Yt).fetch(new Request(this.JSC$19329_url_,B)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
X0.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,uT(this));this.readyState=0};
X0.prototype.handleResponse_=function(W){if(this.inProgress_&&(this.fetchResponse_=W,this.JSC$19329_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19329_responseHeaders_=W.headers,this.readyState=2,K5(this)),this.inProgress_&&(this.readyState=3,K5(this),this.inProgress_)))if(this.responseType==="arraybuffer")W.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Yt.ReadableStream!==
"undefined"&&"body"in W){this.currentReader_=W.body.getReader();if(this.JSC$19329_streamBinaryChunks_){if(this.responseType)throw Error("ek");this.response=[]}else this.response=this.responseText="",this.JSC$19329_textDecoder_=new TextDecoder;woi(this)}else W.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var woi=function(W){W.currentReader_.read().then(W.handleDataFromStream_.bind(W)).catch(W.handleSendFailure_.bind(W))};
X0.prototype.handleDataFromStream_=function(W){if(this.inProgress_){if(this.JSC$19329_streamBinaryChunks_&&W.value)this.response.push(W.value);else if(!this.JSC$19329_streamBinaryChunks_){var B=W.value?W.value:new Uint8Array(0);if(B=this.JSC$19329_textDecoder_.decode(B,{stream:!W.done}))this.response=this.responseText+=B}W.done?uT(this):K5(this);this.readyState==3&&woi(this)}};
X0.prototype.handleResponseText_=function(W){this.inProgress_&&(this.response=this.responseText=W,uT(this))};
X0.prototype.handleResponseArrayBuffer_=function(W){this.inProgress_&&(this.response=W,uT(this))};
X0.prototype.handleSendFailure_=function(){this.inProgress_&&uT(this)};
var uT=function(W){W.readyState=4;W.fetchResponse_=null;W.currentReader_=null;W.JSC$19329_textDecoder_=null;K5(W)};
X0.prototype.setRequestHeader=function(W,B){this.requestHeaders_.append(W,B)};
X0.prototype.getResponseHeader=function(W){return this.JSC$19329_responseHeaders_?this.JSC$19329_responseHeaders_.get(W.toLowerCase())||"":""};
X0.prototype.getAllResponseHeaders=function(){if(!this.JSC$19329_responseHeaders_)return"";for(var W=[],B=this.JSC$19329_responseHeaders_.entries(),z=B.next();!z.done;)z=z.value,W.push(z[0]+": "+z[1]),z=B.next();return W.join("\r\n")};
X0.prototype.setCredentialsMode=function(W){this.JSC$19329_credentialsMode_=W};
var K5=function(W){W.onreadystatechange&&W.onreadystatechange.call(W)};
Object.defineProperty(X0.prototype,"withCredentials",{get:function(){return this.JSC$19329_credentialsMode_==="include"},
set:function(W){this.setCredentialsMode(W?"include":"same-origin")}});var V1f=function(W){var B="";_.mP.forEach(W,function(z,G){B+=G;B+=":";B+=z;B+="\r\n"});
return B},JG9=function(W,B,z){if(_.mP.isEmpty(z))return W;
z=V1f(z);if(typeof W==="string")return _.zE(W,_.N6(B),z);_.a0(W,B,z);return W};var gXf=function(){this.isInputValid_=!0;this.JSC$19334_streamPos_=0;this.leftoverInput_=""};
gXf.prototype.isInputValid=function(){return this.isInputValid_};
gXf.prototype.decode=function(W){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("fk`"+this.JSC$19334_streamPos_+"`stream already broken`"+W);this.leftoverInput_+=W;W=Math.floor(this.leftoverInput_.length/4);if(W==0)return null;try{var B=_.atu(this.leftoverInput_.slice(0,W*4))}catch(z){throw B=this.leftoverInput_,W=z.message,this.isInputValid_=!1,Error("fk`"+this.JSC$19334_streamPos_+"`"+W+"`"+B);}this.JSC$19334_streamPos_+=W*4;this.leftoverInput_=this.leftoverInput_.slice(W*4);return B};var ve=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19337_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
ve.prototype.isInputValid=function(){return this.state_!=3};
var e6=function(W,B,z,G){W.state_=3;W.errorMessage_="The stream is broken @"+W.JSC$19337_streamPos_+"/"+z+". Error: "+G+". With input:\n"+B;throw Error(W.errorMessage_);};
ve.prototype.acceptsBinaryInput=function(){return!0};
ve.prototype.parse=function(W){function B(c){c&128&&e6(d,E,v,"invalid tag");(c&7)!=2&&e6(d,E,v,"invalid wire type");d.tag_=c>>>3;d.tag_!=1&&d.tag_!=2&&d.tag_!=15&&e6(d,E,v,"unexpected tag");d.state_=1;d.length_=0;d.countLengthBytes_=0}
function z(c){d.countLengthBytes_++;d.countLengthBytes_==5&&c&240&&e6(d,E,v,"message length too long");d.length_|=(c&127)<<(d.countLengthBytes_-1)*7;c&128||(d.state_=2,d.countMessageBytes_=0,typeof Uint8Array!=="undefined"?d.messageBuffer_=new Uint8Array(d.length_):d.messageBuffer_=Array(d.length_),d.length_==0&&Y())}
function G(c){d.messageBuffer_[d.countMessageBytes_++]=c;d.countMessageBytes_==d.length_&&Y()}
function Y(){if(d.tag_<15){var c={};c[d.tag_]=d.messageBuffer_;d.result_.push(c)}d.state_=0}
for(var d=this,E=W instanceof Array?W:new Uint8Array(W),v=0;v<E.length;){switch(d.state_){case 3:e6(d,E,v,"stream already broken");break;case 0:B(E[v]);break;case 1:z(E[v]);break;case 2:G(E[v]);break;default:throw Error("gk`"+d.state_);}d.JSC$19337_streamPos_++;v++}W=d.result_;d.result_=[];return W.length>0?W:null};var kR0=function(){this.errorMessage_=null;this.JSC$19340_streamPos_=0;this.base64Decoder_=new gXf;this.pbParser_=new ve};
kR0.prototype.isInputValid=function(){return this.errorMessage_===null};
var t1f=function(W,B,z){W.errorMessage_="The stream is broken @"+W.JSC$19340_streamPos_+". Error: "+z+". With input:\n"+B;throw Error(W.errorMessage_);};
kR0.prototype.acceptsBinaryInput=function(){return!1};
kR0.prototype.parse=function(W){this.errorMessage_!==null&&t1f(this,W,"stream already broken");var B=null;try{var z=this.base64Decoder_.decode(W);B=z===null?null:this.pbParser_.parse(z)}catch(G){t1f(this,W,G.message)}this.JSC$19340_streamPos_+=W.length;return B};var r8O=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19343_streamPos_=0;this.result_=[];this.statusParsed_=!1};
r8O.prototype.isInputValid=function(){return this.errorMessage_===null};
r8O.prototype.acceptsBinaryInput=function(){return!1};
r8O.prototype.parse=function(W){function B(c){d.state_=6;d.errorMessage_="The stream is broken @"+d.JSC$19343_streamPos_+"/"+E+". Error: "+c+". With input:\n";throw Error(d.errorMessage_);}
function z(){d.jsonStreamParser_=new _.o9({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function G(c){if(c)for(var J=0;J<c.length;J++){var g={};g[1]=c[J];d.result_.push(g)}}
function Y(c){if(c){(d.statusParsed_||c.length>1)&&B("extra status: "+c);d.statusParsed_=!0;var J={};J[2]=c[0];d.result_.push(J)}}
for(var d=this,E=0;E<W.length;){var v;if(v=d.state_!==2){a:{for(;E<W.length;){if(!_.I9(W[E])){v=!0;break a}E++;d.JSC$19343_streamPos_++}v=!1}v=!v}if(v)return null;switch(d.state_){case 6:B("stream already broken");break;case 0:W[E]==="["?(d.state_=1,E++,d.JSC$19343_streamPos_++):B("unexpected input token");break;case 1:W[E]==="["?(d.state_=2,z()):W[E]===","||W.slice(E,E+5)=="null,"?d.state_=3:W[E]==="]"?(d.state_=5,E++,d.JSC$19343_streamPos_++):B("unexpected input token");break;case 2:v=d.jsonStreamParser_.parse(W.substring(E));
G(v);d.jsonStreamParser_.done()?(d.state_=3,v=d.jsonStreamParser_.JSC$11485_buffer_,d.JSC$19343_streamPos_+=W.length-E-v.length,W=v,E=0):(d.JSC$19343_streamPos_+=W.length-E,E=W.length);break;case 3:W[E]===","||W.slice(E,E+5)=="null,"?(d.state_=4,z(),d.jsonStreamParser_.parse("["),E+=W[E]===","?1:5,d.JSC$19343_streamPos_++):W[E]==="]"&&(d.state_=5,E++,d.JSC$19343_streamPos_++);break;case 4:v=d.jsonStreamParser_.parse(W.substring(E));Y(v);d.jsonStreamParser_.done()?(d.state_=5,v=d.jsonStreamParser_.JSC$11485_buffer_,
d.JSC$19343_streamPos_+=W.length-E-v.length,W=v,E=0):(d.JSC$19343_streamPos_+=W.length-E,E=W.length);break;case 5:B("extra input after stream end")}}return d.result_.length>0?(W=d.result_,d.result_=[],W):null};var srY=function(W){this.JSC$19346_xhr_=W;this.JSC$19346_parser_=null;this.status_=this.JSC$19346_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19346_textDecoder_=null;this.JSC$19346_eventHandler_=new _.T5(this);this.JSC$19346_eventHandler_.listen(this.JSC$19346_xhr_,"readystatechange",this.JSC$19348_readyStateChangeHandler_)},mv=function(W,B){W.status_!=B&&(W.status_=B,W.statusHandler_&&W.statusHandler_())},xe=function(W){W.JSC$19346_eventHandler_.removeAll();
if(W.JSC$19346_xhr_){var B=W.JSC$19346_xhr_;W.JSC$19346_xhr_=null;B.abort();B.dispose()}};
srY.prototype.getStatus=function(){return this.status_};
srY.prototype.JSC$19348_readyStateChangeHandler_=function(W){W=W.target;try{if(W==this.JSC$19346_xhr_)a:{var B=_.na(this.JSC$19346_xhr_),z=this.JSC$19346_xhr_.JSC$9797_lastErrorCode_,G=this.JSC$19346_xhr_.getStatus(),Y=this.JSC$19346_xhr_.getResponseText();W=[];if(this.JSC$19346_xhr_.getResponse()instanceof Array){var d=this.JSC$19346_xhr_.getResponse();d.length>0&&d[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,W=d)}if(!(B<3||B==3&&!Y&&W.length==0))if(G=G==200||G==206,B==4&&(z==8?mv(this,
7):z==7?mv(this,8):G||mv(this,3)),this.JSC$19346_parser_||(this.JSC$19346_parser_=la0(this.JSC$19346_xhr_),this.JSC$19346_parser_==null&&mv(this,5)),this.status_>2)xe(this);else{if(W.length>this.JSC$19346_pos_){var E=W.length;z=[];try{if(this.JSC$19346_parser_.acceptsBinaryInput())for(var v=0;v<E;v++){var c=this.JSC$19346_parser_.parse(Array.from(W[v]));c&&(z=z.concat(c))}else{c="";if(!this.JSC$19346_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("hk");this.JSC$19346_textDecoder_=new TextDecoder}for(v=
0;v<E;v++)c+=this.JSC$19346_textDecoder_.decode(W[v],{stream:B==4&&v==E-1});z=this.JSC$19346_parser_.parse(c)}W.splice(0,E);z&&this.dataHandler_(z)}catch(g){mv(this,5);xe(this);break a}}else if(Y.length>this.JSC$19346_pos_){v=Y.slice(this.JSC$19346_pos_);this.JSC$19346_pos_=Y.length;try{var J=this.JSC$19346_parser_.parse(v);J!=null&&this.dataHandler_&&this.dataHandler_(J)}catch(g){mv(this,5);xe(this);break a}}B==4?(Y.length!=0||this.hasStreamingResponseData_?mv(this,2):mv(this,4),xe(this)):mv(this,
1)}}}catch(g){mv(this,6),xe(this)}};var PKY=function(W){W=this.xhrReader_=W;var B=(0,_.jk)(this.onData_,this);W.dataHandler_=B;W=this.xhrReader_;B=(0,_.jk)(this.onStatusChange_,this);W.statusHandler_=B;this.JSC$19350_callbackMap_={};this.callbackOnceMap_={}};
_.p=PKY.prototype;_.p.on=function(W,B){var z=this.JSC$19350_callbackMap_[W];z||(z=[],this.JSC$19350_callbackMap_[W]=z);z.push(B);return this};
_.p.addListener=function(W,B){this.on(W,B);return this};
_.p.removeListener=function(W,B){var z=this.JSC$19350_callbackMap_[W];z&&_.Dv(z,B);(W=this.callbackOnceMap_[W])&&_.Dv(W,B);return this};
_.p.once=function(W,B){var z=this.callbackOnceMap_[W];z||(z=[],this.callbackOnceMap_[W]=z);z.push(B);return this};
_.p.onData_=function(W){var B=this.JSC$19350_callbackMap_.data;B&&Zai(W,B);(B=this.callbackOnceMap_.data)&&Zai(W,B);this.callbackOnceMap_.data=[]};
var Zai=function(W,B){for(var z={},G=0;G<W.length;z={message$jscomp$1005:void 0},G++)z.message$jscomp$1005=W[G],B.forEach(function(Y){return function(d){try{d(Y.message$jscomp$1005)}catch(E){}}}(z))};
PKY.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:rGY(this,"readable");break;case 5:case 6:case 4:case 7:case 3:rGY(this,"error");break;case 8:rGY(this,"close");break;case 2:rGY(this,"end")}};
var rGY=function(W,B){var z=W.JSC$19350_callbackMap_[B];z&&z.forEach(function(G){try{G()}catch(Y){}});
(z=W.callbackOnceMap_[B])&&z.forEach(function(G){G()});
W.callbackOnceMap_[B]=[]};var kEK=function(){var W={format:"jspb"};W=W===void 0?{}:W;this.suppressCorsPreflight=W.suppressCorsPreflight||_.q6("suppressCorsPreflight",W)||!1;this.withCredentials=W.withCredentials||_.q6("withCredentials",W)||!1;this.streamInterceptors=W.streamInterceptors||[];this.unaryInterceptors=W.unaryInterceptors||[];this.workerScope=W.workerScope;this.chunkedServerStreaming=W.useFetchDownloadStreams||!1},IkY=function(W,B,z,G,Y,d){d=d===void 0?{}:d;
var E=B.substring(0,B.length-Y.name.length),v,c=(v=d)==null?void 0:v.signal;return lkY(function(J){return new Promise(function(g,t){if(c==null?0:c.aborted){var P=new _.Qy(1,"Aborted");P.cause=c.reason;t(P)}else{var Z={},l=CKf(W,J,E);l.on("error",function(b){return void t(b)});
l.on("metadata",function(b){Z=b});
l.on("data",function(b){var O=Z;O=O===void 0?{}:O;g(new eCf(b,O))});
c&&c.addEventListener("abort",function(){l.cancel();var b=new _.Qy(1,"Aborted");b.cause=c.reason;t(b)})}})},W.unaryInterceptors).call(W,mD6(Y,z,G)).then(function(J){return J.responseMessage})},DQ=function(W,B,z,G,Y,d){d=d===void 0?{}:d;
return IkY(W,B,z,G,Y,d)};
kEK.prototype.serverStreaming=function(W,B,z,G){var Y=this,d=W.substring(0,W.length-G.name.length);return oX6(function(E){var v=E.methodDescriptor,c=E.getMetadata(),J=hWq(Y,!1);c=Ha9(Y,c,J,d+v.getName());var g=Fa1(J,v.responseDeserializeFn,!0);E=v.requestSerializeFn(E.requestMessage);J.send(c,"POST",E);return g},this.streamInterceptors).call(this,mD6(G,B,z))};
var CKf=function(W,B,z){var G=B.methodDescriptor,Y=B.getMetadata(),d=hWq(W,!0);W=Ha9(W,Y,d,z+G.getName());z=Fa1(d,G.responseDeserializeFn,!1);cG1(z,Y["X-Goog-Encode-Response-If-Executable"]==="base64");B=G.requestSerializeFn(B.requestMessage);d.send(W,"POST",B);return z},hWq=function(W,B){B=W.chunkedServerStreaming&&!B;
return W.workerScope||B?new _.qI(new Om({worker:W.workerScope,streamBinaryChunks:B})):new _.qI},Ha9=function(W,B,z,G){B["Content-Type"]="application/json+protobuf";
B["X-User-Agent"]="grpc-web-javascript/0.1";var Y=B.Authorization;if(Y&&GEY.has(Y.split(" ")[0])||W.withCredentials)z.JSC$9797_withCredentials_=!0;if(W.suppressCorsPreflight)G=JG9(G,"$httpHeaders",B);else for(W=_.A(Object.keys(B)),Y=W.next();!Y.done;Y=W.next())Y=Y.value,z.headers.set(Y,B[Y]);return G},Fa1=function(W,B,z){if(z){z=new srY(W);
var G=new PKY(z)}return new bT({xhr:W,nodeReadableStream:G},B)},oX6=function(W,B){return B.reduce(function(z,G){return function(Y){return G.intercept(Y,z)}},W)},lkY=function(W,B){return B.reduce(function(z,G){return function(Y){return G.intercept(Y,z)}},W)};var SZb=function(W){this.client_=new kEK;this.hostname_=W==void 0?W:W.replace(/\/+$/,"")};
_.p=SZb.prototype;_.p.JSC$19368_depositGoogleCredential=function(W,B,z){return DQ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",W,B||{},yoO,z)};
_.p.deleteLink=function(W,B,z){return DQ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",W,B||{},DDn,z)};
_.p.JSC$19368_finishOAuth=function(W,B,z){return DQ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",W,B||{},niO,z)};
_.p.getLink=function(W,B,z){return DQ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",W,B||{},Nwr,z)};
_.p.startLinkingSession=function(W,B,z){return DQ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",W,B||{},zWi,z)};var ba0=[0,_.GI,1,Mmj,[0,_.Ao,[0,_.dw,-1]],[0,Uib],[0,_.TI,-1]];var jrY=function(){this.storage=new Map},OaO=function(W,B,z,G,Y){if(!W.storage.has(B))return null;
W=_.A(W.storage.get(B));for(B=W.next();!B.done;B=W.next())if(B=B.value,!Y||B.linkName===Y)if(z&&B.scopes&&fkb(B.scopes,z)||G&&B.capabilities&&fkb(B.capabilities,G))return B;return null},Xoq=function(W,B,z){if(!z)W.storage.delete(B);
else if(W.storage.has(B)){var G=W.storage.get(B).filter(function(Y){return Y.linkName!==z});
G.length>0?W.storage.set(B,G):W.storage.delete(B)}},fkb=function(W,B){B=_.A(B);
for(var z=B.next();!z.done;z=B.next())if(!W.has(z.value))return!1;return!0};var KaY=function(){var W=_.eD("LINK_GAL_DOMAIN");this.alsDomain1p=_.eD("LINK_GAL_DOMAIN");this.alsDomain3p=W;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},unf=function(W,B){W.apiKey=B;
return W};
KaY.prototype.build=function(){var W={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("ik");W.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("jk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("kk");W.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(W.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)W.apiKey=
this.apiKey,W.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("lk");W.oauthToken=this.oauthToken;W.alsDomain=this.alsDomain3p}W.clientXd3=this.clientXd3;W.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(W.authUser=this.authUser);this.bucket!==void 0&&(W.bucket=this.bucket);this.completionUrl!==void 0&&(W.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(W.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(W.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(W.locale=this.locale);W.loggerType=this.loggerType;W.clientEnvironment=this.clientEnvironment;W.colorScheme=this.colorScheme;W.showCloseOption=this.showCloseOption;return W};var ce=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(ce,_.iQ);var eWb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(eWb,_.iQ);var mIq=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(mIq,_.iQ);var V5=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(V5,_.iQ);var xIn=function(W){return _.u0(W,1)};var DIi=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(DIi,_.iQ);var Sl1=_.ro(DIi),wg=[1,2,3,4,5];var o_6=function(W){try{return Sl1(W)}catch(B){return null}},Qr6=function(){},hSi=function(W,B){switch(_.FP(B,wg)){case 4:return(B=_.xT(B,mIq,4,wg))&&W.logStateTransition(_.u0(B,1)),!0;
case 5:return(B=_.xT(B,eWb,5,wg))&&W.logInternalEvent(_.u0(B,1)),!0}return!1},bsO=function(W){switch(W){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.qT(W)}};var Caf=function(W,B){var z=this;this.validator=W;this.messageListener=B;this.dismissCallback=function(){yGj(z,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19397_receiveMessage=function(G){G.type==="message"&&(G=G.event_,G!==null&&(new URL(z.iframe.src)).origin===G.origin&&z.validator(G.data,G.origin)&&!z.messageListener(G.data)&&(z.JSC$19397_resolveCb!==void 0&&z.JSC$19397_resolveCb(G.data),qZO(z)))}},F9f=function(W,B,z){W.uiHandler!==void 0&&yGj(W,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(G,Y){W.JSC$19397_resolveCb=G;W.JSC$19397_rejectCb=Y;W.iframe=document.createElement("iframe");_.WG(W.iframe,B);W.uiHandler=z.displayContent(W.iframe,W.dismissCallback);_.ug(window,"message",W.JSC$19397_receiveMessage,!1,W)})},yGj=function(W,B){W.JSC$19397_rejectCb!==void 0&&W.JSC$19397_rejectCb(B);
qZO(W)},qZO=function(W){W.uiHandler!==void 0&&W.uiHandler.hideContent();
_.Xn(window,"message",W.JSC$19397_receiveMessage,!1,W);W.JSC$19397_resolveCb=void 0;W.JSC$19397_rejectCb=void 0;W.uiHandler=void 0;W.iframe=void 0};var nXj=function(W){if(W===2){var B;W=((B=window)==null?0:B.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return W},Hs6=function(W){W=nXj(W);
switch(W){case 0:return"light";case 1:return"dark";default:_.qT(W)}};var IaY=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),NLO=function(W,B){this.JSC$19409_linkingSession=W;this.noticeConfig=B;this.displayInfoMap=new Map;var z=new Map;if(_.IO(this.JSC$19409_linkingSession,UDY,7))for(W=_.AD(this.JSC$19409_linkingSession,UDY,7),W=_.TP(W,Lkj,1,_.vC()),W=_.A(W),B=W.next();!B.done;B=W.next())B=B.value,z.set(_.u0(B,1),_.JC2(_.AD(B,_.Gb0,3)));if(z.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){B=this.noticeConfig.enabledDataUsageNoticeUis;W=B.has(0)?z.get(1):void 0;B=B.has(1)?z.get(2):void 0;z=W!==void 0&&B!==void 0?z.get(3):void 0;var G=this.noticeConfig.nestedOrigins;var Y=new DIi;var d=new ce;Y=_.hZ(Y,2,wg,d);d=new DIi;var E=new ce;d=_.hZ(d,3,wg,E);E=[];W!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:W,lastEvent:Y,nestedOrigins:G}]),E.push({trustedUrl:W,lastEvent:Y,nestedOrigins:G}));B!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:B,lastEvent:d,nestedOrigins:G}]),E.push({trustedUrl:B,lastEvent:d,nestedOrigins:G}));z!==void 0?this.displayInfoMap.set(3,[{trustedUrl:z,lastEvent:d,nestedOrigins:G}]):this.displayInfoMap.set(3,E)}};var $I1=function(W){var B=new jrY;this.galService=W;this.galCache=B};
$I1.prototype.getLink=function(W){var B=W.serviceId;var z=W.scopes;var G=W.capabilities;var Y=W.linkName;var d=this,E;return _.T(function(v){if(G!==void 0&&z!==void 0)throw Error("mk");E=OaO(d.galCache,B,z,G,Y);return E!==null?v.return(E):v.return(d.galService.getLink({serviceId:B,sessionId:Math.floor(Math.random()*2147483648),scopes:z,capabilities:G,linkName:Y}).then(function(c){c=K9i(c);var J=d.galCache;J.storage.has(B)?J.storage.get(B).push(c):J.storage.set(B,[c]);return c}))})};
$I1.prototype.deleteLink=function(W,B,z){var G=this;return _.T(function(Y){Xoq(G.galCache,W,z);return Y.return(G.galService.deleteLink({serviceId:W,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:B,linkName:z}).then(function(){return!0}))})};var UIn=function(W,B){var z=this;this.validator=W;this.msgHandler=B;this.closedPopupTimeout=this.JSC$19431_rejectCb=this.JSC$19431_resolveCb=this.popup=null;this.JSC$19431_receiveMessage=function(G){if(G!==null&&(G=G.event_,G.source===z.popup)){var Y=G.data;if(z.validator(Y,G.origin)){var d;(d=z.msgHandler)!=null&&d.call(z,Y)||(z.JSC$19431_resolveCb!==null&&z.JSC$19431_resolveCb(Y),La9(z))}}}};
UIn.prototype.open=function(W,B){var z=this;this.popup!==null&&M1q(this);return new Promise(function(G,Y){z.JSC$19431_resolveCb=G;z.JSC$19431_rejectCb=Y;z.popup=_.BG(window,W,"",B);_.ug(window,"message",z.JSC$19431_receiveMessage,!1,z);aki(z)})};
var M1q=function(W,B){W.JSC$19431_rejectCb!==null&&W.JSC$19431_rejectCb(B);La9(W)},La9=function(W){W.closedPopupTimeout&&(W.closedPopupTimeout.cancel(),W.closedPopupTimeout=null);
W.popup&&W.popup.close();_.Xn(window,"message",W.JSC$19431_receiveMessage,!1,W);W.popup=null;W.JSC$19431_resolveCb=null;W.JSC$19431_rejectCb=null},aki=function(W){W.closedPopupTimeout=_.j8M(100).then(function(){W.popup?W.popup.closed?RWi(W):aki(W):M1q(W,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},RWi=function(W){W.closedPopupTimeout=_.j8M(100).then(function(){M1q(W,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var WLi=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),BdO=function(W,B,z,G,Y,d,E,v,c,J){var g=this;this.serviceId=W;this.sessionId=B;this.galService=z;this.oauthDetails=G;this.galLogger=Y;this.interactionMode=d;this.redirectServiceUrl=E;this.consentLanguageKeys=v;this.dynamicUrlParameters=c;this.partnerConfigMinReadTimestamp=J;this.started=!1;this.JSC$19437_dataValidator=function(t,
P){var Z=WLi.has(P);Z||g.redirectServiceUrl===void 0||(Z=g.redirectServiceUrl===P);return Z?t.sentinel==="gdi":!1}};
BdO.prototype.complete=function(){var W=this,B;return _.T(function(z){if(W.interactionMode!==1)return z.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));B=gg.getRedirectStateFromUri();return B===null?z.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):z.return(zAY(W,B))})};
BdO.prototype.start=function(){var W=this,B;return _.T(function(z){if(W.started)return z.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.KV(W.oauthDetails,1))return z.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(W.interactionMode===1)return gg.setLocation(_.KV(W.oauthDetails,1)),z.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));W.started=!0;W.galLogger.logStateTransition(5);
B=gg.getPostMessagePopup(W.JSC$19437_dataValidator);return z.return(B.open(_.KV(W.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(G){W.started=!1;var Y=W.galLogger;if((G==null?void 0:G.error)!==void 0)throw Y.logInternalEvent(59),Error("nk");if((G==null?void 0:G.redirect_state)===void 0)throw Y.logInternalEvent(131),Error("ok");return zAY(W,G.redirect_state)}).catch(function(G){W.started=
!1;
return G.errorCode!==void 0?{statusCode:G.errorCode,statusMessage:G.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var zAY=function(W,B){return _.T(function(z){return z.return(G2i(W.galService,{serviceId:W.serviceId,sessionId:W.sessionId,dynamicUrlParameters:W.dynamicUrlParameters,redirectState:B,consentLanguageKeys:W.consentLanguageKeys,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp}).then(function(G){var Y={statusCode:1,link:K9i(G.getLink())};l4r(_.hs(G,3))!==void 0&&(Y.callerState=l4r(_.hs(G,3)));W.galLogger.logInternalEvent(134);return Y}))})},gg={getPostMessagePopup:function(W){return new UIn(W)},
getRedirectStateFromUri:function(){var W=_.Uk(gg.getLocation()).fragment_;return(new _.rd(W)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(W){_.wGv(window.location,_.yN(W))},
createOAuthFlow:function(W,B){return new BdO(W.serviceId,W.sessionId,W.galService,B,W.galLogger,W.interactionMode,W.redirectServiceUrl,W.consentLanguageKeys,W.dynamicUrlParameters,W.partnerConfigMinReadTimestamp)}};var Y5n=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Y5n,_.iQ);var de9=_.ro(Y5n);var prf=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),A49=function(W,B,z,G,Y,d,E,v,c){var J=this;this.serviceId=W;this.sessionId=B;this.galService=z;this.gsiWebFlowDetails=G;this.colorScheme=Y;this.showCloseOption=d;this.galLogger=E;this.interactionMode=v;this.redirectServiceUrl=c;this.started=!1;this.JSC$19449_dataValidator=function(g,t){var P=prf.has(t);P||J.redirectServiceUrl===
void 0||(P=J.redirectServiceUrl===t);return P?g.sentinel==="gal":!1};
this.logEventProcessor=function(g){return g.result?(g=o_6(g.result))?hSi(J.galLogger,g):!1:!1}};
A49.prototype.complete=function(){var W=this,B,z;return _.T(function(G){if(W.interactionMode!==1)return G.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));B=t2.getRedirectStateFromUri();if(B===void 0)return W.galLogger.JSC$19389_logErrorEvent(131),G.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return z=i_q(W,B),G.return(Ec1(W,z))}catch(Y){return G.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
A49.prototype.start=function(){var W=this,B;return _.T(function(z){if(W.started)return z.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.KV(W.gsiWebFlowDetails,1))return z.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(W.interactionMode===1)return t2.setLocation(Tdr(W,_.KV(W.gsiWebFlowDetails,1))),z.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
W.started=!0;B=t2.getPostMessagePopup(W.JSC$19449_dataValidator,W.logEventProcessor);return z.return(B.open(Tdr(W,_.KV(W.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(G){W.started=!1;if((G==null?void 0:G.result)===void 0)throw W.galLogger.JSC$19389_logErrorEvent(131),Error("ok");G=i_q(W,G.result);return Ec1(W,G)}).catch(function(G){W.started=!1;
return G.errorCode!==void 0?{statusCode:G.errorCode,statusMessage:G.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Tdr=function(W,B){W=["result_channel",W.interactionMode===1?"2":"1","color_scheme",Hs6(W.colorScheme),"show_close_option",W.showCloseOption];return Bwj(B,W)},Ec1=function(W,B){if(B!==null&&_.IO(B,V5,2)){var z,G=B==null?void 0:(z=_.AD(B,V5,2))==null?void 0:_.u0(z,2);
G&&W.galLogger.JSC$19389_logErrorEvent(bsO(G));return xIn(_.AD(B,V5,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 W.galService.getLink({serviceId:W.serviceId,sessionId:W.sessionId,consistencyKey:_.KV(B,1)}).then(function(Y){Y=K9i(Y);W.galLogger.logInternalEvent(134);return{statusCode:1,link:Y}})},i_q=function(W,B){B=de9(B);
if(!_.IO(B,V5,2)&&_.KV(B,1)==="")throw W.galLogger.JSC$19389_logErrorEvent(5),Error("pk");return B},t2={getPostMessagePopup:function(W,B){return new UIn(W,B)},
getRedirectStateFromUri:function(){return _.M5(_.Uk(t2.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(W){_.wGv(window.location,_.yN(W))},
createStreamlinedFlow:function(W,B){return new A49(W.serviceId,W.sessionId,W.galService,B,W.colorScheme,W.showCloseOption,W.galLogger,W.interactionMode,W.redirectServiceUrl)}};var aa9=function(){var W=_.j_Q("GAL");this.storage=W?new _.hC(W):null};
aa9.prototype.getSession=function(W){if(this.storage!==null)try{var B=this.storage.get("SAVED_SESSION");if(B===void 0)return null;if(B.serviceId===W)return B}catch(z){}return null};var QI=function(){};
_.C(QI,Qr6);QI.prototype.logStateTransition=function(){};
QI.prototype.logInternalEvent=function(){};
QI.prototype.JSC$19389_logErrorEvent=function(){};var vc0=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(vc0,_.iQ);vc0.prototype.getCompletionUrl=function(){return _.KV(this,15)};var yI=function(W,B,z,G,Y,d){this.serviceId=W;this.environment=B;this.sessionId=z;this.colorSchemeSelected=G;this.colorThemeDisplayed=Y;this.JSC$19462_transport=d;this.currentState=1};
_.C(yI,Qr6);yI.prototype.logStateTransition=function(W){var B=c4f(this);B=_.i2(B,3,this.currentState);B=_.i2(B,1,W);this.currentState=W;W=At1(1);this.dispatch(B,W)};
yI.prototype.logInternalEvent=function(W){W=At1(W);this.dispatch(c4f(this),W)};
yI.prototype.JSC$19389_logErrorEvent=function(W){var B=c4f(this);B=_.i2(B,1,10);W=At1(W);this.dispatch(B,W)};
var c4f=function(W){var B=new vc0;B=_.i2(B,1,W.currentState);B=_.f3(B,7,W.serviceId);var z,G;var Y=((z=window)==null?0:(G=z.location)==null?0:G.href)?_.Uk(window.location.href).JSC$10032_domain_:"NO_PACKAGE_NAME";z=_.f3(B,8,Y);z=_.i2(z,6,W.environment);z=_.f3(z,5,"100");z=_.i2(z,11,W.colorSchemeSelected);return _.i2(z,12,W.colorThemeDisplayed)};
yI.prototype.dispatch=function(W,B){B===void 0&&(B=new _.Ca);var z=B;W=W.serialize();z=_.f3(z,8,W);_.kE(z,12,this.sessionId);this.JSC$19462_transport.dispatch(B)};var wr0=function(W,B){this.loggerType=W;this.sessionIndex=B!=null?B:0},Vr0;
wr0.prototype.create=function(W,B,z,G,Y){switch(this.loggerType){case 0:return new QI;case 1:return Vr0||(Vr0=(new _.ZG(555,this.sessionIndex.toString())).build()),new yI(W,B,z,G,Y,Vr0);default:_.qT(this.loggerType,"unknown logger type")}};var s3=[6,2,3,1],YRb=new Map([[4,1],[1,6],[2,2],[3,3]]),x_j={statusCode:7,statusMessage:"Failed to create flow object"},U_9=function(W,B,z,G,Y,d,E,v,c,J){this.serviceId=W;this.sessionId=B;this.config=z;this.galService=G;this.JSC$19469_linkingSession=Y;this.googleScopes=d;this.callerState=E;this.consentLanguageKeys=v;this.dynamicUrlParameters=c;this.partnerConfigMinReadTimestamp=J;this.currentFlow=0;G=this.JSC$19469_linkingSession;Y=new Set;_.IO(G,n_r,1)&&Y.add(1);_.IO(G,aFq,2)&&_.IO(G,ND0,6)&&Y.add(2);
_.IO(G,M7O,3)&&_.IO(G,ND0,6)&&Y.add(3);_.IO(G,$Di,4)&&Y.add(6);this.supportedFlows=Y;G=z.loggerType;Y=z.clientEnvironment;a:{d=z.colorScheme;switch(d){case 0:d=1;break a;case 1:d=2;break a;case 2:d=3;break a;default:_.qT(d)}d=void 0}a:{E=z.colorScheme;E=nXj(E);switch(E){case 0:E=1;break a;case 1:E=2;break a;default:_.qT(E)}E=void 0}this.galLogger=(new wr0(G,z.authUser)).create(W,Y,B,d,E)},gcO=function(W){return new Promise(function(B){var z,G,Y,d,E,v,c,J,g,t;
return _.T(function(P){switch(P.nextAddress){case 1:z=$_1(W.currentFlow,W.supportedFlows),G=!1,Y=new NLO(W.JSC$19469_linkingSession,W.config.dataUsageNoticeConfig);case 2:if(z===void 0){P.jumpTo(4);break}_.kA(P,5);var Z=Y,l=z,b=void 0;G?l===1&&(b=Z.displayInfoMap.get(2)):l===2||l===3?b=Z.displayInfoMap.get(1):l===1&&(b=Z.displayInfoMap.get(3));d=b?b:[];E=W.consentLanguageKeys;v=_.A(d);c=v.next();case 7:if(c.done)return W.currentFlow=z,P.yield(QEb(J4i(W,E)),11);J=c.value;return P.yield(jEO(J,W.config.dataUsageNoticeConfig.uiAdapter,
W.config.colorScheme,W.galLogger),10);case 10:g=P.yieldResult;if(g.statusCode!==1)return RSj(W.serviceId),W.currentFlow=0,B(J2({statusCode:g.statusCode,statusMessage:g.statusMessage},W.callerState)),P.return();g.consentLanguageKeys!==void 0&&(E=g.consentLanguageKeys);c=v.next();P.jumpTo(7);break;case 11:t=P.yieldResult;if(t.statusCode!==10)return t.statusCode!==6&&(RSj(W.serviceId),W.currentFlow=0),t.statusCode!==1&&W.callerState!==void 0&&(t.callerState=W.callerState),B(t),P.return();_.Nn(P,6);break;
case 5:_.h6(P);case 6:z=$_1(W.currentFlow,W.supportedFlows);G=!0;P.jumpTo(2);break;case 4:RSj(W.serviceId),W.currentFlow=0,B(J2({statusCode:12,statusMessage:"Linking failed"},W.callerState)),_.HG(P)}})})},zRY=function(W,B,z){W.currentFlow=B;
return y8b(J4i(W,z)).then(function(G){return G.statusCode===10&&W.config.interactionMode===1&&$_1(W.currentFlow,W.supportedFlows)!==void 0?gcO(W):G})},J4i=function(W,B){return{flowParams:{serviceId:W.serviceId,
sessionId:W.sessionId,galService:W.galService,galLogger:W.galLogger,interactionMode:W.config.interactionMode,redirectServiceUrl:W.config.redirectServiceUrl,colorScheme:W.config.colorScheme,consentLanguageKeys:B,dynamicUrlParameters:W.dynamicUrlParameters,showCloseOption:W.config.showCloseOption,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp},currentFlow:W.currentFlow,config:W.config,session:W.JSC$19469_linkingSession,googleScopes:W.googleScopes,callerState:W.callerState}};var pfj=function(W,B){this.config=W;this.galService=B.getService();this.JSC$19482_galRepository=B.JSC$19500_galRepository};
pfj.prototype.getLink=function(W,B){return trj(this,W,B)};
var trj=function(W,B,z){return W.JSC$19482_galRepository.getLink({serviceId:B,scopes:void 0,capabilities:void 0,linkName:z}).then(function(G){return{statusCode:1,link:G}}).catch(function(G){return{statusCode:dJf(G.code),
statusMessage:G.message}})};
pfj.prototype.deleteLink=function(W,B){return this.JSC$19482_galRepository.deleteLink(W,this.config.accountLinkingEntryPoint,B).then(function(){return{statusCode:1}}).catch(function(z){return{statusCode:dJf(z.code),
statusMessage:z.message}})};
pfj.prototype.startLinkingSession=function(W){var B=W.serviceId;var z=W.sessionId;return MWb({serviceId:B,sessionId:z!==void 0?z:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:W.loginHint,callerState:W.callerState,consentLanguageKeys:W.consentLanguageKeys,linkName:W.linkName,dynamicUrlParameters:W.dynamicUrlParameters,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp})};var qW=function(W,B,z,G,Y,d,E){this.apiKey=B;this.authUser=z;this.oauthToken=G;this.bucket=Y;this.locale=d;this.galSdkEventHandler=E;if(G===void 0){if(B===void 0)throw Error("qk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new SZb(W)};
qW.prototype.deleteLink=function(W){var B=W.serviceId;var z=W.sessionId;var G=W.accountLinkingEntryPoint;var Y=W.linkName;var d=this,E;return _.T(function(v){var c=(new hd).setHeader(d.getHeader(z));var J=sAi({serviceId:B,linkName:Y});c=_.o3(c,2,J);E=_.QV(c,3,G);return v.return(d.makeRequest(d.galServiceClient.deleteLink,E,[1,3],[2,4]))})};
var G2i=function(W,B){var z=B.serviceId;var G=B.sessionId;var Y=B.dynamicUrlParameters;var d=B.redirectState;var E=B.consentLanguageKeys;var v=B.partnerConfigMinReadTimestamp;var c;return _.T(function(J){var g=(new F0).setHeader(W.getHeader(G,Y));g=_.U_(g,2,z);c=_.U_(g,4,d);E!==void 0&&_.U_(c,5,E);v!==void 0&&_.o3(c,6,v);return J.return(W.makeRequest(W.galServiceClient.JSC$19368_finishOAuth,c,[1,3],[2,4]))})};
qW.prototype.getLink=function(W){var B=W.serviceId;var z=W.sessionId;var G=W.scopes;var Y=W.capabilities;var d=W.consistencyKey;var E=W.linkName;var v=this,c;return _.T(function(J){var g=(new S6).setHeader(v.getHeader(z)),t=sAi({serviceId:B,scopes:G,capabilities:Y,linkName:E});c=_.o3(g,2,t);d!==void 0&&(g=OfO(),g=_.U_(g,2,d),_.o3(c,3,g));return J.return(v.makeRequest(v.galServiceClient.getLink,c,[1,3],[2,4]))})};
var ql6=function(W,B){var z=B.serviceId;var G=B.sessionId;var Y=B.googleScopes;var d=B.consistencyKey;var E;return _.T(function(v){var c=(new Ha).setHeader(W.getHeader(G));c=_.U_(c,2,z);var J=Array.from(Y.values());c=_.Rj(c,3,J,_.sb);J=OfO();J=_.U_(J,2,d);E=_.o3(c,4,J);return v.return(W.makeRequest(W.galServiceClient.JSC$19368_depositGoogleCredential,E,[1,3],[2,4]))})};
qW.prototype.startLinkingSession=function(W){var B=W.serviceId;var z=W.sessionId;var G=W.scopes;var Y=W.capabilities;var d=W.loginHint;var E=W.supportedFlows;var v=W.completionUrl;var c=W.usePingPong;var J=W.twoWayLinking;var g=W.accountLinkingEntryPoint;var t=W.callerState;var P=W.consentLanguageKeys;var Z=W.googleScopes;var l=W.dataUsageNoticeConfig;var b=W.linkName;var O=W.dynamicUrlParameters;var K=W.partnerConfigMinReadTimestamp;var e=this,a,q;return _.T(function(n){if(Y!==void 0&&G!==void 0)throw Error("mk");
var L=(new BLn).setHeader(e.getHeader(z,O));a=_.U_(L,2,B);b!==void 0&&_.U_(a,14,b);if(Y!==void 0){L=a;var By=Array.from(Y.values());_.Rj(L,5,By,_.sb)}else G!==void 0&&(L=a,By=Array.from(G.values()),_.Rj(L,3,By,_.sb));v!==void 0&&_.U_(a,6,v);c!==void 0&&_.Oh(a,15,c);E!==void 0&&(L=a,By=Array.from(E.values()),_.Rj(L,4,By,_.Wn));if(J!==void 0){if(J&&(!Z||Z.size===0))throw Error("rk");_.Oh(a,8,J)}g!==void 0&&_.QV(a,9,g);d!==void 0&&_.U_(a,13,d);t!==void 0&&(L=a,By=(new TextEncoder).encode(t),_.Wb(L,12,
_.HQ(By,!1),_.hM()));P!==void 0&&_.U_(a,16,P);K!==void 0&&_.o3(a,18,K);if(l!==void 0&&l.size>0||Z!==void 0&&Z.size>0)q=new Wab,Z!==void 0&&Z.size>0&&(L=q,By=Array.from(Z.values()),_.Rj(L,1,By,_.sb)),l!==void 0&&(l.has(0)&&_.K0k(q,2,_.Wn,1,_.zq),l.has(1)&&_.K0k(q,2,_.Wn,2,_.zq)),_.o3(a,17,q);return n.return(e.makeRequest(e.galServiceClient.startLinkingSession,a,[1],[2]))})};
qW.prototype.getMetadata=function(){var W=this,B,z;return _.T(function(G){B={};W.useFpa?(B["X-Goog-Api-Key"]=W.apiKey,B["X-Goog-AuthUser"]=W.authUser!==void 0?W.authUser.toString():"0",(z=_.YVr([]))&&(B.Authorization=z)):B.Authorization="Bearer "+W.oauthToken;W.locale&&(B["accept-language"]=W.locale);return G.return(B)})};
qW.prototype.makeRequest=function(W,B,z,G){var Y=this,d;return _.T(function(E){if(E.nextAddress==1)return E.yield(Y.getMetadata(),2);d=E.yieldResult;P_K(Y,z);return E.return(W.bind(Y.galServiceClient)(B,d).finally(function(){P_K(Y,G)}))})};
var P_K=function(W,B){W.galSdkEventHandler!==void 0&&B.forEach(function(z){W.galSdkEventHandler.onEvent(z)})};
qW.prototype.getHeader=function(W,B){var z=new C5;W=_.Wb(z,2,_.YY(W),0);W=_.QV(W,5,3);B=_.Rj(W,8,B,_.sb);this.bucket!==void 0&&_.U_(B,1,this.bucket);return B};
var sAi=function(W){var B=W.serviceId;var z=W.scopes;var G=W.capabilities;W=W.linkName;if(G!==void 0&&z!==void 0)throw Error("mk");var Y=new jfb;B=_.U_(Y,1,B);G!==void 0?(z=Array.from(G.values()),_.Rj(B,5,z,_.sb)):z!==void 0&&(z=Array.from(z.values()),_.Rj(B,3,z,_.sb));W!==void 0&&_.U_(B,6,W);return B};var AH0=function(W){this.galService=new qW(W.alsDomain,W.apiKey,W.authUser,W.oauthToken,W.bucket,W.locale,W.galSdkEventHandler);this.JSC$19500_galRepository=new $I1(this.galService)};
AH0.prototype.getService=function(){return this.galService};var Z_j=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(Z_j,_.iQ);var r4Y=function(W){var B=new Z_j;return _.i2(B,1,W)};
Z_j.prototype.setErrorMessage=function(W){return _.f3(this,2,W)};var k2b=[0,_.E8,_.Yi,_.E8];var n5=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(n5,_.iQ);var lUi=[0,[1,2,3],_.iL,[0,nTb,Lwn,-1],_.iL,[0,$i9,-1],_.pf];var C_i=[0,_.Bq,1,_.E8,_.Yi,-1,1,_.smx,_.aO,_.E8,-1,lUi];var IUb=[0,_.E8,[0,_.smx,_.aO,[0,_.Yi]],_.zI,[0,_.E8,-1]];var TM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(TM,_.iQ);var ocf=[0,_.Yi,_.E8,-2,_.Bq,_.E8,_.Bq,_.E8,-2,1,_.zI];var hAf=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(hAf,_.iQ);var H_f=[0,_.Bq];var FLf=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(FLf,_.iQ);var S5Y=[0,_.E8,IUb,H_f,ocf,C_i];var uBK=_.sK(FLf,S5Y);var b_j=[0,ba0];var yEY=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(yEY,_.iQ);var jA0=[0,[1,3],aJb,_.E8,aJb];var iT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(iT,_.iQ);var fUq=[0,_.E8];var O_i=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(O_i,_.iQ);var Em=function(W){return _.xT(W,Z_j,2,Ad)},Xrj=function(W){var B=new O_i;
return _.hZ(B,2,Ad,W)},Ad=[1,
2];var KLn=[0,Ad,_.iL,fUq,_.iL,k2b,_.Ao,jA0,1,_.E8,b_j];var uWi=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(uWi,_.iQ);var mef=function(W){var B=new uWi;return _.hZ(B,3,eAn,W)},eAn=[2,
3];var NW=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(NW,_.iQ);var xei=function(W,B){return _.o3(W,2,B)},Deq=function(W,B){return _.o3(W,8,B)},QAf=function(W,B){return _.o3(W,3,B)};var y4Y=[0,_.E8,KLn,S5Y,_.Vy,[0,[5,6,7],[0,_.E8,-2],[0,_.Bq,_.E8,_.Yi],[0,lUi],[0,_.Yi,_.E8,-1,_.wL,_.E8],_.iL,[0,[0,_.Bq],_.E8,-1],_.iL,[0,[3,4],_.E8,-1,_.iL,[0,[0,_.E8,_.zI]],_.iL,[0,[0,[0,[1,2],_.iL,[0],_.iL,[0]]]]],_.iL,[0,_.E8]],_.Vy,-1,[0,eAn,_.E8,_.iL,fUq,_.iL,k2b,_.Ao,jA0,[0,ba0]]];var q5i=_.sK(NW,y4Y),ncr=_.Pb(y4Y);var Nd0=function(){_.bA.call(this)};
_.C(Nd0,_.bA);Nd0.prototype.init=function(){};
new Nd0;var $ef=_.ak(["data-"]),LLY=_.ak(["aria-"]),Uer=_.ak(["aria-"]),$e=function(W,B){this.isLatencyMeasurementExperiment=W===void 0?!1:W;this.enableDialogA11yFix=B===void 0?!1:B;this.JSC$19529_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.Bo7(_.Yt.location.href)},mFi=function(W,B){W.onConsentPrimitiveShownCallback=B},Mrf=function(W,B){return W.overriddenIframeLoadTimeout?W.overriddenIframeLoadTimeout:B!==void 0?B:5E3},DF9=function(W){if(W.prewarmPromise!==void 0)return W.prewarmPromise;
W.prewarmPromise=new Promise(function(B,z){L5(W,1);aU1(W,RA0(W,!0),W7f(W));W.iframe?W.prewarmChannel||BRf(W,W.iframe,B):z(Error("sk"))});
W.prewarmPromise.finally(function(){W.prewarmPromise=void 0});
return W.prewarmPromise};
$e.prototype.showPrimitive=function(){var W=this;if(this.consentPromise!==void 0)return this.consentPromise;var B=Date.now();zQ0(this,B);this.consentPromise=new Promise(function(z,G){L5(W,0,B);var Y=W.isDarkTheme();W.isLatencyMeasurementExperiment||W.initialLoadingStrategy===1||W.initialLoadingStrategy===2||(W.loadingBar||(W.loadingBar=vw1(getComputedStyle(document.body).direction==="rtl",Y),W.loadingBar.style.position="fixed",W.loadingBar.style.zIndex="15000"),document.body.appendChild(W.loadingBar));
aU1(W,RA0(W),W7f(W));W.iframe?W.channel||Gun(W,W.iframe,z,G):(YTf(W),G(Error("sk")))});
this.consentPromise.finally(function(){W.consentPromise=void 0});
return this.consentPromise};
var Gun=function(W,B,z,G){var Y,d;_.T(function(E){switch(E.nextAddress){case 1:L5(W,3);Y=!1;setTimeout(function(){if(!Y){YTf(W);dr1(W);p1f(W);var v=r4Y(7).setErrorMessage("Timeout connecting to iframe");z(Deq(xei(new NW,Xrj(v)),mef(v)))}},Mrf(W,A1i(W)));
if(!W.prewarmPromise){E.jumpTo(2);break}_.kA(E,3);return E.yield(W.prewarmPromise,5);case 5:_.Nn(E,2);break;case 3:_.h6(E),d=r4Y(4).setErrorMessage("Error while prewarming."),z(Deq(xei(new NW,Xrj(d)),mef(d)));case 2:W.prewarmChannel&&W.prewarmChannel.send(ncr(QAf(new NW,W.consentPrimitiveRequest))),W.channel=_.ww({destination:W.JSC$19529_win,iframe:B,origin:iw0(W),channelName:"cpw",onEstablished:function(){Y=!0;YTf(W);W.isLatencyMeasurementExperiment||(W.JSC$19529_previousBodyOverflow=document.body.style.overflow,
W.JSC$19529_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,W.JSC$19529_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",W.enableDialogA11yFix&&window.addEventListener("blur",W.focusChangeListener));var v=W.iframe;v.style.bottom="0";v.style.position="fixed";v.style.right="0";v.style.border="none";v.style.left="0";v.style.top=
"0";v.style.zIndex="5000";v.style.pointerEvents="";v.style.visibility="";W.initialLoadingStrategy===2||W.initialLoadingStrategy===3?L5(W,4):L5(W,6);var c;(c=W.onConsentPrimitiveShownCallback)==null||c.call(W)},
onMessage:function(v){v=q5i(v.data);switch(_.u0(v,1)){case 1:dr1(W);var c=cHr(_.AD(v,_.eg,7));c&&(W.initialLoadingStrategy!==2&&W.initialLoadingStrategy!==3||L5(W,6,c),L5(W,5,c));if(c=cHr(_.AD(v,_.eg,6)))L5(W,7,c),L5(W,8);var J,g;((J=_.AD(v,O_i,2))==null?void 0:_.FP(J,Ad))!==0&&((g=_.AD(v,uWi,8))==null?void 0:_.FP(g,eAn))!==0||G(Error("tk"));z(v);break;case 2:p1f(W)}}}),_.HG(E)}})},BRf=function(W,B,z){W.prewarmChannel=_.ww({destination:W.JSC$19529_win,
iframe:B,origin:iw0(W),channelName:"pwcp",onEstablished:function(){L5(W,2);z()}})},iw0=function(W){var B=_.jN(W.src).toString();
return B&&B.indexOf("://")<0&&B.indexOf("//")!==0?W.origin:_.Bo7(B)},RA0=function(W,B){B=B===void 0?!1:B;
var z,G=new Map([["origin",W.origin],["hl",(z=EL6(W))!=null?z:null]]);B&&G.set("pw","1");B=_.A([["cpr",W.consentPrimitiveRequest.serialize()]]);for(z=B.next();!z.done;z=B.next()){var Y=_.A(z.value);z=Y.next().value;Y=Y.next().value;G.set(z,Y)}W.isDarkTheme()&&G.set("color_scheme","dark");return _.Pc(W.src,G)},YTf=function(W){W.isLatencyMeasurementExperiment||W.loadingBar&&document.body.removeChild(W.loadingBar)};
$e.prototype.getSrc=function(){var W=_.WS(this.origin),B;var z=(B=_.AD(this.consentPrimitiveRequest,hAf,3))==null?void 0:_.cC(B,1);B="consent.google.com";z=z?"/u/"+encodeURIComponent(z.toString()):"";(W==null?0:W.endsWith("youtube.com"))?B="consent.youtube.com":(W=W==null?void 0:W.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(B="consent.google."+((W[1]?"co.":"")+encodeURIComponent(W[2])));return _.bQ("https://"+B+"/signedin"+z+"/landing")};
var aU1=function(W,B,z){W.iframe||(W.iframe=document.createElement("iframe"),W.iframe.style.width="100%",W.iframe.style.height="100%",z!==112496729&&(W.iframe.style.colorScheme="auto"),W.isLatencyMeasurementExperiment&&(W.iframe.style.display="none"),_.WG(W.iframe,B),W.iframe.setAttribute("jsname","C5o1O"),TRO(W.iframe),document.body.appendChild(W.iframe))},TRO=function(W){W.style.bottom="-200vh";
W.style.position="fixed";W.style.right="-200vw";W.style.border="";W.style.left="";W.style.top="";W.style.zIndex="";W.style.pointerEvents="none";W.style.visibility="hidden"},dr1=function(W){W.iframe&&(W.isLatencyMeasurementExperiment||(W.JSC$19529_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=W.JSC$19529_previousHtmlOverscroll),W.JSC$19529_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=W.JSC$19529_previousBodyOverscroll),W.JSC$19529_previousBodyOverflow!==
void 0&&(document.body.style.overflow=W.JSC$19529_previousBodyOverflow),W.enableDialogA11yFix&&vL0(W,!1)),TRO(W.iframe))};
$e.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(vL0(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var vL0=function(W,B){var z,G,Y=(z=W.iframe)==null?void 0:(G=z.parentElement)==null?void 0:G.children;if(Y)for(z=0;z<Y.length;z++)G=Y[z],G!==W.iframe&&(B?(G.hasAttribute("aria-hidden")&&_.i7([_.w3($ef)],G,"data-old-aria-hidden",G.getAttribute("aria-hidden")),_.i7([_.w3(LLY)],G,"aria-hidden","true")):(G.removeAttribute("aria-hidden"),G.hasAttribute("data-old-aria-hidden")&&(_.i7([_.w3(Uer)],G,"aria-hidden",G.getAttribute("data-old-aria-hidden")),G.removeAttribute("data-old-aria-hidden"))))},L5=function(W,
B,z){var G;
(G=W.latencyCallback)==null||G.call(W,{latencyType:B,timestampEpochMillis:z!=null?z:Date.now()})};var c1j=function(W,B,z){$e.call(this,B,z===void 0?!1:z);this.consentPrimitiveRequest=W;W=EL6(this);_.$On(W);this.src=this.getSrc();var G;this.initialLoadingStrategy=(G=_.AD(this.consentPrimitiveRequest,TM,4))==null?void 0:_.u0(G,4)},w10;
_.C(c1j,$e);var eri=function(W){var B=_.r("enable_primitive_dialog_aria_hide_siblings");W={request:W,enableDialogA11yFix:B===void 0?!1:B};w10||(w10=new c1j(W.request,W.isLatencyMeasurementExperiment||_.u0(W.request,1)===2,W.enableDialogA11yFix));return w10},EL6=function(W){var B;
return(B=_.AD(W.consentPrimitiveRequest,TM,4))==null?void 0:_.KV(B,1)},zQ0=function(W,B){if(!_.IO(W.consentPrimitiveRequest,n5,5)){var z=W.consentPrimitiveRequest,G=new n5;
_.o3(z,5,G)}var Y;if((Y=_.AD(W.consentPrimitiveRequest,n5,5))==null||_.SFv(_.CV(Y,8))==null){var d;(d=_.AD(W.consentPrimitiveRequest,n5,5))!=null&&_.kE(d,8,B)}},W7f=function(W){var B;
return(B=_.AD(W.consentPrimitiveRequest,n5,5))==null?void 0:_.cC(B,1)};
c1j.prototype.isDarkTheme=function(){var W;return((W=_.AD(this.consentPrimitiveRequest,TM,4))==null?void 0:_.u0(W,2))===2};
var A1i=function(W){var B;return((B=_.AD(W.consentPrimitiveRequest,TM,4))==null?void 0:_.cC(B,5))||void 0},p1f=function(W){W.channel=void 0;
W.prewarmChannel=void 0;W.iframe&&(document.body.contains(W.iframe)&&document.body.removeChild(W.iframe),W.iframe=void 0);w10=void 0},Q60=function(W){return $e.prototype.showPrimitive.call(W).then(function(B){return _.AD(B,O_i,2)})};for(var Um={},V0f=(Um[64]="ma",Um[73]="ogb",Um[89]="cr",Um[21]="test",Um[0]="unkn",Um[137]="con",Um[155]="hl",Um[78]="yt",Um[171]="lp",Um[172]="ap",Um[177]="amo",Um[178]="pqe",Um[74]="gg",Um[1]="gm",Um[140]="am",Um[193]="sc",Um),J1n=_.A(Object.keys(V0f)),gLn=J1n.next();!gLn.done;gLn=J1n.next());var t00=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(t00,_.iQ);var s1i=[0,[2,3,4],_.E8,Nbq,aJb,_.pf];var PNf=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(PNf,_.iQ);var Zwq=_.sK(PNf,[0,_.TI,_.Yi,_.E8,_.Yi,_.E8,s1i]);var r1i=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(r1i,_.iQ);r1i.prototype.getCommand=function(){return _.u0(this,1)};
var ku9=function(){var W=new r1i;return _.QV(W,1,0)};var lqO=_.Pb([0,_.TI,_.Yi,[0,_.E8,_.Yi,-1]]);var CN9=new _.S1("s"),Iqr=new _.S1("t"),oLj=new _.S1("u"),hQ9=new _.S1("v"),Hwq=function(W,B,z){_.bK.call(this,CN9);this.mediaKey=W;this.photoUrl=B;this.photoSource=z};
_.C(Hwq,_.bK);var F7f=function(){_.bK.call(this,Iqr)};
_.C(F7f,_.bK);var STi=function(W){W=W===void 0?!1:W;_.bK.call(this,oLj);this.isError=W};
_.C(STi,_.bK);var bwj=function(){_.bK.call(this,hQ9)};
_.C(bwj,_.bK);var j1K=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,K7f=function(W){if(typeof W=="string"){if(W.charAt(0)==".")return fqb(W.substr(1));if(W.charAt(0)=="["){var B=j1K.exec(W);W=W.indexOf("=")==-1?void 0:B[3];return Owi(B[1],W)}return X1f(W)}return W},fqb=function(W){return function(B){return B.getAttribute&&_.Yc(B,W)}},Owi=function(W,B){return function(z){return B!==void 0?z.getAttribute&&z.getAttribute(W)==B:z.hasAttribute&&z.hasAttribute(W)}},X1f=function(W){W=W.toUpperCase();
return function(B){return(B=B.tagName)&&B.toUpperCase()==W}},u5O=function(){return!0};var MW=function(W,B){this.JSC$19557_key_=W;this.JSC$19557_value_=B},aC=function(W){throw Error("uk`"+W.JSC$19557_key_);
},eQr=function(W,B){return new TypeError("vk`"+B+"`"+W.JSC$19557_key_+"`"+W.JSC$19557_value_+"`"+typeof W.JSC$19557_value_)};
MW.prototype.string=function(W){return arguments.length==0?mrr(this):xrO(this,W)};
var xrO=function(W,B){var z;return(z=Drn(W))!=null?z:B},mrr=function(W){var B=Drn(W);
B===null&&aC(W);return B},Drn=function(W){var B=W.JSC$19557_value_;
if(B==null)return null;if(typeof B==="string")return B;throw eQr(W,"string");};
MW.prototype.bool=function(W){if(arguments.length==0){var B=this.optionalBool();B===null&&aC(this)}else{var z;B=(z=this.optionalBool())!=null?z:W}return B};
MW.prototype.optionalBool=function(){var W=this.JSC$19557_value_;if(W==null)return null;if(typeof W==="boolean")return W;if(typeof W==="string"){W=W.toLowerCase();if(W==="true"||W==="1")return!0;if(W==="false"||W==="0")return!1}throw eQr(this,"boolean");};
MW.prototype.number=function(W){if(arguments.length==0){var B=Q1b(this);B===null&&aC(this)}else B=y16(this,W);return B};
var y16=function(W,B){var z;return(z=Q1b(W))!=null?z:B},Q1b=function(W){var B=W.JSC$19557_value_;
if(B==null)return null;if(typeof B==="number")return B;if(typeof B==="string"){var z=Number(B);if(!isNaN(z)&&(z!==0||B.trim().length!==0))return z}throw eQr(W,"number");};
MW.prototype.toString=function(){return mrr(this)};
MW.prototype.enum=function(W,B){var z=!0,G=void 0,Y;for(Y in W){var d=W[Y];z&&(z=!1,G=typeof d==="number"?y16(this,B):xrO(this,B));if(d==G)return G}JSON.stringify(W);return G};
MW.prototype.array=function(W){if(arguments.length==0){var B=qT0(this);B===null&&aC(this);return B}B=qT0(this);return B==null?W:B};
var qT0=function(W){var B=W.JSC$19557_value_;if(B==null)return null;Array.isArray(B)||(typeof B!=="string"?B=[B]:(B=B.trim(),B=B==""?[]:B.split(",").map(function(z){return z.trim()})));
return nLK(W,B)},nLK=function(W,B){var z=W.JSC$19557_key_+"[";
return Array.from(B,function(G,Y){return new MW(z+Y+"]",G)})};
MW.prototype.object=function(W){var B=this.JSC$19557_value_;if(B==null)return W===void 0&&aC(this),W;if(typeof B==="object"&&B.constructor===Object){W={};var z=this.JSC$19557_key_+".",G;for(G in B)W[G]=new MW(z+G,B[G]);return W}throw eQr(this,"object");};var RC=function(W){this.list_=NRi(W)},NRi=function(W){if(W instanceof RC)W=W.list_;
else if(W[0]instanceof RC){for(var B=new Set,z=0;z<W.length;z++)for(var G=_.A(W[z].list_),Y=G.next();!Y.done;Y=G.next())B.add(Y.value);W=B}return[].concat(_.u7(W))};
_.p=RC.prototype;_.p.each=function(W,B,z){((z===void 0?0:z)?PHr:_.$r)(this.list_,W,B);return this};
_.p.size=function(){return this.list_.length};
_.p.isEmpty=function(){return this.list_.length===0};
_.p.get=function(W){return this.list_[W]||null};
_.p.el=function(){return this.list_[0]||null};
_.p.map=function(W,B){return _.xH(this.list_,W,B)};
_.p.equals=function(W){return this===W||_.UX(this.list_,W.list_)};
_.p.first=function(){return this.list_.length==0?null:new Wi(this.list_[0])};
_.p.last=function(){return this.list_.length==0?null:new Wi(this.list_[this.list_.length-1])};
_.p.find=function(W){var B=[];this.each(function(z){z=z.querySelectorAll(String(W));for(var G=0;G<z.length;G++)B.push(z[G])});
return new RC(B)};
_.p.parent=function(){var W=[];this.each(function(B){(B=B.parentElement||null)&&!_.xt(W,B)&&W.push(B)});
return new RC(W)};
_.p.children=function(){var W=[];this.each(function(B){B=_.ND(B);for(var z=0;z<B.length;z++)W.push(B[z])});
return new RC(W)};
_.p.filter=function(W){W=_.wb(this.list_,K7f(W));return new RC(W)};
_.p.closest=function(W){var B=[],z=K7f(W),G=function(Y){return _.MX(Y)&&z(Y)};
this.each(function(Y){(Y=_.n3(Y,G,!0))&&!_.xt(B,Y)&&B.push(Y)});
return new RC(B)};
_.p.next=function(W){return $r1(this,_.sj4,W)};
_.p.prev=function(W){return $r1(this,RZ6,W)};
var $r1=function(W,B,z){var G=[];var Y=z?K7f(z):u5O;W.each(function(d){(d=B(d))&&Y(d)&&G.push(d)});
return new RC(G)};
RC.prototype.setClass=function(W){return this.each(function(B){_.z2(B,W)})};
var L7K=function(W,B){return W.each(function(z){_.Ev(z,B)})},Urb=function(W,B){return W.each(function(z){_.AY(z,B)})};
RC.prototype.toggleClass=function(W,B){return B===!0?L7K(this,W):B===!1?Urb(this,W):this.each(function(z){_.Yc(z,W)?_.AY(z,W):_.Ev(z,W)})};
RC.prototype.setText=function(W){return this.each(function(B){_.$i(B,W)})};
var M0i=function(W){W.each(function(B){B.removeAttribute("aria-hidden")})};
RC.prototype.getStyle=function(W){if(this.list_.length>0){var B=this.list_[0],z=B.style[_.ly(W)];return typeof z!=="undefined"?z:B.style[_.bOu(B,W)]||""}};
RC.prototype.getData=function(W){if(this.list_.length===0)return new MW(W,null);var B=CH6(this.list_[0],W);return new MW(W,B)};
RC.prototype.focus=function(W){try{W?this.el().focus(W):this.el().focus()}catch(B){}return this};
RC.prototype.click=function(){var W=_.yY(this.el());if(W.createEvent){var B=W.createEvent("MouseEvents");B.initMouseEvent("click",!0,!0,W.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(B)}else W=W.createEventObject(),W.clientX=0,W.clientY=0,W.screenX=0,W.screenY=0,W.altKey=!1,W.ctrlKey=!1,W.shiftKey=!1,W.button=0,this.el().fireEvent("onclick",W)};
var Bi=function(W,B,z,G){function Y(v,c,J){var g=c;c&&c.parentNode&&(g=c.cloneNode(!0));v(g,J)}
G=G===void 0?!1:G;if(W.list_.length==1){var d=W.list_[0],E=function(v){return B(v,d)};
z instanceof RC?z.each(E,void 0,G):Array.isArray(z)?(G?PHr:_.$r)(z,E):E(z);return W}return W.each(function(v){z instanceof RC?z.each(function(c){Y(B,c,v)}):Array.isArray(z)?_.$r(z,function(c){Y(B,c,v)}):Y(B,z,v)})};
_.p=RC.prototype;_.p.append=function(W){return Bi(this,function(B,z){B&&z.appendChild(B)},W)};
_.p.appendTo=function(W){(new RC([W])).append(this);return this};
_.p.remove=function(){return Bi(this,function(W,B){_.o0(B)},null)};
_.p.empty=function(){return Bi(this,function(W,B){_.yG(B)},null)};
_.p.after=function(W,B){return Bi(this,function(z,G){z&&_.nf(z,G)},W,!(B===void 0||B))};
_.p.before=function(W){return Bi(this,function(B,z){B&&_.qD(B,z)},W)};
_.p.replaceWith=function(W){return Bi(this,function(B,z){B&&_.JKd(B,z)},W)};
_.p.toggle=function(W){return this.each(function(B){_.R0(B,W)})};
_.p.show=function(){return this.toggle(!0)};
_.p.hide=function(){return this.toggle(!1)};
_.p.trigger=function(W,B,z,G){return aqY(this,W,B,z,G)};
var aqY=function(W,B,z,G,Y){return W.each(function(d){_.l_y(_.yY(d)).triggerWizEventInternal(d,B,z,G,Y)})},Wi=function(W,B){W instanceof RC&&(B=W.list_,W=null);
this.list_=NRi(W!=null?[W]:B)};
_.TC(Wi,RC);_.p=Wi.prototype;_.p.children=function(){return new RC(Array.prototype.slice.call(_.ND(this.list_[0])))};
_.p.each=function(W,B){W.call(B,this.list_[0],0);return this};
_.p.size=function(){return 1};
_.p.el=function(){return this.list_[0]};
_.p.first=function(){return this};var z9=function(W,B){B=B===void 0?window:B;this.hostId=W;this.JSC$19568_win=B;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$19568_previousHtmlOverscroll=this.JSC$19568_previousBodyOverscroll=this.JSC$19568_previousBodyOverflow="";this.eventTarget=new _.Ka;this.JSC$19568_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
BIr=function(W){var B=RQf(RQf(RQf(new WNf(78),"po"),"hppp"),"hhc");
B.authUser=Number(_.eD("SESSION_INDEX","0"));B.colorScheme=W;return B};
z9.prototype.getOrigin=function(){return this.origin?this.origin:_.gd(_.J4(_.VS(new _.B0,this.JSC$19568_win.location.protocol),this.JSC$19568_win.location.hostname),this.JSC$19568_win.location.port).toString()};
z9.prototype.getTargetOrigin=function(){return _.gd(_.J4(_.VS(new _.B0,this.scheme),this.domain),this.port)};
z9.prototype.preloadIframe=function(W){var B=this;if(this.iframeLoadPromise===void 0){var z=document.createElement("iframe");this.iframe=z;PPi(z,W);this.iframeLoadPromise=new Promise(function(G,Y){var d=!1,E=function(v){v.stopPropagation();z.removeEventListener("error",E);z.removeEventListener("securitypolicyviolation",E);Y(Error("wk",{cause:v}))};
z.addEventListener("error",E);z.addEventListener("securitypolicyviolation",E);setTimeout(function(){d||Y(Error("xk"))},3E4);
zdf(B,z,function(){d=!0;z.removeEventListener("error",E);z.removeEventListener("securitypolicyviolation",E);G()})});
Gff(this);W=this.getTargetOrigin().toString();z.setAttribute("allow","camera "+W+"; display-capture "+W);this.parentElement.appendChild(z)}return this.iframeLoadPromise};
var p4K=function(W,B){var z,G;return _.T(function(Y){if(Y.nextAddress==1)return z=vw1(getComputedStyle(W.parentElement).direction==="rtl"),W.parentElement.appendChild(z),document.activeElement instanceof HTMLElement&&(W.elementToFocusAfterClose=document.activeElement),_.kA(Y,2),Y.yield(W.preloadIframe(B),4);if(Y.nextAddress!=2){W.parentElement.removeChild(z);W.JSC$19568_previousBodyOverflow=W.parentElement.style.overflow;W.JSC$19568_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
W.JSC$19568_previousBodyOverscroll=W.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";W.parentElement.style.overscrollBehavior="contain";W.parentElement.style.overflow="hidden";var d=W.iframe;d.style.bottom="0";d.style.border="none";d.style.height="100%";d.style.left="0";d.style.position=W.iframePosition;d.style.right="0";d.style.top="0";d.style.width="100%";d.style.zIndex="2202";d.setAttribute("aria-hidden","false");d.setAttribute("aria-modal","true");
W.opened=!0;YWj(W);return _.Nn(Y,0)}G=_.h6(Y);W.parentElement.removeChild(z);gwf(W.isDarkTheme());dzK(W,!1);throw Error("yk",{cause:G});})},dzK=function(W,B){B=B===void 0?!0:B;
W.iframe!==void 0&&(Af0(W),document.documentElement.style.overscrollBehavior=W.JSC$19568_previousHtmlOverscroll,W.parentElement.style.overscrollBehavior=W.JSC$19568_previousBodyOverscroll,W.parentElement.style.overflow=W.JSC$19568_previousBodyOverflow,W.elementToFocusAfterClose!==void 0&&(W.elementToFocusAfterClose.focus(),W.elementToFocusAfterClose=void 0),B?Gff(W):(W.parentElement.removeChild(W.iframe),W.iframe=void 0,W.iframeLoadPromise=void 0,W.mainChannel=void 0),W.opened=!1)},Af0=function(W){W.backgroundElementsAriaHiddenIsNull&&
(M0i(W.backgroundElementsAriaHiddenIsNull),W.backgroundElementsAriaHiddenIsNull=void 0);
W.backgroundElementsAriaHiddenIsFalse&&(W.backgroundElementsAriaHiddenIsFalse.each(function(B){B.setAttribute("aria-hidden","false")}),W.backgroundElementsAriaHiddenIsFalse=void 0);
W.backgroundElementsWithoutInert&&(W.backgroundElementsWithoutInert.each(function(B){B.removeAttribute("inert")}),W.backgroundElementsWithoutInert=void 0)},YWj=function(W){W.backgroundElementsAriaHiddenIsNull=(new Wi(W.iframe.parentElement)).children().filter(function(B){return B.getAttribute("aria-hidden")===null&&B!==W.iframe});
W.backgroundElementsAriaHiddenIsNull.each(function(B){B.setAttribute("aria-hidden","true")});
W.backgroundElementsAriaHiddenIsFalse=(new Wi(W.iframe.parentElement)).children().filter(function(B){return B.getAttribute("aria-hidden")==="false"&&B!==W.iframe});
W.backgroundElementsAriaHiddenIsFalse.each(function(B){B.setAttribute("aria-hidden","true")});
W.backgroundElementsWithoutInert=(new Wi(W.iframe.parentElement)).children().filter(function(B){return!B.hasAttribute("inert")&&B!==W.iframe});
W.backgroundElementsWithoutInert.each(function(B){B.setAttribute("inert","true")})},Gff=function(W){W=W.iframe;
W.style.bottom="-1000px";W.style.position="fixed";W.style.right="-1000px";W.style.border="";W.style.height="";W.style.left="";W.style.top="";W.style.width="";W.style.zIndex="";W.setAttribute("aria-hidden","true");W.setAttribute("aria-modal","false")};
z9.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var WNf=function(W,B){z9.call(this,V0f[W],B);this.options=[];this.style=""};
_.C(WNf,z9);var ihj=function(W){W.style="youtube";return W},EyY=function(W,B){W.eventTarget.listen(oLj,B);
return W},TI6=function(W,B){W.eventTarget.listen(CN9,B);
return W},RQf=function(W,B){W.options.push(B);
return W},vy1=function(W){var B=[W.getOrigin()];
W.ancestorOrigins&&B.push.apply(B,_.u7(W.ancestorOrigins));var z=new _.B0(W.JSC$19568_win.location.href),G=W.startUrl?W.startUrl:W.options.includes("po")?"profile-picture/art":"profile-picture";B=va(_.t4(W.getTargetOrigin(),G),"origin",B);W.startUrl&&_.a0(B,"startPath",W.startUrl);W.authUser>0&&_.a0(B,"authuser",W.authUser);W.pageId!==void 0&&_.a0(B,"pageId",W.pageId);_.a0(B,"hostId",W.hostId);W.jsMode!==void 0&&_.a0(B,"jsmode",W.jsMode);W.rectangleRatio!==void 0&&_.a0(B,"rectangleRatio",W.rectangleRatio);
W.options.length>0&&_.a0(B,"opts",W.options.join(","));try{for(var Y=_.A(["utm_source","utm_medium","utm_campaign","utm_content"]),d=Y.next();!d.done;d=Y.next()){var E=d.value;_.M5(z,E)&&_.a0(B,E,_.M5(z,E))}var v,c=(v=W.hl)!=null?v:_.M5(z,"hl");c!==void 0&&_.a0(B,"hl",c)}catch(J){if(!(J instanceof URIError))throw J;}W.colorScheme&&_.a0(B,"theme",W.colorScheme);W.style&&_.a0(B,"style",W.style);return B},cfj=function(W,B){W.mainChannel=_.ww({destination:W.JSC$19568_win,
iframe:B,origin:W.getTargetOrigin().toString(),channelName:"ow",onMessage:function(z){z=Zwq(z.data);if(B===W.iframe)switch(_.u0(z,1)){case 1:W.eventTarget.dispatchEvent(new STi);dzK(W);break;case 2:W.eventTarget.dispatchEvent(new Hwq(_.KV(z,4),_.KV(z,2),_.u0(z,5),_.AD(z,t00,6)));break;case 0:var G;W.eventTarget.dispatchEvent(new F7f(_.KV(z,2),(G=_.u0(z,3))!=null?G:0));break;case 3:W.eventTarget.dispatchEvent(new STi(!0));dzK(W,!1);break;case 4:W.eventTarget.dispatchEvent(new bwj)}}})},zdf=function(W,
B,z){_.ww({destination:W.JSC$19568_win,
iframe:B,origin:_.gd(_.J4(_.VS(new _.B0,W.scheme),W.domain),W.port).toString(),channelName:"owi",onMessage:function(G){B===W.iframe&&(z!==void 0&&z(),cfj(W,B),W.opened&&W.mainChannel.send(lqO(ku9())),G.reply(),zdf(W,B))}})};
WNf.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?z9.prototype.preloadIframe.call(this,vy1(this).toString()):this.iframeLoadPromise};
WNf.prototype.openPicker=function(W){var B=this;return _.T(function(z){if(z.nextAddress==1)return B.startUrl=W?W:B.options.includes("po")?"profile-picture/art":"profile-picture",z.yield(p4K(B,vy1(B).toString()),2);if(B.mainChannel){var G=B.mainChannel,Y=G.send;var d=ku9();d=_.f3(d,2,B.startUrl);Y.call(G,lqO(d))}_.HG(z)})};var w4i=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(w4i,_.iQ);_.p=w4i.prototype;_.p.getSize=function(){return sm(this,1)};
_.p.setSize=function(W){return _.DJ(this,1,W)};
_.p.getWidth=function(){return sm(this,12)};
_.p.getHeight=function(){return sm(this,13)};
_.p.setCenterCrop=function(W){return _.gH(this,20,W)};
_.p.getHtml=function(){return _.fV(this,4)};
_.p.getToken=function(){return _.Cp(this,24)};
_.p.setToken=function(W){return _.f3(this,24,W)};
_.p.getBackgroundColor=function(){return sm(this,87)};
_.p.hasBackgroundColor=function(){return _.di(_.CV(this,87))!=null};
_.p.getStoryboardLevel=function(){return sm(this,109)};var G9=function(W){this.JSC$19576_value_=void 0;this.childNodes_={};if(W){var B=_.pR7(W);W=_.wd(W);for(var z=0;z<B.length;z++)this.set(B[z],W[z])}};
G9.prototype.set=function(W,B){VY9(this,W,B,!1)};
G9.prototype.add=function(W,B){VY9(this,W,B,!0)};
var VY9=function(W,B,z,G){for(var Y=0;Y<B.length;Y++){var d=B.charAt(Y);W.childNodes_[d]||(W.childNodes_[d]=new G9);W=W.childNodes_[d]}if(G&&W.JSC$19576_value_!==void 0)throw Error("zk`"+B);W.JSC$19576_value_=z},Jfq=function(W,B){for(var z=0;z<B.length;z++)if(W=W.childNodes_[B.charAt(z)],!W)return;
return W};
G9.prototype.get=function(W){return(W=Jfq(this,W))?W.JSC$19576_value_:void 0};
G9.prototype.getValues=function(){var W=[];gyi(this,W);return W};
var gyi=function(W,B){W.JSC$19576_value_!==void 0&&B.push(W.JSC$19576_value_);for(var z in W.childNodes_)gyi(W.childNodes_[z],B)};
G9.prototype.getKeys=function(W){var B=[];if(W){for(var z=this,G=0;G<W.length;G++){var Y=W.charAt(G);if(!z.childNodes_[Y])return[];z=z.childNodes_[Y]}tYK(z,W,B)}else tYK(this,"",B);return B};
var tYK=function(W,B,z){W.JSC$19576_value_!==void 0&&z.push(B);for(var G in W.childNodes_)tYK(W.childNodes_[G],B+G,z)};
_.p=G9.prototype;_.p.containsKey=function(W){return this.get(W)!==void 0};
_.p.containsValue=function(W){if(this.JSC$19576_value_===W)return!0;for(var B in this.childNodes_)if(this.childNodes_[B].containsValue(W))return!0;return!1};
_.p.clear=function(){this.childNodes_={};this.JSC$19576_value_=void 0};
_.p.remove=function(W){for(var B=this,z=[],G=0;G<W.length;G++){var Y=W.charAt(G);if(!B.childNodes_[Y])throw Error("Ak`"+W);z.push([B,Y]);B=B.childNodes_[Y]}W=B.JSC$19576_value_;for(delete B.JSC$19576_value_;z.length>0;)if(G=z.pop(),B=G[0],G=G[1],B.childNodes_[G].isEmpty())delete B.childNodes_[G];else break;return W};
_.p.clone=function(){return new G9(this)};
_.p.getCount=function(){return GIj(this.getValues())};
_.p.isEmpty=function(){return this.JSC$19576_value_===void 0&&_.mP.isEmpty(this.childNodes_)};var CPb=function(){if(!sxi){var W=sxi=new G9,B;for(B in Pz0)W.add(B,Pz0[B])}},sxi,Y5=function(W,B){this.types=W;
this.setters=B},Pz0={a:new Y5([3,
0],[function(W,B){_.gH(W,21,B)},
function(W,B){_.DJ(W,56,B)}]),
al:new Y5([3],[function(W,B){_.gH(W,74,B)}]),
b:new Y5([3,0],[function(W,B){_.gH(W,23,B)},
function(W,B){_.DJ(W,38,B)}]),
ba:new Y5([0],[function(W,B){_.DJ(W,85,B)}]),
bc:new Y5([0],[function(W,B){_.DJ(W,87,B)}]),
br:new Y5([0],[function(W,B){_.DJ(W,86,B)}]),
c:new Y5([3,0],[function(W,B){_.gH(W,2,B)},
function(W,B){_.DJ(W,39,B)}]),
cc:new Y5([3],[function(W,B){_.gH(W,51,B)}]),
ci:new Y5([3],[function(W,B){_.gH(W,32,B)}]),
ckm:new Y5([3],[function(W,B){_.gH(W,104,B)}]),
cp:new Y5([0],[function(W,B){_.DJ(W,92,B)}]),
cr:new Y5([3],[function(W,B){_.gH(W,108,B)}]),
cv:new Y5([0],[function(W,B){_.DJ(W,94,B)}]),
d:new Y5([3],[function(W,B){_.gH(W,3,B)}]),
dc:new Y5([5],[function(W,B){_.f3(W,99,B)}]),
df:new Y5([3],[function(W,B){_.gH(W,80,B)}]),
dv:new Y5([3],[function(W,B){_.gH(W,90,B)}]),
e:new Y5([0],[function(W,B){_.DJ(W,15,B)}]),
em:new Y5([0],[function(W,B){_.DJ(W,107,B)}]),
f:new Y5([4],[function(W,B){_.f3(W,16,B)}]),
fg:new Y5([3],[function(W,B){_.gH(W,34,B)}]),
fh:new Y5([3],[function(W,B){_.gH(W,30,B)}]),
fm:new Y5([3],[function(W,B){_.gH(W,84,B)}]),
fo:new Y5([2],[function(W,B){_.EE(W,79,_.n7(B))}]),
ft:new Y5([3],[function(W,B){_.gH(W,50,B)}]),
fv:new Y5([3],[function(W,B){_.gH(W,31,B)}]),
g:new Y5([3],[function(W,B){_.gH(W,14,B)}]),
gce:new Y5([4],[function(W,B){_.f3(W,112,B)}]),
gd:new Y5([3],[function(W,B){_.gH(W,83,B)}]),
gm:new Y5([3],[function(W,B){_.gH(W,105,B)}]),
h:new Y5([3,0],[function(W,B){_.gH(W,4,B)},
function(W,B){_.DJ(W,13,B)}]),
i:new Y5([3],[function(W,B){_.gH(W,22,B)}]),
ic:new Y5([0],[function(W,B){_.DJ(W,71,B)}]),
id:new Y5([3],[function(W,B){_.gH(W,70,B)}]),
il:new Y5([3],[function(W,B){_.gH(W,96,B)}]),
ip:new Y5([3],[function(W,B){_.gH(W,54,B)}]),
iv:new Y5([0],[function(W,B){_.kE(W,75,B)}]),
j:new Y5([1],[function(W,B){B=B==null?B:kyf(B);_.EE(W,29,B)}]),
k:new Y5([3,0],[function(W,B){_.gH(W,17,B)},
function(W,B){_.DJ(W,42,B)}]),
l:new Y5([0],[function(W,B){_.DJ(W,44,B)}]),
lf:new Y5([3],[function(W,B){_.gH(W,65,B)}]),
lo:new Y5([3],[function(W,B){_.gH(W,97,B)}]),
m:new Y5([0],[function(W,B){_.DJ(W,63,B)}]),
md:new Y5([3],[function(W,B){_.gH(W,91,B)}]),
mm:new Y5([4],[function(W,B){_.f3(W,81,B)}]),
mo:new Y5([3],[function(W,B){_.gH(W,73,B)}]),
mp:new Y5([0],[function(W,B){_.DJ(W,115,B)}]),
mv:new Y5([3],[function(W,B){_.gH(W,66,B)}]),
n:new Y5([3],[function(W,B){W.setCenterCrop(B)}]),
nc:new Y5([3],[function(W,B){_.gH(W,55,B)}]),
nd:new Y5([3],[function(W,B){_.gH(W,53,B)}]),
ng:new Y5([3],[function(W,B){_.gH(W,95,B)}]),
ngm:new Y5([3],[function(W,B){_.gH(W,106,B)}]),
no:new Y5([3],[function(W,B){_.gH(W,37,B)}]),
ns:new Y5([3],[function(W,B){_.gH(W,40,B)}]),
nt0:new Y5([4],[function(W,B){_.f3(W,36,B)}]),
ntm:new Y5([3],[function(W,B){_.gH(W,114,B)}]),
nu:new Y5([3],[function(W,B){_.gH(W,46,B)}]),
nw:new Y5([3],[function(W,B){_.gH(W,48,B)}]),
o:new Y5([1,3],[function(W,B){B=B==null?B:kyf(B);_.EE(W,7,B)},
function(W,B){_.gH(W,27,B)}]),
p:new Y5([3,0],[function(W,B){_.gH(W,19,B)},
function(W,B){_.DJ(W,43,B)}]),
pa:new Y5([3],[function(W,B){_.gH(W,61,B)}]),
pc:new Y5([0],[function(W,B){_.DJ(W,88,B)}]),
pd:new Y5([3],[function(W,B){_.gH(W,60,B)}]),
pf:new Y5([3],[function(W,B){_.gH(W,67,B)}]),
pg:new Y5([3],[function(W,B){_.gH(W,72,B)}]),
pi:new Y5([2],[function(W,B){_.EE(W,76,_.n7(B))}]),
pp:new Y5([3],[function(W,B){_.gH(W,52,B)}]),
pt:new Y5([4],[function(W,B){_.f3(W,111,B)}]),
q:new Y5([4],[function(W,B){_.f3(W,28,B)}]),
r:new Y5([3,0],[function(W,B){_.gH(W,6,B)},
function(W,B){_.DJ(W,26,B)}]),
ra:new Y5([3],[function(W,B){_.gH(W,103,B)}]),
rf:new Y5([3],[function(W,B){_.gH(W,100,B)}]),
rg:new Y5([3],[function(W,B){_.gH(W,59,B)}]),
rh:new Y5([3],[function(W,B){_.gH(W,49,B)}]),
rj:new Y5([3],[function(W,B){_.gH(W,57,B)}]),
ro:new Y5([2],[function(W,B){_.EE(W,78,_.n7(B))}]),
rp:new Y5([3],[function(W,B){_.gH(W,58,B)}]),
rw:new Y5([3],[function(W,B){_.gH(W,35,B)}]),
rwa:new Y5([3],[function(W,B){_.gH(W,64,B)}]),
rwu:new Y5([3],[function(W,B){_.gH(W,41,B)}]),
s:new Y5([3,0],[function(W,B){_.gH(W,33,B)},
function(W,B){W.setSize(B)}]),
sb:new Y5([0],[function(W,B){_.DJ(W,110,B)}]),
sc:new Y5([0],[function(W,B){_.DJ(W,89,B)}]),
sg:new Y5([3],[function(W,B){_.gH(W,82,B)}]),
sl:new Y5([0],[function(W,B){_.DJ(W,109,B)}]),
sm:new Y5([3],[function(W,B){_.gH(W,93,B)}]),
t:new Y5([4],[function(W,B){W.setToken(B)}]),
tm:new Y5([3],[function(W,B){_.gH(W,113,B)}]),
u:new Y5([3],[function(W,B){_.gH(W,18,B)}]),
ut:new Y5([3],[function(W,B){_.gH(W,45,B)}]),
v:new Y5([0],[function(W,B){_.DJ(W,62,B)}]),
vb:new Y5([0],[function(W,B){_.kE(W,68,B)}]),
vf:new Y5([4],[function(W,B){_.f3(W,102,B)}]),
vl:new Y5([0],[function(W,B){_.kE(W,69,B)}]),
vm:new Y5([3],[function(W,B){_.gH(W,98,B)}]),
w:new Y5([0],[function(W,B){_.DJ(W,12,B)}]),
x:new Y5([0],[function(W,B){_.DJ(W,9,B)}]),
y:new Y5([0],[function(W,B){_.DJ(W,10,B)}]),
ya:new Y5([2],[function(W,B){_.EE(W,77,_.n7(B))}]),
z:new Y5([0],[function(W,B){_.DJ(W,11,B)}])};
CPb.prototype.parse=function(W){var B=new w4i,z=new w4i;if(W=="")W=!0;else{W=W.split("-");for(var G=!0,Y=0;Y<W.length;Y++){var d=W[Y];if(d.length==0)G=!1;else{var E=d,v=!1;var c=E;var J=E.charAt(0);J!=J.toLowerCase()&&(v=!0,c=E.charAt(0).toLowerCase()+E.substring(1));var g=sxi;for(J=1;J<=c.length;++J){var t=g,P=c.substring(0,J);if(P.length==0?t.isEmpty():!Jfq(t,P))break}c=J==1?null:(c=g.get(c.substring(0,J-1)))?{option:E.substring(0,J-1),value:E.substring(J-1),signed:v,attributes:c}:null;if(c){E=
[];v=[];J=!1;for(g=0;g<c.attributes.types.length;g++){t=c.attributes.types[g];var Z=c.value;P=Y;if(c.signed&&t==1)for(var l=Z.length;l<12&&P<W.length-1;)Z+="-"+W[P+1],l=Z.length,++P;else if(t==2)for(;P<W.length-1&&W[P+1].match(/^[\d\.]/);)Z+="-"+W[P+1],++P;l=c.attributes.setters[g];Z=ZhO(this,t)(c.option,Z,B,z,l);if(Z===null){J=!0;Y=P;break}else E.push(t),v.push(Z)}if(!J)for(c=0;c<v.length;c++)g=E[c],Z=v[c],rf9(this,g)(d,Z);G=G&&J}else G=!1}}W=G}return new kfb(B,z,W)};
var dA=function(W,B,z,G,Y,d){Y(z,B);W=W.charAt(0);d=d(W==W.toUpperCase());Y(G,d)};
_.p=CPb.prototype;_.p.parseAndSetIntOption_=function(W,B,z,G,Y){if(B=="")return 0;isFinite(B)&&(B=String(B));B=typeof B==="string"?/^\s*-?0x/i.test(B)?parseInt(B,16):parseInt(B,10):NaN;if(isNaN(B))return 1;dA(W,B,z,G,Y,Number);return null};
_.p.logIntParseError_=function(){};
_.p.parseAndSetFloatOption_=function(W,B,z,G,Y){if(B=="")return 0;var d=Number(B);B=d==0&&_.TT(B)?NaN:d;if(isNaN(B))return 1;dA(W,B,z,G,Y,Number);return null};
_.p.logFloatParseError_=function(){};
_.p.parseAndSetBoolOption_=function(W,B,z,G,Y){if(B!="")return 2;dA(W,!0,z,G,Y,Boolean);return null};
_.p.logBoolParseError_=function(){};
_.p.parseAndSetStringOption_=function(W,B,z,G,Y){if(B=="")return 0;dA(W,B,z,G,Y,function(d){return d?"1":""});
return null};
_.p.logStringParseError_=function(){};
_.p.parseAndSetUint64Base64Option_=function(W,B,z,G,Y){if(B=="")return 0;dA(W,B,z,G,Y,function(d){return d?1:0});
return null};
var ZhO=function(W,B){switch(B){case 0:return(0,_.jk)(W.parseAndSetIntOption_,W);case 2:return(0,_.jk)(W.parseAndSetFloatOption_,W);case 3:return(0,_.jk)(W.parseAndSetBoolOption_,W);case 4:return(0,_.jk)(W.parseAndSetStringOption_,W);case 1:return(0,_.jk)(W.parseAndSetUint64Base64Option_,W);default:return function(){}}},rf9=function(W,B){switch(B){case 0:return(0,_.jk)(W.logIntParseError_,W);
case 2:return(0,_.jk)(W.logFloatParseError_,W);case 3:return(0,_.jk)(W.logBoolParseError_,W);case 4:case 1:return(0,_.jk)(W.logStringParseError_,W);default:return function(){}}},kfb=function(W,B,z){this.valueProto_=W;
this.signatureFlagProto_=B;this.JSC$19588_valid_=z};
kfb.prototype.isValid=function(){return this.JSC$19588_valid_};var Zo6=function(W){this.JSC$19589_parser_=null;this.JSC$19589_components_=[];this.JSC$19589_parsedOptions_=null;l3Y(this,W)},Czn=function(W){W.JSC$19589_parser_==null&&(W.JSC$19589_parser_=new CPb);
return W.JSC$19589_parser_},l3Y=function(W,B){W.JSC$19589_parsedOptions_=B?typeof B==="string"?Czn(W).parse(B):B:Czn(W).parse("")},pP=function(W,B){return W==B?!1:!0};
_.p=Zo6.prototype;_.p.JSC$19591_setCrop=function(W){W=W||void 0;var B=this.JSC$19589_parsedOptions_,z=B.valueProto_;pP(W,_.fV(z,2),_.fV(B.signatureFlagProto_,2))&&_.gH(z,2,W);return this};
_.p.JSC$19591_setCircleCrop=function(W){W=W||void 0;var B=this.JSC$19589_parsedOptions_,z=B.valueProto_;pP(W,td(z,51),td(B.signatureFlagProto_,51))&&_.gH(z,51,W);return this};
_.p.JSC$19591_setImageCrop=function(W){W=W||void 0;var B=this.JSC$19589_parsedOptions_,z=B.valueProto_;pP(W,td(z,32),td(B.signatureFlagProto_,32))&&_.gH(z,32,W);return this};
_.p.JSC$19591_setHeight=function(W){var B=this.JSC$19589_parsedOptions_,z=B.valueProto_;pP(W,z.getHeight(),B.signatureFlagProto_.getHeight())&&_.DJ(z,13,W);return this};
_.p.setCenterCrop=function(W){W=W||void 0;var B=this.JSC$19589_parsedOptions_,z=B.valueProto_;pP(W,_.fV(z,20),_.fV(B.signatureFlagProto_,20))&&z.setCenterCrop(W);return this};
_.p.JSC$19591_setSmartCrop=function(W){W=W||void 0;var B=this.JSC$19589_parsedOptions_,z=B.valueProto_;pP(W,_.fV(z,19),_.fV(B.signatureFlagProto_,19))&&_.gH(z,19,W);return this};
_.p.JSC$19591_setPad=function(W){W=W||void 0;var B=this.JSC$19589_parsedOptions_,z=B.valueProto_;pP(W,td(z,60),td(B.signatureFlagProto_,60))&&_.gH(z,60,W);return this};
_.p.JSC$19591_setSmartCropUseFace=function(W){W=W||void 0;var B=this.JSC$19589_parsedOptions_,z=B.valueProto_;pP(W,_.fV(z,67),_.fV(B.signatureFlagProto_,67))&&_.gH(z,67,W);return this};
_.p.JSC$19591_setSmartCropNoClip=function(W){W=W||void 0;var B=this.JSC$19589_parsedOptions_,z=B.valueProto_;pP(W,_.fV(z,52),_.fV(B.signatureFlagProto_,52))&&_.gH(z,52,W);return this};
_.p.setSize=function(W){var B=this.JSC$19589_parsedOptions_,z=B.valueProto_;pP(W,z.getSize(),B.signatureFlagProto_.getSize())&&z.setSize(W);return this};
_.p.setToken=function(W){W=W||void 0;var B=this.JSC$19589_parsedOptions_,z=B.valueProto_;pP(W,z.getToken(),B.signatureFlagProto_.getToken())&&z.setToken(W);return this};
_.p.JSC$19591_setWidth=function(W){var B=this.JSC$19589_parsedOptions_,z=B.valueProto_;pP(W,z.getWidth(),B.signatureFlagProto_.getWidth())&&_.DJ(z,12,W);return this};
_.p.clearOptions=function(){l3Y(this,"");return this};
_.p.build=function(){this.JSC$19589_components_.length=0;var W=this.JSC$19589_parsedOptions_,B=W.valueProto_;W=W.signatureFlagProto_;A$(this,"s",B.getSize(),W.getSize());A$(this,"w",B.getWidth(),W.getWidth());il(this,"c",_.fV(B,2),_.fV(W,2));il(this,"d",_.fV(B,3),_.fV(W,3));A$(this,"h",B.getHeight(),W.getHeight());il(this,"s",td(B,33),td(W,33));il(this,"h",B.getHtml(),W.getHtml());il(this,"p",_.fV(B,19),_.fV(W,19));il(this,"pp",_.fV(B,52),_.fV(W,52));il(this,"pf",_.fV(B,67),_.fV(W,67));il(this,"n",
_.fV(B,20),_.fV(W,20));A$(this,"r",sm(B,26),sm(W,26));il(this,"r",_.fV(B,6),_.fV(W,6));il(this,"o",td(B,27),td(W,27));var z=_.jm(B,7,_.l0);Et(this,"o",z,_.jm(W,7,_.l0));z=_.jm(B,29,_.l0);Et(this,"j",z,_.jm(W,29,_.l0));A$(this,"x",sm(B,9),sm(W,9));A$(this,"y",sm(B,10),sm(W,10));A$(this,"z",sm(B,11),sm(W,11));il(this,"g",_.fV(B,14),_.fV(W,14));A$(this,"e",sm(B,15),sm(W,15));Et(this,"f",_.Cp(B,16),_.Cp(W,16));il(this,"k",td(B,17),td(W,17));il(this,"u",td(B,18),!0);il(this,"ut",td(B,45),!0);il(this,"i",
td(B,22),!0);il(this,"a",td(B,21),td(W,21));il(this,"b",_.fV(B,23),_.fV(W,23));A$(this,"b",sm(B,38),sm(W,38));A$(this,"c",sm(B,39),sm(W,39),16,8);Et(this,"q",_.Cp(B,28),_.Cp(W,28));il(this,"fh",td(B,30),td(W,30));il(this,"fv",td(B,31),td(W,31));il(this,"fg",_.fV(B,34),_.fV(W,34));il(this,"ci",td(B,32),td(W,32));Et(this,"t",B.getToken(),W.getToken());Et(this,"nt0",_.Cp(B,36),_.Cp(W,36));il(this,"rw",_.fV(B,35),_.fV(W,35));il(this,"rwu",_.fV(B,41),_.fV(W,41));il(this,"rwa",_.fV(B,64),_.fV(W,64));il(this,
"nw",_.fV(B,48),_.fV(W,48));il(this,"rh",_.fV(B,49),_.fV(W,49));il(this,"no",_.fV(B,37),_.fV(W,37));il(this,"ns",td(B,40),td(W,40));A$(this,"k",sm(B,42),sm(W,42));A$(this,"p",sm(B,43),sm(W,43));A$(this,"l",sm(B,44),sm(W,44));A$(this,"v",sm(B,62),sm(W,62));il(this,"nu",td(B,46),td(W,46));il(this,"ft",td(B,50),td(W,50));il(this,"cc",td(B,51),td(W,51));il(this,"nd",td(B,53),td(W,53));il(this,"ip",td(B,54),td(W,54));il(this,"nc",td(B,55),td(W,55));A$(this,"a",sm(B,56),sm(W,56));il(this,"rj",td(B,57),
td(W,57));il(this,"rp",td(B,58),td(W,58));il(this,"rg",td(B,59),td(W,59));il(this,"pd",td(B,60),td(W,60));il(this,"pa",td(B,61),td(W,61));A$(this,"m",sm(B,63),sm(W,63));A$(this,"vb",Pa(B,68),Pa(W,68));A$(this,"vl",Pa(B,69),Pa(W,69));il(this,"lf",td(B,65),td(W,65));il(this,"mv",td(B,66),td(W,66));il(this,"id",td(B,70),td(W,70));A$(this,"ic",sm(B,71),!0);il(this,"pg",_.fV(B,72),_.fV(W,72));il(this,"mo",td(B,73),td(W,73));il(this,"al",td(B,74),td(W,74));A$(this,"iv",Pa(B,75),Pa(W,75));A$(this,"pi",ZQ(B,
76),ZQ(W,76));A$(this,"ya",ZQ(B,77),ZQ(W,77));A$(this,"ro",ZQ(B,78),ZQ(W,78));A$(this,"fo",ZQ(B,79),ZQ(W,79));il(this,"df",td(B,80),td(W,80));Et(this,"mm",_.Cp(B,81),_.Cp(W,81));il(this,"sg",td(B,82),td(W,82));il(this,"gd",td(B,83),td(W,83));il(this,"fm",td(B,84),td(W,84));A$(this,"ba",sm(B,85),sm(W,85));A$(this,"br",sm(B,86),sm(W,86));A$(this,"bc",B.getBackgroundColor(),W.getBackgroundColor(),16,8);A$(this,"pc",sm(B,88),sm(W,88),16,8);A$(this,"sc",sm(B,89),sm(W,89),16,8);il(this,"dv",td(B,90),td(W,
90));il(this,"md",td(B,91),td(W,91));A$(this,"cp",sm(B,92),sm(W,92));il(this,"sm",td(B,93),td(W,93));A$(this,"cv",sm(B,94),sm(W,94));il(this,"ng",td(B,95),td(W,95));il(this,"il",td(B,96),td(W,96));il(this,"lo",td(B,97),td(W,97));il(this,"vm",td(B,98),td(W,98));Et(this,"dc",_.Cp(B,99),_.Cp(W,99));il(this,"rf",td(B,100),td(W,100));Et(this,"vf",_.Cp(B,102),_.Cp(W,102));il(this,"ra",_.fV(B,103),_.fV(W,103));il(this,"ckm",td(B,104),td(W,104));il(this,"gm",td(B,105),td(W,105));il(this,"ngm",td(B,106),td(W,
106));A$(this,"em",sm(B,107),sm(W,107));il(this,"cr",td(B,108),td(W,108));A$(this,"sl",B.getStoryboardLevel(),W.getStoryboardLevel());A$(this,"sb",sm(B,110),sm(W,110));Et(this,"pt",_.Cp(B,111),_.Cp(W,111));Et(this,"gce",_.Cp(B,112),_.Cp(W,112));il(this,"tm",td(B,113),td(W,113));il(this,"ntm",td(B,114),td(W,114));A$(this,"mp",sm(B,115),sm(W,115));return this.JSC$19589_components_.join("-")};
var A$=function(W,B,z,G,Y,d){if(z!=null){var E=Y==void 0||Y!=10&&Y!=16?10:Y;z=Number(z).toString(E);Y=new mjO;Y.append(E==16?"0x":"");E=Y.append;d==void 0?d="":(d-=z.length,d=d<=0?"":(0,_.BUU)("0",d));E.call(Y,d);Y.append(z);I3i(W,B,Y.toString(),!!Number(G))}},il=function(W,B,z,G){z&&I3i(W,B,"",!!G)},Et=function(W,B,z,G){z&&I3i(W,B,String(z),!!Number(G))},I3i=function(W,B,z,G){G&&(B=B.charAt(0).toUpperCase()+B.substring(1));
W.JSC$19589_components_.push(B+z)};_.TC(Pe,Zo6);_.p=Pe.prototype;_.p.JSC$19591_setCrop=function(W){W&&T9(this);return Pe.superClass_.JSC$19591_setCrop.call(this,W)};
_.p.JSC$19591_setHeight=function(W){W=W==null||W<0?void 0:W;W!=null&&this.setSize();return Pe.superClass_.JSC$19591_setHeight.call(this,W)};
_.p.JSC$19591_setImageCrop=function(W){W&&T9(this);return Pe.superClass_.JSC$19591_setImageCrop.call(this,W)};
_.p.JSC$19591_setCircleCrop=function(W){W&&T9(this);return Pe.superClass_.JSC$19591_setCircleCrop.call(this,W)};
_.p.setSize=function(W){_.$t(W)&&(W=Math.max(W.width,W.height));W=W==null||W<0?void 0:W;W!=null&&(this.JSC$19591_setWidth(),this.JSC$19591_setHeight());return Pe.superClass_.setSize.call(this,W)};
_.p.JSC$19591_setSmartCrop=function(W){W&&T9(this);return Pe.superClass_.JSC$19591_setSmartCrop.call(this,W)};
_.p.JSC$19591_setSmartCropNoClip=function(W){W&&T9(this);return Pe.superClass_.JSC$19591_setSmartCropNoClip.call(this,W)};
_.p.JSC$19591_setSmartCropUseFace=function(W){W&&T9(this);return Pe.superClass_.JSC$19591_setSmartCropUseFace.call(this,W)};
_.p.setCenterCrop=function(W){W&&T9(this);return Pe.superClass_.setCenterCrop.call(this,W)};
_.p.JSC$19591_setPad=function(W){W&&T9(this);return Pe.superClass_.JSC$19591_setPad.call(this,W)};
_.p.JSC$19591_setWidth=function(W){W=W==null||W<0?void 0:W;W!=null&&this.setSize();return Pe.superClass_.JSC$19591_setWidth.call(this,W)};
var oy6=function(W){W.clearOptions();var B=W.JSC$19589_parsedOptions_,z=B.valueProto_;pP(!0,_.fV(z,3),_.fV(B.signatureFlagProto_,3))&&_.gH(z,3,!0);return W},T9=function(W){W.setCenterCrop();
W.JSC$19591_setCircleCrop();W.JSC$19591_setCrop();W.JSC$19591_setImageCrop();W.JSC$19591_setPad();W.JSC$19591_setSmartCrop();W.JSC$19591_setSmartCropNoClip();W.JSC$19591_setSmartCropUseFace()};
Pe.prototype.build=function(){var W=this.JSC$19589_parsedOptions_.valueProto_;td(W,18)||td(W,45)?W.getSize()||this.setSize(0):(W=this.JSC$19589_parsedOptions_.valueProto_,W.getSize()||W.getWidth()||W.getHeight()||(this.setSize(),this.JSC$19591_setHeight(),this.JSC$19591_setWidth(),T9(this)));return Pe.superClass_.build.call(this)};var hdi=/^[^\/]*\/\//,vi=function(W,B){B=B===void 0?!1:B;this.original_=W;this.originalPrefix_="";(W=this.original_.match(hdi))&&W[0]?(this.originalPrefix_=W[0],W=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):W="http://"+this.original_;this.uri_=_.Uk(W,!0);this.isFreeformUrl_=B;this.JSC$19595_valid_=!0;this.obfuscated_=!1},Hhb=function(W,B){W.JSC$19597_pathPrefix_=W.JSC$19597_pathPrefix_?W.JSC$19597_pathPrefix_+("/"+B):B},ci=function(W){if(W.JSC$19597_components_==
void 0){var B=W.uri_.getPath().substring(1);
W.JSC$19597_pathPrefix_=null;if(W.isFreeformUrl_){W.JSC$19597_components_=[];if((B.match(/=/g)||[]).length>1)return W.JSC$19595_valid_=!1,W.JSC$19597_components_;var z=B.indexOf("=");z!=-1?(W.JSC$19597_components_.push(B.substr(0,z)),W.JSC$19597_components_.push(B.substr(z+1))):W.JSC$19597_components_.push(B);return W.JSC$19597_components_}W.JSC$19597_components_=B.split("/");B=W.JSC$19597_components_.length;B>2&&W.JSC$19597_components_[0]=="u"&&(Hhb(W,W.JSC$19597_components_[0]+"/"+W.JSC$19597_components_[1]),
W.JSC$19597_components_.shift(),W.JSC$19597_components_.shift(),B-=2);if(B==0||B==4||B>7)return W.JSC$19595_valid_=!1,W.JSC$19597_components_;if(B==2)Hhb(W,W.JSC$19597_components_[0]);else if(W.JSC$19597_components_[0]=="image")Hhb(W,W.JSC$19597_components_[0]);else if(B==7||B==3)return W.JSC$19595_valid_=!1,W.JSC$19597_components_;if(B<=3){W.obfuscated_=!0;B==3&&(Hhb(W,W.JSC$19597_components_[1]),W.JSC$19597_components_.shift(),--B);--B;z=W.JSC$19597_components_[B];var G=z.indexOf("=");G!=-1&&(W.JSC$19597_components_[B]=
z.substr(0,G),W.JSC$19597_components_.push(z.substr(G+1)))}}return W.JSC$19597_components_};
vi.prototype.isValid=function(){ci(this);return this.JSC$19595_valid_};
vi.prototype.isObfuscated=function(){ci(this);return this.obfuscated_};
var FN9=function(W){ci(W);return W.isFreeformUrl_},wA=function(W){ci(W);
W.JSC$19597_pathPrefix_==void 0&&(W.JSC$19597_pathPrefix_=null);return W.JSC$19597_pathPrefix_},SW6=function(W){switch(ci(W).length){case 7:return!0;
case 6:return wA(W)==null;case 5:return!1;case 3:return!0;case 2:return wA(W)==null;case 1:return!1;default:return!1}},V$=function(W,B){if(FN9(W))a:{switch(B){case 7:B=0;
break;case 4:if(!SW6(W)){W=null;break a}B=1;break;default:W=null;break a}W=ci(W)[B]}else if(W.isObfuscated())a:{var z=wA(W)!=null?1:0;switch(B){case 6:B=z;break;case 4:if(!SW6(W)){W=null;break a}B=1+z;break;default:W=null;break a}W=ci(W)[B]}else a:{z=wA(W)!=null?1:0;switch(B){case 0:B=z;break;case 1:B=1+z;break;case 2:B=2+z;break;case 3:B=3+z;break;case 4:if(!SW6(W)){W=null;break a}B=4+z;break;case 5:B=SW6(W)?1:0;B=4+z+B;break;default:W=null;break a}W=ci(W)[B]}return W};
vi.prototype.getOptions=function(){this.options_==void 0&&(this.options_=V$(this,4));return this.options_};var l8O=function(){};
l8O.prototype.parse=function(W,B){return new rHK(W,B===void 0?!1:B)};
var rHK=function(W,B){vi.call(this,W,B===void 0?!1:B)};
_.C(rHK,vi);_.TC(Zx,Pe);var kSr;Zx.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Zx.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var W=Zx.superClass_.build.call(this),B=[];wA(this.parsedImageUrl_)!=null&&B.push(wA(this.parsedImageUrl_));var z=FN9(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var G=this.parsedImageUrl_;G.obfuscatedData_==void 0&&(G.obfuscatedData_=V$(G,6));B.push(G.obfuscatedData_+(W?"="+W:""))}else if(z){G=B.push;var Y=this.parsedImageUrl_;Y.freeformUrlPath_===void 0&&(Y.freeformUrlPath_=V$(Y,
7));G.call(B,Y.freeformUrlPath_);W&&B.push(W)}else G=B.push,Y=this.parsedImageUrl_,Y.obfuscatedGaiaId_==void 0&&(Y.obfuscatedGaiaId_=V$(Y,0)),G.call(B,Y.obfuscatedGaiaId_),G=B.push,Y=this.parsedImageUrl_,Y.photoId_==void 0&&(Y.photoId_=V$(Y,1)),G.call(B,Y.photoId_),G=B.push,Y=this.parsedImageUrl_,Y.imageVersion_==void 0&&(Y.imageVersion_=V$(Y,2)),G.call(B,Y.imageVersion_),G=B.push,Y=this.parsedImageUrl_,Y.signature_==void 0&&(Y.signature_=V$(Y,3)),G.call(B,Y.signature_),W&&B.push(W),W=B.push,G=this.parsedImageUrl_,
G.filename_==void 0&&(G.filename_=V$(G,5)),W.call(B,G.filename_);B=z?B.join("="):B.join("/");B=_.Uk(this.protocolPrefix_+this.JSC$19603_domain_+"/"+B+(this.JSC$19603_query_?"?"+this.JSC$19603_query_:"")).toString();B.startsWith("%3a//")&&(B=B.replace("%3a//","://"));return B};var bhi=_.ak(["viewBox"]),jx0=_.ak(["width"]),f3b=_.ak(["height"]),Ohi=_.ak(["fill"]),X4n=_.ak(["id"]),KNO=_.ak(["x"]),uuq=_.ak(["y"]);I8r.prototype.getLength=function(){return this.parsedData.length};
I8r.prototype.write=function(W){for(var B=0,z=this.parsedData.length;B<z;B++)W.put(this.parsedData[B],8)};
var jNr=function(W,B){var z=new I8r(B);W.dataList.push(z);z=W.errorCorrectLevel;var G=1,Y=encodeURI(B).toString().replace(/%[0-9a-fA-F]{2}/g,"a");B=Y.length+(Y.length!=B?3:0);Y=0;for(var d=J$.length;Y<=d;Y++){var E=0;switch(z){case 1:E=J$[Y][0];break;case 0:E=J$[Y][1];break;case 3:E=J$[Y][2];break;case 2:E=J$[Y][3]}if(B<=E)break;else G++}if(G>J$.length)throw Error("Jk");W.typeNumber=G;W.dataCache=null};
owr.prototype.isDark=function(W,B){if(W<0||this.moduleCount<=W||B<0||this.moduleCount<=B)throw Error("Bk`"+W+"`"+B);return this.modules[W][B]};
for(var f8j=function(W,B,z){W.moduleCount=W.typeNumber*4+17;W.modules=Array(W.moduleCount);for(var G=0;G<W.moduleCount;G++){W.modules[G]=Array(W.moduleCount);for(var Y=0;Y<W.moduleCount;Y++)W.modules[G][Y]=null}ed0(W,0,0);ed0(W,W.moduleCount-7,0);ed0(W,0,W.moduleCount-7);G=mzq[W.typeNumber-1];for(Y=0;Y<G.length;Y++)for(var d=0;d<G.length;d++){var E=G[Y],v=G[d];if(W.modules[E][v]==null)for(var c=-2;c<=2;c++)for(var J=-2;J<=2;J++)W.modules[E+c][v+J]=c==-2||c==2||J==-2||J==2||c==0&&J==0?!0:!1}for(G=
8;G<W.moduleCount-8;G++)W.modules[G][6]==null&&(W.modules[G][6]=G%2==0);for(G=8;G<W.moduleCount-8;G++)W.modules[6][G]==null&&(W.modules[6][G]=G%2==0);G=W.errorCorrectLevel<<3|z;for(Y=G<<10;gA(Y)-gA(1335)>=0;)Y^=1335<<gA(Y)-gA(1335);G=(G<<10|Y)^21522;for(Y=0;Y<15;Y++)d=!B&&(G>>Y&1)==1,Y<6?W.modules[Y][8]=d:Y<8?W.modules[Y+1][8]=d:W.modules[W.moduleCount-15+Y][8]=d;for(Y=0;Y<15;Y++)d=!B&&(G>>Y&1)==1,Y<8?W.modules[8][W.moduleCount-Y-1]=d:Y<9?W.modules[8][15-Y-1+1]=d:W.modules[8][15-Y-1]=d;W.modules[W.moduleCount-
8][8]=!B;if(W.typeNumber>=7){G=W.typeNumber;for(Y=G<<12;gA(Y)-gA(7973)>=0;)Y^=7973<<gA(Y)-gA(7973);G=G<<12|Y;for(Y=0;Y<18;Y++)d=!B&&(G>>Y&1)==1,W.modules[Math.floor(Y/3)][Y%3+W.moduleCount-8-3]=d;for(Y=0;Y<18;Y++)d=!B&&(G>>Y&1)==1,W.modules[Y%3+W.moduleCount-8-3][Math.floor(Y/3)]=d}if(W.dataCache==null){Y=W.typeNumber;d=W.dataList;B=W.errorCorrectLevel;G=xzi(Y,B);if(G==void 0)throw Error("Ik`"+Y+"`"+B);E=G.length/3;B=[];for(v=0;v<E;v++){c=G[v*3];J=G[v*3+1];for(var g=G[v*3+2],t=0;t<c;t++)B.push(new hRr(J,
g))}G=new Ho0;for(E=0;E<d.length;E++)v=d[E],G.put(v.mode,4),G.put(v.getLength(),Dzi(v.mode,Y)),v.write(G);for(E=Y=0;E<B.length;E++)Y+=B[E].dataCount;if(G.length>Y*8)throw Error("Ck`"+G.length+"`"+Y*8);for(G.length+4<=Y*8&&G.put(0,4);G.length%8!=0;)Qx1(G,!1);for(;!(G.length>=Y*8);){G.put(236,8);if(G.length>=Y*8)break;G.put(17,8)}d=Y=J=0;E=Array(B.length);v=Array(B.length);for(c=0;c<B.length;c++){t=B[c].dataCount;var P=B[c].totalCount-t;Y=Math.max(Y,t);d=Math.max(d,P);E[c]=Array(t);for(g=0;g<E[c].length;g++)E[c][g]=
255&G.buffer[g+J];J+=t;g=P;t=new rg([1],0);for(P=0;P<g;P++)t=t.multiply(new rg([1,yfO(P)],0));g=t;t=(new rg(E[c],g.getLength()-1)).mod(g);v[c]=Array(g.getLength()-1);for(g=0;g<v[c].length;g++)P=g+t.getLength()-v[c].length,v[c][g]=P>=0?t.get(P):0}for(g=G=0;g<B.length;g++)G+=B[g].totalCount;G=Array(G);for(g=J=0;g<Y;g++)for(c=0;c<B.length;c++)g<E[c].length&&(G[J++]=E[c][g]);for(g=0;g<d;g++)for(c=0;c<B.length;c++)g<v[c].length&&(G[J++]=v[c][g]);W.dataCache=G}B=W.dataCache;G=-1;Y=W.moduleCount-1;d=7;E=
0;for(v=W.moduleCount-1;v>0;v-=2)for(v==6&&v--;;){for(c=0;c<2;c++)W.modules[Y][v-c]==null&&(J=!1,E<B.length&&(J=(B[E]>>>d&1)==1),qWf(z,Y,v-c)&&(J=!J),W.modules[Y][v-c]=J,d--,d==-1&&(E++,d=7));Y+=G;if(Y<0||W.moduleCount<=Y){Y-=G;G=-G;break}}},ed0=function(W,B,z){for(var G=-1;G<=7;G++)if(!(B+G<=-1||W.moduleCount<=B+G))for(var Y=-1;Y<=7;Y++)z+Y<=-1||W.moduleCount<=z+Y||(W.modules[B+G][z+Y]=0<=G&&G<=6&&(Y==0||Y==6)||0<=Y&&Y<=6&&(G==0||G==6)||2<=G&&G<=4&&2<=Y&&Y<=4?!0:!1)},Ooj=function(W){for(var B=0,
z=0,G=0;G<8;G++){f8j(W,!0,G);
var Y=W;for(var d=Y.moduleCount,E=0,v=0;v<d;v++)for(var c=0;c<d;c++){for(var J=0,g=Y.isDark(v,c),t=-1;t<=1;t++)if(!(v+t<0||d<=v+t))for(var P=-1;P<=1;P++)c+P<0||d<=c+P||(t!=0||P!=0)&&g==Y.isDark(v+t,c+P)&&J++;J>5&&(E+=3+J-5)}for(v=0;v<d-1;v++)for(c=0;c<d-1;c++)if(J=0,Y.isDark(v,c)&&J++,Y.isDark(v+1,c)&&J++,Y.isDark(v,c+1)&&J++,Y.isDark(v+1,c+1)&&J++,J==0||J==4)E+=3;for(v=0;v<d;v++)for(c=0;c<d-6;c++)Y.isDark(v,c)&&!Y.isDark(v,c+1)&&Y.isDark(v,c+2)&&Y.isDark(v,c+3)&&Y.isDark(v,c+4)&&!Y.isDark(v,c+5)&&
Y.isDark(v,c+6)&&(E+=40);for(c=0;c<d;c++)for(v=0;v<d-6;v++)Y.isDark(v,c)&&!Y.isDark(v+1,c)&&Y.isDark(v+2,c)&&Y.isDark(v+3,c)&&Y.isDark(v+4,c)&&!Y.isDark(v+5,c)&&Y.isDark(v+6,c)&&(E+=40);for(c=J=0;c<d;c++)for(v=0;v<d;v++)Y.isDark(v,c)&&J++;Y=E+=Math.abs(100*J/d/d-50)/5*10;if(G==0||B>Y)B=Y,z=G}return z},mzq=[[],
[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]],gA=function(W){for(var B=0;W!=0;)B++,W>>>=1;return B},qWf=function(W,B,z){switch(W){case 0:return(B+z)%2==0;
case 1:return B%2==0;case 2:return z%3==0;case 3:return(B+z)%3==0;case 4:return(Math.floor(B/2)+Math.floor(z/3))%2==0;case 5:return B*z%2+B*z%3==0;case 6:return(B*z%2+B*z%3)%2==0;case 7:return(B*z%3+(B+z)%2)%2==0;default:throw Error("Dk`"+W);}},Dzi=function(W,B){if(1<=B&&B<10)switch(W){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ek`"+W);}else if(B<27)switch(W){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ek`"+W);}else if(B<41)switch(W){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ek`"+W);}else throw Error("Fk`"+B);},t$=function(W){if(W<1)throw Error("Gk`"+W);
return nyb[W]},yfO=function(W){for(;W<0;)W+=255;
for(;W>=256;)W-=255;return st[W]},st=Array(256),nyb=Array(256),NIr=0;NIr<8;NIr++)st[NIr]=1<<NIr;
for(var Pi=8;Pi<256;Pi++)st[Pi]=st[Pi-4]^st[Pi-5]^st[Pi-6]^st[Pi-8];for(var $zY=0;$zY<255;$zY++)nyb[st[$zY]]=$zY;rg.prototype.get=function(W){return this.num[W]};
rg.prototype.getLength=function(){return this.num.length};
rg.prototype.multiply=function(W){for(var B=Array(this.getLength()+W.getLength()-1),z=0;z<this.getLength();z++)for(var G=0;G<W.getLength();G++)B[z+G]^=yfO(t$(this.get(z))+t$(W.get(G)));return new rg(B,0)};
rg.prototype.mod=function(W){if(this.getLength()-W.getLength()<0)return this;for(var B=t$(this.get(0))-t$(W.get(0)),z=Array(this.getLength()),G=0;G<this.getLength();G++)z[G]=this.get(G);for(G=0;G<W.getLength();G++)z[G]^=yfO(t$(W.get(G))+B);return(new rg(z,0)).mod(W)};
var LNj=[[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]],xzi=function(W,B){switch(B){case 1:return LNj[(W-1)*4];case 0:return LNj[(W-1)*4+1];case 3:return LNj[(W-1)*4+2];case 2:return LNj[(W-1)*4+3]}};
Ho0.prototype.get=function(W){return(this.buffer[Math.floor(W/8)]>>>7-W%8&1)==1};
Ho0.prototype.put=function(W,B){for(var z=0;z<B;z++)Qx1(this,(W>>>B-z-1&1)==1)};
var Qx1=function(W,B){var z=Math.floor(W.length/8);W.buffer.length<=z&&W.buffer.push(0);B&&(W.buffer[z]|=128>>>W.length%8);W.length++},J$=[[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]],bo6=function(){var W=function(B,z){this.JSC$19623__el=B;this.JSC$19623__htOption=z};
W.prototype.draw=function(B){function z(g,t){g=document.createElementNS("http://www.w3.org/2000/svg",g);for(var P in t)t.hasOwnProperty(P)&&(P==="href"?_.WH0(g,t[P]):_.i7([_.w3(bhi),_.w3(jx0),_.w3(f3b),_.w3(Ohi),_.w3(X4n),_.w3(KNO),_.w3(uuq)],g,P,t[P]));return g}
var G=this.JSC$19623__htOption,Y=this.JSC$19623__el,d=B.moduleCount;this.clear();var E=z("svg",{viewBox:"0 0 "+String(d)+" "+String(d),width:"100%",height:"100%",fill:G.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});Y.appendChild(E);E.appendChild(z("rect",{fill:G.colorLight,width:"100%",height:"100%"}));E.appendChild(z("rect",{fill:G.colorDark,width:"1",height:"1",id:"template"}));for(var v=0;v<d;v++)for(var c=0;c<d;c++)if(B.isDark(v,c)){var J=z("use",{x:String(v),y:String(c),href:"#template"});
E.appendChild(J)}};
W.prototype.clear=function(){for(;this.JSC$19623__el.hasChildNodes();)this.JSC$19623__el.removeChild(this.JSC$19623__el.lastChild)};
return W}(),SRO=document.documentElement.tagName.toLowerCase()==="svg"?bo6:typeof CanvasRenderingContext2D!="undefined"?function(){var W=function(B,z){this._bIsPainted=!1;
Fs6();this.JSC$19623__htOption=z;this._elCanvas=document.createElement("canvas");this._elCanvas.width=z.width;this._elCanvas.height=z.height;B.appendChild(this._elCanvas);this.JSC$19623__el=B;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$19623__el.appendChild(this._elImage);this._bSupportDataURI=null};
W.prototype._onMakeImage=function(){var B=this._elCanvas.toDataURL("image/png");this._elImage.src=B;this._elImage.style.display="block";this._elCanvas.style.display="none"};
W.prototype._safeSetDataURI=function(B,z){var G=this;G._fFail=z;G._fSuccess=B;G._bSupportDataURI===null?(B=_.I0("IMG"),z=function(){G._bSupportDataURI=!1;G._fFail&&G._fFail.call(G)},B.onabort=z,B.onerror=z,B.onload=function(){G._bSupportDataURI=!0;
G._fSuccess&&G._fSuccess.call(G)},B.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):G._bSupportDataURI===!0&&G._fSuccess?G._fSuccess.call(G):G._bSupportDataURI===!1&&G._fFail&&G._fFail.call(G)};
W.prototype.draw=function(B){var z=this._oContext,G=this.JSC$19623__htOption,Y=B.moduleCount,d=G.width/Y,E=G.height/Y,v=Math.round(d),c=Math.round(E);this._elImage.style.display="none";this.clear();for(var J=0;J<Y;J++)for(var g=0;g<Y;g++){var t=B.isDark(J,g),P=g*d,Z=J*E;z.strokeStyle=t?G.colorDark:G.colorLight;z.lineWidth=1;z.fillStyle=t?G.colorDark:G.colorLight;z.fillRect(P,Z,d,E);z.strokeRect(Math.floor(P)+.5,Math.floor(Z)+.5,v,c);z.strokeRect(Math.ceil(P)-.5,Math.ceil(Z)-.5,v,c)}this._bIsPainted=
!0};
W.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
W.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
W.prototype.round=function(B){return B?Math.floor(B*1E3)/1E3:B};
return W}():function(){var W=function(B,z){this.JSC$19623__el=B;
this.JSC$19623__htOption=z};
W.prototype.draw=function(B){for(var z=this.JSC$19623__htOption,G=this.JSC$19623__el,Y=B.moduleCount,d=Math.floor(z.width/Y),E=Math.floor(z.height/Y),v=['<table style="border:0;border-collapse:collapse;">'],c=0;c<Y;c++){v.push("<tr>");for(var J=0;J<Y;J++)v.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+d+"px;height:"+E+"px;background-color:"+(B.isDark(c,J)?z.colorDark:z.colorLight)+';"></td>');v.push("</tr>")}v.push("</table>");B=v.join("");B=_.qFT(_.NUR,B);_.A6(G,B);
B=G.childNodes[0];Y=(z.width-B.offsetWidth)/2;d=(z.height-B.offsetHeight)/2;Y>0&&d>0&&(B.style.margin=d+"px "+Y+"px")};
W.prototype.clear=function(){this.JSC$19623__el.textContent=""};
return W}();
Xf0.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19626__android||this.JSC$19626__android>=3)&&this._oDrawing.makeImage()};
Xf0.prototype.clear=function(){this._oDrawing.clear()};
_.Yt.QRCode=Xf0;var Uz9={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Zz=function(){};
Zz.prototype.stringify=function(W){return _.Yt.JSON.stringify(W,void 0)};
Zz.prototype.parse=function(W){return _.Yt.JSON.parse(W,void 0)};var MY1=function(){_.bK.call(this,"z")};
_.TC(MY1,_.bK);var a3b=function(){_.bK.call(this,"y")};
_.TC(a3b,_.bK);var Rdq=null,Wf0=function(){return Rdq=Rdq||new _.Ka},B1Y=function(W){_.bK.call(this,"serverreachability",W)};
_.TC(B1Y,_.bK);var rA=function(W){var B=Wf0();B.dispatchEvent(new B1Y(B,W))},zx0=function(W,B){_.bK.call(this,"statevent",W);
this.stat=B};
_.TC(zx0,_.bK);var k5=function(W){var B=Wf0();B.dispatchEvent(new zx0(B,W))},Gkf=function(W,B,z,G){_.bK.call(this,"timingevent",W);
this.size=B;this.rtt=z;this.retries=G};
_.TC(Gkf,_.bK);var Y4j=function(W,B,z){var G=Wf0();G.dispatchEvent(new Gkf(G,W,B,z))},ll=function(W,B){if(typeof W!=="function")throw Error("Kk");
return _.Yt.setTimeout(function(){W()},B)};var CP=function(){this.redactEnabled_=!0};
CP.prototype.disableRedact=function(){this.redactEnabled_=!1};
var dpr=function(W,B,z,G,Y,d){W.info(function(){if(W.redactEnabled_)if(d){var E="";for(var v=d.split("&"),c=0;c<v.length;c++){var J=v[c].split("=");if(J.length>1){var g=J[0];J=J[1];var t=g.split("_");E=t.length>=2&&t[1]=="type"?E+(g+"="+J+"&"):E+(g+"=redacted&")}}}else E=null;else E=d;return"XMLHTTP REQ ("+G+") [attempt "+Y+"]: "+B+"\n"+z+"\n"+E})},pdb=function(W,B,z,G,Y,d,E){W.info(function(){return"XMLHTTP RESP ("+G+") [ attempt "+Y+"]: "+B+"\n"+z+"\n"+d+" "+E})},Io=function(W,B,z,G){W.info(function(){return"XMLHTTP TEXT ("+
B+"): "+A79(W,z)+(G?" "+G:"")})},irf=function(W,B){W.info(function(){return"TIMEOUT: "+B})};
CP.prototype.debug=function(){};
CP.prototype.info=function(){};
CP.prototype.warning=function(){};
var A79=function(W,B){if(!W.redactEnabled_)return B;if(!B)return null;try{var z=JSON.parse(B);if(z)for(var G=0;G<z.length;G++)if(Array.isArray(z[G])){var Y=z[G];if(!(Y.length<2)){var d=Y[1];if(Array.isArray(d)&&!(d.length<1)){var E=d[0];if(E!="noop"&&E!="stop"&&E!="close")for(var v=1;v<d.length;v++)d[v]=""}}}return(0,_.yy)(z)}catch(c){return W.debug("Exception parsing expected JS array - probably was not JS"),B}};var oo=function(W,B,z,G,Y){this.JSC$19648_channel_=W;this.JSC$19648_channelDebug_=B;this.sid_=z;this.JSC$19648_rid_=G;this.JSC$19648_retryId_=Y||1;this.JSC$19648_eventHandler_=new _.T5(this);this.timeout_=45E3;this.JSC$19648_extraHeaders_=null;this.JSC$19648_successful_=!1;this.JSC$19648_postData_=this.JSC$19648_requestUri_=this.JSC$19648_baseUri_=this.JSC$19648_type_=this.JSC$19648_requestStartTime_=this.JSC$19648_watchDogTimeoutTime_=this.JSC$19648_watchDogTimerId_=null;this.JSC$19648_pendingMessages_=
[];this.JSC$19648_xmlHttp_=null;this.JSC$19648_xmlHttpChunkStart_=0;this.JSC$19648_lastError_=this.JSC$19648_verb_=null;this.JSC$19648_lastStatusCode_=-1;this.JSC$19648_cancelled_=!1;this.JSC$19648_readyStateChangeThrottleMs_=0;this.JSC$19648_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new E06},E06=function(){this.JSC$19650_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},T1n=function(W,B){switch(W){case 0:return"Non-200 return code ("+B+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},v0i={},c7i={};
oo.prototype.setTimeout=function(W){this.timeout_=W};
var V3r=function(W,B,z){W.JSC$19648_type_=1;W.JSC$19648_baseUri_=_.l_(B.clone());W.JSC$19648_postData_=z;W.decodeChunks_=!0;wdi(W,null)},wdi=function(W,B){W.JSC$19648_requestStartTime_=Date.now();
J7f(W);W.JSC$19648_requestUri_=W.JSC$19648_baseUri_.clone();va(W.JSC$19648_requestUri_,"t",W.JSC$19648_retryId_);W.JSC$19648_xmlHttpChunkStart_=0;var z=W.JSC$19648_channel_.JSC$19667_supportsCrossDomainXhrs_;W.fetchResponseState_=new E06;W.JSC$19648_xmlHttp_=g06(W.JSC$19648_channel_,z?B:null,!W.JSC$19648_postData_);W.JSC$19648_readyStateChangeThrottleMs_>0&&(W.JSC$19648_readyStateChangeThrottle_=new _.an((0,_.jk)(W.JSC$19652_xmlHttpHandler_,W,W.JSC$19648_xmlHttp_),W.JSC$19648_readyStateChangeThrottleMs_));
W.JSC$19648_eventHandler_.listen(W.JSC$19648_xmlHttp_,"readystatechange",W.JSC$19652_readyStateChangeHandler_);B=W.JSC$19648_extraHeaders_?_.mP.clone(W.JSC$19648_extraHeaders_):{};W.JSC$19648_postData_?(W.JSC$19648_verb_||(W.JSC$19648_verb_="POST"),B["Content-Type"]="application/x-www-form-urlencoded",W.JSC$19648_xmlHttp_.send(W.JSC$19648_requestUri_,W.JSC$19648_verb_,W.JSC$19648_postData_,B)):(W.JSC$19648_verb_="GET",W.JSC$19648_xmlHttp_.send(W.JSC$19648_requestUri_,W.JSC$19648_verb_,null,B));rA(1);
dpr(W.JSC$19648_channelDebug_,W.JSC$19648_verb_,W.JSC$19648_requestUri_,W.JSC$19648_rid_,W.JSC$19648_retryId_,W.JSC$19648_postData_)};
oo.prototype.JSC$19652_readyStateChangeHandler_=function(W){W=W.target;var B=this.JSC$19648_readyStateChangeThrottle_;B&&_.na(W)==3?(this.JSC$19648_channelDebug_.debug("Throttling readystatechange."),B.fire()):this.JSC$19652_xmlHttpHandler_(W)};
oo.prototype.JSC$19652_xmlHttpHandler_=function(W){try{W==this.JSC$19648_xmlHttp_?t3j(this):this.JSC$19648_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(B){this.JSC$19648_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),s9j(this)}finally{}};
var t3j=function(W){var B=_.na(W.JSC$19648_xmlHttp_),z=W.JSC$19648_xmlHttp_.JSC$9797_lastErrorCode_,G=W.JSC$19648_xmlHttp_.getStatus();if(!(B<3||B==3&&!s9j(W))){W.JSC$19648_cancelled_||B!=4||z==7||(z==8||G<=0?rA(3):rA(2));Po6(W);var Y=W.JSC$19648_xmlHttp_.getStatus();W.JSC$19648_lastStatusCode_=Y;z=Zr0(W);s9j(W)||W.JSC$19648_channelDebug_.debug(function(){return"No response text for uri "+W.JSC$19648_requestUri_+" status "+Y});
W.JSC$19648_successful_=Y==200;pdb(W.JSC$19648_channelDebug_,W.JSC$19648_verb_,W.JSC$19648_requestUri_,W.JSC$19648_rid_,W.JSC$19648_retryId_,B,Y);if(W.JSC$19648_successful_){if(W.decodeInitialResponse_&&!W.initialResponseDecoded_)if(G=r76(W))Io(W.JSC$19648_channelDebug_,W.JSC$19648_rid_,G,"Initial handshake response via X-HTTP-Initial-Response"),W.initialResponseDecoded_=!0,kkb(W,G);else{W.JSC$19648_successful_=!1;W.JSC$19648_lastError_=3;k5(12);W.JSC$19648_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
W.JSC$19648_rid_+")");h$(W);Hi(W);return}W.decodeChunks_?lMf(W,B,z):(Io(W.JSC$19648_channelDebug_,W.JSC$19648_rid_,z,null),kkb(W,z));B==4&&h$(W);W.JSC$19648_successful_&&!W.JSC$19648_cancelled_&&(B==4?CoK(W.JSC$19648_channel_,W):(W.JSC$19648_successful_=!1,J7f(W)))}else iQY(W.JSC$19648_xmlHttp_),Y==400&&z.indexOf("Unknown SID")>0?(W.JSC$19648_lastError_=3,k5(12),W.JSC$19648_channelDebug_.warning("XMLHTTP Unknown SID ("+W.JSC$19648_rid_+")")):(W.JSC$19648_lastError_=0,k5(13),W.JSC$19648_channelDebug_.warning("XMLHTTP Bad status "+
Y+" ("+W.JSC$19648_rid_+")")),h$(W),Hi(W)}},r76=function(W){return W.JSC$19648_xmlHttp_&&(W=Tj(W.JSC$19648_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.TT(W)?W:null},Zr0=function(W){if(!IMY(W))return W.JSC$19648_xmlHttp_.getResponseText();
var B=W.JSC$19648_xmlHttp_.getResponse();if(B==="")return"";var z="",G=B.length,Y=_.na(W.JSC$19648_xmlHttp_)==4;if(!W.fetchResponseState_.JSC$19650_textDecoder){if(typeof TextDecoder==="undefined")return h$(W),Hi(W),"";W.fetchResponseState_.JSC$19650_textDecoder=new _.Yt.TextDecoder}for(var d=0;d<G;d++)W.fetchResponseState_.responseArrivedForFetch=!0,z+=W.fetchResponseState_.JSC$19650_textDecoder.decode(B[d],{stream:!(Y&&d==G-1)});B.length=0;W.fetchResponseState_.responseBuffer+=z;W.JSC$19648_xmlHttpChunkStart_=
0;return W.fetchResponseState_.responseBuffer},s9j=function(W){return W.JSC$19648_xmlHttp_?W.fetchResponseState_.responseArrivedForFetch?!0:!(!W.JSC$19648_xmlHttp_.getResponseText()&&!W.JSC$19648_xmlHttp_.getResponse()):!1},IMY=function(W){return W.JSC$19648_xmlHttp_?W.JSC$19648_verb_=="GET"&&W.JSC$19648_type_!=2&&W.JSC$19648_channel_.usesFetchStreams_:!1},lMf=function(W,B,z){for(var G=!0,Y;!W.JSC$19648_cancelled_&&W.JSC$19648_xmlHttpChunkStart_<z.length;)if(Y=o0K(W,z),Y==c7i){B==4&&(W.JSC$19648_lastError_=
4,k5(14),G=!1);
Io(W.JSC$19648_channelDebug_,W.JSC$19648_rid_,null,"[Incomplete Response]");break}else if(Y==v0i){W.JSC$19648_lastError_=4;k5(15);Io(W.JSC$19648_channelDebug_,W.JSC$19648_rid_,z,"[Invalid Chunk]");G=!1;break}else Io(W.JSC$19648_channelDebug_,W.JSC$19648_rid_,Y,null),kkb(W,Y);IMY(W)&&W.JSC$19648_xmlHttpChunkStart_!=0&&(W.fetchResponseState_.responseBuffer=W.fetchResponseState_.responseBuffer.slice(W.JSC$19648_xmlHttpChunkStart_),W.JSC$19648_xmlHttpChunkStart_=0);B!=4||z.length!=0||W.fetchResponseState_.responseArrivedForFetch||
(W.JSC$19648_lastError_=1,k5(16),G=!1);W.JSC$19648_successful_=W.JSC$19648_successful_&&G;G?z.length>0&&!W.firstByteReceived_&&(W.firstByteReceived_=!0,B=W.JSC$19648_channel_,B.JSC$19667_backChannelRequest_==W&&B.detectBufferingProxy_&&!B.bpDetectionDone_&&(B.JSC$19667_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+z.length),hxb(B),B.bpDetectionDone_=!0,k5(11))):(Io(W.JSC$19648_channelDebug_,W.JSC$19648_rid_,z,"[Invalid Chunked Response]"),h$(W),Hi(W))},o0K=function(W,B){var z=
W.JSC$19648_xmlHttpChunkStart_,G=B.indexOf("\n",z);
if(G==-1)return c7i;z=Number(B.substring(z,G));if(isNaN(z))return v0i;G+=1;if(G+z>B.length)return c7i;B=B.slice(G,G+z);W.JSC$19648_xmlHttpChunkStart_=G+z;return B};
oo.prototype.cancel=function(){this.JSC$19648_cancelled_=!0;h$(this)};
var J7f=function(W){W.JSC$19648_watchDogTimeoutTime_=Date.now()+W.timeout_;Hrr(W,W.timeout_)},Hrr=function(W,B){if(W.JSC$19648_watchDogTimerId_!=null)throw Error("Lk");
W.JSC$19648_watchDogTimerId_=ll((0,_.jk)(W.JSC$19652_onWatchDogTimeout_,W),B)},Po6=function(W){W.JSC$19648_watchDogTimerId_&&(_.Yt.clearTimeout(W.JSC$19648_watchDogTimerId_),W.JSC$19648_watchDogTimerId_=null)};
oo.prototype.JSC$19652_onWatchDogTimeout_=function(){this.JSC$19648_watchDogTimerId_=null;var W=Date.now();W-this.JSC$19648_watchDogTimeoutTime_>=0?(irf(this.JSC$19648_channelDebug_,this.JSC$19648_requestUri_),this.JSC$19648_type_!=2&&(rA(3),k5(17)),h$(this),this.JSC$19648_lastError_=2,Hi(this)):(this.JSC$19648_channelDebug_.warning("WatchDog timer called too early"),Hrr(this,this.JSC$19648_watchDogTimeoutTime_-W))};
var Hi=function(W){W.JSC$19648_channel_.state_==0||W.JSC$19648_cancelled_||CoK(W.JSC$19648_channel_,W)},h$=function(W){Po6(W);
_.AI(W.JSC$19648_readyStateChangeThrottle_);W.JSC$19648_readyStateChangeThrottle_=null;W.JSC$19648_eventHandler_.removeAll();if(W.JSC$19648_xmlHttp_){var B=W.JSC$19648_xmlHttp_;W.JSC$19648_xmlHttp_=null;B.abort();B.dispose()}};
oo.prototype.getLastError=function(){return this.JSC$19648_lastError_};
var kkb=function(W,B){try{var z=W.JSC$19648_channel_;if(z.state_!=0&&(z.JSC$19667_backChannelRequest_==W||Ffj(z.forwardChannelRequestPool_,W)))if(!W.initialResponseDecoded_&&Ffj(z.forwardChannelRequestPool_,W)&&z.state_==3){try{var G=z.wireCodec_.JSC$19662_parser_.parse(B)}catch(v){G=null}if(Array.isArray(G)&&G.length==3){B=G;if(B[0]==0)a:if(z.JSC$19667_channelDebug_.debug("Server claims our backchannel is missing."),z.JSC$19667_backChannelTimerId_)z.JSC$19667_channelDebug_.debug("But we are currently starting the request.");
else{if(z.JSC$19667_backChannelRequest_)if(z.JSC$19667_backChannelRequest_.JSC$19648_requestStartTime_+3E3<W.JSC$19648_requestStartTime_)S4j(z),br1(z);else break a;else z.JSC$19667_channelDebug_.warning("We do not have a BackChannel established");j9j(z);k5(18)}else{z.JSC$19667_lastPostResponseArrayId_=B[1];var Y=z.JSC$19667_lastPostResponseArrayId_-z.JSC$19667_lastArrayId_;if(0<Y){var d=B[2];z.JSC$19667_channelDebug_.debug(d+" bytes (in "+Y+" arrays) are outstanding on the BackChannel");d<37500&&
z.enableStreaming_&&z.JSC$19667_backChannelRetryCount_==0&&!z.JSC$19667_deadBackChannelTimerId_&&(z.JSC$19667_deadBackChannelTimerId_=ll((0,_.jk)(z.JSC$19669_onBackChannelDead_,z),6E3))}}if(fMi(z.forwardChannelRequestPool_)<=1&&z.forwardChannelFlushedCallback_){try{z.forwardChannelFlushedCallback_()}catch(v){}z.forwardChannelFlushedCallback_=void 0}}else z.JSC$19667_channelDebug_.debug("Bad POST response data returned"),Fv(z,11)}else if((W.initialResponseDecoded_||z.JSC$19667_backChannelRequest_==
W)&&S4j(z),!_.TT(B)){var E=z.wireCodec_.JSC$19662_parser_.parse(B);z.onInput_(E,W)}rA(4)}catch(v){}};var Or9=function(W,B){this.JSC$19655_mapId=W;this.map=B;this.context=null};var XdY=function(W){this.maxPoolSizeConfigured_=W||10;_.Yt.PerformanceNavigationTiming?(W=_.Yt.performance.getEntriesByType("navigation"),W=W.length>0&&(W[0].nextHopProtocol=="hq"||W[0].nextHopProtocol=="h2")):W=!!(_.Yt.chrome&&_.Yt.chrome.loadTimes&&_.Yt.chrome.loadTimes()&&_.Yt.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19658_maxSize_=W?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19658_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19658_request_=null;this.JSC$19658_pendingMessages_=
[]},Kf1=function(W){return W.JSC$19658_request_?!0:W.requestPool_?W.requestPool_.size>=W.JSC$19658_maxSize_:!1},fMi=function(W){return W.JSC$19658_request_?1:W.requestPool_?W.requestPool_.size:0},Ffj=function(W,B){return W.JSC$19658_request_?W.JSC$19658_request_==B:W.requestPool_?W.requestPool_.has(B):!1},uJi=function(W,B){W.requestPool_?W.requestPool_.add(B):W.JSC$19658_request_=B},ex9=function(W,B){W.JSC$19658_request_&&W.JSC$19658_request_==B?W.JSC$19658_request_=null:W.requestPool_&&W.requestPool_.has(B)&&
W.requestPool_.delete(B)};
XdY.prototype.cancel=function(){this.JSC$19658_pendingMessages_=mpr(this);if(this.JSC$19658_request_)this.JSC$19658_request_.cancel(),this.JSC$19658_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var W=_.A(this.requestPool_.values()),B=W.next();!B.done;B=W.next())B.value.cancel();this.requestPool_.clear()}};
var mpr=function(W){if(W.JSC$19658_request_!=null)return W.JSC$19658_pendingMessages_.concat(W.JSC$19658_request_.JSC$19648_pendingMessages_);if(W.requestPool_!=null&&W.requestPool_.size!==0){var B=W.JSC$19658_pendingMessages_;W=_.A(W.requestPool_.values());for(var z=W.next();!z.done;z=W.next())B=B.concat(z.value.JSC$19648_pendingMessages_);return B}return _.QR(W.JSC$19658_pendingMessages_)},xpb=function(W,B){W.JSC$19658_pendingMessages_=W.JSC$19658_pendingMessages_.concat(B)};var Dpq=function(W,B){var z=new CP;z.debug("TestLoadImage: loading "+W);if(_.Yt.Image){var G=new Image;G.onload=_.Ci(Ss,z,"TestLoadImage: loaded",!0,B,G);G.onerror=_.Ci(Ss,z,"TestLoadImage: error",!1,B,G);G.onabort=_.Ci(Ss,z,"TestLoadImage: abort",!1,B,G);G.ontimeout=_.Ci(Ss,z,"TestLoadImage: timeout",!1,B,G);_.Yt.setTimeout(function(){if(G.ontimeout)G.ontimeout()},1E4);
G.src=W}else B(!1)},Q9q=function(W,B){var z=new CP,G=new AbortController,Y=setTimeout(function(){G.abort();
Ss(z,"TestPingServer: timeout",!1,B)},1E4);
fetch(W,{signal:G.signal}).then(function(d){clearTimeout(Y);d.ok?Ss(z,"TestPingServer: ok",!0,B):Ss(z,"TestPingServer: server error",!1,B)}).catch(function(){clearTimeout(Y);
Ss(z,"TestPingServer: error",!1,B)})},Ss=function(W,B,z,G,Y){try{W.debug(B),Y&&(Y.onload=null,Y.onerror=null,Y.onabort=null,Y.ontimeout=null),G(z)}catch(d){}};var y7K=function(){this.JSC$19662_parser_=new Zz};var bl=function(W,B,z){return z&&z.internalChannelParams?z.internalChannelParams[W]||B:B},js=function(W){this.serverVersion_=0;
this.JSC$19667_outgoingMaps_=[];this.JSC$19667_channelDebug_=new CP;this.JSC$19667_hostPrefix_=this.JSC$19667_backChannelUri_=this.JSC$19667_forwardChannelUri_=this.JSC$19667_path_=this.JSC$19667_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19667_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19667_extraHeaders_=null;this.JSC$19667_nextMapId_=this.JSC$19667_nextRid_=0;this.JSC$19667_failFast_=bl("failFast",!1,W);this.enableStreaming_=this.JSC$19667_deadBackChannelTimerId_=
this.JSC$19667_backChannelTimerId_=this.JSC$19667_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19667_lastPostResponseArrayId_=this.JSC$19667_lastArrayId_=-1;this.JSC$19667_backChannelAttemptId_=this.JSC$19667_backChannelRetryCount_=this.JSC$19667_forwardChannelRetryCount_=0;this.JSC$19667_baseRetryDelayMs_=bl("baseRetryDelayMs",5E3,W);this.JSC$19667_retryDelaySeedMs_=bl("retryDelaySeedMs",1E4,W);this.JSC$19667_forwardChannelMaxRetries_=
bl("forwardChannelMaxRetries",2,W);this.JSC$19667_forwardChannelRequestTimeoutMs_=bl("forwardChannelRequestTimeoutMs",2E4,W);this.JSC$19667_xmlHttpFactory_=W&&W.xmlHttpFactory||void 0;this.networkTestUrl_=W&&W.networkTestUrl||void 0;this.usesFetchStreams_=W&&W.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19667_supportsCrossDomainXhrs_=W&&W.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new XdY(W&&W.concurrentRequestLimit);this.wireCodec_=new y7K;this.fastHandshake_=
W&&W.fastHandshake||!1;this.encodeInitMessageHeaders_=W&&W.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19667_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=W&&W.blockingHandshake||!1;W&&W.disableRedact&&this.JSC$19667_channelDebug_.disableRedact();W&&W.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
W&&W.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;W&&W.longPollingTimeout&&W.longPollingTimeout>0&&(this.longPollingTimeout_=W.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
js.prototype.JSC$19669_channelVersion_=8;js.prototype.state_=1;
js.prototype.connect=function(W,B,z,G){this.JSC$19667_channelDebug_.debug("connect()");k5(0);this.JSC$19667_path_=W;this.JSC$19667_extraParams_=B||{};z&&G!==void 0&&(this.JSC$19667_extraParams_.OSID=z,this.JSC$19667_extraParams_.OAID=G);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19667_channelDebug_.debug("connectChannel_()");W=q4i(this,null,this.JSC$19667_path_);this.JSC$19667_channelDebug_.debug("GetForwardChannelUri: "+W);this.JSC$19667_forwardChannelUri_=W;n09(this)};
js.prototype.disconnect=function(){this.JSC$19667_channelDebug_.debug("disconnect()");N1q(this);if(this.state_==3){var W=this.JSC$19667_nextRid_++,B=this.JSC$19667_forwardChannelUri_.clone();_.a0(B,"SID",this.sid_);_.a0(B,"RID",W);_.a0(B,"TYPE","terminate");fP(this,B);W=new oo(this,this.JSC$19667_channelDebug_,this.sid_,W);W.JSC$19648_type_=2;W.JSC$19648_baseUri_=_.l_(B.clone());B=!1;if(_.Yt.navigator&&_.Yt.navigator.sendBeacon)try{B=_.Yt.navigator.sendBeacon(W.JSC$19648_baseUri_.toString(),"")}catch(z){}!B&&
_.Yt.Image&&((new Image).src=W.JSC$19648_baseUri_,B=!0);B||(W.JSC$19648_xmlHttp_=g06(W.JSC$19648_channel_,null),W.JSC$19648_xmlHttp_.send(W.JSC$19648_baseUri_));W.JSC$19648_requestStartTime_=Date.now();J7f(W)}$p9(this)};
var br1=function(W){W.JSC$19667_backChannelRequest_&&(hxb(W),W.JSC$19667_backChannelRequest_.cancel(),W.JSC$19667_backChannelRequest_=null)},N1q=function(W){br1(W);
W.JSC$19667_backChannelTimerId_&&(_.Yt.clearTimeout(W.JSC$19667_backChannelTimerId_),W.JSC$19667_backChannelTimerId_=null);S4j(W);W.forwardChannelRequestPool_.cancel();W.JSC$19667_forwardChannelTimerId_&&(typeof W.JSC$19667_forwardChannelTimerId_==="number"&&_.Yt.clearTimeout(W.JSC$19667_forwardChannelTimerId_),W.JSC$19667_forwardChannelTimerId_=null)};
js.prototype.getState=function(){return this.state_};
var n09=function(W){Kf1(W.forwardChannelRequestPool_)||W.JSC$19667_forwardChannelTimerId_||(W.JSC$19667_forwardChannelTimerId_=!0,_.e1(W.JSC$19669_onStartForwardChannelTimer_,W),W.JSC$19667_forwardChannelRetryCount_=0)},Upn=function(W,B){if(fMi(W.forwardChannelRequestPool_)>=W.forwardChannelRequestPool_.JSC$19658_maxSize_-(W.JSC$19667_forwardChannelTimerId_?1:0))return!1;
if(W.JSC$19667_forwardChannelTimerId_)return W.JSC$19667_channelDebug_.debug("Use the retry request that is already scheduled."),W.JSC$19667_outgoingMaps_=B.JSC$19648_pendingMessages_.concat(W.JSC$19667_outgoingMaps_),!0;if(W.state_==1||W.state_==2||W.JSC$19667_forwardChannelRetryCount_>=(W.JSC$19667_failFast_?0:W.JSC$19667_forwardChannelMaxRetries_))return!1;W.JSC$19667_channelDebug_.debug("Going to retry POST");W.JSC$19667_forwardChannelTimerId_=ll((0,_.jk)(W.JSC$19669_onStartForwardChannelTimer_,
W,B),Lf9(W,W.JSC$19667_forwardChannelRetryCount_));W.JSC$19667_forwardChannelRetryCount_++;return!0};
js.prototype.JSC$19669_onStartForwardChannelTimer_=function(W){if(this.JSC$19667_forwardChannelTimerId_)if(this.JSC$19667_forwardChannelTimerId_=null,this.JSC$19667_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!W){this.JSC$19667_channelDebug_.debug("open_()");this.JSC$19667_nextRid_=Math.floor(Math.random()*1E5);W=this.JSC$19667_nextRid_++;var B=new oo(this,this.JSC$19667_channelDebug_,"",W),z=this.JSC$19667_extraHeaders_;this.initHeaders_&&(z?(z=_.mP.clone(z),_.mP.extend(z,this.initHeaders_)):
z=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(B.JSC$19648_extraHeaders_=z,z=null);var G;if(this.fastHandshake_)a:{for(var Y=G=0;Y<this.JSC$19667_outgoingMaps_.length;Y++){b:{var d=this.JSC$19667_outgoingMaps_[Y];if("__data__"in d.map&&(d=d.map.__data__,typeof d==="string")){d=d.length;break b}d=void 0}if(d===void 0)break;G+=d;if(G>4096){G=Y;break a}if(G===4096||Y===this.JSC$19667_outgoingMaps_.length-1){G=Y+1;break a}}G=1E3}else G=1E3;G=M39(this,B,G);
Y=this.JSC$19667_forwardChannelUri_.clone();_.a0(Y,"RID",W);_.a0(Y,"CVER",22);this.httpSessionIdParam_&&_.a0(Y,"X-HTTP-Session-Id",this.httpSessionIdParam_);fP(this,Y);z&&(this.encodeInitMessageHeaders_?G="headers="+_.N6(V1f(z))+"&"+G:this.httpHeadersOverwriteParam_&&JG9(Y,this.httpHeadersOverwriteParam_,z));uJi(this.forwardChannelRequestPool_,B);this.blockingHandshake_&&_.a0(Y,"TYPE","init");this.fastHandshake_?(_.a0(Y,"$req",G),_.a0(Y,"SID","null"),B.decodeInitialResponse_=!0,V3r(B,Y,null)):V3r(B,
Y,G);this.state_=2}}else this.state_==3&&(W?aMf(this,W):this.JSC$19667_outgoingMaps_.length==0?this.JSC$19667_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Kf1(this.forwardChannelRequestPool_)||(aMf(this),this.JSC$19667_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var aMf=function(W,B){var z;B?z=B.JSC$19648_rid_:z=W.JSC$19667_nextRid_++;var G=W.JSC$19667_forwardChannelUri_.clone();_.a0(G,"SID",W.sid_);_.a0(G,"RID",z);_.a0(G,"AID",W.JSC$19667_lastArrayId_);fP(W,G);W.httpHeadersOverwriteParam_&&W.JSC$19667_extraHeaders_&&JG9(G,W.httpHeadersOverwriteParam_,W.JSC$19667_extraHeaders_);z=new oo(W,W.JSC$19667_channelDebug_,W.sid_,z,W.JSC$19667_forwardChannelRetryCount_+1);W.httpHeadersOverwriteParam_===null&&(z.JSC$19648_extraHeaders_=W.JSC$19667_extraHeaders_);B&&
(W.JSC$19667_outgoingMaps_=B.JSC$19648_pendingMessages_.concat(W.JSC$19667_outgoingMaps_));B=M39(W,z,1E3);z.setTimeout(Math.round(W.JSC$19667_forwardChannelRequestTimeoutMs_*.5)+Math.round(W.JSC$19667_forwardChannelRequestTimeoutMs_*.5*Math.random()));uJi(W.forwardChannelRequestPool_,z);V3r(z,G,B)},fP=function(W,B){W.JSC$19667_extraParams_&&_.mP.forEach(W.JSC$19667_extraParams_,function(z,G){_.a0(B,G,z)});
W.handler_&&_.mP.forEach({},function(z,G){_.a0(B,G,z)})},M39=function(W,B,z){z=Math.min(W.JSC$19667_outgoingMaps_.length,z);
var G=W.handler_?(0,_.jk)(W.handler_.JSC$19673_badMapError,W.handler_,W):null;a:{for(var Y=W.JSC$19667_outgoingMaps_,d=-1;;){var E=["count="+z];d==-1?z>0?(d=Y[0].JSC$19655_mapId,E.push("ofs="+d)):d=0:E.push("ofs="+d);for(var v=!0,c=0;c<z;c++){var J=Y[c].JSC$19655_mapId,g=Y[c].map;J-=d;if(J<0)d=Math.max(0,Y[c].JSC$19655_mapId-100),v=!1;else try{J="req"+J+"_"||"";try{var t=g instanceof Map?g:Object.entries(g);for(var P=_.A(t),Z=P.next();!Z.done;Z=P.next()){var l=_.A(Z.value),b=l.next().value,O=l.next().value,
K=O;_.$t(O)&&(K=(0,_.yy)(O));E.push(J+b+"="+encodeURIComponent(K))}}catch(e){throw E.push(J+"type="+encodeURIComponent("_badmap")),e;}}catch(e){G&&G(g)}}if(v){t=E.join("&");break a}}t=void 0}W=W.JSC$19667_outgoingMaps_.splice(0,z);B.JSC$19648_pendingMessages_=W;return t},Rxr=function(W){W.JSC$19667_backChannelRequest_||W.JSC$19667_backChannelTimerId_||(W.JSC$19667_backChannelAttemptId_=1,_.e1(W.JSC$19669_onStartBackChannelTimer_,W),W.JSC$19667_backChannelRetryCount_=0)},j9j=function(W){if(W.JSC$19667_backChannelRequest_||
W.JSC$19667_backChannelTimerId_||W.JSC$19667_backChannelRetryCount_>=3)return!1;
W.JSC$19667_channelDebug_.debug("Going to retry GET");W.JSC$19667_backChannelAttemptId_++;W.JSC$19667_backChannelTimerId_=ll((0,_.jk)(W.JSC$19669_onStartBackChannelTimer_,W),Lf9(W,W.JSC$19667_backChannelRetryCount_));W.JSC$19667_backChannelRetryCount_++;return!0};
js.prototype.JSC$19669_onStartBackChannelTimer_=function(){this.JSC$19667_backChannelTimerId_=null;WGK(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19667_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19667_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19667_backChannelRequest_+" "+this.handshakeRttMs_);else{var W=4*this.handshakeRttMs_;this.JSC$19667_channelDebug_.info("BP detection timer enabled: "+W);this.bpDetectionTimerId_=ll((0,_.jk)(this.onBpDetectionTimer_,
this),W)}};
js.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19667_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19667_backChannelRequest_.JSC$19648_xmlHttp_!=null){var W=this.JSC$19667_backChannelRequest_.JSC$19648_xmlHttp_.getResponseText();W&&this.JSC$19667_channelDebug_.warning("Timer should have been cancelled : "+W)}this.JSC$19667_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;k5(10);br1(this);WGK(this)}else this.JSC$19667_channelDebug_.warning("Invalid operation.")};
var hxb=function(W){W.bpDetectionTimerId_!=null&&(W.JSC$19667_channelDebug_.debug("Cancel the BP detection timer."),_.Yt.clearTimeout(W.bpDetectionTimerId_),W.bpDetectionTimerId_=null)},WGK=function(W){W.JSC$19667_channelDebug_.debug("Creating new HttpRequest");
W.JSC$19667_backChannelRequest_=new oo(W,W.JSC$19667_channelDebug_,W.sid_,"rpc",W.JSC$19667_backChannelAttemptId_);W.httpHeadersOverwriteParam_===null&&(W.JSC$19667_backChannelRequest_.JSC$19648_extraHeaders_=W.JSC$19667_extraHeaders_);W.JSC$19667_backChannelRequest_.JSC$19648_readyStateChangeThrottleMs_=0;var B=W.JSC$19667_backChannelUri_.clone();_.a0(B,"RID","rpc");_.a0(B,"SID",W.sid_);_.a0(B,"AID",W.JSC$19667_lastArrayId_);_.a0(B,"CI",W.enableStreaming_?"0":"1");!W.enableStreaming_&&W.longPollingTimeout_&&
_.a0(B,"TO",W.longPollingTimeout_);_.a0(B,"TYPE","xmlhttp");fP(W,B);W.httpHeadersOverwriteParam_&&W.JSC$19667_extraHeaders_&&JG9(B,W.httpHeadersOverwriteParam_,W.JSC$19667_extraHeaders_);W.backChannelRequestTimeoutMs_&&W.JSC$19667_backChannelRequest_.setTimeout(W.backChannelRequestTimeoutMs_);var z=W.JSC$19667_backChannelRequest_,G=W.JSC$19667_hostPrefix_;z.JSC$19648_type_=1;z.JSC$19648_baseUri_=_.l_(B.clone());z.JSC$19648_postData_=null;z.decodeChunks_=!0;wdi(z,G);W.JSC$19667_channelDebug_.debug("New Request created")};
js.prototype.JSC$19669_onBackChannelDead_=function(){this.JSC$19667_deadBackChannelTimerId_!=null&&(this.JSC$19667_deadBackChannelTimerId_=null,br1(this),j9j(this),k5(19))};
var S4j=function(W){W.JSC$19667_deadBackChannelTimerId_!=null&&(_.Yt.clearTimeout(W.JSC$19667_deadBackChannelTimerId_),W.JSC$19667_deadBackChannelTimerId_=null)},CoK=function(W,B){W.JSC$19667_channelDebug_.debug("Request complete");
var z=null;if(W.JSC$19667_backChannelRequest_==B){S4j(W);hxb(W);W.JSC$19667_backChannelRequest_=null;var G=2}else if(Ffj(W.forwardChannelRequestPool_,B))z=B.JSC$19648_pendingMessages_,ex9(W.forwardChannelRequestPool_,B),G=1;else return;if(W.state_!=0)if(B.JSC$19648_successful_)G==1?(Y4j(B.JSC$19648_postData_?B.JSC$19648_postData_.length:0,Date.now()-B.JSC$19648_requestStartTime_,W.JSC$19667_forwardChannelRetryCount_),n09(W)):Rxr(W);else{var Y=B.JSC$19648_lastStatusCode_,d=B.getLastError();if(d==3||
d==0&&Y>0)W.JSC$19667_channelDebug_.debug("Not retrying due to error type"),Y>200&&(W.errorResponseStatusCode_=B.JSC$19648_lastStatusCode_);else{W.JSC$19667_channelDebug_.debug(function(){return"Maybe retrying, last error: "+T1n(d,W.errorResponseStatusCode_)});
if(G==1&&Upn(W,B)||G==2&&j9j(W))return;W.JSC$19667_channelDebug_.debug("Exceeded max number of retries")}z&&z.length>0&&xpb(W.forwardChannelRequestPool_,z);W.JSC$19667_channelDebug_.debug("Error: HTTP request failed");switch(d){case 1:Fv(W,5);break;case 4:Fv(W,10);break;case 3:Fv(W,6);break;default:Fv(W,2)}}},Lf9=function(W,B){var z=W.JSC$19667_baseRetryDelayMs_+Math.floor(Math.random()*W.JSC$19667_retryDelaySeedMs_);
W.isActive()||(W.JSC$19667_channelDebug_.debug("Inactive channel"),z*=2);return z*B};
js.prototype.onInput_=function(W,B){for(var z=0;z<W.length;z++){var G=W[z];this.JSC$19667_lastArrayId_=G[0];G=G[1];if(this.state_==2)if(G[0]=="c"){this.sid_=G[1];this.JSC$19667_hostPrefix_=G[2];var Y=G[3];Y!=null&&(this.JSC$19669_channelVersion_=Y,this.JSC$19667_channelDebug_.info("VER="+this.JSC$19669_channelVersion_));Y=G[4];Y!=null&&(this.serverVersion_=Y,this.JSC$19667_channelDebug_.info("SVER="+this.serverVersion_));G=G[5];G!=null&&typeof G==="number"&&G>0&&(this.backChannelRequestTimeoutMs_=
G*=1.5,this.JSC$19667_channelDebug_.info("backChannelRequestTimeoutMs_="+G));if(G=B.JSC$19648_xmlHttp_){var d=Tj(G,"X-Client-Wire-Protocol");d&&(Y=this.forwardChannelRequestPool_,!Y.requestPool_&&(_.cy(d,"spdy")||_.cy(d,"quic")||_.cy(d,"h2"))&&(Y.JSC$19658_maxSize_=Y.maxPoolSizeConfigured_,Y.requestPool_=new Set,Y.JSC$19658_request_&&(uJi(Y,Y.JSC$19658_request_),Y.JSC$19658_request_=null)));this.httpSessionIdParam_&&((G=Tj(G,"X-HTTP-Session-Id"))?(this.httpSessionId_=G,_.a0(this.JSC$19667_forwardChannelUri_,
this.httpSessionIdParam_,G)):this.JSC$19667_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19673_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-B.JSC$19648_requestStartTime_,this.JSC$19667_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));G=B;Y=q4i(this,this.JSC$19667_supportsCrossDomainXhrs_?this.JSC$19667_hostPrefix_:null,this.JSC$19667_path_);this.JSC$19667_channelDebug_.debug("GetBackChannelUri: "+
Y);this.JSC$19667_backChannelUri_=Y;G.initialResponseDecoded_?(this.JSC$19667_channelDebug_.debug("Upgrade the handshake request to a backchannel."),ex9(this.forwardChannelRequestPool_,G),Y=G,(d=this.backChannelRequestTimeoutMs_)&&Y.setTimeout(d),Y.JSC$19648_watchDogTimerId_&&(Po6(Y),J7f(Y)),this.JSC$19667_backChannelRequest_=G):Rxr(this);this.JSC$19667_outgoingMaps_.length>0&&n09(this)}else G[0]!="stop"&&G[0]!="close"||Fv(this,7);else this.state_==3&&(G[0]=="stop"||G[0]=="close"?G[0]=="stop"?Fv(this,
7):this.disconnect():G[0]!="noop"&&this.handler_&&this.handler_.JSC$19673_channelHandleArray(G),this.JSC$19667_backChannelRetryCount_=0)}};
var Fv=function(W,B){W.JSC$19667_channelDebug_.info("Error code "+B);if(B==2){var z=(0,_.jk)(W.testNetworkCallback_,W),G=W.networkTestUrl_,Y=!G;G=new _.B0(G||"//www.google.com/images/cleardot.gif");_.Yt.location&&_.Yt.location.protocol=="http"||_.VS(G,"https");_.l_(G);Y?Dpq(G.toString(),z):Q9q(G.toString(),z)}else k5(2);W.onError_(B)};
js.prototype.testNetworkCallback_=function(W){W?(this.JSC$19667_channelDebug_.info("Successfully pinged google.com"),k5(2)):(this.JSC$19667_channelDebug_.info("Failed to ping google.com"),k5(1))};
js.prototype.onError_=function(W){this.JSC$19667_channelDebug_.debug("HttpChannel: error - "+W);this.state_=0;this.handler_&&this.handler_.JSC$19673_channelError(W);$p9(this);N1q(this)};
var $p9=function(W){W.state_=0;W.nonAckedMapsAtChannelClose_=[];if(W.handler_){var B=mpr(W.forwardChannelRequestPool_);if(B.length!=0||W.JSC$19667_outgoingMaps_.length!=0)W.JSC$19667_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+B.length+", outgoing: "+W.JSC$19667_outgoingMaps_.length}),_.qR(W.nonAckedMapsAtChannelClose_,B),_.qR(W.nonAckedMapsAtChannelClose_,W.JSC$19667_outgoingMaps_),W.forwardChannelRequestPool_.JSC$19658_pendingMessages_.length=0,_.QR(W.JSC$19667_outgoingMaps_),
W.JSC$19667_outgoingMaps_.length=0;
W.handler_.JSC$19673_channelClosed()}},BEq=function(W){if(W.state_==0)return W.nonAckedMapsAtChannelClose_;
var B=[];_.qR(B,mpr(W.forwardChannelRequestPool_));_.qR(B,W.JSC$19667_outgoingMaps_);return B},q4i=function(W,B,z){var G=_.Uk(z);
G.JSC$10032_domain_!=""?(B&&_.J4(G,B+"."+G.JSC$10032_domain_),_.gd(G,G.JSC$10032_port_)):(G=_.Yt.location,G=dDq(G.protocol,B?B+"."+G.hostname:G.hostname,+G.port,z));B=W.httpSessionIdParam_;z=W.httpSessionId_;B&&z&&_.a0(G,B,z);_.a0(G,"VER",W.JSC$19669_channelVersion_);fP(W,G);return G},g06=function(W,B,z){if(B&&!W.JSC$19667_supportsCrossDomainXhrs_)throw Error("Mk");
B=W.usesFetchStreams_&&!W.JSC$19667_xmlHttpFactory_?new _.qI(new Om({streamBinaryChunks:z})):new _.qI(W.JSC$19667_xmlHttpFactory_);B.JSC$9797_withCredentials_=W.JSC$19667_supportsCrossDomainXhrs_;return B};
js.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var zgY=function(){};
_.p=zgY.prototype;_.p.JSC$19673_channelOpened=function(){};
_.p.JSC$19673_channelHandleArray=function(){};
_.p.JSC$19673_channelError=function(){};
_.p.JSC$19673_channelClosed=function(){};
_.p.isActive=function(){return!0};
_.p.JSC$19673_badMapError=function(){};var Gaf=function(){},Xv=function(W,B){_.Ka.call(this);
this.JSC$19676_channel_=new js(B);this.JSC$19676_url_=W;this.messageUrlParams_=B&&B.messageUrlParams||null;W=B&&B.messageHeaders||null;B&&B.clientProtocolHeaderRequired&&(W?_.mP.set(W,"X-Client-Protocol","webchannel"):W=_.mP.create("X-Client-Protocol","webchannel"));this.JSC$19676_channel_.JSC$19667_extraHeaders_=W;W=B&&B.initMessageHeaders||null;B&&B.messageContentType&&(W?_.mP.set(W,"X-WebChannel-Content-Type",B.messageContentType):W=_.mP.create("X-WebChannel-Content-Type",B.messageContentType));
B&&B.clientProfile&&(W?_.mP.set(W,"X-WebChannel-Client-Profile",B.clientProfile):W=_.mP.create("X-WebChannel-Client-Profile",B.clientProfile));this.JSC$19676_channel_.initHeaders_=W;(W=B&&B.httpHeadersOverwriteParam)&&!_.TT(W)&&(this.JSC$19676_channel_.httpHeadersOverwriteParam_=W);this.supportsCrossDomainXhr_=B&&B.supportsCrossDomainXhr||!1;this.sendRawJson_=B&&B.sendRawJson||!1;(B=B&&B.httpSessionIdParam)&&!_.TT(B)&&(this.JSC$19676_channel_.httpSessionIdParam_=B,_.mP.containsKey(this.messageUrlParams_,
B)&&_.mP.remove(this.messageUrlParams_,B));this.channelHandler_=new Ot(this)};
_.TC(Xv,_.Ka);Xv.prototype.open=function(){this.JSC$19676_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19676_channel_.JSC$19667_supportsCrossDomainXhrs_=!0);this.JSC$19676_channel_.connect(this.JSC$19676_url_,this.messageUrlParams_||void 0)};
Xv.prototype.close=function(){this.JSC$19676_channel_.disconnect()};
Xv.prototype.send=function(W){var B=this.JSC$19676_channel_;if(typeof W==="string"){var z={};z.__data__=W;W=z}else this.sendRawJson_&&(z={},z.__data__=(0,_.yy)(W),W=z);B.JSC$19667_outgoingMaps_.push(new Or9(B.JSC$19667_nextMapId_++,W));B.state_==3&&n09(B)};
Xv.prototype.disposeInternal=function(){this.JSC$19676_channel_.handler_=null;delete this.channelHandler_;this.JSC$19676_channel_.disconnect();delete this.JSC$19676_channel_;Xv.superClass_.disposeInternal.call(this)};
var Yzf=function(W){MY1.call(this);W.__headers__&&(this.headers=W.__headers__,this.statusCode=W.__status__,delete W.__headers__,delete W.__status__);var B=W.__sm__;B?this.data=(this.metadataKey=_.mP.getAnyKey(B))?_.mP.get(B,this.metadataKey):B:this.data=W};
_.TC(Yzf,MY1);var dm6=function(W){a3b.call(this);this.status=1;this.errorCode=W};
_.TC(dm6,a3b);var Ot=function(W){this.JSC$19683_channel_=W};
_.TC(Ot,zgY);Ot.prototype.JSC$19673_channelOpened=function(){this.JSC$19683_channel_.dispatchEvent("w")};
Ot.prototype.JSC$19673_channelHandleArray=function(W){this.JSC$19683_channel_.dispatchEvent(new Yzf(W))};
Ot.prototype.JSC$19673_channelError=function(W){this.JSC$19683_channel_.dispatchEvent(new dm6(W))};
Ot.prototype.JSC$19673_channelClosed=function(){this.JSC$19683_channel_.dispatchEvent("x")};
var ptY=function(W,B){this.transportChannel_=W;this.JSC$19686_channel_=B},ALj=function(W){return BEq(W.JSC$19686_channel_).map(function(B){var z=W.transportChannel_;
B=B.map;"__data__"in B?(B=B.__data__,z=z.sendRawJson_?(0,_.KPF)(B):B):z=B;return z})};
ptY.prototype.commit=function(W){this.JSC$19686_channel_.forwardChannelFlushedCallback_=W};var KP=function(W){i66.dispatchEvent(new EN9(i66,W))},i66=new _.Ka,EN9=function(W,B){_.bK.call(this,"statevent",W);
this.stat=B};
_.C(EN9,_.bK);var ul=function(W,B,z,G,Y){this.JSC$19691_channel_=W;this.JSC$19691_channelDebug_=B;this.sid_=z;this.JSC$19691_rid_=G;this.JSC$19691_retryId_=Y||1;this.timeout_=45E3;this.JSC$19691_eventHandler_=new _.T5(this);this.pollingTimer_=new _.Eh;this.pollingTimer_.setInterval(250)};
_.p=ul.prototype;_.p.JSC$19693_extraHeaders_=null;_.p.JSC$19693_successful_=!1;_.p.JSC$19693_watchDogTimerId_=null;_.p.JSC$19693_watchDogTimeoutTime_=null;_.p.JSC$19693_requestStartTime_=null;_.p.JSC$19693_type_=null;_.p.JSC$19693_baseUri_=null;_.p.JSC$19693_requestUri_=null;_.p.JSC$19693_postData_=null;_.p.JSC$19693_xmlHttp_=null;_.p.JSC$19693_xmlHttpChunkStart_=0;_.p.trident_=null;_.p.JSC$19693_verb_=null;_.p.JSC$19693_lastError_=null;_.p.JSC$19693_lastStatusCode_=-1;_.p.sendClose_=!0;
_.p.JSC$19693_cancelled_=!1;_.p.JSC$19693_readyStateChangeThrottleMs_=0;_.p.JSC$19693_readyStateChangeThrottle_=null;var TEY=function(W,B){switch(W){case 0:return"Non-200 return code ("+B+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},vNO={},cLf={};
ul.prototype.setTimeout=function(W){this.timeout_=W};
var V9K=function(W,B,z){W.JSC$19693_type_=1;W.JSC$19693_baseUri_=_.l_(B.clone());W.JSC$19693_postData_=z;W.decodeChunks_=!0;wtq(W,null)},JLb=function(W,B,z,G,Y){W.JSC$19693_type_=1;
W.JSC$19693_baseUri_=_.l_(B.clone());W.JSC$19693_postData_=null;W.decodeChunks_=z;Y&&(W.sendClose_=!1);wtq(W,G)},wtq=function(W,B){W.JSC$19693_requestStartTime_=Date.now();
gNi(W);W.JSC$19693_requestUri_=W.JSC$19693_baseUri_.clone();va(W.JSC$19693_requestUri_,"t",W.JSC$19691_retryId_);W.JSC$19693_xmlHttpChunkStart_=0;W.JSC$19693_xmlHttp_=W.JSC$19691_channel_.JSC$19700_createXhrIo(W.JSC$19691_channel_.JSC$19700_shouldUseSecondaryDomains()?B:null);W.JSC$19693_readyStateChangeThrottleMs_>0&&(W.JSC$19693_readyStateChangeThrottle_=new _.an((0,_.jk)(W.JSC$19693_xmlHttpHandler_,W,W.JSC$19693_xmlHttp_),W.JSC$19693_readyStateChangeThrottleMs_));W.JSC$19691_eventHandler_.listen(W.JSC$19693_xmlHttp_,
"readystatechange",W.JSC$19693_readyStateChangeHandler_);B=W.JSC$19693_extraHeaders_?_.mP.clone(W.JSC$19693_extraHeaders_):{};W.JSC$19693_postData_?(W.JSC$19693_verb_="POST",B["Content-Type"]="application/x-www-form-urlencoded",W.JSC$19693_xmlHttp_.send(W.JSC$19693_requestUri_,W.JSC$19693_verb_,W.JSC$19693_postData_,B)):(W.JSC$19693_verb_="GET",W.sendClose_&&!_.ts&&(B.Connection="close"),W.JSC$19693_xmlHttp_.send(W.JSC$19693_requestUri_,W.JSC$19693_verb_,null,B));W.JSC$19691_channel_.notifyServerReachabilityEvent(1);
B=W.JSC$19691_channelDebug_;var z=W.JSC$19693_postData_;if(z){var G="";z=z.split("&");for(var Y=0;Y<z.length;Y++){var d=z[Y].split("=");if(d.length>1){var E=d[0];d=d[1];var v=E.split("_");G=v.length>=2&&v[1]=="type"?G+(E+"="+d+"&"):G+(E+"=redacted&")}}}else G=null;B.info("XMLHTTP REQ ("+W.JSC$19691_rid_+") [attempt "+W.JSC$19691_retryId_+"]: "+W.JSC$19693_verb_+"\n"+W.JSC$19693_requestUri_+"\n"+G)};
ul.prototype.JSC$19693_readyStateChangeHandler_=function(W){W=W.target;var B=this.JSC$19693_readyStateChangeThrottle_;B&&_.na(W)==3?(this.JSC$19691_channelDebug_.debug("Throttling readystatechange."),B.fire()):this.JSC$19693_xmlHttpHandler_(W)};
ul.prototype.JSC$19693_xmlHttpHandler_=function(W){try{if(W==this.JSC$19693_xmlHttp_)a:{var B=_.na(this.JSC$19693_xmlHttp_),z=this.JSC$19693_xmlHttp_.JSC$9797_lastErrorCode_,G=this.JSC$19693_xmlHttp_.getStatus();if(_.ts&&!_.sL("420+")){if(B<4)break a}else if(B<3||B==3&&!this.JSC$19693_xmlHttp_.getResponseText())break a;this.JSC$19693_cancelled_||B!=4||z==7||(z==8||G<=0?this.JSC$19691_channel_.notifyServerReachabilityEvent(3):this.JSC$19691_channel_.notifyServerReachabilityEvent(2));t96(this);var Y=
this.JSC$19693_xmlHttp_.getStatus();this.JSC$19693_lastStatusCode_=Y;var d=this.JSC$19693_xmlHttp_.getResponseText();d||this.JSC$19691_channelDebug_.debug("No response text for uri "+this.JSC$19693_requestUri_+" status "+Y);this.JSC$19693_successful_=Y==200;this.JSC$19691_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19691_rid_+") [ attempt "+this.JSC$19691_retryId_+"]: "+this.JSC$19693_verb_+"\n"+this.JSC$19693_requestUri_+"\n"+B+" "+Y);if(this.JSC$19693_successful_){B==4&&es(this);if(this.decodeChunks_){for(W=
!0;!this.JSC$19693_cancelled_&&this.JSC$19693_xmlHttpChunkStart_<d.length;){var E=sZ9(this,d);if(E==cLf){B==4&&(this.JSC$19693_lastError_=4,KP(15),W=!1);mY(this.JSC$19691_channelDebug_,this.JSC$19691_rid_,null,"[Incomplete Response]");break}else if(E==vNO){this.JSC$19693_lastError_=4;KP(16);mY(this.JSC$19691_channelDebug_,this.JSC$19691_rid_,d,"[Invalid Chunk]");W=!1;break}else mY(this.JSC$19691_channelDebug_,this.JSC$19691_rid_,E,null),PJ1(this,E)}B==4&&d.length==0&&(this.JSC$19693_lastError_=1,
KP(17),W=!1);this.JSC$19693_successful_=this.JSC$19693_successful_&&W;W||(mY(this.JSC$19691_channelDebug_,this.JSC$19691_rid_,d,"[Invalid Chunked Response]"),es(this),Z6r(this))}else mY(this.JSC$19691_channelDebug_,this.JSC$19691_rid_,d,null),PJ1(this,d);this.JSC$19693_successful_&&!this.JSC$19693_cancelled_&&(B==4?this.JSC$19691_channel_.JSC$19700_onRequestComplete(this):(this.JSC$19693_successful_=!1,gNi(this)))}else Y==400&&d.indexOf("Unknown SID")>0?(this.JSC$19693_lastError_=3,KP(13),this.JSC$19691_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19691_rid_+")")):(this.JSC$19693_lastError_=0,KP(14),this.JSC$19691_channelDebug_.warning("XMLHTTP Bad status "+Y+" ("+this.JSC$19691_rid_+")")),es(this),Z6r(this)}else this.JSC$19691_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(v){this.JSC$19691_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var sZ9=function(W,B){var z=W.JSC$19693_xmlHttpChunkStart_,G=B.indexOf("\n",z);if(G==-1)return cLf;z=Number(B.substring(z,G));if(isNaN(z))return vNO;G+=1;if(G+z>B.length)return cLf;B=B.slice(G,G+z);W.JSC$19693_xmlHttpChunkStart_=G+z;return B};
ul.prototype.cancel=function(){this.JSC$19693_cancelled_=!0;es(this)};
var gNi=function(W){W.JSC$19693_watchDogTimeoutTime_=Date.now()+W.timeout_;rLb(W,W.timeout_)},rLb=function(W,B){if(W.JSC$19693_watchDogTimerId_!=null)throw Error("Lk");
W.JSC$19693_watchDogTimerId_=kJ((0,_.jk)(W.JSC$19693_onWatchDogTimeout_,W),B)},t96=function(W){W.JSC$19693_watchDogTimerId_&&(_.Yt.clearTimeout(W.JSC$19693_watchDogTimerId_),W.JSC$19693_watchDogTimerId_=null)};
ul.prototype.JSC$19693_onWatchDogTimeout_=function(){this.JSC$19693_watchDogTimerId_=null;var W=Date.now();W-this.JSC$19693_watchDogTimeoutTime_>=0?(this.JSC$19691_channelDebug_.info("TIMEOUT: "+this.JSC$19693_requestUri_),this.JSC$19693_type_!=2&&this.JSC$19691_channel_.notifyServerReachabilityEvent(3),es(this),this.JSC$19693_lastError_=2,KP(18),Z6r(this)):(this.JSC$19691_channelDebug_.warning("WatchDog timer called too early"),rLb(this,this.JSC$19693_watchDogTimeoutTime_-W))};
var Z6r=function(W){W.JSC$19691_channel_.JSC$19700_isClosed()||W.JSC$19693_cancelled_||W.JSC$19691_channel_.JSC$19700_onRequestComplete(W)},es=function(W){t96(W);
_.AI(W.JSC$19693_readyStateChangeThrottle_);W.JSC$19693_readyStateChangeThrottle_=null;W.pollingTimer_.stop();W.JSC$19691_eventHandler_.removeAll();if(W.JSC$19693_xmlHttp_){var B=W.JSC$19693_xmlHttp_;W.JSC$19693_xmlHttp_=null;B.abort();B.dispose()}W.trident_&&(W.trident_=null)};
ul.prototype.getLastError=function(){return this.JSC$19693_lastError_};
var PJ1=function(W,B){try{W.JSC$19691_channel_.JSC$19700_onRequestData(W,B),W.JSC$19691_channel_.notifyServerReachabilityEvent(4)}catch(z){}};var mY=function(W,B,z,G){var Y=W.info;a:if(z&&z!="y2f%"){try{var d=JSON.parse(z);if(d)for(var E=0;E<d.length;E++)if(Array.isArray(d[E])){var v=d[E];if(!(v.length<2)){var c=v[1];if(Array.isArray(c)&&!(c.length<1)){var J=c[0];if(J!="noop"&&J!="stop")for(var g=1;g<c.length;g++)c[g]=""}}}var t=(0,_.yy)(d);break a}catch(P){W.debug("Exception parsing expected JS array - probably was not JS");t=z;break a}t=void 0}else t=z;Y.call(W,"XMLHTTP TEXT ("+B+"): "+t+(G?" "+G:""))};
lW.prototype.debug=function(W){this.info(W)};
lW.prototype.info=function(){};
lW.prototype.warning=function(){};var kaK=function(W,B){this.JSC$19698_channel_=W;this.JSC$19698_channelDebug_=B;this.JSC$19698_parser_=new Zz};
_.p=kaK.prototype;_.p.JSC$19700_extraHeaders_=null;_.p.JSC$19700_request_=null;_.p.receivedIntermediateResult_=!1;_.p.JSC$19700_path_=null;_.p.state_=null;_.p.JSC$19700_lastStatusCode_=-1;_.p.JSC$19700_hostPrefix_=null;_.p.blockedPrefix_=null;
_.p.connect=function(W){this.JSC$19700_path_=W;W=lL6(this.JSC$19698_channel_,this.JSC$19700_path_);KP(3);Date.now();var B=this.JSC$19698_channel_.firstTestResults_;B!=null?(this.JSC$19700_hostPrefix_=B[0],(this.blockedPrefix_=B[1])?(this.state_=1,CJK(this)):(this.state_=2,ILf(this))):(va(W,"MODE","init"),this.JSC$19700_request_=new ul(this,this.JSC$19698_channelDebug_),this.JSC$19700_request_.JSC$19693_extraHeaders_=this.JSC$19700_extraHeaders_,JLb(this.JSC$19700_request_,W,!1,null,!0),this.state_=
0)};
var CJK=function(W){var B=oNf(W.JSC$19698_channel_,W.blockedPrefix_,"/mail/images/cleardot.gif");_.l_(B);eRn(B.toString(),5E3,(0,_.jk)(W.checkBlockedCallback_,W),3,2E3);W.notifyServerReachabilityEvent(1)};
kaK.prototype.checkBlockedCallback_=function(W){if(W)this.state_=2,ILf(this);else{KP(4);var B=this.JSC$19698_channel_;B.JSC$19701_channelDebug_.debug("Test Connection Blocked");B.JSC$19705_lastStatusCode_=B.connectionTest_.JSC$19700_lastStatusCode_;x5(B,9)}W&&this.notifyServerReachabilityEvent(2)};
var ILf=function(W){W.JSC$19698_channelDebug_.debug("TestConnection: starting stage 2");var B=W.JSC$19698_channel_.secondTestResults_;B!=null?(W.JSC$19698_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+B?"Buffered":"Unbuffered"),KP(5),B?(KP(11),Dz(W.JSC$19698_channel_,W,!1)):(KP(12),Dz(W.JSC$19698_channel_,W,!0))):(W.JSC$19700_request_=new ul(W,W.JSC$19698_channelDebug_),W.JSC$19700_request_.JSC$19693_extraHeaders_=W.JSC$19700_extraHeaders_,B=hg0(W.JSC$19698_channel_,
W.JSC$19700_hostPrefix_,W.JSC$19700_path_),KP(5),va(B,"TYPE","xmlhttp"),JLb(W.JSC$19700_request_,B,!1,W.JSC$19700_hostPrefix_,!1))};
_.p=kaK.prototype;_.p.JSC$19700_createXhrIo=function(W){return this.JSC$19698_channel_.JSC$19700_createXhrIo(W)};
_.p.abort=function(){this.JSC$19700_request_&&(this.JSC$19700_request_.cancel(),this.JSC$19700_request_=null);this.JSC$19700_lastStatusCode_=-1};
_.p.JSC$19700_isClosed=function(){return!1};
_.p.JSC$19700_onRequestData=function(W,B){this.JSC$19700_lastStatusCode_=W.JSC$19693_lastStatusCode_;if(this.state_==0)if(this.JSC$19698_channelDebug_.debug("TestConnection: Got data for stage 1"),B){try{var z=this.JSC$19698_parser_.parse(B)}catch(G){H6O(this.JSC$19698_channel_,this);return}this.JSC$19700_hostPrefix_=z[0];this.blockedPrefix_=z[1]}else this.JSC$19698_channelDebug_.debug("TestConnection: Null responseText"),H6O(this.JSC$19698_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(KP(7),Date.now()):B=="11111"?(KP(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19700_lastStatusCode_=200,this.JSC$19700_request_.cancel(),this.JSC$19698_channelDebug_.debug("Test connection succeeded; using streaming connection"),KP(12),Dz(this.JSC$19698_channel_,this,!0)):(KP(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.p.JSC$19700_onRequestComplete=function(){this.JSC$19700_lastStatusCode_=this.JSC$19700_request_.JSC$19693_lastStatusCode_;this.JSC$19700_request_.JSC$19693_successful_?this.state_==0?(this.JSC$19698_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,CJK(this)):(this.state_=2,ILf(this))):this.state_==2&&(this.JSC$19698_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19698_channelDebug_.debug("Test connection succeeded; using streaming connection"),
KP(12),Dz(this.JSC$19698_channel_,this,!0)):(this.JSC$19698_channelDebug_.debug("Test connection failed; not using streaming"),KP(11),Dz(this.JSC$19698_channel_,this,!1))):(this.JSC$19698_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?KP(9):this.state_==2&&KP(10),H6O(this.JSC$19698_channel_,this,this.JSC$19700_request_.getLastError()))};
_.p.JSC$19700_shouldUseSecondaryDomains=function(){return this.JSC$19698_channel_.JSC$19700_shouldUseSecondaryDomains()};
_.p.isActive=function(){return this.JSC$19698_channel_.isActive()};
_.p.notifyServerReachabilityEvent=function(W){this.JSC$19698_channel_.notifyServerReachabilityEvent(W)};var Q$=function(W,B,z){this.state_=1;this.JSC$19701_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19701_channelDebug_=new lW;this.JSC$19701_parser_=new Zz;this.firstTestResults_=W||null;this.secondTestResults_=B!=null?B:null;this.asyncTest_=z||!1},FG9=function(W,B){this.JSC$19703_mapId=W;
this.map=B;this.context=null};
_.p=Q$.prototype;_.p.JSC$19705_extraHeaders_=null;_.p.JSC$19705_extraParams_=null;_.p.forwardChannelRequest_=null;_.p.JSC$19705_backChannelRequest_=null;_.p.JSC$19705_path_=null;_.p.JSC$19705_forwardChannelUri_=null;_.p.JSC$19705_backChannelUri_=null;_.p.JSC$19705_hostPrefix_=null;_.p.JSC$19705_nextRid_=0;_.p.JSC$19705_nextMapId_=0;_.p.handler_=null;_.p.JSC$19705_forwardChannelTimerId_=null;_.p.JSC$19705_backChannelTimerId_=null;_.p.JSC$19705_deadBackChannelTimerId_=null;_.p.connectionTest_=null;
_.p.useChunked_=null;_.p.JSC$19705_lastArrayId_=-1;_.p.JSC$19705_lastPostResponseArrayId_=-1;_.p.JSC$19705_lastStatusCode_=-1;_.p.JSC$19705_forwardChannelRetryCount_=0;_.p.JSC$19705_backChannelRetryCount_=0;_.p.JSC$19705_channelVersion_=8;var Sz1={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},b6n=function(W,B,z,G){_.bK.call(this,"timingevent",W);this.size=B;this.rtt=z;this.retries=G};
_.TC(b6n,_.bK);var jZr=function(W){_.bK.call(this,"serverreachability",W)};
_.TC(jZr,_.bK);Q$.prototype.connect=function(W,B,z,G,Y){this.JSC$19701_channelDebug_.debug("connect()");KP(0);this.JSC$19705_path_=B;this.JSC$19705_extraParams_=z||{};G&&Y!==void 0&&(this.JSC$19705_extraParams_.OSID=G,this.JSC$19705_extraParams_.OAID=Y);this.asyncTest_?(kJ((0,_.jk)(this.connectTest_,this,W),100),fL1(this)):this.connectTest_(W)};
Q$.prototype.disconnect=function(){this.JSC$19701_channelDebug_.debug("disconnect()");Cub(this);if(this.state_==3){var W=this.JSC$19705_nextRid_++,B=this.JSC$19705_forwardChannelUri_.clone();_.a0(B,"SID",this.sid_);_.a0(B,"RID",W);_.a0(B,"TYPE","terminate");y$(this,B);W=new ul(this,this.JSC$19701_channelDebug_,this.sid_,W);W.JSC$19693_type_=2;W.JSC$19693_baseUri_=_.l_(B.clone());(new Image).src=W.JSC$19693_baseUri_.toString();W.JSC$19693_requestStartTime_=Date.now();gNi(W)}Isi(this)};
Q$.prototype.connectTest_=function(W){this.JSC$19701_channelDebug_.debug("connectTest_()");this.connectionTest_=new kaK(this,this.JSC$19701_channelDebug_);this.connectionTest_.JSC$19700_extraHeaders_=this.JSC$19705_extraHeaders_;this.connectionTest_.JSC$19698_parser_=this.JSC$19701_parser_;this.connectionTest_.connect(W)};
var fL1=function(W){W.JSC$19701_channelDebug_.debug("connectChannel_()");W.JSC$19705_ensureInState_(1,0);W.JSC$19705_forwardChannelUri_=lL6(W,W.JSC$19705_path_);oz1(W)},Cub=function(W){W.connectionTest_&&(W.connectionTest_.abort(),W.connectionTest_=null);
W.JSC$19705_backChannelRequest_&&(W.JSC$19705_backChannelRequest_.cancel(),W.JSC$19705_backChannelRequest_=null);W.JSC$19705_backChannelTimerId_&&(_.Yt.clearTimeout(W.JSC$19705_backChannelTimerId_),W.JSC$19705_backChannelTimerId_=null);hPr(W);W.forwardChannelRequest_&&(W.forwardChannelRequest_.cancel(),W.forwardChannelRequest_=null);W.JSC$19705_forwardChannelTimerId_&&(_.Yt.clearTimeout(W.JSC$19705_forwardChannelTimerId_),W.JSC$19705_forwardChannelTimerId_=null)},HLb=function(W,B){if(W.state_==0)throw Error("Ok");
W.JSC$19701_outgoingMaps_.length==1E3&&W.JSC$19701_parser_.stringify(B);W.JSC$19701_outgoingMaps_.push(new FG9(W.JSC$19705_nextMapId_++,B));W.state_!=2&&W.state_!=3||oz1(W)};
Q$.prototype.JSC$19700_isClosed=function(){return this.state_==0};
Q$.prototype.getState=function(){return this.state_};
var oz1=function(W){W.forwardChannelRequest_||W.JSC$19705_forwardChannelTimerId_||(W.JSC$19705_forwardChannelTimerId_=kJ((0,_.jk)(W.JSC$19705_onStartForwardChannelTimer_,W),0),W.JSC$19705_forwardChannelRetryCount_=0)};
Q$.prototype.JSC$19705_onStartForwardChannelTimer_=function(W){this.JSC$19705_forwardChannelTimerId_=null;Fm0(this,W)};
var Fm0=function(W,B){W.JSC$19701_channelDebug_.debug("startForwardChannel_");if(W.state_==1){if(!B){W.JSC$19701_channelDebug_.debug("open_()");W.JSC$19705_nextRid_=Math.floor(Math.random()*1E5);B=W.JSC$19705_nextRid_++;var z=new ul(W,W.JSC$19701_channelDebug_,"",B);z.JSC$19693_extraHeaders_=W.JSC$19705_extraHeaders_;var G=S6f(W),Y=W.JSC$19705_forwardChannelUri_.clone();_.a0(Y,"RID",B);_.a0(Y,"CVER","1");y$(W,Y);V9K(z,Y,G);W.forwardChannelRequest_=z;W.state_=2}}else W.state_==3&&(B?bL0(W,B):W.JSC$19701_outgoingMaps_.length==
0?W.JSC$19701_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):W.forwardChannelRequest_||(bL0(W),W.JSC$19701_channelDebug_.debug("startForwardChannel_ finished, sent request")))},bL0=function(W,B){if(B)if(W.JSC$19705_channelVersion_>6){W.JSC$19701_outgoingMaps_=W.pendingMaps_.concat(W.JSC$19701_outgoingMaps_);
W.pendingMaps_.length=0;var z=W.JSC$19705_nextRid_-1;B=S6f(W)}else z=B.JSC$19691_rid_,B=B.JSC$19693_postData_;else z=W.JSC$19705_nextRid_++,B=S6f(W);var G=W.JSC$19705_forwardChannelUri_.clone();_.a0(G,"SID",W.sid_);_.a0(G,"RID",z);_.a0(G,"AID",W.JSC$19705_lastArrayId_);y$(W,G);z=new ul(W,W.JSC$19701_channelDebug_,W.sid_,z,W.JSC$19705_forwardChannelRetryCount_+1);z.JSC$19693_extraHeaders_=W.JSC$19705_extraHeaders_;z.setTimeout(1E4+Math.round(1E4*Math.random()));W.forwardChannelRequest_=z;V9K(z,G,B)},
y$=function(W,B){W.handler_&&(W=W.handler_.JSC$19712_getAdditionalParams())&&_.mP.forEach(W,function(z,G){_.a0(B,G,z)})},S6f=function(W){var B=Math.min(W.JSC$19701_outgoingMaps_.length,1E3),z=["count="+B];
if(W.JSC$19705_channelVersion_>6&&B>0){var G=W.JSC$19701_outgoingMaps_[0].JSC$19703_mapId;z.push("ofs="+G)}else G=0;for(var Y={},d=0;d<B;Y={mapId$jscomp$3:void 0},d++){Y.mapId$jscomp$3=W.JSC$19701_outgoingMaps_[d].JSC$19703_mapId;var E=W.JSC$19701_outgoingMaps_[d].map;Y.mapId$jscomp$3=W.JSC$19705_channelVersion_<=6?d:Y.mapId$jscomp$3-G;try{_.mP.forEach(E,function(v){return function(c,J){z.push("req"+v.mapId$jscomp$3+"_"+J+"="+encodeURIComponent(c))}}(Y))}catch(v){z.push("req"+Y.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}W.pendingMaps_=W.pendingMaps_.concat(W.JSC$19701_outgoingMaps_.splice(0,B));
return z.join("&")},jT0=function(W){W.JSC$19705_backChannelRequest_||W.JSC$19705_backChannelTimerId_||(W.JSC$19705_backChannelAttemptId_=1,W.JSC$19705_backChannelTimerId_=kJ((0,_.jk)(W.JSC$19705_onStartBackChannelTimer_,W),0),W.JSC$19705_backChannelRetryCount_=0)},OLO=function(W){if(W.JSC$19705_backChannelRequest_||W.JSC$19705_backChannelTimerId_||W.JSC$19705_backChannelRetryCount_>=3)return!1;
W.JSC$19701_channelDebug_.debug("Going to retry GET");W.JSC$19705_backChannelAttemptId_++;W.JSC$19705_backChannelTimerId_=kJ((0,_.jk)(W.JSC$19705_onStartBackChannelTimer_,W),fsb(W,W.JSC$19705_backChannelRetryCount_));W.JSC$19705_backChannelRetryCount_++;return!0};
Q$.prototype.JSC$19705_onStartBackChannelTimer_=function(){this.JSC$19705_backChannelTimerId_=null;this.JSC$19701_channelDebug_.debug("Creating new HttpRequest");this.JSC$19705_backChannelRequest_=new ul(this,this.JSC$19701_channelDebug_,this.sid_,"rpc",this.JSC$19705_backChannelAttemptId_);this.JSC$19705_backChannelRequest_.JSC$19693_extraHeaders_=this.JSC$19705_extraHeaders_;this.JSC$19705_backChannelRequest_.JSC$19693_readyStateChangeThrottleMs_=0;var W=this.JSC$19705_backChannelUri_.clone();_.a0(W,
"RID","rpc");_.a0(W,"SID",this.sid_);_.a0(W,"CI",this.useChunked_?"0":"1");_.a0(W,"AID",this.JSC$19705_lastArrayId_);y$(this,W);_.a0(W,"TYPE","xmlhttp");JLb(this.JSC$19705_backChannelRequest_,W,!0,this.JSC$19705_hostPrefix_,!1);this.JSC$19701_channelDebug_.debug("New Request created")};
var Dz=function(W,B,z){W.JSC$19701_channelDebug_.debug("Test Connection Finished");W.useChunked_=W.secondTestResults_==null?z:!W.secondTestResults_;W.JSC$19705_lastStatusCode_=B.JSC$19700_lastStatusCode_;W.asyncTest_||fL1(W)},H6O=function(W,B){W.JSC$19701_channelDebug_.debug("Test Connection Failed");
W.JSC$19705_lastStatusCode_=B.JSC$19700_lastStatusCode_;x5(W,2)};
Q$.prototype.JSC$19700_onRequestData=function(W,B){if(this.state_!=0&&(this.JSC$19705_backChannelRequest_==W||this.forwardChannelRequest_==W))if(this.JSC$19705_lastStatusCode_=W.JSC$19693_lastStatusCode_,this.forwardChannelRequest_==W&&this.state_==3)if(this.JSC$19705_channelVersion_>7){try{var z=this.JSC$19701_parser_.parse(B)}catch(G){z=null}if(Array.isArray(z)&&z.length==3)if(B=z,B[0]==0)a:if(this.JSC$19701_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19705_backChannelTimerId_)this.JSC$19701_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19705_backChannelRequest_)if(this.JSC$19705_backChannelRequest_.JSC$19693_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19693_requestStartTime_)hPr(this),this.JSC$19705_backChannelRequest_.cancel(),this.JSC$19705_backChannelRequest_=null;else break a;else this.JSC$19701_channelDebug_.warning("We do not have a BackChannel established");OLO(this);KP(19)}else this.JSC$19705_lastPostResponseArrayId_=B[1],W=this.JSC$19705_lastPostResponseArrayId_-this.JSC$19705_lastArrayId_,0<
W&&(B=B[2],this.JSC$19701_channelDebug_.debug(B+" bytes (in "+W+" arrays) are outstanding on the BackChannel"),B<37500&&this.useChunked_&&this.JSC$19705_backChannelRetryCount_==0&&!this.JSC$19705_deadBackChannelTimerId_&&(this.JSC$19705_deadBackChannelTimerId_=kJ((0,_.jk)(this.JSC$19705_onBackChannelDead_,this),6E3)));else this.JSC$19701_channelDebug_.debug("Bad POST response data returned"),x5(this,11)}else B!="y2f%"&&(this.JSC$19701_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
x5(this,11));else this.JSC$19705_backChannelRequest_==W&&hPr(this),_.TT(B)||(W=this.JSC$19701_parser_.parse(B),this.onInput_(W))};
Q$.prototype.JSC$19705_onBackChannelDead_=function(){this.JSC$19705_deadBackChannelTimerId_!=null&&(this.JSC$19705_deadBackChannelTimerId_=null,this.JSC$19705_backChannelRequest_.cancel(),this.JSC$19705_backChannelRequest_=null,OLO(this),KP(20))};
var hPr=function(W){W.JSC$19705_deadBackChannelTimerId_!=null&&(_.Yt.clearTimeout(W.JSC$19705_deadBackChannelTimerId_),W.JSC$19705_deadBackChannelTimerId_=null)};
Q$.prototype.JSC$19700_onRequestComplete=function(W){this.JSC$19701_channelDebug_.debug("Request complete");if(this.JSC$19705_backChannelRequest_==W){hPr(this);this.JSC$19705_backChannelRequest_=null;var B=2}else if(this.forwardChannelRequest_==W)this.forwardChannelRequest_=null,B=1;else return;this.JSC$19705_lastStatusCode_=W.JSC$19693_lastStatusCode_;if(this.state_!=0)if(W.JSC$19693_successful_)if(B==1){B=W.JSC$19693_postData_?W.JSC$19693_postData_.length:0;W=Date.now()-W.JSC$19693_requestStartTime_;
var z=i66;z.dispatchEvent(new b6n(z,B,W,this.JSC$19705_forwardChannelRetryCount_));oz1(this);this.handler_&&this.handler_.JSC$19712_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else jT0(this);else{z=W.getLastError();if(z==3||z==7||z==0&&this.JSC$19705_lastStatusCode_>0)this.JSC$19701_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19701_channelDebug_.debug("Maybe retrying, last error: "+TEY(z,this.JSC$19705_lastStatusCode_));var G;if(G=B==1)this.forwardChannelRequest_||
this.JSC$19705_forwardChannelTimerId_||this.state_==1||this.JSC$19705_forwardChannelRetryCount_>=2?G=!1:(this.JSC$19701_channelDebug_.debug("Going to retry POST"),this.JSC$19705_forwardChannelTimerId_=kJ((0,_.jk)(this.JSC$19705_onStartForwardChannelTimer_,this,W),fsb(this,this.JSC$19705_forwardChannelRetryCount_)),this.JSC$19705_forwardChannelRetryCount_++,G=!0);if(G||B==2&&OLO(this))return;this.JSC$19701_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19701_channelDebug_.debug("Error: HTTP request failed");
switch(z){case 1:x5(this,5);break;case 4:x5(this,10);break;case 3:x5(this,6);break;case 7:x5(this,12);break;default:x5(this,2)}}};
var fsb=function(W,B){var z=5E3+Math.floor(Math.random()*1E4);W.isActive()||(W.JSC$19701_channelDebug_.debug("Inactive channel"),z*=2);return z*B};
Q$.prototype.onInput_=function(W){for(var B=0;B<W.length;B++){var z=W[B];this.JSC$19705_lastArrayId_=z[0];z=z[1];this.state_==2?z[0]=="c"?(this.sid_=z[1],this.JSC$19705_hostPrefix_=z[2],z=z[3],z!=null?this.JSC$19705_channelVersion_=z:this.JSC$19705_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19712_channelOpened(),this.JSC$19705_backChannelUri_=hg0(this,this.JSC$19705_hostPrefix_,this.JSC$19705_path_),jT0(this)):z[0]=="stop"&&x5(this,7):this.state_==3&&(z[0]=="stop"?x5(this,7):
z[0]!="noop"&&this.handler_&&this.handler_.JSC$19712_channelHandleArray(z),this.JSC$19705_backChannelRetryCount_=0)}};
Q$.prototype.JSC$19705_ensureInState_=function(W){if(!_.xt(arguments,this.state_))throw Error("Pk`"+this.state_);};
var x5=function(W,B){W.JSC$19701_channelDebug_.info("Error code "+B);if(B==2||B==9){var z=null;W.handler_&&(z=null);var G=(0,_.jk)(W.testGoogleComCallback_,W);z||(z=new _.B0("//www.google.com/images/cleardot.gif"),_.l_(z));u4q(z.toString(),1E4,G)}else KP(2);W.onError_(B)};
Q$.prototype.testGoogleComCallback_=function(W){W?(this.JSC$19701_channelDebug_.info("Successfully pinged google.com"),KP(2)):(this.JSC$19701_channelDebug_.info("Failed to ping google.com"),KP(1),this.onError_(8))};
Q$.prototype.onError_=function(W){this.JSC$19701_channelDebug_.debug("HttpChannel: error - "+W);this.state_=0;this.handler_&&this.handler_.JSC$19712_channelError(W);Isi(this);Cub(this)};
var Isi=function(W){W.state_=0;W.JSC$19705_lastStatusCode_=-1;if(W.handler_)if(W.pendingMaps_.length==0&&W.JSC$19701_outgoingMaps_.length==0)W.handler_.JSC$19712_channelClosed();else{W.JSC$19701_channelDebug_.debug("Number of undelivered maps, pending: "+W.pendingMaps_.length+", outgoing: "+W.JSC$19701_outgoingMaps_.length);var B=_.QR(W.pendingMaps_),z=_.QR(W.JSC$19701_outgoingMaps_);W.pendingMaps_.length=0;W.JSC$19701_outgoingMaps_.length=0;W.handler_.JSC$19712_channelClosed(B,z)}},lL6=function(W,
B){B=oNf(W,null,B);
W.JSC$19701_channelDebug_.debug("GetForwardChannelUri: "+B);return B},hg0=function(W,B,z){B=oNf(W,W.JSC$19700_shouldUseSecondaryDomains()?B:null,z);
W.JSC$19701_channelDebug_.debug("GetBackChannelUri: "+B);return B},oNf=function(W,B,z){var G=_.Uk(z);
if(G.JSC$10032_domain_!="")B&&_.J4(G,B+"."+G.JSC$10032_domain_),_.gd(G,G.JSC$10032_port_);else{var Y=window.location;G=dDq(Y.protocol,B?B+"."+Y.hostname:Y.hostname,+Y.port,z)}W.JSC$19705_extraParams_&&_.mP.forEach(W.JSC$19705_extraParams_,function(d,E){_.a0(G,E,d)});
_.a0(G,"VER",W.JSC$19705_channelVersion_);y$(W,G);return G};
Q$.prototype.JSC$19700_createXhrIo=function(W){if(W)throw Error("Mk");W=new _.qI;W.JSC$9797_withCredentials_=!1;return W};
Q$.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Q$.prototype.notifyServerReachabilityEvent=function(W){var B=i66;B.dispatchEvent(new jZr(B,W))};
Q$.prototype.JSC$19700_shouldUseSecondaryDomains=function(){return!1};
new vii;var X70=function(){};
_.p=X70.prototype;_.p.JSC$19712_channelOpened=function(){};
_.p.JSC$19712_channelHandleArray=function(){};
_.p.JSC$19712_channelSuccess=function(){};
_.p.JSC$19712_channelError=function(){};
_.p.JSC$19712_channelClosed=function(){};
_.p.JSC$19712_getAdditionalParams=function(){return{}};
_.p.isActive=function(){return!0};var Kmi=function(W){W.front_.length===0&&(W.front_=W.back_,W.front_.reverse(),W.back_=[])};
_.p=xJq.prototype;_.p.enqueue=function(W){this.back_.push(W)};
_.p.peek=function(){Kmi(this);return _.fu(this.front_)};
_.p.getCount=function(){return this.front_.length+this.back_.length};
_.p.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.p.clear=function(){this.front_=[];this.back_=[]};
_.p.contains=function(W){return _.xt(this.front_,W)||_.xt(this.back_,W)};
_.p.remove=function(W){var B=this.front_;var z=Array.prototype.lastIndexOf.call(B,W,B.length-1);z>=0?(_.lvX(B,z),B=!0):B=!1;return B||_.Dv(this.back_,W)};
_.p.getValues=function(){for(var W=[],B=this.front_.length-1;B>=0;--B)W.push(this.front_[B]);B=this.back_.length;for(var z=0;z<B;++z)W.push(this.back_[z]);return W};var qc=function(W){this.JSC$19716_map_=new _.FJ;this.size=0;W&&this.addAll(W)},u$i=function(W){var B=typeof W;
return B=="object"&&W||B=="function"?"o"+_.Lu(W):B.charAt(0)+W};
_.p=qc.prototype;_.p.getCount=function(){return this.JSC$19716_map_.size};
_.p.add=function(W){this.JSC$19716_map_.set(u$i(W),W);this.size=this.JSC$19716_map_.size};
_.p.addAll=function(W){W=_.wd(W);for(var B=W.length,z=0;z<B;z++)this.add(W[z]);this.size=this.JSC$19716_map_.size};
_.p.removeAll=function(W){W=_.wd(W);for(var B=W.length,z=0;z<B;z++)this.remove(W[z]);this.size=this.JSC$19716_map_.size};
_.p.delete=function(W){W=this.JSC$19716_map_.remove(u$i(W));this.size=this.JSC$19716_map_.size;return W};
_.p.remove=function(W){return this.delete(W)};
_.p.clear=function(){this.JSC$19716_map_.clear();this.size=0};
_.p.isEmpty=function(){return this.JSC$19716_map_.size===0};
_.p.has=function(W){return this.JSC$19716_map_.containsKey(u$i(W))};
_.p.contains=function(W){return this.JSC$19716_map_.containsKey(u$i(W))};
_.p.getValues=function(){return this.JSC$19716_map_.getValues()};
_.p.values=function(){return this.JSC$19716_map_.values()};
_.p.clone=function(){return new qc(this)};
_.p.equals=function(W){return this.getCount()==GIj(W)&&ePf(this,W)};
var ePf=function(W,B){var z=GIj(B);if(W.getCount()>z)return!1;!(B instanceof qc)&&z>5&&(B=new qc(B));return Y8Y(W,function(G){var Y=B;return Y.contains&&typeof Y.contains=="function"?Y.contains(G):Y.containsValue&&typeof Y.containsValue=="function"?Y.containsValue(G):_.yR(Y)||typeof Y==="string"?_.xt(Y,G):_.mP.containsValue(Y,G)})};
qc.prototype.__iterator__=function(){return this.JSC$19716_map_.__iterator__(!1)};
qc.prototype[Symbol.iterator]=function(){return this.values()};var m8O={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(W){return(this._clampValue(W)-this.min)/(this.max-this.min)},
_clampValue:function(W){return Math.min(this.max,Math.max(this.min,this._calcStep(W)))},
_calcStep:function(W){W=parseFloat(W);if(!this.step)return W;W=Math.round((W-this.min)/this.step);return this.step<1?W/(1/this.step)+this.min:W*this.step+this.min},
_validateValue:function(){var W=this._clampValue(this.value);this.value=this.oldValue=isNaN(W)?this.oldValue:W;return this.value!==W},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var x8r;var D8Y;_.D8({_template:function(){if(D8Y!==void 0)return D8Y;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;x8r===void 0&&(x8r=document.createElement("template"));var G=x8r;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return D8Y=W},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.BM(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(W){W.keyCode===27&&(W.preventDefault(),this.close())},
_track:function(W){if(!this.persistent&&!this.disableSwipe)switch(W.preventDefault(),W.detail.state){case "start":this._trackStart(W);break;case "track":this._trackMove(W);break;case "end":this._trackEnd(W)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var W=this.$.contentContainer.getBoundingClientRect();this._savedWidth=W.width;this._translateOffset=this.position==="left"?W.left:W.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(W){this._trackDetails&&(this._translateDrawer(W.detail.dx+this._translateOffset),this._trackDetails.push({dx:W.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(W){if(this._trackDetails){var B=W.detail.dx+this._translateOffset,z=this.getWidth();B=this.position==="left"?B>=0||B<=-z:B<=0||B>=z;if(!B){var G=this._trackDetails;this._trackDetails=null;this._flingDrawer(W,G);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}z/=2;W.detail.dx<-z?this.opened=this.position==="right":W.detail.dx>z&&(this.opened=this.position==="left");B?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(W,B){for(var z=Date.now(),G=z-100,Y,d=0,E=B.length-1;d<=E;){var v=d+E>>1,c=B[v];c.timeStamp>=G?(Y=c,E=v-1):d=v+1}return Y?(W.detail.dx-Y.dx)/(z-Y.timeStamp||1):0},
_flingDrawer:function(W,B){B=this._calculateVelocity(W,B);if(!(Math.abs(B)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;W=W.detail.dx+this._translateOffset;var z=this.getWidth(),G=this.position==="left",Y=B>0;Y?(B=Math.max(B,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(B=Math.min(B,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");B=this._FLING_INITIAL_SLOPE*(!Y&&G?-(W+z):Y&&!G?z-W:-W)/B;this._styleTransitionDuration(B);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,B)}},
_styleTransitionDuration:function(W){this.style.transitionDuration=W+"ms";this.$.contentContainer.style.transitionDuration=W+"ms";this.$.scrim.style.transitionDuration=W+"ms"},
_styleTransitionTimingFunction:function(W){this.$.contentContainer.style.transitionTimingFunction=W;this.$.scrim.style.transitionTimingFunction=W},
_translateDrawer:function(W){var B=this.getWidth();this.position==="left"?(W=Math.max(-B,Math.min(W,0)),this.$.scrim.style.opacity=1+W/B):(W=Math.max(0,Math.min(W,B)),this.$.scrim.style.opacity=1-W/B);this.translate3d(W+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var W=this._drawerState;W===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;W!==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=""),W!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var W=_.St(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"])');W.length>0?(this._firstTabStop=W[0],this._lastTabStop=W[W.length-1]):
this._lastTabStop=this._firstTabStop=null;(W=this.getAttribute("tabindex"))&&parseInt(W,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(W){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||W.keyCode!==9||(W.shiftKey?this._firstTabStop&&_.St(W).localTarget===this._firstTabStop&&(W.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.St(W).localTarget===this._lastTabStop&&(W.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(W,B){this.toggleClass("visible",W&&!B,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 QT6;var yuK;_.D8({_template:function(){if(yuK!==void 0)return yuK;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;QT6===void 0&&(QT6=document.createElement("template"));var G=QT6;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return yuK=W},
is:"tp-yt-paper-progress",behaviors:[m8O],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(W){this.toggleClass("indeterminate",W,this.$.primaryProgress)},
_transformProgress:function(W,B){W.style.transform=W.style.webkitTransform="scaleX("+B/100+")"},
_mainRatioChanged:function(W){this._transformProgress(this.$.primaryProgress,W)},
_progressChanged:function(W,B,z,G,Y){W=this._clampValue(W);B=this._clampValue(B);var d=this._calcRatio(W)*100,E=this._calcRatio(B)*100;this._setSecondaryRatio(d);this._transformProgress(this.$.secondaryProgress,d);this._transformProgress(this.$.primaryProgress,E);this.secondaryProgress=W;Y?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",B);this.setAttribute("aria-valuemin",z);this.setAttribute("aria-valuemax",G)},
_disabledChanged:function(W){this.setAttribute("aria-disabled",W?"true":"false")},
_hideSecondaryProgress:function(W){return W===0}});var q69;var nzq;var N00=function(){};
_.p=N00.prototype;_.p.registered=function(){};
_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._tapHandler=function(){};
_.p._focusChanged=function(){};
_.p._detectKeyboardFocus=function(){};
_.p._userActivate=function(){};
_.p._upHandler=function(){};
_.p._spaceKeyDownHandler=function(){};
_.p._spaceKeyUpHandler=function(){};
_.p._asyncClick=function(){};
_.p._pressedChanged=function(){};
_.p._ariaActiveAttributeChanged=function(){};
_.p._activeChanged=function(){};
_.p._controlStateChanged=function(){};
_.p._changedButtonState=function(){};
_.p._focusBlurHandler=function(){};
_.p._disabledChanged=function(){};
_.p._changedControlState=function(){};
_.p._buttonStateChanged=function(){};
_.p._downHandler=function(){};
_.p.ensureRipple=function(){};
_.p.getRipple=function(){};
_.p.hasRipple=function(){};
_.p._noinkChanged=function(){};
_.p._calcRatio=function(){};
_.p._clampValue=function(){};
_.p._calcStep=function(){};
_.p._validateValue=function(){};
_.p._update=function(){};
_.p._setImmediateValue=function(){};
_.p._setExpand=function(){};
_.p._setDragging=function(){};
_.p._setTransiting=function(){};
_.p._setMarkers=function(){};
_.p._setPressed=function(){};
_.p._setPointerDown=function(){};
_.p._setReceivedFocusFromKeyboard=function(){};
_.p._setFocused=function(){};
_.p._setRatio=function(){};
N00=_.D8({_template:function(){if(nzq!==void 0)return nzq;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;q69===void 0&&(q69=document.createElement("template"));var G=q69;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return nzq=W},
is:"tp-yt-paper-slider",behaviors:[_.DM,_.nr,_.bQT,m8O],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&&_.mz(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(W,B,z){this.setAttribute("aria-valuemin",B);this.setAttribute("aria-valuemax",z);this.setAttribute("aria-valuenow",W);this._positionKnob(this._calcRatio(W)*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(W){this._setImmediateValue(this._calcStep(this._calcKnobPosition(W)));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(W){return(this.max-this.min)*W/100+this.min},
_onTrack:function(W){W.stopPropagation();switch(W.detail.state){case "start":this._trackStart(W);break;case "track":this._trackX(W);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(W){this.dragging||this._trackStart(W);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,W.detail.dx*(this._isRTL?-1:1)));W=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(W);W=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(W+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var W=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;W.transform=W.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(W){this._expandKnob();W.preventDefault();this.focus()},
_bartrack:function(W){this._allowBarEvent(W)&&this._onTrack(W)},
_barclick:function(W){this._w=this.$.sliderBar.offsetWidth;var B=this.$.sliderBar.getBoundingClientRect();B=(W.detail.x-B.left)/this._w*100;this._isRTL&&(B=100-B);var z=this.ratio;this._setTransiting(!0);this._positionKnob(B);z===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
W.preventDefault();this.focus()},
_bardown:function(W){this._allowBarEvent(W)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(W))},
_knobTransitionEnd:function(W){W.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(W,B,z,G){G||this._setMarkers([]);B=Math.round((z-B)/this.step);B>W&&(B=W);if(B<0||!isFinite(B))B=0;this._setMarkers(Array(B))},
_mergeClasses:function(W){return Object.keys(W).filter(function(B){return W[B]}).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(W){return!this.ignoreBarTouch||W.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(W){this._isRTL?this._incrementKey(W):this._decrementKey(W)},
_rightKey:function(W){this._isRTL?this._decrementKey(W):this._incrementKey(W)},
_incrementKey:function(W){this.disabled||(W.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),W.preventDefault())},
_decrementKey:function(W){this.disabled||(W.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),W.preventDefault())},
_changeValue:function(W){this.value=W.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(W){W.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.So4._createRipple.call(this)},
_focusedChanged:function(W){W&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=W?"":"none",this._ripple.holdDown=W)}});var $89;var Lm1;var nP=null,U8n=function(){};
_.p=U8n.prototype;_.p.fit=function(){};
_.p._discoverInfo=function(){};
_.p.resetFit=function(){};
_.p.refit=function(){};
_.p.position=function(){};
_.p.constrain=function(){};
_.p._sizeDimension=function(){};
_.p.__sizeDimension=function(){};
_.p.center=function(){};
_.p.__getNormalizedRect=function(){};
_.p.__getOffscreenArea=function(){};
_.p.__getPosition=function(){};
_.p.notifyResize=function(){};
_.p.assignParentResizable=function(){};
_.p.stopResizeNotificationsFor=function(){};
_.p._subscribeIronResize=function(){};
_.p._unsubscribeIronResize=function(){};
_.p.resizerShouldNotify=function(){};
_.p._onDescendantIronResize=function(){};
_.p._fireResize=function(){};
_.p._onIronRequestResizeNotifications=function(){};
_.p._parentResizableChanged=function(){};
_.p._notifyDescendant=function(){};
_.p._requestResizeNotifications=function(){};
_.p._findParent=function(){};
_.p.toggle=function(){};
_.p.open=function(){};
_.p.close=function(){};
_.p.cancel=function(){};
_.p.invalidateTabbables=function(){};
_.p._ensureSetup=function(){};
_.p._canceledChanged=function(){};
_.p._withBackdropChanged=function(){};
_.p._prepareRenderOpened=function(){};
_.p._finishRenderOpened=function(){};
_.p._finishRenderClosed=function(){};
_.p._preparePositioning=function(){};
_.p._finishPositioning=function(){};
_.p._applyFocus=function(){};
_.p._onCaptureClick=function(){};
_.p._onCaptureFocus=function(){};
_.p._onCaptureEsc=function(){};
_.p._onCaptureTab=function(){};
_.p._onIronResize=function(){};
_.p._onNodesChange=function(){};
_.p.__ensureFirstLastFocusables=function(){};
_.p.__openedChanged=function(){};
_.p.__deraf=function(){};
_.p.__updateScrollObservers=function(){};
_.p.__addScrollListeners=function(){};
_.p.__removeScrollListeners=function(){};
_.p.__isValidScrollAction=function(){};
_.p.__onCaptureScroll=function(){};
_.p.__saveScrollPosition=function(){};
_.p.__restoreScrollPosition=function(){};
_.p._setCanceled=function(){};
U8n=_.D8({_template:function(){if(Lm1!==void 0)return Lm1;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;$89===void 0&&($89=document.createElement("template"));var G=$89;z.call(B,G.content.cloneNode(!0),W.content.firstChild);return Lm1=W},
is:"tp-yt-paper-toast",behaviors:[_.ct],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(){_.QX._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.p6.requestAvailability()},
show:function(W){typeof W=="string"&&(W={text:W});for(var B in W)B.indexOf("_")===0?_.QX._warn('The property "'+B+'" is private and was not set.'):B in this?this[B]=W[B]:_.QX._warn('The property "'+B+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(W){W&&W.target===this&&W.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(nP&&nP!==this&&nP.close(),nP=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):nP===this&&(nP=null);_.vt._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(W){this.positionTarget=W},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var Mx0=new _.J1("disablePersonalizationAction");var Xkq=new _.J1("showDmaConsentFlowCommand");var Kur=new _.J1("showMmgNoticeCommand");var asn=new _.J1("saveConsentAction");var RPK=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ef(W)};
_.C(RPK,_.iQ);var Whn=_.xZR(RPK);var BNq=new _.J1("updateTopbarAvatarAction");var zvY=new _.J1("channelHandleValidationResultRenderer");var Gz6=new _.J1("generateHandleFromNameResultRenderer");var Ys1=new _.J1("channelHandleInputRenderer");var dKq=new _.J1("copyLinkRenderer");var pNO=new _.J1("timedCommand");var APY=new _.J1("clearCookieAction");var ijj=new _.J1("getMultiPageMenuAction");var E1r=new _.J1("addToGuideSectionAction"),TNj=new _.J1("removeFromGuideSectionAction");var v10=new _.J1("updateNotificationsUnseenCountAction");var cPq=new _.J1("resetChannelUnreadCountCommand");var wNY=new _.J1("resetSubscriptionsUnreadDotCommand");var VS6=new _.J1("selectLanguageCommand");var Mcj=new _.J1("sendFeedbackAction");var JP1=new _.J1("uploadImageToScottyCommand");var g1i=new _.J1("registerPromoCommand");var tSY=new _.J1("setPushNotificationsEnabledCommand");var sYf=new _.J1("desktopTopbarRenderer");var PUK=new _.J1("surveyFollowUpRenderer");var Zj6=new _.J1("handlesClaimingRadioOptionRenderer");var rP6=new _.J1("hotkeyDialogRenderer");var kzK=new _.J1("modifyReportFormCommand");var lVb=new _.J1("accountLinkCommand");var CUY=new _.J1("accountUnlinkCommand");var IVb=new _.J1("logAccountLinkingEventCommand");var o1r=new _.J1("guideCollapsibleEntryRenderer");var hvi=new _.J1("guideDownloadsEntryRenderer");var Nc=new _.J1("guideEntryRenderer");var HjK=new _.J1("getLocationCommand");var Fhf=new _.J1("locationCollectionCommand");var Ssn=new _.J1("storiesItemViewModel");var bji=new _.J1("addToRemoteQueueAction");var jYi=new _.J1("insertInRemoteQueueAction");var fV1=new _.J1("removeFromRemoteQueueAction");var OjK=new _.J1("notificationRenderer");var Zkq=new _.J1("localWatchHistoryCommand");var XNK=new _.J1("pdgBuyFlowHeaderRenderer");var KhY=new _.J1("pdgColorSliderRenderer");var uw1=new _.J1("pdgCommentOptionRenderer");var evO=new _.J1("pdgCommentPreviewRenderer");var mK1=new _.J1("superVodSelectableItemButtonRenderer");var xKi=new _.J1("switchButtonRenderer");var DKr=new _.J1("upsellDialogRenderer");var QY1=new _.J1("feedbackQuestionRenderer"),yPr=new _.J1("feedbackOptionRenderer");var qsf=new _.J1("sponsorshipsTierRenderer"),n1n=new _.J1("sponsorshipsPromotionChannelRenderer");var NNb=new _.J1("simpleSurveyMessageRenderer");var Mg1=new _.J1("invokeInstrumentManagerAction");var $KY=new _.J1("logYpcFlowDismissCommand");var LhO=new _.J1("logYpcFlowStartCommand");var UK9=new _.J1("unlimitedCreateFamilyEndpoint");var MS1=new _.J1("iconBadgeRenderer");var rgf=new _.J1("collaborativePlaylistVisibilityValidationRule");var aV1=function(W){_.bK.call(this,"channelMessage");this.message=W};
_.C(aV1,_.bK);var Rvn=function(W){_.bK.call(this,"channelError");this.error=W};
_.C(Rvn,_.bK);var WO1={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",PUNCTUAL_WATCH:"pcw",IP_VALIDATION:"ipv"},Be0={UNKNOWN_THEME:"u",CLASSIC:"cl",
KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},zMY={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},GBq={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},Y7f={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var $5=function(W){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 _.FJ;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;W&&(this.id=W.id||W.name,this.name=W.name,this.clientName=W.clientName?W.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=W.app,this.type=W.type||"REMOTE_CONTROL",this.username=W.user||"",this.avatar=W.userAvatarUri||"",this.obfuscatedGaiaId=W.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=W.ownerObfuscatedGaiaId||"",this.castUserId=W.castUserId||"",this.theme=W.theme||"u",d79(this,W.capabilities||""),p$f(this,
W.compatibleSenderThemes||""),AaY(this,W.experiments||""),this.remoteControllerUrl=W.remoteControllerUrl||"",this.localChannelEncryptionKey=W.localChannelEncryptionKey||"",this.deviceContext=W.deviceContext,this.brand=W.brand||"",this.model=W.model||"",this.year=W.year||0,this.os=W.os||"",this.osVersion=W.osVersion||"",this.chipset=W.chipset||"",this.mdxDialServerType=W.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=W.pairingType||"unknown",W=W.deviceInfo)&&(W=JSON.parse(W),this.brand=
W.brand||"",this.model=W.model||"",this.year=W.year||0,this.os=W.os||"",this.osVersion=W.osVersion||"",this.chipset=W.chipset||"",this.clientName=W.clientName?W.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=W.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
$5.prototype.copy=function(){var W={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&&(W.brand=this.brand);
this.model&&(W.model=this.model);this.year&&(W.year=this.year);this.os&&(W.os=this.os);this.osVersion&&(W.osVersion=this.osVersion);this.chipset&&(W.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(W.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(W.mdxDialServerType=this.mdxDialServerType);W=new $5(W);W.connected=this.connected;W.remoteControllerUrl=this.remoteControllerUrl;W.localChannelEncryptionKey=this.localChannelEncryptionKey;W.deviceContext=
this.deviceContext;W.castUserId=this.castUserId;return W};
$5.prototype.equals=function(W){return W?this.id==W.id:!1};
var d79=function(W,B){W.capabilities.clear();_.wb(B.split(","),_.Ci(_.mP.contains,WO1)).forEach(function(z){W.capabilities.add(z)})},p$f=function(W,B){W.compatibleSenderThemes.clear();
_.wb(B.split(","),_.Ci(_.mP.contains,Be0)).forEach(function(z){W.compatibleSenderThemes.add(z)})},AaY=function(W,B){W.experiments.clear();
B.split(",").forEach(function(z){W.experiments.add(z)})};_.TC(QNj,_.bA);_.p=QNj.prototype;_.p.JSC$19752_onTick_=function(){this.JSC$19750_interval_=Math.min(3E5,this.JSC$19750_interval_*2);this.JSC$19752_listener_();this.nextTickTime_&&this.start()};
_.p.start=function(){var W=this.JSC$19750_interval_+15E3*Math.random(),B=this.delay_;B.isActive()||B.start(W);this.nextTickTime_=Date.now()+W};
_.p.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.p.isActive=function(){return this.delay_.isActive()};
_.p.reset=function(){this.delay_.stop();this.JSC$19750_interval_=5E3};_.TC(CK,X70);_.p=CK.prototype;_.p.subscribe=function(W,B,z){return this.pubsub_.subscribe(W,B,z)};
_.p.unsubscribe=function(W,B,z){return this.pubsub_.unsubscribe(W,B,z)};
_.p.unsubscribeByKey=function(W){return this.pubsub_.unsubscribeByKey(W)};
_.p.publish=function(W,B){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.p.dispose=function(){this.JSC$19753_disposed_||(this.JSC$19753_disposed_=!0,_.AI(this.pubsub_),this.disconnect(),_.AI(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19753_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.gV({})})};
_.p.isDisposed=function(){return this.JSC$19753_disposed_};
_.p.connect=function(W,B,z){var G=this,Y,d,E,v;return _.T(function(c){if(c.nextAddress==1)return _.IR(c,2),G.useAsyncBrowserChannelHandler_?c.yield(G.connectPromise_,2):c.jumpTo(2);_.CN(c);if(G.JSC$19753_disposed_||G.JSC$19753_channel_&&G.JSC$19753_channel_.getState()==2)return c.return();G.sCookie_="";G.reconnectTimer_.stop();G.connectionParams_=W||null;G.connectUi_=B||0;Y=G.JSC$19753_pathPrefix_+"/test";d=G.JSC$19753_pathPrefix_+"/bind";E=new Q$(z?z.firstTestResults:null,z?z.secondTestResults:null,
G.enableAsyncTest_);if(v=G.JSC$19753_channel_)v.handler_=null;E.handler_=G;G.JSC$19753_channel_=E;if(G.useAsyncBrowserChannelHandler_)return G.connectPromise_=iW0(G).then(function(){return EIb(G,Y,d,v,z)}),c.return(G.connectPromise_.then(function(){G.connectPromise_=_.gV()}));
EIb(G,Y,d,v,z);return _.oR(c,0)})};
var EIb=function(W,B,z,G,Y){Teq(W);if(W.JSC$19753_channel_){var d=_.eD("ID_TOKEN"),E=W.JSC$19753_channel_.JSC$19705_extraHeaders_||{};d?E["x-youtube-identity-token"]=d:delete E["x-youtube-identity-token"];W.JSC$19753_channel_.JSC$19705_extraHeaders_=E}vIq(W);G?(G.getState(),W.JSC$19753_channel_.connect(B,z,W.defaultQueryParams_,G.sid_,G.JSC$19705_lastArrayId_)):Y?W.JSC$19753_channel_.connect(B,z,W.defaultQueryParams_,Y.sessionId,Y.arrayId):W.JSC$19753_channel_.connect(B,z,W.defaultQueryParams_)};
CK.prototype.disconnect=function(W){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.gV())}finally{this.disconnectUi_=W||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),Teq(this),this.JSC$19753_channel_&&(this.JSC$19753_channel_.getState()==3&&Fm0(this.JSC$19753_channel_),this.JSC$19753_channel_.disconnect()),this.disconnectUi_=0}};
CK.prototype.sendMessage=function(W,B){var z=this,G;return _.T(function(Y){switch(Y.nextAddress){case 1:_.IR(Y,2);if(!z.useAsyncBrowserChannelHandler_){Y.jumpTo(2);break}return Y.yield(z.connectPromise_,2);case 2:_.CN(Y);if(z.JSC$19753_disposed_)return Y.return();G={_sc:W};B&&_.mP.extend(G,B);if(z.reconnectTimer_.isActive()||(z.JSC$19753_channel_?z.JSC$19753_channel_.getState():0)==2){z.JSC$19753_pendingMessages_.push(G);Y.jumpTo(6);break}if(!z.isChannelOpened()){Y.jumpTo(6);break}_.IR(Y,8);if(!z.useAsyncBrowserChannelHandler_||
caO(z,W)){Y.jumpTo(8);break}return Y.yield(iW0(z),8);case 8:_.CN(Y,0,0,1);z.isChannelOpened()&&(caO(z,W)||vIq(z),Teq(z),HLb(z.JSC$19753_channel_,G));_.oR(Y,6,1);break;case 6:_.oR(Y,0)}})};
var caO=function(W,B){return W.enableMdxAuthForConnectionOnly_?!0:W.disableMdxAuthForAdMessages_?Object.values(zMY).includes(B):W.disableMdxAuthForNonPlaybackMessages_?!Object.values(GBq).includes(B):W.disableMdxAuthForShortsMessages_?Object.values(Y7f).includes(B):!1};
CK.prototype.JSC$19712_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19753_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)w$q(this);else{var W=this.JSC$19753_pendingMessages_;this.JSC$19753_pendingMessages_=[];var B=W.length;vIq(this);VvO(this,W,B);JaK(this)}else JaK(this)};
var w$q=function(W){var B,z;_.T(function(G){if(G.nextAddress==1)return _.IR(G,2),G.yield(iW0(W),2);_.CN(G);B=W.JSC$19753_pendingMessages_;W.JSC$19753_pendingMessages_=[];z=B.length;VvO(W,B,z);JaK(W);return _.oR(G,0)})},VvO=function(W,B,z){for(var G=0;G<z;++G)HLb(W.JSC$19753_channel_,B[G]);
JaK(W)},JaK=function(W){W.publish("handlerOpened");
W.JSC$19753_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.p=CK.prototype;_.p.JSC$19712_channelError=function(W){var B=W==2&&this.JSC$19753_channel_.JSC$19705_lastStatusCode_==401;W==4||B||this.reconnectTimer_.start();this.publish("handlerError",W,B);B=Object.keys(Sz1).find(function(z){return Sz1[z]===W});
this.JSC$19753_channelErrorCounter.increment("BROWSER_CHANNEL",B!=null?B:"UNKNOWN")};
_.p.JSC$19712_channelClosed=function(W,B){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(B)for(var z=B.length,G=0;G<z;++G){var Y=B[G].map;Y&&this.JSC$19753_pendingMessages_.push(Y)}this.JSC$19753_channelClosedCounter.increment("BROWSER_CHANNEL");W&&this.pendingMapsOnClosedCounter.JSC$9933_streamzService.JSC$9788_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",W.length);B&&this.undeliveredMapsOnClosedCounter.JSC$9936_streamzService.JSC$9788_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
B.length)};
_.p.JSC$19712_channelSuccess=function(W,B){B!=null&&W!=null&&this.channelMessageSentCounter.increment()};
_.p.JSC$19712_getAdditionalParams=function(){var W={v:2};this.sCookie_&&(W.gsessionid=this.sCookie_);this.connectUi_!=0&&(W.ui=""+this.connectUi_);this.disconnectUi_!=0&&(W.ui=""+this.disconnectUi_);this.connectionParams_&&_.mP.extend(W,this.connectionParams_);return W};
_.p.JSC$19712_channelHandleArray=function(W){W[0]=="S"?this.sCookie_=W[1]:W[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19753_channel_.disconnect()):this.publish("handlerMessage",new DJb(W[0],W[1]));this.JSC$19753_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.p.isChannelOpened=function(){return!!this.JSC$19753_channel_&&this.JSC$19753_channel_.getState()==3};
var Teq=function(W){if(W.JSC$19753_channel_){var B=W.JSC$19753_getXsrfToken_(),z=W.JSC$19753_channel_.JSC$19705_extraHeaders_||{};B?z["x-youtube-lounge-xsrf-token"]=B:delete z["x-youtube-lounge-xsrf-token"];W.JSC$19753_channel_.JSC$19705_extraHeaders_=z}},iW0=function(W){if(W.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.gV();
if(!W.enableCachedUpdateAuthorizationHeader_)return gIY(W);W.updateAuthorizationHeaderPromise_===null&&(W.updateAuthorizationHeaderPromise_=gIY(W));return W.updateAuthorizationHeaderPromise_},gIY=function(W){return _.xX(W.getAuthorizationHeader_().then(function(B){tvK(W,B)}).thenCatch(function(){}),function(){W.updateAuthorizationHeaderPromise_=null})},tvK=function(W,B){if(W.JSC$19753_channel_){var z=W.JSC$19753_channel_.JSC$19705_extraHeaders_||{};
B&&Object.keys(B).length>0?z=Object.assign({},z,B):delete z.Authorization;W.JSC$19753_channel_.JSC$19705_extraHeaders_=z}},vIq=function(W){W.getAuthorizationHeaderSync_&&!W.useAsyncBrowserChannelHandler_&&tvK(W,W.getAuthorizationHeaderSync_())};
_.p=CK.prototype;_.p.setLoungeToken=function(W){(this.defaultQueryParams_.loungeIdToken=W)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19753_channel_){var B=this.JSC$19753_channel_.JSC$19705_extraHeaders_||{};W?B["X-YouTube-LoungeId-Token"]=W:delete B["X-YouTube-LoungeId-Token"];this.JSC$19753_channel_.JSC$19705_extraHeaders_=B}};
_.p.getDeviceId=function(){return this.defaultQueryParams_.id};
_.p.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.p.reconnect=function(){var W=this.reconnectTimer_;W.delay_.fire();W.start()};
_.p.safeReconnect_=function(){var W=this.JSC$19753_channel_,B=0;W.JSC$19705_backChannelRequest_&&B++;W.forwardChannelRequest_&&B++;B==0&&this.connect(this.connectionParams_,this.connectUi_)};var bW=function(W,B){var z=W.basePath;W.supportCors&&(z=W.scheme+"://"+W.domain+W.port+W.basePath);return _.aJ(z+B,{})};
It.prototype.sendRequest=function(W,B,z,G,Y,d,E){W={format:d?"RAW":"JSON",method:W,context:this,timeout:5E3,withCredentials:!!E,onSuccess:_.Ci(this.JSC$19758_onSuccess_,G,!d),onError:_.Ci(this.onError_,Y),onTimeout:_.Ci(this.JSC$19758_onTimeout_,Y)};z&&(W.postParams=z,W.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.tC(B,W)};
It.prototype.JSC$19758_onSuccess_=function(W,B,z,G){B?W(G):W({text:z.responseText})};
It.prototype.onError_=function(W,B){W(Error("Qk`"+B.status))};
It.prototype.JSC$19758_onTimeout_=function(W){W(Error("Rk"))};var h2=function(W,B){return!!B&&(W.id==B||W.uuid==B)},Phr=function(W){return{name:W.name,
screenId:W.id,loungeToken:W.token,dialId:W.uuid,screenIdType:W.idType}},ZW0=function(W){return new ot(W)},raf=function(W){return Array.isArray(W)?_.xH(W,ZW0):[]},RqY=function(W){if(!W)return"null";
var B=W.token?".."+W.token.slice(-6):"-",z=W.uuid?".."+W.uuid.slice(-6):"-";return'{name:"'+W.name+'",id:'+W.id.substr(0,6)+"..,token:"+(B+",uuid:"+z+",idType:"+W.idType+"}")},oBi=function(W){return Array.isArray(W)?"["+_.xH(W,RqY).join(",")+"]":"null"};var pJq="",S$=null;var JVb=function(W,B){_.Ka.call(this);var z=this;this.handler=W();this.handler.subscribe("handlerOpened",this.JSC$19765_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(G,Y){z.onError(Y)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=B};
_.C(JVb,_.Ka);_.p=JVb.prototype;_.p.connect=function(W,B,z){this.handler.connect(W,B,z)};
_.p.disconnect=function(W){this.handler.disconnect(W)};
_.p.reconnect=function(){this.handler.reconnect()};
_.p.getDeviceId=function(){return this.handler.getDeviceId()};
_.p.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.p.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.p.JSC$19765_onOpened=function(){this.dispatchEvent("channelOpened");var W=this.handler,B=this.currentScreenId;_.Da("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!W.JSC$19753_channel_.useChunked_,sessionId:W.JSC$19753_channel_.sid_,arrayId:W.JSC$19753_channel_.JSC$19705_lastArrayId_});_.Da("yt-remote-session-screen-id",B);W=WR9();B=Baf();_.xt(W,B)||W.push(B);dHr(W);YV0()};
_.p.onClosed=function(){this.dispatchEvent("channelClosed")};
_.p.onMessage=function(W){this.dispatchEvent(new aV1(W))};
_.p.onError=function(W){this.dispatchEvent(new Rvn(W?1:0))};
_.p.sendMessage=function(W,B){this.handler.sendMessage(W,B)};
_.p.setLoungeToken=function(W){this.handler.setLoungeToken(W)};
_.p.dispose=function(){this.handler.dispose()};var VKi=function(W,B,z){var G=this;z=z===void 0?function(){return""}:z;
var Y=Y===void 0?new Gaf:Y;var d=d===void 0?new _.PS:d;this.pathPrefix=W;this.defaultQueryParams=B;this.getXsrfToken=z;this.JSC$19768_pubsub=d;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new QNj(function(){var E;((E=G.channel)==null?void 0:fMi((new ptY(E,E.JSC$19676_channel_)).JSC$19686_channel_.forwardChannelRequestPool_))===0&&G.connect(G.connectionParams,G.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19768_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19768_channelOpenedCounter=new yHi;this.JSC$19768_channelClosedCounter=new qRi;this.JSC$19768_channelMessageReceivedCounter=new N5j;this.JSC$19768_channelErrorCounter=new $JK};
VKi.prototype.connect=function(W,B){W=W===void 0?{}:W;B=B===void 0?0:B;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=W,this.connectUi=B,kB6(this),(W=_.eD("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=W: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 Xv(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,lH6(this))};
var lH6=function(W){_.ug(W.channel,"w",function(){W.channelState=3;W.reconnectTimer.reset();W.connectionParams=null;W.connectUi=0;for(var B=_.A(W.nonAckedMessagesOnChannelClosed),z=B.next();!z.done;z=B.next())z=z.value,W.channel&&W.channel.send(z);W.nonAckedMessagesOnChannelClosed=[];W.publish("webChannelOpened");W.JSC$19768_channelOpenedCounter.increment("WEB_CHANNEL")});
_.ug(W.channel,"x",function(){W.channelState=0;W.reconnectTimer.isActive()||W.publish("webChannelClosed");var B,z=(B=W.channel)==null?void 0:ALj(new ptY(B,B.JSC$19676_channel_));z&&(W.nonAckedMessagesOnChannelClosed=[].concat(_.u7(z)));W.JSC$19768_channelClosedCounter.increment("WEB_CHANNEL")});
_.ug(W.channel,"z",function(B){var z=B.data;z[0]==="gracefulReconnect"?(W.reconnectTimer.start(),W.channel&&W.channel.close()):W.publish("webChannelMessage",new DJb(z[0],z[1]));W.lastStatusCode=B.statusCode;W.JSC$19768_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.ug(W.channel,"y",function(){W.lastStatusCode===401||W.reconnectTimer.start();W.publish("webChannelError");W.JSC$19768_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.p=VKi.prototype;_.p.disconnect=function(W){this.disconnectUi=W===void 0?0:W;this.reconnectTimer.stop();kB6(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.p.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.p.reconnect=function(){var W=this.reconnectTimer;W.delay_.fire();W.start()};
_.p.sendMessage=function(W,B){this.channel&&(kB6(this),W=Object.assign({},{_sc:W},B),this.channel.send(W))};
_.p.setLoungeToken=function(W){W||this.reconnectTimer.stop();W?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=W:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var kB6=function(W){var B=W.getXsrfToken();B?W.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=B:delete W.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.p=VKi.prototype;_.p.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.p.publish=function(W){return this.JSC$19768_pubsub.publish.apply(this.JSC$19768_pubsub,[W].concat(_.u7(_.nm.apply(1,arguments))))};
_.p.subscribe=function(W,B,z){return this.JSC$19768_pubsub.subscribe(W,B,z)};
_.p.unsubscribe=function(W,B,z){return this.JSC$19768_pubsub.unsubscribe(W,B,z)};
_.p.unsubscribeByKey=function(W){return this.JSC$19768_pubsub.unsubscribeByKey(W)};
_.p.dispose=function(){this.JSC$19768_disposed||(this.JSC$19768_disposed=!0,_.AI(this.JSC$19768_pubsub),this.disconnect(),_.AI(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.p.isDisposed=function(){return this.JSC$19768_disposed};var wJ9=function(W){_.Ka.call(this);this.webChannelService=W();this.webChannelService.subscribe("webChannelOpened",this.JSC$19776_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.C(wJ9,_.Ka);_.p=wJ9.prototype;_.p.connect=function(W,B){this.webChannelService.connect(W,B)};
_.p.disconnect=function(W){this.webChannelService.disconnect(W)};
_.p.reconnect=function(){this.webChannelService.reconnect()};
_.p.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.p.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.p.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.p.JSC$19776_onOpened=function(){this.dispatchEvent("channelOpened")};
_.p.onClosed=function(){this.dispatchEvent("channelClosed")};
_.p.onMessage=function(W){this.dispatchEvent(new aV1(W))};
_.p.onError=function(){this.dispatchEvent(new Rvn(this.webChannelService.lastStatusCode===401?1:0))};
_.p.sendMessage=function(W,B){this.webChannelService.sendMessage(W,B)};
_.p.setLoungeToken=function(W){this.webChannelService.setLoungeToken(W)};
_.p.dispose=function(){this.webChannelService.dispose()};var Irq=Date.now(),j$=null,lrY=Array(50),Xg=-1,CgO=!1;_.TC(KK,_.Dg);KK.prototype.getScreens=function(){return this.screens};
KK.prototype.contains=function(W){return!!RRi(this.screens,W)};
KK.prototype.get=function(W){return W?He(this.screens,W):null};
var Chi=function(W,B){var z=W.get(B.uuid)||W.get(B.id);if(z)return W=z.name,z.id=B.id||z.id,z.name=B.name,z.token=B.token,z.uuid=B.uuid||z.uuid,z.name!=W;W.screens.push(B);return!0},IHK=function(W,B){var z=W.screens.length!=B.length;
W.screens=_.wb(W.screens,function(d){return!!RRi(B,d)});
for(var G=B.length,Y=0;Y<G;Y++)z=Chi(W,B[Y])||z;return z},oI9=function(W,B){var z=W.screens.length;
W.screens=_.wb(W.screens,function(G){return!(G||B?!G!=!B?0:G.id==B.id:1)});
return W.screens.length<z};
KK.prototype.info=function(W){fK(this.JSC$19777_logName_,W)};var hMf=function(W,B,z,G,Y){_.Dg.call(this);this.JSC$19780_http_=W;this.pairingCode_=B;this.deviceId_=z;this.friendlyName_=G;this.enableShortLivedLoungeToken_=Y;this.pollIndex_=0;this.JSC$19780_xhr_=null;this.JSC$19780_timer_=NaN};
_.C(hMf,_.Dg);_.p=hMf.prototype;_.p.start=function(){!this.JSC$19780_xhr_&&isNaN(this.JSC$19780_timer_)&&this.poll_()};
_.p.stop=function(){this.JSC$19780_xhr_&&(this.JSC$19780_xhr_.abort(),this.JSC$19780_xhr_=null);isNaN(this.JSC$19780_timer_)||(_.JC(this.JSC$19780_timer_),this.JSC$19780_timer_=NaN)};
_.p.disposeInternal=function(){this.stop();_.Dg.prototype.disposeInternal.call(this)};
_.p.poll_=function(){this.JSC$19780_timer_=NaN;this.JSC$19780_xhr_=_.tC(bW(this.JSC$19780_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.jk)(this.JSC$19782_onSuccess_,this),onError:(0,_.jk)(this.onError_,this),onTimeout:(0,_.jk)(this.JSC$19782_onTimeout_,this)})};
_.p.JSC$19782_onSuccess_=function(W,B){this.JSC$19780_xhr_=null;W=B.screen||{};W.dialId=this.deviceId_;W.name=this.friendlyName_;B=-1;this.enableShortLivedLoungeToken_&&W.shortLivedLoungeToken&&W.shortLivedLoungeToken.value&&W.shortLivedLoungeToken.refreshIntervalMs&&(W.screenIdType="shortLived",W.loungeToken=W.shortLivedLoungeToken.value,B=W.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new ot(W),B)};
_.p.onError_=function(W){this.JSC$19780_xhr_=null;W.status&&W.status==404?this.pollIndex_>=HWO.length?this.publish("pairingFailed",Error("Sk")):(W=HWO[this.pollIndex_],this.JSC$19780_timer_=_.cS((0,_.jk)(this.poll_,this),W),this.pollIndex_++):this.publish("pairingFailed",Error("Tk`"+W.status))};
_.p.JSC$19782_onTimeout_=function(){this.JSC$19780_xhr_=null;this.publish("pairingFailed",Error("Uk"))};
var HWO=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.TC(e$,KK);_.p=e$.prototype;_.p.start=function(){uW(this)&&this.publish("screenChange");!_.QL("yt-remote-lounge-token-expiration")&&FOO(this);_.JC(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.cS((0,_.jk)(this.start,this),1E4)};
_.p.add=function(W,B){uW(this);Chi(this,W);S7r(this,!1);this.publish("screenChange");B(W);W.token||FOO(this)};
_.p.remove=function(W,B){var z=uW(this);oI9(this,W)&&(S7r(this,!1),z=!0);B(W);z&&this.publish("screenChange")};
_.p.updateName=function(W,B,z,G){var Y=uW(this),d=this.get(W.id);d?(d.name!=B&&(d.name=B,S7r(this,!1),Y=!0),z(W)):G(Error("Vk"));Y&&this.publish("screenChange")};
_.p.disposeInternal=function(){_.JC(this.loungeTokenRefreshTimer_);e$.superClass_.disposeInternal.call(this)};
var FOO=function(W){if(W.screens.length){var B=_.xH(W.screens,function(G){return G.id}),z=bW(W.JSC$19784_http_,"/pairing/get_lounge_token_batch");
W.JSC$19784_http_.sendRequest("POST",z,{screen_ids:B.join(",")},(0,_.jk)(W.handleLoungeTokens_,W),(0,_.jk)(W.handleLoungeTokenError_,W))}};
e$.prototype.handleLoungeTokens_=function(W){uW(this);var B=this.screens.length;W=W&&W.screens||[];for(var z=W.length,G=0;G<z;++G){var Y=W[G],d=this.get(Y.screenId);d&&(d.token=Y.loungeToken,--B)}S7r(this,!B);B&&fK(this.JSC$19777_logName_,"Missed "+B+" lounge tokens.")};
e$.prototype.handleLoungeTokenError_=function(W){fK(this.JSC$19777_logName_,"Requesting lounge tokens failed: "+W)};
var uW=function(W){if(_.r("deprecate_pair_servlet_enabled"))return IHK(W,[]);var B=raf(i8f());B=_.wb(B,function(z){return!z.uuid});
return IHK(W,B)},S7r=function(W,B){Ta9(_.xH(W.screens,Phr));
B&&EBj()};var LP=function(W,B){_.Dg.call(this);this.getScreensToCheck_=B;B=(B=_.QL("yt-remote-online-screen-ids")||"")?B.split(","):[];for(var z={},G=this.getScreensToCheck_(),Y=G.length,d=0;d<Y;++d){var E=G[d].id;z[E]=_.xt(B,E)}this.screenIdSet_=z;this.JSC$19787_http_=W;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;bWn("Initialized with "+(0,_.yy)(this.screenIdSet_))};
_.C(LP,_.Dg);LP.prototype.isOnline=function(W){return!!this.screenIdSet_[W]};
LP.prototype.start=function(){var W=parseInt(_.QL("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.EL()-144E5<W?0:W)?jpK(this):(this.fastCheckEndTime_=_.EL()+3E5,_.Da("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
LP.prototype.isEmpty=function(){return _.mP.isEmpty(this.screenIdSet_)};
LP.prototype.update=function(){bWn("Updating availability on schedule.");var W=this.getScreensToCheck_(),B=_.mP.filter(this.screenIdSet_,function(z,G){return z&&!!He(W,G)},this);
fHq(this,B)};
var OWO=function(W,B,z){var G=bW(W.JSC$19787_http_,"/pairing/get_screen_availability");W.JSC$19787_http_.sendRequest("POST",G,{lounge_token:B.token},(0,_.jk)(function(Y){Y=Y.screens||[];for(var d=Y.length,E=0;E<d;++E)if(Y[E].loungeToken==B.token){z(Y[E].status=="online");return}z(!1)},W),(0,_.jk)(function(){z(!1)},W))};
LP.prototype.disposeInternal=function(){_.JC(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Dg.prototype.disposeInternal.call(this)};
var fHq=function(W,B){a:if(_.mP.getCount(B)!=_.mP.getCount(W.screenIdSet_))var z=!1;else{z=_.mP.getKeys(B);for(var G=z.length,Y=0;Y<G;++Y)if(!W.screenIdSet_[z[Y]]){z=!1;break a}z=!0}z||(bWn("Updated online screens: "+(0,_.yy)(W.screenIdSet_)),W.screenIdSet_=B,W.publish("screenChange"));X$Y(W)},jpK=function(W){isNaN(W.refreshTimer_)||_.JC(W.refreshTimer_);
W.refreshTimer_=_.cS((0,_.jk)(W.requestScreenAvailability_,W),W.fastCheckEndTime_>0&&W.fastCheckEndTime_<_.EL()?2E4:1E4)};
LP.prototype.requestScreenAvailability_=function(){_.JC(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var W=KOn(this);if(_.mP.getCount(W)){var B=bW(this.JSC$19787_http_,"/pairing/get_screen_availability"),z={lounge_token:_.mP.getKeys(W).join(",")};this.currentRequest_=this.JSC$19787_http_.sendRequest("POST",B,z,(0,_.jk)(this.onScreenAvailability_,this,W),(0,_.jk)(this.onScreenAvailabilityError_,this))}else fHq(this,{}),jpK(this)};
LP.prototype.onScreenAvailability_=function(W,B){this.currentRequest_=null;var z=_.mP.getKeys(KOn(this));if(_.UX(z,_.mP.getKeys(W))){B=B.screens||[];z={};for(var G=B.length,Y=0;Y<G;++Y)z[W[B[Y].loungeToken]]=B[Y].status=="online";fHq(this,z);jpK(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
LP.prototype.onScreenAvailabilityError_=function(W){this.warn_("Screen availability failed: "+W);this.currentRequest_=null;jpK(this)};
var bWn=function(W){fK("OnlineScreenService",W)};
LP.prototype.warn_=function(W){fK("OnlineScreenService",W)};
var KOn=function(W){var B={};_.$r(W.getScreensToCheck_(),function(z){z.token?B[z.token]=z.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return B},X$Y=function(W){W=_.mP.getKeys(_.mP.filter(W.screenIdSet_,function(B){return B}));
W.sort(_.h88);W.length?_.Da("yt-remote-online-screen-ids",W.join(","),60):_.yL("yt-remote-online-screen-ids")};_.TC(mK,KK);_.p=mK.prototype;_.p.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.p.add=function(W,B,z){this.localScreenService_.add(W,B,z)};
_.p.remove=function(W,B,z){this.localScreenService_.remove(W,B,z);this.onlineScreenService_.update()};
_.p.updateName=function(W,B,z,G){this.localScreenService_.contains(W)?this.localScreenService_.updateName(W,B,z,G):(W="Updating name of unknown screen: "+W.name,fK(this.JSC$19777_logName_,W),G(Error(W)))};
_.p.getScreens=function(W){return W?this.screens:rrn(this.screens,_.wb(this.automaticScreens_,function(B){return!this.contains(B)},this))};
_.p.JSC$19792_getOnlineScreens=function(){return _.wb(this.getScreens(!0),function(W){return this.onlineScreenService_.isOnline(W.id)},this)};
var eMi=function(W,B,z,G,Y,d){W.info("getAutomaticScreenByIds "+z+" / "+B);z||(z=W.deviceToScreenId_[B]);var E=W.getScreens(),v=z?He(E,z):null;z&&(W.disableAutomaticScreenCache_||v)||(v=He(E,B));if(v){v.uuid=B;var c=Ut(W,v);OWO(W.onlineScreenService_,c,function(J){Y(J?c:null)})}else z?urr(W,z,(0,_.jk)(function(J){var g=Ut(this,new ot({name:G,
screenId:z,loungeToken:J,dialId:B||""}));OWO(this.onlineScreenService_,g,function(t){Y(t?g:null)})},W),d):Y(null)};
mK.prototype.JSC$19792_getScreenByPollingPairingCode=function(W,B,z,G,Y,d){var E=this;this.info("getDialScreenByPairingCode "+W+" / "+B);var v=new hMf(this.JSC$19790_http_,W,B,z,G);v.subscribe("pairingComplete",function(c,J){_.AI(v);Y(Ut(E,c),J)});
v.subscribe("pairingFailed",function(c){_.AI(v);d(c)});
v.start();return(0,_.jk)(v.stop,v)};
var m7j=function(W,B){for(var z=W.screens.length,G=0;G<z;++G)if(W.screens[G].name==B)return W.screens[G];return null};
mK.prototype.JSC$19792_getScreenByPairingCode=function(W,B,z,G){_.tC(bW(this.JSC$19790_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:W},timeout:5E3,onSuccess:(0,_.jk)(function(Y,d){Y=new ot(d.screen||{});if(!Y.name||m7j(this,Y.name)){a:{d=Y.name;for(var E=2,v=B(d,E);m7j(this,v);){E++;if(E>20)break a;v=B(d,E)}d=v}Y.name=d}z(Ut(this,Y))},this),
onError:(0,_.jk)(function(Y){G(Error("Wk`"+Y.status))},this),
onTimeout:(0,_.jk)(function(){G(Error("Xk"))},this)})};
var x7O=function(W,B,z){OWO(W.onlineScreenService_,B,z)};
mK.prototype.disposeInternal=function(){_.AI(this.localScreenService_);_.AI(this.onlineScreenService_);mK.superClass_.disposeInternal.call(this)};
var urr=function(W,B,z,G){W.info("requestLoungeToken_ for "+B);var Y={postParams:{screen_ids:B},method:"POST",context:W,onSuccess:function(d,E){d=E&&E.screens||[];d[0]&&d[0].screenId==B?z(d[0].loungeToken):G(Error("Yk"))},
onError:function(){G(Error("Zk"))}};
_.tC(bW(W.JSC$19790_http_,"/pairing/get_lounge_token_batch"),Y)},D7f=function(W){W.screens=W.localScreenService_.getScreens();
for(var B=_.mP.transpose(W.deviceToScreenId_),z=W.screens.length,G=0;G<z;++G){var Y=W.screens[G];Y.uuid=B[Y.id]||""}W.info("Updated manual screens: "+oBi(W.screens))};
mK.prototype.handleScreenChange_=function(){D7f(this);this.publish("screenChange");this.onlineScreenService_.update()};
var hq6=function(W){Qpf(W);W.localScreenService_=new e$(W.JSC$19790_http_);W.localScreenService_.subscribe("screenChange",(0,_.jk)(W.handleScreenChange_,W));D7f(W);W.disableAutomaticScreenCache_||(W.automaticScreens_=raf(_.QL("yt-remote-automatic-screen-cache")||[]));Qpf(W);W.info("Initializing automatic screens: "+oBi(W.automaticScreens_));W.onlineScreenService_=new LP(W.JSC$19790_http_,(0,_.jk)(W.getScreens,W,!0));W.onlineScreenService_.subscribe("screenChange",(0,_.jk)(function(){this.publish("onlineScreenChange")},
W))},Ut=function(W,B){var z=W.get(B.id);
z?(z.uuid=B.uuid,B=z):((z=He(W.automaticScreens_,B.uuid))?(z.id=B.id,z.token=B.token,B=z):W.automaticScreens_.push(B),W.disableAutomaticScreenCache_||yar(W));Qpf(W);W.deviceToScreenId_[B.uuid]=B.id;_.Da("yt-remote-device-id-map",W.deviceToScreenId_,31536E3);return B},yar=function(W){W=_.wb(W.automaticScreens_,function(B){return B.idType!="shortLived"});
_.Da("yt-remote-automatic-screen-cache",_.xH(W,Phr))},Qpf=function(W){W.deviceToScreenId_=_.QL("yt-remote-device-id-map")||{}};
mK.prototype.dispose=mK.prototype.dispose;_.TC(xJ,_.Dg);var Mc=function(W,B){W.screen_=B;W.publish("sessionScreen",W.screen_)},q7q=function(W,B){W.screen_&&(W.screen_.token=B,Ut(W.JSC$19794_screenService_,W.screen_));
W.publish("sessionScreen",W.screen_)};
xJ.prototype.onSessionStopped=function(W){this.isDisposed()||(W&&(ao(this,""+W),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
xJ.prototype.info=function(W){fK(this.JSC$19794_logName_,W)};
var ao=function(W,B){fK(W.JSC$19794_logName_,B)};
xJ.prototype.JSC$19796_getCastSession=function(){return null};
xJ.prototype.setDisplayStatus=function(W){var B=this.receiver_;W?(B.displayStatus=new chrome.cast.ReceiverDisplayStatus(W,[]),B.displayStatus.showStop=!0):B.displayStatus=null;chrome.cast.setReceiverDisplayStatus(B,(0,_.jk)(function(){this.info("Updated receiver status for "+B.friendlyName+": "+W)},this),(0,_.jk)(function(){ao(this,"Failed to update receiver status for: "+B.friendlyName)},this))};
xJ.prototype.disposeInternal=function(){this.setDisplayStatus("");xJ.superClass_.disposeInternal.call(this)};var Ro=function(W,B,z){xJ.call(this,W,B,"CastSession");var G=this;this.config_=z;this.JSC$19799_session_=null;this.JSC$19799_boundSessionUpdate_=(0,_.jk)(this.JSC$19801_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.jk)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.cS(function(){nIf(G,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19799_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19799_isInitLoungeToken_=!1;this.JSC$19799_lastLoungeTokenRefreshError_="unknown"};
_.C(Ro,xJ);_.p=Ro.prototype;
_.p.setCastSession=function(W){if(this.JSC$19799_session_){if(this.JSC$19799_session_==W)return;ao(this,"Overriding cast session with new session object");NeY(this);this.JSC$19799_isInitLoungeToken_=!1;this.JSC$19799_lastLoungeTokenRefreshError_="unknown";this.JSC$19799_session_.removeUpdateListener(this.JSC$19799_boundSessionUpdate_);this.JSC$19799_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19799_session_=W;this.JSC$19799_session_.addUpdateListener(this.JSC$19799_boundSessionUpdate_);this.JSC$19799_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);$7f(this,"getMdxSessionStatus")};
_.p.launchWithParams=function(W){this.info("launchWithParams no-op for Cast: "+(0,_.yy)(W))};
_.p.stop=function(){if(this.JSC$19799_session_)this.JSC$19799_session_.stop((0,_.jk)(function(){this.onSessionStopped()},this),(0,_.jk)(function(){this.onSessionStopped(Error("$k"))},this));
else this.onSessionStopped(Error("al"))};
_.p.setDisplayStatus=function(){};
_.p.disposeInternal=function(){this.info("disposeInternal");NeY(this);this.JSC$19799_session_&&(this.JSC$19799_session_.removeUpdateListener(this.JSC$19799_boundSessionUpdate_),this.JSC$19799_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19799_session_=null;xJ.prototype.disposeInternal.call(this)};
var U70=function(W,B){_.JC(W.getLoungeTokenTimeoutKey_);W.getLoungeTokenTimeoutKey_=0;B==0?LOf(W):W.getLoungeTokenTimeoutKey_=_.cS(function(){LOf(W)},B)},LOf=function(W){$7f(W,"getLoungeToken");
_.JC(W.onLoungeTokenTimeoutKey_);W.onLoungeTokenTimeoutKey_=_.cS(function(){Mv0(W,null)},3E4)},$7f=function(W,B){W.info("sendYoutubeMessage_: "+B+" "+(0,_.yy)(void 0));
var z={};z.type=B;W.JSC$19799_session_?W.JSC$19799_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",z,function(){},(0,_.jk)(function(){ao(this,"Failed to send message: "+B+".")},W)):ao(W,"Sending yt message without session: "+(0,_.yy)(z))};
Ro.prototype.onYoutubeMessage_=function(W,B){if(!this.isDisposed())if(B)if(B=(0,_.ft)(B),_.$t(B))switch(W=""+B.type,B=B.data||{},this.info("onYoutubeMessage_: "+W+" "+(0,_.yy)(B)),W){case "mdxSessionStatus":nIf(this,B);break;case "loungeToken":Mv0(this,B);break;default:ao(this,"Unknown youtube message: "+W)}else ao(this,"Unable to parse message.");else ao(this,"No data in message.")};
var aHf=function(W,B){if(B)W.info("onConnectedScreenId_: Received screenId: "+B),W.screen_&&W.screen_.id==B||W.getScreen_(B,function(z){Mc(W,z)},function(){return W.onSessionStopped()},5);
else W.onSessionStopped(Error("bl"))},W5i=function(W,B,z){W.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(B));
var G=new ot(B);RMq(W,G,function(Y){Y?(W.JSC$19799_isInitLoungeToken_=!0,Ut(W.JSC$19794_screenService_,G),Mc(W,G),W.JSC$19799_lastLoungeTokenRefreshError_="unknown",U70(W,z)):(_.xr(Error("cl`"+JSON.stringify(B))),W.onSessionStopped())},5)},nIf=function(W,B){_.JC(W.sessionStatusTimeoutKey_);
W.sessionStatusTimeoutKey_=0;if(B)W.config_.enableCastLoungeToken&&B.loungeToken?B.deviceId?W.screen_&&W.screen_.uuid==B.deviceId||(B.loungeTokenRefreshIntervalMs?W5i(W,{name:W.receiver_.friendlyName,screenId:B.screenId,loungeToken:B.loungeToken,dialId:B.deviceId,screenIdType:"shortLived"},B.loungeTokenRefreshIntervalMs):(_.xr(Error("el`"+JSON.stringify(B))),aHf(W,B.screenId))):(_.xr(Error("dl`"+JSON.stringify(B))),aHf(W,B.screenId)):aHf(W,B.screenId);else W.onSessionStopped(Error("bl"))},Mv0=function(W,
B){_.JC(W.onLoungeTokenTimeoutKey_);
W.onLoungeTokenTimeoutKey_=0;var z=null;if(B)if(B.loungeToken){var G;((G=W.screen_)==null?void 0:G.token)==B.loungeToken&&(z="staleLoungeToken")}else z="missingLoungeToken";else z="noLoungeTokenResponse";z?(W.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(B)+", error: "+z)),W.JSC$19799_lastLoungeTokenRefreshError_=z,U70(W,3E4)):(q7q(W,B.loungeToken),W.JSC$19799_isInitLoungeToken_=!1,W.JSC$19799_lastLoungeTokenRefreshError_="unknown",U70(W,B.loungeTokenRefreshIntervalMs))};
Ro.prototype.getScreen_=function(W,B,z,G){_.JC(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;eMi(this.JSC$19794_screenService_,this.receiver_.label,W,this.receiver_.friendlyName,(0,_.jk)(function(Y){Y?B(Y):G>=0?(ao(this,"Screen "+W+" appears to be offline. "+G+" retries left."),this.getScreenTimeoutKey_=_.cS((0,_.jk)(this.getScreen_,this,W,B,z,G-1),300)):z(Error("fl"))},this),z)};
var RMq=function(W,B,z,G){_.JC(W.JSC$19799_checkScreenAvailabilityTimeoutKey_);W.JSC$19799_checkScreenAvailabilityTimeoutKey_=0;x7O(W.JSC$19794_screenService_,B,function(Y){Y||G<0?z(Y):W.JSC$19799_checkScreenAvailabilityTimeoutKey_=_.cS(function(){RMq(W,B,z,G-1)},300)})};
Ro.prototype.JSC$19796_getCastSession=function(){return this.JSC$19799_session_};
Ro.prototype.JSC$19801_onSessionUpdate_=function(W){this.isDisposed()||W||(ao(this,"Cast session died."),this.onSessionStopped())};
var NeY=function(W){_.JC(W.getScreenTimeoutKey_);W.getScreenTimeoutKey_=0;_.JC(W.JSC$19799_checkScreenAvailabilityTimeoutKey_);W.JSC$19799_checkScreenAvailabilityTimeoutKey_=0;_.JC(W.sessionStatusTimeoutKey_);W.sessionStatusTimeoutKey_=0;_.JC(W.onLoungeTokenTimeoutKey_);W.onLoungeTokenTimeoutKey_=0;_.JC(W.getLoungeTokenTimeoutKey_);W.getLoungeTokenTimeoutKey_=0};var Wv=function(W,B,z,G){xJ.call(this,W,B,"DialSession");this.config_=G;this.JSC$19803_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19803_theme_=z;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19803_deferredLaunchDeadlineTimer_=NaN;this.JSC$19803_boundSessionUpdate_=(0,_.jk)(this.JSC$19805_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19803_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19803_isInitLoungeToken_=!1;this.JSC$19803_lastLoungeTokenRefreshError_="unknown"};
_.C(Wv,xJ);Wv.prototype.setCastSession=function(W){this.JSC$19803_session_=W;this.JSC$19803_session_.addUpdateListener(this.JSC$19803_boundSessionUpdate_)};
Wv.prototype.launchWithParams=function(W){this.connectData_=W;this.deferredLaunch_()};
Wv.prototype.stop=function(){BJO(this);if(this.JSC$19803_session_)this.JSC$19803_session_.stop((0,_.jk)(this.onSessionStopped,this,null),(0,_.jk)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Wv.prototype.disposeInternal=function(){BJO(this);this.JSC$19803_session_&&this.JSC$19803_session_.removeUpdateListener(this.JSC$19803_boundSessionUpdate_);this.JSC$19803_session_=null;xJ.prototype.disposeInternal.call(this)};
var zaK=function(W){var B;return!!(W.config_.enableDialLoungeToken&&((B=W.JSC$19803_session_)==null?0:B.getDialAppInfo))},Go1=function(W){W.cancelPolling_=W.JSC$19794_screenService_.JSC$19792_getScreenByPollingPairingCode(W.reversePairingCode_,W.receiver_.label,W.receiver_.friendlyName,zaK(W),function(B,z){W.cancelPolling_=function(){};
W.JSC$19803_isInitLoungeToken_=!0;Mc(W,B);B.idType=="shortLived"&&z>0&&Bv(W,z)},function(B){W.cancelPolling_=function(){};
W.onSessionStopped(B)})};
Wv.prototype.JSC$19805_onSessionUpdate_=function(W){this.isDisposed()||W||(ao(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var Yn1=function(W){var B={};B.pairingCode=W.reversePairingCode_;B.theme=W.JSC$19803_theme_;cVi()&&(B.env_useStageMdx=1);return _.sA(B)},dV0=function(W){return new Promise(function(B){W.reversePairingCode_=MJf();
if(W.connectData_){var z=new chrome.cast.DialLaunchResponse(!0,Yn1(W));B(z);Go1(W)}else W.deferredLaunch_=function(){_.JC(W.JSC$19803_deferredLaunchDeadlineTimer_);W.deferredLaunch_=function(){};
W.JSC$19803_deferredLaunchDeadlineTimer_=NaN;var G=new chrome.cast.DialLaunchResponse(!0,Yn1(W));B(G);Go1(W)},W.JSC$19803_deferredLaunchDeadlineTimer_=_.cS(function(){W.deferredLaunch_()},100)})},ABq=function(W,B,z){W.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(B));
var G=new ot(B);return(new Promise(function(Y){pDr(W,G,function(d){d?(W.JSC$19803_isInitLoungeToken_=!0,Ut(W.JSC$19794_screenService_,G),Mc(W,G),Bv(W,z)):_.xr(Error("hl`"+JSON.stringify(B)));Y(d)},5)})).then(function(Y){return Y?new chrome.cast.DialLaunchResponse(!1):dV0(W)})},inb=function(W,B){var z=W.launchData_.receiver.label,G=W.receiver_.friendlyName;
return(new Promise(function(Y){eMi(W.JSC$19794_screenService_,z,B,G,function(d){d&&d.token&&Mc(W,d);Y(d)},function(d){ao(W,"Failed to get DIAL screen: "+d);
Y(null)})})).then(function(Y){return Y&&Y.token?new chrome.cast.DialLaunchResponse(!1):dV0(W)})},pDr=function(W,B,z,G){_.JC(W.JSC$19803_checkScreenAvailabilityTimeoutKey_);
W.JSC$19803_checkScreenAvailabilityTimeoutKey_=0;x7O(W.JSC$19794_screenService_,B,function(Y){Y||G<0?z(Y):W.JSC$19803_checkScreenAvailabilityTimeoutKey_=_.cS(function(){pDr(W,B,z,G-1)},300)})},Bv=function(W,B){W.info("getDialAppInfoWithTimeout_ "+B);
zaK(W)&&(_.JC(W.getDialAppInfoTimeoutKey_),W.getDialAppInfoTimeoutKey_=0,B==0?EPj(W):W.getDialAppInfoTimeoutKey_=_.cS(function(){EPj(W)},B))},EPj=function(W){zaK(W)&&W.JSC$19803_session_.getDialAppInfo(function(B){W.info("getDialAppInfo dialLaunchData: "+JSON.stringify(B));
B=B.extraData||{};var z=null;if(B.loungeToken){var G;((G=W.screen_)==null?void 0:G.token)==B.loungeToken&&(z="staleLoungeToken")}else z="missingLoungeToken";z?(W.JSC$19803_lastLoungeTokenRefreshError_=z,Bv(W,3E4)):(W.JSC$19803_isInitLoungeToken_=!1,W.JSC$19803_lastLoungeTokenRefreshError_="unknown",q7q(W,B.loungeToken),Bv(W,B.loungeTokenRefreshIntervalMs))},function(B){W.info("getDialAppInfo error: "+B);
W.JSC$19803_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Bv(W,3E4)})},BJO=function(W){_.JC(W.JSC$19803_checkScreenAvailabilityTimeoutKey_);
W.JSC$19803_checkScreenAvailabilityTimeoutKey_=0;_.JC(W.getDialAppInfoTimeoutKey_);W.getDialAppInfoTimeoutKey_=0;W.cancelPolling_();W.cancelPolling_=function(){};
_.JC(W.JSC$19803_deferredLaunchDeadlineTimer_)};var zw=function(W,B){xJ.call(this,W,B,"ManualSession");this.JSC$19807_deferredLaunchDeadlineTimer_=_.cS((0,_.jk)(this.launchWithParams,this,null),150)};
_.C(zw,xJ);zw.prototype.stop=function(){this.onSessionStopped()};
zw.prototype.setCastSession=function(){};
zw.prototype.launchWithParams=function(){_.JC(this.JSC$19807_deferredLaunchDeadlineTimer_);this.JSC$19807_deferredLaunchDeadlineTimer_=NaN;var W=He(this.JSC$19794_screenService_.getScreens(),this.receiver_.label);if(W)Mc(this,W);else this.onSessionStopped(Error("il"))};
zw.prototype.disposeInternal=function(){_.JC(this.JSC$19807_deferredLaunchDeadlineTimer_);this.JSC$19807_deferredLaunchDeadlineTimer_=NaN;xJ.prototype.disposeInternal.call(this)};var qY=function(W,B){_.Dg.call(this);this.config_=B;this.JSC$19810_screenService_=W;this.JSC$19810_appId_=B.appId||"233637DE";this.JSC$19810_theme_=B.theme||"cl";this.disableDial_=B.disableCastApi||!1;this.forceMirroring_=B.forceMirroring||!1;this.JSC$19810_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.jk)(this.onReceiverAction_,this)};
_.C(qY,_.Dg);
qY.prototype.init=function(W,B){chrome.cast.timeout.requestSession=3E4;var z=new chrome.cast.SessionRequest(this.JSC$19810_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.r("desktop_enable_cast_connect")&&(z.androidReceiverCompatible=!0);this.disableDial_||(z.dialRequest=new chrome.cast.DialRequest("YouTube"));var G=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;W=W||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var Y=(0,_.jk)(this.onReceiverUpdated_,
this);z=new chrome.cast.ApiConfig(z,(0,_.jk)(this.onSessionEstablished_,this),Y,G,W);z.customDialLaunchCallback=(0,_.jk)(this.onDialLaunchRequested_,this);chrome.cast.initialize(z,(0,_.jk)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Z8i(),this.JSC$19810_screenService_.subscribe("onlineScreenChange",(0,_.jk)(this.JSC$19812_onScreenChange_,this)),this.customReceivers_=TJq(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.jk)(function(d){this.warn_("Failed to set initial custom receivers: "+(0,_.yy)(d))},this)),this.publish("yt-remote-cast2-availability-change",Gw(this)),B(!0))},this),(0,_.jk)(function(d){this.warn_("Failed to initialize API: "+(0,_.yy)(d));
B(!1)},this))};
qY.prototype.setConnectedScreenStatus=function(W,B){Ys("Setting connected screen ID: "+W+" -> "+B);if(this.JSC$19810_session_){var z=this.JSC$19810_session_.screen_;if(!W||z&&z.id!=W)Ys("Unsetting old screen status: "+this.JSC$19810_session_.receiver_.friendlyName),dT(this,null)}if(W&&B){if(!this.JSC$19810_session_){W=He(this.JSC$19810_screenService_.getScreens(),W);if(!W){Ys("setConnectedScreenStatus: Unknown screen.");return}if(W.idType=="shortLived"){Ys("setConnectedScreenStatus: Screen with id type to be short lived.");
return}z=vPr(this,W);z||(Ys("setConnectedScreenStatus: Connected receiver not custom..."),z=new chrome.cast.Receiver(W.uuid?W.uuid:W.id,W.name),z.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(z),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.jk)(function(G){this.warn_("Failed to set initial custom receivers: "+(0,_.yy)(G))},this)));
Ys("setConnectedScreenStatus: new active receiver: "+z.friendlyName);dT(this,new zw(this.JSC$19810_screenService_,z),!0)}this.JSC$19810_session_.setDisplayStatus(B)}else Ys("setConnectedScreenStatus: no screen.")};
var vPr=function(W,B){return B?_.OX(W.customReceivers_,function(z){return h2(B,z.label)},W):null};
qY.prototype.setLaunchParams=function(W){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19810_session_?this.JSC$19810_session_.launchWithParams(W):this.warn_("Setting connection data without a session")};
qY.prototype.JSC$19812_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19810_session_?(this.JSC$19810_session_.stop(),dT(this,null)):Ys("Stopping non-existing session")};
qY.prototype.requestSession=function(){chrome.cast.requestSession((0,_.jk)(this.onSessionEstablished_,this),(0,_.jk)(this.onSessionRequestFailed_,this))};
qY.prototype.disposeInternal=function(){this.JSC$19810_screenService_.unsubscribe("onlineScreenChange",(0,_.jk)(this.JSC$19812_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Dv(_.q6("yt.mdx.remote.debug.handlers_")||[],tK1);_.AI(this.JSC$19810_session_);_.Dg.prototype.disposeInternal.call(this)};
var Ys=function(W){fK("Controller",W)};
qY.prototype.warn_=function(W){fK("Controller",W)};
var tK1=function(W){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(W)},Gw=function(W){return W.hasCastReceiver_||!!W.customReceivers_.length||!!W.JSC$19810_session_},dT=function(W,B,z){B!=W.JSC$19810_session_&&(_.AI(W.JSC$19810_session_),(W.JSC$19810_session_=B)?(z?W.publish("yt-remote-cast2-receiver-resumed",B.receiver_):W.publish("yt-remote-cast2-receiver-selected",B.receiver_),B.subscribe("sessionScreen",(0,_.jk)(W.onSessionScreen_,W,B)),B.subscribe("sessionFailed",
function(){return cBf(W,B)}),B.screen_?W.publish("yt-remote-cast2-session-change",B.screen_):z&&W.JSC$19810_session_.launchWithParams(null)):W.publish("yt-remote-cast2-session-change",null))},cBf=function(W,B){W.JSC$19810_session_==B&&W.publish("yt-remote-cast2-session-failed")};
_.p=qY.prototype;_.p.onSessionScreen_=function(W,B){this.JSC$19810_session_==W&&(B||dT(this,null),this.publish("yt-remote-cast2-session-change",B))};
_.p.onReceiverAction_=function(W,B){if(!this.isDisposed())if(W)switch(W.friendlyName=chrome.cast.unescape(W.friendlyName),Ys("onReceiverAction_ "+W.label+" / "+W.friendlyName+"-- "+B),B){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19810_session_)if(this.JSC$19810_session_.receiver_.label!=W.label)Ys("onReceiverAction_: Stopping active receiver: "+this.JSC$19810_session_.receiver_.friendlyName),this.JSC$19810_session_.stop();else{Ys("onReceiverAction_: Casting to active receiver.");this.JSC$19810_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19810_session_.screen_);break}switch(W.receiverType){case chrome.cast.ReceiverType.CUSTOM:dT(this,new zw(this.JSC$19810_screenService_,W));break;case chrome.cast.ReceiverType.DIAL:dT(this,new Wv(this.JSC$19810_screenService_,W,this.JSC$19810_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:dT(this,new Ro(this.JSC$19810_screenService_,W,this.config_));break;default:this.warn_("Unknown receiver type: "+W.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19810_session_&&
this.JSC$19810_session_.receiver_.label==W.label?this.JSC$19810_session_.stop():this.warn_("Stopping receiver w/o session: "+W.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.p.onDialLaunchRequested_=function(W){if(this.isDisposed())return Promise.reject(Error("jl"));var B=W.receiver;B.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+B.friendlyName),B.receiverType=chrome.cast.ReceiverType.DIAL);var z=this.JSC$19810_session_?this.JSC$19810_session_.receiver_:null;if(!z||z.label!=B.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+B.friendlyName),Promise.reject(Error("kl"));if(z&&z.label==B.label&&z.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19810_session_.screen_)return Ys("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19810_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+z.receiverType+'" to "dial" for '+B.friendlyName);dT(this,new Wv(this.JSC$19810_screenService_,B,this.JSC$19810_theme_,this.config_))}B=this.JSC$19810_session_;B.launchData_=W;B.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(W=B.launchData_.extraData||{},z=W.screenId||null,zaK(B)&&W.loungeToken?W.loungeTokenRefreshIntervalMs?W=ABq(B,{name:B.receiver_.friendlyName,screenId:W.screenId,loungeToken:W.loungeToken,dialId:B.launchData_.receiver.label,screenIdType:"shortLived"},W.loungeTokenRefreshIntervalMs):(_.xr(Error("gl`"+JSON.stringify(W))),W=inb(B,z)):W=inb(B,z)):W=dV0(B);return W};
_.p.onSessionEstablished_=function(W){var B=this;if(!this.isDisposed()&&!this.forceMirroring_){Ys("New cast session ID: "+W.sessionId);var z=W.receiver;if(z.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19810_session_)if(z.receiverType==chrome.cast.ReceiverType.CAST)Ys("Got resumed cast session before resumed mdx connection."),z.friendlyName=chrome.cast.unescape(z.friendlyName),dT(this,new Ro(this.JSC$19810_screenService_,z,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var G=this.JSC$19810_session_.receiver_,Y=He(this.JSC$19810_screenService_.getScreens(),G.label);Y&&h2(Y,z.label)&&G.receiverType!=chrome.cast.ReceiverType.CAST&&z.receiverType==chrome.cast.ReceiverType.CAST&&(Ys("onSessionEstablished_: manual to cast session change "+z.friendlyName),_.AI(this.JSC$19810_session_),this.JSC$19810_session_=new Ro(this.JSC$19810_screenService_,z,this.config_),this.JSC$19810_session_.subscribe("sessionScreen",(0,_.jk)(this.onSessionScreen_,this,this.JSC$19810_session_)),
this.JSC$19810_session_.subscribe("sessionFailed",function(){return cBf(B,B.JSC$19810_session_)}),this.JSC$19810_session_.launchWithParams(null));
this.JSC$19810_session_.setCastSession(W)}}};
_.p.JSC$19812_getCastSession=function(){return this.JSC$19810_session_?this.JSC$19810_session_.JSC$19796_getCastSession():null};
_.p.onSessionRequestFailed_=function(W){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.yy)(W)),W.code!=chrome.cast.ErrorCode.CANCEL&&dT(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.p.onReceiverUpdated_=function(W){Ys("Receiver availability updated: "+W);if(!this.isDisposed()){var B=Gw(this);this.hasCastReceiver_=W==chrome.cast.ReceiverAvailability.AVAILABLE;Gw(this)!=B&&this.publish("yt-remote-cast2-availability-change",Gw(this))}};
var TJq=function(W){var B=W.JSC$19810_screenService_.JSC$19792_getOnlineScreens(),z=W.JSC$19810_session_&&W.JSC$19810_session_.receiver_;W=_.xH(B,function(G){z&&h2(G,z.label)&&(z=null);var Y=G.uuid?G.uuid:G.id,d=vPr(this,G);d?(d.label=Y,d.friendlyName=G.name):(d=new chrome.cast.Receiver(Y,G.name),d.receiverType=chrome.cast.ReceiverType.CUSTOM);return d},W);
z&&(z.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(z=new chrome.cast.Receiver(z.label,z.friendlyName),z.receiverType=chrome.cast.ReceiverType.CUSTOM),W.push(z));return W};
qY.prototype.JSC$19812_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=TJq(this),Ys("Updating custom receivers: "+(0,_.yy)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.jk)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Gw(this)))};
qY.prototype.setLaunchParams=qY.prototype.setLaunchParams;qY.prototype.setConnectedScreenStatus=qY.prototype.setConnectedScreenStatus;qY.prototype.stopSession=qY.prototype.JSC$19812_stopSession;qY.prototype.getCastSession=qY.prototype.JSC$19812_getCastSession;qY.prototype.requestSession=qY.prototype.requestSession;qY.prototype.init=qY.prototype.init;qY.prototype.dispose=qY.prototype.dispose;var wDf=_.ak(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),nBj=[],O81=_.sY(wDf);var VZK=function(W){W.audioTrackId=null;W.trackData=null;W.playerState=-1;W.hasPrevious=!1;W.hasNext=!1;W.playerTime_=0;W.playerTimeAt_=_.EL();W.seekableStart_=0;W.seekableEnd_=0;W.duration_=0;W.loadedTime=0;W.liveIngestionTime_=NaN;W.isLive_=!1};
_.p=nK.prototype;
_.p.reset=function(W){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;W&&(this.index=W.index,this.listId=W.listId,this.videoId=W.videoId,this.playerState=W.playerState,this.volume=W.volume,this.muted=W.muted,this.audioTrackId=W.audioTrackId,this.trackData=W.trackData,this.hasPrevious=W.hasPrevious,this.hasNext=W.hasNext,this.playerTime_=W.playerTime,this.playerTimeAt_=W.playerTimeAt,this.seekableStart_=W.seekableStart,this.seekableEnd_=W.seekableEnd,this.duration_=W.duration,this.loadedTime=
W.loadedTime,this.liveIngestionTime_=W.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.p.stopPlayer=function(){this.index=-1;this.videoId="";VZK(this)};
_.p.isPlaying=function(){return this.playerState==1};
_.p.isBuffering=function(){return this.playerState==3};
_.p.isAdPlaying=function(){return this.playerState==1081};
var pX=function(W,B){W.playerTime_=B;W.playerTimeAt_=_.EL()},JBO=function(W){switch(W.playerState){case 1:case 1081:return(_.EL()-W.playerTimeAt_)/1E3+W.playerTime_;
case -1E3:return 0}return W.playerTime_};
nK.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.EL()-this.playerTimeAt_)/1E3:0):this.duration_};
var gP9=function(W,B,z){var G=W.videoId;W.videoId=B;W.index=z;B!=G&&VZK(W)},tZ1=function(W){var B={};
B.index=W.index;B.listId=W.listId;B.videoId=W.videoId;B.playerState=W.playerState;B.volume=W.volume;B.muted=W.muted;B.audioTrackId=W.audioTrackId;B.trackData=_.mP.unsafeClone(W.trackData);B.hasPrevious=W.hasPrevious;B.hasNext=W.hasNext;B.playerTime=W.playerTime_;B.playerTimeAt=W.playerTimeAt_;B.seekableStart=W.seekableStart_;B.seekableEnd=W.seekableEnd_;B.duration=W.duration_;B.loadedTime=W.loadedTime;B.liveIngestionTime=W.liveIngestionTime_;return B};
nK.prototype.clone=function(){return new nK(tZ1(this))};var Wa=function(W,B){_.Dg.call(this);var z=this;this.state_=0;this.connection_=W;this.contextSubscriptions_=[];this.actionQueue_=new xJq;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.jk)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.jk)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.jk)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.jk)(this.onCloudviewAvailabilityChange_,this);var G=0;W?(G=W.getProxyState(),
G!=3&&(W.subscribe("proxyStateChange",this.setState_,this),sF1(this))):G=3;G!=0&&(B?this.setState_(G):_.cS(function(){z.setState_(G)},0));
(W=UH1())&&Pq6(this,W);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.C(Wa,_.Dg);Wa.prototype.getState=function(){return this.state_};
Wa.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Wa.prototype.reconnect=function(){this.connection_.reconnect()};
var Ak=function(W){return new nK(W.connection_.getPlayerContextData())};
_.p=Wa.prototype;_.p.play=function(){i3(this)?(this.castMedia_?this.castMedia_.play(null,_.j7,Znf(this,"play")):EQ(this,"play"),rBi(this,1,JBO(Ak(this))),this.publish("remotePlayerChange")):Tw(this,this.play)};
_.p.pause=function(){i3(this)?(this.castMedia_?this.castMedia_.pause(null,_.j7,Znf(this,"pause")):EQ(this,"pause"),rBi(this,2,JBO(Ak(this))),this.publish("remotePlayerChange")):Tw(this,this.pause)};
_.p.seekTo=function(W){if(i3(this)){if(this.castMedia_){var B=Ak(this),z=new chrome.cast.media.SeekRequest;z.currentTime=W;B.isPlaying()||B.isBuffering()?z.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:z.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(z,_.j7,Znf(this,"seekTo",{newTime:W}))}else EQ(this,"seekTo",{newTime:W});rBi(this,3,W);this.publish("remotePlayerChange")}else Tw(this,_.Ci(this.seekTo,W))};
_.p.stop=function(){if(i3(this)){this.castMedia_?this.castMedia_.stop(null,_.j7,Znf(this,"stopVideo")):EQ(this,"stopVideo");var W=Ak(this);W.stopPlayer();vv(this,W);this.publish("remotePlayerChange")}else Tw(this,this.stop)};
_.p.setVolume=function(W,B){if(i3(this)){var z=Ak(this);if(this.castSession_){if(z.volume!=W){var G=Math.round(W)/100;this.castSession_.setReceiverVolumeLevel(G,(0,_.jk)(function(){O3("set receiver volume: "+G)},this),(0,_.jk)(function(){this.warn_("failed to set receiver volume.")},this))}z.muted!=B&&this.castSession_.setReceiverMuted(B,(0,_.jk)(function(){O3("set receiver muted: "+B)},this),(0,_.jk)(function(){this.warn_("failed to set receiver muted.")},this))}else{var Y={volume:W,
muted:B};z.volume!=-1&&(Y.delta=W-z.volume);EQ(this,"setVolume",Y)}z.muted=B;z.volume=W;vv(this,z)}else Tw(this,_.Ci(this.setVolume,W,B))};
_.p.setAudioTrack=function(W,B){i3(this)?(B=B.getLanguageInfo().getId(),EQ(this,"setAudioTrack",{videoId:W,audioTrackId:B}),W=Ak(this),W.audioTrackId=B,vv(this,W)):Tw(this,_.Ci(this.setAudioTrack,W,B))};
_.p.addVideo=function(W){i3(this)?EQ(this,"addVideo",{videoId:W}):Tw(this,_.Ci(this.addVideo,W))};
_.p.addPlaylist=function(W){i3(this)?EQ(this,"addVideos",{listId:W}):Tw(this,_.Ci(this.addPlaylist,W))};
_.p.addVideos=function(W){W.length==0?this.warn_("Ignore add videos request due to empty list"):i3(this)?EQ(this,"addVideos",{videoIds:W.join(",")}):Tw(this,_.Ci(this.addVideos,W))};
_.p.JSC$19822_removeVideo=function(W){i3(this)?EQ(this,"removeVideo",{videoId:W}):Tw(this,_.Ci(this.JSC$19822_removeVideo,W))};
_.p.JSC$19822_insertVideo=function(W){i3(this)?EQ(this,"insertVideo",{videoId:W}):Tw(this,_.Ci(this.JSC$19822_insertVideo,W))};
_.p.playVideo=function(W,B,z,G,Y,d,E){G=G===void 0?null:G;Y=Y===void 0?null:Y;d=d===void 0?null:d;E=E===void 0?null:E;var v=Ak(this),c={videoId:W};z!==void 0&&(c.currentIndex=z);gP9(v,W,z||0);B!==void 0&&(pX(v,B),c.currentTime=B);G&&(c.listId=G);Y&&(c.playerParams=Y);d&&(c.clickTrackingParams=d);E&&(c.locationInfo=(0,_.yy)(E));EQ(this,"setPlaylist",c);G||vv(this,v)};
_.p.nextVideo=function(W,B){if(i3(this)){if(W&&B){var z=Ak(this);gP9(z,W,B);vv(this,z)}EQ(this,"next")}else Tw(this,_.Ci(this.nextVideo,W,B))};
_.p.clearPlaylist=function(){if(i3(this)){EQ(this,"clearPlaylist");var W=Ak(this);W.reset();vv(this,W);this.publish("remotePlayerChange")}else Tw(this,this.clearPlaylist)};
_.p.dispose=function(){if(this.state_!=3){var W=this.state_;this.state_=3;this.publish("proxyStateChange",W,this.state_)}_.Dg.prototype.dispose.call(this)};
_.p.disposeInternal=function(){koi(this);this.connection_=null;this.actionQueue_.clear();Pq6(this,null);_.Dg.prototype.disposeInternal.call(this)};
var sF1=function(W){_.$r("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(B){this.contextSubscriptions_.push(this.connection_.subscribe(B,_.Ci(this.onProxyEvent_,B),this))},W)},koi=function(W){_.$r(W.contextSubscriptions_,function(B){this.connection_.unsubscribeByKey(B)},W);
W.contextSubscriptions_.length=0},i3=function(W){return W.getState()==1},Tw=function(W,B){W.actionQueue_.getCount()<50&&W.actionQueue_.enqueue(B)},rBi=function(W,B,z){var G=Ak(W);
pX(G,z);G.playerState!=-1E3&&(G.playerState=B);vv(W,G)},EQ=function(W,B,z){W.connection_.sendMessage(B,z)},vv=function(W,B){koi(W);
W.connection_.setPlayerContextData(tZ1(B));sF1(W)};
Wa.prototype.setState_=function(W){if((W!=this.state_||W==2)&&this.state_!=3&&W!=0){var B=this.state_;this.state_=W;this.publish("proxyStateChange",B,W);if(W==1)for(;!this.actionQueue_.isEmpty();)W=this.actionQueue_,Kmi(W),W.front_.pop().apply(this);else W==3&&this.dispose()}};
Wa.prototype.onProxyEvent_=function(W,B){this.publish(W,B)};
var Pq6=function(W,B){W.castSession_&&(W.castSession_.removeUpdateListener(W.boundCastStatusListener_),W.castSession_.removeMediaListener(W.boundCastMediaListener_),W.onCastMediaChange_(null));W.castSession_=B;if(W.castSession_&&(O3("Setting cast session: "+W.castSession_.sessionId),W.castSession_.addUpdateListener(W.boundCastStatusListener_),W.castSession_.addMediaListener(W.boundCastMediaListener_),W.castSession_.media.length))W.onCastMediaChange_(W.castSession_.media[0])};
Wa.prototype.onCastStatusUpdate_=function(W){if(!W)this.onCastMediaChange_(null),Pq6(this,null);else if(this.castSession_.receiver.volume){W=this.castSession_.receiver.volume;var B=Ak(this),z=Math.round(100*W.level||0);if(B.volume!=z||B.muted!=W.muted)O3("Cast volume update: "+W.level+(W.muted?" muted":"")),B.volume=z,B.muted=!!W.muted,vv(this,B)}};
Wa.prototype.onCastMediaChange_=function(W){O3("Cast media: "+!!W);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=W)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),lb0(this),this.publish("remotePlayerChange")};
var lb0=function(W){var B=W.castMedia_.media,z=W.castMedia_.customData;if(B&&z){var G=Ak(W);B.contentId!=G.videoId&&O3("Cast changing video to: "+B.contentId);G.videoId=B.contentId;G.playerState=z.playerState;pX(G,W.castMedia_.getEstimatedTime());vv(W,G)}else O3("No cast media video. Ignoring state update.")};
Wa.prototype.onCastMediaUpdate_=function(W){if(W)lb0(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Wa.prototype.onCloudviewAvailabilityChange_=function(){var W=UH1();W&&Pq6(this,W)};
Wa.prototype.warn_=function(W){fK("CP",W)};
var Znf=function(W,B,z){return(0,_.jk)(function(G){this.warn_("Failed to "+B+" with cast v2 channel. Error code: "+G.code);G.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+B+" using MDx browser channel."),EQ(this,B,z))},W)};var Ba=function(W,B,z,G){G=G===void 0?!1:G;_.Dg.call(this);var Y=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$19827_http_=W;this.enableConnectWithInitialState_=G;this.listeners_.push(_.WT(window,"beforeunload",function(){Y.JSC$19830_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new nK;this.currentScreenId_=B.id;this.currentScreenIdType_=B.idType;this.channelService=gBi(this.JSC$19827_http_,z,this.JSC$19830_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){Cq6(Y)});
this.channelService.listen("channelClosed",function(){cv("Channel closed");isNaN(Y.connectTimerId_)?Fg(!0):Fg();Y.dispose()});
this.channelService.listen("channelError",function(d){Fg();isNaN(Y.getReconnectTimeout_())?(d==1&&Y.currentScreenIdType_=="shortLived"&&Y.publish("browserChannelAuthError",d),cv("Channel error: "+d+" without reconnection"),Y.dispose()):(Y.reconnecting_=!0,cv("Channel error: "+d+" with reconnection in "+Y.getReconnectTimeout_()+" ms"),IbO(Y,2))});
this.channelService.listen("channelMessage",function(d){oPr(Y,d)});
this.channelService.setLoungeToken(B.token);this.subscribe("remoteQueueChange",function(){var d=Y.playerContext_.videoId;zqb()&&_.Da("yt-remote-session-video-id",d)})};
_.C(Ba,_.Dg);
Ba.prototype.connect=function(W,B){if(B){var z=B.listId,G=B.videoId,Y=B.videoIds,d=B.playerParams,E=B.clickTrackingParams,v=B.index,c={videoId:G},J=B.currentTime,g=B.locationInfo;B=B.loopMode;J!==void 0&&(c.currentTime=J<=5?0:J);d&&(c.playerParams=d);g&&(c.locationInfo=g);E&&(c.clickTrackingParams=E);z&&(c.listId=z);Y&&Y.length>0&&(c.videoIds=Y.join(","));v!==void 0&&(c.currentIndex=v);this.enableConnectWithInitialState_&&(c.loopMode=B||"LOOP_MODE_OFF");z&&(this.playerContext_.listId=z);this.playerContext_.videoId=
G;this.playerContext_.index=v||0;this.playerContext_.state=3;pX(this.playerContext_,J);this.autoplayMode_="UNSUPPORTED";z=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";cv("Connecting with "+z+" and params: "+(0,_.yy)(c));this.channelService.connect({method:z,params:(0,_.yy)(c)},W,AVq())}else cv("Connecting without params"),this.channelService.connect({},W,AVq());hab(this)};
Ba.prototype.setLoungeToken=function(W){this.channelService.setLoungeToken(W)};
Ba.prototype.dispose=function(){this.isDisposed()||(_.BV("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),IbO(this,3));_.Dg.prototype.dispose.call(this)};
Ba.prototype.disposeInternal=function(){Hni(this);F5K(this);Snr(this);_.JC(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.JC(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.GGx(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Dg.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var bnY=function(W){return _.OX(W.connectedDevices_,function(B){return B.type=="LOUNGE_SCREEN"})},cv=function(W){fK("conn",W)},IbO=function(W,B){W.publish("proxyStateChange",B)},hab=function(W){W.connectTimerId_=_.cS(function(){cv("Connecting timeout");
W.JSC$19830_disconnect_(1)},2E4)},Hni=function(W){_.JC(W.connectTimerId_);
W.connectTimerId_=NaN},Snr=function(W){_.JC(W.reconnectedCheckScreenTimeout_);
W.reconnectedCheckScreenTimeout_=NaN},jF1=function(W){F5K(W);
W.playingSyncTimerId_=_.cS(function(){wT(W,"getNowPlaying")},2E4)},F5K=function(W){_.JC(W.playingSyncTimerId_);
W.playingSyncTimerId_=NaN},Cq6=function(W){cv("Channel opened");
W.reconnecting_&&(W.reconnecting_=!1,Snr(W),W.reconnectedCheckScreenTimeout_=_.cS(function(){cv("Timing out waiting for a screen.");W.JSC$19830_disconnect_(1)},15E3))},OnO=function(W,B){var z=null;
if(B){var G=bnY(W);G&&(z={clientName:G.clientName,deviceMake:G.brand,deviceModel:G.model,osVersion:G.osVersion})}_.BV("yt.mdx.remote.remoteClient_",z);B&&(Hni(W),Snr(W));z=W.channelService.isChannelOpened()&&isNaN(W.connectTimerId_);B==z?B&&(IbO(W,1),wT(W,"getSubtitlesTrack")):B?(W.getOtherConnectedRemoteId_()&&W.playerContext_.reset(),IbO(W,1),wT(W,"getNowPlaying"),fbb(W)):W.JSC$19830_disconnect_(1)},XDf=function(W,B){var z=B.params.videoId;
delete B.params.videoId;z==W.playerContext_.videoId&&(_.mP.isEmpty(B.params)?W.playerContext_.trackData=null:W.playerContext_.trackData=B.params,W.publish("remotePlayerChange"))},K5f=function(W,B,z){var G=B.params.videoId||B.params.video_id,Y=parseInt(B.params.currentIndex,10);
W.playerContext_.listId=B.params.listId||W.playerContext_.listId;gP9(W.playerContext_,G,Y);W.publish("remoteQueueChange",z)},uZq=function(W,B){B.params=B.params||{};
K5f(W,B,"NOW_PLAYING_MAY_CHANGE");W.onStateChange_(B);W.publish("autoplayDismissed")};
Ba.prototype.onStateChange_=function(W){var B=parseInt(W.params.currentTime||W.params.current_time,10);pX(this.playerContext_,isNaN(B)?0:B);B=parseInt(W.params.state,10);B=isNaN(B)?-1:B;B==-1&&this.playerContext_.playerState==-1E3&&(B=-1E3);this.playerContext_.playerState=B;B=Number(W.params.loadedTime);this.playerContext_.loadedTime=isNaN(B)?0:B;B=Number(W.params.duration);this.playerContext_.duration_=isNaN(B)?0:B;B=this.playerContext_;var z=Number(W.params.liveIngestionTime);B.liveIngestionTime_=
z;B.isLive_=isNaN(z)?!1:!0;B=this.playerContext_;z=Number(W.params.seekableStartTime);W=Number(W.params.seekableEndTime);B.seekableStart_=isNaN(z)?0:z;B.seekableEnd_=isNaN(W)?0:W;this.playerContext_.playerState==1?jF1(this):F5K(this);this.publish("remotePlayerChange")};
Ba.prototype.onAdStateChange_=function(W){if(this.playerContext_.playerState!=-1E3){var B=1085;switch(parseInt(W.params.adState,10)){case 1:B=1081;break;case 2:B=1084;break;case 0:B=1083}this.playerContext_.playerState=B;W=parseInt(W.params.currentTime,10);pX(this.playerContext_,isNaN(W)?0:W);this.publish("remotePlayerChange")}};
var eaf=function(W,B){var z=B.params.muted=="true";W.playerContext_.volume=parseInt(B.params.volume,10);W.playerContext_.muted=z;W.publish("remotePlayerChange")},mV0=function(W,B){W.autoplayVideoId_=B.params.videoId;
W.publish("nowAutoplaying",parseInt(B.params.timeout,10))},xVK=function(W,B){W.autoplayVideoId_=B.params.videoId||null;
W.publish("autoplayUpNext",W.autoplayVideoId_)},DVf=function(W,B){W.autoplayMode_=B.params.autoplayMode;
W.publish("autoplayModeChange",W.autoplayMode_);W.autoplayMode_=="DISABLED"&&W.publish("autoplayDismissed")},QFb=function(W,B){var z=B.params.hasNext=="true";
W.playerContext_.hasPrevious=B.params.hasPrevious=="true";W.playerContext_.hasNext=z;W.publish("previousNextChange")};
Ba.prototype.isCapabilitySupportedOnConnectedDevices_=function(W){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var B=_.A(this.connectedDevices_),z=B.next();!z.done;z=B.next())if(!z.value.capabilities.has(W))return!1;return!0};
var oPr=function(W,B){B=B.message;B.params?cv("Received: action="+B.action+", params="+(0,_.yy)(B.params)):cv("Received: action="+B.action+" {}");switch(B.action){case "loungeStatus":B=(0,_.ft)(B.params.devices);W.connectedDevices_=_.xH(B,function(G){return new $5(G)});
B=!!_.OX(W.connectedDevices_,function(G){return G.type=="LOUNGE_SCREEN"});
OnO(W,B);B=W.isCapabilitySupportedOnConnectedDevices_("mlm");W.publish("multiStateLoopEnabled",B);break;case "loungeScreenDisconnected":Zi9(W.connectedDevices_,function(G){return G.type=="LOUNGE_SCREEN"});
OnO(W,!1);break;case "remoteConnected":var z=new $5((0,_.ft)(B.params.device));_.OX(W.connectedDevices_,function(G){return G.equals(z)})||_.kTT(W.connectedDevices_,z);
break;case "remoteDisconnected":z=new $5((0,_.ft)(B.params.device));Zi9(W.connectedDevices_,function(G){return G.equals(z)});
break;case "gracefulDisconnect":break;case "playlistModified":K5f(W,B,"QUEUE_MODIFIED");break;case "nowPlaying":uZq(W,B);break;case "onStateChange":W.onStateChange_(B);break;case "onAdStateChange":W.onAdStateChange_(B);break;case "onVolumeChanged":eaf(W,B);break;case "onSubtitlesTrackChanged":XDf(W,B);break;case "nowAutoplaying":mV0(W,B);break;case "autoplayDismissed":W.publish("autoplayDismissed");break;case "autoplayUpNext":xVK(W,B);break;case "onAutoplayModeChanged":DVf(W,B);break;case "onHasPreviousNextChanged":QFb(W,
B);break;case "requestAssistedSignIn":W.publish("assistedSignInRequested",B.params.authCode);break;case "onLoopModeChanged":W.publish("loopModeChange",B.params.loopMode);break;default:cv("Unrecognized action: "+B.action)}};
_.p=Ba.prototype;_.p.getProxyState_=function(){var W=3;this.isDisposed()||(W=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(W=1):W=2);return W};
_.p.JSC$19830_disconnect_=function(W){cv("Disconnecting with "+W);_.BV("yt.mdx.remote.remoteClient_",null);Hni(this);this.publish("beforeDisconnect",W);W==1&&Fg();this.channelService.disconnect(W);this.dispose()};
_.p.getPlayerContextData_=function(){var W=this.playerContext_;this.clientVideoId_&&(W=this.playerContext_.clone(),gP9(W,this.clientVideoId_,W.index));return tZ1(W)};
_.p.setPlayerContextData_=function(W){var B=this,z=new nK(W);z.videoId&&z.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=z.videoId,_.JC(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.cS(function(){if(B.clientVideoId_){var Y=B.clientVideoId_;B.clientVideoId_=null;B.playerContext_.videoId!=Y&&wT(B,"getNowPlaying")}},5E3));
var G=[];this.playerContext_.listId==z.listId&&this.playerContext_.videoId==z.videoId&&this.playerContext_.index==z.index||G.push("remoteQueueChange");this.playerContext_.playerState==z.playerState&&this.playerContext_.volume==z.volume&&this.playerContext_.muted==z.muted&&JBO(this.playerContext_)==JBO(z)&&(0,_.yy)(this.playerContext_.trackData)==(0,_.yy)(z.trackData)||G.push("remotePlayerChange");this.playerContext_.reset(W);_.$r(G,function(Y){this.publish(Y)},this)};
_.p.getOtherConnectedRemoteId_=function(){var W=this.channelService.getDeviceId(),B=_.OX(this.connectedDevices_,function(z){return z.type=="REMOTE_CONTROL"&&z.id!=W});
return B?B.id:""};
_.p.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.p.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.p.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.p.JSC$19830_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var fbb=function(W){_.JC(W.idleDisconnectTimerId_);W.idleDisconnectTimerId_=_.cS(function(){W.JSC$19830_disconnect_(1)},864E5)},wT=function(W,B,z){z?cv("Sending: action="+B+", params="+(0,_.yy)(z)):cv("Sending: action="+B);
W.channelService.sendMessage(B,z)};
Ba.prototype.sendMessageWithUserAction_=function(W,B){wT(this,W,B);fbb(this)};
Ba.prototype.JSC$19830_getXsrfToken_=function(){var W=_.rO.get("SAPISID","")||_.rO.get("__Secure-1PAPISID",void 0)||"",B=_.rO.get("__Secure-3PAPISID","")||"";if(!W&&!B)return"";W=_.Ob(_.Sk(W),2);B=_.Ob(_.Sk(B),2);return _.Ob(_.Sk(","+W+","+B),2)};
Ba.prototype.subscribe=Ba.prototype.subscribe;Ba.prototype.unsubscribeByKey=Ba.prototype.unsubscribeByKey;Ba.prototype.getProxyState=Ba.prototype.getProxyState_;Ba.prototype.disconnect=Ba.prototype.JSC$19830_disconnect_;Ba.prototype.getPlayerContextData=Ba.prototype.getPlayerContextData_;Ba.prototype.setPlayerContextData=Ba.prototype.setPlayerContextData_;Ba.prototype.getOtherConnectedRemoteId=Ba.prototype.getOtherConnectedRemoteId_;Ba.prototype.getReconnectTimeout=Ba.prototype.getReconnectTimeout_;
Ba.prototype.getAutoplayMode=Ba.prototype.getAutoplayMode_;Ba.prototype.getAutoplayVideoId=Ba.prototype.getAutoplayVideoId_;Ba.prototype.reconnect=Ba.prototype.JSC$19830_reconnect_;Ba.prototype.sendMessage=Ba.prototype.sendMessageWithUserAction_;Ba.prototype.getXsrfToken=Ba.prototype.JSC$19830_getXsrfToken_;Ba.prototype.isCapabilitySupportedOnConnectedDevices=Ba.prototype.isCapabilitySupportedOnConnectedDevices_;var gGi=function(W){KK.call(this,"ScreenServiceProxy");this.instance_=W;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.jk)(this.JSC$19833_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.jk)(this.onOnlineScreenChange_,this)))};
_.C(gGi,KK);_.p=gGi.prototype;_.p.getScreens=function(W){return this.instance_.$_gs(W)};
_.p.contains=function(W){return!!this.instance_.$_c(W)};
_.p.get=function(W){return this.instance_.$_g(W)};
_.p.start=function(){this.instance_.$_st()};
_.p.add=function(W,B,z){this.instance_.$_a(W,B,z)};
_.p.remove=function(W,B,z){this.instance_.$_r(W,B,z)};
_.p.updateName=function(W,B,z,G){this.instance_.$_un(W,B,z,G)};
_.p.disposeInternal=function(){for(var W=this.subscriptionKeys_.length,B=0;B<W;++B)this.instance_.$_ubk(this.subscriptionKeys_[B]);this.subscriptionKeys_.length=0;this.instance_=null;KK.prototype.disposeInternal.call(this)};
_.p.JSC$19833_onScreenChange_=function(){this.publish("screenChange")};
_.p.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
mK.prototype.$_st=mK.prototype.start;mK.prototype.$_gspc=mK.prototype.JSC$19792_getScreenByPairingCode;mK.prototype.$_gsppc=mK.prototype.JSC$19792_getScreenByPollingPairingCode;mK.prototype.$_c=mK.prototype.contains;mK.prototype.$_g=mK.prototype.get;mK.prototype.$_a=mK.prototype.add;mK.prototype.$_un=mK.prototype.updateName;mK.prototype.$_r=mK.prototype.remove;mK.prototype.$_gs=mK.prototype.getScreens;mK.prototype.$_gos=mK.prototype.JSC$19792_getOnlineScreens;mK.prototype.$_s=mK.prototype.subscribe;
mK.prototype.$_ubk=mK.prototype.unsubscribeByKey;var TSb=null,sKK=!1,NY=null,$J=null,JYq=null,at=[];var yBr=new _.el("yt-menu"),qnK=function(){},NJK=function(W,B,z){W=B=="right-click"?z.rightClickMenuPopupHint:z.menuPopupHint;
if(!(nPf(B)>10))return B=B||"default",yBr.set(B+"-impression",nPf(B)+1),W},nPf=function(W){return parseInt(yBr.get((W||"default")+"-impression")||0,10)};
_.i0(qnK);var $V1=function(){this.contexts_=new WeakMap;this.JSC$19839_networkService_=this.activeContext_=null},L50=function(W,B,z){var G=W.contexts_.get(B);
G||(G=new lFr(W.JSC$19839_networkService_),W.contexts_.set(B,G));W.activeContext_=G;z&&W.activeContext_.reset();W.activeContext_.start();return W.activeContext_};var Vp=function(){};
Vp.prototype.enqueue=function(){var W=this,B;return _.T(function(z){if(W.isCounterfactual())return(B=W.getCounterfactualData())&&W.shouldLogCounterfactualImpression()&&W.sendImpressionEndpoints(B),z.return();W.doEnqueue();_.HG(z)})};
Vp.prototype.sendImpressionEndpoints=function(W){_.Qx.getInstance().triggerOptionalAction("yt-service-request",{},W[0])};var Jk=function(W,B){this.renderer=W;this.page=B};
_.C(Jk,Vp);Jk.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Jk.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Jk.prototype.shouldLogCounterfactualImpression=function(){return!0};
Jk.prototype.doEnqueue=function(){var W=_.EM(this.page);W&&W.pause();this.renderer.impressionCommand&&_.Qx.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.W4(_.Qx.getInstance(),[this.renderer.promoCommand],this.page)};var UVj=function(W,B){this.renderer=W;this.resolver=_.zN();this.JSC$19851_enforcementCounter=new _.YdF;B?this.JSC$19851_playerManager=_.EM(B):this.JSC$19851_playerManager=null;_.k_(1,!0)};
_.C(UVj,Vp);_.p=UVj.prototype;_.p.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var W=[];this.renderer.impressionEndpoints.forEach(function(B){(B=_.$B(B))&&W.push(B)});
return W}};
_.p.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.p.shouldLogCounterfactualImpression=function(){var W=_.nVk();W?(this.JSC$19851_enforcementCounter.increment("POPUP"),_.k_(3)):_.k_(2);return W};
_.p.cancel=function(){this.resolver.promise.cancel()};
_.p.doEnqueue=function(){var W=this;_.nVk()?(this.JSC$19851_enforcementCounter.increment("POPUP"),_.k_(3),MZi(this)):this.JSC$19851_playerManager?(this.resolver.promise.then(function(){MZi(W)}),ab0(this.resolver,this.JSC$19851_playerManager)):_.k_(2)};
var ab0=function(W,B){var z=_.zN();B.getPlayerPromise().then(function(G){z.resolve(G)});
z.promise.then(function(G){G.addEventListener("onAbnormalityDetected",W.resolve);_.xX(W.promise,function(){G.removeEventListener("onAbnormalityDetected",W.resolve)})});
W.promise.thenCatch(function(){z.promise.cancel()})},MZi=function(W){_.k_(3);
var B={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:W.renderer}};B=_.Qx.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:B},{});Promise.all(B).then(function(){Ra0();W.JSC$19851_playerManager&&W.JSC$19851_playerManager.pause()})},Ra0=function(){Bci(function(W,B){_.qh0(W,B);
W===0?_.k_(7):_.k_(4)})};var WJ0=function(W,B){this.renderer=W;this.page=B;this.resolver=_.zN()};
_.C(WJ0,Vp);_.p=WJ0.prototype;_.p.cancel=function(){this.resolver.promise.cancel()};
_.p.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.p.isCounterfactual=function(){return!this.renderer.isVisible};
_.p.shouldLogCounterfactualImpression=function(){return!0};
_.p.doEnqueue=function(){var W=this;this.resolver.promise.then(function(){var z={popup:{mealbarPromoRenderer:W.renderer},popupType:"MEALBAR"};_.Qx.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:z},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var B=_.EM(this.page);B&&BsO(this.resolver,B)}break;default:this.resolver.resolve()}};
var BsO=function(W,B){var z=_.zN();B.getPlayerPromise().then(function(G){z.resolve(G)});
z.promise.then(function(G){G.addEventListener("onAdEnd",W.resolve);_.xX(W.promise,function(){G.removeEventListener("onAdEnd",W.resolve)})});
W.promise.thenCatch(function(){z.promise.cancel()})};var z4b=function(W,B){this.renderer=W;this.page=B};
_.C(z4b,Vp);_.p=z4b.prototype;_.p.cancel=function(){this.JSC$19859_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19859_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19859_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.p.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.p.isCounterfactual=function(){return!this.renderer.isVisible};
_.p.shouldLogCounterfactualImpression=function(){return!0};
_.p.doEnqueue=function(){var W=this,B,z;((B=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(z=B.playbackUpsellDialogTriggerConditionData)==null?void 0:z.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19859_downloadedVideosCountSelectorUnsubscriber=_.NG(_.Y_(),RYb,function(G,Y){G>Y&&(GXf(W),W.cancel())}):GXf(this)};
var GXf=function(W){var B={popup:{upsellDialogRenderer:W.renderer},popupType:"MODAL"};_.Qx.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:B},{});(W=_.EM(W.page))&&W.pause()};var gT={},Yir=(gT.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",gT.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",gT.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",gT.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",gT.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",gT.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",gT.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",gT),d26=function(W,B){this.renderer=W;this.targetManager=
B};
_.C(d26,Vp);_.p=d26.prototype;_.p.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19866_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19866_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19866_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.p.getCounterfactualData=function(){if(this.isCounterfactual()){var W;return(W=this.renderer.promoConfig)==null?void 0:W.impressionEndpoints}};
_.p.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.p.shouldLogCounterfactualImpression=function(){return!0};
_.p.doEnqueue=function(){var W=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19866_downloadedVideosCountSelectorUnsubscriber=_.NG(_.Y_(),RYb,function(B,z){W.renderer.targetId&&B>z&&(NnK(W.targetManager,W.renderer.targetId,pHi(W)),W.cancel())});
break;default:NnK(this.targetManager,this.renderer.targetId,pHi(this))}};
var pHi=function(W){var B;if((B=W.renderer.suggestedPosition)==null?0:B.type)var z=Yir[W.renderer.suggestedPosition.type];z||(z="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:W.renderer},popupType:"HINT",position:z}}};var AeO=function(){this.previousPage=null},iYn;
AeO.prototype.registerPromoCommand=function(W,B){ER0(this,void 0,void 0,_.k(W.roadblock,DKr),void 0,void 0,B)};
var ER0=function(W,B,z,G,Y,d,E){W.previousPage!==E&&W.pendingTooltipPromo&&W.pendingTooltipPromo.cancel();W.previousPage=E;Y?(W.pendingEnforcementPromo&&W.pendingEnforcementPromo.cancel(),W.pendingEnforcementPromo=new UVj(Y,E),W.pendingEnforcementPromo.enqueue()):d?(W.pendingCommandWrapperPromo=new Jk(d,E),W.pendingCommandWrapperPromo.enqueue()):G?(W.pendingRoadblockPromo&&W.pendingRoadblockPromo.cancel(),W.pendingRoadblockPromo=new z4b(G,E),W.pendingRoadblockPromo.enqueue()):B?(W.pendingMealbarPromo&&
W.pendingMealbarPromo.cancel(),W.pendingMealbarPromo=new WJ0(B,E),W.pendingMealbarPromo.enqueue()):z&&(W.pendingTooltipPromo&&W.pendingTooltipPromo.cancel(),W.pendingTooltipPromo=new d26(z,_.aq()),W.pendingTooltipPromo.enqueue())},TsO=function(){iYn||(iYn=new AeO);
return iYn};var kG6=!1;var UF6=function(W,B){var z=_.eD("SESSION_INDEX");this.actionToken_=W;this.commonToken_=B;this.sessionIndex_=z},Lui=function(W){var B=_.zN(),z=_.q6("payments.business.integration.bootstrap"),G=_.q6("payments.business.integration"),Y=G.Style.create().withMaterialDesignStyle(),d=G.mashupMode.popup("instrument-manager");
z.asMashupMode(d).usingUserIndex(W.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(Y).inStandaloneContext(G.standaloneContextAuthId.forUserId()).instrumentManager(W.actionToken_,W.commonToken_.length>0?W.commonToken_:void 0,function(E){var v=E.instrumentId;v?B.resolve(v):(v=_.q6("payments.business.integration.scenario.InstrumentManager"),B.reject(E.errorCode&&E.errorCode===v.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(E){_.xr(E);
B.reject("instrumentManagerLoadError")});
return B.promise};var dM=function(W,B,z){this.payloadName="transactionFlowFailed";this.payload={errorType:W,serializedTransactionFlowLoggingParams:B,isUserDismiss:z===void 0?!1:z}};
_.BV("yt.ypc.shared.YpcTransactionFlowError",dM);var tk=function(){return _.SJ.apply(this,arguments)||this};
_.C(tk,_.SJ);tk.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
tk.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
tk.prototype.onErrorMessageDismiss=tk.prototype.onErrorMessageDismiss;_.Q([_.F({readOnly:!0,observer:"errorRendererChanged"}),_.y("design:type",Object)],tk.prototype,"errorRenderer",void 0);_.Q([_.IN("yt-live-chat-error-message-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tk.prototype,"onErrorMessageDismiss",null);_.Q([_.bP()],tk);var vRb=[tk.prototype];var ceq;var wHj;var Vhf=new _.el("yt-live-chat"),Jei=new Map;Jei.set("timestamp_toggle","show-timestamps");Jei.set("reactions_toggle","allow-reactions");var sQ=function(){return _.S.apply(this,arguments)||this};
_.C(sQ,_.S);_.p=sQ.prototype;_.p.menuItemIdentifierChanged=function(){var W;(W=this.data)!=null&&W.menuItemIdentifier&&(W=Jei.get(this.data.menuItemIdentifier))&&(_.r("enable_lwe_web_mute")?(W=Vhf.get(W),this.isToggled=!(W===void 0?!this.data.isToggled:!W)):this.isToggled=Vhf.get(W))};
_.p.onFocus=function(){this.toggleButton.focus()};
_.p.onTap=function(){var W=this.data.command;W&&this.componentBehavior.resolveCommand(W)};
_.p.computeText=function(W,B,z){return this.componentBehavior.getSimpleString(W?z:B)};
_.p.computeIcon=function(W,B,z){return(W=W?z:B)&&W.iconType?_.lg(W.iconType):""};
sQ.prototype.onTap=sQ.prototype.onTap;sQ.prototype.onFocus=sQ.prototype.onFocus;sQ.prototype.menuItemIdentifierChanged=sQ.prototype.menuItemIdentifierChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],sQ.prototype,"componentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],sQ.prototype,"data",void 0);
_.Q([_.F({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.y("design:type",String)],sQ.prototype,"icon",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],sQ.prototype,"isToggled",void 0);_.Q([_.Hf("tp-yt-paper-toggle-button"),_.y("design:type",Object)],sQ.prototype,"toggleButton",void 0);_.Q([_.oN("data.menuItemIdentifier"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sQ.prototype,"menuItemIdentifierChanged",null);
_.Q([_.IN("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sQ.prototype,"onFocus",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sQ.prototype,"onTap",null);_.Q([_.NJ({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],sQ);
_.D(sQ,"yt-live-chat-toggle-renderer",function(){if(wHj===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;ceq===void 0&&(ceq=document.createElement("template"));var G=ceq;z.call(B,G.content.cloneNode(!0),W.content.firstChild);wHj=W}W=wHj;return W},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var gRq=new _.t1("NAVIGATION_PROGRESS_TOKEN");var th1={},sWq={},PMr=(sWq[Fhf.name]=!0,sWq),Pv=function(){var W=_.SJ.apply(this,arguments)||this;W._noAccessors=!0;W.tabGesturesIsActive=!1;W.actionRouterIsRoot=!0;W.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"};W.pageTitle="";W.titleSuffix="YouTube";W.unseenNotificationCount=
0;W.hasNavigated=!1;W.hasSetScrollTopForNavigation=!1;W.pagePreparer=null;W.zwiebackInitJobId=0;W.dataUpdatePromise=null;W.loadDepsPromise=_.gV();W.hasPendingNavigation=!1;W.pendingPlayerOnResponseReceivedActions=[];return W};
_.C(Pv,_.SJ);Pv.prototype.attached=function(){ZYj(this);document.addEventListener("yt-navigate-cache",_.Co(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var W=Zj();W.init();W.dispatchElement=this.hostElement};
var ZYj=function(W,B){B=B===void 0?0:B;var z=_.dO().resolve(_.Y8(_.M1));if(z)re0(W,z);else{if(B>=5)throw Error("ll");setTimeout(function(){ZYj(W,B+1)},0)}},re0=function(W,B){B.addEventListener("yt-navigate-start",_.Co(W,W.onYtNavigateStart));
B.addEventListener("yt-navigate-finish",_.Co(W,W.onYtNavigateFinish));B.addEventListener("yt-navigate-error",_.Co(W,W.onYtNavigateError));B.addEventListener("yt-page-data-fetched",_.Co(W,W.onYtPageDataFetched))};
_.p=Pv.prototype;_.p.detached=function(){var W=_.dO().resolve(_.M1);W.removeEventListener("yt-navigate-start",_.Co(this,this.onYtNavigateStart));W.removeEventListener("yt-navigate-finish",_.Co(this,this.onYtNavigateFinish));W.removeEventListener("yt-navigate-error",_.Co(this,this.onYtNavigateError));W.removeEventListener("yt-page-data-fetched",_.Co(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Co(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.p.setPageOffset=function(W,B){W?_.c0(this.hostElement,"yt-set-page-offset",[W,B]):_.jy(Error("ml"))};
_.p.setPageOffsetForNavigation=function(W,B){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(W,B))};
_.p.onYtNavigateSetPageOffset=function(W,B){this.setPageOffsetForNavigation(B.page,B.offset)};
_.p.getPageOffset=function(){var W=_.tH(this.hostElement).querySelector("#page-manager").getCurrentPage(),B=0;W&&(B=_.c0(this.hostElement,"yt-get-page-offset",[W])[0]);return B};
_.p.onYtHistoryPop=function(W,B){if(_.md("DISABLE_WARM_LOADS"))W.preventDefault(),window.location.reload();else{var z=_.dO().resolve(_.M1);z.hasPendingNavigation()&&W.preventDefault();z.cancelPendingNavigation();_.wV(this.hostElement,"yt-pending-navigation-cancelled");B.errorMsg&&(W=B.errorMsg.split(" - "),B=Error(W[0]),W.length==2&&W[1]&&(_.XC(B,W[1]),_.Oc(B)),window.location.reload())}};
_.p.onYtHistoryLoad=function(W,B){var z=this;if(_.md("DISABLE_WARM_LOADS"))window.location.reload();else{(W=B.endpoint)&&Object.keys(W).length||(W=null);var G=B.historyEntry,Y=_.dO().resolve(_.M1),d=_.dO().resolve(_.ij),E=null;G&&G.rootData&&(E=G.rootData);var v=E&&kXn(E);!E||v||E.filler?W?(Y.navigate(W,!0),lSK(this,W)):(B.legacyBorder||v||(B.JSC$30183_savedComponentState==null&&E==null?_.Oc(new _.oX("Incomplete history entry",B.forward)):_.fG(new _.oX("Malformed history entry",B.JSC$30183_savedComponentState,
B.forward,E))),window.location.reload()):(_.o00({isHot:!0}),_.Ki({webInfo:{navigationReason:"h"}}),_.$sD(),_.mj("srt"),_.mj("pdc"),this.cancelPendingTasks(),CM9(this,B.forward,E),E.player&&(E.player.loaded=!1),lSK(this,W),_.Tp6(Y,W||{},E,2,{},!1,B).then(function(){z.setPageOffset(d.getCurrentPage(),G.scrollTop||0)}))}};
_.p.initHistoryManager=function(W){if(!this.hasNavigated){this.hasNavigated=!0;var B=_.tH(this.hostElement).querySelector("#page-manager").getCurrentData();W=isNaN(W)?this.getPageOffset():W;var z=_.dO().resolve(_.M1).currentEndpoint;this.replaceState(z,B,W)}};
_.p.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.p.onYtNavigateStart=function(W,B){this.cancelPendingTasks();B.noProgressBar||(W=_.dO().resolve(_.Y8(gRq)))&&W.start();W=this.hasPendingNavigation?null:this.data;var z=_.dO().resolve(_.ij),G,Y,d;_.r("kevlar_use_vimio_behavior")&&!((G=B.endpoint)==null?0:(Y=G.commandMetadata)==null?0:(d=Y.webCommandMetadata)==null?0:d.ignoreNavigation)&&(G=z.getCurrentPage())&&G.disconnectVisibilityRoot();z.prepareForNavigation(B.pageType,B.endpoint);_.r("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.F$(1,
"pcl"),_.Sx(this.pagePreparer,z.preparePage.bind(z,B.pageType,B.endpoint)));G=this.getPageOffset();this.initHistoryManager(G);B.reload||this.hasPendingNavigation?(_.r("web_enable_delay_shorts_sequence_call")&&B.pageType==="shorts"&&B.reload&&_.v0(this.hostElement,"yt-shorts-reset"),this.replaceState(B.endpoint,W,G)):(W==null?void 0:W.page)==="watch"&&B.pageType==="watch"&&_.r("kevlar_replace_watch_to_watch_history_state")?this.replaceState(B.endpoint,W,G):(W==null?void 0:W.page)!=="shorts"||B.pageType!==
"shorts"||B.endpoint.reelWatchEndpoint.sequenceParams||_.r("short_to_short_back_nav_killswitch")?B.type!="navigate-back"&&B.type!="navigate-forward"&&(B.pageType==="shorts"&&_.v0(this.hostElement,"yt-shorts-reset"),this.saveAndPush(B.url,B.endpoint,W,G)):(_.r("web_enable_delay_shorts_sequence_call")&&(B.endpoint.reelWatchEndpoint.sequenceParams=W==null?void 0:W.cachedSequenceParams,B.endpoint.reelWatchEndpoint.sequenceProvider=W==null?void 0:W.cachedSequenceProvider),this.replaceState(B.endpoint,
W,0));this.hasPendingNavigation=!0};
var ISY=function(W){W.hasPendingNavigation=!1;(W=_.dO().resolve(_.Y8(gRq)))&&W.finish()};
Pv.prototype.onYtNavigateError=function(W,B){ISY(this);W=this.get("endpoint.commandMetadata.webCommandMetadata.url",B);var z=_.Uw(window.location.href);W&&!z.pbjreload&&(B=B.navigationErrorReason||"10",_.r("kevlar_parent_on_pbjreload")&&(z={csn:_.m1()},this.get("data.endpoint.clickTrackingParams")&&(z.itct=this.data.endpoint.clickTrackingParams),_.Yq(W,z)),_.zS(_.M6(W,{pbjreload:B})))};
Pv.prototype.onYtNavigateCache=function(W,B){var z=this,G=B.url,Y=B.endpoint,d=B.data;W=!!B.miniplayer;B=!!B.skipHistory;if(G&&Y&&d){var E=this.getPageOffset(),v=this.data||null;B||this.saveAndPush(G,Y,v,E);G=_.Tp6(_.dO().resolve(_.M1),Y,d,W?4:3,{},W);W&&G.then(function(){z.dataUpdatePromise&&z.dataUpdatePromise.then(function(){var c=_.dO().resolve(_.ij);z.setPageOffset(c.getCurrentPage(),0)})})}};
Pv.prototype.onYtNavigateFinish=function(W,B){var z=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){oRO(z,B.fromHistory)})};
var oRO=function(W,B){ISY(W);if(W.pendingPlayerOnResponseReceivedActions){for(var z=_.A(W.pendingPlayerOnResponseReceivedActions),G=z.next();!G.done;G=z.next())_.oB(G.value,W.hostElement);W.pendingPlayerOnResponseReceivedActions=[]}z=_.dO().resolve(_.ij);B||!W.hasNavigated||_.r("web_disable_scroll_on_navigate_finish")||((B=z.getCurrentPage())?B.is==="ytd-shorts"||W.tabGesturesIsActive||W.setPageOffsetForNavigation(B,0):_.Oc(Error("nl")));_.WJ(function(){_.WJ(function(){_.mj("pda")})})};
Pv.prototype.onYtNavigate=function(W){if(!W.detail.endpoint){var B=new _.oX("Error: Missing yt-navigate endpoint from target:",W.target,W.target.nodeName);_.jy(B)}if(B=_.r("cold_missing_history"))B=Zj(),B.init(!1),B=!(B.browserHistory.boundHistoryReplaceState&&B.browserHistory.boundHistoryPushState);if(B){_.uk("DISABLE_WARM_LOADS",!0);B=new _.oX("Failed to initialize history manager",this.getDebugString());var z=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
z?_.Oc(B):_.jy(B)}B=W.detail.endpoint;var G,Y;_.r("debug_forward_web_query_parameters")&&((G=B.commandMetadata)==null?0:(Y=G.webCommandMetadata)==null?0:Y.url)&&(B=JSON.parse(JSON.stringify(B)),B.commandMetadata.webCommandMetadata.url=_.Glu(B.commandMetadata.webCommandMetadata.url,window.location.search));W={type:0,command:B,form:{params:W.detail.params,tempData:W.detail.tempData||{},requestType:W.detail.type,createScreenConfig:W.detail.createScreenConfig,reload:W.detail.reload?W.detail.reload:!1,
requestForm:W.detail}};_.r("kevlar_yt_navigate_command_handler")?(G=_.dO().resolve(_.p4),W.form.skipDefaultElement=!0,G.resolveCommand(B,{form:W.form})):this.handleNavigate(W)};
Pv.prototype.handleNavigate=function(W){this.hasSetScrollTopForNavigation=!1;var B=_.dO().resolve(_.M1),z=W.form||{};B.navigate(W.command,z.reload,z.params,z.tempData,z.requestType,z.createScreenConfig,z.ignoreConfirmation,z.requestForm)&&lSK(this,W.command,z.tempData)};
Pv.prototype.onYtPageDataFetched=function(W,B){try{_.zGQ().reset();this.data=B.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.dO().resolve(_.ij).updatePageData(this.data);if(!_.r("web_service_params_response_processor")){var z=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);z&&pgj(z);var G=this.get("response.responseContext.serviceTrackingParams",
this.data);G&&pgj(G)}var Y=this.get("playerResponse.onResponseReceivedActions",this.data);Y&&(Y=h4r(this,Y));Y&&_.Jr(this.hostElement,Y,this.hostElement);var d=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),E=this.get("response.responseContext.consistencyTokenJar",this.data);if(d||E){var v=_.aHQ(),c=(0,_.mP.getValues)(v.tokenJars);d&&v.replace(c,d);E&&v.replace(c,E)}}catch(J){_.jy(J)}};
var lSK=function(W,B,z){try{W.onYtEndpointChangeHandler(B,z)}catch(G){_.jy(G)}};
_.p=Pv.prototype;_.p.onYtEndpointChangeHandler=function(){};
_.p.setPageTitle=function(W){W=(this.pageTitle=W)?W+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+W};
_.p.onYtUpdateTitle=function(W,B){this.setPageTitle(B)};
_.p.setUnseenNotificationCount=function(W){this.unseenNotificationCount=W;this.setPageTitle(this.pageTitle)};
_.p.handleUpdateNotificationsUnseenCountAction=function(W){_.k(W,v10)&&((W=_.k(W,v10).unseenCount)?this.setUnseenNotificationCount(W):this.setUnseenNotificationCount(0))};
_.p.handleClearCookieAction=function(W){var B;(W=(B=_.k(W,APY))==null?void 0:B.cookieName)&&_.klT(W)};
_.p.onYtUpdateUnseenNotificationCount=function(W,B){this.setUnseenNotificationCount(B)};
_.p.loadData=function(W){var B=this;this.loadDepsPromise.then(function(){var z=_.dO().resolve(_.Y8(_.M1));z||_.jy(Error("ol"));if(W&&W.response){if(!W.endpoint){var G=_.Lt(window.document.location.href)||"/",Y="";if(G==="/"||G.startsWith("/?"))Y="WEB_PAGE_TYPE_BROWSE";W.endpoint={commandMetadata:{webCommandMetadata:{url:G,webPageType:Y,rootVe:3854}}}}_.Tp6(z,W.endpoint,W,5,{})}else W.endpoint?z.navigate(W.endpoint):z.navigate(_.nS);_.fg.cancelJob(B.zwiebackInitJobId);B.zwiebackInitJobId=_.fg.addLowPriorityJob(lN9)})};
var Zj=function(){return _.dO().resolve(_.QO)};
Pv.prototype.getDebugString=function(){return Zj().getDebugString()};
Pv.prototype.getThirdPartyManipulationSuspected=function(){return Zj().getThirdPartyManipulationSuspected()};
Pv.prototype.replaceState=function(W,B,z){Zj().saveAndReplace(W,B,z)};
Pv.prototype.saveAndPush=function(W,B,z,G){Zj().saveAndPush(W,B,z,G)};
var kXn=function(W){return _.k(W.endpoint,_.W0)||_.k(W.endpoint,_.SW)?!0:!W||isNaN(W.expirationTime)?!1:(0,_.Yb)()>W.expirationTime},CM9=function(W,B,z){var G=W.get("response.trackingParams",z),Y=_.et(),d=_.m1();
if(G&&Y&&d&&(G=W.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",z),!G&&z.rootVe&&(G=z.rootVe),Y=B?"forwardButton":"backButton",B=W.get("playerResponse.topbar.desktopTopbarRenderer."+Y+".buttonRenderer.command.clickTrackingParams",W.data),W=W.get("response.topbar.desktopTopbarRenderer."+Y+".buttonRenderer.command.clickTrackingParams",W.data),B=(W=B||W)?_.XF(W):void 0,W=_.SK(),Y=[_.gV(z)],_.KS(W,G,B,{dataPromises:Y,csnToClone:z.csn}),z.graftedVes))for(z=
_.A(z.graftedVes),G=z.next();!G.done;G=z.next())_.ui(W,G.value)};
Pv.prototype.onStoreGraftedVeAction=function(W){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(W)):_.Oc(Error("pl"))};
var h4r=function(W,B){return B.filter(function(z){for(var G in z)if(PMr[G])return W.pendingPlayerOnResponseReceivedActions.push(z),!0;return!1})};
_.G5.Object.defineProperties(Pv.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Pv.prototype.onStoreGraftedVeAction=Pv.prototype.onStoreGraftedVeAction;Pv.prototype.loadData=Pv.prototype.loadData;Pv.prototype.onYtUpdateUnseenNotificationCount=Pv.prototype.onYtUpdateUnseenNotificationCount;Pv.prototype.handleClearCookieAction=Pv.prototype.handleClearCookieAction;Pv.prototype.handleUpdateNotificationsUnseenCountAction=Pv.prototype.handleUpdateNotificationsUnseenCountAction;Pv.prototype.setUnseenNotificationCount=Pv.prototype.setUnseenNotificationCount;
Pv.prototype.onYtUpdateTitle=Pv.prototype.onYtUpdateTitle;Pv.prototype.setPageTitle=Pv.prototype.setPageTitle;Pv.prototype.onYtEndpointChangeHandler=Pv.prototype.onYtEndpointChangeHandler;Pv.prototype.onYtPageDataFetched=Pv.prototype.onYtPageDataFetched;Pv.prototype.handleNavigate=Pv.prototype.handleNavigate;Pv.prototype.onYtNavigate=Pv.prototype.onYtNavigate;Pv.prototype.onYtNavigateFinish=Pv.prototype.onYtNavigateFinish;Pv.prototype.onYtNavigateCache=Pv.prototype.onYtNavigateCache;
Pv.prototype.onYtNavigateError=Pv.prototype.onYtNavigateError;Pv.prototype.onYtNavigateStart=Pv.prototype.onYtNavigateStart;Pv.prototype.cancelPendingTasks=Pv.prototype.cancelPendingTasks;Pv.prototype.initHistoryManager=Pv.prototype.initHistoryManager;Pv.prototype.onYtHistoryLoad=Pv.prototype.onYtHistoryLoad;Pv.prototype.onYtHistoryPop=Pv.prototype.onYtHistoryPop;Pv.prototype.onYtNavigateSetPageOffset=Pv.prototype.onYtNavigateSetPageOffset;Pv.prototype.setPageOffset=Pv.prototype.setPageOffset;
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Pv.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Pv.prototype,"data",void 0);_.Q([_.IN("yt-navigate-set-page-offset"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Pv.prototype,"onYtNavigateSetPageOffset",null);
_.Q([_.IN("yt-history-pop"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Pv.prototype,"onYtHistoryPop",null);_.Q([_.IN("yt-history-load"),_.y("design:type",Function),_.y("design:paramtypes",[Event,_.SqD]),_.y("design:returntype")],Pv.prototype,"onYtHistoryLoad",null);_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Pv.prototype,"onYtNavigate",null);
_.Q([_.IN("yt-update-title"),_.y("design:type",Function),_.y("design:paramtypes",[Event,String]),_.y("design:returntype")],Pv.prototype,"onYtUpdateTitle",null);_.Q([_.IN("yt-update-unseen-notification-count"),_.y("design:type",Function),_.y("design:paramtypes",[Event,Number]),_.y("design:returntype")],Pv.prototype,"onYtUpdateUnseenNotificationCount",null);_.Q([_.bP()],Pv);th1.YtdAppBehavior=[_.ye.YtActionHandlerBehavior,Pv.prototype];var rT=function(){var W=_.SJ.apply(this,arguments)||this;W._noAccessors=!0;return W};
_.C(rT,_.SJ);rT.prototype.ready=function(){var W=this;_.tH(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){W.onChange_()})};
rT.prototype.dataChanged_=function(){_.tH(this.hostElement).querySelector("#checkbox").checked=!1};
rT.prototype.onChange_=function(){var W=_.tH(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.v0(this.hostElement,"yt-dismissal-reason-"+W,this.data.feedbackToken)};
rT.prototype.dataChanged_=rT.prototype.dataChanged_;_.Q([_.F(),_.y("design:type",Object)],rT.prototype,"data",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rT.prototype,"dataChanged_",null);_.Q([_.bP()],rT);var HY9=[rT.prototype];var ks=function(){var W=_.SJ.apply(this,arguments)||this;W.timeoutJobId=0;W.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return W};
_.C(ks,_.SJ);ks.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
ks.prototype.startTimeout=function(){var W=this,B=this.data&&this.data.displayDurationSeconds;B&&!this.timeoutJobId&&(this.timeoutJobId=_.CG(_.fg,function(){_.c0(W.hostElement,"yt-close-popup-action",[W.is]);W.timeoutJobId=0},B*1E3))};
ks.prototype.cancelTimeout=function(){_.fg.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
ks.prototype.ytdHatsSurveyBehaviorDataChanged=ks.prototype.ytdHatsSurveyBehaviorDataChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],ks.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ks.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.Q([_.bP()],ks);var FJb=[_.ye.YtActionHandlerBehavior,ks.prototype];var Si6=function(W,B){var z;return((z=W.prefixMapping)==null?0:z[B])?W.prefixMapping[B]:W.SHARED_RENDERERS_.hasOwnProperty(B)?"yt":W.prefix},l3={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}};l3.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.r("kevlar_mealbar_above_player"),modern:_.r("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"}};
l3.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};l3.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};l3.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
l3.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)"}};
l3.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};
l3.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};
l3.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};
l3.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};l3.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"}};
l3.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};l3.TOAST={component:null,properties:{}};var bYi=new function(W,B,z){this.supportedPopups=W;this.navigationEndpointPopupMap=B;this.popupTypeMap=z;this.supportedPopups=W;this.navigationEndpointPopupMap=B;this.popupTypeMap=z}({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:_.r("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"}),jW0=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$19916_popupConfig=l3;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 fSi=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Aa.getInstance()},CX=function(W,B){var z=W.pageNameToElement.get(B);
if(!z){switch(B){case "watch":var G=_.r("web_watch_force_learning_journey_for_testing")?_.H7("ytd-watch-learning-journey"):_.r("kevlar_watch_fixie")?_.H7("ytd-watch-fixie"):_.r("kevlar_watch_grid")?_.H7("ytd-watch-grid"):_.H7("ytd-watch-flexy");break;case "learning_journey_watch":G=_.H7("ytd-watch-learning-journey");break;case "shorts":G=_.H7("ytd-shorts");break;case "search":G=_.H7("ytd-search");break;case "channel":G=_.H7("ytd-browse");G.pageSubtype="channels";break;case "trending":G=_.H7("ytd-browse");
G.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":G=
_.H7("ytd-browse");G.pageSubtype=B;break;case "browse":G=_.H7("ytd-browse");break;default:_.Oc(new _.oX("Error getting page element for type",B))}z=G;W.pageNameToElement.set(B,z)}return z};
fSi.prototype.preparePage=function(W,B,z){z&&(W=_.Cs(z)||W);if(W!=="watch"&&W!=="learning_journey_watch"){var G=this.elementPoolPopulator,Y=W;Y!=G.targetPage_&&G.pendingPages_.indexOf(Y)>-1&&(G.targetPage_&&(G.pendingPages_.unshift(G.targetPage_),G.abort()),UgY(G,Y),_.o7H(G,Y))}if((G=CX(this,W))||!_.k(z,_.DD)){G.isAttached||G===B||(G.hidden=!0);if(!G.data&&(W!=="watch"&&W!=="learning_journey_watch"||!_.r("swatcheroo_page_pool_dont_provide_filler_data"))){var d;if(W=(d=_.eD("FILLER_DATA",{})[W])==
null?void 0:d.response)G.data=W}return G}};var OYr=function(W){this.JSC$32083_clientRoot=W;this.playlistHandlerActionMap={"yt-add-to-playlist-command":jKi,"yt-end-playlist-command":fNY,"yt-recover-playlist-command":X2i,"yt-refresh-playlist-command":eIO,"yt-playlist-remove-videos-action":KTf};_.yx(_.Qx.getInstance(),this.playlistHandlerActionMap,this.JSC$32083_clientRoot);p8b()},XHb;var IL=function(W,B,z){this.apiKey=W;this.endpoint=B;this.confidenceThreshold=z===void 0?.5:z;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=B==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||B==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
B==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||B==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new Gaf};
_.p=IL.prototype;
_.p.start=function(W){if(this.state===0)if(this.isOnline()){W.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=W.supportsHttpHeadersOverwriteParam);W.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=W.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.e4("voice_assistant");_.xq("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=W.languageCode||"en-US";this.supportsCrossDomainXhr=W.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=W.youtubeAssistantRequest||null;this.listeningHandler=W.listeningHandler||this.listeningHandler;this.audioDetectedHandler=W.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=W.stopHandler||this.stopHandler;this.completeHandler=W.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=W.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=W.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
W.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=W.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=W.accessToken;this.additionalHeaders=W.additionalHeaders||{};var B;this.prefetchResponseTimeoutMs=(B=W.prefetchResponseTimeoutMs)!=null?B:this.prefetchResponseTimeoutMs;KJ9(this);this.startAudio();u7O(this)}else this.errorHandler("OFFLINE")};
_.p.stop=function(W){var B=W===void 0?{}:W;W=B.logCancel===void 0?!0:B.logCancel;var z=B.logMicClosed===void 0?!0:B.logMicClosed;var G=B.handleError===void 0?!0:B.handleError;B=B.handleStop===void 0?!0:B.handleStop;this.state!==0&&(W&&oL("voz_cx"),hk(this,{logMicClosed:z,handleStop:B}),G&&this.errorHandler("ABORTED"))};
_.p.getState=function(){return this.state};
_.p.isSupported=function(){return!0};
_.p.stopAudio=function(W){(W===void 0||W)&&oL("voz_mf")};
_.p.startAudio=function(){oL("voz_vp");return _.gV(null)};
var e4b=function(W,B){W.channelOpen&&(W.state!==2&&(W.state=2,oL("voz_ss"),W.listeningHandler()),B=new Uint8Array(B),B='{ "audioIn": "'+_.Ob(B)+'" }',W.channel.send(B))},hk=function(W,B){var z=B===void 0?{}:B;
B=z.logMicClosed===void 0?!0:z.logMicClosed;z=z.handleStop===void 0?!0:z.handleStop;W.vozEndOfDataTimeout>-1&&(clearTimeout(W.vozEndOfDataTimeout),W.vozEndOfDataTimeout=-1);m2f(W);W.stopAudio(B);W.channel&&(W.channelOpen=!1,W.manuallyClosedChannel=!0,W.channel.close(),W.channel=void 0);W.transcribedSpeechResults=[];W.state=0;z&&W.stopHandler()},KJ9=function(W){var B={httpHeadersOverwriteParam:W.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},W.additionalHeaders,W.accessToken&&W.isUsingVoz?{Authorization:"Bearer "+W.accessToken}:{"x-goog-api-key":W.apiKey}),supportsCrossDomainXhr:W.supportsCrossDomainXhr};W.channel=new Xv(W.endpoint,B);W.channel.open();_.ug(W.channel,"w",function(){var z=W.channel,G=z.send,Y=W.isUsingVoz?"PLACEHOLDER":"example";Y={config:{dialogStateIn:{languageCode:W.languageCode},deviceConfig:{deviceId:Y,deviceModelId:Y},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!W.isUsingVoz)Y.config.requestType=4;else if(W.isUsingVoz&&W.youtubeAssistantRequest){var d=JSON.stringify(W.youtubeAssistantRequest);Y.config.internalIn={youtubeAssistantS3InputJson:d}}G.call(z,Y);W.channelOpen=!0;W.manuallyClosedChannel=!1});
_.ug(W.channel,"x",function(){W.manuallyClosedChannel||(W.channelOpen=!1,W.channel=void 0,hk(W))});
_.ug(W.channel,"z",function(z){if(z.data){m2f(W);for(var G=0;G<z.data.length;G++){var Y=W,d=z.data[G],E=d.speechResults;if(E)a:{var v=[];d=[];var c=!1;E=_.A(E);for(var J=E.next();!J.done;J=E.next()){J=J.value;if(J.noSpeech){hk(Y);Y.errorHandler("NO_SPEECH");break a}J.transcript!==void 0&&J.stability!==void 0&&(J.stability<Y.confidenceThreshold&&(c=!0),c?d.push(J.transcript):v.push(J.transcript))}if(v.length!==0||d.length!==0)v=v.join(" "),d=d.join(" "),Y.receivedEndOfUtterance&&!Y.isUsingVoz?Y.isUsingVoz||
Y.completeHandler([v,d]):(c=Y,E=v,J=d,oL("voz_sf"),c.transcriptionUpdateHandler(E,J),c.transcribedSpeechResults=[E,J]),Y.receivedEndOfUtterance&&(oL("voz_eou"),Y.transcriptionCompleteHandler([v,d]),Y.isUsingVoz&&(Y.prefetchResponseTimeoutMs===0?hk(Y,{logMicClosed:!1,handleStop:!0}):Y.prefetchResponseTimeoutMs>0&&x2b(Y)))}else Y.isUsingVoz&&(d==null?0:d.internalOut)?(d=JSON.parse(d.internalOut.youtubeAssistantS3OutputJson),d.userHasOptedInToVaa||d.vaaConsent?Y.vaaConsentUpdateHandler(!!d.userHasOptedInToVaa,
!!d.vaaConsent):(D2n(Y),d&&(v=Y.transcribedSpeechResults,oL("voz_rqf"),Y.completeHandler(v,d)))):d.eventType==="END_OF_UTTERANCE"?Y.receivedEndOfUtterance=!0:(oL("voz_err"),Y.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Oc(Error("ql")))}}});
_.ug(W.channel,"y",function(z){hk(W);switch(z.status){case 1:z="WEBCHANNEL_NETWORK_ERROR";break;case 2:z="WEBCHANNEL_SERVER_ERROR";break;default:z="WEBCHANNEL_UNKNOWN_ERROR"}W.errorHandler(z);W.logError(Error(z))})};
IL.prototype.logError=function(W){_.jy(W)};
IL.prototype.isOnline=function(){return!0};
var x2b=function(W){D2n(W);W.prefetchResponseSetTimeoutId=setTimeout(function(){hk(W,{logMicClosed:!1,handleStop:!0})},W.prefetchResponseTimeoutMs)},D2n=function(W){W.prefetchResponseSetTimeoutId>-1&&(clearTimeout(W.prefetchResponseSetTimeoutId),W.prefetchResponseSetTimeoutId=-1)},u7O=function(W){m2f(W);
W.noResponseReceivedTimeout=window.setTimeout(function(){hk(W);W.errorHandler("NO_SPEECH")},11E3)},m2f=function(W){W.noResponseReceivedTimeout>-1&&(window.clearTimeout(W.noResponseReceivedTimeout),W.noResponseReceivedTimeout=-1)},oL=function(W){_.mj(W,void 0,"voice_assistant")};var Hv=function(){IL.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.C(Hv,IL);Hv.prototype.isSupported=function(){return mEb()};
Hv.prototype.startAudio=function(){var W=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.mR(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(G){QW1(W,G)};
this.processor.connect(this.audioContext.destination);var B=function(G){W.stream=G;if(!W.audioContext)return _.gV(null);G=W.audioContext.createMediaStreamSource(G);W.processor&&G.connect(W.processor);return _.gV(null)},z={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?B(this.stream):(z=navigator.mediaDevices.getUserMedia(z))?z.then(B).catch(function(G){hk(W);G.name&&G.name==="NotAllowedError"?W.errorHandler("NO_MICROPHONE_PERMISSION"):(W.errorHandler("AUDIO_ERROR"),W.logError(G));return _.mR(null)}):(hk(this),this.errorHandler("AUDIO_ERROR"),_.Oc(Error("rl")));
return IL.prototype.startAudio.call(this)};
Hv.prototype.stopAudio=function(W){W=W===void 0?!0:W;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(B){B.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;IL.prototype.stopAudio.call(this,W)};
Hv.prototype.isOnline=function(){return navigator.onLine};
var QW1=function(W,B){if(W.audioContext)if(window.OfflineAudioContext){var z=W.audioContext.sampleRate,G=B.inputBuffer.getChannelData(0);B=new window.OfflineAudioContext(1,G.length,16E3);for(var Y=B.createBuffer(1,G.length,z),d=Y.getChannelData(0),E=0,v=0;v<G.length;v++)d[v]=G[v],E+=d[v]*d[v];!W.audioDetected&&Math.sqrt(E/G.length)>.01&&(W.audioDetected=!0,W.audioDetectedHandler());G=B.createBufferSource();G.buffer=Y;G.connect(B.destination);G.start(0);B.oncomplete=function(c){c=c.renderedBuffer.getChannelData(0);
for(var J=Math.floor(16384E3/z),g=new Int16Array(J),t=0;t<J;++t)g[t]=Math.max(-1,Math.min(1,c[t]))*32767;e4b(W,g.buffer)};
B.startRendering()}else yeK(W,B)},yeK=function(W,B){var z=W.audioContext.sampleRate,G=B.inputBuffer.getChannelData(0),Y=Math.floor((z+8E3)/16E3);
z=G.length/Y;B=new Float32Array(z);for(var d=0;d<z;++d)B[d]=G[d*Y];G=new Int16Array(z);for(Y=0;Y<z;++Y)G[Y]=Math.max(-1,Math.min(1,B[Y]))*32767;e4b(W,G.buffer)};var qi9={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var nRO=function(){this.JSC$19981_audioEnabled=!0;this.audioFeedbackHolder={}};
nRO.prototype.isPlaying=function(W){return W.currentTime>0&&!W.paused&&!W.ended&&W.readyState>2};
var Nsq=function(W){for(var B=_.A(Object.values(qi9)),z=B.next();!z.done;z=B.next())z=z.value,W.audioFeedbackHolder[z]=new Audio,W.audioFeedbackHolder[z].src="/s/search/audio/"+z+".mp3",W.audioFeedbackHolder[z].load()},F8=function(W,B){if(W.JSC$19981_audioEnabled!==!1&&B in W.audioFeedbackHolder){for(var z=_.A(Object.values(W.audioFeedbackHolder)),G=z.next();!G.done;G=z.next())G=G.value,W.isPlaying(G)&&G.pause();
W.audioFeedbackHolder[B].currentTime=0;W.audioFeedbackHolder[B].play().catch(function(){})}};var $2K=function(W,B){var z=this;this.store=W;this.service=B;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){z.setState("offline");z.stop()};
this.audioPlayer=new nRO;var G;(G=this.audioPlayer)==null||Nsq(G)};
_.p=$2K.prototype;_.p.getService=function(){return this.service};
_.p.isEnabled=function(){return!!this.service};
_.p.isSupported=function(){var W;return(W=this.service)==null?void 0:W.isSupported()};
_.p.start=function(){var W=this,B,z,G,Y,d,E,v,c,J,g,t,P,Z;return _.T(function(l){switch(l.nextAddress){case 1:W.store.dispatch(giO("",""));if(!navigator.onLine)return W.setState("offline"),l.return();window.addEventListener("offline",W.handleOfflineEvent);W.stream=null;if(!W.permissionsSupported){l.jumpTo(2);break}_.kA(l,3);return l.yield(LJ1(W),5);case 5:B=l.yieldResult;if(!B)return(z=W.audioPlayer)==null||F8(z,"failure"),l.return();W.service.stream=W.stream;W.setState("listening");_.Nn(l,2);break;
case 3:_.h6(l),W.permissionsSupported=!1;case 2:G={context:_.Hs2(_.pg())},G.youtubeAssistantParams={searchParams:{inlineSearchResponse:W.enableInlineSearchResponse}},Y=function(b,O){W.store.dispatch(t70("transcribing"));W.store.dispatch(giO(b,O))},d=function(){var b;
(b=W.audioPlayer)==null||F8(b,"open");W.setState("listening")},E=function(){W.setState("transcribing")},v=function(b){W.setErrorState(b)},c=function(b,O){var K;
(K=W.audioPlayer)==null||F8(K,"success");O&&(_.r("kevlar_voice_search_inline_search")&&(W.responseProcessor=_.dO().resolve(_.kKx),W.responseProcessor&&(K=O.navigationAction,b=O.prefetchedSearchResponse,K&&b&&(K=(new _.TiY).JSC$13121_getStoreKey(K),_.Ng(W.responseProcessor,b,K)))),W.JSC$19999_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",O))},J=function(){window.removeEventListener("offline",W.handleOfflineEvent)},g=_.utt(!1),t=g.Authorization!=null,P=W.enableFirstPartyAuth||
W.enableFPAForSignedInUsers&&t?g:{"X-Goog-Visitor-Id":g["X-Goog-Visitor-Id"]},Z={completeHandler:c,
errorHandler:v,listeningHandler:d,audioDetectedHandler:E,stopHandler:J,transcriptionUpdateHandler:Y,youtubeAssistantRequest:G,languageCode:U2f(),additionalHeaders:P,supportsCrossDomainXhr:W.enableFirstPartyAuth||W.enableFPAForSignedInUsers&&t,supportsHttpHeadersOverwriteParam:!W.disableHttpHeadersOverwrite},W.service.start(Z),_.HG(l)}})};
_.p.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.p.reset=function(){this.store.dispatch(_.Tl({type:"RESET_VOICE_SEARCH_STATE"}))};
_.p.setState=function(W){this.store.dispatch(t70(W))};
_.p.setErrorState=function(W){switch(W){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var B;(B=this.audioPlayer)==null||F8(B,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)LJ1(this);else{var z;(z=this.audioPlayer)==null||F8(z,"failure");this.setState("permission-denied")}break;case "ABORTED":var G;(G=this.audioPlayer)==null||F8(G,"no_input");break;default:var Y;(Y=this.audioPlayer)==
null||F8(Y,"no_input");this.setState("timeout")}};
var LJ1=function(W){var B,z;return _.T(function(G){switch(G.nextAddress){case 1:return G.yield(navigator.permissions.query({name:"microphone"}),2);case 2:B=G.yieldResult;if(B.state==="granted")return G.return(!0);if(B.state==="denied")return W.setState("permission-denied"),G.return(!1);W.setState("permission");z={audio:{sampleSize:16,channelCount:1},video:!1};_.kA(G,3);return G.yield(navigator.mediaDevices.getUserMedia(z),5);case 5:return W.stream=G.yieldResult,G.return(!0);case 3:return _.h6(G),
W.setState("permission-denied"),G.return(!1)}})},U2f=function(){var W=_.eD("INNERTUBE_CONTEXT_HL"),B=_.eD("INNERTUBE_CONTEXT_GL");
return W.indexOf("-")>-1?W:W+"-"+B};var Mhj=function(W,B,z){$2K.call(this,B,z);this.JSC$19999_actionRouter=W;this.enableInlineSearchResponse=_.r("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.r("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.r("kevlar_voice_search_enable_fpa_signedin_users")},aS1;
_.C(Mhj,$2K);
var R4f=function(){if(!aS1){var W="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.r("kevlar_voice_search_auth_enabled")||_.r("kevlar_voice_search_use_yt_endpoint")?W="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.r("kevlar_voice_search_use_fp_endpoint")&&(W="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");aS1=
new Mhj(_.Qx.getInstance(),_.Y_(),new Hv(_.eD("VOZ_API_KEY"),W,.5))}return aS1};var Wnb=function(W){this.JSC$20003_clientRoot=W;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$20003_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)]]));W=_.A(this.eventListeners);for(var B=W.next();!B.done;B=W.next()){var z=_.A(B.value);B=z.next().value;z=z.next().value;z=_.A(z);for(var G=z.next();!G.done;G=z.next()){var Y=
_.A(G.value);G=Y.next().value;Y=Y.next().value;B.addEventListener(G,Y)}}_.yx(_.Qx.getInstance(),this.autonavPauseActionMap,this.JSC$20003_clientRoot)},BvO,zbi=function(W){return _.r("kevlar_autonav_popup_filtering")?(W=_.iP(W))?W.hasAttribute("prevent-autonav"):!0:!0};
_.p=Wnb.prototype;_.p.onIronOverlayOpened=function(W){zbi(W)&&(this.autonavPauseReasons.overlayOpen=!0,SG(this))};
_.p.onIronOverlayClosed=function(W){zbi(W)&&(this.autonavPauseReasons.overlayOpen=!1,SG(this))};
_.p.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;SG(this)};
_.p.onYtAutonavPauseBlur=function(){var W=this;_.fg.addJob(function(){W.isInBackground()||(W.autonavPauseReasons.inputBoxFocus=!1,SG(W))},8,0)};
_.p.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;SG(this)};
_.p.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;SG(this)};
_.p.onYtAutonavPauseScroll=function(){var W=_.dO().resolve(_.ij);W.isOnWatch()&&(W=W.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=W.getBoundingClientRect().top<-200,SG(this))};
_.p.onYtAutonavPauseUserEngagement=function(W){var B=this;if(_.r("user_engagement_enable_autoplay_pause_feature")){var z=Number(W.lowEngagementThresholdMs);isNaN(z)||z<=0||W.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.m3("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.dO().resolve(_.jX),_.Gi()<z?_.CG(_.fg,function(){_.m3("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.N8n()?(this.userEngagementCsn=_.m1(),_.CG(_.fg,function(){_.m3("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
B.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,SG(this)):_.m3("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.x$y(Error("sl`"+JSON.stringify(W)))};
_.p.onYtAutonavPausePlayer=function(W){this.autonavPauseReasons.requestedByPlayer=!!W.detail;SG(this)};
_.p.onYtAutonavVisibilityChanged=function(){var W=this,B,z,G;return _.T(function(Y){if(Y.nextAddress==1)return(B=_.TN())?Y.yield(B.getPlayerPromise(),2):Y.return();z=Y.yieldResult;G=z.isMuted()||z.getVolume()===0;W.autonavPauseReasons.backgroundAndMute=W.isInBackground()&&G;SG(W);_.HG(Y)})};
_.p.onYtAutonavPausePlayerEnded=function(){_.dO().resolve(_.jX);var W=144E5;_.r("user_engagement_enable_autoplay_pause_feature")||_.r("is_part_of_any_user_engagement_experiment")||(W=45E5);this.autonavPauseReasons.longIdle=_.Gi()>W;GJf(this);SG(this)};
_.p.onYtUserActivity=function(){var W=this;this.autonavPauseReasons.userEngagement&&(_.CG(_.fg,function(){_.m3("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",W.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,SG(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.CG(_.fg,function(){_.m3("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",W.userEngagementCsn);_.bp()}),this.autonavPauseReasons.youthereLactExperiment=!1,SG(this));
this.autonavPauseReasons.longIdle&&!_.r("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,SG(this))};
_.p.isInBackground=function(){var W=window.document.visibilityState;return!(!W||W==="visible")};
var SG=function(W){for(var B=!1,z=_.A(Object.values(W.autonavPauseReasons)),G=z.next();!G.done;G=z.next())G=G.value,B=B||G;B?_.oH.getInstance().pause(W.autonavPauseReasons):(W=_.oH.getInstance(),W.autonavState_==3?(W.setState(2,!1,!1),W.autonavPauseReason_=void 0):W.autonavState_==1&&(W.disabledAutonavPauseReason_=void 0))},GJf=function(W){var B=!1;
if(_.r("enable_autoplay_pause_by_lact")){_.dO().resolve(_.jX);B=_.iO("autoplay_pause_by_lact_sec")*1E3;var z=_.iO("autoplay_pause_by_lact_sampling_fraction");(B=_.Gi()>=B&&Math.random()<z)&&!_.N8n()&&(_.CG(_.fg,function(){_.m3("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),B=!1)}B!==W.autonavPauseReasons.youthereLactExperiment&&(W.autonavPauseReasons.youthereLactExperiment=B)&&(W.userEngagementCsn=_.m1(),_.CG(_.fg,function(){_.m3("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",W.userEngagementCsn)}));
W.autonavPauseReasons.userEngagement&&_.CG(_.fg,function(){_.m3("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",W.userEngagementCsn)})};
Wnb.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.m3("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.bp(),this.autonavPauseReasons.youthereLactExperiment=!1,SG(this));this.autonavPauseReasons.userEngagement&&(_.m3("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,SG(this))};
Wnb.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var b3=function(){var W=_.S.apply(this,arguments)||this;W.miniGuideVisible=!1;W.guideOpened=_.r("disable_initial_guide_state_fix")?!1:W.canFitPersistentGuide(W.initialBodyClientWidth);W.guideUserStateOpened=W.getInitialGuideUserStateOpened();W.isFullscreenShorts=!1;W.miniGuideWidthThreshold=_.iO("kevlar_mini_guide_width_threshold",791);W.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");W.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");W.persistentGuideBlockedPagePathRegex=new RegExp(W.persistentGuideBlockedPagesPatterns.join("|"));W.animationTransitionDuration=0;W.lateDataResolver=_.zN();W.initialGuideDataFetchFailed=!1;W.initialLoad=!0;W.guideRenderers=new Set;W.isMouseOverGuide=!1;W.sessionUserManuallyExpandedGuideState=!1;W.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return W};
_.C(b3,_.S);_.p=b3.prototype;_.p.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.p.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.p.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.p.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.p.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.p.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.p.ready=function(){_.dO().addProvider({provide:_.Ja,useValue:this.hostElement})};
_.p.attached=function(){var W=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Co(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Co(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Co(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Co(this,this.onYtGuideShow));_.BM(this,function(){W.animationTransitionDuration=200})};
_.p.detached=function(){document.removeEventListener("yt-navigate-finish",_.Co(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Co(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Co(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Co(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Co(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Co(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Co(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.p.getData=function(){return this.data};
_.p.load=function(){var W=this,B,z,G,Y;return _.T(function(d){switch(d.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=W.lateDataResolver.resolve.bind(W),d.return(W.lateDataResolver.promise);if(window.ytInitialGuideData)return B=_.zN(),B.resolve(window.ytInitialGuideData),d.return(B.promise);G=!1;_.kA(d,2);return d.yield(W.fetchGuideData(),4);case 4:z=d.yieldResult;_.Nn(d,3);break;case 2:Y=_.h6(d),Y.message==="Returned error"&&(G=
!0);case 3:if(z)return d.return(z);W.onYtGuideClose();G||(W.initialGuideDataFetchFailed=!0);return d.return(W.lateDataResolver.promise)}})};
_.p.fetchGuideData=function(){var W=this,B,z,G,Y,d,E,v;return _.T(function(c){if(c.nextAddress==1)return B=_.dO(),W.guidePromise||(z=B.resolve(_.N_),W.guidePromise=_.BA(z,rtf)),c.yield(W.guidePromise,2);if(c.nextAddress!=3)return G=c.yieldResult,Y=B.resolve(_.OI),c.yield(Y(),3);(d=c.yieldResult)&&((E=G)==null?void 0:(v=E.responseContext)==null?void 0:v.maxAgeSeconds)!==0&&d.put("service:guide:fallback",new _.ev({innertubeResponse:G}));return c.return(G)})};
_.p.initializeGuideDataIfEmpty=function(){var W=this,B,z;return _.T(function(G){if(G.nextAddress==1){if(!W.initialGuideDataFetchFailed||W.data)return G.return();_.kA(G,2);return G.yield(W.fetchGuideData(),4)}if(G.nextAddress!=2)return(B=G.yieldResult)&&W.lateDataResolver.resolve(B),_.Nn(G,0);z=_.h6(G);_.Oc(z);_.HG(G)})};
_.p.initializeGuideData=function(){var W=this,B;return _.T(function(z){switch(z.nextAddress){case 1:return _.wn(xjr(),{mainAppWeb:_.GS()}),_.kA(z,2),z.yield(W.load(),4);case 4:W.data=z.yieldResult;_.Nn(z,3);break;case 2:_.h6(z),_.Vb(xjr(),"FAILURE");case 3:B=W.data&&W.data.items&&W.data.items.length>0?"SUCCESS":"FAILURE",_.Vb(xjr(),B),_.HG(z)}})};
_.p.setGuideData=function(W){var B=this,z,G;return _.T(function(Y){if(Y.nextAddress==1)return B.disabled?Y.return():B.data?(W.data=B.data,B.guideRenderers.add(W),Y.return()):Y.yield(B.initializeGuideData(),2);B.graftGuideToPage();z=_.md("IS_HOMEPAGE_COLD")?"eop":void 0;_.r("disable_element_pool_populator")?B.setGuideDataAfterInit(W):(G=new _.F$(1,z),_.Sx(G,B.setGuideDataAfterInit.bind(B,W)));_.HG(Y)})};
_.p.setGuideDataAfterInit=function(W){W.data=this.data;W.markDirty();this.guideRenderers.add(W);_.WJ(function(){_.mj("gle")});
_.BM(this,function(){_.mj("gpe")})};
_.p.graftGuideToPage=function(){if(this.data){var W=this.data&&this.data.trackingParams;W&&(W=_.XF(W),_.ed(_.SK(),W))}};
_.p.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Co(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.p.onDrawerOpenedChanged=function(W,B){!B.value&&this.guideOpened&&(this.guideOpened=!1)};
_.p.onYtGuideToggle=function(W){var B=this.guideOpened;this.guideOpened=!B;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var z=_.IP();_.oP(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;z.save()}this.updateGuideDrawerElementState();if(this.guideElement){var G;this.guideOpened&&((G=W.detail)==null?0:G.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Co(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Co(this,this.onAppDrawerTransitioned))}B||this.initializeGuideDataIfEmpty()};
_.p.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Co(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.UE(this.guideElement)};
_.p.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Co(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(V70(this.guideOpened))};
_.p.guidePersistentAndVisibleChanged=function(){_.wV(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.p.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Tl({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.p.miniGuideVisibleChanged=function(){_.wV(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.p.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(V70(this.guideOpened)),this.initialLoad=!1);_.wV(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.p.activeEndpointChanged=function(){_.wV(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.p.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.p.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()};
_.p.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var W=this.canFitPersistentGuide(this.cachedClientWidth);W?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=W}this.updateGuideDrawerElementState()};
_.p.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.p.getGuideOpened=function(){return this.guideOpened};
_.p.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.p.getActiveEndpoint=function(){return this.activeEndpoint};
_.p.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.p.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&&_.v0(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.p.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.r("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.p.handleGuideMouseLeave=function(){var W=this;!this.sessionUserManuallyExpandedGuideState&&_.r("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.BJ(this,"handleGuideMouseLeave",function(){W.isMouseOverGuide||!W.guideOpened||W.miniGuideVisible||(W.guideOpened=!1,W.updateGuideDrawerElementState())},100))};
_.p.computeGuidePersistentAndVisible=function(){var W=this;_.BJ(this,"computeGuidePersistentAndVisible",function(){W.guidePersistentAndVisible=W.guideOpened&&W.guidePersistent;W.guideIsVisibleButNotPersistent=!(!W.guideOpened||W.guidePersistent)})};
_.p.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.p.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.p.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.p.startLoadingWatch=function(){this.closeGuide()};
_.p.startLoadingShorts=function(){_.r("web_hide_guide_on_shorts")&&this.closeGuide()};
_.p.onYtNavigateFinish=function(W,B){if(!_.Js||B){this.activeEndpoint=B.endpoint;this.pageType=B.pageType;this.pageUrl=B.response.url;var z,G;W=(G=_.k((z=B.endpoint)==null?void 0:z.commandMetadata,_.Z4))==null?void 0:G.url;!this.pageUrl&&W&&(this.pageUrl=W);_.r("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.p.getVisibleGuideRenderer=function(){for(var W=_.A(this.guideRenderers),B=W.next();!B.done;B=W.next())if(B=B.value,this.miniGuideVisible&&B.is==="ytd-mini-guide-renderer"||this.guideOpened&&B.is==="ytd-guide-renderer")return B;return null};
_.p.markGuideRendererDirty=function(W){if(W){typeof W.markDirty==="function"&&W.markDirty();W=_.A([].concat(_.u7(_.tH(W).children)));for(var B=W.next();!B.done;B=W.next())this.markGuideRendererDirty(B.value)}};
_.p.persistentGuideEnabled=function(W,B){if(!B||W==="watch"||W==="settings"||W==="shorts"&&this.isFullscreenShorts||_.r("reels_web_disable_persistent_guide_shorts")&&W==="shorts")return!1;var z=_.gO(B)||"";return _.r("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(G){return z===G}):!this.persistentGuideBlockedPagePathRegex.test(z)};
_.p.canFitPersistentGuide=function(W){var B=_.iO("kevlar_persistent_guide_width_threshold",1312);return B===-1||_.r("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:W>B};
_.p.canFitMiniGuide=function(W){return this.miniGuideWidthThreshold===-1?!1:W>this.miniGuideWidthThreshold};
_.p.onResize=function(){var W=this;_.BJ(this,"calculateGuideState",function(){W.onResizeDebounced()})};
_.p.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.p.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.p.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.p.getInitialGuideUserStateOpened=function(){return _.r("web_force_mini_guide_default")?!1:!_.IP().getFlag(109)};
_.G5.Object.defineProperties(b3.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.eD("initialBodyClientWidth")||window.innerWidth}}});
b3.prototype.onResize=b3.prototype.onResize;b3.prototype.observeForMiniGuideVisible=b3.prototype.observeForMiniGuideVisible;b3.prototype.computeGuidePersistentAndVisible=b3.prototype.computeGuidePersistentAndVisible;b3.prototype.cachedClientWidthChanged=b3.prototype.cachedClientWidthChanged;b3.prototype.resetGuide=b3.prototype.resetGuide;b3.prototype.activeEndpointChanged=b3.prototype.activeEndpointChanged;b3.prototype.guideOpenedChanged=b3.prototype.guideOpenedChanged;
b3.prototype.miniGuideVisibleChanged=b3.prototype.miniGuideVisibleChanged;b3.prototype.guideIsVisibleButNotPersistentChanged=b3.prototype.guideIsVisibleButNotPersistentChanged;b3.prototype.guidePersistentAndVisibleChanged=b3.prototype.guidePersistentAndVisibleChanged;b3.prototype.onGuideElementChanged=b3.prototype.onGuideElementChanged;b3.prototype.onGuidePersistentChanged=b3.prototype.onGuidePersistentChanged;b3.prototype.onRenderGuideChanged=b3.prototype.onRenderGuideChanged;
b3.prototype.onActiveEndpointChanged=b3.prototype.onActiveEndpointChanged;b3.prototype.onMiniGuideVisibleChanged=b3.prototype.onMiniGuideVisibleChanged;b3.prototype.onGuideIsVisibleButNotPersistentChanged=b3.prototype.onGuideIsVisibleButNotPersistentChanged;b3.prototype.onGuidePersistendAndVisibleChanged=b3.prototype.onGuidePersistendAndVisibleChanged;_.Q([_.h(_.Mp),_.y("design:type",Object)],b3.prototype,"ironResizableBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],b3.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],b3.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],b3.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],b3.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],b3.prototype,"disabled",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],b3.prototype,"guidePersistentAndVisible",void 0);_.Q([_.oN("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"onGuidePersistendAndVisibleChanged",null);_.Q([_.F(),_.y("design:type",Boolean)],b3.prototype,"guideIsVisibleButNotPersistent",void 0);
_.Q([_.oN("guideIsVisibleButNotPersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.Q([_.F(),_.y("design:type",Object)],b3.prototype,"miniGuideVisible",void 0);_.Q([_.oN("miniGuideVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"onMiniGuideVisibleChanged",null);_.Q([_.F(),_.y("design:type",Boolean)],b3.prototype,"forceMiniGuideClose",void 0);
_.Q([_.F(),_.y("design:type",Object)],b3.prototype,"activeEndpoint",void 0);_.Q([_.oN("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"onActiveEndpointChanged",null);_.Q([_.F(),_.y("design:type",Boolean)],b3.prototype,"renderGuide",void 0);_.Q([_.oN("renderGuide"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"onRenderGuideChanged",null);
_.Q([_.F(),_.y("design:type",Object)],b3.prototype,"guideOpened",void 0);_.Q([_.F(),_.y("design:type",Boolean)],b3.prototype,"guidePersistent",void 0);_.Q([_.oN("guidePersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"onGuidePersistentChanged",null);_.Q([_.F(),_.y("design:type",Object)],b3.prototype,"guideUserStateOpened",void 0);_.Q([_.F(),_.y("design:type",String)],b3.prototype,"pageUrl",void 0);
_.Q([_.F(),_.y("design:type",String)],b3.prototype,"pageType",void 0);_.Q([_.F(),_.y("design:type",Number)],b3.prototype,"cachedClientWidth",void 0);_.Q([_.F(),_.y("design:type",Object)],b3.prototype,"guideElement",void 0);_.Q([_.F({selector:_.ck}),_.y("design:type",Object)],b3.prototype,"isFullscreenShorts",void 0);_.Q([_.oN("guideElement"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"onGuideElementChanged",null);
_.Q([_.oN("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"guidePersistentAndVisibleChanged",null);_.Q([_.jJ("guideIsVisibleButNotPersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.Q([_.oN("miniGuideVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"miniGuideVisibleChanged",null);_.Q([_.jJ("guideOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"guideOpenedChanged",null);_.Q([_.oN("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"activeEndpointChanged",null);
_.Q([_.jJ("pageUrl"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"resetGuide",null);_.Q([_.jJ("cachedClientWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"cachedClientWidthChanged",null);_.Q([_.oN("guideOpened","guidePersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"computeGuidePersistentAndVisible",null);
_.Q([_.jJ("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"observeForMiniGuideVisible",null);_.Q([_.IN("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b3.prototype,"onResize",null);_.Q([_.u({disableElementRegistration:!0,is:"yt-guide-manager"})],b3);var YGY=_.D(b3,"yt-guide-manager",void 0,{mode:_.PJ("kevlar_poly_si_batch_j081")?1:2});var jG=function(){var W=_.S.apply(this,arguments)||this;W.JSC$20013_keyboardInUse=!1;W.boundHandleCapturedKeydownEvent=function(B){W.handleCapturedKeydownEvent(B)};
return W};
_.C(jG,_.S);_.p=jG.prototype;_.p.attached=function(){this.listenToDocument(document)};
_.p.listenToDocument=function(W){W.addEventListener("keydown",_.Co(this,this.onKeyDownEvent));W.addEventListener("keyup",_.Co(this,this.onKeyUpEvent));W.addEventListener("mousedown",_.Co(this,this.onMouseDownEvent));_.r("desktop_keyboard_capture_keydown_killswitch")||W.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);W.addEventListener("yt-page-data-updated",_.Co(this,this.onPageUpdate))};
_.p.detached=function(){this.unlistenFromDocument(document)};
_.p.unlistenFromDocument=function(W){W.removeEventListener("keydown",_.Co(this,this.onKeyDownEvent));W.removeEventListener("keyup",_.Co(this,this.onKeyUpEvent));W.removeEventListener("mousedown",_.Co(this,this.onMouseDownEvent));_.r("desktop_keyboard_capture_keydown_killswitch")||W.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);W.removeEventListener("yt-page-data-updated",_.Co(this,this.onPageUpdate))};
_.p.ready=function(){_.dO().addProvider({provide:_.jx,useValue:this})};
_.p.isKeyBoardInUse=function(){return this.JSC$20013_keyboardInUse};
_.p.handleCapturedKeydownEvent=function(W){if(W.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(W)};
_.p.onMouseDownEvent=function(){this.JSC$20013_keyboardInUse=!1};
_.p.onPageUpdate=function(){if(_.r("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.r("web_shorts_keyboard_shortcut_usage_log")){_.q9.clear();for(var W=_.A(_.Qa),B=W.next();!B.done;B=W.next()){var z=_.A(B.value);B=z.next().value;z=z.next().value;z=_.PA(z);_.q9.set(B,z);_.$q(_.m1(),_.et(),z)}_.n1.clear();W=_.A(_.ya);for(B=W.next();!B.done;B=W.next())z=_.A(B.value),B=z.next().value,z=z.next().value,z=_.PA(z),_.n1.set(B,z),_.$q(_.m1(),_.et(),z);_.Li(_.m1(),_.et(),[].concat(_.u7(_.n1.values()),
_.u7(_.q9.values())));_.Mj(_.m1(),[].concat(_.u7(_.n1.values()),_.u7(_.q9.values())))}};
_.p.onMiniplayerActiveChange=function(){var W;(W=_.dO().resolve(_.Qb).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(W.document):this.unlistenFromDocument(W.document))};
_.p.ignoreKeyEvent=function(W){if(W.ctrlKey||W.altKey)if(_.r("kevlar_macro_markers_keyboard_shortcut")){if(W.keyCode!==37&&W.keyCode!==39)return!0}else return!0;var B=_.AH(W)||[];return _.UOK(B)?(_.r("web_button_or_anchor_list_item")&&TDi(B,W)&&(this.JSC$20013_keyboardInUse=!0),!0):W.defaultPrevented?(E3(W.keyCode,W.shiftKey,this.isShortsPage),!0):W.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(W):!1};
_.p.isSpacebarClick=function(W){var B=W||window.event;var z;B.composedPath&&typeof B.composedPath==="function"?z=B.composedPath():z=B.path;z&&z.length?B=z[0]:(B=B||window.event,B=B.target||B.srcElement,B.nodeType==3&&(B=B.parentNode));return B&&W.keyCode===32&&(W=B.tagName==="BUTTON"||B.tagName==="A"||B.tagName==="INPUT",B=(B=B.getAttribute("role"))&&(B==="option"||B==="button"||B.indexOf("menuitem")===0),W||B)?!0:!1};
_.p.onKeyDownEvent=function(W){if(!this.ignoreKeyEvent(W)&&(W.keyCode===191&&(W.shiftKey||W.metaKey?W.repeat!=null&&W.repeat||(this.openHotkeyDialog(),E3(W.keyCode,W.shiftKey,this.isShortsPage)):(this.focusSearchBox(),W.preventDefault())),!W.metaKey)){var B=_.dO().resolve(_.Qb);switch(W.keyCode){case 9:this.JSC$20013_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(W);break;case 84:B.pipController.getWindow()&&window.focus();this.toggleTheaterMode(W.keyCode,W.shiftKey);break;case 73:B.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(W.keyCode,W.shiftKey);break;case 70:if(this.isShortsPage&&_.r("web_fullscreen_shorts")){_.Mti();break}this.isMiniplayerActive()?B.pipController.getWindow()&&(B.close(!0),window.focus()):this.passEventToPlayer(W);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(W.keyCode,W.shiftKey):this.closeMiniplayer(W.keyCode,W.shiftKey)||this.passEventToPlayer(W);break;case 13:W.shiftKey&&_.dO().resolve(_.G8).activate(W);break;default:this.passEventToPlayer(W)}}};
_.p.onKeyUpEvent=function(W){if(!this.ignoreKeyEvent(W))if(_.r("web_speedmaster_spacebar_control")&&W.keyCode===32)this.handlePlayerSpaceKey(W,!0);else{var B=this.getPlayerManager();B&&(B=B.getPlayer())&&B.handleGlobalKeyUp(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code)}};
_.p.getPlayerManager=function(){var W=_.TN(),B=_.dO().resolve(_.Y8(_.ij));return W&&B&&B.isOnWatch()?W:null};
_.p.passEventToPlayer=function(W,B){var z=this,G,Y,d,E;return _.T(function(v){if(v.nextAddress==1){if(!_.r("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&z.isMiniplayerActive())G=_.dO().resolve(_.Qb).getPlayerElement();else if(z.inlinePreviewIsActive){if(Y=_.wV(z.hostElement,"yt-get-inline-preview-player-action"),(d=Y)==null?0:d[0])G=Y[0]}else G=_.TN();return G?v.yield(G.getPlayerPromise(),3):v.jumpTo(0)}E=v.yieldResult;B?E.handleGlobalKeyUp(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,
W.key,W.code):E.handleGlobalKeyDown(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code,W.repeat);W.keyCode!==38&&W.keyCode!==40&&E3(W.keyCode,W.shiftKey,z.isShortsPage);_.HG(v)})};
_.p.focusSearchBox=function(){_.v0(this.hostElement,"yt-focus-searchbox")};
_.p.openHotkeyDialog=function(){_.v0(this.hostElement,"yt-open-hotkey-dialog")};
_.p.isMiniplayerActive=function(){return _.dO().resolve(_.Qb).isMiniplayerActive()};
_.p.closeMiniplayer=function(W,B){return this.isMiniplayerActive()?(_.dO().resolve(_.Qb).close(),E3(W,B,this.isShortsPage),!0):!1};
_.p.toggleTheaterMode=function(W,B){var z=_.Qm(_.Y_().getState()),G=this.getPlayerManager(),Y=_.r("disable_theater_mode_keyboard")||_.md("START_IN_FULL_WINDOW_MODE");G&&!Y&&(z=!z,_.pi()&&_.r("external_fullscreen")&&(z=!0),_.c0(this.hostElement,"yt-toggle-theater-mode",[z]),E3(W,B,this.isShortsPage))};
_.p.toggleMiniplayer=function(W,B){var z=this.getPlayerManager();if(this.isMiniplayerActive()){var G;((G=_.dO().resolve(_.Y8(_.ij)))==null?0:G.isOnWatch())?_.dO().resolve(_.Qb).close(!0):_.vW(_.dO().resolve(_.Qb));E3(W,B,this.isShortsPage)}else z&&(_.c0(this.hostElement,"yt-activate-miniplayer-from-watch-action"),E3(W,B,this.isShortsPage))};
_.p.handlePlayerSpaceKey=function(W,B){var z=!!_.TN()||this.isMiniplayerActive();z=_.r("disable_space_scroll_fix")||z;_.r("global_spacebar_pause")&&!this.isKeyBoardInUse()&&z&&(W.preventDefault(),this.passEventToPlayer(W,B))};
_.p.isPresentingTheaterMode=function(){return _.r("web_watch_enable_tm_esc_key")?_.Qm(_.Y_().getState())&&!_.pi():!1};
jG.prototype.onMiniplayerActiveChange=jG.prototype.onMiniplayerActiveChange;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],jG.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],jG.prototype,"ytdReduxBehavior",void 0);_.Q([_.F({selector:_.EUr}),_.y("design:type",Boolean)],jG.prototype,"inlinePreviewIsActive",void 0);_.Q([_.F({selector:_.g52}),_.y("design:type",Boolean)],jG.prototype,"isShortsPage",void 0);
_.Q([_.F({selector:_.xO}),_.y("design:type",Boolean)],jG.prototype,"miniplayerIsActive",void 0);_.Q([_.oN("miniplayerIsActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jG.prototype,"onMiniplayerActiveChange",null);_.Q([_.u({disableElementRegistration:!0,is:"yt-hotkey-manager"})],jG);_.D(jG,"yt-hotkey-manager",void 0,{mode:_.PJ("kevlar_poly_si_batch_j081")?1:2});var fX=function(){var W=_.S.apply(this,arguments)||this;W.loopStateEntityKey_=null;W.playlistLoopStateEntity_=null;W.isShuffleNextPlaylist=!1;W.PLAYER_EVENTS_=new Map;W.playerListenersSetup_=!1;W.videoSkipJob_=0;W.canAutoAdvance_=!1;W.playerManager_=null;W.TEST_ONLY={};return W};
_.C(fX,_.S);_.p=fX.prototype;_.p.ready=function(){_.dO().addProvider({provide:_.wW,useValue:this.hostElement})};
_.p.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_)};
_.p.attached=function(){document.addEventListener("yt-navigate-start",_.Co(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Co(this,this.onYtNavigateFinish_))};
_.p.detached=function(){document.removeEventListener("yt-navigate-start",_.Co(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Co(this,this.onYtNavigateFinish_))};
_.p.updatePlaylistEventListeners=function(W,B){B&&!this.playerListenersSetup_?(this.playerManager_=W,this.registerPlaylistEventListeners_(W)):!B&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(W))};
_.p.setPlayer=function(W){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=W};
_.p.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.p.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.p.registerPlaylistEventListeners_=function(W){var B=this;W.getPlayerPromise().then(function(z){B.playerListenersSetup_||(B.ytPlayerListenerBehavior.listenToPlayerEvents(z,B.PLAYER_EVENTS_),B.playerListenersSetup_=!0)})};
_.p.removePlaylistEventListeners_=function(W){var B=this;W.getPlayerPromise().then(function(z){B.playerListenersSetup_&&(B.ytPlayerListenerBehavior.unlistenFromPlayerEvents(z,B.PLAYER_EVENTS_),B.playerListenersSetup_=!1)})};
_.p.setPlaylistComponent=function(W){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Co(this,this.onPlaylistYtNavigate_)),W&&(W.data&&this.playlistComponent.data&&W.data.playlistId==this.playlistComponent.data.playlistId?(W.loopOn=this.playlistComponent.loopOn,W.shuffleOn=this.playlistComponent.shuffleOn):(W.loopOn=!1,W.shuffleOn=!1),this.isShuffleNextPlaylist&&(W.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=W;this.playlistComponent.addEventListener("yt-navigate",
_.Co(this,this.onPlaylistYtNavigate_))};
_.p.setAutoplayRenderer=function(W){this.autoplayData=W};
_.p.setPlaylistData=function(W){this.currentPlaylistData_=W;_.v0(this.hostElement,"yt-playlist-data-updated");_.mP.isEmpty(W)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(W)};
_.p.setPlayerPlaybackControlData=function(W){this.playerManager_&&this.playerManager_.updatePlayerComponents(W.playlistPanelRenderer)};
_.p.getPlaylistData=function(){return this.currentPlaylistData_};
_.p.getTempData_=function(W,B){if(this.playlistComponent==null)return null;W={};this.playlistComponent.shuffleOn&&(W.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(W.loop_on=this.playlistComponent.loopOn);B&&(W.autonav="1",_.dO().resolve(_.jX),B=_.Gi(),B>0&&(W.lact=B),this.playerManager_&&(B=this.playerManager_.getPlayer())&&B.shouldSendVisibilityState()&&(B=B.getVisibilityState(),B!=0&&(W.vis=B)));_.r("enable_unknown_lact_fix_on_html5")&&(_.dO().resolve(_.jX),W.lact=
_.Gi());return W};
_.p.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.p.setLoopStateEntityKey_=function(W){var B;this.loopStateEntityKey_=((B=this.getPlaylistLoopData_(W))==null?void 0:B.playlistLoopStateEntityKey)||null};
_.p.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.p.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.p.skipVideo=function(){var W=this,B=_.r("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||B)B=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.OM(_.fg,function(){W.onPlaylistNext();W.videoSkipJob_=0},B)};
_.p.cancelVideoSkip=function(){this.videoSkipJob_&&(_.fg.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.p.isInBackground_=function(){var W=window.document.visibilityState;return!(!W||W=="visible")};
_.p.onPlaylistIndex_=function(W){this.playlistComponent&&(W=this.playlistComponent.data.contents[W].playlistPanelVideoRenderer.navigationEndpoint,_.v0(this.hostElement,"yt-navigate",{endpoint:W,tempData:this.getTempData_(W)}))};
_.p.onPlayerStateChange_=function(W){if(W=W==0&&this.playlistComponent&&this.canAutoAdvance_)W=_.oH.getInstance(),W=!(W.autonavState_===3?W.autonavPauseReason_&&W.autonavPauseReason_.inputBoxFocus===!0:W.autonavState_===1&&W.disabledAutonavPauseReason_&&W.disabledAutonavPauseReason_.inputBoxFocus===!0);W&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.p.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.p.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.p.navigateToAutoplayWatchEndpoint_=function(W,B,z){var G=this.playlistComponent.data.currentIndex,Y=this.getNumPlayableVideos_();W=="NORMAL"&&B=="autoplayVideo"&&G+1>=Y&&z||!(W=this.getVideoEndpoint_(W,B))||(z=this.getTempData_(W,z),_.v0(this.hostElement,"yt-navigate",{endpoint:W,tempData:z}))};
_.p.getNumPlayableVideos_=function(){for(var W=0,B=_.A(this.playlistComponent.data.contents||[]),z=B.next();!z.done;z=B.next())z.value.playlistPanelVideoRenderer&&(W+=1);return W};
_.p.getVideoEndpoint_=function(W,B){if(this.autoplayData&&this.autoplayData.sets)for(var z=0,G=this.autoplayData.sets.length;z<G;z++){var Y=this.autoplayData.sets[z];if(Y.mode==W){if(Y[B])return Y[B];break}}else W=new _.oX("AutoplayData is undefined in playlist manager","Mode: "+W+" endpoint: "+B),_.Oc(W)};
_.p.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.p.onPlaylistYtNavigate_=function(W){if(W.detail.endpoint){W.stopPropagation();var B=W.detail;B.tempData=this.getTempData_(W.detail.endpoint);_.v0(this.hostElement,"yt-navigate",B)}};
_.p.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.p.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.p.playlistLoopStateEntityChanged_=function(W){var B=this,z,G,Y;return _.T(function(d){if(d.nextAddress==1){if(!W)return d.return();z=W.state==="PLAYLIST_LOOP_STATE_ONE";return B.playerManager_?d.yield(B.playerManager_.getPlayerPromise(),3):d.jumpTo(2)}d.nextAddress!=2&&(G=d.yieldResult,G.setLoopVideo(z));Y=W.state==="PLAYLIST_LOOP_STATE_ALL";B.playlistComponent&&(B.playlistComponent.loopOn=Y);_.HG(d)})};
_.p.getPlaylistLoopData_=function(W){var B,z;if(W=W==null?void 0:(B=W.playlistButtons)==null?void 0:(z=B.menuRenderer)==null?void 0:z.topLevelButtons)for(B=_.A(W),z=B.next();!z.done;z=B.next())if(z=z.value,z.playlistLoopButtonRenderer)return z.playlistLoopButtonRenderer};
_.p.getLoopStateCommand_=function(W){var B=this.getPlaylistData(),z;B=((z=this.getPlaylistLoopData_(B))==null?void 0:z.states)||[];var G;W=(G=_.k(B[W?1:2],_.aUD))==null?void 0:G.button;var Y;return(Y=_.k(W,_.Ep))==null?void 0:Y.command};
_.p.onPlayerLoopChange_=function(W){this.playlistLoopStateEntity_&&(W?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(W=this.getLoopStateCommand_(W))&&this.ytComponentBehavior.resolveCommand(W)};
_.p.onSleepTimerSettingsChanged_=function(W){this.canAutoAdvance_=W!=="End of video"};
fX.prototype.onPlaylistLoopStateEntityChanged=fX.prototype.onPlaylistLoopStateEntityChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],fX.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.re.YtPlayerListenerBehavior),_.y("design:type",_.kI)],fX.prototype,"ytPlayerListenerBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],fX.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],fX.prototype,"loopStateEntityKey_",void 0);
_.Q([_.F({selectorArgs:["loopStateEntityKey_"],selector:_.cby}),_.y("design:type",Object)],fX.prototype,"playlistLoopStateEntity_",void 0);_.Q([_.oN("playlistLoopStateEntity_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fX.prototype,"onPlaylistLoopStateEntityChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"yt-playlist-manager"})],fX);_.D(fX,"yt-playlist-manager",void 0,{mode:_.PJ("kevlar_poly_si_batch_j081")?1:2});var dUi,plf=function(){if(dUi!==void 0)return dUi;var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return dUi=W};var OQ=function(){var W=_.S.apply(this,arguments)||this;W.lastCallback=null;W.getAccountLinkPromises={};W.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);W.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return W};
_.C(OQ,_.S);_.p=OQ.prototype;_.p.getLocation=function(){return window.location.href};
_.p.getCompletionUrl=function(){return _.Gy(this.getLocation())};
_.p.containsRedirectState=function(W){return(W=_.Hh(_.DsR(W)))?(new URLSearchParams(W)).get("redirect_state")!==null:!1};
_.p.createGalConfig=function(W,B){var z=new KaY;W=z=B?this.getPopupOrRedirectSetting(z,_.eD("LINK_API_KEY"),_.eD("LINK_API_KEY_REDIRECT"),W):unf(z,_.eD("LINK_API_KEY"));W.authUser=_.eD("SESSION_INDEX")||0;W.supportedFlows=new Set([4]);return W.build()};
_.p.getPopupOrRedirectSetting=function(W,B,z,G){this.isGalInteractionPopupMode(G)?(W.interactionMode=0,W=unf(W,B)):(W.interactionMode=1,B=this.getCompletionUrl(),W.completionUrl=B,W=unf(W,z));return W};
_.p.isGalInteractionPopupMode=function(W){if(this.redirectModeProviderAllowlist.has(W))switch(W){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.p.getStatusEntityKeyForProviderId=function(W){return _.sg(W+":all","accountLinkStatusEntity")};
_.p.findNestedPropValue=function(W,B){var z=!1,G=null;JSON.stringify(W,function(Y,d){z||Y!==B||(z=!0,G=d);return z?null:d});
return G};
_.p.findAccountLinkButtonViewModel=function(W,B){var z=null,G=!1;JSON.stringify(W,function(Y,d){G||d.accountLinkStatusEntityKey!==B||d.accountLinkStatusSecondaryEntityKey||(G=!0,z=d);return G?null:d});
return z};
_.p.executeLinkingSuccessOrFailureCommands=function(W,B,z){var G=null,Y;(B==null?0:(Y=B.url)==null?0:Y.includes("account_sharing"))?G=B==null?void 0:B.response:G=B==null?void 0:B.response;(B=this.findAccountLinkButtonViewModel(G,W))?(W=z?this.findNestedPropValue(B,"onSuccessCommand"):this.findNestedPropValue(B,"onFailureCommand"))?_.s2([W],this.hostElement):_.nx(Error("tl")):_.nx(Error("ul`"+W))};
_.p.handleInitializeRequest=function(W,B){var z=this,G=io1(this.createGalConfig(W,!0));this.containsRedirectState(this.getLocation())?GSb(W,G.config,G.galService).then(function(Y){var d=z.getStatusEntityKeyForProviderId(W);if(Y.statusCode===1)B&&z.executeLinkingSuccessOrFailureCommands(d,B,!0),Y=z.getLocation().indexOf("#"),Y!==-1&&window.history.pushState(null,"",z.getLocation().substring(0,Y));else return B&&z.executeLinkingSuccessOrFailureCommands(d,B,!1),Promise.reject(Error(Y.statusMessage))}).catch(function(Y){_.Oc(Y);
_.Sy("gamingAccountLinkStatusChanged",{serviceId:W,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Y)}):this.getAccountLinkPromises[W]=G.startLinkingSession({serviceId:W})};
_.p.handleAccountLinkCommand=function(W){_.k(W,lVb)&&this.handleLinkRequest(_.k(W,lVb))};
_.p.handleLinkRequest=function(W){var B=this,z=W.thirdPartyId;if(z)if(this.isGalInteractionPopupMode(z)){var G=function(){B.closeAndFire("ytd-gaming-account-link-setting-renderer",W.onFailureCommand)},Y=function(){B.closeAndFire("ytd-gaming-account-link-setting-renderer",W.onSuccessCommand)};
this.lastCallback=Y;this.getAccountLinkPromises[z].then(function(d){gcO(d).then(function(E){E.statusCode===1?Y():G()})}).catch(function(){G()})}else this.getAccountLinkPromises[z].then(function(d){gcO(d).then(function(E){if(E.statusCode!==1)return Promise.reject(Error(E.statusMessage))})}).catch(function(d){_.Oc(d);
_.Sy("gamingAccountLinkStatusChanged",{serviceId:z,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(d)})};
_.p.closeAndFire=function(W,B){_.c0(this.hostElement,"yt-close-popup-action",[W]);B&&_.s2([B],this.hostElement)};
_.p.handleAccountUnlinkCommand=function(W){_.k(W,CUY)&&this.handleUnlinkRequest(_.k(W,CUY))};
_.p.handleUnlinkRequest=function(W){var B=this,z=W.thirdPartyId;if(z){var G=function(){B.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",W.onFailureCommand)},Y=function(){B.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",W.onSuccessCommand)};
this.lastCallback=Y;var d=io1(this.createGalConfig(z,!1));this.unlinkUserGal(d,z).then(function(E){E.statusCode===1?Y():G()}).catch(function(){G()})}};
_.p.unlinkUserGal=function(W,B){return W.deleteLink(B)};
_.p.handleLogAccountLinkingEventCommand=function(W){_.r("enable_gel_log_commands")&&_.k(W,IVb)&&(W=_.k(W,IVb).event)&&_.Sy("gamingAccountLinkStatusChanged",W)};
_.G5.Object.defineProperties(OQ,{template:{configurable:!0,enumerable:!0,get:function(){return plf()}}});
_.Q([_.h(_.Ds.YtOpenPopupBehavior),_.y("design:type",Object)],OQ.prototype,"ytOpenPopupBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],OQ.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-third-party-manager"})],OQ);_.D(OQ,"ytd-third-party-manager",function(){return plf()},{mode:_.PJ("kevlar_poly_si_batch_j081")?1:2});var ATn,idO=function(){if(ATn!==void 0)return ATn;var W=document.createElement("template");_.I(W,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ATn=W};var X8=function(){var W=_.S.apply(this,arguments)||this;W.currentPage=void 0;W.renderLoadingStateJobId=0;W.updatePageDataJobId=0;W.pageDisposeJobsets=new WeakMap;W.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"};W.shouldApplyLockupToWatchTransition=_.r("web_thumbnail_to_watch_transition");W.shouldApplySlideTransition=_.EA("web_page_transition_type")==="slide"||_.r("enable_plj_landing_page");W.shouldApplyLearningJourneyTransition=_.r("enable_plj_landing_page");W.TEST_ONLY=void 0;return W};
_.C(X8,_.S);_.p=X8.prototype;_.p.ready=function(){var W=_.dO();W.addProvider({provide:_.ij,useValue:this});W.addProvider({provide:_.rJ6,useValue:this})};
_.p.created=function(){this.pagePool=new fSi;this.contextSwitcher=new $V1};
_.p.attached=function(){_.v0(this.hostElement,"attached");var W=_.dO().resolve(_.Y8(_.ns));W&&(this.contextSwitcher.JSC$19839_networkService_=W);this.viewTransitionManager=_.dO().resolve(_.LD)};
_.p.getPageOffset=function(W){return W.getScrollTop()};
_.p.setPageOffset=function(W,B){try{W.setScrollTop(B)}catch(z){}};
_.p.setPageOffsetForNavigation=function(W,B){_.v0(this.hostElement,"yt-navigate-set-page-offset",{page:W,offset:B===void 0?0:B})};
_.p.pauseActiveContext=function(){var W=this.contextSwitcher;W.activeContext_&&W.activeContext_.pause()};
_.p.getModuleNameForType=function(W){return W==="watch"?_.r("kevlar_watch_fixie")?"watchFixie":_.r("kevlar_watch_grid")?"watchGrid":"watchFlexy":W==="shorts"||W==="search"?W:"browse"};
_.p.attachPage=function(W){var B,z=!_.r("pc_is_attached_ks")&&(W==null?void 0:(B=W.polymerController)==null?void 0:B.isAttached);if(!W.isAttached&&!z)try{_.tH(this.hostElement).appendChild(W)}catch(Y){var G;_.Oc(new _.oX("Error attaching page element for component",{origin:(G=this.currentPage)==null?void 0:G.is,component:W.is}))}};
_.p.setActivePage=function(W,B){var z=this,G=!1,Y=function(){var d=z.isOnWatch(),E=z.currentPage;if(W)if(W!==z.currentPage){E&&(E.hidden=!0,E.active=!1,E.removeAttribute("role"));z.currentPage=W;var v,c=B!=null?B:_.Cs((v=z.data)==null?void 0:v.endpoint);E&&_.v0(z.hostElement,"yt-page-type-changed",{oldPageType:E.is,newPageType:W.is,newPageSubtype:c});_.p8().dispatch(_.Tl({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:W.is}));_.p8().dispatch(_.Tl({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:c||""}));
W.hidden=!1;z.attachPage(W);W.active=!0;W.setAttribute("role","main");E&&z.setPageOffsetForNavigation(W,0);_.r("kevlar_remove_page_dom_on_switch")&&!d&&E&&_.tH(z.hostElement).removeChild(E)}else G=!0;else z.handleMissingDestinationPage(E)};
this.shouldRunBrowseTransition(this.currentPage,W)?eZO(this.viewTransitionManager,Y):this.shouldRunLearningJourneyTransition(this.currentPage,W)?Di9(this.viewTransitionManager,Y):Y();return G};
_.p.handleMissingDestinationPage=function(W){if(this.isColdLoadForUnknownPage(W))_.Oc(new _.oX("Cold load for unknown page"));else{var B;W=new _.oX("Unable to set active page",W?W.is:"unknown origin",(B=this.data)==null?void 0:B.endpoint);_.jy(W)}};
_.p.isColdLoadForUnknownPage=function(W){return!W&&aU(this.data)==="unknown"};
_.p.shouldRunBrowseTransition=function(W,B){return this.shouldApplySlideTransition&&(W==null?void 0:W.is)==="ytd-browse"&&(B==null?void 0:B.is)==="ytd-browse"&&W!==B};
_.p.shouldRunLearningJourneyTransition=function(W,B){return this.shouldApplyLearningJourneyTransition&&(W==null?void 0:W.is)==="ytd-browse"&&((B==null?void 0:B.is)==="ytd-watch-learning-journey"||(B==null?void 0:B.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.p.shouldRunWatchNextLoadedTransition=function(W,B){return this.viewTransitionManager&&W.is==="ytd-watch-flexy"&&B};
_.p.updatePageData=function(W){var B=this,z=this.data;this.updatePageDataJobId&&_.fg.cancelJob(this.updatePageDataJobId);this.data=W;return new _.Vx(function(G){var Y=function(){W.filler?B.performDataUpdate(W,z):$gj(function(){B.performDataUpdate(W,z)});
var c=_.J5();_.gW(c,"cr")||c.processSignal("cr");G()},d=function(){W&&W.page==="watch"?B.updatePageDataJobId=_.OM(_.fg,Y):Y()};
if(_.r("kevlar_enable_mss_page_modules_client")&&W){var E=_.dO().resolve(_.qg),v=B.getModuleNameForType(W.page);(E=Kwb(E,[v]))?E.then(d):d()}else d()})};
_.p.isDownloadsPage=function(W){var B,z;return(W==null?void 0:(B=W.endpoint)==null?void 0:(z=B.browseEndpoint)==null?void 0:z.browseId)==="FEdownloads"};
_.p.setPlayerSyncInterval=function(W){var B;return _.T(function(z){if(z.nextAddress==1)return z.yield(_.dO().resolve(_.Jg),2);B=z.yieldResult;B.setUpPositionSyncInterval(W);_.HG(z)})};
_.p.performDataUpdate=function(W,B){_.r("kevlar_early_popup_close")||_.c0(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var z=!W.filler;z&&(_.mj("lps"),_.r("config_age_report_killswitch")||rqn());var G=aU(W),Y,d=!1;if(_.r("kevlar_remove_page_dom_on_switch")){var E=B&&aU(B);G===E&&(Y=this.getCurrentPage())}Y||(Y=CX(this.pagePool,G));z&&MT9(this.pagePool.elementPoolPopulator,G);z&&!this.renderLoadingStateJobId&&(d=this.setActivePage(Y));if(Y){E=G==="watch";var v=
G==="shorts",c=G==="learning_journey_watch";_.r("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(Y);if(E||v||c)Y.playerData=W.playerResponse;if(v)if(_.r("web_enable_delay_shorts_sequence_call")){W.reelWatchSequenceResponse&&(W.reelWatchSequenceResponse.entries||W.reelWatchSequenceResponse.prevEntries)&&(Y.reelWatchSequenceResponse=W.reelWatchSequenceResponse);Y.currentEndpoint=W.endpoint;var J;Y.isPreviousPageShorts=!!(B==null?0:(J=B.endpoint)==null?0:J.reelWatchEndpoint);
var g,t;W.cachedSequenceParams=((g=W.endpoint)==null?void 0:(t=g.reelWatchEndpoint)==null?void 0:t.sequenceParams)||W.cachedSequenceParams||(B==null?void 0:B.cachedSequenceParams);var P,Z;W.cachedSequenceProvider=((P=W.endpoint)==null?void 0:(Z=P.reelWatchEndpoint)==null?void 0:Z.sequenceProvider)||W.cachedSequenceProvider||(B==null?void 0:B.cachedSequenceProvider);Y.cachedSequenceParams=W.cachedSequenceParams;Y.cachedSequenceProvider=W.cachedSequenceProvider}else{W.reelWatchSequenceResponse&&(W.reelWatchSequenceResponse.entries||
W.reelWatchSequenceResponse.prevEntries)?Y.reelWatchSequenceResponse=W.reelWatchSequenceResponse:W.cachedReelWatchSequenceResponse?Y.reelWatchSequenceResponse=W.cachedReelWatchSequenceResponse:_.r("web_enable_cached_reel_sequence_fix")&&Y.cachedReelWatchSequenceResponse&&!Y.reelWatchSequenceResponse&&(Y.reelWatchSequenceResponse=Y.cachedReelWatchSequenceResponse);Y.currentEndpoint=W.endpoint;var l;Y.isPreviousPageShorts=!!(B==null?0:(l=B.endpoint)==null?0:l.reelWatchEndpoint);W.cachedReelWatchSequenceResponse=
W.reelWatchSequenceResponse||W.cachedReelWatchSequenceResponse||(B==null?void 0:B.cachedReelWatchSequenceResponse);Y.cachedReelWatchSequenceResponse=W.cachedReelWatchSequenceResponse}J=this.isDownloadsPage(W);g=this.isDownloadsPage(B);J&&!g?this.setPlayerSyncInterval(6E5):!J&&g&&this.setPlayerSyncInterval();_.r("block_all_player_prefetch_requests")||this.preparePrefetchRequest(W,Y,z,E,v,c);QO9(_.dO().resolve(_.Qb),B,W);var b;(b=_.dO().resolve(_.Y8(_.Go)))==null||C09(b,this.getPersistentPanelSurface(G));
_.H$(_.dO().resolve(_.jX));_.r("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(Y);z?(z=typeof Y.loadPage,z==="function"?(Y.pageContext=L50(this.contextSwitcher,Y,Y.data!==W.response),z=function(){Y.loadPage(W.response)},this.shouldApplySlideTransition&&Y.is==="ytd-browse"&&d&&(G==="learning"||this.isDifferentBrowseId(W==null?void 0:W.endpoint,B==null?void 0:B.endpoint))?eZO(this.viewTransitionManager,z):this.shouldRunWatchNextLoadedTransition(Y,d)?xi1(this.viewTransitionManager,
z):z()):_.fG(new _.oX("b/38014653 ",[G,
Y.is,Y.nodeName,z,Y.isAttached,B&&aU(B),this.hostElement.children.length])),_.mj("pdl")):(Y.hidden=!0,W.response.filler=!0,Y.data=W.response,this.attachPage(Y));_.v0(this.hostElement,"yt-page-data-updated",{pageType:G})}_.CG(_.fg,function(){_.r("logging_avoid_blocking_during_navigation")&&_.wAR().transition("none");var O=TsO(),K=Y;if(W){var e=Zy0(W),a=rYi(W),q;a:{if(W.playerResponse){var n=W.playerResponse,L;if((q=n.auxiliaryUi)==null?0:(L=q.messageRenderers)==null?0:L.upsellDialogRenderer){q=n.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(W.response&&(q=W.response,(n=q.overlay)==null?0:n.upsellDialogRenderer)){q=q.overlay.upsellDialogRenderer;break a}q=void 0}var By;var gk;L=(By=W.playerResponse)==null?void 0:(gk=By.auxiliaryUi)==null?void 0:gk.messageRenderers;By=(L==null?void 0:L.enforcementMessageViewModel)||(L==null?void 0:L.bkaEnforcementMessageViewModel);By=(By==null?void 0:By.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?By:void 0;var vy;a:{if(W.response&&(gk=W.response,(vy=gk.overlay)==
null?0:vy.commandWrapperPromoRenderer)){vy=gk.overlay.commandWrapperPromoRenderer;break a}vy=void 0}ER0(O,e,a,q,By,vy,K)}})};
_.p.preparePrefetchRequest=function(W,B,z,G,Y,d){var E,v,c,J,g,t,P,Z,l,b,O,K,e,a,q;return _.T(function(n){if(n.nextAddress==1)return!z||!(G||Y||d)||_.r("kevlar_disable_background_prefetch")&&_.D5(_.J7R)()===0?n.return():(E=_.EM(B))?n.yield(E.getPlayerPromise(),2):n.return();v=n.yieldResult;c=_.dO().resolve(_.Y8(_.ns));if(!c)return n.return();if(Y)return J=_.Yn(_.Ur),YLr(J,(g=W.endpoint)==null?void 0:g.reelWatchEndpoint,B.reelWatchSequenceResponse,v,c),n.return();Z=(t=W.response)==null?void 0:(P=t.responseContext)==
null?void 0:P.webResponseContextExtensionData;if(!Z)return n.return();e=(l=W.response)==null?void 0:(b=l.contents)==null?void 0:(O=b.twoColumnWatchNextResults)==null?void 0:(K=O.autoplay)==null?void 0:K.autoplay;a=_.dO().resolve(_.wW);q=_.Yn(_.Ur);dif(q,Z,v,c,a,e);_.HG(n)})};
_.p.movePlayerToWatch=function(W){var B=this,z,G;return _.T(function(Y){z=CX(B.pagePool,"watch");G=z.getPlayerContainer();W.appendTo(G);_.HG(Y)})};
_.p.movePlayerToShorts=function(W){var B=this,z,G,Y;return _.T(function(d){z=CX(B.pagePool,"shorts");G=z.getPlayerContainer();(Y=W)==null||Y.appendTo(G,void 0,!0);_.HG(d)})};
_.p.getPlayerFromWatch=function(){var W=CX(this.pagePool,"watch");return _.EM(W)};
_.p.getPlayerFromShorts=function(){var W=CX(this.pagePool,"shorts");return _.EM(W)};
_.p.startLoadingWatch=function(){var W=this,B=CX(this.pagePool,"watch");this.renderLoadingStateJobId?(_.fg.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.r("web_watch_transition_enable_start_loading_watch_callsite")?mii(this.viewTransitionManager,function(){W.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(B,"watch")};
_.p.startLoadingShorts=function(){var W=CX(this.pagePool,"shorts");this.setActivePage(W,"shorts")};
_.p.startLoadingLearningJourney=function(){var W=CX(this.pagePool,"learning_journey_watch");this.setActivePage(W,"learning_journey_watch")};
_.p.getCurrentPage=function(){return this.currentPage};
_.p.getDestinationPageType=function(){return this.destinationPageType};
_.p.getCurrentData=function(){return this.data};
_.p.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.p.isOnShorts=function(){var W;return((W=this.currentPage)==null?void 0:W.is)==="ytd-shorts"};
_.p.isWatchPage=function(W){return!!W&&(W.is==="ytd-watch-flexy"||W.is==="ytd-watch-fixie"||W.is==="ytd-watch-grid")};
_.p.preparePage=function(W,B){var z=this,G=function(){var E=z.pagePool.preparePage(W,z.currentPage,B);E&&z.attachPage(E)},Y=function(E){_.XC(E,B);
_.Oc(E)};
if(_.r("kevlar_enable_mss_page_modules_client")){var d=this.getModuleNameForType(W);if(d=Kwb(_.dO().resolve(_.qg),[d])){d.then(G.bind(this)).catch(Y.bind(this));return}}try{G()}catch(E){Y(E)}};
_.p.lazyPrepareCriticalPages=function(W,B){W=_.Cs(B)||W;_.r("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(W).then(this.maybePrepareWatchPage.bind(this,W)):this.maybePrepareWatchPage(W)};
_.p.maybePrepareWatchPage=function(W){W==="watch"||W==="learning_journey_watch"&&_.r("web_watch_learning_journey_disable_lazy_pages")||_.CG(_.fg,this.preparePage.bind(this,"watch"))};
_.p.downloadPageModules=function(W){W=this.getModuleNameForType(W);var B=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);B.delete(W);var z=_.dO().resolve(_.qg);z.JSC$18572_loadModules(W);return z.JSC$18572_loadModules.apply(z,_.u7(B))};
_.p.renderPageLoadingState=function(W,B){this.preparePage(W,B);var z=CX(this.pagePool,W);z.loadingData&&(z.loadingData.endpoint=B);z.loading=!0;this.setActivePage(z,W);W!=="watch"&&W!=="learning_journey_watch"||_.v0(this.hostElement,"yt-guide-close")};
_.p.prepareForNavigation=function(W,B){var z=this;if(this.currentPage&&this.data){var G=_.Cs(B)||W;this.destinationPageType=G;aU(this.data)==G&&_.v0(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((W==="watch"||W==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.fg.cancelJob(this.renderLoadingStateJobId);_.dO().resolve(_.Qb).deactivate(B);_.gn(_.fg,function(){var d=z.viewTransitionManager,E=z.currentPage;
if(d.isLockupToWatchTransitionEnabled&&d.isLockupThumbnailRegistrationEnabled&&E)if(d.registeredLockupThumbnail)d.lockupThumbnailRegisteredFromWatchEndpoint&&_.Oc(new _.oX("Lockup thumbnail already registered from watch endpoint."));else{a:{var v=_.k(B,_.W0);if(v==null?0:v.videoId){var c="yt-lockup-view-model ."+_.rdk(v.videoId)+" yt-thumbnail-view-model";E=E.querySelectorAll(c);if(E.length===1){v=E[0];break a}E.length>1?_.Oc(new _.oX("Multiple LockupViewModel thumbnails found for videoId: "+v.videoId+
". Selector: "+c)):_.r("web_thumbnail_to_watch_transition_debug")&&_.Oc(new _.oX("No LockupViewModel thumbnail found for videoId: "+v.videoId+". Selector: "+c))}v=void 0}v&&(d.registeredLockupThumbnail=v,d.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.d5b(d,v))}});
var Y=this.data;this.renderLoadingStateJobId=_.gn(_.fg,function(){mii(z.viewTransitionManager,function(){if(z.data!=Y){var d=CX(z.pagePool,W);z.setActivePage(d)}else z.renderPageLoadingState(W,B);z.renderLoadingStateJobId=0})},150)}};
_.p.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var W=new _.F$(1);this.currentPage.pageDisposeJobs.forEach(function(B){_.Sx(W,B)});
this.pageDisposeJobsets.set(this.currentPage,W)}};
_.p.flushPageDisposeJobset=function(W){var B=this.pageDisposeJobsets.get(W);B&&(B.flushJobs(),this.pageDisposeJobsets.delete(W))};
_.p.onYtStopOldPlayer=function(W,B){B=B===void 0?!1:B;var z,G=_.T4("kevlar_new_stop_old_player_logic_pages");if(_.r("kevlar_check_current_page_on_stop_old_player")&&(G.length===0||this.currentPage&&G.includes(this.currentPage.is)))if(this.data&&(z=aU(this.data)),aU(W)===z&&this.currentPage&&aU(this.currentPage.data)!==z)var Y=_.EM(this.currentPage);else z=aU(this.data),Y=CX(this.pagePool,z),Y=_.EM(Y);else this.data&&(z=aU(this.data),Y=CX(this.pagePool,z),Y=_.EM(Y));if(Y)if(W=aU(W),G=CX(this.pagePool,
W),G=_.EM(G),Y==G)B&&!_.r("kevlar_disable_preemptive_player_reset")&&Y.resetForNewPlayback();else if(B=z==="watch"&&W!=="watch",!B||W==="shorts"||_.ZYu()&&!t41(this.data)&&W!=="yts-products"&&W!="mini_app"&&W!="playables")z=_.dO().resolve(_.Qb),B&&z.isMiniplayerActive()&&z.pipController.getWindow()||Y.stop()};
_.p.isDifferentBrowseId=function(W,B){W=_.k(W,_.oE);B=_.k(B,_.oE);return(W==null?void 0:W.browseId)!==(B==null?void 0:B.browseId)};
_.p.getPersistentPanelSurface=function(W){switch(W){case "watch":return 0;default:return 1}};
_.G5.Object.defineProperties(X8,{template:{configurable:!0,enumerable:!0,get:function(){return idO()}}});
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],X8.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-page-manager"})],X8);_.D(X8,"ytd-page-manager",function(){return idO()},{mode:_.PJ("kevlar_poly_si_batch_j081")?1:2});var EDr;var KX=function(){var W=_.S.apply(this,arguments)||this;W.useListItemStyles=_.r("web_list_item_style_for_menu_items");W.systemIcons=_.r("kevlar_system_icons");return W};
_.C(KX,_.S);_.p=KX.prototype;_.p.ready=function(){this.hostElement.addEventListener("tap",_.Co(this,this.onEndpointTapExtra))};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.p.onFocus=function(){var W;(W=_.tH(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.p.onEndpointTapExtra=function(W){_.v0(this.hostElement,"iron-activate");var B=this.data.navigationEndpoint;B&&_.k(B,_.afu)&&(W.stopPropagation(),_.Jr(this.hostElement,[B],this.hostElement))};
_.p.computeIcon=function(W){return W&&W.iconType?_.lg(W.iconType):""};
_.p.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.p.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.p.forceUpdateStylesOnLegacyBrowsers=function(){_.r("kevlar_legacy_browsers")&&_.kw(this.hostElement)};
KX.prototype.forceUpdateStylesOnLegacyBrowsers=KX.prototype.forceUpdateStylesOnLegacyBrowsers;KX.prototype.onFocus=KX.prototype.onFocus;_.Q([_.h(_.oY),_.y("design:type",Object)],KX.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(_.Lc7.YtConditionalRendererBehavior),_.y("design:type",Object)],KX.prototype,"ytConditionalRendererBehavior",void 0);_.Q([_.h(_.Qe.YtEndpointBehavior),_.y("design:type",Object)],KX.prototype,"ytEndpointBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],KX.prototype,"data",void 0);_.Q([_.F({computed:"computeIcon(data.icon)",value:""}),_.y("design:type",String)],KX.prototype,"icon",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],KX.prototype,"useIcons",void 0);_.Q([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.y("design:type",Boolean)],KX.prototype,"hasSeparator",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],KX.prototype,"useListItemStyles",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],KX.prototype,"systemIcons",void 0);_.Q([_.IN("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KX.prototype,"onFocus",null);_.Q([_.oN("useIcons","hasSeparator"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KX.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.D(KX,"ytd-menu-navigation-item-renderer",function(){if(EDr===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);EDr=W}W=EDr;return W},{mode:1});var Tv9;var vDi=_.Bg(_.kq("DOWNLOAD",{},"Download")),cTY=_.Bg(_.kq("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),wl1=_.Bg(_.kq("RETRY",{},"Retry")),VM9=_.Bg(_.kq("PAUSE_DOWNLOADING",{},"Pause downloading")),JT9=_.Bg(_.kq("RESUME_DOWNLOAD",{},"Resume download")),u3=function(){var W=_.S.apply(this,arguments)||this;W.primaryText=vDi;W.primaryIconType="OFFLINE_DOWNLOAD";W.hasSecondaryContent=!1;W.hasSeparator=!1;W.transferState="TRANSFER_STATE_UNKNOWN";W.isVideoDeletedByUser=!1;W.isHidden=!1;W.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return W};
_.C(u3,_.S);_.p=u3.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.p.onFocus=function(){this.primaryEntry.focus()};
_.p.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.p.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.p.getRemoveAction=function(){return"ACTION_REMOVE"};
_.p.sendOfflineAction=function(W){var B=this.data.serviceEndpoint;if(B){var z=_.k(B,_.C2);z&&W&&(z.action=W);this.ytComponentBehavior.resolveCommand(B)}};
_.p.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=vDi,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=vDi;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=wl1;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=cTY;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=JT9;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=cTY;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
VM9;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=cTY;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=cTY;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=vDi,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.p.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.p.isSecondaryEntryHidden=function(W,B){return W?!0:!B};
_.p.computeHasSeparator=function(){var W;return!((W=this.data)==null||!W.hasSeparator)};
u3.prototype.showHideButton=u3.prototype.showHideButton;u3.prototype.onTransferStateChange=u3.prototype.onTransferStateChange;u3.prototype.onFocus=u3.prototype.onFocus;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],u3.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],u3.prototype,"ytComponentBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],u3.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],u3.prototype,"primaryText",void 0);_.Q([_.F(),_.y("design:type",String)],u3.prototype,"primaryIconType",void 0);_.Q([_.F(),_.y("design:type",String)],u3.prototype,"primaryAction",void 0);_.Q([_.F(),_.y("design:type",Object)],u3.prototype,"secondaryText",void 0);_.Q([_.F(),_.y("design:type",String)],u3.prototype,"secondaryIconType",void 0);
_.Q([_.F(),_.y("design:type",String)],u3.prototype,"secondaryAction",void 0);_.Q([_.F(),_.y("design:type",Object)],u3.prototype,"hasSecondaryContent",void 0);_.Q([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.y("design:type",Object)],u3.prototype,"hasSeparator",void 0);_.Q([_.F({selector:_.yg,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.y("design:type",String)],u3.prototype,"transferState",void 0);
_.Q([_.F({selector:_.h7t,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.y("design:type",Object)],u3.prototype,"isVideoDeletedByUser",void 0);_.Q([_.F(),_.y("design:type",Object)],u3.prototype,"isHidden",void 0);_.Q([_.F({selector:_.ZIy,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.y("design:type",Object)],u3.prototype,"offlineabilityState",void 0);_.Q([_.Hf("#primary-entry"),_.y("design:type",Object)],u3.prototype,"primaryEntry",void 0);
_.Q([_.IN("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],u3.prototype,"onFocus",null);_.Q([_.jJ("transferState","isVideoDeletedByUser"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],u3.prototype,"onTransferStateChange",null);_.Q([_.jJ("offlineabilityState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],u3.prototype,"showHideButton",null);
_.D(u3,"ytd-menu-service-item-download-renderer",function(){if(Tv9===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);Tv9=W}W=Tv9;return W},{mode:1});var gD9;var eG=function(){var W=_.S.apply(this,arguments)||this;W.useIcons=!1;W.systemIcons=_.r("kevlar_system_icons");W.useListItemStyles=_.r("web_list_item_style_for_menu_items");return W};
_.C(eG,_.S);_.p=eG.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.p.onFocus=function(){var W;(W=_.tH(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.p.onTap=function(){_.wV(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var W=this.data.serviceEndpoint,B=this.data.command;if(W){var z,G=(z=this.data)==null?void 0:z.trackingParams;z=!!_.k(W,_.FGR);G&&z&&_.Y_().dispatch(_.Tl({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:G}}));this.ytComponentBehavior.resolveCommand(W)||_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}})}B&&(this.ytComponentBehavior.resolveCommand(B)||_.Jr(this.hostElement,
[B],this.hostElement))};
_.p.computeIcon=function(W){return W&&W.iconType?_.lg(W.iconType):""};
_.p.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.p.computeHasSeparator=function(){var W;return!((W=this.data)==null||!W.hasSeparator)};
_.p.forceUpdateStylesOnLegacyBrowsers=function(){_.r("kevlar_legacy_browsers")&&_.kw(this.hostElement)};
_.p.computeIsSelected=function(){var W;return!((W=this.data)==null||!W.isSelected)};
eG.prototype.forceUpdateStylesOnLegacyBrowsers=eG.prototype.forceUpdateStylesOnLegacyBrowsers;eG.prototype.onTap=eG.prototype.onTap;eG.prototype.onFocus=eG.prototype.onFocus;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],eG.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],eG.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(_.Lc7.YtConditionalRendererBehavior),_.y("design:type",Object)],eG.prototype,"ytConditionalRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],eG.prototype,"data",void 0);_.Q([_.F({computed:"computeIcon(data.icon)",value:""}),_.y("design:type",String)],eG.prototype,"icon",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],eG.prototype,"useIcons",void 0);
_.Q([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.y("design:type",Boolean)],eG.prototype,"hasSeparator",void 0);_.Q([_.F({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.y("design:type",Boolean)],eG.prototype,"isSelected",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],eG.prototype,"systemIcons",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],eG.prototype,"useListItemStyles",void 0);
_.Q([_.IN("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eG.prototype,"onFocus",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],eG.prototype,"onTap",null);_.Q([_.oN("useIcons","hasSeparator"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eG.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.D(eG,"ytd-menu-service-item-renderer",function(){if(gD9===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);gD9=W}W=gD9;return W},{mode:2});var tM6;var mB=function(){return _.S.apply(this,arguments)||this};
_.C(mB,_.S);_.p=mB.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onDataChanged=function(){var W=this;_.BM(this,function(){W.postbox.openDialog();W.focus();_.v0(W.hostElement,"yt-refit")})};
_.p.focus=function(){this.postbox.focus()};
_.p.closePopup=function(){_.c0(this.hostElement,"yt-close-popup-action")};
_.p.onYtCommentboxDismiss=function(){this.closePopup()};
mB.prototype.onYtCommentboxDismiss=mB.prototype.onYtCommentboxDismiss;mB.prototype.onDataChanged=mB.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],mB.prototype,"data",void 0);_.Q([_.F({value:function(){return _.kq("SBOX_INAPPROPRIATE_CANCEL")}}),
_.y("design:type",String)],mB.prototype,"closeButtonAriaLabel",void 0);_.Q([_.Hf("#postbox"),_.y("design:type",Object)],mB.prototype,"postbox",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mB.prototype,"onDataChanged",null);_.Q([_.IN("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mB.prototype,"onYtCommentboxDismiss",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],mB);
_.D(mB,"ytd-backstage-post-dialog-popup-renderer",function(){if(tM6!==void 0)return tM6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tM6=W},{mode:1});var saK;var xs=function(){return _.S.apply(this,arguments)||this};
_.C(xs,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],xs.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],xs.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],xs);
_.D(xs,"ytd-sender-id-section-renderer",function(){if(saK!==void 0)return saK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return saK=W},{mode:1});var Pni;var Zdi;var rTr;var Dj=function(){return _.S.apply(this,arguments)||this};
_.C(Dj,_.S);Dj.prototype.closePopup=function(){_.c0(this.hostElement,"yt-close-popup-action")};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Dj.prototype,"data",void 0);_.Q([_.NJ({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Dj);
_.D(Dj,"yt-community-post-section-renderer",function(){if(rTr===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Zdi===void 0&&(Zdi=document.createElement("template"));var G=Zdi;z.call(B,G.content.cloneNode(!0),W.content.firstChild);rTr=W}W=rTr;return W},{mode:2});var kJf;var lY6;var Cnf;var IYK;var oDq;var hbr;var Qp=function(){return _.S.apply(this,arguments)||this};
_.C(Qp,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Qp.prototype,"data",void 0);_.Q([_.NJ({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Qp);
_.D(Qp,"yt-share-start-time-with-context-renderer",function(){if(hbr===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;oDq===void 0&&(oDq=document.createElement("template"));var G=oDq;z.call(B,G.content.cloneNode(!0),W.content.firstChild);hbr=W}W=hbr;return W},{mode:2});var yp=function(){return _.S.apply(this,arguments)||this};
_.C(yp,_.S);yp.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],yp.prototype,"data",void 0);_.Q([_.NJ({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],yp);
_.D(yp,"yt-share-panel-title-v15-renderer",function(){if(IYK===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Cnf===void 0&&(Cnf=document.createElement("template"));var G=Cnf;z.call(B,G.content.cloneNode(!0),W.content.firstChild);IYK=W}W=IYK;return W},{mode:2});var qN=function(){return _.S.apply(this,arguments)||this};
_.C(qN,_.S);qN.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"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],qN.prototype,"data",void 0);_.Q([_.NJ({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],qN);
_.D(qN,"yt-share-panel-header-renderer",function(){if(lY6===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;kJf===void 0&&(kJf=document.createElement("template"));var G=kJf;z.call(B,G.content.cloneNode(!0),W.content.firstChild);lY6=W}W=lY6;return W},{mode:2});var Hd9;var Fnn;var nX=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-open-popup-action":"onOpen"};return W};
_.C(nX,_.S);_.p=nX.prototype;_.p.attached=function(){this.onOpen()};
_.p.updateTimeSecs=function(W){this.currentTimeSecs=W};
_.p.computeTimeString=function(W){W=W.toString();var B=Math.floor(Number(W)/3600),z=Math.floor(Number(W)%3600%60);return(B>0?B+":":"")+_.gw(Math.floor(Number(W)%3600/60),B>0?2:1)+":"+_.gw(z,2)};
_.p.computeTimeStringA11y=function(W){return _.OIR({seconds:W})};
_.p.getTimeParam=function(){return xEb(this.timeString)};
_.p.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var W={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},B;_.x3(_.SK(),(B=this.data)==null?void 0:B.trackingParams,W,7)};
_.p.onChangeStartAtTimestamp=function(){for(var W=this.startAtTimestamp.value.split(":"),B=0,z=1,G=W.length-1;G>=0;G--)B+=Number(W[G])*z,z*=60;this.updateTimeSecs(B);this.setTimestamp()};
_.p.onOpen=function(){var W=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var B=_.TN();B?B.getPlayerPromise().then(function(z){z=z.getCurrentTime();W.updateTimeSecs(z)}):W9n()&&this.updateTimeSecs(W9n())};
_.p.setTimestamp=function(){var W=Math.floor(this.currentTimeSecs);_.c0(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!W,timestamp:W||""}])};
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],nX.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],nX.prototype,"data",void 0);_.Q([_.F({value:!1,notify:!0}),_.y("design:type",Boolean)],nX.prototype,"isStartAtChecked",void 0);_.Q([_.F(),_.y("design:type",Number)],nX.prototype,"currentTimeSecs",void 0);
_.Q([_.F({computed:"computeTimeString(currentTimeSecs)"}),_.y("design:type",String)],nX.prototype,"timeString",void 0);_.Q([_.F({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.y("design:type",String)],nX.prototype,"timeStringA11y",void 0);_.Q([_.Hf("#start-at-timestamp"),_.y("design:type",Object)],nX.prototype,"startAtTimestamp",void 0);_.Q([_.NJ({is:"yt-start-at-renderer",disableElementRegistration:!0})],nX);
_.D(nX,"yt-start-at-renderer",function(){if(Fnn===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Hd9===void 0&&(Hd9=document.createElement("template"));var G=Hd9;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Fnn=W}W=Fnn;return W},{mode:2});var SGi;var bdr;var jai=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"]]),fY6=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"]]),Odi=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var Xlb={};Xlb.YtBindingExpressionsBehavior={identity:_.Ku,msg:function(W,B){B=B===void 0?{}:B;return _.kq(W,B,W)},
msgPlural:function(W,B){return _.lH(W,B)},
getMusicIconFromType:function(W){if(_.r("music_web_enable_icon_wil"))W=_.lg(W);else if(fY6.has(W))W="yt-sys-icons:"+fY6.get(W);else{var B=jai.get(W)||_.lg(W).split(":")[1];B=_.Aly(B);var z;W=((z=Odi.get(W))!=null?z:"yt-sys-icons:")+B}return W}};var KnO;var uyf;var ebi;var mUb=document.head,xUr=mUb.appendChild,DUK;if(ebi===void 0){var Qa9=document.createElement("template");_.I(Qa9,'\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>');ebi=Qa9}DUK=ebi;xUr.call(mUb,DUK.content);var NN=function(){var W=_.S.apply(this,arguments)||this;W.screenLayer=7;return W};
_.C(NN,_.S);NN.prototype.getScreenLayer=function(){return this.screenLayer};
NN.prototype.onTap=function(W){W&&W.detail&&(W.detail.x||W.detail.y)&&_.tH(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.V0(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(W=this.getScreenLayer(),_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:W}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.G5.Object.defineProperties(NN.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()}}});
NN.prototype.onTap=NN.prototype.onTap;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],NN.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],NN.prototype,"data",void 0);_.Q([_.H("data.title"),_.y("design:type",Object),_.y("design:paramtypes",[])],NN.prototype,"title",null);
_.Q([_.H("data.serviceName"),_.y("design:type",String),_.y("design:paramtypes",[])],NN.prototype,"icon",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],NN.prototype,"onTap",null);_.Q([_.NJ({is:"yt-share-target-renderer",disableElementRegistration:!0})],NN);
_.D(NN,"yt-share-target-renderer",function(){if(uyf===void 0){var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;KnO===void 0&&(KnO=document.createElement("template"));var G=KnO;z.call(B,G.content.cloneNode(!0),W.content.firstChild);uyf=W}W=uyf;return W},{mode:2});var yTY;var qGf;var $s=function(){var W=_.S.apply(this,arguments)||this;W.SHARE_TARGET_WIDTH=70;W.SHARE_TARGET_MARGIN_RIGHT=8;W.PAGE_SCROLL_SPEED=9;W.actionMap={"yt-share-panel-reset-action":"onReset_"};return W};
_.C($s,_.S);_.p=$s.prototype;_.p.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.p.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.tH(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.tH(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.p.onReset_=function(){if(_.tH(this.hostElement).querySelector("#list")){var W=_.tH(this.hostElement).querySelector("#list");var B=_.tH(this.hostElement).querySelector("#list");var z=B.offsetLeft,G=B.offsetParent;G||_.fiR(B)!="fixed"||(G=_.yY(B).documentElement);if(G){if(_.gb&&!_.sL(58)){var Y=_.Df4(G);z+=Y.left}else Number(_.WyR)>=8&&!(Number(_.WyR)>=9)&&(Y=_.Df4(G),z-=Y.left);B=_.mf4(G)?G.clientWidth-(z+B.offsetWidth):z}else B=z;ifj(W,B);this.updateScrollButtons_()}};
_.p.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.p.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.p.onScrollWheel_=function(W){W.stopPropagation();W.preventDefault();var B=AoO(_.tH(this.hostElement).querySelector("#list"));W=Math.abs(W.deltaX)>Math.abs(W.deltaY)?W.deltaX:W.deltaY;ifj(_.tH(this.hostElement).querySelector("#list"),B+W);this.updateScrollButtons_()};
_.p.smoothScrollByOnePage_=function(W){var B=_.tH(this.hostElement).querySelector("#list"),z=(Math.floor(B.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,G=AoO(B),Y=z*(W?1:-1),d=this.PAGE_SCROLL_SPEED,E=this.updateScrollButtons_.bind(this),v=0,c;(function g(){v+=d;c=v/z*2;ifj(B,G+Y*(c<1?c*c:-c*c+4*c-2));v<z?window.requestAnimationFrame(g):E()})()};
_.p.updateScrollButtons_=function(){var W=AoO(_.tH(this.hostElement).querySelector("#list")),B=_.tH(this.hostElement).querySelector("#list").scrollWidth-_.tH(this.hostElement).querySelector("#list").clientWidth;_.tH(this.hostElement).querySelector("#scroll-button-back").hidden=W<=0;_.tH(this.hostElement).querySelector("#scroll-button-forward").hidden=W>=B};
$s.prototype.onScrollWheel_=$s.prototype.onScrollWheel_;$s.prototype.onDataChanged_=$s.prototype.onDataChanged_;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],$s.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],$s.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(Xlb.YtBindingExpressionsBehavior),_.y("design:type",Object)],$s.prototype,"ytBindingExpressionsBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$s.prototype,"data",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$s.prototype,"onDataChanged_",null);_.Q([_.IN("wheel"),_.y("design:type",Function),_.y("design:paramtypes",[WheelEvent]),_.y("design:returntype")],$s.prototype,"onScrollWheel_",null);
_.Q([_.NJ({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],$s);
_.D($s,"yt-third-party-share-target-section-renderer",function(){if(qGf===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;yTY===void 0&&(yTY=document.createElement("template"));var G=yTY;z.call(B,G.content.cloneNode(!0),W.content.firstChild);qGf=W}W=qGf;return W},{mode:2});var LX=function(){return _.S.apply(this,arguments)||this};
_.C(LX,_.S);LX.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"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],LX.prototype,"data",void 0);_.Q([_.NJ({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],LX);
_.D(LX,"yt-third-party-network-section-renderer",function(){if(bdr===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;SGi===void 0&&(SGi=document.createElement("template"));var G=SGi;z.call(B,G.content.cloneNode(!0),W.content.firstChild);bdr=W}W=bdr;return W},{mode:2});_.Vm(_.m(function(W){return _.w("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.w("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.w(_.Sc,{data:function(){return W.data().firstPartyItems}},{listItemViewModel:_.cU})))},"mh"),"first-party-network-section-view-model",{props:{data:_.kz}});var nDr=(0,_.gEb)(_.Bp.share,{parentClickTrackingParamsSelector:function(W){return W.parentClickTrackingParams}});var Nvi=_.ak(["data:image/svg+xml;charset=UTF-8;base64,",""]),UQ=function(){var W=_.S.apply(this,arguments)||this;W.screenLayer=7;W.qrCodeEnabled=_.r("web_enable_sharing_qr_code");W.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return W};
_.C(UQ,_.S);_.p=UQ.prototype;_.p.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"}}}};
_.p.attached=function(){this.JSC$20079_scroller&&(this.JSC$20079_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20079_scroller.attached&&typeof this.JSC$20079_scroller.attached==="function"&&this.JSC$20079_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.p.onDataChanged=function(){var W=this,B;(B=this.data)!=null&&B.contents&&(this.hostElement.setAttribute("links-only","true"),_.Z8(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.BM(this,function(){_.v0(W.hostElement,"yt-refit");W.focusSharePanelHeader()}))};
_.p.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.p.handleSetTimestamp=function(W){var B=this.shortUrl();W.isSet&&(B=_.zE(B,"t",W.timestamp));this.maybeRenderQrCode(B)};
_.p.shortUrl=function(){var W,B=(W=this.data)==null?void 0:W.contents;if(B)for(W=0;W<B.length;W++){var z=void 0,G=void 0;if((z=B[W])==null?0:(G=z.thirdPartyNetworkSection)==null?0:G.copyLinkContainer){var Y=G=z=void 0;return(Y=_.k((z=B[W])==null?void 0:(G=z.thirdPartyNetworkSection)==null?void 0:G.copyLinkContainer,dKq))==null?void 0:Y.shortUrl}}};
_.p.maybeRenderQrCode=function(W){var B=this,z,G,Y,d,E,v,c,J,g;return _.T(function(t){if(t.nextAddress==1){z=_.tH(B.hostElement).querySelector("#qr-code");if(!B.qrCodeEnabled||!W)return z&&(z.style.display="none"),t.return();G=_.Pwx(_.dO().resolve(_.C8),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});Y=document.createElement("div");return typeof G==="function"?(G(Y),t.jumpTo(2)):t.yield(G,3)}t.nextAddress!=2&&(d=t.yieldResult,d(Y));c=(E=Y)==null?void 0:(v=E.firstChild)==null?void 0:v.firstChild;
J=document.createElement("img");g=_.BjQ(Nvi,btoa(c.outerHTML));J.onload=function(){var P={canvas:z,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:J},Z=new owr;jNr(Z,W);f8j(Z,!1,Ooj(Z));var l=Z.modules,b=Object.assign({},Uz9,P);l=structuredClone(l);P=l.length;var O,K=(O=b.canvas)!=null?O:document.createElement("canvas");O=b.cellSize;Z=b.logo;var e,a=(e=b.logoSize)!=null?e:Math.floor(P/4);P%2!==a%2&&a++;var q=b.logoPadding,n=b.backgroundColor;e=P*O;var L=
b.width,By=0;L&&(By=b.padding,By=Math.ceil(By*e/(L-By*2)),K.style.width=L+"px",K.style.height=L+"px");K.width!==e+By*2&&(K.width=e+By*2);K.height!==e+By*2&&(K.height=e+By*2);e=K.getContext("2d");b.autoClear&&e.clearRect(0,0,K.width,K.height);e.fillStyle=n;e.beginPath();e.roundRect(0,0,K.width,K.height,b.borderRadius);e.fill();e.save();e.translate(By,By);if(Z)for(K=Math.floor(P-a)/2-q,q=Math.floor(P+a)/2+q,n=K;n<q;n++)for(L=K;L<q;L++)l[n][L]=!1;for(K=0;K<P;K++)for(q=0;q<P;q++)(K<7&&q<7||K<7&&q>=P-
7||K>=P-7&&q<7)&&(l[K][q]=!1);var gk;K=(gk=b.markerColor)!=null?gk:b.color;Ksq(e,0,0,O,K);Ksq(e,O*(P-7),0,O,K);Ksq(e,0,O*(P-7),O,K);switch(b.cellStyle){case 0:gk=l;l=gk.length;K=b.cellSize;e.beginPath();for(q=0;q<l;q++)for(n=0;n<l;n++)gk[q][n]&&e.rect(q*K,n*K,K,K);e.fillStyle=b.color;e.fill();break;case 1:gk=l;l=gk.length;K=b.cellSize;q=K*b.relativeCircleSize;e.fillStyle=b.color;e.beginPath();for(b=0;b<l;b++)for(n=0;n<l;n++)gk[b][n]&&(e.beginPath(),e.ellipse((b+.5)*K,(n+.5)*K,q/2,q/2,0,0,2*Math.PI),
e.fill());e.fill();break;case 2:gk=l;l=gk.length;K=b.cellSize;e.fillStyle=b.color;b=[[1,1],[-1,1],[-1,-1],[1,-1]];e.beginPath();for(q=0;q<l;q++)for(n=0;n<l;n++)if(gk[q][n])e.roundRect(q*K,n*K,K,K,K/2),q+1<l&&gk[q+1][n]&&e.rect(q*K+K/2,n*K,K,K),n+1<l&&gk[q][n+1]&&e.rect(q*K,n*K+K/2,K,K);else{L=q*K+K/2;By=n*K+K/2;for(var vy=0;vy<4;vy++){var lx=_.A(b[vy]),Zv=lx.next().value;lx=lx.next().value;q+Zv>=0&&q+Zv<l&&n+lx>=0&&n+lx<l&&gk[q+Zv][n]&&gk[q][n+lx]&&gk[q+Zv][n+lx]&&(Zv=vy*Math.PI/2,lx=K/2,e.moveTo(L+
lx*Math.cos(Zv),By+lx*Math.sin(Zv)),e.arc(L,By,K/2,Zv,Zv+Math.PI/2,!1),e.lineTo(L+lx*(Math.cos(Zv)-Math.sin(Zv)),By+lx*(Math.cos(Zv)+Math.sin(Zv))),e.lineTo(L+lx*Math.cos(Zv),By+lx*Math.sin(Zv)))}}e.fill()}Z&&e.drawImage(Z,(P-a)*O/2,(P-a)*O/2,a*O,a*O);e.restore();z.style.removeProperty("display")};
J.src=_.mF(g);_.HG(t)})};
_.p.hasCommunityPostRenderer=function(){var W,B,z,G;return!!((W=this.data)==null?0:(B=W.header)==null?0:(z=B.sharePanelHeaderRenderer)==null?0:(G=z.communityPost)==null?0:G.communityPostSectionRenderer)};
_.p.onTapClose=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.p.getScreenLayer=function(){return this.screenLayer};
_.p.logSharePanelPage=function(){if(!_.r("enable_share_panel_navigation_logging_fix_on_web")){var W;if((W=this.data)!=null&&W.trackingParams){W=this.data.trackingParams;var B=this.parentClickTrackingParams;B=B?_.XF(B):void 0;var z=_.SK();_.KS(z,21760,B,{layer:7,parentLayer:0});z.graftServerVe(W,void 0,7);_.Y_().dispatch(_.Tl({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
UQ.prototype.onDataChanged=UQ.prototype.onDataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],UQ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],UQ.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],UQ.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],UQ.prototype,"data",void 0);_.Q([_.F({value:_.kq("SBOX_INAPPROPRIATE_CANCEL")}),_.y("design:type",String)],UQ.prototype,"closeButtonAriaLabel",void 0);_.Q([_.Hf("yt-share-panel-header-renderer"),_.y("design:type",HTMLElement)],UQ.prototype,"header",void 0);_.Q([_.F({selector:nDr.parentClickTrackingParamsSelector}),_.y("design:type",String)],UQ.prototype,"parentClickTrackingParams",void 0);_.Q([_.F(),_.y("design:type",Object)],UQ.prototype,"qrCodeEnabled",void 0);
_.Q([_.Hf("#scroller"),_.y("design:type",Object)],UQ.prototype,"JSC$20079_scroller",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UQ.prototype,"onDataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],UQ);
_.D(UQ,"ytd-unified-share-panel-renderer",function(){if(Pni!==void 0)return Pni;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Pni=W},{mode:1});var $U1;var MN=function(){var W=_.S.apply(this,arguments)||this;W.modernModal=!0;return W};
_.C(MN,_.S);MN.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
MN.prototype.computeShouldHideOldButtons=function(){var W;return!((W=this.data)==null?0:W.button)};
_.G5.Object.defineProperties(MN.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var W,B;return(W=this.data)==null?void 0:(B=W.button)==null?void 0:B.buttonRenderer}}});
_.Q([_.F(),_.y("design:type",Object)],MN.prototype,"data",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],MN.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],MN.prototype,"modernModal",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],MN.prototype,"buttonRendererData",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],MN);
_.D(MN,"ytd-modal-with-title-and-button-renderer",function(){if($U1!==void 0)return $U1;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $U1=W},{mode:1});var Lnf;var aL=function(){return _.S.apply(this,arguments)||this};
_.C(aL,_.S);aL.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("page-changed",this.page))};
aL.prototype.pageChangedForBinding=aL.prototype.pageChangedForBinding;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],aL.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],aL.prototype,"page",void 0);_.Q([_.oN("page"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aL.prototype,"pageChangedForBinding",null);
_.Q([_.u({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],aL);
_.D(aL,"ytd-account-item-section-header-renderer",function(){if(Lnf!==void 0)return Lnf;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Lnf=W},{mode:1});var UUq;var RL=function(){return _.S.apply(this,arguments)||this};
_.C(RL,_.S);RL.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"}}}};
RL.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],RL.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Pl),_.y("design:type",Object)],RL.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],RL.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!1}),_.y("design:type",Function)],RL.prototype,"onAccountItemTap",void 0);
_.Q([_.u({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],RL);
_.D(RL,"ytd-account-item-section-renderer",function(){if(UUq!==void 0)return UUq;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return UUq=W},{mode:1});var MMi;var aY9;var Ws=function(){return _.S.apply(this,arguments)||this};
_.C(Ws,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ws.prototype,"data",void 0);_.Q([_.u({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Ws);
_.D(Ws,"ytd-accounts-dialog-header-renderer",function(){if(aY9!==void 0)return aY9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return aY9=W},{mode:1});var Rb9;var Bs=function(){return _.S.apply(this,arguments)||this};
_.C(Bs,_.S);Bs.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Bs.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Bs.prototype,"data",void 0);_.Q([_.u({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Bs);
_.D(Bs,"ytd-google-account-header-renderer",function(){if(Rb9!==void 0)return Rb9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Rb9=W},{mode:1});var zZ=function(){return _.S.apply(this,arguments)||this};
_.C(zZ,_.S);zZ.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"}}}};
zZ.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("page-changed",this.page))};
zZ.prototype.pageChangedForBinding=zZ.prototype.pageChangedForBinding;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],zZ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],zZ.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],zZ.prototype,"page",void 0);
_.Q([_.oN("page"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zZ.prototype,"pageChangedForBinding",null);_.Q([_.u({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],zZ);
_.sV()(zZ,"ytd-account-section-list-renderer",function(){if(MMi===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);MMi=W}W=MMi;return W},{allowedProps:["data"],
mode:1});var WWi;var GZ=function(){var W=_.S.apply(this,arguments)||this;W.enableHandlesAccountMenuSwitcher=_.r("enable_handles_account_menu_switcher");return W};
_.C(GZ,_.S);GZ.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
GZ.prototype.dataChanged=GZ.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],GZ.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],GZ.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.Q([_.Hf("#avatar"),_.y("design:type",Object)],GZ.prototype,"avatar",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GZ.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],GZ);
_.sV()(GZ,"ytd-active-account-header-renderer",function(){if(WWi===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);WWi=W}W=WWi;return W},{allowedProps:["data"],
mode:1});var BG1;var zLn;var Ym=function(){return _.S.apply(this,arguments)||this};
_.C(Ym,_.S);Ym.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ym.prototype.onBackTap=function(){_.v0(this.hostElement,"yt-menu-back-tapped")};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ym.prototype,"data",void 0);_.Q([_.u({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Ym);
_.sV()(Ym,"ytd-simple-menu-header-renderer",function(){if(zLn===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);zLn=W}W=zLn;return W},{allowedProps:["data"],
mode:2});var GQq;var dy=function(){return _.S.apply(this,arguments)||this};
_.C(dy,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],dy.prototype,"data",void 0);_.Q([_.u({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],dy);
_.D(dy,"ytd-comment-video-thumbnail-header-renderer",function(){if(GQq!==void 0)return GQq;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return GQq=W},{mode:1});var YDn;var pB=function(){return _.S.apply(this,arguments)||this};
_.C(pB,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],pB.prototype,"data",void 0);_.Q([_.u({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],pB);
_.D(pB,"ytd-abuse-type-selector-renderer",function(){if(YDn!==void 0)return YDn;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return YDn=W},{mode:1});var dhn;var pm6=(0,_.gEb)(_.Bp.reportChannelAbuse,{isVideoIdSelectedSelector:function(W,B){return B in W.selectedVideoIds},
additionalContextSelector:function(W){return W.additionalContext},
impersonatedChannelUrlSelector:function(W){return W.impersonatedChannelUrl},
reportChannelAbuseSelector:function(W){return W}});var Am=function(){return _.S.apply(this,arguments)||this};
_.C(Am,_.S);Am.prototype.attached=function(){var W=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){W.additionalContextInput.focusTextInput()})};
Am.prototype.handleAdditionalContextChanged=function(){var W=this;_.BJ(this,"ytd-report-channel-additional-context-update",function(){W.ytdReduxBehavior.dispatch(_.Tl({type:"ADDITIONAL_CONTEXT_UPDATED",payload:W.additionalContext}))},300)};
Am.prototype.updateAdditionalContextFromBinding=function(W){this.additionalContext=W.detail.value};
Am.prototype.handleAdditionalContextChanged=Am.prototype.handleAdditionalContextChanged;_.Q([_.h(_.TB),_.y("design:type",Object)],Am.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",String)],Am.prototype,"additionalContext",void 0);_.Q([_.F({selector:pm6.additionalContextSelector}),_.y("design:type",String)],Am.prototype,"additionalContextRedux",void 0);_.Q([_.F(),_.y("design:type",Object)],Am.prototype,"data",void 0);
_.Q([_.Hf("yt-text-input-form-field-renderer"),_.y("design:type",Object)],Am.prototype,"additionalContextInput",void 0);_.Q([_.oN("additionalContext"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Am.prototype,"handleAdditionalContextChanged",null);_.Q([_.u({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],Am);
_.D(Am,"ytd-report-channel-modal-additional-context-renderer",function(){if(dhn!==void 0)return dhn;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return dhn=W},{mode:1});var AUY;var is=function(){var W=_.S.apply(this,arguments)||this;W.nextButtonDisabled=null;W.submitEndpoint=null;W.navigationEndpoint=null;W.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return W};
_.C(is,_.S);_.p=is.prototype;_.p.computeNextButtonData=function(W,B,z){var G={};B&&(G.navigationEndpoint=B);z&&(G.serviceEndpoint=z);W&&W.buttonRenderer&&_.mP.extend(G,W.buttonRenderer);return G};
_.p.handleReportChannelModalDisableNextButtonAction=function(W){this.setNextButtonIsDisabled(W)};
_.p.handleReportFormEndpointUpdateAction=function(W){this.setNextButtonIsDisabled(!!W.disableSubmitButton);this.resetEndpointData();W.submitEndpoint?this.submitEndpoint=W.submitEndpoint:W.submitNavigationEndpoint&&(this.navigationEndpoint=W.submitNavigationEndpoint)};
_.p.handleSignalActionSubmitForm=function(){var W,B=Object.keys(((W=this.reportChannelAbuseForm)==null?void 0:W.selectedVideoIds)||{}),z;W=((z=this.reportChannelAbuseForm)==null?void 0:z.additionalContext)||"";var G;z=((G=this.reportChannelAbuseForm)==null?void 0:G.impersonatedChannelUrl)||"";var Y;if((Y=this.data)==null?0:Y.submitEndpoint){B={impersonated_channel_url:z,text:W,video_ids:B};var d;_.dO().resolve(_.p4).resolveCommand((d=this.data)==null?void 0:d.submitEndpoint,{form:Object.assign({},
B,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.p.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.p.onYtServiceRequestError=function(W){this.setNextButtonIsDisabled(!1);_.Wk(this.hostElement,W.detail.error.message)};
_.p.setNextButtonIsDisabled=function(W){this.set("data.nextButton.buttonRenderer.isDisabled",W)};
_.p.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
is.prototype.onYtServiceRequestError=is.prototype.onYtServiceRequestError;is.prototype.onYtServiceRequestCompleted=is.prototype.onYtServiceRequestCompleted;_.Q([_.F(),_.y("design:type",Object)],is.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],is.prototype,"nextButtonDisabled",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],is.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],is.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],is.prototype,"submitEndpoint",void 0);_.Q([_.F(),_.y("design:type",Object)],is.prototype,"navigationEndpoint",void 0);_.Q([_.F({selector:pm6.reportChannelAbuseSelector}),_.y("design:type",Object)],is.prototype,"reportChannelAbuseForm",void 0);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],is.prototype,"onYtServiceRequestCompleted",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],is.prototype,"onYtServiceRequestError",null);_.Q([_.u({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],is);
_.D(is,"ytd-report-channel-modal-footer-renderer",function(){if(AUY!==void 0)return AUY;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return AUY=W},{mode:1});var iM9;var Ex=function(){var W=_.S.apply(this,arguments)||this;W.boundOnTapDismissButton=function(){W.closePopup()};
return W};
_.C(Ex,_.S);Ex.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Ex.prototype.handleDataChanged=function(){_.Lg(this.hostElement)};
Ex.prototype.closePopup=function(){_.c0(this.hostElement,"yt-close-popup-action")};
Ex.prototype.handleDataChanged=Ex.prototype.handleDataChanged;_.Q([_.F(),_.y("design:type",Object)],Ex.prototype,"boundOnTapDismissButton",void 0);_.Q([_.F(),_.y("design:type",Object)],Ex.prototype,"data",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ex.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ex.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ex.prototype,"handleDataChanged",null);_.Q([_.u({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Ex);
_.D(Ex,"ytd-report-channel-modal-header-renderer",function(){if(iM9!==void 0)return iM9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return iM9=W},{mode:1});var EQ1;var TZ=function(){var W=_.S.apply(this,arguments)||this;W.autoValidate=!1;W.invalid=!1;W.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return W};
_.C(TZ,_.S);_.p=TZ.prototype;_.p.attached=function(){var W=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){W.channelUrlInput.focusTextInput()})};
_.p.disableNextButton=function(W){_.c0(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[W])};
_.p.handleImpersonatedChannelUrlChanged=function(){var W=this;this.disableNextButton(!0);this.invalid=!1;_.BJ(this,"ytd-report-channel-impersonated-channel-update",function(){var B=W.impersonatedChannelUrl.trim();W.ytdReduxBehavior.dispatch(_.Tl({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:B}));var z;((z=W.data)==null?0:z.submitEndpoint)&&B&&_.dO().resolve(_.p4).resolveCommand(W.data.submitEndpoint,{form:{impersonated_channel_url:B,element:W.hostElement}})},500)};
_.p.handleModifyReportFormCommand=function(W){this.invalid=this.get("modifyReportFormCommand.action",W)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.p.updateInvalidFromBinding=function(W){this.invalid=W.detail.value};
_.p.updateImpersonatedChannelUrlFromBinding=function(W){this.impersonatedChannelUrl=W.detail.value};
TZ.prototype.handleImpersonatedChannelUrlChanged=TZ.prototype.handleImpersonatedChannelUrlChanged;_.Q([_.h(_.TB),_.y("design:type",Object)],TZ.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],TZ.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],TZ.prototype,"autoValidate",void 0);_.Q([_.F(),_.y("design:type",Object)],TZ.prototype,"invalid",void 0);
_.Q([_.F(),_.y("design:type",String)],TZ.prototype,"impersonatedChannelUrl",void 0);_.Q([_.F({selector:pm6.impersonatedChannelUrlSelector}),_.y("design:type",String)],TZ.prototype,"impersonatedChannelUrlRedux",void 0);_.Q([_.F(),_.y("design:type",Object)],TZ.prototype,"data",void 0);_.Q([_.Hf("#text-input"),_.y("design:type",Object)],TZ.prototype,"channelUrlInput",void 0);
_.Q([_.oN("impersonatedChannelUrl"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TZ.prototype,"handleImpersonatedChannelUrlChanged",null);_.Q([_.u({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],TZ);
_.D(TZ,"ytd-report-channel-modal-impersonation-renderer",function(){if(EQ1!==void 0)return EQ1;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return EQ1=W},{mode:1});var TG6;var vQj;var vs=function(){return _.S.apply(this,arguments)||this};
_.C(vs,_.S);vs.prototype.onCheckboxToggled=function(W){var B,z,G=(z=_.k((B=this.data)==null?void 0:B.video,_.vO))==null?void 0:z.videoId;G&&this.ytdReduxBehavior.dispatch(W.target.checked?_.Tl({type:"VIDEO_SELECTED",payload:G}):_.Tl({type:"VIDEO_UNSELECTED",payload:G}))};
vs.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.G5.Object.defineProperties(vs.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var W,B=(W=this.data)==null?void 0:W.video;if(!B)return{};var z;W=(z=_.k(B,_.vO))==null?void 0:z.navigationEndpoint;if(!W)return B;_.k(W==null?void 0:W.commandMetadata,_.Z4)&&(_.k(W.commandMetadata,_.Z4).ignoreNavigation=!0);return B}}});
_.Q([_.F({reflectToAttribute:!0,selector:pm6.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.y("design:type",Boolean)],vs.prototype,"checked",void 0);_.Q([_.F(),_.y("design:type",Object)],vs.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],vs.prototype,"video",null);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],vs.prototype,"ytdReduxBehavior",void 0);_.Q([_.u({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],vs);
_.D(vs,"ytd-selectable-video-renderer",function(){if(vQj!==void 0)return vQj;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return vQj=W},{mode:1});var cs=function(){var W=_.S.apply(this,arguments)||this;W.monitorScroll=!0;return W};
_.C(cs,_.S);cs.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],cs.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],cs.prototype,"data",void 0);_.Q([_.u({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],cs);
_.D(cs,"ytd-selectable-video-list-renderer",function(){if(TG6!==void 0)return TG6;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return TG6=W},{mode:1});var cUq;_.eX("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var wy=function(){return _.S.apply(this,arguments)||this};
_.C(wy,_.S);wy.prototype.onChange=function(W){if(W=_.iP(W).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.r("kevlar_command_handler_migration_killswitch"))_.Jr(this.hostElement,W,this.hostElement);else{W=_.A(W);for(var B=W.next();!B.done;B=W.next())this.ytComponentBehavior.resolveCommand(B.value)}};
wy.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
wy.prototype.updateDataToggledFromBinding=function(W){this.set("data.toggled",W.detail.value)};
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],wy.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],wy.prototype,"data",void 0);_.Q([_.F({computed:"isEnabled(data)"}),_.y("design:type",Boolean)],wy.prototype,"enabled",void 0);_.Q([_.u({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],wy);
_.D(wy,"ytd-toggle-item-renderer",function(){if(cUq!==void 0)return cUq;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return cUq=W},{mode:1});var wmi;var VV6;var JU1;var Vz=function(){var W=_.S.apply(this,arguments)||this;W.setVisible=!1;W.boundOnSubmitButtonClick=function(){W.onSubmitButtonClick()};
W.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return W};
_.C(Vz,_.S);Vz.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}}}}}};
Vz.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Vz.prototype.onSubmitButtonClick=function(){var W;((W=this.data)==null?0:W.submitEndpoint)&&!_.r("enable_ytc_refunds_submit_form_signal_action")&&_.V0(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Vz.prototype.handleSignalActionSubmitForm=function(){var W;((W=this.data)==null?0:W.submitEndpoint)&&_.V0(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.G5.Object.defineProperties(Vz.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.hiddenByDefault)&&!this.setVisible}}});
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Vz.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Vz.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Vz.prototype,"setVisible",void 0);_.Q([_.F(),_.y("design:type",Object)],Vz.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],Vz.prototype,"surveyFeedbackData",void 0);_.Q([_.F(),_.y("design:type",Object)],Vz.prototype,"boundOnSubmitButtonClick",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data","setVisible"),_.y("design:type",Object),_.y("design:paramtypes",[])],Vz.prototype,"visibilityHidden",null);_.Q([_.NJ({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],Vz);
_.D(Vz,"yt-flow-footer-renderer",function(){if(JU1===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;VV6===void 0&&(VV6=document.createElement("template"));var G=VV6;z.call(B,G.content.cloneNode(!0),W.content.firstChild);JU1=W}W=JU1;return W},{mode:2});var gQb=(0,_.gEb)(_.Bp.ypc,{surveyFeedbackDataSelector:function(W){return W.surveyFeedbackData}});var Jm=function(){return _.S.apply(this,arguments)||this};
_.C(Jm,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Jm.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Jm.prototype,"data",void 0);_.Q([_.F({selector:gQb.surveyFeedbackDataSelector}),_.y("design:type",Object)],Jm.prototype,"surveyFeedbackData",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Jm);
_.D(Jm,"ytd-flow-footer-renderer",function(){if(wmi!==void 0)return wmi;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return wmi=W},{mode:_.PJ("kevlar_poly_si_batch_j025")?1:2});var tV1;var sbi;var gy=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return W};
_.C(gy,_.S);_.p=gy.prototype;_.p.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.mT("multiPageMenuSectionItems")}}};
_.p.handleHideEnclosingAction_=function(W){if(this.data&&this.data.items)for(var B=0;B<this.data.items.length;B++){var z=this.data.items[B].notificationRenderer;if(z&&z.notificationId==W.hideEnclosingAction.notificationId){this.splice("data.items",B,1);_.c0(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.p.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Z8(this.hostElement,"hidden",!0)};
_.p.updateMenu_=function(W){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&W&&!W.doNotRefreshInbox){W=this.data.continuations;for(var B=0;B<W.length;B++)if(W[B].invalidationContinuationData){var z=void 0;var G=(z=W[B].invalidationContinuationData)==null?void 0:z.continuation;break}W=_.mP.clone(this.data.continuationUpdateEndpoint||null);W.continuation=G;W.click_tracking_params=this.data.trackingParams;_.V0(this.hostElement,[W])}};
_.p.onServiceRequestCompleted_=function(W,B){if(this.data&&(W=B.actions)){B=0;for(var z=W.length;B<z;B++){var G=_.k(W[B],_.i_6);if(!G)break;if((G.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||G.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&G.continuationItems&&this.data.items){var Y=this.data.items.length-1;this.data.items[Y].continuationItemRenderer&&(G=["data.items",Y,1].concat(G.continuationItems),this.splice.apply(this,G))}}}};
gy.prototype.onServiceRequestCompleted_=gy.prototype.onServiceRequestCompleted_;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],gy.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],gy.prototype,"data",void 0);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],gy.prototype,"onServiceRequestCompleted_",null);_.Q([_.NJ({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],gy);
_.sV()(gy,"yt-multi-page-menu-section-renderer",function(){if(sbi===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;tV1===void 0&&(tV1=document.createElement("template"));var G=tV1;z.call(B,G.content.cloneNode(!0),W.content.firstChild);sbi=W}W=sbi;return W},{allowedProps:["data"],
mode:2});var P41;var ZMr;var tm=function(){return _.S.apply(this,arguments)||this};
_.C(tm,_.S);tm.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.G5.Object.defineProperties(tm.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.progress)==null?0:this.data.progress*100}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],tm.prototype,"data",void 0);_.Q([_.H("data.progress"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tm.prototype,"showProgressBar",null);
_.Q([_.H("data.progress"),_.y("design:type",Number),_.y("design:paramtypes",[])],tm.prototype,"progress",null);_.Q([_.NJ({is:"yt-flow-header-renderer",disableElementRegistration:!0})],tm);
_.D(tm,"yt-flow-header-renderer",function(){if(ZMr===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;P41===void 0&&(P41=document.createElement("template"));var G=P41;z.call(B,G.content.cloneNode(!0),W.content.firstChild);ZMr=W}W=ZMr;return W},{mode:2});var rU9;var kQb;var sx=function(){return _.S.apply(this,arguments)||this};
_.C(sx,_.S);sx.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],sx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],sx.prototype,"data",void 0);_.Q([_.NJ({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],sx);
_.D(sx,"yt-post-confirmation-flow-step-renderer",function(){if(kQb===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;rU9===void 0&&(rU9=document.createElement("template"));var G=rU9;z.call(B,G.content.cloneNode(!0),W.content.firstChild);kQb=W}W=kQb;return W},{mode:2});var lPj;var C4b;var Ps=function(){return _.S.apply(this,arguments)||this};
_.C(Ps,_.S);
Ps.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"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ps.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ps.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ps.prototype,"data",void 0);_.Q([_.NJ({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Ps);
_.D(Ps,"yt-refund-confirmation-flow-step-renderer",function(){if(C4b===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;lPj===void 0&&(lPj=document.createElement("template"));var G=lPj;z.call(B,G.content.cloneNode(!0),W.content.firstChild);C4b=W}W=C4b;return W},{mode:2});var IPY=_.m(function(W){var B=W.data;return _.w("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.w("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.w(_.iF,{data:function(){return{thumbnails:[{url:B().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.w("div",{class:"profileBadgeViewModelContent"},_.w("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return B().badgeDesc}),_.w(_.V,{cond:function(){return B().badgeSubtitle},
then:function(){return _.w("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return B().badgeSubtitle})}})))},"nh");
IPY.idomCompat=!0;var oQY=_.m(function(W){var B=W.data;return _.w("yt-comment-interaction-view-model",{el:_.TG(_.Qi(function(){return B().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.w("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return B().onTapA11yLabel},
"on:keydown":_.Tg0(),tabindex:0},_.w("div",{class:"ytCommentInteractionViewModelHeader"},_.w("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return B().headerPrefix},' "',function(){return B().videoTitle}),_.w("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.w("div",{class:"ytCommentInteractionViewModelContent"},_.w("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return B().commentContent}),_.w("div",{class:"ytCommentInteractionViewModelChevron"},
_.w(_.iF,{data:function(){return{thumbnails:[{url:B().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"oh");
oQY.idomCompat=!0;var hLn=_.m(function(W){var B=W.data;return _.w("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.w(_.Sc,{data:function(){return B().avatar}},{avatarViewModel:_.ds}),_.w("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return B().channelName}))},"ph");
hLn.idomCompat=!0;var jbY=_.m(function(W){var B=W.data;W={};return _.w("yt-profile-info-view-model",{class:_.kG("ytProfileInfoViewModelHost",(W.ytProfileInfoViewModelWithVideoShelf=function(){return B().videosHorizontalShelf},W))},_.w(HMO,{profileInfo:B}),_.w(_.Sc,{data:function(){return B().videosHorizontalShelf}},{horizontalShelfViewModel:function(z){return _.w("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.w(_.VC,{data:z.data}))}}),_.w(_.V,{cond:function(){return B().comments},
then:function(){return _.w(FWn,{profileInfo:B})}}),_.w(_.V,{cond:function(){return B().sharedSubscriptionsTitle},
then:function(){return _.w(_.V,{cond:function(){return B().subscriptionsAccessButtonCommand},
then:function(){return _.w(SD0,{profileInfo:B})},
else:function(){return _.w(bMi,{profileInfo:B})}})}}))},"qh");
jbY.idomCompat=!0;var FWn=_.m(function(W){var B=W.profileInfo;return _.w("div",{class:"ytProfileInfoViewModelActivity"},_.w("div",{class:"ytProfileInfoViewModelHeader"},_.w("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return B().commentsInteractionTitle})),_.w(_.Sc,{data:function(){return B().comments}},{commentInteractionViewModel:function(z){return _.w("div",{class:"ytProfileInfoViewModelActivity"},_.w(oQY,{data:z.data}))}}))},"rh"),SD0=_.m(function(W){var B=W.profileInfo;
return _.w("div",{class:"ytProfileInfoViewModelSubSection"},_.w("div",{class:"ytProfileInfoViewModelSubHeader"},_.w(_.fL,{command:function(){return B().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.w("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return B().sharedSubscriptionsTitle}),_.w("div",null,_.w(_.Sc,{data:function(){return B().subscriptionsAccessButton}},{buttonViewModel:_.ex})))),_.w(fP1,{sharedSubscriptions:function(){var z;
return((z=B().sharedSubscriptions)==null?void 0:z.slice(0,5))||[]}}))},"sh"),bMi=_.m(function(W){var B=W.profileInfo;
return _.w("div",{class:"ytProfileInfoViewModelSubSection"},_.w("div",{class:"ytProfileInfoViewModelSubHeader"},_.w("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return B().sharedSubscriptionsTitle})),_.w(fP1,{sharedSubscriptions:function(){var z;
return((z=B().sharedSubscriptions)==null?void 0:z.slice(0,5))||[]}}))},"th"),fP1=_.m(function(W){return _.w("div",{class:"ytProfileInfoViewModelSubs"},_.w(_.Sc,{data:W.sharedSubscriptions},{sharedSubscriptionViewModel:function(B){return _.w("div",{class:"ytProfileInfoViewModelSub"},_.w(hLn,{data:B.data}))}}))},"uh"),HMO=_.m(function(W){var B=W.profileInfo;
return _.w("div",{class:"ytProfileInfoViewModelActivity"},_.w(_.IJ,{each:function(){return[B().profileBadgeInfoYtWide,B().profileBadgeInfoChannelWide].filter(function(z){return!!z})},
keyBy:"INDEX"},function(z){return _.w(_.AW,null,_.w("div",{class:"ytProfileInfoViewModelHeader"},_.w("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return z().profileSectionTitle}),_.w("div",{class:"ytProfileInfoViewModelSectionDesc"},_.w("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var G;
return(G=z().commentBadge)==null?void 0:G.commentDesc}),_.w(_.V,{cond:function(){var G;
return(G=z().commentBadge)==null?void 0:G.blackHeartDesc},
then:function(){return _.w("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.w("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.w(_.iF,{data:function(){var G;
return{thumbnails:[{url:(G=z().commentBadge)==null?void 0:G.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.w("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var G;return(G=z().commentBadge)==null?void 0:G.blackHeartDesc}))),_.w("div",{class:"ytProfileInfoViewModelBadge"},_.w(_.IJ,{each:function(){return z().badges||[]}},function(G){return _.w(IPY,{data:G})})))}))},"vh");var OMr=_.m(function(W){var B=W.data;var z=function(){return B().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.w("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.w(_.Sc,{data:function(){return B().profileIdentityInfo}},{profileIdentityInfoViewModel:function(G){return _.w(_.oEK,{data:G.data,
hideDivider:z,isChannelInfoCard:z})},
profileInfoViewModel:jbY}),_.w(_.Sc,{data:function(){return B().profileInfo}},{profileIdentityInfoViewModel:_.oEK,
profileInfoViewModel:jbY}))},"wh");
OMr.idomCompat=!0;_.Vm(OMr,"yt-profile-card-view-model",{props:{data:_.kz}});var ZW=function(){var W=_.S.apply(this,arguments)||this;W.enableFocusFix=_.r("music_web_enable_focus_on_setting_menu_fix")&&_.md("IS_MOBILE_WEB",!1);W.covered=!1;W.hideMenu=!1;W.isCommentNotificationOnProfileCard=!1;W.scrolledByTouch=!1;W.disableBackdropFilter=_.r("web_disable_backdrop_filter");W.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return W};
_.C(ZW,_.S);_.p=ZW.prototype;
_.p.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"}}}};
_.p.ready=function(){var W=this;this.JSC$20180_containerElement.addEventListener("scroll",function(){W.ytRendererBehavior.markDirty()})};
_.p.attributeChanged=function(W,B){W==="menu-style"&&_.c0(this.hostElement,"yt-multi-page-menu-closed-action",[B])};
_.p.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Co(this,this.focusOnStampFinished))};
_.p.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Co(this,this.focusOnStampFinished))};
_.p.reset=function(){this.closeJobId&&(_.fg.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.p.focusOnStampFinished=function(W){W.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Co(this,this.focusOnStampFinished)),this.doFocus())};
_.p.doFocus=function(){var W=_.vnD(this.sectionsElement);W.length&&W[0].focus()};
_.p.computeMenuStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.p.computeIsCommentNotificationOnProfileCard=function(W){return _.r("enable_profile_cards_on_comments")&&W.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.p.computeHideMenu=function(W,B){return W||!(!B||!B.showLoadingSpinner)};
_.p.onPopupClosed=function(){this.isPopUpOpen=!1;_.c0(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.p.onPopupOpened=function(W,B){this.isPopUpOpen=!0;B.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.v0(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Tl({type:"CHANNEL_REPORT_RESET"})))};
_.p.onYtNavigate=function(W,B){this.shouldCloseOnNavigateEvent(B.endpoint)&&_.c0(this.hostElement,"yt-close-all-popups-action")};
_.p.handleEndpoint=function(W){W=_.k(W,_.dP);!this.isCommentNotificationOnProfileCard&&W&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20180_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.p.handleActions=function(W){for(var B=0,z=W.length;B<z;B++){var G=_.k(W[B],ijj);G&&this.handleGetMultiPageMenuAction(G);(G=_.k(W[B],_.i_6))&&this.handleAppendContinuationItemsAction(G)}};
_.p.onServiceRequestSentOrCompleted=function(W,B){W.detail&&W.detail.endpoint&&this.handleEndpoint(W.detail.endpoint);B.actions&&this.handleActions(B.actions)};
_.p.handleGetMultiPageMenuAction=function(W){var B=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.tH(this.submenuElement).appendChild(B);(W=W.menu.multiPageMenuRenderer)&&this.logSubmenu(W);B.data=W;B.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.p.handleAppendContinuationItemsAction=function(W){if(this.data&&W.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&W.continuationItems&&this.data.sections){var B=this.data.sections.length-1;this.data.sections[B].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),B--);if(this.data.sections[B].multiPageMenuNotificationSectionRenderer&&W.continuationItems){W=_.A(W==null?void 0:W.continuationItems);for(var z=W.next();!z.done;z=W.next())if(z=z.value,_.k(z,OjK)){var G=
void 0,Y=void 0,d=void 0,E=void 0,v=void 0;((G=this)==null?0:(Y=G.data)==null?0:(d=Y.sections)==null?0:(E=d[B])==null?0:(v=E.multiPageMenuNotificationSectionRenderer)==null?0:v.items)&&this.push("data.sections."+B+".multiPageMenuNotificationSectionRenderer.items",z)}else if(_.k(z,_.MrT)||_.k(z,_.GH))this.push("data.sections",z),B++}}};
_.p.logSubmenu=function(W){if(!_.r("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var B=this.ytRendererBehavior.getScreenLayer(),z=_.m1(B),G=_.et(B);if((W=W.trackingParams)&&z&&G){var Y=_.XF(W);_.r("combine_ve_grafts")?_.SK().graftServerVe(W,G,B):_.$q(z,G,Y)}}};
_.p.emptySubmenuContainer=function(){for(var W=_.tH(this.submenuElement);W.firstChild;)W.removeChild(W.firstChild)};
_.p.onMenuBackTap=function(W){_.v0(this.hostElement,"yt-submenu-closed");W.stopPropagation()};
_.p.onSubmenuClosed=function(W){_.iP(W)!==this.hostElement&&(this.covered=!1,_.v0(this.hostElement,"yt-refit"),W.stopPropagation())};
_.p.onRetrieveLocation=function(W,B){B.hasComments&&(B.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),W.stopPropagation())};
_.p.shouldCloseOnNavigateEvent=function(W){if(!W)return!0;if(_.k(W,_.kaM)||_.k(W,_.lLH)||_.k(W,_.rLF)||_.k(W,_.DD))return!1;var B;return((B=_.k(W==null?void 0:W.commandMetadata,_.Z4))==null?0:B.ignoreNavigation)?!1:!0};
_.p.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.p.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.p.refitAfterRender=function(){var W=this;_.BM(this,function(){_.v0(W.hostElement,"yt-refit")})};
ZW.prototype.refitAfterRender=ZW.prototype.refitAfterRender;ZW.prototype.onRetrieveLocation=ZW.prototype.onRetrieveLocation;ZW.prototype.onSubmenuClosed=ZW.prototype.onSubmenuClosed;ZW.prototype.onMenuBackTap=ZW.prototype.onMenuBackTap;ZW.prototype.onServiceRequestSentOrCompleted=ZW.prototype.onServiceRequestSentOrCompleted;ZW.prototype.onYtNavigate=ZW.prototype.onYtNavigate;ZW.prototype.onPopupOpened=ZW.prototype.onPopupOpened;ZW.prototype.onPopupClosed=ZW.prototype.onPopupClosed;
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],ZW.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],ZW.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],ZW.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ZW.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],ZW.prototype,"enableFocusFix",void 0);_.Q([_.F(),_.y("design:type",Object)],ZW.prototype,"covered",void 0);_.Q([_.F({computed:"computeHideMenu(covered, data)"}),_.y("design:type",Object)],ZW.prototype,"hideMenu",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.y("design:type",String)],ZW.prototype,"menuStyle",void 0);
_.Q([_.F({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.y("design:type",Object)],ZW.prototype,"isCommentNotificationOnProfileCard",void 0);_.Q([_.F(),_.y("design:type",Boolean)],ZW.prototype,"isPopUpOpen",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],ZW.prototype,"scrolledByTouch",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],ZW.prototype,"disableBackdropFilter",void 0);
_.Q([_.Hf("#sections"),_.y("design:type",HTMLElement)],ZW.prototype,"sectionsElement",void 0);_.Q([_.Hf("#spinner"),_.y("design:type",HTMLElement)],ZW.prototype,"spinnerElement",void 0);_.Q([_.Hf("#header"),_.y("design:type",HTMLElement)],ZW.prototype,"headerElement",void 0);_.Q([_.Hf("#container"),_.y("design:type",HTMLElement)],ZW.prototype,"JSC$20180_containerElement",void 0);_.Q([_.Hf("#submenu"),_.y("design:type",HTMLElement)],ZW.prototype,"submenuElement",void 0);
_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZW.prototype,"onPopupClosed",null);_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],ZW.prototype,"onPopupOpened",null);_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],ZW.prototype,"onYtNavigate",null);
_.Q([_.IN("yt-service-request-completed"),_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],ZW.prototype,"onServiceRequestSentOrCompleted",null);_.Q([_.IN("yt-menu-back-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ZW.prototype,"onMenuBackTap",null);
_.Q([_.IN("yt-submenu-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ZW.prototype,"onSubmenuClosed",null);_.Q([_.IN("yt-retrieve-location"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],ZW.prototype,"onRetrieveLocation",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZW.prototype,"refitAfterRender",null);
_.Q([_.u({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],ZW);
_.D(ZW,"ytd-multi-page-menu-renderer",function(){if(BG1!==void 0)return BG1;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return BG1=W},{mode:1});var XmO;var ry=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return W};
_.C(ry,_.S);_.p=ry.prototype;_.p.created=function(){this.showTooltips=!0};
_.p.computeAccessibility_=function(W){return this.get("accessibility.accessibilityData",W)||null};
_.p.onTap=function(){var W=_.wV(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(W&&W.length===1&&W[0])_.c0(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var B;if((B=this.data)==null?0:B.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var z;((z=this.data)==null?0:z.menuRequest)&&_.V0(this.hostElement,[this.data.menuRequest])}}};
_.p.handleTopbarMenuClosedAction=function(W){var B,z;(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(W)===((B=this.data)==null?void 0:(z=B.icon)==null?void 0:z.iconType)&&this.toggleIconState(!1)};
_.p.toggleIconState=function(W){_.r("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=W)};
_.p.handleUpdateTopbarAvatarAction=function(W){var B;W=(B=_.k(W,BNq))==null?void 0:B.avatarUrl;var z,G;B=(z=this.data)==null?void 0:(G=z.avatar)==null?void 0:G.thumbnails;W&&B&&(z={thumbnails:[Object.assign({},B[0],{url:W})]},this.set("data.avatar",z))};
_.G5.Object.defineProperties(ry.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.tH(this.hostElement).querySelector("#button")}}});
ry.prototype.onTap=ry.prototype.onTap;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],ry.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],ry.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(_.dS7.YtButtonBehavior),_.y("design:type",Object)],ry.prototype,"ytButtonBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ry.prototype,"data",void 0);
_.Q([_.Hf("yt-icon-button#button"),_.y("design:type",Object)],ry.prototype,"iconButton",void 0);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ry.prototype,"onTap",null);_.Q([_.u({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],ry);
_.sV()(ry,"ytd-topbar-menu-button-renderer",function(){if(XmO===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);XmO=W}W=XmO;return W},{allowedProps:["data"],
mode:1});var KWf;var km=function(){return _.S.apply(this,arguments)||this};
_.C(km,_.S);km.prototype.getSelected=function(){return this.reasons.selected};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],km.prototype,"data",void 0);_.Q([_.Hf("#reasons"),_.y("design:type",Object)],km.prototype,"reasons",void 0);_.Q([_.u({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],km);
_.D(km,"ytd-ad-feedback-content",function(){if(KWf!==void 0)return KWf;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return KWf=W},{mode:1});var uf1;var ls=function(){return _.S.apply(this,arguments)||this};
_.C(ls,_.S);_.p=ls.prototype;_.p.onPopupOpened=function(){_.c0(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.p.computeConfirmButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.confirmLabel}};
_.p.computeCancelButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.cancelLabel}};
_.p.onConfirmTap=function(){var W=this.content.getSelected();W!==void 0&&(W=this.data.reasons[W].endpoint)&&(_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}}),_.c0(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.p.sendFeedbackSubmitToastAction=function(){var W;(W=this.data)!=null&&W.completionMessage&&_.c0(this.hostElement,"yt-open-popup-action",[_.ps(this.data.completionMessage),this])};
_.p.onCancelTap=function(){_.c0(this.hostElement,"yt-close-popup-action")};
ls.prototype.onPopupOpened=ls.prototype.onPopupOpened;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ls.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ls.prototype,"data",void 0);_.Q([_.Hf("#content"),_.y("design:type",Object)],ls.prototype,"content",void 0);_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ls.prototype,"onPopupOpened",null);
_.Q([_.u({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],ls);
_.D(ls,"ytd-ad-feedback-renderer",function(){if(uf1!==void 0)return uf1;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return uf1=W},{mode:1});var eL6;var CB=function(){return _.S.apply(this,arguments)||this};
_.C(CB,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],CB.prototype,"data",void 0);_.Q([_.u({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],CB);
_.D(CB,"ytd-ad-info-dialog-content",function(){if(eL6!==void 0)return eL6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return eL6=W},{mode:1});var mhb;var Il=function(){return _.S.apply(this,arguments)||this};
_.C(Il,_.S);Il.prototype.computeConfirmButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.confirmLabel}};
Il.prototype.onConfirmTap=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Il.prototype.computeShouldShowTitle=function(){var W;return!((W=this.data)==null||!W.title)};
Il.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.dO().resolve(_.p4).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Il.prototype.onPopupClosed=Il.prototype.onPopupClosed;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Il.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Il.prototype,"data",void 0);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Il.prototype,"onPopupClosed",null);_.Q([_.u({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Il);
_.D(Il,"ytd-ad-info-dialog-renderer",function(){if(mhb!==void 0)return mhb;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return mhb=W},{mode:1});var xhq;var ol=function(){var W=_.S.apply(this,arguments)||this;W.actionButtonClass="action-button";W.dismissButtonId="dismiss-button";W.dialogDismiss=!0;return W};
_.C(ol,_.S);_.p=ol.prototype;_.p.computeInPlayer=function(W){return(W==null?void 0:W.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.p.computedLogo=function(){var W,B;return this.isDarkTheme()?(W=this.data)==null?void 0:W.logoDark:(B=this.data)==null?void 0:B.logo};
_.p.computedHeaderImage=function(){var W,B;return this.isDarkTheme()?(W=this.data)==null?void 0:W.headerImageDark:(B=this.data)==null?void 0:B.headerImage};
_.p.computeLogoIconId=function(){var W,B,z,G=(W=this.computedLogo())==null?void 0:(B=W.sources)==null?void 0:(z=B[0])==null?void 0:z.height;return G&&G%31===0?"logo-icon-with-padding":"logo-icon"};
_.p.computeLogoIconHeight=function(){var W,B,z,G=(W=this.computedLogo())==null?void 0:(B=W.sources)==null?void 0:(z=B[0])==null?void 0:z.height;return G&&G%31===0?"31":"24"};
_.p.onPopupClosed=function(){_.dO().resolve(_.q3).dispose()};
_.p.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.p.onShow=function(){this.inPlayer&&_.k_(6);this.titleElement.focus()};
_.p.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var W=0;W<this.data.impressionEndpoints.length;W++){var B=_.k(this.data.impressionEndpoints[W],_.NH);B&&this.ytComponentBehavior.resolveCommand(B)}};
_.p.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.c0(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.G5.Object.defineProperties(ol.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var W,B;return!((W=this.data)==null||!W.headerImageDark)&&!((B=this.data)==null||!B.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.secondaryButton)}}});
ol.prototype.onPopupClosed=ol.prototype.onPopupClosed;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],ol.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.tu.YtVisibilityBehavior),_.y("design:type",Object)],ol.prototype,"ytVisibilityBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ol.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],ol.prototype,"actionButtonClass",void 0);_.Q([_.F(),_.y("design:type",Object)],ol.prototype,"dismissButtonId",void 0);_.Q([_.F(),_.y("design:type",Object)],ol.prototype,"dialogDismiss",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],ol.prototype,"hasHeaderImage",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],ol.prototype,"hasPremiumButton",null);
_.Q([_.F({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.y("design:type",Boolean)],ol.prototype,"inPlayer",void 0);_.Q([_.Hf("#dismiss-button"),_.y("design:type",HTMLElement)],ol.prototype,"dismissButton",void 0);_.Q([_.Hf("#title"),_.y("design:type",HTMLElement)],ol.prototype,"titleElement",void 0);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ol.prototype,"onPopupClosed",null);
_.Q([_.u({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],ol);
_.D(ol,"ytd-enforcement-message-view-model",function(){if(xhq!==void 0)return xhq;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return xhq=W},{mode:1});var Dh9;var Qbb;var hm=function(){var W=_.S.apply(this,arguments)||this;W.TEST_ONLY={immediateValidation:function(){W.immediateValidation()},
onValidationResponse:function(B){W.onValidationResponse(B)},
onGenerateHandleFromNameResponse:function(B){W.onGenerateHandleFromNameResponse(B)}};
return W};
_.C(hm,_.S);_.p=hm.prototype;_.p.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.p.validate=function(){this.immediateValidation()};
_.p.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.p.setHandleInputValue=function(W){this.handleDir=this.getHandleDir(W);this.handleInput.value=W;this.validationState={status:"PENDING"};this.immediateValidation()};
_.p.getHandleDir=function(W){var B=W===""&&!1;return(B=_.Ulu.test.call(_.Ulu,W))?"rtl":"ltr"};
_.p.onDataChanged=function(){var W,B;this.handleDir=this.getHandleDir((B=(W=this.data)==null?void 0:W.handle)!=null?B:"");var z;this.validationState=((z=this.data)==null?0:z.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var G;((G=this.data)==null?0:G.validateOnInit)&&this.immediateValidation()};
_.p.stopPropagation=function(W){W.stopPropagation()};
_.p.onInput=function(){var W;this.handleDir=this.getHandleDir((W=this.handleInput.value)!=null?W:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.p.onFocusout=function(W){this.handleInput.contains(W.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.p.delayedValidation=function(){var W,B;this.debouncedValidation((B=(W=this.data)==null?void 0:W.validationDelayMs)!=null?B:1E3)};
_.p.immediateValidation=function(){this.debouncedValidation(0)};
_.p.debouncedValidation=function(W){var B=this;_.BJ(this,"debouncedValidation",function(){var z,G=B.staticValidation((z=B.handleInput.value)!=null?z:"");if(G!==void 0)B.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:G};else{var Y;if((Y=B.data)!=null&&Y.validateChannelHandleCommand){B.validationState={status:"LOADING"};var d;B.ytComponentBehavior.resolveCommand(B.data.validateChannelHandleCommand,{form:{handle:(d=B.handleInput.value)!=null?d:""},commandController:{onSuccess:function(E,
v){B.onValidationResponse(v)},
onServerError:function(E,v){B.onValidationServerError(v)}}})}else B.handleUnexpectedValidationError(new _.oX("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",B.data))}},W)};
_.p.staticValidation=function(W){var B;if(((B=this.data)==null?void 0:B.channelHandleStaticValidationParams)!==void 0){B=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(W)&&B.validValueRegexpErrorMessage!==void 0)return B.validValueRegexpErrorMessage;if(B.minLength!==void 0&&W.length<B.minLength&&B.minLengthErrorMessage!==void 0)return B.minLengthErrorMessage;if(B.maxLength!==void 0&&W.length>B.maxLength&&B.maxLengthErrorMessage!==void 0)return B.maxLengthErrorMessage}};
_.p.onValidationResponse=function(W){var B=_.k(W.result,zvY);B===void 0?this.handleUnexpectedValidationError(new _.oX("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",W)):this.handleValidationResultRenderer(B)};
_.p.onValidationServerError=function(W){this.handleUnexpectedValidationError(new _.oX("ValidateChannelHandle request failed.",W))};
_.p.handleValidationResultRenderer=function(W){if(W.handle===void 0)this.handleUnexpectedValidationError(new _.oX("ChannelHandleValidationResultRenderer does not contain handle.",W));else if(W.handle===this.handleInput.value)switch(W.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:W.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:W.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.oX("Unrecognized ChannelHandleValidationResult",W));break;default:_.qT(W.result)}};
_.p.handleUnexpectedValidationError=function(W){var B;this.validationState={status:"UNKNOWN",handle:(B=this.handleInput.value)!=null?B:""};_.Oc(W)};
_.p.stopEventPropagation=function(W){W.stopPropagation()};
_.p.updateHandleOnChannelNameInputChange=function(W){if(!this.wasEdited){var B,z;this.debouncedGenerateHandleFromName(W,(z=(B=this.data)==null?void 0:B.validationDelayMs)!=null?z:1E3)}};
_.p.debouncedGenerateHandleFromName=function(W,B){var z=this;_.BJ(this,"debouncedGenerateHandleFromName",function(){var G;(G=z.data)!=null&&G.validateChannelHandleCommand?z.ytComponentBehavior.resolveCommand(z.data.validateChannelHandleCommand,{form:{name:W},commandController:{onSuccess:function(Y,d){z.onGenerateHandleFromNameResponse(d)},
onServerError:function(Y,d){_.Oc(new _.oX("Error calling GenerateHandleFromName",d))}}}):_.Oc(new _.oX("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",z.data))},B)};
_.p.onGenerateHandleFromNameResponse=function(W){this.wasEdited||((W=_.k(W.result,Gz6))?this.setHandleInputValue(W.handle):_.Oc(new _.oX("Invalid results when generate handle from name")))};
_.G5.Object.defineProperties(hm.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var W;if(W=this.validationState)W=this.validationState,W=W.status==="OK"||W.status==="UNKNOWN";if(W)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.validationState)==null?void 0:W.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 W,B=(W=this.channelHandleEntity)==null?void 0:W.handleEdit;this.handleDir=this.getHandleDir(B!=null?B:"");return B}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var W,B;if(((W=this.data)==null?void 0:(B=W.channelHandleStaticValidationParams)==null?void 0:B.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
hm.prototype.stopEventPropagation=hm.prototype.stopEventPropagation;hm.prototype.onDataChanged=hm.prototype.onDataChanged;hm.prototype.applyHandleEdit=hm.prototype.applyHandleEdit;hm.prototype.onValueChanged=hm.prototype.onValueChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],hm.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],hm.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],hm.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],hm.prototype,"wasEdited",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],hm.prototype,"handleDir",void 0);_.Q([_.Hf("#handle-input"),_.y("design:type",Object)],hm.prototype,"handleInput",void 0);_.Q([_.F(),_.H("validationState"),_.y("design:type",Object),_.y("design:paramtypes",[])],hm.prototype,"value",null);
_.Q([_.oN("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hm.prototype,"onValueChanged",null);_.Q([_.H("validationState"),_.y("design:type",Object),_.y("design:paramtypes",[])],hm.prototype,"errorIndicator",null);_.Q([_.F({reflectToAttribute:!0}),_.H("errorIndicator"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],hm.prototype,"borderErrorIndicator",null);
_.Q([_.F({selectorArgs:["data.channelHandleEntityKey"],selector:function(W,B){return _.P3(W.entities,"channelHandle",B)}}),
_.y("design:type",Object)],hm.prototype,"channelHandleEntity",void 0);_.Q([_.H("channelHandleEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],hm.prototype,"handleEdit",null);_.Q([_.oN("handleEdit"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hm.prototype,"applyHandleEdit",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hm.prototype,"onDataChanged",null);
_.Q([_.H("data.channelHandleStaticValidationParams.validValueRegexp"),_.y("design:type",Object),_.y("design:paramtypes",[])],hm.prototype,"validValueRegexp",null);_.Q([_.IN("yt-service-request-sent"),_.IN("yt-service-request-completed"),_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],hm.prototype,"stopEventPropagation",null);_.Q([_.u({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],hm);
_.D(hm,"ytd-channel-handle-input-renderer",function(){if(Qbb!==void 0)return Qbb;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Qbb=W},{mode:_.PJ("kevlar_poly_si_batch_j025")?1:2});var Hs=function(){var W=_.S.apply(this,arguments)||this;W.data=null;W.errorMessage=null;W.isLoading=!0;W.hideContainer=!1;W.enableNewChannelCreationOnIdForAll=_.r("enable_new_channel_creation_for_id4all");W.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"};W.testOnly={setErrorMessage:function(B){W.resetErrorState();
W.setErrorState(B)}};
return W};
_.C(Hs,_.S);_.p=Hs.prototype;_.p.created=function(){this.logScreenVe()};
_.p.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")};
_.p.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var W;((W=this.zeroStepErrorMessageEntity)==null?0:W.value)&&this.set("errorMessage",_.Bg(this.zeroStepErrorMessageEntity.value))};
_.p.onCreateTap=function(){var W=this;if(this.data&&this.data.channelCreationEndpoint){var B,z;if(!((B=this.data.createChannelButton)==null?0:(z=B.buttonRenderer)==null?0:z.isDisabled)){var G;if((G=this.nameInput)!=null&&G.value){this.setLoadingState();var Y,d;B=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(Y=this.handleInput)==null?void 0:Y.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((d=this.handleInput)==null?void 0:d.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:B,commandController:{onSuccess:function(E,v){W.onChannelCreationEndpointSuccess(v);W.obakeImageSource&&_.Sy("channelCreatedWithObakeImage",{imageSourceType:W.obakeImageSource})},
onServerError:function(){W.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.p.endpointRequiresServiceRequestAction=function(W){return!!_.k(W,_.jT)||!!_.k(W,BNq)};
_.p.isNavigateAction=function(W){var B;return!!_.k(W,_.So)||!!_.k((B=_.k(W,pNO))==null?void 0:B.command,_.So)};
_.p.isPlaylistAction=function(W){return!!_.k(W,_.pS)||!!_.k(W,_.cO)};
_.p.onChannelCreationEndpointSuccess=function(W){if(W.createChannelError){var B;this.setErrorState((B=W.createChannelError)==null?void 0:B.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.r("enable_secondary_channel_creation_form")&&W.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(W.navigationEndpoint);if(W.actions){B=_.A(W.actions);for(var z=B.next();!z.done;z=B.next())if(z=z.value,this.endpointRequiresServiceRequestAction(z)&&this.ytComponentBehavior.resolveCommand(z),
this.isNavigateAction(z)){var G=void 0;z=_.k((G=_.k(z,pNO))==null?void 0:G.command,_.So);G=void 0;this.isPlaylistAction((G=z)==null?void 0:G.endpoint)&&(_.c0(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),G=void 0,this.ytComponentBehavior.resolveCommand((G=z)==null?void 0:G.endpoint))}}W.actions&&W.actions.some(function(Y){var d;return _.k(Y,_.So)||_.k((d=_.k(Y,pNO))==null?void 0:d.command,_.So)})||_.c0(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.p.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.p.onCancelTap=function(){var W,B,z;if(!((W=this.data)==null?0:(B=W.cancelButton)==null?0:(z=B.buttonRenderer)==null?0:z.isDisabled)){var G,Y,d;W=(G=this.data)==null?void 0:(Y=G.cancelButton)==null?void 0:(d=Y.buttonRenderer)==null?void 0:d.command;if(!W||!_.k(W,_.Wev)){var E;this.nameInput&&((E=this.data)==null?0:E.name)&&(this.nameInput.value=this.data.name);var v;this.handleInput&&((v=this.data)==null?0:v.channelHandleInput)&&(this.handleInput.data=_.k(this.data.channelHandleInput,Ys1));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.p.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.p.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.p.onClearProfilePhotoTap=function(){var W,B,z;((W=this.data)==null?0:(B=W.clearProfilePhotoButton)==null?0:(z=B.buttonRenderer)==null?0:z.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.p.onEditAvatarTap=function(){var W,B,z;((W=this.data)==null?0:(B=W.editAvatarButton)==null?0:(z=B.buttonRenderer)==null?0:z.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.p.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)};
_.p.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var W;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((W=this.data)==null?0:W.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.p.setErrorState=function(W){this.resetErrorState();if(W)this.set("errorMessage",W);else{var B;if((B=this.zeroStepErrorMessageEntity)==null?0:B.value)this.set("errorMessage",_.Bg(this.zeroStepErrorMessageEntity.value));else{var z;((z=this.data)==null?0:z.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.p.fetchImageBlobWithAlr=function(W,B){B=B===void 0?5:B;var z=this,G,Y,d,E,v;return _.T(function(c){switch(c.nextAddress){case 1:return c.yield(fetch(W,{method:"GET",mode:"cors"}),2);case 2:G=c.yieldResult;if(G.ok){c.jumpTo(3);break}if(B===0)throw Error();Y=z.addJitter(Math.pow(2,5-B));return c.yield(new Promise(function(J){setTimeout(J,Y*1E3)}),4);
case 4:return c.return(z.fetchImageBlobWithAlr(W,B-1));case 3:if(!G.headers.get("content-type").split(";").some(function(J){return J.trim()==="text/plain"})){c.jumpTo(5);
break}d=z;E=d.fetchImageBlobWithAlr;return c.yield(G.text(),6);case 6:return c.return(E.call(d,c.yieldResult,B-1));case 5:return c.yield(G.blob(),7);case 7:return v=c.yieldResult,c.return(v)}})};
_.p.addJitter=function(W){var B=W*.3*Math.random();Math.random()>.5&&(B*=-1);return W+B};
_.p.openProfilePicturePicker=function(){var W=this,B,z,G,Y,d;return _.T(function(E){if(E.nextAddress==1){B=W.data.scottyUploadUrl;if(!B)return E.return();z=document.documentElement.hasAttribute("dark");G=document.body.style.colorScheme;z&&(document.body.style.colorScheme="dark");Y=EyY(TI6(ihj(BIr(z?"dark":"light")),function(v){var c,J,g,t,P;return _.T(function(Z){if(Z.nextAddress==1)return c=_.zE(oy6(new Zx(v.photoUrl,!1)).build(),"alr","yes"),W.obakeImageSource=W.pictureChangeSourceToObakeImageSourceType(v.photoSource),
_.kA(Z,2),W.setLoadingState(),Z.yield(W.fetchImageBlobWithAlr(c),4);if(Z.nextAddress!=2)return J=Z.yieldResult,g=new FileReader,g.addEventListener("load",function(){var l,b,O,K,e,a;return _.T(function(q){if(q.nextAddress==1){if(J.size>15728640)return W.setErrorState((l=W.data)==null?void 0:l.imageSizeErrorMessage),_.Oc(Error("yl")),q.return();if(!g.result)return W.setErrorState((b=W.data)==null?void 0:b.genericImageLoadErrorMessage),_.Oc(Error("zl")),q.return();O=g.result;_.kA(q,2);return q.yield(DE9(J,
B),4)}if(q.nextAddress!=2)return K=q.yieldResult,W.handleImageUpdatedAction(O,K),W.resetErrorState(),_.Nn(q,0);e=_.h6(q);W.setErrorState((a=W.data)==null?void 0:a.uploadErrorMessage);if(e instanceof Error)_.jy(e);else{var n=new _.oX(JSON.stringify(e));_.jy(n)}_.HG(q)})}),g.readAsDataURL(J),_.Nn(Z,0);
t=_.h6(Z);W.setErrorState((P=W.data)==null?void 0:P.genericImageLoadErrorMessage);t instanceof Error?_.jy(t):_.fG(new _.oX(JSON.stringify(t)));_.HG(Z)})}),function(){W.hideContainer=!1;
document.body.style.colorScheme=G});
_.kA(E,2);return E.yield(Y.openPicker(),4)}if(E.nextAddress!=2)return _.Nn(E,0);_.h6(E);W.setErrorState((d=W.data)==null?void 0:d.selectImageErrorMessage);_.HG(E)})};
_.p.pictureChangeSourceToObakeImageSourceType=function(W){switch(W){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.p.logScreenVe=function(){_.KS(_.SK(),124448)};
_.p.graftServerVe=function(){var W=_.et(),B,z,G=(B=this.data)==null?void 0:(z=B.loggingDirectives)==null?void 0:z.trackingParams;G&&W&&(this.channelCreationFormVe=_.SK().graftServerVe(G,W),W={visualElement:this.channelCreationFormVe},_.HJ().reportShown(W))};
_.p.isNameChanged=function(W){var B;return((B=this.data)==null?void 0:B.name)!==W};
_.p.isHandleChanged=function(W){var B,z=_.k((B=this.data)==null?void 0:B.channelHandleInput,Ys1);return z&&W?z.handle!==W:!1};
_.p.handleImageUpdatedAction=function(W,B){this.hideContainer=!1;this.previewDataUrl=W;this.encryptedBlobId=B};
_.p.handleImageSelectionErrorAction=function(W){this.hideContainer=!1;this.setErrorState(W)};
_.p.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.p.showContainer=function(){this.hideContainer=!1};
_.p.maybeWipeZeroStepErrorMessage=function(){var W,B=(W=this.data)==null?void 0:W.zeroStepErrorMessageEntityKey,z;B&&((z=this.zeroStepErrorMessageEntity)==null?0:z.value)&&this.ytdReduxBehavior.dispatch(_.bj("stringEntity",B,{key:B,value:""}))};
_.G5.Object.defineProperties(Hs.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 W;return((W=this.photoThumbnail)==null?0:W.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 W;return!((W=this.data)==null||!W.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.descriptionInfo}}});
Hs.prototype.dataChanged=Hs.prototype.dataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Hs.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Hs.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Hs.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Hs.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Hs.prototype,"errorMessage",void 0);
_.Q([_.F(),_.y("design:type",Object)],Hs.prototype,"isLoading",void 0);_.Q([_.F(),_.y("design:type",String)],Hs.prototype,"previewDataUrl",void 0);_.Q([_.F(),_.y("design:type",Number)],Hs.prototype,"obakeImageSource",void 0);_.Q([_.F(),_.y("design:type",Object)],Hs.prototype,"hideContainer",void 0);_.Q([_.Hf("#title-input"),_.y("design:type",Object)],Hs.prototype,"nameInput",void 0);_.Q([_.Hf("#handle-input"),_.y("design:type",Object)],Hs.prototype,"handleInput",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],Hs.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.Q([_.F({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.$G}),_.y("design:type",Object)],Hs.prototype,"zeroStepErrorMessageEntity",void 0);_.Q([_.H("data","data.isDefaultProfilePhoto","previewDataUrl"),_.y("design:type",Object),_.y("design:paramtypes",[])],Hs.prototype,"photoThumbnail",null);
_.Q([_.H("data","data.isDefaultProfilePhoto","photoThumbnail"),_.y("design:type",Object),_.y("design:paramtypes",[])],Hs.prototype,"userSetPhotoThumbnailUrl",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Hs.prototype,"hideProfilePhotoButtonLayer",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Hs.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.Q([_.jJ("data","zeroStepErrorMessageEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hs.prototype,"dataChanged",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.descriptionInfo","zeroStepErrorMessageEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],Hs.prototype,"description",null);_.Q([_.u({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Hs);
_.D(Hs,"ytd-channel-creation-dialog-renderer",function(){if(Dh9!==void 0)return Dh9;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Dh9=W},{mode:1});var yUq;var Fb=function(){var W=_.S.apply(this,arguments)||this;W.isLoading=!1;W.isDisabled=!1;return W};
_.C(Fb,_.S);Fb.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Fb.prototype.updateDisabled=function(){var W;this.isDisabled=this.isLoading||((W=this.handleInput)==null?void 0:W.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Fb.prototype.onSaveClick=function(){var W=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var B;((B=this.data)==null?void 0:B.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 z;if((z=W.data)==null?0:z.nextEndpoint){var G;W.ytComponentBehavior.resolveCommand((G=W.data)==null?void 0:G.nextEndpoint)}else W.isLoading=
!1,W.closeDialog()},
onServerError:function(){W.isLoading=!1;W.handleInput.validate();var z;W.errorMessage=(z=W.data)==null?void 0:z.errorMessage}}}))}};
Fb.prototype.closeDialog=function(){_.c0(this.hostElement,"yt-close-popup-action",[this.is])};
Fb.prototype.updateDisabled=Fb.prototype.updateDisabled;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Fb.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Fb.prototype,"data",void 0);_.Q([_.Hf("#handle-input"),_.y("design:type",Object)],Fb.prototype,"handleInput",void 0);_.Q([_.oN("isLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fb.prototype,"updateDisabled",null);
_.Q([_.u({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Fb);
_.D(Fb,"ytd-channel-handle-edit-dialog-renderer",function(){if(yUq!==void 0)return yUq;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return yUq=W},{mode:1});var qD0;var SC=function(){return _.S.apply(this,arguments)||this};
_.C(SC,_.S);SC.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],SC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],SC.prototype,"data",void 0);_.Q([_.u({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],SC);
_.D(SC,"ytd-channel-switcher-footer-renderer",function(){if(qD0!==void 0)return qD0;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return qD0=W},{mode:1});var nQb;var NGb;var Ox=function(){return _.S.apply(this,arguments)||this};
_.C(Ox,_.S);Ox.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Ox.prototype.onIronChange=Ox.prototype.onIronChange;_.Q([_.F(),_.y("design:type",Object)],Ox.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!1}),_.y("design:type",Function)],Ox.prototype,"onDontAskAgainChanged",void 0);_.Q([_.Hf("#checkbox"),_.y("design:type",Object)],Ox.prototype,"checkbox",void 0);_.Q([_.IN("iron-change"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ox.prototype,"onIronChange",null);
_.Q([_.u({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Ox);
_.D(Ox,"ytd-identity-prompt-footer-renderer",function(){if(NGb!==void 0)return NGb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return NGb=W},{mode:1});var Xb=function(){var W=_.S.apply(this,arguments)||this;W.dontAskAgain=!1;W.showPopup=!1;W.boundDontAskAgainChanged=function(B){W.dontAskAgainChanged(B)};
W.boundOnAccountItemTap=function(B){W.onAccountItemTap(B)};
return W};
_.C(Xb,_.S);_.p=Xb.prototype;
_.p.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]]"}}}}}};
_.p.ready=function(){var W=this;_.tH(this.hostElement).querySelector("#container").addEventListener("scroll",function(){W.ytRendererBehavior.markDirty()})};
_.p.dontAskAgainChanged=function(W){this.dontAskAgain=W};
_.p.onAccountItemTap=function(W){if(W){var B={};this.dontAskAgain&&(B={dont_ask_again:this.dontAskAgain});_.zS(W,B)}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.p.redirectOnlyAccount=function(W){W.sections&&W.sections.length>0&&(W=_.k(W.sections[0],_.UDM),(W==null?0:W.contents)&&(W==null?void 0:W.contents.length)<=1?(W=_.Uw(window.location.href),(W==null?0:W.next)&&_.Oix(W.next)?_.zS(W.next):_.zS("/")):this.showPopup=!0)};
Xb.prototype.dataChanged=Xb.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Xb.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Xb.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!1}),_.y("design:type",Object)],Xb.prototype,"dontAskAgain",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Xb.prototype,"showPopup",void 0);_.Q([_.F({reflectToAttribute:!1}),_.y("design:type",Object)],Xb.prototype,"boundDontAskAgainChanged",void 0);_.Q([_.F({reflectToAttribute:!1}),_.y("design:type",Object)],Xb.prototype,"boundOnAccountItemTap",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xb.prototype,"dataChanged",null);
_.Q([_.u({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Xb);
_.D(Xb,"ytd-channel-switcher-renderer",function(){if(nQb!==void 0)return nQb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return nQb=W},{mode:1});var $h6;var KB=function(){return _.S.apply(this,arguments)||this};
_.C(KB,_.S);_.G5.Object.defineProperties(KB.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.Q([_.F(),_.y("design:type",Object)],KB.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],KB.prototype,"steps",null);_.Q([_.u({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],KB);
_.D(KB,"ytd-channel-transfer-stepper-renderer",function(){if($h6!==void 0)return $h6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $h6=W},{mode:1});var LWY;var us=function(){var W=_.S.apply(this,arguments)||this;W.data=null;W.isError=!1;W.isLoading=!1;return W};
_.C(us,_.S);_.p=us.prototype;_.p.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"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.p.computeProfileName=function(W){return W?W.givenNameValue+" "+W.familyNameValue:""};
_.p.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)};
_.p.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)};
us.prototype.onYtServiceRequestError=us.prototype.onYtServiceRequestError;us.prototype.onYtServiceRequestSent=us.prototype.onYtServiceRequestSent;us.prototype.dataChanged=us.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],us.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],us.prototype,"data",void 0);
_.Q([_.F({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.y("design:type",String)],us.prototype,"profileName",void 0);_.Q([_.F(),_.y("design:type",Object)],us.prototype,"isError",void 0);_.Q([_.F(),_.y("design:type",Object)],us.prototype,"isLoading",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],us.prototype,"dataChanged",null);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],us.prototype,"onYtServiceRequestSent",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],us.prototype,"onYtServiceRequestError",null);_.Q([_.u({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],us);
_.D(us,"ytd-channel-warm-welcome-cont-renderer",function(){if(LWY!==void 0)return LWY;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return LWY=W},{mode:1});var Uhr;var eC=function(){var W=_.S.apply(this,arguments)||this;W.data=null;return W};
_.C(eC,_.S);eC.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
eC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],eC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],eC.prototype,"data",void 0);_.Q([_.u({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],eC);
_.D(eC,"ytd-channel-warm-welcome-renderer",function(){if(Uhr!==void 0)return Uhr;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Uhr=W},{mode:1});var MV6;var mI=function(){return _.S.apply(this,arguments)||this};
_.C(mI,_.S);_.G5.Object.defineProperties(mI.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.authorThumbnail)||{}}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],mI.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],mI.prototype,"thumbnailDetails",null);_.Q([_.u({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],mI);
_.D(mI,"ytd-comment-preview-renderer",function(){if(MV6!==void 0)return MV6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return MV6=W},{mode:1});var aPK;var xm=function(){return _.S.apply(this,arguments)||this};
_.C(xm,_.S);xm.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G5.Object.defineProperties(xm.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.submitButton}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],xm.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],xm.prototype,"submitButton",null);_.Q([_.u({is:"ytd-notice-renderer",disableElementRegistration:!0})],xm);
_.D(xm,"ytd-notice-renderer",function(){if(aPK!==void 0)return aPK;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return aPK=W},{mode:1});var RLO;var DW=function(){return _.S.apply(this,arguments)||this};
_.C(DW,_.S);DW.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],DW.prototype,"data",void 0);_.Q([_.u({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],DW);
_.D(DW,"ytd-preview-comment-dialog-content",function(){if(RLO!==void 0)return RLO;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return RLO=W},{mode:1});var WAq;var Qz=function(){return _.S.apply(this,arguments)||this};
_.C(Qz,_.S);Qz.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Qz.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Qz.prototype,"data",void 0);_.Q([_.u({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Qz);
_.D(Qz,"ytd-preview-comment-dialog-renderer",function(){if(WAq!==void 0)return WAq;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return WAq=W},{mode:1});var B$9;var znO=_.r("web_button_rework")&&_.md("BUTTON_REWORK")||_.r("web_button_rework_with_live"),yz=function(){var W=_.S.apply(this,arguments)||this;W.closeLabel=_.kq("CLOSE");W.selectedAmountIndex=1;W.privacyCheckboxValue=!1;W.useAmsterdamStyle=znO;W.amountPlaceholderIndex=-1;return W};
_.C(yz,_.S);_.p=yz.prototype;_.p.onAmountClick=function(W){this.selectedAmountIndex=_.tH(this.hostElement).querySelector("#amounts").indexForElement(W.currentTarget)};
_.p.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.c0(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.p.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.c0(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.c0(this.hostElement,"yt-close-popup-action",[this.is]);var W;(W=_.TN())==null||W.getPlayerPromise().then(function(B){B.pauseVideo()})}};
_.p.donationCallback=function(W){W.success?(this.hostElement.hasAttribute("live-chat")&&W.response&&W.response.data&&W.response.data.actions&&_.c0(this.hostElement,"yt-live-chat-open-popup",[W.response.data.actions[0]]),_.c0(this.hostElement,"yt-close-popup-action",[this.is]),_.c0(this.hostElement,"yt-live-chat-close-buy-flow")):W.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(W.errorMessageRenderer)};
_.p.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.tH(this.hostElement).querySelector("#custom-amount-input").focus()};
_.p.updateConfirmationDialogTextWithAmount=function(W){var B=this.getConfirmDialogRuns();B&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(B),"text"],this.getFormattedAmount(W))};
_.p.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.p.getAmountPlaceholderIndex=function(W){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=W.findIndex(function(B){return B.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.p.getFormattedAmount=function(W){var B;return(new _.Ug(4,((B=this.data)==null?void 0:B.currencyCode)||"")).format(W)};
_.p.isAmountValid=function(W){if(W==="")return!1;W=Number(W)*1E6;var B=this.get("minAmountMicros",this.data),z=this.get("maxAmountMicros",this.data);return B&&W<B||z&&W>z?!1:!0};
_.p.setInputError=function(){this.shouldShowValidationError?_.tH(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.tH(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.p.setInitialCheckboxValue=function(){var W;this.privacyCheckboxValue=!((W=this.data)==null||!W.privacyCheckboxInitialState)};
_.p.updateCustomAmountInputFromBinding=function(W){this.customAmountInput=W.detail.value};
_.p.updatePrivacyCheckboxValueFromBinding=function(W){this.privacyCheckboxValue=W.detail.value};
_.G5.Object.defineProperties(yz.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var W=this,B,z;return((B=this.data)==null?void 0:(z=B.suggestedAmounts)==null?void 0:z.map(function(G,Y){return{buttonRenderer:{style:W.selectedAmountIndex===Y?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:G.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 W;return!((W=this.data)==null||!W.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 W=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(W&&this.amountMicros!==null)return Object.assign({},W,{ypcGetCartEndpoint:Object.assign({},W.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 W=this.get("confirmLargeAmount",this.data);if(W&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),W}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W=this.get("donateButton.buttonRenderer",this.data);if(W)return Object.assign({},W,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
yz.prototype.setInitialCheckboxValue=yz.prototype.setInitialCheckboxValue;yz.prototype.setInputError=yz.prototype.setInputError;yz.prototype.setFocusOnCustomAmountInput=yz.prototype.setFocusOnCustomAmountInput;_.Q([_.h(vRb),_.y("design:type",Object)],yz.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],yz.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],yz.prototype,"closeLabel",void 0);_.Q([_.F(),_.y("design:type",Object)],yz.prototype,"selectedAmountIndex",void 0);_.Q([_.F(),_.y("design:type",String)],yz.prototype,"customAmountInput",void 0);_.Q([_.F(),_.y("design:type",Object)],yz.prototype,"privacyCheckboxValue",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],yz.prototype,"useAmsterdamStyle",void 0);_.Q([_.oN("customAmount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yz.prototype,"setFocusOnCustomAmountInput",null);_.Q([_.H("data","selectedAmountIndex"),_.y("design:type",Array),_.y("design:paramtypes",[])],yz.prototype,"suggestedAmountButtons",null);
_.Q([_.H("data","selectedAmountIndex"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],yz.prototype,"isCustomAmountSelected",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],yz.prototype,"showPrivacyCheckbox",null);_.Q([_.H("data","selectedAmountIndex","customAmount"),_.y("design:type",Object),_.y("design:paramtypes",[])],yz.prototype,"amountMicros",null);
_.Q([_.H("isCustomAmountSelected","customAmountInput"),_.y("design:type",Object),_.y("design:paramtypes",[])],yz.prototype,"customAmount",null);_.Q([_.H("customAmount"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],yz.prototype,"shouldShowValidationError",null);_.Q([_.H("customAmount"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],yz.prototype,"isDonateButtonEnabled",null);
_.Q([_.H("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.y("design:type",Object),_.y("design:paramtypes",[])],yz.prototype,"donateCommand",null);_.Q([_.H("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.y("design:type",Object),_.y("design:paramtypes",[])],yz.prototype,"donateCommandWithConfirmation",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yz.prototype,"largeDonationThreshold",null);
_.Q([_.H("customAmount","donateCommand","amountMicros"),_.y("design:type",Object),_.y("design:paramtypes",[])],yz.prototype,"confirmLargeAmountCommand",null);_.Q([_.H("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.y("design:type",Object),_.y("design:paramtypes",[])],yz.prototype,"donateButtonRenderer",null);_.Q([_.oN("shouldShowValidationError"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yz.prototype,"setInputError",null);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yz.prototype,"setInitialCheckboxValue",null);_.Q([_.u({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],yz);
_.D(yz,"ytd-donation-amount-picker-renderer",function(){if(B$9!==void 0)return B$9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return B$9=W},{mode:1});var GYi;var q0=function(){return _.S.apply(this,arguments)||this};
_.C(q0,_.S);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],q0.prototype,"ytComponentBehavior",void 0);_.Q([_.F({}),_.y("design:type",Object)],q0.prototype,"data",void 0);_.Q([_.u({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],q0);
_.D(q0,"ytd-donation-post-transaction-content",function(){if(GYi!==void 0)return GYi;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return GYi=W},{mode:1});var YeK;var nB=function(){return _.S.apply(this,arguments)||this};
_.C(nB,_.S);nB.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],nB.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.Q([_.F({}),_.y("design:type",Object)],nB.prototype,"data",void 0);_.Q([_.u({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],nB);
_.D(nB,"ytd-donation-post-transaction-renderer",function(){if(YeK!==void 0)return YeK;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return YeK=W},{mode:1});var doq;var pZb;var N0=function(){return _.S.apply(this,arguments)||this};
_.C(N0,_.S);N0.prototype.computeIsStreamingProvider=function(W){return!!W.isStreamingShelf};
N0.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],N0.prototype,"data",void 0);_.Q([_.F({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],N0.prototype,"isStreamingProvider",void 0);
_.Q([_.u({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],N0);
_.D(N0,"ytd-media-provider-renderer",function(){if(pZb!==void 0)return pZb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return pZb=W},{mode:1});var Anr;var $m=function(){return _.S.apply(this,arguments)||this};
_.C($m,_.S);$m.prototype.observeLightsourcePalette=function(){var W,B=(W=this.data)==null?void 0:W.vibrantsourceColorPaletteData;B&&_.Ky(this.hostElement,B)};
$m.prototype.observeLightsourcePalette=$m.prototype.observeLightsourcePalette;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$m.prototype,"data",void 0);
_.Q([_.oN("data.vibrantsourceColorPaletteData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$m.prototype,"observeLightsourcePalette",null);_.Q([_.u({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],$m);
_.D($m,"ytd-streaming-pop-up-dialog",function(){if(Anr!==void 0)return Anr;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Anr=W},{mode:1});var LB=function(){return _.S.apply(this,arguments)||this};
_.C(LB,_.S);LB.prototype.onPopupOpened_=function(){var W;((W=this.data)==null?0:W.serviceEndpoint)&&_.dO().resolve(_.p4).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
LB.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
LB.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"}}}}};
LB.prototype.onPopupOpened_=LB.prototype.onPopupOpened_;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],LB.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Pl),_.y("design:type",Object)],LB.prototype,"ytContinuationHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],LB.prototype,"data",void 0);
_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LB.prototype,"onPopupOpened_",null);_.Q([_.u({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],LB);
_.D(LB,"ytd-brandconnect-popup-renderer",function(){if(doq!==void 0)return doq;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return doq=W},{mode:1});var iD0;var Ux=function(){return _.S.apply(this,arguments)||this};
_.C(Ux,_.S);_.p=Ux.prototype;_.p.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){for(var W=0;W<this.getOptionRenderers().length;W++)this.notifyPath("data.options."+W+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+W+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.p.updateSubmitButton=function(W){this.set("data.submitButton.buttonRenderer.isDisabled",!W)};
_.p.computeAlt=function(W){return _.zR(W)};
_.p.onDismissTap=function(){_.c0(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.dO().resolve(_.p4).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.p.getOptionRenderers=function(W){return(W=W||this.data)&&W.options?W.options.reduce(function(B,z){z.checkboxSurveyOptionRenderer&&B.push(z.checkboxSurveyOptionRenderer);return B},[]):[]};
_.p.onOptionChange=function(W){var B=this,z=!1;if(W.detail.checked)for(var G=this.getOptionRenderers().find(function(v){return v.value===W.detail.value}),Y=this.getOptionRenderers(),d=0;d<Y.length;d++){var E=Y[d];
this.notifyPath("data.options."+d+".checkboxSurveyOptionRenderer.checked");E.checked&&((G==null?0:G.isExclusiveOption)?!E.isExclusiveOption:E.isExclusiveOption)?this.set("data.options."+d+".checkboxSurveyOptionRenderer.checked",!1):E.checked&&(z=!0)}else z=this.getOptionRenderers().some(function(v,c){B.notifyPath("data.options."+c+".checkboxSurveyOptionRenderer.checked");return v.checked});
this.updateSubmitButton(z)};
_.p.onSubmitTap=function(){var W=this.getOptionRenderers().filter(function(d){return d.checked});
if(W.length!==0){var B=W.map(function(d){return d.responseEndpoint});
W=[];for(var z=1;z<B.length;z++){var G=void 0,Y=(G=_.k(B[z],_.fQ))==null?void 0:G.feedbackToken;Y&&W.push(Y)}B=[B[0]];W.length&&B.push({extra_feedback_tokens:W});_.V0(this.hostElement,B);_.c0(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);W=this.data&&this.data.submitActions||[];if(_.r("kevlar_command_handler_migration_killswitch"))_.Jr(this.hostElement,W,this.hostElement);else for(W=_.A(W),B=W.next();!B.done;B=W.next())this.ytComponentBehavior.resolveCommand(B.value)}};
Ux.prototype.onOptionChange=Ux.prototype.onOptionChange;Ux.prototype.dataChanged=Ux.prototype.dataChanged;_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],Ux.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ux.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Ux.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.Q([_.h(FJb),_.y("design:type",Object)],Ux.prototype,"ytdHatsSurveyBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ux.prototype,"data",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ux.prototype,"dataChanged",null);
_.Q([_.IN("ytd-checkbox-survey-option-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Ux.prototype,"onOptionChange",null);_.Q([_.u({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Ux);
_.D(Ux,"ytd-checkbox-survey-renderer",function(){if(iD0!==void 0)return iD0;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return iD0=W},{mode:1});var E4q;var T$q;var M0=function(){return _.S.apply(this,arguments)||this};
_.C(M0,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.Q([_.h(HY9),_.y("design:type",Object)],M0.prototype,"ytdDismissalReasonBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],M0.prototype,"data",void 0);_.Q([_.u({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],M0);
_.D(M0,"ytd-dismissal-reason-text-renderer",function(){if(T$q!==void 0)return T$q;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return T$q=W},{mode:1});var v49;var al=function(){return _.S.apply(this,arguments)||this};
_.C(al,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);_.Q([_.h(HY9),_.y("design:type",Object)],al.prototype,"ytdDismissalReasonBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],al.prototype,"data",void 0);_.Q([_.u({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],al);
_.D(al,"ytd-dismissal-reason-video-renderer",function(){if(v49!==void 0)return v49;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return v49=W},{mode:1});var Rl=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(Rl,_.S);_.p=Rl.prototype;_.p.created=function(){this.selectedFeedbackTokens=new qc};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.p.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.p.onDismissalReasonSelected=function(W,B){_.v0(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(B);this.hasReasonsSelected=!0};
_.p.onDismissalReasonDeselected=function(W,B){_.v0(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(B);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.p.onCancelTap=function(){_.c0(this.hostElement,"yt-close-popup-action")};
_.p.onSubmitTap=function(){var W=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(W={feedback_tokens:W},_.dO().resolve(_.p4).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},W,{element:this.hostElement})}));_.c0(this.hostElement,"yt-close-popup-action")};
Rl.prototype.onDismissalReasonDeselected=Rl.prototype.onDismissalReasonDeselected;Rl.prototype.onDismissalReasonSelected=Rl.prototype.onDismissalReasonSelected;Rl.prototype.dataChanged=Rl.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Rl.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],Rl.prototype,"hasReasonsSelected",void 0);_.Q([_.F(),_.y("design:type",qc)],Rl.prototype,"selectedFeedbackTokens",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Rl.prototype,"darkerDarkTheme",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Rl.prototype,"dataChanged",null);
_.Q([_.IN("yt-dismissal-reason-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,String]),_.y("design:returntype")],Rl.prototype,"onDismissalReasonSelected",null);_.Q([_.IN("yt-dismissal-reason-deselected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,String]),_.y("design:returntype")],Rl.prototype,"onDismissalReasonDeselected",null);_.Q([_.u({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Rl);
_.D(Rl,"ytd-dismissal-follow-up-renderer",function(){if(E4q!==void 0)return E4q;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return E4q=W},{mode:1});var cnY;var Wx=function(){return _.S.apply(this,arguments)||this};
_.C(Wx,_.S);_.p=Wx.prototype;_.p.onCheckedChange=function(){this.multiselect||_.v0(this.hostElement,"yt-feedback-single-select-changed");_.tH(this.hostElement).querySelector("#freeform").focus();_.v0(this.hostElement,"yt-refit")};
_.p.showTextBox=function(W,B){return W&&B};
_.p.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))};
_.p.updateDataCheckedFromBinding=function(W){this.set("data.checked",W.detail.value)};
_.p.updateDataResultTextFromBinding=function(W){this.set("data.resultText",W.detail.value)};
Wx.prototype.dataChanged=Wx.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Wx.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Wx.prototype,"multiselect",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wx.prototype,"dataChanged",null);
_.Q([_.u({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Wx);
_.D(Wx,"ytd-feedback-option-renderer",function(){if(cnY!==void 0)return cnY;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return cnY=W},{mode:1});var wZj;var Bx=function(){return _.S.apply(this,arguments)||this};
_.C(Bx,_.S);Bx.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Bx.prototype.onSingleSelectCheckedChanged=function(W){W=_.iP(W);for(var B=0;B<this.data.options.length;B++)if(W.data!==_.k(this.data.options[B],yPr)){var z="data.options."+B+".feedbackOptionRenderer.checked";this.notifyPath(z);this.set(z,!1)}};
Bx.prototype.onSingleSelectCheckedChanged=Bx.prototype.onSingleSelectCheckedChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Bx.prototype,"data",void 0);
_.Q([_.IN("yt-feedback-single-select-changed"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Bx.prototype,"onSingleSelectCheckedChanged",null);_.Q([_.u({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Bx);
_.D(Bx,"ytd-feedback-question-renderer",function(){if(wZj!==void 0)return wZj;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return wZj=W},{mode:1});var Vq1;var zA=function(){return _.S.apply(this,arguments)||this};
_.C(zA,_.S);zA.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
zA.prototype.getSelectedFeedbackResults=function(){for(var W={},B=0;B<this.data.questions.length;B++)for(var z=_.k(this.data.questions[B],QY1),G=0;G<z.options.length;G++){var Y=_.k(z.options[G],yPr);Y&&Y.checked&&(W[Y.optionKey]=Y.resultText)}return W};
zA.prototype.onKeyUp=function(){var W=this;_.P2(_.fg,function(){_.v0(W.hostElement,"yt-refit")});
_.fg.start()};
zA.prototype.submitSurvey=function(){var W=this.getSelectedFeedbackResults();Object.keys(W).length>0&&this.data.submitFeedbackEndpoint&&(W={survey_results:W,is_feedback_token_unencrypted:!0},_.dO().resolve(_.p4).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},W,{element:this.hostElement})}))};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],zA.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],zA.prototype,"data",void 0);_.Q([_.u({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],zA);
_.D(zA,"ytd-feedback-survey-renderer",function(){if(Vq1!==void 0)return Vq1;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Vq1=W},{mode:1});var Jn0;var g4r;var GA=function(){return _.S.apply(this,arguments)||this};
_.C(GA,_.S);GA.prototype.computeAlt=function(W){return _.zR(W)};
GA.prototype.submitResponse=function(){var W,B;(W=this.data)!=null&&W.feedbackToken&&((B=this.data)==null?void 0:B.nextStageIndex)!==void 0&&(_.wV(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.wV(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
GA.prototype.onClick=function(){this.submitResponse()};
GA.prototype.onClick=GA.prototype.onClick;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],GA.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],GA.prototype,"vertical",void 0);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GA.prototype,"onClick",null);
_.Q([_.u({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],GA);
_.D(GA,"ytd-single-select-answer-option-renderer",function(){if(g4r!==void 0)return g4r;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return g4r=W},{mode:1});var tqO;var YV=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");W.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return W};
_.C(YV,_.S);YV.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
YV.prototype.dataChanged=function(){var W,B;this.vertical=((B=(W=this.data)==null?void 0:W.answerOrientation)!=null?B:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
YV.prototype.submitFeedback=function(W){var B;((B=this.data)==null?0:B.responseEndpoint)&&W&&_.V0(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[W]}])};
YV.prototype.dataChanged=YV.prototype.dataChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],YV.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],YV.prototype,"eventForwardingBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],YV.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],YV.prototype,"vertical",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],YV.prototype,"darkerDarkTheme",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YV.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],YV);
_.D(YV,"ytd-single-select-question-renderer",function(){if(tqO!==void 0)return tqO;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return tqO=W},{mode:1});var d9=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return W};
_.C(d9,_.S);_.p=d9.prototype;_.p.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"}}}};
_.p.dataChanged=function(){this.jumpToStage(0)};
_.p.jumpToStage=function(W){var B,z;if((B=this.data)==null?0:(z=B.stages)==null?0:z[W])this.currentStage=this.data.stages[W],this.refitAfterRender()};
_.p.computeAlt=function(W){return _.zR(W)};
_.p.computeSimpleMessage=function(W){var B;return(B=_.k(W,NNb))==null?void 0:B.messageText};
_.p.computeHideDismiss=function(W){var B;return(B=_.k(W,PUK))==null?void 0:B.hideParentDismissButton};
_.p.onDismissTap=function(){_.c0(this.hostElement,"yt-close-popup-action");_.k(this.currentStage,NNb)||this.data.dismissalEndpoint&&_.dO().resolve(_.p4).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.p.refitAfterRender=function(){var W=this;_.BM(this,function(){_.v0(W.hostElement,"yt-refit")})};
d9.prototype.dataChanged=d9.prototype.dataChanged;_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],d9.prototype,"eventForwardingBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],d9.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],d9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],d9.prototype,"ytActionHandlerBehavior",void 0);
_.Q([_.h(FJb),_.y("design:type",Object)],d9.prototype,"ytdHatsSurveyBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],d9.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],d9.prototype,"currentStage",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d9.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],d9);
_.D(d9,"ytd-multi-stage-survey-renderer",function(){if(Jn0!==void 0)return Jn0;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Jn0=W},{mode:1});var s4O;var pe=function(){return _.S.apply(this,arguments)||this};
_.C(pe,_.S);pe.prototype.computeAlt=function(W){return _.zR(W)};
pe.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.dO().resolve(_.p4).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.c0(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.K1f(!1)))};
pe.prototype.onTap=function(){this.vertical&&this.submitResponse()};
pe.prototype.onTap=pe.prototype.onTap;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],pe.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],pe.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],pe.prototype,"vertical",void 0);
_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pe.prototype,"onTap",null);_.Q([_.u({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],pe);
_.D(pe,"ytd-single-option-survey-option-renderer",function(){if(s4O!==void 0)return s4O;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return s4O=W},{mode:1});var PSY;var AR=function(){return _.S.apply(this,arguments)||this};
_.C(AR,_.S);_.p=AR.prototype;_.p.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){var W,B;this.vertical=(((W=this.data)==null?void 0:(B=W.surveyOrientation)==null?void 0:B.type)||"HORIZONTAL")==="VERTICAL"};
_.p.computeAlt=function(W){return _.zR(W)};
_.p.onDismissTap=function(){_.c0(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.dO().resolve(_.p4).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.K1f(!1))};
AR.prototype.dataChanged=AR.prototype.dataChanged;_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],AR.prototype,"eventForwardingBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],AR.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(FJb),_.y("design:type",Object)],AR.prototype,"ytdHatsSurveyBehavior",void 0);
_.Q([_.h(_.TB),_.y("design:type",Object)],AR.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],AR.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],AR.prototype,"vertical",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],AR.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],AR);
_.D(AR,"ytd-single-option-survey-renderer",function(){if(PSY!==void 0)return PSY;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return PSY=W},{mode:1});var ZD1;var ib=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(ib,_.S);ib.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ib.prototype.onDismissTap=function(){_.c0(this.hostElement,"yt-close-popup-action")};
ib.prototype.onNavigate=function(){_.c0(this.hostElement,"yt-close-popup-action")};
ib.prototype.onNavigate=ib.prototype.onNavigate;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],ib.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ib.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],ib.prototype,"darkerDarkTheme",void 0);
_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ib.prototype,"onNavigate",null);_.Q([_.u({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],ib);
_.D(ib,"ytd-survey-follow-up-renderer",function(){if(ZD1!==void 0)return ZD1;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ZD1=W},{mode:1});var rnb;var kYr;var lTr;var E$=function(){var W=_.S.apply(this,arguments)||this;W.polymer2="Element"in Polymer;return W};
_.C(E$,_.S);_.p=E$.prototype;_.p.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.p.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.p.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.p.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("minutes-changed",this.minutes))};
_.p.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("seconds-changed",this.seconds))};
_.p.updateMinutesFromBinding=function(W){this.minutes=W.detail.value};
_.p.updateSecondsFromBinding=function(W){this.seconds=W.detail.value};
E$.prototype.secondsChangedForBinding=E$.prototype.secondsChangedForBinding;E$.prototype.minutesChangedForBinding=E$.prototype.minutesChangedForBinding;E$.prototype.secondsChanged=E$.prototype.secondsChanged;_.Q([_.F(),_.y("design:type",String)],E$.prototype,"minutes",void 0);_.Q([_.F(),_.y("design:type",String)],E$.prototype,"seconds",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],E$.prototype,"polymer2",void 0);
_.Q([_.Hf("#seconds"),_.y("design:type",Object)],E$.prototype,"secondsEl",void 0);_.Q([_.oN("seconds"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],E$.prototype,"secondsChanged",null);_.Q([_.oN("minutes"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],E$.prototype,"minutesChangedForBinding",null);
_.Q([_.oN("seconds"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],E$.prototype,"secondsChangedForBinding",null);_.Q([_.NJ({is:"yt-timestamp-input",disableElementRegistration:!0})],E$);
_.D(E$,"yt-timestamp-input",function(){if(lTr===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;kYr===void 0&&(kYr=document.createElement("template"));var G=kYr;z.call(B,G.content.cloneNode(!0),W.content.firstChild);lTr=W}W=lTr;return W},{mode:2});var TA=function(){return _.S.apply(this,arguments)||this};
_.C(TA,_.S);_.p=TA.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20352_scroller.dialogElement=this.hostElement.parentNode};
_.p.dataChanged=function(){var W=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.vA().getPlayerPromise().then(function(B){B=B.getCurrentTime();W.minutes=Math.floor(B/60).toString();W.seconds=(Math.floor(B)%60).toString()})};
_.p.onTapSubmit=function(W){W.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(W={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(W.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(W.minutes=this.minutes,W.seconds=this.seconds),_.dO().resolve(_.p4).resolveCommand(this.serviceEndpoint,{form:Object.assign({},W,{element:this.hostElement})}))};
_.p.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.p.onYtServiceRequestCompleted=function(W,B){B=B.actions;if(Array.isArray(B))for(var z=0,G=B.length;z<G;z++)_.k(B[z],_.Nm)&&(W.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(B[z]))};
_.p.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.p.toggleSubmitButton=function(W){this.set("submitButton.isDisabled",!W)};
_.p.handleInput=function(){var W=this.issueType,B=this.affiliation,z=this.minutes,G=this.seconds;z=!this.showTimestamp||!!z&&!!G;this.toggleSubmitButton(!!this.descriptionText&&!!W&&!!B&&z)};
_.p.computeServiceEndpoint=function(W){return this.get("submitButton.buttonRenderer.serviceEndpoint",W)};
_.p.computeSubmitButton=function(W){(W=this.get("submitButton.buttonRenderer",W))&&(W=Object.assign({},W,{serviceEndpoint:void 0}));return W};
_.p.computeShowTimestamp=function(W){return!!W};
_.p.onValueChangedForIssueType=function(W){this.issueType=W.detail.value};
_.p.onValueChangedForAffiliation=function(W){this.affiliation=W.detail.value};
_.p.updateDescriptionTextFromBinding=function(W){this.descriptionText=W.detail.value};
_.p.updateFullNameTextFromBinding=function(W){this.fullNameText=W.detail.value};
_.p.updateMinutesFromBinding=function(W){this.minutes=W.detail.value};
_.p.updateSecondsFromBinding=function(W){this.seconds=W.detail.value};
TA.prototype.handleInput=TA.prototype.handleInput;TA.prototype.onYtServiceRequestError=TA.prototype.onYtServiceRequestError;TA.prototype.onYtServiceRequestCompleted=TA.prototype.onYtServiceRequestCompleted;TA.prototype.onYtServiceRequestSent=TA.prototype.onYtServiceRequestSent;TA.prototype.dataChanged=TA.prototype.dataChanged;_.Q([_.h(_.Ds.YtOpenPopupBehavior),_.y("design:type",Object)],TA.prototype,"ytOpenPopupBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.Q([_.Hf("#scroller"),_.y("design:type",Object)],TA.prototype,"JSC$20352_scroller",void 0);_.Q([_.Hf("#description"),_.y("design:type",HTMLInputElement)],TA.prototype,"description",void 0);_.Q([_.Hf("#full-name"),_.y("design:type",Object)],TA.prototype,"fullName",void 0);_.Q([_.F(),_.y("design:type",Object)],TA.prototype,"data",void 0);
_.Q([_.F({computed:"computeShowTimestamp(data.timestampLabel)"}),_.y("design:type",Boolean)],TA.prototype,"showTimestamp",void 0);_.Q([_.F({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.y("design:type",Object)],TA.prototype,"serviceEndpoint",void 0);_.Q([_.F({computed:"computeSubmitButton(data)"}),_.y("design:type",Object)],TA.prototype,"submitButton",void 0);_.Q([_.F(),_.y("design:type",String)],TA.prototype,"descriptionText",void 0);
_.Q([_.F(),_.y("design:type",Number)],TA.prototype,"issueType",void 0);_.Q([_.F(),_.y("design:type",Number)],TA.prototype,"affiliation",void 0);_.Q([_.F(),_.y("design:type",String)],TA.prototype,"fullNameText",void 0);_.Q([_.F(),_.y("design:type",String)],TA.prototype,"minutes",void 0);_.Q([_.F(),_.y("design:type",String)],TA.prototype,"seconds",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TA.prototype,"dataChanged",null);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],TA.prototype,"onYtServiceRequestSent",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],TA.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],TA.prototype,"onYtServiceRequestError",null);_.Q([_.oN("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TA.prototype,"handleInput",null);_.Q([_.u({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],TA);
_.D(TA,"ytd-legal-report-details-form-renderer",function(){if(rnb!==void 0)return rnb;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return rnb=W},{mode:1});var CSr;var vx=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return W};
_.C(vx,_.S);vx.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
vx.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var W=this.formRenderer.getForm();W&&this.data.submitEndpoint&&(_.dO().resolve(_.p4).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},W,{element:this.hostElement})}),_.c0(this.hostElement,"yt-close-popup-action"))}};
vx.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.c0(this.hostElement,"yt-close-popup-action"))};
vx.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
vx.prototype.onPopupClosed=vx.prototype.onPopupClosed;_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],vx.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],vx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],vx.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);
_.Q([_.Hf("yt-form-renderer"),_.y("design:type",Object)],vx.prototype,"formRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],vx.prototype,"data",void 0);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vx.prototype,"onPopupClosed",null);_.Q([_.u({is:"ytd-form-popup-content",disableElementRegistration:!0})],vx);
_.D(vx,"ytd-form-popup-content",function(){if(CSr!==void 0)return CSr;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return CSr=W},{mode:1});var ITO;var cx=function(){return _.S.apply(this,arguments)||this};
_.C(cx,_.S);cx.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
cx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cx.prototype.onPopupOpened=function(){_.v0(this.hostElement,"yt-invalidate-popup-tabbables")};
cx.prototype.onYtServiceRequestCompleted=function(W,B){B.data&&B.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.v0(this.hostElement,"yt-invalidate-popup-tabbables"))};
cx.prototype.onYtServiceRequestCompleted=cx.prototype.onYtServiceRequestCompleted;cx.prototype.onPopupOpened=cx.prototype.onPopupOpened;_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],cx.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],cx.prototype,"data",void 0);_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cx.prototype,"onPopupOpened",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],cx.prototype,"onYtServiceRequestCompleted",null);_.Q([_.u({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],cx);
_.D(cx,"ytd-form-popup-renderer",function(){if(ITO!==void 0)return ITO;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ITO=W},{mode:1});var o40;var w9=function(){var W=_.S.apply(this,arguments)||this;W.isLoading=!1;return W};
_.C(w9,_.S);_.p=w9.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Ujb(this.hostElement)};
_.p.onYtServiceRequestSent=function(){this.isLoading=!0};
_.p.onYtServiceRequestCompleted=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.p.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Jr(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.p.closePopupHandler=function(){this.fireOnCloseActions()};
_.p.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var W=this.get("data.headerImage.thumbnails");W&&(W=_.JY(W,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+W+")")}};
_.p.onYtNavigate=function(W){(W=_.iP(W))&&W.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
w9.prototype.onYtNavigate=w9.prototype.onYtNavigate;w9.prototype.onHeaderImageChanged=w9.prototype.onHeaderImageChanged;w9.prototype.closePopupHandler=w9.prototype.closePopupHandler;w9.prototype.onYtServiceRequestCompleted=w9.prototype.onYtServiceRequestCompleted;w9.prototype.onYtServiceRequestSent=w9.prototype.onYtServiceRequestSent;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],w9.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],w9.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],w9.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],w9.prototype,"isLoading",void 0);_.Q([_.Hf("#header"),_.y("design:type",HTMLDivElement)],w9.prototype,"header",void 0);_.Q([_.Hf("#confirm-button"),_.y("design:type",_.aT)],w9.prototype,"confirmButton",void 0);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],w9.prototype,"onYtServiceRequestSent",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],w9.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],w9.prototype,"closePopupHandler",null);_.Q([_.oN("data.headerImage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],w9.prototype,"onHeaderImageChanged",null);_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],w9.prototype,"onYtNavigate",null);
_.Q([_.u({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],w9);
_.D(w9,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(o40!==void 0)return o40;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return o40=W},{mode:1});var hnf;var VE=function(){var W=_.S.apply(this,arguments)||this;W.isLoading=!1;return W};
_.C(VE,_.S);_.p=VE.prototype;_.p.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"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Ujb(this.hostElement)};
_.p.onYtServiceRequestCompleted=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.p.onYtServiceRequestError=function(W){_.Wk(this.hostElement,W.detail.error.message)};
_.p.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.p.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.c0(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.p.onDataChanged=function(){this.isLoading=!1;var W=this.get("data.headerImage.thumbnails");W&&(W=_.JY(W,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+W+")");W=_.m1();var B=_.et(),z=this.get("data.trackingParams");z&&B&&W&&_.$q(W,B,_.XF(z))};
_.G5.Object.defineProperties(VE.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
VE.prototype.onDataChanged=VE.prototype.onDataChanged;VE.prototype.onDomChange=VE.prototype.onDomChange;VE.prototype.onYtServiceRequestError=VE.prototype.onYtServiceRequestError;VE.prototype.onYtServiceRequestCompleted=VE.prototype.onYtServiceRequestCompleted;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],VE.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],VE.prototype,"isLoading",void 0);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],VE.prototype,"hasDescription",null);_.Q([_.Hf("tp-yt-paper-dialog-scrollable"),_.y("design:type",Object)],VE.prototype,"scrollable",void 0);_.Q([_.Hf("#header"),_.y("design:type",HTMLElement)],VE.prototype,"header",void 0);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],VE.prototype,"onYtServiceRequestCompleted",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],VE.prototype,"onYtServiceRequestError",null);
_.Q([_.IN("dom-change"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],VE.prototype,"onDomChange",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VE.prototype,"onDataChanged",null);_.Q([_.u({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],VE);
_.D(VE,"ytd-gaming-account-link-setting-renderer",function(){if(hnf!==void 0)return hnf;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return hnf=W},{mode:1});var HD6;var FAb;var JR=function(){var W=_.S.apply(this,arguments)||this;W.isHeader=!1;W.getEndpointForm=function(){return $EO(W.data)};
return W};
_.C(JR,_.S);_.p=JR.prototype;_.p.triggerHintActions=function(){var W=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var B=_.wV(W.hostElement,"yt-get-opened-popups-action");!(B&&B.length===1?B[0]:[]).some(function(z){z=z.openPopupAction.popupType;return z==="SURVEY"||z==="MEALBAR"||z==="HINT"})&&W.data.hintActions&&W.guideOpened&&(_.Jr(W.hostElement,W.data.hintActions,W.hostElement),W.data.hintActions=void 0)})};
_.p.getBadgeIconType=function(W){return W&&W.liveBroadcasting?"live":null};
_.p.onDown=function(){this.interaction.triggerDown()};
_.p.onUp=function(){this.interaction.triggerUp()};
_.p.onTap=function(W){if(this.data.serviceEndpoint){var B;_.r("shorts_controller_retrieve_seedless_sequence_v2")&&((B=_.k(this.data.serviceEndpoint,_.SW))==null?void 0:B.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):NS1(this.data.serviceEndpoint,this);W.preventDefault()}else this.data.navigationEndpoint&&!_.p2(_.AH(W),this.hostElement,["A".toString()])&&_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.p.computeActive=function(W,B){if(!W)return!1;var z=W.navigationEndpoint;W=W.serviceEndpoint;if(!z&&!W||!B)return!1;if(z){W=(W=_.Cs(B))&&["subscriptions","filteredsubscriptions"].includes(W);if(_.k(z,_.oE)&&_.k(B,_.oE)&&!W){var G=_.k(z,_.oE).browseId;B=_.k(B,_.oE).browseId;return G!==void 0&&B!==void 0&&(G===B||G==="VLWL"&&B==="FEwatch_later"||G==="FEwatch_later"&&B==="VLWL")}var Y;z=(Y=_.k(z.commandMetadata,_.Z4))==null?void 0:Y.url;B=(G=_.k(B.commandMetadata,_.Z4))==null?void 0:G.url;return!(!z||
!B||z!==B&&z!==_.gO(B))}return this.isActiveShortsTab(W,B)};
_.p.isActiveShortsTab=function(W,B){B=!!_.k(B,_.SW)||!!_.k(B,_.Aw);return(!!_.k(W,_.SW)||!!_.k(W,_.Aw))&&B};
_.p.computeIsPrimary=function(W){return!!W};
_.G5.Object.defineProperties(JR.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 W=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&W)return W}}});
JR.prototype.onTap=JR.prototype.onTap;JR.prototype.onUp=JR.prototype.onUp;JR.prototype.onDown=JR.prototype.onDown;JR.prototype.triggerHintActions=JR.prototype.triggerHintActions;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],JR.prototype,"componentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],JR.prototype,"rendererBehavior",void 0);_.Q([_.h(_.hu.YtTaskEmitterBehavior),_.y("design:type",Object)],JR.prototype,"taskEmitterBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],JR.prototype,"activeEndpoint",void 0);_.Q([_.F(),_.y("design:type",Object)],JR.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],JR.prototype,"guideOpened",void 0);_.Q([_.F(),_.y("design:type",String)],JR.prototype,"type",void 0);_.Q([_.Hf("yt-interaction"),_.y("design:type",Object)],JR.prototype,"interaction",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],JR.prototype,"isHeader",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data","activeEndpoint"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],JR.prototype,"active",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],JR.prototype,"isPrimary",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.count","data.presentationStyle","data.badges.*"),_.y("design:type",String),_.y("design:paramtypes",[])],JR.prototype,"lineEndStyle",null);
_.Q([_.H("lineEndStyle"),_.y("design:type",Object),_.y("design:paramtypes",[])],JR.prototype,"ariaLabel",null);_.Q([_.oN("data.hintActions","guideOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JR.prototype,"triggerHintActions",null);_.Q([_.IN("down"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JR.prototype,"onDown",null);
_.Q([_.IN("up"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JR.prototype,"onUp",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],JR.prototype,"onTap",null);_.Q([_.u({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],JR);
_.D(JR,"ytd-guide-entry-renderer",function(){if(FAb!==void 0)return FAb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return FAb=W},{mode:1});var g9=function(){var W=_.S.apply(this,arguments)||this;W.userToggled=!1;return W};
_.C(g9,_.S);_.p=g9.prototype;_.p.getItemsPath=function(){return"data.expandableItems"};
_.p.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.p.onExpanderItemTapped=function(W){var B=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.r("kevlar_guide_expandable_items_killswitch")&&_.BM(this,function(){_.UE(B.expandableItems)});
W.preventDefault()};
_.p.onCollapserItemTapped=function(W){var B=this;this._setExpanded(!1);this.userToggled=!0;W.preventDefault();this.expandableItems&&!_.r("kevlar_guide_collapsible_items_killswitch")&&_.BM(this,function(){_.Lg(B.hostElement)})};
_.p.observeActiveEndpoint=function(){for(var W=this.activeEndpoint,B=this.data,z=this.expandableItems.children,G=0,Y=z.length;G<Y;G++)z[G].activeEndpoint=W;B&&B.autoExpandCommand&&W&&!this.userToggled&&(z=this.data.autoExpandCommand,B=!(!_.k(z,_.oE)||!_.k(W,_.oE)||_.k(z,_.oE).browseId!==_.k(W,_.oE).browseId),W=this.get("commandMetadata.webCommandMetadata.url",W),z=this.get("commandMetadata.webCommandMetadata.url",z),B=B||!!(W&&z&&W.includes(z)),this._setExpanded(B),B&&this.ytLazyListBehavior.fillRemainingListItems())};
g9.prototype.observeActiveEndpoint=g9.prototype.observeActiveEndpoint;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],g9.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],g9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.bh.YtLazyListBehavior),_.y("design:type",Object)],g9.prototype,"ytLazyListBehavior",void 0);_.Q([_.Hf("#expandable-items"),_.y("design:type",HTMLElement)],g9.prototype,"expandableItems",void 0);
_.Q([_.F(),_.y("design:type",Object)],g9.prototype,"data",void 0);_.Q([_.F({readOnly:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],g9.prototype,"expanded",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],g9.prototype,"initialCount",void 0);_.Q([_.F(),_.y("design:type",Object)],g9.prototype,"activeEndpoint",void 0);_.Q([_.oN("data","activeEndpoint","canShowMore"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],g9.prototype,"observeActiveEndpoint",null);
_.Q([_.u({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],g9);
_.D(g9,"ytd-guide-collapsible-entry-renderer",function(){if(HD6!==void 0)return HD6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return HD6=W},{mode:_.PJ("kevlar_poly_si_batch_j079")?1:2});var Sei;var bDj;var tR=function(){var W=_.S.apply(this,arguments)||this;W.allVideosCount=0;W.renderGuideEntry=!1;return W};
_.C(tR,_.S);tR.prototype.observeRenderEntry=function(){var W;this.renderGuideEntry=!((W=this.data)==null||!W.alwaysShow)||!!this.allVideosCount};
tR.prototype.observeRenderEntry=tR.prototype.observeRenderEntry;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],tR.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],tR.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],tR.prototype,"activeEndpoint",void 0);_.Q([_.F({selector:_.J5T}),_.y("design:type",Object)],tR.prototype,"allVideosCount",void 0);
_.Q([_.F(),_.y("design:type",Object)],tR.prototype,"renderGuideEntry",void 0);_.Q([_.jJ("allVideosCount","data.alwaysShow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tR.prototype,"observeRenderEntry",null);_.Q([_.u({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],tR);
_.D(tR,"ytd-guide-downloads-entry-renderer",function(){if(bDj===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);bDj=W}W=bDj;return W},{mode:1});var s$=function(){var W=_.S.apply(this,arguments)||this;W.youtab=_.r("web_enable_youtab");W.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return W};
_.C(s$,_.S);_.p=s$.prototype;_.p.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]]"}}}}}};
_.p.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var W=this.sectionItems.children,B=0,z=W.length;B<z;B++)W[B].activeEndpoint=this.activeEndpoint}};
_.p.handleAddToGuideSectionAction=function(W){var B=_.k(W,E1r);if(B&&this.data&&(W=B.items,B=B.handlerData,W&&B&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(B)>-1)){B=0;for(var z=W.length;B<z;B++)W[B].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,W[B])}};
_.p.handleRemoveFromGuideSectionAction=function(W){var B=_.k(W,TNj);B&&this.data&&(W=B.guideEntryId,B=B.handlerData,W&&B&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(B)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(W,this.data.sectionItems),this.removeFromCollapsedSection(W,this.data.sectionItems)))};
_.p.removeFromExpandedSection=function(W,B){W=this.getEntryIndexMatchingId(W,B);W!==-1&&this.splice("data.sectionItems",W,1)};
_.p.removeFromCollapsedSection=function(W,B){var z=B.findIndex(function(G){return!!_.k(G,o1r)});
z&&z!==-1&&B[z]&&_.k(B[z],o1r)&&(B=_.k(B[z],o1r).expandableItems)&&(W=this.getEntryIndexMatchingId(W,B),W!==-1&&this.splice("data.sectionItems."+z+".guideCollapsibleEntryRenderer.expandableItems",W,1))};
_.p.getEntryIndexMatchingId=function(W,B){var z=this;return B.findIndex(function(G){return z.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",G)===W})};
s$.prototype.activeEndpointChanged=s$.prototype.activeEndpointChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],s$.prototype,"actionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],s$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.Hf("#section-items"),_.y("design:type",HTMLDivElement)],s$.prototype,"sectionItems",void 0);
_.Q([_.Hf("#header-entry"),_.y("design:type",Object)],s$.prototype,"headerEntry",void 0);_.Q([_.F(),_.y("design:type",Object)],s$.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],s$.prototype,"activeEndpoint",void 0);_.Q([_.F(),_.y("design:type",Object)],s$.prototype,"youtab",void 0);_.Q([_.oN("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],s$.prototype,"activeEndpointChanged",null);
_.Q([_.u({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],s$);
_.D(s$,"ytd-guide-collapsible-section-entry-renderer",function(){if(Sei===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);Sei=W}W=Sei;return W},{mode:1});var j4n;var fTO;var Px=function(){var W=_.S.apply(this,arguments)||this;W.modernTypography=_.r("web_modern_typography");W.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 W};
_.C(Px,_.S);_.p=Px.prototype;
_.p.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}}}}};
_.p.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var W=_.wV(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);W&&W.length===1&&W[0]&&_.wV(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.p.handleResetChannelUnreadCountCommand=function(W){var B;(W=(B=_.k(W,cPq))==null?void 0:B.channelId)&&this.data&&this.data.items&&(B=this.getPathToEntryMatchingId(W))&&(this.set(B+".guideEntryRenderer.count",0),this.set(B+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.p.handleResetSubscriptionsUnreadDotCommand=function(W){var B,z=(B=_.k(W,wNY))==null?void 0:B.targetId,G;z&&(G=this.data)!=null&&G.items&&(W=this.data.items.findIndex(function(Y){var d;return((d=Y.guideEntryRenderer)==null?void 0:d.targetId)===z}),W<0||this.set("data.items."+W+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.p.getPathToEntryMatchingId=function(W){if(this.data&&this.data.items){var B=this.getEntryIndexMatchingId(W,this.data.items);if(B>-1)return"data.items."+B;for(var z=0;z<this.data.items.length;z++)if(B=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[z]))if(B=this.getEntryIndexMatchingId(W,B),B>-1)return"data.items."+z+".guideCollapsibleEntryRenderer.expandableItems."+B}};
_.p.handleAddToGuideSectionAction=function(W){var B=this;if(_.k(W,E1r)){var z=_.k(W,E1r).items;W=_.k(W,E1r).handlerData;var G,Y;if(z&&W&&((G=this.data)==null?void 0:(Y=G.handlerDatas)==null?void 0:Y.indexOf(W))>-1){z=z.filter(function(E){return(E=B.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",E))&&!B.isGuideItemPresent(E)});
var d;if(W==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((d=this.data)==null?0:d.items)&&(G=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),G>-1)){this.splice.apply(this,["data.items",G+1,0].concat(_.u7(z)));return}this.unshift.apply(this,["data.items"].concat(_.u7(z)))}}};
_.p.isGuideItemPresent=function(W){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(W,this.data.items)!==-1)return!0;var B=this.data.items.find(function(z){return!!z.guideCollapsibleEntryRenderer});
if((B==null?0:B.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(W,B.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.p.getEntryIndexMatchingId=function(W,B){var z=this;return B.findIndex(function(G){return z.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",G)===W})};
_.p.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(W,B){var z=this;return B.findIndex(function(G){return z.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",G)===W})};
_.p.handleRemoveFromGuideSectionAction=function(W){if(_.k(W,TNj)){var B=_.k(W,TNj).guideEntryId;W=_.k(W,TNj).handlerData;var z,G;B&&W&&((z=this.data)==null?void 0:(G=z.handlerDatas)==null?void 0:G.indexOf(W))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(B,this.data.items),this.removeFromCollapsedSection(B,this.data.items))}};
_.p.removeFromExpandedSection=function(W,B){W=this.getEntryIndexMatchingId(W,B);W!==-1&&this.splice("data.items",W,1)};
_.p.removeFromCollapsedSection=function(W,B){var z=B.findIndex(function(G){return!!G.guideCollapsibleEntryRenderer});
z!==-1&&(B=B[z].guideCollapsibleEntryRenderer.expandableItems)&&(W=this.getEntryIndexMatchingId(W,B),W!==-1&&this.splice("data.items."+z+".guideCollapsibleEntryRenderer.expandableItems",W,1))};
_.p.activeEndpointChanged=function(){for(var W=_.tH(this.hostElement).querySelector("#items").children,B=0,z=W.length;B<z;B++)W[B].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.p.guideOpenedChanged=function(){for(var W=_.tH(this.hostElement).querySelector("#items").children,B=0,z=W.length;B<z;B++)W[B].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Px.prototype.guideOpenedChanged=Px.prototype.guideOpenedChanged;Px.prototype.activeEndpointChanged=Px.prototype.activeEndpointChanged;Px.prototype.persistentGuideChanged=Px.prototype.persistentGuideChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Px.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.bh.YtLazyListBehavior),_.y("design:type",Object)],Px.prototype,"ytLazyListBehavior",void 0);_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Px.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Px.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Px.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Px.prototype,"modernTypography",void 0);_.Q([_.F(),_.y("design:type",String)],Px.prototype,"type",void 0);_.Q([_.F({value:20}),_.y("design:type",Number)],Px.prototype,"initialCount",void 0);_.Q([_.F({value:10}),_.y("design:type",Number)],Px.prototype,"targetFramerate",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],Px.prototype,"autoFill",void 0);_.Q([_.F({value:50}),_.y("design:type",Number)],Px.prototype,"renderDelay",void 0);
_.Q([_.oN("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Px.prototype,"persistentGuideChanged",null);_.Q([_.jJ("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Px.prototype,"activeEndpointChanged",null);_.Q([_.jJ("guideOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Px.prototype,"guideOpenedChanged",null);
_.Q([_.u({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Px);
_.D(Px,"ytd-guide-section-renderer",function(){if(fTO!==void 0)return fTO;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return fTO=W},{mode:_.PJ("kevlar_poly_si_batch_j073")?1:2});var OD9;var Zt=function(){return _.S.apply(this,arguments)||this};
_.C(Zt,_.S);_.G5.Object.defineProperties(Zt.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Zt.prototype,"rendererBehaviors",void 0);_.Q([_.F(),_.y("design:type",Object)],Zt.prototype,"data",void 0);_.Q([_.F(),_.H("data.signInButton.buttonRenderer.style"),_.y("design:type",Object),_.y("design:paramtypes",[])],Zt.prototype,"alignByText",null);_.Q([_.u({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Zt);
_.D(Zt,"ytd-guide-signin-promo-renderer",function(){if(OD9===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);OD9=W}W=OD9;return W},{mode:1});var r9=function(){var W=_.S.apply(this,arguments)||this;W.showFooter=!1;return W};
_.C(r9,_.S);r9.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}}}}};
r9.prototype.attached=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1){B=_.dO().resolve(_.Y8(_.Ja));if(!B)return z.jumpTo(0);B.setGuideData(W.hostElement);return z.yield(0,3)}W.ytLazyListBehavior.initialCount=2;return z.return()})};
r9.prototype.onMouseExit=function(){_.r("web_guide_hover_expansion")&&_.wV(this.hostElement,"yt-guide-mouseleaved",[])};
r9.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
r9.prototype.dataChanged=r9.prototype.dataChanged;r9.prototype.onMouseExit=r9.prototype.onMouseExit;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],r9.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],r9.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bh.YtLazyListBehavior),_.y("design:type",Object)],r9.prototype,"ytLazyListBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],r9.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],r9.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],r9.prototype,"showFooter",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],r9.prototype,"autoFill",void 0);_.Q([_.IN("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],r9.prototype,"onMouseExit",null);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],r9.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-guide-renderer",disableElementRegistration:!0})],r9);
_.D(r9,"ytd-guide-renderer",function(){if(j4n!==void 0)return j4n;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return j4n=W},{mode:_.PJ("kevlar_poly_si_batch_j073")?1:2});var XZ9;var kV=function(){var W=_.S.apply(this,arguments)||this;W.systemIcons=_.r("kevlar_system_icons");W.frostedGlass=_.r("web_frosted_glass");W.getEndpointForm=function(){return $EO(W.data)};
return W};
_.C(kV,_.S);_.p=kV.prototype;_.p.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.p.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.zR(this.data.formattedTitle))};
_.p.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.p.onDown=function(){this.interaction.triggerDown()};
_.p.onUp=function(){this.interaction.triggerUp()};
_.p.onTap=function(W){if(this.data.serviceEndpoint){var B;_.r("shorts_controller_retrieve_seedless_sequence_v2")&&((B=_.k(this.data.serviceEndpoint,_.SW))==null?void 0:B.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):NS1(this.data.serviceEndpoint,this);W.preventDefault()}else{var z;((z=this.data)==null?0:z.navigationEndpoint)&&!_.p2(_.AH(W),this.hostElement,["A".toString()])&&_.v0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.p.computeActive=function(W,B){if(!W)return!1;var z=W.navigationEndpoint;W=W.serviceEndpoint;if(!z&&!W||!B)return!1;if(z){W=_.k(z,_.oE);var G=_.k(B,_.oE);if(W&&G)return W.browseId===G.browseId&&W.params===G.params;var Y;z=(Y=_.k(z.commandMetadata,_.Z4))==null?void 0:Y.url;var d;B=(d=_.k(B.commandMetadata,_.Z4))==null?void 0:d.url;return!(!z||!B||z!==B&&z!==_.gO(B))}return this.isActiveShortsTab(W,B)};
_.p.isActiveShortsTab=function(W,B){B=!!_.k(B,_.SW)||!!_.k(B,_.Aw);return(!!_.k(W,_.SW)||!!_.k(W,_.Aw))&&B};
_.p.computeTitle=function(W,B){return B?"":_.zR(W)};
_.G5.Object.defineProperties(kV.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
kV.prototype.onTap=kV.prototype.onTap;kV.prototype.onUp=kV.prototype.onUp;kV.prototype.onDown=kV.prototype.onDown;kV.prototype.onActiveStateChange=kV.prototype.onActiveStateChange;kV.prototype.dataChanged=kV.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],kV.prototype,"ytComponentBehavior",void 0);
_.Q([_.h(_.R9),_.y("design:type",Object)],kV.prototype,"ironButtonState",void 0);_.Q([_.F(),_.y("design:type",Object)],kV.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],kV.prototype,"activeEndpoint",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],kV.prototype,"noLabels",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.y("design:type",Boolean)],kV.prototype,"isActive",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],kV.prototype,"systemIcons",void 0);_.Q([_.Hf("yt-interaction"),_.y("design:type",Object)],kV.prototype,"interaction",void 0);_.Q([_.H("isActive"),_.y("design:type",Object),_.y("design:paramtypes",[])],kV.prototype,"ariaSelected",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],kV.prototype,"frostedGlass",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kV.prototype,"dataChanged",null);_.Q([_.oN("isActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kV.prototype,"onActiveStateChange",null);_.Q([_.IN("down"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kV.prototype,"onDown",null);
_.Q([_.IN("up"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kV.prototype,"onUp",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],kV.prototype,"onTap",null);_.Q([_.u({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],kV);
_.D(kV,"ytd-mini-guide-entry-renderer",function(){if(XZ9!==void 0)return XZ9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return XZ9=W},{mode:_.PJ("kevlar_poly_si_batch_j063")?1:2});var KAf;var lb=function(){var W=_.S.apply(this,arguments)||this;W.allVideosCount=0;W.noLabels=_.r("kevlar_mini_guide_no_labels");W.frostedGlass=_.r("web_frosted_glass");return W};
_.C(lb,_.S);_.p=lb.prototype;_.p.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.p.onMouseEnter=function(){_.r("web_guide_hover_expansion")&&_.wV(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.p.visibleChanged=function(){if(this.visible&&!this.data){var W=_.dO().resolve(_.Y8(_.Ja));W&&W.setGuideData(this.hostElement)}};
_.p.dataChanged=function(){var W=[],B;if((B=this.data)!=null&&B.items){B=_.A(this.data.items);for(var z=B.next();!z.done;z=B.next()){z=z.value;var G=void 0;if((G=z.guideSectionRenderer)==null?0:G.items)for(G=void 0,z=_.A((G=z.guideSectionRenderer)==null?void 0:G.items),G=z.next();!G.done;G=z.next())if(G=G.value,G.guideEntryRenderer)G=G.guideEntryRenderer,G.isPrimary&&W.push({guideEntryRenderer:G});else if(G.guideCollapsibleSectionEntryRenderer){var Y=void 0;((Y=_.k(G.guideCollapsibleSectionEntryRenderer.headerEntry,
Nc))==null?0:Y.isPrimary)&&W.push({guideEntryRenderer:_.k(G.guideCollapsibleSectionEntryRenderer.headerEntry,Nc)});if(G=G.guideCollapsibleSectionEntryRenderer.sectionItems)for(G=_.A(G),Y=G.next();!Y.done;Y=G.next()){var d=Y.value;Y=_.k(d,hvi);var E=void 0;((E=_.k(d,Nc))==null?0:E.isPrimary)?W.push({guideEntryRenderer:_.k(d,Nc)}):Y&&(d=void 0,_.k((d=Y)==null?void 0:d.entryRenderer,Nc)&&(Y.alwaysShow||this.allVideosCount)&&W.push({guideEntryRenderer:_.k(Y.entryRenderer,Nc)}))}}}}this.miniGuideItems=
W};
_.p.activeEndpointChanged=function(){for(var W=this.items.children,B=0;B<W.length;B++)W[B].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.p.registerWithViewTransitionManager=function(){var W=this;_.CG(_.fg,function(){var B=_.dO().resolve(_.Y8(_.LD));if(B&&B.isAnyTransitionEnabled){var z={};B.viewTransitionCoordinator.registerElement(W.hostElement,(z.slide="mini-guide-page-transition",z))}})};
lb.prototype.activeEndpointChanged=lb.prototype.activeEndpointChanged;lb.prototype.dataChanged=lb.prototype.dataChanged;lb.prototype.visibleChanged=lb.prototype.visibleChanged;lb.prototype.onMouseEnter=lb.prototype.onMouseEnter;_.Q([_.h(_.TB),_.y("design:type",Object)],lb.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],lb.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],lb.prototype,"ytComponentBehavior",void 0);_.Q([_.Hf("#items"),_.y("design:type",Object)],lb.prototype,"items",void 0);_.Q([_.F(),_.y("design:type",Object)],lb.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],lb.prototype,"visible",void 0);_.Q([_.F(),_.y("design:type",Object)],lb.prototype,"miniGuideItems",void 0);_.Q([_.F({selector:_.J5T}),_.y("design:type",Object)],lb.prototype,"allVideosCount",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],lb.prototype,"noLabels",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],lb.prototype,"frostedGlass",void 0);
_.Q([_.IN("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lb.prototype,"onMouseEnter",null);_.Q([_.jJ("visible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lb.prototype,"visibleChanged",null);_.Q([_.jJ("data","allVideosCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lb.prototype,"dataChanged",null);
_.Q([_.jJ("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lb.prototype,"activeEndpointChanged",null);_.Q([_.u({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],lb);
_.D(lb,"ytd-mini-guide-renderer",function(){if(KAf===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);KAf=W}W=KAf;return W},{mode:1});var uXq;var enK=/^[\x00-\x7F]+$/,Ce=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(Ce,_.S);_.G5.Object.defineProperties(Ce.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var W,B=_.zR((W=this.data)==null?void 0:W.handle);if(B)return _.Bg("@"+B)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var W=_.zR(this.displayHandle),B,z=_.zR((B=this.data)==null?void 0:B.handleUrl);if(W&&z)return _.Bg(z+W)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var W=_.zR(this.displayHandle);if(W&&!enK.test(W)){var B;return(B=this.data)==null?void 0:B.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var W=_.zR(this.displayHandleUrl),B,z=_.zR((B=this.data)==null?void 0:B.urlInfoText);if(W&&z)return _.Bg(z+" "+W)}}});
_.Q([_.F(),_.y("design:type",Object)],Ce.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ce.prototype,"displayHandle",null);_.Q([_.H("displayHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ce.prototype,"displayHandleUrl",null);_.Q([_.H("displayHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ce.prototype,"warningText",null);
_.Q([_.H("displayHandleUrl"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ce.prototype,"urlInfoTextWithUrl",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ce.prototype,"darkerDarkTheme",void 0);_.Q([_.u({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Ce);
_.D(Ce,"ytd-handles-claiming-confirm-dialog-content",function(){if(uXq!==void 0)return uXq;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return uXq=W},{mode:1});var moj;var IS=function(){var W=_.S.apply(this,arguments)||this;W.okButtonOverride={style:"mono",type:"outline",size:"M"};return W};
_.C(IS,_.S);IS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
IS.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],IS.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],IS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],IS.prototype,"okButtonOverride",void 0);_.Q([_.F(),_.y("design:type",Object)],IS.prototype,"data",void 0);_.Q([_.u({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],IS);
_.D(IS,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(moj!==void 0)return moj;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return moj=W},{mode:1});var xo0;var DoY=/^[\x00-\x7F]+$/,oS=function(){var W=_.S.apply(this,arguments)||this;W.isLoading=!1;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(oS,_.S);oS.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var W;this.selectedHandle=(W=this.handleInput)==null?void 0:W.value;this.onSelectedHandleChanged(this.selectedHandle);_.wV(this.hostElement,"yt-refit-popups-action")}};
_.G5.Object.defineProperties(oS.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Bg("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Bg(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!DoY.test(this.selectedHandle)){var W;return(W=this.data)==null?void 0:W.warningText}}}});
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],oS.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],oS.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],oS.prototype,"selectedHandle",void 0);_.Q([_.F(),_.y("design:type",Object)],oS.prototype,"isLoading",void 0);_.Q([_.F(),_.y("design:type",Function)],oS.prototype,"onSelectedHandleChanged",void 0);_.Q([_.Hf("#channel-handle-input"),_.y("design:type",Object)],oS.prototype,"handleInput",void 0);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],oS.prototype,"handleUrlPrefix",null);_.Q([_.H("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],oS.prototype,"displayHandle",null);_.Q([_.H("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],oS.prototype,"displayHandleUrl",null);_.Q([_.H("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],oS.prototype,"warningText",null);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],oS.prototype,"darkerDarkTheme",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.Q([_.u({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],oS);
_.D(oS,"ytd-handles-claiming-edit-dialog-content",function(){if(xo0!==void 0)return xo0;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return xo0=W},{mode:1});var Q4i;var hR=function(){var W=_.S.apply(this,arguments)||this;W.actionButtonOverride={style:"mono",type:"filled",size:"M"};W.cancelButtonOverride={style:"mono",type:"text",size:"M"};W.selectButtonDisabled=!1;W.isLoading=!1;W.hasSelectedHandleEventListener=!1;W.selectedHandleChanged=function(B){W.selectedHandle=B};
return W};
_.C(hR,_.S);_.p=hR.prototype;_.p.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.p.onDataChanged=function(){var W,B;this.selectedHandle=(B=_.k((W=this.data)==null?void 0:W.inputField,Ys1))==null?void 0:B.handle};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onCancel=function(){this.selectedHandle="";_.c0(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.onSelectHandle=function(){var W=this;if(this.selectedHandle!==void 0){var B;((B=this.data)==null?void 0:B.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(z,G){if(G.newHandleUpdateStatus!==void 0&&G.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&G.newHandleUpdateStatus.errorMessage)_.Wk(W.hostElement,_.zR(G.newHandleUpdateStatus.errorMessage)),
W.isLoading=!1;else{var Y;if((Y=W.data)==null?0:Y.onChannelUpdateSuccess){z=W.data.onChannelUpdateSuccess;var d,E;if(G=(d=_.k(z,_.Nm))==null?void 0:(E=d.popup)==null?void 0:E.handlesClaimingConfirmDialogRenderer)G.handle=_.Bg(W.selectedHandle);W.ytComponentBehavior.resolveCommand(z);_.c0(W.hostElement,"yt-close-popup-action",[W.is])}else W.isLoading=!1}},
onServerError:function(){var z;W.content&&((z=W.content)==null?0:z.handleInput)&&W.content.handleInput.validate();W.isLoading=!1;_.Wk(W.hostElement,_.kq("TRY_AGAIN_LATER"))}}}))}};
_.p.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
hR.prototype.onDataChanged=hR.prototype.onDataChanged;hR.prototype.onSelectedHandleChanged=hR.prototype.onSelectedHandleChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],hR.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],hR.prototype,"actionButtonOverride",void 0);_.Q([_.F(),_.y("design:type",Object)],hR.prototype,"cancelButtonOverride",void 0);_.Q([_.F(),_.y("design:type",Object)],hR.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",String)],hR.prototype,"selectedHandle",void 0);_.Q([_.F(),_.y("design:type",Object)],hR.prototype,"selectButtonDisabled",void 0);_.Q([_.F(),_.y("design:type",Object)],hR.prototype,"isLoading",void 0);_.Q([_.F(),_.y("design:type",Object)],hR.prototype,"hasSelectedHandleEventListener",void 0);_.Q([_.F(),_.y("design:type",Object)],hR.prototype,"handleInput",void 0);
_.Q([_.oN("selectedHandle"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hR.prototype,"onSelectedHandleChanged",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hR.prototype,"onDataChanged",null);_.Q([_.Hf("ytd-handles-claiming-edit-dialog-content"),_.y("design:type",Object)],hR.prototype,"content",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.u({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],hR);
_.D(hR,"ytd-handles-claiming-edit-dialog-renderer",function(){if(Q4i!==void 0)return Q4i;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Q4i=W},{mode:1});var yni;var Hx=function(){return _.S.apply(this,arguments)||this};
_.C(Hx,_.S);_.G5.Object.defineProperties(Hx.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.handle){var B;return _.Bg("@"+_.zR((B=this.data)==null?void 0:B.handle))}}}});
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Hx.prototype,"formattedHandle",null);_.Q([_.F(),_.y("design:type",Object)],Hx.prototype,"data",void 0);_.Q([_.u({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Hx);
_.D(Hx,"ytd-handles-claiming-radio-option-renderer",function(){if(yni!==void 0)return yni;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return yni=W},{mode:1});var qef;var n4O=/^[\x00-\x7F]+$/,FK=function(){var W=_.S.apply(this,arguments)||this;W.initialRadioIndex="-1";W.isLoading=!1;W.darkerDarkTheme=_.r("web_darker_dark_theme");W.maybeSubmitFeedback=function(){W.feedbackSurveyRenderer.submitSurvey()};
return W};
_.C(FK,_.S);FK.prototype.updateSelectedHandleIndexFromBinding=function(W){this.selectedRadioIndex=+W.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(W)};
FK.prototype.selectedHandleChanged=function(W){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var B;this.selectedHandle=(B=this.handleInput)==null?void 0:B.value;this.onSelectedHandleChanged(W)}};
_.G5.Object.defineProperties(FK.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var W;return this.ytRendererBehavior.getSimpleString((W=this.data)==null?void 0:W.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Bg("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Bg(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!n4O.test(this.selectedHandle)){var W;return(W=this.data)==null?void 0:W.warningText}}}});
_.Q([_.F(),_.y("design:type",Object)],FK.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],FK.prototype,"initialRadioIndex",void 0);_.Q([_.F(),_.y("design:type",Number)],FK.prototype,"selectedRadioIndex",void 0);_.Q([_.F(),_.y("design:type",String)],FK.prototype,"selectedHandle",void 0);_.Q([_.F(),_.y("design:type",Object)],FK.prototype,"isLoading",void 0);_.Q([_.F(),_.y("design:type",Function)],FK.prototype,"onSelectedHandleChanged",void 0);
_.Q([_.F(),_.y("design:type",Function)],FK.prototype,"onSelectedRadioIndexChanged",void 0);_.Q([_.Hf("#channel-handle-input"),_.y("design:type",Object)],FK.prototype,"handleInput",void 0);_.Q([_.Hf("ytd-feedback-survey-renderer"),_.y("design:type",Object)],FK.prototype,"feedbackSurveyRenderer",void 0);_.Q([_.H("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],FK.prototype,"radioButtonLength",null);
_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],FK.prototype,"handleUrlPrefix",null);_.Q([_.H("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],FK.prototype,"displayHandle",null);_.Q([_.H("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],FK.prototype,"displayHandleUrl",null);_.Q([_.H("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],FK.prototype,"warningText",null);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],FK.prototype,"darkerDarkTheme",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.Q([_.u({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],FK);
_.D(FK,"ytd-handles-claiming-select-dialog-content",function(){if(qef!==void 0)return qef;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return qef=W},{mode:1});var N$b;var S_=function(){var W=_.S.apply(this,arguments)||this;W.actionButtonOverride={style:"mono",type:"filled",size:"M"};W.cancelButtonOverride={style:"mono",type:"text",size:"M"};W.initialRadioIndex="-1";W.selectButtonDisabled=!1;W.isLoading=!1;W.selectedRadioIndexChanged=function(B){W.selectedRadioIndex=Number(B.detail.value)};
W.selectedHandleChanged=function(B){W.selectedHandle=B.detail.value};
W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(S_,_.S);_.p=S_.prototype;_.p.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.p.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.p.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.wV(this.hostElement,"yt-refit-popups-action")};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.c0(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.onSelectHandle=function(){var W=this;if(this.selectedHandle!==void 0){var B;((B=this.data)==null?void 0:B.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(z,G){if(G.newHandleUpdateStatus!==void 0&&G.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&G.newHandleUpdateStatus.errorMessage)_.Wk(W.hostElement,_.zR(G.newHandleUpdateStatus.errorMessage)),
W.isLoading=!1;else{var Y;if((Y=W.data)==null?0:Y.onChannelUpdateSuccess){z=W.data.onChannelUpdateSuccess;G=_.k(z,_.Nm);var d;if(G==null?0:(d=G.popup)==null?0:d.handlesClaimingConfirmDialogRenderer)G.popup.handlesClaimingConfirmDialogRenderer.handle=_.Bg(W.selectedHandle);W.ytComponentBehavior.resolveCommand(z);_.c0(W.hostElement,"yt-close-popup-action",[W.is])}else W.isLoading=!1}},
onServerError:function(){if(W.selectedRadioIndex===W.radioButtonLength){var z;W.content&&((z=W.content)==null?0:z.handleInput)&&W.content.handleInput.validate()}W.isLoading=!1;_.Wk(W.hostElement,_.kq("TRY_AGAIN_LATER"))}}}))}};
_.p.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var W,B;this.selectedHandle=(W=this.content)==null?void 0:(B=W.handleInput)==null?void 0:B.value}else this.selectedRadioIndex>=0&&((W=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(W==null?void 0:W.handle):this.selectedHandle=void 0)};
_.p.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.p.getRadioItem=function(W){if(this.radioButtonLength>W&&W>=0)return _.k(this.data.radioButton[W],Zj6)};
_.G5.Object.defineProperties(S_.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.radioButton)||[]).length}}});
S_.prototype.onSelectedHandleChanged=S_.prototype.onSelectedHandleChanged;S_.prototype.onSelectedHandleIndexChanged=S_.prototype.onSelectedHandleIndexChanged;S_.prototype.onDataChanged=S_.prototype.onDataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],S_.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],S_.prototype,"actionButtonOverride",void 0);_.Q([_.F(),_.y("design:type",Object)],S_.prototype,"cancelButtonOverride",void 0);
_.Q([_.F(),_.y("design:type",Object)],S_.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],S_.prototype,"initialRadioIndex",void 0);_.Q([_.F(),_.y("design:type",Number)],S_.prototype,"selectedRadioIndex",void 0);_.Q([_.F(),_.y("design:type",String)],S_.prototype,"selectedHandle",void 0);_.Q([_.F(),_.y("design:type",Object)],S_.prototype,"selectButtonDisabled",void 0);_.Q([_.F(),_.y("design:type",Object)],S_.prototype,"isLoading",void 0);
_.Q([_.H("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],S_.prototype,"radioButtonLength",null);_.Q([_.Hf("ytd-handles-claiming-select-dialog-content"),_.y("design:type",Object)],S_.prototype,"content",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],S_.prototype,"onDataChanged",null);
_.Q([_.oN("selectedRadioIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],S_.prototype,"onSelectedHandleIndexChanged",null);_.Q([_.oN("selectedHandle"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],S_.prototype,"onSelectedHandleChanged",null);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],S_.prototype,"darkerDarkTheme",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],S_.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.u({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],S_);
_.D(S_,"ytd-handles-claiming-select-dialog-renderer",function(){if(N$b!==void 0)return N$b;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return N$b=W},{mode:1});var $oO;var LAn;var bb=function(){return _.S.apply(this,arguments)||this};
_.C(bb,_.S);bb.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],bb.prototype,"data",void 0);_.Q([_.u({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],bb);
_.D(bb,"ytd-hotkey-dialog-section-option-renderer",function(){if(LAn!==void 0)return LAn;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return LAn=W},{mode:1});var Uof;var j_=function(){return _.S.apply(this,arguments)||this};
_.C(j_,_.S);j_.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],j_.prototype,"data",void 0);_.Q([_.u({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],j_);
_.D(j_,"ytd-hotkey-dialog-section-renderer",function(){if(Uof!==void 0)return Uof;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Uof=W},{mode:1});var fe=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(fe,_.S);fe.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],fe.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],fe.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],fe.prototype,"darkerDarkTheme",void 0);_.Q([_.u({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],fe);
_.D(fe,"ytd-hotkey-dialog-content",function(){if($oO!==void 0)return $oO;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $oO=W},{mode:1});var Mq1;var O$=function(){return _.S.apply(this,arguments)||this};
_.C(O$,_.S);O$.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var W=document.querySelector("ytd-hotkey-dialog-content #scrollable");W&&(W.dialogElement=this.hostElement.parentElement)};
O$.prototype.onCloseTap=function(){_.c0(this.hostElement,"yt-close-popup-action")};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],O$.prototype,"data",void 0);_.Q([_.u({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],O$);
_.D(O$,"ytd-hotkey-dialog-renderer",function(){if(Mq1!==void 0)return Mq1;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Mq1=W},{mode:1});var aTY;var XK=function(){return _.S.apply(this,arguments)||this};
_.C(XK,_.S);XK.prototype.onYtServiceRequestError=function(){if(this.blocked){var W;var B=(W=this.data)==null?void 0:W.defaultServiceEndpoint}else{var z;B=(z=this.data)==null?void 0:z.toggledServiceEndpoint}var G;(B=(G=_.k(B,_.RQR))==null?void 0:G.onFailureAction)&&this.ytComponentBehavior.resolveCommand(B);this.updateBlockState(!this.blocked)};
XK.prototype.onYtToggleButton=function(W){this.updateBlockState(W.detail.toggled)};
XK.prototype.updateBlockState=function(W){if(W!==this.blocked){var B=this.blockedEntityKey;B&&this.ytdReduxBehavior.dispatch(_.bj("blockStateEntity",B,{key:B,blocked:W}));this.set("data.isToggled",W)}};
_.G5.Object.defineProperties(XK.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)}}});
XK.prototype.onYtToggleButton=XK.prototype.onYtToggleButton;XK.prototype.onYtServiceRequestError=XK.prototype.onYtServiceRequestError;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],XK.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],XK.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],XK.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],XK.prototype,"blockedEntityKey",void 0);
_.Q([_.F({selectorArgs:["blockedEntityKey"],selector:function(W,B){return _.P3(W.entities,"blockStateEntity",B)}}),
_.y("design:type",Object)],XK.prototype,"blockStateEntity",void 0);_.Q([_.H("data","blockStateEntity"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],XK.prototype,"blocked",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],XK.prototype,"onYtServiceRequestError",null);
_.Q([_.IN("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],XK.prototype,"onYtToggleButton",null);_.Q([_.u({is:"ytd-block-button",disableElementRegistration:!0})],XK);
_.D(XK,"ytd-block-button",function(){if(aTY!==void 0)return aTY;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return aTY=W},
{mode:1});var RnK;var WUn;var Ke=function(){return _.S.apply(this,arguments)||this};
_.C(Ke,_.S);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Ke.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ke.prototype,"data",void 0);_.Q([_.u({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Ke);
_.D(Ke,"ytd-kids-blocklist-picker-item-renderer",function(){if(WUn!==void 0)return WUn;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return WUn=W},{mode:1});var ub=function(){return _.S.apply(this,arguments)||this};
_.C(ub,_.S);ub.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],ub.prototype,"data",void 0);_.Q([_.u({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],ub);
_.D(ub,"ytd-kids-blocklist-picker-content",function(){if(RnK!==void 0)return RnK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return RnK=
W},{mode:_.PJ("kevlar_poly_si_batch_j025")?1:2});var BXO;var e_=function(){var W=_.S.apply(this,arguments)||this;W.hasAnyRequestSucceeded=!1;W.hasAnyRequestFailed=!1;W.numPendingRequests=0;return W};
_.C(e_,_.S);_.p=e_.prototype;_.p.attached=function(){this.hostElement.setAttribute("dialog","")};
_.p.onDoneButtonTap=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.p.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.p.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.p.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.p.onPopupClosed=function(W){var B,z;if(((B=W.detail)==null?void 0:(z=B.popup)==null?void 0:z.is)==="tp-yt-paper-dialog"){var G;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((G=this.data)==null?0:G.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.ps(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
e_.prototype.onPopupClosed=e_.prototype.onPopupClosed;e_.prototype.onYtServiceRequestError=e_.prototype.onYtServiceRequestError;e_.prototype.onYtServiceRequestCompleted=e_.prototype.onYtServiceRequestCompleted;e_.prototype.onYtServiceRequestSent=e_.prototype.onYtServiceRequestSent;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],e_.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],e_.prototype,"data",void 0);_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],e_.prototype,"onYtServiceRequestSent",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],e_.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],e_.prototype,"onYtServiceRequestError",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],e_.prototype,"onPopupClosed",null);_.Q([_.u({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],e_);
_.D(e_,"ytd-kids-blocklist-picker-renderer",function(){if(BXO!==void 0)return BXO;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return BXO=W},{mode:1});var zEq;var Gnb;var mX=function(){return _.S.apply(this,arguments)||this};
_.C(mX,_.S);mX.prototype.setTip=function(W){var B=this;this.data&&(this.tip=NJK(qnK.getInstance(),W,this.data),_.BM(this,function(){_.v0(B.hostElement,"yt-refit")}))};
mX.prototype.clearTip=function(){this.tip=void 0};
mX.prototype.computeHidden=function(W){return!W};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],mX.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.y("design:type",Boolean)],mX.prototype,"hidden",void 0);_.Q([_.F(),_.y("design:type",Object)],mX.prototype,"tip",void 0);_.Q([_.u({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],mX);
_.D(mX,"ytd-menu-popup-tip-renderer",function(){if(Gnb!==void 0)return Gnb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return Gnb=W},{mode:1});var YfK;var xV=function(){var W=_.S.apply(this,arguments)||this;W.useIcons=!1;W.systemIcons=_.r("kevlar_system_icons");W.useListItemStyles=_.r("web_list_item_style_for_menu_items");return W};
_.C(xV,_.S);_.p=xV.prototype;_.p.onFocus=function(){var W;(W=_.tH(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.p.onTap=function(){var W=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(W&&_.k(W,_.tr))this.componentBehavior.resolveCommand(W),this.updateToggledStateInEntity();else if(W){this.componentBehavior.resolveCommand(W)||_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}});var B;((B=_.k(W,_.P0))==null?void 0:B.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.p.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.p.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.p.updateToggledStateInEntity=function(){var W=this.data.toggleMenuServiceItemEntityKey,B=!this.data.isToggled;W&&this.ytdReduxBehavior.dispatch(_.bj("toggleMenuServiceItemEntity",W,{key:W,isToggled:B}))};
_.p.computeIcon=function(W,B,z){return(W=W?z:B)&&W.iconType?_.lg(W.iconType):""};
_.p.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.p.isIconActive=function(W){return!_.r("toggle_menu_active_icon_killswitch")&&W};
_.G5.Object.defineProperties(xV.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return((W=this.data)==null?0:W.isToggled)?(B=this.data)==null?void 0:B.toggledText:(z=this.data)==null?void 0:z.defaultText}}});
xV.prototype.toggledStateEntityChanged=xV.prototype.toggledStateEntityChanged;xV.prototype.onYtServiceRequestCompleted=xV.prototype.onYtServiceRequestCompleted;xV.prototype.onTap=xV.prototype.onTap;xV.prototype.onFocus=xV.prototype.onFocus;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],xV.prototype,"componentBehavior",void 0);
_.Q([_.h(_.TB),_.y("design:type",Object)],xV.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],xV.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],xV.prototype,"useIcons",void 0);_.Q([_.F({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.y("design:type",String)],xV.prototype,"icon",void 0);
_.Q([_.F({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(W,B){return _.P3(W.entities,"toggleMenuServiceItemEntity",B)}}),
_.y("design:type",Object)],xV.prototype,"toggleMenuServiceItemEntity",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],xV.prototype,"systemIcons",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],xV.prototype,"useListItemStyles",void 0);_.Q([_.IN("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xV.prototype,"onFocus",null);
_.Q([_.H("data.isToggled"),_.y("design:type",Object),_.y("design:paramtypes",[])],xV.prototype,"toggleButtonText",null);_.Q([_.IN("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xV.prototype,"onTap",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xV.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.oN("toggleMenuServiceItemEntity.isToggled","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xV.prototype,"toggledStateEntityChanged",null);_.Q([_.u({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],xV);
_.D(xV,"ytd-toggle-menu-service-item-renderer",function(){if(YfK!==void 0)return YfK;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return YfK=W},{mode:1});var dQn;var Dt=function(){return _.S.apply(this,arguments)||this};
_.C(Dt,_.S);Dt.prototype.onFocus=function(){var W;(W=_.tH(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.G5.Object.defineProperties(Dt.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.yN(this.data.iconUrl)}}});
Dt.prototype.onFocus=Dt.prototype.onFocus;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Dt.prototype,"rendererBehavior",void 0);_.Q([_.h(_.Qe.YtEndpointBehavior),_.y("design:type",Object)],Dt.prototype,"ytEndpointBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Dt.prototype,"data",void 0);_.Q([_.IN("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Dt.prototype,"onFocus",null);
_.Q([_.H("data.iconUrl"),_.y("design:type",Object),_.y("design:paramtypes",[])],Dt.prototype,"imageSource",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Dt);
_.D(Dt,"ytd-menu-custom-icon-item-renderer",function(){if(dQn!==void 0)return dQn;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dQn=W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});_.Vm(_.cU,"yt-list-item-view-model",{props:{data:_.kz,isMenuItem:_.kz,isCompact:_.kz,onTap:_.wS,trailingAccessory:_.wS,hideSelectionTextChevron:_.kz,disabled:_.kz,inPopup:_.kz,disableHorizontalPadding:_.kz,isOverlay:_.kz,isToggled:_.kz,ariaLabel:_.kz,ariaPressed:_.kz}});var QE=function(){var W=_.S.apply(this,arguments)||this;W.disableBackdropFilter=_.r("web_disable_backdrop_filter");return W};
_.C(QE,_.S);_.p=QE.prototype;
_.p.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"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.p.computeAriaLabel=function(W){return W};
_.p.onPopupOpened=function(){this.items.selected=0;for(var W=_.A(_.tH(this.items).children),B=W.next();!B.done;B=W.next())B.value.popupPositionTarget=this.positionTarget;if(W=this.popupTip||void 0)W.setTip(this.source||""),this.source=void 0;this.veData&&(W=_.m1())&&_.Mj(W,[this.veData])};
_.p.onPopupClosed=function(){var W=this.popupTip||void 0;W&&W.clearTip()};
_.p.onIronActivate=function(W){this.shouldPersist(W)||_.c0(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(W=_.m1())&&_.RP(W,this.veData)};
_.p.shouldPersist=function(W){var B,z;if(((B=W.detail)==null?void 0:B.selected)===void 0||(z=this.data)==null||!z.items)return!1;var G,Y;return!((Y=(G=this.data.items[W.detail.selected])==null?void 0:G.toggleMenuServiceItemRenderer)==null||!Y.persistentOnMenuPopup)};
_.p.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(W){return W.menuNavigationItemRenderer?!!W.menuNavigationItemRenderer.icon:W.menuServiceItemRenderer?!!W.menuServiceItemRenderer.icon:W.menuConditionalServiceItemRenderer?!!W.menuConditionalServiceItemRenderer.icon:W.menuConditionalNavigationItemRenderer?!!W.menuConditionalNavigationItemRenderer.icon:W.toggleMenuServiceItemRenderer?!!W.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
QE.prototype.onPopupClosed=QE.prototype.onPopupClosed;QE.prototype.onPopupOpened=QE.prototype.onPopupOpened;_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],QE.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],QE.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],QE.prototype,"veData",void 0);_.Q([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.y("design:type",String)],QE.prototype,"ariaLabel",void 0);_.Q([_.F({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],QE.prototype,"useIcons",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],QE.prototype,"disableBackdropFilter",void 0);_.Q([_.Hf("#items"),_.y("design:type",Object)],QE.prototype,"items",void 0);_.Q([_.Hf("ytd-menu-popup-tip-renderer"),_.y("design:type",Object)],QE.prototype,"popupTip",void 0);_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],QE.prototype,"onPopupOpened",null);
_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],QE.prototype,"onPopupClosed",null);_.Q([_.u({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],QE);
_.D(QE,"ytd-menu-popup-renderer",function(){if(zEq!==void 0)return zEq;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return zEq=W},{mode:1});var pB9;var AA0=_.m(function(W){W=_.EV(W,{icon:void 0});var B=W.data;W=W.icon;var z=function(){return B().iconBadgeText},G={},Y=_.kG("yt-spec-icon-badge-shape",function(){a:switch(B().iconBadgeType){case "notification":var d="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":d="yt-spec-icon-badge-shape--type-cart";break a;default:d=""}return d},function(){a:switch(B().iconBadgeStyle){case "overlay":var d="yt-spec-icon-badge-shape--style-overlay";
break a;default:d=""}return d},(G["yt-spec-icon-badge-shape--text-size-small"]=function(){var d=z();
return!!((d==null?0:d.length)&&d.length>2)},G));
return _.w("yt-icon-badge-shape",null,_.w(_.V,{cond:W,then:function(d){return _.w("div",{class:Y},_.w("div",{class:"yt-spec-icon-badge-shape__icon"},_.w(_.hY,{icon:d})),_.w(_.V,{cond:z,then:function(E){return _.w("div",{class:"yt-spec-icon-badge-shape__badge"},E)}}))}}))},"xh");
AA0.idomCompat=!0;_.Vm(AA0,"yt-icon-badge-shape",{props:{data:_.kz,icon:_.kz}});var yE=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};W.unseenCount=0;W.isOverlay=!1;return W};
_.C(yE,_.S);_.p=yE.prototype;_.p.attached=function(){var W=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(B){W.onServiceWorkerMessage(B)})};
_.p.onDataChanged=function(){this.isAttached&&!this.JSC$20483_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20483_lastData=this.data};
_.p.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.p.computeIcon=function(){var W,B;return(W=this.data)==null?void 0:(B=W.icon)==null?void 0:B.iconType};
_.p.onServiceWorkerMessage=function(W){W.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.p.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.k(this.data.updateUnseenCountEndpoint,_.P0)&&_.k(this.data.updateUnseenCountEndpoint,_.P0).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.p.handleUpdateNotificationsUnseenCountAction=function(W){var B=this;W=_.k(W,v10);W!=null&&W.unseenCount&&W.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(W.unseenCount),_.fg.addLowPriorityJob(function(){B.data.updateUnseenCountEndpoint&&B.ytComponentBehavior.resolveCommand(B.data.updateUnseenCountEndpoint)},W.timeoutMs))};
_.p.onClick=function(){_.v0(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var W=_.wV(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),B=this.data.menuRequest;W&&W.length===1&&W[0]?_.c0(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):B&&this.ytComponentBehavior.resolveCommand(B)};
_.p.handleTopbarMenuClosedAction=function(W){W==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.p.toggleIconState=function(W){this.iconButton&&(this.iconButton.pressed=W)};
_.p.sendUnseenCountRequest=function(W){var B=this;_.CG(_.fg,function(){B.ytComponentBehavior.resolveCommand(W)})};
_.p.updateCountUI=function(W){this.set("unseenCount",W<9?W:"9+")};
_.G5.Object.defineProperties(yE.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
yE.prototype.handleUpdateNotificationsUnseenCountAction=yE.prototype.handleUpdateNotificationsUnseenCountAction;yE.prototype.onDataChanged=yE.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],yE.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.oY),_.y("design:type",Object)],yE.prototype,"ytdOpenPopupBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],yE.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],yE.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],yE.prototype,"unseenCount",void 0);_.Q([_.F(),_.y("design:type",Object)],yE.prototype,"isOverlay",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],yE.prototype,"showTooltips",void 0);_.Q([_.Hf("yt-icon-button"),_.y("design:type",Object)],yE.prototype,"iconButton",void 0);
_.Q([_.H("unseenCount"),_.y("design:type",Object),_.y("design:paramtypes",[])],yE.prototype,"showNotificationCount",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yE.prototype,"onDataChanged",null);_.Q([_.IN("yt-update-notifications-unseen-count-action"),_.y("design:type",Function),_.y("design:paramtypes",[Object]),_.y("design:returntype")],yE.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.Q([_.u({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],yE);
_.D(yE,"ytd-notification-topbar-button-renderer",function(){if(pB9!==void 0)return pB9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return pB9=W},{mode:_.PJ("kevlar_poly_si_batch_j025")?1:2});var iqO;var qx=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return W};
_.C(qx,_.S);qx.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}}}}}};
qx.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
qx.prototype.onDarkModeToggled=function(W){this.dark=W};
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],qx.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],qx.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],qx.prototype,"data",void 0);_.Q([_.F({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],qx.prototype,"dark",void 0);
_.Q([_.u({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],qx);
_.D(qx,"yt-pdg-buy-flow-header-renderer",function(){if(iqO!==void 0)return iqO;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return iqO=W},{mode:1});var Ejn;var TX1;var ne=function(){var W=_.S.apply(this,arguments)||this;W.immediateValue=0;W.isDarkTheme=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.C(ne,_.S);_.p=ne.prototype;_.p.created=function(){_.p6.requestAvailability()};
_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.dataChanged=function(){var W=_.tH(this.hostElement).querySelector("#color-slider");W.immediateValue&&this.updateSliderKnobAndGradientStyles(W.immediateValue);this.data.notches[0].knobColorArgb&&_.kw(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.aE(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.eD("HTML_DIR")==="rtl"&&_.tH(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.p.onSliderImmediateChange=function(){var W=_.tH(this.hostElement).querySelector("#color-slider");W.dragging&&(W.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(W.immediateValue),this.updateSliderKnobAndGradientStyles(W.immediateValue)),this.updateSliderAria())};
_.p.onSliderChange=function(){var W=_.tH(this.hostElement).querySelector("#color-slider");W.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(W.immediateValue),this.updateSliderKnobAndGradientStyles(W.immediateValue));this.updateSliderAria()};
_.p.updateSliderAria=function(){var W=_.tH(this.hostElement).querySelector("#color-slider"),B=_.tH(this.hostElement).querySelector("#color-slider");B=_.zR(this.data.notches[B.immediateValue].tierValue);_.TkX()&&_.v0(this.hostElement,"iron-announce",{text:B});W.setAttribute("aria-valuetext",B)};
_.p.updateSuperThanksSelectedTierEntity=function(W){if(W!==this.immediateValue){var B,z,G=this==null?void 0:(B=this.data)==null?void 0:(z=B.superThanksSelectedTierEntity)==null?void 0:z.key;G&&G.length>0&&this.ytdReduxBehavior.dispatch(_.bj("superThanksSelectedTierEntity",G,{key:G,index:W}))}};
_.p.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.p.updateSliderKnobAndGradientStyles=function(W){this.immediateValue=W;W=this.data.notches[W];if(W==null?0:W.knobColorArgb)var B={"--ytd-pdg-color-slider-knob-color":_.aE(W.knobColorArgb)};(W==null?0:W.linearGradientCssStyle)&&B!==null&&(B=Object.assign({},B,{"--ytd-pdg-color-slider-active-color":W==null?void 0:W.linearGradientCssStyle}));B!==null&&_.kw(this.hostElement,B)};
ne.prototype.onSliderChange=ne.prototype.onSliderChange;ne.prototype.onSliderImmediateChange=ne.prototype.onSliderImmediateChange;ne.prototype.dataChanged=ne.prototype.dataChanged;_.Q([_.F(),_.y("design:type",Object)],ne.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],ne.prototype,"immediateValue",void 0);_.Q([_.F(),_.y("design:type",Number)],ne.prototype,"maxMarkers",void 0);
_.Q([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:GRj}),_.y("design:type",Object)],ne.prototype,"superThanksSelectedTierEntity",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],ne.prototype,"isDarkTheme",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],ne.prototype,"ytdReduxBehavior",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ne.prototype,"dataChanged",null);
_.Q([_.IN("immediate-value-change"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ne.prototype,"onSliderImmediateChange",null);_.Q([_.IN("change"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ne.prototype,"onSliderChange",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],ne);
_.D(ne,"ytd-pdg-color-slider-renderer",function(){if(TX1!==void 0)return TX1;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return TX1=W},{mode:1});var vjb;var cAf;var Nx=null;
_.D8({is:"ytd-comment-input",_template:function(){if(cAf!==void 0)return cAf;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return cAf=W},
behaviors:[_.Odv.YtHostElementBehavior,_.DM,_.Ve.YtComponentBehavior,_.bu.YtRendererstamperBehavior,_.uoQ.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 _.gN}},
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",_.Co(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;_.jY();this.focus()},
detached:function(){document.removeEventListener("tap",_.Co(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(W){W=W.detail;W=W.isCustomEmoji?W.shortcuts[0]:W.emojiId;var B=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(B,W);this.maybeUpdateTextDirection_();_.v0(this.hostElement,"input")},
getInputRange_:function(){var W=_.tE();if(W){W=W.getBrowserRangeObject();for(var B=W.commonAncestorContainer;B;){if(B===this.getEditableTextArea_())return W;B=B.parentNode}}W=this.getEditableTextArea_();W=_.zk(W,W.childNodes.length);W.select();return W.getBrowserRangeObject()},
insertTextWithEmojis_:function(W,B,z){(B=this.emojiManager.createDocumentFragment(B,!0,!1,z===void 0?!0:z))&&B.childNodes.length!==0&&(W.collapsed||W.deleteContents(),z=B.lastChild,W.insertNode(B),_.AH4(z).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var W=_.tE();if(W){var B=W.JSC$11349_getStartNode(),z=W.JSC$11349_getEndNode();if(LTq(B)&&LTq(z)){var G=W.JSC$11349_getStartOffset(),Y;if(_.P8&&B.nodeType===Node.ELEMENT_NODE&&(Y=_.AKU(B)))_.zk(Y,0).select();else{Y=zM(B)?B:_.n3(B,zM);var d=zM(z)?z:_.n3(z,zM);if(Y||d)if(W.isCollapsed()){if(B.nodeType===Node.TEXT_NODE){W=!0;G===B.length&&(W=!1);if(Nx==="end"||Nx==="right")W=!1;B=B.parentNode;W=[].concat(_.u7(B.parentNode.childNodes)).indexOf(B)+(W?0:1);_.zk(B.parentNode,
W).select()}}else Y?Y.previousSibling&&Y.previousSibling.length>0?_.Gk(z,W.JSC$11349_getEndOffset(),Y.previousSibling,Y.previousSibling.length-1).select():(B=document.createTextNode("\u200b"),Y.parentNode.insertBefore(B,Y),_.Gk(z,W.JSC$11349_getEndOffset(),B,0).select()):d&&(d.nextSibling&&d.nextSibling.length>0?_.Gk(B,W.JSC$11349_getStartOffset(),d.nextSibling,1).select():(z=document.createTextNode("\u200b"),d.parentNode.insertBefore(z,d.nextSibling),_.Gk(B,W.JSC$11349_getStartOffset(),z,z.length).select()));
Nx=null}}else Nx=null}else Nx=null},
leftKeyPressed_:function(){Nx="left"},
rightKeyPressed_:function(){Nx="right"},
endKeyPressed_:function(){Nx="end"},
maybeDeleteChip_:function(){var W=Bur(!0);if(W){var B=_.tE(),z=B.JSC$11349_getStartNode();B=B.JSC$11349_getStartOffset();_.Mz(z,B,W,W.childNodes.length).select()}},
maybeBackspaceChip_:function(){var W=Bur(!1);if(W){var B=_.tE(),z=B.JSC$11349_getStartNode();B=B.JSC$11349_getStartOffset();_.Mz(z,B,W,0).select()}},
maybeBackspaceChipWordMode_:function(W){var B=_.tE();if(B.isCollapsed()){var z=B.JSC$11349_getStartNode();B=B.JSC$11349_getStartOffset();var G=z$0(z,B,!0);G&&(_.Mz(z,B,G,0).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(W){var B=_.tE();if(B.isCollapsed()){var z=B.JSC$11349_getStartNode();B=B.JSC$11349_getStartOffset();var G=z$0(z,B,!1);G&&(_.Mz(z,B,G,G.childNodes.length).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
onContentClick:function(W){W.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(W){W.defaultPrevented||W.currentTarget.tagName==="YTD-COMMENT-INPUT"&&zM(W.target)&&W.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.tH(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.tH(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(W,B){W=MX0(W,this.emojiManager,B).cloneNode(!0);for(B=W.firstChild;B;)if(B.nodeType!==1)B=B.nextSibling;else switch(B.tagName){case "BR":var z=_.DF();_.JKd(z,B);B=z.nextSibling;break;case "DIV":(z=B.lastChild)&&B.nextSibling&&_.nf(_.DF(),z);B.previousSibling&&(B.previousSibling.nodeType===1||B.previousSibling.nodeType===3&&!B.previousSibling.textContent.endsWith("\n"))&&_.qD(_.DF(),B);z&&z.nodeName==="BR"&&_.o0(z);z=B;B.hasChildNodes()?(B=B.firstChild,
_.gYQ(z)):(B=B.nextSibling,_.o0(z));break;default:B=B.nextSibling}return GN6(W)},
setTextAreaValue:function(W){W||(W="");var B=this.getEditableFormattedString_();B.text="";this.getEditableTextArea_().innerText="";typeof W==="string"&&(W={runs:[{text:W}]});B.text=W},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Nx=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var W=this.getEditableTextArea_();W&&(_.zk(W,W.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.eD("HTML_DIR")==="rtl"){var W=this.getEditableTextArea_(),B=this.getTextAreaValue()!==""?"auto":"rtl";W.setAttribute("dir",B)}},
handleInputEvent_:function(){var W=null;if(this.isEmojiButtonDisplayed){var B=this.getInputRange_();B&&(W=this.emojiInput.retrieveTextBeforeRange(B))}this.insertText_(W,!0);this.updateCharCount_();W=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=W.scrollHeight>W.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var W=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:W})},
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(W){this.isEmojiButtonDisplayed&&(W.preventDefault(),W.stopImmediatePropagation(),W=W.clipboardData.getData("text/plain"),this.insertText_(W,!1,!1),_.v0(this.hostElement,"input"))},
insertText_:function(W,B,z){B=B===void 0?!1:B;z=z===void 0?!0:z;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&W){var G=this.getInputRange_().cloneRange();this.emojiManager&&G&&(B&&this.emojiInput.offsetStartOfRangeBy(G,W.length),this.insertTextWithEmojis_(G,W,z),UEb(this.getEditableTextArea_().lastChild)||(G=this.getInputRange_().cloneRange()),G&&(this.emojiInput.updateSuggestions(G,W),this.updateSuggestionOffset_(G)))}},
getSimpleString:_.zR,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(W){return W?"focused":"not-focused"},
computePlaceholderText_:function(W){return this.getSimpleString(W)},
computeEditableText_:function(W){return this.getSimpleString(W)},
onPrefilledContentDismissed_:function(W){W.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(W,B){W?this.fire("yt-autonav-pause-focus"):B!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(W){var B=this.getEditableTextArea_();[].concat(_.u7(W.dataTransfer.items)).forEach(function(z){z.kind==="string"&&z.type.match("^text/plain")&&z.getAsString(function(G){B.appendChild(document.createTextNode(G))})});
W.preventDefault()},
preventDefault_:function(W){W.preventDefault()},
onSuggestionInsert_:function(W){this.insertTextWithEmojis_(W.detail.range,W.detail.text)},
onEmojiSuggestionClick_:function(W){this.emojiInput.insertSuggestion(W.detail)},
updateSuggestionOffset_:function(W){if(this.emojiInput&&_.tH(this.emojiInput).querySelector("#dropdown")){var B=this.getEditableTextArea_().getBoundingClientRect().bottom,z=W.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(B-z)+5;B=this.getEditableTextArea_().getBoundingClientRect().left;W=W.getBoundingClientRect().left-B;_.tH(this.emojiInput).querySelector("#dropdown").style.marginLeft=W+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.el("yt-post"));return this.localStorage}});var $V=function(){var W=_.S.apply(this,arguments)||this;W.currentCommentOptionIndex=0;W.isEmojiPickerDisplayed=!1;W.emojiManager=_.gN;W.isUgcEmpty=!1;W.userGeneratedCommentChangedHandler=function(){_.v0(W.hostElement,"ytd-pdg-user-generated-comment-changed");W.isEmojiYtdCommentInputEnabled&&(W.isUgcEmpty=!W.ytdCommentInputEl.getTextAreaValue())};
W.pasteHandler=function(B){B.preventDefault();B.stopImmediatePropagation();var z;if(B=(z=B.clipboardData)==null?void 0:z.getData("text/plain"))z=document.getSelection().getRangeAt(0),z.collapsed||z.deleteContents(),B=document.createTextNode(B),z.insertNode(B),z.selectNodeContents(B),z.collapse(!1),B=window.getSelection(),B.removeAllRanges(),B.addRange(z)};
W.onDocumentClick=function(B){if(W.isEmojiPickerDisplayed){var z,G,Y;!(B.target instanceof Node)||(z=B.composedPath())!=null&&z.includes(W.editableTextEl)||(G=B.composedPath())!=null&&G.includes(W.emojiButtonEl)||(Y=B.composedPath())!=null&&Y.includes(W.emojiPickerEl)||(W.isEmojiPickerDisplayed=!1)}};
return W};
_.C($V,_.S);_.p=$V.prototype;_.p.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.p.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.p.detached=function(){var W;(W=this.contentEl)==null||W.removeEventListener("input",this.userGeneratedCommentChangedHandler);var B;(B=this.contentEl)==null||B.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.p.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.p.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var W;this.contentEl.textContent=this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.p.reloadEmojis=function(){this.emojiPickerEl&&_.k(this.emojiPicker,_.jx4)&&this.emojiPickerEl.updateEmojiCategories()};
_.p.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.kw(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.p.handleBackgroundColorStyling=function(){var W;if((W=this.currentCommentOption)==null?0:W.commentBackgroundColorArgb){var B;_.kw(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.aE((B=this.currentCommentOption)==null?void 0:B.commentBackgroundColorArgb)})}else _.kw(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.p.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var W;(W=this.contentEl)==null||W.focus()}};
_.p.onEditButtonClick=function(W){var B=document.getSelection();B&&this.contentEl&&(W.stopPropagation(),W.preventDefault(),B.selectAllChildren(this.contentEl),B.collapseToEnd())};
_.p.onContentDrop=function(W){var B=this;if(W.dataTransfer){W=_.A(W.dataTransfer.items);for(var z=W.next();!z.done;z=W.next())z=z.value,z.kind==="string"&&z.type.match("^text/plain")&&z.getAsString(function(G){var Y;(Y=B.contentEl)==null||Y.appendChild(document.createTextNode(G))})}};
_.p.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.p.getUserGeneratedCommentText=function(){var W,B=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(W=this.contentEl)==null?void 0:W.textContent;return B?B.trim():""};
_.p.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.p.onEmojiSelect=function(W){this.ytdCommentInputEl.onEmojiSelect(W)};
_.G5.Object.defineProperties($V.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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 W;return!((W=this.currentCommentOption)==null||!W.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if(_.k((W=this.currentCommentOption)==null?void 0:W.chipRenderer,_.aL4)){var B;return _.k((B=this.currentCommentOption)==null?void 0:B.chipRenderer,_.aL4)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var W,B;return((W=this.data)==null?0:W.commentOptionRenderers)?_.k((B=this.data)==null?void 0:B.commentOptionRenderers[this.superThanksSelectedTierEntity.index],uw1):void 0}var z,G;return((z=this.data)==null?0:z.commentOptionRenderers)?_.k((G=this.data)==null?void 0:G.commentOptionRenderers[this.currentCommentOptionIndex],uw1):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var W;return this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var W;return this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var W,B;return(B=_.k((W=this.data)==null?void 0:W.commentDialog,_.Bd7))==null?void 0:B.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var W,B;return(B=_.k((W=this.data)==null?void 0:W.commentDialog,_.Bd7))==null?void 0:B.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var W,B;return(B=_.k((W=this.data)==null?void 0:W.commentDialog,_.Bd7))==null?void 0:B.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var W,B,z=(B=_.k((W=this.data)==null?void 0:W.commentDialog,_.Bd7))==null?void 0:B.emojiPicker;if(!_.k(z,_.jx4)||!_.k(z,_.jx4).categories)return!1;W=function(d){return d.emojiPickerCategoryRenderer?d.emojiPickerCategoryRenderer.emojiIds&&d.emojiPickerCategoryRenderer.emojiIds.length>0:d.emojiPickerUpsellCategoryRenderer?d.emojiPickerUpsellCategoryRenderer.emojis&&d.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var G,Y;return((G=_.k(z,_.jx4))==null?0:(Y=G.categories)==null?0:Y.find(W))?!0:!1}}});
$V.prototype.onEmojiSelect=$V.prototype.onEmojiSelect;$V.prototype.dataChanged=$V.prototype.dataChanged;$V.prototype.currentCommentOptionChanged=$V.prototype.currentCommentOptionChanged;_.Q([_.h(_.TB),_.y("design:type",Object)],$V.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$V.prototype,"rendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],$V.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.Hf("#content-dom-if"),_.y("design:type",_.yU)],$V.prototype,"contentDomIfEl",void 0);_.Q([_.Hf("#content-no-emojis"),_.y("design:type",HTMLElement)],$V.prototype,"contentEl",void 0);_.Q([_.Hf("#container"),_.y("design:type",HTMLElement)],$V.prototype,"containerEl",void 0);_.Q([_.Hf("#comment-chip-container"),_.y("design:type",HTMLElement)],$V.prototype,"paidCommentChipContainerEl",void 0);_.Q([_.Hf("#text-input"),_.y("design:type",HTMLElement)],$V.prototype,"editableTextEl",void 0);
_.Q([_.Hf("#emoji-button"),_.y("design:type",HTMLElement)],$V.prototype,"emojiButtonEl",void 0);_.Q([_.Hf("#emoji-picker > yt-emoji-picker-renderer"),_.y("design:type",Object)],$V.prototype,"emojiPickerEl",void 0);_.Q([_.Hf("#text-input > ytd-comment-input"),_.y("design:type",Object)],$V.prototype,"ytdCommentInputEl",void 0);_.Q([_.F(),_.y("design:type",Object)],$V.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],$V.prototype,"currentCommentOptionIndex",void 0);
_.Q([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:GRj}),_.y("design:type",Object)],$V.prototype,"superThanksSelectedTierEntity",void 0);_.Q([_.F(),_.y("design:type",Object)],$V.prototype,"isEmojiPickerDisplayed",void 0);_.Q([_.F(),_.y("design:type",Object)],$V.prototype,"emojiManager",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],$V.prototype,"isUgcEmpty",void 0);
_.Q([_.oN("currentCommentOption"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$V.prototype,"currentCommentOptionChanged",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$V.prototype,"dataChanged",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$V.prototype,"isEmojiYtdCommentInputEnabled",null);
_.Q([_.H("data.title"),_.y("design:type",Object),_.y("design:paramtypes",[])],$V.prototype,"title",null);_.Q([_.H("data.authorText"),_.y("design:type",Object),_.y("design:paramtypes",[])],$V.prototype,"channelName",null);_.Q([_.H("data.commentOptionRenderers","currentCommentOption"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$V.prototype,"shouldShowPaidCommentChipRenderer",null);
_.Q([_.H("data.commentOptionRenderers","currentCommentOption"),_.y("design:type",Object),_.y("design:paramtypes",[])],$V.prototype,"paidCommentChipRenderer",null);_.Q([_.H("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],$V.prototype,"currentCommentOption",null);
_.Q([_.H("data.defaultCommentText","superThanksSelectedTierEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],$V.prototype,"commentText",null);_.Q([_.H("data.placeholderText"),_.y("design:type",Object),_.y("design:paramtypes",[])],$V.prototype,"placeholderText",null);_.Q([_.H("data.commentDialog.commentDialogRenderer.editableText"),_.y("design:type",Object),_.y("design:paramtypes",[])],$V.prototype,"editableText",null);
_.Q([_.H("data.commentDialog.commentDialogRenderer.emojiButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],$V.prototype,"emojiButton",null);_.Q([_.H("data.commentDialog.commentDialogRenderer.emojiPicker"),_.y("design:type",Object),_.y("design:paramtypes",[])],$V.prototype,"emojiPicker",null);
_.Q([_.H("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$V.prototype,"isEmojiButtonDisplayed",null);_.Q([_.IN("yt-emoji-select"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],$V.prototype,"onEmojiSelect",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],$V);
_.D($V,"ytd-pdg-comment-preview-renderer",function(){if(vjb!==void 0)return vjb;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return vjb=W},{mode:2});var wB9;var Le=function(){var W=_.S.apply(this,arguments)||this;W.selected=!1;return W};
_.C(Le,_.S);_.p=Le.prototype;_.p.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.p.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.p.dataChanged=function(){this.data&&(_.sR(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.kw(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.aE(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.aE(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.p.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.p.onClick=function(){this.logClick()};
_.p.onKeyboardSelect=function(){_.v0(this.hostElement,"tap");this.onClick()};
_.p.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Le.prototype.onClick=Le.prototype.onClick;Le.prototype.selectedChanged=Le.prototype.selectedChanged;Le.prototype.dataChanged=Le.prototype.dataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Le.prototype,"componentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.DM),_.y("design:type",Object)],Le.prototype,"ironA11yKeysBehavior",void 0);
_.Q([_.h(_.Gs),_.y("design:type",Object)],Le.prototype,"ironSelectableBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Le.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Le.prototype,"shownThumbnail",void 0);_.Q([_.F(),_.y("design:type",Object)],Le.prototype,"basePriceText",void 0);_.Q([_.F(),_.y("design:type",Object)],Le.prototype,"purchaseCommand",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Le.prototype,"selected",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Le.prototype,"dataChanged",null);_.Q([_.oN("selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Le.prototype,"selectedChanged",null);_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Le.prototype,"onClick",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Le);
_.D(Le,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(wB9!==void 0)return wB9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return wB9=W},{mode:1});var U$=function(){var W=_.S.apply(this,arguments)||this;W.selectedItemIndex=0;W.buyButtonDisabled=!1;return W};
_.C(U$,_.S);_.p=U$.prototype;
_.p.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]]"}}}}}};
_.p.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var W;var B=(W=_.k(this.data.colorSlider,KhY))==null?void 0:W.notches[this.selectedItemIndex].purchaseCommand}else{var z;B=(z=_.k(this.data.selectableItemButtons[this.selectedItemIndex],mK1))==null?void 0:z.purchaseCommand}if(B){W=_.k(B,_.XNM);W.productData||(W.productData={});var G;W.productData={pdgData:{commentMessageText:(G=this.commentPreviewRenderer)==null?void 0:G.getUserGeneratedCommentText()}};
_.v0(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(B)}}};
_.p.dataChanged=function(){if(this.data){_.gN.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.wI9(_.gN,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.gN.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var W;this.buyButtonDisabled=!((W=_.k(this.data.commentPreview,evO))==null||!W.placeholderText);this.updatePriceSelectorStatus();var B;if((B=this.data)==null?0:B.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;W=[];this.data.preloadImages&&(W=this.data.preloadImages);
W=W.map(function(z){return _.JY(z.thumbnails,1920)});
W=_.A(W);for(B=W.next();!B.done;B=W.next())(B=B.value)&&_.v7Q(B).thenCatch(function(){_.Oc(Error("Al"))})}};
_.p.superThanksSelectedTierEntityChanged=function(){var W;(this==null?void 0:(W=this.superThanksSelectedTierEntity)==null?void 0:W.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.p.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.p.updatePriceSelectorStatus=function(){this.isColorSlider?(_.tH(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.tH(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.tH(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.tH(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.p.closeBuyFlow=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.p.onUserGeneratedContentChanged=function(){var W;this.buyButtonDisabled=!((W=this.commentPreviewRenderer)==null?0:W.getUserGeneratedCommentText())};
_.p.updateSelectedItemIndexFromBinding=function(W){this.selectedItemIndex=W.detail.value};
_.G5.Object.defineProperties(U$.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.disclaimerText)}}});
U$.prototype.onUserGeneratedContentChanged=U$.prototype.onUserGeneratedContentChanged;U$.prototype.closeBuyFlow=U$.prototype.closeBuyFlow;U$.prototype.selectedItemIndexChanged=U$.prototype.selectedItemIndexChanged;U$.prototype.superThanksSelectedTierEntityChanged=U$.prototype.superThanksSelectedTierEntityChanged;U$.prototype.dataChanged=U$.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],U$.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],U$.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],U$.prototype,"selectedItemIndex",void 0);_.Q([_.F(),_.y("design:type",Boolean)],U$.prototype,"isColorSlider",void 0);
_.Q([_.F(),_.y("design:type",Object)],U$.prototype,"buyButtonDisabled",void 0);_.Q([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:GRj}),_.y("design:type",Object)],U$.prototype,"superThanksSelectedTierEntity",void 0);_.Q([_.Hf("ytd-pdg-comment-preview-renderer"),_.y("design:type",Object)],U$.prototype,"commentPreviewRenderer",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],U$.prototype,"ytdReduxBehavior",void 0);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U$.prototype,"dataChanged",null);_.Q([_.oN("superThanksSelectedTierEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U$.prototype,"superThanksSelectedTierEntityChanged",null);_.Q([_.oN("selectedItemIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U$.prototype,"selectedItemIndexChanged",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U$.prototype,"closeBuyFlow",null);_.Q([_.IN("ytd-pdg-user-generated-comment-changed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U$.prototype,"onUserGeneratedContentChanged",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],U$.prototype,"isDisclaimerTextShown",null);
_.Q([_.u({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],U$);
_.D(U$,"yt-super-vod-buy-flow-content-renderer",function(){if(Ejn!==void 0)return Ejn;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Ejn=W},{mode:1});var VBr;var Mx=function(){var W=_.S.apply(this,arguments)||this;W.lottieAnimationRef={};return W};
_.C(Mx,_.S);_.p=Mx.prototype;_.p.created=function(){_.p6.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Co(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.p.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.v0(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.p.detached=function(){this.autoCloseJobId&&_.fg.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Co(this,this.onPopupIronOverlayOpened))};
_.p.dataChanged=function(){var W=this;this.data&&this.data.autoCloseDelay&&(_.c0(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.P2(_.fg,function(){W.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.kw(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.p.onDOMLoadedLottie=function(){var W=this,B,z,G=Number((B=this.data)==null?void 0:(z=B.autoCloseDelay)==null?void 0:z.seconds)||0;this.fadeOutJobId=_.P2(_.fg,function(){W.lottiePlayerEl.classList.add("fadeout")},(G-.25)*1E3);
this.autoCloseJobId=_.P2(_.fg,function(){W.closePopup()},G*1E3)};
_.p.openPopup=function(){this.ironOverlayBehavior.open()};
_.p.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.c0(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Jr(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.dO().resolve(_.p4).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.fg.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.fg.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.p.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var W,B;(W=this.lottieAnimationRef)==null||(B=W.lottieEl)==null||B.destroy();W=this.data.lottie;var z,G;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:W.url+"_"+Math.random(),path:W.url,autoplay:!0,loop:(G=(z=W.settings)==null?void 0:z.loop)!=null?G:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.G5.Object.defineProperties(Mx.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var W,B;return!!((W=this.data)==null?0:(B=W.lottie)==null?0:B.url)}}});
Mx.prototype.maybeInitializeLottie=Mx.prototype.maybeInitializeLottie;Mx.prototype.dataChanged=Mx.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Mx.prototype,"rendererBehavior",void 0);_.Q([_.h(_.ct),_.y("design:type",Object)],Mx.prototype,"ironOverlayBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Mx.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Mx.prototype,"lottiePlayerProps",void 0);
_.Q([_.F(),_.y("design:type",Object)],Mx.prototype,"lottieAnimationRef",void 0);_.Q([_.Hf("ytd-lottie-player"),_.y("design:type",HTMLElement)],Mx.prototype,"lottiePlayerEl",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mx.prototype,"dataChanged",null);_.Q([_.H("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mx.prototype,"hasLottieAnimation",null);
_.Q([_.oN("data.lottie.url"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mx.prototype,"maybeInitializeLottie",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Mx);
_.D(Mx,"ytd-desktop-image-overlay-renderer",function(){if(VBr!==void 0)return VBr;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return VBr=W},{mode:1});var JAb;var aS=function(){return _.S.apply(this,arguments)||this};
_.C(aS,_.S);_.p=aS.prototype;_.p.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"}}}}};
_.p.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",_.Co(this,this.closePopup))};
_.p.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Co(this,this.closePopup))};
_.p.dataChanged=function(){_.wV(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.k(this.data.header,XNK)&&(this.hasBackgroundBanner=!!_.k(this.data.header,XNK).backgroundBanner)};
_.p.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Co(this,this.closePopup))};
_.p.closePopup=function(){this.data&&this.data.onCloseCommand&&_.V0(this.hostElement,[this.data.onCloseCommand])};
aS.prototype.handleBuyflowSelectionSubmitted=aS.prototype.handleBuyflowSelectionSubmitted;aS.prototype.dataChanged=aS.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],aS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],aS.prototype,"data",void 0);
_.Q([_.F({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],aS.prototype,"hasBackgroundBanner",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aS.prototype,"dataChanged",null);_.Q([_.IN("yt-pdg-buy-flow-selection-submitted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aS.prototype,"handleBuyflowSelectionSubmitted",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],aS);
_.D(aS,"ytd-pdg-buy-flow-renderer",function(){if(JAb!==void 0)return JAb;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return JAb=W},{mode:1});var gji;var RS=function(){var W=_.S.apply(this,arguments)||this;W.isOpen=!1;W.isPlaylistCreated=!1;return W};
_.C(RS,_.S);_.p=RS.prototype;_.p.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.p.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.v0(this.hostElement,"yt-refit")};
_.p.onCreateTap=function(){var W=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.V0(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(B,z){if(!_.r("killswitch_ep_in_create_playlist_response")&&(z==null?0:z.actions))for(B=_.A(z.actions),z=B.next();!z.done;z=B.next())z=z.value,_.k(z,_.jT)&&W.ytComponentBehavior.resolveCommand(z)}}]),this.isPlaylistCreated=!0)};
_.p.onKeydown=function(W){if(W.keyCode===13)this.onCreateTap()};
_.p.onServiceRequestCompleted=function(W){W.stopPropagation();_.c0(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.p.computePrivacyBadge=function(W){return W?[{metadataBadgeRenderer:W}]:[]};
RS.prototype.onServiceRequestCompleted=RS.prototype.onServiceRequestCompleted;RS.prototype.onKeydown=RS.prototype.onKeydown;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],RS.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],RS.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],RS.prototype,"isOpen",void 0);
_.Q([_.F(),_.y("design:type",Object)],RS.prototype,"isPlaylistCreated",void 0);_.Q([_.F({value:{REQUIRED_LABEL:_.kq("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.kq("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.y("design:type",Object)],RS.prototype,"addToStrings",void 0);_.Q([_.F({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.y("design:type",Array)],RS.prototype,"privacyBadge",void 0);
_.Q([_.Hf("#privacy-input"),_.y("design:type",Object)],RS.prototype,"privacyInput",void 0);_.Q([_.Hf("#name-input"),_.y("design:type",Object)],RS.prototype,"nameInput",void 0);_.Q([_.IN("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],RS.prototype,"onKeydown",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],RS.prototype,"onServiceRequestCompleted",null);
_.Q([_.u({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],RS);
_.D(RS,"ytd-add-to-playlist-create-renderer",function(){if(gji!==void 0)return gji;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return gji=W},{mode:1});var tBi;var shn;var Ww=function(){var W=_.S.apply(this,arguments)||this;W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.C(Ww,_.S);Ww.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Ww.prototype.onCheckboxChange=function(W){var B=this;this.data&&_.BJ(this,"yt-playlist-checkbox-changed",function(){var z=_.iP(W).checked?B.data.addToPlaylistServiceEndpoint:B.data.removeFromPlaylistServiceEndpoint;z&&_.dO().resolve(_.p4).resolveCommand(z,{form:{element:B.hostElement}});_.r("dl_playlist_killswitch")||B.transferState!=="TRANSFER_STATE_UNKNOWN"&&B.transferState!=="TRANSFER_STATE_FAILED"&&B.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:B.data.playlistId,action:"ACTION_SYNC"}})},
100)};
Ww.prototype.computeIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
Ww.prototype.dataChanged=Ww.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Ww.prototype,"data",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Ww.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Ww.prototype,"ytComponentBehavior",void 0);_.Q([_.Hf("#checkbox"),_.y("design:type",HTMLInputElement)],Ww.prototype,"checkbox",void 0);
_.Q([_.F({selector:_.qM,selectorArgs:["data.playlistId"]}),_.y("design:type",String)],Ww.prototype,"transferState",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ww.prototype,"dataChanged",null);_.Q([_.u({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],Ww);
_.D(Ww,"ytd-playlist-add-to-option-renderer",function(){if(shn!==void 0)return shn;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return shn=W},{mode:1});var PCY=_.m(function(W){var B=W.data;return _.w("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.w("div",null,_.w(_.r0,{text:function(){return B().title}})),_.w(_.V,{cond:function(){return B().subtitle},
then:function(z){return _.w("div",{class:"ytdMenuTitleRendererSubtitle"},_.w(_.r0,{text:z}))}}))},"yh");
PCY.idomCompat=!0;_.Vm(PCY,"ytd-menu-title-renderer",{props:{data:_.kz}});var Bw=function(){var W=_.S.apply(this,arguments)||this;W.addToStrings={ADD_TO_DROPDOWN_LABEL:_.kq("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};W.closeButtonAriaLabel=_.kq("SBOX_INAPPROPRIATE_CANCEL");W.dialog=_.r("desktop_add_to_playlist_renderer_dialog_popup");return W};
_.C(Bw,_.S);_.p=Bw.prototype;_.p.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"}}}};
_.p.onPopupOpened=function(){_.Pf(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.p.onPopupClosed=function(){_.Pf(this.playlists,"scrollable",!1)};
_.p.computeAriaLabel=function(){var W;if(this==null?0:(W=this.data)==null?0:W.actions){W=_.A(this.data.actions);for(var B=W.next();!B.done;B=W.next())if(B=B.value,B.menuTitleRenderer)return _.zR(B.menuTitleRenderer.title)}};
_.p.onTapClose=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.G5.Object.defineProperties(Bw.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if(this==null?0:(W=this.data)==null?0:W.actions){W=_.A(this.data.actions);for(var B=W.next();!B.done;B=W.next())if(B=B.value,B.menuTitleRenderer)return B.menuTitleRenderer}return!1}}});
Bw.prototype.onPopupClosed=Bw.prototype.onPopupClosed;Bw.prototype.onPopupOpened=Bw.prototype.onPopupOpened;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],Bw.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Bw.prototype,"ytRendererStamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Bw.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Bw.prototype,"addToStrings",void 0);_.Q([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.y("design:type",String)],Bw.prototype,"ariaLabel",void 0);_.Q([_.F(),_.y("design:type",String)],Bw.prototype,"closeButtonAriaLabel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Bw.prototype,"dialog",void 0);
_.Q([_.Hf("#playlists"),_.y("design:type",HTMLElement)],Bw.prototype,"playlists",void 0);_.Q([_.Hf("ytd-add-to-playlist-create-renderer"),_.y("design:type",Object)],Bw.prototype,"createRenderer",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Bw.prototype,"menuTitleRenderer",null);_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bw.prototype,"onPopupOpened",null);
_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bw.prototype,"onPopupClosed",null);_.Q([_.u({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Bw);
_.D(Bw,"ytd-add-to-playlist-renderer",function(){if(tBi!==void 0)return tBi;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tBi=W},{mode:1});var Zq0;var zb=function(){var W=_.S.apply(this,arguments)||this;W.isPlaylistEditComplete=!1;W.isCollabEngagementDisabled=!1;W.closeButtonAriaLabel=_.kq("SBOX_INAPPROPRIATE_CANCEL");W.saveButton={title:_.kq("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"};W.onValueChanged=function(){W.updateSaveButtonState();W.computeCollabEngagementDisabled()};
return W};
_.C(zb,_.S);_.p=zb.prototype;_.p.attached=function(){this.JSC$20537_scroller&&(this.JSC$20537_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20537_scroller.attached&&typeof this.JSC$20537_scroller.attached==="function"&&this.JSC$20537_scroller.attached())};
_.p.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.p.onPopupClosed=function(){this.reset()};
_.p.close=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.p.onClickSave=function(){var W=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var B=[];this.nameInput.value!==null&&B.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&B.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var z=Number(this.privacyInput.value);isNaN(z)||B.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:z})}this.votingInput.value!==null&&(z=this.votingInput.value)&&B.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:z});if(B.length>0){var G;_.k((G=this.data)==null?void 0:G.updateSettingsEndpoint,_.pS).actions=B;var Y;if((Y=this.data)==null?0:Y.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){W.close()}}}),this.isPlaylistEditComplete=!0}}};
_.p.computePrivacyBadge=function(W){return W?[{metadataBadgeRenderer:W}]:[]};
_.p.computeEditorData=function(W){var B,z;return W==null?void 0:(B=W.sections)==null?void 0:(z=B[0])==null?void 0:z.playlistSettingsEditorCasualSectionRenderer};
_.p.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.p.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}}}}}};
_.p.computeAriaLabel=function(){var W,B,z,G=(W=this.data)==null?void 0:(B=W.sections)==null?void 0:(z=B[0])==null?void 0:z.playlistSettingsEditorCasualSectionRenderer;return _.zR(G==null?void 0:G.title)};
_.p.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"}))};
_.p.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.p.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.p.isNameChanged=function(){var W,B,z;return(((W=this.editorData)==null?void 0:(B=W.name)==null?void 0:(z=B.textInputFormFieldRenderer)==null?void 0:z.value)||"")!==(this.nameInput.value||"")};
_.p.isDescriptionChanged=function(){var W,B,z;return(((W=this.editorData)==null?void 0:(B=W.description)==null?void 0:(z=B.textInputFormFieldRenderer)==null?void 0:z.value)||"")!==(this.descriptionInput.value||"")};
_.p.isPrivacyChanged=function(){var W,B,z,G,Y,d,E,v;return((E=(W=this.editorData)==null?void 0:(B=W.privacy)==null?void 0:(z=B.dropdownFormFieldRenderer)==null?void 0:(G=z.dropdown)==null?void 0:(Y=G.dropdownRenderer)==null?void 0:(d=Y.entries)==null?void 0:d.find(function(c){var J;return c==null?void 0:(J=c.privacyDropdownItemRenderer)==null?void 0:J.isSelected}))==null?void 0:(v=E.privacyDropdownItemRenderer)==null?void 0:v.int32Value)!==this.privacyInput.value};
_.p.isVotingChanged=function(){var W,B,z,G,Y,d,E,v;return((E=(W=this.editorData)==null?void 0:(B=W.voting)==null?void 0:(z=B.dropdownFormFieldRenderer)==null?void 0:(G=z.dropdown)==null?void 0:(Y=G.dropdownRenderer)==null?void 0:(d=Y.entries)==null?void 0:d.find(function(c){var J;return c==null?void 0:(J=c.privacyDropdownItemRenderer)==null?void 0:J.isSelected}))==null?void 0:(v=E.privacyDropdownItemRenderer)==null?void 0:v.int32Value)!==this.votingInput.value};
zb.prototype.onPopupClosed=zb.prototype.onPopupClosed;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],zb.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],zb.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],zb.prototype,"ytRendererStamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],zb.prototype,"data",void 0);_.Q([_.F({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.y("design:type",Array)],zb.prototype,"privacyBadge",void 0);_.Q([_.F({computed:"computeEditorData(data)"}),_.y("design:type",Object)],zb.prototype,"editorData",void 0);_.Q([_.F(),_.y("design:type",Object)],zb.prototype,"isPlaylistEditComplete",void 0);_.Q([_.F(),_.y("design:type",Object)],zb.prototype,"isCollabEngagementDisabled",void 0);
_.Q([_.F({value:{REQUIRED_LABEL:_.kq("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.kq("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.y("design:type",Object)],zb.prototype,"addToStrings",void 0);_.Q([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.y("design:type",String)],zb.prototype,"ariaLabel",void 0);_.Q([_.F(),_.y("design:type",String)],zb.prototype,"closeButtonAriaLabel",void 0);
_.Q([_.F(),_.y("design:type",Object)],zb.prototype,"saveButton",void 0);_.Q([_.Hf("#name-input"),_.y("design:type",Object)],zb.prototype,"nameInput",void 0);_.Q([_.Hf("#description-input"),_.y("design:type",Object)],zb.prototype,"descriptionInput",void 0);_.Q([_.Hf("#privacy-input"),_.y("design:type",Object)],zb.prototype,"privacyInput",void 0);_.Q([_.Hf("#voting-input"),_.y("design:type",Object)],zb.prototype,"votingInput",void 0);
_.Q([_.Hf("#scroller"),_.y("design:type",Object)],zb.prototype,"JSC$20537_scroller",void 0);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zb.prototype,"onPopupClosed",null);_.Q([_.F(),_.y("design:type",Object)],zb.prototype,"onValueChanged",void 0);_.Q([_.u({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],zb);
_.D(zb,"ytd-playlist-settings-editor-renderer",function(){if(Zq0===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);Zq0=W}W=Zq0;return W},{mode:1});var rAq;_.eX("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var Gb=function(){return _.S.apply(this,arguments)||this};
_.C(Gb,_.S);_.p=Gb.prototype;_.p.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}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.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 W=this.get("data.nextButton.buttonRenderer.navigationEndpoint");W&&(this.nextNavigationEndpoint=W,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.p.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 W={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",W)}}};
_.p.onPopupOpened=function(W){W.detail!==this&&W.detail!==this.hostElement||!_.r("enable_premium_voluntary_pause")||_.c0(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.p.onNextButtonTap=function(){var W=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);W&&this.ytdOpenPopupBehavior.openPopup(W)};
_.p.updateSelectedResponseIndexFromBinding=function(W){this.selectedResponseIndex=W.detail.value};
Gb.prototype.onPopupOpened=Gb.prototype.onPopupOpened;Gb.prototype.onSelectedResponseIndexChange=Gb.prototype.onSelectedResponseIndexChange;Gb.prototype.dataChanged=Gb.prototype.dataChanged;_.Q([_.h(_.oY),_.y("design:type",Object)],Gb.prototype,"ytdOpenPopupBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Gb.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Gb.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Number)],Gb.prototype,"selectedResponseIndex",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gb.prototype,"dataChanged",null);_.Q([_.oN("selectedResponseIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gb.prototype,"onSelectedResponseIndexChange",null);
_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Gb.prototype,"onPopupOpened",null);_.Q([_.u({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],Gb);
_.D(Gb,"ytd-red-cancel-survey-renderer",function(){if(rAq!==void 0)return rAq;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return rAq=W},{mode:1});var kni;var YC=function(){var W=_.S.apply(this,arguments)||this;W.closeButtonAriaLabel=_.kq("SBOX_INAPPROPRIATE_CANCEL");return W};
_.C(YC,_.S);YC.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
YC.prototype.onClickClose=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],YC.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],YC.prototype,"rendererStamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],YC.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],YC.prototype,"closeButtonAriaLabel",void 0);_.Q([_.u({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],YC);
_.D(YC,"ytd-search-filter-options-dialog-renderer",function(){if(kni!==void 0)return kni;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return kni=W},{mode:1});var lCf;var pAO=function(){return function(W){W=W.availabilityType;return W===void 0||W==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||W==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var d6=function(){var W=_.S.apply(this,arguments)||this;W.qualityOptions=[];W.upsellOptions=[];W.showUpsellSection=!1;W.darkerDarkTheme=_.r("web_darker_dark_theme");W.rememberSettingsChecked=!1;return W};
_.C(d6,_.S);_.p=d6.prototype;_.p.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}}}}};
_.p.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.p.updateQualityOptions=function(){if(this.formats===void 0)_.c0(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var W=[],B=[];this.showUpsellSection=!1;for(var z=_.A(this.formats),G=z.next();!G.done;G=z.next())(G=G.value)&&(G.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?B.push(G):W.push(G));W.length&&(this.qualityOptions=d$0(W));B.length&&(this.showUpsellSection=!0,this.upsellOptions=d$0(B))}};
_.p.updateRememberString=function(){if(this.downloadQualityPickerEntity)var W=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var B;W=(B=this.data)==null?void 0:B.premiumRememberSettingString}else{var z;W=(z=this.data)==null?void 0:z.rememberSettingString}W=W===void 0?_.kq("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):W;this.rememberSettingsCheckboxRenderer={title:_.Aq(W),disabled:!1}};
_.p.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.G5.Object.defineProperties(d6.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var W;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(W=this.data)==null?void 0:W.qualityFormats}}});
d6.prototype.updateRememberString=d6.prototype.updateRememberString;d6.prototype.updateQualityOptions=d6.prototype.updateQualityOptions;d6.prototype.dataChanged=d6.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],d6.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],d6.prototype,"data",void 0);
_.Q([_.h(_.TB),_.y("design:type",Object)],d6.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Boolean)],d6.prototype,"selectedUpsellQuality",void 0);_.Q([_.F({computed:"computeIcon_(data.premiumIcon)",value:""}),_.y("design:type",String)],d6.prototype,"premiumIcon",void 0);_.Q([_.F({selector:W8i,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.y("design:type",Object)],d6.prototype,"downloadQualityPickerEntity",void 0);
_.Q([_.F(),_.y("design:type",Array)],d6.prototype,"qualityOptions",void 0);_.Q([_.F(),_.y("design:type",Array)],d6.prototype,"upsellOptions",void 0);_.Q([_.F(),_.y("design:type",Object)],d6.prototype,"showUpsellSection",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],d6.prototype,"darkerDarkTheme",void 0);_.Q([_.F(),_.y("design:type",Object)],d6.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.Q([_.Hf("#remember-settings"),_.y("design:type",HTMLInputElement)],d6.prototype,"rememberSettingsCheckbox",void 0);_.Q([_.F(),_.y("design:type",Object)],d6.prototype,"rememberSettingsChecked",void 0);_.Q([_.F(),_.y("design:type",Function)],d6.prototype,"onRememberSettingsCheckedChanged",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d6.prototype,"dataChanged",null);
_.Q([_.oN("downloadQualityPickerEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d6.prototype,"updateQualityOptions",null);_.Q([_.oN("selectedUpsellQuality"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d6.prototype,"updateRememberString",null);_.Q([_.u({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],d6);
_.D(d6,"ytd-download-quality-selector-content",function(){if(lCf!==void 0)return lCf;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return lCf=W},{mode:1});var CC1;var pb=function(){var W=_.S.apply(this,arguments)||this;W.selectedUpsellQuality=!1;W.qualityOptions=[];W.darkerDarkTheme=_.r("web_darker_dark_theme");W.useUpsellDismissAlternate=_.r("use_not_now_dl_upsell_dismiss_cta");W.shouldShowAlternateUpsellDimiss=!1;W.rememberSettings=!1;W.rememberSettingsChecked=!1;W.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};W.rememberSettingsCheckedChanged=function(B){W.rememberSettingsChecked=B};
return W};
_.C(pb,_.S);_.p=pb.prototype;
_.p.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Aq(_.kq("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Aq(_.kq("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Aq(_.kq("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Aq(_.kq("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.p.updateQualityOptions=function(){this.formats===void 0?_.c0(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=d$0(this.formats)};
_.p.onQualityOptionsSelect=function(W){if(this.qualityOptions&&W){W!==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 B=_.A(this.qualityOptions.entries()),z=B.next();!z.done;z=
B.next()){z=_.A(z.value);var G=z.next().value;z=z.next().value;var Y=void 0,d=void 0;if(((Y=z)==null?void 0:(d=Y.settingsRadioOptionRenderer)==null?void 0:d.id)===W){this.selectedQualityIndex=G;W=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((W=this.formats[G])==null?void 0:W.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.p.onClickSubmit=function(){var W;if((W=this.downloadButtonRenderer)==null||!W.isDisabled){var B,z;W=(z=(B=this.data)==null?void 0:B.onSubmitEndpoint)!=null?z:{};var G,Y;if(this.formats&&(((G=_.k(W,_.C2))==null?0:G.videoId)||((Y=_.k(W,_.In))==null?0:Y.playlistId))){var d,E,v,c,J,g;B={formatType:(c=(d=this.formats)==null?void 0:(E=d[(v=this.selectedQualityIndex)!=null?v:0])==null?void 0:E.format)!=null?c:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(J=this.getOfflineEndpoint(W))==null?void 0:(g=J.actionParams)==null?void 0:g.settingsAction)};this.getOfflineEndpoint(W).actionParams=B;this.ytComponentBehavior.resolveCommand(W)}_.c0(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.p.onClickUpsell=function(){var W;if((W=this.upsellButtonRenderer)==null||!W.isDisabled){var B,z;W=(z=(B=this.data)==null?void 0:B.upsellEndpoint)!=null?z:{};this.ytComponentBehavior.resolveCommand(W);_.c0(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);B="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var G,Y,d,E;B=(E=(G=this.formats)==null?void 0:(Y=G[(d=this.selectedQualityIndex)!=null?d:0])==null?void 0:Y.format)!=null?E:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:B}})}};
_.p.onClickClose=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.p.getOfflineSettingsAction=function(W,B){return W?B===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":B:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.p.getOfflineEndpoint=function(W){return _.k(W,_.C2)?_.k(W,_.C2):_.k(W,_.In)};
_.G5.Object.defineProperties(pb.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Aq(_.kq("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var W;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(W=this.data)==null?void 0:W.qualityFormats}}});
pb.prototype.updateQualityOptions=pb.prototype.updateQualityOptions;pb.prototype.dataChanged=pb.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],pb.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],pb.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],pb.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],pb.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Number)],pb.prototype,"selectedQualityIndex",void 0);_.Q([_.F(),_.y("design:type",Object)],pb.prototype,"selectedUpsellQuality",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],pb.prototype,"ytdReduxBehavior",void 0);
_.Q([_.F({selector:W8i,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.y("design:type",Object)],pb.prototype,"downloadQualityPickerEntity",void 0);_.Q([_.F(),_.y("design:type",Array)],pb.prototype,"qualityOptions",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],pb.prototype,"darkerDarkTheme",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],pb.prototype,"useUpsellDismissAlternate",void 0);
_.Q([_.F(),_.y("design:type",Object)],pb.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.Q([_.F(),_.y("design:type",Object)],pb.prototype,"downloadButtonRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],pb.prototype,"upsellButtonRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],pb.prototype,"cancelButtonRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],pb.prototype,"upsellCancelButtonRenderer",void 0);_.Q([_.F(),_.y("design:type",Object)],pb.prototype,"rememberSettings",void 0);
_.Q([_.F(),_.y("design:type",Object)],pb.prototype,"rememberSettingsChecked",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pb.prototype,"dataChanged",null);_.Q([_.oN("downloadQualityPickerEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pb.prototype,"updateQualityOptions",null);_.Q([_.u({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],pb);
_.D(pb,"ytd-download-quality-selector-renderer",function(){if(CC1!==void 0)return CC1;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return CC1=W},{mode:1});var IC6;var AS=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(AS,_.S);AS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
AS.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"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],AS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],AS.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],AS.prototype,"darkerDarkTheme",void 0);_.Q([_.F({computed:"computeIcon_(data.infoIcon)"}),_.y("design:type",Object)],AS.prototype,"infoIcon",void 0);
_.Q([_.F({computed:"computeIcon_(data.warningIcon)"}),_.y("design:type",Object)],AS.prototype,"warningIcon",void 0);_.Q([_.u({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],AS);
_.D(AS,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(IC6!==void 0)return IC6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return IC6=W},{mode:1});var ojb;var iG=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(iG,_.S);iG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iG.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"}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],iG.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],iG.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],iG.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],iG.prototype,"darkerDarkTheme",void 0);_.Q([_.u({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],iG);
_.D(iG,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(ojb!==void 0)return ojb;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ojb=W},{mode:1});var hE0;var Ea=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(Ea,_.S);Ea.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ea.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"}}}}};
Ea.prototype.onServiceRequestSentOrCompleted=function(W,B){B&&B.actions&&B.actions.length>0&&_.c0(this.hostElement,"yt-close-popup-action",[this.is])};
Ea.prototype.onServiceRequestSentOrCompleted=Ea.prototype.onServiceRequestSentOrCompleted;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Ea.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Ea.prototype,"darkerDarkTheme",void 0);_.Q([_.F(),_.y("design:type",Object)],Ea.prototype,"data",void 0);
_.Q([_.IN("yt-service-request-completed"),_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],Ea.prototype,"onServiceRequestSentOrCompleted",null);_.Q([_.u({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Ea);
_.D(Ea,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(hE0!==void 0)return hE0;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return hE0=W},{mode:1});var Hq6;var Tb=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");W.submitButtonDisabled=!0;return W};
_.C(Tb,_.S);_.p=Tb.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.p.onDataChanged=function(){var W,B,z;if(((W=this.data)==null?void 0:(B=W.confirmButton)==null?void 0:(z=B.buttonRenderer)==null?void 0:z.isDisabled)!==void 0){var G,Y,d;this.submitButtonDisabled=(G=this.data)==null?void 0:(Y=G.confirmButton)==null?void 0:(d=Y.buttonRenderer)==null?void 0:d.isDisabled}};
_.p.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.p.updateSubmitButtonDisabledFromBinding=function(W){this.submitButtonDisabled=W.detail.value};
_.p.updateSubmitButtonDisabledFromConfirmCheckbox=function(W){this.submitButtonDisabled=!W.detail.value};
Tb.prototype.onDataChanged=Tb.prototype.onDataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Tb.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Tb.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Tb.prototype,"darkerDarkTheme",void 0);
_.Q([_.F(),_.y("design:type",Object)],Tb.prototype,"submitButtonDisabled",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tb.prototype,"onDataChanged",null);_.Q([_.u({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Tb);
_.D(Tb,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(Hq6!==void 0)return Hq6;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Hq6=W},{mode:1});var FUr;var vw=function(){return _.S.apply(this,arguments)||this};
_.C(vw,_.S);_.G5.Object.defineProperties(vw.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var W,B,z;return((W=this.data)==null?void 0:W.title)+" "+((B=this.data)==null?void 0:B.metadataPrimary)+" "+((z=this.data)==null?void 0:z.metadataSecondary)}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],vw.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],vw.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],vw.prototype,"data",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],vw.prototype,"ariaLabel",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],vw);
_.D(vw,"ytd-compact-product-list-item-renderer",function(){if(FUr!==void 0)return FUr;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return FUr=W},{mode:1});var Sfr;var cw=function(){return _.S.apply(this,arguments)||this};
_.C(cw,_.S);cw.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]]"}}}}}};
_.G5.Object.defineProperties(cw.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],cw.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],cw.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],cw.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],cw);
_.D(cw,"ytd-compact-product-list-renderer",function(){if(Sfr!==void 0)return Sfr;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Sfr=W},{mode:1});var bqf;var w6=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(w6,_.S);_.p=w6.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.p.getBackgroundUrl=function(){var W=this.get("data.headerImage.thumbnails");return W?"url("+_.JY(W,this.hostElement.clientWidth)+")":""};
_.p.onDataChanged=function(){var W=this.getBackgroundUrl();W&&(this.header.style.backgroundImage=W);W=_.m1();var B=_.et(),z=this.get("data.trackingParams");z&&B&&W&&_.$q(W,B,_.XF(z));W=_.A(this.hostElement.querySelectorAll("yt-img-shadow"));for(B=W.next();!B.done;B=W.next())B.value.onShow()};
_.p.onPopupClosed=function(W){_.iP(W).localName==="ytd-membership-post-cancel-renderer"&&_.c0(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
w6.prototype.onPopupClosed=w6.prototype.onPopupClosed;w6.prototype.onDataChanged=w6.prototype.onDataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],w6.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],w6.prototype,"darkerDarkTheme",void 0);
_.Q([_.Hf("#header"),_.y("design:type",HTMLDivElement)],w6.prototype,"header",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],w6.prototype,"onDataChanged",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],w6.prototype,"onPopupClosed",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],w6);
_.D(w6,"ytd-membership-post-cancel-renderer",function(){if(bqf!==void 0)return bqf;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return bqf=W},{mode:1});var jh1;var VD=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(VD,_.S);VD.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
VD.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],VD.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],VD.prototype,"darkerDarkTheme",void 0);_.Q([_.Hf("ytd-feedback-survey-renderer"),_.y("design:type",Object)],VD.prototype,"feedbackSurveyRenderer",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],VD);
_.D(VD,"ytd-sponsorship-confirm-cancel-content",function(){if(jh1!==void 0)return jh1;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return jh1=W},{mode:1});var fCb;var JS=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");W.maybeSubmitFeedback=function(){W.content&&W.content.maybeSubmitFeedback()};
return W};
_.C(JS,_.S);_.p=JS.prototype;_.p.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.p.onYtPopupOpened=function(W,B){B===this&&this.data&&this.data.onOpenCommands&&_.Jr(this.hostElement,this.data.onOpenCommands,this.hostElement);_.c0(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.p.onYtPopupClosed=function(W,B){(B&&B.canceled===!0||B&&B.canceled===!1&&B.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Jr(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.p.onYtServiceRequestCompleted=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.p.onYtServiceRequestError=function(W){_.Wk(this.hostElement,W.detail.error.message)};
_.p.onDataChanged=function(){if(this.isAttached){var W=this.backgroundUrl;W&&(_.tH(this.hostElement).querySelector("#header").style.backgroundImage=W)}};
_.G5.Object.defineProperties(JS.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return W?"url("+_.JY(W,this.hostElement.clientWidth)+")":""}}});
JS.prototype.onDataChanged=JS.prototype.onDataChanged;JS.prototype.onYtServiceRequestError=JS.prototype.onYtServiceRequestError;JS.prototype.onYtServiceRequestCompleted=JS.prototype.onYtServiceRequestCompleted;JS.prototype.onYtPopupClosed=JS.prototype.onYtPopupClosed;JS.prototype.onYtPopupOpened=JS.prototype.onYtPopupOpened;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],JS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],JS.prototype,"data",void 0);_.Q([_.F({value:function(){return _.kq("SBOX_INAPPROPRIATE_CANCEL")}}),
_.y("design:type",String)],JS.prototype,"closeButtonAriaLabel",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],JS.prototype,"darkerDarkTheme",void 0);_.Q([_.Hf("#scrollable"),_.y("design:type",Object)],JS.prototype,"scrollable",void 0);_.Q([_.Hf("ytd-sponsorship-confirm-cancel-content"),_.y("design:type",Object)],JS.prototype,"content",void 0);
_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],JS.prototype,"onYtPopupOpened",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],JS.prototype,"onYtPopupClosed",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],JS.prototype,"onYtServiceRequestCompleted",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],JS.prototype,"onYtServiceRequestError",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JS.prototype,"onDataChanged",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],JS);
_.D(JS,"ytd-sponsorship-confirm-cancel-renderer",function(){if(fCb!==void 0)return fCb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return fCb=W},{mode:_.PJ("kevlar_poly_si_batch_j081")?1:2});var Oq9;var g6=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(g6,_.S);g6.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],g6.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],g6.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],g6.prototype,"darkerDarkTheme",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],g6);
_.D(g6,"ytd-sponsorships-celebration-content",function(){if(Oq9!==void 0)return Oq9;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Oq9=
W},{mode:1});var XBb;var KUj=_.ak(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),tS=function(){var W=_.S.apply(this,arguments)||this;W.scriptsAppended=!1;W.useFullWidthPrimaryButton=!1;W.buttonOverrides={type:"tonal",style:"overlay-dark"};return W};
_.C(tS,_.S);_.p=tS.prototype;_.p.dataChanged=function(){var W;this.useFullWidthPrimaryButton=!((W=this.data)==null||!W.useFullWidthPrimaryButton)};
_.p.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:_.r("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onDataChanged=function(){var W;(W=this.header)==null||W.style.setProperty("background-color",this.backgroundColor);if(W=this.headerImageUrl){var B;(B=this.header)==null||B.style.setProperty("background-image",W)}B=_.m1(4);W=_.et(4);var z=this.get("data.trackingParams");if(z&&W&&B){var G=_.XF(z);_.$q(B,W,G);_.r("combine_ve_grafts")?_.SK().graftServerVe(z,W,4):_.$q(B,W,G)}B=_.A(this.hostElement.querySelectorAll("yt-img-shadow"));for(W=B.next();!W.done;W=B.next())W.value.onShow();if(B=this.get("data.gtmId"))_.zr(B,
_.eD("GL","")),this.setupConversionTracking()};
_.p.setupConversionTracking=function(){if(!this.scriptsAppended){var W=document.createElement("script");var B=_.YA(KUj.join(""));_.dj(W,B);document.head.appendChild(W);W=document.createElement("noscript");W.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(W);this.scriptsAppended=!0}};
_.p.onPopupClosed=function(W){if(_.iP(W).localName==="ytd-sponsorships-celebration-renderer"){_.c0(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var B;this.data&&((B=this.data)==null?0:B.dismissCommand)&&_.IB.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.G5.Object.defineProperties(tS.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.aE(W)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return W?"url("+_.JY(W,this.hostElement.getBoundingClientRect().width)+")":""}}});
tS.prototype.onPopupClosed=tS.prototype.onPopupClosed;tS.prototype.onDataChanged=tS.prototype.onDataChanged;tS.prototype.dataChanged=tS.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],tS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],tS.prototype,"data",void 0);
_.Q([_.Hf("#header"),_.y("design:type",HTMLElement)],tS.prototype,"header",void 0);_.Q([_.F(),_.y("design:type",Object)],tS.prototype,"scriptsAppended",void 0);_.Q([_.F({type:Boolean,reflectToAttribute:!0}),_.y("design:type",Object)],tS.prototype,"useFullWidthPrimaryButton",void 0);_.Q([_.F(),_.y("design:type",Object)],tS.prototype,"buttonOverrides",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tS.prototype,"dataChanged",null);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tS.prototype,"onDataChanged",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],tS.prototype,"onPopupClosed",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],tS);
_.D(tS,"ytd-sponsorships-celebration-renderer",function(){if(XBb!==void 0)return XBb;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return XBb=W},{mode:1});var u1i;var sa=function(){var W=_.S.apply(this,arguments)||this;W.isToggleChecked=!1;return W};
_.C(sa,_.S);sa.prototype.onDataChanged=function(){var W;this.isToggleChecked=((W=this.data)==null?void 0:W.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
sa.prototype.close=function(){var W;((W=this.data)==null?0:W.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
sa.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var W,B=_.k((W=this.data)==null?void 0:W.switchButton,xKi);B&&(this.isToggleChecked&&B.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(B.switchOnInnertubeCommand),!this.isToggleChecked&&B.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(B.switchOffInnertubeCommand))};
sa.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
sa.prototype.onDataChanged=sa.prototype.onDataChanged;_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],sa.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],sa.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],sa.prototype,"isToggleChecked",void 0);_.Q([_.F({value:_.kq("CLOSE")}),_.y("design:type",String)],sa.prototype,"closeButtonAriaLabel",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sa.prototype,"onDataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],sa);
_.D(sa,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(u1i!==void 0)return u1i;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return u1i=W},{mode:1});var eEf;var Pw=function(){return _.S.apply(this,arguments)||this};
_.C(Pw,_.S);_.p=Pw.prototype;_.p.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"}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.detached=function(){this.playerElement.stop()};
_.p.onYtServiceRequestCompleted=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.p.onYtServiceRequestError=function(W){_.Wk(this.hostElement,W.detail.error.message)};
_.p.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.p.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.p.getTier=function(W,B){return!W||!W.tiers||B<0?null:_.k(W.tiers[B],qsf)};
_.p.moreThanOne=function(W){return!!(W&&W.length>1)};
_.p.tierOverviewTap=function(W){var B=this;this.selectedTier=W.model.index;_.BM(this,function(){_.v0(B.hostElement,"yt-refit")})};
_.p.computeSelectedClass=function(W,B){return this.isSelected(W,B)?"selected":""};
_.p.computeButtonAriaPressed=function(W,B){return this.isSelected(W,B)?"true":"false"};
_.p.isSelected=function(W,B){return W===B};
_.p.onDataChanged=function(){_.tH(this.hostElement).querySelector("#header-overlay").style.visibility="";_.tH(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 W=_.A(this.hostElement.querySelectorAll("yt-img-shadow")),
B=W.next();!B.done;B=W.next())B.value.onShow();var z;this.set("selectedTier",(z=this.get("data.targetTierIndex"))!=null?z:0);var G;(W=(G=this.data)==null?void 0:G.onVisible)&&this.ytComponentBehavior.resolveCommand(W)};
_.p.initializeVe=function(W){var B=_.m1(),z=_.et(),G=this.get("data.trackingParams");z&&B&&(this.screenLayer=4,B=_.D5(_.exx)(void 0,69877,{clientScreenNonce:B,visualElement:z},void 0,void 0,void 0),_.D2(B,69877,4),z=_.et(4),G&&z&&(G=_.XF(G),_.$q(B,z,G),W&&(this.offerVideoVe=_.PA(74659),_.$q(B,G,this.offerVideoVe))))};
_.p.setHeaderBackground=function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.tH(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.aE(W);if(W=this.getHeaderImage())W=_.JY(W,screen.width),_.tH(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+W+")"};
_.p.getHeaderImage=function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&W?W:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.p.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.p.setupVideoPlayer=function(W){var B=this,z,G,Y,d;return _.T(function(E){if(E.nextAddress==1)return z=B.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),G=B.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.r("kevlar_player_update_killswitch")?B.playerElement.update({args:{autoplay:z,video_id:W,player_params:G}}):B.playerElement.loadVideoWithPlayerVars({autoplay:z,video_id:W,player_params:G}),
E.yield(B.playerElement.getPlayerPromise(),2);Y=E.yieldResult;Y.addEventListener("onStateChange",function(v){B.onPlayerStateChange(v)});
Y.setScreenLayer(B.screenLayer);(d=_.m1(4))&&B.offerVideoVe&&_.U2(d,B.offerVideoVe);z&&(B.pauseOtherPlayers(),B.playerElement.focusOnPlayer(),B.playerElement.getPlayer().hideControls(),_.CG(_.fg,function(){B.fadeOutHeaderOverlay()},4E3));
_.HG(E)})};
_.p.onPlayerStateChange=function(W){W===1?this.backgroundPlayerElement&&(W=this.backgroundPlayerElement.player_.getPlayerState(),W!==1&&W!==3||this.backgroundPlayerElement.pause()):W===0&&(_.tH(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.tH(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.p.fadeOutHeaderOverlay=function(){_.tH(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.p.onHeaderTap=function(){if(this.offerVideo){_.tH(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var W;((W=this.playerElement.player_)==null?void 0:W.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(W=_.m1(4))&&this.offerVideoVe&&_.RP(W,this.offerVideoVe)}};
_.p.getBackgroundImageLayerClass=function(W){return W?"background-image-layer-with-video":""};
_.p.getHeaderClass=function(W){return W?"header-with-video":""};
_.p.getHeaderOverlayClass=function(W){return W?"header-overlay-with-video":""};
_.p.getTitleContainerClass=function(W,B){return W?"title-container-with-video":B?"title-container-without-video-flexible":"title-container-without-video"};
_.p.tierTitleDisplayStatus=function(W){return this.moreThanOne(W)?"hide":"show"};
_.p.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.dO().resolve(_.Qb).getPlayerElement():this.backgroundPlayerElement=_.TN();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var W=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=W===1||W===3;this.backgroundPlayerElement.pause()}};
_.p.isMiniplayerActive=function(){return _.dO().resolve(_.Qb).isMiniplayerActive()};
_.p.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("selected-tier-changed",this.selectedTier))};
Pw.prototype.selectedTierChangedForBinding=Pw.prototype.selectedTierChangedForBinding;Pw.prototype.onDataChanged=Pw.prototype.onDataChanged;Pw.prototype.onYtPopupClosed=Pw.prototype.onYtPopupClosed;Pw.prototype.onYtPopupOpened=Pw.prototype.onYtPopupOpened;Pw.prototype.onYtServiceRequestError=Pw.prototype.onYtServiceRequestError;Pw.prototype.onYtServiceRequestCompleted=Pw.prototype.onYtServiceRequestCompleted;
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Pw.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Pw.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Pw.prototype,"data",void 0);_.Q([_.F({value:0}),_.y("design:type",Number)],Pw.prototype,"selectedTier",void 0);
_.Q([_.F({value:""}),_.y("design:type",String)],Pw.prototype,"offerVideo",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Pw.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.Q([_.F({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Lu(this)}}),
_.y("design:type",String)],Pw.prototype,"playerId",void 0);_.Q([_.Hf("tp-yt-paper-dialog-scrollable"),_.y("design:type",Object)],Pw.prototype,"scrollable",void 0);_.Q([_.Hf("ytd-sponsorships-tier-renderer"),_.y("design:type",Object)],Pw.prototype,"tierRenderer",void 0);_.Q([_.Hf("#player"),_.y("design:type",Object)],Pw.prototype,"playerElement",void 0);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Pw.prototype,"onYtServiceRequestCompleted",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Pw.prototype,"onYtServiceRequestError",null);
_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pw.prototype,"onYtPopupOpened",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pw.prototype,"onYtPopupClosed",null);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pw.prototype,"onDataChanged",null);
_.Q([_.oN("selectedTier"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pw.prototype,"selectedTierChangedForBinding",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Pw);
_.D(Pw,"ytd-sponsorships-offer-renderer",function(){if(eEf!==void 0)return eEf;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return eEf=W},{mode:_.PJ("kevlar_poly_si_batch_j077")?1:2});var mQ0;var ZZ=function(){var W=_.S.apply(this,arguments)||this;W.buttonOverrides={type:"filled",style:"mono"};return W};
_.C(ZZ,_.S);ZZ.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}}}}}};
ZZ.prototype.backgroundColorChanged=function(){var W,B,z,G=(B=_.k((W=this.data)==null?void 0:W.content,n1n))==null?void 0:(z=B.backgroundColor)==null?void 0:z.backgroundColor;G&&(W=_.M_(G),_.tH(this.hostElement).querySelector("#banner").style.backgroundColor=W,_.tH(this.hostElement).querySelector("#abstract-art").style.backgroundColor=W)};
ZZ.prototype.attached=function(){this.JSC$20623_scroller&&(this.JSC$20623_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20623_scroller.attached&&typeof this.JSC$20623_scroller.attached==="function"&&this.JSC$20623_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ZZ.prototype.backgroundColorChanged=ZZ.prototype.backgroundColorChanged;_.Q([_.F(),_.y("design:type",Object)],ZZ.prototype,"data",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],ZZ.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.Hf("#scroller"),_.y("design:type",Object)],ZZ.prototype,"JSC$20623_scroller",void 0);_.Q([_.F(),_.y("design:type",Object)],ZZ.prototype,"buttonOverrides",void 0);
_.Q([_.oN("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZZ.prototype,"backgroundColorChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],ZZ);
_.D(ZZ,"ytd-sponsorships-promotion-celebration-renderer",function(){if(mQ0!==void 0)return mQ0;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return mQ0=W},{mode:_.PJ("kevlar_poly_si_batch_j077")?1:2});var xQb;var DQ1;var r6=function(){return _.S.apply(this,arguments)||this};
_.C(r6,_.S);r6.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
r6.prototype.computeIsInitiallyChecked=function(W){return W===1};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],r6.prototype,"data",void 0);_.Q([_.Hf("#checkbox"),_.y("design:type",Object)],r6.prototype,"checkbox",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],r6);
_.D(r6,"ytd-subscription-toggle-option-renderer",function(){if(DQ1!==void 0)return DQ1;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return DQ1=W},{mode:1});var kC=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");W.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return W};
_.C(kC,_.S);kC.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"}}}};
kC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kC.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var W=_.tH(this.hostElement).querySelector("#options").selected;W=this.data.options[W].subscriptionRadioOptionRenderer.serviceEndpoint;var B=_.tH(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");B&&W&&W.modifyChannelNotificationPreferenceEndpoint&&(B=B.getValue())&&(W.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[B]);_.dO().resolve(_.p4).resolveCommand(W,{form:{element:this.hostElement}});
_.c0(this.hostElement,"yt-close-popup-action")};
_.G5.Object.defineProperties(kC.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var W=this.data.options,B=0;B<W.length;B++){var z=W[B].subscriptionRadioOptionRenderer;if(z&&z.selected)return B}return null}}});
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],kC.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],kC.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],kC.prototype,"eventForwardingBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],kC.prototype,"ytRendererBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],kC.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],kC.prototype,"darkerDarkTheme",void 0);_.Q([_.H("data.options"),_.y("design:type",Object),_.y("design:paramtypes",[])],kC.prototype,"initialIndex",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],kC);
_.D(kC,"ytd-subscription-notification-options-renderer",function(){if(xQb!==void 0)return xQb;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return xQb=W},{mode:1});var Qhb;var lG=function(){return _.S.apply(this,arguments)||this};
_.C(lG,_.S);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],lG.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],lG.prototype,"data",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],lG);
_.D(lG,"ytd-tvfilm-offer-groups-renderer",function(){if(Qhb!==void 0)return Qhb;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Qhb=W},{mode:1});var yAi;var Cb=function(){var W=_.S.apply(this,arguments)||this;W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(Cb,_.S);_.p=Cb.prototype;_.p.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"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.p.computeThumbnailClass=function(W){return W.thumbnailOverlays?W.isShow?"thumbnail-show":"thumbnail-movie":W.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.p.computeCommerceSectionClass=function(W){return W.offers&&W.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.p.computeTitleClass=function(W){return W.offers&&W.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.p.onDataChanged=function(){[].concat(_.u7(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(W){W.onShow()})};
Cb.prototype.onDataChanged=Cb.prototype.onDataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Cb.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Cb.prototype,"darkerDarkTheme",void 0);
_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cb.prototype,"onDataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Cb);
_.D(Cb,"ytd-ypc-offers-overlay-renderer",function(){if(yAi!==void 0)return yAi;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return yAi=W},{mode:_.PJ("kevlar_poly_si_batch_j028")?1:2});var qf0;var nji=function(){this.usedMethods=new Set};
nji.prototype.add=function(W){this.usedMethods.add(W)};
nji.prototype.reset=function(){this.usedMethods.clear()};var LUi=function(W,B){this.query=W;this.previousSearchQuery=B;this.id=NX6++;if(!$Q9){B=_.eD("SBOX_SETTINGS");W="https://"+((B==null?void 0:B.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var z=B==null?void 0:B.REQUEST_LANGUAGE;z&&(W+="&hl="+z);(z=B==null?void 0:B.REQUEST_DOMAIN)&&(W+="&gl="+z);W+="&client=youtube&gs_ri=youtube";(z=B==null?void 0:B.SUGG_EXP_ID)&&(W+="&sugexp="+encodeURIComponent(z));(z=B==null?void 0:B.PSUGGEST_TOKEN)&&(W+="&tok="+z);(B=
B==null?void 0:B.SESSION_INDEX)&&(W+="&authuser="+B);_.r("desktop_enable_visual_suggest")&&(W+="&h=180&w=320&ytvs=1");$Q9=W}},UQf=function(W){var B="q="+encodeURIComponent(W.query);
W.previousSearchQuery&&(B+="&pq="+encodeURIComponent(W.previousSearchQuery));return B},MBb=function(){var W=_.eD("SBOX_SETTINGS"),B={};
if(W==null?0:W.SEND_VISITOR_DATA)B["X-Goog-Visitor-Id"]=W==null?void 0:W.VISITOR_DATA;return B},aCr=function(W){var B=$Q9;
B+="&gs_id="+W.id.toString(36);B+="&q="+encodeURIComponent(W.query);B+="&cp="+W.query.length;W.previousSearchQuery&&(B+="&pq="+encodeURIComponent(W.previousSearchQuery));(W=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(B+="&video_id="+W);return B},NX6=0,$Q9="";var REK=_.Xe.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,WSj=_.Xe.SEARCH_ENTITY_SUGGESTION_MOVIE,BQb=_.Xe.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,zBO=_.Xe.SEARCH_ENTITY_SUGGESTION_TV_SHOW,G$r=function(W,B){this.text=W;this.bold=B},YJq=function(W,B,z){this.input=B;
this.index=z;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=W[0];this.type=W[1];this.subtypes=W[2];var G;this.displayText=Ye((G=W[3])==null?void 0:G.b);var Y;this.ignoredPrefix=Ye((Y=W[3])==null?void 0:Y.a);var d,E;this.hasNewVideo=((d=W[3])==null?void 0:(E=d.zam)==null?void 0:E.toString())==="true"?!0:!1;var v;this.visualSuggestUrl=(v=W[3])==null?void 0:v.zai;var c;this.entityType=Ye((c=W[3])==null?void 0:c.zap);var J;this.entityName=Ye((J=W[3])==null?void 0:J.zao);var g;B=Ye((g=
W[3])==null?void 0:g.zaf);var t;this.entityMid=(t=W[3])==null?void 0:t.zae;g=i26(this.subtypes,this.entityMid);if(B&&g){if(B){t="";switch(g){case "YOUTUBE_ENTITY_TYPE_SONG":t=BQb;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":t=REK;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":t=zBO;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":t=WSj}g=g==="YOUTUBE_ENTITY_TYPE_SONG"||g==="YOUTUBE_ENTITY_TYPE_ALBUM"?t+" \u2022  \u2022 "+B:B}else g="";this.entitySubtitle=g}var P;this.externalChannelId=(P=W[3])==null?void 0:P.zav;var Z;
this.entityThumbnailAttributionUrl=(Z=W[3])==null?void 0:Z.zaq},pUr=function(W,B){var z=[],G,Y=(G=W.displayText)!=null?G:W.text;
(B==null?0:B.useEntityName)&&dLK(W)&&W.entityName&&(Y=W.entityName);if(W.type===33)return z.push(new G$r(Y,!1)),z;if(Y.length>=W.input.length&&Y.substring(0,W.input.length)===W.input)z.push(new G$r(W.input,!1)),z.push(new G$r(Y.substring(W.input.length),!0));else{var d=new Set(W.input.split(/\s/)),E=Y.split(/\s/);z=E.map(function(v,c){return new G$r(v.trim()+(c===E.length-1?"":" "),!d.has(v))})}return z},dLK=function(W){var B=!!i26(W.subtypes);
W=!!W.entityMid;return B||W};var Aln=function(W){this.rawResponse=["",[],{}];this.suggestions=[];try{var B=JSON.parse(E2f(W));if(typeof B==="object"&&B!==null)this.rawResponse=B;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(G){console.log("Suggest: Failed to parse SuggestResponse!");return}var z=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(G,Y){return new YJq(G,z,Y)})};var iJj=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new nji;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20660_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},EuO,TQ1=function(){EuO||(EuO=new iJj);
return EuO};
iJj.prototype.updateSuggestions=function(W){var B=this;this.availableSuggestions.forEach(function(z){B.previousSuggestions[z]=!0});
this.availableSuggestions=W.map(function(z){var G=z.type.toString();z.subtypes.length>0&&(G+="i"+z.subtypes.join("i"),G+="k"+z.suggestionSources.COMPLETE_SERVER.toString());return G})};
var vu1=function(W,B){var z=Date.now();W.firstEditTime<0&&(W.firstEditTime=z);B&&(W.lastQueryBuildTime=z);W.lastEditTime=z};
iJj.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20660_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var clr=function(W){var B="";W.availableSuggestions.forEach(function(Y){delete W.previousSuggestions[Y]});
for(var z=_.A(Object.keys(W.previousSuggestions)),G=z.next();!G.done;G=z.next())G=G.value,W.previousSuggestions[G]&&(B+=(B?"j":"")+G);return B},wU1=function(W,B){var z=[];
B&&(z[1]=B.toString());z[0]="youtube";z[7]=Date.now()-W.startTime;z[6]=W.sessionNumber;W.zeroPrefixSuggestionCount>=0&&(z[33]=W.zeroPrefixSuggestionCount);z[13]=W.outOfSyncResponseCount;if(W.availableSuggestions.length>0){for(var G=B="",Y=0,d=_.A(W.availableSuggestions),E=d.next();!E.done;E=d.next())E=E.value,E!==G&&(Y>1&&(B+="l"+Y),B+=(G?"j":"")+E,Y=0,G=E),Y+=1;Y>1&&(B+="l"+Y);z[3]=B}z[35]=clr(W);W.selectedSuggestionIndex>=0&&(z[2]=W.selectedSuggestionIndex);var v;if(B=(v=_.eD("SBOX_SETTINGS"))==
null?void 0:v.SUGG_EXP_ID)z[19]=W.normalize(B),v=0,W.experimentTriggeredBeforeFinal&&(v|=1),W.experimentTriggeredFinal&&(v|=2),z[20]=v;z[26]=Array.from(W.inputMethodsTracker.usedMethods).join("j");if(W.JSC$20660_totalRoundTripTime>0){z[15]=W.JSC$20660_totalRoundTripTime;z[14]=W.maxRoundTripTime;v=[];for(Y=B=0;Y<10;Y++)G=W.roundTripTimeHistogram[Y],G===0?B++:(B>1?v.push(Y+"-"+G):B===1?v.push("0j"+G):v.push(G.toString()),B=0);v=v.join("j");z[16]=v}W.zeroPrefixRoundTripTime>0&&(z[36]=W.zeroPrefixRoundTripTime);
W.lastQueryBuildTime>0&&(z[18]=W.lastQueryBuildTime-W.startTime);W.firstEditTime>0&&(z[4]=W.firstEditTime-W.startTime);W.lastEditTime>0&&(z[5]=W.lastEditTime-W.startTime);return z.join(".")};
iJj.prototype.normalize=function(W){return W.replaceAll(".","-")};
var Vpj=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var IM=function(){var W=_.S.apply(this,arguments)||this;W.microphoneSpinnerActive=!1;W.noAnimations=!1;W.boundExitClick=function(){W.onExitButtonClick()};
W.speechOverlayClassName="";W.isLevelAnimating=!1;W.playCloseDialogAudioFeedback=!0;W.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return W};
_.C(IM,_.S);_.p=IM.prototype;_.p.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.p.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=R4f()};
_.p.dataChanged=function(){this.logDialog()};
_.p.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var W;(W=this.manager.audioPlayer)!=null&&(W.JSC$19981_audioEnabled=!1)}this.manager.stop();(W=this.manager.audioPlayer)!=null&&(W.JSC$19981_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.p.handleSpeechQueryCompleteAction=function(W){var B=W.navigationAction;B&&(W.trackingParams&&_.SK().graftServerVe(W.trackingParams,this.dialogVe,5),_.v0(this.hostElement,"yt-navigate",{endpoint:B,tempData:this.getNavigationParams(B),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.p.onExitButtonClick=function(){this.closeDialog()};
_.p.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var W;if((W=this.manager)!=null){var B;(B=W.audioPlayer)==null||F8(B,"failure");W.setState("microphone-off");W.stop()}}else(W=this.manager)==null||W.start()};
_.p.transcriptionChanged=function(){var W,B;(((W=this.transcription)==null?0:W.low)||((B=this.transcription)==null?0:B.high))&&this.setState("transcribing",this.transcription)};
_.p.stateChanged=function(){this.setState(this.state,this.transcription)};
_.p.logDialog=function(){var W;(W=this.data)!=null&&W.trackingParams&&(W=_.SK(),_.KS(W,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=W.graftServerVe(this.data.trackingParams,void 0,5))};
_.p.getNavigationParams=function(W){var B={};if(_.r("web_yt_searchbox")){var z=TQ1();z.inputMethodsTracker.add(6);z=wU1(z,15);B.gs_l=z;var G;B.oq=((G=_.k(W,_.h8))==null?void 0:G.query)||""}else if(W=window.ytvoicesearchloggingparams){if(W=W())B.oq=W.oq,B.gs_l=W.gs_l}else _.nx(Error("Bl"));return B};
_.p.closeDialog=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.p.setState=function(W,B){if(this.data){var z=this.data,G={};switch(W){case "listening":G={headerText:z.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:z.microphoneButtonAriaLabel};break;case "timeout":G={headerText:z.promptHeader,microphoneState:"try-again",microphoneLabel:z.promptMicrophoneLabel,microphoneAriaLabel:z.promptMicrophoneLabel};break;case "microphone-off":G={headerText:z.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:z.promptMicrophoneLabel,
microphoneAriaLabel:z.promptMicrophoneLabel};break;case "transcribing":(B==null?0:B.low)||(B==null?0:B.high)?G={transcriptionLow:B==null?void 0:B.low,transcriptionHigh:B==null?void 0:B.high,microphoneState:"speaking",microphoneAriaLabel:z.microphoneButtonAriaLabel}:G={headerText:z.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:z.microphoneButtonAriaLabel};break;case "processing":G={headerText:z.loadingHeader,microphoneState:"processing",microphoneAriaLabel:z.microphoneButtonAriaLabel};
break;case "offline":G={headerText:z.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:z.connectionErrorMicrophoneLabel,microphoneAriaLabel:z.connectionErrorMicrophoneLabel};break;case "permission":G={headerText:z.permissionsHeader,bodyLine1:z.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:z.permissionsSubtext};break;case "permission-denied":G={headerText:z.disabledHeader,bodyLine1:z.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:z.disabledSubtext}}G.className=
W;this.speechOverlayState=G;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.p.setMicrophoneState=function(W){var B=this.isLevelAnimating;this.isLevelAnimating=W==="speaking";!B&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=W==="processing"&&!this.noAnimations};
_.p.setClass=function(W){this.speechOverlayClassName&&_.Pf(this.hostElement,this.speechOverlayClassName,!1);W&&(this.speechOverlayClassName=W,_.Pf(this.hostElement,W,!0))};
_.p.runLevelAnimation=function(){var W=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var B=1+Math.random()*.75,z=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+z/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+B+")");_.fg.addJob(function(){W.runLevelAnimation()},3,z)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
IM.prototype.stateChanged=IM.prototype.stateChanged;IM.prototype.transcriptionChanged=IM.prototype.transcriptionChanged;IM.prototype.onPopupClosed=IM.prototype.onPopupClosed;IM.prototype.dataChanged=IM.prototype.dataChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],IM.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],IM.prototype,"rendererStamperBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],IM.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],IM.prototype,"eventForwardingBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],IM.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],IM.prototype,"speechOverlayState",void 0);
_.Q([_.F(),_.y("design:type",Object)],IM.prototype,"microphoneSpinnerActive",void 0);_.Q([_.F({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.y("design:type",Object)],IM.prototype,"noAnimations",void 0);_.Q([_.F({selector:function(W){var B;return(B=W.voiceSearch)==null?void 0:B.transcription}}),
_.y("design:type",Object)],IM.prototype,"transcription",void 0);_.Q([_.F({selector:function(W){var B;return(B=W.voiceSearch)==null?void 0:B.overlay}}),
_.y("design:type",String)],IM.prototype,"state",void 0);_.Q([_.F(),_.y("design:type",Object)],IM.prototype,"boundExitClick",void 0);_.Q([_.Hf("#microphone-levels"),_.y("design:type",HTMLElement)],IM.prototype,"level",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IM.prototype,"dataChanged",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IM.prototype,"onPopupClosed",null);
_.Q([_.jJ("transcription"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IM.prototype,"transcriptionChanged",null);_.Q([_.jJ("state"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IM.prototype,"stateChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],IM);
_.D(IM,"ytd-voice-search-dialog-renderer",function(){if(qf0!==void 0)return qf0;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return qf0=W},{mode:1});var Jlj;var oM=function(){var W=_.S.apply(this,arguments)||this;W.isOverlay=!1;W.hidden=!1;return W};
_.C(oM,_.S);_.p=oM.prototype;_.p.onPopupClosed=function(){this.toggleIconState(!1)};
_.p.computeIcon=function(){var W,B,z;return(B=_.k((W=this.data)==null?void 0:W.icon,MS1))==null?void 0:(z=B.icon)==null?void 0:z.iconType};
_.p.computeIconBadgeShape=function(){var W;return{iconBadgeType:"cart",iconBadgeText:(W=this.iconBadgeEntity)==null?void 0:W.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.p.onClick=function(){var W;(W=this.data)!=null&&W.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.p.computeHidden=function(W){return!W};
_.p.toggleIconState=function(W){this.iconButton&&(this.iconButton.pressed=W)};
oM.prototype.onPopupClosed=oM.prototype.onPopupClosed;_.Q([_.h(_.TB),_.y("design:type",Object)],oM.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],oM.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],oM.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],oM.prototype,"isOverlay",void 0);
_.Q([_.F({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.y("design:type",Object)],oM.prototype,"hidden",void 0);_.Q([_.F({selectorArgs:["data.iconBadgeEntityKey"],selector:function(W,B){return _.P3(W.entities,"iconBadgeEntity",B)}}),
_.y("design:type",Object)],oM.prototype,"iconBadgeEntity",void 0);_.Q([_.Hf("yt-icon-button"),_.y("design:type",HTMLButtonElement)],oM.prototype,"iconButton",void 0);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oM.prototype,"onPopupClosed",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],oM);
_.D(oM,"ytd-icon-badge-topbar-button-renderer",function(){if(Jlj!==void 0)return Jlj;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Jlj=W},{mode:1});var guj;var hS=function(){var W=_.S.apply(this,arguments)||this;W.premiumOptions=[];W.darkerDarkTheme=_.r("web_darker_dark_theme");return W};
_.C(hS,_.S);hS.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.G5.Object.defineProperties(hS.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],hS.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],hS.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Array)],hS.prototype,"premiumOptions",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],hS.prototype,"darkerDarkTheme",void 0);_.Q([_.H("premiumOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],hS.prototype,"hasPremiumOptions",null);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],hS);
_.D(hS,"ytd-offline-promo-content",function(){if(guj!==void 0)return guj;var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return guj=W},{mode:1});var tpq;var Hw=function(){var W=_.S.apply(this,arguments)||this;W.premiumOptions=[];return W};
_.C(Hw,_.S);Hw.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var W;this.premiumOptions=Agj((W=this.data)==null?void 0:W.formats)};
Hw.prototype.onClickSubmit=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var W;(W=_.TN())==null||W.pause()};
Hw.prototype.attached=function(){this.JSC$20680_scroller&&(this.JSC$20680_scroller.dialogElement=this.hostElement.parentNode)};
_.G5.Object.defineProperties(Hw.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Hw.prototype.dataChanged=Hw.prototype.dataChanged;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Hw.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Hw.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Hw.prototype,"data",void 0);
_.Q([_.F({computed:"computeIcon_(data.headersIcon)",value:""}),_.y("design:type",String)],Hw.prototype,"headersIcon",void 0);_.Q([_.F(),_.y("design:type",Array)],Hw.prototype,"premiumOptions",void 0);_.Q([_.Hf("#scroller"),_.y("design:type",Object)],Hw.prototype,"JSC$20680_scroller",void 0);_.Q([_.H("headersIcon"),_.y("design:type",Object),_.y("design:paramtypes",[])],Hw.prototype,"showIcon",null);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hw.prototype,"dataChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Hw);
_.D(Hw,"ytd-offline-promo-renderer",function(){if(tpq!==void 0)return tpq;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tpq=W},{mode:1});var s$Y;var Fd=function(){var W=_.S.apply(this,arguments)||this;W.playbackPauseInterval=NaN;W.isLoading=!1;W.hasError=!1;W.dialogClass="";W.youtubeLabel=_.kq("LOGO_ALT_LABEL",{},"YouTube Home");W.logoName="yt-logos-ext:yt-logo-updated";W.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return W};
_.C(Fd,_.S);_.p=Fd.prototype;_.p.onDataChange=function(){var W;if(this.showEOMV1Text=!((W=this.data)==null||!W.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.p.attached=function(){this.pausePlayer()};
_.p.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.p.handleLangSelect=function(W){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[W.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.p.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.p.handleSaveConsent=function(W){var B=this;this.showLoadingSpinner();this.showLoadingSpinner();QP0(_.k(W,asn)).catch(function(z){_.Oc(new _.oX("Something went wrong when save consent "+(z.message?z.message:z)+"."));B.hideLoadingSpinner();B.showErrorMessage()})};
_.p.handleDisablePersonalization=function(W){var B=this;this.showLoadingSpinner();yr6(_.k(W,Mx0)).then(function(){B.dialog.close();B.resumePlayer()}).catch(function(z){_.Oc(new _.oX("Something went wrong when disable personalization "+(z.message?z.message:z)+"."));
B.hideLoadingSpinner();B.showErrorMessage()})};
_.p.showLoadingSpinner=function(){var W=this;this.showSpinnerJobId=_.fg.addLowPriorityJob(function(){W.isLoading=!0},500)};
_.p.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.fg.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.p.showErrorMessage=function(){var W=this;this.hasError=!0;_.fg.addLowPriorityJob(function(){W.hasError=!1},2E3)};
_.p.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.VW(function(){try{var W=_.TN();W&&W.pause()}catch(B){}},100))};
_.p.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var W=_.TN();W&&W.play()}catch(B){}};
_.G5.Object.defineProperties(Fd.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.eomV1Text)return[];W=[];for(var B=["SHIELD","WARNING","BAR_CHART"],z=this.data.eomV1Text.essentialCookieMsg.items,G=0;G<B.length&&G<z.length;G++)W.push({icon:B[G],text:z[G]});return W}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.eomV1Text)return[];W=[];for(var B=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],z=this.data.eomV1Text.nonEssentialCookieMsg.items,G=0;G<B.length&&G<z.length;G++)W.push({icon:B[G],text:z[G]});return W}}});
Fd.prototype.onDataChange=Fd.prototype.onDataChange;_.Q([_.F(),_.y("design:type",Object)],Fd.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Fd.prototype,"showEOMV1Text",void 0);_.Q([_.F(),_.y("design:type",Object)],Fd.prototype,"isLoading",void 0);_.Q([_.F(),_.y("design:type",Object)],Fd.prototype,"hasError",void 0);_.Q([_.F(),_.y("design:type",Number)],Fd.prototype,"showSpinnerJobId",void 0);_.Q([_.F(),_.y("design:type",Object)],Fd.prototype,"dialogClass",void 0);
_.Q([_.Hf("#dialog"),_.y("design:type",Object)],Fd.prototype,"dialog",void 0);_.Q([_.Hf("#cb-header"),_.y("design:type",HTMLElement)],Fd.prototype,"header",void 0);_.Q([_.Hf("#lang-select"),_.y("design:type",HTMLElement)],Fd.prototype,"langSelect",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Fd.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Fd.prototype,"ytComponentBehavior",void 0);
_.Q([_.F(),_.y("design:type",String)],Fd.prototype,"youtubeLabel",void 0);_.Q([_.F(),_.y("design:type",Object)],Fd.prototype,"logoName",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fd.prototype,"onDataChange",null);_.Q([_.H("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],Fd.prototype,"eomEssentialCookieMsgItems",null);
_.Q([_.H("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],Fd.prototype,"eomNonEssentialCookieMsgItems",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Fd);
_.D(Fd,"ytd-consent-bump-v2-lightbox",function(){if(s$Y!==void 0)return s$Y;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return s$Y=W},{mode:1});var P$j;var SU=function(){return _.S.apply(this,arguments)||this};
_.C(SU,_.S);SU.prototype.ready=function(){if(!_.lO()||con)var W=!0;else con=!0,W=!1;W||(W=document.querySelector("ytd-app"),W||(W=document.body),this.internalLightBox=_.tH(W).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.Q([_.F(),_.y("design:type",Object)],SU.prototype,"data",void 0);_.Q([_.Hf("#lightbox"),_.y("design:type",Object)],SU.prototype,"lightBox",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],SU);
_.D(SU,"ytd-consent-bump-v2-renderer",function(){if(P$j!==void 0)return P$j;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return P$j=W},{mode:1});var ZJf;var rlY;var k$q;var bG=function(){return _.S.apply(this,arguments)||this};
_.C(bG,_.S);_.p=bG.prototype;_.p.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&IJf(this.toastManager,this.toastType)};
_.p.open=function(W){this.toast&&(this.ephemeralAction&&_.dO().resolve(_.G8).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=W!=null?W:0,this.toastManager.enqueue(this.toast,W)):this.toast.open())};
_.p.close=function(W){var B;(B=this.toast)==null||B.close();this.toastManager&&W===1&&IJf(this.toastManager,W)};
_.p.refit=function(){var W;(W=this.toast)==null||W.refit()};
_.p.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var W;(W=this.toast)==null||W.close()}};
_.p.setVerticalOffset=function(W){this.toast&&(this.toast.verticalOffset=W,this.toast.fit())};
_.p.computeButtonClass_=function(W){return W?"toast-button":""};
_.p.computeText_=function(W){return _.zR(W)};
_.p.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ZV("toast-opened-changed",this.toastOpened))};
_.p.updateToastOpenedFromBinding=function(W){this.toastOpened=W.detail.value};
_.G5.Object.defineProperties(bG.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var W,B,z=(W=this.data)==null?void 0:(B=W.actionButton)==null?void 0:B.buttonRenderer;return(z==null?void 0:z.command)||(z==null?void 0:z.serviceEndpoint)||(z==null?void 0:z.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var W=[],B;((B=this.data)==null?0:B.responseText)&&W.push(_.zR(this.data.responseText));var z;((z=this.data)==null?0:z.subText)&&W.push(_.zR(this.data.subText));var G,Y;if((G=this.data)==null?0:(Y=G.actionButton)==null?0:Y.buttonRenderer){var d,E;W.push(((d=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(E=d.accessibilityData)==null?void 0:E.label)||_.zR(this.data.actionButton.buttonRenderer.text))}return W.filter(function(v){return v}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var W,B;return(B=(W=this.toast)==null?void 0:W.opened)!=null?B:!1}}});
bG.prototype.toastOpenedChangedForBinding=bG.prototype.toastOpenedChangedForBinding;bG.prototype.toastOpenedChanged=bG.prototype.toastOpenedChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],bG.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],bG.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],bG.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],bG.prototype,"duration",void 0);
_.Q([_.F(),_.y("design:type",Number)],bG.prototype,"toastType",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],bG.prototype,"useCloseButton",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],bG.prototype,"closeToastOnActionButtonClick",void 0);_.Q([_.F({value:function(){return _.kq("SBOX_INAPPROPRIATE_CANCEL")}}),
_.y("design:type",String)],bG.prototype,"closeButtonAriaLabel",void 0);_.Q([_.F(),_.y("design:type",Boolean)],bG.prototype,"toastOpened",void 0);_.Q([_.F(),_.y("design:type",Boolean)],bG.prototype,"hasOpened",void 0);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],bG.prototype,"command",null);_.Q([_.H("labelText","command","duration"),_.y("design:type",Object),_.y("design:paramtypes",[])],bG.prototype,"ephemeralAction",null);
_.Q([_.H("ephemeralAction"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bG.prototype,"hasEphemeralAction",null);_.Q([_.Hf("#toast"),_.y("design:type",Object)],bG.prototype,"toast",void 0);_.Q([_.F({value:function(){return{style:"call-to-action-inverse"}}}),
_.y("design:type",Object)],bG.prototype,"buttonOverrides",void 0);_.Q([_.F({value:{style:"mono-inverse"}}),_.y("design:type",Object)],bG.prototype,"closeButtonOverrides",void 0);_.Q([_.F({value:function(){return _.dO().resolve(_.Y8(_.aG))}}),
_.y("design:type",Object)],bG.prototype,"toastManager",void 0);_.Q([_.H("data.responseText","data.subText","data.actionButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],bG.prototype,"labelText",null);_.Q([_.oN("toastOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bG.prototype,"toastOpenedChanged",null);
_.Q([_.oN("toastOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bG.prototype,"toastOpenedChangedForBinding",null);_.Q([_.NJ({is:"yt-notification-action-renderer",disableElementRegistration:!0})],bG);
_.D(bG,"yt-notification-action-renderer",function(){if(k$q===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;rlY===void 0&&(rlY=document.createElement("template"));var G=rlY;z.call(B,G.content.cloneNode(!0),W.content.firstChild);k$q=W}W=k$q;return W},{mode:2});var jU=function(){var W=_.S.apply(this,arguments)||this;W.duration=4E3;W.downloadingCount=0;W.downloadedCount=0;W.downloadingOnlySmartDownloads=!1;W.sessionTotalDownloads=0;W.sessionDownloaded=0;W.previousSessionsDownloaded=0;W.totalDownloadPercentage=0;W.currentDownloadProgress=0;W.currentDownloadPercentage=0;W.isLeaderTab=!0;W.isFullScreen=!1;W.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};W.boundBeforeUnload=function(B){W.isLeaderTab&&W.downloadingCount>0&&(B.preventDefault(),
B.returnValue=!0)};
return W};
_.C(jU,_.S);_.p=jU.prototype;
_.p.open=function(){this.updateDownloadState();if(this.data){var W=this.sessionDownloaded+1,B=this.sessionTotalDownloads>1?_.kq("VIDEOS_DOWNLOADING_RATIO",{downloaded:W.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+W+"/"+this.sessionTotalDownloads):_.kq("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(B=this.sessionTotalDownloads>1?_.kq("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:W.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
W+"/"+this.sessionTotalDownloads):_.kq("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));W=this.isLeaderTab?_.kq("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.zR(this.data.responseText)!==B||_.zR(this.data.subText)!==W)this.set("data.responseText",_.Bg(B)),this.set("data.subText",_.Bg(W)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.p.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.p.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.p.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.p.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var W=this.downloadedCount-this.previousSessionsDownloaded;W<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-W);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.p.handleFullscreenChange=function(W){(this.isFullScreen=W)||this.updatePopup()};
jU.prototype.updateCurrentDownloadProgress=jU.prototype.updateCurrentDownloadProgress;jU.prototype.updatePopup=jU.prototype.updatePopup;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],jU.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],jU.prototype,"ytEventForwardingBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],jU.prototype,"actionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],jU.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],jU.prototype,"duration",void 0);_.Q([_.F({selector:function(W){return _.Vdu(W.entities).length}}),
_.y("design:type",Object)],jU.prototype,"downloadingCount",void 0);_.Q([_.F({selector:RYb}),_.y("design:type",Object)],jU.prototype,"downloadedCount",void 0);_.Q([_.F({selector:function(W){var B=_.Vdu(W.entities);return a4r(W.entities,B)}}),
_.y("design:type",Object)],jU.prototype,"downloadingOnlySmartDownloads",void 0);_.Q([_.F(),_.y("design:type",Object)],jU.prototype,"sessionTotalDownloads",void 0);_.Q([_.F(),_.y("design:type",Object)],jU.prototype,"sessionDownloaded",void 0);_.Q([_.F(),_.y("design:type",Object)],jU.prototype,"previousSessionsDownloaded",void 0);_.Q([_.F(),_.y("design:type",Object)],jU.prototype,"totalDownloadPercentage",void 0);
_.Q([_.F({selector:function(W){var B;W=(B=_.Vdu(W.entities))!=null?B:[];return W.length>0?_.G3D(W.slice(-1)):0}}),
_.y("design:type",Object)],jU.prototype,"currentDownloadProgress",void 0);_.Q([_.F(),_.y("design:type",Object)],jU.prototype,"currentDownloadPercentage",void 0);_.Q([_.F({selector:_.P1x}),_.y("design:type",Object)],jU.prototype,"isLeaderTab",void 0);_.Q([_.Hf("yt-notification-action-renderer"),_.y("design:type",Object)],jU.prototype,"notificationActionRenderer",void 0);
_.Q([_.jJ("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jU.prototype,"updatePopup",null);_.Q([_.jJ("currentDownloadProgress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jU.prototype,"updateCurrentDownloadProgress",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],jU);
_.D(jU,"ytd-video-download-toast-renderer",function(){if(ZJf!==void 0)return ZJf;var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ZJf=W},{mode:1});var lci;var C$b;var fb=function(){return _.S.apply(this,arguments)||this};
_.C(fb,_.S);fb.prototype.computeIsRedLogo=function(W,B){!W&&B&&(W=B);return W==="YOUTUBE_RED_LOGO"||W==="YOUTUBE_PREMIUM_LOGO"};
fb.prototype.computeLogoName=function(W){W=this.componentBehavior.computeIcon_(W);return W===""?"yt-logos-ext:yt-logo-updated":W};
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],fb.prototype,"componentBehavior",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.y("design:type",Boolean)],fb.prototype,"isRedLogo",void 0);_.Q([_.F({computed:"computeLogoName(data)"}),_.y("design:type",String)],fb.prototype,"logoName",void 0);_.Q([_.F({value:{}}),_.y("design:type",Object)],fb.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],fb.prototype,"logoType",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-logo"})],fb);
_.D(fb,"ytd-logo",function(){if(C$b!==void 0)return C$b;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return C$b=W},{mode:_.PJ("kevlar_poly_si_batch_j074")?1:2});var Oa=function(){var W=_.S.apply(this,arguments)||this;W.animationRef={};return W};
_.C(Oa,_.S);_.p=Oa.prototype;_.p.attached=function(){document.addEventListener("yt-navigate-finish",_.Co(this,this.logYoodle))};
_.p.detached=function(){document.removeEventListener("yt-navigate-finish",_.Co(this,this.logYoodle))};
_.p.logYoodle=function(){var W,B;if((W=this.data)==null?0:(B=W.loggingDirectives)==null?0:B.trackingParams)this.ytRendererBehavior.markDirty(),_.SK().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.p.computeHideImg=function(W,B){return!!W||!!B};
_.p.computeHideYtdLogo=function(W,B){return!W||!!B};
_.p.computeHideLottie=function(W){return!W};
_.p.computeIsRedLogo=function(W){return W==="YOUTUBE_RED_LOGO"||W==="YOUTUBE_PREMIUM_LOGO"};
_.p.renderLogoEntity=function(){var W=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),B=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),z=this.getLogoTitleText(this.data),G=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==W&&(this.url=W);this.animatedUrl!==B&&(this.animatedUrl=B);this.logoTitleText!==z&&(this.logoTitleText=z);this.lottieUrl!==G&&(this.lottieUrl=G,this.lottiePlayerProps=this.computeLottiePlayerProps(G))};
_.p.getSanitizedThumbnail=function(W){return W&&W.thumbnails?_.IuD(W.thumbnails,122)||"":""};
_.p.getThumbnailUrl=function(W,B){if(!B)return"";var z,G;W=W?(z=B.darkThemeLogo)==null?void 0:z.thumbnail:(G=B.lightThemeLogo)==null?void 0:G.thumbnail;return this.getSanitizedThumbnail(W)};
_.p.getAnimatedThumbnailUrl=function(W,B){return B?this.getSanitizedThumbnail(W?B.darkThemeAnimatedLogo:B.lightThemeAnimatedLogo):""};
_.p.getLogoTitleText=function(W){if(W)return _.zR(W.tooltipText)};
_.p.computeLogoIcon=function(W,B){if(B){var z,G;return W?(z=B.darkThemeLogo)==null?void 0:z.icon:(G=B.lightThemeLogo)==null?void 0:G.icon}};
_.p.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.p.getLottieUrl=function(W,B){var z,G,Y,d;return W?B==null?void 0:(z=B.darkThemeLogo)==null?void 0:(G=z.lottieAnimation)==null?void 0:G.url:B==null?void 0:(Y=B.lightThemeLogo)==null?void 0:(d=Y.lottieAnimation)==null?void 0:d.url};
_.p.computeLottiePlayerProps=function(W){if(W){var B;if((B=this.animationRef)==null?0:B.lottieEl){var z;(z=this.animationRef)==null||z.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:W,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.p.onLottieError=function(){this.data&&this.lottieUrl&&_.v0(this.hostElement,"yoodle-error")};
_.p.onImgError=function(){this.data&&!this.lottieUrl&&_.v0(this.hostElement,"yoodle-error")};
Oa.prototype.playAnimation=Oa.prototype.playAnimation;Oa.prototype.renderLogoEntity=Oa.prototype.renderLogoEntity;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Oa.prototype,"data",void 0);_.Q([_.F({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.y("design:type",Boolean)],Oa.prototype,"hideImg",void 0);
_.Q([_.F({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.y("design:type",Boolean)],Oa.prototype,"hideYtdLogo",void 0);_.Q([_.F({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.y("design:type",Boolean)],Oa.prototype,"hideLottie",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.y("design:type",Boolean)],Oa.prototype,"isRedLogo",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],Oa.prototype,"useDarkThemeYoodle",void 0);_.Q([_.F(),_.y("design:type",String)],Oa.prototype,"url",void 0);_.Q([_.F(),_.y("design:type",String)],Oa.prototype,"animatedUrl",void 0);_.Q([_.F(),_.y("design:type",String)],Oa.prototype,"logoTitleText",void 0);_.Q([_.F({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.y("design:type",Object)],Oa.prototype,"logoIcon",void 0);_.Q([_.F(),_.y("design:type",Object)],Oa.prototype,"logoType",void 0);
_.Q([_.F(),_.y("design:type",String)],Oa.prototype,"lottieUrl",void 0);_.Q([_.F(),_.y("design:type",Object)],Oa.prototype,"lottiePlayerProps",void 0);_.Q([_.F(),_.y("design:type",Object)],Oa.prototype,"animationRef",void 0);_.Q([_.oN("data"),_.oN("useDarkThemeYoodle"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Oa.prototype,"renderLogoEntity",null);
_.Q([_.IN("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Oa.prototype,"playAnimation",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Oa);
_.D(Oa,"ytd-yoodle-renderer",function(){if(lci!==void 0)return lci;var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return lci=W},{mode:_.PJ("kevlar_poly_si_batch_j074")?1:2});var IcK;var ouY;var hB0=_.M$.currentPageTypeSelector,HJn=_.M$.currentPageSubTypeSelector,Xd=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return W};
_.C(Xd,_.S);_.p=Xd.prototype;_.p.onYoodleError=function(){_.r("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.p.computeLogoName=function(W){W=this.componentBehavior.computeIcon_(W);return W===""?"yt-logos-ext:yt-logo-updated":W};
_.p.computeTitle=function(W,B,z){return z&&(B==null?0:B.tooltipText)?_.zR(B.tooltipText):_.zR(W)};
_.p.computeAriaLabel=function(W,B,z){return z&&(B==null?0:B.tooltipText)?_.zR(W):""};
_.p.computeShowYoodle=function(W,B,z){return!W||!B&&!!z&&!_.mP.isEmpty(z)};
_.p.onNavigateHomeAction=function(){if(_.r("kevlar_miniplayer_navigate_home_from_app_killswitch")){var W;(W=_.tH(this.hostElement).querySelector(".yt-simple-endpoint"))==null||W.click()}};
_.p.computeLogoHref=function(W,B,z){var G;(z==null?0:z.onTapCommand)?G=this.componentBehavior.computeHref_(z.onTapCommand):W&&(G=this.componentBehavior.computeHref_(W));return G?G:B};
_.p.computeCommand=function(W,B){return(B==null?void 0:B.onTapCommand)||W};
_.p.getEndpointForm=function(){if(_.r("kevlar_topbar_disable_cache_only_home")){var W=_.dO().resolve(_.v7),B=hB0(W.getState())||"";W=HJn(W.getState())||"";return{disableCache:B==="ytd-browse"&&W==="home"}}return{disableCache:!0}};
Xd.prototype.onYoodleError=Xd.prototype.onYoodleError;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Xd.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Xd.prototype,"componentBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Xd.prototype,"ytdReduxBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],Xd.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],Xd.prototype,"countryCode",void 0);_.Q([_.F({selectorArgs:["data.overrideEntityKey"],selector:function(W,B){return _.P3(W.entities,"logoEntity",B)}}),
_.y("design:type",Object)],Xd.prototype,"logoEntity",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.y("design:type",Boolean)],Xd.prototype,"showYoodle",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Xd.prototype,"yoodleError",void 0);_.Q([_.F({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.y("design:type",String)],Xd.prototype,"titleText",void 0);
_.Q([_.F({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.y("design:type",String)],Xd.prototype,"ariaLabelText",void 0);_.Q([_.F({value:"/"}),_.y("design:type",String)],Xd.prototype,"defaultEndpointUrl",void 0);_.Q([_.F({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.y("design:type",String)],Xd.prototype,"endpointUrl",void 0);
_.Q([_.F({computed:"computeCommand(data.endpoint, logoEntity)"}),_.y("design:type",String)],Xd.prototype,"command",void 0);_.Q([_.F(),_.y("design:type",Object)],Xd.prototype,"logoType",void 0);_.Q([_.F({}),_.y("design:type",Boolean)],Xd.prototype,"useDarkThemeYoodle",void 0);_.Q([_.IN("yoodle-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xd.prototype,"onYoodleError",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Xd);
_.D(Xd,"ytd-topbar-logo-renderer",function(){if(ouY!==void 0)return ouY;var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ouY=W},{mode:_.PJ("kevlar_poly_si_batch_j027")?1:2});var FSY=0;var SJn=_.Xe.SEARCH_APPEND_LABEL,bJr=_.Xe.SUGGESTION_NEW_VIDEOS_TEXT,j$9=_.Xe.SUGGESTION_THUMBNAIL_LABEL,fcO=_.Xe.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,OJY=_.m(function(W){function B(C7){var tK,a3;return _.T(function(wi){if(wi.nextAddress==1)return tK=new Request(C7),_.kA(wi,2),wi.yield(fetch(tK,{credentials:"include"}),4);if(wi.nextAddress!=2)return Sf(!0),_.Nn(wi,0);a3=_.h6(wi);_.Oc(a3);_.HG(wi)})}
var z=W.isHighlighted;var G=W.suggestion;var Y=W.onClickCallback;var d=W.onHoverUpdateCallback;var E=W.labels;var v=W.queryBuilderFunction;var c=W.onRemoveCallback;var J=W.suggestionIndex;var g=W.generateUniqueId;var t=W.highlightedId;var P=W.useScrollMargin;var Z=W.isKeyboardMode;var l=null,b=null,O=_.LG("div"),K=_.LG("span");W=_.A(_.g4(!1,void 0,"mxSc0e"));var e=W.next().value,a=W.next().value,q=_.ag("a",function(C7){C7&&_.be(237477,C7,b,function(tK){b=tK})}),n=_.ag("button",function(C7){C7&&_.be(237477,
C7,b,function(tK){b=tK})}),L=_.lF(function(C7){if((C7==null?void 0:C7.button)===2)return C7.preventDefault(),!1;
var tK=_.m1();tK&&l&&_.W3(tK,l,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var a3;Y(C7,G().text,G().index,G().entityMid,C7==null?void 0:(a3=C7.detail)==null?void 0:a3.wasSelectedByKeyboard);return!1}),By=function(){return G().type===35},gk=function(){return _.r("desktop_enable_single_suggestion_highlight")},vy=function(){return _.iO("desktop_suggestions_panel_row_height")||0},lx=function(){var C7;
return _.r("desktop_enable_new_video_metadata")&&((C7=G())==null?void 0:C7.hasNewVideo)===!0},Zv=function(){return _.r("desktop_enable_visual_suggest")},VR=function(){return _.r("desktop_enable_entity_suggest")&&dLK(G())},ux=function(){return G().entitySubtitle},X2=function(){return gk()?(z==null?void 0:z())||BQ()&&!(Z==null?0:Z()):(z==null?void 0:z())||BQ()},WQ=function(){var C7=_.eD("SBOX_SETTINGS");
return By()&&!(C7==null?0:C7.HIDE_REMOVE_LINK)},XH=function(){return pUr(G(),{useEntityName:VR()})},wU,RD=!((wU=_.dO().resolve(_.Y8(_.YG)))==null||!wU()),sF=function(){return By()?_.r("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Vd=function(){return E==null?void 0:E().SUGGESTION_DISMISS_LABEL},bR=function(){return E==null?void 0:E().SUGGESTION_DISMISSED_LABEL};
W=_.A(_.g4(!1,void 0,"WMms1e"));wU=W.next().value;var Sf=W.next().value;W=_.A(_.g4(!1,void 0,"PyL0t"));var UF=W.next().value,pu=W.next().value,BQ=UF,Z9=_.lF(function(){v(K.value.innerText);return!1}),cn=_.lF(function(C7){C7.preventDefault();
return!1}),rU=_.lF(function(C7){var tK=G().text,a3=_.eD("SBOX_SETTINGS"),wi="https://"+(a3.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
wi+="&delq="+encodeURIComponent(tK);(tK=a3==null?void 0:a3.PSUGGEST_TOKEN)&&(wi+="&tok="+tK);(a3=a3==null?void 0:a3.SESSION_INDEX)&&(wi+="&authuser="+a3);B(wi);C7.preventDefault();(C7=_.m1())&&b&&_.W3(C7,b,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");c(J==null?void 0:J());return!1}),Gq=_.lF(function(){if(gk()&&(Z==null?0:Z()))return!1;
pu(!0);d(!0);return!1}),Td=_.lF(function(){pu(!1);
d(!1);return!1}),Bn=_.lF(function(){a(!0);
return!1}),T6=_.lF(function(){a(!1);
return!1}),$M=_.lF(function(C7){C7.preventDefault();
if(G().entityThumbnailAttributionUrl){C7=G().entityThumbnailAttributionUrl;var tK=G().entityName,a3={urlEndpoint:{url:C7},commandMetadata:{webCommandMetadata:{url:C7}}};C7={buttonViewModel:{title:_.kq("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:{dismissDialogEndpoint:{}}}}};a3={buttonViewModel:{title:_.kq("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:a3}}};
tK={dialogHeaderViewModel:{headline:{content:tK!=null?tK:_.kq("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var wi={basicContentViewModel:{paragraphs:[{text:{content:_.kq("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};C7={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:tK,footer:{panelFooterViewModel:{primaryButton:a3,secondaryButton:C7,shouldHideDivider:!0}},content:wi}}}}};_.dO().resolve(_.p4).resolveCommand(C7)}return!1});
W=_.A(_.g4("",void 0,"yG5Sx"));var Pn=W.next().value,FH=W.next().value;_.bk(function(){WQ()&&FH(g==null?void 0:g(J==null?void 0:J()));O.value&&_.be(12453,O.value,l,function(C7){l=C7})});
return _.w(_.V,{cond:wU,then:function(){var C7={};return _.w("div",{class:_.kG("ytSuggestionComponentRemovedText",(C7.ytSuggestionComponentLargerRemovedText=function(){return Zv()},C7)),
style:function(){return vy()>0?"height: "+vy()+"px;":""},
role:"button"},bR)},
else:function(){var C7={},tK={};return _.w("div",{class:_.kG("ytSuggestionComponentSuggestion",(C7.ytSuggestionComponentSuggestionHover=function(){return!gk()},C7.ytSuggestionComponentHighlighted=X2,C7.ytSuggestionComponentPersonalizedSuggestion=By,C7.ytSuggestionComponentMweb=!1,C7.ytSuggestionComponentLargerSuggestion=function(){return lx()||Zv()},C7.ytSuggestionComponentThumbnailSuggestion=function(){return Zv()},C7.ytSuggestionComponentRoundedSuggestion=function(){return _.r("desktop_enable_scrollable_suggestions_panel")&&
_.r("desktop_enable_suggestions_panel_padding")},C7.ytSuggestionComponentThumbnailPadding=function(){return Zv()&&!By()},C7)),
style:function(){return vy()>0?"height: "+vy()+"px;":""},
role:"presentation","on:mousedown":L,"on:mouseover":Gq,"on:mouseout":Td,el:O},_.w("div",{class:_.kG("ytSuggestionComponentText",(tK.ytSuggestionComponentScrollMargin=P,tK)),"aria-label":function(){return lx()?G().text+" "+bJr:G().text},
id:function(){return g==null?void 0:g(J==null?void 0:J())},
"on:mousedown":L,role:"option"},_.w(_.V,{cond:function(){return G().type!==33},
then:function(){return _.w(_.hY,{icon:sF,className:"ytSuggestionComponentIcon"})}}),_.w("div",{class:"ytSuggestionComponentLeftContainer"},_.w("span",{el:K,
role:"button",tabindex:0},_.w(_.IJ,{each:XH},function(a3){return a3.bold?_.w("span",{class:"ytSuggestionComponentBold"},a3.text):_.w("span",null,a3.text)})),_.w(_.V,{cond:function(){return VR()&&!!G().entitySubtitle||lx()},
then:function(){return _.w("div",{class:"ytSuggestionComponentMetadataContainer"},_.w(_.V,{cond:function(){return VR()&&!!G().entitySubtitle},
then:function(){return _.w("div",{class:"ytSuggestionComponentEntitySubtitle"},ux)}}),_.w(_.V,{cond:function(){return lx()},
then:function(){return _.w("div",{class:"ytSuggestionComponentNewVideoContainer"},_.w("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.w("div",{class:"ytSuggestionComponentNewVideoText"},bJr))}}))}}))),_.w("div",{class:"ytSuggestionComponentRightContainer"},_.w(_.V,{cond:function(){return Zv()&&G().visualSuggestUrl!==void 0},
then:function(){var a3={};return _.w("div",{class:"ytSuggestionComponentThumbnailContainer"},_.w("img",{"aria-label":j$9,class:_.kG("ytSuggestionComponentVisualSuggestThumbnail",(a3.ytSuggestionComponentCircularFrame=function(){return VR()&&G().subtypes.includes(790)},a3.ytSuggestionComponentEntitySuggestThumbnail=function(){return VR()},a3)),
src:function(){return G().visualSuggestUrl}}),_.w(_.V,{cond:function(){return VR()&&!!G().entityThumbnailAttributionUrl},
then:function(){var wi={};return _.w("span",{title:fcO,role:"tooltip"},_.w("div",{"on:mouseover":Bn,"on:mouseout":T6,"on:mousedown":$M,class:_.kG("ytSuggestionComponentThumbnailOverlay",(wi.ytSuggestionComponentThumbnailOverlayHidden=function(){return!e()},wi))},_.w(_.hY,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.w(_.HR,null,_.w(_.oJ,{when:function(){return Zv()&&WQ()}},function(){var a3={};
return _.w("button",{class:_.kG("ytSuggestionComponentRemoveLinkClearButton",(a3.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Pn()&&Pn()===(t==null?void 0:t())},a3.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!X2()},a3)),
el:n,"on:mousedown":rU,"aria-label":Vd,id:function(){return Pn()}},_.w(_.hY,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.w(_.oJ,{when:function(){return!(Zv()&&G().visualSuggestUrl!==void 0)&&WQ()}},function(){var a3={};
return _.w("a",{class:_.kG("ytSuggestionComponentRemoveLink",(a3.ytSuggestionComponentRemoveLinkDark=RD,a3.ytSuggestionComponentRemoveLinkSelected=function(){return Pn()&&Pn()===(t==null?void 0:t())},a3)),
el:q,"on:mousedown":rU,"aria-label":Vd,tabindex:0,role:"button",id:function(){return Pn()}},Vd)}),_.w(_.oJ,{when:function(){return!1}},function(){return _.w("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Z9,"on:mousedown":cn,role:"button","aria-label":SJn},_.w(_.hY,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"zh");var XU0=_.ak(["//www.google.com/textinputassistant/","/","_tia.js"]),KSi=_.m(function(){return _.w("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.w("button",{class:"ytdTextInputAssistantButton","on:click":_.lF(function(){TQ1().inputMethodsTracker.add(3);var W,B=(W=_.eD("SBOX_SETTINGS"))==null?void 0:W.REQUEST_LANGUAGE;if(B)return _.NO(_.sY(XU0,14,B)),!1})},_.w("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Ah");var uSO=function(){this.cache=new Map},eBO=function(W){for(var B=_.A(W.cache.entries()),z=B.next();!z.done;z=B.next()){var G=_.A(z.value);
z=G.next().value;G=G.next().value;G.suggestions.some(function(Y){return Y.type===35})&&W.cache.delete(z)}};var mLY=_.Xe.SEARCH,xLO=_.Xe.SEARCH_CLEAR_LABEL,DLq=new _.t1("FAKE_SUGGEST_RESPONSE");_.Vm(_.m(function(W){function B(){Bn||(Bn=setTimeout(function(){$M()},1E3))}
function z(lR,kM,X6){if(lR.trim()){Td=lR;_.uk("REFINEMENTS_TUPLE",void 0);rU=!0;var ZR;kM=wU1(UF,kM);var tM=(ZR=W.searchEndpoint)==null?void 0:ZR.call(W);_.v2j(lR,kM,tM,sF.value.value,X6);$M();sF.value.value=lR;sF.value.blur();UF.reset()}}
function G(lR){return _.T(function(kM){return kM.return(new Promise(function(X6){var ZR=new XMLHttpRequest;ZR.open("GET",aCr(lR),!0);ZR.withCredentials=!0;var tM=_.eD("SBOX_SETTINGS");(tM==null?0:tM.SEND_VISITOR_DATA)&&ZR.setRequestHeader("X-Goog-Visitor-Id",tM==null?void 0:tM.VISITOR_DATA);ZR.onload=function(){X6(ZR.responseText)};
ZR.onerror=function(){_.Oc(Error("Dl"));X6(null)};
setTimeout(function(){ZR.abort()},1E4);
ZR.send(null)}))})}
function Y(lR){var kM,X6,ZR,tM;return _.T(function(Hc){switch(Hc.nextAddress){case 1:return kM={credentials:"include",headers:MBb()},window.AbortController&&(X6=new AbortController,setTimeout(function(){X6.abort("ytsbox-suggest-timeout")},1E4),kM.signal=X6.signal),_.kA(Hc,2),Hc.yield(fetch(aCr(lR),kM),4);
case 4:ZR=Hc.yieldResult.text();_.Nn(Hc,3);break;case 2:return tM=_.h6(Hc),tM!=="ytsbox-abort-last"&&tM!=="ytsbox-suggest-timeout"&&_.Oc(tM),Hc.return(null);case 3:return Hc.return(ZR)}})}
function d(lR){var kM,X6,ZR;return _.T(function(tM){switch(tM.nextAddress){case 1:if(kM=_.dO().resolve(_.Y8(DLq)))return tM.return(kM);X6=Date.now();B();return _.r("yt_searchbox_xhr")?tM.yield(G(lR),5):tM.yield(Y(lR),4);case 4:ZR=tM.yieldResult;tM.jumpTo(3);break;case 5:ZR=tM.yieldResult;case 3:if(ZR){Bn&&(clearTimeout(Bn),Bn=null);var Hc=UF,Kx=X6,eN=lR.query.length===0;Kx=Date.now()-Kx;eN?Hc.zeroPrefixRoundTripTime=Kx:(Hc.JSC$20660_totalRoundTripTime+=Kx,Hc.maxRoundTripTime=Math.max(Hc.maxRoundTripTime,
Kx),eN=Math.floor(Kx/100),eN>=Vpj.length?++Hc.roundTripTimeHistogram[9]:++Hc.roundTripTimeHistogram[Vpj[eN]])}return tM.return(ZR)}})}
function E(lR){var kM,X6,ZR;return _.T(function(tM){if(tM.nextAddress==1)return(kM=Sf.cache.get(UQf(lR)))?tM.return(kM):tM.yield(d(lR),2);X6=tM.yieldResult;if(X6===null)return tM.return(null);ZR=new Aln(X6);lR.query.length===0&&ZR.suggestions.length===0||Sf.cache.set(UQf(lR),ZR);return tM.return(ZR)})}
function v(lR){var kM,X6;return _.T(function(ZR){if(ZR.nextAddress==1){Gq=!1;var tM=Td;tM=_.ner()==="search"?(_.$x(location.href,"search_query")||_.$x(location.href,"q"))===tM:!1;kM=new LUi(lR,tM?Td:null);return ZR.yield(E(kM),2)}X6=ZR.yieldResult;if(X6===null)return ZR.return();kM.query.length===0&&(UF.zeroPrefixSuggestionCount=X6.suggestions.length);if(kM.id<=T6)return UF.outOfSyncResponseCount++,ZR.return();if(document.activeElement!==sF.value)return ZR.return();T6=kM.id;var Hc=UF,Kx=X6.rawResponse[2]||
{};Hc.experimentTriggeredBeforeFinal||(Hc.experimentTriggeredBeforeFinal=Hc.experimentTriggeredFinal);Hc.experimentTriggeredFinal=!!Kx.e;UF.updateSuggestions(X6.suggestions);O(-1);WQ([]);X6.suggestions!==Z()&&QB(X6.suggestions.length);l(X6.suggestions);gk(X6.suggestions.length>0&&X6.suggestions[0].type===33);bR&&(bR.hidden=X6.suggestions.length===0,By()?(bR.style.minWidth="",Hc=bR.style,Kx=(tM=Z()[0])==null?void 0:tM.ignoredPrefix,Hc.marginLeft=(Kx?Math.min(Kx.length*6,Vd.value.offsetWidth):0).toString()+
"px"):(bR.style.minWidth=Vd.value.offsetWidth+"px",bR.style.marginLeft="0"),d3());_.HG(ZR)})}
function c(){if(!rU)return!1;var lR=_.eD("REFINEMENTS_TUPLE");return lR?(lR=lR[1].map(function(kM,X6){return new YJq([kM,0,[71]],sF.value.value,X6)}),Z()!==lR&&QB(lR.length),WQ([]),l(lR),UF.updateSuggestions(lR),rU=!1,bR.hidden=lR.length===0,Gq=lR.length>0,!0):!1}
function J(){var lR=sF.value.value;(typeof lR==="string"||lR instanceof String)&&lR!==""?q(!0):q(!1)}
function g(){if(_.ner()==="search"){var lR=window.location.href;try{var kM=_.$x(lR,"search_query")||_.$x(lR,"q")||""}catch(X6){kM=""}kM&&(sF.value.value=kM,q(!0))}}
var t=_.A(_.g4([],void 0,"OC8EPc")),P=t.next().value;t=t.next().value;var Z=P,l=t;P=_.A(_.g4(-1,void 0,"t2tVQb"));var b=P.next().value,O=P.next().value;P=_.A(_.g4(-1,void 0,"v0RZCe"));var K=P.next().value,e=P.next().value;P=_.A(_.g4(!1,void 0,"rjAnI"));var a=P.next().value,q=P.next().value;P=_.A(_.g4(!1,void 0,"SyGLvb"));var n=P.next().value,L=P.next().value;t=_.A(_.g4(!1,void 0,"tL09Cb"));P=t.next().value;t=t.next().value;var By=P,gk=t;t=_.A(_.g4(!1,void 0,"FlH7mc"));P=t.next().value;var vy=t.next().value;
t=_.A(_.g4(!1,void 0,"ea3fwe"));var lx=t.next().value,Zv=t.next().value;t=_.A(_.g4(1,void 0,"vSK1xe"));var VR=t.next().value,ux=t.next().value;t=_.A(_.g4([],void 0,"ijlw4b"));var X2=t.next().value,WQ=t.next().value;t=_.A(_.g4(!1,void 0,"HcRey"));var XH=t.next().value,wU=t.next().value;t=_.r("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var RD=_.LG("yt-searchbox"),sF=_.LG("input"),Vd=_.LG("div"),bR,Sf=
new uSO,UF=TQ1(),pu=_.dO().resolve(_.Y8(_.YG)),BQ=function(){var lR;return((lR=W.forceDarkMode)==null?void 0:lR.call(W))||!(pu==null||!pu())},Z9=function(){return _.r("desktop_enable_scrollable_suggestions_panel")},cn="i"+FSY++,rU=!1,Gq=!1,Td="",Bn=null,T6=-1,$M=function(){WQ([]);
l([]);gk(!1);bR&&(bR.hidden=!0);Bn&&(clearTimeout(Bn),Bn=null);O(-1)},Pn=function(lR,kM){lR.preventDefault();
wU(!0);bR&&(bR.hidden=!1);var X6=b();lR=Z();var ZR=X2();kM=cg6(kM);X6+=kM;for(X6>=lR.length?X6=-1:X6<-1&&(X6=lR.length-1);X6!==-1&&(ZR.includes(X6)||X6>=lR.length||X6<0);)X6+=kM,X6>=lR.length&&(X6=-1);O(X6);b()>=0&&(sF.value.value=Z()[b()].text,e(0),J(),lR=b(),ZR=K(),(ZR=document.getElementById(Qc[lR][ZR]))&&Z9()&&(lR===Z().length-1?bR.scrollTop=bR.scrollHeight:ZR.scrollIntoView({block:"nearest",inline:"start"})))},FH=_.lF(function(lR){if(!(lR.relatedTarget instanceof Element&&lR.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){L(!0);
var kM;(kM=W.focusCallback)==null||kM.call(W,!0);c()||(Gq?bR.hidden=!1:(_.v0(RD.value,"yt-autonav-pause-focus",{}),v(lR.target.value)))}}),C7=_.lF(function(lR){if(!(lR.relatedTarget instanceof Element&&lR.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){L(!1);
var kM;(kM=W.focusCallback)==null||kM.call(W,!1);bR.scrollTop=0;bR.hidden=!0;_.v0(RD.value,"yt-autonav-pause-blur",{})}}),tK=function(lR){lR=cg6(lR);
var kM;((kM=Qc[b()])==null?0:kM[K()+lR])&&e(K()+lR)},a3=_.lF(function(lR){var kM=lR.target;
switch(lR.keyCode){case 13:lR.preventDefault();var X6;if((X6=Qc[b()])==null?0:X6[K()]){var ZR;(ZR=document.getElementById(Qc[b()][K()]))==null||ZR.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}lR=lR.shiftKey?4:3;X6=UF;ZR=b();X6.selectedSuggestionIndex=ZR;z(kM.value,lR);break;case 27:bR&&(bR.hidden=!0);break;case 40:Pn(lR,40);break;case 38:Pn(lR,38);break;case 39:tK(39);break;case 37:tK(37);break;case 229:UF.inputMethodsTracker.add(4);break;default:UF.inputMethodsTracker.add(1),
vu1(UF)}return!1}),wi=_.lF(function(lR){v(lR.target.value);
J();Z9()&&bR&&(bR.scrollTop=0);return!1}),jw=_.lF(function(){UF.inputMethodsTracker.add(2);
vu1(UF);return!1});
_.bk(function(){if(bR){UF.reset();if(window.ResizeObserver){var lR=new ResizeObserver(function(){By()||(bR.style.minWidth=Vd.value.offsetWidth+"px")});
lR.observe(Vd.value);(new ResizeObserver(function(){d3()})).observe(bR);
_.fR(function(){lR.disconnect()})}g();
window.addEventListener("yt-navigate-finish",g);window.addEventListener("yt-focus-searchbox",function(){sF.value.focus()});
var kM;vy((kM=_.eD("SBOX_SETTINGS"))==null?void 0:kM.HAS_ON_SCREEN_KEYBOARD)}else _.jy(new _.oX("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var hj=_.lF(function(lR){lR.preventDefault();z(sF.value.value,12);return!1}),D9=_.lF(function(lR){lR.preventDefault();
var kM,X6;(kM=sF)==null||(X6=kM.value)==null||X6.focus();var ZR,tM;((ZR=sF)==null?void 0:(tM=ZR.value)==null?void 0:tM.value)!==""&&(sF.value.value="",sF.value.dispatchEvent(new Event("input")));return!1}),kY=_.lF(function(){var lR=Ylb(sF.value.value,Z().filter(function(kM){return kM.type!==35}).map(function(kM){return{label:kM.text}}));
_.c0(RD.value,"yt-open-popup-action",[{openPopupAction:lR},document.body]);return!1}),nO=_.lF(function(){sF.value.focus();
return!1}),lQ=function(lR,kM,X6,ZR,tM){UF.selectedSuggestionIndex=X6;
z(kM,tM?3:1,ZR)},ql=function(lR){sF.value.value=lR;
sF.value.dispatchEvent(new Event("input"));UF.inputMethodsTracker.add(5);vu1(UF,!0)},Qc=[[]],H_=function(lR){var kM="searchbox-suggestion"+_.L_(_.i$);
Qc[lR].push(kM);return kM},QB=function(lR){if(Z()){Qc=[[]];
for(var kM=0;kM<lR;kM++)Qc.push([])}},d3=function(){if(Z9()){var lR=bR,kM=lR.scrollTop;
lR=lR.scrollHeight-lR.clientHeight;Zv(kM>=lR);kM=Math.abs(lR-kM);kM<=40?ux(1-(40-kM)/40):ux(1)}},A8=function(){return"opacity: "+VR()*100+"%"},h0=_.lF(function(){d3();
return!1}),eQ=_.lF(function(){wU(!1);
return!1}),nu,gU={},Vr={},fm={},Ij={};
return _.w("yt-searchbox",{class:_.kG("ytSearchboxComponentHost",(gU.ytSearchboxComponentMweb=!1,gU.ytSearchboxComponentDesktop=!0,gU["yt-searchbox-filled-query"]=function(){return a()},gU["ytd-masthead"]=function(){return!n()},gU.ytSearchboxComponentHostDark=BQ,gU)),
role:"search",el:RD,"client-ve-type":10349},_.w("div",{el:Vd,"on:click":nO,class:_.kG("ytSearchboxComponentInputBox",(Vr.ytSearchboxComponentInputBoxDark=BQ,Vr.ytSearchboxComponentInputBoxHasFocus=n,Vr))},_.w("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":hj},_.w(_.V,{cond:n,then:function(){return _.w("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.w(_.hY,{icon:"SEARCH"}))}}),_.w("input",{el:sF,
class:_.kG("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":cn,"aria-expanded":!((nu=bR)==null?0:nu.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":C7,"on:focus":FH,"on:input":wi,"on:keydown":a3,"on:paste":jw,placeholder:W.placeholderText,"aria-activedescendant":function(){var lR;return(lR=Qc[b()])==null?void 0:lR[K()]},
"aria-autocomplete":"list",role:"combobox"})),_.w(_.V,{cond:P,then:function(){return _.w("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.w(KSi,null))}}),_.w(_.V,{cond:a,
then:function(){return _.w("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.w("button",{class:"ytSearchboxComponentClearButton","on:click":D9,"aria-label":W.clearButtonAriaLabel||xLO},_.w(_.hY,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.w(_.O6,{model:{}})))}})),_.w("button",{class:_.kG("ytSearchboxComponentSearchButton",(fm.ytSearchboxComponentSearchButtonDark=BQ,fm)),
"on:click":hj,"aria-label":mLY,title:W.placeholderText},_.w(_.hY,{icon:"SEARCH"})),_.w(_.V,{cond:function(){if(mEb()&&_.r("mweb_voice_search")&&W.voiceSearchButton)return W.voiceSearchButton()},
then:function(lR){var kM={};return _.w("div",{class:_.kG("ytSearchboxComponentVoiceSearchWrapper",(kM.ytSearchboxComponentHideVoiceSearchButton=function(){return a()},kM))},_.w(_.Sc,{data:lR},{buttonRenderer:function(X6){return _.w(_.rs,{data:X6.data,
onButtonClickCallback:function(){}})}}))}}),_.w("div",{el:_.TG(function(lR){return void(bR=lR)}),
id:cn,class:_.kG("ytSearchboxComponentSuggestionsContainer",(Ij.ytSearchboxComponentSuggestionsContainerDark=BQ,Ij["yt-searchbox-suggestions-container"]=!1,Ij.ytSearchboxComponentSuggestionsContainerScrollable=Z9(),Ij.ytSearchboxComponentSuggestionsContainerAnimated=t,Ij)),"on:scroll":h0,"on:mousemove":eQ,role:"listbox",hidden:!0},_.w(_.IJ,{each:Z},function(lR,kM){return _.w(OJY,{suggestion:lR,isHighlighted:function(){return kM()===b()},
onClickCallback:lQ,onHoverUpdateCallback:function(X6){if(_.r("desktop_enable_single_suggestion_highlight")){var ZR=kM();X6&&(e(0),O(ZR))}},
onRemoveCallback:function(X6){eBO(Sf);X6===void 0||X6<0||X2().includes(X6)||WQ([].concat(_.u7(X2()),[X6]))},
labels:W.labels,queryBuilderFunction:ql,suggestionIndex:kM,generateUniqueId:H_,highlightedId:function(){var X6;return(X6=Qc[b()])==null?void 0:X6[K()]},
useScrollMargin:Z9(),isKeyboardMode:XH})}),_.w(_.V,{cond:function(){return!By()&&Z().find(function(lR){return lR.type!==35})&&_.r("searchbox_reporting")},
then:function(){return _.w("button",{class:"ytSearchboxComponentReportButton","on:mousedown":kY},_.kq("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.w(_.V,{cond:function(){return!lx()&&Z9()},
then:function(){return _.w("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.w("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:A8}))}})))},"Bh"),"yt-searchbox",{props:{searchEndpoint:_.kz,
placeholderText:_.kz,labels:_.kz,voiceSearchButton:_.kz,focusCallback:_.wS,clearButtonAriaLabel:_.kz,forceDarkMode:_.kz}});var Kb=function(){var W=_.S.apply(this,arguments)||this;W.menuButtonTargetId="topbar-guide-menu";W.narrow=!1;W.menuStrings={BACK_ALT_LABEL:_.kq("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.kq("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.kq("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.kq("SBOX_PLACEHOLDER",void 0,"Search")};W.pageDarkTheme=document.documentElement.hasAttribute("dark");W.watchPageScrollTop=0;W.theater=!1;W.fullscreen=!1;W.disableFrostedGlassDuringViewTransition=
!1;W.desktopUnifiedSearchPanelMode=_.r("desktop_enable_unified_search_panel");W.cinematicTheaterMode=_.r("web_cinematic_theater_mode");W.aiCompanionEnabled=_.r("enable_ai_companion");W.ytSearchboxFocused=!1;W.searchboxLabels=_.eD("SBOX_LABELS");W.topbarIsAboveChipbar=!1;W.isDarkThemeForced=!1;W.areGhostCardsHidden=!1;W.guideKeyboardToggle=!1;W.voiceSearchManager=R4f();W.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};W.setYtSearchboxFocused=
function(B){W.ytSearchboxFocused=B};
W.toggleFrostedGlassDuringViewTransition=function(B){W.disableFrostedGlassDuringViewTransition=B};
return W};
_.C(Kb,_.S);_.p=Kb.prototype;_.p.computeSimpleText=function(W){return _.zR(W)};
_.p.onDarkChanged=function(){for(var W=_.A(this.buttons||[]),B=W.next();!B.done;B=W.next())B.value.isOverlay=!!this.dark;W=_.A(this.buttonRenderers||[]);for(B=W.next();!B.done;B=W.next())B.value.overrides=this.computeButtonOverride()};
_.p.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.p.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var W=_.gW(_.J5(),"aa");_.Pf(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||W||(this.isDarkThemeForced=this.dark=!0);this.logoType?(W=this.hostElement.querySelector("#masthead-logo"))&&(_.r("polymer_on_demand_shady_dom")?W.setAttribute("slot","masthead-logo-old"):_.o0(W)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Co(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Co(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.p.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Co(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Co(this,this.onSetTheaterModeEnabled))};
_.p.dataChanged=function(){var W=this.data;W&&(this.voiceEnabled=W.voiceSearchButton?R4f().isSupported():!1,_.tq7(_.aq(),this.menuButtonTargetId,this.guideButton),W.onReceivedActions&&W.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Jr(this.hostElement,W.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&W&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Pf(this.hostElement,"dark",!1),_.Pf(this.hostElement,"theater",!1),
(W=this.hostElement.querySelector("#masthead-logo"))&&(_.r("polymer_on_demand_shady_dom")?W.setAttribute("slot","masthead-logo-old"):_.o0(W))))};
_.p.computeCenterHidden=function(){var W;return this.data&&!((W=this.data.searchbox)==null?0:W.fusionSearchboxRenderer)};
_.p.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Pf(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.p.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.p.onWatchScroll=function(W){this.watchPageScrollTop=W.detail||0;this.updateMastheadBackgroundOpacity()};
_.p.onFullscreenChangeAction=function(W){W||(this.watchPageScrollTop=0);this.fullscreen=W;this.updateMastheadBackgroundOpacity()};
_.p.onSetTheaterModeEnabled=function(W){this.theater=W.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.p.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.p.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.p.setBackgroundOpacity=function(W){W=this.calculateBackgroundOpacity(W);this.background.style.opacity=""+W};
_.p.calculateBackgroundOpacity=function(W){var B=this.theater&&this.cinematicTheaterMode?.6:0,z=this.hostElement.clientHeight/2;return Math.min(Math.max(W,0),z)/z*(1-B)+B};
_.p.shouldShowCinematicMastHead=function(){var W=_.r("kevlar_watch_grid")&&!_.r("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(W||this.pageDarkTheme)};
_.p.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.p.focusGuide=function(){this.guideButton.focus()};
_.p.onGuideToggleTap=function(){_.v0(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.p.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.p.onGuideToggleHover=function(){_.v0(this.hostElement,"yt-guide-hover")};
_.p.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.p.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.p.closeOnOutsideClickCondition=function(W){for(W=_.AH(W);W[0];){var B=W.shift();if(B instanceof Element&&B.id==="kbd")return!1}return!0};
_.p.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.p.pausePlayer=function(){var W;(W=_.TN())==null||W.pause();this.pauseMiniplayer()};
_.p.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var W;(W=_.dO().resolve(_.Qb).getPlayerElement())==null||W.pause()}};
_.p.isMiniplayerActive=function(){return _.dO().resolve(_.Qb).isMiniplayerActive()};
_.p.updateNarrowFromBinding=function(W){this.narrow=W.detail.value};
_.p.onYtSendFeedbackAction=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.p.registerWithViewTransitionManager=function(){uPi(_.dO().resolve(_.LD),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.G5.Object.defineProperties(Kb.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("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 W;return(W=this.data)==null?void 0:W.voiceSearchButton}}}});
Kb.prototype.narrowChanged=Kb.prototype.narrowChanged;Kb.prototype.onWatchPageChange=Kb.prototype.onWatchPageChange;Kb.prototype.onRendererStamperFinished=Kb.prototype.onRendererStamperFinished;Kb.prototype.dataChanged=Kb.prototype.dataChanged;Kb.prototype.onDarkChanged=Kb.prototype.onDarkChanged;_.Q([_.h(_.Mp),_.y("design:type",Object)],Kb.prototype,"ironResizableBehavior",void 0);_.Q([_.h(_.m6b),_.y("design:type",Object)],Kb.prototype,"ytdExpandableInputBehavior",void 0);
_.Q([_.h(_.ge.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Kb.prototype,"ytdGuideStateAwareBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Kb.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Kb.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.TB),_.y("design:type",Object)],Kb.prototype,"ytdReduxBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Kb.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Kb.prototype,"narrow",void 0);_.Q([_.F(),_.y("design:type",Object)],Kb.prototype,"logoType",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Kb.prototype,"voiceEnabled",void 0);
_.Q([_.F(),_.y("design:type",Object)],Kb.prototype,"menuStrings",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Kb.prototype,"dark",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Kb.prototype,"pageDarkTheme",void 0);_.Q([_.F(),_.y("design:type",Object)],Kb.prototype,"watchPageScrollTop",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.A5x}),_.y("design:type",Boolean)],Kb.prototype,"isWatchPage",void 0);
_.Q([_.F({reflectToAttribute:!0,selector:_.iIu}),_.y("design:type",Boolean)],Kb.prototype,"isShortsPage",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Kb.prototype,"theater",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Kb.prototype,"fullscreen",void 0);_.Q([_.F({reflectToAttribute:!0,selector:_.c5y}),_.y("design:type",String)],Kb.prototype,"frostedGlassMode",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],Kb.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.Q([_.F(),_.y("design:type",Object)],Kb.prototype,"aiCompanionEnabled",void 0);_.Q([_.F(),_.y("design:type",Object)],Kb.prototype,"ytSearchboxFocused",void 0);_.Q([_.F4("#buttons > *"),_.y("design:type",Array)],Kb.prototype,"buttons",void 0);_.Q([_.F4("ytd-button-renderer"),_.y("design:type",Array)],Kb.prototype,"buttonRenderers",void 0);
_.Q([_.Hf("#background"),_.y("design:type",HTMLDivElement)],Kb.prototype,"background",void 0);_.Q([_.Hf("#guide-button"),_.y("design:type",Object)],Kb.prototype,"guideButton",void 0);_.Q([_.Hf("#logo"),_.y("design:type",Object)],Kb.prototype,"logo",void 0);_.Q([_.F({computed:"computeButtonOverride(dark)"}),_.y("design:type",Object)],Kb.prototype,"buttonOverrides",void 0);
_.Q([_.jJ("dark"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Kb.prototype,"onDarkChanged",null);_.Q([_.F({value:function(){return this.onVoiceTap.bind(this)}}),
_.y("design:type",Function)],Kb.prototype,"boundOnTapVoiceButton",void 0);_.Q([_.F(),_.y("design:type",Object)],Kb.prototype,"topbarIsAboveChipbar",void 0);_.Q([_.F(),_.y("design:type",String),_.y("design:paramtypes",[])],Kb.prototype,"guideIcon",null);_.Q([_.H("voiceEnabled"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Kb.prototype,"shouldShowVoiceSearchButton",null);_.Q([_.H("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Kb.prototype,"voiceSearchButton",null);
_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Kb.prototype,"dataChanged",null);_.Q([_.IN("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Kb.prototype,"onRendererStamperFinished",null);_.Q([_.jJ("isWatchPage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Kb.prototype,"onWatchPageChange",null);
_.Q([_.jJ("narrow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Kb.prototype,"narrowChanged",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-masthead"})],Kb);
_.D(Kb,"ytd-masthead",function(){if(IcK!==void 0)return IcK;var W=document.createElement("template");_.I(W,'\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 id="ai-companion-button" hidden="[[!data.aiCompanionButton]]" 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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return IcK=W},{mode:_.PJ("kevlar_poly_si_batch_j036")?1:2});var Q$Y;var ylK={},qJY={},nui={},NQK={},$Lj=(NQK.OFFLINE=(ylK["publicytnetworkstatus-online"]="BACK_ONLINE",ylK),NQK.ONLINE=(qJY["publicytnetworkstatus-offline"]="OFFLINE",qJY),NQK.BACK_ONLINE=(nui["publicytnetworkstatus-offline"]="OFFLINE",nui.TIMER_TRIGGER="ONLINE",nui),NQK),uG=function(){var W=_.S.apply(this,arguments)||this;W.currentState="ONLINE";W.scheduledJobId=0;W.bannerString="";W.bannerVe=null;W.networkStatusManagerInstance=new _.ng;return W};
_.C(uG,_.S);_.p=uG.prototype;_.p.attached=function(){var W=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){W.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){W.stateChangeHandler("publicytnetworkstatus-offline")})};
_.p.detached=function(){var W=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){W.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){W.stateChangeHandler("publicytnetworkstatus-offline")})};
_.p.enterState=function(W){var B=this;this.scheduledJobId&&_.fg.cancelJob(this.scheduledJobId);W==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):W==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.kq("NO_INTERNET_CONNECTION",void 0,"No internet connection")):W==="BACK_ONLINE"&&(this.bannerString=_.kq("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.CG(_.fg,function(){B.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=W};
_.p.stateChangeHandler=function(W){(W=$Lj[this.currentState][W])&&this.enterState(W)};
_.p.logVisibility=function(W){var B=_.m1();this.createBannerVe(W);B&&this.bannerVe&&(W?_.Mj(B,[this.bannerVe]):_.aP(B,[this.bannerVe]))};
_.p.createBannerVe=function(W){!this.bannerVe&&W&&(this.bannerVe=_.PA(37929),_.ed(_.SK(),this.bannerVe))};
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",String)],uG.prototype,"currentState",void 0);_.Q([_.F(),_.y("design:type",Object)],uG.prototype,"scheduledJobId",void 0);_.Q([_.F(),_.y("design:type",Object)],uG.prototype,"bannerString",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-network-status-banner"})],uG);
_.D(uG,"ytd-network-status-banner",function(){if(Q$Y!==void 0)return Q$Y;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Q$Y=
W},{mode:1});var LSi;var eU=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};W.hidden=!0;W.frostedGlass=_.r("web_frosted_glass");return W};
_.C(eU,_.S);eU.prototype.computeHidden=function(W){return W&&W.status?!1:!0};
eU.prototype.handleUpdatePermissionRoleCommand=function(W){if(W=_.k(W,_.WxH))if(W=_.k(W.renderer,_.RgR))this.data=W};
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],eU.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],eU.prototype,"componentBehavior",void 0);_.Q([_.F({value:!0,computed:"computeHidden(data)"}),_.y("design:type",Object)],eU.prototype,"hidden",void 0);_.Q([_.F(),_.y("design:type",Object)],eU.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],eU.prototype,"frostedGlass",void 0);
_.Q([_.u({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],eU);
_.D(eU,"ytd-permission-role-bottom-bar-renderer",function(){if(LSi!==void 0)return LSi;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return LSi=W},{mode:1});var ULY;var Mpj;var wAf={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var m_=function(){return _.S.apply(this,arguments)||this};
_.C(m_,_.S);_.p=m_.prototype;_.p.attached=function(){this.JSC$20775_scroller&&(this.JSC$20775_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20775_scroller.attached&&typeof this.JSC$20775_scroller.attached==="function"&&this.JSC$20775_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(z){z.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var W=_.tH(this.hostElement);W.querySelector("tp-yt-paper-radio-group").selected="";var B=W.querySelector("#reason-text");B&&(B.value="");W.querySelector("#description-text").value=""}};
_.p.canSubmit=function(W,B){_.v0(this.hostElement,"yt-invalidate-popup-tabbables");return!(W&&B)};
_.p.onCancel=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.p.onSubmit=function(){var W=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(d){return d.active}).map(function(d){return d.innerText.trim()}),B=this.hostElement.querySelector("tp-yt-paper-radio-group"),z=B.selectedItem,G=z.name;
z=z.innerText.trim();var Y=B.querySelector("#reason-text");B=void 0;Y&&(B=Y.value);(Y=this.descriptionText.value)&&(Y=Y.trim());Vci(this.data.searchQuery,W,G,z,Y,B);_.c0(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.p.sendFormSubmitToast=function(){var W=_.ia(_.kq("SBOX_INAPPROPRIATE_TOAST"));_.c0(this.hostElement,"yt-open-popup-action",[W,this])};
_.p.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(W){return W.active})};
_.p.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
m_.prototype.onIronSelect=m_.prototype.onIronSelect;m_.prototype.onIronChange=m_.prototype.onIronChange;m_.prototype.dataChanged=m_.prototype.dataChanged;_.Q([_.F(),_.y("design:type",Object)],m_.prototype,"data",void 0);_.Q([_.F({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.y("design:type",Boolean)],m_.prototype,"submitDisabled",void 0);_.Q([_.F(),_.y("design:type",Boolean)],m_.prototype,"suggestionSelected",void 0);
_.Q([_.F(),_.y("design:type",Boolean)],m_.prototype,"catagorySelected",void 0);_.Q([_.Hf("#scroller"),_.y("design:type",Object)],m_.prototype,"JSC$20775_scroller",void 0);_.Q([_.Hf("#description-text"),_.y("design:type",Object)],m_.prototype,"descriptionText",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],m_.prototype,"dataChanged",null);
_.Q([_.IN("iron-change"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],m_.prototype,"onIronChange",null);_.Q([_.IN("iron-select"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],m_.prototype,"onIronSelect",null);_.Q([_.u({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],m_);
_.D(m_,"ytd-search-suggestion-report-dialog",function(){if(Mpj!==void 0)return Mpj;var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Mpj=W},{mode:1});var xC=function(W){var B=W.openPopupAction;var z=W.target;var G=W.container;var Y=W.popupContainerConfig;var d=W.getElement;W=W.removeWhenClosed===void 0?!1:W.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=B;this.target=z;this.container=G;this.popupContainerConfig=Y;this.getElement=d;this.JSC$20781_popupConfig=this.popupContainerConfig.JSC$19916_popupConfig[this.openPopupAction.popupType];this.rendererName=(B=this.getName())?_.NuD(B,Si6(this.popupContainerConfig,
B)):"";_.r("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=W);this.createPopup()};
xC.prototype.updatePopup=function(W){this.openPopupAction=W;this.JSC$20781_popupConfig=this.popupContainerConfig.JSC$19916_popupConfig[this.openPopupAction.popupType];acj(this);_.r("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
xC.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var BZ6=function(W,B,z){(B=B&&W.JSC$20781_popupConfig.narrowProperties?W.JSC$20781_popupConfig.narrowProperties:W.JSC$20781_popupConfig.properties)&&z!==void 0&&(B.isAriaModal=z);RBq(W,B);W.isRtl()&&RBq(W,W.JSC$20781_popupConfig.rtlProperties);WlO(W)};
xC.prototype.createPopup=function(){var W=this.JSC$20781_popupConfig.component;if(this.popupContent=zGn(this,this.rendererName)){if(W){this.popup=zGn(this,W);var B=this.popupContent;_.r("web_enable_wrapper_for_cow_component_in_popup")&&(B=document.createElement("div"),B.appendChild(this.popupContent));_.r("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20781_popupConfig.slotName&&B.setAttribute("slot",this.JSC$20781_popupConfig.slotName);W=this.popup;var z=this.container.tagName.toLowerCase(),
G=_.ER(B);_.KJx(_.vf(W),_.VU(B,z,G));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.r("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.tH(this.container).appendChild(this.popup)}};
var acj=function(W){var B,z,G=(B=W.openPopupAction.accessibilityData)==null?void 0:(z=B.accessibilityData)==null?void 0:z.label;G&&(W.popup.ariaLabel=G);var Y;((Y=W.popupContent.polymerController)!=null?Y:W.popupContent).data=(0,_.mP.unsafeClone)(W.openPopupAction.popup[W.getName()]);W.popupContent.duration=GVf(W);W.popupContent.positionType=W.openPopupAction.position;var d=W.openPopupAction.properties;d&&Object.keys(d).forEach(function(E){W.popupContent[E]=d[E]})},RBq=function(W,B){if(B)for(var z=
_.A(Object.keys(B)),G=z.next();!G.done;G=z.next())G=G.value,W.popup[G]=B[G]},WlO=function(W){if(W.openPopupAction.position){var B=W.JSC$20781_popupConfig.positionalProperties&&W.JSC$20781_popupConfig.positionalProperties[W.openPopupAction.position],z=W.JSC$20781_popupConfig.rtlPositionalProperties&&W.JSC$20781_popupConfig.rtlPositionalProperties[W.openPopupAction.position];
B=W.isRtl()&&z?z:B;B.shiftedHorizontalOffset&&(z=W.popup.style.display,W.popup.style.display="block",W.popupContent&&W.popup.positionTarget&&W.popupContent.clientWidth>W.popup.positionTarget.clientWidth&&(B.horizontalOffset=W.popup.positionTarget.clientWidth/2-B.shiftedHorizontalOffset),W.popup.style.display=z);RBq(W,B)}},Y1f=function(W,B){if(B)for(var z=_.A(Object.keys(B)),G=z.next();!G.done;G=z.next())G=G.value,W.popup.style[G]=B[G]};
xC.prototype.getName=function(){return _.Ow(this.openPopupAction.popup,"renderer")||_.Ow(this.openPopupAction.popup,"dialog")||_.Ow(this.openPopupAction.popup,"model")||void 0};
var GVf=function(W){W=W.openPopupAction.durationHintMs;return W===0?W:Math.max(4E3,W||4E3)};
xC.prototype.isRtl=function(){return _.eD("HTML_DIR")==="rtl"};
var zGn=function(W,B){W=W.getElement(B,W.target);W==null&&_.Oc(new _.oX("popup getElement returned null",B));return W};var d3r={};
d3r.YtPopupContainerBehavior=[_.Ve.YtComponentBehavior,_.ye.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.iH(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.E2(this.hostElement)},
closePopup:function(W){var B=this.createCacheKey(void 0,W);this.popups_[B]&&this.handleClosePopupAction_(void 0,W)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.fg.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.fg.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(W){W.opened&&W.keepBelowPlayer&&this.ensurePopupBelowPlayer(W)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var W in this.popups_){var B=this.popups_[W];if(B.popup.scrollAction==="refit"){var z=B.popup.positionTarget.getBoundingClientRect(),G=B.popup;z=z.top;var Y=B;if(!Y.naturalHeight){Y.popup.hidden=!1;Y.popup.style.position="fixed";Y.popup.style.top="0px";Y.popup.style.left="0px";var d=Y.popup.getBoundingClientRect();Y.naturalHeight=d.bottom-d.top;Y.popup.refit()}G.hidden=!(z>=Y.naturalHeight+60);B.popupContent.clientHeight===0&&B.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(W){this.popupContainerConfig=W},
handleOpenPopupAction:function(W,B){var z=W.openPopupAction,G=_.dO().resolve(_.Y8(_.aG))&&z.popupType==="TOAST";G&&!z.uniqueId&&(z.uniqueId=_.gF());if(!_.r("popup_container_parent_target_killswitch")){var Y;B=(Y=this.getParentTarget(B))!=null?Y:B}var d=this.ensurePopup_(z,B);return new _.Vx(function(E){d.then(function(v){if(!v)return E();this.maybeCreateNarrowMediaQuery_();var c=this.createCacheKey(v.rendererName,v.openPopupAction.uniqueId);if(z.showOncePerUniqueId){if(this.shownPopupKeys_.has(c))return E();
this.shownPopupKeys_.add(c)}c=this.popups_[c];var J=!(!c||!c.openPopupAction.beReused);J=!!z.reusePopup||J;if(v.popup.opened&&!J){G&&!v.openPopupAction.replacePopup||this.handleClosePopupAction_(v.rendererName,v.openPopupAction.uniqueId);J=z.popupType==="DIALOG"&&!_.r("popup_container_dialog_reopen_killswitch");if(!G&&!J&&c&&c.target==B&&!v.openPopupAction.replacePopup)return E();_.BM(v.popup,function(){this.completeOpenPopupAction_(z,B,v);E()}.bind(this))}else v.popup.opened?v.updatePopup(z):this.completeOpenPopupAction_(z,
B,v),E()}.bind(this))}.bind(this))},
getParentTarget:function(W){if(W&&W instanceof HTMLElement)for(var B=_.A(Object.entries(this.popups_)),z=B.next();!z.done;z=B.next())if(z=_.A(z.value),z.next(),z=z.next().value,this.popupClosesOnClick(z)&&z.popup.contains(W))return z.target},
popupClosesOnClick:function(W){return W.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(W.rendererName.toUpperCase())},
completeOpenPopupAction_:function(W,B,z){z.updatePopup(W);W=this.narrowMediaQuery_.queryMatches;var G=this.isAriaModal;z.target=B;var Y;B=((Y=z.target.polymerController)!=null?Y:z.target).popupPositionTarget||z.target;z.JSC$20781_popupConfig.targetContainer&&(B=z.container);z.popup.positionTarget=B;z.popupContent.positionTarget=B;WlO(z);z.JSC$20781_popupConfig.forceFocus&&(z.popupContent.style.outline="none");z.popupContent.tabIndex=-1;z.JSC$20781_popupConfig.narrowProperties&&(z.popup.style.position=
"static");z.JSC$20781_popupConfig.preventAutonav&&z.popup.setAttribute("prevent-autonav",!0);z.JSC$20781_popupConfig.forceCloseOnOutsideClick&&z.popup.setAttribute("force-close-on-outside-click",!0);BZ6(z,W,G);Y1f(z,z.JSC$20781_popupConfig.styles);z.isRtl()&&Y1f(z,z.JSC$20781_popupConfig.rtlStyles);if(!z.openPopupAction.shouldStopParentSignal){var d;Y=(d=z.target.polymerController)!=null?d:z.target;(z.popupContent.startForwardingEvents||z.popupContainerConfig.forwardingEnabledPopups.has(z.rendererName))&&
Y.parentComponent!==z.popupContent&&z.popupContent!==z.target&&z.target!==document.body&&(z.popupContent.startForwardingEvents?z.popupContent.startForwardingEvents(z.popupContainerConfig.forwardedEvents,z.target):(z.JSC$20781_eventForwarder||(z.JSC$20781_eventForwarder=new _.TH(z.popupContent)),z.JSC$20781_eventForwarder.start(z.popupContainerConfig.forwardedEvents,z.target)))}z=z.popup;z.addEventListener("iron-overlay-opened",_.Co(this,this.onPopupIronOverlayOpened_));z.addEventListener("iron-overlay-closed",
_.Co(this,this.onPopupIronOverlayClosed_));z.addEventListener("iron-overlay-canceled",_.Co(this,this.onPopupIronOverlayCanceled_));z.addEventListener("yt-refit",_.Co(this,this.refitPopup_));z.addEventListener("yt-invalidate-popup-tabbables",_.Co(this,this.handleInvalidatePopupTabbables_));z.open()},
getPopupDurationMs_:function(W){return W.durationHintMs===0?W.durationHintMs:Math.max(4E3,W.durationHintMs||4E3)},
handleClosePopupAction_:function(W,B){var z=_.r("web_popup_cache_key_killswitch")||!!B;if(W||z){var G=this.createCacheKey(W,B);W=(W=this.popups_[G])&&W.popup}else W=_.VTu(_.Ta);if(W&&W.close){if(B=_.dO().resolve(_.Y8(_.jx)))W.restoreFocusOnClose=B.isKeyBoardInUse();W.close();this.removePopup_(W,G)}},
handleClosePopupCommand_:function(W){W.closePopupCommand&&W.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,W.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(W){var B={},z;for(z in this.popups_)if(B={key$jscomp$1210:B.key$jscomp$1210},B.key$jscomp$1210=z,!W||!W.some(function(d){return function(E){return E==d.key$jscomp$1210}}(B))){var G=this.popups_[B.key$jscomp$1210],Y=G.popup;
_.dO().resolve(_.Y8(_.aG))&&G.openPopupAction.popupType==="TOAST"||(Y&&Y.close&&Y.close(),this.removePopup_(Y,B.key$jscomp$1210))}},
handleClosePopupsAction_:function(W){W.forEach(function(B){var z=this.popups_[B];z&&((z=z.popup)&&z.close&&z.close(),this.removePopup_(z,B))}.bind(this))},
handleGetPopupOpenedAction_:function(W,B){return(B=this.createCacheKey(W,B))&&this.popups_[B]?this.popups_[W].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var W=[],B;for(B in this.popups_){var z=this.popups_[B];z.popup.opened&&W.push(z)}return W},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(W,B){_.r("ytpopup_disable_default_html_caching")&&W&&W.removeWhenClosed&&(_.tH(this.hostElement).removeChild(W),B&&this.popups_[B]&&delete this.popups_[B])},
shouldReusePopup_:function(W){return!(!W||!W.reusePopup)||!(!W||!W.beReused)},
ensurePopup_:function(W,B){this.maybeCreateNarrowMediaQuery_();var z=_.Ow(W.popup,"renderer")||_.Ow(W.popup,"dialog")||_.Ow(W.popup,"model");if(!z)return _.gV();z=_.NuD(z,Si6(this.popupContainerConfig,z));return _.gV(this.getAndMaybeCreatePopup_(W,z,B))},
getAndMaybeCreatePopup_:function(W,B,z){var G=this.createCacheKey(B,W.uniqueId);if(this.popups_[G])return this.popups_[G];W=new xC({openPopupAction:W,target:z,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(B)});return this.popups_[G]=W},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(W){return _.r("ytpopup_disable_default_html_caching")?W&&W.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",_.Co(this,this.openPopupQueryMatchesChanged_)),_.tH(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(W){W=W.detail.value;for(var B in this.popups_)BZ6(this.popups_[B],W)},
onPopupIronOverlayClosed_:function(W){var B=W.currentTarget,z=_.GJR(B);z=z.length>0?z[0]:B;if(z.is!=="ytd-reel-watch-while-dialog-renderer"||W.target.is!=="tp-yt-iron-dropdown"){W.detail.popup=B;W.detail.popupRenderer=z;var G,Y={context:{openingElement:((G=this.popups_[(z==null?void 0:z.is)||""])==null?void 0:G.target)||void 0}};Object.assign(Y,W.detail);var d;_.v0((d=z.hostElement)!=null?d:z,"yt-popup-closed",Y);B.removeEventListener("yt-refit",_.Co(this,this.refitPopup_));B.removeEventListener("yt-invalidate-popup-tabbables",
_.Co(this,this.handleInvalidatePopupTabbables_));B.removeEventListener("iron-overlay-canceled",_.Co(this,this.onPopupIronOverlayCanceled_));B.removeEventListener("iron-overlay-closed",_.Co(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(B)}},
onPopupIronOverlayCanceled_:function(W,B){var z=W.currentTarget,G=_.GJR(z);G=G.length>0?G[0]:z;if(G.is!=="ytd-reel-watch-while-dialog-renderer"||W.target.is!=="tp-yt-iron-dropdown"){var Y;_.v0((Y=G.hostElement)!=null?Y:G,"yt-popup-canceled",W.detail);Y=B?_.AH(B):null;(!B||["click","tap"].includes(B.type))&&!z.hasAttribute("force-close-on-outside-click")&&z.positionTarget&&Y&&Y.includes(z.positionTarget)&&W.preventDefault();z.restoreFocusOnClose=_.DM.keyboardEventMatchesKeys(B,"esc")}},
onPopupIronOverlayOpened_:function(W){W=W.currentTarget;var B=_.GJR(W);B=B.length>0?B[0]:W;var z,G;_.v0((z=B.hostElement)!=null?z:B,"yt-popup-opened",(G=B.hostElement)!=null?G:B);W.keepBelowPlayer&&(this.ensurePopupBelowPlayer(W,!0),this.dynamicallyPositionedElements_.add(W));z=_.dO().resolve(_.Y8(_.jx));G=!!B.querySelector("#toast");z&&z.isKeyBoardInUse()&&!G&&(typeof B.focusFirstItem==="function"?B.focusFirstItem():(B=_.vnD(W),B.length&&B[0].focus()));W.removeEventListener("iron-overlay-opened",
_.Co(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(W){W=W.currentTarget;W.refit&&W.refit()},
refitPopups_:function(){for(var W in this.popups_)this.popups_[W].refit()},
handleInvalidatePopupTabbables_:function(W){W=W.currentTarget;W.invalidateTabbables&&W.invalidateTabbables()},
createCacheKey:function(W,B){return _.r("web_popup_cache_key_killswitch")?B?W+"#"+B:W:B?"#"+B:W},
openSheet:function(W,B){var z=W==null?void 0:W.openPopupActionCommand;!z&&(W==null?0:W.viewModel)&&(z={openPopupAction:{popup:{sheetViewModel:W.viewModel},popupType:"CONTEXTUAL_SHEET"}});z&&this.handleOpenPopupAction(z,B)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var W=this;return _.T(function(B){return B.return(W.handleGetOpenedPopupsAction_().filter(function(z){var G;return((G=z.openPopupAction)==null?void 0:G.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(W,B,z){if(_.r("web_dialog_utils_killswitch")){var G=W==null?void 0:W.openPopupActionCommand,Y=(z==null?0:z.ariaLabel)?{accessibilityData:{accessibilityData:{label:z.ariaLabel}}}:void 0;!G&&(W==null?0:W.viewModel)&&(G={openPopupAction:Object.assign({},{popup:{dialogViewModel:W.viewModel},popupType:(z==null?0:z.isModal)?"MODAL":"DIALOG"},Y&&Y)});G&&this.handleOpenPopupAction(G,B)}else{if(Y=W==null?void 0:W.viewModel){var d=z=z===void 0?{}:z;z=d.ariaLabel;Y={popup:{dialogViewModel:Y},
popupType:d.isModal?"MODAL":"DIALOG"};d={accessibilityData:{label:z}};z&&(Y.accessibilityData=d);Y={openPopupAction:Y}}else Y=void 0;if(Y=(G=Y)!=null?G:W==null?void 0:W.openPopupActionCommand)this.isAriaModal=_.r("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(Y,B)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var W=this;return _.T(function(B){return B.return(W.handleGetOpenedPopupsAction_().filter(function(z){var G;return((G=z.openPopupAction)==null?void 0:G.popupType)==="DIALOG"}).length>0)})}}];var p61;var Acn;var i0q=_.ak(["about:blank"]),DZ=function(){var W=_.S.apply(this,arguments)||this;W.isMuted=!1;W.pageLoadTimeoutId=void 0;return W};
_.C(DZ,_.S);_.p=DZ.prototype;_.p.dataChanged=function(){var W=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var B=this.data.url,z=_.OE(B);_.r("enable_yt_ata_iframe_authuser")?(z=_.OE(B),_.WG(this.iframe,Jgb(z))):_.WG(this.iframe,z);this.pageLoadTimeoutId=_.CG(_.FU(),function(){return void W.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.ww({destination:window,iframe:this.iframe,origin:_.Bo7(z.toString()),channelName:"ataiframe",onMessage:_.py7(RPK,function(G){Whn(G.data)?(G=_.Ub(G.data,1,_.zq,_.vC()),G.length!==1?_.Oc(Error("El")):(G=G[0],G===3?(W.isMuted=!0,W.logStateChanged({adMuteRequested:!0})):G===1&&W.close())):_.Oc(Error("Fl"))}),
onEstablished:function(){W.cancelPageLoadTimeout();W.logStateChanged({pageLoadSucceeded:!0})}})}};
_.p.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.FU().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.p.logStateChanged=function(W){var B;if((B=this.data)==null?0:B.trackingParams)W={adsClientData:{aboutThisAdData:W}},_.SK().stateChanged(this.data.trackingParams,W)};
_.p.close=function(){_.c0(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.handlesPopupClosed=function(W,B){var z=this,G,Y;return _.T(function(d){if(d.nextAddress==1)return _.eD("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.c0(z.hostElement,"on-about-this-ad-popup-closed",[z.isMuted,B]),d.jumpTo(0)):W&&g2r(W)?d.yield(tcK(W),4):(z.isMuted&&_.c0(z.hostElement,"yt-mute-ad-action",[z.is,z]),d.jumpTo(0));if(G=d.yieldResult){var E=Y=new _.Bl(G),v=z.isMuted;E.getOptions().includes("onAboutThisAdPopupClosed")?_.LYM(E,"onAboutThisAdPopupClosed",{isMuted:v,layoutId:B}):_.Rn("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.HG(d)})};
_.p.onPopupClosed=function(W){var B=this,z,G;return _.T(function(Y){z=_.sY(i0q);_.WG(B.iframe,z);B.cancelPageLoadTimeout();if(!B.data)return Y.jumpTo(0);B.ytRendererBehavior.markDirty();G=W.detail.context.openingElement;return Y.yield(B.handlesPopupClosed(G,B.data.layoutId),0)})};
_.p.detached=function(){this.cancelPageLoadTimeout()};
_.p.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
DZ.prototype.onPopupClosed=DZ.prototype.onPopupClosed;DZ.prototype.dataChanged=DZ.prototype.dataChanged;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);_.Q([_.Hf("#iframe"),_.y("design:type",HTMLIFrameElement)],DZ.prototype,"iframe",void 0);_.Q([_.F(),_.y("design:type",Object)],DZ.prototype,"data",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DZ.prototype,"dataChanged",null);
_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype",Promise)],DZ.prototype,"onPopupClosed",null);_.Q([_.NJ({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],DZ);
_.D(DZ,"yt-about-this-ad-renderer",function(){if(Acn===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;p61===void 0&&(p61=document.createElement("template"));var G=p61;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Acn=W}W=Acn;return W},{mode:2});var Ep1;var TZr;var QD=function(W){var B=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=B.message;"stack"in B&&(this.stack=B.stack);this.maxFileSizeMB=W;Object.setPrototypeOf(this,QD.prototype)};
_.C(QD,Error);var vpr=function(W,B){var z=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=z.message;"stack"in z&&(this.stack=z.stack);this.minWidth=W;this.minHeight=B;Object.setPrototypeOf(this,vpr.prototype)};
_.C(vpr,Error);var ccn=function(W){this.requirements=W;this.JSC$20808_maxFileSize=W.maxFileSizeMB*1024*1024},w6O=function(W,B){if(B.size>W.JSC$20808_maxFileSize)throw new QD(W.requirements.maxFileSizeMB);
};var V56=function(W,B){this.canvas=W;this.imageEditorBuilder=B};
V56.prototype.addEventListeners=function(W){var B=function(Y){Jcq(W,Y)};
this.JSC$20814_mouseDownEvent=B;var z=function(Y){gpb(W,Y)};
this.JSC$20814_mouseMoveEvent=z;var G=function(){t5f(W)};
this.JSC$20814_mouseUpEvent=G;this.canvas.addEventListener("mousedown",B);this.canvas.addEventListener("mousemove",z);document.addEventListener("mouseup",G)};
V56.prototype.removeEventListeners=function(){this.JSC$20814_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20814_mouseDownEvent);this.JSC$20814_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20814_mouseMoveEvent);this.JSC$20814_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20814_mouseUpEvent)};
var s2b=function(W,B){W.removeEventListeners();return new Promise(function(z){var G=new Image;G.crossOrigin="anonymous";G.onload=function(){var Y=W.imageEditorBuilder(W.canvas,G);W.addEventListeners(Y);z(Y)};
G.src=B})},yD=function(W,B,z,G,Y,d,E,v){this.canvas=W;
this.image=B;this.requiredRatio=z;this.minImageCropDimension=G;this.minOutputImageResolution=Y;this.component=d;this.styleFocusedCorner=v===void 0?!0:v;this.action=2;this.focusedCorner=this.resizeCorner=0;W=this.canvas.getContext("2d");if(!W)throw Error("Gl");this.ctx=W;this.canvasMargin=E!=null?E:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;E=this.image;W=this.canvasInnerWidth/E.width;E.height*W>912&&(W=E.width/E.height*912/E.width);E=W;this.scaledImageWidth=this.canvas.width%2?
Pjf(this.image.width*E):snj(this.image.width*E);this.scaledImageHeight=Math.round(this.image.height*E);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20817_overlayMarginBottom=this.JSC$20817_overlayMarginTop=this.canvasMargin;this.JSC$20817_overlayMarginRight=this.JSC$20817_overlayMarginLeft=this.horizontalMargin;this.JSC$20817_overlayWidth=this.scaledImageWidth;this.JSC$20817_overlayHeight=this.scaledImageHeight;
W=this.image.width/this.image.height;W>this.requiredRatio?(this.JSC$20817_overlayWidth=this.canvas.width%2?Pjf(this.scaledImageHeight*this.requiredRatio):snj(this.scaledImageHeight*this.requiredRatio),this.JSC$20817_overlayMarginRight=this.JSC$20817_overlayMarginLeft=(this.canvas.width-this.JSC$20817_overlayWidth)/2):W<this.requiredRatio&&(this.JSC$20817_overlayHeight=this.canvas.height%2?Pjf(this.scaledImageWidth/this.requiredRatio):snj(this.scaledImageWidth/this.requiredRatio),this.JSC$20817_overlayMarginBottom=
this.JSC$20817_overlayMarginTop=(this.canvas.height-this.JSC$20817_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*E,this.scaledImageWidth);PDf(this)};
yD.prototype.getContext=function(){return this.ctx};
var Jcq=function(W,B){B={x:Math.round(B.pageX-W.canvas.getBoundingClientRect().left),y:Math.round(B.pageY-W.canvas.getBoundingClientRect().top)};W.dragStart=B;Z0b(W,B)!==0?(W.action=1,rcY(W,B),W.resizeCorner=Z0b(W,B)):B.x>W.JSC$20817_overlayMarginLeft&&B.x<W.JSC$20817_overlayMarginLeft+W.JSC$20817_overlayWidth&&B.y>W.JSC$20817_overlayMarginTop&&B.y<W.JSC$20817_overlayMarginTop+W.JSC$20817_overlayHeight&&(W.action=0)},kV6=function(W,B){switch(B){case 1:return{x:W.JSC$20817_overlayMarginLeft,
y:W.JSC$20817_overlayMarginTop};case 2:return{x:W.JSC$20817_overlayMarginLeft,y:W.JSC$20817_overlayMarginTop+W.JSC$20817_overlayHeight};case 3:return{x:W.JSC$20817_overlayMarginLeft+W.JSC$20817_overlayWidth,y:W.JSC$20817_overlayMarginTop};case 4:return{x:W.JSC$20817_overlayMarginLeft+W.JSC$20817_overlayWidth,y:W.JSC$20817_overlayMarginTop+W.JSC$20817_overlayHeight};default:throw Error("Hl");}},CDi=function(W,B){if(W.focusedCorner!==0){W.dragStart=kV6(W,W.focusedCorner);
W.action=1;W.resizeCorner=W.focusedCorner;var z=W.dragStart.x,G=W.dragStart.y;switch(B){case 0:W.focusedCorner===1||W.focusedCorner===4?(z-=10,G-=10):(z-=10,G+=10);break;case 1:W.focusedCorner===1||W.focusedCorner===4?(z+=10,G+=10):(z+=10,G-=10);break;case 2:z=W.focusedCorner===1||W.focusedCorner===4?z-10:z+10;G-=10;break;case 3:z=W.focusedCorner===1||W.focusedCorner===4?z+10:z-10;G+=10;break;default:throw Error("Il");}lXi(W,{x:z,y:G});PDf(W);W.action=2;W.dragStart=void 0}},gpb=function(W,B){B={x:Math.round(B.pageX-
W.canvas.getBoundingClientRect().left),
y:Math.round(B.pageY-W.canvas.getBoundingClientRect().top)};rcY(W,B);switch(W.action){case 1:lXi(W,B);break;case 0:W.dragStart&&(W.JSC$20817_overlayMarginLeft=Math.max(W.horizontalMargin,Math.min(W.JSC$20817_overlayMarginLeft-(W.dragStart.x-B.x),W.horizontalMargin+W.scaledImageWidth-W.JSC$20817_overlayWidth)),W.JSC$20817_overlayMarginRight=W.canvas.width-W.JSC$20817_overlayMarginLeft-W.JSC$20817_overlayWidth,W.JSC$20817_overlayMarginTop=Math.max(W.canvasMargin,Math.min(W.JSC$20817_overlayMarginTop-
(W.dragStart.y-B.y),W.scaledImageHeight-W.JSC$20817_overlayHeight+W.canvasMargin)),W.JSC$20817_overlayMarginBottom=W.canvas.height-(W.JSC$20817_overlayMarginTop+W.JSC$20817_overlayHeight));break;default:return}PDf(W);W.dragStart=B},t5f=function(W){W.action=2;
W.dragStart=void 0;document.body.style.cursor="auto"},rcY=function(W,B){switch(Z0b(W,B)){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:W.action!==1&&(document.body.style.cursor="auto")}},Z0b=function(W,B){var z=W.JSC$20817_overlayMarginLeft-5,G=W.JSC$20817_overlayMarginTop-5,Y=W.JSC$20817_overlayMarginLeft+W.JSC$20817_overlayWidth-5;
W=W.JSC$20817_overlayMarginTop+W.JSC$20817_overlayHeight-5;return IXi(B,{x:z,y:G})?1:IXi(B,{x:Y,y:G})?3:IXi(B,{x:z,y:W})?2:IXi(B,{x:Y,y:W})?4:0},IXi=function(W,B){return W.x>=B.x&&W.x<=B.x+10&&W.y>=B.y&&W.y<=B.y+10},lXi=function(W,B){if(W.dragStart)switch(W.resizeCorner){case 2:Math.abs((W.JSC$20817_overlayMarginLeft+W.JSC$20817_overlayWidth-B.x)/(B.y-W.JSC$20817_overlayMarginTop))>=W.requiredRatio?opf(W,B.x):hGb(W,B.y);
break;case 1:Math.abs((W.JSC$20817_overlayMarginLeft+W.JSC$20817_overlayWidth-B.x)/(W.JSC$20817_overlayMarginTop+W.JSC$20817_overlayHeight-B.y))>=W.requiredRatio?H0K(W,B.x):hGb(W,B.y);break;case 4:Math.abs((B.x-W.JSC$20817_overlayMarginLeft)/(B.y-W.JSC$20817_overlayMarginTop))>=W.requiredRatio?opf(W,B.x):Fl9(W,B.y);break;case 3:Math.abs((B.x-W.JSC$20817_overlayMarginLeft)/(W.JSC$20817_overlayMarginTop+W.JSC$20817_overlayHeight-B.y))>=W.requiredRatio?H0K(W,B.x):Fl9(W,B.y);break;default:throw Error("Jl");
}},opf=function(W,B){var z=W.JSC$20817_overlayMarginTop;
W.JSC$20817_overlayMarginBottom=S11(W,B);W.JSC$20817_overlayHeight=W.canvas.height-W.JSC$20817_overlayMarginBottom-z;W.JSC$20817_overlayWidth=Math.round(W.JSC$20817_overlayHeight*W.requiredRatio);b09(W)},H0K=function(W,B){var z=W.JSC$20817_overlayMarginTop+W.JSC$20817_overlayHeight;
W.JSC$20817_overlayMarginTop=S11(W,B);W.JSC$20817_overlayHeight=z-W.JSC$20817_overlayMarginTop;W.JSC$20817_overlayWidth=Math.round(W.JSC$20817_overlayHeight*W.requiredRatio);b09(W)},b09=function(W){switch(W.resizeCorner){case 2:case 1:W.JSC$20817_overlayMarginLeft=W.canvas.width-W.JSC$20817_overlayMarginRight-W.JSC$20817_overlayWidth;
break;case 4:case 3:W.JSC$20817_overlayMarginRight=W.canvas.width-W.JSC$20817_overlayMarginLeft-W.JSC$20817_overlayWidth;break;default:throw Error("Jl");}},hGb=function(W,B){var z=W.JSC$20817_overlayMarginLeft+W.JSC$20817_overlayWidth;
W.JSC$20817_overlayMarginLeft=j2n(W,B);W.JSC$20817_overlayWidth=z-W.JSC$20817_overlayMarginLeft;W.JSC$20817_overlayHeight=Math.round(W.JSC$20817_overlayWidth/W.requiredRatio);fXY(W)},Fl9=function(W,B){var z=W.JSC$20817_overlayMarginLeft;
W.JSC$20817_overlayMarginRight=j2n(W,B);W.JSC$20817_overlayWidth=W.canvas.width-W.JSC$20817_overlayMarginRight-z;W.JSC$20817_overlayHeight=Math.round(W.JSC$20817_overlayWidth/W.requiredRatio);fXY(W)},fXY=function(W){switch(W.resizeCorner){case 2:case 4:W.JSC$20817_overlayMarginBottom=W.canvas.height-W.JSC$20817_overlayMarginTop-W.JSC$20817_overlayHeight;
break;case 1:case 3:W.JSC$20817_overlayMarginTop=W.canvas.height-W.JSC$20817_overlayMarginBottom-W.JSC$20817_overlayHeight;break;default:throw Error("Jl");}},S11=function(W,B){switch(W.resizeCorner){case 2:B=W.canvas.height-(W.JSC$20817_overlayMarginTop+O0K(W,B));
break;case 4:B=W.canvas.height-(W.JSC$20817_overlayMarginTop+X61(W,B));break;case 1:B=W.JSC$20817_overlayMarginTop+W.JSC$20817_overlayHeight-O0K(W,B);break;case 3:B=W.JSC$20817_overlayMarginTop+W.JSC$20817_overlayHeight-X61(W,B);break;default:throw Error("Jl");}return Math.max(B,W.canvasMargin)},O0K=function(W,B){B=W.JSC$20817_overlayMarginLeft+W.JSC$20817_overlayWidth-Math.max(B,W.horizontalMargin);
B=B<0?W.JSC$20817_overlayWidth:Math.max(B,W.minOverlayWidth);return Math.round(B/W.requiredRatio)},X61=function(W,B){B=W.canvas.width-Math.max(W.canvas.width-B,W.horizontalMargin)-W.JSC$20817_overlayMarginLeft;
B=B<0?W.JSC$20817_overlayWidth:Math.max(B,W.minOverlayWidth);return Math.round(B/W.requiredRatio)},j2n=function(W,B){switch(W.resizeCorner){case 2:B=W.canvas.width-W.JSC$20817_overlayMarginRight-KlK(W,B);
break;case 4:B=W.canvas.width-W.JSC$20817_overlayMarginLeft-KlK(W,B);break;case 1:B=W.canvas.width-W.JSC$20817_overlayMarginRight-u_O(W,B);break;case 3:B=W.canvas.width-W.JSC$20817_overlayMarginLeft-u_O(W,B);break;default:throw Error("Jl");}return Math.max(B,W.horizontalMargin)},KlK=function(W,B){B=W.canvas.height-Math.max(W.canvas.height-B,W.canvasMargin)-W.JSC$20817_overlayMarginTop;
return B<0?W.JSC$20817_overlayWidth:Math.max(Math.round(B*W.requiredRatio),W.minOverlayWidth)},u_O=function(W,B){B=W.JSC$20817_overlayMarginTop+W.JSC$20817_overlayHeight-Math.max(B,W.canvasMargin);
return B<0?W.JSC$20817_overlayWidth:Math.max(Math.round(B*W.requiredRatio),W.minOverlayWidth)},PDf=function(W){W.ctx.clearRect(0,0,W.canvas.width,W.canvas.height);
W.ctx.drawImage(W.image,0,0,W.image.width,W.image.height,W.horizontalMargin,W.canvasMargin,W.canvas.width-2*W.horizontalMargin,W.scaledImageHeight);W.ctx.fillStyle="rgba(0, 0, 0, 0.7)";W.ctx.fillRect(W.horizontalMargin,W.JSC$20817_overlayMarginTop,W.JSC$20817_overlayMarginLeft-W.horizontalMargin,W.JSC$20817_overlayHeight);W.ctx.fillRect(W.JSC$20817_overlayMarginLeft+W.JSC$20817_overlayWidth,W.JSC$20817_overlayMarginTop,W.JSC$20817_overlayMarginRight-W.horizontalMargin,W.JSC$20817_overlayHeight);W.ctx.fillRect(W.horizontalMargin,
W.canvasMargin,W.scaledImageWidth,W.JSC$20817_overlayMarginTop-W.canvasMargin);W.ctx.fillRect(W.horizontalMargin,W.JSC$20817_overlayMarginTop+W.JSC$20817_overlayHeight,W.scaledImageWidth,W.JSC$20817_overlayMarginBottom-W.canvasMargin);W.drawOverlay();W.component&&_.v0(W.component,"image-updated")};
yD.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20817_overlayMarginLeft,this.JSC$20817_overlayMarginTop,this.JSC$20817_overlayWidth,this.JSC$20817_overlayHeight);eG9(this)};
var eG9=function(W){var B=W.JSC$20817_overlayMarginLeft-5,z=W.JSC$20817_overlayMarginTop-5,G=W.JSC$20817_overlayMarginLeft+W.JSC$20817_overlayWidth-5,Y=W.JSC$20817_overlayMarginTop+W.JSC$20817_overlayHeight-5;W.ctx.fillStyle="#FFF";W.ctx.fillRect(B,z,10,10);W.ctx.strokeRect(B,z,10,10);W.ctx.fillRect(G,z,10,10);W.ctx.strokeRect(G,z,10,10);W.ctx.fillRect(B,Y,10,10);W.ctx.strokeRect(B,Y,10,10);W.ctx.fillRect(G,Y,10,10);W.ctx.strokeRect(G,Y,10,10);if(W.focusedCorner!==0&&W.styleFocusedCorner){W.ctx.lineWidth=
4;W.ctx.strokeStyle="#3EA6FF";switch(W.focusedCorner){case 1:--B;--z;break;case 2:--B;z=Y-1;break;case 3:B=G-1;--z;break;case 4:B=G-1;z=Y-1;break;default:return}W.ctx.strokeRect(B,z,12,12)}};
yD.prototype.crop=function(W,B){B=B===void 0?!0:B;var z=this.image.width/this.scaledImageWidth,G=document.createElement("canvas"),Y=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],d=this.JSC$20817_overlayWidth*z,E=this.JSC$20817_overlayHeight*z;G.width=Math.max(d,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);G.height=Math.max(E,Y);W&&(G.width=Math.min(G.width,G.height),G.height=Math.min(G.width,G.height));
W=G.getContext("2d");if(!W)throw Error("xl");Y=(this.JSC$20817_overlayMarginLeft-this.horizontalMargin)*z;z*=this.JSC$20817_overlayMarginTop-this.canvasMargin;B||(W.fillStyle="white",W.fillRect(0,0,G.width,G.height));W.drawImage(this.image,Y,z,d,E,0,0,G.width,G.height);return G};var m3b=function(W,B,z,G,Y){yD.call(this,W,B,z,G,void 0,Y,8,!1)};
_.C(m3b,yD);m3b.prototype.drawOverlay=function(){var W=this.getContext(),B=this.JSC$20817_overlayWidth,z=this.JSC$20817_overlayHeight,G=this.JSC$20817_overlayMarginTop,Y=this.JSC$20817_overlayMarginLeft;W.lineWidth=2;W.strokeStyle="#3EA6FF";W.beginPath();W.arc(Y+B/2,G+z/2,B/2,0,2*Math.PI);W.stroke();W.strokeRect(Y,G,B,z);eG9(this)};
var x3q={maxFileSizeMB:15,minWidth:98,minHeight:98},D3i=["image/png","image/jpeg","image/gif"],qa=function(){var W=_.S.apply(this,arguments)||this;W.fileSelectorFocusListener=null;W.errorMessage=null;W.isLoading=!0;W.hideContainer=!0;W.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return W};
_.C(qa,_.S);_.p=qa.prototype;_.p.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.p.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.p.computePlaylistThumbnail=function(W){return W==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.p.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.c0(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.p.setErrorState=function(W){this.resetErrorState();W&&(this.errorMessage=W)};
_.p.showPopup=function(){var W=this;this.hideContainer=!1;_.CG(_.fg,function(){_.v0(W.hostElement,"yt-refit")});
this.isLoading=!1};
_.p.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.p.closePopup=function(){this.resetFileSelector();_.c0(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.onCancelTap=function(){this.isPlaylistThumbnail||_.c0(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.p.openFileSelector=function(){var W=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.CG(_.fg,function(){setTimeout(function(){if(!W.fileSelector.files||W.fileSelector.files.length===0)W.onCancelTap();W.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(B){B instanceof Error?_.jy(B):_.fG(new _.oX(JSON.stringify(B)))}};
_.p.handleFileSelection=function(){var W=this,B,z,G,Y,d,E;return _.T(function(v){switch(v.nextAddress){case 1:_.kA(v,2);if(!W.fileSelector.files||!W.imageEditorCanvas)return W.onCancelTap(),v.return();B=W.fileSelector.files[0];w6O(W.imageChecker,B);_.kA(v,4);return v.yield(yYi(B),6);case 6:W.mimeType=v.yieldResult;_.Nn(v,5,2);break;case 4:_.h6(v,2),_.c0(W.hostElement,"yt-image-selection-error-action",[(z=W.data)==null?void 0:z.genericImageLoadErrorMessage]),W.onCancelTap();case 5:G=new FileReader;
G.addEventListener("load",function(){var c,J;return _.T(function(g){if(g.nextAddress==1){if(!G.result)return _.Oc(Error("zl")),g.return();c=G.result;J=new Image;J.src=c;J.onload=function(){try{var t=W.imageChecker;if(J.width<t.requirements.minWidth||J.height<t.requirements.minHeight)throw new vpr(t.requirements.minWidth,t.requirements.minHeight);}catch(Z){if(Z instanceof vpr){var P;_.c0(W.hostElement,"yt-image-selection-error-action",[(P=W.data)==null?void 0:P.imageDimensionErrorMessage]);W.logImageDimensionErrorVe()}else Z instanceof
Error?_.jy(Z):(t=new _.oX(JSON.stringify(Z)),_.jy(t));W.onCancelTap()}W.showPopup()};
J.onerror=function(){var t;_.c0(W.hostElement,"yt-image-selection-error-action",[(t=W.data)==null?void 0:t.genericImageLoadErrorMessage]);W.onCancelTap()};
return g.yield(s2b(W.imageEditorCanvas,c),2)}W.imageEditor=g.yieldResult;W.updatePositionOfAllCorners();W.addEventListeners(W.imageEditor);_.HG(g)})},!1);
G.readAsDataURL(B);_.Nn(v,0);break;case 2:Y=_.h6(v),Y instanceof QD?_.c0(W.hostElement,"yt-image-selection-error-action",[(d=W.data)==null?void 0:d.imageSizeErrorMessage]):(Y instanceof Error?_.jy(Y):_.fG(new _.oX(JSON.stringify(Y))),_.c0(W.hostElement,"yt-image-selection-error-action",[(E=W.data)==null?void 0:E.genericImageLoadErrorMessage])),W.onCancelTap(),_.HG(v)}})};
_.p.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var W=_.FF(_.SK(),{veType:232707,visualElement:_.PA(232707)});W&&(W={visualElement:W},_.HJ().reportShown(W))}};
_.p.handleImageSelectionErrorAction=function(W){this.isPlaylistThumbnail&&_.eH2(this.hostElement,W)};
_.p.convertToImageFormatBundle=function(W){var B=this,z,G,Y;return _.T(function(d){switch(d.nextAddress){case 1:return z=W.toDataURL(B.outputMimeType,1),d.yield(qvj(z),2);case 2:G=d.yieldResult;_.kA(d,3);w6O(B.imageChecker,G);_.Nn(d,4);break;case 3:Y=_.h6(d);if(!(Y instanceof QD))throw Y;_.Oc(new _.oX("Output size is bigger than input size for image",B.mimeType,B.outputMimeType,G.size));z=W.toDataURL("image/jpeg",.95);return d.yield(qvj(z),6);case 6:G=d.yieldResult;case 4:return d.return({dataUrl:z,
imageFile:G})}})};
_.p.handleUploadImageToScottyCommand=function(W){var B=this,z,G,Y,d,E,v,c,J,g,t;return _.T(function(P){switch(P.nextAddress){case 1:if(!B.imageEditor||!_.k(W,JP1))return P.return();z=_.k(W,JP1).scottyUploadUrl;if(!z){var Z=new _.oX("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.jy(Z);return P.return()}_.kA(P,2);B.setLoadingState();G=B.imageEditor.crop(!1,!1);return P.yield(B.convertToImageFormatBundle(G),4);case 4:return Y=P.yieldResult,P.yield(DE9(Y.imageFile,z),5);
case 5:d=P.yieldResult;((E=B.data)==null?0:E.onUploadEndpoint)?(v=B.buildUploadServiceEndpoint(d),B.ytComponentBehavior.resolveCommand(v),c=_.k(v,_.pS),((J=c)==null?0:J.params)?B.closePopup():B.resetFileSelector()):(_.c0(B.hostElement,"yt-image-updated-action",[Y.dataUrl,d]),B.closePopup());_.Nn(P,0);break;case 2:g=_.h6(P),B.setErrorState((t=B.data)==null?void 0:t.uploadErrorMessage),g instanceof Error?_.jy(g):(Z=new _.oX(JSON.stringify(g)),_.jy(Z)),_.HG(P)}})};
_.p.buildUploadServiceEndpoint=function(W){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",W),this.data.onUploadEndpoint):null};
_.p.dataChanged=function(){var W=this,B;return _.T(function(z){if(z.nextAddress==1){if(!W.data||!W.canvasElement)return z.return();W.data.imageRatio&&W.data.minImageCropWidth||_.fG(new _.oX("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));B=function(G,Y){return W.data.imageType==="IMAGE_TYPE_AVATAR"?new m3b(G,Y,W.data.imageRatio,[W.data.minImageCropWidth,W.data.minImageCropWidth/W.data.imageRatio],W.hostElement):new yD(G,Y,W.data.imageRatio,[W.data.minImageCropWidth,
W.data.minImageCropWidth/W.data.imageRatio],void 0,W.hostElement,8,!1)};
W.imageEditorCanvas=new V56(W.canvasElement,B);return W.data.url?z.yield(s2b(W.imageEditorCanvas,W.data.url),3):(W.hideContainer=!0,W.openFileSelector(),z.jumpTo(0))}W.imageEditor=z.yieldResult;W.showPopup();W.addEventListeners(W.imageEditor);_.HG(z)})};
_.p.addEventListeners=function(W){this.removeEventListeners();var B=function(Y){Jcq(W,Y)};
this.JSC$20825_mouseDownEvent=B;var z=function(Y){gpb(W,Y)};
this.JSC$20825_mouseMoveEvent=z;var G=function(){t5f(W)};
this.JSC$20825_mouseUpEvent=G;this.topLeftCorner.addEventListener("mousedown",B);this.topLeftCorner.addEventListener("mousemove",z);this.topLeftCorner.addEventListener("mouseup",G);this.topRightCorner.addEventListener("mousedown",B);this.topRightCorner.addEventListener("mousemove",z);this.topRightCorner.addEventListener("mouseup",G);this.bottomLeftCorner.addEventListener("mousedown",B);this.bottomLeftCorner.addEventListener("mousemove",z);this.bottomLeftCorner.addEventListener("mouseup",G);this.bottomRightCorner.addEventListener("mousedown",
B);this.bottomRightCorner.addEventListener("mousemove",z);this.bottomRightCorner.addEventListener("mouseup",G)};
_.p.removeEventListeners=function(){this.JSC$20825_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20825_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20825_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20825_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20825_mouseDownEvent));this.JSC$20825_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20825_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20825_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20825_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20825_mouseMoveEvent));this.JSC$20825_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20825_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20825_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20825_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20825_mouseUpEvent))};
_.p.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var W=document.activeElement;W&&W.shadowRoot&&W.shadowRoot.activeElement;)W=W.shadowRoot.activeElement;switch(W){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};
_.p.updatePositionOfCorner=function(W,B){var z=W.y-B.offsetHeight/2+4;B.style.left=W.x-B.offsetWidth/2+16+"px";B.style.top=z+"px"};
_.p.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var W=_.A([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),B=W.next();!B.done;B=W.next()){B=B.value;var z=kV6(this.imageEditor,B.corner);this.updatePositionOfCorner(z,B.div)}};
_.p.onLeft=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(CDi(this.imageEditor,0),this.updatePositionOfAllCorners(),W.preventDefault())};
_.p.onRight=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(CDi(this.imageEditor,1),this.updatePositionOfAllCorners(),W.preventDefault())};
_.p.onUp=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(CDi(this.imageEditor,2),this.updatePositionOfAllCorners(),W.preventDefault())};
_.p.onDown=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(CDi(this.imageEditor,3),this.updatePositionOfAllCorners(),W.preventDefault())};
_.p.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.G5.Object.defineProperties(qa.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&D3i.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var W,B,z;((B=this.data)==null?0:B.imageRatio)&&((z=this.data)==null?0:z.minImageCropWidth)?W={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:W=x3q;return new ccn(W)}}});
qa.prototype.updatePositionOfAllCorners=qa.prototype.updatePositionOfAllCorners;qa.prototype.dataChanged=qa.prototype.dataChanged;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],qa.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],qa.prototype,"ytComponentBehavior",void 0);_.Q([_.h(_.DM),_.y("design:type",Object)],qa.prototype,"ironA11yKeysBehavior",void 0);
_.Q([_.Hf("#canvas"),_.y("design:type",HTMLCanvasElement)],qa.prototype,"canvasElement",void 0);_.Q([_.Hf("#file-selector"),_.y("design:type",HTMLInputElement)],qa.prototype,"fileSelector",void 0);_.Q([_.Hf("#top-left-corner"),_.y("design:type",HTMLDivElement)],qa.prototype,"topLeftCorner",void 0);_.Q([_.Hf("#top-right-corner"),_.y("design:type",HTMLDivElement)],qa.prototype,"topRightCorner",void 0);
_.Q([_.Hf("#bottom-left-corner"),_.y("design:type",HTMLDivElement)],qa.prototype,"bottomLeftCorner",void 0);_.Q([_.Hf("#bottom-right-corner"),_.y("design:type",HTMLDivElement)],qa.prototype,"bottomRightCorner",void 0);_.Q([_.F(),_.y("design:type",Object)],qa.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],qa.prototype,"errorMessage",void 0);_.Q([_.F(),_.y("design:type",Object)],qa.prototype,"isLoading",void 0);_.Q([_.F(),_.y("design:type",Object)],qa.prototype,"hideContainer",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.y("design:type",Boolean)],qa.prototype,"isPlaylistThumbnail",void 0);_.Q([_.jJ("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],qa.prototype,"dataChanged",null);_.Q([_.IN("image-updated"),_.IN("yt-refit"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qa.prototype,"updatePositionOfAllCorners",null);
_.Q([_.NJ({is:"yt-image-editor-renderer",disableElementRegistration:!0})],qa);
_.D(qa,"yt-image-editor-renderer",function(){if(TZr===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Ep1===void 0&&(Ep1=document.createElement("template"));var G=Ep1;z.call(B,G.content.cloneNode(!0),W.content.firstChild);TZr=W}W=TZr;return W},{mode:2});var Q2K;var ycY;var nb=function(){return _.S.apply(this,arguments)||this};
_.C(nb,_.S);nb.prototype.updateMinutesFromBinding=function(W){this.handleMinutesChanged&&this.handleMinutesChanged(W)};
nb.prototype.updateSecondsFromBinding=function(W){this.handleSecondsChanged&&this.handleSecondsChanged(W)};
nb.prototype.updateDescriptionFromBinding=function(W){this.handleDescriptionChanged&&this.handleDescriptionChanged(W)};
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],nb.prototype,"ytComponentBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],nb.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",String)],nb.prototype,"minutes",void 0);_.Q([_.F(),_.y("design:type",String)],nb.prototype,"seconds",void 0);_.Q([_.F(),_.y("design:type",String)],nb.prototype,"description",void 0);_.Q([_.F(),_.y("design:type",Function)],nb.prototype,"handleMinutesChanged",void 0);
_.Q([_.F(),_.y("design:type",Function)],nb.prototype,"handleSecondsChanged",void 0);_.Q([_.F(),_.y("design:type",Function)],nb.prototype,"handleDescriptionChanged",void 0);_.Q([_.F(),_.y("design:type",Number)],nb.prototype,"characterLimit",void 0);_.Q([_.F(),_.y("design:type",Number)],nb.prototype,"textNumRows",void 0);_.Q([_.NJ({is:"yt-report-details-form-content",disableElementRegistration:!0})],nb);
_.D(nb,"yt-report-details-form-content",function(){if(ycY===void 0){var W=document.createElement("template");_.I(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Q2K===void 0&&(Q2K=document.createElement("template"));var G=Q2K;z.call(B,G.content.cloneNode(!0),W.content.firstChild);ycY=W}W=ycY;return W},{mode:2});var q1f;var npY;var Na=function(){var W=_.S.apply(this,arguments)||this;W.updateMinutesFromBinding=function(B){W.minutes=B.detail.value};
W.updateSecondsFromBinding=function(B){W.seconds=B.detail.value};
W.updateDescriptionFromBinding=function(B){W.description=B.detail.value};
return W};
_.C(Na,_.S);_.p=Na.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.p.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"}}}};
_.p.ready=function(){_.tH(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.p.onSubmitYtAction=function(W){var B=W.detail;B.actionName==="yt-service-request"&&(B=B.args[1],B.flagEndpoint&&(W.stopPropagation(),this.refireAction(B)))};
_.p.refireAction=function(W){var B={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(B.vss_id=this.vssId);_.V0(this.hostElement,[W,B]);this.submitDisabled=!0};
_.p.dataChanged=function(){var W=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var B=_.TN();B&&B.getPlayerPromise().then(function(z){var G=z.getOption("cc","track")||z.getOption("captions","track");G&&(W.vssId=G.vss_id);z=z.getCurrentTime();W.minutes=Math.floor(z/60).toString();W.seconds=(Math.floor(z)%60).toString()})};
_.p.updateSubmitButtonState=function(){var W;((W=this.data)==null?0:W.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==="")};
_.p.onYtServiceRequestCompleted=function(){_.c0(this.hostElement,"yt-close-popup-action")};
_.p.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.G5.Object.defineProperties(Na.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.textNumRows)||4}}});
Na.prototype.onYtServiceRequestError=Na.prototype.onYtServiceRequestError;Na.prototype.onYtServiceRequestCompleted=Na.prototype.onYtServiceRequestCompleted;Na.prototype.updateSubmitButtonState=Na.prototype.updateSubmitButtonState;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Na.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);
_.Q([_.F({observer:"dataChanged"}),_.y("design:type",Object)],Na.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Boolean)],Na.prototype,"submitDisabled",void 0);_.Q([_.F(),_.y("design:type",String)],Na.prototype,"minutes",void 0);_.Q([_.F(),_.y("design:type",String)],Na.prototype,"seconds",void 0);_.Q([_.F(),_.y("design:type",String)],Na.prototype,"description",void 0);_.Q([_.F(),_.y("design:type",String)],Na.prototype,"vssId",void 0);
_.Q([_.F({value:_.eD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.y("design:type",Boolean)],Na.prototype,"isMusic",void 0);_.Q([_.H("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],Na.prototype,"characterLimit",null);_.Q([_.H("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],Na.prototype,"textNumRows",null);
_.Q([_.jJ("minutes","seconds","description","submitDisabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Na.prototype,"updateSubmitButtonState",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Na.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Na.prototype,"onYtServiceRequestError",null);_.Q([_.NJ({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Na);
_.D(Na,"yt-report-details-form-renderer",function(){if(npY===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;q1f===void 0&&(q1f=document.createElement("template"));var G=q1f;z.call(B,G.content.cloneNode(!0),W.content.firstChild);npY=W}W=npY;return W});var NZK;var $39;var LlY;var U3O;var $C=function(){return _.S.apply(this,arguments)||this};
_.C($C,_.S);
$C.prototype.onCheckedChanged_=function(){if(this.data){var W=_.tH(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.c0(this.hostElement,"yt-additional-detail-checkbox-update",[W]):this.data.identifier==="yt-hide-user-checkbox"?_.c0(this.hostElement,"yt-hide-user-checkbox-update",[W]):W&&this.data.enableCommand?_.c0(this.hostElement,"yt-modify-report-form-command",[_.k(this.data.enableCommand,kzK)]):!W&&this.data.disableCommand&&_.c0(this.hostElement,
"yt-modify-report-form-command",[_.k(this.data.enableCommand,kzK)])}};
$C.prototype.onLabelTap_=function(W){W.target.tagName!="A"&&(_.tH(this.hostElement).querySelector("#checkbox").checked=!_.tH(this.hostElement).querySelector("#checkbox").checked)};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],$C.prototype,"data",void 0);_.Q([_.NJ({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],$C);
_.D($C,"yt-boolean-form-field-v2-renderer",function(){if(U3O===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;LlY===void 0&&(LlY=document.createElement("template"));var G=LlY;z.call(B,G.content.cloneNode(!0),W.content.firstChild);U3O=W}W=U3O;return W});var Lb=function(){var W=_.S.apply(this,arguments)||this;W.canShowAdditionalDetailCheckbox=!1;W.canShowCheckbox=!1;W.keepDropdownFocusedAfterSelection=!0;return W};
_.C(Lb,_.S);Lb.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}}}}};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Lb.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],Lb.prototype,"canShowAdditionalDetailCheckbox",void 0);_.Q([_.F(),_.y("design:type",Object)],Lb.prototype,"canShowCheckbox",void 0);_.Q([_.F(),_.y("design:type",Object)],Lb.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.Q([_.NJ({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Lb);
_.D(Lb,"yt-report-form-modal-content",function(){if($39===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;NZK===void 0&&(NZK=document.createElement("template"));var G=NZK;z.call(B,G.content.cloneNode(!0),W.content.firstChild);$39=W}W=$39;return W},{mode:2});var M5f;var aXj;var Ua=function(){var W=_.S.apply(this,arguments)||this;W.submitting=!1;W.submitButtonDisabled=!0;W.command=null;W.canShowCheckbox=!1;W.canShowAdditionalDetailCheckbox=!1;W.canShowNextButton=!1;W.additionalDetailCheckboxChecked=!1;W.refitJob=0;W.keepDropdownFocusedAfterSelection=!0;W.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 W};
_.C(Ua,_.S);_.p=Ua.prototype;_.p.created=function(){this.refitJob=0};
_.p.attached=function(){this.JSC$20848_scroller&&(this.JSC$20848_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20848_scroller.attached&&typeof this.JSC$20848_scroller.attached==="function"&&this.JSC$20848_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(W){W&&(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,W.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),W.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.p.onYtPopupOpened=function(){var W=_.TN();W&&W.getPlayerPromise().then(function(B){B.pauseVideo()})};
_.p.onYtNavigate=function(W){_.k(W.detail.endpoint,_.FaD)&&(W.stopPropagation(),this.hideReportForm=!0)};
_.p.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.p.onYtServiceRequestCompleted=function(W,B){var z=B.actions;if(z){if(z.length===1&&_.k(z[0],_.tr)){var G;z=((G=_.k(z[0],_.tr))==null?void 0:G.commands)||[]}G=0;for(var Y=z.length;G<Y;G++)_.k(z[G],_.Nm)&&(W.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(z[G]))}if(B.data&&(W=this.get("feedbackResponses",B.data)))for(B=0;B<W.length;B++)if(W[B].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.p.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.p._onDescendantIronResize=function(W){W.stopPropagation();return!1};
_.p.handleReportFormEndpointUpdateAction=function(W){if(W.submitEndpoint){var B=this.command=W.submitEndpoint;B=_.k(B,_.oLu);if(B==null?0:B.additionalDetailCheckboxChecked)B.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else W.submitNavigationEndpoint?(this.command=W.submitNavigationEndpoint,this.toggleSubmitButton(!1)):W.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:W.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;W.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",W));this.refit()};
_.p.handleConfirmDialogCloseAction=function(W){W.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.p.submitButtonDisabledChanged=function(){var W=this.hostElement.parentElement;W&&W.invalidateTabbables&&W.invalidateTabbables()};
_.p.handleModifyReportFormCommand=function(W){W=this.get("action",W);W==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:W==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:W==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:W==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:W==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:W==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.p.updateDialogStyling=function(){var W,B,z,G,Y,d=((Y=(W=this.data)==null?void 0:(B=W.optionsSupportedRenderers)==null?void 0:(z=B.optionsRenderer)==null?void 0:(G=z.items)==null?void 0:G.length)!=null?Y:0)<=2?0:240;_.kw(this.hostElement,{"--yt-report-form-modal-renderer-min-width":d+"px"})};
_.p.toggleSubmitButton=function(W){this.submitButtonDisabled=!W;this.submitButtonDisabled=W};
_.p.computeSubmitButtonData=function(W,B){var z={};_.k(B,_.FaD)?z.navigationEndpoint=B:z.command=B||void 0;W&&W.buttonRenderer&&_.mP.extend(z,W.buttonRenderer);return z};
_.p.computeNextButtonData=function(W,B){var z={};if(!W||!W.buttonRenderer)return z;_.mP.extend(z,W.buttonRenderer);if(!B)return z;if(_.k(B,_.FaD))z.navigationEndpoint=qLb(B);else if(z.command=qLb(B),W=_.k(z.command,_.oLu))W.legalCheckboxChecked=!0;return z};
_.p.computeShowNextButton=function(W,B,z){return!!W&&B&&z};
_.p.refit=function(){var W=this;this.refitJob||(this.refitJob=_.fg.addLowPriorityJob(function(){_.v0(W.hostElement,"yt-refit");W.refitJob=0}))};
_.p.handleAdditionalDetailCheckboxUpdateAction=function(W){this.additionalDetailCheckboxChecked=W;_.k(this.command,_.oLu).additionalDetailCheckboxChecked=W};
_.G5.Object.defineProperties(Ua,{template:{configurable:!0,enumerable:!0,get:function(){if(aXj===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;M5f===void 0&&(M5f=document.createElement("template"));var G=M5f;z.call(B,G.content.cloneNode(!0),W.content.firstChild);aXj=W}W=aXj;return W}}});
Ua.prototype.onYtServiceRequestError=Ua.prototype.onYtServiceRequestError;Ua.prototype.onYtServiceRequestCompleted=Ua.prototype.onYtServiceRequestCompleted;Ua.prototype.onYtServiceRequestSent=Ua.prototype.onYtServiceRequestSent;Ua.prototype.onYtNavigate=Ua.prototype.onYtNavigate;Ua.prototype.onYtPopupOpened=Ua.prototype.onYtPopupOpened;_.Q([_.h(_.Ds.YtOpenPopupBehavior),_.y("design:type",Object)],Ua.prototype,"openPopupBehavior",void 0);
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],Ua.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],Ua.prototype,"eventForwardingBehavior",void 0);_.Q([_.h(_.Mp),_.y("design:type",Object)],Ua.prototype,"ironResizableBehavior",void 0);_.Q([_.F({observer:"dataChanged"}),_.y("design:type",Object)],Ua.prototype,"data",void 0);
_.Q([_.F(),_.y("design:type",Object)],Ua.prototype,"submitting",void 0);_.Q([_.F({observer:"submitButtonDisabledChanged"}),_.y("design:type",Object)],Ua.prototype,"submitButtonDisabled",void 0);_.Q([_.F(),_.y("design:type",Object)],Ua.prototype,"command",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ua.prototype,"hideReportForm",void 0);_.Q([_.F(),_.y("design:type",Object)],Ua.prototype,"canShowCheckbox",void 0);
_.Q([_.F(),_.y("design:type",Object)],Ua.prototype,"canShowAdditionalDetailCheckbox",void 0);_.Q([_.F(),_.y("design:type",Object)],Ua.prototype,"canShowNextButton",void 0);_.Q([_.F(),_.y("design:type",Object)],Ua.prototype,"additionalDetailCheckboxChecked",void 0);_.Q([_.F(),_.y("design:type",Object)],Ua.prototype,"refitJob",void 0);_.Q([_.F(),_.y("design:type",Object)],Ua.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.Q([_.Hf("#scroller"),_.y("design:type",Object)],Ua.prototype,"JSC$20848_scroller",void 0);_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ua.prototype,"onYtPopupOpened",null);_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Ua.prototype,"onYtNavigate",null);
_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],Ua.prototype,"onYtServiceRequestSent",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],Ua.prototype,"onYtServiceRequestCompleted",null);
_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Ua.prototype,"onYtServiceRequestError",null);_.Q([_.NJ({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Ua);var RGf;var W$r;var Ma=function(){return _.S.apply(this,arguments)||this};
_.C(Ma,_.S);_.p=Ma.prototype;_.p.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.p.onVisible=function(){var W,B;(B=_.dO().resolve(_.Y8(_.G8)))==null||B.enqueue({label:_.zR((W=this.data)==null?void 0:W.messageTitle),elementToFocus:this.hostElement})};
_.p.onThumbnailLoaded=function(){_.v0(this.hostElement,"yt-refit")};
_.p.onDismissTap=function(){_.c0(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.p.computeAlternateIcon=function(W){return W?W==="BACKSTAGE_ARTWORK"?"backstage:artwork":W:null};
_.p.computeFontFamily=function(W){return W==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.p.computeBackgroundStyle=function(W,B){if(W=this.computeBackgroundImage(W,B))if(W=_.gS(W.thumbnails))return'background-image: url("'+W+'");'};
_.p.computeHasFullHeightImage=function(W){return!(!(W&&W.thumbnails&&W.thumbnails.length>0)||this.modern)};
_.p.isModernStyle=function(W){return W.style==="STYLE_MODERN"};
_.p.computeIcon=function(W,B){if(W&&W.icon)return B?W.iconDark:W.icon};
_.p.computeBackgroundImage=function(W,B){if(W&&W.backgroundImage)return B?W.backgroundImageDark:W.backgroundImage};
_.p.computeLogo=function(W,B){if(W&&W.logo)return B?W.logoDark:W.logo};
_.p.computeShouldShowModernIcon=function(W,B){return W&&!!B};
_.p.getLogoContainerClassName=function(W){return this.logoWithPadding(W)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.p.getLogoImageId=function(W){return this.logoWithPadding(W)?"mealbar-logo-with-padding":"mealbar-logo"};
_.p.logoWithPadding=function(W){var B,z,G;return(W=(B=this.computeLogo(W,this.isDarkTheme))==null?void 0:(z=B.thumbnails)==null?void 0:(G=z[0])==null?void 0:G.height)&&W%31===0?!0:!1};
Ma.prototype.onThumbnailLoaded=Ma.prototype.onThumbnailLoaded;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);_.Q([_.F({}),_.y("design:type",Object)],Ma.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.y("design:type",Boolean)],Ma.prototype,"modern",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],Ma.prototype,"isDarkTheme",void 0);
_.Q([_.F({computed:"computeIcon(data, isDarkTheme)"}),_.y("design:type",Object)],Ma.prototype,"icon",void 0);_.Q([_.F({computed:"computeLogo(data, isDarkTheme)"}),_.y("design:type",Object)],Ma.prototype,"logo",void 0);_.Q([_.F({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.y("design:type",Object)],Ma.prototype,"backgroundStyle",void 0);_.Q([_.F({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.y("design:type",Object)],Ma.prototype,"alternateIcon",void 0);
_.Q([_.F({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.y("design:type",Boolean)],Ma.prototype,"hasFullHeightImage",void 0);_.Q([_.F({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.y("design:type",Boolean)],Ma.prototype,"useYoutubeSans",void 0);_.Q([_.F({computed:"computeShouldShowModernIcon(modern, icon)"}),_.y("design:type",Boolean)],Ma.prototype,"shouldShowModernIcon",void 0);
_.Q([_.IN("yt-img-shadow-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ma.prototype,"onThumbnailLoaded",null);_.Q([_.NJ({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Ma);
_.D(Ma,"yt-mealbar-promo-renderer",function(){if(W$r===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;RGf===void 0&&(RGf=document.createElement("template"));var G=RGf;z.call(B,G.content.cloneNode(!0),W.content.firstChild);W$r=W}W=W$r;return W},{mode:2});var Btf;var zw1;var aM=function(){return _.S.apply(this,arguments)||this};
_.C(aM,_.S);_.p=aM.prototype;_.p.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]]"}}}}}};
_.p.computeHasButtons_=function(W){return!(!W.dismissButton&&!W.acceptButton)};
_.p.computeStyle_=function(W){return W||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.p.observeImpressionEndpoints_=function(){var W=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(B){B.clickTrackingParams&&delete B.clickTrackingParams;_.V0(W.hostElement,[B])})};
_.p.onTap_=function(){_.c0(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
aM.prototype.observeImpressionEndpoints_=aM.prototype.observeImpressionEndpoints_;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],aM.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],aM.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],aM.prototype,"positionType",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.y("design:type",Boolean)],aM.prototype,"hasButtons_",void 0);_.Q([_.F({value:function(){return this.onTap_.bind(this)}}),
_.y("design:type",Function)],aM.prototype,"boundOnTap_",void 0);_.Q([_.F({value:{style:"mono-inverse"}}),_.y("design:type",Object)],aM.prototype,"buttonOverride",void 0);_.Q([_.oN("data.promoConfig.impressionEndpoints"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aM.prototype,"observeImpressionEndpoints_",null);_.Q([_.NJ({is:"yt-tooltip-renderer",disableElementRegistration:!0})],aM);
_.D(aM,"yt-tooltip-renderer",function(){if(zw1===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Btf===void 0&&(Btf=document.createElement("template"));var G=Btf;z.call(B,G.content.cloneNode(!0),W.content.firstChild);zw1=W}W=zw1;return W},{mode:2});var Gvf;var Yu6;var dSO={},pLr=(dSO.WEB_REMIX="music.youtube.com",dSO),RM=function(){var W=_.S.apply(this,arguments)||this;W.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return W};
_.C(RM,_.S);_.p=RM.prototype;_.p.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.created=function(){this.embedHost_=pLr[_.eD("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.p.ready=function(){_.tH(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.p.computeEmbedCode_=function(W,B,z,G,Y){if(!W)return"";var d=W.videoId,E=W.fullListId,v=[];W.attributionId&&v.push("si="+W.attributionId);G||v.push("controls=0");z&&Number(B)>0&&v.push("start="+B);E&&(d="videoseries",v.push("list="+E));z="https://"+(Y?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+d;W.clipId&&(v.push("clip="+W.clipId),v.push("clipt="+W.clipTiming));B=v.length>0?z+"?"+v.join("&amp;"):z;W.encryptedEmbedConfig&&v.push("embed_config="+JSON.stringify({enc:W.encryptedEmbedConfig}));
v=v.length>0?z+"?"+v.join("&amp;"):z;_.r("web_sharing_embed_preview_killswitch")?_.tH(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(v,W.previewWidth||854,W.previewHeight||480):(_.yG(this.videoPreviewContainer),_.tH(this.videoPreviewContainer).appendChild(this.buildIframeElement(v)));return this.getEmbedCode_(B,W.width||560,W.height||315)};
_.p.buildIframeElement=function(W){var B=document.createElement("iframe"),z,G;B.width=""+((G=(z=this.data)==null?void 0:z.previewWidth)!=null?G:854);var Y,d;B.height=""+((d=(Y=this.data)==null?void 0:Y.previewHeight)!=null?d:480);_.A6R(B,2,W);B.title="YouTube video player";B.frameBorder="0";B.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";B.referrerPolicy="strict-origin-when-cross-origin";B.allowFullscreen=!0;return B};
_.p.computeIsSquareAspectRatio_=function(W){return W.previewHeight&&W.previewWidth?W.previewHeight==W.previewWidth:!1};
_.p.computeShowEmbedOptions_=function(W){return!!W.enablePrivacyModeOptionLabel||!!W.showPlayerControlsOptionLabel};
_.p.getEmbedCode_=function(W,B,z){return'<iframe width="'+B+'" height="'+z+'" src="'+W+'" 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>'};
_.p.handleSignalActionCopyShareEmbedUrl_=function(){_.tH(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.p.handleSetTimestamp_=function(W){this.startAtTimeStamp_=(this.startAtChecked_=W.isSet)?W.timestamp:0};
_.p.closePanel_=function(){_.c0(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.p.onEmbedCode_=function(){_.tH(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.p.onYtPopupClosed_=function(){_.yG(_.tH(this.hostElement).querySelector("#video-preview"))};
_.p.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.k(this.data.actionButtons[0],_.Ep)&&this.ytRendererBehavior.logExplicitClick(_.k(this.data.actionButtons[0],_.Ep))};
RM.prototype.onYtPopupClosed_=RM.prototype.onYtPopupClosed_;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],RM.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],RM.prototype,"data",void 0);
_.Q([_.F({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.y("design:type",String)],RM.prototype,"embedCode_",void 0);_.Q([_.F({value:!0}),_.y("design:type",Boolean)],RM.prototype,"isPlayerControlsOptionChecked_",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],RM.prototype,"isPrivacyModeOptionChecked_",void 0);_.Q([_.F({value:!1,notify:!0}),_.y("design:type",Boolean)],RM.prototype,"startAtChecked_",void 0);
_.Q([_.F({value:0}),_.y("design:type",Number)],RM.prototype,"startAtTimeStamp_",void 0);_.Q([_.F({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],RM.prototype,"isSquareAspectRatio_",void 0);_.Q([_.Hf("#video-preview"),_.y("design:type",HTMLElement)],RM.prototype,"videoPreviewContainer",void 0);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RM.prototype,"onYtPopupClosed_",null);
_.Q([_.NJ({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],RM);
_.D(RM,"yt-sharing-embed-renderer",function(){if(Yu6===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Gvf===void 0&&(Gvf=document.createElement("template"));var G=Gvf;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Yu6=W}W=Yu6;return W},{mode:2});var Aii={};
Aii.YtUnlimitedFamilyInterstitialBehavior=[_.Ds.YtOpenPopupBehavior,_.ye.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(W){W=_.Sb9(_.iP(W),"yt-button-renderer");return W?W.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(W){this.dialogHistory_.push(W)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var W=this.popFromHistory();if(W){var B={openPopupAction:{popupType:"DIALOG",popup:{}}};B.openPopupAction.popup[W.renderer]=W.data;this.showingPreviousDialog_=!0;this.openPopup(B)}},
handleOpenPopupAction_:function(W){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var B=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(G){return!!W.openPopupAction.popup[G]}),z=this.getElementName_();
B&&this.data&&(this.pushToHistory({renderer:z,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(W){if(W=_.k(W,UK9))this.loading=!0,_.c0(this.hostElement,"yt-open-create-family-dialog",[W,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var W=this.hostElement.nodeName.split("-").slice(1).map(function(B){return""+B[0].toUpperCase()+B.slice(1).toLowerCase()}).join("");
return W[0].toLowerCase()+W.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var ici;var EZr;var WF=function(){return _.S.apply(this,arguments)||this};
_.C(WF,_.S);_.p=WF.prototype;_.p.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}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.c0(this.hostElement,"yt-register-create-family-dialog");_.tH(this.hostElement).querySelector("#thumbnail").onShow()};
_.p.fireOnCloseCommand_=function(){var W;((W=this.data)==null?0:W.onCloseCommand)&&_.Jr(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.p.onYtServiceRequestSent_=function(W,B){B&&B.endpoint&&_.k(B.endpoint,_.P0)||(this.loading=!0)};
_.p.onYtServiceRequestCompleted_=function(){var W=this.hostElement.parentElement;W.close&&W.close();this.loading=!1};
_.p.openPopupHandler_=function(W){if(W.detail==this){var B;((B=this.data)==null?0:B.onOpenCommands)&&_.Jr(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.p.closePopupHandler_=function(W,B){this.fireOnCloseCommand_();if(B&&B.canceled===!0||B&&B.canceled===!1&&B.confirmed===!1){var z;((z=this.data)==null?0:z.onDismissCommands)&&_.Jr(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.p.dataChanged_=function(){this.loading=!1};
WF.prototype.dataChanged_=WF.prototype.dataChanged_;WF.prototype.closePopupHandler_=WF.prototype.closePopupHandler_;WF.prototype.openPopupHandler_=WF.prototype.openPopupHandler_;WF.prototype.onYtServiceRequestCompleted_=WF.prototype.onYtServiceRequestCompleted_;WF.prototype.onYtServiceRequestSent_=WF.prototype.onYtServiceRequestSent_;_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],WF.prototype,"ytEventForwardingBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],WF.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(Aii.YtUnlimitedFamilyInterstitialBehavior),_.y("design:type",Object)],WF.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],WF.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],WF.prototype,"loading",void 0);_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],WF.prototype,"onYtServiceRequestSent_",null);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],WF.prototype,"onYtServiceRequestCompleted_",null);
_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],WF.prototype,"openPopupHandler_",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],WF.prototype,"closePopupHandler_",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],WF.prototype,"dataChanged_",null);
_.Q([_.NJ({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],WF);
_.D(WF,"yt-unlimited-family-message-interstitial-renderer",function(){if(EZr===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;ici===void 0&&(ici=document.createElement("template"));var G=ici;z.call(B,G.content.cloneNode(!0),W.content.firstChild);EZr=W}W=EZr;return W},{mode:2});var TtK;var vZ1;var BF=function(){return _.S.apply(this,arguments)||this};
_.C(BF,_.S);BF.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"}}}};
BF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.tH(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(W){W.onShow()});
_.tH(this.hostElement).querySelector("#main-thumbnail").onShow()};
BF.prototype.onButtonTap_=function(W){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(W)};
BF.prototype.computeMainThumbnailWidth_=function(W){return W&&W.length!==0?72:96};
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],BF.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.Q([_.h(Aii.YtUnlimitedFamilyInterstitialBehavior),_.y("design:type",Object)],BF.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],BF.prototype,"data",void 0);
_.Q([_.F({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.y("design:type",Number)],BF.prototype,"mainThumbnailWidth_",void 0);_.Q([_.F({value:function(){return this.onButtonTap_.bind(this)}}),
_.y("design:type",Function)],BF.prototype,"boundButtonTap_",void 0);_.Q([_.NJ({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],BF);
_.D(BF,"yt-unlimited-family-profile-interstitial-renderer",function(){if(vZ1===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;TtK===void 0&&(TtK=document.createElement("template"));var G=TtK;z.call(B,G.content.cloneNode(!0),W.content.firstChild);vZ1=W}W=vZ1;return W},{mode:2});var cif;var wLf;var zD=function(){var W=_.S.apply(this,arguments)||this;W.sliderAriaValueText_=null;W.selectedIndex_=0;W.messages={PAUSE_SLIDER:_.kq("PAUSE_SLIDER",void 0,"Pause Duration")};return W};
_.C(zD,_.S);_.p=zD.prototype;_.p.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_]]"}}}}}};
_.p.onPopupOpened_=function(W){W.detail==this&&_.r("enable_premium_voluntary_pause")&&(_.c0(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.setDialogData=function(W){this.data=W;this.resetSlider_()};
_.p.dataChanged_=function(){this.data&&this.resetSlider_()};
_.p.onSubmitTap_=function(){if(this.data.confirmCommand){var W=this.data.confirmCommand;_.k(W,_.ZjH)&&_.V0(this.hostElement,[W,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.p.onExitButtonTap_=function(){_.c0(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.p.closePopupHandler_=function(W,B){(B&&B.canceled===!0||B.canceled===!1&&B.confirmed===!1)&&this.handleOnDismissCommands_()};
_.p.onSliderChange_=function(){this.selectedIndex_=_.tH(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.p.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.p.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.p.resetSlider_=function(){if(this.data){var W=this.data.defaultEndOptionIndex||0,B=_.tH(this.hostElement).querySelector("#id-pause-slider");if(B.immediateValue<W)for(;B.immediateValue!=W;)B.increment();else if(W<B.immediateValue)for(;B.immediateValue!=W;)B.decrement();this.selectedIndex_=W;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.p.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Jr(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.p.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Jr(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.p.onYtServiceRequestSent=function(){this.loading=!0};
_.p.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
zD.prototype.onYtServiceRequestCompleted=zD.prototype.onYtServiceRequestCompleted;zD.prototype.onYtServiceRequestSent=zD.prototype.onYtServiceRequestSent;zD.prototype.closePopupHandler_=zD.prototype.closePopupHandler_;zD.prototype.dataChanged_=zD.prototype.dataChanged_;zD.prototype.onPopupOpened_=zD.prototype.onPopupOpened_;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],zD.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],zD.prototype,"loading",void 0);_.Q([_.F(),_.y("design:type",Number)],zD.prototype,"selectIndexMax_",void 0);_.Q([_.F(),_.y("design:type",Object)],zD.prototype,"selectedData_",void 0);
_.Q([_.F(),_.y("design:type",Object)],zD.prototype,"sliderAriaValueText_",void 0);_.Q([_.F({value:function(){return this.onSubmitTap_.bind(this)}}),
_.y("design:type",Function)],zD.prototype,"onButtonTap_",void 0);_.Q([_.F({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.y("design:type",Function)],zD.prototype,"onSecondaryTap_",void 0);_.Q([_.F(),_.y("design:type",Object)],zD.prototype,"messages",void 0);_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],zD.prototype,"onPopupOpened_",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zD.prototype,"dataChanged_",null);
_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],zD.prototype,"closePopupHandler_",null);_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],zD.prototype,"onYtServiceRequestSent",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],zD.prototype,"onYtServiceRequestCompleted",null);_.Q([_.NJ({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],zD);
_.D(zD,"yt-unplugged-pause-membership-dialog-renderer",function(){if(wLf===void 0){var W=document.createElement("template");_.I(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;cif===void 0&&(cif=document.createElement("template"));var G=cif;z.call(B,G.content.cloneNode(!0),W.content.firstChild);wLf=W}W=wLf;return W},{mode:2});var V29;var Jin;var GD=function(){return _.S.apply(this,arguments)||this};
_.C(GD,_.S);GD.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.mT("vcBalanceRenderer")}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],GD.prototype,"data",void 0);_.Q([_.NJ({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],GD);
_.D(GD,"yt-vc-offer-layout-header-renderer",function(){if(Jin===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;V29===void 0&&(V29=document.createElement("template"));var G=V29;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Jin=W}W=Jin;return W},{mode:2});var gZi;var t26;var sVn;var PXb;var Yv=function(){return _.S.apply(this,arguments)||this};
_.C(Yv,_.S);Yv.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.G5.Object.defineProperties(Yv.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)}}});
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],Yv.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.$y4.YtTappableItemBehavior),_.y("design:type",Object)],Yv.prototype,"ytTappableItemBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],Yv.prototype,"data",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.H("data.accessibilityText"),_.y("design:type",String),_.y("design:paramtypes",[])],Yv.prototype,"ariaLabel",null);_.Q([_.F({reflectToAttribute:!0}),_.H("data.style"),_.y("design:type",String),_.y("design:paramtypes",[])],Yv.prototype,"vcOfferStyle",null);_.Q([_.H("data.style","data.titleText"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Yv.prototype,"showTitleText",null);_.Q([_.NJ({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Yv);
_.D(Yv,"yt-vc-offer-renderer",function(){if(PXb===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;sVn===void 0&&(sVn=document.createElement("template"));var G=sVn;z.call(B,G.content.cloneNode(!0),W.content.firstChild);PXb=W}W=PXb;return W},{mode:2});var dK=function(){return _.S.apply(this,arguments)||this};
_.C(dK,_.S);dK.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}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],dK.prototype,"data",void 0);_.Q([_.NJ({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],dK);
_.D(dK,"yt-vc-offer-layout-renderer",function(){if(t26===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;gZi===void 0&&(gZi=document.createElement("template"));var G=gZi;z.call(B,G.content.cloneNode(!0),W.content.firstChild);t26=W}W=t26;return W},{mode:2});var Zci;var riq;var kv1;var lui;var pE=function(){return _.S.apply(this,arguments)||this};
_.C(pE,_.S);pE.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}}}}}};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],pE.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],pE.prototype,"data",void 0);_.Q([_.NJ({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],pE);
_.D(pE,"yt-ypc-offers-modal-top-bar-renderer",function(){if(lui===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;kv1===void 0&&(kv1=document.createElement("template"));var G=kv1;z.call(B,G.content.cloneNode(!0),W.content.firstChild);lui=W}W=lui;return W},{mode:2});var A_=function(){return _.S.apply(this,arguments)||this};
_.C(A_,_.S);A_.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"}}}}};
A_.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
A_.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var W=this.scrollable;W.attached&&typeof W.attached==="function"&&W.attached()};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],A_.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.Hf("#scrollable"),_.y("design:type",Object)],A_.prototype,"scrollable",void 0);_.Q([_.F(),_.y("design:type",Object)],A_.prototype,"data",void 0);_.Q([_.NJ({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],A_);
_.D(A_,"yt-ypc-offers-modal-renderer",function(){if(riq===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;Zci===void 0&&(Zci=document.createElement("template"));var G=Zci;z.call(B,G.content.cloneNode(!0),W.content.firstChild);riq=W}W=riq;return W},{mode:2});var CX6;var Iuj;var ic=function(){return _.S.apply(this,arguments)||this};
_.C(ic,_.S);_.p=ic.prototype;_.p.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}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.tH(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.p.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.c0(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.p.onYtPopupOpened_=function(W,B){(B==null?void 0:B.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Jr(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.p.onYtPopupClosed_=function(W,B){this.continueButtonTapped||B&&(B.canceled===!0||B.canceled===!1&&B.confirmed===!1)&&this.data.onDismissCommands&&_.Jr(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.p.onYtServiceRequestError_=function(W){this.set("showSpinner",!1);_.Wk(this.hostElement,W.detail.error.message)};
_.p.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.r("enable_ypc_spinners")?_.c0(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
ic.prototype.onYtServiceRequestError_=ic.prototype.onYtServiceRequestError_;ic.prototype.onYtPopupClosed_=ic.prototype.onYtPopupClosed_;ic.prototype.onYtPopupOpened_=ic.prototype.onYtPopupOpened_;ic.prototype.onYtServiceRequestCompleted_=ic.prototype.onYtServiceRequestCompleted_;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],ic.prototype,"ytRendererstamperBehavior",void 0);
_.Q([_.F(),_.y("design:type",Object)],ic.prototype,"data",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],ic.prototype,"showSpinner",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],ic.prototype,"continueButtonTapped",void 0);_.Q([_.F({value:function(){return this.onContinueTapped_.bind(this)}}),
_.y("design:type",Function)],ic.prototype,"bindOnContinueTapped_",void 0);_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ic.prototype,"onYtServiceRequestCompleted_",null);_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],ic.prototype,"onYtPopupOpened_",null);
_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],ic.prototype,"onYtPopupClosed_",null);_.Q([_.IN("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ic.prototype,"onYtServiceRequestError_",null);_.Q([_.NJ({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],ic);
_.D(ic,"yt-ypc-upgrade-dialog-renderer",function(){if(Iuj===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;CX6===void 0&&(CX6=document.createElement("template"));var G=CX6;z.call(B,G.content.cloneNode(!0),W.content.firstChild);Iuj=W}W=Iuj;return W},{mode:2});var oZ6;var hwb;var EP=function(){return _.S.apply(this,arguments)||this};
_.C(EP,_.S);EP.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
EP.prototype.computeHasButtons_=function(W){return!(!W.dismissButton&&!W.confirmButton)};
EP.prototype.computeStyle_=function(W){return W||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],EP.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],EP.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],EP.prototype,"data",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],EP.prototype,"positionType",void 0);
_.Q([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.y("design:type",Boolean)],EP.prototype,"hasButtons_",void 0);_.Q([_.F({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.y("design:type",Boolean)],EP.prototype,"style_",void 0);_.Q([_.NJ({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],EP);
_.D(EP,"yt-bubble-hint-renderer",function(){if(hwb===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;oZ6===void 0&&(oZ6=document.createElement("template"));var G=oZ6;z.call(B,G.content.cloneNode(!0),W.content.firstChild);hwb=W}W=hwb;return W},{mode:2});var HcO;var F$9;var TD=function(){var W=_.Y6.apply(this,arguments)||this;W.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return W};
_.C(TD,_.Y6);_.p=TD.prototype;_.p.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.p.attached=function(){var W=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){W.$.thumbnail.onShow();W.$["header-image"].onShow()})};
_.p.handleCheckBoxUpdateAction_=function(W){this.canShowCheckboxEnabledConfirmButton=W};
_.p.computeUseOverlayForSpinner_=function(W,B){return!!W&&B};
_.p.computeShowSpinner_=function(W,B){return W||!!B};
_.p.fireOnCloseActions_=function(){var W,B=_.A(((W=this.data)==null?void 0:W.onClosedActions)||[]);for(W=B.next();!W.done;W=B.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.p.fireOnOpenCommands_=function(W){var B,z=(B=this.data)==null?void 0:B.onOpenCommands;if(z)for(W.stopImmediatePropagation(),W=_.A(z),B=W.next();!B.done;B=W.next())this.ytRendererBehavior.resolveCommand(B.value)};
_.p.fireOnDismissCommands_=function(W){var B,z=(B=this.data)==null?void 0:B.onDismissCommands;if(z)for(W.stopImmediatePropagation(),W=_.A(z),B=W.next();!B.done;B=W.next())this.ytRendererBehavior.resolveCommand(B.value)};
_.p.openPopupHandler_=function(W){W.detail==this&&this.fireOnOpenCommands_(W)};
_.p.closePopupHandler_=function(W,B){_.wV(this,"yt-confirm-dialog-close-action",[B]);this.fireOnCloseActions_();(B&&B.canceled===!0||B&&B.canceled===!1&&B.confirmed===!1)&&this.fireOnDismissCommands_(W)};
_.p.onHeaderImageChanged_=function(){var W;((W=this.data)==null?0:W.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.p.computeHasHeaderImageWidth_=function(W){return W!=void 0};
_.p.computeHasLoadingMessage=function(W){return!!W};
_.p.onHeaderImageWidthChanged_=function(){var W,B=(W=this.data)==null?void 0:W.headerImageWidth;if(B){if(W=1.25*B*2+B,this.$.main.style.width=W+"px",B=this.$.scroller.firstElementChild)B.style.minWidth=W+"px"}else this.$.main.style.width="100%"};
_.p.onThumbnailChanged_=function(){var W;((W=this.data)==null?0:W.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")};
_.p.onYtNavigate_=function(W){W=_.iP(W);W instanceof Node&&_.sR(this.$["confirm-button"]).contains(W)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.p.computePrimaryIsCancel_=function(W){return W};
_.p.computeIsCancelButtonHidden_=function(W){return W.skipCancelButton||!W.cancelButton};
_.p.computeIsCheckboxHidden_=function(W){return!W.checkbox};
_.p.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.p.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.p.onYtServiceRequestCompleted_=function(){var W;((W=this.data)==null?0:W.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.G5.Object.defineProperties(TD,{template:{configurable:!0,enumerable:!0,get:function(){if(F$9===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;HcO===void 0&&(HcO=document.createElement("template"));var G=HcO;z.call(B,G.content.cloneNode(!0),W.content.firstChild);F$9=W}W=F$9;return W}}});
TD.prototype.onYtServiceRequestCompleted_=TD.prototype.onYtServiceRequestCompleted_;TD.prototype.onYtServiceRequestSent_=TD.prototype.onYtServiceRequestSent_;TD.prototype.onThumbnailLoaded_=TD.prototype.onThumbnailLoaded_;TD.prototype.onYtNavigate_=TD.prototype.onYtNavigate_;TD.prototype.onThumbnailChanged_=TD.prototype.onThumbnailChanged_;TD.prototype.onHeaderImageWidthChanged_=TD.prototype.onHeaderImageWidthChanged_;TD.prototype.onHeaderImageChanged_=TD.prototype.onHeaderImageChanged_;
TD.prototype.closePopupHandler_=TD.prototype.closePopupHandler_;TD.prototype.openPopupHandler_=TD.prototype.openPopupHandler_;_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],TD.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],TD.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);
_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],TD.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],TD.prototype,"data",void 0);_.Q([_.F({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.y("design:type",Boolean)],TD.prototype,"primaryIsCancel",void 0);_.Q([_.F({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.y("design:type",Boolean)],TD.prototype,"isCancelButtonHidden",void 0);
_.Q([_.F({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.y("design:type",Boolean)],TD.prototype,"isCheckboxHidden",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],TD.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.Q([_.F({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.y("design:type",Boolean)],TD.prototype,"useOverlayForSpinner_",void 0);
_.Q([_.F({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.y("design:type",Boolean)],TD.prototype,"showSpinner_",void 0);_.Q([_.F({value:!1}),_.y("design:type",Boolean)],TD.prototype,"isActionInProgress_",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.y("design:type",Boolean)],TD.prototype,"hasHeaderImageWidth_",void 0);
_.Q([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.y("design:type",Boolean)],TD.prototype,"hasLoadingMessage",void 0);_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],TD.prototype,"openPopupHandler_",null);_.Q([_.IN("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],TD.prototype,"closePopupHandler_",null);
_.Q([_.oN("data.headerImage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TD.prototype,"onHeaderImageChanged_",null);_.Q([_.oN("data.headerImageWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TD.prototype,"onHeaderImageWidthChanged_",null);_.Q([_.oN("data.thumbnail"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TD.prototype,"onThumbnailChanged_",null);
_.Q([_.IN("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],TD.prototype,"onYtNavigate_",null);_.Q([_.IN("yt-img-shadow-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TD.prototype,"onThumbnailLoaded_",null);_.Q([_.IN("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.ME]),_.y("design:returntype")],TD.prototype,"onYtServiceRequestSent_",null);
_.Q([_.IN("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.du]),_.y("design:returntype")],TD.prototype,"onYtServiceRequestCompleted_",null);_.Q([_.NJ({is:"yt-confirm-dialog-renderer",noInjection:!0})],TD);var Su9;var bc0;var vF=function(){return _.S.apply(this,arguments)||this};
_.C(vF,_.S);vF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.tH(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
vF.prototype.computeConfirmButton_=function(W){var B={text:W.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};W.confirmNavigationEndpoint?B.navigationEndpoint=W.confirmNavigationEndpoint:W.confirmServiceEndpoint&&(B.serviceEndpoint=W.confirmServiceEndpoint);return B};
vF.prototype.computeShowTitle_=function(W){return!(W==null||!W.title)};
_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],vF.prototype,"data",void 0);_.Q([_.F({computed:"computeShowTitle_(data)"}),_.y("design:type",Boolean)],vF.prototype,"showTitle",void 0);_.Q([_.NJ({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],vF);
_.D(vF,"yt-fancy-dismissible-dialog-renderer",function(){if(bc0===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Su9===void 0&&(Su9=document.createElement("template"));var G=Su9;z.call(B,G.content.cloneNode(!0),W.content.firstChild);bc0=W}W=bc0;return W});var jVi;var fuY;var cF=function(){var W=_.S.apply(this,arguments)||this;W.spinnerActive=!1;return W};
_.C(cF,_.S);cF.prototype.created=function(){ctn(2201)};
cF.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
cF.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
cF.prototype.onIronOverlayClosed=cF.prototype.onIronOverlayClosed;cF.prototype.onIronOverlayOpened=cF.prototype.onIronOverlayOpened;_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.ct),_.y("design:type",Object)],cF.prototype,"tpYtIronOverlayBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],cF.prototype,"data",void 0);_.Q([_.F(),_.y("design:type",Object)],cF.prototype,"spinnerActive",void 0);
_.Q([_.IN("iron-overlay-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cF.prototype,"onIronOverlayOpened",null);_.Q([_.IN("iron-overlay-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cF.prototype,"onIronOverlayClosed",null);_.Q([_.NJ({is:"yt-loading-renderer",disableElementRegistration:!0})],cF);
_.D(cF,"yt-loading-renderer",function(){if(fuY===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;jVi===void 0&&(jVi=document.createElement("template"));var G=jVi;z.call(B,G.content.cloneNode(!0),W.content.firstChild);fuY=W}W=fuY;return W},{mode:2});var Ocq;var XL0;var wK=function(){var W=_.S.apply(this,arguments)||this;W.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);W.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);W.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.C(wK,_.S);_.p=wK.prototype;_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.p.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.p.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.p.openPopupHandler_=function(W){W.detail===this.hostElement&&this.hostElement.hidden&&_.c0(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.p.onDismissButtonTap_=function(){var W;this.closeOnDismissButton_.has(((W=this.data)==null?void 0:W.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.c0(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.p.onAcceptButtonTap_=function(){var W;this.closeOnAcceptButton_.has(((W=this.data)==null?void 0:W.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.c0(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.p.computeHasHeader_=function(W){return!!W.headerBackgroundImage};
_.p.computeLayoutStyle_=function(W){return W};
_.p.computePopupSize_=function(W){return W};
_.p.computeIconType_=function(W){return W.dialogIcon&&W.dialogIcon.iconType?W.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":W.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":W.dialogIcon.iconType:""};
_.p.computeIsLogo_=function(W){return!!W.dialogIcon&&!!W.dialogIcon.iconType&&(W.dialogIcon.iconType==="YOUTUBE_LOGO"||W.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||W.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.p.computeHasCustomLogo=function(W){return!(W==null||!W.headerForegroundImage)};
_.p.computeCustomLogo=function(W,B){if(W!=null&&W.headerForegroundImage)return W.headerForegroundImageDark?B?W.headerForegroundImageDark:W.headerForegroundImage:W.headerForegroundImage};
_.p.computeHeaderBackgroundImage=function(W,B){if(W!=null&&W.headerBackgroundImage)return B&&(W==null?0:W.headerBackgroundImageDark)?W.headerBackgroundImageDark:W.headerBackgroundImage};
_.p.shouldShowIconContainer=function(W,B){return W&&!B};
_.p.shouldShowNonYouTubeIcon=function(W,B){return!W&&!B};
_.p.getLogoImageId=function(W){var B,z,G;return(W=(B=this.computeCustomLogo(W,this.isDarkTheme))==null?void 0:(z=B.thumbnails)==null?void 0:(G=z[0])==null?void 0:G.height)&&W%31===0?"custom-logo-with-padding":"custom-logo"};
wK.prototype.openPopupHandler_=wK.prototype.openPopupHandler_;wK.prototype.dataChanged_=wK.prototype.dataChanged_;_.Q([_.h(_.bu.YtRendererstamperBehavior),_.y("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.Q([_.F(),_.y("design:type",Boolean)],wK.prototype,"isDarkTheme",void 0);
_.Q([_.F({computed:"computeCustomLogo(data, isDarkTheme)"}),_.y("design:type",Object)],wK.prototype,"customLogo",void 0);_.Q([_.F({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.y("design:type",Object)],wK.prototype,"headerBackgroundImage",void 0);_.Q([_.F(),_.y("design:type",Object)],wK.prototype,"data",void 0);_.Q([_.F({computed:"computeHasHeader_(data)"}),_.y("design:type",Boolean)],wK.prototype,"hasHeader",void 0);
_.Q([_.F({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.y("design:type",Object)],wK.prototype,"layoutStyle",void 0);_.Q([_.F({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.y("design:type",Object)],wK.prototype,"popupSize",void 0);_.Q([_.F({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],wK.prototype,"hasLogo",void 0);
_.Q([_.F({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],wK.prototype,"hasCustomLogo",void 0);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wK.prototype,"dataChanged_",null);_.Q([_.IN("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],wK.prototype,"openPopupHandler_",null);
_.Q([_.NJ({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],wK);
_.D(wK,"yt-upsell-dialog-renderer",function(){if(XL0===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;Ocq===void 0&&(Ocq=document.createElement("template"));var G=Ocq;z.call(B,G.content.cloneNode(!0),W.content.firstChild);XL0=W}W=XL0;return W},{mode:2});var K$r=_.m(function(W){return _.w("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.w(_.V,{cond:W.title,then:function(B){return _.w("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},B)}}))},"Ch"),uaf=_.m(function(W){return _.w("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.w(_.Sc,{data:W.closeButton},{buttonViewModel:function(B){return _.w("div",null,_.w(_.ex,{data:B.data}))}}))},"Dh"),ewO=_.m(function(W){var B=W.data;
return _.w(_.AW,null,_.w("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.w("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.w(_.V,{cond:function(){return!!B().image&&!!B().title},
then:function(){return _.w(_.iF,{data:function(){return B().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.w("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.w(_.V,{cond:function(){return B().title},
then:function(z){return _.w("h3",{class:"miniAppGameInfoDialogViewModelTitle"},z)}}),_.w(_.V,{cond:function(){return B().primaryGenre},
then:function(z){return _.w("span",{class:"miniAppGameInfoDialogViewModelGenre"},z)}}))),_.w(_.V,{cond:function(){var z=B().description;
return z&&z.length<=150},
then:function(){return _.w("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.w("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return B().description}))}}))},"Eh"),mSf=_.m(function(W){W=W.infoRows;
var B=_.dO().resolve(_.ZX),z=_.r("enable_displaying_ppn");return _.w("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.w(_.IJ,{each:W},function(G){return _.w("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.w(_.V,{cond:function(){return G.label},
then:function(Y){return _.w("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},Y)}}),_.w(_.V,{cond:function(){return G.attributedLabel},
then:function(Y){return _.w("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.w(_.r0,{text:Y,noPreWrap:!0}))}}),_.w(_.V,{cond:function(){return G.value},
then:function(Y){return _.w("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},Y)}}),_.w(_.V,{cond:function(){return G.attributedValue},
then:function(Y){return _.w("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.w(_.r0,{text:Y,noPreWrap:!0}))}}))}),_.w(_.V,{cond:function(){return z&&B.clientData.has("post_play_nonce")},
then:function(){return _.w("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.w("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.w("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},B.getData("post_play_nonce")))}}))},"Fh"),xSf=_.m(function(W){var B=W.data;
return _.w("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.w(K$r,{title:function(){return B().dialogTitle}}),_.w(ewO,{data:B}),_.w(_.V,{cond:function(){return B().infoRow},
then:function(z){return _.w(mSf,{infoRows:z})}}),_.w(uaf,{closeButton:function(){return B().closeButton}}))},"Gh");
xSf.idomCompat=!0;_.Vm(xSf,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=W.data;return _.w("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.w(_.iF,{data:function(){return B().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.w("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.w("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.w(_.V,{cond:function(){var z=B().ytLogo;return z?z.iconType:null},
then:function(z){return _.w(_.hY,{icon:z,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.w("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.w("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.w(_.r0,{text:function(){return B().title}})),_.w("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.w(_.r0,{text:function(){return B().body}})),_.w("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.w(_.r0,{text:function(){return B().verifyStateText}}))),
_.w("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.w("div",null,_.w(_.Sc,{data:function(){return B().dismissButton}},{buttonViewModel:_.ex})),_.w("div",null,_.w(_.Sc,{data:function(){return B().linkParentButton}},{buttonViewModel:_.ex})))))},"Hh"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.kz}});var DSf=_.m(function(W){var B=W.data;W=_.ig(function(){return B().agreements},[]);
return _.w("installment-agreements-view-model",{class:_.kG("ytInstallmentAgreementsViewModelHost")},_.w(_.IJ,{each:W},function(z){return _.w("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.w("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.w(_.r0,{text:z.label})),_.w("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.w(_.Sc,{data:function(){return z.openButton}},{buttonViewModel:_.ex})))}))},"Ih");
DSf.idomCompat=!0;var QV6=_.m(function(W){var B=_.A(_.IK(function(){var L,By;return((L=W.data().createPlaylistDialogFormSchema)==null?0:(By=L.initialValues)==null?0:By.title)?W.data().createPlaylistDialogFormSchema.initialValues.title:""})),z=B.next().value,G=B.next().value;
B=_.A(_.IK(function(){W.data();return!1}));
var Y=B.next().value,d=B.next().value;B=_.A(_.IK(function(){W.data();return!1}));
var E=B.next().value,v=B.next().value;B=_.A(_.IK(function(){var L,By;return(L=W.data().createPlaylistDialogFormSchema)==null?void 0:(By=L.initialValues)==null?void 0:By.visibility}));
var c=B.next().value,J=B.next().value;B=_.A(_.IK(function(){W.data();return!1}));
var g=B.next().value,t=B.next().value;B=_.A(_.IK(function(){var L,By;return(L=W.data().createPlaylistDialogFormSchema)==null?void 0:(By=L.initialValues)==null?void 0:By.isCollaborative}));
var P=B.next().value,Z=B.next().value,l=_.LG("div");_.ja(function(){var L=l.value.querySelector("textarea");L&&(L.value=z())},"sgS9sc");
_.jD(function(){var L;_.YAi((L=W.data().createPlaylistDialogFormSchema)==null?void 0:L.id,{onSubmit:function(){var By=z();var gk=c(),vy=P(),lx=W.data();By={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:By,privacyStatus:gk,videoIds:lx.videoIds,sourcePlaylistId:lx.sourcePlaylistId,params:vy?lx.createPlaylistParamsCollaborationEnabled:lx.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.dO().resolve(_.p4).resolveCommand(By)},
isValid:function(){return Y()&&!E()&&!g()}})});
var b=function(L){if(L!==void 0&&(G(L),!Y()&&L.length>0&&d(!0),Y())){var By=Z2b(W.data());if(By){var gk=By.minLength;By=By.maxLength;gk&&L.length<gk?v(!0):By&&L.length>By?v(!0):v(!1)}}},O=function(){var L=!(!P()||c()!=="PRIVATE");
t(L)},K=function(L){L!==void 0&&(J(L),O())},e=function(){if(g())return kNr(W.data())},a=function(){Z(!P());
O()},q=function(){return{validate:function(L){if(Y()){var By=Z2b(W.data());
if(By){var gk=By.minLength;By=By.translations;if(gk&&L.length<gk)return By==null?void 0:By.minLengthErrorMessage}}}}},n=function(){var L=Z2b(W.data()),By=L==null?void 0:L.maxLength,gk;
L=L==null?void 0:(gk=L.translations)==null?void 0:gk.maxLengthErrorMessage;if(By&&L)return{maxChars:By,errorMessage:L}};
return _.w("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.w("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:l},_.w(_.Sc,{data:function(){return W.data().playlistTitle}},{textFormFieldViewModel:function(L){return _.w(_.Nqj,{data:L.data,
text:z,onInput:b,validation:q,characterLimit:n})},
textFieldViewModel:function(L){return _.w(_.nF0,{data:L.data,text:z,onInput:b,validation:q,characterLimit:n})}})),_.w("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.w(_.Sc,{data:function(){return W.data().playlistVisibility}},{dropdownViewModel:function(L){return _.w(_.Yhf,{data:L.data,
onSelected:K,error:e})}})),_.w(_.V,{cond:function(){return!!W.data().playlistCollaborate},
then:function(){return _.w("div",null,_.w(_.Sc,{data:function(){return W.data().playlistCollaborate}},{switchListItemViewModel:function(L){return _.w(_.qOT,{data:L.data,
onTap:a})}}))}}))},"Jh");var yiO=_.m(function(W){var B=W.data;return _.w("upsell-offer-table-cell-content-view-model",null,_.w("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.w(_.HR,null,_.w(_.oJ,{when:function(){return B().iconType}},function(){return _.w("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.w(_.hY,{icon:function(){return B().iconType.toString()}}))}),_.w(_.oJ,{when:function(){return B().title}},function(){return _.w(_.r0,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return B().title}})}),_.w(_.oJ,{when:function(){return B().subtitle}},function(){return _.w(_.r0,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return B().subtitle}})}),_.w(_.oJ,{when:function(){return B().infoText}},function(){return _.w(_.r0,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return B().infoText}})}),_.w(_.oJ,{when:function(){return B().featureDescription}},function(){return _.w(_.r0,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return B().featureDescription}})}),_.w(_.oJ,{when:function(){return B().note}},function(){return _.w(_.r0,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return B().note}})}))))},"Kh");
yiO.idomCompat=!0;var qur=_.m(function(W){var B=W.data;return _.w("upsell-offer-table-cell-view-model",null,_.w("div",{class:_.kG("ytUpsellOfferTableCellViewModelCellWrapper",function(){return B().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.w(_.Sc,{data:function(){return B().contents}},{upsellOfferTableCellContentViewModel:yiO})))},"Lh");
qur.idomCompat=!0;var nZ6=_.m(function(W){var B=W.data;var z=W.upsellTableIsFirstRow;var G=function(){return(z==null?0:z())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},Y=function(){return(z==null?0:z())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.w("ytm-upsell-offer-table-row-view-model",null,_.w("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.w(_.Sc,{data:function(){return B().rowHeaderCell}},{upsellOfferTableCellViewModel:function(d){return _.w("div",{class:G},_.w(qur,{data:d.data}))}}),_.w(_.Sc,{data:function(){return B().contentCells}},{upsellOfferTableCellViewModel:function(d){return _.w("div",{class:Y},_.w(qur,{data:d.data}))}})))},"Mh");
nZ6.idomCompat=!0;var Nt1=_.m(function(W){var B=W.data;return _.w("ytm-upsell-offer-table-view-model",null,_.w("div",{class:"ytUpsellOfferTableViewModelHost"},_.w("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.w(_.Sc,{data:function(){return B().rows}},{upsellOfferTableRowViewModel:function(z,G){return _.w(nZ6,{data:z.data,
upsellTableIsFirstRow:function(){return G()===0}})}}))))},"Nh");
Nt1.idomCompat=!0;var $Sj=_.m(function(W){var B=_.ig(W.noPadding,!1),z=function(){var d,E;return(E=(d=W.data().logo.accessibilityData)==null?void 0:d.label)!=null?E:""},G=function(){return W.data().offerTable},Y={};
return _.w("upsell-view-model",{class:_.kG("ytUpsellViewModelHost",(Y.ytUpsellViewModelHostNoPadding=function(){return B()},Y.ytUpsellViewModelHostWide=function(){return G()!==void 0},Y))},_.w("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.w(_.V,{cond:function(){return _.UM(W.data().logo)},
then:function(d){return _.w(_.iF,{data:d,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:z})}})),_.w("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.w(_.r0,{text:function(){return W.data().title}})),_.w("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.w(_.IJ,{each:function(){var d;
return(d=W.data().subtitles)!=null?d:[]},
keyBy:"INDEX"},function(d){var E={};return _.w("div",{class:_.kG("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(E.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return G()!==void 0},E))},_.w(_.r0,{text:d}))})),_.w("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.w(_.IJ,{each:function(){var d;
return(d=W.data().benefitInfos)!=null?d:[]},
keyBy:"INDEX"},function(d){return _.w(_.V,{cond:function(){return d().info},
then:function(E){return _.w("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.w(_.hY,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.w(_.r0,{text:E}))}})})),_.w(_.V,{cond:function(){return G()!==void 0},
then:function(){return _.w("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.w(Nt1,{data:G}))}}),_.w("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.w(_.IJ,{each:function(){var d;
return(d=W.data().legalInfos)!=null?d:[]},
keyBy:"INDEX"},function(d){var E={};return _.w("div",{class:_.kG("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(E.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return G()!==void 0},E))},_.w(_.r0,{text:d}))})))},"Oh");var L$Y=_.m(function(W){var B=W.data;W={};W=(W.ytMiniAppScoreChallengeViewModelScoreRadial=!0,W.ytMiniAppScoreChallengeViewModelDarkScoreRadial=lpY(),W);return _.w("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.w("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return B().title}),_.w("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return B().subtitle}),_.w("div",{class:_.uj(W)},_.w("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return B().score})),_.w("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return B().prompt}))},"Ph");var US6=function(){this.store=_.p8();this.formId=""};
US6.prototype.onInit=function(W){W.formId&&(this.formId=W.formId,this.store.dispatch(_.Tl({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var M20=_.m(function(W){function B(v){if(v&&(v=_.k(v,_.f2)))return Object.assign({},v,{isSelected:d()})}
var z=_.A(_.IK(function(){var v,c;return(c=(v=_.k(W.data().option,_.f2))==null?void 0:v.isSelected)!=null?c:!1})),G=z.next().value,Y=z.next().value,d=G;
_.jD(function(){var v;_.YAi((v=W.data().formSchema)==null?void 0:v.id,{onSubmit:function(){var c=_.dO().resolve(_.p4),J=!!W.data().selectedCommand,g=!!W.data().unselectedCommand;if(d()){if(J)var t=W.data().selectedCommand}else g&&(t=W.data().unselectedCommand);t=_.$B(t);B(W.data().option)&&!t?(c="",!J&&g?c="selected ":J&&!g&&(c="unselected "),J=new _.oX("No "+c+"command found for SelectionListItemFormViewModel"),_.jy(J)):t&&c.resolveCommand(t)},
isValid:function(){return!0}})});
var E=function(){Y(!d())};
_.fR(function(){var v,c,J=(v=W.data())==null?void 0:(c=v.formSchema)==null?void 0:c.id;J&&_.HA()().delete(J)});
return _.w("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.w("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.w(_.r0,{text:function(){return W.data().paragraph}})),_.w(_.V,{cond:function(){return B(W.data().option)},
then:function(v){return _.w(_.cU,{data:v,isCompact:!0,hideSelectionTextChevron:!0,onTap:E,disableHorizontalPadding:!0})}}))},"Qh");var auf=_.m(function(W){var B=W.data;var z=W.disablePadding;var G=W.className;var Y=_.LG("yt-dialog-header-view-model"),d=function(){var v=B().imageBanner;a:switch(B().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var c="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:c="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:v,style:c,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},E=function(){return B().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.jD(function(){var v=function(){_.c0(Y.value,"yt-refit-popups-action")},c;
(c=Y.value)==null||c.addEventListener("image-loaded",v);_.fR(function(){var J;(J=Y.value)==null||J.removeEventListener("image-loaded",v)})});
W={};return _.w("yt-dialog-header-view-model",{el:Y,class:_.kG(G,(W.ytDialogHeaderViewModelHost=!0,W.ytDialogHeaderViewModelHostDisablePadding=z,W))},_.w(_.V,{cond:function(){return B().imageBanner},
then:function(){var v={};return _.w("div",{class:_.kG(G,(v.ytDialogHeaderViewModelBanner=!0,v.ytDialogHeaderViewModelBannerFullBleed=E,v)),style:_.oK({"max-height":function(){return B().assetContainerMaxHeight!==void 0?B().assetContainerMaxHeight+"px":void 0}})},_.w(_.jh,{data:d,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.w(_.V,{cond:function(){return B().headerBlock},
then:function(){return _.w("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.w(_.Sc,{data:function(){return B().headerBlock}},{contentPreviewImageViewModel:function(v){return _.w(_.jh,{data:v.data,
notifyOnLoaded:!0})}}))}}),_.w(_.V,{cond:function(){return B().customBanner},
then:function(v){return _.w("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.w(_.Sc,{data:v},{avatarStackViewModel:_.Ae}))}}),_.w(_.V,{cond:function(){return B().headline},
then:function(v){return _.w("h2",null,_.w(_.r0,{text:v,className:"ytDialogHeaderViewModelText"}))}}))},"Rh");
auf.idomCompat=!0;var Rwf=_.m(function(W){var B=_.NFQ(function(){return W.data().formId}),z=B.submitForm,G=B.isValid;
return _.w("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.w(_.Sc,{data:function(){return W.data().panelFooter}},{panelFooterViewModel:function(Y){return _.w(_.SH,{data:Y.data,
disablePadding:!0,disablePrimaryButton:function(){return!G()},
onClickPrimaryButton:function(){z()}})}}))},"Sh");var WMn=_.m(function(W){var B=function(){var z,G;return(G=(z=_.k(W.data().rendererContext,_.FB))==null?void 0:z.label)!=null?G:""};
return _.w("yt-dialog-image-content-view-model",{class:_.kG("ytDialogImageContentViewModelHost",W.className)},_.w(_.V,{cond:function(){return _.UM(W.data().image)},
then:function(z){var G={};return _.w("div",{style:_.oK((G.width=(0,_.EJ)(function(){var Y;return(Y=W.data().imageMaxWidth)!=null?Y:""}),G)),
class:"ytDialogImageContentViewModelImage"},_.w(_.iF,{data:z,alt:B,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.w(_.r0,{text:function(){return W.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Th");var G7f=_.m(function(W){var B=_.EV(W,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),z=B.elRefCallback;W=B.iconWiz;var G=B.assetWiz,Y=B.assetType,d=B.titleWiz,E=B.leadingActionHeaderWiz,v=B.trailingActionHeaderWiz,c=B.headerPosition,J=B.contentWiz,g=B.buttonLayout,t=B.buttonStyle,P=B.primaryButtonWiz,Z=B.secondaryButtonWiz,l=B.contentAlignment,b=B.isFullscreen,O=B.width,K=B.maxHeight,e=B.isHeaderWizDefined,
a=B.headerWiz,q=B.isFooterWizDefined,n=B.footerWiz;B=_.LG("dialog-layout",function(X2){z==null||z(X2)});
var L=G?function(){return G({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,By=P?function(){var X2={};
return P({buttonOverrides:function(){return{style:(t==null?void 0:t())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.kG((X2["yt-spec-dialog-layout__dialog-layout-button"]=!0,X2["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(g==null?void 0:g())===0||(g==null?void 0:g())===2},X2))})}:void 0,gk=Z?function(){var X2={};
return Z({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.kG((X2["yt-spec-dialog-layout__dialog-layout-button"]=!0,X2["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(g==null?void 0:g())===0||(g==null?void 0:g())===2},X2))})}:void 0,vy=function(){return(!!d||!!E||!!v)&&c()===0},lx={},Zv={},VR={},ux={};
return _.w("dialog-layout",{el:B,class:_.kG((lx["yt-spec-dialog-layout"]=!0,lx["yt-spec-dialog-layout--dialog-layout-fullscreen"]=b,lx["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!b()},lx["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return K()===1},lx["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(Y==null?void 0:Y())===1},lx)),
style:function(){return(O==null?void 0:O())!==void 0?"width: "+O+"px;":""}},W?_.w("div",{class:_.kG((Zv["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Zv["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!G&&c()===1},Zv["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return l()===1},Zv))},_.w(W,null)):null,_.w(_.V,{cond:e,
then:function(){return a?_.w("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.w(a,null)):null},
else:function(){return _.w(_.AW,null,_.w(_.V,{cond:vy,then:function(){return _.w(Bli,{contentAlignment:l,LeadingActionHeader:E,TrailingActionHeader:v,Title:d,isAboveAsset:!!L})}}),L?_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.w(L,null)):null)}}),_.w("div",{class:_.kG((VR["yt-spec-dialog-layout__dialog-layout-container"]=!0,VR["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(l==null?void 0:l())===1},VR["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!d&&!(a&&e())||!!L&&(c==null?void 0:c())===0},VR))},_.w(_.V,{cond:function(){return d&&!a&&(c==null?void 0:c())===1},
then:function(){return _.w(Bli,{contentAlignment:l,LeadingActionHeader:E,TrailingActionHeader:v,Title:d,isAboveAsset:!1})}}),J?_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.w(J,null))):null,_.w(_.V,{cond:q,
then:function(){return n?_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.w(n,null)):null}}),By||gk?_.w(zyi,{footerClasses:_.kG((ux["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,ux["yt-spec-dialog-layout__dialog-layout-footer"]=!0,ux["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(g==null?void 0:g())===2},ux["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(g==null?void 0:g())===1},ux)),
PrimaryButton:By,SecondaryButton:gk}):null))},"Uh"),Bli=_.m(function(W){var B=_.EV(W,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),z=B.contentAlignment,G=B.LeadingActionHeader;W=B.Title;var Y=B.TrailingActionHeader,d=B.isAboveAsset,E=B.enableLeadingActionHeader;B={};return _.w("div",{class:_.kG((B["yt-spec-dialog-layout__dialog-header-container"]=!0,B["yt-spec-dialog-layout__dialog-header"]=!0,B["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=d,B["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(z==null?void 0:z())===1&&E()},B))},_.w(_.V,{cond:function(){return E()},
then:function(){return G?_.w("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.w(G,null)):null}}),W?_.w("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.w(W,null)):null,Y?_.w("div",null,_.w(Y,null)):null)},"Vh"),zyi=_.m(function(W){var B=W.footerClasses;
var z=W.PrimaryButton;W=W.SecondaryButton;return _.w("div",{class:B},W?_.w(W,null):null,z?_.w(z,null):null)},"Wh");var YBf=_.m(function(W){var B=W.data;return _.w("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.w("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.w(_.Sc,{data:function(){return B().avatar}},{avatarViewModel:_.ds})),_.w("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.w(_.r0,{text:function(){return B().title}})),_.w(_.r0,{text:function(){return B().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Xh");var du9=_.m(function(W){return _.w("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.w(_.r0,{text:function(){return W.data().inviteMessage}})),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.w(_.r0,{text:function(){return W.data().attributedAccountSectionHeaderText}})),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.w(_.Sc,{data:function(){return W.data().accountAvatar}},{avatarViewModel:_.ds}),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.w(_.r0,{text:function(){return W.data().accountName}}),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.w(_.r0,{text:function(){return W.data().handle}}))),_.w(_.Sc,{data:function(){return W.data().trailingButton}},{buttonViewModel:_.ex})),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.w(_.r0,{text:function(){return W.data().termsOfService}})))},"Yh");var pIY=_.m(function(W){var B=W.data;return _.w("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.w("div",{class:"ytAccessConfirmationViewModelContent"},_.w(_.Sc,{data:function(){var z;return(z=B().avatar)!=null?z:B().dualAvatar}},{dualAvatarViewModel:function(z){return _.w(_.jmH,{data:z.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(z){return _.w(_.pY,{data:z.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.w("h2",{class:"ytAccessConfirmationViewModelTitle"},_.w(_.r0,{text:function(){return B().title}})),_.w(_.r0,{text:function(){return B().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Zh");var ANj=_.m(function(W){var B=W.data;var z=void 0;W=_.A(_.IK(function(){var J;return((J=_.k(B().content,_.RI))==null?void 0:J.defaultSelectedKey)||""}));
var G=W.next().value,Y=W.next().value,d,E=function(){Y("");var J;(J=z)!=null&&J.store.dispatch(_.Tl({type:"RESET_COMMAND_MAP"}))};
_.jD(function(){z=new US6;window.addEventListener("yt-popup-closed",E)});
_.ja(function(){if(z&&d!==B().formId&&(z.onInit(B()),(d=B().formId)&&G())){var J=z,g={key:G()};g.command&&J.store.dispatch(wq9(d,g.command))}},"c2n8Gf");
_.fR(function(){window.removeEventListener("yt-popup-closed",E)});
var v=function(J,g,t){g.key&&t&&g.key!==G()&&(Y(g.key),z&&g.command&&z.store.dispatch(wq9(t,g.command)))},c=function(){if(_.k(B().content,_.RI))return!(G==null?0:G())};
return _.w("yt-dialog-view-model",{class:_.kG("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.w(G7f,{headerWiz:function(){return _.w("span",{skip:!0},_.w(_.Sc,{data:function(){return B().header}},{dialogHeaderViewModel:function(J){return _.w(auf,{data:J.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!B().header},
contentWiz:function(){return _.w("span",{skip:!0},_.w(_.Sc,{data:function(){return B().customContent?B().customContent:B().content}},{basicContentViewModel:_.yZ6,
createPlaylistDialogFormViewModel:QV6,collaborativePlaylistInviteMessageViewModel:du9,miniAppScoreChallengeViewModel:L$Y,radioButtonGroupViewModel:function(J){var g=J.data;return _.w(_.DAi,{data:g,selectedKey:G,onSelected:v,groupName:function(){return g().formId}})},
selectionListItemFormViewModel:M20,upsellViewModel:function(J){return _.w($Sj,{data:J.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:YBf,installmentAgreementsViewModel:DSf,accessConfirmationViewModel:pIY,listViewModel:function(J){return _.w(_.RV4,{data:J.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:WMn}))},
footerWiz:function(){return _.w("span",{skip:!0},_.w(_.Sc,{data:function(){return B().footer}},{panelFooterViewModel:function(J){return _.w(_.SH,{data:J.data,
disablePadding:!0,disablePrimaryButton:c})},
formPanelFooterViewModel:Rwf,formFooterViewModel:function(J){return _.w(_.Kzj,{data:J.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!B().footer}}))},"$h");
ANj.idomCompat=!0;_.Vm(ANj,"yt-dialog-view-model",{props:{data:_.kz},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var iZ9=_.m(function(W){var B=W.data;W={};return _.w("yt-panel-header-view-model",{class:_.kG("ytPanelHeaderViewModelHost",(W.ytPanelHeaderViewModelHostHideDivider=function(){return!!B().shouldHideDivider},W.ytPanelHeaderViewModelHostCompact=function(){return!!B().subtitle},W))},_.w("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.w(_.V,{cond:function(){return B().title},
then:function(z){return _.w(_.r0,{text:z,className:"ytPanelHeaderViewModelTitle"})}}),_.w(_.V,{cond:function(){return B().subtitle},
then:function(z){return _.w(_.r0,{text:z,className:"ytPanelHeaderViewModelSubtitle"})}})),_.w("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.w(_.Sc,{data:function(){return B().trailingButtons}},{buttonViewModel:function(z){return _.w(_.ex,{data:z.data,
className:"ytPanelHeaderViewModelButton"})}})))},"ai");
iZ9.idomCompat=!0;var EaO=_.m(function(W){var B=_.lF(function(d){var E;if((E=W.skipContentClick)==null?0:E.call(W))return!1;W.onContentWrapperClick(d);return!0}),z,G,Y;
return _.w("div",{class:_.kG("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return W.isAnimating()?"transform: translateY("+W.currentY()+"px);transition: 0.2s":""}},(z=W.header)==null?void 0:z.call(W),_.w("div",{id:W.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.oK({"max-height":(0,_.EJ)(W.maxHeightForContentWrapper)}),"on:scroll":h$0(W.onScroll),"on:touchmove":h$0(function(d){return void d.stopPropagation()})},_.w("div",{el:{onRender:W.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":B},(G=W.body)==null?void 0:G.call(W))),(Y=W.footer)==null?void 0:Y.call(W))},"bi");
EaO.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var TlK=_.m(function(W){var B=_.ig(W.leadingLabel),z=_.ig(W.trailingLabel),G=_.ig(W.footerButtonType),Y=function(){return B()||z()||W.hasPrimaryButton()||W.hasSecondaryButton()},d={},E=_.kG("yt-spec-bottom-sheet-layout__primary-button",(d["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return G()===0&&W.hasPrimaryButton()},d["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return G()===1&&W.hasPrimaryButton()},d["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return G()===2&&W.hasPrimaryButton()},d["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return G()===3&&W.hasPrimaryButton()},d));
d={};var v=_.kG("yt-spec-bottom-sheet-layout__secondary-button",(d["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return G()===1&&W.hasSecondaryButton()},d["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return G()===2&&W.hasSecondaryButton()},d["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return G()===3&&W.hasPrimaryButton()},d));
return _.w(_.V,{cond:W.hasFooterOverride,then:function(){var c;return _.w(_.AW,null,(c=W.footerOverride)==null?void 0:c.call(W))},
else:function(){return _.w(_.V,{cond:Y,then:function(){return _.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.w(_.V,{cond:function(){return B()||z()},
then:function(){var c={};return _.w("div",{class:_.kG("yt-spec-bottom-sheet-layout__footer-label-wrapper",(c["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!W.hasPrimaryButton()},c))},_.w(_.V,{cond:B,
then:function(){return _.w("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},B)}}),_.w(_.V,{cond:z,
then:function(){return _.w("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},z)}}))}}),_.w(_.V,{cond:function(){return W.hasPrimaryButton()||W.hasSecondaryButton()},
then:function(){var c={};return _.w("div",{class:_.kG("yt-spec-bottom-sheet-layout__footer-button-wrapper",(c["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Q$M,c))},_.w(_.V,{cond:function(){return W.hasSecondaryButton()&&G()!==0},
then:function(){var J;return _.w("div",{class:v},(J=W.secondaryButton)==null?void 0:J.call(W))}}),_.w(_.V,{cond:W.hasPrimaryButton,
then:function(){var J;return _.w("div",{class:E},(J=W.primaryButton)==null?void 0:J.call(W))}}))}}))}})}})},"ci");
TlK.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var vaY=_.m(function(W){var B=_.ig(W.title),z=_.ig(W.subtitle);return _.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:W.headerId,"on:touchstart":_.lF(function(G){var Y;(Y=W.touchstart)==null||Y.call(W,G);return!1}),
"on:touchmove":_.lF(function(G){var Y;(Y=W.touchmove)==null||Y.call(W,G);return!1}),
"on:touchend":_.lF(function(G){var Y;(Y=W.touchend)==null||Y.call(W,G);return!1})},_.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.w(_.V,{cond:W.hasHeaderOverride,
then:function(){var G;return _.w(_.AW,null,(G=W.headerOverride)==null?void 0:G.call(W))},
else:function(){var G={};return _.w("div",{class:_.kG((G["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,G["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=B,G))},_.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.w(_.V,{cond:B,then:function(){return _.w(_.AW,null,_.w("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},B),_.w(_.V,{cond:z,then:function(){return _.w("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
z)}}))}})),_.w(_.V,{cond:function(){return B()&&W.hasActionHeader()},
then:function(){var Y;return _.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(Y=W.actionHeader)==null?void 0:Y.call(W))}}))}}))},"di");
vaY.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.m(function(W){function B(L){if(!K&&typeof MutationObserver!=="undefined"){var By={childList:!0};"MutationObserver"in window&&(K=new MutationObserver(z.bind(void 0,L)),K.observe(L,By))}}
function z(L){typeof K!=="undefined"&&(e["content-wrapper"]===void 0&&(e["content-wrapper"]=L.children[0].clientHeight),Z(e["content-wrapper"]),P()>l()||b(P()))}
function G(){t(window.innerHeight);P()>l()||b(P());a.isFullScreen[0]()&&P()>l()?q().dispatch("Snap To Full Screen",{maxHeight:O()}):q().dispatch("Snap To Neutral Position",{maxHeight:l()})}
function Y(L){document.body.style.overscrollBehavior="none";L.preventDefault();q().dispatch("Touch Start",{event:L})}
function d(L){L.preventDefault();q().dispatch("Touch Move",{event:L,contentScrollable:P()>l(),fullContentWrapperHeight:O(),contentWrapperHeight:l(),contentHeightMap:e,contentWrapperId:"content-wrapper",header:FCf(W),footer:FCf(W)})}
function E(){document.body.style.overscrollBehavior="";a.isFullScreen[0]()?a.currentY[0]()>=60?q().dispatch("Snap To Neutral Position",{maxHeight:l()}):q().dispatch("Snap To Full Screen",{maxHeight:O()}):a.currentY[0]()>=60?v():a.currentY[0]()<=-60&&P()>l()?q().dispatch("Snap To Full Screen",{maxHeight:O()}):q().dispatch("Snap To Neutral Position",{maxHeight:l()})}
function v(){q().dispatch("Close Sheet",{clientHeight:g(),maxHeight:0});setTimeout(function(){H2i()},250)}
var c=_.A(_.g4(window.innerHeight,void 0,"Q6Nekc")),J=c.next().value;c=c.next().value;var g=J,t=c;c=_.A(_.g4(0,void 0,"vjnlmb"));J=c.next().value;c=c.next().value;var P=J,Z=c;c=_.A(_.IK(function(){var L=FCf(W);return.6*g()-CjY(L)-Ipj(L)}));
J=c.next().value;c=c.next().value;var l=J,b=c,O=function(){var L=FCf(W);return g()-CjY(L)-Ipj(L)-24-24},K=null,e={},a={initialY:_.g4(0,void 0,"B0aY2c"),
currentY:_.g4(0,void 0,"nLPMcf"),isAnimating:_.g4(!1,void 0,"lXnnZ"),isFullScreen:_.g4(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.IK(l)},q=function(){var L=null;return function(){if(!L){var By={initialY:a.initialY[0](),currentY:a.currentY[0](),isAnimating:a.isAnimating[0](),isFullScreen:a.isFullScreen[0](),maxHeightForContentWrapper:a.maxHeightForContentWrapper[0]()};L=o2r(By)}return L}}();
_.jD(function(){window.addEventListener("resize",G);q().subscribe(function(L){a.initialY[1](L.initialY);a.currentY[1](L.currentY);a.isAnimating[1](L.isAnimating);a.isFullScreen[1](L.isFullScreen);a.maxHeightForContentWrapper[1](L.maxHeightForContentWrapper)})});
_.fR(function(){window.removeEventListener("resize",G);K&&(K.disconnect(),K=null)});
var n=_.kG({"bottom-sheet-content-without-icon":function(){var L;return!((L=W.shouldShowIcons)==null?0:L.call(W))}});
return _.w("bottom-sheet-layout",null,_.w(EaO,{contentWrapperId:"content-wrapper",isAnimating:function(){return a.isAnimating[0]()},
currentY:function(){return a.currentY[0]()},
maxHeightForContentWrapper:function(){return a.maxHeightForContentWrapper[0]()},
shouldShowIcons:W.shouldShowIcons,skipContentClick:W.skipContentClick,onScroll:function(){var L=document.getElementById("header-wrapper"),By=document.getElementById("content-wrapper");if(L&&By){var gk={};gk=(gk["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,gk["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,gk);L.className=By.scrollTop>1?_.uj(gk):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:H2i,contentWrapperEl:function(L){B(L);requestAnimationFrame(function(){z(L)})},
header:function(){return _.w(vaY,{touchstart:Y,touchmove:d,touchend:E,title:W.headerTitle,subtitle:W.headerSubtitle,headerId:"header-wrapper",headerOverride:W.headerFn,hasHeaderOverride:W.hasHeaderFn,actionHeader:W.headerActionHeader,hasActionHeader:W.hasHeaderActionHeader})},
footer:function(){return _.w(TlK,{footerButtonType:W.footerButtonType,leadingLabel:W.footerLeadingLabel,trailingLabel:W.footerTrailingLabel,primaryButton:W.footerPrimaryButton,hasPrimaryButton:W.hasFooterPrimaryButton,secondaryButton:W.footerSecondaryButton,hasSecondaryButton:W.hasFooterSecondaryButton,footerOverride:W.footerFn,hasFooterOverride:W.hasFooterFn})},
body:function(){return _.w(_.V,{cond:W.hasContentFn,then:function(){var L;return _.w("div",{class:n},(L=W.contentFn)==null?void 0:L.call(W))}})}}))},"ei").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var cNq=_.m(function(W){var B=_.dO().resolve(_.BD);return _.w("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.lF(function(){return void B.closeSheet()})},_.w(_.V,{cond:function(){return!!W.header},
then:function(){return _.w("div",{class:"ytContextualSheetLayoutHeaderContainer"},W.header())}}),_.w(_.V,{cond:function(){return!!W.content},
then:function(){return _.w("div",{class:"ytContextualSheetLayoutContentContainer"},W.content())}}),_.w(_.V,{cond:function(){return!!W.footer},
then:function(){return _.w("div",{class:"ytContextualSheetLayoutFooterContainer"},W.footer())}}))},"fi");
cNq.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var wIi=_.m(function(W){W=W.data;var B=_.LG("yt-sheet-view-model",function(G){if(_.r("web_focus_first_element_sheet")||!_.r("sheet_focus_first_killswitch"))return G.addEventListener("focus",function(){Pa9(G)}),function(){G.removeEventListener("focus",function(){Pa9(G)})}}),z={};
return _.w("yt-sheet-view-model",{"on:mousedown":_.lF(function(G){_.r("sheet_focus_first_killswitch")||G.currentTarget!==G.target&&G.preventDefault()}),
"on:focus":_.lF(function(){_.r("sheet_focus_first_killswitch")||Pa9(B.value)}),
class:_.kG("ytSheetViewModelHost",(z.ytSheetViewModelContextual=!0,z.ytSheetViewModelDisableBackdropFilter=_.r("web_disable_backdrop_filter"),z)),el:B,tabindex:-1},_.w(_.V,{cond:W,then:function(G){return _.w(cNq,{header:function(){return _.w(_.Sc,{data:function(){return G().header}},{panelHeaderViewModel:iZ9})},
content:function(){return _.w(_.Sc,{data:function(){return G().content}},{listViewModel:function(Y){return _.w(_.RV4,{data:Y.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:$Sj,miniAppScoreChallengeViewModel:L$Y})},
footer:function(){return _.w(_.Sc,{data:function(){return G().footer}},{panelFooterViewModel:_.SH})}})}}))},"gi");
wIi.idomCompat=!0;_.Vm(wIi,"yt-sheet-view-model",{props:{data:_.kz}});var JN9=_.m(function(W){var B=function(){var z;return(z=W.data().enableDebuggingFeatures)!=null?z:!1};
return _.w("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.w(_.IJ,{each:function(){var z;return(z=W.data().stickers)!=null?z:[]}},function(z){return _.w(Veb,{data:function(){return z},
debugMode:B})}))},"hi"),Veb=_.m(function(W){var B=_.EV(W,{debugMode:!1}).debugMode,z=_.ig(function(){var c;
return(c=W.data().region)==null?void 0:c.w},0),G=_.ig(function(){var c;
return(c=W.data().region)==null?void 0:c.h},0),Y=_.ig(function(){var c;
return(c=W.data().region)==null?void 0:c.x},0),d=_.ig(function(){var c;
return(c=W.data().region)==null?void 0:c.y},0),E=_.lF(function(){var c=W.data().onTap;
c&&_.aB(c)}),v={};
return _.w("div",{class:_.kG("ytStoriesStickerLayerViewModelSticker",(v.ytStoriesStickerLayerViewModelDebugMode=B,v)),style:_.oK({width:function(){return 100*z()+"%"},
height:function(){return 100*G()+"%"},
left:function(){return 100*Y()+"%"},
top:function(){return 100*d()+"%"},
"flex-direction":function(){return SM0(W.data().flexDirection)},
"justify-content":function(){return b2K(W.data().justifyContent)},
"align-items":function(){return jni(W.data().alignItems)}}),
"on:click":E},_.w(_.Sc,{data:function(){return W.data().button||W.data().toggleButton}},{buttonViewModel:function(c){return _.w(_.ex,{data:c.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(c){return _.w(_.Y1,{data:c.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ii");var ten=_.m(function(W){var B=function(){return W.data()},z={},G=_.ig(function(){return B().backgroundColor},0),Y=_.ig(function(){return B().actionButtons},[]),d=_.ig(function(){return B().stickerLayer},{}),E=function(){var c,J;
return{animationRef:z,animationConfig:{autoplay:!1,loop:!1,path:(J=(c=B().foregroundAnimation)==null?void 0:c.url)!=null?J:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){W.navigateToNextItemOnLottieComplete()}}}},v=function(){var c,J,g,t,P,Z,l,b;
return{animationConfig:{autoplay:(Z=(c=B().backgroundAnimation)==null?void 0:(J=c.settings)==null?void 0:J.autoplay)!=null?Z:!1,loop:(l=(g=B().backgroundAnimation)==null?void 0:(t=g.settings)==null?void 0:t.loop)!=null?l:!1,path:(b=(P=B().backgroundAnimation)==null?void 0:P.url)!=null?b:"",name:"stories_item_background_animation"}}};
_.ja(function(){if(W.isVisible()){var c;(c=z.lottieEl)==null||c.play();W.animationRef()&&(W.animationRef().lottieEl=z.lottieEl)}else{var J;(J=z.lottieEl)==null||J.stop()}},"AvUgVe");
return _.w("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.oK({"background-color":function(){return _.aE(G())+";"}})},_.w("div",{class:"ytStoriesItemViewModelAssetContent"},_.w(_.V,{cond:function(){return!!B().backgroundAnimation},
then:function(){return _.w(_.q8,{data:v,animationName:function(){return v().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.w(_.V,{cond:function(){return!!B().backgroundImage},
then:function(){return _.w(_.iF,{data:function(){return B().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.w(_.V,{cond:function(){return!!B().foregroundAnimation},
then:function(){return _.w(_.q8,{data:E,animationName:function(){return E().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.w(_.V,{cond:function(){return!!B().foregroundImage},
then:function(){return _.w(_.iF,{data:function(){return B().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.w("div",{class:"ytStoriesItemViewModelTopShadow"}),_.w(_.Sc,{data:function(){return d()}},{storiesStickerLayerViewModel:JN9})),_.w("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.oK({"background-color":function(){return _.aE(G())}})},_.w("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.w(_.IJ,{each:Y},function(c){return _.w(gaY,{data:function(){return c},
pauseAutoNavigation:W.pauseAutoNavigation})}))))},"ji"),scr={style:"overlay",
type:"outline"},gaY=_.m(function(W){var B={};return _.w("div",{class:_.kG("ytStoriesItemViewModelActionButton",(B.ytStoriesItemViewModelStretchedActionButton=function(){return W.data().size==="STORIES_BUTTON_SIZE_STRETCH"},B)),
"on:click":_.lF(W.pauseAutoNavigation)},_.w(_.Sc,{data:function(){return W.data().button}},{buttonViewModel:function(z){return _.w(_.ex,{data:z.data,
buttonOverrides:scr})}}))},"ki");_.Vm(_.m(function(W){var B=function(){var Zv;return(Zv=W.data().startIndex)!=null?Zv:0},z=_.A(_.IK(B)),G=z.next().value,Y=z.next().value;
z=_.A(_.g4(!1,void 0,"PXfG3d"));var d=z.next().value,E=z.next().value,v=function(){var Zv;return(Zv=W.data().storyItems)!=null?Zv:[]},c={},J=_.LG("yt-stories-viewer-view-model"),g=function(){return W.data().dismissButton},t=function(){var Zv;
return _.$B((Zv=_.k(g(),_.wP))==null?void 0:Zv.onTap)},P=_.LG("div"),Z,l,b=!1,O=function(){var Zv;
(Zv=Z)==null||Zv.cancel();Z=K(G()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});Z.onfinish=function(){var VR=_.k(v()[G()],Ssn),ux,X2;VR!=null&&VR.foregroundAnimation&&((VR==null?0:(ux=VR.foregroundAnimation)==null?0:ux.url)||(VR==null?0:(X2=VR.foregroundAnimation)==null?0:X2.payload))||(G()!==v().length-1?(Y(G()+1),O()):t()&&_.L8(t()))}},K=function(Zv){return P.value.children[Zv].children[0]},e=function(){for(var Zv=0;Zv<G();Zv++)K(Zv).style.transform=
"scaleX(1)"},a=function(){b||(d()?E(!1):(G()===v().length-1&&t()&&_.L8(t()),K(G()).style.transform="scaleX(1)",G()!==v().length-1&&(Y(G()+1),O())))},q=function(){b||(d()?E(!1):(K(G()).style.transform="scaleX(0)",G()!==0&&Y(G()-1),O()))},n=function(){E(!0)},L=function(){K(G()).style.transform="scaleX(1)";
G()!==v().length-1?(Y(G()+1),O()):t()&&_.L8(t())};
z=function(){b=!1;l=setTimeout(function(){E(!0);b=!0},300)};
var By=function(){clearTimeout(l);b&&d()&&E(!1)};
_.ja(function(){if(d()){var Zv;(Zv=Z)==null||Zv.pause();var VR;(VR=c.lottieEl)==null||VR.pause()}else{var ux;(ux=Z)==null||ux.play();var X2;(X2=c.lottieEl)==null||X2.play()}},"q47fR");
_.ja(function(){e();G()===B()&&O()},"ydZxlf");
var gk=function(Zv){Zv.key==="ArrowLeft"?q():Zv.key==="ArrowRight"&&a()},vy=function(Zv){if(Zv.target===J.value){(Zv=t())&&_.L8(Zv);
clearTimeout(l);var VR;(VR=Z)==null||VR.cancel();window.removeEventListener("keydown",gk);window.removeEventListener("yt-popup-closed",vy)}},lx=function(Zv){Zv.target===J.value&&(window.addEventListener("keydown",gk),window.addEventListener("yt-popup-closed",vy))};
_.jD(function(){e();O();window.addEventListener("yt-popup-opened",lx)});
return _.w("yt-stories-viewer-view-model",{el:J,class:_.kG("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.w("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.w("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.lF(q),"on:mousedown":_.lF(z),"on:mouseup":_.lF(By),"on:mouseleave":_.lF(By)}),_.w("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.lF(a),"on:mousedown":_.lF(z),"on:mouseup":_.lF(By),"on:mouseleave":_.lF(By)})),
_.w("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.w(_.Sc,{data:v},{storiesItemViewModel:function(Zv,VR){var ux=Zv.data;return _.w(_.V,{cond:function(){return Math.abs(VR()-G())<=1},
then:function(){var X2={};return _.w("div",{class:_.kG("ytStoriesViewerViewModelStoryItem",(X2.ytStoriesViewerViewModelActiveStoryItem=function(){return VR()===G()},X2))},_.w(ten,{data:ux,
pauseAutoNavigation:n,navigateToNextItemOnLottieComplete:L,isVisible:function(){return VR()===G()},
animationRef:c}))}})}})),_.w("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:P},_.w(_.IJ,{each:v},function(){return _.w("div",{class:"ytStoriesViewerViewModelProgressBar"},_.w("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.w("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.w(_.Sc,{data:g},{buttonViewModel:_.ex})))},"li"),"yt-stories-viewer-view-model",{props:{data:_.kz}});_.Vm(_.m(function(W){var B=W.data;var z=_.LG("yt-gen-ai-feedback-form-view-model"),G=[];return _.w("yt-gen-ai-feedback-form-view-model",{el:z,class:"ytGenAiFeedbackFormViewModelHost"},_.w(_.r0,{text:function(){return B().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.w("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.w(_.Sc,{data:function(){return B().feedbackChips}},{toggleButtonViewModel:function(Y){var d=Y.data;
return _.w(_.Y1,{data:d,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(E){var v=d();v=_.k(v,_.Jw);v=_.k(v==null?void 0:v.defaultButtonViewModel,_.wP).trackingParams;E?G.push(v):(E=G.indexOf(v),E>-1&&G.splice(E,1))}})}})),_.w(_.r0,{text:function(){return B().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.w("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.w(_.Sc,{data:function(){return B().submitButton}},{buttonViewModel:function(Y){return _.w(_.ex,{data:Y.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){fpK(z.value,G,B().uniqueId)}})}}),_.w(_.Sc,{data:function(){return B().moreFeedbackButton}},{buttonViewModel:function(Y){return _.w(_.ex,{data:Y.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"mi"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.kz},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Vl=function(){return _.S.apply(this,arguments)||this};
_.C(Vl,_.S);Vl.prototype.created=function(){ctn(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(jW0);var W=_.dO().resolve(_.vhq);W&&(W.container=this.ytPopupContainerBehavior);if(W=_.dO().resolve(_.BD))W.container=this.ytPopupContainerBehavior;if(W=_.dO().resolve(_.zo)){var B=this.ytPopupContainerBehavior;W.containerWasInjected?_.Oc(Error("kj")):W.container=B}};
Vl.prototype.ensurePopupBelowPlayer=function(W,B){var z=_.dO().resolve(_.Y8(_.ij));if(!z||!z.isOnWatch()||!_.TN())return!1;z=z.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Ft().height>z+this.getPopupHeight(W,B)?(W.style.top="auto",W.style.bottom="0px"):(W.style.top=z+"px",W.style.bottom="auto");return!0};
Vl.prototype.getPopupHeight=function(W,B){B&&(W.cachedPopupHeight=0);if(!W.cachedPopupHeight){B=0;var z=W.clientHeight,G=window.getComputedStyle(W);B+=parseInt(G.marginTop,10);B+=parseInt(G.marginBottom,10);W.cachedPopupHeight=z+B}return W.cachedPopupHeight};
Vl.prototype.getElement=function(W){return document.createElement(W)};
_.Q([_.h(d3r.YtPopupContainerBehavior),_.y("design:type",Object)],Vl.prototype,"ytPopupContainerBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],Vl.prototype,"ytComponentBehavior",void 0);_.Q([_.u({disableElementRegistration:!0,is:"ytd-popup-container"})],Vl);
_.D(Vl,"ytd-popup-container",function(){if(ULY!==void 0)return ULY;var W=document.createElement("template");_.I(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ULY=W},{mode:1});var P8b;var ZZi={};ZZi.YtLogYpcFlowCommandsBehavior=[_.ye.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(W){_.k(W,LhO)&&(W=_.k(W,LhO))&&(W.serializedTransactionFlowLoggingParams?_.GXQ(W.serializedTransactionFlowLoggingParams):W.serializedYpcCancelFlowLoggingParams?(W=W.serializedYpcCancelFlowLoggingParams)&&_.PW("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",W):W.serializedYpcResumeFlowLoggingParams?(W=W.serializedYpcResumeFlowLoggingParams)&&_.PW("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",W):W.serializedYpcPauseFlowLoggingParams?(W=W.serializedYpcPauseFlowLoggingParams)&&
_.PW("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",W):W.serializedYpcRefundFlowLoggingParams?(W=W.serializedYpcRefundFlowLoggingParams)&&L8Y("YPC_EVENT_TYPE_START",W):W.serializedYpcDeactivateFlowLoggingParams?(W=W.serializedYpcDeactivateFlowLoggingParams)&&_.PW("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",W):W.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(W=W.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.PW("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",W))},
handleLogYpcFlowDismiss_:function(W){_.k(W,$KY)&&(W=_.k(W,$KY),W.serializedTransactionFlowLoggingParams?_.YiR(W.serializedTransactionFlowLoggingParams):W.serializedYpcCancelFlowLoggingParams?(W=W.serializedYpcCancelFlowLoggingParams)&&_.PW("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",W):W.serializedYpcResumeFlowLoggingParams?(W=W.serializedYpcResumeFlowLoggingParams)&&_.PW("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",W):W.serializedYpcPauseFlowLoggingParams?(W=
W.serializedYpcPauseFlowLoggingParams)&&_.PW("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",W):W.serializedYpcRefundFlowLoggingParams&&(W=W.serializedYpcRefundFlowLoggingParams)&&L8Y("YPC_EVENT_TYPE_CANCEL",W))}}];var rN9={};rN9.YtCancelRecurrenceBehavior=[_.Ve.YtComponentBehavior,_.OZd,{attached:function(){var W=this;LQY(this,function(B,z){return W.ypcCancelRecurrenceHandler(B,z)})},
ypcCancelRecurrenceHandler:function(W,B){var z=this;if(!B||!B.ypcCancelRecurrenceEndpoint)return!1;if(!B.ypcCancelRecurrenceEndpoint.params)return _.xr(Error("Kl")),!0;_.nk(this.hostElement);var G=_.RK.instance,Y=_.dO().resolve(_.Y8(_.ns));G&&_.WA(G,B)?_.BA(G,B).then(function(d){z.ypcCancelRecurrenceSuccess_(W,B,{data:d})},function(d){z.ypcCancelRecurrenceFailure_(W,B,d)}).thenCatch(function(){_.xr(Error("Ll"))}):Y?Y.requestDataForServiceEndpoint(B).then(function(d){z.ypcCancelRecurrenceSuccess_(W,
B,d)},function(d){z.ypcCancelRecurrenceFailure_(W,B,d)}).thenCatch(function(){_.xr(Error("Ll"))}):_.xr(Error("Ml"));
return!0},
ypcCancelRecurrenceSuccess_:function(W,B,z){_.NF(this.hostElement);z.data||(z={data:z});z.data&&z.data.actions&&_.Jr(this.hostElement,z.data.actions,this.hostElement);z.data.messageRenderer?MLq(B.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(B=B.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.PW("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",B);_.v0(W,"yt-service-request-completed",z)},
ypcCancelRecurrenceFailure_:function(W,B,z){_.NF(this.hostElement);MLq(B.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.v0(W,"yt-service-request-error",{error:z,params:[W,B]})}}];var k7i=function(W,B){_.zT.call(this,B)};
_.C(k7i,IFb);var lfY={};lfY.YtCompleteTransactionBehavior=[_.Ve.YtComponentBehavior,_.OZd,{attached:function(){var W=this;LQY(this,function(B,z){return W.ypcCompleteTransactionHandler(B,z)})},
completeTransaction:function(W,B){var z=this;B={payments_payload:window.btoa(B.integratorData),buybucket_params:W.data.buybucketParams,offer_params:W.data.offerParams};var G=_.dO().resolve(_.ns),Y=W.data.completeTransactionEndpoint,d=this.get("ypcCompleteTransactionEndpoint.actions",Y);d&&_.Jr(this.hostElement,d,this.hostElement);return(d=_.RK.instance)&&_.WA(d,Y)?_.BA(d,Y,B).then(function(E){return!E||(E==null?0:E.error)?(E=z.get("data.serializedTransactionFlowLoggingParams",W),_.mR(new dM("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
E))):{data:E}}).then(function(E){return z.handleCompleteTransactionSuccess_(E,W)},function(){return z.handleCompleteTransactionFailure_(W)}):G.requestDataForServiceEndpoint(Y,B).then(function(E){return z.handleCompleteTransactionSuccess_(E,W)},function(){return z.handleCompleteTransactionFailure_(W)})},
handleCompleteTransactionSuccess_:function(W,B){W.data||(W={data:W});if(W.data.messageRenderer)return _.mR(new k7i(W.data.messageRenderer));if(W.data.trackingParams){var z=_.m1(),G=_.et();z&&G&&_.$q(z,G,_.XF(W.data.trackingParams))}B=this.get("data.serializedTransactionFlowLoggingParams",B);UMb(B);return _.gV(W)},
handleCompleteTransactionFailure_:function(W){W=this.get("data.serializedTransactionFlowLoggingParams",W);_.d5("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",W);return _.mR(new dM("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",W))},
ypcCompleteTransactionHandler:function(W,B){var z=this;if(!B.ypcCompleteTransactionEndpoint)return!1;if(!B.ypcCompleteTransactionEndpoint.transactionParams)return _.xr(Error("Nl")),!0;B.ypcCompleteTransactionEndpoint&&B.ypcCompleteTransactionEndpoint.gtmData&&_.Gr(B.ypcCompleteTransactionEndpoint.gtmData);var G=_.dO().resolve(_.Y8(_.ns));if(G){_.nk(this.hostElement);var Y=_.RK.instance;Y&&_.WA(Y,B)?_.BA(Y,B).then(function(d){return!d||(d==null?0:d.error)?(d=z.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
B),_.mR(new dM("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",d))):{data:d}}).then(function(d){_.v0(W,"yt-service-request-completed");
z.ypcCompleteTransactionSuccess_(B,d)},function(){return z.ypcCompleteTransactionFailure_(B)}):G.requestDataForServiceEndpoint(B).then(function(d){_.v0(W,"yt-service-request-completed");
z.ypcCompleteTransactionSuccess_(B,d)},function(){return z.ypcCompleteTransactionFailure_(B)})}return!0},
ypcCompleteTransactionSuccess_:function(W,B){_.NF(this.hostElement);B.data||(B={data:B});_.c0(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);B.data.messageRenderer||B.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(W):(_.Gr('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",W));B.data.actions&&(W=hI9(B.data.actions),B=Hyf(B.data.actions),W.length&&_.V0(this.hostElement,
W),B.length&&_.Jr(this.hostElement,B,this.hostElement))},
ypcCompleteTransactionFailure_:function(W){_.NF(this.hostElement);_.c0(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",W,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(W,B,z){if(B=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",B))B={serializedTransactionFlowLoggingParams:B},z&&(B.errorType=z),_.Sy(W,B),_.bp()}}];var C8q={};C8q.YtEndpointHandlerWithYpcBehavior=[_.OZd,_.ye.YtActionHandlerBehavior,[{openWalletDialog:function(W,B,z,G,Y,d,E){var v=this,c=_.zN();B=B.replace(/-/g,"+").replace(/_/g,"/");var J=_.IP().get("hl");_.Wpx(_.Yn(_.po),B,c.resolve,Y,function(g){d&&d();c.reject(g)},J,function(g){return v.onServerBackendAnalyticEvent_(W,z,g)},this.onDialogClose_.bind(this),G,E);
return c.promise},
openFixFlowDialog:function(W,B,z,G){W=W.replace(/-/g,"+").replace(/_/g,"/");_.Yn(_.po).openFixFlowDialog(W,B,z,G)},
onDialogClose_:function(){_.c0(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(W,B,z){_.v0(W,"yt-commerce-action-init-done");B&&_.V0(this.hostElement,[B,{backend_analytics:z}])}}],
_.Ds.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(W,B){W=this.get("data.nativeFlowEndpoint",B);B=this.get("data.fallbackEndpoint",B);W?_.V0(this.hostElement,[W]):B&&_.v0(this.hostElement,"yt-navigate",{endpoint:B})}}],
rN9.YtCancelRecurrenceBehavior,lfY.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 W=this;LQY(this,function(B,z,G){return W.handleYPCEndpoint(B,z,G)});
this.ypcRegisterActionMapJobId_=_.CG(_.fg,function(){W.registerActionMap(W.buyFlowActionMap_)})},
detached:function(){var W=this;_.fg.cancelJob(this.ypcRegisterActionMapJobId_);_.CG(_.fg,function(){W.unregisterActionMap(W.buyFlowActionMap_)})},
handleYPCEndpoint:function(W,B,z){var G=B.ypcGetCartEndpoint;if(G){_.e4("commerce_transaction");var Y=G.gtmId;Y&&_.zr(Y);(G=G.gtmData)&&_.Gr(G)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",B)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(W,B),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",B)!=null?(this.handleYPCFixInstrumentEndpoint_(W,B),!0):B.ypcPauseSubscriptionCommand?(Qn6(this.hostElement,W,B,z),
!0):B.ypcResumeSubscriptionCommand?(n2b(this.hostElement,W,B),!0):B.getPaymentInstrumentsParamsCommand?(m$0(this.hostElement,W,B),!0):B.ypcHandleTransactionEndpoint?(uEb(this.hostElement,W,B,z),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(W,B){var z=this;_.mj("ttcr",void 0,"commerce_transaction");B=B.ypcGetCartEndpoint;var G=B.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,Y=G.encryptedPurchaseParams,d=G.serializedTransactionFlowLoggingParams,E=G.serializedPaymentsClientParams,v=this.createGetCartResponseFromParams_(G,B.offerParams,d);this.changeButtonState(W,!0);_.xX(this.openWalletDialog(W,Y,G.ypcLogWalletAnalyticDataEndpoint,d,function(){z.changeButtonState(W,!1)},function(){z.changeButtonState(W,
!1)},E).then(function(c){return z.handleBuyFlowCompleteCallback_(W,v,c)},function(){return z.handleOnLoadError(v)}).then(function(c){return void z.handlePostPurchaseSuccess_(W,v,c)},function(c){return void z.handlePostPurchaseError_(c)}),function(){z.changeButtonState(W,!1);
W instanceof Element&&_.v0(W,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(W,B,z){var G=W.completeTransactionEndpoint,Y=W.handleTransactionEndpoint;B={data:{offerParams:window.btoa(B),serializedTransactionFlowLoggingParams:z}};Y?B.data.handleTransactionEndpoint=Y:B.data.completeTransactionEndpoint=G;W.onCartDismissCommand&&(B.data.onCartDismissCommand=W.onCartDismissCommand);return B},
onGetCartServiceRequestCompleted_:function(W,B){var z=this,G=W.target;if(B&&B.data&&B.data.messageRenderer)_.NF(this.hostElement),this.handleMessageRenderer_(B.data.messageRenderer),this.changeButtonState(G,!1);else{var Y=this.get("data.encryptedPurchaseParams",B),d=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",B),E=this.get("data.ypcLogWalletAnalyticDataEndpoint",B),v=this.get("data.serializedPaymentsClientParams",B),c=this.getLoggingParams_(B);if(c||Y||d)W.stopPropagation(),_.mj("ttcr",
void 0,"commerce_transaction"),Y||_.NF(this.hostElement),this.changeButtonState(G,!1),d?_.c0(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.eD("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:d}}},this]):Y&&(this.changeButtonState(G,!0),W=null,W=this.openWalletDialog(G,Y,E,c,function(){_.NF(z.hostElement);z.changeButtonState(G,!1)},function(){_.NF(z.hostElement);
z.changeButtonState(G,!1)},v),_.xX(W.then(function(J){return z.handleBuyFlowCompleteCallback_(G,B,J)},function(){return z.handleOnLoadError(B)}).then(function(J){return z.handlePostPurchaseSuccess_(G,B,J)},function(J){return z.handlePostPurchaseError_(J)}),function(){z.changeButtonState(G,!1);
_.v0(G,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(W,B){B&&B.endpoint&&B.endpoint.ypcGetCartEndpoint&&!B.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",B.endpoint.ypcGetCartEndpoint)&&_.Jr(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",B.endpoint.ypcGetCartEndpoint)],W.target),_.nk(this.hostElement),this.changeButtonState(W.target,!0))},
onServiceRequestError_:function(W,B){if(B&&B.params&&B.params.length){B=_.A(B.params);for(var z=B.next();!z.done;z=B.next())if((z=z.value)&&z.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",z.ypcGetCartEndpoint)&&_.Jr(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",z.ypcGetCartEndpoint)],W.target);_.NF(this.hostElement);this.changeButtonState(W.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(W,B,z){var G=z.integratorData;return G==null||G===""||z.error!=null?(G=this.getLoggingParams_(B),String(z.error)==="-1"?(B.data.onCartDismissCommand&&_.Jr(this.hostElement,[B.data.onCartDismissCommand],W),_.mR(new dM("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",G,!0))):_.mR(new dM("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",G))):B.data.handleTransactionEndpoint?e$9(this.hostElement,B.data.handleTransactionEndpoint,{payments_payload:G,funds_guarantee_callback_client_data:z.integratorClientCallbackData}):
this.completeTransaction(B,z)},
handlePostPurchaseSuccess_:function(W,B,z){B=z.data;var G=!1,Y,d;if(B&&((Y=B.command)==null?0:(d=Y.commandExecutorCommand)==null?0:d.commands)){var E,v;Y=(E=B.command)==null?void 0:(v=E.commandExecutorCommand)==null?void 0:v.commands;for(E=0;E<Y.length;E++)if(_.k(Y[E],_.sYR)){G=!0;break}}G||(B&&B.gtmDatas&&B.gtmDatas.length?_.Gr(B.gtmDatas[0]):_.Gr('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));z.data&&z.data.actions&&(B=hI9(z.data.actions),z=Hyf(z.data.actions),B.length&&
_.V0(this.hostElement,B),z.length&&_.Jr(this.hostElement,z,W))},
handlePostPurchaseError_:function(W){W&&W.payload&&W.payload.isUserDismiss||_.jy(Error("Pl"))},
handleOnLoadError:function(W){W=this.getLoggingParams_(W);return _.mR(new dM("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",W))},
getLoggingParams_:function(W){return this.get("data.serializedTransactionFlowLoggingParams",W)},
handleMessageRenderer_:function(W){var B=_.Ow(W,"renderer"),z=_.eD("openPopupConfig");B==="confirmDialogRenderer"&&z&&_.c0(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:z.popupTypeMap[B],popup:W}},this])},
handleYPCFixInstrumentEndpoint_:function(W,B){var z=this,G=B.ypcFixInstrumentEndpoint;B=G.encryptedFixInstrumentParameters;this.logFixFopEvent_(G,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(W,!0);this.openFixFlowDialog(B,function(Y,d){z.onFixFlowCompleteCallback_(G,Y,d)},function(){return z.changeButtonState(W,!1)},function(){z.changeButtonState(W,!1);
z.logFixFopEvent_(G,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(W,B,z){var G=_.q6("payments.business.integration.scenario.FixInstrument");if(B==G.IntegratorCallbackType.ON_COMPLETE){B="FIX_FOP_EVENT_TYPE_CANCEL";var Y=null;z.error!=null?z.error!=G.OnCompleteCallbackError.USER_CANCELLED&&(_.Jr(this.hostElement,[W.errorAction],this.hostElement),B="FIX_FOP_EVENT_TYPE_FAILURE",Y="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Jr(this.hostElement,[W.successAction],this.hostElement),B="FIX_FOP_EVENT_TYPE_SUCCESS");_.Jr(this.hostElement,[W.onFinishAction],
this.hostElement);this.logFixFopEvent_(W,B,Y)}},
logFixFopEvent_:function(W,B,z){(W=W.serializedFixFopLoggingParams)?(B={eventType:B,serializedFixFopLoggingParams:W},z!=null&&(B.errorType=z),_.Sy("fixFopFlow",B),_.bp()):_.jy(Error("Ql"))},
changeButtonState:function(W,B){_.r("enable_ypc_spinners")&&W&&(W.is==="yt-button-renderer"||W.is==="ytd-button-renderer")&&(W.disabled=B)}}];var Iff=function(W){this.JSC$32367_clientRoot=W;this.feedbackCollectorActionMap={"yt-help-dialog-requested":$$Y,"yt-feedback-dialog-requested":Nuj,"yt-signal-action-help":LCb,"yt-signal-action-send-feedback":U$f,"yt-send-feedback-action":ap9,"yt-user-feedback-endpoint":R$j};_.yx(_.Qx.getInstance(),this.feedbackCollectorActionMap,this.JSC$32367_clientRoot)},oaO;var hyK=function(W){this.JSC$32372_clientRoot=W;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":Wun.bind(null,this.JSC$32372_clientRoot),"yt-signal-action-delete-all-downloads":zr6,"yt-signal-action-delete-download":Gmr,"yt-signal-action-delete-playlist-download":dFr,"yt-signal-action-install-pwa":vli,"yt-signal-action-refresh-downloads":ElK,"yt-offline-video-endpoint":wkO,"yt-offline-playlist-endpoint":JEq,"yt-update-local-app-setting-command":tg6,"yt-offline-orchestration-action-command":Pe1,
"yt-signal-action-undo-delete-download":AEf,"yt-local-watch-history-command":kmr};_.yx(_.Qx.getInstance(),this.downloadManagerActionMap,this.JSC$32372_clientRoot);_.eW.instance=new _.eW},HZ6;var J_=function(){var W=_.S.apply(this,arguments)||this;W.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_"};W.remoteApi_=null;return W};
_.C(J_,_.S);_.p=J_.prototype;
_.p.ready=function(){_.r("polymer_enable_mdx")&&(p2r({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.r("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.r("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.r("enable_cast_short_lived_lounge_token")}),_.ip("yt-remote-connection-change",this.handleConnectionChange_,this),_.ip("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=VXY())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.p.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.p.handleConnectionChange_=function(W){(this.mdxConnected=W)?(W=EGj(),!W&&Naq()&&$HO()&&(W={key:"cast-selector-receiver",name:$HO()}),W=W.name):W=null;this.receiverName=W;_.AI(this.remoteApi_);(this.remoteApi_=VXY())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.p.handleReceiverAvailabilityChange_=function(){var W=iyf();Naq()&&_.QL("yt-remote-cast-available")&&W.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=W.length>0};
_.p.handleRemoteQueueChange_=function(){var W=this.currentVideoId_,B=this.currentListId_,z=Ak(this.remoteApi_);this.currentVideoId_=z.videoId;this.currentListId_=z.listId;this.currentVideoId_&&_.c0(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.r("polymer_enable_mdx_queue")?this.currentListId_:null,W,B])};
_.p.handleAddToQueueAction_=function(W){W=_.k(W,bji);this.remoteApi_&&(W.videoId?this.remoteApi_.addVideo(W.videoId):W.playlistId&&this.remoteApi_.addPlaylist(W.playlistId))};
_.p.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.p.handleInsertInQueueAction_=function(W){W=_.k(W,jYi);this.remoteApi_&&W.videoId&&this.remoteApi_.JSC$19822_insertVideo(W.videoId)};
_.p.handleRemoveFromQueueAction_=function(W){W=_.k(W,fV1);this.remoteApi_&&W.videoId&&this.remoteApi_.JSC$19822_removeVideo(W.videoId)};
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],J_.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F(),_.y("design:type",Object)],J_.prototype,"appId",void 0);_.Q([_.F(),_.y("design:type",Boolean)],J_.prototype,"mdxConnected",void 0);_.Q([_.F(),_.y("design:type",Boolean)],J_.prototype,"receiverAvailable",void 0);_.Q([_.F(),_.y("design:type",Object)],J_.prototype,"receiverName",void 0);_.Q([_.F(),_.y("design:type",Object)],J_.prototype,"currentVideoId_",void 0);
_.Q([_.F(),_.y("design:type",Object)],J_.prototype,"currentListId_",void 0);_.Q([_.NJ({is:"yt-mdx-manager",disableElementRegistration:!0})],J_);_.D(J_,"yt-mdx-manager",void 0,{mode:2});var FMb;var SBY;var gK=function(){var W=_.S.apply(this,arguments)||this;W.APP_IDS={ytr:3,ytm:5};W.JSC$21038_timeoutId_=0;W.actionMap={"yt-open-create-family-dialog":"open"};return W};
_.C(gK,_.S);_.p=gK.prototype;_.p.created=function(){ctn(2200)};
_.p.detached=function(){this.observer_&&this.observer_.disconnect()};
_.p.open=function(W,B){var z=this,G=W.serializedYpcFamilyCreateLoggingParams;this.JSC$21038_timeoutId_=setTimeout(this.abort_.bind(this,W.postFlowErrorEndpoint,G),3E4);B&&(this.onReadyCallback_=B);var Y=_.tH(this.hostElement).querySelector("#unicorn-iframe");G&&G&&$Mq("ypcFamilyCreateFlowStarted",G);_.edr("family_creation",function(){var d=_.q6("gapi.family_creation.render");_.q6("gapi.config.update")("iframes/family_creation/url",z.getFamilyCreationUrlWithUnicornParams_());var E=3;W.appId&&W.appId in
z.APP_IDS&&(E=z.APP_IDS[W.appId]);E={authUser:_.eD("SESSION_INDEX")||0,clientId:E,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.eD("HL"),initialflow:[4,5,6,7],m:z.isMobile?1:0,onFlowComplete:z.onUnicornFlowComplete_.bind(z,W.postFlowSuccessEndpoint,G),onError:z.onUnicornFlowError_.bind(z,W.postFlowErrorEndpoint,G),onReady:z.onUnicornFlowReady_.bind(z,W.referencePcidParams)};d(Y,E)})};
_.p.close=function(){_.tH(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.p.onUnicornFlowComplete_=function(W,B){this.close();B&&B&&$Mq("ypcFamilyCreateFlowSucceeded",B);_.v0(this.hostElement,"yt-navigate",{endpoint:W})};
_.p.onUnicornFlowError_=function(W,B){this.close();B&&$Mq("ypcFamilyCreateFlowCancelled",B);_.v0(this.hostElement,"yt-navigate",{endpoint:W})};
_.p.onUnicornFlowReady_=function(W){var B=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();W&&_.q6("gapi.family_creation.setConfig")(0,W);this.observer_=new MutationObserver(function(){_.tH(B.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.tH(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.tH(this.hostElement).querySelector("#dialog").open()};
_.p.getFamilyCreationUrlWithUnicornParams_=function(){return _.eD("YTR_FAMILY_CREATION_URL")};
_.p.getCurrentUrl_=function(){return document.location.href};
_.p.abort_=function(W,B){this.clearTimeout_();this.onUnicornFlowError_(W,B)};
_.p.clearTimeout_=function(){clearTimeout(this.JSC$21038_timeoutId_)};
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],gK.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],gK.prototype,"isMobile",void 0);_.Q([_.F(),_.y("design:type",Object)],gK.prototype,"onReadyCallback_",void 0);_.Q([_.F(),_.y("design:type",Object)],gK.prototype,"observer_",void 0);_.Q([_.NJ({is:"yt-create-family-dialog",disableElementRegistration:!0})],gK);
_.D(gK,"yt-create-family-dialog",function(){if(SBY===void 0){var W=document.createElement("template");_.I(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var B=W.content,z=B.insertBefore;FMb===void 0&&(FMb=document.createElement("template"));var G=FMb;z.call(B,G.content.cloneNode(!0),W.content.firstChild);SBY=W}W=SBY;return W},{mode:2});var bZb;var jcK;var t_=function(){var W=_.S.apply(this,arguments)||this;W.STEP=1;W.BLOCK_ON=80;W.MIN_PROGESS=0;W.MAX_PROGESS=100;return W};
_.C(t_,_.S);_.p=t_.prototype;_.p.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.p.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));_.dO().addProvider({provide:gRq,useValue:this})};
_.p.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.p.finish=function(){var W=this;this.progress=this.MAX_PROGESS;lKi(function(){W.progress==W.MAX_PROGESS&&(W.hostElement.hidden=!0)})};
_.p.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.G5.Object.defineProperties(t_.prototype,{progress:{configurable:!0,enumerable:!0,set:function(W){this.progress_=W;var B="scaleX("+W/this.MAX_PROGESS+")",z=_.tH(this.hostElement).querySelector("#progress").style;z.transform=B;z.webkitTransform=B;this.hostElement.setAttribute("aria-valuenow",String(W))},
get:function(){return this.progress_}}});
_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],t_.prototype,"ytComponentBehavior",void 0);_.Q([_.NJ({is:"yt-page-navigation-progress",disableElementRegistration:!0})],t_);
_.D(t_,"yt-page-navigation-progress",function(){if(jcK===void 0){var W=document.createElement("template");_.I(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var B=W.content,z=B.insertBefore;bZb===void 0&&(bZb=document.createElement("template"));var G=bZb;z.call(B,G.content.cloneNode(!0),W.content.firstChild);jcK=W}W=jcK;return W},{mode:2});var fff={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"},OZr={"font-size":"12px","font-style":"italic"},XIn={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.hrY=function(){return _.T(function(W){_.HG(W)})};var KMb=_.m(function(W){var B=function(){return W.data().subtext},z={};
return _.w("snackbar-view-model",{class:_.kG("snackbarViewModelHost",W.className)},_.w("div",{class:_.kG("snackbarViewModelEngagementBarWrapper",W.className)},_.w(_.V,{cond:function(){return W.data().image},
then:function(G){return _.w(_.iF,{data:G,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.w(_.V,{cond:function(){return W.data().imageContent},
then:function(){return _.w("div",{class:"snackbarViewModelAvatarContainer"},_.w(_.Sc,{data:function(){return W.data().imageContent}},{decoratedAvatarViewModel:_.pY}))}}),_.w("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.w("div",{class:_.kG((z.snackbarViewModelTitle=!0,z.snackbarViewModelTitleWithSubtext=B,z))},_.w(_.r0,{text:function(){return W.data().text}})),_.w(_.V,{cond:B,
then:function(){return _.w("div",{class:"snackbarViewModelSubtext"},_.w(_.r0,{text:function(){return B()}}))}})),_.w(_.V,{cond:function(){return W.data().buttons},
then:function(){return _.w("div",{class:"snackbarViewModelButtonClassWrapper"},_.w(_.Sc,{data:function(){return W.data().buttons}},{buttonViewModel:function(G){return _.w(_.ex,{data:G.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:W.target})}}))}})))},"ni");_.Vm(_.m(function(){function W(e,a,q){l(e);O(q);P("in");g(!0);B(e,a);E=setTimeout(function(){z()},a)}
function B(e,a){var q,n=(q=e.text)==null?void 0:q.content;e=_.x2(e.rendererContext);n&&(a={label:n,command:e,durationMs:a},_.dO().resolve(_.G8).enqueue(a))}
function z(e){P("out");e&&clearTimeout(E)}
function G(){z(!0)}
function Y(e){if(e){var a=e.snackbarViewModel,q=e.durationMs,n=e.target;q||(q=3E3);a&&(e=_.dO().resolve(_.Y8(_.aG)))&&e.enqueue({isOpened:J,open:function(){W(a,q,n)},
close:z},0)}}
var d=_.ag("snackbar-container"),E=void 0,v=_.A(_.g4(!1,void 0,"mDc5N")),c=v.next().value;v=v.next().value;var J=c,g=v;c=_.A(_.g4("out",void 0,"FpOs5e"));var t=c.next().value,P=c.next().value;c=_.A(_.g4(void 0,void 0,"jIDRob"));var Z=c.next().value,l=c.next().value;c=_.A(_.g4(void 0,void 0,"kOA3Mb"));var b=c.next().value,O=c.next().value,K=_.lF(function(){if(t()==="out"){g(!1);l(void 0);O(void 0);var e=_.dO().resolve(_.Y8(_.aG));e&&IJf(e,0)}});
_.jD(function(){var e=_.dO().resolve(_.Y8(_.f9K));e&&(e.showSnackbarFn=Y,e.closeSnackbarFn=G)});
return _.w("snackbar-container",{class:"ytSnackbarContainerHost",el:d},_.w(_.V,{cond:function(){return J()&&!!Z()},
then:function(){var e={};return _.w("div",{class:_.kG("ytSnackbarContainerSnackbarContainer",(e.ytSnackbarContainerMobile=!1,e.ytSnackbarContainerPivotBar=function(){var a;return!((a=_.dO().resolve(_.Y8(_.O7i)))==null||!a())},e.ytSnackbarContainerOpened=function(){return J()&&t()==="in"},e.ytSnackbarContainerClosed=function(){return J()&&t()==="out"},e)),
"on:animationend":K},_.w(KMb,{data:function(){return Z()},
target:function(){return b()}}))}}))},"oi"),"snackbar-container");_.Vm(_.O0M,"yt-tooltip");var u9f=_.ai1.ephemeralActionSelector;_.Vm(_.m(function(){var W=_.ny(u9f);return _.w("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var B;return(B=W())==null?void 0:B.announcement})},"pi"),"yt-ephemeral-actions");var nli=new Map;var Hib=function(W,B){var z=this;this.handleError=W;this.logEventInternal=B;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){z.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
Hib.prototype.logError=function(W){this.handleError(W)};
Hib.prototype.logEvent=function(W,B){switch(W){case "IDB_DATA_CORRUPTED":_.r("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",B);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",B);break;case "IS_SUPPORTED_COMPLETED":_.r("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",B);break;case "QUOTA_EXCEEDED":eyr(this,B);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",B);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":W=Object.assign({},B,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",W)}};
var eyr=function(W,B){_.dF.getInstance().estimate().then(function(z){z=Object.assign({},B,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:$FY(z==null?void 0:z.usage),deviceStorageQuotaMbytes:$FY(z==null?void 0:z.quota)});W.logEventInternal("idbQuotaExceeded",z)})};var muj=_.m(function(W){var B=_.LG("yt-draggable"),z=W.onDrag,G=W.onDragStart,Y=W.onDragEnd,d=_.EV(W,{allowClicks:!1,dragThreshold:5}),E=d.dragThreshold,v=d.allowClicks;W=d.children;d=d.className;var c=void 0,J=void 0,g=new _.De(0,0),t=!1;_.jD(function(){c=new _.RA(B.value);J=new _.pt(Z);P(c,J);if(v()){_.HgQ(c,E());var b;(b=B.value)==null||b.addEventListener("click",l,{capture:!0})}_.fR(function(){var O;(O=c)==null||O.dispose();if(v()){var K;(K=B.value)==null||K.removeEventListener("click",l,{capture:!0})}})});
var P=function(b,O){_.ug(b,"earlycancel",function(){v()&&(t=!1)});
_.ug(b,"start",function(K){G==null||G(K);K.defaultPrevented||v()&&(t=!0)});
_.ug(b,"beforedrag",function(K){c&&J&&(K.preventDefault(),g=new _.De(K.clientX-c.startX,K.clientY-c.startY),J.start())});
_.ug(b,"end",function(){O.stop();Y==null||Y();g=new _.De(0,0)})},Z=function(){g&&z(g)},l=function(b){t&&(t=!1,b.stopPropagation(),b.preventDefault())};
return _.w("yt-draggable",{el:B,class:_.kG("ytDraggableComponentHost",d)},W)},"qi");var xuf=_.m(function(W){var B=_.A(_.g4(0,void 0,"Qf0tbc")),z=B.next().value,G=B.next().value;B=function(Y){var d={},E={};return _.w(muj,{className:_.kG("ytdMiniplayerComponentResizer",(d.ytdMiniplayerComponentResizerDisabled=function(){return Y===W.horizontalAlignment()||Y===W.verticalAlignment()},d.ytdMiniplayerComponentResizerNorth=Y==="north",d.ytdMiniplayerComponentResizerEast=Y==="east",d.ytdMiniplayerComponentResizerSouth=Y==="south",d.ytdMiniplayerComponentResizerWest=Y==="west",d)),
onDragStart:function(){G(W.currentMiniplayerSize());if(W.onResizeStart)W.onResizeStart()},
onDrag:function(v){Y!=="north"&&Y!=="west"||v.scale(-1);var c;v=(c=Y==="north"||Y==="south")?v.y:v.x;var J=W.currentAspectRatio();c&&J>=1?v*=J:!c&&J<1&&(v/=J);c=v;W.onResize(z()+c)}},_.w("div",{class:_.kG("ytdMiniplayerComponentResizerCorner",(E.ytdMiniplayerComponentResizerNorthCorner=Y==="north",E.ytdMiniplayerComponentResizerEastCorner=Y==="east",E.ytdMiniplayerComponentResizerSouthCorner=Y==="south",E.ytdMiniplayerComponentResizerWestCorner=Y==="west",E))}))};
return _.w("div",{class:"ytdMiniplayerComponentResizers"},B("north"),B("east"),B("south"),B("west"))},"ri");var Du6=16/9;_.Vm(_.m(function(){var W=_.LG("ytd-miniplayer"),B=_.A(_.g4(new _.hv(NaN,NaN),void 0,"GhwGi")),z=B.next().value,G=B.next().value;B=_.A(_.g4(!1,void 0,"YCGMub"));var Y=B.next().value,d=B.next().value;B=_.A(_.g4(!1,void 0,"tMABIb"));var E=B.next().value,v=B.next().value;B=_.A(_.g4(!1,void 0,"XAbRxc"));var c=B.next().value,J=B.next().value;B=_.A(_.g4(!1,void 0,"qcycIb"));var g=B.next().value,t=B.next().value;B=_.A(_.g4(!1,void 0,"HJauAf"));var P=B.next().value,Z=B.next().value;B=_.A(_.g4(!1,void 0,"P0Rfsf"));
var l=B.next().value,b=B.next().value;B=_.A(_.g4(Du6,void 0,"mfCCDe"));var O=B.next().value,K=B.next().value,e=_.A(_.g4(!1,void 0,"QfcC7b"));B=e.next().value;var a=e.next().value;e=_.A(_.g4(!1,void 0,"armgtc"));var q=e.next().value,n=e.next().value;e=_.A(_.g4(void 0,void 0,"yK0pGf"));var L=e.next().value,By=e.next().value;e=_.A(_.g4(_.eD("HTML_DIR")==="rtl"?"west":"east",void 0,"GHCzub"));var gk=e.next().value,vy=e.next().value;e=_.A(_.g4("south",void 0,"aWTWh"));var lx=e.next().value,Zv=e.next().value;
e=_.A(_.g4(400,void 0,"IY6bpb"));var VR=e.next().value,ux=e.next().value,X2=_.dO().resolve(_.Qb).miniplayerPropSignalMap[0],WQ=X2.data,XH=X2.externalPlaylistData;e=X2.toastData;var wU=X2.playabilityStatus,RD=X2.isReadyToResume,sF=X2.isDisabled,Vd=X2.watchWhile,bR=X2.playerVe,Sf=X2.expandVe,UF=X2.closeVe,pu=X2.readyToResumeVe,BQ=X2.readyToResumeCloseVe,Z9=X2.repositionVe,cn=X2.resizeVe;X2=_.A(_.IK(RD));var rU=X2.next().value,Gq=X2.next().value,Td=!1,Bn=!1,T6;_.jD(function(){G(_.Ft());W.value.addEventListener("animationend",
function(D9){D9.target===W.value&&(Z(!1),b(!1))});
WQi(W.value)});
_.$E("yt-window-resized",function(D9){D9&&G(D9)});
var $M=function(){T6&&K(T6.getVideoAspectRatio())},Pn=function(){if(T6){var D9=T6.getPlayerState()===1;
rU()&&D9&&Gq(!1)}},FH=function(){var D9=Sf();
if(D9){var kY=_.m1(3);kY&&_.RP(kY,D9)}},C7=function(){var D9=UF(),kY=BQ();
D9&&_.RP(_.m1(3),D9);RD()&&kY&&_.RP(_.m1(3),kY)};
_.$E("yt-activate-miniplayer",function(D9){var kY;return _.T(function(nO){if(nO.nextAddress==1)return Y()?nO.return():nO.yield((kY=_.dO().resolve(_.Qb).getPlayerElement())==null?void 0:kY.getPlayerPromise(),2);T6=nO.yieldResult;if(!T6)return nO.return();!q()&&_.r("kevlar_watch_while_v2")&&(Zv(D9&&!_.r("kevlar_watch_while_bottom_align")?"north":"south"),vy(_.eD("HTML_DIR")==="rtl"?"west":"east"));var lQ=T6;lQ.addEventListener("onVideoDataChange",$M);lQ.addEventListener("onStateChange",Pn);lQ.addEventListener("onExpandMiniplayer",
FH);lQ.addEventListener("onCloseMiniplayer",C7);K(T6.getVideoAspectRatio());d(!0);RrK()||Z(!0);_.HG(nO)})});
_.$E("yt-deactivate-miniplayer",function(D9){return _.T(function(kY){if(!Y())return kY.return();d(!1);Gq(!1);b(D9);t(!1);v(!1);if(T6){var nO=T6;nO.removeEventListener("onVideoDataChange",$M);nO.removeEventListener("onStateChange",Pn);nO.removeEventListener("onExpandMiniplayer",FH);nO.removeEventListener("onCloseMiniplayer",C7)}RrK()||Z(!0);_.HG(kY)})});
var tK=function(){return!(Vd()&&_.r("kevlar_watch_while_modern"))},a3=function(){var D9;
return!((D9=XH())==null||!D9.contents)},wi=function(){var D9=VR();
var kY=z();kY=Math.min(Math.min(kY.width,kY.height)-32,720);var nO=O(),lQ=tK(),ql=a3()&&E(),Qc=Math.min(D9,kY);D9=new _.hv(192,lQ?116:192);nO=new _.hv(ql?Du6:nO,1);Qc=new _.hv(Qc,lQ?Qc-76:Qc);Qc=nO.aspectRatio()>Qc.aspectRatio()?Qc.width/nO.width:Qc.height/nO.height;nO=nO.scale(Qc);D9.width<=nO.width&&D9.height<=nO.height||(D9=nO.aspectRatio()<=D9.aspectRatio()?D9.width/nO.width:D9.height/nO.height,nO.scale(D9),nO.width=Math.min(nO.width,kY),nO.height=Math.min(nO.height,kY));return new _.hv(nO.width,
_.eT(192,nO.height+Yoj(lQ,ql),720))},jw=function(){var D9=wi(),kY=tK(),nO=a3()&&E();
return new _.hv(D9.width,D9.height-Yoj(kY,nO))},hj=function(){var D9=function(kY){kY.target===W.value&&g()&&(t(!1),W.value.removeEventListener("transitionend",D9))};
RrK()||(W.value.addEventListener("transitionend",D9),t(!0));v(!E())};
_.ja(function(){var D9=bR(),kY=_.m1(3),nO=_.et(3);if(kY&&nO&&D9){_.$q(kY,nO,D9);nO=Z9();var lQ=cn(),ql=Sf(),Qc=UF(),H_=BQ();ql&&Qc&&H_&&(_.Li(kY,D9,[ql,Qc,H_]),_.Mj(kY,[ql,Qc]));nO&&lQ&&_.Li(kY,D9,[nO,lQ])}},"DuFzOc");
_.ja(function(){var D9=pu();if(D9){var kY=_.m1(0),nO=_.et(0);kY&&nO&&(_.$q(kY,nO,D9),_.Mj(kY,[D9]))}},"vwRnmc");
X2={};return _.w("ytd-miniplayer",{el:W,class:_.kG("ytdMiniplayerComponentHost",(X2.ytdMiniplayerComponentVisible=function(){return Y()||P()},X2.ytdMiniplayerComponentAnimatingSnap=c,X2.ytdMiniplayerComponentAnimatingPlaylistExpand=g,X2.ytdMiniplayerComponentAnimatingFade=P,X2),function(){if(P()){var D9=lx();
var kY=Y(),nO=l();D9=kY?D9==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":nO?D9==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":D9==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else D9="";return D9}),
style:_.oK({top:function(){return lx()==="north"?"16px":""},
right:function(){return gk()==="east"?"16px":""},
bottom:function(){return lx()==="south"?"16px":""},
left:function(){return gk()==="west"?"16px":""},
width:function(){return wi().width+"px"},
height:function(){return wi().height+"px"},
transform:function(){var D9=L();return D9?"translate("+D9.x+"px, "+D9.y+"px)":""}})},_.w("div",{class:"ytdMiniplayerComponentContent"},_.w(muj,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(D9){var kY=GHO(gk(),lx(),z(),wi(),L()),nO=jw();Math.abs(D9.clientY-(kY.y+nO.height))>15?(a(!0),D9=_.m1(3),kY=Z9(),Td||(Td=!0,D9&&kY&&_.Mj(D9,[kY])),D9&&kY&&_.RP(D9,kY)):D9.preventDefault()},
onDrag:function(D9){By(D9)},
onDragEnd:function(){var D9=BnY(GHO(gk(),lx(),z(),wi(),L()),z(),wi()),kY=zpK(gk(),lx(),z(),wi()),nO=zpK(D9.horizontalAlignment,D9.verticalAlignment,z(),wi());nO=new _.De(nO.x-kY.x,nO.y-kY.y);var lQ;kY=kY.y+(((lQ=L())==null?void 0:lQ.y)||0)+wi().height/2;var ql=function(){gk()===D9.horizontalAlignment&&lx()===D9.verticalAlignment||n(!0);vy(D9.horizontalAlignment);Zv(D9.verticalAlignment);By(void 0)},Qc=function(H_){H_.target===W.value&&c()&&(J(!1),ql(),W.value.removeEventListener("transitionend",Qc))};
a(!1);lx()==="south"&&kY>z().height?(ql(),_.dO().resolve(_.Qb).close()):(W.value.addEventListener("transitionend",Qc),J(!0),By(nO))}},_.w(_.V,{cond:Y,
then:function(){return _.w(_.ExK,{isDisabled:sF,playabilityStatus:wU,size:jw})}}),_.w(_.V,{cond:tK,
then:function(){return _.w(_.AI1,{isReadyToResume:rU,data:WQ,expanded:E,onExpandClick:hj,playlistData:XH})}}),_.w(_.V,{cond:B,
then:function(){return _.w("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.w(_.V,{cond:function(){return a3()&&E()||g()},
then:function(){return _.w(_.n9F,{className:"ytdMiniplayerComponentPlaylistPanel",data:XH,hideHeaderText:!0,withinMiniplayer:!0})}}),_.w("div",{class:"ytdMiniplayerComponentToast"},_.w(_.THi,{toastData:e}))),_.w(xuf,{onResize:function(D9){ux(_.eT(192,D9,720))},
onResizeStart:function(){var D9=_.m1(3),kY=cn();Bn||(Bn=!0,D9&&kY&&_.Mj(D9,[kY]));D9&&kY&&_.RP(D9,kY)},
currentAspectRatio:O,currentMiniplayerSize:VR,horizontalAlignment:gk,verticalAlignment:lx}))},"si"),"ytd-miniplayer",{});var Qcq=_.M$.persistentPanelVisibleSelector,sP=function(){var W=_.S.apply(this,arguments)||this;W.tabGesturesIsActive=!1;W.persistentPanelEnabled=_.r("enable_ai_companion");W.deprecateFullerscreenUi=_.r("web_watch_fullerscreen_deprecation_ui");W.hasDelegation=!1;W.darkerDarkTheme=_.r("web_darker_dark_theme");W.isFrostedGlassInitialized=!1;W.frostedGlassExp=_.r("web_frosted_glass");W.mastheadHiddenFocusWithinKillswitch=_.r("web_masthead_hidden_focus_within_killswitch");W.clientOnlyWizTooltipsEnabled=
_.r("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");W.scrollAtTop=!0;W.guideScrollTop=0;W.isTheaterModeSession=_.md("START_IN_THEATER_MODE");W.iMaxTheaterMode=_.r("web_watch_imax_theater_mode");W.isFullWindowSession=_.md("START_IN_FULL_WINDOW_MODE");W.hasCreateFamilyDialog=!1;W.mastheadHeight=56;W.networkStatusManager=new _.ng;W.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"};W.dynamicActionMap={"yt-run-attestation-command":function(B){var z=
_.bur.instance,G=_.k(B,_.ni7);return G?_.r("use_rta_manager_for_async")&&V4f()?Bb6(z,G,B.clickTrackingParams):Wwi(z,G,B.clickTrackingParams):_.mR(Error("si"))}};
W.isFrostedGlassDisabled=!1;W.isChannelOrPlaylistPage=!1;return W};
_.C(sP,_.S);_.p=sP.prototype;_.p.created=function(){var W=_.dO();_.r("kevlar_clear_duplicate_pref_cookie")&&_.CG(_.fg,function(){var B=_.rO.get("PREF");B&&!/f\d=/.test(B)&&(B=_.EA("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=B?"PREF=null;domain="+B+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.r("gzip_gel_with_worker")&&_.yHk();_.r("jspb_serialize_with_worker")&&eYf();_.r("web_worker_availability_check")&&Nhi();_.r("nwl_init_killswitch")||Kjf().then(function(){_.fg.addLowPriorityJob(PF6)});
this.pageManagerAttachedPromise=_.zN();this.ytdAppBehavior.loadDepsPromise=_.ma([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.an(this.onThrottledScroll,200,this);_.r("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);Fjr();CLf=!!_.q6("ytappsettings.initialized");pK=_.q6("ytappsettings.previousValue");EO6=_.q6("ytappsettings.previousSnapshotTime");CLf||(CLf=!0,TcK());IN0();oGb();_.uk("DEFERRED_DETACH",
_.r("kevlar_tuner_should_defer_detach"));_.uk("REUSE_COMPONENTS",!0);_.uk("STAMPER_STABLE_LIST",!0);_.uk("SCHEDULED_LAZY_LIST",!0);_.uk("openPopupConfig",bYi);_.uk("useClickHandler",!0);_.r("kevlar_shell_cleanup")&&_.fg.addLowPriorityJob(Pdn.bind(this,_.Yt.caches));_.md("IS_SHELL_LOAD")&&_.Ki({shellStartupDurationMs:Math.round((0,_.Yb)()-_.bH())});bkK(this.networkStatusManager);_.r("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",Cef(fff)),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!",
Cef(OZr)),console.log("%cVisit http://go/join-youtube-web to apply today.",Cef(XIn)));_.N20(W.resolve(_.BW),1E3)};
_.p.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var W=Ljf();W&&!_.r("external_fullscreen_killswitch")&&document.addEventListener(W,this.setFullscreen.bind(this));(W=window.matchMedia("(prefers-color-scheme: dark)"))&&W.addEventListener&&W.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.p.attached=function(){var W=this;_.J5().processSignal("ci");_.r("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.WrH?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Vb(_.dz0(),"SUCCESS");this.updateIconSet();_.iH(this.guideInnerContent,!1);_.aq().initVisibilityObserver();this.guideService.guideElement=this.guide;var B=document.createElement("ytd-miniplayer"),z=_.tH(this.hostElement).querySelector("#content");
_.tH(this.hostElement).insertBefore(B,z);_.J5().processSignal("ma");_.dO().resolve(_.Qb).init(B);this.persistentPanelEnabled&&_.WdK(_.dO().resolve(_.Go),this.persistentPanelContainer,1);_.md("IS_SHELL_LOAD")&&(z=document.createElement("ytd-network-status-banner"),_.tH(this.hostElement).insertBefore(z,B));_.r("kevlar_right_click_on_lockups")&&_.Ta._onCaptureClick&&document.addEventListener("contextmenu",_.Ta._onCaptureClick.bind(_.Ta),!0);var G=function(){var Y=_.H7("yt-page-navigation-progress");
_.tH(W.hostElement).appendChild(Y)};
setTimeout(function(){_.J5().parkOrScheduleJob(G,0,"eocs",16)},0);
_.r("service_worker_push_enabled")&&_.CG(_.fg,Nc1);_.yx(_.Qx.getInstance(),this.dynamicActionMap,this.hostElement);_.v0(this.hostElement,"ytd-app-attached");_.J5().processSignal("aa");iAb(this.hostElement);_.BV("gapi.load",_.edr);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.CG(_.fg,
function(){var Y=document.createElement("ytd-video-preview");_.tH(_.tH(W.hostElement).querySelector("#video-preview")).appendChild(Y)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.CG(_.fg,function(){Hkj();W.registerWithViewTransitionManager()});
if(_.ua()&&this.isAppDarkTheme()!==_.Xt())this.onDarkModeToggledAction();else B=_.Ks()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==B&&(_.r("enable_dark_theme_only_on_shorts")?_.zS(_.r("enable_dark_theme_only_on_shorts_control")?window.location.href:_.M6(window.location.href,{theme:"dark"})):_.Oc(new _.oX("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(XHb=new OYr(this.hostElement)),HZ6=new hyK(this.hostElement),oaO=new Iff(this.hostElement),BvO=new Wnb(this.hostElement)};
_.p.getThemeSettingsToLog=function(){var W=_.Ks()==="USER_INTERFACE_THEME_DARK";W=_.ua()?_.Xt()?"os-dark":"os-light":W?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:W,cookiesEnabled:_.lO()}};
_.p.detached=function(){_.E2(this.guideInnerContent);_.fg.cancelJob(Gj);Gj=0;_.fg.cancelJob(dg);dg=0;_.GGx(Aqi);Aqi.length=0;Ygr=_.urR=null;_.aq().dispose();_.r("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Nl(_.Qx.getInstance(),XHb.playlistHandlerActionMap,XHb.JSC$32083_clientRoot);_.Nl(_.Qx.getInstance(),HZ6.downloadManagerActionMap,HZ6.JSC$32372_clientRoot);_.Nl(_.Qx.getInstance(),oaO.feedbackCollectorActionMap,oaO.JSC$32367_clientRoot);
for(var W=_.A(BvO.eventListeners),B=W.next();!B.done;B=W.next()){var z=_.A(B.value);B=z.next().value;z=z.next().value;z=_.A(z);for(var G=z.next();!G.done;G=z.next()){var Y=_.A(G.value);G=Y.next().value;Y=Y.next().value;B.removeEventListener(G,Y)}}_.Nl(_.Qx.getInstance(),BvO.autonavPauseActionMap,BvO.JSC$20003_clientRoot)};
_.p.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.IP().getFlag(186)};
_.p.computeIsInlinePreviewEnabled=function(W,B,z){return!z&&_.Qef({miniplayerIsActive:W,miniplayerPlaybackState:B})};
_.p.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Tl({type:"SET_FROSTED_GLASS_MODE",payload:!_.r("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"}))};
_.p.computeIsFrostedGlassDisabled=function(W,B,z,G){return W||B||z||G&&_.r("web_frosted_glass_disable_watch")};
_.p.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.r("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.p.computeIsHomePage=function(W,B){if(!W||B==null||!B.endpoint)return!1;var z;return((z=_.k(B.endpoint,_.oE))==null?void 0:z.browseId)==="FEwhat_to_watch"};
_.p.updateIsChannelOrPlaylistPage=function(){if(_.r("web_frosted_glass")){var W,B,z=(B=(W=_.dO().resolve(_.Y8(_.ij)))==null?void 0:W.getCurrentPage())==null?void 0:B.pageSubtype;this.isChannelOrPlaylistPage=z?["channel","channels","playlist"].includes(z):!1}};
_.p.scheduleFrostedGlassInitialization=function(){var W=this;_.r("web_frosted_glass")&&_.J5().parkOrScheduleJob(function(){W.isFrostedGlassInitialized=!0},0,_.ZA(["eocs",
"cr"]),300)};
_.p.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.gDR(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Tl({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Tl({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.p.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Joi(!0))};
_.p.onYtSignalActionRequestPersistentStorage=function(){if(!_.r("request_persistent_storage_killswitch")){var W=_.dO().resolve(_.Xb6);W.cachedPersistStatePromise||(W.cachedPersistStatePromise=X8Y())}};
_.p.handleYtChannelCreationFormEndpoints=function(W){W&&this.ytComponentBehavior.resolveCommand(W)};
_.p.handleShowEngagementPanelEndpoint=function(W){W&&this.ytComponentBehavior.resolveCommand(W)};
_.p.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Joi(!1))};
_.p.initIconDefs=function(W,B){var z=document.createElement("iron-iconset-svg");z.name=W;W=document.createElementNS("http://www.w3.org/2000/svg","svg");z.appendChild(W);W.appendChild(B);document.body.appendChild(z);return z};
_.p.onWindowResized=function(){_.c0(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var W=_.IPM.getInstance();W.documentWidth_=document.body.clientWidth;hp0(W)};
_.p.onWindowScrolled=function(){var W=_.dO().resolve(_.ij).getCurrentPage();if(W!=null&&W.getScrollTop){var B=this.ytdReduxBehavior,z=B.dispatch;W=W.getScrollTop()<=0;z.call(B,_.Tl({type:"SET_SCROLL_AT_TOP",payload:W}))}};
_.p.guideIsVisibleButNotPersistentSelectorChanged=function(){var W=_.dO().resolve(_.ij).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=W.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"),
W.setScrollTop(this.guideScrollTop));_.wV(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.p.getCurrentPageScrollableElementType=function(){var W=_.dO().resolve(_.ij).getCurrentPage();if(W&&W.getPageScrollingElement())return W.getPageScrollingElement().nodeName};
_.p.observeGuideVisibility=function(){var W=_.IPM.getInstance(),B=this.miniGuideVisible;W.guidePersistentAndVisible_=this.guidePersistentAndVisible;W.miniGuideVisible_=B;hp0(W)};
_.p.handleEduDismissAction=function(W){W&&W.eduDismissAction&&(_.c0(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.ZMd.getInstance(),_.FI.set(W.eduDismissAction.key+"-dismissed",!0))};
_.p.handleEduImpressionAction=function(W){if(W&&W.eduImpressionAction){var B=_.ZMd.getInstance();W=W.eduImpressionAction.key;B.JSC$13022_eduDisplayedThisLoad_[_.P4D[W].setKey||W]=!0;_.FI.set(W+"-impression",parseInt(_.FI.get(W+"-impression")||0,10)+1)}};
_.p.onYtSignalActionConfirmMentionsEdu=function(){_.c0(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.j8.getInstance();_.b1.set("edu-dismissed",!0)};
_.p.onYtSignalActionRecordMentionsEduImpression=function(){_.j8.getInstance();var W=_.b1.set,B=parseInt(_.b1.get("edu-impressions"),10);W.call(_.b1,"edu-impressions",(isFinite(B)?B:0)+1)};
_.p.onYtPageManagerAttached=function(W){var B;((B=_.iP(W))==null?void 0:B.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.p.onInvokeInstrumentManagerAction=function(W,B){aKf(B,W)};
_.p.updateIconSet=function(){var W=this.hostElement.querySelector("#masthead");if(W){var B=_.sR(W),z=B.querySelector("g#yt-logo-updated");z&&(W=document.createElementNS("http://www.w3.org/2000/svg","defs"),W.appendChild(z.cloneNode(!0)),(B=B.querySelector("g#yt-logo-red-updated"))&&W.appendChild(B.cloneNode(!0)),this.initIconDefs("yt-logos-ext",W))}};
_.p.updateMastheadData=function(){var W=this,B,z,G,Y,d;return _.T(function(E){if(E.nextAddress==1){B=W.data;z=W.hostElement.querySelector("#masthead");if(!z)return E.return();_.BM(W,function(){z.data=W.topbarData});
if(!W.get("response.topbar",B)||W.get("response.topbar.responseContext.maxAgeSeconds",B)===0)return E.jumpTo(0);if(G=_.dO().resolve(_.OI))return E.yield(G(),6);Y=_.dO().resolve(_.uh);return E.yield(Y.put("service:topbar:fallback",new _.ev({innertubeResponse:W.get("response.topbar",B)})),0)}return(d=E.yieldResult)?E.yield(d.put("service:topbar:fallback",new _.ev({innertubeResponse:W.get("response.topbar",B)})),0):E.jumpTo(0)})};
_.p.computeTopbarData=function(W){if(!W)return null;var B;return this.isShortsPage&&this.topbarData&&!_.k((B=W.response)==null?void 0:B.topbar,sYf)?this.topbarData:W.response&&"topbar"in W.response?_.k(W.response.topbar,sYf)||null:null};
_.p.onSetTheaterModeEnabled=function(W,B){this.isTheaterModeSession=B.enabled;this.setTheaterModeStyles(B.enabled)};
_.p.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.p.onDarkModeToggledAction=function(){var W=_.gO(window.location.href);if(!_.LOQ(W)){(W=!!_.Uw(window.location.href).themeRefresh)&&_.Oc(new _.oX("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!W){TcK();W={themeRefresh:1};var B=_.dO().resolve(_.ij);if(B.isOnWatch()){var z,G;B=((z=B.getPlayerFromWatch())==null?void 0:(G=z.getPlayer())==null?void 0:G.getCurrentTime())||0;B>=1&&(W.time_continue=Math.floor(B))}_.lO()||_.Ks()!=="USER_INTERFACE_THEME_DARK"||(W.theme="dark");_.zS(_.M6(window.location.href,
W))}_.r("web_appshell_refresh_trigger")&&_.Yt.caches&&this.refreshAppShellResponse();z=_.Lt(window.location.href);_.DH(_.dO().resolve(_.QO),_.dV(z,"theme"))}};
_.p.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.p.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.p.onPlayerFullscreen=function(W){_.pi();this.playerFullscreen=W};
_.p.setRestrictedMode=function(W){var B=_.IP();_.oP(0,58,W);B.save();_.dO().resolve(_.M1).reload()};
_.p.onPageChanged=function(W){W.detail.newPageType==="ytd-watch-flexy"||W.detail.newPageType==="ytd-watch-fixie"||W.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.ST("WEB_PAGE_TYPE_WATCH")):W.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.ST("WEB_PAGE_TYPE_SHORTS")):W.detail.newPageType==="ytd-browse"&&W.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.ST("WEB_PAGE_TYPE_MINI_APP")):_.r("web_frosted_glass")&&W.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.ST("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.ST("WEB_PAGE_TYPE_UNKNOWN"));W.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.p.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.p.onGuideToggleTap=function(){_.v0(this.hostElement,"yt-guide-toggle")};
_.p.onGuideToggleHover=function(){_.v0(this.hostElement,"yt-guide-hover")};
_.p.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.p.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.p.setMastheadTheme=function(){var W=_.sR(this.hostElement).querySelector("#masthead");W&&(W.dark=W.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),W.isDarkThemeForced=!1)};
_.p.onRequestPanelModeChange=function(W,B){this.hideHeaderShadow=B.mode!=="seamed"};
_.p.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.p.onDrawerIronSelect=function(W){_.iP(W).id==="guide"&&this.processDrawerIronSelect()};
_.p.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var W="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(W="opened"));_.v0(this.hostElement,"yt-autonav-pause-guide-"+W)};
_.p.onAddElementToApp=function(W){_.tH(this.hostElement).appendChild(W.detail)};
_.p.onThrottledScroll=function(){var W=_.dO().resolve(_.ij).getCurrentPage();W&&(this.scrollAtTop=W.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.p.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.p.setFullscreen=function(){if(_.r("external_fullscreen")||!this.isWatchPage){var W=_.r("kevlar_fullerscreen_root_only_killswitch")?!!_.pi():!!_.pi()&&_.pi()===document.documentElement;W=(this.isWatchPage||_.r("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(W||this.isFullWindowSession);this.fullscreen!==W&&((this.fullscreen=W)&&_.wV(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Y_().dispatch(_.dUU(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.c0(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.p.setFullscreenLoggingForShorts=function(W){var B,z,G;return _.T(function(Y){if(Y.nextAddress==1)return Y.yield((B=_.TN())==null?void 0:B.getPlayerPromise(),2);z=Y.yieldResult;(G=z)==null||G.setAppFullscreen(W);_.HG(Y)})};
_.p.updateMastheadCssHeight=function(){var W=this.mastheadHeight;this.fullscreen&&(W=0);_.kw(this.hostElement,{"--ytd-masthead-height":W+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.p.updateNetworkStatusBannerDisplayStatus=function(){var W="unset";this.fullscreen&&(W="none");_.kw(this.hostElement,{"--ytd-network-status-banner-display":W})};
_.p.updateNetworkStatusBannerCssHeight=function(){var W="unset";this.fullscreen&&(W="0px");_.kw(this.hostElement,{"--ytd-network-status-banner-max-height":W})};
_.p.updateScrollAndMasthead=function(W,B,z,G){this.iMaxTheaterMode||(G=!1);var Y=_.dO().resolve(_.ij).getCurrentPage();W||B||G?(document.body.classList.add("no-scroll"),Y.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Co(this,this.onScroll)),Y.setScrollTop(0),_.kw(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.tb()+"px"})):z?_.v0(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.v0(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
Y.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Co(this,this.onScroll)));this.mastheadHidden=W||B||z;this.updateMastheadCssHeight();_.r("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.p.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.p.onYtNavigateAction=function(W){W=this.get("navigateAction.endpoint",W);_.v0(this.hostElement,"yt-navigate",{endpoint:W})};
_.p.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var W=document.createElement("yt-create-family-dialog");_.tH(this.hostElement).appendChild(W);this.hasCreateFamilyDialog=!0}};
_.p.onSetPushNotificationsEnabledCommand=function(W){var B=this,z=_.k(W,tSY);z&&typeof z.enabled==="boolean"&&(Notification.permission!=="granted"?DMi().then(function(){Notification.permission==="granted"?(oO9(!z.enabled).then(F8f),z.successAction&&_.V0(B.hostElement,[z.successAction])):z.failureAction&&_.V0(B.hostElement,[z.failureAction])}):(oO9(!z.enabled).then(F8f),z.successAction&&_.V0(this.hostElement,[z.successAction])))};
_.p.onYtSignalActionEnableChromeNotifications=function(){Q_i(!0)};
_.p.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.k(this.topbarData.hotkeyDialog,rP6)}}})};
_.p.onYtSignalActionShowKeyboardShortcutDialog=function(){_.c0(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.p.onYtEndpointChangeHandler=function(W,B){var z=_.Yn(_.Ur);z.pendingPrefetchJob_&&(B=!(!B||B.autonav!="1"),z.pendingPrefetchJob_.resolve(W&&_.eMk(W)?_.m7D(W,B):""),z.pendingPrefetchJob_=null);_.c0(this.hostElement,"yt-pause-active-page-context");_.c0(this.hostElement,"ytd-log-youthere-nav");_.c0(this.hostElement,"yt-prepare-page-dispose")};
_.p.handleCommandWithCommandHandler=function(W,B){_.IB.instance.resolveCommand(W,{form:{element:B}})};
_.p.onYtTimedCommand=function(W){var B=this;W=_.k(W,pNO);var z=W.command;z&&_.gn(_.fg,function(){var G=_.k(z,_.KxR);G?(_.IB.instance.resolveCommand(z),B.maybeLogGetAnswerRequestTick(G)):_.Jr(B.hostElement,[z],B.hostElement)},W.timeoutMs||0)};
_.p.maybeLogGetAnswerRequestTick=function(W){W&&W.isFirstRequest&&(_.e4("search_overview_answer"),_.mj("so_rq",void 0,"search_overview_answer"))};
_.p.onYtSignalActionSkipNavigation=function(){var W=_.dO().resolve(_.ij).getCurrentPage();_.UE(W)};
_.p.onYtSignalActionCopyDebugData=function(){zSY()};
_.p.handleEntityUpdateCommand=function(W){_.CA(_.k(W,_.c1u).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.p.logFlowLoggingEventCommand=function(W){if(W=_.k(W,_.Ic0))if(W.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var B=W.flowEventNamespace,z=W.flowEventType,G=W.flowType;G&&B&&z&&_.bWy(_.Pg(B,z,W.flowEventMetadata),G)}else{B=_.rD();z=W.flowEventNamespace;G=W.flowEventType;var Y=W.flowType;Y&&z&&G&&_.Za(B,_.Pg(z,G,W.flowEventMetadata),Y,W.flowNonce)}};
_.p.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.p.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.p.onTouchStart=function(){var W=_.Rq();_.m1()&&_.aK(W.JSC$13250_screenManager,{visualElement:W.ve})};
_.p.handleSelectLanguageCommand=function(W){if(W=_.k(W,VS6).hl){var B=_.IP();B.set("hl",W);B.save();_.dO().resolve(_.M1).reload()}};
_.p.handleConfirmDialogEndpoint=function(W){(W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&this.ytOpenPopupBehavior.openPopup(W)};
_.p.handleOpenPopupNavigationEndpoints=function(W,B){_.r("web_button_rework")&&(W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&this.ytOpenPopupBehavior.openPopup(W,B)};
_.p.handleSaveCommandToSessionStorage=function(W){if(W=_.k(W,_.aF6)){var B=W.key;B&&W.command&&window.sessionStorage.setItem(B,JSON.stringify(W.command))}};
_.p.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(W){W&&W.active&&W.active.postMessage({type:"refresh_shell"})}).catch(function(W){W.name!=="SecurityError"&&_.jy(W)})};
_.p.onDeviceThemeChanged=function(){var W=_.Xt();_.oP(_.IP(),185,W);_.IP().save()};
_.p.handleYtRegisterPromoCommand=function(W){if(_.k(W,g1i)){var B=_.dO().resolve(_.ij).getCurrentPage()||this.hostElement;TsO().registerPromoCommand(_.k(W,g1i),B)}};
_.p.onYtNavigateHomeAction=function(){if(!_.r("kevlar_miniplayer_navigate_home_from_app_killswitch")){var W,B,z,G,Y=(G=(W=this.topbarData)==null?void 0:(B=W.logo)==null?void 0:(z=B.topbarLogoRenderer)==null?void 0:z.endpoint)!=null?G:_.nS;this.ytComponentBehavior.resolveCommand(Y)}};
_.p.onYtLocationCollectionCommand=function(W){olb(_.k(W,Fhf))};
_.p.onYtGetLocationCommand=function(W){Svn(_.k(W,HjK),this)};
_.p.updateRenderGuideFromBinding=function(W){this.renderGuide=W.detail.value};
_.p.updateGuidePersistentAndVisibleFromBinding=function(W){this.guidePersistentAndVisible=W.detail.value};
_.p.updateMiniGuideVisibleFromBinding=function(W){this.miniGuideVisible=W.detail.value};
_.p.onThemeSelected=function(W,B){var z=_.IP(),G=W||B?W:_.Xt(),Y=(G&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!G&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.LOQ(_.gO(window.location.href));_.oP(0,165,W);_.oP(0,174,B);z.save();Y&&_.c0(this.hostElement,"yt-dark-mode-toggled-action",[G]);_.c0(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.p.getCurrentTheme=function(){return _.ua()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Ks()};
_.p.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.p.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.p.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.p.handleShowConsentPrimitive=function(W){var B=this,z,G;return _.T(function(Y){if(Y.nextAddress==1){try{z=(G=_.TN())==null?void 0:G.getPlayerPromise()}catch(d){}return Y.yield(q_Y(W,z),2)}_.c0(B.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.HG(Y)})};
_.p.handleSelectActiveIdentityEndpointInternal=function(W){_.Wf();W=_.k(W,_.RN6);if(W!=null&&W.supportedTokens){W=_.A(W.supportedTokens);for(var B=W.next();!B.done;B=W.next())B=B.value,B.accountSigninToken&&_.zS(B.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.p.handleUpdatePermissionRoleCommand=function(W){if(W=_.k(W,_.WxH)){var B;this.hasDelegation=!((B=_.k(W.renderer,_.RgR))==null||!B.status)}};
_.p.registerWithViewTransitionManager=function(){var W=_.dO().resolve(_.Y8(_.LD));if(W){var B,z=(B=this.guide)==null?void 0:B.querySelector("#scrim"),G;B=(G=this.guide)==null?void 0:G.querySelector("#contentContainer");z&&B&&W.isAnyTransitionEnabled&&(G={},W.viewTransitionCoordinator.registerElement(z,(G.slide="app-drawer-scrim-page-transition",G["lockup-to-watch"]="app-drawer-scrim-page-transition",G["learning-journey"]="app-drawer-scrim-page-transition",G)),z={},W.viewTransitionCoordinator.registerElement(B,
(z.slide="app-drawer-container-page-transition",z["lockup-to-watch"]="app-drawer-container-page-transition",z["learning-journey"]="app-drawer-container-page-transition",z)))}};
_.G5.Object.defineProperties(sP.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.r("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.G5.Object.defineProperties(sP,{template:{configurable:!0,enumerable:!0,get:function(){if(P8b===void 0){var W=document.createElement("template");_.I(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);P8b=W}W=P8b;return W}}});
sP.prototype.onOpenHotkeyDialog=sP.prototype.onOpenHotkeyDialog;sP.prototype.setFullscreen=sP.prototype.setFullscreen;sP.prototype.onAddElementToApp=sP.prototype.onAddElementToApp;sP.prototype.onDrawerIronSelect=sP.prototype.onDrawerIronSelect;sP.prototype.onGuideOpenButtonHover=sP.prototype.onGuideOpenButtonHover;sP.prototype.onRequestPanelModeChange=sP.prototype.onRequestPanelModeChange;sP.prototype.onPageDataUpdated=sP.prototype.onPageDataUpdated;sP.prototype.onPageChanged=sP.prototype.onPageChanged;
sP.prototype.onSetTheaterModeEnabled=sP.prototype.onSetTheaterModeEnabled;sP.prototype.updateMastheadData=sP.prototype.updateMastheadData;sP.prototype.onYtPageManagerAttached=sP.prototype.onYtPageManagerAttached;sP.prototype.observeGuideVisibility=sP.prototype.observeGuideVisibility;sP.prototype.guideIsVisibleButNotPersistentSelectorChanged=sP.prototype.guideIsVisibleButNotPersistentSelectorChanged;sP.prototype.isInlinePreviewEnabledChanged=sP.prototype.isInlinePreviewEnabledChanged;
sP.prototype.isWatchPageChanged=sP.prototype.isWatchPageChanged;sP.prototype.dispatchFrostedGlassMode=sP.prototype.dispatchFrostedGlassMode;_.Q([_.h(_.TB),_.y("design:type",Object)],sP.prototype,"ytdReduxBehavior",void 0);_.Q([_.h(_.Un.YtEventForwardingBehavior),_.y("design:type",Object)],sP.prototype,"ytEventForwardingBehavior",void 0);_.Q([_.h(_.Ds.YtOpenPopupBehavior),_.y("design:type",Object)],sP.prototype,"ytOpenPopupBehavior",void 0);
_.Q([_.h(_.ye.YtActionHandlerBehavior),_.y("design:type",Object)],sP.prototype,"ytActionHandlerBehavior",void 0);_.Q([_.h({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Qx.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.r("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var W;((W=this.actionRouterNode.hostElement)!=null?W:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var W;((W=this.actionRouterNode.hostElement)!=null?W:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(W){this.actionRouter_.handleAction(W.detail)}}),
_.y("design:type",Object)],sP.prototype,"ytActionRouterBehavior",void 0);_.Q([_.h(th1.YtdAppBehavior),_.y("design:type",Object)],sP.prototype,"ytdAppBehavior",void 0);_.Q([_.h(_.Qe.YtEndpointBehavior),_.y("design:type",Object)],sP.prototype,"ytEndpointBehavior",void 0);_.Q([_.h(C8q.YtEndpointHandlerWithYpcBehavior),_.y("design:type",Object)],sP.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.Q([_.h(ZZi.YtLogYpcFlowCommandsBehavior),_.y("design:type",Object)],sP.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.Q([_.h(_.U.YtRendererBehavior),_.y("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.Q([_.h(_.Ve.YtComponentBehavior),_.y("design:type",Object)],sP.prototype,"ytComponentBehavior",void 0);_.Q([_.F({selector:_.ori}),_.y("design:type",Object)],sP.prototype,"tabGesturesIsActive",void 0);_.Q([_.F(),_.y("design:type",Boolean)],sP.prototype,"renderGuide",void 0);
_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sP.prototype,"guidePersistentAndVisible",void 0);_.Q([_.F({selector:_.I5Y}),_.y("design:type",Boolean)],sP.prototype,"guideIsVisibleButNotPersistent",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],sP.prototype,"standalone",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sP.prototype,"miniGuideVisible",void 0);
_.Q([_.F(),_.y("design:type",Object)],sP.prototype,"persistentPanelEnabled",void 0);_.Q([_.F({selector:Qcq,reflectToAttribute:!0}),_.y("design:type",Boolean)],sP.prototype,"persistentPanelVisible",void 0);_.Q([_.F({selector:_.vUv}),_.y("design:type",Number)],sP.prototype,"miniplayerPlaybackState",void 0);_.Q([_.F({selector:_.xO,reflectToAttribute:!0}),_.y("design:type",Boolean)],sP.prototype,"miniplayerIsActive",void 0);
_.Q([_.F({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.y("design:type",Boolean)],sP.prototype,"isInlinePreviewEnabled",void 0);_.Q([_.F(),_.y("design:type",Boolean)],sP.prototype,"isInlinePreviewDisabled",void 0);_.Q([_.F({reflectToAttribute:!0,value:function(){return _.md("START_IN_FULL_WINDOW_MODE")}}),
_.y("design:type",Boolean)],sP.prototype,"mastheadHidden",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sP.prototype,"playerFullscreen",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sP.prototype,"deprecateFullerscreenUi",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sP.prototype,"fullscreen",void 0);_.Q([_.F({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],sP.prototype,"hideHeaderShadow",void 0);
_.Q([_.F({value:{GUIDE_ALT_LABEL:_.kq("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.y("design:type",Object)],sP.prototype,"menuStrings",void 0);_.Q([_.F({computed:"computeTopbarData(data)"}),_.y("design:type",Object)],sP.prototype,"topbarData",void 0);_.Q([_.F({selector:_.A5x,reflectToAttribute:!0}),_.y("design:type",Boolean)],sP.prototype,"isWatchPage",void 0);_.Q([_.F({selector:_.iIu,reflectToAttribute:!0}),_.y("design:type",Boolean)],sP.prototype,"isShortsPage",void 0);
_.Q([_.F({selector:function(W){return _.Dn(W)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.y("design:type",Boolean)],sP.prototype,"isMiniAppPage",void 0);_.Q([_.F({selector:function(W){return _.Dn(W)==="WEB_PAGE_TYPE_BROWSE"}}),
_.y("design:type",Boolean)],sP.prototype,"isBrowsePage",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Boolean)],sP.prototype,"scrolling",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sP.prototype,"hasDelegation",void 0);_.Q([_.F({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],sP.prototype,"guideScrolledByTouch",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sP.prototype,"darkerDarkTheme",void 0);
_.Q([_.F(),_.y("design:type",Object)],sP.prototype,"isFrostedGlassInitialized",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sP.prototype,"frostedGlassExp",void 0);_.Q([_.F({selector:function(W){return W.ui.chipBarIsSticky}}),
_.y("design:type",Boolean)],sP.prototype,"chipBarIsSticky",void 0);_.Q([_.F({computed:"computeIsHomePage(isBrowsePage, data)"}),_.y("design:type",Boolean)],sP.prototype,"isHomePage",void 0);_.Q([_.F({reflectToAttribute:!0}),_.y("design:type",Object)],sP.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.Q([_.F(),_.y("design:type",Object)],sP.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.Q([_.xg("guide"),_.y("design:type",Object)],sP.prototype,"guide",void 0);
_.Q([_.xg("guide-service"),_.y("design:type",YGY)],sP.prototype,"guideService",void 0);_.Q([_.xg("guide-inner-content"),_.y("design:type",HTMLDivElement)],sP.prototype,"guideInnerContent",void 0);_.Q([_.Hf("#persistent-panel-container"),_.y("design:type",HTMLElement)],sP.prototype,"persistentPanelContainer",void 0);_.Q([_.F({selector:_.c5y}),_.y("design:type",String)],sP.prototype,"frostedGlassMode",void 0);
_.Q([_.oN("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sP.prototype,"dispatchFrostedGlassMode",null);_.Q([_.F({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.y("design:type",Object)],sP.prototype,"isFrostedGlassDisabled",void 0);
_.Q([_.oN("isWatchPage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sP.prototype,"isWatchPageChanged",null);_.Q([_.H("isHomePage","chipBarIsSticky"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sP.prototype,"applyFrostedGlassToChipBar",null);_.Q([_.F(),_.y("design:type",Object)],sP.prototype,"isChannelOrPlaylistPage",void 0);
_.Q([_.jJ("isInlinePreviewEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sP.prototype,"isInlinePreviewEnabledChanged",null);_.Q([_.oN("guideIsVisibleButNotPersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sP.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.Q([_.oN("guidePersistentAndVisible","miniGuideVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sP.prototype,"observeGuideVisibility",null);_.Q([_.IN("attached"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],sP.prototype,"onYtPageManagerAttached",null);_.Q([_.oN("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],sP.prototype,"updateMastheadData",null);
_.Q([_.IN("yt-set-theater-mode-enabled"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],sP.prototype,"onSetTheaterModeEnabled",null);_.Q([_.IN("yt-page-type-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],sP.prototype,"onPageChanged",null);_.Q([_.IN("yt-page-data-updated"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sP.prototype,"onPageDataUpdated",null);
_.Q([_.IN("yt-request-panel-mode-change"),_.y("design:type",Function),_.y("design:paramtypes",[Event,Object]),_.y("design:returntype")],sP.prototype,"onRequestPanelModeChange",null);_.Q([_.IN("yt-guide-hover"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sP.prototype,"onGuideOpenButtonHover",null);_.Q([_.IN("app-drawer-transitioned"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],sP.prototype,"onDrawerIronSelect",null);
_.Q([_.IN("yt-add-element-to-app"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],sP.prototype,"onAddElementToApp",null);_.Q([_.IN("yt-set-fullerscreen-styles"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sP.prototype,"setFullscreen",null);_.Q([_.IN("yt-open-hotkey-dialog"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sP.prototype,"onOpenHotkeyDialog",null);
_.Q([_.u({is:"ytd-app"})],sP);_.J5().processSignal("eor");
_.mb();
}catch(e){_._DumpException(e)}
try{
_.ek("NSzT5");
var a2Y;_.N9=function(W){var B=document.createElement("link");_.E0(B,W,"stylesheet");document.head.appendChild(B)};
_.$g=function(W,B){var z,G;return _.T(function(Y){z=document.createElement("div");z.id=W.id;W.className&&(z.className=W.className);G=W.element;if(!G)throw Error("Zj");if(W.location==="prepend")G.prepend(z);else if(W.location==="appendChild")G.appendChild(z);else if(W.location==="after")G.after(z);else throw Error("$j");return Y.return(_.SD(z,B,"gh"))})};
_.L1=function(W){var B;return _.T(function(z){(B=document.getElementById(W))&&B.remove();_.HG(z)})};
_.Uy=function(W,B){var z=document.querySelector(W);z?B(z):setTimeout(function(){_.Uy(W,B)},1E3)};
_.RlK=function(W,B,z){var G;_.T(function(Y){if(Y.nextAddress==1)return(G=document.getElementById(W))?Y.jumpTo(2):Y.yield(a2Y(W,B,z),2);if(G=document.getElementById(W))G.style.display="block";_.HG(Y)})};
a2Y=function(W,B,z){return _.T(function(G){return G.return(new Promise(function(Y){_.Uy("div #panels",function(d){_.$g({element:d,location:"appendChild",id:W,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+z},B);Y()})}))})};
_.GyO=function(){_.L1("creator_chatbots-entry-point");_.L1("creator_chatbots-panel");_.N9(Wjn);_.Uy("ytd-watch-metadata #top-level-buttons-computed",function(W){document.getElementById("creator_chatbots-entry-point")||(_.$g({element:W,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.w(BVf,null)}),_.RlK("creator_chatbots-panel",function(){return _.w(zYK,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.M9=_.m(function(W){var B=W.text;var z=W.onClick;var G=W.color;var Y=W.backgroundColor;var d=W.buttonSize;var E=W.disabled;var v=W.iconName;var c=W.iconSize;W=W.className;var J=_.lF(function(t){z(t)}),g={};
return _.w("button",{class:_.kG("ytpStandardButtonsHost",(g.ytpStandardButtonsLarge=function(){return(d==null?void 0:d())==="large"},g),W),
"on:click":J,style:_.oK({color:G,"background-color":Y}),disabled:E}," ",_.w(_.V,{cond:v,then:function(){return _.w(_.hY,{className:"ytpStandardButtonsIconContainer",icon:v,size:c})}}),B)},"fh");_.Y20=_.m(function(W){var B;return _.w("div",{class:_.kG("ytprototypesEngagementPanelComponentHost",W.className),id:W.id},_.w("div",{class:_.kG("ytprototypesEngagementPanelComponentEngagementPanelHeader",W.headerClassName)},_.w("div",null,W.header()),_.w("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.w("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(B=W.HeaderButton)==null?void 0:B.call(W)),_.w(_.M9,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var z;(z=W.onHide)==null||z.call(W);z=W.id();if(z=document.getElementById(z))z.style.display="none"}}))),_.w("div",{class:_.kG("ytprototypesEngagementPanelComponentEngagementPanelContent",W.contentClassName),
style:function(){var z;return"height: "+(((z=W.height)==null?void 0:z.call(W))||"800px")+";"}},W.content()))},"hh");var dji=_.ak(["https://portraits.google.com"]),p0q=_.ak(["https://portraits.google.com/kimscott_vidcontexttests"]),Arq=_.ak(["https://labs-characters.teams.x20web.corp.google.com"]),ii9=_.sY(dji),Eq6=_.sY(p0q),TV6=_.sY(Arq),zYK=_.m(function(){var W=_.r("enable_creator_chatbots_extension_dev_server"),B=document.createElement("iframe"),z=W?TV6:Eq6;_.A6R(B,1,z);B.className="ytprotoCreatorChatbotsAppLabsIframe";B.allow="microphone; clipboard-read; clipboard-write self "+z;var G=function(){var d;return _.T(function(E){if(E.nextAddress==
1)return E.yield(_.dO().resolve(_.Jg),2);(d=E.yieldResult)&&d.pauseVideo();_.HG(E)})},Y=function(){var d,E,v;
return _.T(function(c){return c.nextAddress==1?c.yield(_.dO().resolve(_.Jg),2):(d=c.yieldResult)?c.return({video_id:(v=(E=d.getVideoData())==null?void 0:E.video_id)!=null?v:"",timestamp_sec:d.getCurrentTime().toString()}):c.return({})})};
window.addEventListener("message",function(d){var E,v,c,J,g,t;return _.T(function(P){if(P.nextAddress==1){E=W?TV6.toString():ii9.toString();if(d.origin!==E)return console.warn("Received message from untrusted origin:",d.origin),P.return();v=d.data;if(typeof v!=="object"||v===null||!v.action)return P.return();if(v.action==="pause")return P.yield(G(),0);if(v.action!=="getYouTubeContext"||!d.source)return P.jumpTo(0);c=d.source;J=c.postMessage;g=JSON;t=g.stringify;return P.yield(Y(),7)}J.call(c,t.call(g,
{youTubeContext:P.yieldResult}),{targetOrigin:d.origin});return P.jumpTo(0)})});
return _.w("div",{class:"ytprotoCreatorChatbotsAppHost",style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.w(_.Y20,{id:"creator_chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var d=W?TV6.toString():ii9.toString(),E;(E=B.contentWindow)==null||E.postMessage("ep_closed",d)},
header:function(){return _.w("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.w("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.w(_.vD,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.w(_.M9,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.BG(window,_.DR(z.toString()),"_blank")}})},
content:function(){return B}}))},"ih");var vqO=_.ak(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]),Wjn=_.sY(vqO),BVf=_.m(function(){var W=function(){_.RlK("creator_chatbots-panel",function(){return _.w(zYK,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.w("div",{class:"ytd-menu-renderer"},_.w(_.uu,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:W}},
icon:function(){return _.w(_.hY,{icon:"SPARK"})}}))},"jh");
_.mb();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
